re PR middle-end/37608 (libgcc2.c:1981: ICE: vector VEC(m em_ref_p,base) index domain...
[gcc.git] / gcc / ChangeLog
1 2008-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2
3 PR middle-end/37608
4 * pa.md (call, call_value): Generate an rtx for register r4 and pass
5 it to PIC call patterns.
6 (call_symref_pic): Revise pattern to expose PIC register save. Remove
7 code generation and attributes from pattern. Change peephole2 to split
8 for noreturn case. Revise split pattern for non noreturn case.
9 (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
10 call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
11 * pa.c (attr_length_call): Simplify extraction of call rtx. Add some
12 asserts.
13
14 2008-10-11 David Edelsohn <edelsohn@gnu.org>
15
16 * config/rs6000/rs6000.md (aux_truncdfsf2): Remove TARGET_SINGLE_FLOAT.
17 (addsf3, subsf3, mulsf3 ! TARGET_POWERPC): Remove TARGET_SINGLE_FLOAT
18 and fp_type.
19 (divdf3): Reformat long line.
20
21 2008-10-11 Michael J. Eager <eager@eagercon.com>
22
23 * config/rs6000/rs6000.c (rs6000_parse_fpu_option): Interpret
24 -mfpu options.
25 (rs6000_handle_option): Process -mfpu options.
26 * config/rs6000/rs6000.h: (TARGET_XILINX_FPU): New.
27 (enum fpu_type_t): New.
28 * config/rs6000/rs6000.md (attr fp_type): New.
29 Include xfpu.md.
30 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3, trunctfdf2): Set
31 fp_type.
32 (floatsisf2): Remove TARGET_SINGLE_FPU condition.
33 (floatdidf2): Add TARGET_SINGLE_FPU condition.
34 * config/rs6000/rs6000.opt (-mfpu): New.
35 (-mxilinx-fpu): New.
36 * config/rs6000/sysv4.h: (DRIVER_SELF_SPECS): New.
37 * config/rs6000/xfpu.h: New. Define TARGET_XILINX_FPU.
38 * config/rs6000/xfpu.md: New. Define Xilinx pipeline.
39 * gcc/config.gcc: powerpc-xilinx-eabi target: New.
40 * gcc/doc/invoke.texi (RS/6000 and PowerPC Options): Add -mfpu option.
41
42 2008-10-11 Jakub Jelinek <jakub@redhat.com>
43
44 PR target/35760
45 * config/rs6000/rs6000.c (rs6000_legitimize_address): Only create
46 LO_SUM on Darwin if mode has just one unit.
47
48 2008-10-10 H.J. Lu <hongjiu.lu@intel.com>
49
50 PR debug/37002
51 * dwarf2out.c (mem_loc_descriptor): Use DRAP for vDRAP which
52 has been optimized out.
53
54 2008-10-10 Richard Sandiford <rdsandiford@googlemail.com>
55
56 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Test PIC_ADDR_P
57 instead of PIC_DIRECT_ADDR_P.
58 (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
59 (IS_LITERAL_OR_SYMBOLIC_S16_P, IS_LITERAL_OR_SYMBOLIC_U16_P): Delete.
60 (IS_NON_EXPLICIT_CONSTANT_P): Don't test PIC_OFFSET_P.
61 (PIC_OFFSET_P): Rename to...
62 (PCREL_SYMOFF_P): ...this.
63 (PIC_DIRECT_ADDR_P): Delete.
64 (MOVI_SHORI_BASE_OPERAND_P): Check PCREL_SYMOFF_P instead of
65 PIC_OFFSET_P.
66 (OUTPUT_ADDR_CONST_EXTRA): Don't require unspecs to have a
67 single argument. Handle UNSPEC_EXTRACT_S16, UNSPEC_EXTRACT_U16,
68 UNSPEC_SYMOFF and UNSPEC_PCREL_SYMOFF.
69 * config/sh/sh.c (print_operand): Remove CONST handling.
70 (unspec_caller_rtx_p): Rewrite to use split_const and check
71 the operands of UNSPEC bases.
72 (fixup_mova): Replace (unspec [(minus A B)] UNSPEC_PIC)
73 with (unspec [A B] UNSPEC_SYMOFF).
74 (nonpic_symbol_mentioned_p): Check for UNSPEC_SYMOFF and
75 UNSPEC_PCREL_SYMOFF.
76 (sh_secondary_reload): Test PIC_ADDR_P instead of PIC_DIRECT_ADDR_P.
77 * config/sh/sh.md (UNSPEC_EXTRACT_S16): New unspec.
78 (UNSPEC_EXTRACT_U16): Likewise.
79 (UNSPEC_SYMOFF): Likewise.
80 (UNSPEC_PCREL_SYMOFF): Likewise.
81 (movsi_const): Use UNSPEC_EXTRACT_*16s to extract 16-bit portions
82 of constants.
83 (movsi_const_16bit): Likewise.
84 (movdi_const, movdi_const_32bit, movdi_const_16bit): Likewise.
85 (GOTaddr2picreg): Replace (unspec [(minus A (minus B pc))] UNSPEC_PIC)
86 with (unspec [A B] UNSPEC_PCREL_SYMOFF).
87 (sym_label2reg): Replace (minus (const (unspec [A] UNSPEC_PIC)) B)
88 with (unspec [A B] UNSPEC_SYMOFF).
89 (symPLT_label2reg): Replace (minus A (minus B pc)) with
90 (unspec [A B] PCREL_UNSPEC_SYMOFF).
91 * config/sh/constraints.md (Css): Check for an UNSPEC_EXTRACT_S16.
92 (Csu): Likewise UNSPEC_EXTRACT_U16.
93 (Csy): Test PIC_ADDR_P instead of PIC_DIRECT_ADDR_P.
94 (Cpg): Update after changes to IS_NON_EXPLICIT_CONSTANT_P.
95
96 2008-10-10 Stepan Kasal <skasal@redhat.com>
97
98 * gcc/doc/invoke.texi (Optimize Options): Fix typo in examples
99 for loop strip mining and loop blocking.
100
101 2008-10-10 Alexandre Oliva <aoliva@redhat.com>
102
103 * fortran/trans-types.c (gfc_get_nodesc_array_type): Don't
104 vary types depending on debug info.
105
106 2008-10-10 Alexandre Oliva <aoliva@redhat.com>
107
108 * c-gimplify.c (c_genericize): Don't refer to DECL_ASSEMBLER_NAME
109 before ensuring it's already computed.
110
111 2008-10-09 Jakub Jelinek <jakub@redhat.com>
112
113 * rtl.h (locator_eq): New decl.
114 * cfglayout.c (locator_scope): New function.
115 (insn_scope): Use it.
116 (locator_eq): New function.
117 (fixup_reorder_chain): Search for last insn in src bb
118 that has locator set or first insn in dest bb. Use
119 locator_eq instead of == to compare locators.
120 * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
121 * cfgcleanup.c (try_forward_edges): Use locator_eq instead of
122 == to compare locators.
123
124 * tree-ssa-live.c (remove_unused_locals): Mark all edge's goto_block
125 as used.
126 * gimple-low.c (lower_function_body, lower_gimple_return,
127 lower_builtin_setjmp): Set gimple_block on the newly created stmts.
128 * tree-cfg.c (make_cond_expr_edges, make_goto_expr_edges): Only set
129 goto_block on edges if goto_locus is known.
130
131 PR middle-end/37774
132 * tree.h (get_object_alignment): Declare.
133 * emit-rtl.c (set_mem_attributes_minus_bitpos): Call
134 get_object_alignment if needed.
135 * builtins.c (get_pointer_alignment): Move ADDR_EXPR operand handling
136 to ...
137 (get_object_alignment): ... here. New function. Try harder to
138 determine alignment from get_inner_reference returned offset.
139
140 2008-10-08 Jakub Jelinek <jakub@redhat.com>
141
142 * graphite.c (gloog): Don't call find_unreachable_blocks
143 before delte_unreachable_blocks.
144
145 * cfgexpand.c (expand_gimple_cond): Convert also goto_block and
146 goto_locus of true_edge into RTL locator.
147
148 2008-10-08 Uros Bizjak <ubizjak@gmail.com>
149
150 * config/i386/i386.md (*jcc_btdi_rex64): Clobber FLAGS_REG.
151 (*jcc_btdi_mask_rex64): Ditto.
152 (*jcc_btsi): Ditto.
153 (*jcc_btsi_mask): Ditto.
154 (*jcc_btsi_1): Ditto.
155 (*jcc_btsi_mask_1): Ditto.
156
157 2008-10-08 Paul Brook <paul@codesourcery.com>
158
159 * config/arm/bpabi.h (ARM_FUNCTION_PROFILER): Define new EABI
160 compatible profiler (__gnu_mcount_nc).
161 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
162
163 2008-10-08 H.J. Lu <hongjiu.lu@intel.com>
164
165 * config/i386/i386.c (initial_ix86_tune_features): Add
166 X86_TUNE_USE_VECTOR_FP_CONVERTS.
167 * config/i386/i386.h (ix86_tune_indices): Likewise.
168 (TARGET_USE_VECTOR_FP_CONVERTS): New.
169
170 * config/i386/i386.md: Check TARGET_USE_VECTOR_FP_CONVERTS
171 instead of (TARGET_USE_VECTOR_CONVERTS || TARGET_GENERIC)
172 for FP to FP splitters.
173
174 2008-10-08 H.J. Lu <hongjiu.lu@intel.com>
175
176 * config/i386/i386.md: Add missing gen_sse2_cvtdq2p to convert
177 splitter.
178
179 2008-10-08 Jakub Jelinek <jakub@redhat.com>
180
181 PR target/36635
182 PR target/37290
183 PR rtl-optimization/37341
184 * cse.c (cse_cc_succs): Add ORIG_BB argument, don't follow edges
185 to ORIG_BB, pass through ORIG_BB recursively.
186 (cse_condition_code_reg): Adjust caller.
187
188 2008-10-08 Kai Tietz <kai.tietz@onevision.com>
189
190 * sdbout.c (sdbout_one_type): Treat the value type
191 CONST_DECL for enumerals.
192
193 2008-10-07 H.J. Lu <hongjiu.lu@intel.com>
194
195 * config/i386/i386.md: Remove trailing white spaces.
196
197 2008-10-07 Kenneth Zadeck <zadeck@naturalbridge.com>
198
199 PR rtl-optimization/37448
200 * alloc-pool.c (struct alloc_pool_descriptor) [elt_size]: New field.
201 (stuct alloc_pool_descriptor) [created, allocated, current, peak]:
202 Make unsigned long.
203 (struct output_info) [count]: Renamed total_created and made
204 unsigned long.
205 (struct output_info) [size]: Renamed total_allocated and made
206 unsigned long.
207 (create_alloc_pool, empty_alloc_pool, pool_alloc, pool_free):
208 Properly keep track of desc->size.
209 (print_statistics, dump_alloc_pool_statistics): Enhance the
210 printing of statistics to print the number of elements and to use
211 unsigned longs.
212
213 2008-10-07 Jakub Jelinek <jakub@redhat.com>
214
215 PR middle-end/37576
216 * opts.h (CL_SAVE): Move up to flags range.
217 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET,
218 CL_COMMON): Renumber.
219 (CL_MIN_OPTION_CLASS): Set to CL_PARAMS.
220 * opts.c (common_handle_option): Revert last change.
221
222 2008-10-07 H.J. Lu <hongjiu.lu@intel.com>
223
224 * config/i386/i386-protos.h (ix86_schedule): New.
225
226 * config/i386/i386.c (ix86_schedule): New.
227 (override_options): Add schedule to processor_alias_table. Set
228 ix86_schedule from the schedule field in processor_alias_table.
229 (ix86_function_specific_save): Save ix86_schedule.
230 (ix86_function_specific_restore): Restore ix86_schedule.
231
232 * config/i386/i386.md (cpu): Map to ix86_schedule instead of
233 ix86_tune. Add none and remove i386, i486, pentium4, nocona
234 and generic32.
235
236 * config/i386/i386.opt: Add schedule.
237
238 * config/i386/ppro.md: Remove generic32.
239
240 2008-10-07 Simon Martin <simartin@users.sourceforge.net>
241
242 PR c/35437
243 * expr.c (count_type_elements): Handle ERROR_MARK.
244
245 2008-10-07 Jakub Jelinek <jakub@redhat.com>
246
247 PR debug/29609
248 PR debug/36690
249 PR debug/37616
250 * basic-block.h (struct edge_def): Add goto_block field.
251 * cfglayout.c (fixup_reorder_chain): Ensure that there is at least
252 one insn with locus corresponding to edge's goto_locus if !optimize.
253 * profile.c (branch_prob): Copy edge's goto_block.
254 * cfgrtl.c (force_nonfallthru_and_redirect): Use goto_locus for
255 emitted jumps.
256 (cfg_layout_merge_blocks): Emit a nop with edge's goto_locus
257 locator in between the merged basic blocks if !optimize and needed.
258 * cfgexpand.c (expand_gimple_cond): Convert goto_block and
259 goto_locus into RTL locator. For unconditional jump use that
260 locator for the jump insn.
261 (expand_gimple_cond): Convert goto_block and goto_locus into
262 RTL locator for all remaining edges. For unconditional jump
263 use that locator for the jump insn.
264 * cfgcleanup.c (try_forward_edges): Avoid the optimization if
265 there is more than one edge or insn locator along the forwarding
266 edges and !optimize. If there is just one, set e->goto_locus.
267 * tree-cfg.c (make_cond_expr_edges, make_goto_expr_edges): Set also
268 edge's goto_block.
269 (move_block_to_fn): Adjust edge's goto_block.
270
271 2008-10-07 H.J. Lu <hongjiu.lu@intel.com>
272
273 PR middle-end/37731
274 * expmed.c (expand_mult): Properly check DImode constant in
275 CONST_DOUBLE.
276
277 2008-10-07 Jakub Jelinek <jakub@redhat.com>
278
279 PR debug/37738
280 * dwarf2out.c (common_block_die_table): New variable.
281 (common_block_die_table_hash, common_block_die_table_eq): New
282 functions.
283 (gen_variable_die): Look up a DW_TAG_common_block die for a particular
284 COMMON block in the current scope rather than globally. Optimize
285 DW_OP_addr SYMBOL_REF DW_OP_plus_uconst off into
286 DW_OP_addr SYMBOL_REF+off.
287
288 2008-10-07 Eric Botcazou <ebotcazou@adacore.com>
289
290 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <VIEW_CONVERT_EXPR>:
291 Return true for non-addressable GIMPLE operands.
292
293 2008-10-07 H.J. Lu <hongjiu.lu@intel.com>
294
295 PR target/24765
296 * config/i386/i386.c (initial_ix86_tune_features): Remove
297 X86_TUNE_USE_BIT_TEST.
298 * config/i386/i386.h (ix86_tune_indices): Likewise.
299 (TARGET_USE_BIT_TEST): Removed.
300
301 2008-10-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
302
303 * config.gcc (arm*-*-*): Add aapcs-linux to supported ABIs.
304
305 2008-10-06 Adam Nemet <anemet@caviumnetworks.com>
306
307 * config/mips/mips.md (mulsi3_mul3, muldi3_mul3): Merge these ...
308 (mul<mode>3_mul3): ... into this new template.
309
310 2008-10-06 Aldy Hernandez <aldyh@redhat.com>
311
312 * gimplify.c (gimplify_arg): Add location argument. Use it.
313 (gimplify_call_expr): Pass location to gimplify_arg.
314 (gimplify_modify_expr_to_memcpy): Same.
315 (gimplify_modify_expr_to_memset): Same.
316
317 2008-10-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
318
319 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
320 Update calls to build_unary_op and build_indirect_ref for location
321 changes.
322
323 2008-10-06 Aldy Hernandez <aldyh@redhat.com>
324
325 build_modify_expr.
326 * c-decl.c (finish_decl): Pass input_location to build_unary_op.
327 * c-typeck.c (array_to_pointer_conversion): Pass location to
328 build_unary_op.
329 (function_to_pointer_conversion): Use error_at and warning_at.
330 (build_indirect_ref): Same.
331 (build_array_ref): Pass location to build_binary_op.
332 (parser_build_unary_op): Do not set location after calling
333 build_unary_op.
334 (build_unary_op): Add location argument. Use it throughout. Set
335 EXPR_LOCATION before returning new tree.
336 (build_modify_expr): Same.
337 (build_binary_op): Use location throughout. Set EXPR_LOCATION before
338 returning node.
339 * c-omp.c (c_finish_omp_atomic): Pass location to build_unary_op,
340 build_indirect_ref, build_modify_expr.
341 (c_finish_omp_for): Same. Use error_at instead of error.
342 * c-common.c (c_common_truthvalue_conversion): Pass location to
343 build_unary_op.
344 (warn_for_div_by_zero): Add location argument.
345 * c-common.h: Add argument to build_modify_expr, build_indirect_ref,
346 build_unary_op, warn_for_div_by_zero.
347 * c-parser.c (c_parser_typeof_specifier): Use
348 protected_set_expr_location.
349 (c_parser_statement_after_labels): Same.
350 (c_parser_condition): Same.
351 (c_parser_expr_no_commas): Pass correct location to build_modify_expr.
352 (c_parser_conditional_expression): Use protected_set_expr_location.
353 (c_parser_unary_expression): Pass location to build_indirect_ref.
354 (c_parser_postfix_expression_after_primary): Pass location to
355 build_indirect_ref, build_unary_op.
356 (c_parser_omp_for_loop): Set the increment expression's EXPR_LOCATION.
357
358 2008-10-06 Joshua Kinard <kumba@gentoo.org>
359
360 * doc/invoke.texi: List r1x000 family under the -march MIPS option.
361 * config/mips/mips.h (PROCESSOR_R10000): New processor_type.
362 * config/mips/mips.c (mips_cpu_info_table): Add r10000, r12000,
363 r14000 and r16000.
364 (mips_rtx_cost_data): Add a PROCESSOR_R10000 entry.
365 (mips_issue_rate): Handle PROCESSOR_R10000.
366 * config/mips/mips.md (cpu): Add r10000.
367 Include r10000.md.
368 * config/mips/10000.md: New file.
369
370 2008-10-06 Richard Sandiford <rdsandiford@googlemail.com>
371
372 * config/rs6000/rs6000-protos.h (rs6000_find_base_term): Declare.
373 * config/rs6000/rs6000.h (FIND_BASE_TERM): New macro.
374 * config/rs6000/rs6000.c (rs6000_find_base_term): New function.
375
376 2008-10-06 Richard Sandiford <rdsandiford@googlemail.com>
377
378 * config/darwin-protos.h (machopic_function_base_name): Delete.
379 (machopic_function_base_sym): Likewise.
380 (machopic_gen_offset): Declare.
381 * config/darwin.h (MACHOPIC_FUNCTION_BASE_NAME): New macro.
382 (ASM_OUTPUT_LABELREF): Use it instead of a hard-coded string constant.
383 * config/darwin.c (machopic_function_base_name): Delete.
384 (machopic_function_base_sym): Likewise.
385 (gen_pic_offset): Rename to...
386 (machopic_gen_offset): ...this and remove the pic_base argument.
387 Instead use MACHO_DYNAMIC_NO_PIC_P to decide whether a PIC offset
388 is needed. Create an UNSPEC_MACHOPIC_OFFSET if so, and set
389 crtl->uses_pic_offset_table.
390 (machopic_indirect_data_reference): Use new machopic_gen_offset
391 interface.
392 (machopic_legitimize_pic_address): Likewise.
393 (machopic_operand_p): Check for UNSPEC_MACHOPIC_OFFSET.
394
395 * config/i386/darwin.h (GOT_SYMBOL_NAME): Use
396 MACHOPIC_FUNCTION_BASE_NAME instead of machopic_function_base_name.
397 * config/i386/i386.c (output_set_got): Likewise.
398 (darwin_local_data_pic): Check for an UNSPEC_MACHOPIC_OFFSET
399 instead of a MINUS.
400 (legitimate_pic_operand_p): Handle UNSPEC_MACHOPIC_OFFSET.
401 (legitimate_address_p): Likewise.
402 (output_pic_addr_const): Likewise.
403 (output_addr_const_extra): Likewise.
404 (ix86_delegitimize_address): Expect darwin_local_data_pic to
405 match an UNSPEC rather than a MINUS.
406 * config/i386/i386.md (UNSPEC_MACHOPIC_OFFSET): Define.
407 (builtin_setjmp_receiver): Use machopic_gen_offset.
408 * config/i386/predicates.md (pic_symbolic_operand): Handle
409 UNSPEC_MACHOPIC_OFFSET.
410
411 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
412 Use machopic_gen_offset and machopic_operand_p.
413 (rs6000_output_addr_const_extra): Handle UNSPEC_MACHOPIC_OFFSET.
414 (rs6000_emit_prologue): Use MACHOPIC_FUNCTION_BASE_NAME.
415 * config/rs6000/rs6000.md (UNSPEC_MACHOPIC_OFFSET): Define.
416 (builtin_setjmp_receiver): Use MACHOPIC_FUNCTION_BASE_NAME.
417 Set crtl->uses_pic_offset_table.
418
419 2008-10-06 Richard Sandiford <rdsandiford@googlemail.com>
420
421 * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
422 Declare.
423 * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): New macro.
424 * config/rs6000/rs6000.md (UNSPEC_TOCREL): New constant.
425 * config/rs6000/rs6000.c (constant_pool_expr_1): Delete.
426 (constant_pool_expr_p): Use split_const and check the base.
427 (toc_relative_expr_p): Likewise, checking for an UNSPEC_TOCREL
428 instead of a MINUS.
429 (legitimate_constant_pool_address_p): Check toc_relative_p
430 instead of constant_pool_expr_p.
431 (print_operand_address): Always use output_addr_const for
432 constant pool addresses.
433 (rs6000_output_addr_const_extra): New function.
434 (create_TOC_reference): Create an UNSPEC_TOCREL instead of a MINUS.
435
436 2008-10-06 Vladimir Makarov <vmakarov@redhat.com>
437
438 PR middle-end/37535
439
440 * ira-lives.c (mark_reg_live, mark_reg_dead): New functions.
441 (mark_ref_live, mark_ref_dead): Use them.
442 (def_conflicts_with_inputs_p): Remove.
443 (mark_early_clobbers): New function.
444 (process_bb_node_lives): Call preprocess_constraints and
445 mark_early_clobbers.
446
447 * doc/rtx.texi (clobber): Change how RA deals with clobbers.
448
449 2008-10-06 Danny Smith <dannysmith@users.sourceforge.net>
450
451 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Add thread cleanup
452 lib with -mthread switch.
453
454 2008-10-05 Dodji Seketeli <dodji@redhat.com>
455
456 PR c++/37410
457 * dwarf2out.c (dwarf2out_imported_module_or_decl): Split this
458 function in two, making it call a new and reusable
459 dwarf2out_imported_module_or_decl() that takes the containing
460 BLOCK of the declaration in argument.
461 (dwarf2out_imported_module_or_decl_real): New function.
462 (decls_for_scope, gen_decl_die, dwarf2out_decl): Take
463 IMPORTED_DECL in account.
464 * tree.def: Added IMPORTED_DECL node type.
465 * tree.h: Added accessors for IMPORTED_DECL nodes.
466 * tree.c (init_ttree): Initialise IMPORTED_DECL node type.
467
468 2008-10-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
469
470 * doc/gimple.texi: Fix some typos, wrap some long lines,
471 fix some broken wraps with continuations.
472 * tree-ssa-reassoc.c: Fix comment typos.
473
474 2000-10-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
475
476 PR target/37603
477 * pa.c (legitimize_pic_address): Force function labels to memory in
478 word mode.
479
480 2008-10-04 Anton Blanchard <anton@samba.org>
481
482 * config/rs6000/rs6000.c (rs6000_emit_sync): Use gen_lwsync().
483 (rs6000_split_atomic_op): Same.
484 (rs6000_split_compare_and_swap): Same.
485 (rs6000_split_compare_and_swapqhi): Same.
486
487 2008-10-04 Richard Guenther <rguenther@suse.de>
488
489 * tree-ssa-sccvn.c (vn_reference_op_eq): Use types_compatible_p
490 instead of pointer equality.
491 (vn_nary_op_eq): Likewise.
492
493 2008-10-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
494
495 * config/rs6000/rs6000.md (fseldfsf4): Add TARGET_SINGLE_FLOAT
496 condition.
497 (fselsfdf4): Make condition on "TARGET_HARD_FLOAT && TARGET_FPRS &&
498 TARGET_DOUBLE_FLOAT && TARGET_SINGLE_FLOAT".
499
500 2008-10-03 Danny Smith <dannysmith@users.sourceforge.net>
501
502 * config/i386/winnt.c (i386_pe_strip_name_encoding_full):
503 Revert previous change.
504
505 2008-10-03 Tom Tromey <tromey@redhat.com>
506
507 * stringpool.c (ggc_alloc_string): Terminate string.
508
509 2008-10-03 Jakub Jelinek <jakub@redhat.com>
510
511 * gimplify.c (gimplify_function_tree): For -finstrument-functions
512 use gimple_bind_{,set_}block instead of gimple_{,set_}block.
513 * gimple.h (gimple_bind_set_block): Allow second argument to be NULL.
514
515 PR debug/37726
516 * gimplify.c (declare_vars): Use gimple_bind_block instead of
517 gimple_block.
518
519 2008-10-03 Pascal Obry <obry@adacore.com>
520
521 * gcov.c (create_file_names): Properly handle UNIX and DOS
522 directory separators.
523 (make_gcov_file_name): Likewise + convert the ':' DOS drive
524 separator to '~' to ensure clean filenames on Windows.
525
526 2008-10-02 Danny Smith <dannysmith@users.sourceforge.net>
527
528 * config/i386/winnt.c (i386_pe_strip_name_encoding_full):
529 Add a null terminator to the stripped name.
530
531 2008-10-02 David Edelsohn <edelsohn@gnu.org>
532
533 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Revert
534 TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
535 (function_arg_advance): Condition on TARGET_DOUBLE_FLOAT,
536 TARGET_SINGLE_FLOAT. Revert SCALAR_FLOAT_MODE_P condition.
537 (function_arg): Condition on TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
538 (rs6000_function_value): Revert TARGET_DOUBLE_FLOAT,
539 TARGET_SINGLE_FLOAT.
540
541 2008-10-02 Daniel Jacobowitz <dan@codesourcery.com>
542
543 * builtins.c (fold_builtin_pow): Check for 0 ** NEGATIVE.
544
545 2008-10-02 Richard Guenther <rguenther@suse.de>
546
547 PR middle-end/37713
548 * tree-ssa.c (useless_type_conversion_p_1): For COMPLEX_TYPE
549 and VECTOR_TYPE recurse with useless_type_conversion_p which
550 properly handles void pointer conversion.
551
552 2008-10-02 Danny Smith <dannysmith@users.sourceforge.net>
553
554 PR target/37528
555 * config/i386/mingw32.h (LIBGCC_SPEC) : Replace with ..
556 (REAL_LIBGCC_SPEC): New. Always include -lgcc.
557
558 2008-10-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
559
560 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
561 Handle ALTIVEC_BUILTIN_VEC_SPLATS, ALTIVEC_BUILTIN_VEC_PROMOTE,
562 ALTIVEC_BUILTIN_VEC_EXTRACT, and ALTIVEC_BUILTIN_VEC_INSERT specially,
563 they translate to non builtins.
564 * config/rs6000/rs6000.c (altivec_init_builtins): Add new variable
565 opaque_ftype_opaque. Define builtins __builtin_vec_splats,
566 __builtin_vec_promote, __builtin_vec_extract, and
567 __builtin_vec_insert.
568 * config/rs6000/rs6000.h (enum rs6000_builtins): Add
569 ALTIVEC_BUILTIN_VEC_EXTRACT, ALTIVEC_BUILTIN_VEC_PROMOTE,
570 ALTIVEC_BUILTIN_VEC_INSERT, and ALTIVEC_BUILTIN_VEC_SPLATS.
571 * config/rs6000/altivec.h (vec_extract): Define
572 (vec_insert): Define.
573 (vec_splats): Define.
574 (vec_promote): Define.
575
576 2008-10-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
577 Yukishige Shibata <shibata@rd.scei.sony.co.jp>
578 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
579
580 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add Cell
581 Altivec intrinsics.
582 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Delete
583 prototype. Add new parameter, blk.
584 Use BLKmode for the MEM if blk is true.
585 (altivec_expand_builtin): Handle ALTIVEC_BUILTIN_STVLX,
586 ALTIVEC_BUILTIN_STVLXL, ALTIVEC_BUILTIN_STVRX, and
587 ALTIVEC_BUILTIN_STVRXL.
588 Update usage of altivec_expand_lv_builtin.
589 Handle ALTIVEC_BUILTIN_LVLX, ALTIVEC_BUILTIN_LVLXL,
590 ALTIVEC_BUILTIN_LVRX, and ALTIVEC_BUILTIN_LVRXL.
591 (altivec_init_builtins): If compiling for the Cell, also define the
592 cell VMX builtins.
593 * config/rs6000/rs6000.h (rs6000_builtins): Define
594 ALTIVEC_BUILTIN_LVLX, ALTIVEC_BUILTIN_LVLXL, ALTIVEC_BUILTIN_LVRX,
595 ALTIVEC_BUILTIN_LVRXL, ALTIVEC_BUILTIN_STVLX, ALTIVEC_BUILTIN_STVLXL,
596 ALTIVEC_BUILTIN_STVRX, ALTIVEC_BUILTIN_STVRXL,
597 ALTIVEC_BUILTIN_VEC_LVLX, ALTIVEC_BUILTIN_VEC_LVLXL,
598 ALTIVEC_BUILTIN_VEC_LVRX, ALTIVEC_BUILTIN_VEC_LVRXL,
599 ALTIVEC_BUILTIN_VEC_STVLX, ALTIVEC_BUILTIN_VEC_STVLXL,
600 ALTIVEC_BUILTIN_VEC_STVRX, and ALTIVEC_BUILTIN_VEC_STVRXL.
601 * config/rs6000/altivec.md (define_constants): Define UNSPEC_LVLX,
602 UNSPEC_LVLXL, UNSPEC_LVRX, UNSPEC_LVRXL, UNSPEC_STVLX, UNSPEC_STVLXL,
603 UNSPEC_STVRX, and UNSPEC_STVRXL.
604 (altivec_lvlx): New pattern.
605 (altivec_lvlxl): New pattern.
606 (altivec_lvrx): New pattern.
607 (altivec_lvrxl): New pattern.
608 (altivec_stvlx): New pattern.
609 (altivec_stvlxl): New pattern.
610 (altivec_stvrx): New pattern.
611 (altivec_stvrxl): New pattern.
612 * config/rs6000/altivec.h (vec_lvlx): Define if PPU is defined.
613 (vec_lvlxl): Likewise.
614 (vec_lvrx): Define if PPU is defined.
615 (vec_lvrxl): Likewise.
616 (vec_stvlx): Define if PPU is defined.
617 (vec_stvlxl): Likewise.
618 (vec_stvrx): Define if PPU is defined.
619 (vec_stvrxl): Likewise.
620
621 2008-10-01 Geert Bosch <bosch@adacore.com>
622
623 * tree.c (contains_placeholder_p): Return 0 for a SAVE_EXPR.
624
625 2008-10-01 Richard Guenther <rguenther@suse.de>
626
627 PR tree-optimization/37617
628 * tree-ssa-pre.c (create_expression_by_pieces): During FRE
629 do not add to the NEW_SETS.
630
631 2008-10-01 Richard Guenther <rguenther@suse.de>
632
633 PR middle-end/37285
634 * tree-vrp.c (execute_vrp): If we optimized away the default
635 case make sure to promote the label that got in place of it
636 to a default case label.
637
638 2008-10-01 Richard Henderson <rth@redhat.com>
639
640 PR tree-opt/35737
641 * tree-complex.c (set_component_ssa_name): Don't optimize
642 is_gimple_min_invariant values with ssa_names in abnormal phis.
643
644 2008-09-30 Paolo Bonzini <bonzini@gnu.org>
645
646 PR tree-optimization/37662
647 * tree-ssa-ccp.c (fold_gimple_assign): Invert the operands of a
648 commutative binary operation if they are in the wrong order and
649 fold_build2 produces non-GIMPLE.
650
651 2008-09-30 Jakub Jelinek <jakub@redhat.com>
652
653 PR tree-optimization/37662
654 PR tree-optimization/37663
655 * tree-vrp.c (simplify_truth_ops_using_ranges): Don't call
656 get_value_range with non-SSA_NAME. Don't assert operands have been
657 folded, instead just bail out.
658
659 2008-09-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
660
661 * config/rs6000/rs6000.md (fnmadds combiner): Revert typo.
662
663 2008-09-30 Richard Guenther <rguenther@suse.de>
664
665 PR middle-end/37491
666 * tree-vect-transform.c (vect_create_data_ref_ptr): Properly
667 build restrict-qualified pointers.
668 (vectorizable_store): Move alias check later.
669 (vectorizable_load): Likewise.
670
671 2008-09-30 Paolo Bonzini <bonzini@gnu.org>
672
673 * c-common.c (empty_if_body_warning): Remove.
674 * c-common.h (empty_if_body_warning): Remove.
675 * c-parser.c (c_parser_if_body, c_parser_else_body): Implement
676 here the -Wempty-body warning for `if' and `else' statements.
677 * c-typeck.c (c_finish_if_stmt): Do not call empty_body_warning.
678
679 2008-09-29 H.J. Lu <hongjiu.lu@intel.com>
680
681 * config/i386/i386.opt: Add msse2avx.
682
683 * config/i386/linux.h (ASM_SPEC): New. Support -msse2avx.
684 * config/i386/linux64.h (ASM_SPEC): Likewise.
685
686 * doc/invoke.texi: Document -msse2avx.
687
688 2008-09-29 Eric Botcazou <ebotcazou@adacore.com>
689
690 * dwarf2out.c (constant_size): Use HOST_WIDE_INT in parameter type.
691
692 2008-09-29 Joseph Myers <joseph@codesourcery.com>
693
694 * ifcvt.c (noce_emit_store_flag): If using condition from original
695 jump, reverse it if if_info->cond was reversed.
696
697 2008-09-29 Eric Botcazou <ebotcazou@adacore.com>
698
699 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
700 non-constant memory if it cannot be forced to constant memory.
701 Overhaul surrounding code and factor out common condition.
702
703 2008-09-29 Jeff Law <law@redhat.com>
704
705 * reload1.c (alter_reg): Add missing curly braces.
706
707 2008-09-29 Michael J. Eager <eager@eagercon.com>
708
709 * config/rs6000/predicates.md (easy_fp_constant): Single FP consts
710 are easy.
711 * config/rs6000/rs6000.c (rs6000_override_options): Move
712 rs6000_init_hard_regno_mode_ok after all options changed.
713 Set rs6000_single_float, rs6000_double_float if TARGET_HARD_FLOAT.
714 (rs6000_handle_option): Process -msingle-float, -mdouble-float,
715 -msimple-fpu flags. Add warning messages if single FP not configured.
716 (rs6000_file_start): Output gnu_attribute for single-float.
717 (legitimate_lo_sum_address_p): Condition on TARGET_DOUBLE_FLOAT.
718 (rs6000_legitimize_address): Likewise.
719 (rs6000_legitimize_reload_address): Likewise.
720 (rs6000_emit_move): Condition on TARGET_DOUBLE_FLOAT,
721 TARGET_SINGLE_FLOAT.
722 (function_arg_advance): Likewise (partial conversion).
723 (setup_incoming_varargs): Condition on TARGET_DOUBLE_FLOAT.
724 (rs6000_gimplify_va_arg): Condition on TARGET_DOUBLE_FLOAT,
725 TARGET_SINGLE_FLOAT.
726 (rs6000_split_multireg_move): Condition on TARGET_DOUBLE_FLOAT.
727 (rs6000_emit_prologue): Likewise.
728 (rs6000_function_value): Condition on TARGET_DOUBLE_FLOAT,
729 TARGET_SINGLE_FLOAT.
730 (rs6000_libcall_value): Likewise.
731 * config/rs6000/rs6000.h (TARGET_SINGLE_FLOAT): New default to 1.
732 (TARGET_DOUBLE_FLOAT): New default to 1
733 (TARGET_SIMPLE_FPU): New default to 0
734 (TARGET_SINGLE_FPU): New default to 0
735 (TARGET_SINGLE_FLOAT_MODE): New.
736 (TARGET_DOUBLE_FLOAT_MODE): New.
737 * config/rs6000/singlefp.h: New; redefine TARGET_SINGLE_FLOAT,
738 TARGET_DOUBLE_FLOAT, TARGET_SIMPLE_FPU, TARGET_SINGLE_FPU,
739 UNITS_PER_FP_WORD
740 * config/rs6000/rs6000.md (define_mode_iterator): Condition on
741 TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
742 (extendsfdf2, extendsfdf2_fpr, truncdfsf2, truncdfsf2_fpr,
743 copysigndf3,fseldfsf4, negdf2, negdf2_fpr, absdf2, absdf2_fpr,
744 nabsdf2_fpr, adddf3, adddf3_fpr, subdf3, subdf3_fpr, muldf3,
745 muldf3_fpr, divdf3, divdf3_fpr, sqrtdf2, smaxdf3, smindf3,
746 movdfcc, *fseldfdf4, floatsidf2, *floatsidf2_internal,
747 floatunssidf2, *floatunssidf2_internal, fix_truncdfsi2,
748 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
749 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2,
750 rounddf2, floatdidf2, floatsidf_ppc64_mfpgpr, floatsidf_ppc64,
751 floatunssidf_ppc64, fix_truncdfdi2, movdf_hardfloat32,
752 movdf_hardfloat64_mfpgpr, movdf_hardfloat64, extenddftf2_fprs,
753 extenddftf2_internal, trunctfdf2_internal2, fix_trunc_helper,
754 abstf2_internal, movdf_update1, movdf_update2, cmpdf_internal1,
755 cmptf_internal1, *cmptf_internal2): Condition on
756 TARGET_DOUBLE_FLOAT.
757 (aux_truncdfsf2, negsf2, *negsf2, abssf2, *abssf2, addsf3, subsf3,
758 mulsf3, divsf3, sqrtsf2, copysignsf3, smaxsf3, sminsf3, movsfcc,
759 *fselsfsf4, fixuns_truncsfsi2, fix_truncsfsi2, floatunssisf2,
760 btruncsf2, ceilsf2, floorsf2, roundsf2, floatdisf2_internal1,
761 floatdisf2_internal2, *movsf_hardfloat, trunctfsf2_fprs,
762 *movsf_update1, *movsf_update2, *cmpsf_internal1): Condition on
763 TARGET_SINGLE_FLOAT.
764 (divsf3, sqrtsf2, divdf3, divdf3_fpr): Condition on TARGET_SIMPLE_FPU.
765 * config/rs6000/rs6000.opt (-msingle-float): New.
766 (-mdouble-float): New.
767 (-msimple-fpu): New.
768 * doc/invoke.texi (RS/6000 and PowerPC Options): Add
769 -msingle-float, -mdouble-float, -msimple-fpu options.
770 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Set
771 _SOFT_DOUBLE for -msingle-float.
772 * config.gcc: New config for target=powerpc-xilinx-eabi.
773
774 2008-09-29 Tobias Grosser <grosser@fim.uni-passau.de>
775
776 * graphite.c (dot_all_scops_1): Remove unused checks. SCoPs always
777 have exit and entry.
778 (new_scop): Take entry and exit edge to define new SCoP.
779 (sd_region_p): New structure used during SCoP detection.
780 (move_scops): Delete.
781 (move_sd_regions): New.
782 (scopdet_info): Change the definition from edges back to basic_blocks.
783 (scopdet_edge_info): Work on basic_blocks and rename to
784 scopdet_basic_block_info.
785 (split_difficult_bb): At the moment removed. We should later
786 add it at another place.
787 (build_scops_1): Work on basic_blocks.
788 (bb_in_sd_region): New.
789 (find_single_entry_edge): New.
790 (find_single_exit_edge): New.
791 (create_single_entry_edge): New.
792 (sd_region_without_exit): New.
793 (create_single_exit_edge): New.
794 (unmark_exit_edges): New.
795 (mark_exit_edges): New.
796 (create_sese_edges): New.
797 (build_graphite_scops): New.
798 (build_scops): Make SCoPs SESE.
799 (limit_scops): Use the new functions.
800
801 2008-09-29 Hans-Peter Nilsson <hp@axis.com>
802
803 * config/cris/cris.h (IRA_COVER_CLASSES): Define.
804
805 2008-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
806
807 PR target/37640
808 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Force
809 address to a register before taking the lower part.
810
811 2008-09-28 Kaz Kojima <kkojima@gcc.gnu.org>
812
813 * config/sh/sh.h (OVERRIDE_OPTIONS): Unset flag_dwarf2_cfi_asm
814 for SHmedia.
815
816 2008-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
817 Kaushal Kantawala <kaushal_kantawala@playstation.sony.com>
818
819 PR tree-opt/36891
820 * tree-ssa-loop-im.c (rewrite_reciprocal): Set DECL_GIMPLE_REG_P on
821 the newly created variable.
822 Create a VECTOR_CST of all 1s for vector types.
823
824 2008-09-28 Eric Botcazou <ebotcazou@adacore.com>
825
826 PR middle-end/36575
827 * fold-const.c (div_and_round_double) <ROUND_DIV_EXPR>: Fix typo.
828
829 2008-09-28 Eric Botcazou <ebotcazou@adacore.com>
830
831 * expmed.c (store_fixed_bit_field): Always use convert_to_mode in
832 order to convert between modes.
833 (extract_bit_field_1): Test TRULY_NOOP_TRUNCATION on the right mode.
834
835 2008-09-27 Kaz Kojima <kkojima@gcc.gnu.org>
836
837 * config/sh/sh.c (sh_gimplify_va_arg_expr): Use VIEW_CONVERT_EXPR
838 if needed.
839
840 2008-09-26 Vladimir Makarov <vmakarov@redhat.com>
841
842 Revert:
843 2008-09-25 Vladimir Makarov <vmakarov@redhat.com>
844 * ira-lives.c:...
845 * doc/rtl.texi:...
846
847 2008-09-26 Adam Nemet <anemet@caviumnetworks.com>
848
849 * config/mips/mips.h (ISA_HAS_DMUL3, ISA_HAS_BADDU, ISA_HAS_BBIT,
850 ISA_HAS_CINS, ISA_HAS_EXTS, ISA_HAS_SEQ_SNE, ISA_HAS_POP): Change
851 them to yield false with MIPS16.
852
853 2008-09-26 Jakub Jelinek <jakub@redhat.com>
854
855 PR middle-end/37275
856 * dwarf2out.c (tls_mem_loc_descriptor): New function.
857 (mem_loc_descriptor): Use it for MEM. For PLUS fail if second
858 mem_loc_descriptor failed. Accept UNSPEC.
859 (loc_descriptor): Use tls_mem_loc_descriptor for MEM. For PARALLEL
860 fail if one of the loc_descriptor calls for pieces failed.
861 (loc_descriptor_from_tree_1): Handle even DECL_EXTERNAL __thread vars,
862 as long as they bind locally. For COMPONENT_REF, ARRAY_REF etc. fail
863 if loc_descriptor_from_tree_1 on offset failed.
864
865 PR middle-end/37576
866 * opts.c (common_handle_option): Don't call print_specific_help with
867 CL_SAVE as first argument.
868
869 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
870 Steve Ellcey <sje@cup.hp.com>
871
872 * configure: Regenerate for new libtool.
873 * aclocal.m4: Ditto.
874
875 2008-09-26 Pat Haugen <pthaugen@us.ibm.com>
876
877 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Use correct
878 alias set on MEM when saving stack pointer.
879 * config/rs6000/rs6000.md (allocate_stack): Likewise
880
881 2008-09-26 Dorit Nuzman <dorit@il.ibm.com>
882
883 PR tree-optimization/37574
884 * tree-vectorizer.c (vect_is_simple_use): Fix indentation.
885 * tree-vect-transform.c (vect_get_constant_vectors): Use vectype
886 instead of vector_type for constants. Take computation out of loop.
887 (vect_get_vec_def_for_operand): Use only vectype for constant case,
888 and use only vector_type for invariant case.
889 (get_initial_def_for_reduction): Use vectype instead of vector_type.
890
891 2008-09-25 Jakub Jelinek <jakub@redhat.com>
892
893 PR c/37645
894 * c-common.c (handle_weakref_attribute): Ignore the attribute unless
895 the decl is a VAR_DECL or FUNCTION_DECL.
896
897 2008-09-25 Vladimir Makarov <vmakarov@redhat.com>
898
899 PR middle-end/37535
900 * ira-lives.c (mark_reg_live, mark_reg_dead): New functions.
901 (mark_ref_live, mark_ref_dead): Use them.
902 (def_conflicts_with_inputs_p): Remove.
903 (mark_early_clobbers): New function.
904 (process_bb_node_lives): Call preprocess_constraints and
905 mark_early_clobbers.
906
907 * doc/rtl.texi (clobber): Change how RA deals with clobbers.
908
909 2008-09-25 Vladimir Makarov <vmakarov@redhat.com>
910
911 PR middle-end/37448
912 * ira-int.h (IRA_ALLOCNO_TEMP): Rename to ALLOCNO_TEMP.
913 (ira_compress_allocno_live_ranges): New prototype.
914
915 * ira-color.c: Rename IRA_ALLOCNO_TEMP to ALLOCNO_TEMP.
916 (coalesced_allocnos_living_at_program_points): New.
917 (coalesced_allocnos_live_at_points_p,
918 set_coalesced_allocnos_live_points): New functions.
919 (coalesce_spill_slots): Rewrite.
920
921 * ira-lives.c (remove_some_program_points_and_update_live_ranges,
922 ira_compress_allocno_live_ranges): New functions.
923
924 * ira-build.c (ira_flattening): Call
925 ira_compress_allocno_live_ranges.
926 (ira_build): Ditto.
927
928 2008-09-25 H.J. Lu <hongjiu.lu@intel.com>
929
930 * config/i386/i386.md: Check cmp/branch fuse for cmp peephole
931 optimization.
932
933 2008-09-25 Richard Sandiford <rdsandiford@googlemail.com>
934
935 * combine.c (make_compound_operation): Handle the 'E' format.
936 (count_rtxs): Likewise.
937 (update_table_tick): Likewise.
938 (get_last_value_validate): Likewise.
939
940 2008-09-25 Eric Botcazou <ebotcazou@adacore.com>
941
942 * dbxout.c (dbxout_parms): Fetch the inner REG inside a PARALLEL.
943
944 2008-09-25 Sergei Dyshel <sergeid@il.ibm.com>
945
946 * matrix-reorg.c (transform_allocation_sites): Initializers
947 added to avoid the warning.
948
949 2008-09-25 Martin Jambor <mjambor@suse.cz>
950
951 * cgraph.c (free_nodes): New variable.
952 (NEXT_FREE_NODE): New macro.
953 (cgraph_create_node): Reuse nodes from the free list. Do not
954 update uid if doing so.
955 (cgraph_remove_node): Add the node to the free list.
956
957 2008-09-25 Gerald Pfeifer <gerald@pfeifer.com>
958
959 * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
960
961 2008-09-24 Richard Henderson <rth@redhat.com>
962
963 * dwarf2.h (DW_OP_GNU_encoded_addr): New.
964 * unwind-dw2.c (execute_stack_op): Handle it.
965
966 2008-09-24 David Edelsohn <edelsohn@gnu.org>
967
968 Revert:
969 2008-09-24 Michael J. Eager <eager@eagercon.com>
970
971 2008-09-24 Aldy Hernandez <aldyh@redhat.com>
972
973 * c-common.c (fname_decl): New location argument.
974 * c-common.h (fname_decl): Same.
975 * c-parser.c (c_lex_one_token): Use {warning,error}_at instead of
976 {warning,error}.
977 (c_parser_typeof_specifier): Same.
978 (c_parser_parms_list_declarator): Same.
979 (c_parser_asm_string_literal): Same.
980 (c_parser_compound_statement_nostart): Same.
981 (c_parser_label): Same.
982 (c_parser_do_statement): Same.
983 (c_parser_asm_statement): Same.
984 (c_parser_unary_expression): Same.
985 (c_parser_sizeof_expression): Same.
986 (c_parser_postfix_expression): Same.
987 (c_parser_pragma): Same.
988 (c_parser_omp_clause_collapse): Same.
989 (c_parser_omp_clause_num_threads): Same.
990 (c_parser_omp_clause_schedule): Same.
991 (c_parser_omp_all_clauses): Same.
992 (c_parser_omp_sections_scope): Same.
993 (c_parser_omp_for_loop): Same. Pass condition's location to
994 c_objc_common_truthvalue_conversion.
995 (c_parser_enum_specifier): Remove comment.
996
997 2008-09-24 Michael J. Eager <eager@eagercon.com>
998
999 * config/rs6000/predicates.md (easy_fp_constant): Single FP consts
1000 are easy.
1001 * config/rs6000/rs6000.c (rs6000_override_options): Move
1002 rs6000_init_hard_regno_mode_ok after all options changed.
1003 Set rs6000_single_float, rs6000_double_float if TARGET_HARD_FLOAT.
1004 (rs6000_handle_option): Process -msingle-float, -mdouble-float,
1005 -msimple-fpu flags. Add warning messages if single FP not configured.
1006 (rs6000_file_start): Output gnu_attribute for single-float.
1007 (legitimate_lo_sum_address_p): Condition on TARGET_DOUBLE_FLOAT.
1008 (rs6000_legitimize_address): Likewise.
1009 (rs6000_legitimize_reload_address): Likewise.
1010 (rs6000_emit_move): Condition on TARGET_DOUBLE_FLOAT,
1011 TARGET_SINGLE_FLOAT.
1012 (function_arg_advance): Likewise.
1013 (function_arg): Likewise.
1014 (setup_incoming_varargs): Condition on TARGET_DOUBLE_FLOAT.
1015 (rs6000_gimplify_va_arg): Condition on TARGET_DOUBLE_FLOAT,
1016 TARGET_SINGLE_FLOAT.
1017 (rs6000_split_multireg_move): Condition on TARGET_DOUBLE_FLOAT.
1018 (rs6000_emit_prologue): Likewise.
1019 (rs6000_function_value): Condition on TARGET_DOUBLE_FLOAT,
1020 TARGET_SINGLE_FLOAT.
1021 (rs6000_libcall_value): Likewise.
1022 * config/rs6000/rs6000.h (TARGET_SINGLE_FLOAT): New default to 1.
1023 (TARGET_DOUBLE_FLOAT): New default to 1
1024 (TARGET_SIMPLE_FPU): New default to 0
1025 (TARGET_SINGLE_FPU): New default to 0
1026 (TARGET_SINGLE_FLOAT_MODE): New.
1027 (TARGET_DOUBLE_FLOAT_MODE): New.
1028 * config/rs6000/singlefp.h: New; redefine TARGET_SINGLE_FLOAT,
1029 TARGET_DOUBLE_FLOAT, TARGET_SIMPLE_FPU, TARGET_SINGLE_FPU,
1030 UNITS_PER_FP_WORD
1031 * config/rs6000/rs6000.md (define_mode_iterator): Condition on
1032 TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
1033 (extendsfdf2, extendsfdf2_fpr, truncdfsf2, truncdfsf2_fpr,
1034 copysigndf3,fseldfsf4, negdf2, negdf2_fpr, absdf2, absdf2_fpr,
1035 nabsdf2_fpr, adddf3, adddf3_fpr, subdf3, subdf3_fpr, muldf3,
1036 muldf3_fpr, divdf3, divdf3_fpr, sqrtdf2, smaxdf3, smindf3,
1037 movdfcc, *fseldfdf4, floatsidf2, *floatsidf2_internal,
1038 floatunssidf2, *floatunssidf2_internal, fix_truncdfsi2,
1039 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
1040 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2,
1041 rounddf2, floatdidf2, floatsidf_ppc64_mfpgpr, floatsidf_ppc64,
1042 floatunssidf_ppc64, fix_truncdfdi2, movdf_hardfloat32,
1043 movdf_hardfloat64_mfpgpr, movdf_hardfloat64, extenddftf2_fprs,
1044 extenddftf2_internal, trunctfdf2_internal2, fix_trunc_helper,
1045 abstf2_internal, movdf_update1, movdf_update2, cmpdf_internal1,
1046 cmptf_internal1, *cmptf_internal2): Condition on
1047 TARGET_DOUBLE_FLOAT.
1048 (aux_truncdfsf2, negsf2, *negsf2, abssf2, *abssf2, addsf3, subsf3,
1049 mulsf3, divsf3, sqrtsf2, copysignsf3, smaxsf3, sminsf3, movsfcc,
1050 *fselsfsf4, fixuns_truncsfsi2, fix_truncsfsi2, floatunssisf2,
1051 btruncsf2, ceilsf2, floorsf2, roundsf2, floatdisf2_internal1,
1052 floatdisf2_internal2, *movsf_hardfloat, trunctfsf2_fprs,
1053 *movsf_update1, *movsf_update2, *cmpsf_internal1): Condition on
1054 TARGET_SINGLE_FLOAT.
1055 (divsf3, sqrtsf2, divdf3, divdf3_fpr): Condition on TARGET_SIMPLE_FPU.
1056 * config/rs6000/rs6000.opt (-msingle-float): New.
1057 (-mdouble-float): New.
1058 (-msimple-fpu): New.
1059 * doc/invoke.texi (RS/6000 and PowerPC Options): Add
1060 -msingle-float, -mdouble-float, -msimple-fpu options.
1061 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Set
1062 _SOFT_DOUBLE for -msingle-float.
1063 * config.gcc: New config for target=powerpc-xilinx-eabi.
1064
1065 2008-09-23 Eric Botcazou <ebotcazou@adacore.com>
1066
1067 * config/sparc/constraints.md: New file.
1068 * config/sparc/sparc.md: Include it.
1069 * config/sparc/sparc-protos.h (memory_ok_for_ldd): Declare.
1070 (sparc_extra_constraint_check): Delete.
1071 * config/sparc/sparc.c (register_ok_for_ldd): Minor tweaks.
1072 (memory_ok_for_ldd): New predicate.
1073 (sparc_extra_constraint_check): Delete.
1074 * config/sparc/sparc.h (REG_CLASS_FROM_LETTER): Likewise.
1075 (CONST_OK_FOR_LETTER_P): Likewise.
1076 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
1077 (EXTRA_CONSTRAINT): Likewise.
1078
1079 2008-08-23 Steve Ellcey <sje@cup.hp.com>
1080
1081 * regrename.c (do_replace): Copy REG_POINTER value to new reg.
1082
1083 2008-09-23 Richard Sandiford <rdsandiford@googlemail.com>
1084
1085 * alias.c (find_base_value): Use FIND_BASE_TERM.
1086 * doc/tm.texi (FIND_BASE_TERM): Update documentation.
1087
1088 2008-09-23 Richard Sandiford <rdsandiford@googlemail.com>
1089
1090 * config/i386/i386.c: Include cselib.h.
1091 (ix86_pic_register_p): New function.
1092 (ix86_delegitimize_address): Use it to check for the PIC register.
1093
1094 2008-09-23 Richard Sandiford <rdsandiford@googlemail.com>
1095
1096 * doc/tm.texi (FIND_BASE_TERM): Expand documentation.
1097 * config/i386/i386.c (ix86_find_base_term): Don't check for
1098 SYMBOL_REF and LABEL_REF.
1099
1100 2008-09-23 Richard Sandiford <rdsandiford@googlemail.com>
1101
1102 * config/i386/i386.c (ix86_delegitimize_address): Wrap the
1103 constant PLUS in a CONST.
1104
1105 2008-09-23 Kai Tietz <kai.tietz@onevision.com>
1106
1107 * config/i386/i386.c (ix86_function_ok_for_sibcall): Correct
1108 check for sibcall support for w64.
1109
1110 2008-09-23 Eric Botcazou <ebotcazou@adacore.com>
1111
1112 * c-ppoutput.c (cb_used_define): Do nothing for a builtin node.
1113
1114 2008-09-23 Aldy Hernandez <aldyh@redhat.com>
1115
1116 * c-tree.h: Add argument to c_objc_common_truthvalue_conversion,
1117 parser_build_binary_op.
1118 * c-decl.c (build_enumerator): Pass location to build_binary_op.
1119 * c-typeck.c (build_array_ref): Same.
1120 (parser_build_unary_op): New location argument.
1121 (pointer_diff): Pass location to build_binary_op,
1122 c_objc_common_truthvalue_conversion.
1123 (build_modify_expr): Same.
1124 (build_unary_op): New location argument.
1125 (build_binary_op): New location argument.
1126 (c_objc_common_truthvalue_conversion): Pass location to
1127 c_*common_truthvalue_conversion.
1128 * c-convert.c (convert): Same.
1129 * c-common.c (binary_op_error): New location argument.
1130 (pointer_int_sum): Pass location to build_binary_op.
1131 (c_common_truthvalue_conversion): New location argument.
1132 (warn_for_sign_compare): Same.
1133 * c-common.h: Add location argument to c_common_truthvalue_conversion,
1134 binary_op_error, build_binary_op, warn_for_sign_compare.
1135 * c-parser.c (c_parser_condition): Pass location to
1136 c_*common_truthvalue_conversion.
1137 (c_parser_conditional_expression): Save condition's location and pass
1138 it on down.
1139 (c_parser_binary_expression): Same, but for the binary operator's
1140 location.
1141 (c_parser_omp_for_loop): Pass location to
1142 c_objc_common_truthvalue_conversion.
1143
1144 2008-09-23 Martin Jambor <mjambor@suse.cz>
1145
1146 * cgraph.c (cgraph_free_edge): Use sizeof(*e).
1147 (cgraph_node_remove_callees): New temporary f. Hold the next item
1148 in f when looping.
1149 (cgraph_node_remove_callers): Likewise.
1150
1151 * ipa-prop.c (ipa_edge_removal_hook): Use ATTRIBUTE_UNUSED.
1152 (ipa_node_removal_hook): Likewise.
1153
1154 * doc/gimple.texi (gimple_copy_call_skip_args): Changed to
1155 gimple_call_copy_skip_args and moved to the gimple_call section.
1156 * gimple.c (gimple_copy_call_skip_args): Renamed to
1157 gimple_call_copy_skip_args. Changed al users.
1158
1159 2008-09-22 Vladimir Makarov <vmakarov@redhat.com>
1160
1161 * ira-color.c (start_allocno_priorities): Rename to
1162 setup_allocno_priorities. Use costs and
1163 ALLOCNO_EXCESS_PRESSURE_POINTS_NUM instead of frequencies and
1164 range lengths. Get rid off doubles.
1165 (ira_fast_allocations): Call start_allocno_priorities.
1166
1167 2008-09-22 David Daney <ddaney@avtrex.com>
1168
1169 PR target/37593
1170 * config/mips/mips.h (FUNCTION_PROFILER): Call _mcount via a
1171 register if TARGET_LONG_CALLS.
1172
1173 2008-09-22 Richard Guenther <rguenther@suse.de>
1174
1175 PR tree-optimization/37145
1176 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Re-enable
1177 value-numbering union accesses with their offset and size only.
1178 (visit_reference_op_load): Fix simplification of inserted conversions.
1179 * tree-ssa-pre.c (find_or_generate_expression): Do not
1180 recursively generate expressions if running FRE.
1181
1182 2008-09-22 Adam Nemet <anemet@caviumnetworks.com>
1183
1184 * config/mips/mips.h (ISA_HAS_BADDU): New macro.
1185 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el, *baddu_di<mode>):
1186 New patterns.
1187
1188 2008-09-22 Richard Guenther <rguenther@suse.de>
1189
1190 PR tree-optimization/37145
1191 * tree-ssa-pre.c (fully_constant_expression): Simplify builtin calls.
1192 (phi_translate_1): Constant fold references.
1193
1194 2008-09-22 Ira Rosen <irar@il.ibm.com>
1195
1196 PR tree-optimization/37482
1197 * tree-vectorizer.h (struct _slp_instance): Add new field.
1198 (SLP_INSTANCE_FIRST_LOAD_STMT): New.
1199 (get_earlier_stmt): New function.
1200 * tree-vect-analyze.c (vect_find_first_load_in_slp_instance): New
1201 function.
1202 (vect_analyze_slp_instance): Set SLP_INSTANCE_FIRST_LOAD_STMT.
1203 * tree-vect-transform.c (vect_finish_stmt_generation): Remove the
1204 asserts that GSI points to the scalar statement being vectorized.
1205 Set new statement location according to GSI.
1206 (vect_schedule_slp_instance): Use GSI of
1207 SLP_INSTANCE_FIRST_LOAD_STMT when vectorizing loads.
1208
1209 2008-09-21 Jan Hubicka <jh@suse.cz>
1210
1211 * ipa-cp.c (ipcp_estimate_growth): Check recursive calls.
1212 (ipcp_insert_stage): Update dead_nodes bitmap.
1213
1214 2008-09-22 Danny Smith <dannysmith@users.sourceforge.net>
1215
1216 PR target/37528
1217 * config/i386/t-cygming (SHLIB_LC): Remove.
1218 (SHLIB_LINK): Don't add static objects to SHLIB_IMPLIB
1219 * config/i386/t-cygwin (SHLIB_LC): Specify all required libraries.
1220
1221 2008-09-22 Hans-Peter Nilsson <hp@axis.com>
1222
1223 PR middle-end/37170
1224 PR middle-end/37280
1225 * final.c (mark_symbol_ref_as_used): New helper function.
1226 (output_operand): Instead of just looking inside MEMs for
1227 SYMBOL_REFs, use new helper function and for_each_rtx.
1228 * varasm.c (assemble_external): Move #ifndef ASM_OUTPUT_EXTERNAL
1229 to after weak-handling. Don't mark decls with TREE_STATIC as weak.
1230 Make head comment more general.
1231 * config/darwin.c (machopic_output_indirection): Handle weak
1232 references here, like in assemble_external.
1233
1234 2008-09-21 Eric Botcazou <ebotcazou@adacore.com>
1235
1236 * config/sparc/sparc-protos.h (gen_compare_operator): Declare.
1237 (sparc_emit_float_lib_cmp): Change return type.
1238 * config/sparc/sparc.c (gen_compare_reg): Add comment about TFmode.
1239 (gen_compare_operator): New function.
1240 (sparc_emit_float_lib_cmp): Return the new operator to be used in
1241 the comparison sequence. Minor tweaks.
1242 * config/sparc/sparc.md (seq, sne, sgt, slt, sge, sle): Assert
1243 that the final operator and the result of sparc_emit_float_lib_cmp
1244 match for software TFmode; use emit_insn in lieu of emit_jump_insn.
1245 (beq, bne, bgt, blt, bge, ble, bunordered, bordered, bungt, bunlt,
1246 buneq, bunge, bunle, bltgt): Assert that the final operator and the
1247 result of sparc_emit_float_lib_cmp match for software TFmode.
1248 (movqicc, movhicc, movsicc, movdicc): Merge into...
1249 (mov<I:mode>cc): ...this.
1250 (movsfcc, movdfcc, movtfcc): Merge into...
1251 (mov<F:mode>cc): ...this.
1252 (movqi_cc_sp64, movhi_cc_sp64, movsi_cc_sp64, movdi_cc_sp64): Merge
1253 into...
1254 (mov<I:mode>_cc_v9): ...this.
1255 (movdi_cc_sp64_trunc): Delete.
1256 (movqi_cc_reg_sp64, movhi_cc_reg_sp64, movsi_cc_reg_sp64,
1257 movdi_cc_reg_sp64): Merge into...
1258 (mov<I:mode>_cc_reg_sp64): ...this.
1259 (movsf_cc_sp64): Rename into...
1260 (movsf_cc_v9): ...this.
1261 (movdf_cc_sp64): Rename into...
1262 (movdf_cc_v9): ...this.
1263 (movtf_cc_hq_sp64): Rename into...
1264 (movtf_cc_hq_v9): ...this.
1265 (movtf_cc_sp64): Rename into...
1266 (movtf_cc_v9): ...this. Adjust for renaming of movdf_cc_sp64.
1267
1268 2008-09-21 Diego Novillo <dnovillo@google.com>
1269
1270 * doc/gccint.texi: Include generic.texi and gimple.texi.
1271 Re-order index.
1272 * doc/tree-ssa.texi (GENERIC): Move to generic.texi.
1273 (GIMPLE): Move to gimple.texi.
1274 (Annotations): Remove references to to stmt_ann_t and
1275 ssa_name_ann_t.
1276 (SSA Operands): Rename from 'Statement Operands'.
1277 * doc/generic.texi: New.
1278 * doc/gimple.texi: New.
1279 * Makefile.in (TEXI_GCCINT_FILES): Add generic.texi and gimple.texi.
1280 * Makefile.in (TEXI_GCCINT_FILES):
1281 * gimple.c (gimple_copy_call_skip_args): Rename from
1282 giple_copy_call_skip_args. Update all users.
1283 * doc/gimple.texi (gimple_copy_call_skip_args): Document.
1284
1285 2008-09-21 Ira Rosen <irar@il.ibm.com>
1286
1287 PR tree-optimization/37539
1288 * tree-vect-transform.c (vect_transform_strided_load): Save vector
1289 statement in related statement field only for the first load of the
1290 group of loads with the same data reference.
1291
1292 2008-09-20 Adam Nemet <anemet@caviumnetworks.com>
1293
1294 * config/mips/mips.h (TUNE_OCTEON): New macro.
1295 * config/mips/mips.c (mips_issue_rate): Return 2 for Octeon.
1296 (mips_multipass_dfa_lookahead): Return 2 for Octeon.
1297 * config/mips/octeon.md: New file.
1298 * config/mips/mips.md: Include octeon.md. Restore
1299 semi-alphabetical order of include files.
1300
1301 2008-09-20 H.J. Lu <hongjiu.lu@intel.com>
1302
1303 PR target/37571
1304 * config/i386/i386.md (*jcc_fused_1): Removed.
1305 (*jcc_fused_2): Likewise.
1306 (*jcc_fused_3): Likewise.
1307 (*jcc_fused_4): Likewise.
1308
1309 2008-09-20 Richard Sandiford <rdsandiford@googlemail.com>
1310
1311 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Define.
1312 (IRA_COVER_CLASSES): Refer to TARGET_IRA_COVER_CLASSES.
1313 * target.h (gcc_target): Add ira_cover_classes.
1314 * ira.c: Remove IRA_COVER_CLASSES guards.
1315 (setup_cover_and_important_classes): Use targetm.ira_cover_classes
1316 instead of IRA_COVER_CLASSES.
1317 (setup_cover_and_important_classes): Remove IRA_COVER_CLASSES guard.
1318 (setup_class_translate): Likewise.
1319 (setup_reg_class_intersect_union): Likewise.
1320 (find_reg_class_closure): Replace IRA_COVER_CLASSES guard with a
1321 test of targetm.ira_cover_classes.
1322 * opts.c (decode_options): Use targetm.ira_cover_classes instead
1323 of IRA_COVER_CLASSES.
1324 * target-def.h (TARGET_IRA_COVER_CLASSES): Define.
1325 (TARGET_INITIALIZER): Include it.
1326 * targhooks.h (default_ira_cover_classes): Declare.
1327 * targhooks.c (default_ira_cover_classes): New function.
1328
1329 2008-09-19 Bob Wilson <bob.wilson@acm.org>
1330
1331 * config/xtensa/xtensa.md (reload<mode>_literal): Handle MEM operands.
1332
1333 2008-09-19 Ian Lance Taylor <iant@google.com>
1334
1335 * varasm.c (narrowing_initializer_constant_valid_p): Return
1336 NULL_TREE if ENDTYPE is not an integer.
1337
1338 2008-09-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
1339
1340 PR tree-opt/30930
1341 * tree-ssa.c (execute_update_addresses_taken): Also update
1342 DECL_GIMPLE_REG_P for vector and complex types.
1343
1344 2008-09-19 Andrew MacLeod <amacleod@redhat.com>
1345 Jan Hubicka <jh@suse.cz>
1346
1347 PR middle-end/37567
1348 * tree-ssa-ter.c (free_temp_expr_table): Make sure fields are actually
1349 empty before freeing them.
1350 (find_replaceable_exprs): Move asserts to free_temp_expr_table.
1351
1352 2008-09-18 Bob Wilson <bob.wilson@acm.org>
1353
1354 * configure.ac: Add HAVE_AS_TLS check for Xtensa.
1355 * config/xtensa/predicates.md (tls_symbol_operand): New.
1356 * config/xtensa/xtensa.c (TARGET_HAVE_TLS): Define.
1357 (TARGET_CANNOT_FORCE_MEM): Define.
1358 (xtensa_tls_symbol_p): New.
1359 (xtensa_emit_move_sequence): Check for and legitimize TLS addresses.
1360 (xtensa_legitimate_address_p): Disallow constant pool TLS references.
1361 (xtensa_tls_module_base): New.
1362 (xtensa_call_tls_desc): New.
1363 (xtensa_legitimize_tls_address): New.
1364 (xtensa_legitimize_address): Handle TLS symbols.
1365 (xtensa_tls_referenced_p_1): New.
1366 (xtensa_tls_referenced_p): New.
1367 (xtensa_output_addr_const_extra): Handle UNSPEC_TPOFF and
1368 UNSPEC_DTPOFF.
1369 (XTENSA_BUILTIN_THREAD_POINTER): New.
1370 (XTENSA_BUILTIN_SET_THREAD_POINTER): New.
1371 (xtensa_init_builtins): Set NOTHROW and READONLY for umulsidi3
1372 builtin. Add declarations for __builtin_thread_pointer and
1373 __builtin_set_thread_pointer.
1374 (xtensa_fold_builtin): Recognize new builtins.
1375 (xtensa_expand_builtin): Expand new builtins.
1376 * config/xtensa/xtensa.h (XCHAL_HAVE_THREADPTR): Define default value.
1377 (TARGET_THREADPTR): Define.
1378 (HAVE_AS_TLS): Define default value.
1379 (LEGITIMATE_CONSTANT_P): Disallow TLS references.
1380 * config/xtensa/xtensa.md (UNSPEC_TPOFF, UNSPEC_DTPOFF): New.
1381 (UNSPEC_TLS_FUNC, UNSPEC_TLS_ARG, UNSPEC_TLS_CALL, UNSPEC_TP): New.
1382 (UNSPECV_SET_TP): New.
1383 (sym_TPOFF, sym_DTPOFF): New.
1384 (load_tp, set_tp, tls_func, tls_arg, tls_call): New.
1385 * config/xtensa/xtensa-protos.h (xtensa_tls_referenced_p): Declare.
1386 * configure: Regenerated.
1387
1388 2008-09-18 H.J. Lu <hongjiu.lu@intel.com>
1389
1390 PR target/37394
1391 * config/ia64/ia64.c (ia64_optimization_options): Move
1392 checking and setting flag_schedule_insns_after_reload and
1393 ia64_flag_schedule_insns2 back to ...
1394 (ia64_override_options): Here.
1395
1396 2008-09-18 Andrew Pinski <andrew_pinski@playstation.sony.com>
1397
1398 PR rtl-opt/37451
1399 * loop-doloop.c (doloop_modify): New argument zero_extend_p and
1400 zero extend count after the correction to it is done.
1401 (doloop_optimize): Update call to doloop_modify, don't zero extend
1402 count before call.
1403
1404 2008-09-18 Martin Jambor <mjambor@suse.cz>
1405
1406 * ipa-cp.c (ipcp_estimate_growth): Return 0 instead of false.
1407
1408 * ipa-prop.c: Correct comments.
1409 * ipa-prop.h: Likewise.
1410
1411 2008-09-18 Jan Hubicka <jh@suse.cz>
1412
1413 PR middle-end/37448
1414 * ipa-reference.c (ipa_reference_local_vars_info_d,
1415 ipa_reference_global_vars_info_d,
1416 ipa_reference_local_vars_info_t, ipa_reference_global_vars_info_t,
1417 ipa_reference_vars_info_t): Move here from ipa-reference.h
1418 (node_duplication_hook_holder, node_removal_hook_holder): New.
1419 (get_reference_vars_info_from_cgraph): Rename to ...
1420 (get_reference_vars_info): ... this one, use cgraph uids.
1421 (get_local_reference_vars_info, get_global_reference_vars_info):
1422 Use cgraph instead of decl.
1423 (ipa_reference_get_read_local, ipa_reference_get_written_local):
1424 Remove.
1425 (ipa_reference_get_read_global, ipa_reference_get_not_read_global
1426 ipa_reference_get_written_global,
1427 ipa_reference_get_not_written_global): Use cgraph argument.
1428 (check_call): Simplify avail check.
1429 (scan_stmt_for_static_refs): Update.
1430 (propagate_bits): Update.
1431 (merge_callee_local_info): Remove.
1432 (init_function_info): Use cgraph nodes.
1433 (clean_function_local_data): Break out from ...
1434 (clean_function): ... here.
1435 (copy_local_bitmap, copy_global_bitmap): New functions.
1436 (duplicate_node_data, remove_node_data): New functions.
1437 (generate_summary): Register hooks; use visibility instead of
1438 master clones.
1439 (propafate): Use cgraph nodes; copy bitmap to each node in cycle.
1440 * ipa-reference.h (ipa_reference_local_vars_info_d,
1441 ipa_reference_global_vars_info_d,
1442 ipa_reference_local_vars_info_t, ipa_reference_global_vars_info_t,
1443 ipa_reference_vars_info_t): Move to ipa-reference.c
1444 (ipa_reference_get_read_local, ipa_reference_get_written_local):
1445 Remove.
1446 (ipa_reference_get_read_global, ipa_reference_get_written_global,
1447 ipa_reference_get_not_read_global,
1448 ipa_reference_get_not_written_global): Update prototype.
1449 * ipa-pure-const.c (funct_state_vec): Turn into VECtor.
1450 (init_state): Remove.
1451 (node_duplication_hook_holder, node_removal_hook_holder): New.
1452 (get_function_state, set_function_state): Use VECtor.
1453 (analyze_function): Check body availability.
1454 (add_new_function): Likewise.
1455 (duplicate_node_data, remove_node_data): New.
1456 (generate_summary): Register hooks; do not care about clones.
1457 (propafate): Do not care about clones; recursive functions are
1458 not looping.
1459 * ipa-utils.c (searchc, ipa_utils_reduced_inorder): Do not skip clones.
1460 * ipa-prop.c (edge_removal_hook_holder, node_removal_hook_holder,
1461 * edge_duplication_hook_holder, node_duplication_hook_holder): Make
1462 static.
1463 * tree-flow.h (function_ann_d): Remove reference_vars_info.
1464 * tree-ssa-opreands.c (add_call_clobber_ops, add_call_read_ops):
1465 Update call of ipa-reference accesors.
1466
1467 2008-09-18 Simon Baldwin <simonb@google.com>
1468
1469 * c-opts.c (c_common_handle_option): Add handling for
1470 -Wbuiltin-macro-redefined command line option.
1471 * c.opt: Added builtin-macro-redefined option.
1472 * doc/invoke.texi (Warning Options): Add -Wbuiltin-macro-redefined
1473 documentation.
1474
1475 2008-09-18 Richard Guenther <rguenther@suse.de>
1476
1477 PR tree-optimization/37258
1478 * tree-ssa-sccvn.c (vn_phi_compute_hash): Include the precision
1479 and signedness for integral types.
1480 (vn_phi_eq): Require compatible types.
1481
1482 2008-09-18 Jakub Jelinek <jakub@redhat.com>
1483
1484 PR debug/34037
1485 * gimplify.c (gimplify_type_sizes): When not optimizing, ensure
1486 TYPE_MIN_VALUE and TYPE_MAX_VALUE is not is not DECL_IGNORED_P
1487 VAR_DECL.
1488 * cfgexpand.c (expand_used_vars): Keep DECL_ARTIFICIAL
1489 !DECL_IGNORED_P vars in local_decls list for instantiate_decls,
1490 ggc_free other TREE_LIST nodes from that chain.
1491 * function.c (instantiate_decls): Instantiate also DECL_RTL
1492 of vars in cfun->local_decls, free that list afterwards.
1493
1494 2008-09-18 Eric Botcazou <ebotcazou@adacore.com>
1495
1496 * config/sparc/sol2.h (WIDEST_HARDWARE_FP_SIZE): Move to...
1497 * config/sparc/sparc.h (WIDEST_HARDWARE_FP_SIZE): ...here.
1498
1499 2008-09-18 Andrew MacLeod <amacleod@redhat.com>
1500
1501 * tree-outof-ssa.c (eliminate_useless_phis): Fix formatting.
1502 * tree-flow-.h (struct immediate_use_iterator_d): Fix comment.
1503
1504 2008-09-18 Andrew MacLeod <amacleod@redhat.com>
1505
1506 PR tree-optimization/37102
1507 * tree-outof-ssa.c (remove_gimple_phi_args): Remove all the PHI args
1508 from a node. Check to see if another PHI is dead.
1509 (eliminate_useless_phis): Rename from eliminate_virtual_phis and
1510 remove real PHIs which have no uses.
1511 (rewrite_out_of_ssa): Call eliminate_useless_phis.
1512
1513 2008-09-18 Richard Guenther <rguenther@suse.de>
1514
1515 PR middle-end/37284
1516 * tree-cfg.c (remove_useless_stmts_1): Remove
1517 GIMPLE_CHANGE_DYNAMIC_TYPE if not optimizing.
1518
1519 2008-09-18 Nick Clifton <nickc@redhat.com>
1520
1521 * config/frv/frv.h (IRA_COVER_CLASSES): Define.
1522 (SECONDARY_INPUT_RELOAD_CLASS): Omit unused argument in call
1523 to frv_secondary_reload_class.
1524 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
1525 * config/frv/frv.c (TARGET_SECONDARY_RELOAD): Define.
1526 (frv_secondary_reload_class): Omit unused parameter.
1527 (frv_secondary_reload): New function. Handle the case when
1528 secondary_reload_class() is called before the reload_(in|out)
1529 _optabs have been initialised.
1530 * config/frv/frv-protos.h (frv_secondary_reload_class): Omit
1531 unused parameter.
1532 * config/frv/frv.md: Define an exclusion set between fr550_m0
1533 and fr550_f0.
1534
1535 2008-09-18 Richard Guenther <rguenther@suse.de>
1536
1537 PR tree-optimization/37456
1538 * tree-ssa-reassoc.c (build_and_add_sum): If the stmt we
1539 want to insert after ends a BB insert on the single fallthru
1540 outgoing edge.
1541
1542 2008-09-18 Andreas Krebbel <krebbel1@de.ibm.com>
1543
1544 * doc/invoke.texi: Document -mhard-dfp, -mno-hard-dfp.
1545 Mention -march=z9-109, z9-ec and z10.
1546
1547 2008-09-18 Uros Bizjak <ubizjak@gmail.com>
1548
1549 PR rtl-optimization/37544
1550 * regrename.c (maybe_mode_change): Exit early when copy_mode
1551 is narrower than orig_mode and narrower than new_mode.
1552
1553 2008-09-18 Alexander Monakov <amonakov@ispras.ru>
1554
1555 PR middle-end/37499
1556 * sched-int.h (struct _haifa_insn_data): Remove unused field ref_count.
1557
1558 * sched-rgn.c (ref_counts): Remove.
1559 (insn_referenced): New static variable.
1560 (INSN_REF_COUNT): Remove.
1561 (sched_run_compute_dependencies): Use insn_referenced instead of
1562 INSN_REF_COUNT.
1563 (add_branch_dependences): Likewise. Delete dead assignment.
1564
1565 2008-09-17 Adam Nemet <anemet@caviumnetworks.com>
1566
1567 * haifa-sched.c (dep_cost_1): Recognize the producer even if the
1568 consumer is an asm. Add comment why this is important.
1569 (choose_ready): Add comment to the "INSN_CODE (insn) >= 0 ||
1570 recog_memoized (insn) < 0" assert. Put ENABLE_CHECKING around it.
1571
1572 2008-09-17 Joseph Myers <joseph@codesourcery.com>
1573
1574 * expr.c (emit_group_store): Do not shift before moving via a
1575 stack slot.
1576
1577 2008-09-17 Eric Botcazou <ebotcazou@adacore.com>
1578
1579 * varasm.c (initializer_constant_valid_p): Forbid view-conversions
1580 from aggregate to non-aggregate type if the bit pattern is not fully
1581 preserved afterwards.
1582
1583 2008-09-17 Richard Guenther <rguenther@suse.de>
1584
1585 * tree-cfg.c (verify_types_in_gimple_assign): Rename to ...
1586 (verify_gimple_assign): ... this. Split into ...
1587 (verify_gimple_assign_unary): ... this,
1588 (verify_gimple_assign_binary): ... that,
1589 (verify_gimple_assign_single): ... and this.
1590 (verify_types_in_gimple_stmt): Call verify_gimple_assign.
1591 Fix GIMPLE_CHANGE_DYNAMIC_TYPE handling.
1592 (verify_types_in_gimple_min_lval): Handle TARGET_MEM_REF.
1593 (verify_types_in_gimple_reference): Be forgiving with
1594 VIEW_CONVERT_EXPRs.
1595 (verify_gimple_phi): Deal with virtual operands.
1596
1597 * tree.def (PREDICT_EXPR): Change to tcc_expression.
1598
1599 2008-09-17 Andrew Pinski <andrew_pinski@playstation.sony.com>
1600
1601 * tree.c (get_callee_fndecl): Don't call the language hook.
1602 * langhooks.h (lang_hooks): Remove lang_get_callee_fndecl.
1603 * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): Kill.
1604 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_GET_CALLEE_FNDECL.
1605
1606 2008-09-17 Jakub Jelinek <jakub@redhat.com>
1607
1608 * tree.c (protected_set_expr_location): Don't unnecessarily
1609 check for error_mark_node.
1610
1611 2008-09-17 Art Haas <ahaas@impactweather.com>
1612
1613 * ipa-reference.c (analyze_function): Declare step only if
1614 ENABLE_CHECKING is defined.
1615
1616 2008-09-17 Jan Hubicka <jh@suse.cz>
1617
1618 PR c++/18071
1619 * tree.h (DECL_INLINE): remove.
1620 (DECL_DECLARED_INLINE_P): Update docs.
1621 (DECL_NO_INLINE_WARNING_P): new.
1622 (tree_function_decl): Replace inline_flag by no_inline_warning_flag.
1623 * tree-inline.c (inlinable_function_p): Set DECL_NO_INLINE_WARNING_P.
1624
1625 2008-09-17 Jakub Jelinek <jakub@redhat.com>
1626 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1627
1628 PR bootstrap/37441
1629 * dwarf2out.c (dwarf2out_do_cfi_asm) [MIPS_DEBUGGING_INFO]: Return
1630 false.
1631
1632 2008-09-17 Jan Hubicka <jh@suse.cz>
1633
1634 * ipa-reference.c (ipa_obstack): Remove.
1635 (local_info_obstack, global_info_obstack): New.
1636 (add_static_var): We now handle variables only.
1637 (mark_address_taken, mark_load, mark_store): New functions based on ...
1638 (check_operand): ... remove.
1639 (get_asm_stmt_operands): Rename to ...
1640 (check_asm_memory_clobber): ... this. Look only for memory clobber.
1641 (scan_stmt_for_static_refs): Rewrite.
1642 (scan_op_for_static_refs): Rename to ...
1643 (scan_initializer_for_static_refs): do not look for VAR_DECL
1644 initializers; stop recursion on types and decls.
1645 (ipa_init): Use proper obstacks.
1646 (analyze_variable): Use scan_initializer_for_static_refs.
1647 (init_function_info): Use local obstack.
1648 (analyze_function): Simplify.
1649 (add_new_function): We don't need visited_nodes obstack.
1650 (generate_summary): Use proper obstacks; cleanup after propagation.
1651
1652 2008-09-17 Richard Guenther <rguenther@suse.de>
1653
1654 PR middle-end/37385
1655 PR tree-optimization/37491
1656 * alias.c (get_alias_set): Use the canonical type.
1657 * tree-vect-transform.c (vectorizable_store): Use the type of
1658 the lhs for the vector type. Adjust checking.
1659 (vectorizable_load): Adjust checking.
1660
1661 2008-09-16 Jakub Jelinek <jakub@redhat.com>
1662 Adam Nemet <anemet@caviumnetworks.com>
1663
1664 PR rtl-optimization/37483
1665 * ifcvt.c (noce_try_sign_mask): Use if_info->test_bb instead of
1666 if_info->insn_b's bb as argument to optimize_bb_for_speed_p.
1667 Rearrange code to better match the original comment. Check
1668 t_unconditional first. Improve comment.
1669
1670 2008-09-16 Jakub Jelinek <jakub@redhat.com>
1671
1672 PR c/37529
1673 * gimplify.c (gimplify_expr) <case GOTO_EXPR>: If gimplification of
1674 GOTO_DESTINATION failed, don't create GIMPLE_GOTO.
1675
1676 PR c++/37530
1677 * gimplify.c (gimplify_expr) <case TRY_CATCH_EXPR>: Don't create
1678 GIMPLE_TRY if cleanup sequence is empty.
1679
1680 2008-09-16 Andrew Pinski <andrew_pinski@playstation.sony.com>
1681
1682 PR middle-end/37263
1683 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Prefer the
1684 eliminate IV if the cost are the same.
1685
1686 2008-09-16 Richard Guenther <rguenther@suse.de>
1687
1688 PR middle-end/37380
1689 * tree-sra.c (sra_build_assignment): Do not call the gimplifier
1690 if not necessary.
1691
1692 2008-09-16 Richard Guenther <rguenther@suse.de>
1693
1694 PR tree-optimization/37508
1695 * tree-vrp.c (simplify_truth_ops_using_ranges): Also allow -1.
1696
1697 2008-09-15 Kaz Kojima <kkojima@gcc.gnu.org>
1698
1699 * config/sh/sh.md (movsf_ie): Fix length for TARGET_SH2A.
1700
1701 2008-09-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
1702
1703 * config/rs6000/rs6000.md (floatsidf2): Rewrite PowerPC64 case to
1704 use gen_floatdidf2 directly.
1705 (floatunssidf2): Likewise.
1706 (floatsidf_ppc64_mfpgpr): Remove.
1707 (floatsidf_ppc64): Remove.
1708 (floatunssidf_ppc64): Remove.
1709
1710 2008-09-15 Jakub Jelinek <jakub@redhat.com>
1711
1712 * ira-color.c (finish_cost_update): Free update_cost_queue_elems
1713 rather than update_cost_queue.
1714
1715 * tree-ssa-alias.c (init_alias_info): Call bitmap_obstack_release
1716 in every call starting with the second one, instead of only when
1717 alias_bitmap_obstack.elements != NULL.
1718
1719 * tree-predcom.c (filter_suitable_components): Free all refs in
1720 act->refs vector before calling release_component.
1721 (add_ref_to_chain): Free ref if not adding it to chain->refs.
1722
1723 * tree-data-ref.c (free_subscripts): Free all subscript objects.
1724
1725 * tree-loop-linear.c (linear_transform_loops): Initialize
1726 lambda_obstack only after calling perfect_loop_nest_depth.
1727 Goto free_and_continue instead of just continue for later failures.
1728
1729 PR middle-end/37479
1730 * doc/invoke.texi: Document -fno-dwarf2-cfi-asm.
1731
1732 PR libmudflap/36397
1733 * tree-mudflap.c (mf_xform_derefs_1): Handle VIEW_CONVERT_EXPR.
1734
1735 2008-09-14 Andreas Schwab <schwab@suse.de>
1736
1737 * tree-call-cdce.c (check_target_format): Accept Motorola formats.
1738
1739 2008-09-14 Jan Hubicka <jh@suse.cz>
1740
1741 * invoke.texi (-fconserve-stack): Document.
1742 * opts.c (decode_options): Handle conserve_stack.
1743 * common.opt (fconvserve_stack): New.
1744
1745 2008-09-14 David Edelsohn <edelsohn@gnu.org>
1746
1747 * config.host: Add x-aix to host_xmake_file.
1748 * config/rs6000/t-aix52: Do not override LDFLAGS.
1749 * config/rs6000/x-aix: New file.
1750
1751 2008-09-14 Andy Hutchinson <hutchinsonandy@aim.com>
1752
1753 PR target/19636
1754 PR target/24894
1755 PR target/31644
1756 PR target/31786
1757 * config/avr/avr.c (legitimate_address_p): Fix problem where subreg
1758 is not recognized as a valid register usage. Allow REG_X to be used
1759 as a base pointer.
1760 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Remove code that
1761 forces a reload when using a base register.
1762
1763 2008-09-14 Danny Smith <dannysmith@users.sourceforge.net>
1764
1765 * config/i386/cygming-crtend.c (register_frame_ctor): If
1766 DEFAULT_USE_CXA_ATEXIT, register __gcc_deregister_frame
1767 directly with atexit.
1768 (deregister_frame_ctor): Rename to ...
1769 (deregister_frame_dtor): Use to call __gcc_deregister_frame
1770 if !DEFAULT_USE_CXA_ATEXIT.
1771
1772 2008-09-13 Jan Hubicka <jh@suse.cz>
1773
1774 * cgraph.c: Include value-prof.h
1775 * Makefile.in (cgraph.o): Add value-prof.h dependency.
1776
1777 2008-09-13 Jan Hubicka <jh@suse.cz>
1778
1779 PR middle-end/32581
1780 * tree-profile.c (add_abnormal_goto_call_edges): New function.
1781 (tree_gen_interval_profiler, tree_gen_pow2_profiler,
1782 tree_gen_one_value_profiler, tree_gen_average_profiler,
1783 tree_gen_ic_func_profiler, tree_gen_ior_profiler): Use it.
1784
1785 2008-09-13 Jan Hubicka <jh@suse.cz>
1786
1787 * i386.c (ix86_expand_movmem, ix86_expand_movstr): Avoid processing
1788 too many bytes on misalligned blocks.
1789
1790 2008-09-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1791
1792 * doc/cfg.texi: Fix some typos.
1793 * doc/extend.texi: Likewise.
1794 * doc/install.texi: Likewise.
1795 * doc/invoke.texi: Likewise.
1796 * doc/rtl.texi: Likewise.
1797 * doc/tree-ssa.texi: Likewise.
1798
1799 2008-09-13 Richard Guenther <rguenther@suse.de>
1800
1801 PR middle-end/30141
1802 * tree-nested.c (finalize_nesting_tree_1): Generate valid
1803 gimple stores for memory rhs.
1804
1805 2008-09-13 H.J. Lu <hongjiu.lu@intel.com>
1806
1807 PR rtl-optimization/37489
1808 * cse.c (fold_rtx): Don't return const_true_rtx for float
1809 compare if FLOAT_STORE_FLAG_VALUE is undefined.
1810
1811 2008-09-13 Jan Hubicka <jh@suse.cz>
1812
1813 PR tree-optimization/37392
1814 * tree-inline.c (remap_gimple_stmt): Do not remap return value.
1815
1816 2008-09-13 Martin Jambor <mjambor@suse.cz>
1817 Jan Hubicka <jh@suse.cz>
1818
1819 * cgraph.c (free_edges): New variable.
1820 (NEXT_FREE_EDGE): New macro.
1821 (cgraph_free_edge): New function.
1822 (cgraph_remove_edge): Call cgraph_remove_edge_1.
1823 (cgraph_node_remove_callees): Likewise.
1824 (cgraph_node_remove_callers): Likewise.
1825 (cgraph_create_edge): Reuse edges from the free list. Do not
1826 update uid if doing so.
1827 (cgraph_remove_*_hook): Add free call.
1828
1829 2008-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1830
1831 * ira-color.c (conflict_allocno_vec): Delete.
1832 (update_cost_queue_elem): New structure.
1833 (update_cost_queue): New variable.
1834 (update_cost_queue_tail): Likewise.
1835 (update_cost_queue_elems): Likewise.
1836 (allocno_update_cost_check): Delete.
1837 (initiate_cost_update): Allocate update_cost_queue_elems
1838 instead of allocno_update_cost_check.
1839 (finish_cost_update): Update the free()s accordingly.
1840 (start_update_cost): New function.
1841 (queue_update_cost): Likewise.
1842 (get_next_update_cost): Likewise.
1843 (update_copy_costs_1): Inline into...
1844 (update_copy_costs): ...here. Use a queue instead of recursive calls.
1845 Use cover_class instead of ALLOCNO_COVER_CLASS (another_allocno),
1846 once we've established they are equal. Don't allocate update
1847 costs if there is nothing to add to them.
1848 (update_conflict_hard_regno_costs): Remove ALLOCNO and
1849 DIVISOR arguments. Use a queue instead of recursive calls;
1850 process all the allocnos in the initial queue, rather than
1851 a single allocno.
1852 (assign_hard_reg): Use queue_update_cost instead of
1853 conflict_allocno_vec. Queue coalesced allocnos instead
1854 of calling update_conflict_hard_regno_costs for each one.
1855 Just call update_conflict_hard_regno_costs once for the
1856 entire queue.
1857 (ira_color): Remove conflict_allocno_vec handling.
1858
1859 2008-09-12 Sebastian Pop <sebastian.pop@amd.com>
1860
1861 PR tree-optimization/37484
1862 * graphite.c (scop_record_loop): Use snprintf instead of sprintf.
1863 (save_var_name): Same.
1864 (initialize_cloog_names): Same.
1865 (initialize_cloog_names): Same.
1866
1867 2008-09-12 Sebastian Pop <sebastian.pop@amd.com>
1868
1869 * tree-scalar-evolution.c (set_instantiated_value): Set
1870 instantiated_below.
1871
1872 2008-09-12 Vladimir Makarov <vmakarov@redhat.com>
1873
1874 PR rtl-opt/37377
1875
1876 * ira-build.c (common_loop_tree_node_dominator): Remove.
1877 (copy_live_ranges_to_removed_store_destinations): New function.
1878 (regno_top_level_allocno_map): Move to top level from ...
1879 (ira_flattening): ... here. Use
1880 copy_live_ranges_to_removed_store_destinations.
1881
1882 * ira-emit.c (generate_edge_moves): Fix a comment.
1883
1884 2008-09-12 Anatoly Sokolov <aesok@post.ru>
1885
1886 PR target/37466
1887 * config/avr/avr.md (movsi_lreg_const peephole2): Add match_dup for
1888 scratch register after 'set' pattern.
1889
1890 2008-09-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1891
1892 * emit-rtl.c (set_reg_attrs_from_value): Fix invalid alignment
1893 information passed to mark_reg_pointer.
1894 * explow.c (force_reg): Likewise.
1895
1896 2008-09-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1897
1898 * config/spu/spu.c (spu_override_options): Default to -mno-safe-hints
1899 when building for the celledp architecture.
1900
1901 2008-09-12 Richard Guenther <rguenther@suse.de>
1902
1903 * tree-vrp.c (simplify_truth_ops_using_ranges): Fix types.
1904
1905 2008-09-12 Eric Botcazou <ebotcazou@adacore.com>
1906
1907 PR rtl-optimization/37424
1908 * ira-color.c (coalesced_pseudo_reg_slot_compare): Untie by comparing
1909 the regnos instead of the addresses.
1910
1911 2008-09-11 Janis Johnson <janis187@us.ibm.com>
1912
1913 * ginclude/float.h (DEC_EVAL_METHOD): Correct the macro name.
1914
1915 2008-09-11 Richard Guenther <rguenther@suse.de>
1916
1917 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Avoid
1918 entering the weaker equivalence recording.
1919
1920 * tree-ssa-phiprop.c (propagate_with_phi): Fix tuplification.
1921
1922 2008-09-11 Jeff Law <law@redhat.com>
1923
1924 * reload1.c (alter_reg): Undo the BYTE_BIG_ENDIAN correction performed
1925 by assign_stack_local on the IRA path for stack slot sharing
1926 as well as the non-IRA path.
1927
1928 2008-09-11 Uros Bizjak <ubizjak@gmail.com>
1929
1930 * config/i386/i386.h: Fix whitespace issues.
1931
1932 2008-09-11 Martin Jambor <mjambor@suse.cz>
1933
1934 * ipa-prop.h (struct ipa_param_flags): Removed.
1935 (struct ipa_param_descriptor): New structure.
1936 (struct ipa_node_params): ipcp_lattices, param_decls and
1937 param_flags moved to ipa_param_description.
1938 (ipa_get_ith_param): Renamed to ipa_get_param, changed to access
1939 descriptors. Renamed all users.
1940 (ipa_is_ith_param_modified): Renamed to ipa_is_param_modified,
1941 changed to access descriptors. Renamed all users.
1942 (ipa_is_ith_param_called): Renamed to ipa_is_param_called, changed
1943 to access descriptors. Renamed all users.
1944 * ipa-cp.c (ipcp_init_cloned_node): Call
1945 ipa_initialize_node_params instead of ipa_count_formal_params and
1946 ipa_create_param_decls_array.
1947 (ipcp_analyze_node): Likewise.
1948 (ipcp_get_ith_lattice): Renamed to ipcp_get_lattice, changed to access
1949 descriptors. Renamed all users.
1950 (ipcp_initialize_node_lattices): Remove allocation.
1951 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
1952 ipa_initialize_node_params instead of ipa_count_formal_params and
1953 ipa_create_param_decls_array.
1954 * ipa-prop.c (ipa_create_param_decls_array): Renamed to
1955 ipa_populate_param_decls, made static, added parameter info,
1956 renamed mt to node, removed allocation, changed to use
1957 descriptors.
1958 (ipa_count_formal_params): Made static, added parameter info,
1959 renamed mt to node.
1960 (ipa_initialize_node_params): New function.
1961 (ipa_check_stmt_modifications): Changed to use descriptors.
1962 (ipa_detect_param_modifications): Removed allocation, changed to
1963 use descriptors.
1964 (ipa_note_param_call): Changed to use descriptors.
1965 (ipa_analyze_params_uses): Removed allocation.
1966 (ipa_free_node_params_substructures): Changed to use descriptors.
1967 (ipa_edge_duplication_hook): Use the unused attribute.
1968 (ipa_node_duplication_hook): Use the unused attribute, changed to
1969 use descriptors, changed to duplicate descriptors.
1970
1971 * ipa-inline.c (cgraph_mark_inline_edge): New parameter new_edges,
1972 changed all callers. Call ipa_propagate_indirect_call_infos if doing
1973 indirect inlining. Made static.
1974 (cgraph_decide_inlining): Freeing ipa-prop structures after inlining
1975 functions called only once.
1976 (cgraph_decide_recursive_inlining): Don't call
1977 ipa_propagate_indirect_call_infos, pass new_edges to
1978 cgraph_mark_inline_edge instead.
1979 (cgraph_decide_inlining_of_small_functions): Don't call
1980 ipa_propagate_indirect_call_infos, pass new_edges to
1981 cgraph_mark_inline_edge instead.
1982 (cgraph_decide_inlining): Don't call
1983 ipa_propagate_indirect_call_infos.
1984 * ipa-prop.c: Check that vectors are allocated.
1985
1986 * ipa-inline.c (cgraph_mark_inline_edge): Returns boolean, true
1987 iff a new cgraph edges have been created.
1988 (cgraph_decide_inlining): New variable redo_always_inline.
1989 Flattening and always_inlining loop until callgraph stabilizes.
1990 * ipa-prop.c (update_call_notes_after_inlining): Returns boolean,
1991 true iff new cgraph edges have been created.
1992 (propagate_info_to_inlined_callees): Likewise.
1993 (ipa_propagate_indirect_call_infos): Likewise.
1994
1995 2008-09-11 Richard Guenther <rguenther@suse.de>
1996
1997 * tree-vectorizer.c (slpeel_add_loop_guard): Fix types.
1998 (set_prologue_iterations): Likewise.
1999 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref):
2000 Likewise.
2001 (vect_update_init_of_dr): Likewise.
2002 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Fix
2003 type verification.
2004 * fold-const.c (fold_unary): Do not generate calculations
2005 in sub-types.
2006
2007 2008-09-11 Paolo Bonzini <bonzini@gnu.org>
2008
2009 * dojump.c (do_jump) [BIT_AND_EXPR]: Move below. Fall through to
2010 TRUTH_AND_EXPR for boolean (1-bit precision) expressions.
2011 (do_jump) [BIT_IOR_EXPR]: Compile as TRUTH_OR_EXPR.
2012
2013 * tree-flow.h (simplify_stmt_using_ranges): Accept a GSI, return
2014 a bool.
2015 * tree-ssa-propagate.c (substitute_and_fold): Pass a GSI to
2016 VRP's simplify_stmt_using_ranges. Do simplify_stmt_using_ranges
2017 before finalizing the changes.
2018 * tree-vrp.c (extract_range_from_binary_expr): Add limited support
2019 for BIT_IOR_EXPR.
2020 (simplify_truth_ops_using_ranges): New.
2021 (simplify_div_or_mod_using_ranges, simplify_abs_using_ranges,
2022 simplify_cond_using_ranges, simplify_switch_using_ranges): Return
2023 whether a simplification was made.
2024 (simplify_stmt_using_ranges): Ditto, and accept a GSI. For GS_ASSIGN,
2025 use a switch statement and also call simplify_truth_ops_using_ranges.
2026
2027 2008-09-11 Jan Hubicka <jh@suse.cz>
2028
2029 * ggc-common.c (loc_array): Make static.
2030 * dce.c (rest_of_handle_ud_dce): Free worklist.
2031
2032 2008-09-11 Jan Hubicka <jh@suse.cz>
2033
2034 * cgraph.c (cgraph_release_function_body): Plug memory leak on
2035 ipa_transforms_to_apply and CFG; ggc_free gimple df and struct
2036 function so we are sure we do not dangle it forever.
2037 * function.c (outer_function_chain, find_function_data): Remove.
2038 (function_context_stack): New.
2039 (push_function_context, pop_function_context): Update.
2040 * function.h (struct function): Remove pointer outer.
2041 (outer_function_chain, find_function_data): Remove.
2042 * stmt.c (force_label_rtx): Remove dead call of find_function_data.
2043
2044 2008-09-11 Jan Hubicka <jh@suse.cz>
2045
2046 PR middle-end/37448
2047 * cgraph.c (cgraph_create_edge): Use !cgraph_edge for sanity check.
2048
2049 2008-09-11 Jan Hubicka <jh@suse.cz>
2050
2051 * tree-ssa-pre.c (phi_translate_1): Fix memory leak
2052
2053 2008-09-11 Jan Hubicka <jh@suse.cz>
2054
2055 * tree-ssa.c (redirect_edge_var_map_clear): Fix formatting.
2056 (free_var_map_entry): New function.
2057 (redirect_edge_var_map_destroy): Use it.
2058
2059 2008-09-11 Jan Hubicka <jh@suse.cz>
2060
2061 PR middle-end/37448
2062 * tree-inline.c (add_lexical_block): Replace with ...
2063 (prepend_lexical_block): ... prepend at begginig.
2064 (remap_blocks): Use it and reverse later.
2065 (expand_call_inline): Use prepend_lexical_block.
2066
2067 2008-09-11 Jan Hubicka <jh@suse.cz>
2068
2069 * gimplify.c (pop_gimplify_context): Free bind_expr_stack.
2070
2071 2008-09-11 Jan Hubicka <jh@suse.cz>
2072
2073 * function.c (free_after_compilation): Call insn_locators_free.
2074 * cfglayout.c (insn_locators_free): New function.
2075 * rtl.h (insn_locators_free): Declare.
2076
2077 2008-09-11 Jan Hubicka <jh@suse.cz>
2078
2079 * ifcvt.c (check_cond_move_block): Make regs argument pointer to
2080 vector pointer.
2081 (cond_move_process_if_block): Update call.
2082
2083 2008-09-11 Jan Hubicka <jh@suse.cz>
2084
2085 * toplev.c (dump_memory_report): Call dump_vec_loc_statistics.
2086 * vec.c: Include hashtab.h
2087 (vec_descriptor, ptr_hash_entry): New structures.
2088 (vec_desc_hash, vec_ptr_map): New static variables.
2089 (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr, vec_descriptor,
2090 register_overhead, free_overhead, vec_heap_free): New functions.
2091 (vec_gc_o_reserve_1): ggc_free when resizing to 0.
2092 (vec_heap_o_reserve_1): free when resizing to 0; add statistics.
2093 (cmp_statistic, add_statistics, dump_vec_loc_statistics):
2094 New functions.
2095
2096 2008-09-11 Ira Rosen <irar@il.ibm.com>
2097
2098 PR tree-optimization/37474
2099 * tree-vect-analyze.c (vect_supported_load_permutation_p): Check the
2100 length of load permutation.
2101
2102 2008-09-11 Andreas Schwab <schwab@suse.de>
2103
2104 * config/m68k/m68k.h (IRA_COVER_CLASSES): Define.
2105
2106 2008-09-11 Jakub Jelinek <jakub@redhat.com>
2107
2108 PR target/37382
2109 * expmed.c (extract_low_bits): Avoid creating invalid subregs.
2110 * dse.c (find_shift_sequence): Use extract_low_bits instead of
2111 simplify_gen_subreg.
2112
2113 2008-09-11 Ira Rosen <irar@il.ibm.com>
2114
2115 * tree-vect-transform.c (vectorizable_store): Use the rhs vector type
2116 for alias check.
2117
2118 2008-09-10 Jakub Jelinek <jakub@redhat.com>
2119
2120 PR middle-end/37338
2121 * gimplify.c (gimplify_body): Call default_rtl_profile.
2122
2123 PR target/36904
2124 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Return NULL
2125 instead of tok->val.node if not expanding to something else. Handle
2126 intervening CPP_PADDING tokens.
2127 (altivec_categorize_keyword): Remove unneeded comparisons.
2128
2129 2008-09-10 Richard Guenther <rguenther@suse.de>
2130
2131 * tree-ssa-pre.c (phi_translate_1): Fix memory leak.
2132
2133 2008-09-10 Richard Guenther <rguenther@suse.de>
2134
2135 PR middle-end/37432
2136 * tree-inline.c (insert_init_stmt): Make sure to not
2137 insert invalid gimple stores.
2138
2139 2008-09-10 Sebastian Pop <sebastian.pop@amd.com>
2140
2141 PR tree-optimization/37388
2142 * toplev.c (process_options): Fail and warn when graphite
2143 flags are used, but the compiler has not been configured
2144 with graphite libraries.
2145 * graphite.c (graphite_transform_loops): Remove printfs
2146 to dump_file for the case when graphite is not available.
2147
2148 2008-09-10 H.J. Lu <hongjiu.lu@intel.com>
2149
2150 PR target/37434:
2151 * config/i386/i386.c (ix86_expand_vector_init_interleave): Force
2152 the even element into register.
2153 (ix86_expand_vector_init_general): Don't use
2154 ix86_expand_vector_init_interleave on V16QImode and V8HImode
2155 if we can't move from GPR to SSE register directly.
2156
2157 2008-09-10 Bernd Schmidt <bernd.schmidt@analog.com>
2158
2159 * config/bfin/bfin.c (workaround_speculation): Correct algorithm to
2160 not lose track of the number of NOPs needed. Number of NOPs needed
2161 for sync vs. loads workaround was switched; corrected. Run second
2162 pass for all workarounds. No NOPs needed after call insns. Change
2163 second pass to use find_next_insn_start and find_load helpers in order
2164 to properly detect parallel insns.
2165 * config/bfin/bfin.md (cbranch_with_nops): Increase length.
2166
2167 2008-09-10 Jan Hubicka <jh@suse.cz>
2168
2169 * value-prof.c (gimple_ic): Fix tuplification bug.
2170 * sched-deps.c (sched_insns_conditions_mutex_p): Silence unitialized
2171 var warning.
2172
2173 2008-09-10 Jakub Jelinek <jakub@redhat.com>
2174
2175 PR tree-optimization/37353
2176 * tree-call-cdce.c (cond_dead_built_in_calls): Remove.
2177 (shrink_wrap_conditional_dead_built_in_calls): Add calls argument, use
2178 calls instead of cond_dead_built_in_calls.
2179 (tree_call_cdce): Add cond_dead_built_in_calls automatic variable,
2180 initalize the vector only before adding first entry. Use VEC_safe_push
2181 instead of VEC_quick_push. Pass cond_dead_built_in_calls to
2182 shrink_wrap_conditional_dead_built_in_calls call.
2183
2184 2008-09-10 Ira Rosen <irar@il.ibm.com>
2185
2186 PR tree-optimization/37385
2187 * tree-vect-transform.c (vect_create_data_ref_ptr): Add a new
2188 argument, and use it as a vector type if not NULL.
2189 (vectorizable_store): Call vect_create_data_ref_ptr with the type of
2190 vectorized rhs.
2191 (vect_setup_realignment): Call vect_create_data_ref_ptr with
2192 additional argument.
2193 (vectorizable_load): Likewise.
2194
2195 2008-09-10 Jakub Jelinek <jakub@redhat.com>
2196
2197 * config/i386/i386.md (SWI32): New mode iterator.
2198 (jcc_fused_1, jcc_fused_2, jcc_fused_3, jcc_fused_4): Use it instead
2199 of SWI.
2200
2201 2008-09-09 Vladimir Makarov <vmakarov@redhat.com>
2202
2203 PR rtl-optimization/37435
2204 * caller-save.c (insert_restore, insert_save): Check the mode by
2205 reg_save_code.
2206
2207 2008-09-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2208
2209 PR other/37265
2210 * dwarf2asm.c (dw2_force_const_mem): Use unstripped symbol name for
2211 splay tree lookup.
2212 (dw2_output_indirect_constant_1): Use unstripped name in symbol
2213 reference.
2214
2215 2008-09-09 Sandra Loosemore <sandra@codesourcery.com>
2216
2217 * doc/invoke.texi (ARM Options): Correct errors in discussion
2218 of -mfloat-abi, -mhard-float, and -msoft-float.
2219
2220 2008-09-09 Jakub Jelinek <jakub@redhat.com>
2221 Jan Hubicka <jh@suse.cz>
2222
2223 PR middle-end/37356
2224 * tree-inline.c (copy_bb): Insert stmt into copy_basic_block before
2225 calling gimple_regimplify_operands on it. Iterate over all newly
2226 added statements, not just the last one.
2227 (insert_init_stmt): Insert stmt into seq first, then call
2228 gimple_regimplify_operands on it. Don't create new gimplification
2229 context, nor find referenced vars.
2230
2231 2008-09-09 Jakub Jelinek <jakub@redhat.com>
2232
2233 PR other/37419
2234 * ipa-prop.h (ipa_propagate_indirect_call_infos): Change last argument
2235 to pointer to vector pointer.
2236 * ipa-prop.c (ipa_propagate_indirect_call_infos,
2237 propagate_info_to_inlined_callees): Likewise.
2238 (update_call_notes_after_inlining): Likewise. Push new indirect edge
2239 to *new_edges instead of new_edges. Reread IPA_EDGE_REF after
2240 ipa_check_create_edge_args.
2241 * ipa-inline.c (cgraph_decide_recursive_inlining): Change last
2242 argument to pointer to vector pointer.
2243 (cgraph_decide_inlining_of_small_function): Adjust
2244 cgraph_decide_recursive_inlining and ipa_propagate_indirect_call_infos
2245 calls.
2246
2247 PR target/37438
2248 * config/i386/i386.md (zero_extendqihi2_movzbl): Enable when
2249 optimizing for size, not speed.
2250
2251 PR rtl-optimization/37408
2252 * function.c (assign_parm_find_stack_rtl): Set correct MEM_SIZE
2253 if parm is promoted.
2254
2255 2008-09-09 Sebastian Pop <sebastian.pop@amd.com>
2256
2257 PR tree-optimization/37375
2258 * tree-scalar-evolution.c (scev_info_str): Add field
2259 instantiated_below.
2260 (new_scev_info_str, eq_scev_info, find_var_scev_info,
2261 set_scalar_evolution, get_scalar_evolution, get_instantiated_value,
2262 set_instantiated_value): Pass instantiated_below.
2263 (analyze_scalar_evolution_1, analyze_scalar_evolution): Update calls
2264 to above functions.
2265 (instantiate_scev_1, instantiate_scev): Pass a basic block above which
2266 the definitions are not instantiated.
2267
2268 * tree-scalar-evolution.h (instantiate_scev): Update declaration.
2269 (block_before_loop): New.
2270 * tree-data-ref.c (dr_analyze_indices): Update uses of
2271 instantiate_scev.
2272 * graphite.c (block_before_scop): New.
2273 (loop_affine_expr, stmt_simple_for_scop_p, harmful_stmt_in_bb): Pass a
2274 basic block, not a loop for determining the parameters.
2275 (scopdet_edge_info, build_scops_1): Do not pass outermost loop in the
2276 scop.
2277 (idx_record_params, find_params_in_bb, find_scop_parameters,
2278 build_loop_iteration_domains, add_conditions_to_domain): Update calls
2279 to instantiate_scev.
2280
2281 * Makefile.in (cfgloopmanip.o): Add missing dependency on TREE_FLOW_H.
2282
2283 2008-09-09 Vladimir Makarov <vmakarov@redhat.com>
2284
2285 PR rtl-opt/37333
2286
2287 * ira-build.c (ira_create_allocno): Setup frequency to 0.
2288
2289 * ira-color.c (update_conflict_hard_regno_costs): Remove assert.
2290 Check zero freq and increase if necessary.
2291
2292 2008-09-09 Vladimir Makarov <vmakarov@redhat.com>
2293
2294 * ira-conflicts.c (process_regs_for_copy): Check that the hard
2295 regno is in the right range. Add comments.
2296
2297 2008-09-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2298
2299 * Makefile.in (mips-tfile.o-warn): Don't error out on mips-tfile.c
2300 warnings.
2301 * mips-tfile.c (copy_object): Cast alloca result to int *.
2302 * mips-tdump.c (print_symbol): Cast xmalloc return values to
2303 proper types.
2304 Rename class to sclass.
2305 (read_tfile): Cast read_seek return values to proper types.
2306 Cast xcalloc return value to proper type.
2307
2308 2008-09-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2309
2310 * config/sol2.h (REGISTER_TARGET_PRAGMAS): Move ...
2311 * config/i386/sol2.h (REGISTER_SUBTARGET_PRAGMAS): ... here.
2312 * config/sparc/sol2.h (REGISTER_TARGET_PRAGMAS): ... and here.
2313
2314 2008-09-09 Jan Hubicka <jh@suse.cz>
2315
2316 * profile.c (is_edge_inconsistent): Add debug output; ignore
2317 negative count on fake edges.
2318 (is_inconsistent): Add debug output.
2319
2320 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
2321
2322 * haifa-sched.c (advance_one_cycle): Do not print '\n' before printing
2323 dump message.
2324 (choose_ready): When first insn is chosen from the ready list, also
2325 dump it.
2326
2327 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
2328
2329 PR rtl-optimization/37360
2330 * haifa-sched.c (max_issue): Do not assert that we never issue more
2331 insns than issue_rate. Add comment.
2332
2333 2008-09-09 Richard Guenther <rguenther@suse.de>
2334
2335 * tree-cfg.c (verify_types_in_gimple_op): Remove.
2336 (verify_types_in_gimple_call): Rename to ...
2337 (verify_gimple_call): ... this. Enhance.
2338 (verify_types_in_gimple_cond): Remove.
2339 (verify_gimple_comparison): New function ...
2340 (verify_types_in_gimple_assign): ... split out from here.
2341 (verify_types_in_gimple_return): Rename to ...
2342 (verify_gimple_return): ... this. Enhance.
2343 (verify_types_in_gimple_switch): Rename to ...
2344 (verify_gimple_switch): ... this. Enhance.
2345 (verify_gimple_goto): New function.
2346 (verify_types_in_gimple_phi): Rename to ...
2347 (verify_gimple_phi): ... this. Enhance.
2348 (verify_types_in_gimple_stmt): Adjust calls to helper functions.
2349 Fold in single-statement cases from verify_types_in_gimple_seq_2.
2350 (verify_types_in_gimple_seq_2): Remove cases handled in
2351 verify_types_in_gimple_stmt.
2352
2353 2008-09-09 Bernd Schmidt <bernd.schmidt@analog.com>
2354
2355 * config/bfin/bfin.c (n_regs_to_save): New static variable.
2356 (push_multiple_operation, pop_multiple_operation): Set it.
2357 (workaround_rts_anomaly): New function.
2358 (workaround_speculation): New function, broken out of bfin_reorg.
2359 (bfin_reorg): Call the new functions.
2360
2361 2008-09-09 Richard Guenther <rguenther@suse.de>
2362
2363 PR middle-end/37354
2364 PR middle-end/30165
2365 * gimplify.c (gimplify_conversion): Change conversions of
2366 non-register type to VIEW_CONVERT_EXPRs.
2367 (gimplify_addr_expr): If we need to make the operand
2368 addressable make sure to use a properly initialized
2369 temporary for that so it gets a valid gimple store.
2370
2371 2008-09-09 Aldy Hernandez <aldyh@redhat.com>
2372
2373 * function.h (struct function): Add function_start_locus.
2374 * cfgexpand.c (gimple_expand_cfg): Use it.
2375 * c-parser.c (c_parser_declaration_or_fndef): Set it.
2376
2377 2008-09-09 Richard Guenther <rguenther@suse.de>
2378
2379 PR tree-optimization/37433
2380 * tree-ssa-ccp.c (ccp_fold): Properly guard folding of
2381 function calls.
2382
2383 2008-09-09 Richard Guenther <rguenther@suse.de>
2384
2385 PR tree-optimization/37387
2386 * tree-ssa-ifcombine.c (ifcombine_iforif): Convert the name
2387 and bits to a common type.
2388
2389 2008-09-09 Nick Clifton <nickc@redhat.com>
2390
2391 * config/v850/v850.md (return): Restore frame size restriction.
2392
2393 2008-09-09 Paolo Bonzini <bonzini@gnu.org>
2394
2395 * c-common.c (c_expand_decl): Remove.
2396 * c-common.h (anon_aggr_type_p): Remove prototype.
2397 (DECL_ANON_UNION_ELEMS): Remove.
2398 * c-objc-common.h (LANG_HOOKS_EXPAND_DECL): Remove.
2399 * c-decl.c (anon_aggr_type_p): Remove.
2400 * langhooks-def.h (LANG_HOOKS_EXPAND_DECL): Remove.
2401 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_EXPAND_DECL.
2402 * langhooks.h (struct lang_hooks): Remove expand_decl.
2403 * langhooks.c (lhd_expand_decl): Remove.
2404 * stmt.c (expand_anon_union_decl): Remove.
2405 * tree.h (expand_anon_union_decl): Remove prototype.
2406
2407 2008-08-09 Andy Hutchinson <hutchinsonandy@aim.com>
2408
2409 PR target/36609
2410 * config/avr/avr.c (avr_reorg): Create RTL for reversed compare with
2411 zero.
2412 * config/avr/avr.md (QISI) : Define mode iterator.
2413 (negated_tst<mode>) : Redefine as split using mode macro.
2414 (reversed_tstqi): Define insn as reversed compare with zero.
2415 (reversed_tsthi): Ditto.
2416 (reversed_tstsi): Ditto.
2417
2418 2008-09-08 Jakub Jelinek <jakub@redhat.com>
2419
2420 PR middle-end/37393
2421 * tree-inline.c (copy_bb): When replacing a gimple_call_va_arg_pack_p
2422 call stmt by new_call, clear gimple_bb on stmt after gsi_replace.
2423
2424 PR middle-end/37414
2425 * predict.c (optimize_function_for_size_p): Don't segfault if
2426 FUN is NULL.
2427 * fold-const.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop,
2428 tree_swap_operands_p): Don't test cfun != NULL before calling
2429 optimize_function_for_s*_p.
2430
2431 2008-09-08 Eric Botcazou <ebotcazou@adacore.com>
2432
2433 * ira-color.c (ira_reuse_stack_slot): Set slot_num on success at the
2434 end of the search.
2435
2436 2008-09-08 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
2437
2438 * crx/crx.h (IRA_COVER_CLASSES): Define.
2439
2440 2008-09-08 Jakub Jelinek <jakub@redhat.com>
2441
2442 PR middle-end/37337
2443 * tree-ssa-dom.c (optimize_stmt): Call maybe_clean_or_replace_eh_stmt
2444 even when a stmt has been gimple_modified_p, but after fold_stmt is
2445 not any longer. Remove unneeded may_have_exposed_new_symbols
2446 initializations.
2447
2448 2008-09-08 Richard Guenther <rguenther@suse.de>
2449
2450 PR tree-optimization/37421
2451 * tree-ssa-sccvn.c (visit_copy): Make sure to fully
2452 valueize the RHS.
2453
2454 2008-09-08 Jakub Jelinek <jakub@redhat.com>
2455
2456 PR middle-end/37415
2457 * opts.c (common_handle_option): Handle OPT_ftree_store_ccp.
2458
2459 2008-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2460
2461 PR driver/37409
2462 * pa-hpux.h (LINK_SPEC): Strip -fwhole-program.
2463 * pa-hpux10.h (LINK_SPEC): Likewise.
2464 * pa-hpux11.h (LINK_SPEC): Likewise.
2465
2466 2008-09-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2467
2468 * pa32-regs.h (IRA_COVER_CLASSES): Define.
2469 * pa64-regs.h (IRA_COVER_CLASSES): Define.
2470
2471 2008-09-07 Helge Deller <deller@gmx.de>
2472
2473 * pa/linux-atomic.c: New file.
2474 * pa/t-linux (LIB2FUNCS_STATIC_EXTRA): Define.
2475 * pa/t-linux64 (LIB2FUNCS_STATIC_EXTRA): Define.
2476
2477 2008-09-07 Richard Guenther <rguenther@suse.de>
2478 Ira Rosen <irar@il.ibm.com>
2479
2480 PR tree-optimization/36630
2481 * tree-vect-transform.c (vect_update_ivs_after_vectorizer):
2482 Call STRIP_NOPS before calling evolution_part_in_loop_num.
2483
2484 2008-09-07 Dorit Nuzman <dorit@il.ibm.com>
2485 Ira Rosen <irar@il.ibm.com>
2486
2487 PR tree-optimization/35642
2488 * config/rs6000/altivec.md (mulv8hi3): Implement.
2489
2490 2008-09-06 Jeff Law <law@redhat.com>
2491
2492 * h8300/h8300.h (IRA_COVER_CLASSES): Define.
2493
2494 2008-09-06 Jan Hubicka <jh@suse.cz>
2495
2496 PR tree-optimization/14703
2497 * tree-ssa-live.c (remove_unused_scope_block_p): Remove ignored
2498 declarations.
2499 * passes.c (init_optimization_passes): Recompute inline parameters.
2500
2501 2008-09-06 Richard Sandiford <rdsandiford@googlemail.com>
2502
2503 * config/mips/mips.c (mips_function_ok_for_sibcall): Check for
2504 DECL being null.
2505
2506 2008-09-06 Richard Sandiford <rdsandiford@goolemail.com>
2507 Peter Fuerst <post@pfrst.de>
2508
2509 * doc/invoke.texi: Document -mr10k-cache-barrier=.
2510 * doc/extend.texi: Document __builtin_mips_cache.
2511 * config/mips/mips-ftypes.def: Add a (VOID, SI, CVPOINTER) entry.
2512 * config/mips/mips.opt (mr10k-cache-barrier=): New option.
2513 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
2514 __GCC_HAVE_BUILTIN_MIPS_CACHE.
2515 (TARGET_CACHE_BUILTIN, ISA_HAS_CACHE): New macros.
2516 * config/mips/mips.c (mips_r10k_cache_barrier_setting): New enum.
2517 (set_push_mips_isas): New variable.
2518 (mips_r10k_cache_barrier): New variable.
2519 (cache): New availability predicate.
2520 (mips_builtins): Add an entry for __builtin_mips_cache.
2521 (mips_build_cvpointer_type): New function.
2522 (MIPS_ATYPE_CVPOINTER): New macro.
2523 (mips_prepare_builtin_arg): Only use the insn's mode if the rtx's
2524 mode is VOIDmode.
2525 (r10k_simplified_address_p, r10k_simplify_address)
2526 (r10k_uncached_address_p, r10k_safe_address_p)
2527 (r10k_needs_protection_p_1, r10k_needs_protection_p_store)
2528 (r10k_needs_protection_p_call, r10k_needs_protection_p)
2529 (r10k_insert_cache_barriers): New functions.
2530 (mips_reorg_process_insns): Delete cache barriers after a
2531 branch-likely instruction.
2532 (mips_reorg): Call r10k_insert_cache_barriers.
2533 (mips_handle_option): Handle OPT_mr10k_cache_barrier_.
2534 * config/mips/mips.md (UNSPEC_MIPS_CACHE): New constant.
2535 (UNSPEC_R10K_CACHE_BARRIER): Likewise.
2536 (mips_cache, r10k_cache_barrier): New define_insns.
2537
2538 2008-09-06 Richard Sandiford <rdsandiford@googlemail.com>
2539
2540 * ira-int.h (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
2541 * ira-color.c (setup_allocno_left_conflicts_num): Use
2542 hard_reg_set_equal_p instead of a comparison with
2543 ira_zero_hard_reg_set.
2544 * ira.c (setup_reg_subclasses): Likewise.
2545 (setup_cover_and_important_classes): Likewise.
2546 (setup_class_translate): Likewise.
2547 (setup_reg_class_intersect_union): Likewise.
2548 (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
2549 (ira_init_once): Don't initialize them.
2550
2551 2008-09-05 Vladimir Makarov <vmakarov@redhat.com>
2552
2553 * doc/tm.texi (IRA_COVER_CLASSES): Fix a typo.
2554
2555 2008-09-05 Vladimir Makarov <vmakarov@redhat.com>
2556
2557 * ira-color.c (ira_fast_allocation): Permit global allocno allocation.
2558
2559 2008-09-05 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
2560
2561 Improved branch hints, safe hints, and scheduling.
2562
2563 * haifa-sched.c (sched_emit_insn) : Define.
2564 * sched-int.h (sched_emit_insn) : Add prototype.
2565 * doc/invoke.texi (-mdual-nops, -mhint-max-nops,
2566 -mhint-max-distance -msafe-hints) : Document.
2567 * config/spu/spu.c (spu_flag_var_tracking): New.
2568 (TARGET_SCHED_INIT_GLOBAL, TARGET_SCHED_INIT,
2569 TARGET_SCHED_REORDER, TARGET_SCHED_REORDER2,
2570 TARGET_ASM_FILE_START): Define.
2571 (TARGET_SCHED_ADJUST_PRIORITY): Remove.
2572 (STOP_HINT_P, HINTED_P, SCHED_ON_EVEN_P): Define.
2573 (spu_emit_branch_hint): Add blocks argument.
2574 (insert_branch_hints, insert_nops): Remove.
2575 (pad_bb, insert_hbrp_for_ilb_runout, insert_hbrp, in_spu_reorg,
2576 uses_ls_unit, spu_sched_init_global, spu_sched_init,
2577 spu_sched_reorder, asm_file_start): New functions.
2578 (clock_var, spu_sched_length, pipe0_clock,
2579 pipe1_clock, prev_clock_var, prev_priority,
2580 spu_ls_first, prev_ls_clock): New static variables.
2581 * config/spu/spu.h (TARGET_DEFAULT): Add MASK_SAFE_HINTS.
2582 * config/spu.md (iprefetch): Add operand, make it clobber MEM.
2583 (nopn_nv): Add a non-volatile version of nop.
2584 * config/spu/spu.opt (-mdual-nops, -mhint-max-nops,
2585 -mhint-max-distance, -msafe-hints): New options.
2586
2587 2008-09-05 Janis Johnson <janis187@us.ibm.com>
2588 Samuel Tardieu <sam@rfc1149.net>
2589
2590 * opts.c (decode_options): Combine nested if statements.
2591
2592 PR target/37283
2593 * opts.c (decode_options): Handle more relationships among
2594 unit-at-a-time, toplevel-reorder, and section-anchors.
2595
2596 2008-09-05 David Daney <ddaney@avtrex.com>
2597
2598 * doc/install.texi (--enable-reduced-reflection): Document new option.
2599
2600 2008-09-05 Bob Wilson <bob.wilson@acm.org>
2601
2602 * config/xtensa/predicates.md (nonimmed_operand, mem_operand): Use
2603 constantpool_mem_p.
2604 (constantpool_operand): New.
2605 (move_operand): Disallow sub-word modes for the constant pool.
2606 * config/xtensa/xtensa.c (TARGET_SECONDARY_RELOAD): Define.
2607 (xtensa_secondary_reload_class): Replace with....
2608 (xtensa_secondary_reload): this function. Remove SIGN_EXTEND check.
2609 Set icode for sub-word reloads from the constant pool.
2610 * config/xtensa/xtensa.h (SECONDARY_INPUT_RELOAD_CLASS): Delete.
2611 (SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
2612 * config/xtensa/xtensa.md (reload<mode>_literal): New.
2613 * config/xtensa/xtensa-protos.h: Update prototypes.
2614
2615 2008-09-05 Joseph Myers <joseph@codesourcery.com>
2616
2617 * config/mips/mips.h (enum reg_class): Add FRAME_REGS.
2618 (REG_CLASS_NAMES): Update.
2619 (REG_CLASS_CONTENTS): Update.
2620 * config/mips/mips.c (mips_regno_to_class): Use FRAME_REGS instead
2621 of ALL_REGS for regs 77 and 78.
2622 * function.c (instantiate_virtual_regs_in_insn): Assert that
2623 return value of simplify_gen_subreg is not NULL.
2624
2625 2008-09-05 Paolo Bonzini <bonzini@gnu.org>
2626
2627 * emit-rtl.c (gen_rtvec): Rewrite not using gen_rtvec_v.
2628 (gen_rtvec_v): Fix coding standards.
2629
2630 2008-09-04 Jan Hubicka <jh@suse.cz>
2631
2632 * i386.c (decide_alg): Be more conservative about optimizing for size.
2633
2634 2008-09-04 Ian Lance Taylor <iant@google.com>
2635
2636 * varasm.c (narrowing_initializer_constant_valid_p): New
2637 static function.
2638 (initializer_constant_valid_p): Call it.
2639
2640 2008-09-04 Jeff Law <law@redhat.com>
2641
2642 * fold-const.c (native_encode_real): Fix computation of WORDS.
2643 (native_interpret_real): Likewise.
2644
2645 2008-09-04 Janis Johnson <janis187@us.ibm.com>
2646
2647 * config/rs6000/t-rs6000: Remove target gt-rs6000.h.
2648
2649 2008-09-04 Vladimir Makarov <vmakarov@redhat.com>
2650
2651 * ira-conflicts.c (process_regs_for_copy): Check insn to check
2652 that the cost is already taken into account in ira-costs.c
2653
2654 * ira-int.h (ira_debug_copy, ira_debug_copies): New.
2655
2656 * ira-build.c (print_copy, print_copies, ira_debug_copy,
2657 ira_debug_copies): New.
2658 (ira_bulid): Call print_copies.
2659
2660 * doc/tm.texi (IRA_COVER_CLASSES): Fix the description.
2661
2662 2008-09-04 Samuel Tardieu <sam@rfc1149.net>
2663
2664 PR target/32783
2665 * config/rs6000/rs6000.c (optimization_options): Remove check of
2666 flag_toplevel_order.
2667
2668 2008-09-04 Adam Nemet <anemet@caviumnetworks.com>
2669
2670 * config/mips/mips.h (ISA_HAS_SEQ_SNE): New macro.
2671 * config/mips/mips.c (mips_expand_scc): Also expand seq and sne if
2672 second operand is a reg_imm10_operand.
2673 * config/mips/mips.md (*seq_<GPR:mode><GPR2:mode>_seq,
2674 *sne_<GPR:mode><GPR2:mode>_sne): New patterns.
2675 (*seq_<GPR:mode><GPR2:mode>): Rename to
2676 *seq_zero_<GPR:mode><GPR2:mode>. Don't match if
2677 ISA_HAS_SEQ_SNE.
2678 (*seq_<GPR:mode><GPR2:mode>_mips16): Rename to
2679 *seq_zero_<GPR:mode><GPR2:mode>_mip16. Don't match if
2680 ISA_HAS_SEQ_SNE.
2681 (*sne_<GPR:mode><GPR2:mode>): Rename to
2682 *sne_zero_<GPR:mode><GPR2:mode>. Don't match if
2683 ISA_HAS_SEQ_SNE.
2684
2685 2008-09-04 Adam Nemet <anemet@caviumnetworks.com>
2686
2687 * config/mips/mips.h (ISA_HAS_EXTS): New macro.
2688 * config/mips/mips.md (*ashr_trunc<mode>): Name the pattern
2689 combining an arithmetic right shift by more than 31 and a
2690 trunction. Don't match for out-of-range shift amounts. Set
2691 attribute mode to <MODE>.
2692 (*lshr32_trunc<mode>): Name the pattern combining a logical right
2693 shift by 32 and and a truncation. Set attribute mode to <MODE>.
2694 (*<optab>_trunc<mode>_exts): New pattern for truncated right
2695 shifts by less than 32.
2696 (extv): Change predicate on first operand to accept registers.
2697 Change predicate of the other operands from immediate_operand to
2698 const_int_operand. Expand exts when source is a register.
2699 (extzv): Change predicate of the constant operands from
2700 immediate_operand to const_int_operand.
2701 (extzv<mode>): Change predicate of the constant operands from
2702 immediate_operand to const_int_operand and no constraint. Also
2703 remove mode.
2704 (*extzv_trunc<mode>_exts): New pattern.
2705
2706 2008-09-04 Adam Nemet <anemet@caviumnetworks.com>
2707
2708 * config/mips/mips.h (ISA_HAS_CINS): New macro.
2709 * config/mips/mips-protos.h (mask_low_and_shift_p,
2710 mask_low_and_shift_len): Declare.
2711 * config/mips/mips.c (mask_low_and_shift_p,
2712 mask_low_and_shift_len): New functions.
2713 (mips_print_operand): Handle new operand prefix "m".
2714 * config/mips/mips.md (*cins<mode>): New pattern.
2715
2716 2008-09-04 Bernd Schmidt <bernd.schmidt@analog.com>
2717
2718 * config/bfin/bfin.c (gen_one_bundle): Don't create new nops when
2719 optimizing for size.
2720
2721 2008-09-04 Richard Sandiford <rdsandiford@googlemail.com>
2722
2723 * df-scan.c (df_get_entry_block_def_set): Add STACK_POINTER_REGNUM
2724 regardless of epilogue_completed.
2725
2726 2008-09-04 Vladimir Makarov <vmakarov@redhat.com>
2727
2728 PR middle-end/37359
2729 * ira-lives.c (process_bb_node_lives): Check setjmp.
2730
2731 2008-09-04 Richard Sandiford <rdsandiford@googlemail.com>
2732
2733 PR middle-end/37243
2734 * ira-build.c (form_loop_tree): Reverse BB walk.
2735 (create_bb_allocnos): Likewise.
2736 * ira-lives.c (make_regno_born_and_dead, regs_set): Delete.
2737 (mark_reg_store): Rename to...
2738 (mark_ref_live): ...this and take a df_ref argument instead of
2739 note_stores arguments. Assert that we have a register.
2740 (mark_reg_clobber): Delete.
2741 (def_conflicts_with_inputs_p): New function.
2742 (mark_reg_conflicts): Delete.
2743 (mark_reg_death): Rename to...
2744 (mark_ref_dead): ...this and take a df_ref argument instead of
2745 a register. Assert that we have a register.
2746 (process_bb_node_lives): Hoist frequency calculation out of
2747 instruction walk. Convert from a forwards scan to a backwards scan.
2748 Use DF_REF_USES and DF_REF_DEFS instead of register notes and
2749 note_stores. Remove EH_RETURN_DATA_REGNO and regs_set handling.
2750 (create_allocno_live_ranges): Don't create regs_set.
2751
2752 2008-09-04 Ian Lance Taylor <iant@google.com>
2753
2754 * rtl.h (LABEL_REF_NONLOCAL_P): Don't check for REG_LABEL_OPERAND
2755 or REG_LABEL_TARGET.
2756 * calls.c (emit_library_call_value_1): Use MEM_P rather than
2757 comparing MODE with MEM.
2758 * gimple.c (gimple_build_predict): Cast END_PREDICTORS before
2759 comparing with GF_PREDICT_TAKEN.
2760 (gimple_get_lhs): Change code to enum gimple_code.
2761 (gimple_set_lhs): Likewise.
2762 * ifcvt.c (noce_process_if_block): Correct GET_MODE to GET_CODE.
2763 * omp-low.c (find_omp_clause): Change kind parameter to enum
2764 omp_clause_code.
2765 * tree-flow.h (find_omp_clause): Update declaration.
2766 * regrename.c (clear_dead_regs): Change kind parameter to enum
2767 reg_note.
2768 * reload1.c (eliminate_regs_1): Use REG_NOTE_KIND rather than
2769 GET_MODE.
2770 * see.c (see_get_extension_data): Change return type to enum
2771 entry_type. Change UNKNOWN to NOT_RELEVANT, SIGN_EXTEND to
2772 SIGNED_EXTENDED_DEF, ZERO_EXTEND to ZERO_EXTENDED_DEF.
2773 (see_gen_normalized_extension): Change extension_code parameter to
2774 enum entry_type.
2775 (see_seek_pre_extension_expr): Change extension_code to enum
2776 entry_type.
2777 (see_merge_one_def_extension): Likewise.
2778 (see_handle_relevant_defs): Likewise.
2779 (see_handle_relevant_uses): Likewise.
2780 (see_analyze_one_def): Likewise.
2781 * tree-cfg.c (need_fake_edge_p): Compare gimple code with
2782 GIMPLE_ASM rather than ASM_EXPR.
2783 * tree-ssa-alias.c (is_escape_site): Compare gimple code with
2784 GIMPLE_RETURN rather than RETURN_EXPR.
2785 * tree-ssa-ccp.c (likely_value): Change code to enum gimple_code.
2786 (evaluate_stmt): Likewise.
2787 * tree-vect-analyze.c (vect_analyze_operations): Change relevance
2788 to enum vect_relevant.
2789 (vect_mark_stmts_to_be_vectorized): Change assertion to not
2790 compare gimple codes with tree codes.
2791
2792 2008-09-04 Paul Brook <paul@codesourcery.com>
2793
2794 * config/arm/arm.c (arm_size_rtx_costs): Call cost function.
2795
2796 2008-09-04 Bernd Schmidt <bernd.schmidt@analog.com>
2797
2798 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Restore a null
2799 pointer check lost in the recent no-unit-at-a-time patch.
2800
2801 2008-09-04 Jan Hubicka <jh@suse.cz>
2802
2803 PR middle-end/37343
2804 * tree-switch-conversion.c (check_final_bb): Accept only IP
2805 invariants.
2806
2807 2008-09-04 Jan Hubicka <jh@suse.cz>
2808
2809 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
2810 Break out from ...
2811 (vrp_evaluate_conditional_warnv_with_ops): ... this one. Add
2812 using_ranges argument.
2813 (vrp_evaluate_conditional): Avoid bogus warning for type range.
2814 (vrp_visit_cond_stmt): Update call of
2815 vrp_evaluate_conditional_warnv_with_ops
2816
2817 2008-09-04 Jan Hubicka <jh@suse.cz>
2818
2819 PR tree-optimization/37345
2820 PR tree-optimization/37358
2821 PR tree-optimization/37357
2822 * tree.c (build_function_type_skip_args): Build distinct type copy;
2823 set TYPE_CONTEXT.
2824 (build_function_decl_skip_args): Set type of new decl not orig decl;
2825 clear DECL_VINDEX for methods turned into functions.
2826
2827 2008-09-04 Nick Clifton <nickc@redhat.com>
2828
2829 * configure.ac (HAVE_GAS_LCOMM_WITH_ALIGNMENT): New assembler check.
2830 * configure: Regenerate.
2831 * config.in: Regenerate.
2832 * config/i386/bsd.h (ASM_OUTPUT_ALIGNED_LOCAL): Use .lcomm with an
2833 alignment field, if it is supported.
2834
2835 2008-09-04 Kai Tietz <kai.tietz@onevision.com>
2836
2837 * config/i386/t-mingw32 (SHLIB_LC): Change order of import
2838 libraries.
2839
2840 2008-09-03 David Edelsohn <edelsohn@gnu.org>
2841
2842 * config/rs6000/rs6000.c (processor_target_table): Do not
2843 enable VMX for POWER6.
2844
2845 2008-09-03 Anton Blanchard <anton@samba.org>
2846
2847 * config/rs6000/rs6000.c (rs6000_split_lock_test_and_set): Do not
2848 emit memory barrier before operation.
2849
2850 2008-09-03 John David Anglin <dave.anglin@nrc.cnrc.gc.ca>
2851
2852 PR testsuite/37325
2853 * config/pa/pa64-hpux.h (ASM_OUTPUT_EXTERNAL_REAL): Call
2854 default_elf_asm_output_external.
2855
2856 2008-09-03 Jeff Law <law@redhat.com>
2857
2858 * h8300.c (expand_a_shift): Avoid invalid RTL sharing.
2859
2860 2008-09-03 Richard Henderson <rth@redhat.com>
2861
2862 * config/alpha/alpha.c (alpha_split_lock_test_and_set): Move
2863 memory barrier to below the test-and-set.
2864 (alpha_split_lock_test_and_set_12): Likewise.
2865
2866 2008-09-03 Vladimir Makarov <vmakarov@redhat.com>
2867
2868 PR rtl-opt/37243
2869
2870 * ira-int.h (ira_loop_tree_node): Rename mentioned_allocnos to
2871 all_allocnos.
2872
2873 * ira-color.c (print_loop_title): Use all_allocnos.
2874 (color_pass): Ditto. Don't add border_allocnos. Check that
2875 subloop allocno in the correspdoning bitmap all_allocnos.
2876
2877 * ira-emit.c (change_loop): Use all_allocnos.
2878
2879 * ira-build.c (create_loop_tree_nodes, finish_loop_tree_node): Ditto.
2880 (ira_create_allocno): Set up all_allocnos bit for the created allocno.
2881 (create_cap_allocno): Remove setting mentioned_allocnos.
2882 (create_insn_allocnos): Ditto.
2883 (remove_unnecessary_allocnos): Use all_allocnos.
2884 (check_allocno_creation): Check that allocnos are in the
2885 corresponding bitmap all_allocnos.
2886
2887 2008-09-03 Vladimir Makarov <vmakarov@redhat.com>
2888
2889 PR rtl-opt/37243
2890
2891 * ira-conflicts.c (REG_SUBREG_P, go_through_subreg): New.
2892 (process_regs_for_copy): Process subregs. Refine check when cost
2893 is taken into account in ira-costs.c.
2894 (process_reg_shuffles): Use REG_SUBREG_P.
2895 (add_insn_allocno_copies): Ditto. Ignore modes.
2896
2897 * ira-color.c (conflict_allocno_vec): New.
2898 (COST_HOP_DIVISOR): New macro.
2899 (update_copy_costs_1): Use it.
2900 (update_conflict_hard_regno_costs): New function.
2901 (assign_hard_reg): Use it.
2902 (ira_color): Allocate and free conflict_allocno_vec.
2903
2904 2008-09-03 Vladimir Makarov <vmakarov@redhat.com>
2905
2906 PR rtl-opt/37296
2907
2908 * ira-int.h (ira_sort_insn_chain): Remove.
2909
2910 * ira.c (basic_block_order_nums, chain_insn_order,
2911 chain_freq_compare, chain_bb_compare, ira_sort_insn_chain): Remove.
2912 (ira): Don't call ira_sort_insn_chain.
2913
2914 * reload1.c (reload): Don't call ira_sort_insn_chain.
2915
2916 2008-09-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
2917
2918 PR middle-end/37293
2919 * cgraphunit.c (update_call_expr): Remove eh regions from statements
2920 which become non throw.
2921 (cgraph_function_versioning): Also clear DECL_WEAK. Call
2922 update_call_expr after updating the flags on the decl.
2923
2924 2008-09-03 Jan Hubicka <jh@suse.cz>
2925
2926 PR tree-optimization/37315
2927 * cgraph.c (cgraph_create_edge): Use gimple_has_body_p.
2928 * cgraphunit.c (verify_cgraph_node): drop gimple_body check.
2929 (cgraph_analyze_functions): Use node->analyzed
2930 (cgraph_mark_functions_to_output): Likewise.
2931 (cgraph_expand_function): All functions can be released after
2932 expanding.
2933 (cgraph_optimize): Use gimple_has_body_p.
2934 * ipa-inline.c (cgraph_clone_inlined_nodes): Use analyzed flag.
2935 (cgraph_decide_inlining_incrementally): Likewise.
2936 (inline_transform): Inline transform.
2937 * tree-inline.c (initialize_cfun): Do now shallow copy structure;
2938 copy fields needed.
2939 (inlinable_function_p): Drop gimple_body check.
2940 (expand_call_inline): Use gimple_has_body_p.
2941 * gimple.c (gimple_has_body_p): New.
2942 * gimple.h (gimple_has_body_p): Add prototype.
2943 * tree-cfg.c (execute_build_cfg): Remove gimple_body.
2944 (dump_function_to_file): Use gimple_has_body_p check.
2945
2946 2008-09-03 Jakub Jelinek <jakub@redhat.com>
2947
2948 PR c++/37346
2949 * gimple.h (gimple_has_substatements): GIMPLE_OMP_CRITICAL has
2950 substatements.
2951 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_CRITICAL.
2952
2953 2008-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
2954
2955 From Michael Frysinger <michael.frysinger@analog.com>
2956 * config/bfin/bfin.c (bfin_cpus[]): Add 0.1 for bf522, bf523, bf524,
2957 bf525, bf526, bf527, bf542, bf544, bf547, bf548, and bf549. Add 0.2
2958 for bf538.
2959
2960 2008-09-03 Hari Sandanagobalane <hariharan@picochip.com>
2961
2962 Add picoChip port.
2963 * doc/extend.texi: Document picoChip builtin functions.
2964 * doc/invoke.texi: Document picoChip options.
2965 * doc/contrib.texi: Add picoChip contribution.
2966 * doc/md.texi: Document picoChip constraints.
2967 * config.gcc: Add picochip-*-*.
2968 * config/picochip/: Add new port.
2969
2970 2008-09-03 Richard Guenther <rguenther@suse.de>
2971
2972 PR tree-optimization/37328
2973 * tree-sra.c (sra_build_assignment): Gimplify properly.
2974 (generate_copy_inout): Take the correct stmt as definition,
2975 remove bogus assert.
2976
2977 2008-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
2978
2979 * config/bfin/bfin.c (bfin_expand_prologue): Honour no_stack_limit
2980 attributes.
2981
2982 From Michael Frysinger <michael.frysinger@analog.com>
2983 * config/bfin/bfin.c (bfin_handle_option): Remove BF561 warning.
2984
2985 2008-09-03 Danny Smith <dannysmith@usrs.sourceforge.net>
2986
2987 * gthr-win32.h (CONST_CAST2): Really make sure CONST_CAST2 is defined.
2988 (__gthread_setspecific): Revert 2008-08-31 change to
2989 __GTHREAD_HIDE_W32API case. Apply it to !__GTHREAD_HIDE_W32API case.
2990
2991 2008-09-02 Aldy Hernandez <aldyh@redhat.com>
2992
2993 * diagnostic.c (error_at): New.
2994 * toplev.h (error_at): New prototype.
2995 * c-typeck.c (build_array_ref): Call error_at instead of error.
2996 Pass location to pedwarn.
2997
2998 2008-09-02 Adam Nemet <anemet@caviumnetworks.com>
2999
3000 * sel-sched.c (sel_hard_regno_rename_ok): Mark arguments unused.
3001
3002 2008-09-02 Jakub Jelinek <jakub@redhat.com>
3003
3004 * dwarf2out.c (tree_add_const_value_attribute): Only handle
3005 VAR_DECL and CONST_DECL.
3006
3007 2008-09-02 H.J. Lu <hongjiu.lu@intel.com>
3008 Jakub Jelinek <jakub@redhat.com>
3009
3010 * config/i386/i386.c (X86_64_VARARGS_SIZE): Removed.
3011 (setup_incoming_varargs_64): Assume cum != NULL. Set/check
3012 ix86_varargs_gpr_size and ix86_varargs_fpr_size. Use
3013 ix86_varargs_gpr_size instead of X86_64_REGPARM_MAX.
3014 Don't set ix86_save_varrargs_registers.
3015 (ix86_setup_incoming_varargs): Assume cum != NULL.
3016 (ix86_va_start): Check ix86_varargs_gpr_size and
3017 ix86_varargs_fpr_size instead of cfun->va_list_gpr_size and
3018 cfun->va_list_fpr_size, respectively. Subtract 8*X86_64_REGPARM_MAX
3019 from frame pointer if ix86_varargs_gpr_size == 0.
3020 (ix86_compute_frame_layout): Updated.
3021 * config/i386/i386.h (ix86_save_varrargs_registers): Removed.
3022 (ix86_varargs_gpr_size): Define.
3023 (ix86_varargs_fpr_size): Likewise.
3024 (machine_function): Remove save_varrargs_registers.
3025 Add varargs_gpr_size and varargs_fpr_size.
3026
3027 2008-09-02 Jakub Jelinek <jakub@redhat.com>
3028
3029 * config/alpha/alpha.c (va_list_skip_additions,
3030 alpha_stdarg_optimize_hook, alpha_gimplify_va_arg_1): Tuplify.
3031 (alpha_gimplify_va_arg): Call unshare_expr on second use of
3032 offset_field.
3033
3034 PR tree-optimization/36766
3035 * tree-cfg.c (gimple_purge_all_dead_eh_edges): Do nothing
3036 for already removed basic blocks.
3037
3038 PR target/36332
3039 * real.c (real_maxval): Clear a lower bit to make real_maxval
3040 match get_max_float for IBM long double format.
3041
3042 2008-09-02 Andreas Schwab <schwab@suse.de>
3043
3044 * configure.ac: Use m4_quote to quote the expansion of m4_do.
3045 * configure: Regenerate.
3046
3047 2008-09-02 Richard Sandiford <rdsandiford@googlemail.com>
3048
3049 * simplify-rtx.c (simplify_binary_operation_1): Check for CONST,
3050 SYMBOL_REF and LABEL_REF when applying plus_constant, instead of
3051 checking for a non-VOID CONSTANT_P.
3052
3053 2008-09-02 Jan Hubicka <jh@suse.cz>
3054
3055 * predict.c (pass_strip_predict_hints): Avoid bugs dump file.
3056 * expmed.c (expand_divmod): Fix test of smod_pow2_cheap and
3057 sdiv_pow2_cheap
3058
3059 2008-09-02 H.J. Lu <hongjiu.lu@intel.com>
3060
3061 * expr.c (emit_group_store): Don't assert stack temp mode size.
3062
3063 2008-09-02 Sebastian Pop <sebastian.pop@amd.com>
3064 Tobias Grosser <grosser@fim.uni-passau.de>
3065 Jan Sjodin <jan.sjodin@amd.com>
3066 Harsha Jagasia <harsha.jagasia@amd.com>
3067 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3068 Konrad Trifunovic <konrad.trifunovic@inria.fr>
3069 Adrien Eliche <aeliche@isty.uvsq.fr>
3070
3071 Merge from graphite branch.
3072 * graphite.c: New.
3073 * graphite.h: New.
3074 * tree-loop-linear.c (perfect_loop_nest_depth): Export.
3075 * doc/invoke.texi (-floop-block, -floop-interchange,
3076 -floop-strip-mine): Document new flags.
3077 * tree-into-ssa.c (gimple_vec): Moved...
3078 * tree-loop-distribution.c (rdg_component): Moved...
3079 * cfgloopmanip.c: Include tree-flow.h.
3080 (update_dominators_in_loop): New.
3081 (create_empty_if_region_on_edge): New.
3082 (create_empty_loop_on_edge): New.
3083 (loopify): Use update_dominators_in_loop.
3084 * tree-pass.h (pass_graphite_transforms): Declared.
3085 * configure: Regenerate.
3086 * tree-phinodes.c (make_phi_node): Export.
3087 (add_phi_node_to_bb): New, split from create_phi_node.
3088 * tree-chrec.c (for_each_scev_op): New.
3089 * tree-chrec.h (for_each_scev_op): Declared.
3090 * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
3091 (remove_statement): Call get_phi_with_result.
3092 * config.in (HAVE_cloog): Undef.
3093 * gdbinit.in (pgg): New.
3094 * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
3095 * tree-ssa-loop.c (graphite_transforms): New.
3096 (gate_graphite_transforms): New.
3097 (pass_graphite_transforms): New.
3098 * configure.ac (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC,
3099 HAVE_cloog): Defined.
3100 * tree-vectorizer.c (rename_variables_in_bb): Export.
3101 * tree-data-ref.c (dr_may_alias_p): Export.
3102 (stmt_simple_memref_p): New.
3103 (find_data_references_in_stmt): Export.
3104 (find_data_references_in_loop): Export.
3105 (create_rdg_edge_for_ddr): Initialize RDGE_RELATION.
3106 (create_rdg_edges_for_scalar): Initialize RDGE_RELATION.
3107 (create_rdg_vertices): Export.
3108 (build_empty_rdg): New.
3109 (build_rdg): Call build_empty_rdg. Free dependence_relations.
3110 * tree-data-ref.h (rdg_component): ... here.
3111 (scop_p): New.
3112 (struct data_reference): Add a field scop.
3113 (DR_SCOP): New.
3114 (find_data_references_in_loop): Declared.
3115 (find_data_references_in_stmt): Declared.
3116 (create_rdg_vertices): Declared.
3117 (dr_may_alias_p): Declared.
3118 (stmt_simple_memref_p): Declared.
3119 (struct rdg_edge): Add a field ddr_p relation.
3120 (build_empty_rdg): Declared.
3121 * lambda.h (lambda_matrix): Declare a VEC of.
3122 (find_induction_var_from_exit_cond): Declared.
3123 (lambda_vector_compare): New.
3124 * common.opt (fgraphite, floop-strip-mine,
3125 floop-interchange, floop-block): New flags.
3126 * lambda-code.c (find_induction_var_from_exit_cond): Export.
3127 * cfgloop.c (is_loop_exit): New.
3128 * cfgloop.h (is_loop_exit): Declared.
3129 (create_empty_if_region_on_edge): Declared.
3130 (create_empty_loop_on_edge): Declared.
3131 * tree-flow.h (add_phi_node_to_bb): Declared.
3132 (make_phi_node): Declared.
3133 (rename_variables_in_bb): Declared.
3134 (perfect_loop_nest_depth): Declared.
3135 (graphite_transform_loops): Declared.
3136 * Makefile.in (cfgloopmanip.o): Depend on TREE_FLOW_H.
3137 (graphite.o-warn): Add -Wno-error.
3138 (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC): Declared.
3139 (LIBS): Add GMPLIBS, CLOOGLIBS, PPLLIBS.
3140 (INCLUDES): Add PPLINC, CLOOGINC.
3141 (OBJS-common): Add graphite.o.
3142 (graphite.o): Add rule.
3143 * gimple.h (gimple_vec): ... here.
3144 * tree-cfg.c (print_loops): Start printing at ENTRY_BLOCK_PTR.
3145 * passes.c (init_optimization_passes): Schedule
3146 pass_graphite_transforms.
3147
3148 2008-09-02 Samuel Tardieu <sam@rfc1149.net>
3149
3150 PR target/37283
3151 * opts.c (decode_options): Move processing of -fno-unit-at-a-time
3152 and -fno-toplevel-reorder after handle_options.
3153
3154 2008-09-02 Paul Brook <paul@codesourcery.com>
3155
3156 * config/arm/arm.c (arm_tune_cortex_a9): Define.
3157 (arm_override_options): Set arm_tune_cortex_a9.
3158 (arm_rtx_costs_1): Make register shifts more expensive on Cortex-A9.
3159 (arm_issue_rate): Handle cortexa9.
3160 * config/arm/arm.h (arm_tune_cortex_a9): Declare.
3161 * config/arm/arm-cores.def: Add cortex-a9.
3162 * config/arm/arm-tune.md: Regenerate.
3163 * config/arm/arm.md: Include cortex-a9.md.
3164 (generic_sched, generic_vfp): Add cortexa9.
3165 * config/arm/cortex-a9.md: New file.
3166
3167 2008-09-02 Richard Guenther <rguenther@suse.de>
3168
3169 PR tree-optimization/37327
3170 * tree-vrp.c (register_new_assert_for): Make sure to not have
3171 TREE_OVERFLOW set on the bound.
3172
3173 2008-09-02 Alexander Monakov <amonakov@ispras.ru>
3174
3175 Fixed typo in date of the 2008-09-01 MOVE_RATIO commit.
3176
3177 * config/ia64/ia64.opt (msched-ar-data-spec): Default to 1.
3178 * config/ia64/ia64.c (ia64_set_sched_flags): Always initialize
3179 spec_info->mask.
3180
3181 2008-09-02 Victor Kaplansky <victork@il.ibm.com>
3182
3183 * gcc/config/spu/spu.md (divdf3): Removed.
3184
3185 2008-09-02 Jakub Jelinek <jakub@redhat.com>
3186
3187 PR tree-optimization/37095
3188 * cgraph.c (cgraph_node): When creating new cgraph node after
3189 assembler_name_hash has been populated, record it in the hash
3190 table.
3191
3192 2008-09-01 Paul Brook <paul@codesourcery.com>
3193
3194 * doc/invoke.texi: Document -mword-relocations.
3195 * config/arm/uclinux-elf.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
3196 * config/arm/symbian.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
3197 * config/arm/vxworks.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
3198 * config/arm/arm.c (arm_split_constant): Use arm_emit_movpair.
3199 (arm_rtx_costs_1, arm_size_rtx_costs): Handle HIGH and LO_SUM.
3200 (arm_emit_movpair): New function.
3201 (arm_print_operand <c>): Handle sybolic addresses.
3202 * config/arm/arm.h (TARGET_USE_MOVT): Define.
3203 (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
3204 * config/arm/arm-protos.h (arm_emit_movpair): Add prototype.
3205 * config/arm/arm.opt: Add -mword-relocations.
3206 * config/arm/arm.md (movsi): Use arm_emit_movpair.
3207 (arm_movt, arm_movw): New.
3208
3209 2008-09-01 Paul Brook <paul@codesourcery.com>
3210
3211 * config/arm/arm.c (arm_override_options): Set arm_abi earlier.
3212 Allow Interworking on ARMv4 EABI based targets.
3213 * config/arm/bpabi.h (TARGET_FIX_V4BX_SPEC): Define.
3214 (SUBTARGET_EXTRA_ASM_SPEC, LINK_SPEC): Add TARGET_FIX_V4BX_SPEC.
3215
3216 2008-09-01 Paul Brook <paul@codesourcery.com>
3217
3218 * config/arm/thumb2.md (thumb2_negscc): Match the correct operand for
3219 optimized LT0 test. Remove optimization for GT.
3220
3221 2008-09-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3222
3223 * pa64-hpux.h (LIB_SPEC): Link against librt when building static
3224 openmp applications.
3225 * pa-hpux11.h (LIB_SPEC): Likewise.
3226
3227 * ira.c (setup_eliminable_regset): Only declare i if ELIMINABLE_REGS
3228 is defined.
3229
3230 2008-09-01 Jan Hubicka <jh@suse.cz>
3231
3232 * predict.c (maybe_hot_count_p, maybe_hot_edge_p): When profile is
3233 present, use only counts; when guessed use only frequencies.
3234 (estimate_bb_frequencies): Use function_frequency.
3235 * profile.c (compute_branch_probabilities): Exit early when
3236 profile reading failed. Set profile_status.
3237 (branch_prob): Do not set profile_status.
3238
3239 2008-09-01 Aldy Hernandez <aldyh@redhat.com>
3240
3241 * tree.c (protected_set_expr_location): New.
3242 * tree.h (protected_set_expr_location): New prototype.
3243 * c-tree.h (build_array_ref): Add argument.
3244 (parser_build_unary_op): Same.
3245 * c-typeck.c (build_indirect_ref): Handle new location argument.
3246 (build_array_ref): Same.
3247 (parser_build_unary_op): Same.
3248 * gimplify.c (gimplify_asm_expr): Set input_location before calling
3249 error.
3250 * c-omp.c (c_finish_omp_atomic): Pass location when calling
3251 build_indirect_ref.
3252 * c-common.c (finish_label_address_expr): Handle new location argument.
3253 * c-common.h (build_indirect_ref): Add argument.
3254 (finish_label_address_expr): Same.
3255 * c-parser.c (c_parser_unary_expression): Pass location to build
3256 functions.
3257 (c_parser_postfix_expression): Same.
3258
3259 2008-09-01 Paul Brook <paul@codesourcery.com>
3260
3261 * config/arm/arm.md: Include cortex-r4f.md.
3262 (attr fpu): Update type list.
3263 (attr type): Add fcpys, ffariths, ffarithd, fadds, faddd, fconsts,
3264 fconstd, fcmps and fcmpd.
3265 (attr tune_cortexr4): Define.
3266 (attr generic_sched, attr generic_vfp): Use tune_cortexr4.
3267 * config/arm/vfp.md: Document fcpys, ffariths, ffarithd, fadds, faddd,
3268 fconsts, fconstd, fcmps and fcmpd. Use them in insn patterns.
3269 * config/arm/arm.c (arm_issue_rate): Add cortexr4f.
3270 * config/arm/arm1020e.md (v10_ffarith, v10_farith): Use new insn types.
3271 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_add_sub,
3272 cortex_a8_vfp_farith: Ditto.
3273 * config/arm/vfp11.md (vfp_ffarith, vfp_farith): Ditto.
3274 * config/arm/cortex-r4.md: Use tune_cortexr4.
3275 * config/arm/cortex-r4f.md: New file.
3276
3277 2008-09-01 Richard Guenther <rguenther@suse.de>
3278
3279 PR tree-optimization/37305
3280 * tree-ssa-ccp.c (ccp_fold): Do not set TREE_OVERFLOW on
3281 the result of constant conversions.
3282 (fold_gimple_assign): Likewise.
3283
3284 2008-09-01 Andrey Belevantsev <abel@ispras.ru>
3285
3286 * sel-sched-ir.c (cmp_v_in_regset_pool): Surround with
3287 #ifdef ENABLE_CHECKING.
3288
3289 2008-09-01 Andrey Belevantsev <abel@ispras.ru>
3290
3291 * sel-sched-dump.c: Surround with #ifdef INSN_SCHEDULING.
3292 * sched-int.h (print_insn, print_pattern, print_value): Declare also
3293 when !INSN_SCHEDULING.
3294
3295 2008-09-01 Andreas Schwab <schwab@suse.de>
3296
3297 * config/ia64/ia64.c (TARGET_ADDRESS_COST): Update.
3298
3299 2008-09-01 Paul Brook <paul@codesourcery.com>
3300
3301 * config/arm/arm.c (arm_no_early_mul_dep): Handle multiply-subtract.
3302
3303 2008-09-01 Jan Hubicka <jh@suse.cz>
3304
3305 * config/spu/spu.c (spu_expand_block_move) Update call of MOVE_RATIO.
3306
3307 * expr.c (MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P, SET_BY_PIECES_P):
3308 Pass speed operand.
3309 * expr.h (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Update.
3310 * gimplify.c (gimplify_init_constructor): Add speed operand.
3311 * tree-sra.c (decide_block_copy): Likewise.
3312 * tree-inline.c (estimate_move_cost): Likewise.
3313 * config/alpha/alpha.h (MOVE_RATIO): Update.
3314 * config/frv/frv.c (MOVE_RATIO): Update.
3315 * config/spu/spu.h (MOVE_RATIO): Update.
3316 * config/sparc/sparc.h (MOVE_RATIO): Update.
3317 * config/i386/i386.h (MOVE_RATIO, CLEAR_RATIO): Update.
3318 * config/m68hc11/m68hc11.h (MOVE_RATIO): Update.
3319 * config/cris/cris.h (MOVE_RATIO): Update.
3320 * config/mn10300/mn10300.h (MOVE_RATIO): Update.
3321 * config/arm/arm.h (MOVE_RATIO): Update.
3322 * config/pa/pa.md: Update uses of MOVE_RATIO
3323 * config/pa/pa.h (MOVE_RATIO): Update.
3324 * config/mips/mips.h (MOVE_RATIO, MOVE_BY_PIECES,
3325 CLEAR_RATIO, SET_RATIO): Update.
3326 * config/h8300/h8300.h (MOVE_RATIO): Update.
3327 * config/v850/v850.h (MOVE_RATIO): Update.
3328 * config/bfin/bfin.h (MOVE_RATIO): Update.
3329
3330 2008-08-31 Andrey Belevantsev <abel@ispras.ru>
3331 Dmitry Melnik <dm@ispras.ru>
3332 Dmitry Zhurikhin <zhur@ispras.ru>
3333 Alexander Monakov <amonakov@ispras.ru>
3334 Maxim Kuvyrkov <maxim@codesourcery.com>
3335
3336 * sel-sched.h, sel-sched-dump.h, sel-sched-ir.h, sel-sched.c,
3337 sel-sched-dump.c, sel-sched-ir.c: New files.
3338 * Makefile.in (OBJS-common): Add selective scheduling object files.
3339 (sel-sched.o, sel-sched-dump.o, sel-sched-ir.o): New entries.
3340 (SEL_SCHED_IR_H, SEL_SCHED_DUMP_H): New entries.
3341 (sched-vis.o): Add dependency on $(INSN_ATTR_H).
3342 * cfghooks.h (get_cfg_hooks, set_cfg_hooks): New prototypes.
3343 * cfghooks.c (get_cfg_hooks, set_cfg_hooks): New functions.
3344 (make_forwarder_block): Update loop latch if we have redirected
3345 the loop latch edge.
3346 * cfgloop.c (get_loop_body_in_custom_order): New function.
3347 * cfgloop.h (LOOPS_HAVE_FALLTHRU_PREHEADERS): New enum field.
3348 (CP_FALLTHRU_PREHEADERS): Likewise.
3349 (get_loop_body_in_custom_order): Declare.
3350 * cfgloopmanip.c (has_preds_from_loop): New.
3351 (create_preheader): Honor CP_FALLTHRU_PREHEADERS.
3352 Assert that the preheader edge will be fall thru when it is set.
3353 * common.opt (fsel-sched-bookkeeping, fsel-sched-pipelining,
3354 fsel-sched-pipelining-outer-loops, fsel-sched-renaming,
3355 fsel-sched-substitution, fselective-scheduling): New flags.
3356 * cse.c (hash_rtx_cb): New.
3357 (hash_rtx): Use it.
3358 * dbgcnt.def (sel_sched_cnt, sel_sched_region_cnt,
3359 sel_sched_insn_cnt): New counters.
3360 * final.c (compute_alignments): Export. Free dominance
3361 info after loop_optimizer_finalize.
3362 * genattr.c (main): Output maximal_insn_latency prototype.
3363 * genautomata.c (output_default_latencies): New.
3364 Factor its code from ...
3365 (output_internal_insn_latency_func): ... here.
3366 (output_internal_maximal_insn_latency_func): New.
3367 (output_maximal_insn_latency_func): New.
3368 * hard-reg-set.h (UHOST_BITS_PER_WIDE_INT): Define unconditionally.
3369 (struct hard_reg_set_iterator): New.
3370 (hard_reg_set_iter_init, hard_reg_set_iter_set,
3371 hard_reg_set_iter_next): New functions.
3372 (EXECUTE_IF_SET_IN_HARD_REG_SET): New macro.
3373 * lists.c (remove_free_INSN_LIST_node,
3374 remove_free_EXPR_LIST_node): New functions.
3375 * loop-init.c (loop_optimizer_init): When
3376 LOOPS_HAVE_FALLTHRU_PREHEADERS, set CP_FALLTHRU_PREHEADERS when
3377 calling create_preheaders.
3378 (loop_optimizer_finalize): Do not verify flow info after reload.
3379 * recog.c (validate_replace_rtx_1): New parameter simplify.
3380 Default it to true. Update all uses. Factor out simplifying
3381 code to ...
3382 (simplify_while_replacing): ... this new function.
3383 (validate_replace_rtx_part,
3384 validate_replace_rtx_part_nosimplify): New.
3385 * recog.h (validate_replace_rtx_part,
3386 validate_replace_rtx_part_nosimplify): Declare.
3387 * rtl.c (rtx_equal_p_cb): New.
3388 (rtx_equal_p): Use it.
3389 * rtl.h (rtx_equal_p_cb, hash_rtx_cb): Declare.
3390 (remove_free_INSN_LIST_NODE, remove_free_EXPR_LIST_node,
3391 debug_bb_n_slim, debug_bb_slim, print_rtl_slim): Likewise.
3392 * vecprim.h: Add a vector type for unsigned int.
3393 * haifa-sched.c: Include vecprim.h and cfgloop.h.
3394 (issue_rate, sched_verbose_param, note_list, dfa_state_size,
3395 ready_try, cycle_issued_insns, spec_info): Make global.
3396 (readyp): Initialize.
3397 (dfa_lookahead): New global variable.
3398 (old_max_uid, old_last_basic_block): Remove.
3399 (h_i_d): Make it a vector.
3400 (INSN_TICK, INTER_TICK, QUEUE_INDEX, INSN_COST): Make them work
3401 through HID macro.
3402 (after_recovery, adding_bb_to_current_region_p):
3403 New variables to handle correct insertion of the recovery code.
3404 (struct ready_list): Move declaration to sched-int.h.
3405 (rgn_n_insns): Removed.
3406 (rtx_vec_t): Move to sched-int.h.
3407 (find_insn_reg_weight): Remove.
3408 (find_insn_reg_weight1): Rename to find_insn_reg_weight.
3409 (haifa_init_h_i_d, haifa_finish_h_i_d):
3410 New functions to initialize / finalize haifa instruction data.
3411 (extend_h_i_d, init_h_i_d): Rewrite.
3412 (unlink_other_notes): Move logic to add_to_note_list. Handle
3413 selective scheduler.
3414 (ready_lastpos, ready_element, ready_sort, reemit_notes,
3415 find_fallthru_edge): Make global, remove static prototypes.
3416 (max_issue): Make global. Add privileged_n and state parameters. Use
3417 them.
3418 (extend_global, extend_all): Removed.
3419 (init_before_recovery): Add new param. Fix the handling of the case
3420 when we insert a recovery code before the EXIT which has a predecessor
3421 with a fallthrough edge to it.
3422 (create_recovery_block): Make global. Rename to
3423 sched_create_recovery_block. Update.
3424 (change_pattern): Rename to sched_change_pattern. Make global.
3425 (speculate_insn): Rename to sched_speculate_insn. Make global.
3426 Split haifa-specific functionality into ...
3427 (haifa_change_pattern): New static function.
3428 (sched_extend_bb): New static function.
3429 (sched_init_bbs): New function.
3430 (current_sched_info): Change type to struct haifa_sched_info.
3431 (insn_cost): Adjust for selective scheduling.
3432 (dep_cost_1): New function. Move logic from ...
3433 (dep_cost): ... here.
3434 (dep_cost): Use dep_cost_1.
3435 (contributes_to_priority_p): Use sched_deps_info instead of
3436 current_sched_info.
3437 (priority): Adjust to work with selective scheduling. Process the
3438 corner case when all dependencies don't contribute to priority.
3439 (rank_for_schedule): Use ds_weak instead of dep_weak.
3440 (advance_state): New function. Move logic from ...
3441 (advance_one_cycle): ... here.
3442 (add_to_note_list, concat_note_lists): New functions.
3443 (rm_other_notes): Make static. Adjust for selective scheduling.
3444 (remove_notes, restore_other_notes): New functions.
3445 (move_insn): Add two arguments. Update assert. Don't call
3446 reemit_notes.
3447 (choose_ready): Remove lookahead variable, use dfa_lookahead.
3448 Remove more_issue, max_points. Move the code to initialize
3449 max_lookahead_tries to max_issue.
3450 (schedule_block): Remove rgn_n_insns1 parameter. Don't allocate
3451 ready. Adjust use of move_insn. Call restore_other_notes.
3452 (luid): Remove.
3453 (sched_init, sched_finish): Move Haifa-specific initialization/
3454 finalization to ...
3455 (haifa_sched_init, haifa_sched_finish): ... respectively.
3456 New functions.
3457 (setup_sched_dump): New function.
3458 (haifa_init_only_bb): New static function.
3459 (haifa_speculate_insn): New static function.
3460 (try_ready): Use haifa_* instead of speculate_insn and change_pattern.
3461 (extend_ready, extend_all): Remove.
3462 (sched_extend_ready_list, sched_finish_ready_list): New functions.
3463 (create_check_block_twin, add_to_speculative_block): Use
3464 haifa_insns_init instead of extend_global. Update to use new
3465 initialization functions. Change parameter. Factor out code from
3466 create_check_block_twin to ...
3467 (sched_create_recovery_edges) ... this new function.
3468 (add_block): Remove.
3469 (sched_scan_info): New.
3470 (extend_bb): Use sched_scan_info.
3471 (init_bb, extend_insn, init_insn, init_insns_in_bb, sched_scan): New
3472 static functions for walking through scheduling region.
3473 (sched_luids): New vector variable to replace uid_to_luid.
3474 (luids_extend_insn): New function.
3475 (sched_max_luid): New variable.
3476 (luids_init_insn): New function.
3477 (sched_init_luids, sched_finish_luids): New functions.
3478 (insn_luid): New debug function.
3479 (sched_extend_target): New function.
3480 (haifa_init_insn): New static function.
3481 (sched_init_only_bb): New hook.
3482 (sched_split_block): New hook.
3483 (sched_split_block_1): New function.
3484 (sched_create_empty_bb): New hook.
3485 (sched_create_empty_bb_1): New function.
3486 (common_sched_info, ready): New global variables.
3487 (current_sched_info_var): Remove.
3488 (move_block_after_check): Use common_sched_info.
3489 (haifa_luid_for_non_insn): New static function.
3490 (init_before_recovery): Use haifa_init_only_bb instead of add_block.
3491 (increase_insn_priority): New.
3492 * modulo-sched.c: (issue_rate): Remove static declaration.
3493 (sms_sched_info): Change type to haifa_sched_info.
3494 (sms_sched_deps_info, sms_common_sched_info): New variables.
3495 (setup_sched_infos): New.
3496 (sms_schedule): Initialize them. Call haifa_sched_init/finish.
3497 Do not call regstat_free_calls_crossed.
3498 (sms_print_insn): Use const_rtx.
3499 * params.def (PARAM_MAX_PIPELINE_REGION_BLOCKS,
3500 PARAM_MAX_PIPELINE_REGION_INSNS, PARAM_SELSCHED_MAX_LOOKAHEAD,
3501 PARAM_SELSCHED_MAX_SCHED_TIMES, PARAM_SELSCHED_INSNS_TO_RENAME,
3502 PARAM_SCHED_MEM_TRUE_DEP_COST): New.
3503 * sched-deps.c (sched_deps_info): New. Update all relevant uses of
3504 current_sched_info to use it.
3505 (enum reg_pending_barrier_mode): Move to sched-int.h.
3506 (h_d_i_d): New variable. Initialize to NULL.
3507 ({true, output, anti, spec, forward}_dependency_cache): Initialize
3508 to NULL.
3509 (estimate_dep_weak): Remove static declaration.
3510 (sched_has_condition_p): New function. Adjust users of
3511 sched_get_condition to use it instead.
3512 (conditions_mutex_p): Add arguments indicating which conditions are
3513 reversed. Use them.
3514 (sched_get_condition_with_rev): Rename from sched_get_condition. Add
3515 argument to indicate whether returned condition is reversed. Do not
3516 generate new rtx when condition should be reversed; indicate it by
3517 setting new argument instead.
3518 (add_dependence_list_and_free): Add deps parameter.
3519 Update all users. Do not free dependence list when
3520 deps context is readonly.
3521 (add_insn_mem_dependence, flush_pending_lists): Adjust for readonly
3522 contexts.
3523 (remove_from_dependence_list, remove_from_both_dependence_lists): New.
3524 (remove_from_deps): New. Use the above functions.
3525 (cur_insn, can_start_lhs_rhs_p): New static variables.
3526 (add_or_update_back_dep_1): Initialize present_dep_type.
3527 (haifa_start_insn, haifa_finish_insn, haifa_note_reg_set,
3528 haifa_note_reg_clobber, haifa_note_reg_use, haifa_note_mem_dep,
3529 haifa_note_dep): New functions implementing dependence hooks for
3530 the Haifa scheduler.
3531 (note_reg_use, note_reg_set, note_reg_clobber, note_mem_dep,
3532 note_dep): New functions.
3533 (ds_to_dt, extend_deps_reg_info, maybe_extend_reg_info_p): New
3534 functions.
3535 (init_deps): Initialize last_reg_pending_barrier and deps->readonly.
3536 (free_deps): Initialize deps->reg_last.
3537 (sched_analyze_reg, sched_analyze_1, sched_analyze_2,
3538 sched_analyze_insn): Update to use dependency hooks infrastructure
3539 and readonly contexts.
3540 (deps_analyze_insn): New function. Move part of logic from ...
3541 (sched_analyze): ... here. Also move some logic to ...
3542 (deps_start_bb): ... here. New function.
3543 (add_forw_dep, delete_forw_dep): Guard use of INSN_DEP_COUNT with
3544 sel_sched_p.
3545 (sched_deps_init): New function. Move code from ...
3546 (init_dependency_caches): ... here. Remove.
3547 (init_deps_data_vector): New.
3548 (sched_deps_finish): New function. Move code from ...
3549 (free_dependency_caches): ... here. Remove.
3550 (init_deps_global, finish_deps_global): Adjust for use with
3551 selective scheduling.
3552 (get_dep_weak): Move logic to ...
3553 (get_dep_weak_1): New function.
3554 (ds_merge): Move logic to ...
3555 (ds_merge_1): New static function.
3556 (ds_full_merge, ds_max_merge, ds_get_speculation_types): New functions.
3557 (ds_get_max_dep_weak): New function.
3558 * sched-ebb.c (sched_n_insns): Rename to sched_rgn_n_insns.
3559 (n_insns): Rename to rgn_n_insns.
3560 (debug_ebb_dependencies): New function.
3561 (init_ready_list): Use it.
3562 (begin_schedule_ready): Use sched_init_only_bb.
3563 (ebb_print_insn): Indicate when an insn starts a new cycle.
3564 (contributes_to_priority, compute_jump_reg_dependencies,
3565 add_remove_insn, fix_recovery_cfg): Add ebb_ prefix to function names.
3566 (add_block1): Remove to ebb_add_block.
3567 (ebb_sched_deps_info, ebb_common_sched_info): New variables.
3568 (schedule_ebb): Initialize them. Use remove_notes instead of
3569 rm_other_notes. Use haifa_local_init/finish.
3570 (schedule_ebbs): Use haifa_sched_init/finish.
3571 * sched-int.h: Include vecprim.h, remove rtl.h.
3572 (struct ready_list): Delete declaration.
3573 (sched_verbose_param, enum sched_pass_id_t,
3574 bb_vec_t, insn_vec_t, rtx_vec_t): New.
3575 (struct sched_scan_info_def): New structure.
3576 (sched_scan_info, sched_scan, sched_init_bbs,
3577 sched_init_luids, sched_finish_luids, sched_extend_target,
3578 haifa_init_h_i_d, haifa_finish_h_i_d): Declare.
3579 (struct common_sched_info_def): New.
3580 (common_sched_info, haifa_common_sched_info,
3581 sched_emulate_haifa_p): Declare.
3582 (sel_sched_p): New.
3583 (sched_luids): Declare.
3584 (INSN_LUID, LUID_BY_UID, SET_INSN_LUID): Declare.
3585 (sched_max_luid, insn_luid): Declare.
3586 (note_list, remove_notes, restore_other_notes, bb_note): Declare.
3587 (sched_insns_init, sched_insns_finish, xrecalloc, reemit_notes,
3588 print_insn, print_pattern, print_value, haifa_classify_insn,
3589 sel_find_rgns, sel_mark_hard_insn, dfa_state_size, advance_state,
3590 setup_sched_dump, sched_init, sched_finish,
3591 sel_insn_is_speculation_check): Export.
3592 (struct ready_list): Move from haifa-sched.c.
3593 (ready_try, ready, max_issue): Export.
3594 (ebb_compute_jump_reg_dependencies, find_fallthru_edge,
3595 sched_init_only_bb, sched_split_block, sched_split_block_1,
3596 sched_create_empty_bb, sched_create_empty_bb_1,
3597 sched_create_recovery_block, sched_create_recovery_edges): Export.
3598 (enum reg_pending_barrier_mode): Export.
3599 (struct deps): New fields `last_reg_pending_barrier' and `readonly'.
3600 (deps_t): New.
3601 (struct sched_info): Rename to haifa_sched_info. Use const_rtx for
3602 print_insn field. Move add_block and fix_recovery_cfg to
3603 common_sched_info_def. Move compute_jump_reg_dependencies,
3604 use_cselib ...
3605 (struct sched_deps_info_def): ... this new structure.
3606 (sched_deps_info): Declare.
3607 (struct spec_info_def): Remove weakness_cutoff, add
3608 data_weakness_cutoff and control_weakness_cutoff.
3609 (spec_info): Declare.
3610 (struct _haifa_deps_insn_data): Split from haifa_insn_data. Add
3611 dep_count field.
3612 (struct haifa_insn_data): Rename to struct _haifa_insn_data.
3613 (haifa_insn_data_def, haifa_insn_data_t): New typedefs.
3614 (current_sched_info): Change type to struct haifa_sched_info.
3615 (haifa_deps_insn_data_def, haifa_deps_insn_data_t): New typedefs.
3616 (h_d_i_d): New variable.
3617 (HDID): New accessor macro.
3618 (h_i_d): Change type to VEC (haifa_insn_data_def, heap) *.
3619 (HID): New accessor macro. Rewrite h_i_d accessor macros through HID
3620 and HDID.
3621 (IS_SPECULATION_CHECK_P): Update for selective scheduler.
3622 (enum SCHED_FLAGS): Update for selective scheduler.
3623 (enum SPEC_SCHED_FLAGS): New flag SEL_SCHED_SPEC_DONT_CHECK_CONTROL.
3624 (init_dependency_caches, free_dependency_caches): Delete declarations.
3625 (deps_analyze_insn, remove_from_deps, get_dep_weak_1,
3626 estimate_dep_weak, ds_full_merge, ds_max_merge, ds_weak,
3627 ds_get_speculation_types, ds_get_max_dep_weak, sched_deps_init,
3628 sched_deps_finish, haifa_note_reg_set, haifa_note_reg_use,
3629 haifa_note_reg_clobber, maybe_extend_reg_info_p, deps_start_bb,
3630 ds_to_dt): Export.
3631 (rm_other_notes): Delete declaration.
3632 (schedule_block): Remove one argument.
3633 (cycle_issued_insns, issue_rate, dfa_lookahead, ready_sort,
3634 ready_element, ready_lastpos, sched_extend_ready_list,
3635 sched_finish_ready_list, sched_change_pattern, sched_speculate_insn,
3636 concat_note_lists): Export.
3637 (struct region): Move from sched-rgn.h.
3638 (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
3639 RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
3640 BLOCK_TO_BB, CONTAINING_RGN): Export.
3641 (ebb_head, BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB, INSN_BB): Likewise.
3642 (current_nr_blocks, current_blocks, target_bb): Likewise.
3643 (dep_cost_1, sched_is_disabled_for_current_region_p, sched_rgn_init,
3644 sched_rgn_finish, rgn_setup_region, sched_rgn_compute_dependencies,
3645 sched_rgn_local_init, extend_regions,
3646 rgn_make_new_region_out_of_new_block, compute_priorities,
3647 debug_rgn_dependencies, free_rgn_deps, contributes_to_priority,
3648 extend_rgns, deps_join rgn_setup_common_sched_info,
3649 rgn_setup_sched_infos, debug_regions, debug_region, dump_region_dot,
3650 dump_region_dot_file, haifa_sched_init, haifa_sched_finish): Export.
3651 (get_rgn_sched_max_insns_priority, sel_add_to_insn_priority,
3652 increase_insn_priority): Likewise.
3653 * sched-rgn.c: Include sel-sched.h.
3654 (ref_counts): New static variable. Use it ...
3655 (INSN_REF_COUNT): ... here. Rewrite and move closer to uses.
3656 (FED_BY_SPEC_LOAD, IS_LOAD_INSN): Rewrite to use HID accessor macro.
3657 (sched_is_disabled_for_current_region_p): Delete static declaration.
3658 (struct region): Move to sched-int.h.
3659 (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
3660 ebb_head): Define and initialize.
3661 (RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
3662 BLOCK_TO_BB, CONTAINING_RGN, debug_regions, extend_regions,
3663 BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB): Move to
3664 sched-int.h.
3665 (find_single_block_region): Add new argument to indicate that EBB
3666 regions should be constructed.
3667 (debug_live): Delete declaration.
3668 (current_nr_blocks, current_blocks, target_bb):
3669 Remove static qualifiers.
3670 (compute_dom_prob_ps, check_live, update_live, set_spec_fed): Delete
3671 declaration.
3672 (init_regions): Delete declaration.
3673 (debug_region, bb_in_region_p, dump_region_dot_file, dump_region_dot,
3674 rgn_estimate_number_of_insns): New.
3675 (too_large): Use estimate_number_of_insns.
3676 (haifa_find_rgns): New. Move the code from ...
3677 (find_rgns): ... here. Call either sel_find_rgns or haifa_find_rgns.
3678 (free_trg_info): New.
3679 (compute_trg_info): Allocate candidate tables here instead of ...
3680 (init_ready_list): ... here.
3681 (rgn_print_insn): Use const_rtx.
3682 (contributes_to_priority, extend_regions): Delete static declaration.
3683 (add_remove_insn, fix_recovery_cfg): Add rgn_ to function names.
3684 (add_block1): Rename to rgn_add_block.
3685 (debug_rgn_dependencies): Delete static qualifier.
3686 (new_ready): Use sched_deps_info. Simplify.
3687 (rgn_common_sched_info, rgn_const_sched_deps_info,
3688 rgn_const_sel_sched_deps_info, rgn_sched_deps_info, rgn_sched_info):
3689 New.
3690 (region_sched_info): Rename to rgn_const_sched_info.
3691 (deps_join): New, extracted from ...
3692 (propagate_deps): ... here.
3693 (compute_block_dependences, debug_dependencies): Update for selective
3694 scheduling.
3695 (free_rgn_deps, compute_priorities): New functions.
3696 (sched_rgn_init, sched_rgn_finish, rgn_setup_region,
3697 sched_rgn_compute_dependencies): New functions.
3698 (schedule_region): Use them.
3699 (sched_rgn_local_init, sched_rgn_local_free, sched_rgn_local_finish,
3700 rgn_setup_common_sched_info, rgn_setup_sched_infos):
3701 New functions.
3702 (schedule_insns): Call new functions that were split out.
3703 (rgn_make_new_region_out_of_new_block): New.
3704 (get_rgn_sched_max_insns_priority): New.
3705 (rest_of_handle_sched, rest_of_handle_sched2): Call selective
3706 scheduling when appropriate.
3707 * sched-vis.c: Include insn-attr.h.
3708 (print_value, print_pattern): Make global.
3709 (print_rtl_slim, debug_bb_slim, debug_bb_n_slim): New functions.
3710 * target-def.h (TARGET_SCHED_ADJUST_COST_2,
3711 TARGET_SCHED_ALLOC_SCHED_CONTEXT, TARGET_SCHED_INIT_SCHED_CONTEXT,
3712 TARGET_SCHED_SET_SCHED_CONTEXT, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
3713 TARGET_SCHED_FREE_SCHED_CONTEXT, TARGET_SCHED_GET_INSN_CHECKED_DS,
3714 TARGET_SCHED_GET_INSN_SPEC_DS, TARGET_SCHED_SKIP_RTX_P): New target
3715 hooks. Initialize them to 0.
3716 (TARGET_SCHED_GEN_CHECK): Rename to TARGET_SCHED_GEN_SPEC_CHECK.
3717 * target.h (struct gcc_target): Add them. Rename gen_check field to
3718 gen_spec_check.
3719 * flags.h (sel_sched_switch_set): Declare.
3720 * opts.c (sel_sched_switch_set): New variable.
3721 (decode_options): Unset flag_sel_sched_pipelining_outer_loops if
3722 pipelining is disabled from command line.
3723 (common_handle_option): Record whether selective scheduling is
3724 requested from command line.
3725 * doc/invoke.texi: Document new flags and parameters.
3726 * doc/tm.texi: Document new target hooks.
3727 * config/ia64/ia64.c (TARGET_SCHED_GEN_SPEC_CHECK): Define to
3728 ia64_gen_check.
3729 (dfa_state_size): Do not declare locally.
3730 * config/ia64/ia64.opt (msched-ar-data-spec): Default to 0.
3731 * config/rs6000/rs6000.c (rs6000_init_sched_context,
3732 rs6000_alloc_sched_context, rs6000_set_sched_context,
3733 rs6000_free_sched_context): New functions.
3734 (struct _rs6000_sched_context): New.
3735 (rs6000_sched_reorder2): Do not modify INSN_PRIORITY for selective
3736 scheduling.
3737 (rs6000_sched_finish): Do not run for selective scheduling.
3738
3739 2008-08-31 Jan Hubicka <jh@suse.cz>
3740
3741 * frv.c (frv_rtx_costs): Update forward declaration.
3742 * spu.c (spu_rtx_costs): Likewise.
3743 * pdp11.c: Include df.h
3744 (pdp11_output_function_epilogue): Use df_set_regs_ever_live.
3745 * m68hc11.c (m68hc11_gen_highpart): Fix call of gen_rtx_SUBREG.
3746 (m68hc11_rtx_costs_1): Fix call of rtx_cost.
3747 * iq2000.c (iq2000_address_cost): Add speed argument.
3748 (iq2000_rtx_costs): Likewise.
3749 * mn10300.c (mn10300_address_cost_1): Remove speed argument;
3750 update call of mn10300_address_cost.
3751 * mcore.c: Include df.h
3752 (mcore_rtx_costs): Update prototype.
3753 * score3.c: Include df.h
3754 (score3_rtx_costs): Remove speed argument.
3755 * score7.c: Include df.h
3756 (score7_address_cost): Remove speed argument.
3757 * score-protos.h (score_address_cost): Update prototype.
3758 * score.c: Include df.h
3759 (score_rtx_costs): Update call of costs functions.
3760 * v850.c (v850_rtx_costs): Add bool argument.
3761
3762 2008-08-31 Hans-Peter Nilsson <hp@axis.com>
3763
3764 * config/cris/cris.c (cris_rtx_costs): Correct call to rtx_costs.
3765
3766 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3767
3768 * gthr-win32.h (__gthread_setspecific): Use CONST_CAST2.
3769 * config/i386/gthr-win32.c (__gthread_setspecific): Same.
3770
3771 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3772
3773 * mkmap-flat.awk: Add option pe_dll.
3774 * config/i386/t-cygming (SHLIB_LINK): Support building libgcc_s.
3775 * config/i386/t-cygwin (SHLIB_LC): Add.
3776 * config/i386/t-mingw32 (SHLIB_LC): Add.
3777 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): New.
3778 (SUBTARGET_EXTRA_SPECS): Use SHARED_LIBGCC_UNDEFS_SPEC.
3779 (LINK_SPEC): Support libgcc_s.
3780 (LIBGCC_SPEC): Support libgcc_s.
3781 (LIBGCC_SONAME): New.
3782
3783 2008-08-31 Jan Hubicka <jh@suse.cz>
3784
3785 * predict.c (maybe_hot_bb_p, maybe_hot_edge_p): Previous commit
3786 mistakely had old version of patch.
3787
3788 * ipa-cp.c (ipcp_need_original_clone_p): Remove.
3789 (ipcp_estimate_growth): New.
3790 (ipcp_insert_stage): Use ipcp_estimate_growth.
3791 * profile.c (branch_prob): When reading failed, do not consider
3792 profile as read.
3793
3794 2008-08-31 Jan Hubicka <jh@suse.cz>
3795
3796 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Check that
3797 loop is optimized for speed.
3798
3799 2008-08-31 Richard Guenther <rguenther@suse.de>
3800
3801 PR middle-end/37289
3802 * fold-const.c (fold_binary): Retain conversions in folding
3803 ~A + 1 to -A.
3804
3805 2008-08-31 Jan Hubicka <jh@suse.cz>
3806
3807 * postreload-gcse.c (eliminate_partially_redundant_loads):
3808 Use optimize_bb_for_size_p.
3809 * predict.c (maybe_hot_frequency_p): Make inline.
3810 (maybe_hot_count_p): Break out from ...
3811 (maybe_hot_bb_p): ... this one.
3812 (maybe_hot_edge_p): Simplify.
3813 * basic-block.h (probably_cold_bb_p): Remove.
3814
3815 2008-08-31 Jakub Jelinek <jakub@redhat.com>
3816
3817 PR target/37168
3818 * config/rs6000/rs6000-protos.h (const_vector_elt_as_int): Add
3819 prototype.
3820 * config/rs6000/rs6000.c (const_vector_elt_as_int): No longer static.
3821 * config/rs6000/altivec.md (easy_vector_constant_add_self splitter):
3822 Also split V4SFmode.
3823 * config/rs6000/predicates.md (easy_vector_constant_add_self): Handle
3824 vector float modes.
3825
3826 2008-08-31 Jan Hubicka <jh@suse.cz>
3827
3828 * predict.c (PROB_VERY_LIKELY): Make small enough so things
3829 become cold.
3830 * predict.def (PRED_NORETURN_CALL, PRED_COLD_CALL): Use it.
3831
3832 2008-08-31 Jakub Jelinek <jakub@redhat.com>
3833
3834 PR debug/37287
3835 * dwarf2out.c (gen_namespace_die): For DECL_EXTERNAL modules don't
3836 add source coords.
3837
3838 * dwarf2out.c (native_encode_initializer): Subtract min_index for
3839 non-range array index. Handle VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
3840
3841 2008-08-31 Jan Hubicka <jh@suse.cz>
3842
3843 * sparc.h (BRANCH_COST): Fix macro definition.
3844 * avr.c (avr_operand_rtx_cost): Add speed argument.
3845 (avr_rtx_costs): Update calls of avr_operand_rtx_cost.
3846
3847 2008-08-31 Richard Guenther <rguenther@suse.de>
3848
3849 * tree-cfg.c (verify_types_in_gimple_assign): Dump mismatched
3850 types instead of operands. Re-instantiate verifying of
3851 binary expression operands.
3852
3853 2008-08-30 Jan Hubicka <jh@suse.cz>
3854
3855 * fwprop.c (should_replace_address): Add speed attribute.
3856 (PR_OPTIMIZE_FOR_SPEED): New flag.
3857 (propagate_rtx_1): Use it.
3858 (propagate_rtx): Set it.
3859 (try_fwprop_subst): Update call of rtx_costs.
3860 (forward_propagate_and_simplify): LIkewise.
3861 * hooks.c (hook_int_rtx_bool_0): New
3862 (hook_bool_rtx_int_int_intp_false): Replace by ...
3863 (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
3864 * hooks.h (hook_int_rtx_bool_0): New
3865 (hook_bool_rtx_int_int_intp_false): Replace by ...
3866 (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
3867 * optabs.c (avoid_expensive_constant): UPdate call of rtx_cost.
3868 (prepare_cmp_insn): UPdate call of rtx_cost.
3869 * postreload.c (reload_cse_simplify_set): Update call of rtx_cost.
3870 (reload_cse_simplify_operands): Update call of rtx_cost.
3871 (reload_cse_move2add): call of rtx_cost.
3872 * target.h (struct gcc_target): Update rtx_costs and address_costs.
3873 * rtlanal.c (rtx_cost): Add speed argument.
3874 (address_cost): Add speed argument
3875 (default_address_cost): Likewise.
3876 (insn_rtx_cost): Likewise.
3877 * cfgloopanal.c (seq_cost): Add speed argument.
3878 (target_reg_cost, target_spill_cost): Turn to array.
3879 (init_set_costs): Update for speed.
3880 (estimate_reg_pressure_cost): Add speed argument.
3881 * auto-inc-dec.c (attempt_change): Update call of rtx_cost.
3882 * dojump.c (prefer_and_bit_test): UPdate call of rtx_cost.
3883 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field speed.
3884 (seq_cost): Add speed argument.
3885 (computation_cost): Add speed arugment.
3886 (add_cost, multiply_by_const, get_address_cost): add speed argument.
3887 (force_expr_to_var_cost): Update for profile info.
3888 (force_var_cost): Likewise.
3889 (split_address_cost): Likewise.
3890 (ptr_difference_cost): Likewise.
3891 (difference_cost): Likewise.
3892 (get_computation_cost_at): Likewise.
3893 (determine_iv_cost): Likewise.
3894 (ivopts_global_cost_for_size): Likewise.
3895 (rewrite_use_address): Likewise.
3896 (tree_ssa_iv_optimize_loop): Initialize speed field.
3897 * cse.c (optimize_this_for_speed_p): New static var.
3898 (notreg_cost): Update call of rtx_cost.
3899 (cse_extended_basic_block): set optimize_this_for_speed_p.
3900 * ifcvt.c (cheap_bb_rtx_cost_p): Update call of rtx_cost.
3901 (noce_try_cmove_arith): Likewise.
3902 (noce_try_sign_mask): LIkewise.
3903 * expr.c (compress_float_constant): Update rtx_cost calls.
3904 * tree-ssa-address.c (most_expensive_mult_to_index): Add speed
3905 argument.
3906 (addr_to_parts): Likewise.
3907 (create_mem_ref): Likewise.
3908 * dse.c (find_shift_sequence): Add speed argument.
3909 (replace_read): Update call.
3910 * calls.c (precompute_register_parameters): Update call of rtx_cost.
3911 * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost,
3912 * neg_cost, shift_cost, shiftadd_cost,
3913 shiftsub_cost, mul_cost, sdiv_cost, udiv_cost ,mul_widen_cost,
3914 mul_highpart_cost): Increase dimension.
3915 (init_expmed): Initialize for both size and speed.
3916 (expand_shift): Use profile.
3917 (synth_mult): Use profile.
3918 (choose_mult_variant): Use profile.
3919 (expand_mult): Use profile.
3920 (expand_mult_highpart_optab): Use profile.
3921 (expand_mult_highpart): Use profile.
3922 (expand_smod_pow2): Use profile.
3923 (expand_divmod): Use profile.
3924 * simplify-rtx.c (simplify_binary_operation_1): Update call of
3925 rtx_cost.
3926 * loop-invariant.c (create_new_invariant): Use profile.
3927 (gain_for_invariant): Add speed parameter.
3928 (best_gain_for_invariant): Likewise.
3929 (find_invariants_to_move): Likewise.
3930 (move_single_loop_invariants): Set it.
3931 * target-def.h (TARGET_RTX_COSTS): Use hook.
3932 * rtl.h (rtx_cost, address_cost, insn_rtx_cost): Update prototpe.
3933 (optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
3934 * output.h (default_address_cost): Update prototype.
3935 * combine.c (optimize_this_for_speed_p): New static var.
3936 (combine_validate_cost): Update call of rtx_cost.
3937 (combine_instructions): Set optimize_this_for_speed_p.
3938 (expand_compound_operation): Update call of rtx_cost.
3939 (make_extraction):Update call of rtx_cost.
3940 (force_to_mode):Update call of rtx_cost.
3941 (distribute_and_simplify_rtx):Update call of rtx_cost.
3942 * cfgloop.h (target_reg_cost, target_spill_cost): Turn to array.
3943 (estimate_reg_pressure_cost): Update prototype.
3944 * tree-flow.h (multiply_by_cost, create_mem_ref): Update prototype.
3945 * basic-block.h (optimize_insn_for_size_p, optimize_insn_for_speed_p):
3946 Remove.
3947 * config/alpha/alpha.c (alpha_rtx_costs): Update.
3948 (alpha_rtx_costs): Update.
3949 * config/frv/frv.c (frv_rtx_costs): Update.
3950 * config/s390/s390.c (s390_rtx_costs): Update.
3951 * config/m32c/m32c.c (m32c_memory_move_cost): Update.
3952 (m32c_rtx_costs): Update.
3953 * config/spu/spu.c (TARGET_ADDRESS_COST): Upate.
3954 (spu_rtx_costs): Update.
3955 * config/sparc/sparc.c (sparc_rtx_costs): Update.
3956 * config/m32r/m32r.c (m32r_rtx_costs): Update.
3957 * config/i386/i386.c (:ix86_address_cost): Update.
3958 (ix86_rtx_costs): Update.
3959 * config/sh/sh.c (sh_rtx_costs, sh_address_cost): Update.
3960 * config/pdp11/pdp11.c (pdp11_rtx_costs): Update.
3961 * config/avr/avr.c (avr_rtx_costs, avr_address_cost): Update.
3962 * config/crx/crx.c (crx_address_cost): Update.
3963 * config/xtensa/xtensa.c (xtensa_rtx_costs): Update.
3964 * config/stormy16/stormy16.c
3965 (xstormy16_address_cost, xstormy16_rtx_costs): Update.
3966 * config/m68hc11/m68hc11.c
3967 (m68hc11_address_cost, m68hc11_rtx_costs): Update.
3968 * config/cris/cris.c (cris_rtx_costs, cris_address_cost): Update.
3969 * config/iq2000/iq2000.c (iq2000_rtx_costs, iq2000_address_cost):
3970 Update.
3971 * config/mn10300/mn10300.c (mn10300_address_cost, mn10300_rtx_costs):
3972 Update
3973 * config/ia64/ia64.c (ia64_rtx_costs): Update.
3974 * config/m68k/m68k.c (m68k_rtx_costs): Update.
3975 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update.
3976 * config/arc/arc.c (arc_rtx_costs, arc_address_cost): Update.
3977 * config/mcore/mcore.c (TARGET_ADDRESS_COST): Update.
3978 (mcore_rtx_costs): update.
3979 * config/score/score3.c (score3_rtx_costs): Update.
3980 * config/score/score7.c (score7_rtx_costs): Update.
3981 * config/score/score3.h (score3_rtx_costs):Update.
3982 * config/score/score7.h (score7_rtx_costs): Update.
3983 * config/score/score.c (score_rtx_costs): Update.
3984 * config/arm/arm.c (arm_address_cost): Update.
3985 (arm_rtx_costs_1): Update.
3986 (arm_rtx_costs_1): Update.
3987 (arm_size_rtx_costs): Update.
3988 (arm_size_rtx_costs): Update.
3989 (arm_size_rtx_costs): Update.
3990 (arm_xscale_rtx_costs): Update.
3991 (arm_thumb_address_cost): Update.
3992 * config/pa/pa.c (hppa_address_cost): Update.
3993 * config/mips/mips.c (mips_rtx_costs): Update.
3994 * config/vax/vax.c (vax_address_cost): Update.
3995 * config/h8300/h8300.c (h8300_shift_costs): Update.
3996 (h8300_rtx_costs): Update.
3997 * config/v850/v850.c (TARGET_ADDRESS_COST): Update.
3998 (v850_rtx_costs): Update.
3999 * config/mmix/mmix.c (mmix_rtx_costs, mmix_rtx_costs): Update.
4000 * config/bfin/bfin.c
4001 (bfin_address_cost): Update.
4002 (bfin_rtx_costs): Update.
4003 * stmt.c (lshift_cheap_p): Update.
4004
4005 2008-08-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
4006
4007 PR middle-end/36444
4008 * expmed.c (extract_bit_field_1): Check the mode size to make
4009 sure the vector modes have the same size.
4010
4011 2008-08-29 Michael Meissner <gnu@the-meissners.org>
4012
4013 * dojump.c (top level): Include basic-block.h to declare
4014 optimize_insn_for_speed_p
4015
4016 * Makefile.in (dodump.h): Add $(BASIC_BLOCK_H) dependency.
4017
4018 * opts.h (CL_SAVE): New option class for marking options that are
4019 target specific options usable in the target attribute.
4020 (CL_MIN_OPTION_CLASS): CL_SAVE is now the minimum option.
4021
4022 * opt-functions.awk (switch_flags): Add CL_SAVE flag so backends
4023 can easily find the target specific options that are safe to use
4024 in the attribute or pragma.
4025
4026 * attribs.c (decl_attributes): Change #pragma GCC option to
4027 #pragma GCC target, and attribute((option(...))) to
4028 attribute((target(...))).
4029
4030 * doc/extend.texi (target attribute): Change from option
4031 attribute. Delete push/pop/reset.
4032 (#pragma GCC target): Change from #pragma GCC option. Delete
4033 push/pop/reset.
4034 (#pragma GCC push_options): Document new pragma.
4035 (#pragma GCC pop_options): Document new pragma.
4036 (#pragma GCC reset_options): Document new pragma.
4037
4038 * targhooks.c (default_target_option_valid_attribute_p): Add
4039 warning about port not supporting target attributes.
4040 (default_target_option_pragma_parse): New function, warn about
4041 #pragma GCC target not being supported.
4042
4043 * targhooks.h (default_target_option_pragma_parse): Add
4044 declaration.
4045
4046 * tree.h (TI_CURRENT_TARGET_PRAGMA): Rename from
4047 TI_CURRENT_OPTION_PRAGMA.
4048 (current_target_pragma): Rename from current_option_pragma.
4049
4050 * target.h: (struct target_option): Delete booleans for changing
4051 the optimization level on hot/cold functions. Change signature of
4052 pragma_parse hook to take a second tree.
4053
4054 * c-tree.h (c_builtin_function_ext_scope): Add declaration.
4055
4056 * c-decl.c (c_builtin_function_ext_scope): New function, guarantee
4057 that the declaration is done at global scope.
4058
4059 * langhooks.c (add_builtin_function_common): Move most of the code
4060 from add_builtin_function here, calling the hook passed in.
4061 (add_builtin_function): Call add_builtin_function_common with
4062 standard builtin hook.
4063 (add_builtin_function_ext_scope): New function to add builtins to
4064 global scope.
4065
4066 * langhooks.h (struct lang_hooks): Add builtin_function_ext_scope
4067 hook.
4068 (add_builtin_function_ext_scope): Add declaration.
4069
4070 * c-pragma.c (handle_pragma_target): Rename from
4071 handle_pragma_option, #pragma GCC option is now #pragma GCC
4072 target. Move warning about port not supporting target options to
4073 default pragma parse hook. Remove push/pop/reset from this
4074 pragma.
4075 (handle_pragma_optimize): Remove push/pop/reset from this pragma.
4076 (option_stack): Delete static variable.
4077 (optimize_stack): Ditto.
4078 (optons_stack): New stack of saved target and optimization
4079 options.
4080 (handle_pragma_push_options): New function to handle pushing both
4081 target and optimization options.
4082 (handle_pragma_pop_options): New function to handle popping both
4083 target and optimization options.
4084 (handle_pragma_reset_options): New function to handle resetting
4085 both target and optimization options to their initial state.
4086 (init_pragma): Rename handle_pragma_option to
4087 handle_pragma_target. Add support for push_options, pop_options,
4088 and reset_options pragmas.
4089
4090 * target-def.h (TARGET_OPTION_PRAGMA_PARSE): Change default to
4091 default_target_option_pragma_parse.
4092 (TARGET_OPTION_VALID_ATTRIBUTE_P): Change default to
4093 default_target_option_valid_attribute_p.
4094 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
4095 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
4096 (TARGET_OPTION_HOOKS): Delete the fields for whether to change
4097 optimization level on hot/cold functions.
4098
4099 * tree-inline.c (tree_can_inline_p): Disable suppressing inlining
4100 if the caller and callee have different optimization levels.
4101
4102 * c-common.c (handle_target_attribute): Rename from
4103 handle_option_attribute, attribute((option(...))) is now
4104 attribute((target(...))). Move warning if the port does not
4105 support target attributes to the default hook.
4106 (handle_hot_attribute): Delete code to change the optimization
4107 level of hot functions.
4108 (handle_cold_attribute): Ditto.
4109
4110 * config/i386/i386-c.c (ix86_pragma_target_parse): Take a second
4111 argument that is the binary tree options to use if there are no
4112 arguments. Call ix86_valid_target_attribute_tree instead of
4113 ix86_valid_option_attribute_tree.
4114 (ix86_pragma_target_parse): Rename from ix86_pragma_option_parse.
4115 (ix86_register_pragmas): Use ix86_pragma_target_parse instead of
4116 ix86_pragma_option_parse.
4117
4118 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
4119 Rename from ix86_valid_option_attribute_tree.
4120
4121 * config/i386/i386.c (ix86_add_new_builtins): New function to add
4122 new builtins when the ISA changes.
4123 (ix86_valid_target_attribute_tree): Rename from
4124 ix86_valid_option_attribute_tree. Change callers. If the
4125 function specified optimization options, use those as the starting
4126 point before setting up the target attributes. If the
4127 optimization options were changed in the course of setting the
4128 target attributes, record the new optimization options.
4129 (ix86_valid_target_attribute_tree_inner_p): Rename from
4130 ix86_valid_option_attribute_tree_inner_p. Change callers. Call
4131 ix86_add_new_builtins if the ISA changed.
4132 (ix86_valid_target_attribute_p): Rename from
4133 ix86_valid_option_attribute_p. Change callers.
4134 (enum ix86_builtins): Add IX86_BUILTIN_PCMOV to allow both
4135 __builtin_ia32_pcmov and __builtin_ia32_pcmov_v2di to be declared
4136 as delayed builtin functions.
4137 (struct builtin_isa): New structure to record builtin functions
4138 that should be delayed until the ISA for that function is used.
4139 (ix86_builtins_isa): Change from int to struct to track builtin
4140 functions we want to declare at some point.
4141 (def_builtin): If the front end can delay defining the builtin
4142 functions, don't create builtins for ISAs not part of the default
4143 options.
4144 (def_builtin_const): Ditto.
4145 (bdesc_multi_arg): Declare __builtin_ia32_pcmov and
4146 __builtin_ia32_pcmov_v2di to be different builtin functions.
4147 (ix86_expand_builtin): Changes due to ix86_builtins_isa now being
4148 a structure instead of an int.
4149 (TARGET_OPTION_VALID_ATTRIBUTE_P): Use
4150 ix86_valid_target_attribute_p, not ix86_valid_option_attribute_p.
4151 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
4152 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
4153
4154 * config/ia64/ia64.h
4155 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
4156 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
4157
4158 * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE): New
4159 hook, default to being the same as LANG_HOOKS_BUILTIN_FUNCTION.
4160 (LANG_HOOKS_INITIALIZER): Add
4161 LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE hook.
4162
4163 2008-08-30 Kaz Kojima <kkojima@gcc.gnu.org>
4164
4165 PR target/37270
4166 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Generate
4167 the reload address with the index register for SFmode
4168 access with a displacement.
4169
4170 2008-08-30 Jan Hubicka <jh@suse.cz>
4171
4172 * optabs.c (expand_abs_nojump): Update BRANCH_COST call.
4173 * fold-cost.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop): Likewise.
4174 * dojump.c (do_jump): Likewise.
4175 * ifcvt.c (MAX_CONDITIONAL_EXECUTE): Likewise.
4176 (note-if_info): Add BRANCH_COST.
4177 (noce_try_store_flag_constants, noce_try_addcc,
4178 noce_try_store_flag_mask, noce_try_cmove_arith, noce_try_cmove_arith,
4179 noce_try_cmove_arith, noce_find_if_block, find_if_case_1,
4180 find_if_case_2): Use computed branch cost.
4181 * expr.h (BRANCH_COST): Update default.
4182 * predict.c (predictable_edge_p): New function.
4183 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, emit_store_flag):
4184 Update BRANCH_COST call.
4185 * basic-block.h (predictable_edge_p): Declare.
4186 * config/alpha/alpha.h (BRANCH_COST): Update.
4187 * config/frv/frv.h (BRANCH_COST): Update.
4188 * config/s390/s390.h (BRANCH_COST): Update.
4189 * config/spu/spu.h (BRANCH_COST): Update.
4190 * config/sparc/sparc.h (BRANCH_COST): Update.
4191 * config/m32r/m32r.h (BRANCH_COST): Update.
4192 * config/i386/i386.h (BRANCH_COST): Update.
4193 * config/i386/i386.c (ix86_expand_int_movcc): Update use of
4194 BRANCH_COST.
4195 * config/sh/sh.h (BRANCH_COST): Update.
4196 * config/pdp11/pdp11.h (BRANCH_COST): Update.
4197 * config/avr/avr.h (BRANCH_COST): Update.
4198 * config/crx/crx.h (BRANCH_COST): Update.
4199 * config/xtensa/xtensa.h (BRANCH_COST): Update.
4200 * config/stormy16/stormy16.h (BRANCH_COST): Update.
4201 * config/m68hc11/m68hc11.h (BRANCH_COST): Update.
4202 * config/iq2000/iq2000.h (BRANCH_COST): Update.
4203 * config/ia64/ia64.h (BRANCH_COST): Update.
4204 * config/rs6000/rs6000.h (BRANCH_COST): Update.
4205 * config/arc/arc.h (BRANCH_COST): Update.
4206 * config/score/score.h (BRANCH_COST): Update.
4207 * config/arm/arm.h (BRANCH_COST): Update.
4208 * config/pa/pa.h (BRANCH_COST): Update.
4209 * config/mips/mips.h (BRANCH_COST): Update.
4210 * config/vax/vax.h (BRANCH_COST): Update.
4211 * config/h8300/h8300.h (BRANCH_COST): Update.
4212 * params.def (PARAM_PREDICTABLE_BRANCH_OUTCOME): New.
4213 * doc/invoke.texi (predictable-branch-cost-outcome): Document.
4214 * doc/tm.texi (BRANCH_COST): Update.
4215
4216 2008-08-30 Samuel Tardieu <sam@rfc1149.net>
4217
4218 PR target/37283
4219 * config/arm/arm.c (arm_optimization_options): Set
4220 flag_section_anchors to 2 instead of 1 to distinguish it from
4221 -fsection-anchors given explicitely on the command line.
4222
4223 2008-08-30 Richard Sandiford <rdsandiford@googlemail.com>
4224
4225 * recog.c (split_insn): Consider attaching a REG_EQUAL note to the
4226 final insn of a split.
4227
4228 2008-08-30 Jan Hubicka <jh@suse.cz>
4229
4230 * postreload-gcse.c (gate_handle_gcse2): Disable for functions
4231 optimized for speed.
4232 * final.c (compute_alignments): Use optimize_bb_for_size_p.
4233 * tree-call-cdce.c (gate_call_cdce): Use optimize_function_for_speed_p.
4234 * opts.c (flag_predictive_commoning_set, flag_unswitch_loops_set,
4235 flag_gcse_after_reload_set): New static vars.
4236 (common_handle_option): Enable those flags for profile-use.
4237 (decode_options): Remove optimize_size flags that are handled
4238 on higher granuality.
4239 * tree-vectorizer.c (vectorize_loops): Use
4240 optimize_loop_nest_for_speed_p.
4241 * tree-ssa-pre.c (do_pre): Use optimize_function_for_speed_p.
4242 * tree-predcom.c (tree_predictive_commoning): Use
4243 optimize_loop_for_speed_p.
4244 * varasm.c (assemble_start_function): Use
4245 optimize_function_for_speed_p.
4246 * bb-reorder.c (rest_of_handle_reorder_blocks): Likewise.
4247 * predict.c (optimize_loop_for_speed_p): Fix walk.
4248
4249 2008-08-30 Jan Hubicka <jh@suse.cz>
4250
4251 * ipa-inline.c (cgraph_estimate_growth): Discover self recursive
4252 functions.
4253 (cgraph_decide_inlining_of_small_function): Use edge->count to detect
4254 profile presence locally.
4255
4256 2008-08-29 Joseph Myers <joseph@codesourcery.com>
4257
4258 PR bootstrap/37086
4259 * tree-vrp.c (find_switch_asserts): Make idx volatile for GCC
4260 versions before 4.0.
4261
4262 2008-08-29 Jan Hubicka <jh@suse.cz>
4263
4264 * tree-inline.c (insert_init_stmt): Insert sequence even when
4265 not in SSA form.
4266
4267 2008-08-29 Jeff Law <law@redhat.com>
4268
4269 * mn10300.c (mn10300_secondary_reload_class): We need secondary
4270 reloads for AM33-2 if IN is a pseudo with an equivalent memory
4271 location and class is an FP register.
4272
4273 2008-08-29 Jan Hubicka <jh@suse.cz>
4274
4275 * see.c (see_merge_one_def_extension): Silence used uninitialized
4276 warning.
4277 * matrix-reorg.c (check_allocation_function): Likewise.
4278 * config/i386/driver-i386.c (detect_caches_amd): Likewise.
4279
4280 2008-08-29 Jakub Jelinek <jakub@redhat.com>
4281
4282 PR c/37261
4283 * fold-const.c (fold_binary): In (X | C1) & C2 canonicalization
4284 compute new & and | in type rather than TREE_TYPE (arg0).
4285
4286 * dwarf2out.c (fortran_common): Update comment.
4287 (gen_variable_die): Swap com_die and var_die variables in Fortran
4288 COMMON block handling code.
4289
4290 * dwarf2out.c (descr_info_loc): Handle VAR_DECL.
4291
4292 * dwarf2out.c (gen_const_die): New function.
4293 (size_of_die, value_format, output_die): Output larger
4294 dw_val_class_vec using DW_FORM_block2 or DW_FORM_block4.
4295 (native_encode_initializer): New function.
4296 (tree_add_const_value_attribute): Call it.
4297 (gen_decl_die, dwarf2out_decl): Handle CONST_DECLs if is_fortran ().
4298
4299 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): For
4300 DECL_BY_REFERENCE decls don't pass TREE_READONLY and
4301 TREE_THIS_VOLATILE to add_type_attribute.
4302
4303 * dwarf2out.c (add_subscript_info): Stop on Fortran TYPE_STRING_FLAG
4304 types.
4305 (gen_array_type_die): Emit DW_TAG_string_type for Fortran character
4306 types.
4307
4308 * dwarf2out.c (loc_by_reference): New function.
4309 (add_location_or_const_value_attribute): Use it.
4310
4311 PR fortran/23057
4312 * dwarf2out.c (gen_variable_die): Represent Fortran COMMON vars
4313 as DW_TAG_variable children of DW_TAG_common_block rather than
4314 DW_TAG_member children. Put DW_AT_external to individual
4315 DW_TAG_variable DIEs, not to DW_TAG_common_block.
4316
4317 * dwarf2out.c (add_bound_info): If lookup_decl_die failed, try
4318 loc_descriptor_from_tree_1.
4319
4320 PR fortran/29635
4321 PR fortran/23057
4322 * debug.h (struct gcc_debug_hooks): Add NAME and CHILD
4323 arguments to imported_module_or_decl.
4324 (debug_nothing_tree_tree): Removed.
4325 (debug_nothing_tree_tree_tree_bool): New prototype.
4326 * debug.c (do_nothing_debug_hooks): Adjust.
4327 (debug_nothing_tree_tree): Removed.
4328 (debug_nothing_tree_tree_tree_bool): New function.
4329 * dwarf2out.c (is_symbol_die): Handle DW_TAG_module.
4330 (gen_variable_die): Put all common vars for the
4331 same COMMON block under one DW_TAG_common_block.
4332 (declare_in_namespace): Return new context_die, for Fortran
4333 return the module DIE instead of adding extra declarations into
4334 the namespace.
4335 (gen_type_die_with_usage): Adjust declare_in_namespace caller.
4336 (gen_namespace_die): If is_fortran (), generate DW_TAG_module
4337 instead of DW_TAG_namespace. If DECL_EXTERNAL is set, add
4338 DW_AT_declaration.
4339 (dwarf2out_global_decl): Don't skip Fortran global vars.
4340 (gen_decl_die): Likewise. Adjust declare_in_namespace callers.
4341 (dwarf2out_imported_module_or_decl): Add NAME and CHILD arguments.
4342 If NAME is non-NULL, add DW_AT_name. If CHILD is non-NULL, put
4343 DW_TAG_imported_declaration as child of previous
4344 DW_TAG_imported_module.
4345 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Adjust.
4346 * sdbout.c (sdb_debug_hooks): Likewise.
4347 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
4348
4349 2008-08-29 Jan Hubicka <jh@suse.cz>
4350
4351 * cgraph.c (cgraph_remove_node): Do not remove nested nodes.
4352
4353 * cgraph.h (cgraph_maybe_hot_edge_p): Declare.
4354 * ipa-cp.c (n_cloning_candidates): New static variable.
4355 (ipcp_print_profile_data, ipcp_function_scale_print): Forward declare.
4356 (ipcp_print_all_lattices): Improve debug output.
4357 (ipcp_cloning_candidate_p): New function.
4358 (ipcp_initialize_node_lattices): Use it.
4359 (ipcp_init_stage): Do only analyzis here; prettier debug output.
4360 (ipcp_propagate_stage): Prettier debug output.
4361 (ipcp_iterate_stage): Initialize latices here; prettier debug output.
4362 (ipcp_print_all_structures): Remove.
4363 (ipcp_need_redirect_p): Test !n_cloning_candidates.
4364 (ipcp_insert_stage): Prettier debug output; call
4365 cgraph_remove_unreachable_nodes before propagating.
4366 (pass_ipa_cp): Schedule function removal pass.
4367 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Better
4368 debug output.
4369 (cgraph_maybe_hot_edge_p): Move to ...
4370 * predict.c (cgraph_maybe_hot_edge_p) ... here.
4371 * opts.c (flag_ipa_cp_set, flag_ipa_cp_clone_set): New.
4372 (common_handle_option): Set them; enable ipa-cp when profiling.
4373 * ipa-prop.c (ipa_print_node_jump_functions): Prettier output.
4374 (ipa_print_all_jump_functions): Likewise.
4375 (ipa_print_all_tree_maps, ipa_print_node_param_flags): Remove.
4376 (ipa_print_node_params, ipa_print_all_params): New.
4377 * ipa-prop.h (ipa_print_all_tree_maps, ipa_print_node_param_flags,
4378 ipa_print_all_param_flags): Remove.
4379 (ipa_print_node_params, ipa_print_all_params): New.
4380
4381 2008-08-29 Bob Wilson <bob.wilson@acm.org>
4382
4383 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Revert
4384 change from 2008-04-03.
4385 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Define.
4386
4387 2008-08-29 Vladimir Makarov <vmakarov@redhat.com>
4388
4389 PR rtl-opt/37251
4390 * ira-color.c (push_allocnos_to_stack): Truncate
4391 removed_splay_allocno_vec.
4392
4393 2008-08-29 Vladimir Makarov <vmakarov@redhat.com>
4394
4395 PR rtl-opt/37243
4396 * ira-color (ira_fast_allocation): Don't assign hard registers to
4397 global allocnos.
4398
4399 2008-08-29 Jan Hubicka <jh@suse.cz>
4400
4401 PR middle-end/37278
4402 * predict.c (optimize_loop_nest_for_speed_p): Do not ICE
4403 for cold internal loops.
4404
4405 2008-08-29 Richard Guenther <rguenther@suse.de>
4406
4407 * tree-ssa-structalias.c (create_variable_info_for): Do not
4408 create fields for heap vars or vars with a noalias state.
4409 For NO_ALIAS_ANYTHING variables add a self-constraint, not one
4410 from ESCAPED.
4411
4412 2008-08-29 Richard Guenther <rguenther@suse.de>
4413
4414 * common.opt (ftree-store-ccp): Mark as preserved for
4415 backward compatibility.
4416 * doc/invoke.texi (-ftree-store-ccp): Remove documentation.
4417 * tree-pass.h (pass_store_ccp): Remove.
4418 * tree-ssa-propagate.h (struct prop_value_d): Remove mem_ref field.
4419 (first_vdef): Remove declaration.
4420 (get_value_loaded_by): Likewise.
4421 * tree-ssa-ccp.c (do_store_ccp): Remove.
4422 (get_default_value): Simplify as do_store_ccp is always false
4423 now. Do not initialize mem_ref.
4424 (set_value_varying): Likewise.
4425 (canonicalize_float_value): Likewise.
4426 (set_lattice_value): Likewise.
4427 (likely_value): Likewise.
4428 (surely_varying_stmt_p): Likewise.
4429 (ccp_initialize): Likewise.
4430 (ccp_lattice_meet): Likewise.
4431 (ccp_visit_phi_node): Likewise.
4432 (ccp_fold): Likewise.
4433 (evaluate_stmt): Likewise.
4434 (visit_assignment): Likewise.
4435 (ccp_visit_stmt): Likewise.
4436 (execute_ssa_ccp): Fold into ...
4437 (do_ssa_ccp): ... this.
4438 (do_ssa_store_ccp): Remove.
4439 (gate_store_ccp): Likewise.
4440 (pass_store_ccp): Likewise.
4441 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not
4442 initialize mem_ref.
4443 * tree-ssa-propagate.c (first_vdef): Remove.
4444 (get_value_loaded_by): Likewise.
4445 (replace_vuses_in): Likewise.
4446 (substitute_and_fold): Do not call replace_vuses_in.
4447 * opts.c (decode_options): Do not set flag_tree_store_ccp.
4448
4449 2008-08-29 Richard Guenther <rguenther@suse.de>
4450
4451 PR middle-end/37236
4452 * tree-ssa-structalias.c (intra_create_variable_infos): Mark
4453 PARAM_NOALIAS tags with is_heapvar.
4454 * tree-ssa-operands.c (access_can_touch_variable): Offset
4455 based tests do not apply for heapvars. Fix offset test.
4456
4457 2008-08-29 Jan Hubicka <jh@suse.cz>
4458
4459 * doc/invoke.texi (-fipa-cp): Enabled by default at -O2/-Os/-O3
4460 (-fipa-cp-clone): Enabled by default at -O3.
4461 * opts.c (decode_options): Enable ipa-cp at -O2, ipa-cp-clone at -O3;
4462 make ipa-cp-clone to imply ipa-cp; disable cloning at -Os.
4463
4464 2008-08-29 Jan Hubicka <jh@suse.cz>
4465
4466 * tree.c (build_function_type_skip_args,
4467 build_function_decl_skip_args): New functions.
4468 * tree.h (build_function_type_skip_args,
4469 build_function_decl_skip_args): Declare.
4470 * gimple.c (giple_copy_call_skip_args): New function.
4471 (giple_copy_call_skip_args): Declare.
4472
4473 * cgraph.h (cgraph_function_versioning): Add skip_args arugmnet
4474 * ipa-cp.c (ipcp_node_not_modifiable_p): Rename to ...
4475 (ipcp_node_modifiable_p): ... this one; use
4476 tree_versionable_function_p.
4477 (ipcp_create_replace_map): Improve debug output.
4478 (ipcp_need_redirect_p): Return false when not clonning.
4479 (ipcp_update_callgraph): Skip args.
4480 (ipcp_insert_stage): UPdate call of !ipcp_node_modifiable_p;
4481 skip args.
4482 * cgraphunit.c (cgraph_function_versioning): Add skip_args argument.
4483 (save_inline_function_body): Update call of tree_function_versioning.
4484 * ipa-prop.c (ipa_edge_removal_hook): Do not ICE on unanalyzed nodes.
4485 * tree-inline.c (copy_arguments_for_versioning): Add skip_args
4486 argument.
4487 (tree_function_versioning): Likewise.
4488 * tree-inline.h (tree_function_versioning): Update prototype.
4489
4490 2008-08-29 Jan Hubicka <jh@suse.cz>
4491
4492 * loop-unswitch.c (unswitch_single_loop): Use
4493 optimize_loop_for_speed_p.
4494 * tree-ssa-threadupdate.c (mark_threaded_blocks):
4495 Use optimize_function_for_size_p.
4496 * tracer.c (ignore_bb_p): Use optimize_bb_for_size_p.
4497 * postreload-gcse.c (eliminate_partially_redundant_load):
4498 Use optimize_bb_for_size_p.
4499 * value-prof.c (gimple_divmod_fixed_value_transform,
4500 gimple_mod_pow2_value_transform, gimple_mod_subtract_transform,
4501 gimple_stringops_transform): Use optimize_bb_for_size_p.
4502 * ipa-cp.c (ipcp_insert_stage): Use optimize_function_for_size_p.
4503 * final.c (compute_alignments): Use optimize_function_for_size_p.
4504 * builtins.c (fold_builtin_cabs): Use optimize_function_for_speed_p.
4505 (fold_builtin_strcpy, fold_builtin_fputs): Use
4506 optimize_function_for_size_p.
4507 * fold-const.c (tree_swap_operands_p): Use
4508 optimize_function_for_size_p.
4509 * recog.c (relax_delay_slots): Likewise.
4510 * tree-ssa-math-opts.c (replace_reciprocal):
4511 Use optimize_bb_for_speed_p.
4512 (execute_cse_reciprocals): Use optimize_bb_for_size_p.
4513 * ipa-inline.c (cgraph_decide_recursive_inlining): Use
4514 optimize_function_for_size_p.
4515 (cgraph_decide_inlining_of_small_function): Use
4516 optimize_function_for_size_p.
4517 * global.c (find_reg): Use optimize_function_for_size_p.
4518 * opts.c (decode_options): Do not clear flag_tree_ch,
4519 flag_inline_functions, flag_unswitch_loops, flag_unroll_loops,
4520 flag_unroll_all_loops and flag_prefetch_loop_arrays. Those can
4521 work it out from profile.
4522 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Use
4523 optimize_loop_for_speed_p.
4524 * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
4525 Constify argument.
4526 (optimize_loop_nest_for_size_p, optimize_loop_nest_for_speed_p): New.
4527 * tree-parloops.c (parallelize_loops): Use optimize_loop_for_size_p.
4528 * tree-eh.c (decide_copy_try_finally): Use
4529 optimize_function_for_size_p.
4530 * local-alloc.c (block_alloc): Pass BB pointer.
4531 (find_free_reg): Add BB pointer, use optimize_bb_for_size_p.
4532 * gcse.c (gcse_main): Use optimize_function_for_size_p.
4533 * loop-unroll.c (decide_unrolling_and_peeling):
4534 Use optimize_loop_for_size_p.
4535 (decide_peel_completely): Likewise.
4536 * tree-vect-analyze.c (vect_mark_for_runtime_alias_test): Use
4537 optimize_loop_for_size_p.
4538 (vect_enhance_data_refs_alignment): Likewise.
4539 * tree-ssa-coalesce.c (coalesce_cost): Add optimize_for_size argument.
4540 (coalesce_cost_bb, coalesce_cost_edge, create_outofssa_var_map):
4541 Update call.
4542 * cfgcleanup.c (outgoing_edges_match): Use optimize_bb_for_speed_p.
4543 (try_crossjump_bb): Use optimize_bb_for_size_p.
4544 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
4545 optimize_loop_for_speed_p.
4546 * bb-reorder.c (find_traces_1_round): Likewise.
4547 (copy_bb): Use optimize_bb_for_speed_p.
4548 (duplicate_computed_gotos): Likewise.
4549 * basic-block.h (optimize_loop_nest_for_size_p,
4550 optimize_loop_nest_for_speed_p): New.
4551 * stmt.c (expand_case): Use optimize_insn_for_size_p.
4552
4553 2008-08-29 Tristan Gingold <gingold@adacore.com>
4554
4555 * gcov.c (main): Call expandargv.
4556
4557 2008-08-29 Jan Hubicka <jh@suse.cz>
4558
4559 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Check that loop
4560 is not cold.
4561 * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
4562 Constify arguments.
4563 (optimize_loop_for_size_p, optimize_loop_for_speed_p): New functions.
4564 * basic-block.h (optimize_bb_for_size_p, optimize_bb_for_speed_p):
4565 Constify.
4566 (optimize_loop_for_size_p, optimize_loop_for_speed_p): Declare.
4567
4568 2008-08-29 Jan Hubicka <jh@suse.cz>
4569
4570 * tree-pass.h (pass_strip_predict_hints): Declare.
4571 * predict.c (strip_builtin_expect): Rename to ...
4572 (strip_predict_hints): ... this one; strip also GIMPLE_PREDICT.
4573 (tree_bb_level_predictions): Do not remove GIMPLE_PREDICT.
4574 (tree_estimate_probability): Do not strip builtin_expect.
4575 (pass_strip_predict_hints): New pass.
4576 * tree-inline.c (expand_call_inline): When inlining cold function,
4577 predict it as unlikely.
4578 * passes.c (init_optimization_passes): Add pass_strip_predict_hints.
4579
4580 2008-08-29 Richard Guenther <rguenther@suse.de>
4581
4582 PR tree-optimization/37207
4583 * tree-vrp.c (extract_range_from_binary_expr): Also try
4584 to constant fold if only one of the operands is a constant.
4585
4586 2008-08-29 Nick Clifton <nickc@redhat.com>
4587
4588 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Treat LABEL_REFs in
4589 the same way as SYMBOL_REFs.
4590
4591 2008-08-28 Bob Wilson <bob.wilson@acm.org>
4592
4593 * config/xtensa/xtensa.md (<u>mulsidi3): Use a temporary register.
4594
4595 2008-08-28 Adam Nemet <anemet@caviumnetworks.com>
4596
4597 * config/mips/mips.h (ISA_HAS_BBIT): New macro.
4598 * config/mips/mips.md (branch_likely): Remove const. Fix
4599 comment formatting.
4600 (define_delay for type "branch"): Change to only apply for branch
4601 with likely variant.
4602 (define_delay for type "branch" and "branch_likely" no). New delay
4603 definition.
4604 (equality_op): New code iterator.
4605 (bbv, bbinv): New code attributes.
4606 (*branch_bit<bbv><mode>, *branch_bit<bbv><mode>_inverted): New
4607 patterns.
4608
4609 2008-08-28 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4610 Andrew Pinski <pinskia@gcc.gnu.org>
4611
4612 PR 18050
4613 * c-common.c (verify_tree): Fix handling of ADDR_EXPR.
4614
4615 2008-08-28 Paolo Carlini <paolo.carlini@oracle.com>
4616
4617 * gtrh-posix.h: Fix uses of _POSIX_TIMEOUTS per the normal Posix
4618 rule that a symbolic constant must be defined and >= 0 for the
4619 corresponding facility to be present at compile-time.
4620 * gthr-posix.c: Likewise.
4621
4622 2008-08-28 Adam Nemet <anemet@caviumnetworks.com>
4623
4624 * config/mips/mips.h (ISA_HAS_DMUL3): New macro.
4625 * config/mips/mips.md (D): New mode attribute.
4626 (mulsi3, muldi3): Merge it into ...
4627 (mul<mode>3): ... new template. Use _mul3 ending for 3-op patterns.
4628 (muldi3_mul3): New pattern.
4629 (mulsi3_mult3): Rename to mulsi3_mul3.
4630
4631 2008-08-28 Jan Hubicka <jh@suse.cz>
4632
4633 * expmed.c (store_bit_field_1): Be prepared for movstrict expander
4634 to fail.
4635 * predict.c (always_optimize_for_size_p): Rename to ...
4636 (optimize_function_for_size): ... this one; make extern.
4637 (optimize_function_for_speed_p): New.
4638 (optimize_bb_for_size_p, optimize_bb_for_size_p,
4639 optimize_edge_for_size_p,optimize_edge_for_size_p,
4640 optimize_insn_for_size_p, optimize_insn_for_size_p): Update.
4641 * basic-block.h (optimize_function_for_size_p,
4642 optimize_function_for_speed_p): Declare.
4643 * i386.md (optimize_size checks): Replace them by appropriate
4644 predicate.
4645 (standard_80387_constant_p, ix86_compute_frame_layout,
4646 ix86_expand_epilogue, ix86_decompose_address,
4647 print_operand, emit_i387_cw_initialization,
4648 inline_memory_move_cost, ix86_pad_returns,
4649 ix86_reorg): Replace optimize_size checks.
4650
4651 2008-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4652
4653 * rtl.h (simplify_subreg_regno): Declare.
4654 * rtlanal.c (simplify_subreg_regno): New function, split out from...
4655 * simplify-rtx.c (simplify_subreg): ...here.
4656 * reload.c (find_reloads): Use simplify_subreg_regno instead of
4657 subreg_offset_representable_p.
4658
4659 2008-08-28 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4660
4661 PR c/30949
4662 * c-typeck.c (convert_for_assignment): Give a note describing what
4663 was passed and what was expected.
4664
4665 2008-08-28 Joey Ye <joey.ye@intel.com>
4666
4667 * doc/extend.texi: Document AVX built-in functions.
4668 * doc/invoke.texi: Document -mavx.
4669
4670 2008-08-28 H.J. Lu <hongjiu.lu@intel.com>
4671 Joey Ye <joey.ye@intel.com>
4672 Xuepeng Guo <xuepeng.guo@intel.com>
4673
4674 * config.gcc (extra_headers): Add gmmintrin.h for x86 and x86-64.
4675
4676 * config/i386/cpuid.h (bit_FMA): New.
4677 (bit_XSAVE): Likewise.
4678 (bit_OSXSAVE): Likewise.
4679 (bit_AVX): Likewise.
4680
4681 * config/i386/gas.h (ASM_OUTPUT_OPCODE): Undefine before
4682 define. Use ASM_OUTPUT_AVX_PREFIX.
4683
4684 * config/i386/gmmintrin.h: New.
4685
4686 * config/i386/i386.c (x86_64_reg_class): Add X86_64_AVX_CLASS.
4687 (OPTION_MASK_ISA_AVX_SET): New.
4688 (OPTION_MASK_ISA_FMA_SET): Likewise.
4689 (OPTION_MASK_ISA_AVX_UNSET): Likewise.
4690 (OPTION_MASK_ISA_FMA_SET): Likewise.
4691 (OPTION_MASK_ISA_SSE4_2_UNSET): Updated.
4692 (ix86_handle_option): Handle OPT_mavx and OPT_mfma.
4693 (pta_flags): Add PTA_AVX and PTA_FMA.
4694 (override_options): Handle PTA_AVX and PTA_FMA.
4695 (init_cumulative_args): Handle warn_avx.
4696 (classify_argument): Return 0 for COImode and OImode. Return
4697 1 and X86_64_AVX_CLASS for 256bit vector types.
4698 (examine_argument): Handle X86_64_AVX_CLASS.
4699 (construct_container): Likewise.
4700 (function_arg_advance_32): Pass OImode and 256bit vector types
4701 in AVX register.
4702 (function_arg_advance_64): Take a new argument to indicate if a
4703 parameter is named. Handle 256bit vector types. Return
4704 immediately for unnamed 256bit vector mode parameters.
4705 (function_arg_advance): Updated.
4706 (function_arg_32): Add comments for TImode. Handle OImode
4707 and 256bit vector types.
4708 (function_arg_64): Take a new argument to indicate if a
4709 parameter is named. Handle 256bit vector types. Return NULL
4710 for unnamed 256bit vector mode parameters.
4711 (function_arg): Updated.
4712 (setup_incoming_varargs_64): Support
4713 AVX encoding for *sse_prologue_save_insn.
4714 (ix86_gimplify_va_arg): Handle 256bit vector mode parameters.
4715 (standard_sse_constant_p): Return -2 for all 1s if SSE2 isn't
4716 enabled. For all 1s in 256bit vector modes, return 3 if AVX is
4717 enabled, otherwise return -3.
4718 (standard_sse_constant_opcode): Handle AVX and 256bit vector
4719 modes.
4720 (print_reg): Support AVX registers. Handle 'x' and 't'.
4721 Handle 'd' to duplicate the operand.
4722 (print_operand): Likewise. Also support AVX vector compare
4723 instructions.
4724 (output_387_binary_op): Support AVX.
4725 (output_fp_compare): Likewise.
4726 (ix86_expand_vector_move_misalign): Likewise.
4727 (ix86_attr_length_vex_default): New.
4728 (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
4729 IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
4730 IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
4731 IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
4732 IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_BLENDPD256,
4733 IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
4734 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DIVPD256,
4735 IX86_BUILTIN_DIVPS256, IX86_BUILTIN_DPPS256,
4736 IX86_BUILTIN_HADDPD256, IX86_BUILTIN_HADDPS256,
4737 IX86_BUILTIN_HSUBPD256, IX86_BUILTIN_HSUBPS256,
4738 IX86_BUILTIN_MAXPD256, IX86_BUILTIN_MAXPS256,
4739 IX86_BUILTIN_MINPD256, IX86_BUILTIN_MINPS256,
4740 IX86_BUILTIN_MULPD256, IX86_BUILTIN_MULPS256,
4741 IX86_BUILTIN_ORPD256, IX86_BUILTIN_ORPS256,
4742 IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
4743 IX86_BUILTIN_SUBPD256, IX86_BUILTIN_SUBPS256,
4744 IX86_BUILTIN_XORPD256, IX86_BUILTIN_XORPS256,
4745 IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
4746 IX86_BUILTIN_CMPPS, IX86_BUILTIN_CMPPD256,
4747 IX86_BUILTIN_CMPPS256, IX86_BUILTIN_CVTDQ2PD256,
4748 IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
4749 IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
4750 IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
4751 IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_EXTRACTF128PD256,
4752 IX86_BUILTIN_EXTRACTF128PS256, IX86_BUILTIN_EXTRACTF128SI256,
4753 IX86_BUILTIN_VZEROALL, IX86_BUILTIN_VZEROUPPER,
4754 IX86_BUILTIN_VZEROUPPER_REX64, IX86_BUILTIN_VPERMILVARPD,
4755 IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
4756 IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_VPERMILPD,
4757 IX86_BUILTIN_VPERMILPS, IX86_BUILTIN_VPERMILPD256,
4758 IX86_BUILTIN_VPERMILPS256, IX86_BUILTIN_VPERMIL2PD,
4759 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256,
4760 IX86_BUILTIN_VPERMIL2PS256, IX86_BUILTIN_VPERM2F128PD256,
4761 IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
4762 IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
4763 IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
4764 IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_VINSERTF128PD256,
4765 IX86_BUILTIN_VINSERTF128PS256, IX86_BUILTIN_VINSERTF128SI256,
4766 IX86_BUILTIN_LOADUPD256, IX86_BUILTIN_LOADUPS256,
4767 IX86_BUILTIN_STOREUPD256, IX86_BUILTIN_STOREUPS256,
4768 IX86_BUILTIN_LDDQU256, IX86_BUILTIN_LOADDQU256,
4769 IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_MASKLOADPD,
4770 IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKSTOREPD,
4771 IX86_BUILTIN_MASKSTOREPS, IX86_BUILTIN_MASKLOADPD256,
4772 IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKSTOREPD256,
4773 IX86_BUILTIN_MASKSTOREPS256, IX86_BUILTIN_MOVSHDUP256,
4774 IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
4775 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
4776 IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
4777 IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
4778 IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
4779 IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
4780 IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
4781 IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
4782 IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
4783 IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
4784 IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
4785 IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
4786 IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
4787 IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
4788 IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
4789 IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
4790 IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
4791 IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256
4792 and IX86_BUILTIN_MOVMSKPS256,
4793 (ix86_special_builtin_type): Add V32QI_FTYPE_PCCHAR,
4794 V8SF_FTYPE_PCV4SF, V8SF_FTYPE_PCFLOAT, V4DF_FTYPE_PCV2DF,
4795 V4DF_FTYPE_PCDOUBLE, V8SF_FTYPE_PCV8SF_V8SF,
4796 V4DF_FTYPE_PCV4DF_V4DF, V4SF_FTYPE_PCV4SF_V4SF,
4797 V2DF_FTYPE_PCV2DF_V2DF, VOID_FTYPE_PCHAR_V32QI,
4798 VOID_FTYPE_PFLOAT_V8SF, VOID_FTYPE_PDOUBLE_V4DF,
4799 VOID_FTYPE_PV8SF_V8SF_V8SF, VOID_FTYPE_PV4DF_V4DF_V4DF,
4800 VOID_FTYPE_PV4SF_V4SF_V4SF and VOID_FTYPE_PV2DF_V2DF_V2DF,
4801 (ix86_builtin_type): Add INT_FTYPE_V8SF_V8SF_PTEST,
4802 INT_FTYPE_V4DI_V4DI_PTEST, INT_FTYPE_V4DF_V4DF_PTEST,
4803 INT_FTYPE_V4SF_V4SF_PTEST, INT_FTYPE_V2DF_V2DF_PTEST,
4804 INT_FTYPE_V8SF, INT_FTYPE_V4DF, V8SI_FTYPE_V8SF, V8SI_FTYPE_V4SI,
4805 V8SF_FTYPE_V8SF, V8SF_FTYPE_V8SI, V8SF_FTYPE_V4SF,
4806 V4SI_FTYPE_V8SI, V4SI_FTYPE_V4DF, V4DF_FTYPE_V4DF,
4807 V4DF_FTYPE_V4SI, V4DF_FTYPE_V4SF, V4DF_FTYPE_V2DF,
4808 V4SF_FTYPE_V4DF, V4SF_FTYPE_V8SF, V2DF_FTYPE_V4DF,
4809 V8SF_FTYPE_V8SF_V8SF, V8SF_FTYPE_V8SF_V8SI,
4810 V4DF_FTYPE_V4DF_V4DF, V4DF_FTYPE_V4DF_V4DI,
4811 V4SF_FTYPE_V4SF_V4SI, V2DF_FTYPE_V2DF_V2DI,
4812 V8SF_FTYPE_V8SF_INT, V4SI_FTYPE_V8SI_INT, V4SF_FTYPE_V8SF_INT,
4813 V2DF_FTYPE_V4DF_INT, V4DF_FTYPE_V4DF_INT,
4814 V8SF_FTYPE_V8SF_V8SF_V8SF, V4DF_FTYPE_V4DF_V4DF_V4DF,
4815 V8SI_FTYPE_V8SI_V8SI_INT, V8SF_FTYPE_V8SF_V8SF_INT,
4816 V4DF_FTYPE_V4DF_V4DF_INT, V4DF_FTYPE_V4DF_V2DF_INT,
4817 V8SF_FTYPE_V8SF_V8SF_V8SI_INT, V4DF_FTYPE_V4DF_V4DF_V4DI_INT,
4818 V4SF_FTYPE_V4SF_V4SF_V4SI_INT and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
4819 (bdesc_special_args): Add IX86_BUILTIN_VZEROALL,
4820 IX86_BUILTIN_VZEROUPPER. IX86_BUILTIN_VZEROUPPER_REX64,
4821 IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
4822 IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
4823 IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_LOADUPD256,
4824 IX86_BUILTIN_LOADUPS256, IX86_BUILTIN_STOREUPD256,
4825 IX86_BUILTIN_STOREUPS256, IX86_BUILTIN_LOADDQU256,
4826 IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_LDDQU256,
4827 IX86_BUILTIN_MASKLOADPD, IX86_BUILTIN_MASKLOADPS,
4828 IX86_BUILTIN_MASKLOADPD256, IX86_BUILTIN_MASKLOADPS256,
4829 IX86_BUILTIN_MASKSTOREPD, IX86_BUILTIN_MASKSTOREPS,
4830 IX86_BUILTIN_MASKSTOREPD256 and IX86_BUILTIN_MASKSTOREPS256.
4831 (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
4832 IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
4833 IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
4834 IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
4835 IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_DIVPD256,
4836 IX86_BUILTIN_DIVPS256, IX86_BUILTIN_HADDPD256,
4837 IX86_BUILTIN_HSUBPS256, IX86_BUILTIN_HSUBPD256,
4838 IX86_BUILTIN_HADDPS256, IX86_BUILTIN_MAXPD256,
4839 IX86_BUILTIN_MAXPS256, IX86_BUILTIN_MINPD256,
4840 IX86_BUILTIN_MINPS256, IX86_BUILTIN_MULPD256,
4841 IX86_BUILTIN_MULPS256, IX86_BUILTIN_ORPD256,
4842 IX86_BUILTIN_ORPS256, IX86_BUILTIN_SUBPD256,
4843 IX86_BUILTIN_SUBPS256, IX86_BUILTIN_XORPD256,
4844 IX86_BUILTIN_XORPS256, IX86_BUILTIN_VPERMILVARPD,
4845 IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
4846 IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_BLENDPD256,
4847 IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
4848 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DPPS256,
4849 IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
4850 IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
4851 IX86_BUILTIN_CMPPS,
4852 IX86_BUILTIN_CMPPD256,IX86_BUILTIN_CMPPS256,
4853 IX86_BUILTIN_EXTRACTF128PD256, IX86_BUILTIN_EXTRACTF128PS256,
4854 IX86_BUILTIN_EXTRACTF128SI256, IX86_BUILTIN_CVTDQ2PD256,
4855 IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
4856 IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
4857 IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
4858 IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_VPERM2F128PD256,
4859 IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
4860 IX86_BUILTIN_VPERMILPD, IX86_BUILTIN_VPERMILPS,
4861 IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
4862 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMILPS,
4863 IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
4864 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
4865 IX86_BUILTIN_VPERMIL2PD256, IX86_BUILTIN_VPERMIL2PS256,
4866 IX86_BUILTIN_VINSERTF128PD256, IX86_BUILTIN_VINSERTF128PS256,
4867 IX86_BUILTIN_VINSERTF128SI256, IX86_BUILTIN_MOVSHDUP256,
4868 IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
4869 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
4870 IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
4871 IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
4872 IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
4873 IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
4874 IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
4875 IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
4876 IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
4877 IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
4878 IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
4879 IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
4880 IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
4881 IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
4882 IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
4883 IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
4884 IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
4885 IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256 and
4886 IX86_BUILTIN_MOVMSKPS256.
4887 (ix86_init_mmx_sse_builtins): Support AVX builtins.
4888 (ix86_expand_args_builtin): Likewise.
4889 (ix86_expand_special_args_builtin): Likewise.
4890 (ix86_hard_regno_mode_ok): Handle AVX modes.
4891 (ix86_expand_vector_init_duplicate): Likewise.
4892 (ix86_expand_vector_init_one_nonzero): Likewise.
4893 (ix86_expand_vector_init_one_var): Likewise.
4894 (ix86_expand_vector_init_concat): Likewise.
4895 (ix86_expand_vector_init_general): Likewise.
4896 (ix86_expand_vector_set): Likewise.
4897 (ix86_vector_mode_supported_p): Likewise.
4898 (x86_extended_reg_mentioned_p): Check INSN_P before using
4899 PATTERN.
4900
4901 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
4902 OPTION_MASK_ISA_AVX and OPTION_MASK_ISA_FMA.
4903
4904 * config/i386/i386.h (TARGET_AVX): New.
4905 (TARGET_FMA): Likewise.
4906 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AVX and TARGET_FMA.
4907 (BIGGEST_ALIGNMENT): Set to 256 for TARGET_AVX.
4908 (VALID_AVX256_REG_MODE): New.
4909 (AVX256_VEC_FLOAT_MODE_P): Likewise.
4910 (AVX_FLOAT_MODE_P): Likewise.
4911 (AVX128_VEC_FLOAT_MODE_P): Likewise.
4912 (AVX256_VEC_FLOAT_MODE_P): Likewise.
4913 (AVX_VEC_FLOAT_MODE_P): Likewise.
4914 (ASM_OUTPUT_AVX_PREFIX): Likewise.
4915 (ASM_OUTPUT_OPCODE): Likewise.
4916 (UNITS_PER_SIMD_WORD): Add a FIXME for 32byte vectorizer
4917 support.
4918 (SSE_REG_MODE_P): Allow 256bit vector modes.
4919 (ix86_args): Add a warn_avx field.
4920
4921 * config/i386/i386.md (UNSPEC_PCMP): New.
4922 (UNSPEC_VPERMIL): Likewise.
4923 (UNSPEC_VPERMIL2): Likewise.
4924 (UNSPEC_VPERMIL2F128): Likewise.
4925 (UNSPEC_MASKLOAD): Likewise.
4926 (UNSPEC_MASKSTORE): Likewise.
4927 (UNSPEC_CAST): Likewise.
4928 (UNSPEC_VTESTP): Likewise.
4929 (UNSPECV_VZEROALL): Likewise.
4930 (UNSPECV_VZEROUPPER): Likewise.
4931 (XMM0_REG): Likewise.
4932 (XMM1_REG): Likewise.
4933 (XMM2_REG): Likewise.
4934 (XMM3_REG): Likewise.
4935 (XMM4_REG): Likewise.
4936 (XMM5_REG): Likewise.
4937 (XMM6_REG): Likewise.
4938 (XMM8_REG): Likewise.
4939 (XMM9_REG): Likewise.
4940 (XMM10_REG): Likewise.
4941 (XMM11_REG): Likewise.
4942 (XMM12_REG): Likewise.
4943 (XMM13_REG): Likewise.
4944 (XMM14_REG): Likewise.
4945 (XMM15_REG): Likewise.
4946 (prefix): Likewise.
4947 (prefix_vex_imm8): Likewise.
4948 (prefix_vex_w): Likewise.
4949 (length_vex): Likewise.
4950 (maxmin): Likewise.
4951 (movoi): Likewise.
4952 (*avx_ashlti3): Likewise.
4953 (*avx_lshrti3): Likewise.
4954 (*avx_setcc<mode>): Likewise.
4955 (*fop_<mode>_comm_mixed_avx): Likewise.
4956 (*fop_<mode>_comm_avx): Likewise.
4957 (*fop_<mode>_1_mixed_avx): Likewise.
4958 (*fop_<mode>_1_avx): Likewise.
4959 (*avx_<code><mode>3): Likewise.
4960 (*avx_ieee_smin<mode>3): Likewise.
4961 (*avx_ieee_smax<mode>3): Likewise.
4962 (mode): Add OI, V8SF and V4DF.
4963 (length): Support VEX prefix.
4964 (*cmpfp_i_mixed): Set prefix attribute.
4965 (*cmpfp_i_sse): Likewise.
4966 (*cmpfp_iu_mixed): Likewise.
4967 (*cmpfp_iu_sse): Likewise.
4968 (*movsi_1): Support AVX.
4969 (*movdi_2): Likewise.
4970 (*movdi_1_rex64): Likewise.
4971 (*movti_internal): Likewise.
4972 (*movti_rex64): Likewise.
4973 (*movsf_1): Likewise.
4974 (*movdf_nointeger): Likewise.
4975 (*movdf_integer_rex64): Likewise.
4976 (*movtf_internal): Likewise.
4977 (zero_extendsidi2_32): Likewise.
4978 (zero_extendsidi2_rex64): Likewise.
4979 (*extendsfdf2_mixed): Likewise.
4980 (*extendsfdf2_sse): Likewise.
4981 (*truncdfsf_fast_mixed): Likewise.
4982 (*truncdfsf_fast_sse): Likewise.
4983 (*truncdfsf_mixed): Likewise.
4984 (fix_trunc<mode>di_sse): Likewise.
4985 (fix_trunc<mode>si_sse): Likewise.
4986 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
4987 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
4988 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
4989 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
4990 (*rcpsf2_sse): Likewise.
4991 (*rsqrtsf2_sse): Likewise.
4992 (*sqrt<mode>2_sse): Likewise.
4993 (sse4_1_round<mode>2): Likewise.
4994 (*sse_prologue_save_insn): Disallow REX prefix for AVX.
4995 Support AVX. Set length attribute properly for AVX.
4996
4997 * config/i386/i386-modes.def (VECTOR_MODES (INT, 32)): New.
4998 (VECTOR_MODES (FLOAT, 32)): Likewise.
4999 (VECTOR_MODE (INT, DI, 8)): Likewise.
5000 (VECTOR_MODE (INT, HI, 32)): Likewise.
5001 (VECTOR_MODE (INT, QI, 64)): Likewise.
5002 (VECTOR_MODE (FLOAT, DF, 8)): Likewise.
5003 (VECTOR_MODE (FLOAT, SF, 16)): Likewise.
5004 (VECTOR_MODE (INT, DI, 4)): Removed.
5005 (VECTOR_MODE (INT, SI, 8)): Likewise.
5006 (VECTOR_MODE (INT, HI, 16)): Likewise.
5007 (VECTOR_MODE (INT, QI, 32)): Likewise.
5008 (VECTOR_MODE (FLOAT, SF, 8)): Likewise.
5009 (INT_MODE (OI, 32)): Likewise.
5010
5011 * config/i386/i386.opt (mavx): New.
5012 (mfma): Likewise.
5013
5014 * config/i386/i386-protos.h (ix86_attr_length_vex_default): New.
5015
5016 * config/i386/mmx.md (*mov<mode>_internal_rex64): Support AVX.
5017 (*mov<mode>_internal_avx): New.
5018 (*movv2sf_internal_rex64_avx): Likewise.
5019 (*movv2sf_internal_avx): Likewise.
5020
5021 * config/i386/predicates.md (const_4_to_5_operand): New.
5022 (const_6_to_7_operand): Likewise.
5023 (const_8_to_11_operand): Likewise.
5024 (const_12_to_15_operand): Likewise.
5025 (avx_comparison_float_operator): Likewise.
5026
5027 * config/i386/sse.md (AVX256MODEI): New.
5028 (AVX256MODE): Likewise.
5029 (AVXMODEQI): Likewise.
5030 (AVXMODE): Likewise.
5031 (AVX256MODEF2P): Likewise.
5032 (AVX256MODE2P): Likewise.
5033 (AVX256MODE4P): Likewise.
5034 (AVX256MODE8P): Likewise.
5035 (AVXMODEF2P): Likewise.
5036 (AVXMODEF4P): Likewise.
5037 (AVXMODEDCVTDQ2PS): Likewise.
5038 (AVXMODEDCVTPS2DQ): Likewise.
5039 (avxvecmode): Likewise.
5040 (avxvecpsmode): Likewise.
5041 (avxhalfvecmode): Likewise.
5042 (avxscalarmode): Likewise.
5043 (avxcvtvecmode): Likewise.
5044 (avxpermvecmode): Likewise.
5045 (avxmodesuffixf2c): Likewise.
5046 (avxmodesuffixp): Likewise.
5047 (avxmodesuffixs): Likewise.
5048 (avxmodesuffix): Likewise.
5049 (vpermilbits): Likewise.
5050 (pinsrbits): Likewise.
5051 (mov<mode>): Likewise.
5052 (*mov<mode>_internal): Likewise.
5053 (push<mode>1): Likewise.
5054 (movmisalign<mode>): Likewise.
5055 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Likewise.
5056 (avx_movdqu<avxmodesuffix>): Likewise.
5057 (avx_lddqu<avxmodesuffix>): Likewise.
5058 (<plusminus_insn><mode>3): Likewise.
5059 (*avx_<plusminus_insn><mode>3): Likewise.
5060 (*avx_vm<plusminus_insn><mode>3): Likewise.
5061 (mul<mode>3): Likewise.
5062 (*avx_mul<mode>3): Likewise.
5063 (*avx_vmmul<mode>3): Likewise.
5064 (divv8sf3): Likewise.
5065 (divv4df3): Likewise.
5066 (avx_div<mode>3): Likewise.
5067 (*avx_div<mode>3): Likewise.
5068 (*avx_vmdiv<mode>3): Likewise.
5069 (avx_rcpv8sf2): Likewise.
5070 (*avx_vmrcpv4sf2): Likewise.
5071 (sqrtv8sf2): Likewise.
5072 (avx_sqrtv8sf2): Likewise.
5073 (*avx_vmsqrt<mode>2): Likewise.
5074 (rsqrtv8sf2): Likewise.
5075 (avx_rsqrtv8sf2): Likewise.
5076 (*avx_vmrsqrtv4sf2): Likewise.
5077 (<code><mode>3): Likewise.
5078 (*avx_<code><mode>3_finite): Likewise.
5079 (*avx_<code><mode>3): Likewise.
5080 (*avx_vm<code><mode>3): Likewise.
5081 (*avx_ieee_smin<mode>3): Likewise.
5082 (*avx_ieee_smax<mode>3): Likewise.
5083 (avx_addsubv8sf3): Likewise.
5084 (avx_addsubv4df3): Likewise.
5085 (*avx_addsubv4sf3): Likewise.
5086 (*avx_addsubv2df3): Likewise.
5087 (avx_h<plusminus_insn>v4df3): Likewise.
5088 (avx_h<plusminus_insn>v8sf3): Likewise.
5089 (*avx_h<plusminus_insn>v4sf3): Likewise.
5090 (*avx_h<plusminus_insn>v2df3): Likewise.
5091 (avx_cmpp<avxmodesuffixf2c><mode>3): Likewise.
5092 (avx_cmps<ssemodesuffixf2c><mode>3): Likewise.
5093 (*avx_maskcmp<mode>3): Likewise.
5094 (avx_nand<mode>3): Likewise.
5095 (*avx_<code><mode>3): Likewise.
5096 (*avx_nand<mode>3): Likewise.
5097 (*avx_<code><mode>3): Likewise.
5098 (*avx_cvtsi2ss): Likewise.
5099 (*avx_cvtsi2ssq): Likewise.
5100 (*avx_cvtsi2sd): Likewise.
5101 (*avx_cvtsi2sdq): Likewise.
5102 (*avx_cvtsd2ss): Likewise.
5103 (avx_cvtss2sd): Likewise.
5104 (avx_cvtdq2ps<avxmodesuffix>): Likewise.
5105 (avx_cvtps2dq<avxmodesuffix>): Likewise.
5106 (avx_cvttps2dq<avxmodesuffix>): Likewise.
5107 (*avx_cvtsi2sd): Likewise.
5108 (*avx_cvtsi2sdq): Likewise.
5109 (avx_cvtdq2pd256): Likewise.
5110 (avx_cvtpd2dq256): Likewise.
5111 (avx_cvttpd2dq256): Likewise.
5112 (*avx_cvtsd2ss): Likewise.
5113 (*avx_cvtss2sd): Likewise.
5114 (avx_cvtpd2ps256): Likewise.
5115 (avx_cvtps2pd256): Likewise.
5116 (*avx_movhlps): Likewise.
5117 (*avx_movlhps): Likewise.
5118 (avx_unpckhps256): Likewise.
5119 (*avx_unpckhps): Likewise.
5120 (avx_unpcklps256): Likewise.
5121 (*avx_unpcklps): Likewise.
5122 (avx_movshdup256): Likewise.
5123 (avx_movsldup256): Likewise.
5124 (avx_shufps256): Likewise.
5125 (avx_shufps256_1): Likewise.
5126 (*avx_shufps_<mode>): Likewise.
5127 (*avx_loadhps): Likewise.
5128 (*avx_storelps): Likewise.
5129 (*avx_loadlps): Likewise.
5130 (*avx_movss): Likewise.
5131 (*vec_dupv4sf_avx): Likewise.
5132 (*vec_concatv2sf_avx): Likewise.
5133 (*vec_concatv4sf_avx): Likewise.
5134 (*vec_setv4sf_0_avx): Likewise.
5135 (*vec_setv4sf_avx): Likewise.
5136 (*avx_insertps): Likewise.
5137 (avx_vextractf128<mode>): Likewise.
5138 (vec_extract_lo_<mode>): Likewise.
5139 (vec_extract_hi_<mode>): Likewise.
5140 (vec_extract_lo_<mode>): Likewise.
5141 (vec_extract_hi_<mode>): Likewise.
5142 (vec_extract_lo_v16hi): Likewise.
5143 (vec_extract_hi_v16hi): Likewise.
5144 (vec_extract_lo_v32qi): Likewise.
5145 (vec_extract_hi_v32qi): Likewise.
5146 (avx_unpckhpd256): Likewise.
5147 (*avx_unpckhpd): Likewise.
5148 (avx_movddup256): Likewise.
5149 (*avx_movddup): Likewise.
5150 (avx_unpcklpd256): Likewise.
5151 (*avx_unpcklpd): Likewise.
5152 (avx_shufpd256): Likewise.
5153 (avx_shufpd256_1): Likewise.
5154 (*avx_punpckhqdq): Likewise.
5155 (*avx_punpcklqdq): Likewise.
5156 (*avx_shufpd_<mode>): Likewise.
5157 (*avx_storehpd): Likewise.
5158 (*avx_loadhpd): Likewise.
5159 (*avx_loadlpd): Likewise.
5160 (*avx_movsd): Likewise.
5161 (*vec_concatv2df_avx): Likewise.
5162 (*avx_<plusminus_insn><mode>3): Likewise.
5163 (*avx_<plusminus_insn><mode>3): Likewise.
5164 (*avx_mulv8hi3): Likewise.
5165 (*avxv8hi3_highpart): Likewise.
5166 (*avx_umulv8hi3_highpart): Likewise.
5167 (*avx_umulv2siv2di3): Likewise.
5168 (*avx_mulv2siv2di3): Likewise.
5169 (*avx_pmaddwd): Likewise.
5170 (*avx_mulv4si3): Likewise.
5171 (*avx_ashr<mode>3): Likewise.
5172 (*avx_lshr<mode>3): Likewise.
5173 (*avx_ashl<mode>3): Likewise.
5174 (*avx_<code><mode>3): Likewise.
5175 (*avx_eq<mode>3): Likewise.
5176 (*avx_gt<mode>3): Likewise.
5177 (*avx_nand<mode>3): Likewise.
5178 (*avx_nand<mode>3): Likewise.
5179 (*avx_<code><mode>3): Likewise.
5180 (*avx_<code><mode>3): Likewise.
5181 (*avx_packsswb): Likewise.
5182 (*avx_packssdw): Likewise.
5183 (*avx_packuswb): Likewise.
5184 (*avx_punpckhbw): Likewise.
5185 (*avx_punpcklbw): Likewise.
5186 (*avx_punpckhwd): Likewise.
5187 (*avx_punpcklwd): Likewise.
5188 (*avx_punpckhdq): Likewise.
5189 (*avx_punpckldq): Likewise.
5190 (*avx_pinsr<avxmodesuffixs>): Likewise.
5191 (*avx_pinsrq): Likewise.
5192 (*avx_loadld): Likewise.
5193 (*vec_extractv2di_1_rex64_avx): Likewise.
5194 (*vec_extractv2di_1_avx): Likewise.
5195 (*vec_dupv2di_avx): Likewise.
5196 (*vec_concatv2si_avx): Likewise.
5197 (*vec_concatv4si_1_avx): Likewise.
5198 (*vec_concatv2di_avx): Likewise.
5199 (*vec_concatv2di_rex64_avx): Likewise.
5200 (*avx_uavgv16qi3): Likewise.
5201 (*avx_uavgv8hi3): Likewise.
5202 (*avx_psadbw): Likewise.
5203 (avx_movmskp<avxmodesuffixf2c>256): Likewise.
5204 (*avx_phaddwv8hi3): Likewise.
5205 (*avx_phadddv4si3): Likewise.
5206 (*avx_phaddswv8hi3): Likewise.
5207 (*avx_phsubwv8hi3): Likewise.
5208 (*avx_phsubdv4si3): Likewise.
5209 (*avx_phsubswv8hi3): Likewise.
5210 (*avx_pmaddubsw128): Likewise.
5211 (*avx_pmulhrswv8hi3): Likewise.
5212 (*avx_pshufbv16qi3): Likewise.
5213 (*avx_psign<mode>3): Likewise.
5214 (*avx_palignrti): Likewise.
5215 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
5216 (avx_blendvp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
5217 (avx_dpp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
5218 (*avx_mpsadbw): Likewise.
5219 (*avx_packusdw): Likewise.
5220 (*avx_pblendvb): Likewise.
5221 (*avx_pblendw): Likewise.
5222 (avx_vtestp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
5223 (avx_ptest256): Likewise.
5224 (avx_roundp<avxmodesuffixf2c>256): Likewise.
5225 (*avx_rounds<ssemodesuffixf2c>): Likewise.
5226 (*avx_aesenc): Likewise.
5227 (*avx_aesenclast): Likewise.
5228 (*avx_aesdec): Likewise.
5229 (*avx_aesdeclast): Likewise.
5230 (avx_vzeroupper): Likewise.
5231 (avx_vzeroupper_rex64): Likewise.
5232 (avx_vpermil<mode>): Likewise.
5233 (avx_vpermilvar<mode>3): Likewise.
5234 (avx_vpermil2<mode>3): Likewise.
5235 (avx_vperm2f128<mode>3): Likewise.
5236 (avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>): Likewise.
5237 (avx_vbroadcastss256): Likewise.
5238 (avx_vbroadcastf128_p<avxmodesuffixf2c>256): Likewise.
5239 (avx_vinsertf128<mode>): Likewise.
5240 (vec_set_lo_<mode>): Likewise.
5241 (vec_set_hi_<mode>): Likewise.
5242 (vec_set_lo_<mode>): Likewise.
5243 (vec_set_hi_<mode>): Likewise.
5244 (vec_set_lo_v16hi): Likewise.
5245 (vec_set_hi_v16hi): Likewise.
5246 (vec_set_lo_v32qi): Likewise.
5247 (vec_set_hi_v32qi): Likewise.
5248 (avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
5249 (avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>): Likewise.
5250 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
5251 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Likewise.
5252 (vec_init<mode>): Likewise.
5253 (*vec_concat<mode>_avx): Likewise.
5254 (blendbits): Support V8SF and V4DF.
5255 (sse2_movq128): Support AVX.
5256 (<sse>_movnt<mode>): Likewise.
5257 (sse2_movntv2di): Likewise.
5258 (sse_rcpv4sf2): Likewise.
5259 (sse_sqrtv4sf2): Likewise.
5260 (sse_rsqrtv4sf2): Likewise.
5261 (<sse>_comi): Likewise.
5262 (<sse>_ucomi): Likewise.
5263 (sse_cvtss2si): Likewise.
5264 (sse_cvtss2si_2): Likewise.
5265 (sse_cvtss2siq): Likewise.
5266 (sse_cvtss2siq_2): Likewise.
5267 (sse_cvttss2si): Likewise.
5268 (sse_cvttss2siq): Likewise.
5269 (sse2_cvtsd2si): Likewise.
5270 (sse2_cvtsd2si_2): Likewise.
5271 (sse2_cvtsd2siq): Likewise.
5272 (sse2_cvtsd2siq_2): Likewise.
5273 (sse2_cvttsd2si): Likewise.
5274 (sse2_cvttsd2siq): Likewise.
5275 (sse2_cvtdq2pd): Likewise.
5276 (*sse2_cvtpd2dq): Likewise.
5277 (*sse2_cvttpd2dq): Likewise.
5278 (*sse2_cvtpd2ps): Likewise.
5279 (sse2_cvtps2pd): Likewise.
5280 (sse3_movshdup): Likewise.
5281 (sse3_movsldup): Likewise.
5282 (sse_storehps): Likewise.
5283 (*sse4_1_extractps): Likewise.
5284 (sse2_storelpd): Likewise.
5285 (vec_dupv2df_sse3): Likewise.
5286 (*vec_concatv2df_sse3): Likewise.
5287 (*sse4_1_pextrb): Likewise.
5288 (*sse4_1_pextrb_memory): Likewise.
5289 (*sse2_pextrw): Likewise.
5290 (*sse4_1_pextrw_memory): Likewise.
5291 (*sse4_1_pextrd): Likewise.
5292 (*sse4_1_pextrq): Likewise.
5293 (sse2_pshufd_1): Likewise.
5294 (sse2_pshuflw_1): Likewise.
5295 (sse2_pshufhw_1): Likewise.
5296 (*sse2_storeq_rex64): Likewise.
5297 (*vec_dupv4si): Likewise.
5298 (<sse>_movmskp<ssemodesuffixf2c>): Likewise.
5299 (sse2_pmovmskb): Likewise.
5300 (*sse2_maskmovdqu): Likewise.
5301 (*sse2_maskmovdqu_rex64): Likewise.
5302 (sse_ldmxcsr): Likewise.
5303 (sse_stmxcsr): Likewise.
5304 (abs<mode>2): Likewise.
5305 (sse4_1_movntdqa): Likewise.
5306 (sse4_1_phminposuw): Likewise.
5307 (sse4_1_extendv8qiv8hi2): Likewise.
5308 (*sse4_1_extendv8qiv8hi2): Likewise.
5309 (sse4_1_extendv4qiv4si2): Likewise.
5310 (*sse4_1_extendv4qiv4si2): Likewise.
5311 (sse4_1_extendv2qiv2di2): Likewise.
5312 (*sse4_1_extendv2qiv2di2): Likewise.
5313 (sse4_1_extendv4hiv4si2): Likewise.
5314 (*sse4_1_extendv4hiv4si2): Likewise.
5315 (sse4_1_extendv2hiv2di2): Likewise.
5316 (*sse4_1_extendv2hiv2di2): Likewise.
5317 (sse4_1_extendv2siv2di2): Likewise.
5318 (*sse4_1_extendv2siv2di2): Likewise.
5319 (sse4_1_zero_extendv8qiv8hi2): Likewise.
5320 (*sse4_1_zero_extendv8qiv8hi2): Likewise.
5321 (sse4_1_zero_extendv4qiv4si2): Likewise.
5322 (*sse4_1_zero_extendv4qiv4si2): Likewise.
5323 (sse4_1_zero_extendv2qiv2di2): Likewise.
5324 (*sse4_1_zero_extendv2qiv2di2): Likewise.
5325 (sse4_1_zero_extendv4hiv4si2): Likewise.
5326 (*sse4_1_zero_extendv4hiv4si2): Likewise.
5327 (sse4_1_zero_extendv2hiv2di2): Likewise.
5328 (*sse4_1_zero_extendv2hiv2di2): Likewise.
5329 (sse4_1_zero_extendv2siv2di2): Likewise.
5330 (*sse4_1_zero_extendv2siv2di2): Likewise.
5331 (sse4_1_ptest): Likewise.
5332 (sse4_1_roundp<ssemodesuffixf2c>): Likewise.
5333 (sse4_2_pcmpestri): Likewise.
5334 (sse4_2_pcmpestrm): Likewise.
5335 (sse4_2_pcmpistri): Likewise.
5336 (sse4_2_pcmpistrm): Likewise.
5337 (aesimc): Likewise.
5338 (aeskeygenassist): Likewise.
5339
5340 2008-08-28 Uros Bizjak <ubizjak@gmail.com>
5341
5342 * config/i386/predicates.md (vzeroall_operation): New.
5343
5344 * config/i386/sse.md (avx_vzeroall): New.
5345 (*avx_vzeroall): Likewise.
5346
5347 2008-08-28 Paul Brook <paul@codesourcery.com>
5348 Mark Shinwell <shinwell@codesourcery.com>
5349 Richard Earnshaw <richard.earnshaw@arm.com>
5350
5351 * config/arm/arm.c (TARGET_MAX_ANCHOR_OFFSET): New.
5352 (TARGET_MIN_ANCHOR_OFFSET): New.
5353 (arm_override_options): Set correct anchor ranges for Thumb-1
5354 and Thumb-2 if required.
5355 (legitimize_pic_address): Handle case involving a TLS symbol
5356 reference with an addend.
5357 (arm_optimization_options): Enable section anchors at -O1 and
5358 above.
5359 * config/arm/arm.h (OPTIMIZATION_OPTIONS): New.
5360 * config/arm/arm-protos.h (arm_optimization_options): New.
5361
5362 2008-08-28 Nick Clifton <nickc@redhat.com>
5363
5364 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Define.
5365 * config/stormy16/stormy16.md (zero_extendqihi2): Fix length
5366 attribute.
5367
5368 * config/v850/v850.h (IRA_COVER_CLASSES): Define.
5369 * config/v850/v850.md (return): Remove frame size restriction.
5370
5371 * config/mcore/mcore.h (IRA_COVER_CLASSES): Define.
5372
5373 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Define.
5374
5375 * config/fr30/fr30.h (IRA_COVER_CLASSES): Define.
5376
5377 * config/m32r/m32r.h (IRA_COVER_CLASSES): Define.
5378
5379 2008-08-28 Paul Brook <paul@codesourcery.com>
5380
5381 * config/arm/vfp11.md: Update license notice.
5382 * config/arm/cortex-r4.md: Ditto.
5383
5384 2008-08-28 Richard Guenther <rguenther@suse.de>
5385
5386 PR tree-optimization/37207
5387 * tree-ssa-ifcombine.c (recognize_single_bit_test): Fix
5388 tuplification bug.
5389
5390 2008-08-28 Dodji Seketeli <dodji@redhat.com>
5391
5392 PR c++/36741
5393 * tree.c (int_fits_type_p): Don't forget unsigned integers
5394 of type sizetype which higher end word equals -1.
5395
5396 2008-08-28 Ira Rosen <irar@il.ibm.com>
5397
5398 * target.h (struct vectorize): Add new target builtin.
5399 * tree-vectorizer.c (destroy_loop_vec_info): Call
5400 vect_free_slp_instance instead of vect_free_slp_node.
5401 * tree-vectorizer.h (enum slp_load_perm_type): New.
5402 (struct _slp_instance): Add new fields.
5403 (SLP_INSTANCE_LOAD_PERMUTATION): New.
5404 (SLP_INSTANCE_LOADS): New.
5405 (vect_free_slp_tree): Remove.
5406 (vect_free_slp_instance): Declare.
5407 (SLP_TREE_LOADS_PERM_TYPE, TARG_VEC_PERMUTE_COST): New.
5408 (vectorizable_load): Add argument.
5409 (vect_transform_slp_perm_load): New.
5410 * tree-vect-analyze.c (vect_analyze_operations): Add an argument to
5411 vectorizable_load.
5412 (vect_get_place_in_interleaving_chain): New function.
5413 (vect_free_slp_tree): Make static.
5414 (vect_free_slp_instance): New function.
5415 (vect_build_slp_tree): Add new arguments. Allow load permutations and
5416 collect the load location in the interleaving chain.
5417 (vect_supported_slp_permutation_p): New function.
5418 (vect_supported_load_permutation_p): Likewise.
5419 (vect_analyze_slp_instance): In case of loads permutation, call
5420 vect_supported_load_permutation_p to check that the permutation is
5421 supported.
5422 * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM): New.
5423 * tree-vect-transform.c (vect_transform_stmt): Add new argument.
5424 (vect_create_mask_and_perm): New function.
5425 (vect_get_mask_element, vect_transform_slp_perm_load): Likewise.
5426 (vectorizable_load): Add an argument. Don't keep the created vectors
5427 statements in the node if permutation is required. Call
5428 vect_transform_slp_perm_load to generate the permutation.
5429 (vect_transform_stmt): Add new argument. Call vectorizable_load with
5430 additional argument.
5431 (vect_schedule_slp_instance): In case of loads permutation, allocate
5432 vectorized statements structure for all the related SLP nodes. Call
5433 vect_transform_stmt with addditional argument.
5434 (vect_transform_loop): Call vect_transform_stmt with correct arguments.
5435 * config/spu/spu.c (spu_builtin_vec_perm): New.
5436 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
5437 * config/spu/spu.h (TARG_VEC_PERMUTE_COS): Define.
5438 * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): New.
5439 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
5440
5441 2008-08-28 Chris Fairles <chris.fairles@gmail.com>
5442
5443 * gthr-posix.h (__gthread_create, __gthread_join, __gthread_detach,
5444 __gthread_mutex_timed_lock, __gthread_recursive_mutex_timed_lock,
5445 __gthread_cond_signal, __gthread_cond_timedwait,
5446 __gthread_cond_timedwait_recursive): New functions.
5447 * gthr-posix.c (pthread_mutex_timedlock, pthread_cond_timedwait):
5448 Likewise.
5449 * gthr.h: Comment on defining __GTHREADS_CXX0X macro in conforming
5450 thread interfaces.
5451
5452 2008-08-28 Richard Guenther <rguenther@suse.de>
5453
5454 PR middle-end/37005
5455 * fold-const.c (maybe_canonicalize_comparison_1): Require
5456 undefined overflow only for canonicalizing A +- CST cmp CST.
5457 Make sure to not generate new constants that are not inside
5458 their TYPE_MIN/MAX_VALUE range.
5459 (maybe_canonicalize_comparison): Remove undefined overflow
5460 checking from here.
5461 (fold_binary): Remove now duplicate folding.
5462
5463 2008-08-27 Paolo Carlini <paolo.carlini@oracle.com>
5464
5465 * c-typeck.c (convert_for_assignment): Adjust WARN_FOR_ASSIGNMENT
5466 use not updated in the last change.
5467
5468 2008-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
5469
5470 * config/sh/sh.h (REG_CLASS_CONTENTS): Drop fr32 from FPUL_REGS.
5471 (IRA_COVER_CLASSES): Add FPUL_REGS.
5472
5473 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5474
5475 PR 37217
5476 * c-common.c (conversion_warning): Check for null operands.
5477
5478 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5479
5480 PR c/31673
5481 * c-decl.c (check_for_loop_decls): Improve error message. Give
5482 hint.
5483
5484 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5485
5486 PR c/37186
5487 * c-typeck.c (WARN_FOR_ASSIGNMENT): Add OPT parameter.
5488 (convert_for_assignment): Pass corrent OPT_W* parameter to
5489 WARN_FOR_ASSIGNMENT.
5490
5491 2008-08-27 Paolo Carlini <paolo.carlini@oracle.com>
5492
5493 PR c++/35321
5494 * c-common.c (fold_offsetof_1): Handle TARGET_EXPR like CALL_EXPR.
5495
5496 2008-08-27 Paul Brook <paul@codesourcery.com>
5497
5498 * config.gcc: Loosen checks for arm uclinux eabi targets.
5499
5500 2008-08-27 Paul Brook <paul@codesourcery.com>
5501
5502 * config/arm/t-arm-coff (LIB1ASMFUNCS): Add missing undescrore on
5503 _clzsi2.
5504 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
5505
5506 2008-08-26 Douglas Gregor <doug.gregor@gmail.com>
5507
5508 * c-common.c (do_switch_warnings): Look through the CONST_DECLs in
5509 the enumerators of an ENUMERAL_TYPE.
5510 * dbxout.c (dbxout_type): Ditto.
5511
5512 2008-08-26 Andrew Pinski <andrew_pinski@playstation.sony.com>
5513
5514 PR rtl-opt/37219
5515 * fwprop.c (fwprop): Check that the loop_father is the outer loop.
5516 (fwprop_addr): Check that the loop_father is not the outer loop.
5517
5518 2008-08-26 Paul Brook <paul@codesourcery.com>
5519
5520 * config/arm/vfp.md: Document fmul{s,d} and fmac{s,d} types.
5521 Remove documentation entry for fmul type.
5522 Use fmuls to annotate single-precision multiplication patterns,
5523 fmuld to annotate double-precision multiplication patterns,
5524 fmacs to annotate single-precision multiply-accumulate patterns
5525 and fmacd to annotate double-precision multiply-accumulate patterns.
5526 * config/arm/vfp11.md: Update reservations accordingly.
5527 * config/arm/arm.md: Note that certain values of the "type"
5528 attribute are documented in vfp.md.
5529 * config/arm/arm1020e.md: Remove out of date duplicate comment.
5530 (v10_cvt): Use new fmul types.
5531
5532 2008-08-26 Paul Brook <paul@codesourcery.com>
5533
5534 * config/arm/vfp.md: Move pipeline description for VFP11 to...
5535 * config/arm/vfp11.md: ...here. New.
5536 * config/arm/arm.md: Include vfp11.md.
5537
5538 2008-08-26 Hans-Peter Nilsson <hp@axis.com>
5539
5540 * opts.c (decode_options) [!IRA_COVER_CLASSES]: Add missing
5541 parameter to inform call.
5542
5543 2008-08-26 Jeff Law <law@redhat.com>
5544
5545 * mn10300.md (movqi, movhi): Split i->d*a case into two cases to
5546 avoid the possibility of getting DATA_OR_ADDRESS_REGS as the
5547 preferred class when copying a constant into a partial word register.
5548
5549 2008-08-26 Ben Elliston <bje@au.ibm.com>
5550
5551 * rtlanal.c: Fix uses of "it's" with "its" where appropriate.
5552 * cp/typeck.c: Likewise.
5553 * cp/tree.c: Likewise.
5554 * gimple-low.c: Likewise.
5555 * jump.c: Likewise.
5556
5557 2008-08-26 Vladimir Makarov <vmakarov@redhat.com>
5558
5559 * ira-build.c, ira-color.c, ira-costs.c, ira.h, ira-lives.c,
5560 ira.c, ira-conflicts.c, ira-emit.c, ira-int.h: New files.
5561
5562 * doc/passes.texi: Describe IRA.
5563
5564 * doc/tm.texi (IRA_COVER_CLASSES,
5565 IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Describe the new macros.
5566
5567 * doc/invoke.texi (ira-max-loops-num): Describe the new parameter.
5568 (-fira, -fira-algorithm, -fira-coalesce, -fno-ira-move-spills,
5569 -fira-propagate-cost, -fno-ira-share-save-slots,
5570 -fno-ira-share-spill-slots, -fira-verbose): Describe new options.
5571
5572 * flags.h (ira_algorithm): New enumeration.
5573 (flag_ira_algorithm, flag_ira_verbose): New external variable
5574 declarations.
5575
5576 * postreload.c (gate_handle_postreload): Don't do post reload
5577 optimizations unless the reload is completed.
5578
5579 * reload.c (push_reload, find_dummy_reload): Use DF_LR_OUT for
5580 IRA.
5581
5582 * tree-pass.h (pass_ira): New external variable declaration.
5583
5584 * reload.h: Add 2008 to the Copyright.
5585
5586 * cfgloopanal.c: Include params.h.
5587 (estimate_reg_pressure_cost): Decrease cost for IRA optimization
5588 mode.
5589
5590 * params.h (IRA_MAX_LOOPS_NUM): New macro.
5591
5592 * toplev.c (ira.h): New include.
5593 (flag_ira_algorithm, flag_ira_verbose): New external variables.
5594 (backend_init_target): Call ira_init.
5595 (backend_init): Call ira_init_once.
5596 (finalize): Call finish_ira_once.
5597
5598 * toplev.h (flag_ira, flag_ira_coalesce, flag_ira_move_spills,
5599 flag_ira_share_save_slots, flag_ira_share_spill_slots): New
5600 external variables.
5601
5602 * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
5603 may_move_out_cost): New external variable declarations.
5604 (move_table): New typedef.
5605
5606 * caller-save.c: Include headers output.h and ira.h.
5607 (no_caller_save_reg_set): New global variable.
5608 (save_slots_num, save_slots): New variables.
5609 (reg_save_code, reg_restore_code, add_stored_regs): Add
5610 prototypes.
5611 (init_caller_save): Set up no_caller_save_reg_set.
5612 (init_save_areas): Reset save_slots_num.
5613 (saved_hard_reg): New structure.
5614 (hard_reg_map, saved_regs_num, all_saved_regs): New variables.
5615 (initiate_saved_hard_regs, new_saved_hard_reg,
5616 finish_saved_hard_regs, saved_hard_reg_compare_func): New
5617 functions.
5618 (setup_save_areas): Add code for sharing stack slots.
5619 (all_blocks): New variable.
5620 (save_call_clobbered_regs): Process pseudo-register too.
5621 (mark_set_regs): Process pseudo-register too.
5622 (insert_one_insn): Put the insn after bb note in a empty basic
5623 block. Add insn check.
5624
5625 * global.c (eliminable_regset): Make it external.
5626 (mark_elimination): Use DF_LR_IN for IRA.
5627 (pseudo_for_reload_consideration_p): New.
5628 (build_insn_chain): Make it external. Don't ignore spilled
5629 pseudos for IRA. Use pseudo_for_reload_consideration_p.
5630 (gate_handle_global_alloc): New function.
5631 (pass_global_alloc): Add the gate function.
5632
5633 * opts.c (decode_options): Set up flag_ira. Print the warning for
5634 -fira.
5635 (common_handle_option): Process -fira-algorithm and -fira-verbose.
5636
5637 * timevar.def (TV_IRA, TV_RELOAD): New passes.
5638
5639 * regmove.c (regmove_optimize): Don't do replacement of output for
5640 IRA.
5641
5642 * hard-reg-set.h (no_caller_save_reg_set, reg_class_subclasses):
5643 New external variable declarations.
5644
5645 * local-alloc.c (update_equiv_regs): Make it external. Return
5646 true if jump label rebuilding should be done. Rescan new_insn for
5647 notes.
5648 (gate_handle_local_alloc): New function.
5649 (pass_local_alloc): Add the gate function.
5650
5651 * alias.c (value_addr_p, stack_addr_p): New functions.
5652 (nonoverlapping_memrefs_p): Use them for IRA.
5653
5654 * common.opt (fira, fira-algorithm, fira-coalesce,
5655 fira-move-spills, fira-share-save-slots, fira-share-spill-slots,
5656 fira-verbose): New options.
5657
5658 * regclass.c (reg_class_subclasses, contains_reg_of_mode,
5659 move_cost, may_move_in_cost, may_move_out_cost): Make the
5660 variables external.
5661 (move_table): Remove typedef.
5662 (init_move_cost): Make it external.
5663 (allocate_reg_info, resize_reg_info, setup_reg_classes): New
5664 functions.
5665
5666 * rtl.h (init_move_cost, allocate_reg_info, resize_reg_info,
5667 setup_reg_classes): New function prototypes.
5668 (eliminable_regset): New external variable declaration.
5669 (build_insn_chain, update_equiv_regs): New function prototypes.
5670
5671 * Makefile.in (IRA_INT_H): New definition.
5672 (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
5673 ira-conflicts.o, ira-color.o, ira-emit.o, and ira-lives.o.
5674 (reload1.o, toplev.o): Add dependence on ira.h.
5675 (cfgloopanal.o): Add PARAMS_H.
5676 (caller-save.o): Add dependence on output.h and ira.h.
5677 (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
5678 ira-emit.o, ira-lives.o): New entries.
5679
5680 * passes.c (pass_ira): New pass.
5681
5682 * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
5683
5684 * reload1.c (ira.h): Include the header.
5685 (changed_allocation_pseudos): New bitmap.
5686 (init_reload): Initiate the bitmap.
5687 (compute_use_by_pseudos): Permits spilled registers in FROM.
5688 (temp_pseudo_reg_arr): New variable.
5689 (reload): Allocate and free temp_pseudo_reg_arr. Sort pseudos for
5690 IRA. Call alter_reg with the additional parameter. Don't clear
5691 spilled_pseudos for IRA. Restore original insn chain for IRA.
5692 Clear changed_allocation_pseudos at the end of reload.
5693 (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
5694 (hard_regno_to_pseudo_regno): New variable.
5695 (count_pseudo): Check spilled pseudos. Set up
5696 hard_regno_to_pseudo_regno.
5697 (count_spilled_pseudo): Check spilled pseudos. Update
5698 hard_regno_to_pseudo_regno.
5699 (find_reg): Use better_spill_reload_regno_p. Check
5700 hard_regno_to_pseudo_regno.
5701 (alter_reg): Set up spilled_pseudos. Add a new parameter. Add
5702 code for IRA.
5703 (eliminate_regs_1): Use additional parameter for alter_reg.
5704 (finish_spills): Set up pseudo_previous_regs only for spilled
5705 pseudos. Call reassign_pseudos once for all spilled pseudos, pass
5706 more arguments. Don't clear live_throughout and dead_or_set for
5707 spilled pseudos. Use additional parameter for alter_reg. Call
5708 mark_allocation_change. Set up changed_allocation_pseudos.
5709 Remove sanity check.
5710 (emit_input_reload_insns, delete_output_reload): Use additional
5711 parameter for alter_reg. Call mark_allocation_change.
5712 (substitute, gen_reload_chain_without_interm_reg_p): New
5713 functions.
5714 (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
5715
5716 * testsuite/gcc.dg/20080410-1.c: New file.
5717
5718 * config/s390/s390.h (IRA_COVER_CLASSES,
5719 IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Define.
5720
5721 * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
5722
5723 * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
5724
5725 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
5726
5727 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
5728
5729 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
5730
5731 * config/alpha/alpha.h (IRA_COVER_CLASSES): Ditto.
5732
5733 2008-08-24 Jeff Law <law@redhat.com>
5734 * ira.c (setup_reg_class_intersect_union): Prefer smallest class
5735 when ignoring unavailable registers.
5736
5737 2008-08-24 Jeff Law <law@redhat.com>
5738 * ira-color.c (coalesced_pseudo_reg_slot_compare): Check
5739 FRAME_GROWS_DOWNWARD and STACK_GROWS_DOWNWARD.
5740 * ira.c (setup_eliminable_regset): Check stack_realign_needed.
5741 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): New macro.
5742
5743 2008-06-03 Steve Chamberlain <steve.chamberlain@gmail.com>
5744 * ira-build.c (allocno_range_compare_func): Stabilize sort.
5745
5746 2008-05-29 Andy Hutchinson <hutchinsonandy@aim.com>
5747 * config/avr/avr.h (IRA_COVER_CLASSES): New macro.
5748 * reload1.c (find_reg): Process registers in register allocation order.
5749
5750 2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
5751 * toplev.c (backend_init_target): Move ira_init call from
5752 here...
5753 (lang_dependent_init_target): ...to here.
5754
5755 2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
5756 * ira.c (setup_class_subset_and_memory_move_costs): Don't
5757 calculate memory move costs for NO_REGS.
5758
5759 2008-05-05 Kaz Kojima <kkojima@gcc.gnu.org>
5760 * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
5761 STACK_REGS is defined.
5762
5763 2008-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
5764 * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
5765
5766 2008-04-04 Bernd Schmidt <bernd.schmidt@analog.com>
5767 * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
5768
5769 2008-04-04 Kaz Kojima <kkojima@gcc.gnu.org>
5770 * config/sh/sh.h (IRA_COVER_CLASSES): Define.
5771 * config/sh/sh.md (movsicc_true+3): Check if emit returns a
5772 barrier.
5773
5774 2008-08-26 Victor Kaplansky <victork@il.ibm.com>
5775 Dorit Nuzman <dorit@il.ibm.com>
5776
5777 * gcc/config/spu/spu.md (vec_extract_evenv4si,
5778 vec_extract_evenv4sf, vec_extract_evenv8hi,
5779 vec_extract_evenv16qi, vec_extract_oddv4si,
5780 vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
5781 vec_interleave_highv4sf, vec_interleave_lowv4sf,
5782 vec_interleave_highv4si, vec_interleave_lowv4si,
5783 vec_interleave_highv8hi, vec_interleave_lowv8hi,
5784 vec_interleave_highv16qi, vec_interleave_lowv16qi,
5785 vec_pack_trunc_v8hi, vec_pack_trunc_v4si): Implement.S
5786
5787 2008-08-25 Janis Johnson <janis187@us.ibm.com>
5788
5789 PR target/36756
5790 * config/rs6000/rs6000.c (optimization_options): Don't default to
5791 section anchors without toplevel reorder.
5792
5793 2008-08-25 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5794
5795 * config/spu/spu_mfcio.h (mfc_begin_critical_section): New function.
5796 (mfc_end_critical_section): Likewise.
5797
5798 2008-08-25 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5799
5800 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Propagate
5801 all type qualifiers from element type to vector type.
5802
5803 2008-08-25 David Daney <ddaney@avtrex.com>
5804
5805 * config/mips/mips.md (immediate_insn): Move up in file, fix
5806 comment typo, reformat.
5807 (fetchop_bit, atomic_hiqi_op memory_barrier,
5808 sync_compare_and_swap<mode>, compare_and_swap_12, sync_add<mode>,
5809 sync_<optab><mode>, sync_<optab>_12, sync_old_<optab><mode>,
5810 sync_old_<optab>_12, sync_new_<optab><mode>, sync_new_<optab>_12,
5811 sync_nand<mode>, sync_nand_12, sync_old_nand<mode>,
5812 sync_old_nand_12, sync_new_nand<mode>, sync_new_nand_12,
5813 sync_sub<mode>, sync_old_add<mode>, sync_old_sub<mode>,
5814 sync_new_add<mode>, sync_new_sub<mode>, sync_<optab><mode>,
5815 sync_old_<optab><mode>, sync_new_<optab><mode>, sync_nand<mode>,
5816 sync_old_nand<mode>, sync_new_nand<mode>,
5817 sync_lock_test_and_set<mode>, sync_lock_test_and_set<mode>,
5818 test_and_set_12): Moved to sync.md.
5819 (sync.md): Include.
5820 * config/mips/sync.md: New file.
5821
5822 2008-08-25 Richard Henderson <rth@redhat.com>
5823
5824 * dwarf2out.c (def_cfa_1): Don't scale by DWARF_CIE_DATA_ALIGNMENT.
5825 (regsave): Likewise.
5826 (lookup_cfa_1): Don't rescale by DWARF_CIE_DATA_ALIGNMENT.
5827 (output_cfi_directive): Likewise.
5828 (div_data_align): New.
5829 (output_cfi): Use it.
5830
5831 2008-08-24 Adam Nemet <anemet@caviumnetworks.com>
5832
5833 * config.gcc (mips64*-*-linux*): Handle mips64octeon*-*-linux*.
5834 * config/mips/mips.h (enum processor_type): Add PROCESSOR_OCTEON.
5835 (TARGET_OCTEON): New macro.
5836 (TARGET_CPU_CPP_BUILTINS): Define __OCTEON__ for Octeon.
5837 (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC): Handle -march=octeon.
5838 (ISA_HAS_POP): New macro.
5839 * config/mips/driver-native.c (host_detect_local_cpu): Handle
5840 Octeon.
5841 * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
5842 Handle Octeon.
5843 * config/mips/mips.md (cpu): Add octeon.
5844 (type): Add pop attribute value.
5845 (popcount<mode>2): New pattern.
5846 * doc/invoke.texi (-march=@var{arch}): Add octeon.
5847
5848 2008-08-24 Jan Hubicka <jh@suse.cz>
5849
5850 * doc/invoke.texi (-fipa-cp-clone): New option.
5851 (-fipa-cp): Update docs.
5852 (--param ipcp-unit-growth):New.
5853 * ipa-cp.c: Include fibheap.h, params.h
5854 (ipcp_initialize_node_lattices): When not cloning, all externally
5855 visible functions are bottom.
5856 (ipcp_need_redirect_p): Accept clones.
5857 (ipcp_insert_stage): Use cost driven heuristics.
5858 (max_count, dead_nodes): New static vars.
5859 (ipcp_need_original_clone_p, ipcp_estimate_cloning_cost,
5860 ipcp_const_param_count): New functions.
5861 * common.opt (ipa-cp-clone): New command line option.
5862 * params.def (ipcp-unit-growth): New.
5863
5864 2008-08-24 Jan Hubicka <jh@suse.cz>
5865
5866 * tree-inline.c (tree_function_versioning): Look harder
5867 for referenced vars.
5868
5869 2008-08-24 Razya Ladelsky <razya@il.ibm.com>
5870
5871 PR tree-optimization/37185
5872 * matrix-reorg.c (transform_access_sites): Update changed stmt.
5873
5874 2008-08-23 Jan Hubicka <jh@suse.cz>
5875
5876 * ipa-cp.c (ipcp_analyze_node): New function.
5877 (ipcp_update_cloned_node): Use it.
5878 (ipcp_init_stage): Likewise.
5879 * ipa-inline.c (function_insertion_hook_holder): New static var.
5880 (analyze_function): Break out from ....
5881 (inline_generate_summary): Here; register insertion hook.
5882 (cgraph_decide_inlining): Remove hook.
5883 (add_new_function): New function.
5884
5885 2008-08-23 Jan Hubicka <jh@suse.cz>
5886
5887 * opts.c (decode_options): Revert accidental change enabling ipa-cp.
5888
5889 2008-08-23 Jan Hubicka <jh@suse.cz>
5890
5891 * ipa-cp.c (constant_val_insert): Remove.
5892 (ipcp_propagate_one_const): Remove.
5893 (ipcp_create_replace_map): Always insert replacements to the map.
5894 (ipcp_insert_stage): Do not try to insert statements by hand.
5895 * tree-inline.c (insert_init_stmt): Break out from ...
5896 (setup_one_parameter): ... here; allow NULL BB pointer.
5897 (tree_function_versioning): Use setup_one_parameter to process
5898 replacement map.
5899
5900 2008-08-23 Jan Hubicka <jh@suse.cz>
5901
5902 * tree.c (decl_address_ip_invariant_p): New function.
5903 * tree.h (decl_address_ip_invariant_p): Declare.
5904 * gimple.c (strip_invariant_refs): Break out from ...
5905 (is_gimple_invariant_address): ... here
5906 (is_gimple_ip_invariant_address): New function.
5907 (is_gimple_ip_invariant): New function.
5908 * gimple.h (is_gimple_ip_invariant_address, is_gimple_ip_invariant):
5909 Declare.
5910
5911 * ipa-cp.c (ipcp_lat_is_const): Remove handling of IPA_CONST_VALUE_REF.
5912 (ipcp_lat_is_insertable): All constants are insertable.
5913 (ipcp_lattice_from_jfunc, ipcp_print_all_lattices): Remove handling of
5914 IPA_CONST_VALUE_REF.
5915 (ipcp_initialize_node_lattices): Propagate all types of operands.
5916 (build_const_val): Do not handle IPA_CONST_VALUE_REF.
5917 (ipcp_create_replace_map): Reformat.
5918 (ipcp_need_redirect_p): Simplify.
5919 (ipcp_insert_stage): Check that argument is used before clonning.
5920 * ipa-prop.c (ipa_print_node_jump_functions): Do not handle
5921 IPA_CONST_REF.
5922 (compute_scalar_jump_functions): Simplify using is_gimple_ip_invariat.
5923 (determine_cst_member_ptr): Keep wrapping ADDR_EXPR of members.
5924 (update_call_notes_after_inlining): Expect ADDR_EXPR in operand.
5925 * ipa-prop.h (jump_func_type): Remove IPA_CONST_REF.
5926 (jump_func_type): Remove IPA_CONST_VALUE_REF.
5927 * tree-inline.c (tree_function_versioning): Add variables referenced
5928 by replacing trees.
5929
5930 2008-08-23 Jan Hubicka <jh@suse.cz>
5931
5932 PR target/37094
5933 * i386.c (standard_80387_constant_p): Use optimize_size.
5934
5935 2008-08-23 Ira Rosen <irar@il.ibm.com>
5936
5937 PR tree-optimization/37161
5938 * tree-vectorizer.h (vect_get_smallest_scalar_type): Declare.
5939 * tree-vect-analyze.c (vect_get_smallest_scalar_type): New function.
5940 (vect_determine_vectorization_factor): Move the scalar type
5941 retrieval to vect_get_smallest_scalar_type.
5942 (vect_build_slp_tree): Call vect_get_smallest_scalar_type to get
5943 scalar type. Remove redundant computation.
5944 * tree-vect-transform.c (vect_get_constant_vectors): Add argument.
5945 (vect_get_slp_defs): Take the type of RHS into account if
5946 necessary by calling vect_get_smallest_scalar_type. Call
5947 vect_get_constant_vectors with additional argument.
5948
5949 2008-08-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5950
5951 PR 35648
5952 * doc/invoke.texi (Wwrite-strings): Clarify description.
5953
5954 2008-08-23 Ira Rosen <irar@il.ibm.com>
5955
5956 PR tree-optimization/37174
5957 * tree-vect-analyze.c (vect_get_and_check_slp_defs): Check that the
5958 def stmt is a part of the loop before accessing its stmt_vec_info.
5959
5960 2008-08-22 Anatoly Sokolov <aesok@post.ru>
5961
5962 PR target/11259
5963 * config/avr/avr.md (UNSPEC_SWAP): New constants.
5964 (*swap): New insn pattern.
5965 (*ashlqi3): Rename from ashlqi3 insn pattern.
5966 (ashlqi3): New expanders.
5967 (*lshrqi3): Rename from lshrqi3 insn pattern.
5968 (lshrqi3): New expanders.
5969 (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, lshrqi3_const4,
5970 lshrqi3_const5, lshrqi3_const6): New splitters.
5971 (andi, ashlqi3_l_const4, ashlqi3_l_const5, ashlqi3_l_const6,
5972 lshrqi3_l_const4, lshrqi3_l_const5, lshrqi3_l_const6): Define
5973 peephole2 patterns.
5974
5975 2008-08-22 Richard Guenther <rguenther@suse.de>
5976
5977 PR tree-optimization/37078
5978 * tree-vrp.c (extract_range_from_unary_expr): Avoid generating
5979 [+INF, +INF] ranges.
5980
5981 2008-08-22 Richard Guenther <rguenther@suse.de>
5982
5983 PR tree-optimization/37143
5984 * tree-vect-transform.c (vect_create_cond_for_align_checks): Build
5985 a conversion statement instead of a copy.
5986
5987 2008-08-22 Uros Bizjak <ubizjak@gmail.com>
5988
5989 PR target/37184
5990 * config/i386/i386.c (ix86_match_ccmode): Handle CCAmode,
5991 CCCmode, CCOmode and CCSmode destination modes.
5992
5993 PR target/37191
5994 * config/i386/mmx.md (*vec_extractv2sf_0): Avoid combining registers
5995 from different units in a single alternative.
5996 (*vec_extractv2sf_1): Ditto.
5997 (*vec_extractv2si_0): Ditto.
5998 (*vec_extractv2si_1): Ditto.
5999 * config/i386/sse.md (sse2_storehpd): Ditto.
6000 (sse2_storelpd): Ditto.
6001 (sse2_loadhpd): Ditto.
6002 (sse2_loadlpd): Ditto.
6003
6004 PR target/37197
6005 * config/i386/i386.md (clzsi2_abm): Fix operand 1 constraints.
6006 (popcountsi2): Ditto.
6007 (clzdi2_abm): Ditto.
6008 (popcountdi2): Ditto.
6009 (clzhi2_abm): Ditto.
6010 (popcounthi2): Ditto.
6011
6012 2008-08-22 Richard Guenther <rguenther@suse.de>
6013
6014 PR middle-end/36548
6015 PR middle-end/37125
6016 * fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only
6017 if the multiplication does not overflow.
6018
6019 2008-08-21 Nathan Sidwell <nathan@codesourcery.com>
6020
6021 * c-ppoutput.c (init_pp_output): Initialize src_line to 1.
6022
6023 2008-08-21 Richard Henderson <rth@redhat.com>
6024
6025 * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove
6026 spurrious comma from test.
6027 * configure: Rebuild.
6028
6029 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6030
6031 PR 30457
6032 * builtins.c (fold_builtin_next_arg): Add warning about undefined
6033 behaviour.
6034
6035 2008-08-21 Aldy Hernandez <aldyh@redhat.com>
6036
6037 * c-tree.h (grokfield): New argument.
6038 * c-decl.c (grokfield): Handle new location argument.
6039 * c-parser.c (c_parser_struct_declaration): Pass location to grokfield.
6040
6041 2008-08-21 Richard Guenther <rguenther@suse.de>
6042
6043 * tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants.
6044
6045 2008-08-21 Jan Hubicka <jh@suse.cz>
6046
6047 * cgraph.c (first_cgraph_function_insertion_hook): New variable.
6048 (cgraph_add_function_insertion_hook,
6049 cgraph_remove_function_insertion_hook,
6050 cgraph_call_function_insertion_hooks): New functions.
6051 * cgraph.h (cgraph_add_function_insertion_hook,
6052 cgraph_remove_function_insertion_hook,
6053 cgraph_call_function_insertion_hooks): Declare.
6054 * ipa-reference.c (function_insertion_hook_holder): New variable.
6055 (check_operand, look_for_address_of): When checking late, do not care
6056 about module bitmaps.
6057 (add_new_function): New function.
6058 (generate_summary): Register hooks; zero module bitmaps.
6059 (propagate): Unregister hooks.
6060 * ipa-pure-const.c (function_insertion_hook_holder): New variable.
6061 (add_new_function): New function.
6062 (generate_summary): Register hook.
6063 (propagate): Remove hook.
6064
6065 * ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
6066
6067 * tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
6068 * ipa-cp.c (ipcp_update_cloned_node): New function.
6069 (build_const_val): Handle functions correctly; bring type logic
6070 into sync with tree-inline.c
6071 (ipcp_init_stage): Take care of computing stuff needed by
6072 indirect inlining; update clones.
6073 (ipcp_generate_summary): Break out of ipcp_driver.
6074 (ipcp_driver): Do only execution and transformation.
6075 (pass_ipa_cp): Make IPA_PASS.
6076 * tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
6077 offset to address.
6078 * ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
6079 ipcp, some info is already available.
6080 * ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
6081 * tree-inline.c (remap_ssa_name): Unshare expression.
6082
6083 2008-08-21 Richard Guenther <rguenther@suse.de>
6084
6085 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
6086 a PHI ask VN if it is already available.
6087 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
6088 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
6089
6090 2008-08-21 Richard Guenther <rguenther@suse.de>
6091
6092 PR middle-end/36817
6093 * tree-chrec.c (chrec_apply): Always call chrec_fold_plus which
6094 makes sure to produce a result of the correct type.
6095
6096 2008-08-21 Jan Hubicka <jh@suse.cz>
6097 Backport from LTO branch:
6098
6099 2008-05-05 Kenneth Zadeck <zadeck@naturalbridge.com>
6100 Jan Hubicka <jh@suse.cz>
6101
6102 * ipa-pure-const.c
6103 (init_state, finish_state, set_function_state, generate_summary):
6104 New functions.
6105 (scan_stmt): Renamed from scan_function. Changed to keep state in
6106 local static vars rather than cgraph aux field.
6107 (propagate): Renamed from static_execute. Changed to keep state in
6108 local static vars rather than cgraph aux field.
6109 (pass_ipa_pure_const): Changed from SIMPLE_IPA_PASS to IPA_PASS.
6110 * tree-pass.h (pass_ipa_pure_const): Turn into IPA_PASS.
6111
6112 2008-07-15 Kenneth Zadeck <zadeck@naturalbridge.com>
6113
6114 * tree-pass.h (pass_ipa_reference): Make into ipa_opt_pass.
6115 * ipa-reference.c (init_function_info, generate_summary,
6116 propagate): New functions.
6117 (analyze_function): Call init_function_info.
6118 (static_execute): Stripped into generate_summary and propagate.
6119 (pass_ipa_reference): Made into ipa_opt_pass.
6120
6121 2008-08-21 Richard Guenther <rguenther@suse.de>
6122
6123 PR tree-optimization/37181
6124 * tree-vrp.c (extract_range_from_binary_expr): Check for NULL
6125 folding result.
6126 (extract_range_from_unary_expr): Likewise.
6127
6128 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6129
6130 * diagnostic.c (pedwarn_at): Rename as pedwarn.
6131 (pedwarn): Delete.
6132 * toplev.h (pedwarn_at): Likewise.
6133 * builtins.c: Update all calls to pedwarn.
6134 * c-lex.c: Likewise.
6135 * toplev.c: Likewise.
6136 * c-tree.h: Likewise.
6137 * c-decl.c: Likewise.
6138 * c-errors.c: Likewise.
6139 * c-typeck.c: Likewise.
6140 * c-common.c: Likewise.
6141 * c-parser.c: Likewise.
6142
6143 2008-08-20 Joseph Myers <joseph@codesourcery.com>
6144
6145 PR target/31070
6146 * config/sparc/sparc.c (function_arg_slotno): Handle structure
6147 with MODE_VECTOR_INT mode.
6148
6149 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6150
6151 PR middle-end/179
6152 * tree-ssa.c (warn_uninit): Do not warn for variables that can be
6153 initialized outside the current module.
6154 (warn_uninitialized_var): Ignore left-hand side when walking the
6155 trees. Ignore address expressions. Examine VUSE operands in gimple
6156 statements with a variable declaration on the right-hand side.
6157
6158 2008-08-20 Richard Sandiford <rdsandiford@googlemail.com>
6159
6160 PR bootstrap/37155
6161 * rtlanal.c (subreg_offset_representable_p): Revert last change.
6162
6163 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6164
6165 PR 35701
6166 * c-common.c (conversion_warning): Do not warn if applying bit-and
6167 operator to unsigned constant that fits in the target type.
6168
6169 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6170
6171 PR c++/35602
6172 * c-common.c (conversion_warning): Do not warn for artificial
6173 expressions.
6174
6175 2008-08-20 Richard Guenther <rguenther@suse.de>
6176
6177 * tree-vrp.c (op_with_constant_singleton_value_range): New function.
6178 (extract_range_from_binary_expr): Fall back to constant propagation.
6179 (extract_range_from_unary_expr): Likewise.
6180
6181 2008-08-20 Richard Guenther <rguenther@suse.de>
6182
6183 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Do not mess
6184 with TREE_THIS_VOLATILE on shared nodes.
6185 (fold_stmt_r): Likewise.
6186
6187 2008-08-20 Jakub Jelinek <jakub@redhat.com>
6188
6189 PR c/37171
6190 * c-parser.c (c_parser_attributes): For keywords use canonical
6191 spelling for attr_name.
6192
6193 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6194
6195 * value-prof.c (check_counter): Revert wrong call to error.
6196
6197 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6198
6199 * profile.c: Update calls to inform.
6200 * value-prof.c: Update calls to inform.
6201
6202 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6203
6204 * diagnostic.c (inform): Add an explicit location_t parameter.
6205 * toplev.h (inform): Update declaration.
6206 * builtins.c: Update all calls to inform.
6207 * c-common.c: Likewise.
6208 * c-decl.c: Likewise.
6209 * c-opts.c: Likewise.
6210 * c-pch.c: Likewise.
6211 * c-pragma.c: Likewise.
6212 * c-typeck.c: Likewise.
6213 * coverage.c: Likewise.
6214 * opts.c: Likewise.
6215 * toplev.c: Likewise.
6216 * tree-cfg.c: Likewise.
6217 * tree-ssa.c: Likewise.
6218
6219 2008-08-20 H.J. Lu <hongjiu.lu@intel.com>
6220
6221 PR target/37169
6222 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): In
6223 V2DI mode, for SSE4.1, use movq instead of vector set if the
6224 second element is zero and inter-unit moves are OK.
6225
6226 2008-08-20 Richard Guenther <rguenther@suse.de>
6227
6228 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): More
6229 properly handle conversion/copy chains after tuplification.
6230
6231 2008-08-20 Richard Guenther <rguenther@suse.de>
6232
6233 * passes.c (init_optimization_passes): Move the second
6234 forwprop pass before alias computation. Remove the second
6235 DCE pass. Remove the first dominator and phi copy/const
6236 prop passes.
6237
6238 2008-08-20 Nick Clifton <nickc@redhat.com>
6239
6240 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler
6241 support of this feature. Do not assume that a sufficiently new
6242 assembler will support the feature regardless of the target type.
6243 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
6244 * configure: Regenerate.
6245
6246 2008-08-20 Richard Guenther <rguenther@suse.de>
6247
6248 * tree-vrp.c (found_in_subgraph): Remove.
6249 (live): New global static.
6250 (live_on_edge): New function.
6251 (blocks_visited): Remove.
6252 (register_edge_assert_for_2): Use live_on_edge.
6253 (find_conditional_asserts): Remove code dealing with
6254 found_in_subgraph. Do not walk the CFG.
6255 (find_switch_asserts): Likewise.
6256 (find_assert_locations_1): Renamed from find_assert_locations.
6257 Move finding assert locations for conditional and switch
6258 statements first. Update live bitmap. Do not walk the CFG.
6259 (find_assert_locations): New function.
6260 (insert_range_assertions): Remove entry of CFG walk.
6261 Adjust call to find_assert_locations.
6262 * tree-ssa-pre.c (do_regular_insertion): Ignore critical edges
6263 that only can appear because of fake exit edges but assert we
6264 never try to insert on those.
6265 (fini_pre): Do not remove fake exit edges here...
6266 (execute_pre): ...but here, before committing edge inserts.
6267
6268 2008-08-19 Richard Guenther <rguenther@suse.de>
6269
6270 * passes.c (init_optimization_passes): Exchange store-ccp
6271 with a ccp pass.
6272
6273 2008-08-19 Rafael Espíndola <espindola@google.com>
6274
6275 * varasm.c (weak_decls): Move earlier in the file.
6276 (assemble_external): Add weak decls to the weak_decls list.
6277 (declare_weak): Don't add decls to the weak_decls list.
6278
6279 2008-08-19 H.J. Lu <hongjiu.lu@intel.com>
6280
6281 PR target/37157
6282 * config/i386/sse.md (sse2_punpckhqdq, sse2_punpcklqdq): Moved
6283 before (sse2_shufpd_<mode>).
6284
6285 2008-08-19 Jakub Jelinek <jakub@redhat.com>
6286
6287 PR debug/37156
6288 * pretty-print.c (pp_base_format): Deal with recursive BLOCK trees.
6289 * tree.c (block_nonartificial_location): Likewise.
6290
6291 2008-08-19 Richard Guenther <rguenther@suse.de>
6292
6293 PR tree-optimization/35972
6294 PR tree-optimization/23094
6295 * tree-ssa-sccvn.h (vn_reference_lookup_pieces): Add maywalk
6296 parameter.
6297 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
6298 handle MISALIGNED_INDIRECT_REF.
6299 (get_ref_from_reference_ops): New helper.
6300 (vn_reference_lookup_pieces): Walk the use-def chain using the
6301 alias-oracle if requested.
6302 * tree-ssa-pre.c (phi_translate_1): Do reference lookup with
6303 walking the use-def chain.
6304 (compute_avail): But not here.
6305 (create_component_ref_by_pieces_1): Properly handle
6306 MISALIGNED_INDIRECT_REF.
6307 (do_regular_insertion): Handle fully redundant
6308 expressions after PHI-translation also for SSA_NAME values, not
6309 only constants. Correctly use edoubleprime for that.
6310
6311 2008-08-19 Ira Rosen <irar@il.ibm.com>
6312
6313 * tree-vectorizer.c (supportable_widening_operation): Support
6314 multi-step conversion, return the number of steps in such conversion
6315 and the required intermediate types.
6316 (supportable_narrowing_operation): Likewise.
6317 * tree-vectorizer.h (vect_pow2): New function.
6318 (supportable_widening_operation): Change argument types.
6319 (supportable_narrowing_operation): Likewise.
6320 (vectorizable_type_promotion): Add an argument.
6321 (vectorizable_type_demotion): Likewise.
6322 * tree-vect-analyze.c (vect_analyze_operations): Call
6323 vectorizable_type_promotion and vectorizable_type_demotion with
6324 additional argument.
6325 (vect_get_and_check_slp_defs): Detect patterns.
6326 (vect_build_slp_tree): Add an argument, don't fail in case of multiple
6327 types.
6328 (vect_analyze_slp_instance): Don't fail in case of multiple types.
6329 Call vect_build_slp_tree with correct arguments. Calculate unrolling
6330 factor according to the smallest type in the loop.
6331 (vect_detect_hybrid_slp_stmts): Include statements from patterns.
6332 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Call
6333 supportable_widening_operation with correct arguments.
6334 * tree-vect-transform.c (vect_get_slp_defs): Allocate output vector
6335 operands lists according to the number of vector statements in left
6336 or right node, if exists.
6337 (vect_gen_widened_results_half): Remove unused argument.
6338 (vectorizable_conversion): Call supportable_widening_operation,
6339 supportable_narrowing_operation, and vect_gen_widened_results_half
6340 with correct arguments.
6341 (vectorizable_assignment): Change documentation, support multiple
6342 types in SLP.
6343 (vectorizable_operation): Likewise.
6344 (vect_get_loop_based_defs): New function.
6345 (vect_create_vectorized_demotion_stmts): Likewise.
6346 (vectorizable_type_demotion): Support loop-aware SLP and general
6347 multi-step conversion. Call vect_get_loop_based_defs and
6348 vect_create_vectorized_demotion_stmts for transformation.
6349 (vect_create_vectorized_promotion_stmts): New function.
6350 (vectorizable_type_promotion): Support loop-aware SLP and general
6351 multi-step conversion. Call vect_create_vectorized_promotion_stmts
6352 for transformation.
6353 (vectorizable_store): Change documentation, support multiple
6354 types in SLP.
6355 (vectorizable_load): Likewise.
6356 (vect_transform_stmt): Pass SLP_NODE to
6357 vectorizable_type_promotion and vectorizable_type_demotion.
6358 (vect_schedule_slp_instance): Move here the calculation of number
6359 of vectorized statements for each node from...
6360 (vect_schedule_slp): ... here.
6361 (vect_transform_loop): Call vect_schedule_slp without the last
6362 argument.
6363
6364 2008-08-19 Dorit Nuzman <dorit@il.ibm.com>
6365
6366 PR bootstrap/37152
6367 * tree-vect-transform.c (vect_create_epilog_for_reduction): Change =
6368 to == in assert statement.
6369 (vectorizable_reduction): Fix typo.
6370
6371 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
6372
6373 PR bootstrap/37153
6374 * value-prof.c (check_counter): Dereference pointer to overall
6375 count when printing it.
6376
6377 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
6378
6379 * profile.h: Really add it.
6380
6381 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
6382
6383 * mcf.c: Really add it.
6384
6385 2008-08-18 Paul Yuan <yingbo.com@gmail.com>
6386 Vinodha Ramasamy <vinodha@google.com>
6387
6388 * cgraph.c (cgraph_edge): Handle inconsistent counts when setting
6389 count_scale.
6390 * value-prof.c (check_counter): Fix the counter if
6391 flag_profile_correction is true.
6392 (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
6393 tree_mod_subtract_transform):
6394 Follow check_counter parameter change.
6395 * common.opt (fprofile-correction): New option.
6396 * mcf.c: New file.
6397 * profile.h: Likewise.
6398 * profile.c (edge_info, EDGE_INFO): Moved to new file profile.h.
6399 (sum_edge_counts, is_edge_inconsistent, correct_negative_edge_counts,
6400 is_inconsistent, set_bb_counts, read_profile_edge_counts): New
6401 functions.
6402 (compute_branch_probabilities): Refactored. Invokes mcf_smooth_cfg if
6403 flag_profile_correction is set.
6404
6405 2008-08-18 Richard Sandiford <rdsandiford@googlemail.com>
6406
6407 * rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.
6408
6409 2008-08-18 Tomas Bily <tbily@suse.cz>
6410
6411 * tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P.
6412 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Use
6413 CONVERT_EXPR_P.
6414 * tree-data-ref.c (split_constant_offset_1): Likewise.
6415 * tree-inline.c (estimate_operator_cost): Use CASE_CONVERT.
6416 * tree-sra.c (sra_walk_expr): Likewise.
6417 * matrix-reorg.c (ssa_accessed_in_assign_rhs): Likewise.
6418 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
6419 * gimple.h (gimple_assign_cast_p): Use CONVERT_EXPR_CODE_P.
6420 * tree-ssa-structalias.c (find_func_aliases, find_func_aliases):
6421 Likewise.
6422 * gimple.c (gimple_assign_unary_nop_p): Likewise.
6423 * tree-vect-transform.c (vectorizable_type_demotion)
6424 (vectorizable_type_promotion): Likewise.
6425 * tree-inline.c (expand_call_inline):
6426 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
6427 (forward_propagate_addr_expr_1, forward_propagate_comparison)
6428 (tree_ssa_forward_propagate_single_use_vars): Likewise.
6429 * expr.c (expand_expr_real_1): Likewise.
6430 * tree-ssa-dom.c (hashable_expr_equal_p, iterative_hash_hashable_expr)
6431 (gimple_assign_unary_useless_conversion_p): Likewise.
6432 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
6433 * tree-ssa-ccp.c (ccp_fold, fold_gimple_assign): Likewise.
6434 * fold-const.c (fold_unary): Likewise.
6435 * tree.h (CONVERT_EXPR_P): Likewise.
6436 * tree.c (simple_cst_equal, iterative_hash_expr): Likewise.
6437 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
6438 * tree-vrp.c:
6439 (register_edge_assert_for_2, extract_range_from_unary_expr)
6440 (register_edge_assert_for_1): Likewise.
6441
6442 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6443
6444 * real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
6445 dconst_third_ptr, dconst_sqrt2_ptr): Declare.
6446 (enum real_value_const): Delete.
6447 (get_real_const): Delete.
6448 * real.c (get_real_const): Delete.
6449 (dconst_e_ptr): Define.
6450 (dconst_third_ptr): Define.
6451 (dconst_sqrt2_ptr): Define.
6452 * builtins.c: Update all callers.
6453
6454 2008-08-18 Richard Guenther <rguenther@suse.de>
6455
6456 * tree-ssa-reassoc.c (reassociate_bb): Properly reset the
6457 statement iterator after statement removal.
6458
6459 2008-08-18 Andreas Tobler <a.tobler@schweiz.org>
6460
6461 * config/rs6000/driver-rs6000.c (detect_caches_freebsd): New function.
6462 (detect_processor_freebsd): Likewise.
6463 (host_detect_local_cpu): Call newly added functions for FreeBSD.
6464
6465 2008-08-18 Richard Guenther <rguenther@suse.de>
6466
6467 * tree-cfg.c (verify_types_in_gimple_assign): Verify copies
6468 and loads have the correct types.
6469
6470 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6471
6472 PR cpp/7263
6473 * c-opts.c (cpp_opts): Remove static.
6474 * c-parser.c (cpp_opts): Declare it extern.
6475 (disable_extension_diagnostics): Handle cpp options.
6476 (enable_extension_diagnostics): Likewise.
6477
6478 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6479
6480 * diagnostics.c (permerror_at): Rename as permerror.
6481 (permerror): Delete.
6482 * toplev.h: Likewise.
6483
6484 2008-08-18 Richard Guenther <rguenther@suse.de>
6485
6486 * passes.c (init_optimization_passes): Remove cleanup_cfg1,
6487 sdse1 and addressables2 passes. Replace dce1 with cddce1.
6488 Move call_cdce before build_alias. Move copyrename2,
6489 cunrolli and ccp2 beafore build_alias. Re-add addressable2
6490 right after final inlining.
6491 * tree-cfg.c (build_gimple_cfg): Do not dump function here.
6492 (pass_build_cfg): But instead via TODO_dump_func.
6493
6494 2008-08-18 Richard Guenther <rguenther@suse.de>
6495
6496 * tree-sra.c (generate_element_init_1): Deal with NULL constructor
6497 element index.
6498 (scalarize_init): If we failed to generate some initializers
6499 do not generate zeros for not instantiated members. Instead
6500 rely on the copy out.
6501 * tree-ssa-operands.c (get_addr_dereference_operands): Warn
6502 about missing flow-sensitive alias info only if we have
6503 aliases computed.
6504
6505 2008-08-17 Nick Clifton <nickc@redhat.com>
6506
6507 * doc/extend.texi (Function Attributes): Fix typo in description
6508 if hot function attribute.
6509
6510 2008-08-17 Daniel Jacobowitz <dan@codesourcery.com>
6511 Richard Sandiford <rdsandiford@googlemail.com>
6512
6513 * doc/install.texi (--with-mips-plt): Document.
6514 * doc/invoke.texi (-mplt, -mno-plt): Document.
6515 * config.gcc (mips*-*-*): Add mips-plt to supported_defaults
6516 and handle ${with_mips_plt}.
6517 * config/mips/mips.opt (mplt): New option.
6518 * config/mips/mips.h (TARGET_ABICALLS_PIC0): New macro.
6519 (TARGET_ABICALLS_PIC2): Likewise.
6520 (TARGET_GPWORD): Return false for TARGET_ABSOLUTE_ABICALLS.
6521 (OPTION_DEFAULT_SPECS): Add a mips-plt entry.
6522 (ASM_SPEC): Use !mabi=* instead of !mabi*.
6523 (MIPS_CALL): Use TARGET_ABICALLS_PIC2 instead of TARGET_ABICALLS
6524 to decide whether to output ".option picX" directives.
6525 * config/mips/linux.h (SUBTARGET_ASM_SPEC): Remove -mabi=64 handling.
6526 Pass -call_nonpic rather than -KPIC for -mplt.
6527 (BASE_DRIVER_SELF_SPECS): Remove -mplt if -mno-shared is not present
6528 on the command line. Also remove it when -mabi=64 is used without
6529 -msym32.
6530 * config/mips/linux64.h (SUBTARGET_ASM_SPEC): Delete.
6531 * config/mips/mips.c (mips_use_pic_fn_addr_reg_p): Handle
6532 TARGET_ABICALLS_PIC0.
6533 (mips_classify_symbol): Use TARGET_ABICALLS_PIC2 instead of
6534 TARGET_ABICALLS.
6535 (mips16_build_function_stub): Only output ".option pic" directives
6536 and PIC stubs if TARGET_ABICALLS_PIC2. Call through $25 instead of $1.
6537 (mips16_build_call_stub): Fix comment and remove redundant
6538 ".set at"/"set .noat" directives.
6539 (mips_function_rodata_section): Use the default behaviour for
6540 TARGET_ABSOLUTE_ABICALLS.
6541 (mips_file_start): Emit ".option pic0" for TARGET_ABICALLS_PIC0.
6542 (mips_global_pointer): Handle TARGET_ABICALLS_PIC0.
6543 (mips_restore_gp): Do nothing if the current function doesn't use
6544 a global pointer.
6545 (mips_expand_prologue): Only save $gp if the current function uses it.
6546 Use a normal move for TARGET_ABICALLS_PIC0.
6547 (mips_override_options): Only set flag_pic if TARGET_ABICALLS_PIC2.
6548
6549 2008-08-17 Richard Sandiford <rdsandiford@googlemail.com>
6550
6551 * config/mips/mips.c (mips_save_reg_p): Don't short-circuit rest
6552 of function when handling GLOBAL_POINTER_REGNUM.
6553
6554 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
6555
6556 PR ada/20548
6557 * common.opt (-fstack-check): Do not declare the variable here.
6558 (-fstack-check=): New option variant.
6559 * doc/invoke.texi (Code Gen Options): Document it.
6560 * expr.h (STACK_OLD_CHECK_PROTECT): New macro.
6561 (STACK_CHECK_PROTECT): Bump to 3 pages if DWARF-2 EH is used.
6562 (STACK_CHECK_STATIC_BUILTIN): New macro.
6563 * doc/tm.texi (Stack Checking): Document STACK_CHECK_STATIC_BUILTIN.
6564 * opts.c: Include expr.h.
6565 (common_handle_option) <OPT_fold_stack_check_>: New case.
6566 <OPT_fstack_check>: Likewise.
6567 * calls.c (initialize_argument_information): Use TYPE_SIZE_UNIT
6568 consistently in the test for variable-sized types. Adjust for
6569 new behaviour of flag_stack_check.
6570 * explow.c: Include except.h.
6571 (allocate_dynamic_stack_space): Do not take into account
6572 STACK_CHECK_MAX_FRAME_SIZE for static builtin stack checking.
6573 * function.c (gimplify_parameters): Use DECL_SIZE_UNIT in the test
6574 for variable-sized parameters. Treat all parameters whose size is
6575 greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized if generic
6576 stack checking is enabled.
6577 * gimplify.c (gimplify_decl_expr): Treat non-static objects whose
6578 size is greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized
6579 if generic stack checking is enabled.
6580 (expand_function_end): Adjust for new behaviour of flag_stack_check.
6581 * reload1.c (reload): Likewise.
6582 * stmt.c (expand_decl): Assert that all automatic variables have
6583 fixed size at this point and remove dead code.
6584 * flags.h (stack_check_type): New enumeration type.
6585 (flag_stack_check): Declare.
6586 * toplev.c (flag_stack_check): New global variable.
6587 * Makefile.in (opts.o): Add dependency on EXPR_H.
6588 (explow.o): Add dependency on except.h.
6589
6590 2008-08-16 Andy Hutchinson <hutchinsonandy@aim.com>
6591
6592 * config/avr/avr.c (avr_override_options): Reduce value of
6593 PARAM_INLINE_CALL_COST.
6594
6595 2008-08-15 Eric Botcazou <ebotcazou@adacore.com>
6596
6597 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: When converting
6598 to BLKmode, try to fetch an inner memory reference. Use 'mode' in
6599 lieu of TYPE_MODE (type) throughout.
6600
6601 2008-08-15 Joseph Myers <joseph@codesourcery.com>
6602
6603 * config/arm/arm.c (add_minipool_backward_ref): Check for
6604 8-byte-aligned entries in second case of forcing insertion after a
6605 particular entry. Change third case to avoid inserting
6606 non-8-byte-aligned entries before 8-byte-aligned ones.
6607
6608 2008-08-15 Richard Guenther <rguenther@suse.de>
6609
6610 * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not
6611 strip components for unknown size accesses.
6612
6613 2008-08-15 Wolfgang Gellerich <gellerich@de.ibm.com>
6614
6615 * config/s390/2097.md New file.
6616 * config/s390/s390.md ("z10prop" attribute): Define none,
6617 z10_super, z10_super_E1, z10_super_A1, z10_super_c,
6618 z10_super_c_E1, z10_fwd, z10_fwd_A1, z10_fwd_A3, z10_fwd_E1,
6619 z10_rec, z10_fr, z10_fr_A3, z10_fr_E1, z10_c, and z10_cobra as
6620 possible values and apply them to insns as appropriate.
6621 ("type" attribute): Removed itof and added ftrunctf,ftruncdf,
6622 ftruncsd, ftruncdd, itoftf, itofdf, itofsf, itofdd, itoftd,
6623 fdivdd, fdivtd, floaddd, floadsd, fmuldd, fmultd, fsimpdd,
6624 fsimpsd, fsimptd, fstoredd, fstoresd, ftoidfp as possible values.
6625 ("bfp" mode attribute): Removed. Every occurence replaced
6626 with <mode>.
6627 * config/s390/s390.c (struct "z10_cost"): Updated entries.
6628 * config/s390/2084.md (insn_reservation "x_itof"): Updated
6629 type attribute.
6630
6631 2008-08-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6632
6633 PR c/28152
6634 * c-parser.c (c_lex_one_token): Do not store the canonical spelling
6635 for keywords.
6636
6637 2008-08-14 Dorit Nuzman <dorit@il.ibm.com>
6638
6639 * tree-vect-transform.c (vect_create_epilog_for_reduction): Takes an
6640 additional argument. Support reduction when duplication is needed due
6641 to data-types of different sizes in the loop.
6642 (get_initial_def_for_induction): Fix printout.
6643 (vect_get_vec_def_for_stmt_copy): Support case where the
6644 vec_stmt_for_operand is a phi node.
6645 (vectorizable_reduction): Support reduction when duplication is needed
6646 due to data-types of different sizes in the loop.
6647 (vectorizable_call): Remove restriction to not vectorize in case we
6648 have data-types of different sizes in the loop.
6649 (vectorizable_conversion): Likewise.
6650 (vectorizable_operation): Likewise.
6651 (vectorizable_type_demotion): Likewise.
6652 (vectorizable_type_promotion): Likewise.
6653 (vectorizable_induction): Add restriction to not vectorize in case
6654 we have data-types of different sizes in the loop.
6655
6656 2008-08-14 Christophe Saout <christophe@saout.de>
6657 Uros Bizjak <ubizjak@gmail.com>
6658
6659 PR target/37101
6660 * config/i386/sse.md (vec_concatv2di): Remove movlps alternative.
6661 (*vec_concatv2di_rex64_sse4_1): Ditto.
6662 (*vec_concatv2di_rex64_sse): Ditto.
6663
6664 2008-08-14 Jakub Jelinek <jakub@redhat.com>
6665
6666 PR middle-end/37103
6667 * fold-const.c (fold_widened_comparison): Do not allow
6668 sign changes that change the result even if shorter type
6669 is wider than arg1_unw's type.
6670
6671 2008-08-13 Kazu Hirata <kazu@codesourcery.com>
6672
6673 * gcc.dg/arm-g2.c, gcc.dg/arm-mmx-1.c, gcc.dg/arm-scd42-2.c:
6674 Skip if the multilib testing specifies -march that does not
6675 agree with the one specified in the testcase.
6676
6677 2008-08-13 Joseph Myers <joseph@codesourcery.com>
6678
6679 * config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
6680 zero extend SImode values being converted to TFmode before passing
6681 to libcalls.
6682
6683 2008-08-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6684
6685 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
6686 __PPU__ when targeting the Cell/B.E. PPU processor.
6687
6688 2008-08-13 Eric Botcazou <ebotcazou@adacore.com>
6689
6690 * gimple.h (gimple_call_set_chain): Accept SSA variables.
6691 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <CALL_EXPR>:
6692 Rematerialize the static chain, if any.
6693 * tree-ssa-sccvn.c (copy_reference_ops_from_call): Also copy the
6694 static chain.
6695
6696 2008-08-13 H.J. Lu <hongjiu.lu@intel.com>
6697
6698 * dwarf2out.c (dwarf_stack_op_name): Remove prototype.
6699 (new_loc_descr): Likewise.
6700 (add_loc_descr): Likewise.
6701 (size_of_loc_descr): Likewise.
6702 (size_of_locs): Likewise.
6703 (output_loc_operands): Likewise.
6704 (output_loc_sequence): Likewise.
6705 (new_reg_loc_descr): New.
6706 (build_cfa_loc): Use it.
6707 (build_cfa_aligned_loc): Likewise.
6708 (one_reg_loc_descriptor): Likewise.
6709 (based_loc_descr): Likewise.
6710
6711 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6712
6713 PR 30551
6714 * doc/invoke.texi (Wmain): Update.
6715 * c-decl.c (start_decl): warn_main is only 0 or 1.
6716 (start_function): Likewise. Fix formatting.
6717 (finish_function): Delete redundant warning.
6718 * c.opt (Wmain): Add Var(warn_main) and Init(-1).
6719 * c-opts (c_common_handle_option): -Wall only has effect if
6720 warn_main is uninitialized. OPT_Wmain is automatically
6721 handled. -pedantic also enables Wmain.
6722 (c_common_post_options): Handle all logic for Wmain here.
6723 * c-common.c (warn_main): Delete.
6724 (check_main_parameter_types): Make pedwarns conditional on OPT_Wmain.
6725 * c-common.h (warn_main): Delete.
6726
6727 2008-08-13 H.J. Lu <hongjiu.lu@intel.com>
6728
6729 PR middle-end/36701
6730 * expr.c (emit_group_store): Allocate stack temp with the
6731 largest alignment when copying from register to stack.
6732
6733 2008-08-13 Richard Guenther <rguenther@suse.de>
6734
6735 * tree.h (maybe_fold_offset_to_address): Declare.
6736 * tree-ssa-ccp.c (surely_varying_stmt_p): Fix typo in last commit.
6737 (ccp_fold): Handle pointer conversions the same as fold_stmt.
6738 Likewise for POINTER_PLUS_EXPR.
6739 (maybe_fold_offset_to_reference): Enable disabled code.
6740 (maybe_fold_offset_to_address): New function.
6741 (fold_stmt_r): Use it.
6742 (fold_gimple_assign): Likewise.
6743 * gimplify.c (gimplify_conversion): Use maybe_fold_offset_to_address.
6744 (gimplify_expr): Likewise.
6745
6746 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6747
6748 * toplev.h (pedwarn_at): Fix declaration.
6749
6750 2008-08-13 Joseph Myers <joseph@codesourcery.com>
6751
6752 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
6753 LINK_SPEC): Use %R in -Y P argument.
6754
6755 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6756
6757 PR c/15236
6758 * diagnostic.c (pedwarn_at): New.
6759 * toplev.h (pedwarn_at): Declare.
6760 * c-tree.h (build_enumerator): Update declaration.
6761 * c-decl.c (finish_enum): Update comment.
6762 (build_enumerator): Take a location parameter. Give a pedwarn but do
6763 not perform any conversion.
6764 * c-parser.c (c_parser_enum_specifier): Set correct location for
6765 enumerator.
6766
6767 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6768
6769 PR 35635
6770 * c-common.c (conversion_warning): Use a switch. Ignore boolean
6771 expressions except for conversions to signed:1 bitfields. Handle
6772 COND_EXPR with constant operands.
6773
6774 2008-08-13 Richard Guenther <rguenther@suse.de>
6775
6776 PR tree-optimization/15255
6777 * tree-ssa-reassoc.c (linearize_expr_tree): Declare.
6778 (struct oecount_s): New struct and VEC types.
6779 (cvec): New global.
6780 (oecount_hash): New function.
6781 (oecount_eq): Likewise.
6782 (oecount_cmp): Likewise.
6783 (zero_one_operation): New function.
6784 (build_and_add_sum): Likewise.
6785 (undistribute_ops_list): Perform un-distribution of multiplication
6786 and division on the chain of summands.
6787 (should_break_up_subtract): Also break up subtracts for factors.
6788 (reassociate_bb): Delete dead visited statements.
6789 Call undistribute_ops_list. Re-sort and optimize if it did something.
6790 * passes.c (init_optimization_passes): Move DSE before
6791 reassociation.
6792 * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Correctly handle
6793 PHI nodes.
6794
6795 2008-08-12 Janis Johnson <janis187@us.ibm.com>
6796
6797 * doc/invoke.texi (-fipa-pta): Say the option is experimental.
6798
6799 * doc/invoke.texi: Revert unintended checkin.
6800
6801 2008-08-12 Nathan Froyd <froydnj@codesourcery.com>
6802
6803 PR libgomp/26165
6804 * gcc.c (include_spec_function): Tweak call to find_a_file.
6805
6806 2008-08-12 Jakub Jelinek <jakub@redhat.com>
6807
6808 PR middle-end/37014
6809 * expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
6810 and TRUTH_ORIF_EXPR.
6811 * dojump.c (do_jump): Likewise.
6812
6813 PR tree-optimization/37084
6814 * tree-inline.c (copy_bb): Call gimple_regimplify_operands
6815 if id->regimplify, don't assume stmt is a cast assignment.
6816
6817 2008-08-12 Anatoly Sokolov <aesok@post.ru>
6818
6819 * final.c (final_scan_insn): Use app_enable/app_disable functions.
6820
6821 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6822
6823 PR bootstrap/37097
6824 * builtins.c (do_mpfr_bessel_n): Fix copy-and-paste bug introduced
6825 by last change.
6826
6827 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6828
6829 * defaults.h (TARGET_FLOAT_FORMAT): Remove.
6830 (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT): Remove.
6831
6832 * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Remove.
6833 * config/iq2000/iq2000.h (TARGET_FLOAT_FORMAT): Remove.
6834 * config/pdp11/pdp11.h (TARGET_FLOAT_FORMAT): Remove.
6835 * config/score/score.h (TARGET_FLOAT_FORMAT): Remove.
6836 * config/vax/vax.h (TARGET_FLOAT_FORMAT): Remove.
6837
6838 * doc/tm.texi (Storage Layout): Remove documentation for
6839 TARGET_FLOAT_FORMAT.
6840
6841 * simplify-rtx.c (simplify_binary_operation_1): Replace
6842 TARGET_FLOAT_FORMAT check by appropriate HONOR_... checks.
6843
6844 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6845
6846 * real.h (struct real_format): New member has_sign_dependent_rounding.
6847 * real.c (ieee_single_format, mips_single_format, motorola_single_format,
6848 spu_single_format, ieee_double_format, mips_double_format,
6849 motorola_double_format, ieee_extended_motorola_format,
6850 ieee_extended_intel_96_format, ieee_extended_intel_128_format,
6851 ieee_extended_intel_96_round_53_format, ibm_extended_format,
6852 mips_extended_format, ieee_quad_format, mips_quad_format,
6853 vax_f_format, vax_d_format, vax_g_format): Initialize it.
6854 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
6855
6856 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
6857 MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
6858 * config/spu/spu.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
6859 MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
6860 (ROUND_TOWARDS_ZERO): Likewise.
6861
6862 * real.h (REAL_MODE_FORMAT): Protect MODE against macro expansion.
6863 (FLOAT_MODE_FORMAT): New macro.
6864 (REAL_MODE_FORMAT_COMPOSITE_P): Remove, replace by ...
6865 (MODE_COMPOSITE_P): ... this new macro.
6866 (MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
6867 MODE_HAS_SIGN_DEPENDENT_ROUNDING): New macros.
6868 * machmode.h (GET_MODE_INNER): Cast result to enum machine_mode.
6869
6870 * flags.h: Include "real.h".
6871
6872 * fold-const.c (const_binop): Use MODE_COMPOSITE_P instead of
6873 REAL_MODE_FORMAT_COMPOSITE_P.
6874 * simplify-rtx.c (simplify_const_binary_operation): Likewise.
6875
6876 * doc/tm.texi (Storage Layout): Remove documentation of
6877 MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
6878 MODE_HAS_SIGN_DEPENDENT_ROUNDING. Update documentation of
6879 ROUND_TOWARDS_ZERO and LARGEST_EXPONENT_IS_NORMAL to clarify
6880 they only apply to libgcc2.a.
6881
6882 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6883
6884 * config/spu/float_disf.c: New file.
6885 * config/spu/float_unsdisf.c: New file.
6886 * config/spu/t-elf (LIB2FUNCS_STATIC_EXTRA): Add them.
6887 (LIB2FUNCS_EXCLUDE): Define.
6888
6889 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6890 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
6891
6892 * real.h (struct real_format): New member round_towards_zero.
6893 * real.c (round_for_format): Respect fmt->round_towards_zero.
6894 (ieee_single_format, mips_single_format, motorola_single_format,
6895 spu_single_format, ieee_double_format, mips_double_format,
6896 motorola_double_format, ieee_extended_motorola_format,
6897 ieee_extended_intel_96_format, ieee_extended_intel_128_format,
6898 ieee_extended_intel_96_round_53_format, ibm_extended_format,
6899 mips_extended_format, ieee_quad_format, mips_quad_format,
6900 vax_f_format, vax_d_format, vax_g_format): Initialize it.
6901 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
6902
6903 * builtins.s (do_mpfr_arg1): Consider round_towards_zero member of
6904 real_format to choose rounding mode when calling MPFR functions.
6905 (do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Likewise.
6906 (do_mpfr_bessel_n, do_mpfr_remquo, do_mpfr_lgamma_r): Likewise.
6907
6908 * real.h (real_to_decimal_for_mode): Add prototype.
6909 * real.c (real_to_decimal_for_mode): Renames old real_to_decimal.
6910 Respect target rounding mode when generating decimal representation.
6911 (real_to_decimal): New stub for backwards compatibility.
6912 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Use
6913 real_to_decimal_for_mode instead of real_to_decimal.
6914
6915 * config/spu/spu.md ("floatdisf2", "floatunsdisf2"): New.
6916
6917 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6918 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
6919
6920 * real.c (spu_single_format): New variable.
6921 * real.h (spu_single_format): Declare.
6922
6923 * config/spu/spu.c (spu_override_options): Install SFmode format.
6924 (spu_split_immediate): Use integer mode to operate on pieces of
6925 floating-point values in all cases.
6926
6927 * config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
6928 ("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
6929 ("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.
6930
6931 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6932
6933 * config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
6934
6935 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6936
6937 * config/spu/spu.h (DWARF_FRAME_RETURN_COLUMN): Define.
6938
6939 2008-08-12 Jakub Jelinek <jakub@redhat.com>
6940
6941 PR c++/36688
6942 * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
6943 on the VAR_DECL instead of TYPE_READONLY on its type.
6944
6945 2008-08-12 Ira Rosen <irar@il.ibm.com>
6946
6947 * tree-vectorizer.c: Depend on langhooks.h.
6948 (supportable_widening_operation): Add two arguments. Support double
6949 type conversions.
6950 (supportable_narrowing_operation): Likewise.
6951 * tree-vectorizer.h (supportable_widening_operation): Add two
6952 arguments.
6953 (supportable_narrowing_operation): Likewise.
6954 * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call
6955 supportable_widening_operation with correct arguments.
6956 * tree-vect-transform.c (vectorizable_conversion): Likewise.
6957 (vectorizable_type_demotion): Support double type conversions.
6958 (vectorizable_type_promotion): Likewise.
6959 * Makefile.in (tree-vectorizer.o): Depend on langhooks.h.
6960
6961 2008-08-11 Michael Matz <matz@suse.de>
6962
6963 * i386/i386.c (override_options): Move initialisation from
6964 flag_schedule_insns_after_reload to here from ...
6965 (optimization_options): ... here.
6966
6967 2008-08-11 Jakub Jelinek <jakub@redhat.com>
6968
6969 PR rtl-optimization/36998
6970 * dwarf2out.c (compute_barrier_args_size_1,
6971 compute_barrier_args_size): Temporarily remove assertions.
6972
6973 2008-08-10 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6974
6975 PR middle-end/20644
6976 * tree-ssa.c (struct walk_data): Add new flag
6977 warn_possibly_uninitialized.
6978 (warn_uninitialized_var): Use it.
6979 (warn_uninitialized_vars): New.
6980 (execute_early_warn_uninitialized): Call it.
6981 (execute_late_warn_uninitialized): Likewise.
6982
6983 2008-08-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
6984
6985 PR middle-end/36238
6986 * reload1.c (gen_reload): Guard calls to get_secondary_mem
6987 for memory subregs.
6988
6989 2008-08-09 Jan Hubicka <jh@suse.cz>
6990
6991 PR target/37055
6992 * optabs.c (maybe_emit_unop_insn): Remove produced code if
6993 expansion failed.
6994 (expand_fix): Be prepared for expansion to fail.
6995 (expand_sfix_optab): Remove instructions if expansion failed.
6996
6997 2008-08-09 Anatoly Sokolov <aesok@post.ru>
6998
6999 * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
7000 avr31 architecture.
7001 * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
7002 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
7003
7004 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
7005
7006 * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
7007 mips/t-libgcc-mips16 to tmake_file.
7008 * config/mips/mips-protos.h (mips_call_type): New enum.
7009 (mips_pic_base_register, mips_got_load): Declare.
7010 (mips_restore_gp): Take an rtx argument.
7011 (mips_use_pic_fn_addr_reg_p): Declare.
7012 (mips_expand_call): Replace the sibcall_p argument with
7013 a mips_call_type argument. Add a lazy_p parameter.
7014 (mips_split_call): Declare.
7015 * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
7016 (MIPS16_PIC_TEMP): Likewise.
7017 (reg_class): Delete M16_NA_REGS.
7018 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
7019 (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
7020 (mips_split_hi_p): Declare.
7021 * config/mips/mips.c (mips_split_hi_p): New array.
7022 (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
7023 (mips_got_symbol_type_p): New function.
7024 (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
7025 (mips16_stub_function_p): New function.
7026 (mips16_local_function_p): Likewise.
7027 (mips_use_pic_fn_addr_reg_p): Likewise.
7028 (mips_cannot_force_const_mem): Return false for HIGHs.
7029 Extend CONST_INT and symbolic handling to MIPS16, using
7030 mips_symbol_insns to check that the base symbol type is a
7031 legitimate constant. Reject GOT-based constants if
7032 TARGET_MIPS16_PCREL_LOADS.
7033 (mips_const_insns): Check targetm.cannot_force_const_mem when
7034 decomposing a symbolic base and a large offset.
7035 (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
7036 When calling a function that needs $25 from MIPS16 code,
7037 move the target address into $25 separately and add a USE
7038 to the call insn.
7039 (mips16_gp_pseudo_reg): Insert the initializer immediately
7040 before the first real insn.
7041 (mips_pic_base_register, mips_got_load): New functions.
7042 (mips_split_symbol): Generalize the name of the LO_SUM_OUT
7043 parameter to LOW_OUT. Say that it can be any valid SET_SRC
7044 when splitting a load-address operation. Split SYMBOL_GOT_DISP
7045 constants and highs of SYMBOL_GOT_PAGE_OFST constants.
7046 (mips_call_tls_get_addr): Update the call to mips_expand_call,
7047 also passing NULL_RTX rather than const0_rtx as the aux argument.
7048 (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
7049 instead of TARGET_EXPLICIT_RELOCS.
7050 (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
7051 (mips_load_call_address): Replace the sibcall_p argument with
7052 a mips_call_type argument. Use mips_got_load.
7053 (mips16_local_alias): New structure.
7054 (mips16_local_aliases): New variable.
7055 (mips16_local_aliases_hash): New function.
7056 (mips16_local_aliases_eq): Likewise.
7057 (mips16_local_alias): Likewise.
7058 (mips16_stub_function): Likewise.
7059 (mips16_build_function_stub): Create a local alias for the target
7060 function. Handle TARGET_ABICALLS. For PIC abicalls, emit a
7061 .cpload directive and an R_MIPS_NONE relocation for the target
7062 function, then load the alias rather than the function itself.
7063 Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
7064 (mips16_copy_fpr_return_value): Use mips16_stub_function and
7065 mips_expand_call. Set SYMBOL_REF_BIND_NOW on the symbol.
7066 (mips16_build_call_stub): Replace the FN parameter with an
7067 FN_PTR parameter. Force the address into a register if it
7068 isn't a call_insn_operand; don't rely on the caller to do this.
7069 If a call to a locally-defined and locally-binding MIPS16
7070 function must be made indirectly, redirect the call to the
7071 function's local alias. Use mips16_stub_function_p,
7072 mips16_stub_function, mips_expand_call and use_reg.
7073 Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
7074 Use explicit %hi and %lo accesses where possible.
7075 Use MIPS_CALL to generate the correct code form of a
7076 jal instruction. Add clobbers of $18 instead of uses.
7077 Update the call to mips_emit_call_insn.
7078 (mips_expand_call): Replace the SIBCALL_P argument with a
7079 mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
7080 Take a LAZY_P parameter. Call mips16_build_call_stub first,
7081 allowing it to modify the call address. Update the calls to
7082 mips_load_call_address and mips_emit_call_insn.
7083 (mips_split_call): New function.
7084 (mips_init_relocs): Clear mips_split_hi_p. Only use %gp_rel if
7085 !TARGET_MIPS16. Split SYMBOL_GOT_DISP, and the high parts of
7086 SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
7087 (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
7088 (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
7089 if TARGET_MIPS16.
7090 (mips_cprestore_slot): New function.
7091 (mips_restore_gp): Take a TEMP parameter. Handle TARGET_MIPS16
7092 and use mips_cprestore_slot.
7093 (mips_output_function_prologue): Handle TARGET_MIPS16 for
7094 LOADGP_OLDABI.
7095 (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
7096 then use a copygp_mips16 instruction to set up $28.
7097 (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
7098 (mips16_lay_out_constants): Call split_all_insns_noflow.
7099 (mips_reorg_process_insns): Explicitly set all_noreorder_p to
7100 false if TARGET_MIPS16.
7101 (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
7102 (mips_output_mi_thunk): Use mips_got_symbol_type_p. Use the
7103 mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
7104 (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
7105 MIPS16 code. Allow MIPS16 o32 PIC.
7106 (mips_override_options): Allow MIPS16 o32 PIC.
7107 * config/mips/mips.md: Lower CONST_GP_P moves into register moves
7108 after reload if TARGET_USE_GOT.
7109 (UNSPEC_COPYGP): New constant.
7110 (length): Use a default length of 8 for MIPS16 GOT loads.
7111 (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
7112 (*got_page<mode>): Check mips_split_hi_p.
7113 (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
7114 (unspec_got<mode>, unspec_call<mode>): New expanders.
7115 (load_got<mode>, load_call<mode>): Remove the length attributes.
7116 Use a got attribute instead of a type attribute.
7117 (copygp_mips16): New insn.
7118 (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
7119 (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
7120 (sibcall, sibcall_value, call, call_value): Update the calls
7121 to mips_expand_call.
7122 (call_internal, call_value_internal): Use mips_split_call.
7123 (call_value_multiple_internal): Likewise.
7124 (call_split): Move after call_internal (the insn it is split from).
7125 (call_internal_direct, call_value_internal_direct): Turn into
7126 define_insn_and_splits. Split if TARGET_SPLIT_CALLS.
7127 (call_direct_split, call_value_direct_split): New patterns.
7128 * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
7129 and use M16_REGS instead of M16_NA_REGS.
7130 * config/mips/predicates.md (const_call_insn_operand): Replace
7131 the TARGET_ABSOLUTE_ABICALLS-based check with a more general
7132 mips_use_pic_fn_addr_reg_p check.
7133 (move_operand): Reject HIGHs if mips_split_hi_p.
7134 * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
7135 (__mips16_floatunsisf): Inline __mips16_floatsisf.
7136 (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
7137 * config/mips/libgcc-mips16.ver: New file.
7138 * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
7139 $(srcdir)/config/mips/libgcc-mips16.ver.
7140
7141 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
7142
7143 * config/mips/mips.c (mips_unspec_address_offset): Move earlier
7144 in file.
7145 (mips_unspec_address, mips_unspec_offset_high): Likewise.
7146 (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
7147 (mips16_cfun_returns_in_fpr_p): Likewise.
7148
7149 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
7150
7151 * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
7152 * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
7153 rather than 4 to PC.
7154
7155 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
7156
7157 * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
7158 (FUNCTION_PROFILER): Save the static chain pointer into $2
7159 beforehand and restore it aftewards.
7160 (TRAMPOLINE_TEMPLATE): Adjust accordingly. Load the target
7161 address directly into $25 and call the function through $25;
7162 do not clobber $3. Pad the DImode version to cover the space
7163 left by the deleted $25 <- $3 move.
7164 (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
7165 the removal of the $25 <- $3 move.
7166 (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
7167 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
7168
7169 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
7170 Daniel Jacobowitz <dan@codesourcery.com>
7171
7172 * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
7173 * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
7174 (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
7175 * config/mips/mips.c (mips_start_function_definition): New function.
7176 (mips_end_function_definition): Likewise.
7177 (mips_output_function_prologue): Use mips_start_function_definition.
7178 (mips_output_function_epilogue): Use mips_end_function_definition.
7179 (build_mips16_function_stub): Use mips_start_function_definition
7180 and mips_end_function_definition.
7181 (build_mips16_call_stub): Likewise.
7182
7183 2008-08-09 Richard Guenther <rguenther@suse.de>
7184
7185 * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
7186 * gimple.h (gimple_call_fn): Adjust comment.
7187 (gimple_call_set_fndecl): New function.
7188 (gimple_call_fndecl): Adjust for GIMPLE_CALL no
7189 longer having bare FUNCTION_DECL operand.
7190 (gimple_call_return_type): Likewise.
7191 * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
7192
7193 * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
7194 (gimple_mod_pow2): Likewise.
7195 (gimple_mod_subtract): Likewise.
7196 (gimple_ic): Likewise.
7197 (gimple_stringop_fixed_value): Likewise.
7198 (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
7199 longer having bare FUNCTION_DECL operand.
7200 * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
7201 * omp-low.c (optimize_omp_library_calls): Likewise.
7202 * cgraphunit.c (update_call_expr): Likewise.
7203 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
7204 (execute_convert_to_rsqrt): Likewise.
7205 * cfgexpand.c (gimple_to_tree): Simplify.
7206 (release_stmt_tree): Fix for GIMPLE_CALL no longer having
7207 bare FUNCTION_DECL operand.
7208 * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
7209 (convert_gimple_call): Use gimple_call_fndecl.
7210 * c-common.c (c_warn_unused_result): Likewise.
7211
7212 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7213
7214 PR c/17880
7215 * c-typeck.c (digest_init): Call verify_sequence_points from here.
7216 (c_finish_return): Likewise.
7217 (c_start_case): Likewise.
7218 * c-common.c (warn_for_collisions_1): Use explicit location in warning.
7219 * c-parser.c (c_parser_condition): New. Call
7220 verify_sequence_points.
7221 (c_parser_paren_condition): Call c_parser_condition.
7222 (c_parser_for_statement): Call c_parser_condition.
7223
7224 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7225
7226 PR 36901
7227 * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.
7228 * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
7229 Moved from diagnostic.h
7230 (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
7231 DK_PERMERROR.
7232 (emit_diagnostic): New.
7233 (warning0, pedwarn0): Delete.
7234 (warning, warning_at, pedwarn, permerror): Return bool.
7235 * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
7236 Moved to diagnostic.c.
7237 (struct diagnostic_context): Use correct type for
7238 classify_diagnostic.
7239 (diagnostic_report_diagnostic): Update declaration.
7240 (emit_diagnostic): Declare.
7241 * errors.c (warning): Return bool.
7242 * errors.h (warning): Update declaration.
7243 * toplev.h (warning0, pedwarn0): Delete.
7244 (warning, warning_at, pedwarn, permerror): Return bool.
7245 * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
7246 * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
7247 inform. Update all calls.
7248 (diagnose_mismatched_decls): Check return value of warning/pedwarn
7249 before giving informative note.
7250 (implicit_decl_warning): Likewise.
7251 * c-typeck.c (build_function_call): Likewise.
7252 * tree-sssa.c (warn_uninit): Likewise.
7253 * builtins.c (gimplify_va_arg_expr): Likewise.
7254
7255 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7256
7257 PR 7651
7258 * doc/invoke.texi (-Wextra): Move warning from here...
7259 (-Wuninitialized): ... to here.
7260
7261 2008-08-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7262
7263 PR 28875
7264 * flags.h (set_Wunused): Delete
7265 * toplev.c (process_options): Handle Wunused flags here.
7266 * opts.c (maybe_warn_unused_parameter): Delete.
7267 (common_handle_option): Replace set_Wunused by warn_unused.
7268 (set_Wextra): Do not handle Wunused-parameter here.
7269 (set_Wunused): Delete.
7270 * c-opts.c (c_common_handle_option): Replace set_Wunused by
7271 warn_unused.
7272 * common.opt (Wunused): Add Var and Init.
7273 (Wunused-function): Likewise.
7274 (Wunused-label): Likewise.
7275 (Wunused-parameter): Likewise.
7276 (Wunused-value): Likewise.
7277 (Wunused-variable): Likewise.
7278
7279 2008-08-08 Peter Bergner <bergner@vnet.ibm.com>
7280
7281 * doc/invoke.texi: Add cpu_type power7.
7282 * config.in (HAVE_AS_VSX): New.
7283 * config.gcc: Add cpu_type power7.
7284 * configure.ac (HAVE_AS_VSX): Check for assembler support of the
7285 VSX instructions.
7286 * configure: Regenerate.
7287 * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
7288 power5.
7289 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
7290 (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
7291 (EXTRA_SPECS): Add asm_cpu_power7 spec string.
7292
7293 2008-08-08 Dorit Nuzman <dorit@il.ibm.com>
7294
7295 * tree-vect-transform.c (vectorizable_conversion): Pass the integral
7296 type to vectorize.builtin_conversion.
7297 (vectorizable_conversion): Likewise.
7298 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
7299 integral type as input.
7300 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
7301 FIX_TRUNC_EXPR.
7302 (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
7303 and ALTIVEC_BUILTIN_VCTSXS.
7304 (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
7305 formatting.
7306
7307 2008-08-08 Richard Guenther <rguenther@suse.de>
7308
7309 * tree-ssa-ccp.c (likely_value): Calls are not all varying.
7310 (surely_varying_stmt_p): Calls are varying only if they are
7311 non-builtin and not indirect or have no result.
7312 (ccp_fold): Re-instantiate code before the tuples merge.
7313
7314 2008-08-08 Richard Guenther <rguenther@suse.de>
7315
7316 PR tree-optimization/37056
7317 * gimple.h (gimple_assign_rhs_class): New helper function.
7318 * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
7319 unary operations properly.
7320
7321 2008-08-07 Jan Hubicka <jh@suse.cz>
7322
7323 * i386.h (ix86_size_cost): Declare.
7324 (ix86_cur_cost): New function macro.
7325 * i386.md (peepholes expanding size and splitters): Predicate by
7326 optimize_insn_for_speed_p.
7327 (peepholes reduce size and splitters): Predicate by
7328 optimize_insn_for_size_p.
7329 * i386.c (ix86_size_cost): Rename from ...
7330 (size_cost): This one.
7331 (override_options): Update.
7332 (decide_alg): Likewise.
7333 (ix86_expand_clear): Use RTL profile.
7334 (ix86_pad_returns): Use RTL profile.
7335
7336 2008-08-07 Jan Hubicka <jh@suse.cz>
7337
7338 * recog.c (split_all_insns): Set RTL profile
7339 (peephole2_optimize): Likewise.
7340 * function.c (thread_prologue_and_epilogue_insns): Likewise.
7341 * combine.c (combine_instructions): Likewise.
7342
7343 2008-08-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7344
7345 * c-common.c (c_common_reswords): Also warn about keyword "bool".
7346
7347 2008-08-07 Bob Wilson <bob.wilson@acm.org>
7348
7349 * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming
7350 value in a6 after the set_frame_ptr insn.
7351
7352 2008-08-07 Richard Henderson <rth@redhat.com>
7353
7354 PR debug/37033
7355 * gcc.c (cpp_options): Pass along -g*.
7356
7357 2008-08-07 Joseph Myers <joseph@codesourcery.com>
7358
7359 * config/arm/arm.c (output_move_neon): Update comment describing
7360 big-endian vector layout.
7361 (arm_assemble_integer): Do not handle big-endian NEON vectors
7362 specially.
7363 * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
7364 neon_vget_lane<mode>_sext_internal,
7365 neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
7366 element indices for big-endian.
7367
7368 2008-08-07 Richard Henderson <rth@redhat.com>
7369
7370 * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
7371 * configure, config.in: Rebuild.
7372 * debug.h (dwarf2out_do_cfi_asm): Declare.
7373 * c-cppbuiltin.c (c_cpp_builtins): Use it.
7374 * dwarf2out.c (dwarf2out_do_cfi_asm): New.
7375 (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
7376 dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
7377
7378 2008-08-07 Joseph Myers <joseph@codesourcery.com>
7379
7380 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
7381 movv2si_internal): Combine into mov<mode>_internal.
7382 (movv2si_internal_2): Remove.
7383
7384 2008-08-07 Jan Hubicka <jh@suse.cz>
7385
7386 PR target/37048
7387 * i386.md (single stringop patterns): Enable unconditionally.
7388
7389 2008-08-07 H.J. Lu <hongjiu.lu@intel.com>
7390
7391 PR target/36992
7392 * config/i386/emmintrin.h (_mm_move_epi64): Use __builtin_ia32_movq128.
7393
7394 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
7395 (bdesc_args): Add IX86_BUILTIN_MOVQ128.
7396
7397 * config/i386/sse.md (sse2_movq128): New.
7398
7399 * doc/extend.texi: Document __builtin_ia32_movq128.
7400
7401 2008-08-07 Richard Guenther <rguenther@suse.de>
7402
7403 PR middle-end/37042
7404 * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
7405 pointers can access anything.
7406
7407 2008-08-06 Jan Hubicka <jh@suse.cz>
7408
7409 * optabs.c (emit_unop_insn): Break out to ...
7410 (maybe_emit_unop_insn): ... this one.
7411 (expand_sfix_optab): Use maybe variant.
7412 * optabs.h (maybe_emit_unop_insn): Declare.
7413
7414 * i386.md (mov0 patterns): Enable by default.
7415 (FP conversion expanders): Disable expansion of code expanding
7416 sequences when instruction should be optimized for size.
7417 (single strinop patterns): Enable when optimizing for size.
7418 (string expanders): Disable expanding of code expanding sequences
7419 when optimizning instruction for size.
7420 * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
7421 per BB basis.
7422 (ix86_fp_comparison_sahf_cost): Likewise.
7423 (ix86_expand_branch): Likewise.
7424 (ix86_expand_ashl_const): Likewise.
7425 (ix86_split_ashl): Likewise.
7426 (ix86_expand_strlen): Likewise.
7427 (ix86_emit_fp_unordered_jump): Likewie.
7428
7429 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7430
7431 * c-common.c: Fix typo.
7432 (c_common_reswords): Activate more C++ keyword warnings.
7433
7434 * matrix-reorg.c (compute_offset): Avoid C++ keywords.
7435
7436 2008-08-06 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7437
7438 PR 26785
7439 * diagnostic.c (permerror_at): New.
7440 * toplev.h (permerror_at): Declare.
7441
7442 2008-08-06 Victor Kaplansky <victork@il.ibm.com>
7443 Ira Rosen <irar@il.ibm.com>
7444
7445 * tree-vect-transform.c (vect_model_simple_cost): Return
7446 immediately if stmt is pure SLP.
7447 (vect_model_store_cost): Ditto.
7448 (vect_model_load_cost): Ditto.
7449 (vectorizable_store): Remove PURE_SLP check before call
7450 to vect_model_store_cost.
7451 (vect_model_store_cost): When checking whether stmt describe
7452 strided access, add a check that it is not slp_node.
7453
7454 2008-08-06 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7455
7456 PR 8715
7457 * c-common.c (warn_for_sign_compare): New. Handle separately the
7458 case that 'constant' is zero.
7459 * c-typeck.c (build_binary_op): Move code to c-common.c
7460
7461 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7462
7463 * config/alpha/alpha.c (alpha_preferred_reload_class,
7464 alpha_secondary_reload, alpha_emit_set_const_1, function_value,
7465 alpha_output_mi_thunk_osf): Avoid C++ keywords.
7466 * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
7467 * config/arm/arm.md: Likewise.
7468 * config/avr/avr-protos.h (preferred_reload_class,
7469 test_hard_reg_class, avr_simplify_comparison_p,
7470 out_shift_with_cnt, class_max_nregs): Likewise.
7471 * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
7472 output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
7473 preferred_reload_class, test_hard_reg_class): Likewise.
7474 * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
7475 bfin_memory_move_cost, bfin_secondary_reload,
7476 bfin_output_mi_thunk): Likewise.
7477 * config/crx/crx.c (crx_secondary_reload_class,
7478 crx_memory_move_cost): Likewise.
7479 * config/frv/frv-protos.h (frv_secondary_reload_class,
7480 frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
7481 * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
7482 frv_secondary_reload_class, frv_class_likely_spilled_p,
7483 frv_class_max_nregs): Likewise.
7484 * config/h8300/h8300.c (h8300_classify_operand,
7485 h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
7486 Likewise.
7487 * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
7488 * config/ia64/ia64.c (ia64_preferred_reload_class,
7489 ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
7490 * config/iq2000/iq2000.c (gen_int_relational): Likewise.
7491 * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
7492 Likewise.
7493 * config/m68hc11/m68hc11.c (preferred_reload_class,
7494 m68hc11_memory_move_cost): Likewise.
7495 * config/mcore/mcore.c (mcore_secondary_reload_class,
7496 mcore_reload_class): Likewise.
7497 * config/mips/mips.c (mips_hard_regno_mode_ok_p,
7498 mips_class_max_nregs, mips_cannot_change_mode_class,
7499 mips_preferred_reload_class, mips_secondary_reload_class,
7500 mips_output_mi_thunk): Likewise.
7501 * config/mmix/mmix.c (mmix_preferred_reload_class,
7502 mmix_preferred_output_reload_class, mmix_secondary_reload_class):
7503 Likewise.
7504 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
7505 Likewise.
7506 * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
7507 pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
7508 * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
7509 * config/rs6000/rs6000.c (paired_expand_vector_init,
7510 rs6000_secondary_reload_class, rs6000_output_mi_thunk,
7511 compare_section_name, rs6000_memory_move_cost): Likewise.
7512 * config/s390/s390.c (s390_emit_compare_and_swap,
7513 s390_preferred_reload_class, s390_secondary_reload,
7514 legitimize_pic_address, legitimize_tls_address,
7515 legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
7516 s390_class_max_nregs): Likewise.
7517 * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
7518 * config/s390/s390.md: Likewise.
7519 * config/score/score-protos.h (score_secondary_reload_class,
7520 score_preferred_reload_class): Likewise.
7521 * config/score/score.c (score_preferred_reload_class,
7522 score_secondary_reload_class): Likewise.
7523 * config/score/score3.c (score3_output_mi_thunk,
7524 score3_preferred_reload_class, score3_secondary_reload_class,
7525 score3_hard_regno_mode_ok): Likewise.
7526 * config/score/score3.h (score3_preferred_reload_class,
7527 score3_secondary_reload_class): Likewise.
7528 * config/score/score7.c (score7_output_mi_thunk,
7529 score7_preferred_reload_class, score7_secondary_reload_class,
7530 score7_hard_regno_mode_ok): Likewise.
7531 * config/score/score7.h (score7_preferred_reload_class,
7532 score7_secondary_reload_class): Likewise.
7533 * config/sh/sh.c (prepare_move_operands, output_far_jump,
7534 output_branchy_insn, add_constant, gen_block_redirect,
7535 sh_insn_length_adjustment, sh_cannot_change_mode_class,
7536 sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload): Likewise.
7537 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
7538 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
7539 xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
7540 xstormy16_preferred_reload_class): Likewise.
7541 * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
7542 xtensa_expand_atomic, override_options,
7543 xtensa_preferred_reload_class, xtensa_secondary_reload_class):
7544 Likewise.
7545 * reorg.c (try_merge_delay_insns): Likewise.
7546 * tree.c (merge_dllimport_decl_attributes): Likewise.
7547
7548 * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
7549
7550 2008-08-06 Michael Matz <matz@suse.de>
7551
7552 * Makefile.in (write_entries_to_file): Quote words.
7553 * gengtype.c: (read_input_line): Skip over leading white-space.
7554
7555 2008-08-06 Marc Gauthier <marc@tensilica.com>
7556
7557 * config.gcc: Match more processor names for Xtensa.
7558 * configure.ac: Likewise.
7559 * doc/install.texi (Specific): Likewise.
7560 * configure: Regenerate.
7561
7562 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7563
7564 * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
7565 * calls.c (avoid_likely_spilled_reg): Likewise.
7566 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
7567 * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
7568 * config/i386/i386.c (ix86_expand_special_args_builtin,
7569 ix86_secondary_reload): Likewise.
7570 * except.c (struct eh_region, gen_eh_region_catch,
7571 remove_unreachable_regions, duplicate_eh_regions,
7572 assign_filter_values, build_post_landing_pads,
7573 sjlj_find_directly_reachable_regions, remove_eh_handler,
7574 reachable_next_level, foreach_reachable_handler,
7575 can_throw_internal_1, can_throw_external_1,
7576 collect_one_action_chain): Likewise.
7577 * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
7578 * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
7579 * function.c (update_temp_slot_address, instantiate_new_reg,
7580 instantiate_virtual_regs_in_rtx,
7581 instantiate_virtual_regs_in_insn): Likewise.
7582 * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
7583 * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
7584 gimplify_cleanup_point_expr): Likewise.
7585 * ipa-cp.c (ipcp_lattice_changed): Likewise.
7586 * passes.c (next_pass_1): Likewise.
7587 * print-tree.c (print_node_brief, print_node): Likewise.
7588 * profile.c (branch_prob): Likewise.
7589 * tree-dump.c (dump_register): Likewise.
7590 * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
7591 Likewise.
7592 * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
7593 copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
7594 copy_edges_for_bb, copy_cfg_body, copy_tree_r,
7595 copy_arguments_for_versioning, copy_static_chain): Likewise.
7596 * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
7597 add_new_name_mapping, register_new_name_mapping): Likewise.
7598 * tree-mudflap.c (mf_xform_derefs): Likewise.
7599 * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
7600 get_init_expr, combine_chains): Likewise.
7601 * tree-pretty-print.c (dump_generic_node): Likewise.
7602 * tree-ssa-structalias.c (create_variable_info_for): Likewise.
7603 * tree-vrp.c (simplify_cond_using_ranges): Likewise.
7604 * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
7605 * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
7606
7607 2008-08-06 H.J. Lu <hongjiu.lu@intel.com>
7608
7609 PR middle-end/37010
7610 * calls.c (expand_call): Use the biggest preferred stack
7611 boundary.
7612
7613 2008-08-06 Michael Matz <matz@suse.de>
7614
7615 PR target/36613
7616 * reload.c (push_reload): Merge in,out,in_reg,out_reg members
7617 for reused reload, instead of overwriting them.
7618
7619 2008-08-06 H.J. Lu <hongjiu.lu@intel.com>
7620
7621 PR middle-end/37009
7622 * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
7623 for incoming stack boundary.
7624
7625 * function.c (assign_parm_find_entry_rtl): Update
7626 parm_stack_boundary.
7627
7628 * function.h (rtl_data): Add parm_stack_boundary.
7629
7630 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
7631 parm_stack_boundary for incoming stack boundary.
7632
7633 2008-08-06 Joseph Myers <joseph@codesourcery.com>
7634
7635 * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
7636 for unrepresentable subregs or treat them as equal to other regs
7637 or subregs with the same register number.
7638
7639 2008-08-06 Aldy Hernandez <aldyh@redhat.com>
7640
7641 PR middle-end/35432
7642 * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
7643 if want_value.
7644
7645 2008-08-06 Jan Hubicka <jh@suse.cz>
7646
7647 * predict.c (maybe_hot_frequency_p): When profile is absent, all
7648 frequencies might be hot.
7649
7650 2008-08-06 Andreas Krebbel <krebbel1@de.ibm.com>
7651
7652 * reload.c (find_reloads): Force constants into literal pool
7653 also if they are wrapped in a SUBREG.
7654
7655 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
7656
7657 PR target/35659
7658 * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
7659 * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
7660 Don't allow predicated instructions for data speculation.
7661 * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
7662 declaration.
7663
7664 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
7665
7666 * haifa-sched.c (extend_global): Split to extend_global_data and
7667 extend_region_data. Update all uses.
7668 (extend_all): Rename to extend_block_data.
7669
7670 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
7671
7672 * sched-rgn.c (new_ready): Check if instruction can be
7673 speculatively scheduled before attempting speculation.
7674 (debug_rgn_dependencies): Remove wrongful assert.
7675
7676 2008-08-05 Bob Wilson <bob.wilson@acm.org>
7677
7678 * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
7679
7680 2008-08-05 Bob Wilson <bob.wilson@acm.org>
7681
7682 * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
7683 (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
7684 va_size, and type_size.
7685
7686 2008-08-04 Jason Merrill <jason@redhat.com>
7687
7688 PR c++/37016
7689 * tree-ssa.c (useless_type_conversion_p_1): Call langhook
7690 if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
7691
7692 2008-08-05 Richard Henderson <rth@redhat.com>
7693
7694 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
7695 * configure: Rebuild.
7696
7697 2008-08-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
7698
7699 PR tree-opt/37024
7700 * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
7701 instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
7702 is a conversion.
7703
7704 2008-08-05 Richard Henderson <rth@redhat.com>
7705
7706 * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
7707 * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
7708 * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
7709 * common.opt (fdwarf2-cfi-asm): New.
7710 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
7711 * config.in, configure: Rebuild.
7712 * dwarf2asm.c (dw2_asm_output_data_raw): New.
7713 (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw):
7714 New.
7715 (dw2_force_const_mem): Externalize.
7716 * dwarf2asm.h: Update.
7717 * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
7718 generate a real label.
7719 (output_cfi_directive): New.
7720 (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
7721 (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
7722 (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
7723 and .cfi_lsda.
7724 (dwarf2out_end_epilogue): Emit .cfi_endproc.
7725 (output_loc_operands_raw, output_loc_sequence_raw): New.
7726 (output_cfa_loc_raw): New.
7727
7728 2008-08-05 Paul Brook <paul@codesourcery.com>
7729
7730 * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
7731 * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
7732 (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
7733 (arm_file_start): Add FPUTYPE_VFP3D16. Rename vfp3 to vfpv3.
7734 * config/arm/arm.h (TARGET_VFPD32): Define.
7735 (TARGET_VFP3): Use TARGET_VFPD32.
7736 (fputype): Add FPUTYPE_VFP3D16.
7737 (LAST_VFP_REGNUM): Use TARGET_VFPD32.
7738 * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
7739 * config/arm/arm-cores.def: Add cortex-r4f.
7740 * config/arm/arm-tune.md: Regenerate.
7741
7742 2008-08-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7743
7744 * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
7745 Reword some comments throughout the file.
7746
7747 (MFC_MIN_DMA_LIST_ELEMENTS): New define.
7748 (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
7749 (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of
7750 MFC_MIN_DMA_LIST_ELEMENTS.
7751 (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of
7752 MFC_MAX_DMA_LIST_ELEMENTS.
7753
7754 (MFC_START_ENABLE): Remove PPU-only define.
7755 (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
7756 (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
7757
7758 (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
7759 (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
7760 (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
7761 (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
7762 (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
7763 (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
7764 (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
7765
7766 (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
7767 (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
7768 (mfc_sdcrt, mfc_sdcrtst): Likewise.
7769 (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
7770
7771 (spu_read_machine_status): Fix typo.
7772
7773 2008-08-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7774
7775 * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
7776 SUBREG of multi-word hard register.
7777 * config/spu/spu.c (valid_subreg): Likewise.
7778 (adjust_operand): Handle SUBREGs of multi-word hard registers.
7779
7780 2008-08-04 Richard Guenther <rguenther@suse.de>
7781
7782 * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
7783 the candidate with the stripped base if that base is different
7784 from the original base even for offset zero.
7785
7786 2008-08-04 Richard Guenther <rguenther@suse.de>
7787
7788 PR middle-end/36691
7789 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
7790 check for no_overflow.
7791
7792 2008-08-04 Richard Guenther <rguenther@suse.de>
7793
7794 * tree-vect-transform.c (vectorizable_call): Fix tuplification.
7795
7796 2008-08-04 Paul Brook <paul@codesourcery.com>
7797
7798 * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
7799 (arm_order_regs_for_local_alloc): New function.
7800 * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
7801 prototype.
7802 * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
7803
7804 2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
7805
7806 PR target/37012
7807 * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
7808 instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
7809 (ix86_expand_epilogue): Likewise.
7810
7811 2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
7812
7813 * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
7814 in comments.
7815
7816 2008-08-03 Uros Bizjak <ubizjak@gmail.com>
7817
7818 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
7819 to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
7820 (*movv2sf_internal_rex64): Ditto.
7821
7822 2008-08-03 Jan Hubicka <jh@suse.cz>
7823
7824 * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
7825 expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
7826 * expmed.c (expand_smod_pow2): Likewise.
7827
7828 2008-08-03 Uros Bizjak <ubizjak@gmail.com>
7829
7830 PR target/36992
7831 * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
7832 alternative 0 of operand 1.
7833 (*vec_concatv2di_rex64_sse): Ditto.
7834 (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
7835 of operand 1.
7836 (*sse2_storeq_rex64): Penalize allocation of "r" registers.
7837 * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
7838 of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
7839 (*movv2sf_internal_rex64): Ditto.
7840
7841 2008-08-02 Richard Guenther <rguenther@suse.de>
7842
7843 PR target/35252
7844 * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
7845 (ssedoublesizemode): New mode attribute.
7846 (sse_shufps): Call gen_sse_shufps_v4sf.
7847 (sse_shufps_1): Macroize.
7848 (sse2_shufpd): Call gen_Sse_shufpd_v2df.
7849 (sse2_shufpd_1): Macroize.
7850 (vec_extract_odd, vec_extract_even): New expanders.
7851 (vec_interleave_highv4sf, vec_interleave_lowv4sf,
7852 vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
7853 * i386.c (ix86_expand_vector_init_one_nonzero): Call
7854 gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
7855 (ix86_expand_vector_set): Likewise.
7856 (ix86_expand_reduc_v4sf): Likewise.
7857
7858 2008-08-01 Doug Kwan <dougkwan@google.com>
7859
7860 * matrix-reorg.c: Re-enable all code.
7861 (struct malloc_call_data): Change CALL_STMT to gimple type.
7862 (collect_data_for_malloc_call): Tuplify.
7863 (struct access_site_info): Change STMT to gimple type.
7864 (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
7865 and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
7866 (struct free_info): Change STMT to gimple type.
7867 (struct matrix_access_phi_node): Change PHI to gimple type.
7868 (get_inner_of_cast_expr): Remove.
7869 (may_flatten_matrices_1): Tuplify.
7870 (may_flatten_matrices): Ditto.
7871 (mark_min_matrix_escape_level): Ditto.
7872 (ssa_accessed_in_tree): Refactor statement RHS related code into ...
7873 (ssa_accessed_in_call_rhs): New
7874 (ssa_accessed_in_assign_rhs): New
7875 (record_access_alloc_site_info): Tuplify.
7876 (add_allocation_site): Ditto.
7877 (analyze_matrix_allocation_site): Ditto.
7878 (analyze_transpose): Ditto.
7879 (get_index_from_offset): Ditto.
7880 (update_type_size): Ditto.
7881 (analyze_accesses_for_call_expr): Tuplify and renamed into ...
7882 (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
7883 (analyze_accesses_for_phi_node): Tuplify.
7884 (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
7885 (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
7886 (analyze_matrix_accesses): Tuplify.
7887 (check_var_data): New call-back type for check_var_notmodified_p.
7888 (check_var_notmodified_p): Tuplify and use call-back struct to
7889 return statement found.
7890 (can_calculate_expr_before_stmt): Factor out statement related code
7891 into ...
7892 (can_calculate_stmt_before_stmt): New.
7893 (check_allocation_function): Tuplify.
7894 (find_sites_in_func): Ditto.
7895 (record_all_accesses_in_func): Ditto.
7896 (transform_access_sites): Ditto.
7897 (transform_allocation_sites): Ditto.
7898 (matrix_reorg): Re-enable.
7899 (gate_matrix_reorg): Re-enable.
7900
7901 2008-08-01 Jakub Jelinek <jakub@redhat.com>
7902
7903 * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
7904 for labels for which it hasn't been set yet. If it has been set,
7905 stop walking insns and continue with next worklist item.
7906 (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
7907 if the only BARRIER is at the very end of a function.
7908
7909 2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
7910
7911 * cfgexpand.c (expand_stack_alignment): Assert that
7912 stack_realign_drap and drap_rtx must match.
7913
7914 * function.c (instantiate_new_reg): If DRAP is used to realign
7915 stack, replace virtual_incoming_args_rtx with internal arg
7916 pointer.
7917
7918 2008-08-01 Richard Guenther <rguenther@suse.de>
7919
7920 * tree-ssa-pre.c (fini_pre): Take in_fre parameter. Free
7921 loop information only if we initialized it.
7922 (execute_pre): Call fini_pre with in_fre.
7923 * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
7924 if we do not unroll because we hit max-completely-peeled-insns.
7925 Use our estimation for consistency, do allow shrinking.
7926
7927 2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
7928
7929 * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
7930 with MIN_STACK_BOUNDARY.
7931 (ix86_update_stack_boundary): Likewise.
7932 (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
7933 STACK_BOUNDARY.
7934
7935 * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
7936 (MIN_STACK_BOUNDARY): This.
7937
7938 2008-08-01 Richard Guenther <rguenther@suse.de>
7939
7940 PR middle-end/36997
7941 * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
7942
7943 2008-08-01 Richard Guenther <rguenther@suse.de>
7944
7945 PR tree-optimization/36988
7946 * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
7947 do not matter if that doesn't change volatile qualification.
7948
7949 2008-08-01 Paolo Bonzini <bonzini@gnu.org>
7950
7951 * configure.ac: Do not generate libada-mk. Do not subst
7952 host_cc_for_libada.
7953 * libada-mk.in: Remove.
7954 * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
7955 * configure: Regenerate.
7956
7957 2008-08-01 Basile Starynkevitch <basile@starynkevitch.net>
7958
7959 * tree-pass.h: Added comment about not dumping passes with name
7960 starting with star in struct opt_pass.
7961 * passes.c (register_dump_files_1): Don't do dump for a pass with
7962 name starting with star.
7963 * doc/passes.texi (Pass manager): Mention pass names and special
7964 meaning of star prefix to avoid dump.
7965
7966 2008-07-31 Adam Nemet <anemet@caviumnetworks.com>
7967
7968 * config.gcc (mipsisa64r2*-*-linux*): New configuration. Set ISA
7969 to MIPS64r2.
7970 * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
7971 (ISA_MIPS64R2): New macro.
7972 (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
7973 (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
7974 ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
7975 ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
7976 ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
7977 ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
7978 ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
7979 (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
7980 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
7981 Move up to keep list alphabetically sorted.
7982 (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
7983 * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
7984 processor.
7985 * doc/invoke.texi (MIPS Options): Add -mips64r2.
7986 (-march=@var{arch}): Add mips64r2.
7987
7988 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
7989
7990 * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
7991
7992 2008-07-31 Steve Ellcey <sje@cup.hp.com>
7993
7994 * expr.c (expand_assignment): Check for complete type.
7995
7996 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
7997
7998 PR debug/36977
7999 * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
8000
8001 * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
8002 for stack alignment.
8003
8004 * function.h (rtl_data): Add stack_realign_tried. Update comments.
8005
8006 2008-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
8007
8008 * config/sh/sh.c (sh_canonical_va_list_type): Remove.
8009 (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
8010
8011 2008-07-31 Jakub Jelinek <jakub@redhat.com>
8012
8013 PR rtl-optimization/36419
8014 * dwarf2out.c (barrier_args_size): New variable.
8015 (compute_barrier_args_size, compute_barrier_args_size_1): New
8016 functions.
8017 (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
8018 if not called yet in the current function, use barrier_args_size
8019 array to find the new args_size value.
8020 (dwarf2out_frame_debug): Free and clear barrier_args_size.
8021
8022 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
8023
8024 PR debug/36980
8025 * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
8026 rule 19.
8027
8028 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
8029
8030 PR debug/36976
8031 * dwarf2out.c (dwarf2out_args_size_adjust): New.
8032 (dwarf2out_stack_adjust): Use it.
8033 (dwarf2out_frame_debug_expr): Likewise.
8034
8035 2008-07-31 Richard Guenther <rguenther@suse.de>
8036
8037 PR tree-optimization/36978
8038 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
8039 the generated condition.
8040
8041 2008-07-31 Richard Guenther <rguenther@suse.de>
8042
8043 * passes.c (init_optimization_passes): Always call
8044 pass_early_warn_uninitialized.
8045 * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
8046 * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
8047 * doc/passes.texi (Warn for uninitialized variables): Adjust.
8048
8049 2008-07-31 Jakub Jelinek <jakub@redhat.com>
8050
8051 PR c/36970
8052 * builtins.c (maybe_emit_free_warning): New function.
8053 (expand_builtin): Process BUILT_IN_FREE even at -O0. Call
8054 maybe_emit_free_warning for BUILT_IN_FREE.
8055
8056 PR debug/36278
8057 * dwarf2out.c (get_context_die): New function.
8058 (force_decl_die, force_type_die): Use it.
8059 (dwarf2out_imported_module_or_decl): Likewise. If base_type_die
8060 returns NULL, force generation of DW_TAG_typedef and put that into
8061 DW_AT_import.
8062
8063 PR preprocessor/36649
8064 * c-pch.c (c_common_read_pch): Save and restore
8065 line_table->trace_includes across PCH restore.
8066
8067 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
8068
8069 PR ada/36554
8070 * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
8071
8072 2008-07-30 Rafael Ãvila de Espíndola <espindola@google.com>
8073
8074 PR 36974
8075 * final.c (call_from_call_insn): Handle COND_EXEC.
8076
8077 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
8078
8079 * builtins.c (std_gimplify_va_arg_expr): Replace
8080 PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
8081 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
8082
8083 2008-07-30 Joey Ye <joey.ye@intel.com>
8084 H.J. Lu <hongjiu.lu@intel.com>
8085
8086 * builtins.c (expand_builtin_setjmp_receiver): Replace
8087 virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
8088 (expand_builtin_apply_args_1): Likewise.
8089 (expand_builtin_longjmp): Need DRAP for stack alignment.
8090 (expand_builtin_apply): Likewise.
8091
8092 * caller-save.c (setup_save_areas): Call assign_stack_local_1
8093 instead of assign_stack_local to allow alignment reduction.
8094
8095 * calls.c (emit_call_1): Need DRAP for stack alignment if
8096 return pops.
8097 (expand_call): Replace virtual_incoming_args_rtx with
8098 crtl->args.internal_arg_pointer.
8099 * stmt.c (expand_nl_goto_receiver): Likewise.
8100
8101 * cfgexpand.c (get_decl_align_unit): Estimate stack variable
8102 alignment and store to stack_alignment_estimated and
8103 max_used_stack_slot_alignment.
8104 (expand_one_var): Likewise.
8105 (expand_stack_alignment): New function.
8106 (tree_expand_cfg): Initialize max_used_stack_slot_alignment
8107 and stack_alignment_estimated fields in rtl_data. Call
8108 expand_stack_alignment at end.
8109
8110 * defaults.h (INCOMING_STACK_BOUNDARY): New.
8111 (MAX_STACK_ALIGNMENT): Likewise.
8112 (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
8113 (SUPPORTS_STACK_ALIGNMENT): Likewise.
8114
8115 * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
8116 stack alignment when generating virtual registers.
8117
8118 * function.c (assign_stack_local): Renamed to ...
8119 (assign_stack_local_1): This. Add a parameter to indicate
8120 if it is OK to reduce alignment.
8121 (assign_stack_local): Use it.
8122 (instantiate_new_reg): Instantiate virtual incoming args rtx
8123 to vDRAP if stack realignment and DRAP is needed.
8124 (assign_parms): Collect parameter/return type alignment and
8125 contribute to stack_alignment_estimated.
8126 (locate_and_pad_parm): Likewise.
8127 (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
8128 with crtl->args.internal_arg_pointer.
8129
8130 * function.h (rtl_data): Add new field drap_reg,
8131 max_used_stack_slot_alignment, stack_alignment_estimated,
8132 stack_realign_needed, need_drap, stack_realign_processed and
8133 stack_realign_finalized.
8134 (stack_realign_fp): New macro.
8135 (stack_realign_drap): Likewise.
8136
8137 * global.c (compute_regsets): Frame pointer is needed when
8138 stack is realigned. Can eliminate frame pointer when stack is
8139 realigned and dynamic realigned argument pointer isn't used.
8140
8141 * reload1.c (update_eliminables): Frame pointer is needed
8142 when stack is realigned.
8143 (init_elim_table): Can eliminate frame pointer when stack is
8144 realigned and dynamic realigned argument pointer isn't used.
8145
8146 * rtl.h (assign_stack_local_1): Declare new funtion.
8147
8148 * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
8149 (TARGET_GET_DRAP_RTX): Likewise.
8150 (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
8151 TARGET_GET_DRAP_RTX.
8152
8153 * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
8154
8155 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
8156 STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
8157
8158 2008-07-30 Xuepeng Guo <xuepeng.guo@intel.com>
8159 H.J. Lu <hongjiu.lu@intel.com>
8160
8161 * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
8162 vdrap_reg, stack_realign and drap_reg_saved.
8163 (add_cfi): Don't allow redefining CFA when DRAP is used.
8164 (reg_save): Handle stack alignment.
8165 (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
8166 alignment. Don't generate DWARF information for (set fp sp)
8167 when DRAP is used.
8168 (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
8169 to INVALID_REGNUM.
8170 (int_loc_descriptor): Move prototype forward. Also define if
8171 DWARF2_UNWIND_INFO is true.
8172 (output_cfa_loc): Handle DW_CFA_expression.
8173 (build_cfa_aligned_loc): New.
8174 (based_loc_descr): Update assert for stack realign. For local
8175 variables, use sp+offset when stack is aligned without drap and
8176 fp+offset when stack is aligned with drap. For arguments, use
8177 cfa+offset when drap is used to align stack.
8178
8179 2008-07-30 Joey Ye <joey.ye@intel.com>
8180 H.J. Lu <hongjiu.lu@intel.com>
8181
8182 * config/i386/i386.c (ix86_force_align_arg_pointer_string):
8183 Break long line.
8184 (ix86_gen_andsp): New.
8185 (ix86_user_incoming_stack_boundary): Likewise.
8186 (ix86_default_incoming_stack_boundary): Likewise.
8187 (ix86_incoming_stack_boundary): Likewise.
8188 (ix86_can_eliminate): Likewise.
8189 (find_drap_reg): Likewise.
8190 (ix86_update_stack_boundary): Likewise.
8191 (ix86_get_drap_rtx): Likewise.
8192 (ix86_finalize_stack_realign_flags): Likewise.
8193 (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
8194 (TARGET_GET_DRAP_RTX): Likewise.
8195 (override_options): Overide option value for new options.
8196 (ix86_function_ok_for_sibcall): Remove check for
8197 force_align_arg_pointer.
8198 (ix86_handle_cconv_attribute): Likewise.
8199 (ix86_function_regparm): Likewise.
8200 (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
8201 (ix86_va_start): Replace virtual_incoming_args_rtx with
8202 crtl->args.internal_arg_pointer.
8203 (ix86_select_alt_pic_regnum): Check DRAP register.
8204 (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
8205 (ix86_compute_frame_layout): Compute frame layout wrt stack
8206 realignment.
8207 (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
8208 (ix86_expand_prologue): Decide if stack realignment is needed
8209 and generate prologue code accordingly.
8210 (ix86_expand_epilogue): Generate epilogue code wrt stack
8211 realignment is really needed or not.
8212
8213 * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
8214 (ABI_STACK_BOUNDARY): Likewise.
8215 (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
8216 (STACK_REALIGN_DEFAULT): Likewise.
8217 (INCOMING_STACK_BOUNDARY): Likewise.
8218 (MAX_STACK_ALIGNMENT): Likewise.
8219 (ix86_incoming_stack_boundary): Likewise.
8220 (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
8221 (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
8222 (CAN_ELIMINATE): Defined with ix86_can_eliminate.
8223 (machine_function): Remove force_align_arg_pointer.
8224
8225 * config/i386/i386.md (BX_REG): New.
8226 (R13_REG): Likewise.
8227
8228 * config/i386/i386.opt (mforce_drap): New.
8229 (mincoming-stack-boundary): Likewise.
8230 (mstackrealign): Add Init(-1).
8231
8232 * config/i386/i386-protos.h (ix86_can_eliminate): New
8233
8234 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
8235
8236 * doc/extend.texi: Update force_align_arg_pointer.
8237
8238 * doc/invoke.texi: Document -mincoming-stack-boundary. Update
8239 -mstackrealign.
8240
8241 * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
8242 (INCOMING_STACK_BOUNDARY): Likewise.
8243 (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
8244 (TARGET_GET_DRAP_RTX): Likewise.
8245
8246 2008-07-30 Andreas Schwab <schwab@suse.de>
8247
8248 PR rtl-optimization/36929
8249 * dse.c (replace_inc_dec): Use emit_insn_before instead of
8250 add_insn_before and fix argument order.
8251 (replace_inc_dec_mem): Handle NULL rtx.
8252
8253 2008-07-30 Andrew Jenner <andrew@codesourcery.com>
8254
8255 * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
8256 function.
8257 (arm_compute_initial_elimination_offset): Use it.
8258 (arm_compute_save_reg_mask): Include static chain save slot when
8259 calculating alignment.
8260 (arm_get_frame_offsets): Ditto.
8261 (thumb1_compute_save_reg_mask): Ensure we have a low register saved
8262 that we can use to decrement the stack when the stack decrement
8263 could be too big for an immediate value in a single insn.
8264 (thumb1_expand_prologue): Avoid using r12 for stack decrement.
8265
8266 2008-07-30 Richard Guenther <rguenther@suse.de>
8267
8268 PR tree-optimization/36967
8269 * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
8270 Release defs of statements we remove.
8271
8272 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
8273
8274 * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
8275 instead of NULL_RTVEC.
8276
8277 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
8278
8279 PR target/35866
8280
8281 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
8282 vector modes.
8283
8284 2008-07-30 Rafael Ãvila de Espíndola <espindola@google.com>
8285
8286 * final.c (call_from_call_insn): New.
8287 (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
8288
8289 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
8290
8291 * configure.ac: Substitute ADA_CFLAGS.
8292 * configure: Regenerate.
8293 * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
8294 * Makefile.in: Remove mention of X_* variables.
8295 * config/pa/x-ada-hpux10: Remove.
8296 * config/pa/x-ada: Remove.
8297
8298 * doc/fragments.texi: Update.
8299
8300 2008-07-30 Olivier Hainque <hainque@adacore.com>
8301
8302 * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
8303 * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
8304 __dso_handle explicitly here.
8305
8306 2008-07-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8307
8308 PR 34389
8309 * c-typeck.c (build_binary_op): Encapsulate code into...
8310 * c-common.c (shorten_binary_op): ...this new function.
8311 (conversion_warning): Use the new function. Handle non-negative
8312 constant in bitwise-and.
8313 * c-common.h (shorten_binary_op): Declare.
8314
8315 2008-07-30 Olivier Hainque <hainque@adacore.com>
8316
8317 * scan.c (make_sstring_space): Add explicit conversions of
8318 allocator's return value.
8319 * fix-header.c (recognized_function): Likewise.
8320
8321 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8322
8323 * doc/cpp.texi: Update to GFDL 1.2.
8324 * doc/gcc.texi: Do not list GPL as Invariant Section.
8325 * doc/gccint.texi: Likewise. Update copyright years.
8326 * doc/install.texi: Update copyright years.
8327
8328 2008-07-30 Alan Modra <amodra@bigpond.net.au>
8329
8330 PR target/36955
8331 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
8332 a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
8333
8334 2008-07-29 Jan Hubicka <jh@suse.cz>
8335
8336 * c-decl.c (merge_decls): Do not handle DECL_INLINE.
8337 (grokdeclarator): Likewise.
8338 * langhooks.c (lhd_warn_unused_global_decl): Use
8339 DECL_DECLARED_INLINE_P.
8340 * print-tree.c (print_node): Remove DECL_INLINE check.
8341
8342 2008-07-29 Richard Guenther <rguenther@suse.de>
8343
8344 PR tree-optimization/36945
8345 * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
8346 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
8347 Record invariant addresses un-decomposed.
8348 (copy_reference_ops_from_call): Record reference call
8349 arguments properly. Simplify.
8350 * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
8351 helper split out from ...
8352 (create_component_ref_by_pieces): ... here. Simplify.
8353 Prepare for recursive invocation for call arguments.
8354 (create_expression_by_pieces): Adjust call to
8355 create_component_ref_by_pieces.
8356 (compute_avail): Process operand 2 of reference ops.
8357
8358 2008-07-29 Richard Guenther <rguenther@suse.de>
8359
8360 * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
8361
8362 2008-07-29 Jakub Jelinek <jakub@redhat.com>
8363
8364 * c-format.c (check_format_types): Revert unwanted checkin.
8365
8366 2008-07-29 Jan Hubicka <jh@suse.cz>
8367
8368 * flags.h (flag_really_no_inline): Remove.
8369 * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
8370 * toplev.c (flag_really_no_inline): Remove.
8371 * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
8372 * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
8373 (cgraph_decide_inlining_incrementally): Likewise.
8374 (compute_inline_parameters): Likewise.
8375 * opts.c (decode_options): Simplify.
8376 * c-opts.c (c_common_post_options): Do not set flag_no_inline.
8377 * common.opt (finline): Initialize to 1.
8378 * tree-inline.c (inlinable_function_p): Check flag_no_inline.
8379
8380 2008-07-29 Jan Hubicka <jh@suse.cz>
8381
8382 * predict.c (always_optimize_for_size_p): New function.
8383 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
8384 optimize_edge_for_size_p, optimize_edge_for_speed_p,
8385 optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
8386 functions.
8387 (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
8388 * function.c (prepare_function_start): Set default profile.
8389 * function.h (rtl_data): Add maybe_hot_insn_p.
8390 * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
8391 (construct_exit_block): Likewise.
8392 (tree_expand_cfg): Likewise.
8393 * basic-block.h
8394 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
8395 optimize_edge_for_size_p, optimize_edge_for_speed_p,
8396 optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
8397 (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
8398 Declare.
8399
8400 2008-07-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8401
8402 PR 34985
8403 * c-decl.c (merge_decls): Merge USED flags.
8404
8405 2008-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
8406
8407 * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
8408 valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
8409 next_stack, lab_false and lab_over trees.
8410
8411 2008-07-28 Richard Guenther <rguenther@suse.de>
8412
8413 PR tree-optimization/36957
8414 * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
8415 (useless_type_conversion_p): Remove.
8416 (types_compatible_p): Remove.
8417 * gimple.h (tree_ssa_useless_type_conversion): Declare.
8418 (useless_type_conversion_p): Declare.
8419 (types_compatible_p): Declare.
8420 (gimple_expr_type): Return the base type only if it is
8421 trivially convertible to the subtype.
8422
8423 2008-07-28 Andreas Tobler <a.tobler@schweiz.org>
8424
8425 * configure.ac: Use the m4_do macro to concatenate the warnings into
8426 one string in ACX_PROG_CC_WARNING_OPTS,
8427 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and
8428 ACX_PROG_CC_WARNINGS_ARE_ERRORS.
8429 * configure: Regenerate.
8430
8431 2008-07-28 Richard Guenther <rguenther@suse.de>
8432
8433 * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
8434 (insert_fake_stores): Remove.
8435 (realify_fake_stores): Likewise.
8436 (execute_pre): Remove dead code.
8437 * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
8438 (find_func_aliases): Deal with it here instead.
8439 Re-enable gcc_unreachable call.
8440
8441 2008-07-28 Richard Guenther <rguenther@suse.de>
8442
8443 Merge from gimple-tuples-branch.
8444
8445 * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
8446 * gimple.def: New file.
8447 * gsstruct.def: Likewise.
8448 * gimple-iterator.c: Likewise.
8449 * gimple-pretty-print.c: Likewise.
8450 * tree-gimple.c: Removed. Merged into ...
8451 * gimple.c: ... here. New file.
8452 * tree-gimple.h: Removed. Merged into ...
8453 * gimple.h: ... here. New file.
8454
8455 * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
8456 * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
8457 --enable-checking=gimple flag.
8458 * config.in: Likewise.
8459 * configure: Regenerated.
8460
8461 * tree-ssa-operands.h: Tuplified.
8462 * tree-vrp.c: Likewise.
8463 * tree-loop-linear.c: Likewise.
8464 * tree-into-ssa.c: Likewise.
8465 * tree-ssa-loop-im.c: Likewise.
8466 * tree-dump.c: Likewise.
8467 * tree-complex.c: Likewise.
8468 * cgraphbuild.c: Likewise.
8469 * tree-ssa-threadupdate.c: Likewise.
8470 * tree-ssa-loop-niter.c: Likewise.
8471 * tree-pretty-print.c: Likewise.
8472 * tracer.c: Likewise.
8473 * gengtype.c: Likewise.
8474 * tree-loop-distribution.c: Likewise.
8475 * tree-ssa-loop-unswitch.c: Likewise.
8476 * cgraph.c: Likewise.
8477 * cgraph.h: Likewise.
8478 * tree-ssa-loop-manip.c: Likewise.
8479 * value-prof.c: Likewise.
8480 * tree-ssa-loop-ch.c: Likewise.
8481 * tree-tailcall.c: Likewise.
8482 * value-prof.h: Likewise.
8483 * tree.c: Likewise.
8484 * tree.h: Likewise.
8485 * tree-pass.h: Likewise.
8486 * ipa-cp.c: Likewise.
8487 * tree-scalar-evolution.c: Likewise.
8488 * tree-scalar-evolution.h: Likewise.
8489 * target.h: Likewise.
8490 * lambda-mat.c: Likewise.
8491 * tree-phinodes.c: Likewise.
8492 * diagnostic.h: Likewise.
8493 * builtins.c: Likewise.
8494 * tree-ssa-alias-warnings.c: Likewise.
8495 * cfghooks.c: Likewise.
8496 * fold-const.c: Likewise.
8497 * cfghooks.h: Likewise.
8498 * omp-low.c: Likewise.
8499 * tree-ssa-dse.c: Likewise.
8500 * ipa-reference.c: Likewise.
8501 * tree-ssa-uncprop.c: Likewise.
8502 * toplev.c: Likewise.
8503 * tree-gimple.c: Likewise.
8504 * tree-gimple.h: Likewise.
8505 * tree-chrec.c: Likewise.
8506 * tree-chrec.h: Likewise.
8507 * tree-ssa-sccvn.c: Likewise.
8508 * tree-ssa-sccvn.h: Likewise.
8509 * cgraphunit.c: Likewise.
8510 * tree-ssa-copyrename.c: Likewise.
8511 * tree-ssa-ccp.c: Likewise.
8512 * tree-ssa-loop-ivopts.c: Likewise.
8513 * tree-nomudflap.c: Likewise.
8514 * tree-call-cdce.c: Likewise.
8515 * ipa-pure-const.c: Likewise.
8516 * c-format.c: Likewise.
8517 * tree-stdarg.c: Likewise.
8518 * tree-ssa-math-opts.c: Likewise.
8519 * tree-ssa-dom.c: Likewise.
8520 * tree-nrv.c: Likewise.
8521 * tree-ssa-propagate.c: Likewise.
8522 * ipa-utils.c: Likewise.
8523 * tree-ssa-propagate.h: Likewise.
8524 * tree-ssa-alias.c: Likewise.
8525 * gimple-low.c: Likewise.
8526 * tree-ssa-sink.c: Likewise.
8527 * ipa-inline.c: Likewise.
8528 * c-semantics.c: Likewise.
8529 * dwarf2out.c: Likewise.
8530 * expr.c: Likewise.
8531 * tree-ssa-loop-ivcanon.c: Likewise.
8532 * predict.c: Likewise.
8533 * tree-ssa-loop.c: Likewise.
8534 * tree-parloops.c: Likewise.
8535 * tree-ssa-address.c: Likewise.
8536 * tree-ssa-ifcombine.c: Likewise.
8537 * matrix-reorg.c: Likewise.
8538 * c-decl.c: Likewise.
8539 * tree-eh.c: Likewise.
8540 * c-pretty-print.c: Likewise.
8541 * lambda-trans.c: Likewise.
8542 * function.c: Likewise.
8543 * langhooks.c: Likewise.
8544 * ebitmap.h: Likewise.
8545 * tree-vectorizer.c: Likewise.
8546 * function.h: Likewise.
8547 * langhooks.h: Likewise.
8548 * tree-vectorizer.h: Likewise.
8549 * ipa-type-escape.c: Likewise.
8550 * ipa-type-escape.h: Likewise.
8551 * domwalk.c: Likewise.
8552 * tree-if-conv.c: Likewise.
8553 * profile.c: Likewise.
8554 * domwalk.h: Likewise.
8555 * tree-data-ref.c: Likewise.
8556 * tree-data-ref.h: Likewise.
8557 * tree-flow-inline.h: Likewise.
8558 * tree-affine.c: Likewise.
8559 * tree-vect-analyze.c: Likewise.
8560 * c-typeck.c: Likewise.
8561 * gimplify.c: Likewise.
8562 * coretypes.h: Likewise.
8563 * tree-ssa-phiopt.c: Likewise.
8564 * calls.c: Likewise.
8565 * tree-ssa-coalesce.c: Likewise.
8566 * tree.def: Likewise.
8567 * tree-dfa.c: Likewise.
8568 * except.c: Likewise.
8569 * except.h: Likewise.
8570 * cfgexpand.c: Likewise.
8571 * tree-cfgcleanup.c: Likewise.
8572 * tree-ssa-pre.c: Likewise.
8573 * tree-ssa-live.c: Likewise.
8574 * tree-sra.c: Likewise.
8575 * tree-ssa-live.h: Likewise.
8576 * tree-predcom.c: Likewise.
8577 * lambda.h: Likewise.
8578 * tree-mudflap.c: Likewise.
8579 * ipa-prop.c: Likewise.
8580 * print-tree.c: Likewise.
8581 * tree-ssa-copy.c: Likewise.
8582 * ipa-prop.h: Likewise.
8583 * tree-ssa-forwprop.c: Likewise.
8584 * ggc-page.c: Likewise.
8585 * c-omp.c: Likewise.
8586 * tree-ssa-dce.c: Likewise.
8587 * tree-vect-patterns.c: Likewise.
8588 * tree-ssa-ter.c: Likewise.
8589 * tree-nested.c: Likewise.
8590 * tree-ssa.c: Likewise.
8591 * lambda-code.c: Likewise.
8592 * tree-ssa-loop-prefetch.c: Likewise.
8593 * tree-inline.c: Likewise.
8594 * tree-inline.h: Likewise.
8595 * tree-iterator.c: Likewise.
8596 * tree-optimize.c: Likewise.
8597 * tree-ssa-phiprop.c: Likewise.
8598 * tree-vect-transform.c: Likewise.
8599 * tree-object-size.c: Likewise.
8600 * tree-outof-ssa.c: Likewise.
8601 * cfgloop.c: Likewise.
8602 * system.h: Likewise.
8603 * tree-profile.c: Likewise.
8604 * cfgloop.h: Likewise.
8605 * c-gimplify.c: Likewise.
8606 * c-common.c: Likewise.
8607 * tree-vect-generic.c: Likewise.
8608 * tree-flow.h: Likewise.
8609 * c-common.h: Likewise.
8610 * basic-block.h: Likewise.
8611 * tree-ssa-structalias.c: Likewise.
8612 * tree-switch-conversion.c: Likewise.
8613 * tree-ssa-structalias.h: Likewise.
8614 * tree-cfg.c: Likewise.
8615 * passes.c: Likewise.
8616 * ipa-struct-reorg.c: Likewise.
8617 * ipa-struct-reorg.h: Likewise.
8618 * tree-ssa-reassoc.c: Likewise.
8619 * cfgrtl.c: Likewise.
8620 * varpool.c: Likewise.
8621 * stmt.c: Likewise.
8622 * tree-ssanames.c: Likewise.
8623 * tree-ssa-threadedge.c: Likewise.
8624 * langhooks-def.h: Likewise.
8625 * tree-ssa-operands.c: Likewise.
8626 * config/alpha/alpha.c: Likewise.
8627 * config/frv/frv.c: Likewise.
8628 * config/s390/s390.c: Likewise.
8629 * config/m32c/m32c.c: Likewise.
8630 * config/m32c/m32c-protos.h: Likewise.
8631 * config/spu/spu.c: Likewise.
8632 * config/sparc/sparc.c: Likewise.
8633 * config/i386/i386.c: Likewise.
8634 * config/sh/sh.c: Likewise.
8635 * config/xtensa/xtensa.c: Likewise.
8636 * config/stormy16/stormy16.c: Likewise.
8637 * config/ia64/ia64.c: Likewise.
8638 * config/rs6000/rs6000.c: Likewise.
8639 * config/pa/pa.c: Likewise.
8640 * config/mips/mips.c: Likewise.
8641
8642 2008-07-28 Simon Baldwin <simonb@google.com>
8643
8644 * c-pragma.c (handle_pragma_message): New function.
8645 (init_pragma): Register handle_pragma_message.
8646 * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
8647 documentation.
8648
8649 2008-07-27 Victor Kaplansky <victork@il.ibm.com>
8650
8651 PR tree-optimization/35252
8652 * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
8653 REALPART_EXPR to be considered as same load operation.
8654
8655 2008-07-27 Eric Botcazou <ebotcazou@adacore.com>
8656
8657 PR tree-optimization/36830
8658 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
8659 (expressions_equal_p): Return false if only one operand is null.
8660
8661 2008-07-26 Gerald Pfeifer <gerald@pfeifer.com>
8662
8663 * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
8664 version requirements.
8665
8666 2008-07-26 Olivier Hainque <hainque@adacore.com>
8667
8668 * collect2.c (symkind): New enum. Symbol kinds we care about.
8669 (is_ctor_dtor): Return symkind instead of int. Adjust prototype,
8670 code and head comment accordingly.
8671 (scan_prog_file): Use symkind names instead of bare integers.
8672
8673 2008-07-25 Jan Hubicka <jh@suse.cz>
8674
8675 * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
8676 DECL_INLINE.
8677 * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
8678 (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
8679 * dojump.c (clear_pending_stack_adjust): Likewise.
8680 * print-tree.c (print_node): Ignore DECL_INLINE.
8681 * tree-inline.c (inlinable_function_p): Likewise.
8682
8683 2008-07-25 Michael Meissner <gnu@the-meissners.org>
8684
8685 * doc/extend.texi (hot attribute): Document that the hot attribute
8686 turns on -O3 for some ports.
8687 (cold attribute): Document that the cold attribute turns on -Os
8688 for some ports
8689
8690 * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
8691 reflect function specific option support.
8692
8693 * target.h (struct target_option_hooks): Add fields to say whether
8694 the cold attribute implies -Os and the hot attribute implies -O3.
8695
8696 * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
8697 By default, do not turn on -Os for cold functions.
8698 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
8699 not turn on -O3 for hot functions.
8700
8701 * c-common.c (handle_hot_attribute): Use target hook to determine
8702 if hot functions should enable -O3.
8703 (handle_cold_attribute): Use target hook to determine if cold
8704 functions should enable -Os.
8705
8706 * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
8707 (override_options): Move disable scheduling to
8708 optimization_options.
8709 (optimization_options): Disable scheduling here, not
8710 override_options.
8711 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
8712 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
8713
8714 * config/ia64/ia64.c (ia64_override_options): Move setting
8715 scheduling flags to ia64_optimization_options.
8716 (ia64_optimization_options): Disable scheduling options here, and
8717 not in ia64_override_options.
8718 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
8719 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
8720
8721 2008-07-25 H.J. Lu <hongjiu.lu@intel.com>
8722
8723 PR target/36936
8724 * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
8725
8726 2008-07-25 Martin Jambor <mjambor@suse.cz>
8727
8728 PR tree-optimization/36926
8729 * ipa-prop.c (ipa_analyze_call_uses): Call
8730 ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
8731
8732 2008-07-25 Joseph Myers <joseph@codesourcery.com>
8733
8734 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
8735 movv2si_internal): Add mem = reg alternative.
8736
8737 2008-07-25 Andreas Tobler <a.tobler@schweiz.org>
8738
8739 PR bootstrap/36918
8740 * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
8741 DEFAULT_PCC_STRUCT_RETURN to 127.
8742
8743 2008-07-24 Jan Hubicka <jh@suse.cz>
8744
8745 * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
8746 (build_cgraph_edges): Likewise.
8747 * cgraph.c (cgraph_node): Do not update assembler hash.
8748 (cgraph_remove_node): Drop non-unit-at-a-time code.
8749 * tree-pass.h (pass_O0_always_inline): Remove.
8750 * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
8751 * toplev.c (process_options): Flag unit-at-a-time does not imply
8752 no section anchors.
8753 * cgraphunit.c: Update comments.
8754 (decide_is_function_needed): Drop non-unit-at-a-time mode.
8755 (cgraph_assemble_pending_functions): Remove.
8756 (cgraph_reset_node): Drop non-unit-at-a-time code.
8757 (cgraph_finalize_function): Likewise.
8758 (cgraph_analyze_function): Likewise.
8759 (cgraph_finalize_compilation_unit): Likewise.
8760 (cgraph_expand_function): Likewise.
8761 (cgraph_optimize): Likesise.
8762 (save_inline_function_body): Likewise.
8763 * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
8764 * tree-ssa-alias.c (maybe_be_aliased): Likewise.
8765 * ipa-inline.c: Update comments.
8766 (enum inlining_mode): remove INLINE_SPEED.
8767 (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
8768 (cgraph_mark_inline_edge): Likewise.
8769 (try_inline): Likewise.
8770 (cgraph_decide_inlining_incrementally): Likewise.
8771 (cgraph_gate_inlining): Remove.
8772 (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
8773 (cgraph_gate_early_inlining): Likewise.
8774 (gate_inline_passes): Remove.
8775 (pass_inline_parameters, pass_ipa_inline): Remove gates.
8776 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
8777 pass_O0_always_inline): Remove.
8778 * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
8779 * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
8780 * opts.c (no_unit_at_a_time_default): Remove.
8781 (decode_options): Remove flag_unit_at_a_time reset and warning.
8782 * opts.h (no_unit_at_a_time_default): Remove.
8783 * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
8784 early in GNU dialect.
8785 (merge_decls): Update comment; drop unit-at-a-time check.
8786 (finish_decl): Likewise.
8787 (grok_declaration): Remove flag_inline_trees code.
8788 (finish_functions): Return on function returning non-void on all
8789 statics.
8790 * ipa-tye-escape.c (gate_type_escape_vars): Remove.
8791 * cfgexpand.c (expand_one_static_var): Remove.
8792 (expand_one_var): Remove expand_one_static_var call.
8793 (expand_used_vars_for_block): Remove flag_unit_a_time check.
8794 * c-opts.c (c_common_post_options): Remove flag_inline_trees code
8795 and flag_unit_at_a-time compatibility checks.
8796 * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
8797 * tree-inline.c (flag_inline_trees): Remove.
8798 (inlinable_function_p): Don't check it.
8799 (expand_call_inline): Remove non-unit-at-a-time code.
8800 * tree-inline.h (flag_inline_trees): Remove.
8801 * tree-optimize.c (execute_early_local_optimizations): Remove
8802 unit-at-a-time checks.
8803 (tree_rest_of_compilation): Likewise.
8804 * combine.c (setup_incoming_promotions): Likewise.
8805 * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
8806 * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
8807 * passes.c (pass_inline_parameters): Update comments; remove
8808 O0_alwaysinline pass.
8809 (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
8810 (execute_one_pass): Likewise.
8811 * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
8812 (ix86_function_sseregparm): Likewise.
8813 * arm.c (arm_function_in_section_p): Likewise.
8814 * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
8815 * varpool.c: Update comments.
8816 (decide_is_variable_needed): Remove unit-at-a-time checks.
8817 (varpool_finalize_decl): Likewise.
8818
8819 2008-07-24 Kaz Kojima <kkojima@gcc.gnu.org>
8820
8821 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
8822 to 2 instead of -1.
8823 (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
8824
8825 2008-07-24 Kai Tietz <kai.tietz@onevision.com>
8826
8827 * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
8828 imp symbol extension.
8829
8830 2008-07-23 Ian Lance Taylor <iant@google.com>
8831
8832 * tree-vrp.c (infer_value_range): Ignore asm statements when
8833 looking for memory accesses for -fdelete-null-pointer-checks.
8834
8835 2008-07-24 Ben Elliston <bje@au.ibm.com>
8836
8837 * config/spu/spu-c.c (__vector_keyword): New variable.
8838 (vector_keyword): Likewise.
8839 (spu_categorize_keyword): New function.
8840 (spu_macro_to_expand): Likewise.
8841 (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
8842 compiling an ISO C dialect.
8843
8844 2008-07-24 Ben Elliston <bje@au.ibm.com>
8845
8846 * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
8847 conventional usage.
8848
8849 2008-07-23 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
8850
8851 * configure: Regenerate.
8852 * configure.ac: Require texinfo 4.7.
8853 * doc/install.texi: Document texinfo 4.7 requirement.
8854
8855 2008-07-23 Martin Jambor <mjambor@suse.cz>
8856
8857 * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
8858 rather than for DECL_SAVED_TREE.
8859 * ipa-prop.c: Include diagnostic.h.
8860 (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
8861 thoroughly.
8862 (ipa_detect_param_modifications): Function rewritten from scratch.
8863 (ipa_compute_jump_functions): Changed accesses to modification flags.
8864 (ipa_free_node_params_substructures): Update flags destruction.
8865 (ipa_node_duplication_hook): Update flags duplication.
8866 (ipa_print_all_params_modified): Updated flag access.
8867 * ipa-prop.h (struct ipa_param_flags): New structure.
8868 (struct ipa_node_params): New field modification_analysis_done,
8869 modified_flags changed into param_flags.
8870 (ipa_is_ith_param_modified): Changed to use new flags.
8871 * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
8872
8873 * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
8874 ipa-cp.c and split into two functions.
8875 (ipa_print_node_jump_functions): New function.
8876 (compute_scalar_jump_functions): New function.
8877 (type_like_member_ptr_p): New function.
8878 (compute_pass_through_member_ptrs): New function.
8879 (fill_member_ptr_cst_jump_function): New function.
8880 (determine_cst_member_ptr): New function.
8881 (compute_cst_member_ptr_arguments): New function.
8882 (ipa_compute_jump_functions): Complete rewrite.
8883 * ipa-prop.h (enum jump_func_type): Make explicit that we depend
8884 on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
8885 (struct ipa_member_ptr_cst): New structure.
8886 (union jump_func_value): New field member_cst.
8887 * ipa-cp.c (ipcp_lat_is_insertable): New function.
8888 (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
8889 jump function types.
8890 (ipcp_print_all_lattices): Slight fprintf rearrangement.
8891 (ipcp_print_all_structures): Call ipa_print_all_jump_functions
8892 instead of ipcp_print_all_jump_functions.
8893 (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
8894 only for replacable scalars.
8895
8896 * doc/invoke.texi (Optimize options): Add description of
8897 -findirect-inlining.
8898 * common.opt (flag_indirect_inlining): New flag.
8899 * opts.c (decode_options): Set flag_indirect_inlining when
8900 optimize >= 3.
8901
8902 * ipa-inline.c: Include ipa-prop.h.
8903 (inline_indirect_intraprocedural_analysis): New function.
8904 (inline_generate_summary): Allocate parameter and argument info
8905 structures, call inline_indirect_intraprocedural_analysis on each
8906 node when doing indirect inlining and deallocate indirect inlining
8907 data structures in the end.
8908 * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
8909 (free_all_ipa_structures_after_iinln): New function.
8910 (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
8911 done.
8912 * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
8913
8914 * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
8915 (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
8916 of computing the frequency separately.
8917 (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
8918 of computing the frequency separately.
8919 * ipa-cp.c (ipcp_print_all_structures): Replace a call to
8920 ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
8921 * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
8922 (ipa_get_stmt_member_ptr_load_param): New function.
8923 (ipa_is_ssa_with_stmt_def): New function.
8924 (ipa_note_param_call): New function.
8925 (ipa_analyze_call_uses): New function.
8926 (ipa_analyze_stmt_uses): New function.
8927 (ipa_analyze_params_uses): New function.
8928 (ipa_free_node_params_substructures): Also free the param_calls linked
8929 list.
8930 (ipa_node_duplication_hook): Also duplicate the param_calls
8931 linked list.
8932 (ipa_print_node_param_flags): New function.
8933 (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
8934 (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
8935 * ipa-prop.h (struct ipa_param_flags): New field called.
8936 (struct ipa_param_call_note): New structure.
8937 (struct ipa_node_params): New fields param_calls and
8938 uses_analysis_done.
8939 (ipa_is_ith_param_called): New function.
8940 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
8941 ipa_analyze_params_uses and dump parameter flags.
8942
8943 * ipa-inline.c (cgraph_decide_recursive_inlining): Call
8944 ipa_propagate_indirect_call_infos if performing indirect inlining,
8945 pass a new parameter new_edges to it.
8946 (add_new_edges_to_heap): New fucntion.
8947 (cgraph_decide_inlining_of_small_functions): New vector
8948 new_indirect_edges for newly found indirect edges , call
8949 ipa_propagate_indirect_call_infos after inlining.
8950 (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
8951 inlining if performing indirect inlining. Call
8952 free_all_ipa_structures_after_iinln when doing so too.
8953 (inline_generate_summary): Do not call
8954 free_all_ipa_structures_after_iinln here.
8955 * ipa-prop.c (update_jump_functions_after_inlining): New function.
8956 (print_edge_addition_message): New function.
8957 (update_call_notes_after_inlining): New function.
8958 (propagate_info_to_inlined_callees): New function.
8959 (ipa_propagate_indirect_call_infos): New function.
8960 * ipa-prop.h: Include cgraph.h
8961 (struct ipa_param_call_note): Fields reordered, new field processed.
8962 * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
8963 flag indirect_call.
8964 * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
8965 rediscovered call statements.
8966 * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
8967 (dump_cgraph_node): Dump also the indirect_call flag.
8968 (cgraph_clone_edge): Copy also the indirect_call flag.
8969 * tree-inline.c (copy_bb): Do not check for fndecls from call
8970 expressions, check for edge availability when moving clones.
8971 (get_indirect_callee_fndecl): New function.
8972 (expand_call_inline): If callee declaration is not apprent from
8973 the statement, try calling get_indirect_callee_fndecl. Do not
8974 issue warnings or call sorry when not inlinings an indirect edge.
8975 * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
8976
8977 * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
8978 bit more frandly to matching.
8979 * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
8980 * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
8981 * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
8982
8983 2008-07-23 Michael Meissner <gnu@the-meissners.org>
8984
8985 PR 36907
8986 * opth-gen.awk: Suppress function specific features when building
8987 target libraries.
8988 * optc-gen.awk: Ditto.
8989
8990 2008-07-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8991
8992 PR 35058
8993 * diagnostic.c (pedwarn): Add opt parameter.
8994 (pedwarn0): New.
8995 * c-tree.h (pedwarn_init): Add opt parameter.
8996 (pedwarn_c90): Likewise.
8997 (pedwarn_c99): Likewise.
8998 * c-errors.c (pedwarn_c99): Likewise.
8999 (pedwarn_c90): Likewise.
9000 * toplev.h (pedwarn): Update declaration.
9001 (pedwarn0): Declare.
9002 * c-lex.c: All calls to pedwarn changed.
9003 * builtins.c: All calls to pedwarn changed.
9004 * toplev.c: All calls to pedwarn changed.
9005 * c-decl.c: All calls to pedwarn changed.
9006 * c-typeck.c: All calls to pedwarn changed.
9007 * c-common.c: All calls to pedwarn changed.
9008 * c-parser.c: All calls to pedwarn changed.
9009
9010 2008-07-23 Michael Meissner <gnu@the-meissners.org>
9011 Karthik Kumar <karthikkumar@gmail.com>
9012
9013 * attribs.c (file scope): Include c-common.h.
9014 (decl_attributes): Add support for #pragma GCC optimize and
9015 #pragma GCC option.
9016
9017 * targhooks.c (default_can_inline_p): New function that is the
9018 default for the TARGET_CAN_INLINE_P target hook.
9019
9020 * targhooks.h (default_can_inline_p): Add declaration.
9021
9022 * tree.c (cl_optimization_node): New static tree for building
9023 OPTIMIZATION_NODE tree.
9024 (cl_target_option_node): New static tree for building
9025 TARGET_OPTION_NODE tree.
9026 (cl_option_hash_table): New hash table for hashing
9027 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
9028 (cl_option_hash_hash): New function to provide the hash value for
9029 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
9030 (cl_option_hash_eq): New function to provide an equality test for
9031 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
9032 (tree_code_size): Add support for OPTIMIZATION_NODE and
9033 TARGET_OPTION_NODE trees.
9034 (tree_code_structure): Add support for OPTIMIZATION_NODE and
9035 TARGET_OPTION_NODE trees.
9036 (build_optimization_node): Build a tree that has all of the
9037 current optimization options.
9038 (build_target_option_node): Build a tree that has the target
9039 options that might be changed on a per function basis.
9040
9041 * tree.h (file scope): Include options.h.
9042 (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
9043 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
9044 (TREE_OPTIMIZATION): Ditto.
9045 (TREE_TARGET_SPECIFIC): Ditto.
9046 (struct tree_function_decl): Add fields for remembering the
9047 current optimization options and target specific options.
9048 (struct tree_optimization_option): New tree variant that remembers
9049 the optimization options.
9050 (struct tree_target_option): New tree variant that remembers the
9051 target specific flags that might change for compiling a particular
9052 function.
9053 (union tree_node): Include tree_optimization_option and
9054 tree_target_option fields.
9055 (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
9056 TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
9057 TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
9058 TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
9059 TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
9060 optimization and target options.
9061 (optimization_default_node): New macro to refer to global_trees
9062 field.
9063 (optimization_current_node): Ditto.
9064 (optimization_cold_node): Ditto.
9065 (optimization_hot_node): Ditto.
9066 (target_option_default_node): Ditto.
9067 (target_option_current_node): Ditto.
9068 (current_option_pragma): Ditto.
9069 (current_optimize_pragma): Ditto.
9070
9071 * target.h (struct gcc_target): Add valid_option_attribute_p,
9072 target_option_save, target_option_restore, target_option_print,
9073 target_option_pragma_parse, and can_inline_p hooks.
9074
9075 * toplev.h (parse_optimize_options): Add declaration.
9076 (fast_math_flags_struct_set_p): Ditto.
9077
9078 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
9079 adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
9080 optimize is used.
9081
9082 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
9083 tree_can_inline_p hook to see if one function can inline another.
9084 (cgraph_decide_inlining): Ditto.
9085 (cgraph_decide_inlining_incrementally): Ditto.
9086
9087 * opts.c (decode_options): Add support for running multiple times
9088 to allow functions with different target or optimization options
9089 than was specified on the command line.
9090 (fast_math_flags_struct_set_p): New function that is similar to
9091 fast_math_flags_set_p, except it uses the values in the
9092 cl_optimization structure instead of global variables.
9093
9094 * optc-gen.awk: Add support for TargetSave to allow a back end to
9095 declare new fields that need to be saved when using function
9096 specific options. Include flags.h and target.h in the options.c
9097 source. Add support for Save to indicate which options can be set
9098 for individual functions. Generate cl_optimize_save,
9099 cl_optimize_restore, cl_optimize_print, cl_target_option_save,
9100 cl_target_option_restore, cl_target_option_print functions to
9101 allow functions to use different optimization or target options.
9102
9103 * opt-functions.awk (var_type_struct): Return the type used for
9104 storing the field in a structure.
9105
9106 * opth-gen.awk: Add support for TargetSave to allow a back end to
9107 declare new fields that need to be saved when using function
9108 specific options. Add support for Save to indicate which options
9109 can be set for individual functions. Only generate one extern for
9110 Mask fields. Generate cl_optimization and cl_target_option
9111 structures to remember optimization and target options.
9112
9113 * treestruct.def (TS_OPTIMIZATION): Add support for garbage
9114 collecting new tree nodes.
9115 (TS_TARGET_OPTION): Ditto.
9116
9117 * c-decl.c (merge_decls): Merge function specific target and
9118 optimization options.
9119
9120 * function.c (invoke_set_current_function_hook): If the function
9121 uses different optimization options, change the global variables
9122 to reflect this.
9123
9124 * coretypes.h (struct cl_optimization): Add forward reference.
9125 (struct cl_target_option): Ditto.
9126
9127 * c-pragma.c (option_stack): New static vector to remember the
9128 current #pragma GCC option stack.
9129 (handle_pragma_option): New function to support #pragma GCC option
9130 to change target options.
9131 (optimize_stack): New static vector to remember the current
9132 #pragma GCC optimize stack.
9133 (handle_pragma_optimize): New function to support #pragma GCC
9134 optimize to change optimization options.
9135 (init_pragma): Add support for #pragma GCC optimize and #pragma
9136 GCC option.
9137
9138 * tree.def (OPTIMIZATION_NODE): New tree code for remembering
9139 optimization options.
9140 (TARGET_OPTION_NODE): New tree code for remembering certain target
9141 options.
9142
9143 * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
9144 TARGET_OPTION_NODE trees.
9145
9146 * common.opt (-O): Add Optimization flag.
9147 (-Os): Ditto.
9148 (-fmath-errno): Ditto.
9149 (-falign-functions): Add UInteger flag to make sure flag gets full
9150 int in cl_optimization structure.
9151 (-falign-jumps): Ditto.
9152 (-falign-labels): Ditto.
9153 (-falign-loops): Ditto.
9154 (-fsched-stalled-insns): Ditto.
9155 (-fsched-stalled-insns-dep): Ditto.
9156
9157 * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
9158 definition.
9159 (TARGET_OPTION_SAVE): Ditto.
9160 (TARGET_OPTION_RESTORE): Ditto.
9161 (TARGET_OPTION_PRINT): Ditto.
9162 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
9163 (TARGET_CAN_INLINE_P): Ditto.
9164 (TARGET_INITIALIZER): Add new hooks.
9165
9166 * tree-inline.c (tree_can_inline_p): New function to determine
9167 whether one function can inline another. Check if the functions
9168 use compatible optimization options, and also call the backend
9169 can_inline_p hook.
9170
9171 * tree-inline.h (tree_can_inline_p): Add declaration.
9172
9173 * c-common.c (c_common_attribute): Add support for option and
9174 optimize attributes.
9175 (handle_option_attribute): Add support for the option attribute to
9176 allow the user to specify different target options for compiling a
9177 specific function.
9178 (handle_optimize_attribute): Add support for the optimize
9179 attribute to allow the user to specify different optimization
9180 options for compiling a specific function.
9181 (handle_hot_attribute): Turn on -O3 optimization for this one
9182 function if it isn't the default optimization level.
9183 (handle_cold_attribute): Turn on -Os optimization for this one
9184 function if it insn't the default optimization.
9185 (const_char_p): New const char * typedef.
9186 (optimize_args): New static vector to remember the optimization
9187 arguments.
9188 (parse_optimize_options): New function to set up the optimization
9189 arguments from either the optimize attribute or #pragma GCC optimize.
9190
9191 * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
9192 (builtin_define_std): Ditto.
9193
9194 * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
9195 Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
9196 (x86_64-*-*): Ditto.
9197
9198 * Makefile.in (TREE_H): Add options.h.
9199 (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
9200
9201 * doc/extend.texi (option attribute): Document new attribute.
9202 (optimize attribute): Ditto.
9203 (hot attribute): Document hot attribute sets -O3.
9204 (cold attribute): Document cold attribute sets -Os.
9205 (#pragma GCC option): Document new pragma.
9206 (#pragma GCC optimize): Ditto.
9207
9208 * doc/options.texi (TargetSave): Document TargetSave syntax.
9209 (UInteger): Document UInteger must be used for certain flags.
9210 (Save): Document Save option to create target specific options
9211 that can be saved/restored on a function specific context.
9212
9213 * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
9214 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
9215
9216 * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
9217 (TARGET_OPTION_SAVE): Ditto.
9218 (TARGET_OPTION_RESTORE): Ditto.
9219 (TARGET_OPTION_PRINT): Ditto.
9220 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
9221 (TARGET_CAN_INLINE_P): Ditto.
9222
9223 * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
9224 -mfpmath=sse,387.
9225 (-mfpmath=both): Ditto.
9226
9227 2008-07-23 Michael Meissner <gnu@the-meissners.org>
9228 Karthik Kumar <karthikkumar@gmail.com>
9229
9230 * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
9231 (TARGET_POPCNT): Ditto.
9232 (TARGET_SAHF): Ditto.
9233 (TARGET_AES): Ditto.
9234 (TARGET_PCLMUL): Ditto.
9235 (TARGET_CMPXCHG16B): Ditto.
9236 (TARGET_RECIP): Move switch into target_flags.
9237 (TARGET_FUSED_MADD): Ditto.
9238 (ix86_arch_features): Make an unsigned char type.
9239 (ix86_tune_features): Ditto.
9240 (OVERRIDE_OPTIONS): Add bool argument to override_options call.
9241 (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
9242 (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
9243
9244 * config/i386/i386.opt (arch): New TargetSave field to define
9245 fields that need to be saved for function specific option support.
9246 (tune): Ditto.
9247 (fpmath): Ditto.
9248 (branch_cost): Ditto.
9249 (ix86_isa_flags_explicit): Ditto.
9250 (tune_defaulted): Ditto.
9251 (arch_specified): Ditto.
9252 (-m128-long-double): Add Save flag to save option for target
9253 specific option support.
9254 (-m80387): Ditto.
9255 (-maccumulate-outgoing-args): Ditto.
9256 (-malign-double): Ditto.
9257 (-malign-stringops): Ditto.
9258 (-mfancy-math-387): Ditto.
9259 (-mhard-float): Ditto.
9260 (-mieee-fp): Ditto.
9261 (-minline-all-stringops): Ditto.
9262 (-minline-stringops-dynamically): Ditto.
9263 (-mms-bitfields): Ditto.
9264 (-mno-align-stringops): Ditto.
9265 (-mno-fancy-math-387): Ditto.
9266 (-mno-push-args): Ditto.
9267 (-mno-red-zone): Ditto.
9268 (-mpush-args): Ditto.
9269 (-mred-zone): Ditto.
9270 (-mrtd): Ditto.
9271 (-msseregparm): Ditto.
9272 (-mstack-arg-probe): Ditto.
9273 (-m32): Ditto.
9274 (-m64): Ditto.
9275 (-mmmx): Ditto.
9276 (-m3dnow): Ditto.
9277 (-m3dnowa): Ditto.
9278 (-msse): Ditto.
9279 (-msse2): Ditto.
9280 (-msse3): Ditto.
9281 (-msse4.1): Ditto.
9282 (-msse4.2): Ditto.
9283 (-msse4): Ditto.
9284 (-mno-sse4): Ditto.
9285 (-msse4a): Ditto.
9286 (-msse5): Ditto.
9287 (-mrecip): Move flag into target_flags.
9288 (-mcld): Ditto.
9289 (-mno-fused-madd): Ditto.
9290 (-mfused-madd): Ditto.
9291 (-mabm): Move flag into ix86_isa_flags.
9292 (-mcx16): Ditto.
9293 (-mpopcnt): Ditto.
9294 (-msahf): Ditto.
9295 (-maes): Ditto.
9296 (-mpclmul): Ditto.
9297
9298 * config/i386/i386-c.c: New file for #pragma support.
9299 (ix86_target_macros_internal): New function to #define or #undef
9300 target macros based when the user uses the #pragma GCC option to
9301 change target options.
9302 (ix86_pragma_option_parse): New function to add #pragma GCC option
9303 support.
9304 (ix86_target_macros): Move defining the target macros here from
9305 TARGET_CPU_CPP_BUILTINS in i386.h.
9306 (ix86_register_pragmas): Register the #pragma GCC option hook. If
9307 defined, initialize any subtarget #pragmas.
9308
9309 * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
9310 REGISTER_TARGET_PRAGMAS.
9311
9312 * config/i386/t-i386: New file for x86 dependencies.
9313 (i386.o): Make dependencies mirror the include files used.
9314 (i386-c.o): New file, add dependencies.
9315
9316 * config/i386/i386-protos.h (override_options): Add bool argument.
9317 (ix86_valid_option_attribute_tree): Add declaration.
9318 (ix86_target_macros): Ditto.
9319 (ix86_register_macros): Ditto.
9320
9321 * config/i386/i386.c (ix86_tune_features): Move initialization of
9322 the target masks to initial_ix86_tune_features to allow functions
9323 to have different target options. Make type unsigned char,
9324 instead of unsigned int.
9325 (initial_ix86_tune_features): New static vector to hold processor
9326 masks for the tune variables.
9327 (ix86_arch_features): Move initialization of the target masks to
9328 initial_ix86_arch_features to allow functions to have different
9329 target options. Make type unsigned char, instead of unsigned int.
9330 (initial_ix86_arch_features): New static vector to hold processor
9331 masks for the arch variables.
9332 (enum ix86_function_specific_strings): New enum to describe the
9333 string options used for attribute((option(...))).
9334 (ix86_target_string): New function to return a string that
9335 describes the target options.
9336 (ix86_debug_options): New function to print the current options in
9337 the debugger.
9338 (ix86_function_specific_save): New function hook to save the
9339 function specific global variables in the cl_target_option structure.
9340 (ix86_function_specific_restore): New function hook to restore the
9341 function specific variables from the cl_target_option structure to
9342 the global variables.
9343 (ix86_function_specific_print): New function hook to print the
9344 target specific options in the cl_target_option structure.
9345 (ix86_valid_option_attribute_p): New function hook to validate
9346 attribute((option(...))) arguments.
9347 (ix86_valid_option_attribute_tree): New function that is common
9348 code between attribute((option(...))) and #pragma GCC option
9349 support that parses the options and returns a tree holding the options.
9350 (ix86_valid_option_attribute_inner_p): New helper function for
9351 ix86_valid_option_attribute_tree.
9352 (ix86_can_inline_p): New function hook to decide if one function
9353 can inline another on a target specific basis.
9354 (ix86_set_current_function); New function hook to switch target
9355 options if the user used attribute((option(...))) or #pragma GCC
9356 option.
9357 (ix86_tune_defaulted): Move to static file scope from
9358 override_options.
9359 (ix86_arch_specified): Ditto.
9360 (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
9361 ix86_isa_flags.
9362 (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
9363 (OPTION_MASK_ISA_ABM_SET): Ditto.
9364 (OPTION_MASK_ISA_POPCNT_SET): Ditto.
9365 (OPTION_MASK_ISA_CX16_SET): Ditto.
9366 (OPTION_MASK_ISA_SAHF_SET): Ditto.
9367 (OPTION_MASK_ISA_AES_UNSET): Ditto.
9368 (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
9369 (OPTION_MASK_ISA_ABM_UNSET): Ditto.
9370 (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
9371 (OPTION_MASK_ISA_CX16_UNSET): Ditto.
9372 (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
9373 (struct ptt): Move to static file scope from override_options.
9374 (processor_target_table): Ditto.
9375 (cpu_names): Ditto.
9376 (ix86_handle_option): Add support for options that are now isa options.
9377 (override_options): Add support for declaring functions that
9378 support different target options than were specified on the
9379 command line. Move struct ptt, processor_target_table, cpu_names,
9380 ix86_tune_defaulted, ix86_arch_specified to static file scope.
9381 Add bool argument. Fix up error messages so the appropriate error
9382 is given for either command line or attribute.
9383 (ix86_previous_fndecl): New static to remember previous function
9384 declaration to see if we need to change target options.
9385 (ix86_builtins_isa): New array to record the ISA of each builtin
9386 function.
9387 (def_builtin): Always create the builtin function, even if the
9388 current ISA doesn't support it.
9389 (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
9390 tests for those builtins.
9391 (ix86_init_builtins): Remove TARGET_MMX test for calling
9392 ix86_init_mmx_sse_builtins.
9393 (ix86_expand_builtin): If the current ISA doesn't support a given
9394 builtin, signal an error.
9395 (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
9396 (TARGET_SET_CURRENT_FUNCTION): Ditto.
9397 (TARGET_OPTION_SAVE): Ditto.
9398 (TARGET_OPTION_RESTORE): Ditto.
9399 (TARGET_OPTION_PRINT): Ditto.
9400 (TARGET_CAN_INLINE_P): Ditto.
9401
9402 2008-07-22 Rafael Ãvila de Espíndola <espindola@google.com>
9403
9404 * c-typeck.c (build_external_ref): Don't call assemble_external.
9405 * final.c (output_operand): Call assemble_external.
9406
9407 2008-07-21 DJ Delorie <dj@redhat.com>
9408
9409 * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
9410 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
9411
9412 2008-07-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9413
9414 * config/spu/spu.md ("div<mode>3"): Convert into expander, move
9415 original insn and splitter contents into ...
9416 ("*div<mode>3_fast"): ... this new pattern. Enable only if
9417 flag_unsafe_math_optimizations. Add dummy scratch register.
9418 ("*div<mode>3_adjusted"): New insn and splitter. Enable only if
9419 !flag_unsafe_math_optimizations. Returns number with next
9420 highest magnitude if this is still less or equal to the true
9421 quotient in magnitude.
9422
9423 2008-07-21 Rafael Ãvila de Espíndola <espindola@google.com>
9424
9425 * Makefile.in: Replace toplev.h with TOPLEV_H.
9426 * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
9427 * c-lex.c (fe_file_change): Don't set in_system_header.
9428 * c-parser.c (c_token): Remove in_system_header.
9429 (c_lex_one_token): Don't set in_system_header.
9430 (c_parser_set_source_position_from_token): Don't set in_system_header.
9431 * diagnostic.c (diagnostic_report_diagnostic): Use location from
9432 diagnostic_info.
9433 (warning_at): New.
9434 * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
9435 * flags.h (in_system_header): Remove.
9436 * function.c (saved_in_system_header): Remove.
9437 (push_cfun): Don't set in_system_header.
9438 (pop_cfun): Don't set in_system_header.
9439 (push_struct_function): Don't set in_system_header.
9440 * input.h (expanded_location): Add sysp.
9441 (in_system_header_at): New.
9442 (in_system_header): New.
9443 * toplev.c (in_system_header): Remove.
9444 * toplev.h: Include input.h
9445 (warning_at): New.
9446 * tree-cfg.c (execute_warn_function_return): Call warning_at.
9447 * tree-ssa.c (warn_uninit): Call warning_at.
9448 (warn_uninitialized_var): Update calls to warn_uninit.
9449 (warn_uninitialized_phi): Update calls to warn_uninit.
9450 * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
9451 (expand_location): Initialize xloc.sysp.
9452 * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
9453 (tree_decl_with_vis): Remove in_system_header_flag.
9454
9455 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
9456
9457 PR target/36822
9458 * recog.c (asm_operand_ok): Change the order of the extra
9459 memory constraint checks.
9460
9461 2008-07-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
9462
9463 PR tree-opt/36879
9464 * tree-switch-conversion.c (build_one_array): Call
9465 varpool_mark_needed_node and varpool_finalize_decl
9466 instead of assemble_variable.
9467
9468 2008-07-19 Jan Hubicka <jh@suse.cz>
9469
9470 * cgraph.c (cgraph_add_new_function): Do early local passes.
9471 * tree-nrv.c (gate_pass_return_slot): New gate.
9472 (pass_nrv): Add the gate.
9473 * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
9474 functions.
9475 (coalesce_ssa_name): Coalesce SSA names.
9476 * tree-ssa-live.c (remove_unused_locals): Be more conservative when
9477 not optimizing so unused user vars remains visible.
9478 * common.opt (flag_tree_ter): Always enable by default.
9479 * tree-ssa-ter.c: Include flags.h
9480 (is_replaceable_p): Check that locations match; when aliasing
9481 is missing be conservative about loads.
9482 * tree-optimize.c (gate_init_datastructures): Remove.
9483 (pass_init_datastructures): New.
9484 * passes.c: Reorder passes so we always go into SSA.
9485
9486 2008-07-19 Jan Hubicka <jh@suse.cz>
9487
9488 * doc/extend.texi (flatten attribute): Remove note about
9489 unit-at-a-time.
9490 * doc/invoke.texi (--combine): Likewise.
9491 (-finline-functions-called-once): Update levels when enabled.
9492 (-funit-at-a-time): Document new behaviour.
9493 (-ftoplevel-reorder): Document that it is enabled -O0 and imply
9494 -fno-section-anchors when disabled explicitly.
9495 (inline params): They are not ignored now.
9496 (precompiled headers): Remove unit-at-a-time as being incompatible.
9497 * opts.c (decode_options): Handle unit-at-a-time as alias;
9498 imply -fno-section-anchors when toplevel reorder is disabled
9499 explicitly.
9500 * common.opt (ftoplevel-reorder): Set default value to 2.
9501 (funit-at-a-time): Set default value to 1.
9502 * config/rs6000/rs6000.c (optimization_options): Set section anchors
9503 to 2.
9504
9505 2008-07-19 Jan Hubicka <jh@suse.cz>
9506
9507 * builtins.c (expand_builtin_int_roundingfn,
9508 expand_builtin_int_roundingfn_2): Do not take subtarget argument;
9509 it is not useful.
9510
9511 2008-07-19 Richard Guenther <rguenther@suse.de>
9512
9513 PR bootstrap/36864
9514 * tree-ssa-sccvn.h (get_constant_value_id): Declare.
9515 * tree-ssa-sccvn.c (get_constant_value_id): New function.
9516 * tree-ssa-pre.c (get_expr_value_id): For newly created
9517 constant value-ids make sure to add the expression to its
9518 expression-set.
9519
9520 2008-07-19 Jakub Jelinek <jakub@redhat.com>
9521
9522 PR middle-end/36877
9523 * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
9524 return value of the builtin is ignored.
9525
9526 2008-07-19 Olivier Hainque <hainque@adacore.com>
9527
9528 * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
9529 bits, a C conformant malloc implementation has to provide.
9530 * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
9531
9532 2008-07-19 Joseph Myers <joseph@codesourcery.com>
9533
9534 PR target/36780
9535 PR target/36827
9536 * reload.c (find_reloads_subreg_address): Only reload address if
9537 reloaded == 0, not for reloaded != 1.
9538
9539 Revert:
9540 2008-07-16 Joseph Myers <joseph@codesourcery.com>
9541 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
9542 (m32c_legitimate_address_p): Handle "++rii" addresses created by
9543 m32c_legitimize_reload_address.
9544
9545 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
9546 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
9547 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
9548
9549 2008-07-19 Olivier Hainque <hainque@adacore.com>
9550
9551 * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
9552 argument, saying whether nested array are to be collapsed
9553 into a single array type DIE with multiple subscripts.
9554 (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
9555 issues, centralize the nested array types collapsing control and
9556 disable the transformation for Ada.
9557
9558 2008-07-18 Uros Bizjak <ubizjak@gmail.com>
9559
9560 PR target/36786
9561 * config/i386/i386.md (x86_64_shift_adj_1): Rename from
9562 x86_64_shift_adj.
9563 (x86_64_shift_adj_2): New expander.
9564 (x86_64_shift_adj_3): Ditto.
9565 * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
9566 to split TImode operands.
9567 (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
9568 (ix86_split_lshr): Ditto.
9569
9570 2008-07-18 Kris Van Hees <kris.van.hees@oracle.com>
9571
9572 * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
9573 and __CHAR32_TYPE__.
9574 * c-typeck.c (digest_init): Support char16_t and char32_t.
9575 (set_nonincremental_init_from_string): Idem.
9576
9577 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
9578
9579 PR middle-end/36859
9580 * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
9581 PREFERRED_STACK_BOUNDARY.
9582 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
9583
9584 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
9585
9586 PR middle-end/36858
9587 * function.c (locate_and_pad_parm): Cap boundary earlier.
9588
9589 2008-07-17 Julian Brown <julian@codesourcery.com>
9590
9591 * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
9592 no-op for targets which don't use DLLs.
9593
9594 2008-07-17 Martin Jambor <mjambor@suse.cz>
9595
9596 * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
9597 that nodes are relevant by examining the node->analyzed flag.
9598 (ipcp_init_stage): Check which nodes are relevant, assert that the
9599 relevant ones are also required.
9600 (ipcp_propagate_stage): Check on the side arrays are properly
9601 allocated.
9602 (ipcp_print_all_jump_functions): Make sure not to touch any node
9603 that is not analyzed or an edge that does not have a corresponding
9604 entry in the on-the-side vectors.
9605 (ipcp_function_scale_print): Likewise.
9606 (ipcp_update_callgraph): Check that the node is relevant.
9607 (ipcp_insert_stage): Check that the node is relevant. Check there is
9608 an info for every node and edge.
9609 * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
9610 (ipa_print_all_tree_maps): Likewise and a new variable info.
9611 (ipa_print_all_params_modified): Likewise.
9612 * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
9613
9614 2008-07-17 Roman Zippel <zippel@linux-m68k.org>
9615
9616 PR target/25343
9617 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
9618
9619 2008-07-17 Paolo Bonzini <bonzini@gnu.org>
9620
9621 PR rtl-optimization/36753
9622 * fwprop.c (use_killed_between): Don't shortcut
9623 single-definition global registers.
9624
9625 2008-07-16 Jan Hubicka <jh@suse.cz>
9626
9627 * cgraph.h (varpool_empty_needed_queue): Declare.
9628 * cgraphunit.c (output_in_order): Mark all variables as needed;
9629 empty the queue.
9630 * varpool.c (varpool_assemble_node): Update debug queue.
9631 (varpool_assemble_pending_decls): Don't do it here.
9632 (varpool_empty_needed_queue): New function.
9633
9634 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9635
9636 * recog.c (peephole2_optimize): Fix formatting.
9637
9638 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9639
9640 * c-pch.c (get_ident): Avoid C++ keywords.
9641 * combine-stack-adj.c (single_set_for_csa): Likewise.
9642 * final.c (asm_insn_count, final_scan_insn, alter_subreg,
9643 output_asm_insn): Likewise.
9644 * reload.c (push_secondary_reload, find_reusable_reload,
9645 push_reload, combine_reloads, find_reloads,
9646 debug_reload_to_stream): Likewise.
9647 * reload.h (struct reload): Likewise.
9648 * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
9649 allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
9650 emit_output_reload_insns): Likewise.
9651 * targhooks.c (default_secondary_reload): Likewise.
9652 * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
9653
9654 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9655
9656 * recog.c (validate_change_1, validate_change,
9657 validate_unshare_change, validate_replace_rtx_1, struct
9658 funny_match, constrain_operands, peephole2_optimize): Avoid C++
9659 keywords.
9660 * reload.c (push_secondary_reload, secondary_reload_class,
9661 scratch_reload_class, find_valid_class, find_reusable_reload,
9662 push_reload, find_dummy_reload, find_reloads_address_1,
9663 find_reloads_address_part, find_equiv_reg): Likewise.
9664 * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
9665 choose_reload_regs): Likewise.
9666 * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
9667 Likewise.
9668 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
9669 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
9670 * sched-rgn.c (concat_INSN_LIST): Likewise.
9671 * stor-layout.c (mode_for_size, mode_for_size_tree,
9672 smallest_mode_for_size): Likewise.
9673
9674 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9675
9676 * cfg.c (dump_reg_info): Avoid C++ keywords.
9677 * dwarf2asm.c (dw2_force_const_mem,
9678 dw2_asm_output_encoded_addr_rtx): Likewise.
9679 * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
9680 * expmed.c (expand_shift): Likewise.
9681 * global.c (find_reg): Likewise.
9682 * graph.c (draw_edge): Likewise.
9683 * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
9684 * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
9685 widen_clz, widen_bswap, expand_parity, expand_unop,
9686 emit_cmp_and_jump_insn_1): Likewise.
9687 * postreload.c (reload_cse_simplify_operands): Likewise.
9688 * ra.h (add_neighbor): Likewise.
9689 * reg-stack.c (remove_regno_note, change_stack): Likewise.
9690 * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
9691 record_reg_classes, copy_cost, record_address_regs,
9692 invalid_mode_change_p): Likewise.
9693 * regrename.c (regrename_optimize, scan_rtx_reg,
9694 dump_def_use_chain, find_oldest_value_reg,
9695 replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
9696
9697 2008-07-16 David Edelsohn <edelsohn@gnu.org>
9698
9699 * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
9700 MASK_POWERPC64 for power4 in previous commit.
9701
9702 2008-07-16 Olivier Hainque <hainque@adacore.com>
9703
9704 * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
9705 instead of bare conversion to cast const-ness away.
9706
9707 2008-07-16 Anatoly Sokolov <aesok@post.ru>
9708
9709 * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
9710 XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
9711 * config/xtensa/xtensa.c (xtensa_function_value): New function.
9712 (TARGET_FUNCTION_VALUE): Define.
9713
9714 2008-07-16 David Edelsohn <edelsohn@gnu.org>
9715
9716 * config/rs6000/rs6000.c (processor_target_table): Add
9717 MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
9718
9719 2008-07-16 Joseph Myers <joseph@codesourcery.com>
9720
9721 PR target/36827
9722 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
9723 (m32c_legitimate_address_p): Handle "++rii" addresses created by
9724 m32c_legitimize_reload_address.
9725
9726 2007-07-16 Rafael Ãvila de Espíndola <espindola@google.com>
9727
9728 * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
9729 DECL_IN_SYSTEM_HEADER in sync.
9730
9731 2008-07-15 Daniel Berlin <dberlin@dberlin.org>
9732
9733 * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
9734 * tree-ssa-pre.c (pre_expr_eq): Ditto
9735 (get_constant_for_value_id): Take a type as an argument.
9736 (fully_constant_expression): Pass in type.
9737 (find_or_generate_expression): Short circuit constant case.
9738 (create_expression_by_pieces): Remove special casing of
9739 pointer_plus.
9740 (do_regular_insertion): Short circuit constant case.
9741 (do_partial_partial_insertion): Ditto.
9742
9743 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
9744
9745 PR target/36782
9746 * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
9747
9748 2008-07-15 Bob Wilson <bob.wilson@acm.org>
9749
9750 * config/xtensa/libgcc-xtensa.ver: New file.
9751 * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
9752
9753 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9754
9755 * df-problems.c (df_set_note): Avoid C++ keywords.
9756 * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
9757 * dse.c (record_store, remove_useless_values): Likewise.
9758 * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
9759 gen_reg_rtx_offset, operand_subword, change_address_1,
9760 change_address, adjust_address_1, offset_address,
9761 widen_memory_access, emit_copy_of_insn_after): Likewise.
9762 * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
9763 * fwprop.c (should_replace_address, propagate_rtx_1,
9764 propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
9765 Likewise.
9766 * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
9767 gcse_emit_move_after, update_ld_motion_stores): Likewise.
9768 * lcm.c (compute_insert_delete, pre_edge_lcm,
9769 compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
9770 * lower-subreg.c (resolve_reg_notes): Likewise.
9771 * mode-switching.c (optimize_mode_switching): Likewise.
9772
9773 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9774
9775 * bt-load.c (add_btr_def, migrate_btr_def,
9776 branch_target_load_optimize): Avoid C++ keywords.
9777 * caller-save.c (insert_restore, insert_save, insert_one_insn):
9778 Likewise.
9779 * combine.c (subst, simplify_set, make_extraction,
9780 make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
9781 * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
9782 fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
9783
9784 2008-07-15 Richard Guenther <rguenther@suse.de>
9785
9786 PR middle-end/36369
9787 * c-common.c (strict_aliasing_warning): Do not warn for
9788 TYPE_REF_CAN_ALIAS_ALL pointers.
9789 (c_common_get_alias_set): may_alias types are not special.
9790 * tree.c (build_pointer_type_for_mode): Look up the may_alias
9791 attribute and set can_ref_all accordingly.
9792 (build_reference_type_for_mode): Likewise.
9793 * doc/extend.texi (may_alias): Clarify.
9794
9795 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
9796
9797 PR target/36780
9798 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
9799 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
9800
9801 2008-07-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
9802
9803 PR target/31568
9804 * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
9805 gcc_assert, instead call output_operand_lossage.
9806
9807 2008-07-15 Kai Tietz <kai.tietz@onevision.com>
9808
9809 * builtins.c (std_canonical_va_list): Treat structure based
9810 va_list types.
9811
9812 2008-07-15 Ben Elliston <bje@au.ibm.com>
9813
9814 * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
9815
9816 2007-07-14 Rafael Ãvila de Espíndola <espindola@google.com>
9817
9818 * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
9819 is set.
9820
9821 2008-07-14 Jan Hubicka <jh@suse.cz>
9822
9823 * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
9824 * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
9825 fix predicates and constraints.
9826 * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
9827 * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
9828
9829 2008-07-14 Doug Kwan <dougkwan@google.com>
9830
9831 * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
9832 additional option file arm/eabi.opt.
9833 * config/arm/eabi.h (File): New configuration file for EABI targets.
9834 * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
9835 SUBSUBTARGET_EXTRA_SPECS.
9836 (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
9837 * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
9838 from STARTFILE_SPEC so that it can be referenced in an override.
9839 (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
9840 (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
9841 can be referenced in an override.
9842 (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
9843 * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
9844 so that it can be referenced in an override.
9845 (LINK_SPEC): Use BPABI_LINK_SPEC.
9846 * config/arm/eabi.opt (File): New.
9847
9848 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9849
9850 * Makefile.in (TARGET_DEF_H): Add targhooks.h.
9851 (FIXED_VALUE_H): New variable.
9852 (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
9853 input.h, fixed-value.h.
9854 (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
9855 (BASIC_BLOCK_H): Use $(BITMAP_H).
9856 (FUNCTION_H): Add varray.h.
9857 (IPA_REFERENCE_H): Use $(BITMAP_H).
9858 (CGRAPH_H): Add $(BASIC_BLOCK_H).
9859 (DF_H): Use $(BITMAP_H).
9860 (GGC_H): Add statistics.h.
9861 (INSN_ADDR_H): New.
9862 (INSN_ATTR_H): Use it.
9863 (SYSTEM_H): Add safe-ctype.h, filenames.h.
9864 (INPUT_H): New.
9865 (SYMTAB_H): Add $(OBSTACK_H).
9866 (CPP_INTERNAL_H): New.
9867 (TREE_DUMP_H): Add tree-pass.h.
9868 (TREE_FLOW_H): Use $(BITMAP_H)
9869 (PRETTY_PRINT_H): Use $(INPUT_H).
9870 (EBITMAP_H): Rename from typo-ed EBIMAP_H.
9871 (GSTAB_H): New.
9872 (BITMAP_H): New.
9873 (many object files): Fix lots of header dependencies throughout.
9874
9875 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9876
9877 * Makefile.in (write_entries_to_file, write_entries_to_file_split):
9878 New macros.
9879 (s-gtyp-input): Use them to write tmp-gi.list.
9880 (echo_to_gi.list): Remove.
9881
9882 2008-07-14 Richard Guenther <rguenther@suse.de>
9883
9884 * tree-ssa-sccvn.c (pre_info): Remove.
9885 (switch_to_PRE_table): Likewise.
9886 (free_scc_vn): Do not clear SSA_NAME_VALUE. Do not free pre_info.
9887 (set_hashtable_value_ids): Do not create value-ids for the
9888 optimistic tables.
9889 (run_scc_vn): Remove double test. Remove bogus special-case
9890 in value-number printing.
9891 * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
9892 * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
9893 SSA_NAME_VALUE.
9894 * tree-flow-inline.h (get_value_handle): Remove.
9895 * tree-flow.h (get_value_handle): Remove.
9896
9897 2008-07-14 Martin Jambor <mjambor@suse.cz>
9898
9899 * tree-switch-conversion.c (gen_inbound_check): Make sure the type
9900 in which we generate arithmetics is not a subrange.
9901
9902 2008-07-14 Martin Jambor <mjambor@suse.cz>
9903
9904 * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
9905
9906 2008-07-14 Richard Guenther <rguenther@suse.de>
9907
9908 * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
9909
9910 2008-07-14 Andreas Krebbel <krebbel1@de.ibm.com>
9911
9912 PR target/36745
9913 * config/s390/s390.c: (s390_secondary_reload): Add a secondary
9914 reload for symbol refs moved to r0 with -fPIC.
9915 (legitimize_pic_address): Use the target register as temporary
9916 reg if possible.
9917 (emit_symbolic_move): Adjust comment.
9918 * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
9919 New expanders.
9920
9921 2008-07-14 Ben Elliston <bje@au.ibm.com>
9922
9923 * c-common.h (C_CPP_HASHNODE): New macro.
9924 * coretypes.h (struct cpp_token): Forward declare.
9925 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
9926 the context-sensitive keyword method.
9927 * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
9928 __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
9929 expand_bool_pixel): New.
9930 (altivec_categorize_keyword): New function.
9931 (init_vector_keywords): New function.
9932 (rs6000_macro_to_expand): Likewise.
9933 (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
9934 compiling an ISO C dialect.
9935
9936 2008-07-13 Daniel Berlin <dberlin@dberlin.org>
9937
9938 * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
9939 (create_expression_by_pieces): Fix typo.
9940 (do_regular_insertion): Use debug counter here too.
9941
9942 2008-07-14 Hans-Peter Nilsson <hp@axis.com>
9943
9944 PR target/35492.
9945 * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
9946 CONST_OK_FOR_LETTER_P. All port-local users changed.
9947 (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
9948 implement Kp matching power-of-two.
9949 (CONSTRAINT_LEN): Define to match.
9950 * config/cris/cris.md: Replace all use of constraint K with Kc.
9951 ("*btst*): Use Kp for operand 0 of last alternative.
9952
9953 2008-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9954
9955 PR testsuite/36440
9956 * tree-call-cdce.c (check_target_format): Accept MIPS single, double
9957 and quad formats.
9958
9959 2008-07-13 Jan Hubicka <jh@suse.cz>
9960
9961 * tree.c (decl_assembler_name_equal): Expect assembler name of decl
9962 to be mangled too.
9963
9964 2008-07-13 Richard Guenther <rguenther@suse.de>
9965
9966 PR middle-end/36811
9967 * langhooks.c (lhd_print_error_function): Deal with recursive
9968 BLOCK trees.
9969
9970 2008-07-12 Jan Hubicka <jh@suse.cz>
9971
9972 * cgraph.c (assembler_name_hash): New static var.
9973 (hash_node_by_assembler_name, eq_assembler_name): New.
9974 (cgraph_node_for_asm): Use hashtable.
9975 (cgraph_remove_node): Maintain hashtable.
9976 (change_decl_assembler_name): Sanity check that names are not changing
9977 after aliasing was processed.
9978 * cgraph.h (varpoon_node): Add next GGC marker.
9979 * tree.c (decl_assembler_name_equal): Constify.
9980 (decl_assembler_name_hash): New.
9981 * tree.h (decl_assembler_name_equal): Constify.
9982 (decl_assembler_name_hash): Update.
9983
9984 2008-07-12 David Daney <ddaney@avtrex.com>
9985
9986 * config/mips/driver-native.c (host_detect_local_cpu): Handle
9987 sb1 and r5000 cpus.
9988
9989 2008-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9990
9991 * doc/md.texi: Document the MIPS "v" constraint.
9992 * config/mips/mips.h (reg_class): Revert last change.
9993 (REG_CLASS_NAMES): Likewise.
9994 (REG_CLASS_CONTENTS): Likewise.
9995 * config/mips/mips.c (mips_regno_to_class): Likewise.
9996 * config/mips/constraints.md (v): Likewise, but add documentation.
9997 Add a comment to say that this constraint should not be used in
9998 gcc code.
9999
10000 2008-07-11 DJ Delorie <dj@redhat.com>
10001
10002 * config/h8300/h8300.md (length): Fix branch offset limit.
10003
10004 2008-07-11 Anatoly Sokolov <aesok@post.ru>
10005
10006 * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
10007 * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
10008 (avr_hard_regno_scratch_ok): New function.
10009 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
10010 * config/avr/avr.md (all peepholes that request a scratch register):
10011 Remove avr_peep2_scratch_safe use.
10012
10013 2008-07-11 Tom Tromey <tromey@redhat.com>
10014 Ian Lance Taylor <iant@google.com>
10015
10016 * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
10017 (struct c_common_resword): Define.
10018 (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
10019 (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
10020 (c_common_reswords, num_c_common_reswords): Declare.
10021 * c-common.c (c_common_reswords): New global const array.
10022 (num_c_common_reswords): New const int.
10023 * c-parser.c (struct resword, reswords): Don't define.
10024 (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
10025 (c_parse_init): Clarify mask code. Use c_common_reswords rather
10026 than reswords. If warning about C++ keywords, give them a special
10027 RID code.
10028 (c_lex_one_token): Warn about C++ keywords. Call
10029 objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
10030 (c_parser_external_declaration): Look for RID_xxx rather than
10031 RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
10032 (c_parser_statement_after_labels): Likewise.
10033 (c_parser_objc_class_instance_variables): Likewise.
10034 (c_parser_objc_class_declaration): Likewise.
10035 (c_parser_objc_try_catch_statement): Likewise.
10036 * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
10037 (declspecs_add_type): Likewise.
10038
10039 2008-07-11 Angelo Graziosi <angelo.graziosi@alice.it>
10040
10041 * ggc-page.c (alloc_page):
10042 Substituting xmalloc, xcalloc with
10043 XNEWVEC and XCNEWVAR macros which add the
10044 needed casts.
10045
10046 2008-07-11 Richard Guenther <rguenther@suse.de>
10047
10048 PR tree-optimization/36765
10049 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
10050 aliases from HEAP vars to SMTs.
10051
10052 2008-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10053
10054 * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
10055 * configure.ac (loose_warn): Move -Wc++-compat from here...
10056 (strict_warn): ...to here.
10057 * configure: Regenerate.
10058
10059 2008-07-10 Joseph Myers <joseph@codesourcery.com>
10060
10061 * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
10062 i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
10063 m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
10064 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
10065 excluding more specific h8300-*-* and sh-*-* targets.
10066
10067 2008-07-10 Daniel Berlin <dberlin@dberlin.org>
10068
10069 * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
10070 (eliminate): Ditto.
10071 (execute_pre): Call loop_optimizer_finalize in early exit.
10072
10073 2008-07-10 Jakub Jelinek <jakub@redhat.com>
10074
10075 PR middle-end/36790
10076 * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
10077 uids in the bitmap, not just VAR_DECL uids.
10078
10079 PR rtl-optimization/36419
10080 * combine-stack-adj.c (adjust_frame_related_expr): New function.
10081 (combine_stack_adjustments_for_block): Call it if needed. Delete
10082 correct insn.
10083 * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
10084 DW_CFA_GNU_args_size if CSA pass merged some adjustments into
10085 prologue sp adjustment.
10086
10087 2008-07-10 Peter Maydell <pmaydell@chiark.greenend.org.uk>
10088
10089 PR other/28322
10090 * opts.c (print_ignored_options): Report postponed diagnostics for
10091 unknown -Wno-* options as warnings, not errors.
10092 (postpone_unknown_option_error): Renamed to...
10093 (postpone_unknown_option_warning): ... this.
10094
10095 2008-07-09 Doug Kwan <dougkwan@google.com>
10096
10097 Revert:
10098 2008-07-08 Doug Kwan <dougkwan@google.com>
10099
10100 * config/arm/arm.opt (mandroid): New option.
10101 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
10102 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
10103 (CC1_SPEC): Same.
10104 (CC1PLUS_SPEC): Same.
10105 (LIB_SPEC): Same.
10106 (STARTFILE_SPEC): Same.
10107 (ENDFILE_SPEC): Same.
10108 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
10109 used.
10110
10111 2008-07-09 Richard Sandiford <rdsandiford@googlemail.com>
10112
10113 PR target/35802
10114 * config/mips/mips.h (reg_class): Remove V1_REG.
10115 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
10116 * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
10117 instead of V1_REGS.
10118 (mips_get_tp): New function.
10119 (mips_legitimize_tls_address): Use it.
10120 * config/mips/constraints.md (v): Delete.
10121 * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
10122 (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
10123 After reload, split into a move and ...
10124 (*tls_get_tp_<mode>_split): ...this new instruction.
10125
10126 2008-07-09 David Daney <ddaney@avtrex.com>
10127
10128 * config/mips/driver-native.c: Include coretypes.h and tm.h.
10129
10130 2008-07-09 Jakub Jelinek <jakub@redhat.com>
10131
10132 * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
10133 (push_gimplify_context): Don't allocate temp_htab nor c itself here.
10134 Add c argument.
10135 (pop_gimplify_context): Check c->temp_htab instead of optimize whether
10136 htab_delete should be called. Don't free c.
10137 (lookup_tmp_var): Create temp_htab lazily.
10138 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
10139 gimplify_body, force_gimple_operand): Adjust push_gimplify_context
10140 callers.
10141 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
10142 lower_omp_ordered, lower_omp_critical, lower_omp_for,
10143 create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
10144 * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
10145 * tree-sra.c (generate_element_init): Likewise.
10146 * tree-mudflap.c (execute_mudflap_function_ops,
10147 execute_mudflap_function_decls): Likewise.
10148 * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
10149 * tree-gimple.h (struct gimplify_ctx): New type.
10150 (push_gimplify_context): Adjust prototype.
10151
10152 2008-07-09 Daniel Berlin <dberlin@dberlin.org>
10153
10154 * tree-ssa-pre.c (phi_translate_1): Update placement of
10155 add_to_value calls.
10156
10157 2008-07-09 Anatoly Sokolov <aesok@post.ru>
10158
10159 * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
10160 * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
10161 (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
10162 * targhooks.c (default_hard_regno_scratch_ok): New function.
10163 * targhooks.h (default_hard_regno_scratch_ok): Declare function.
10164 * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
10165 * recog.c: Include "target.h".
10166 (peep2_find_free_register): Add check for global regs. Add target
10167 specific check.
10168 * Makefile.in (recog.o): Depend on target.h.
10169
10170 2008-07-09 Kaz Kojima <kkojima@gcc.gnu.org>
10171
10172 * config/sh/sh.c (sh_canonical_va_list_type): New.
10173 (TARGET_CANONICAL_VA_LIST_TYPE): Define.
10174
10175 2008-07-09 Raksit Ashok <raksit@google.com>
10176
10177 * doc/invoke.texi (Option Summary): Mention new option
10178 -Wdisallowed-function-list=...
10179 (Warning Options): Document -Wdisallowed-function-list=...
10180 * common.opt (Wdisallowed-function-list=): New flag.
10181 * flags.h (warn_disallowed_functions): External definition of new
10182 boolean warning flag.
10183 (warn_if_disallowed_function_p): Declare new function.
10184 * opts.c (warning_disallowed_functions): New static variable.
10185 (warn_disallowed_functions): New boolean warning flag.
10186 (warn_if_disallowed_function_p): New function.
10187 (add_comma_separated_to_vector): Rename
10188 add_instrument_functions_exclude_list to this.
10189 (common_handle_option): Handle new option. Rename calls to
10190 add_instrument_functions_exclude_list into calls to
10191 add_comma_separated_to_vector.
10192 * c-parser.c (c_parser_postfix_expression_after_primary): New warning
10193 based on flag warn_disallowed_functions.
10194
10195 2008-07-09 Christian Bruel <christian.bruel@st.com>
10196
10197 * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
10198 instead of get_attr_length.
10199
10200 2008-07-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10201
10202 * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
10203 keywords.
10204 * genemit.c (gen_insn): Likewise.
10205 * gengtype.c (note_def_vec): Likewise.
10206 * gengtype.h (note_def_vec): Likewise.
10207 * genoutput.c (struct data, output_insn_data, process_template,
10208 gen_expand, gen_split, note_constraint): Likewise.
10209 * genrecog.c (new_decision, add_to_sequence, factor_tests,
10210 make_insn_sequence): Likewise.
10211 * gensupport.c (record_insn_name): Likewise.
10212
10213 2008-07-08 Doug Kwan <dougkwan@google.com>
10214
10215 * config/arm/arm.opt (mandroid): New option.
10216 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
10217 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
10218 (CC1_SPEC): Same.
10219 (CC1PLUS_SPEC): Same.
10220 (LIB_SPEC): Same.
10221 (STARTFILE_SPEC): Same.
10222 (ENDFILE_SPEC): Same.
10223 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
10224 used.
10225
10226 2008-07-08 Raksit Ashok <raksit@google.com>
10227
10228 * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
10229 (set_storage_via_setmem): Fix expected_align parameter.
10230 * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
10231 missing from the list.
10232 * doc/md.texi (movmem): Explicitly state that expected alignment is
10233 to be expressed in bytes.
10234 (setmem): Explicitly state that expected alignment is to be expressed
10235 in bytes.
10236
10237 2008-07-08 Joseph Myers <joseph@codesourcery.com>
10238
10239 * reload.c (find_reloads_subreg_address): Do not require validity
10240 of address in original mode before reloading address.
10241
10242 2008-07-07 Tianwei Sheng <tianweis@google.com>
10243
10244 * df-core.c (df_remove_problem): Adjust the access to avoid out of
10245 bounds array access.
10246
10247 2008-07-08 Jakub Jelinek <jakub@redhat.com>
10248
10249 * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
10250
10251 2008-07-05 Daniel Berlin <dberlin@dberlin.org>
10252
10253 Fix PR tree-optimization/23455
10254 Fix PR tree-optimization/35286
10255 Fix PR tree-optimization/35287
10256 * Makefile.in (OBJS-common): Remove tree-vn.o.
10257 (tree-vn.o): Remove.
10258 * dbgcnt.def: Add treepre_insert debug counter.
10259 * gcc/tree-flow.h (add_to_value): Updated for other changes.
10260 (debug_value_expressions): Ditto.
10261 (print_value_expressions): Ditto.
10262 * tree-pretty-print.c (dump_generic_node): Updated for
10263 VALUE_HANDLE removal.
10264 * tree-ssa-dom.c (record_equality): Ditto.
10265 (cprop_operand): Ditto.
10266 (lookup_avail_expr): Ditto.
10267 * tree-ssa-threadedge.c
10268 (record_temporary_equivalences_from_stmts_at_dest): Ditto.
10269 (simplify_control_stmt_condition): Ditto.
10270 * tree.c (tree_code_size): Ditto.
10271 (tree_node_structure): Ditto.
10272 (iterative_hash_expr): Ditto.
10273 * tree.def: Ditto.
10274 * tree.h (VALUE_HANDLE_ID): Ditto.
10275 (VALUE_HANDLE_EXPR_SET): Ditto.
10276 (struct tree_value_handle): Ditto.
10277 (union tree_node): Ditto.
10278 * treestruct.def: Ditto.
10279 * tree-vn.c: Removed.
10280 * tree-ssa-pre.c: Rewritten entirely.
10281 * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
10282 (constant_value_ids): Ditto.
10283 (vn_nary_op_t): Moved to header.
10284 (vn_phi_t): Ditto.
10285 (vn_reference_op_t): Ditto
10286 (vn_reference_t): Ditto.
10287 (next_value_id): New variable.
10288 (VN_INFO): Add an assert.
10289 (vn_constant_eq): New function.
10290 (vn_constant_hash): Ditto.
10291 (get_or_alloc_constant_value_id): Ditto.
10292 (value_id_constant_p): Ditto.
10293 (vn_reference_compute_hash): De-staticify.
10294 (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
10295 Disable some code with a FIXME. Remove VALUE_HANDLE use.
10296 (valueize_refs): Update opcode if it changes from ssa name to constant.
10297 (vn_reference_lookup_1): Add new argument.
10298 (vn_reference_lookup): Ditto.
10299 (vn_reference_lookup_pieces): New function.
10300 (vn_reference_insert): Add return type. Modify to deal with value ids.
10301 (vn_reference_insert_pieces): New function.
10302 (vn_nary_op_compute_hash): De-staticify.
10303 (vn_nary_op_eq): Ditto.
10304 (vn_nary_op_lookup_pieces): New function.
10305 (vn_nary_op_lookup): Add new argument.
10306 (vn_nary_op_insert_pieces): New function.
10307 (vn_nary_op_insert): Add return type. Modify to deal with value ids.
10308 (vn_phi_insert): Ditto.
10309 (visit_unary_op): Update for callee changes.
10310 (visit_binary_op): Ditto.
10311 (visit_reference_op_load): Ditto.
10312 (visit_reference_op_store): Ditto.
10313 (init_scc_vn): Init next_value_id, constant_to_value_id and
10314 constant_value_ids.
10315 (free_scc_vn): Free them.
10316 (set_hashtable_value_ids): New function.
10317 (run_scc_vn): Use it.
10318 (get_max_value_id): New function.
10319 (get_next_value_id): Ditto.
10320 (expressions_equal_p): Moved from tree-vn.c
10321 (sort_vuses): Ditto.
10322 (sort_vuses_heap): Ditto.
10323 * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
10324 above).
10325 * tree.c (iterative_hash_hashval_t): Made non-static
10326 * tree.h (iterative_hash_hashval_t): Declare it.
10327
10328 2008-07-08 Martin Jambor <mjambor@suse.cz>
10329
10330 * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
10331 instead of ipa_create_node_params.
10332 (ipcp_driver): Allocate infos with ipa_check_create_node_params and
10333 ipa_check_create_edge_args, free them with
10334 free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
10335
10336 * ipa-prop.c: Include flags.h and tree-inline.h.
10337 (ipa_node_params_vector): New variable.
10338 (ipa_edge_args_vector): New variable.
10339 (edge_removal_hook_holder): New variable.
10340 (node_removal_hook_holder): New variable.
10341 (edge_duplication_hook_holder): New variable.
10342 (node_duplication_hook_holder): New variable.
10343 (ipa_detect_param_modifications): Check for presence of modified flags.
10344 (ipa_compute_jump_functions): Check for presence of jump functions.
10345 (ipa_free_edge_args_substructures): New function.
10346 (ipa_create_node_params): Removed.
10347 (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
10348 (ipa_free_node_params_substructures): New function.
10349 (ipa_free_all_node_params): Changed to deallocate the on-the-side
10350 vector.
10351 (ipa_edge_removal_hook): New function.
10352 (ipa_node_removal_hook): New function.
10353 (duplicate_array): New function.
10354 (ipa_edge_duplication_hook): New function.
10355 (ipa_node_duplication_hook): New function.
10356 (ipa_register_cgraph_hooks): New function.
10357 (ipa_unregister_cgraph_hooks): New function.
10358 (free_all_ipa_structures_after_ipa_cp): New function.
10359
10360 * ipa-prop.h: Include vec.h.
10361 (ipa_node_params_t): New typedef with vector types for it.
10362 (ipa_edge_args_t): New typedef with vector types for it.
10363 (IPA_NODE_REF): Changed to access an on-the-side vector.
10364 (IPA_EDGE_REF): Changed to access an on-the-side vector.
10365 (ipa_check_create_node_params): New function.
10366 (ipa_check_create_edge_args): New function.
10367
10368 * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h. Converted
10369 all users.
10370
10371 2008-07-07 Tom Tromey <tromey@redhat.com>
10372
10373 * configure, config.in: Rebuilt.
10374 * configure.ac: Don't check for scandir or alphasort.
10375
10376 2008-07-07 Joseph Myers <joseph@codesourcery.com>
10377
10378 * config/arm/arm.c (arm_init_neon_builtins): Register built-in
10379 types immediately after creating them.
10380
10381 2008-07-07 Joseph Myers <joseph@codesourcery.com>
10382
10383 * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
10384
10385 2008-07-07 Fernando Pereira <fernando@cs.ucla.edu>
10386
10387 * tree-ssa-structalias.c (compute_points_to_sets): Add call to
10388 dump_constraint_graph.
10389 (dump_constraint_edge): New function.
10390 (dump_constraint_graph): New function.
10391 (debug_constraint_graph): New function.
10392 (dump_constraint): Removed useless comparison.
10393 * tree-ssa-structalias.h (dump_constraint_edge): Declare.
10394 (dump_constraint_graph): Declare.
10395 (debug_constraint_graph): Declare.
10396 * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
10397
10398 2008-07-07 Kai Tietz <kai.tietz@onevision.com>
10399
10400 * config/i386/i386.c (is_va_list_char_pointer): New.
10401 (ix86_va_start): Replace compare with ms_va_list_type_node
10402 by is_va_list_char_pointer.
10403 (ix86_gimplify_va_arg): Likewise.
10404
10405 2008-07-07 Martin Jambor <mjambor@suse.cz>
10406
10407 * cgraph.c (cgraph_edge_max_uid): New variable.
10408 (struct cgraph_edge_hook_list): New type.
10409 (struct cgraph_node_hook_list): New type.
10410 (struct cgraph_2edge_hook_list): New type.
10411 (struct cgraph_2node_hook_list): New type.
10412 (first_cgraph_edge_removal_hook): New variable.
10413 (first_cgraph_node_removal_hook): New variable.
10414 (first_cgraph_edge_duplicated_hook): New variable.
10415 (first_cgraph_node_duplicated_hook): New variable.
10416 (cgraph_add_edge_removal_hook): New function.
10417 (cgraph_remove_edge_removal_hook): New function.
10418 (cgraph_call_edge_removal_hooks): New function.
10419 (cgraph_add_node_removal_hook): New function.
10420 (cgraph_remove_node_removal_hook): New function.
10421 (cgraph_call_node_removal_hooks): New function.
10422 (cgraph_add_edge_duplication_hook): New function.
10423 (cgraph_remove_edge_duplication_hook): New function.
10424 (cgraph_call_edge_duplication_hooks): New function.
10425 (cgraph_add_node_duplication_hook): New function.
10426 (cgraph_remove_node_duplication_hook): New function.
10427 (cgraph_call_node_duplication_hooks): New function.
10428 (cgraph_create_edge): Assign to edge uid.
10429 (cgraph_remove_edge): Call edge removal hooks.
10430 (cgraph_node_remove_callees): Call edge removal hooks.
10431 (cgraph_node_remove_callers): Call edge removal hooks.
10432 (cgraph_remove_node): Call node removal hooks.
10433 (cgraph_clone_edge): Call edge duplication hooks.
10434 (cgraph_clone_node): Call node duplication hooks.
10435
10436 * cgraph.h (cgraph_edge): New field uid.
10437 (cgraph_edge_hook): New type.
10438 (cgraph_node_hook): New type.
10439 (cgraph_2edge_hook): New type.
10440 (cgraph_2node_hook): New type.
10441
10442 2008-07-07 Andreas Tobler <a.tobler@schweiz.org>
10443
10444 * config.in: Regenerate.
10445
10446 2008-07-07 Vladimir Prus <vladimir@codesourcery.com>
10447
10448 * gcc.c (print_sysroot): New.
10449 (option_map, display_help, process_command): Handle the
10450 -print-sysroot option.
10451 (main): Print the sysroot if requested.
10452 * doc/invoke.texi (Debugging Options): Document -print-sysroot.
10453
10454 2008-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10455
10456 PR target/34780
10457 * unwind-pe.h (size_of_encoded_value): add attribute unused.
10458
10459 2008-07-07 Daniel Jacobowitz <dan@codesourcery.com>
10460
10461 * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
10462 (assign_parm_setup_block_p): Also check mode of entry_parm.
10463
10464 2008-07-07 Richard Guenther <rguenther@suse.de>
10465
10466 * tree-ssa-structalias.h (set_used_smts): Remove.
10467 * tree-ssa-structalias.c (used_smts): Likewise.
10468 (set_used_smts): Likewise.
10469 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
10470 call to set_used_smts.
10471
10472 2008-07-07 Richard Guenther <rguenther@suse.de>
10473
10474 * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
10475 (new_var_info): Set it to false.
10476 (solution_set_add): Correctly handle pointers outside a var and
10477 inside a field.
10478 (type_safe): Treat variables with is_full_var properly.
10479 (do_sd_constraint): Likewise.
10480 (do_ds_constraint): Likewise.
10481 (process_constraint): Remove zeroing offset for !use_field_sensitive.
10482 (get_constraint_for_ptr_offset): New function.
10483 (get_constraint_for_component_ref): For addresses at least include
10484 the last field of the variable. Handle is_full_vars properly.
10485 (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
10486 (handle_ptr_arith): Remove.
10487 (find_func_aliases): Simplify assignment handling.
10488 (create_function_info_for): For parameter and result varinfos set
10489 is_full_var flag.
10490 (create_variable_info_for): Set is_full_var flag whenever we
10491 just created a single varinfo for a decl.
10492 (init_alias_vars): Initialize use_field_sensitive from
10493 max-fields-for-field-sensitive parameter.
10494
10495 2008-07-07 Richard Guenther <rguenther@suse.de>
10496
10497 PR tree-optimization/36713
10498 * tree-flow-inline.h (is_call_used): New function.
10499 * tree-nrv.c (dest_safe_for_nrv_p): Use it.
10500 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
10501 * tree-outof-ssa.c (create_temp): Set call-used flag if required.
10502
10503 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
10504
10505 * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
10506
10507 2008-07-07 Mark Shinwell <shinwell@codesourcery.com>
10508
10509 * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
10510
10511 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
10512 Nathan Sidwell <nathan@codesourcery.com>
10513
10514 * config.gcc (m68k-*-linux*): Add with_arch. Add sysroot-suffix.h
10515 to tm_file. Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
10516 tmake_file.
10517 * config/m68k/t-linux: New.
10518 * doc/install.texi: Document m68k-*-linux is now multilibbed by
10519 default.
10520
10521 2008-07-07 Nathan Sidwell <nathan@codesourcery.com>
10522
10523 * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
10524 * config/m68k/m68k-devices.def: Remove multilibs that only differ
10525 by MAC/EMAC.
10526
10527 2008-07-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10528
10529 * gcc.c (execute): Fix -Wc++-compat warning.
10530
10531 2008-07-06 H.J. Lu <hongjiu.lu@intel.com>
10532
10533 PR target/36720
10534 * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
10535 constant for little endian.
10536
10537 2008-07-06 Richard Sandiford <rdsandiford@googlemail.com>
10538
10539 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
10540 mips_base_mips16 instead of TARGET_MIPS16.
10541 (mips_base_mips16): Declare.
10542 * config/mips/mips.c (mips_base_mips16): Make global.
10543 (was_mips16_p): Remove GTY marker.
10544 (was_mips16_pch_p): New variable.
10545 (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
10546 (mips_override_options): Force to non-MIPS16 mode initially.
10547 Do not complain about MIPS16 PIC incompatibilities here.
10548 Only allow -mgpopt if -mexplicit-relocs is in force for
10549 non-MIPS16 code.
10550
10551 2008-07-06 Andreas Tobler <a.tobler@schweiz.org>
10552
10553 * configure.ac: Check for caddr_t, define to char * if not defined.
10554 * configure: Regenerate.
10555 * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
10556 (mmap_gt_pch_use_address): Likewise.
10557 * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
10558
10559 2008-07-06 Richard Guenther <rguenther@suse.de>
10560
10561 * tree-ssa-structalias.c (struct variable_info): Remove has_union.
10562 (new_var_info): Deal with it.
10563 (solution_set_add): Likewise.
10564 (bitpos_of_field): Make signed, fix.
10565 (struct fieldoff): Remove type and decl fields. Make size field
10566 unsigned HOST_WIDE_INT. Add has_unknown_size and may_have_pointers
10567 flags.
10568 (fieldoff_compare): Deal with it.
10569 (push_fields_onto_fieldstack): Remove has_union argument, glob
10570 adjacent non-pointer fields together.
10571 (create_function_info_for): Do not set has_union.
10572 (create_variable_info_for): Simplify.
10573
10574 2008-07-06 Kai Tietz <kai.tietz@onevision.com>
10575
10576 * config.gcc (extra_headers): Add cross-stdarg.h for target
10577 x86_64-*-* and i?86-*-*.
10578 * config/i386/cross-stdarg.h: New.
10579 * builtins.c (std_fn_abi_va_list): New.
10580 (std_canonical_va_list_type): New.
10581 (stabilize_va_list): Replace va_list_type_node use by
10582 mtarget.canonical_va_list_type.
10583 (gimplify_va_arg_expr): Likewise.
10584 (expand_builtin_va_copy): Replace va_list_type_node use by
10585 mtarget.fn_abi_va_list.
10586 * tree-sra.c (is_va_list_type): New helper.
10587 (decl_can_be_decomposed_p): Replace
10588 va_list_type_node use by is_va_list_type.
10589 * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
10590 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
10591 * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
10592 * config/i386/i386-protos.h (ix86_get_valist_type): New.
10593 (ix86_enum_va_list): New.
10594 * config/i386/i386.c (sysv_va_list_type_node): New.
10595 (ms_va_list_type_node): New.
10596 (ix86_function_type_abi): Remove sorry.
10597 (ix86_build_builtin_va_list_abi): New.
10598 (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
10599 for 64-bit targets.
10600 (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
10601 (ix86_init_builtins_va_builtins_abi): New.
10602 (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
10603 for 64-bit targets.
10604 (ix86_handle_abi_attribute): New.
10605 (attribute_spec): Add sysv_abi and ms_abi.
10606 (ix86_fn_abi_va_list): New.
10607 (ix86_canonical_va_list_type): New.
10608 (ix86_enum_va_list): New.
10609 (TARGET_FN_ABI_VA_LIST): New.
10610 (TARGET_CANONICAL_VA_LIST_TYPE): New.
10611 * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
10612 * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
10613 (TARGET_CANONICAL_VA_LIST_TYPE): New.
10614 (TARGET_ENUM_VA_LIST): New.
10615 * expr.h (std_fn_abi_va_list): New.
10616 (std_canonical_va_list_type): New.
10617 * target-def.h (TARGET_FN_ABI_VA_LIST): New.
10618 (TARGET_CANONICAL_VA_LIST_TYPE): New.
10619 (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
10620 TARGET_CANONICAL_VA_LIST_TYPE.
10621 * target.h (struct gcc_target): Add fn_abi_va_list hook
10622 and canonical_va_list_type hook.
10623
10624 2008-07-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
10625
10626 * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
10627 integral and pointer types.
10628
10629 2008-07-04 Roger Sayle <roger@eyesopen.com>
10630
10631 * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
10632 the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
10633
10634 2008-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
10635
10636 PR target/36684
10637 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
10638
10639 2008-07-04 Jakub Jelinek <jakub@redhat.com>
10640
10641 * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
10642 build_gimple_modify_stmt.
10643 (build_arrays, gen_inbound_check): Likewise. Force RHS to be
10644 gimple operand. Use fold_build* instead of build*.
10645
10646 2008-07-04 Richard Guenther <rguenther@suse.de>
10647
10648 * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
10649 (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
10650 properly to compute the reachability set if we do field-sensitive PTA.
10651 * invoke.texi (max-fields-for-field-sensitive): Document default.
10652 * opts.c (decode_options): Set max-fields-for-field-sensitive to
10653 100 for optimize >= 2.
10654
10655 2008-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10656
10657 * ggc-zone.c (lookup_page_table_if_allocated,
10658 set_page_table_entry, zone_find_object_size, alloc_small_page,
10659 alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
10660 new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
10661 -Wc++-compat and/or -Wcast-qual warnings.
10662
10663 2008-07-04 Alan Modra <amodra@bigpond.net.au>
10664
10665 PR target/36634
10666 * config/rs6000/rs6000.md (call, call_value): Don't arrange for
10667 pic_offset_table_rtx to be marked as used here.
10668 (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
10669 TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
10670 (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
10671 (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
10672 !TARGET_SECURE_PLT.
10673
10674 2008-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10675
10676 * alloc-pool.c (hash_descriptor, eq_descriptor,
10677 alloc_pool_descriptor): Fix -Wc++-compat warnings.
10678 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
10679 Likewise.
10680 * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
10681 loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
10682 final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
10683 * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
10684 Likewise.
10685
10686 2008-07-03 Eric Botcazou <ebotcazou@adacore.com>
10687
10688 * tree-flow.h (loop_only_exit_p): Declare.
10689 * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
10690 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
10691 the number of iterations if it is constant. Otherwise, if this is the
10692 only possible exit of the loop, use the conservative estimate on the
10693 number of iterations of the entire loop if available.
10694
10695 2008-07-03 Richard Sandiford <rdsandiford@googlemail.com>
10696
10697 * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
10698 * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
10699 Add synchronization functions.
10700 * config/sync.c: New file.
10701 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
10702 (LIBGCC_SYNC_CFLAGS): Likewise.
10703
10704 2008-07-03 Uros Bizjak <ubizjak@gmail.com>
10705
10706 PR target/36710
10707 * config/i386/i386.md (mode): Add TF to "mode" attribute.
10708 (*pushtf_sse): New insn pattern.
10709 (pushtf splitters): New splitters.
10710
10711 2008-07-03 Michael Meissner <gnu@the-meissners.org>
10712
10713 PR middle-end/35736
10714 * predict.c (build_predict_expr): Use void_type_node for the tree
10715 type, instead of NULL_TREE.
10716
10717 2008-07-03 H.J. Lu <hongjiu.lu@intel.com>
10718
10719 * config/i386/i386.c (contains_aligned_value_p): Return true
10720 for TCmode.
10721 (ix86_data_alignment): Align TCmode to 128bits.
10722 (ix86_local_alignment): Likewise.
10723
10724 2008-07-03 Andrew Haley <aph@redhat.com>
10725
10726 PR bootstrap/33304
10727 * vec.h (VEC_TA): New.
10728 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
10729 DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
10730 * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
10731 (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
10732 (C_COMMON_FIXED_TYPES): Remove first arg.
10733 (C_COMMON_FIXED_MODE_TYPES): Likewise.
10734 * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
10735 MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
10736 not to use empty macro arguments.
10737
10738 2008-07-02 Joseph Myers <joseph@codesourcery.com>
10739
10740 * config/alpha/vms_tramp.asm, config/arm/crti.asm,
10741 config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
10742 config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
10743 config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
10744 config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
10745 config/i386/sol2-gc1.asm, config/ia64/crti.asm,
10746 config/ia64/crtn.asm, config/m68hc11/larith.asm,
10747 config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
10748 config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
10749 config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
10750 config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
10751 config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
10752 config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
10753 config/rs6000/e500crtres64gpr.asm,
10754 config/rs6000/e500crtres64gprctr.asm,
10755 config/rs6000/e500crtrest32gpr.asm,
10756 config/rs6000/e500crtrest64gpr.asm,
10757 config/rs6000/e500crtresx32gpr.asm,
10758 config/rs6000/e500crtresx64gpr.asm,
10759 config/rs6000/e500crtsav32gpr.asm,
10760 config/rs6000/e500crtsav64gpr.asm,
10761 config/rs6000/e500crtsav64gprctr.asm,
10762 config/rs6000/e500crtsavg32gpr.asm,
10763 config/rs6000/e500crtsavg64gpr.asm,
10764 config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
10765 config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
10766 config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
10767 config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
10768 config/sparc/sol2-cn.asm: Remove .file directives.
10769
10770 2008-07-02 Richard Sandiford <rdsandiford@googlemail.com>
10771
10772 * resource.c (mark_referenced_resources): Look inside
10773 UNSPEC_VOLATILEs and ASM_INPUTs.
10774
10775 2008-07-02 Ian Lance Taylor <iant@google.com>
10776
10777 * rtlanal.c (add_reg_note): New function.
10778 * rtl.h (add_reg_note): Declare.
10779 * auto-inc-dec.c (attempt_change): Use add_reg_note.
10780 * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
10781 * builtins.c (expand_builtin_longjmp): Likewise.
10782 (expand_builtin_nonlocal_goto): Likewise.
10783 * calls.c (emit_call_1, expand_call): Likewise.
10784 * cfgexpand.c (add_reg_br_prob_note): Likewise.
10785 * cfglayout.c (fixup_reorder_chain): Likewise.
10786 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
10787 (commit_one_edge_insertion): Likewise.
10788 * combine.c (move_deaths, distribute_notes): Likewise.
10789 * df-problems.c (df_set_note): Likewise.
10790 * emit-rtl.c (link_cc0_insns, try_split): Likewise.
10791 (set_unique_reg_note): Likewise.
10792 (emit_copy_of_insn_after): Likewise.
10793 * expr.c (expand_expr_real): Likewise.
10794 * gcse.c (add_label_notes): Likewise.
10795 * haifa-sched.c (create_check_block_twin): Likewise.
10796 * jump.c (mark_jump_label_1): Likewise.
10797 * loop-doloop.c (add_test, doloop_modify): Likewise.
10798 * loop-unswitch.c (compare_and_jump_seq): Likewise.
10799 * lower-subreg.c (move_eh_region_note): Likewise.
10800 * optabs.c (emit_libcall_block): Likewise.
10801 * predict.c (predict_insn): Likewise.
10802 (combine_predictions_for_insn): Likewise.
10803 * recog.c (peephole2_optimize): Likewise.
10804 * regmove.c (try_auto_increment): Likewise.
10805 * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
10806 * reload.c (find_reloads): Likewise.
10807 * reload1.c (fixup_eh_region_note): Likewise.
10808 (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
10809 * reorg.c (delete_prior_computation): Likewise.
10810 (delete_computation, dbr_schedule): Likewise.
10811 * config/pa/pa.c (legitimize_pic_address): Likewise.
10812 * config/sh/sh.c (sh_reorg): Likewise.
10813
10814 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
10815
10816 PR target/36669
10817 * config/libgcc-glibc.ver: Add %exclude.
10818 * config/m32r/libgcc-glibc.ver: Likwise.
10819 * config/s390/libgcc-glibc.ver: Likwise.
10820 * config/sh/libgcc-glibc.ver: Likwise.
10821 * config/sparc/libgcc-sparc-glibc.ver: Likwise.
10822
10823 * config/i386/libgcc-glibc.ver: New.
10824
10825 * config/i386/libgcc-x86_64-glibc.ver: Removed.
10826
10827 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
10828
10829 * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
10830 from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
10831 i[34567]86-*-linux*, x86_64-*-linux*. Add
10832 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
10833 i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
10834 x86_64-*-linux*. Add i386/t-linux to tmake_file for
10835 i[34567]86-*-linux*, x86_64-*-linux*.
10836
10837 * libgcc-std.ver: Add empty GCC_4.4.0.
10838
10839 * mkmap-symver.awk: Support multiple versions per symbol.
10840
10841 * config/i386/i386.c (ix86_init_builtins): Always define
10842 __builtin_fabsq and __builtin_copysignq with fallbacks.
10843 (ix86_expand_builtin): Emit normal call for __builtin_fabsq
10844 and __builtin_copysignq if SSE2 isn't available.
10845
10846 * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
10847 (LIBGCC2_TF_CEXT): Likwise.
10848 (TF_SIZE): Likwise.
10849
10850 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
10851
10852 * config/i386/sfp-machine.h: Moved to libgcc.
10853
10854 * config/i386/sfp-machine.h: New.
10855 * config/i386/t-linux: Likwise.
10856
10857 * config/i386/t-darwin: Remove softfp_wrap_start and
10858 softfp_wrap_end.
10859 * config/i386/t-darwin64: Likewise.
10860
10861 * config/i386/t-fprules-softfp64: Renamed to ...
10862 * config/i386/t-fprules-softfp: This.
10863
10864 * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
10865 and softfp_wrap_end.
10866
10867 2008-07-02 Jason Merrill <jason@redhat.com>
10868
10869 * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
10870
10871 * tree.c (ctor_to_list): New fn.
10872 * tree.h: Declare it.
10873 (CONSTRUCTOR_ELT): New macro.
10874 (CONSTRUCTOR_NELTS): New macro.
10875
10876 2008-07-02 Richard Guenther <rguenther@suse.de>
10877
10878 * tree-ssa-structalias.c (struct variable_info): Reorder
10879 to fill padding on 64bit hosts. Make collapsed_to an int.
10880 (get_varinfo_fc): Deal with that.
10881 (new_var_info): Likewise.
10882 (collapse_rest_of_var): Likewise.
10883
10884 2008-07-02 Joshua Sumali <jsumali@redhat.com>
10885
10886 * doc/install.texi (--enable-java-home): Document.
10887 (--enable-aot-compile-rpm): Likewise.
10888 (--with-arch-directory): Likewise.
10889 (--with-os-directory): Likewise.
10890 (--with-origin-name): Likewise.
10891 (--with-arch-suffix): Likewise.
10892 (--with-jvm-root-dir): Likewise.
10893 (--with-jvm-jar-dir): Likewise.
10894 (--with-python-dir): Likewise.
10895
10896 2008-07-02 Richard Guenther <rguenther@suse.de>
10897
10898 * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
10899 from decls explicitly. Merge operand checking from tuples.
10900
10901 2008-07-02 Martin Jambor <mjambor@suse.cz>
10902
10903 * tree-switch-conversion.c: Included timevar.h which I forgot before.
10904
10905 2008-07-02 Martin Jambor <mjambor@suse.cz>
10906
10907 * tree-switch-conversion.c: Included timevar.h
10908 (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
10909
10910 * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
10911
10912 2008-07-02 Martin Jambor <mjambor@suse.cz>
10913
10914 * tree-switch-conversion.c: Corrected various comments and
10915 whitespace issues
10916 (build_constructors): Fixed minor formatting mistakes.
10917
10918 * invoke.texi (Optimize Options): Corrected the
10919 switch-conversion-max-branch-ratio parameter.
10920
10921 2008-07-02 Mark Shinwell <shinwell@codesourcery.com>
10922
10923 * final.c (asm_insn_count): Return zero for an empty asm body.
10924
10925 2008-07-02 Richard Guenther <rguenther@suse.de>
10926
10927 * bitmap.h (bitmap_set_bit): Return bool.
10928 (bitmap_clear_bit): Likewise.
10929 * bitmap.c (bitmap_set_bit): Return if the bit changed. Only
10930 write to the bitmap if it would.
10931 (bitmap_clear_bit): Likewise.
10932 * tree-ssa-structalias.c (add_implicit_graph_edge): Use
10933 bitmap_set_bit return value.
10934 (add_pred_graph_edge): Likewise.
10935 (add_graph_edge): Likewise.
10936 (do_sd_constraint): Likewise.
10937 (do_ds_constraint): Likewise.
10938
10939 2008-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10940
10941 * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
10942 Fix -Wc++-compat and/or -Wcast-qual warnings.
10943 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
10944 gen_regparm_prefix): Likewise.
10945 * vmsdbgout.c (write_modbeg, lookup_filename,
10946 vmsdbgout_source_line, vmsdbgout_init): Likewise.
10947
10948 2008-07-02 Danny Smith <dannysmith@users.sourceforge.net>
10949
10950 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
10951 defaults.h definition apply.
10952
10953 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
10954
10955 * function.c (assign_parm_remove_parallels): New.
10956 (assign_parm_setup_block_p): Do not return true for non-BLKmode
10957 PARALLELs.
10958 (assign_parm_setup_block): Do not handle them.
10959 (assign_parm_setup_reg, assign_parm_setup_stack): Call
10960 assign_parm_remove_parallels.
10961
10962 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
10963
10964 * c-typeck.c (convert_for_assignment): Use
10965 vector_targets_convertible_p.
10966 * c-common.c (vector_targets_convertible_p): New.
10967 * c-common.h (vector_targets_convertible_p): New prototype.
10968 * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
10969 opaque_p_V2SI_type_node.
10970
10971 2008-07-01 Steve Ellcey <sje@cup.hp.com>
10972
10973 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
10974 RFmode constants.
10975
10976 2008-07-01 Uros Bizjak <ubizjak@gmail.com>
10977
10978 * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
10979 TFmode constants via two element DImode vector for hosts with
10980 HOST_BITS_PER_WIDE_INT < 64.
10981 (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
10982 also for HOST_BITS_PER_WIDE_INT < 64.
10983
10984 2008-07-01 Richard Guenther <rguenther@suse.de>
10985
10986 PR tree-optimization/36666
10987 * tree-ssa-structalias.c (get_constraint_for_1): Declare.
10988 (get_constraint_exp_from_ssa_var): Split into ...
10989 (get_constraint_exp_for_temp): ... this ...
10990 (get_constraint_for_ssa_var): ... and that.
10991 Return constraint expressions for all touched sub-fields
10992 if the results address is not taken.
10993 (process_constraint): Remove assertion that aggregate
10994 assignments do not happen at this place.
10995 (get_constraint_for_component_ref): Add address_p argument.
10996 Return constraint expressions for all touched sub-fields
10997 if the results address is not taken.
10998 (do_deref): Use get_constraint_exp_for_temp.
10999 (get_constraint_for_1): Rename from ...
11000 (get_constraint_for): ... this. Add the old function as wrapper.
11001 (do_structure_copy): Use get_constraint_for_1.
11002
11003 2008-07-01 Martin Jambor <mjambor@suse.cz>
11004
11005 * Makefile.in (tree-switch-conversion.o): Add.
11006 (OBJS-common): Add tree-swtch-conversion.o.
11007 * passes.c (init_optimization_passes): Add pass_convert_switch.
11008 * tree-pass.h: (pass_convert_switch): Add.
11009 * tree-switch-conversion.c: New file.
11010 * gcc.dg/tree-ssa/cswtch.c: New testcase.
11011 * common.opt (ftree-cswtch): New option.
11012 * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
11013 * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
11014 * opts.c (decode_options): Set flag_tree_switch_conversion when
11015 optimization level is >= 2.
11016 * doc/invoke.texi (Optimize Options): Added description of
11017 -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
11018
11019 2008-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11020
11021 * config/darwin-driver.c (darwin_default_min_version): Fix
11022 -Wc++-compat warnings.
11023
11024 2008-06-30 Uros Bizjak <ubizjak@gmail.com>
11025
11026 * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
11027 of operand 0.
11028
11029 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
11030
11031 * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
11032
11033 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
11034
11035 PR rtl-optimization/34744
11036 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
11037 (df_scan_free_internal): Free data structures not
11038 allocated in storage pools.
11039 (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
11040 (df_refs_add_to_chains): Use df_scan_free_ref_vec and
11041 df_scan_free_mws_vec.
11042 * dse.c (dse_step6): Free offset_map_p and offset_map_n
11043 unconditionally.
11044
11045 2008-06-30 H.J. Lu <hongjiu.lu@intel.com>
11046
11047 * config/i386/i386.c (contains_aligned_value_p): Return true
11048 for __float128.
11049 (ix86_function_arg_boundary): Return its natural boundary
11050 for __float128.
11051 (return_in_memory_32): Don't check TDmode.
11052 (ix86_split_to_parts): Support splitting into 4 parts and
11053 support TFmode for 32bit target.
11054 (ix86_split_long_move): Support splitting into 4 parts.
11055 (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
11056 for SSE2.
11057 (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
11058 (ix86_init_builtins): Here.
11059 (ix86_scalar_mode_supported_p): Always return true for TFmode.
11060 (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
11061 'q' and 'w', respectively.
11062
11063 * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
11064 TARGET_64BIT.
11065 (movtf_internal): Likewise.
11066 (<code>tf2): Likewise.
11067 (*absnegtf2_sse): Likewise.
11068 (copysign<mode>3): Likewise.
11069 (copysign<mode>3_const): Likewise.
11070 (copysign<mode>3_var): Likewise.
11071 (define_split UNSPEC_COPYSIGN): Likewise.
11072 * config/i386/sse.md (*nandtf3): Likewise.
11073 (<code>tf3): Likewise.
11074 (*<code>tf3): Likewise.
11075
11076 2008-06-30 Joey Ye <joey.ye@intel.com>
11077 H.J. Lu <hongjiu.lu@intel.com>
11078
11079 * global.c (compute_regsets): Set frame_pointer_needed here.
11080 * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
11081
11082 2008-06-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
11083
11084 * doc/install.texi (specific): Expand Windows build notes.
11085
11086 2008-06-30 Ira Rosen <irar@il.ibm.com>
11087
11088 PR tree-optimization/36648
11089 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
11090 number of prolog iterations by step. Fix the comment.
11091
11092 2008-06-30 Richard Guenther <rguenther@suse.de>
11093
11094 PR middle-end/36671
11095 * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
11096 handle calls from ECF_MALLOC functions.
11097 (handle_pure_call): ECF_MALLOC functions do not return
11098 call-used memory.
11099 (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
11100
11101 2008-06-29 Andreas Schwab <schwab@suse.de>
11102
11103 * config/m68k/m68k.c (print_operand): Always print a float
11104 constant in hex.
11105 * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
11106 (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
11107 Remove macros.
11108
11109 * config/rs6000/x-linux64: Remove never used file.
11110
11111 2008-06-29 Richard Guenther <rguenther@suse.de>
11112
11113 * tree-ssa-structalias.h (compute_points_to_sets): Adjust
11114 prototype.
11115 (struct alias_info): Move ...
11116 * tree-ssa-alias.c: ... here.
11117 (update_alias_info): Declare.
11118 (compute_may_aliases): Call it.
11119 (update_alias_info): New function.
11120 * tree-ssa-structalias.c (update_alias_info): Move ...
11121 * tree-ssa-alias.c (update_alias_info_1): ... here.
11122 * tree-ssa-structalias.c (process_constraint_1): Remove
11123 unused from_call argument. Rename to ...
11124 (process_constraint): ... this. Delete old wrapper.
11125 (make_constraint_to): Adjust callers.
11126 (handle_const_call): Likewise.
11127 (handle_pure_call): Likewise.
11128 (init_base_vars): Likewise.
11129 (handle_lhs_call): Likewise. Remove unnecessary constraint.
11130 (find_func_aliases): We don't need structure copies for
11131 complex types.
11132 (make_constraint_from_anything): Remove.
11133 (create_variable_info_for): For globals make constraints
11134 from escaped, not from anything.
11135 (compute_points_to_sets): Do not call update_alias_info.
11136 (ipa_pta_execute): Use make_constraint_from.
11137
11138 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11139
11140 * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
11141 (bitmap.o-warn, dominance.o-warn): New.
11142 * configure.ac (cxx_compat_warn): Delete.
11143 (loose_warn): Add -Wcast-qual and -Wc++-compat.
11144 * system.h: Remove #pragma diagnostic for -Wcast-qual and
11145 -Wc++-compat.
11146 * configure: Regenerate.
11147
11148 * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
11149 warnings.
11150
11151 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11152
11153 * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
11154 * df-scan.c (df_notes_rescan): Likewise.
11155 * ggc-page.c (set_page_table_entry): Likewise.
11156 * intl.c (gcc_gettext_width): Likewise.
11157 * varasm.c (get_unnamed_section, get_noswitch_section,
11158 get_section): Likewise.
11159
11160 2008-06-28 Andrew Jenner <andrew@codesourcery.com>
11161
11162 * regrename.c (build_def_use): Don't copy RTX.
11163
11164 2008-06-28 Sandra Loosemore <sandra@codesourcery.com>
11165
11166 * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
11167 (Type Attributes): Fix nesting of @table and @subsection. Adjust
11168 punctuation. Use @ref instead of @xref.
11169 (Function Names): Remove stray @display/@end display.
11170 (C++ Attributes): Use @ref instead of @xref.
11171 (Deprecated Features): Fix punctuation around @xref.
11172 (Backwards Compatibility): Likewise.
11173 * doc/rtl.texi (Incdec): Remove stray @table/@end table.
11174
11175 2008-06-28 Joseph Myers <joseph@codesourcery.com>
11176
11177 * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
11178 constants for E500 double.
11179
11180 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11181
11182 * doc/rtl.texi (const_vector): Document const_fixed as legitimate
11183 element type of const_vector.
11184
11185 2008-06-28 Uros Bizjak <ubizjak@gmail.com>
11186
11187 * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
11188 Remove FLAGS_REG clobber from expander pattern.
11189 (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
11190 (anddi3, andsi3, andhi3, andqi3): Ditto.
11191 (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
11192 (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
11193 (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
11194 (ashlsi3, ashlhi3, ashlqi3): Ditto.
11195 (ashrsi3, ashrhi3, ashrqi3): Ditto.
11196 (lshrsi3, lshrhi3, lshrqi3): Ditto.
11197 (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
11198 (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
11199
11200 2008-06-28 Richard Guenther <rguenther@suse.de>
11201
11202 * tree-ssa-structalias.c (callused_id, var_callused,
11203 callused_tree): Add.
11204 (handle_pure_call): New function.
11205 (find_func_aliases): Call it.
11206 (find_what_p_points_to): Handle the call-used set.
11207 (clobber_what_escaped): Likewise.
11208 (compute_call_used_vars): New function.
11209 (init_base_vars): Init the call-used variable.
11210 (do_sd_constraint): Do not propagate the solution from CALLUSED
11211 but use CALLUSED as a placeholder.
11212 (solve_graph): Likewise.
11213 * tree-flow-inline.h (gimple_call_used_vars): New function.
11214 * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
11215 (compute_call_used_vars): Declare.
11216 * tree-ssa-alias.c (set_initial_properties): Call
11217 compute_call_used_vars.
11218 (reset_alias_info): Clear call-used variables.
11219 (add_call_clobber_ops): Assert we are not called for const/pure
11220 functions. Remove handling of them.
11221 (add_call_read_ops): Handle pure functions by adding the
11222 call-used set of variables as VUSEs.
11223 * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
11224 (delete_tree_ssa): Free it.
11225 * tree-dfa.c (remove_referenced_var): Clear the var from the
11226 call-used bitmap.
11227
11228 2008-06-28 Kai Tietz <kai.tietz@onevision.com>
11229
11230 * tree.c (build_varargs_function_type_list): New.
11231 (build_function_type_list_1): New.
11232 (build_function_type_list): Use build_function_type_list_1.
11233 * tree.h (build_varargs_function_type_list): New.
11234
11235 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11236
11237 PR target/34856
11238 * config/spu/spu.c (spu_builtin_splats): Do not generate
11239 invalid CONST_VECTOR expressions.
11240 (spu_expand_vector_init): Likewise.
11241
11242 2008-06-28 Richard Sandiford <rdsandiford@googlemail.com>
11243
11244 * optabs.c (libfunc_decls): New variable.
11245 (libfunc_decl_hash, libfunc_decl_eq): New functions.
11246 (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
11247 for the same function twice.
11248
11249 2008-06-27 Uros Bizjak <ubizjak@gmail.com>
11250
11251 * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
11252 ix86_expand_binary_operator directly.
11253 (*ashlti3_1): Rename from ashlti3_1. Use nonmemory_operand predicate
11254 for operand 2.
11255 (*ashrti3_1): Ditto.
11256 (*lshrti3_1): Ditto.
11257 (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
11258 (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
11259 using only one splitter. Conditionaly execute splitter before or
11260 after peephole2 pass.
11261 (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
11262 (x86_shld): Rename from x86_shld_1. Compress operand 2 constraints.
11263 Use only one alternative in asm template.
11264 (x86_64_shld): Compress operand 2 constraints. Use only one alternative
11265 in asm template.
11266 (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
11267 "J" operand constraint for operand 2.
11268 (*ashldi3_cconly_rex64): Ditto.
11269 (*ashrdi3_cmp_rex64): Ditto.
11270 (*ashrdi3_cconly_rex64): Ditto.
11271 (*lshrdi3_cmp_rex64): Ditto.
11272 (*lshrdi3_cconly_rex64): Ditto.
11273 * config/i386/predicates.md (const_1_to_63_operand): New predicate.
11274 * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
11275 (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
11276 gen_x86_shrd_1.
11277
11278 2008-06-27 Jakub Jelinek <jakub@redhat.com>
11279
11280 * gimplify.c (omp_is_private): Don't return true if decl is not
11281 already private on #pragma omp for or #pragma omp parallel for.
11282
11283 PR debug/36617
11284 * tree-cfg.c (struct move_stmt_d): Replace block field with
11285 orig_block and new_block fields.
11286 (move_stmt_r): Only set TREE_BLOCK to p->new_block if
11287 if it used to be NULL, p->orig_block or if p->orig_block is NULL.
11288 (move_block_to_fn): Replace vars_map and new_label_map arguments
11289 with struct move_stmt_d pointer.
11290 (replace_block_vars_by_duplicates): New function.
11291 (move_sese_region_to_fn): Add ORIG_BLOCK argument. Adjust
11292 move_block_to_fn caller. If ORIG_BLOCK is non-NULL, move over
11293 all subblocks of ORIG_BLOCK to the new function. Call
11294 replace_block_vars_by_duplicates.
11295 * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
11296 * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
11297 BLOCK of the new function. Adjust move_sese_region_to_fn caller.
11298 Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
11299 (expand_omp): Temporarily set input_location to the location of
11300 region's controlling stmt.
11301 (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
11302 BIND_EXPR, push ctx->block_vars and gimplification vars into
11303 the BIND_EXPR and its block's BLOCK_VARS instead of directly
11304 into dest function.
11305 (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
11306 there are any BLOCK_VARS.
11307 (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
11308 OMP_PARALLEL or OMP_TASK stmt.
11309 (lower_omp): Save and restore input_location around the lower_omp_1
11310 call.
11311
11312 2008-06-27 Richard Guenther <rguenther@suse.de>
11313
11314 PR tree-optimization/36400
11315 PR tree-optimization/36373
11316 PR tree-optimization/36344
11317 * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
11318 var_nonlocal, nonlocal_tree, nonlocal_id): New globals
11319 (update_alias_info): Remove call clobbering code.
11320 (make_constraint_to): New helper function.
11321 (make_escape_constraint): Likewise.
11322 (handle_rhs_call): Use it on all pointer containing arguments.
11323 Also mark the static chain escaped.
11324 (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
11325 instead of ANYTHING.
11326 (make_constraint_from): New helper split out from ...
11327 (make_constraint_from_anything): ... here.
11328 (find_func_aliases): Add constraints for escape sites.
11329 (intra_create_variable_infos): Make constraints from NONLOCAL
11330 for parameters.
11331 (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
11332 as ANYTHING.
11333 (clobber_what_p_points_to): Remove.
11334 (clobber_what_escaped): New function.
11335 (init_base_vars): Init NONLOCAL and ESCAPED.
11336 (do_sd_constraint): Do not propagate the solution from ESCAPED
11337 but use ESCAPED as a placeholder.
11338 (solve_graph): Likewise.
11339 * tree-flow.h (clobber_what_p_points_to): Remove.
11340 (clobber_what_escaped): Declare.
11341 * tree-ssa-alias.c (set_initial_properties): Call it.
11342 Remove code clobbering escaped pointers.
11343
11344 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
11345
11346 * function.c (allocate_struct_function): Only allocate a unique
11347 funcdef_no if the decl is nonzero.
11348
11349 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
11350
11351 * config/mips/mips-protos.h (mips_split_const_insns): Declare.
11352 * config/mips/mips.c (mips_split_const_insns): New function.
11353 * config/mips/mips.md (move_type): New attribute.
11354 (mode): Move attribute definition earlier in file. Add "TI" and "TF".
11355 (dword_mode): New attribute.
11356 (type): Avoid long line. Map "move_type"s to "type"s,
11357 choosing "multi" for doubleword moves if appropriate.
11358 Swap MTC/MFC comments to match their declaration order.
11359 (extended_mips16): Default to "yes" if "move_type" is "sll0",
11360 "type" is "branch" or "jal" is "direct".
11361 (length): Handle "extended_mips16" first. Make the default
11362 "0" for "ghost" instructions. Set the length from "move_type".
11363 (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
11364 of "type", with "sll0" for the register alternative. Remove the
11365 "extended_mips16" attribute.
11366 (zero_extendsidi2, *clear_upper32): Use "move_type" instead
11367 of "type", with "shift_shift" for the register alternative.
11368 Remove the "length" attribute.
11369 (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
11370 (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
11371 of "type", with "andi" for the register alternative.
11372 (*zero_extendqihi2): Likewise.
11373 (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
11374 of "andi" instead of a "type" of "arith".
11375 (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
11376 instead of "type".
11377 (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
11378 (mov_<store>r, *mov<mode>_ra): Likewise.
11379 (extendsidi2): Use "move_type" instead of "type", with "move"
11380 for the register alternative.
11381 (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
11382 of "type", with "signext" for the register alternative.
11383 (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
11384 (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
11385 (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
11386 (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
11387 (floatdisf2, *branch_equality<mode>_mips16): Likewise.
11388 (unnamed branch insn): Likewise.
11389 (*movdi_gp32_fp64): Fold into...
11390 (*movdi_32bit): ...here.
11391 (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
11392 (*movdf_hardfloat): ...this new pattern.
11393 (*movdf_softfloat): Remove redundant FPR alternatives.
11394 (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
11395 (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
11396 (*movv2sf): ...this new pattern. Use "DF" rather than "SF" for
11397 the "move" attribute.
11398 (*movdi_32bit): Use "move_type" instead of "type" and remove the
11399 "length" attribute. Use "fpload" and "fpstore" instead of "load"
11400 and "store" for COP loads and stores.
11401 (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
11402 (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
11403 (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
11404 (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
11405 (*movtf_mips16, *movv2sf): Likewise.
11406 (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
11407 (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
11408 (mfhc1<mode>): Use "move_type" instead of "move".
11409 (*low<mode>_mips16): Use "extended_mips16" instead of "length".
11410 (loadgp_blockage): Remove the "length" attribute.
11411 (blockage, set_got_version, update_got_version): Likewise.
11412 (call_internal): Remove the "extended_mips16" attribute.
11413 (call_value_internal, call_value_multiple_internal): Likewise.
11414 * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
11415 instead of "move".
11416 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
11417 the "length" attribute.
11418
11419 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11420
11421 * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
11422 -Wcast-qual warnings.
11423 * c-pragma.c (dpm_eq, handle_pragma_push_macro,
11424 handle_pragma_pop_macro): Likewise.
11425 * collect2.c (resolve_lib_name): Likewise.
11426 * config/arc/arc.c (arc_init): Likewise.
11427 * config/arm/arm.c (neon_builtin_compare,
11428 locate_neon_builtin_icode): Likewise.
11429 * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
11430 * config/bfin/bfin.c (bfin_init_machine_status,
11431 bfin_optimize_loop): Likewise.
11432 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
11433 * config/cris/cris.c (cris_init_expanders): Likewise.
11434 * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
11435 * config/darwin.c (machopic_indirection_eq,
11436 machopic_indirection_name, machopic_output_indirection): Likewise.
11437 * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
11438 frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
11439 frv_optimize_membar): Likewise.
11440 * config/i386/cygwin.h (mingw_scan,
11441 GCC_DRIVER_HOST_INITIALIZATION): Likewise.
11442 * config/i386/cygwin1.c (mingw_scan): Likewise.
11443 * config/i386/i386.c (machopic_output_stub): Likewise.
11444 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
11445 i386_pe_unique_section): Likewise.
11446 * config/ia64/ia64.c (ia64_init_machine_status,
11447 ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
11448 Likewise.
11449 * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
11450 * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
11451 * config/m68k/m68k.c (m68k_handle_option,
11452 m68k_sched_md_init_global): Likewise.
11453 * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
11454 mcore_unique_section): Likewise.
11455 * config/mips/mips.c (mips_block_move_straight,
11456 mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
11457 Likewise.
11458 * config/mmix/mmix.c (mmix_init_machine_status,
11459 mmix_encode_section_info): Likewise.
11460 * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
11461 * config/rs6000/rs6000.c (rs6000_init_machine_status,
11462 print_operand_address, output_toc, redefine_groups,
11463 rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
11464 * config/s390/s390.c (s390_init_machine_status): Likewise.
11465 * config/score/score.c (score_block_move_straight,
11466 score_block_move_loop_body): Likewise.
11467 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
11468 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
11469 * emit-rtl.c (find_auto_inc): Likewise.
11470 * gcc.c (translate_options, process_command): Likewise.
11471 * reorg.c (dbr_schedule): Likewise.
11472 * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
11473 * xcoffout.c (xcoffout_declare_function): Likewise.
11474
11475 2008-06-27 Daniel Berlin <dberlin@dberlin.org>
11476
11477 * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
11478 ipa-pta working again.
11479
11480 2008-06-27 David Edelsohn <edelsohn@gnu.org>
11481
11482 * config/rs6000/t-aix52: Append large data option to LDFLAGS for
11483 genautomata.
11484
11485 2008-06-27 Edmar Wienskoski <edmar@freescale.com>
11486
11487 * config.gcc (powerpc*-*-*): Add new core e500mc.
11488 * config/rs6000/e500mc.md: New file.
11489 * config/rs6000/rs6000.c (processor_costs): Add new costs for
11490 e500mc.
11491 (rs6000_override_options): Add e500mc case to
11492 processor_target_table. Altivec and Spe options not allowed
11493 with e500mc. Add isel instruction to e500mc by
11494 default. Initialize rs6000_cost for e500mc.
11495 (rs6000_issue_rate): Set issue rate for e500mc.
11496 * config/rs6000/rs6000.h (processor_type): Add
11497 PROCESSOR_PPCE500MC.
11498 (ASM_CPU_SPEC): Add e500mc.
11499 Set TARGET_ISEL to rs6000_isel.
11500 * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
11501 (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
11502 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
11503 Include e500mc.md.
11504 * doc/invoke.texi: Add e500mc to list of cpus.
11505
11506 2008-06-27 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11507
11508 PR c/34867
11509 * c-lex.c (lex_charconst): Initialize unsignedp.
11510
11511 2008-06-27 Olivier Hainque <hainque@adacore.com>
11512
11513 * gimplify.c (gimplify_modify_expr_to_memset): Assert our
11514 documented assumptions.
11515
11516 2008-06-26 H.J. Lu <hongjiu.lu@intel.com>
11517
11518 * dwarf2out.c: Remove trailing white spaces. Break long line
11519 in comments.
11520
11521 2008-06-26 Richard Sandiford <rdsandiford@googlemail.com>
11522
11523 * libfuncs.h (LTI_synchronize): New libfunc_index.
11524 (synchronize_libfunc): Declare.
11525 * builtins.c (expand_builtin_synchronize): Consider using
11526 synchronize_libfunc before falling back on an asm blockage.
11527 * config/mips/mips.c: Include libfuncs.h
11528 (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
11529
11530 2008-06-26 Nathan Froyd <froydnj@codesourcery.com>
11531
11532 * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
11533 parameter. Copy stack_reg to r11 where appropriate.
11534 (no_global_regs_above): Add gpr parameter.
11535 (rs6000_stack_info): Only add padding for SPE save area if we
11536 are saving SPE GPRs and CR.
11537 (saveres_routine_syms): New variable.
11538 (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
11539 Define.
11540 (rs6000_savres_routine_sym): New function.
11541 (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
11542 split out of...
11543 (rs6000_emit_epilogue): ...here. Use rs6000_use_multiple_p and
11544 rs6000_savres_strategy. Restore GPRs out-of-line if appropriate.
11545 Tweak FPR out-of-line saving.
11546 (rs6000_make_savres_rtx): New function.
11547 (rs6000_use_multiple_p): New function.
11548 (rs6000_savres_strategy): New function.
11549 (rs6000_emit_prologue): Use rs6000_savres_strategy. Save GPRs
11550 out-of-line if appropriate.
11551 * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
11552 if we are optimizing for size.
11553 (GP_SAVE_INLINE): Define.
11554 (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
11555 * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
11556 * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
11557 * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
11558 (*save_fpregs_<mode>): Add use of r11.
11559 (*restore_gpregs_<mode>): New insn.
11560 (*return_and_restore_gpregs_<mode>): New insn.
11561 (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
11562 use r11.
11563 * config/rs6000/spe.md (*save_gpregs_spe): New insn.
11564 (*restore_gpregs_spe): New insn.
11565 (*return_and_restore_gpregs_spe): New insn.
11566 * config/rs6000/predicates.md (save_world_operation): Fix check.
11567
11568 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
11569
11570 * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
11571 this point, so assert that.
11572
11573 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
11574
11575 * cfganal.c: Include vec.h and vecprim.h.
11576 (compute_idf): Import from...
11577 * tree-into-ssa (compute_idf): ...here.
11578 * basic-block.h (compute_idf): Export.
11579
11580 2008-06-26 Joseph Myers <joseph@codesourcery.com>
11581
11582 * c-decl.c (merge_decls): Use !current_function_decl to check for
11583 extern declaration of C99 inline function being at file scope.
11584
11585 2008-06-25 John David Anglin <dave.anglin@gcc-cnrc.gc.ca>
11586
11587 * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
11588
11589 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11590
11591 * alias.c (record_alias_subset, init_alias_analysis): Fix
11592 -Wc++-compat and/or -Wcast-qual warnings.
11593 * attribs.c (lookup_attribute_spec): Likewise.
11594 * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
11595 copy_bb, connect_traces,
11596 find_rarely_executed_basic_blocks_and_cr): Likewise.
11597 * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
11598 note_btr_set, migrate_btr_defs): Likewise.
11599 * builtins.c (result_vector, expand_builtin_memcpy,
11600 expand_builtin_mempcpy_args, expand_builtin_strncpy,
11601 builtin_memset_read_str, expand_builtin_printf,
11602 fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
11603 Likewise.
11604 * caller-save.c (mark_set_regs): Likewise.
11605 * calls.c (expand_call, emit_library_call_value_1): Likewise.
11606 * cgraph.c (cgraph_edge): Likewise.
11607 * combine.c (likely_spilled_retval_1): Likewise.
11608 * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
11609 htab_counts_entry_del, get_coverage_counts): Likewise.
11610 * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
11611 new_cselib_val): Likewise.
11612 * dbgcnt.c (dbg_cnt_process_opt): Likewise.
11613 * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
11614 Likewise.
11615 * df-core.c (df_compact_blocks): Likewise.
11616 * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
11617 * df-scan.c (df_grow_reg_info, df_ref_create,
11618 df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
11619 df_ref_compare, df_ref_create_structure, df_bb_refs_record,
11620 df_record_entry_block_defs, df_record_exit_block_uses,
11621 df_bb_verify): Likewise.
11622 * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
11623 DF_REF_EXTRACT_MODE_CONST): New.
11624 * dominance.c (get_immediate_dominator, get_dominated_by,
11625 nearest_common_dominator, root_of_dom_tree,
11626 iterate_fix_dominators, first_dom_son, next_dom_son): Fix
11627 -Wc++-compat and/or -Wcast-qual warnings.
11628 * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
11629 record_store, replace_read, check_mem_read_rtx, scan_insn,
11630 dse_step1, dse_record_singleton_alias_set): Likewise.
11631 * dwarf2asm.c (dw2_force_const_mem): Likewise.
11632
11633 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11634
11635 * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
11636 dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
11637 lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
11638 assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
11639 build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
11640 add_ranges_num, add_ranges_by_labels, file_info_cmp,
11641 file_name_acquire, output_file_names, add_const_value_attribute,
11642 premark_used_types_helper, file_table_eq, file_table_hash,
11643 lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
11644 dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
11645 -Wcast-qual warnings.
11646 * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
11647 ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
11648 * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
11649 gen_reg_rtx, start_sequence, init_emit): Likewise.
11650 * et-forest.c (et_new_occ, et_new_tree): Likewise.
11651 * except.c (init_eh_for_function, gen_eh_region,
11652 remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
11653 arh_to_landing_pad, arh_to_label, add_action_record,
11654 add_call_site, switch_to_exception_section): Likewise.
11655 * expmed.c (synth_mult): Likewise.
11656 * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
11657 store_expr): Likewise.
11658 * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
11659 Likewise.
11660 * function.c (assign_stack_temp_for_type,
11661 allocate_struct_function, match_asm_constraints_1): Likewise.
11662 * gcov-io.c (gcov_allocate): Likewise.
11663 * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
11664 GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
11665 (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
11666 record_one_set, insert_expr_in_table, insert_set_in_table,
11667 dump_hash_table, compute_hash_table_work, alloc_hash_table,
11668 pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
11669 reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
11670 -Wcast-qual warnings.
11671
11672 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11673
11674 * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
11675 -Wcast-qual warnings.
11676 * gcc.c (process_command): Likewise.
11677 * genattrtab.c (oballoc): Use XOBNEW.
11678 (oballocvec): Define.
11679 (attr_hash_add_rtx, attr_hash_add_string, attr_string,
11680 get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
11681 gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
11682 -Wc++-compat and/or -Wcast-qual warnings.
11683 * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
11684 XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
11685 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
11686 gen_presence_absence_set, gen_automaton, gen_regexp_el,
11687 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
11688 gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
11689 add_excls, process_presence_absence_names,
11690 process_presence_absence_patterns, add_presence_absence,
11691 process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
11692 get_free_state, add_arc, get_free_automata_list_el,
11693 form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
11694 transform_3, cache_presence, create_ainsns, create_automata,
11695 create_state_ainsn_table, dfa_insn_code_enlarge,
11696 output_trans_func, output_min_issue_delay_func,
11697 output_dead_lock_func, output_reset_func,
11698 output_get_cpu_unit_code_func, output_dfa_start_func,
11699 expand_automata): Likewise.
11700 * genextract.c (gen_insn): Likewise.
11701 * gengtype-lex.l: Likewise.
11702 * gengtype.c (read_input_list, adjust_field_type,
11703 process_gc_options): Likewise.
11704 * genoutput.c (note_constraint): Likewise.
11705 * genpreds.c (mangle, add_constraint): Likewise.
11706 * genrecog.c (process_define_predicate, new_decision,
11707 add_to_sequence): Likewise.
11708 * gensupport.c (record_insn_name): Likewise.
11709
11710 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11711
11712 * config/i386/driver-i386.c (detect_caches_amd,
11713 detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
11714 and/or -Wcast-qual warnings.
11715 *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
11716 gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
11717 gt_pch_save): Likewise.
11718 * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
11719 gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
11720 * global.c (compute_regsets): Likewise.
11721 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
11722 finish_graph_dump_file): Likewise.
11723 * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
11724 unlink_bb_notes): Likewise.
11725 * integrate.c (get_hard_reg_initial_val): Likewise.
11726 * ipa-prop.c (ipa_push_func_to_list): Likewise.
11727 * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
11728 * local-alloc.c (update_equiv_regs): Likewise.
11729 * loop-invariant.c (check_invariant_table_size,
11730 hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
11731 Likewise.
11732 * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
11733 altered_reg_used, mark_altered): Likewise.
11734 * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
11735 insert_var_expansion_initialization,
11736 combine_var_copies_in_loop_exit, apply_opt_in_copies,
11737 release_var_copies): Likewise.
11738 * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
11739 analyze_matrix_decl, add_allocation_site, analyze_transpose,
11740 analyze_accesses_for_phi_node, check_var_notmodified_p,
11741 check_allocation_function, find_sites_in_func,
11742 record_all_accesses_in_func, transform_access_sites,
11743 transform_allocation_sites): Likewise.
11744 * omp-low.c (new_omp_region, create_omp_child_function_name,
11745 check_omp_nesting_restrictions, check_combined_parallel,
11746 lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
11747 * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
11748 gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
11749 gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
11750 Likewise.
11751 * opts-common.c (prune_options): Likewise.
11752 * opts.c (add_input_filename, print_filtered_help,
11753 get_option_state): Likewise.
11754 * params.c (add_params): Likewise.
11755 * passes.c (set_pass_for_id, next_pass_1,
11756 do_per_function_toporder, pass_fini_dump_file): Likewise.
11757 * postreload.c (reload_cse_simplify_operands): Likewise.
11758 * predict.c (tree_predicted_by_p, tree_predict_edge,
11759 clear_bb_predictions, combine_predictions_for_bb): Likewise.
11760
11761 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11762
11763 * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
11764 warnings.
11765 * recog.c (check_asm_operands, validate_change_1): Likewise.
11766 * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
11767 subst_asm_stack_regs): Likewise.
11768 * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
11769 cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
11770 * regmove.c (reg_is_remote_constant_p): Likewise.
11771 * regrename.c (regrename_optimize, scan_rtx_reg,
11772 kill_clobbered_value, kill_set_value, kill_autoinc_value):
11773 Likewise.
11774 * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
11775 regstat_compute_calls_crossed): Likewise.
11776 * reload1.c (init_reload, new_insn_chain,
11777 has_nonexceptional_receiver, reload, copy_reloads,
11778 calculate_needs_all_insns, init_elim_table): Likewise.
11779 * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
11780 * rtl.c (shallow_copy_rtx_stat): Likewise.
11781 * rtlanal.c (parms_set): Likewise.
11782 * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
11783 sbitmap_resize, sbitmap_vector_alloc): Likewise.
11784 * sched-ebb.c (earliest_block_with_similiar_load,
11785 add_deps_for_risky_insns): Likewise.
11786 * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
11787 schedule_region): Likewise.
11788 * see.c (eq_descriptor_pre_extension,
11789 hash_descriptor_pre_extension, hash_del_pre_extension,
11790 eq_descriptor_properties, hash_descriptor_properties,
11791 hash_del_properties, see_seek_pre_extension_expr,
11792 see_initialize_data_structures, see_print_register_properties,
11793 see_print_pre_extension_expr, see_delete_merged_def_extension,
11794 see_delete_unmerged_def_extension, see_emit_use_extension,
11795 see_pre_delete_extension, see_map_extension, see_commit_changes,
11796 see_analyze_merged_def_local_prop,
11797 see_analyze_merged_def_local_prop,
11798 see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
11799 see_set_prop_merged_def, see_set_prop_unmerged_def,
11800 see_set_prop_unmerged_use, see_print_one_extension,
11801 see_merge_one_use_extension, see_merge_one_def_extension,
11802 see_store_reference_and_extension, see_update_uses_relevancy,
11803 see_update_defs_relevancy): Likewise.
11804 * statistics.c (hash_statistics_hash, hash_statistics_eq,
11805 hash_statistics_free, curr_statistics_hash): Likewise.
11806 * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
11807 expand_asm_operands, expand_return, case_bit_test_cmp,
11808 expand_case): Likewise.
11809 * stor-layout.c (start_record_layout): Likewise.
11810 * stringpool.c (ggc_alloc_string, gt_pch_n_S,
11811 gt_pch_save_stringpool): Likewise.
11812 * tree-data-ref.c (hash_stmt_vertex_info,
11813 have_similar_memory_accesses_1, ref_base_address_1): Likewise.
11814 * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
11815
11816 2008-06-25 Uros Bizjak <ubizjak@gmail.com>
11817
11818 PR target/36627
11819 * config/i386/i386.md : Change constraints of HImode and QImode
11820 immediate operands from "i" to "n". Change SImode "ni" constraint to
11821 "i" and SImode "rmi" constraint to "g". Remove all constraints
11822 from const0_operand and const1_operand predicated operands.
11823 (i): Change QImode and HImode attribute from "i" to "n".
11824 (*subqi_2): Change HImode operands to QImode.
11825 (*subqi_3): Ditto.
11826
11827 2008-06-25 Olivier Hainque <hainque@adacore.com>
11828
11829 * Makefile.in (GTFILES_H): Use | instead of ; as separator in
11830 sed substitutions.
11831
11832 2008-06-25 Richard Guenther <rguenther@suse.de>
11833
11834 * tree-ssa-structalias.c (fieldoff_compare): Make sure to
11835 not overflow the result type.
11836
11837 2008-06-25 Richard Guenther <rguenther@suse.de>
11838
11839 * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
11840 (vn_lookup): Likewise.
11841
11842 2008-06-25 Richard Guenther <rguenther@suse.de>
11843
11844 PR tree-optimization/35518
11845 * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
11846 * tree-sra.c (instantiate_element): Use fold_build3 to build
11847 BIT_FIELD_REFs.
11848 (try_instantiate_multiple_fields): Likewise.
11849
11850 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
11851
11852 * config/rs6000/rs6000.md: Change all string instruction's clobber to
11853 be early clobbers.
11854
11855 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
11856
11857 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
11858 use_backchain_to_restore_sp to true
11859 if the offset of the link register save area would go over the 32k - 1
11860 offset limit of the load
11861 instructions.
11862
11863 2008-06-25 Hans-Peter Nilsson <hp@axis.com>
11864
11865 * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
11866 anchor for the type-punning blurb. Cross-reference "Structures
11867 unions enumerations and bit-fields implementation". Provide a
11868 cast-through-pointer example. Make final sentence self-contained.
11869 * doc/implement-c.texi (Structures unions enumerations and
11870 bit-fields implementation): Cross-reference the type-punning blurb
11871 in the -fstrict-aliasing documentation.
11872
11873 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
11874
11875 PR middle-end/36594
11876 * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
11877 the memory instead of the memory itself for the save area.
11878
11879 2008-06-24 Olivier Hainque <hainque@adacore.com>
11880 Nicolas Roche <roche@adacore.com>
11881
11882 * gengtype.c (srcdir_len): size_t instead of int.
11883 (get_file_realbasename): New function. For F a filename, the real
11884 basename of F, with all the path components stripped.
11885 (get_file_srcdir_relative_path): New function. For F a filename, the
11886 relative path to F from $(srcdir).
11887 (get_file_basename): Rewrite using get_file_srcdir_relative_path and
11888 get_file_realbasename. Adjust the head comment.
11889 (get_prefix_langdir_index): New function. For F a filename, return the
11890 lang_dir_names[] relative index of the language directory that is
11891 a prefix in F.
11892 (get_file_langdir): For F a filename, return the name of the language
11893 directory where F is located.
11894 (get_file_gtfilename): New function. The gt- output file name for an
11895 input filename F.
11896 (get_output_file_with_visibility): Replace in-line computations with
11897 uses of get_file_gtfilename and get_prefix_langdir_index.
11898 * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
11899
11900 2008-06-24 Jakub Jelinek <jakub@redhat.com>
11901
11902 PR tree-optimization/36504
11903 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
11904 references without base address.
11905
11906 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
11907
11908 PR middle-end/36584
11909 * calls.c (expand_call): Increase alignment for recursive functions.
11910
11911 2008-06-23 Anatoly Sokolov <aesok@post.ru>
11912
11913 * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
11914 (TARGET_FUNCTION_VALUE): New define.
11915 * config/avr/avr-protos.h (avr_function_value): Remove declaration.
11916 * config/avr/avr.h (FUNCTION_VALUE): Remove.
11917
11918 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
11919
11920 * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
11921 (fmod<mode>3): Ditto.
11922 (remainderxf3): Ditto.
11923 (remainder<mode>3): Ditto.
11924
11925 2008-06-23 Jakub Jelinek <jakub@redhat.com>
11926
11927 PR target/36533
11928 * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
11929 REG is a hard register.
11930
11931 PR tree-optimization/36508
11932 * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
11933 499, don't check it at all in release compilers.
11934
11935 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
11936
11937 * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
11938 together with SSE_TARGET_MATH to disable insn pattern.
11939 (*fop_<MODEF:mode>_2_i387): Ditto.
11940 (*fop_<MODEF:mode>_3_i387): Ditto.
11941
11942 2008-06-22 Andy Hutchinson <hutchinsonandy@aim.com>
11943
11944 * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
11945
11946 2008-06-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11947
11948 PR middle-end/34906
11949 * gimplify.c (gimplify_asm_expr): Check the return code of
11950 parse_output_constraint call, set function return and is_inout
11951 value if it failed.
11952
11953 2008-06-22 Ian Lance Taylor <iant@google.com>
11954
11955 * c-lex.c (narrowest_unsigned_type): Change itk to int.
11956 (narrowest_signed_type): Likewise.
11957 * c-typeck.c (c_common_type): Change local variable mclass to enum
11958 mode_class, twice.
11959 (parser_build_binary_op): Compare the TREE_CODE_CLASS with
11960 tcc_comparison, not the tree code itself.
11961 * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
11962 (c_expand_expr): Cast modifier to enum expand_modifier.
11963 * c-common.h (C_RID_CODE): Add casts.
11964 (C_SET_RID_CODE): Define.
11965 * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
11966 (c_lex_one_token): Add cast to avoid warning.
11967 (c_parser_objc_type_name): Rename local typename to type_name.
11968 (check_no_duplicate_clause): Change code parameter to enum
11969 omp_clause_code.
11970 (c_parser_omp_var_list_parens): Change kind parameter to enum
11971 omp_clause_code.
11972 (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
11973 c_parser_omp_list_var_parens.
11974 (c_parser_omp_threadprivate): Likewise.
11975 * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
11976 * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
11977 * c-format.c (NO_FMT): Define.
11978 (printf_length_specs): Use NO_FMT.
11979 (asm_fprintf_length_specs): Likewise.
11980 (gcc_diag_length_specs): Likewise.
11981 (scanf_length_specs): Likewise.
11982 (strfmon_length_specs): Likewise.
11983 (gcc_gfc_length_specs): Likewise.
11984 (printf_flag_specs): Change 0 to STD_C89.
11985 (asm_fprintf_flag_specs): Likewise.
11986 (gcc_diag_flag_specs): Likewise.
11987 (gcc_cxxdiag_flag_specs): Likewise.
11988 (scanf_flag_specs): Likewise.
11989 (strftime_flag_specs): Likewise.
11990 (strfmon_flag_specs): Likewise.
11991 (print_char_table): Likewise.
11992 (asm_fprintf_char_table): Likewise.
11993 (gcc_diag_char_table): Likewise.
11994 (gcc_tdiag_char_table): Likewise.
11995 (gcc_cdiag_char_table): Likewise.
11996 (gcc_cxxdiag_char_table): Likewise.
11997 (gcc_gfc_char_table): Likewise.
11998 (scan_char_table): Likewise.
11999 (time_char_table): Likewis.
12000 (monetary_char_table): Likewise.
12001 * c-format.h (BADLEN): Likewise.
12002
12003 2008-06-21 Ian Lance Taylor <iant@google.com>
12004
12005 * tree.h (enum tree_code): Include all-tree.def, not tree.def.
12006 Define END_OF_BASE_TREE_CODES around inclusion.
12007 * tree.c (tree_code_type): New global array.
12008 (tree_code_length, tree_code_name): Likewise.
12009 * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
12010 $(lang_tree_files).
12011 (all-tree.def, s-alltree): New targets.
12012 (gencheck.h, s-gencheck): Remove.
12013 (tree.o): Depend upon all-tree.def.
12014 (build/gencheck.o): Remove gencheck.h dependency.
12015 (mostlyclean): Don't remove gencheck.h.
12016 * c-common.h (enum c_tree_code): Remove.
12017 * c-lang.c (tree_code_type): Remove.
12018 (tree_code_length, tree_code_name): Remove.
12019 * gencheck.c (tree_codes): Include all-tree.def, rather than
12020 tree.def, c-common.def, and gencheck.h. Undefined DEFTREECODE
12021 after it is used.
12022 * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
12023 than tree.def.
12024 * cp/cp-tree.h (enum cplus_tree_code): Remove.
12025 (operator_name_info): Size to MAX_TREE_CODES.
12026 (assignment_operator_name_info): Likewise.
12027 * cp/cp-lang.c (tree_code_type): Remove.
12028 (tree_code_length, tree_code_name): Remove.
12029 * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
12030 (assignment_operator_name_info): Likewise.
12031 * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
12032 MAX_TREE_CODES.
12033 * cp/mangle.c (write_expression): Likewise.
12034 * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
12035 * fortran/f95-lang.c (tree_code_type): Remove.
12036 (tree_code_length, tree_code_name): Remove.
12037 * java/java-tree.h (enum java_tree_code): Remove.
12038 * java/lang.c (tree_code_type): Remove.
12039 (tree_code_length, tree_code_name): Remove.
12040 * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
12041 * objc/objc-act.h (enum objc_tree_code): Remove.
12042 * objc/objc-lang.c (tree_code_type): Remove.
12043 (tree_code_length, tree_code_name): Remove.
12044 * objcp/objcp-lang.c (tree_code_type): Remove.
12045 (tree_code_length, tree_code_name): Remove.
12046 * ada/ada-tree.h (enum gnat_tree_code): Remove.
12047 * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
12048 * ada/misc.c (tree_code_type): Remove.
12049 (tree_code_length, tree_code_name): Remove.
12050
12051 2008-06-21 Bernhard Fischer <aldot@gcc.gnu.org>
12052
12053 * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
12054 the grand_bitmap_obstack.
12055
12056 2008-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12057
12058 * ggc.h (GGC_RESIZEVAR): New, reorder macros.
12059 * tracer.c (tail_duplicate): Fix for -Wc++-compat.
12060 * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
12061 * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
12062 move_stmt_r, new_label_mapper): Likewise.
12063 * tree-complex.c (cvc_lookup): Likewise.
12064 * tree-dfa.c (create_function_ann): Likewise.
12065 * tree-dump.c (dump_register): Likewise.
12066 * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
12067 find_phi_replacement_condition): Likewise.
12068 * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
12069 tree_function_versioning): Likewise.
12070 * tree-into-ssa.c (cmp_dfsnum): Likewise.
12071 * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
12072 * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
12073 get_nonlocal_debug_decl, convert_nonlocal_reference,
12074 convert_nonlocal_omp_clauses, get_local_debug_decl,
12075 convert_local_reference, convert_local_omp_clauses,
12076 convert_nl_goto_reference, convert_nl_goto_receiver,
12077 convert_tramp_reference, convert_call_expr): Likewise.
12078 * tree-outof-ssa.c (contains_tree_r): Likewise.
12079 * tree-parloops.c (reduction_phi, initialize_reductions,
12080 eliminate_local_variables_1, add_field_for_reduction,
12081 add_field_for_name, create_phi_for_local_result,
12082 create_call_for_reduction_1, create_loads_for_reductions,
12083 create_stores_for_reduction, create_loads_and_stores_for_name):
12084 Likewise.
12085 * tree-phinodes.c (allocate_phi_node): Likewise.
12086 * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
12087 * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
12088 * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
12089 * tree-ssa-coalesce.c (compare_pairs): Likewise.
12090 * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
12091 memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
12092 record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
12093 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
12094 * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
12095 vn_nary_op_insert): Likewise.
12096 * tree-ssa.c (redirect_edge_var_map_add,
12097 redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
12098 * tree-vectorizer.c (vectorize_loops): Likewise.
12099 * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
12100 build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
12101 tree_cons_stat, build1_stat, build_variant_type_copy,
12102 decl_init_priority_lookup, decl_fini_priority_lookup,
12103 decl_priority_info, decl_restrict_base_lookup,
12104 decl_restrict_base_insert, decl_debug_expr_lookup,
12105 decl_debug_expr_insert, decl_value_expr_lookup,
12106 decl_value_expr_insert, type_hash_eq, type_hash_lookup,
12107 type_hash_add, get_file_function_name, tree_check_failed,
12108 tree_not_check_failed, tree_range_check_failed,
12109 omp_clause_range_check_failed, build_omp_clause,
12110 build_vl_exp_stat): Likewise.
12111 * value-prof.c (gimple_histogram_value,
12112 gimple_duplicate_stmt_histograms): Likewise.
12113 * var-tracking.c (attrs_list_insert, attrs_list_copy,
12114 unshare_variable, variable_union_info_cmp_pos, variable_union,
12115 dataflow_set_different_1, dataflow_set_different_2,
12116 vt_find_locations, variable_was_changed, set_variable_part,
12117 emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
12118 * varasm.c (prefix_name, emutls_decl, section_entry_eq,
12119 section_entry_hash, object_block_entry_eq,
12120 object_block_entry_hash, create_block_symbol,
12121 initialize_cold_section_name, default_function_rodata_section,
12122 strip_reg_name, set_user_assembler_name, const_desc_eq,
12123 build_constant_desc, output_constant_def, lookup_constant_def,
12124 const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
12125 create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
12126 default_internal_label): Likewise.
12127 * varray.c (varray_init, varray_grow): Likewise.
12128 * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
12129
12130 2008-06-20 Uros Bizjak <ubizjak@gmail.com>
12131
12132 * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
12133 operators for "test" insn. Macroize insn using SWI mode macro.
12134 (*jcc_fused_2): Ditto.
12135 (*jcc_fused_3): Macroize insn using SWI mode macro.
12136 (*jcc_fused_4): Ditto.
12137
12138 2008-06-20 Bernhard Fischer <aldot@gcc.gnu.org>
12139
12140 * tree-ssa-pre.c: Fix typo in comment.
12141 (init_antic, fini_antic): Add explicit funtions for
12142 initializing and deinitializing ANTIC and AVAIL sets.
12143 (create_expression_by_pieces): Fix typo in comment.
12144 Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
12145 (execute_pre): Eventually dump details about ANTIC_IN.
12146
12147 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12148
12149 * collect2.c (main, add_to_list): Fix for -Wc++-compat.
12150 * gcc.c (translate_options, init_spec, store_arg, read_specs,
12151 add_to_obstack, file_at_path, find_a_file, execute,
12152 add_preprocessor_option, add_assembler_option, add_linker_option,
12153 process_command, insert_wrapper, do_option_spec, do_self_spec,
12154 spec_path, do_spec_1, is_directory, main, used_arg,
12155 getenv_spec_function): Likewise.
12156 * tlink.c (symbol_hash_lookup, file_hash_lookup,
12157 demangled_hash_lookup, symbol_push, file_push, frob_extension):
12158 Likewise.
12159
12160 2008-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
12161
12162 * doc/rtl.texi: Updated subreg section.
12163
12164 2008-06-19 Jakub Jelinek <jakub@redhat.com>
12165
12166 PR c++/36523
12167 * cgraphunit.c (cgraph_process_new_functions): Don't clear
12168 node->needed and node->reachable.
12169 * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
12170 * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
12171 (expand_task_call): Don't call expand_task_copyfn.
12172 (expand_task_copyfn): Renamed to...
12173 (finalize_task_copyfn): ... this.
12174
12175 2008-06-19 Jan Hubicka <jh@suse.cz>
12176
12177 * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
12178 clobbering framepointer.
12179
12180 2008-06-19 Jan Hubicka <jh@suse.cz>
12181
12182 * tree-optimize.c (execute_early_local_optimizations): Set
12183 cgraph_state only at first invocation.
12184
12185 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12186
12187 * system.h (-Wc++-compat): Activate as a warning, no an error.
12188
12189 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
12190
12191 * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
12192 instead of "#" in insn asm template.
12193 (*jcc_fused_2): Ditto.
12194
12195 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
12196
12197 * config/i386/i386.h (ix86_tune_indices)
12198 [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
12199 (TARGET_FUSE_CMP_AND_BRANCH): New define.
12200 * config/i386/i386.md (*jcc_fused_1): New insn pattern
12201 (*jcc_fused_2): Ditto.
12202 * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
12203 X86_TUNE_FUSE_CMP_AND_BRANCH targets.
12204 (print operand): Handle 'E' and 'e' code.
12205
12206 2008-06-19 Anatoly Sokolov <aesok@post.ru>
12207
12208 * config/avr/avr.c (avr_mcu_t): Add attiny13a.
12209 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
12210 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
12211
12212 2008-06-19 Bernhard Fischer <aldot@gcc.gnu.org>
12213
12214 * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
12215 node->decl.
12216 (cgraph_expand_function): Use local copy of decl.
12217 (cgraph_expand_all_functions): Remove redundant initialization of
12218 order_pos.
12219 (cgraph_optimize): Reword internal_error message.
12220
12221 2008-06-19 Chung-Lin Tang <ctang@marvell.com>
12222
12223 * arm-protos.h (arm_return_in_memory): Remove public
12224 arm_return_in_memory() prototype.
12225 * arm.c (arm_return_in_memory): Add static prototype, add target
12226 hook macro, change definition and comments.
12227 * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
12228
12229 2008-06-19 Ben Elliston <bje@au.ibm.com>
12230
12231 * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
12232 real.c: Remove references to IEEE 754R.
12233 * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
12234 * doc/libgcc.texi (Decimal float library routines): Likewise.
12235
12236 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12237
12238 * targhooks.h (struct gcc_target): New member unwind_word_mode.
12239 (default_unwind_word_mode): Add prototype.
12240 * targhooks.c (default_unwind_word_mode): New function.
12241 (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
12242 instead of word_mode.
12243 * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
12244 (TARGET_INITIALIZER): Use it.
12245
12246 * c-common.c (handle_mode_attribute): Support "unwind_word"
12247 mode attribute.
12248 * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
12249
12250 * except.c (init_eh): Use targetm.unwind_word_mode () instead of
12251 word_mode to access SjLj_Function_Context member "data".
12252 (sjlj_emit_dispatch_table): Likewise. Also, perform type
12253 conversion from targetm.eh_return_filter_mode () to
12254 targetm.unwind_word_mode () if they differ.
12255
12256 * builtin-types.def (BT_UNWINDWORD): New primitive type.
12257 (BT_FN_UNWINDWORD_PTR): New function type.
12258 (BT_FN_WORD_PTR): Remove.
12259 * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
12260 * except.c (expand_builtin_extend_pointer): Convert pointer to
12261 targetm.unwind_word_mode () instead of word_mode.
12262
12263 * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
12264 * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
12265 (spu_unwind_word_mode): New function.
12266 (TARGET_EH_RETURN_FILTER_MODE): Do not define.
12267 (TARGET_UNWIND_WORD_MODE): Define.
12268 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
12269
12270 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12271
12272 * config/spu/spu.c (reg_align): Remove.
12273 (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
12274 (spu_split_load): Use regno_aligned_for_load instead of reg_align.
12275 (spu_split_store): Likewise.
12276
12277 2008-06-18 Bernhard Fischer <aldot@gcc.gnu.org>
12278
12279 * gcc/tree-vn.c: Fix typo in comment.
12280
12281 2008-06-18 Jan Hubicka <jh@suse.cz>
12282
12283 * cgraphunit.c (cgraph_optimize): Output debug info when doing
12284 toplevel reorder too.
12285
12286 2008-06-18 Jan Hubicka <jh@suse.cz>
12287
12288 * c-opts.c (c_common_post_options): PCH is not compatible with
12289 no-unit-at-a-time.
12290 * opts.c (handle_options): Enable unit-at-a-time at O0 along with
12291 -fno-toplevel-reorder by default now.
12292
12293 2008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12294
12295 PR documentation/30739
12296 * doc/install.texi (Prerequisites): Document dependency on awk.
12297
12298 2008-06-18 Uros Bizjak <ubizjak@gmail.com>
12299 Ian Lance Taylor <iant@google.com>
12300
12301 PR rtl-optimization/35604
12302 * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
12303 only want to change jump destinations, not eventual label comparisons.
12304
12305 2008-06-16 Jan Hubicka <jh@suse.cz>
12306
12307 * cgraphunit.c (cgraph_expand_pending_functions): Give up at
12308 syntax errors.
12309 (cgraph_analyze_function): Likewise.
12310
12311 2008-06-16 Jan Hubicka <jh@suse.cz>
12312
12313 * cgraph.h (cgraph_mark_if_needed): New function.
12314 * cgraphunit.c (cgraph_mark_if_needed): New function.
12315 * c-decl.c (duplicate_decl): Use it.
12316
12317 2008-06-16 Jan Hubicka <jh@suse.cz>
12318
12319 * cgraph.c (cgraph_add_new_function): When in expansion state, do
12320 lowering.
12321
12322 2008-06-16 Jan Hubicka <jh@suse.cz>
12323
12324 * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
12325
12326 2008-06-16 Daniel Jacobowitz <dan@codesourcery.com>
12327 Kazu Hirata <kazu@codesourcery.com>
12328 Maxim Kuvyrkov <maxim@codesourcery.com
12329
12330 * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
12331 * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
12332 * config/mips/linux.h (host_detect_local_cpu): Declare, add to
12333 EXTRA_SPEC_FUNCTIONS.
12334 (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
12335 (DRIVER_SELF_SPECS): Adjust.
12336 * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
12337 * config/mips/st.h, config/mips/t-st: New.
12338 * config/mips/driver-native.c, config/mips/x-native: New.
12339 * doc/invoke.texi (MIPS): Document 'native' value for -march and
12340 -mtune options.
12341
12342 2008-06-18 Maxim Kuvyrkov <maxim@codesourcery.com>
12343
12344 * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
12345 from it.
12346 (ISA_HAS_FP_CONDMOVE): New macro.
12347 (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
12348 (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
12349 (ISA_HAS_NMADD3_NMSUB3): New macro.
12350 * config/mips/mips.c (mips_rtx_costs): Update.
12351 * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
12352 compiling for ST Loongson 2E/2F.
12353 (madd<mode>): Rename to madd4<mode>. Update.
12354 (madd3<mode>): New pattern.
12355 (msub<mode>): Rename to msub4<mode>. Update.
12356 (msub3<mode>): New pattern.
12357 (nmadd<mode>): Rename to nmadd4<mode>. Update.
12358 (nmadd3<mode>): New pattern.
12359 (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath. Update.
12360 (nmadd3<mode>_fastmath): New pattern.
12361 (nmsub<mode>): Rename to nmsub4<mode>. Update.
12362 (nmsub3<mode>): New pattern.
12363 (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath. Update.
12364 (nmsub3<mode>_fastmath): New pattern.
12365 (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
12366
12367 2008-06-18 Steven Bosscher <steven@gcc.gnu.org>
12368
12369 * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
12370 (DF_REF_INSN_INFO): New.
12371 (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
12372 (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
12373 with a NULL DF_REF_INSN_INFO.
12374 (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
12375 DF_INSN_SET.
12376 (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
12377 DF_INSN_INFO_EQ_USES): New.
12378 (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
12379 DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
12380 DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
12381 * df-core.c: Update comment for above changes.
12382 (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
12383 DF_INSN_UID_* macros.
12384 (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
12385 * df-scan.c (df_ref_record): Take a df_insn_info instead of an
12386 insn rtx. Update all callers.
12387 (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
12388 df_ref_create_structure, df_insn_refs_collect): Likewise.
12389 (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
12390 * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
12391 (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
12392 macros to access the insn refs.
12393 (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
12394 * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
12395 (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
12396 for accessing the refs.
12397 (try_fwprop_subst): Likewise.
12398 * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
12399 * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
12400 for accessing the refs.
12401 * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
12402 (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
12403 to look at the insn refs.
12404 (record_uses): Likewise.
12405 * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
12406 function anymore.
12407 (mark_artificial_uses): Don't mark_insn for artificial refs.
12408 (mark_reg_rependencies): Likewise.
12409
12410 * doc/rtl.texi: Remove documentation of ADDRESSOF.
12411
12412 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12413
12414 * configure: Regenerate.
12415
12416 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
12417
12418 * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
12419 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
12420 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12421
12422 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
12423
12424 * config/avr/avr.c (avr_mcu_t): Add attiny167.
12425 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
12426 * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12427
12428 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
12429
12430 * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
12431 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
12432 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12433
12434 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
12435
12436 * tree-ssa-sccvn.c: Fix format of comments.
12437
12438 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
12439
12440 * cgraph.c: Remove unneeded forward declarations of eq_node()
12441 and hash_node().
12442
12443 2008-06-17 Steven Bosscher <steven@gcc.gnu.org>
12444
12445 * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
12446 REG_RETVAL notes.
12447 (see_update_relevancy): Likewise.
12448 * fwprop.c (try_fwprop_subst): Likewise.
12449 * rtlanal.c (noop_move_p): Likewise.
12450 * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
12451 notes to non-existing libcall blocks.
12452 * cse.c (cse_insn): Change prototype. Don't update libcall notes.
12453 Remove orig_set.
12454 (cse_extended_basic_block): Don't track libcall and no-conflict notes.
12455 (dead_libcall_p): Remove.
12456 (delete_trivially_dead_insns): Don't use it.
12457 * web.c (union_defs): Remove comment about keeping nops.
12458 * gcse.c (hash_scan_insn): Don't take libcall pointers.
12459 (compute_hash_table_work): Don't track libcall notes.
12460 (do_local_cprop): Don't take libcall pointers. Don't update
12461 libcall notes.
12462 (adjust_libcall_notes): Deleted.
12463 (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
12464 ever have existed in the first place).
12465 (replace_store_insn): Don't try to remove libcall notes.
12466 * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
12467 (resolve_reg_notes): Don't call them.
12468 (resolve_simple_move): Likewise.
12469 (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
12470 Don't remove REG_RETVAL notes.
12471 * emit-rtl.c (try_split): Don't update libcall notes.
12472 (emit_copy_of_insn_after): Dito.
12473 * cselib.c (cselib_current_insn_in_libcall): Remove.
12474 (cselib_process_insn): Don't set/clear it.
12475 (new_elt_loc_list): Don't record it.
12476 (cselib_init): Don't initialize it.
12477 * cselib.c (struct elt_loc_list): Remove in_libcall field.
12478 * loop-invariant.c (find_invariant_insn): Don't look for libcall
12479 notes.
12480 * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
12481 (sched_analyze): Don't set up deps->libcall_block_tail_insn.
12482 (init_deps): Don't initialize it.
12483 * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
12484 * combine.c (delete_noop_moves): Don't update libcall notes.
12485 (can_combine_p): Remove now pointless #if 0 block.
12486 (try_combine): Remove another obsolete #if 0 block.
12487 (distribute_notes): Don't distribute libcall notes.
12488 * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
12489 * dce.c (libcall_dead_p): Remove.
12490 (delete_unmarked_insns): Don't handle libcall blocks.
12491 (preserve_libcall_for_dce): Remove.
12492 (prescan_insns_for_dce): Don't special-case libcall block insns.
12493 * reload1 (reload): Don't handle libcall notes.
12494 * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
12495 documentation.
12496
12497 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
12498
12499 * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
12500 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
12501 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12502
12503 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
12504
12505 * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
12506 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
12507 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12508
12509 2008-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12510
12511 * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
12512
12513 2008-06-16 Ira Rosen <irar@il.ibm.com>
12514
12515 PR tree-optimization/36493
12516 * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
12517 the arguments list. Use VECTYPE to create vector pointer.
12518 (vectorizable_store): Fail if accesses through a pointer to vectype
12519 do not alias the original memory reference operands.
12520 Call vect_create_data_ref_ptr without the removed argument.
12521 (vectorizable_load): Likewise.
12522 (vect_setup_realignment): Call vect_create_data_ref_ptr without the
12523 removed argument.
12524
12525 2008-06-015 Andy Hutchinson <hutchinsonandy@aim.com>
12526
12527 PR target/36336
12528 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
12529 reg_equiv_constant.
12530
12531 2008-06-15 Maxim Kuvyrkov <maxim@codesourcery.com>
12532
12533 * config/mips/loongson2ef.md: New file.
12534 * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
12535 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
12536 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
12537 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
12538 (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
12539 and loongson_2f.
12540 (loongson2ef.md): New include.
12541 * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
12542 (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
12543 (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
12544 (loongson_gt_<mode>, loongson_extract_halfword)
12545 (loongson_insert_halfword_0, loongson_insert_halfword_2)
12546 (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
12547 (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
12548 (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
12549 (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
12550 (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
12551 (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
12552 (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
12553 (vec_interleave_low<mode>): Define type attribute.
12554 * config/mips/mips.c (mips_ls2): New static variable.
12555 (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
12556 (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
12557 (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
12558 Implement target scheduling hooks.
12559 (mips_multipass_dfa_lookahead): Update to handle tuning for
12560 Loongson 2E/2F.
12561 (mips_sched_init): Initialize data for Loongson scheduling.
12562 (mips_ls2_variable_issue): New static function.
12563 (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
12564 Add sanity check.
12565 (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
12566 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
12567 * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
12568 (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
12569 Handle ST Loongson 2E/2F cores.
12570 (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
12571
12572 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12573
12574 * omp-low.c (extract_omp_for_data): Fix comment typo.
12575 * c.opt: Fix typo.
12576
12577 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12578
12579 * doc/sourcebuild.texi (Config Fragments): Remove obsolete
12580 FIXME note about gcc/config.guess.
12581 * doc/options.texi (Option file format): Remove non-ASCII bytes.
12582 * doc/cpp.texi: Expand TABs, drop indentation outside examples.
12583 * doc/cppopts.texi: Likewise.
12584 * doc/extend.texi: Likewise.
12585 * doc/gcc.texi: Likewise.
12586 * doc/gccint.texi: Likewise.
12587 * doc/gcov.texi: Likewise.
12588 * doc/gty.texi: Likewise.
12589 * doc/hostconfig.texi: Likewise.
12590 * doc/install.texi: Likewise.
12591 * doc/invoke.texi: Likewise.
12592 * doc/loop.texi: Likewise.
12593 * doc/makefile.texi: Likewise.
12594 * doc/md.texi: Likewise.
12595 * doc/passes.texi: Likewise.
12596 * doc/tm.texi: Likewise.
12597 * doc/tree-ssa.texi: Likewise.
12598 * doc/trouble.texi: Likewise.
12599
12600 2008-06-15 Mark Shinwell <shinwell@codesourcery.com>
12601 Nathan Sidwell <nathan@codesourcery.com>
12602 Maxim Kuvyrkov <maxim@codesourcery.com>
12603 Richard Sandiford <rdsandiford@googlemail.com>
12604
12605 * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
12606 * config/mips/mips-protos.h (mips_expand_vector_init): New.
12607 * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
12608 builtins.
12609 * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
12610 (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
12611 (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
12612 V8QImode cases.
12613 (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
12614 (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
12615 (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
12616 (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
12617 (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
12618 (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
12619 (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
12620 (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
12621 (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
12622 (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
12623 (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
12624 (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
12625 (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
12626 (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
12627 (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
12628 (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
12629 (mips_builtins): Add Loongson builtins.
12630 (mips_loongson_2ef_bdesc): New.
12631 (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
12632 (mips_builtin_vector_type): Handle unsigned versions of vector modes.
12633 (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
12634 (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
12635 New.
12636 (mips_expand_vector_init): New.
12637 * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
12638 (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
12639 if appropriate.
12640 * config/mips/mips.md: Add unspec numbers for Loongson
12641 builtins. Include loongson.md.
12642 (MOVE64): Include Loongson vector modes.
12643 (SPLITF): Include Loongson vector modes.
12644 (HALFMODE): Handle Loongson vector modes.
12645 * config/mips/loongson.md: New.
12646 * config/mips/loongson.h: New.
12647 * config.gcc: Add loongson.h header for mips*-*-* targets.
12648 * doc/extend.texi (MIPS Loongson Built-in Functions): New.
12649
12650 2008-06-14 Joseph Myers <joseph@codesourcery.com>
12651
12652 * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
12653 h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
12654 i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
12655 iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
12656 m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
12657 m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
12658 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
12659 mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
12660 mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
12661 mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
12662 powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
12663 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
12664 sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
12665 sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
12666 sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
12667 v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
12668 Remove use_fixproto=yes.
12669 (ia64*-*-hpux*): Remove comment about using fixproto.
12670 (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
12671
12672 2008-06-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12673
12674 * configure.ac: Update gthr-default.h lazily, to avoid unneeded
12675 library rebuilds.
12676 * configure: Regenerate.
12677
12678 2008-06-13 Eric Botcazou <ebotcazou@adacore.com>
12679
12680 PR middle-end/36520
12681 * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
12682 before evaluating it.
12683
12684 2008-06-13 Jakub Jelinek <jakub@redhat.com>
12685
12686 PR c/36507
12687 * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
12688 nested inline functions.
12689 (start_decl, start_function): Don't invert DECL_EXTERNAL
12690 for nested inline functions.
12691
12692 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
12693
12694 * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
12695 splits that must be made for correctness.
12696
12697 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
12698
12699 * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
12700 (AVAIL_NON_MIPS16): Likewise.
12701 (mips_builtin_description): Replace target_flags with a predicate.
12702 (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
12703 (dspr2_32): New availability predicates.
12704 (MIPS_BUILTIN): New macro.
12705 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
12706 (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
12707 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
12708 Replace the TARGET_FLAGS parameters with AVAIL parameters.
12709 (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
12710 (mips_dsp_32only_bdesc): Merge into...
12711 (mips_builtins): ...this new array.
12712 (mips_bdesc_map, mips_bdesc_arrays): Delete.
12713 (mips_init_builtins): Update after above changes.
12714 (mips_expand_builtin_1): Merge into...
12715 (mips_expand_builtin): ...here and update after above changes.
12716
12717 2008-06-12 Paul Brook <paul@codesourcery.com>
12718
12719 * longlong.h (__arm__): Define count_leading_zeros.
12720 * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
12721 (clzsi2, clzdi2): New functions.
12722 * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
12723 * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
12724 * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
12725 * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
12726 * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
12727 * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
12728 * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
12729 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
12730 * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
12731 * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
12732
12733 2008-06-12 Kazu Hirata <kazu@codesourcery.com>
12734
12735 * config/m68k/m68k.c (m68k_tune_flags): New.
12736 (override_options): Compute m68k_tune_flags.
12737 (MULL_COST, MULW_COST): Update for various variants of CFV2.
12738 * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
12739
12740 2008-06-12 Jakub Jelinek <jakub@redhat.com>
12741
12742 PR middle-end/36506
12743 * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
12744
12745 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
12746
12747 * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
12748 TREE_THIS_VOLATILE on INDIRECT_REF nodes.
12749
12750 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
12751
12752 * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
12753 (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
12754
12755 2008-06-12 Jakub Jelinek <jakub@redhat.com>
12756
12757 PR middle-end/36506
12758 * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
12759 reductions.
12760
12761 2008-06-12 Richard Guenther <rguenther@suse.de>
12762
12763 PR tree-optimization/36345
12764 * tree-flow.h (struct ptr_info_def): Align escape_mask,
12765 add memory_tag_needed flag.
12766 (may_alias_p): Declare.
12767 * tree-ssa-alias.c (may_alias_p): Export.
12768 (set_initial_properties): Use memory_tag_needed flag.
12769 (update_reference_counts): Likewise.
12770 (reset_alias_info): Reset memory_tag_needed flag.
12771 (create_name_tags): Check memory_tag_needed flag.
12772 (dump_points_to_info_for): Dump it.
12773 * tree-ssa-structalias.c (struct variable_info): Remove
12774 directly_dereferenced flag.
12775 (new_var_info): Do not initialize it.
12776 (process_constraint_1): Do not set it.
12777 (update_alias_info): Set is_dereferenced flag.
12778 (set_uids_in_ptset): Use may_alias_p.
12779 (set_used_smts): Check memory_tag_needed flag.
12780 (find_what_p_points_to): Likewise. Pass is_dereferenced flag.
12781 * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
12782 memory_tag_needed flag.
12783 * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
12784 from broken design.
12785
12786 2008-06-12 Kai Tietz <kai.tietz@onevision.com>
12787
12788 * config/i386/i386.c (ix86_compute_frame_layout): Disable
12789 red zone for w64 abi.
12790 (ix86_expand_prologue): Likewise.
12791 (ix86_force_to_memory): Likewise.
12792 (ix86_free_from_memory): Likewise.
12793
12794 2008-06-11 Edmar Wienskoski <edmar@freescale.com>
12795
12796 PR target/36425
12797 * config/rs6000/rs6000.c (rs6000_override_options): Set
12798 rs6000_isel conditionally to the absence of comand line override.
12799 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
12800 Remove duplicate rs6000_isel setting.
12801 * config/rs6000/eabispe.h: Ditto.
12802
12803 2008-06-11 Richard Guenther <rguenther@suse.de>
12804
12805 * alias.c (get_alias_set): Use the element alias-set for arrays.
12806 (record_component_aliases): For arrays and vectors do nothing.
12807 * c-common.c (strict_aliasing_warning): Handle the cases
12808 of alias set zero explicitly.
12809 * Makefile.in (dfp.o-warn): Add -Wno-error.
12810
12811 2008-06-11 Joseph Myers <joseph@codesourcery.com>
12812
12813 * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
12814 tune_32 tune_64.
12815 (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
12816 tune_32 tune_64 to supported_defaults. Allow values not
12817 supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
12818 x86_64. Do not override cpu_32 or cpu_64 values from target name.
12819 (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
12820 with_cpu_64 to generic for 64-bit-supporting configurations, not
12821 with_cpu. Remove FIXMEs.
12822 * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
12823 --with-arch-64, --with-tune-32, --with-tune-64): Document.
12824 * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
12825 (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
12826 arch_32 and arch_64.
12827
12828 2008-06-11 Eric Botcazou <ebotcazou@adacore.com>
12829 Olivier Hainque <hainque@adacore.com>
12830
12831 * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
12832 Use DECL_SIZE_UNIT to retrieve the size of the field.
12833
12834 2008-06-11 Joseph Myers <joseph@codesourcery.com>
12835
12836 * config/arm/arm.c (arm_init_neon_builtins): Move initialization
12837 with function calls after declarations. Lay out
12838 neon_float_type_node before further use.
12839
12840 2008-06-11 Richard Guenther <rguenther@suse.de>
12841
12842 * tree-flow.h (may_point_to_global_var): Declare.
12843 * tree-ssa-alias.c (may_point_to_global_var): New function.
12844 * tree-ssa-sink.c (is_hidden_global_store): Use it.
12845
12846 2008-06-10 Kazu Hirata <kazu@codesourcery.com>
12847
12848 * configure.ac: Teach that fido supports .debug_line.
12849 * configure: Regenerate.
12850
12851 2008-06-10 Tom Tromey <tromey@redhat.com>
12852
12853 * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
12854 debug hook.
12855
12856 2008-06-10 Joseph Myers <joseph@codesourcery.com>
12857
12858 * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
12859 (encode_decimal64, decode_decimal64, encode_decimal128,
12860 decode_decimal128): Reverse order of 32-bit parts of value if host
12861 and target endianness differ.
12862
12863 2008-06-10 Vinodha Ramasamy <vinodha@google.com>
12864
12865 * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
12866 Avoid division by 0.
12867 (tree_mod_pow2_value_transform): Likewise.
12868 (tree_ic_transform): Likewise.
12869 (tree_stringops_transform): Likewise.
12870 (tree_mod_subtract_transform): Likewise.
12871 * tree-inline-c (copy_bb): Corrected int type to gcov_type.
12872 (copy_edges_for_bb): Likewise.
12873 (initialize_cfun): Likewise.
12874
12875 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
12876
12877 * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
12878 nonmemory_operand. Add "N" operand constraint.
12879 (*btsi): Ditto.
12880 (*jcc_btdi_mask_rex64): New instruction and split pattern.
12881 (*jcc_btsi_mask): Ditto.
12882 (*jcc_btsi_mask_1): Ditto.
12883
12884 2008-06-10 Joseph Myers <joseph@codesourcery.com>
12885
12886 * config/rs6000/rs6000.c (build_opaque_vector_type): Set
12887 TYPE_CANONICAL for copied element type.
12888
12889 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
12890
12891 PR target/36473
12892 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
12893 Add m_CORE2 and m_GENERIC.
12894 * config/i386/predicates.md (bt_comparison_operator): New predicate.
12895 * config/i386/i386.md (*btdi_rex64): New instruction pattern.
12896 (*btsi): Ditto.
12897 (*jcc_btdi_rex64): New instruction and split pattern.
12898 (*jcc_btsi): Ditto.
12899 (*jcc_btsi_1): Ditto.
12900 (*btsq): Fix Intel asm dialect operand order.
12901 (*btrq): Ditto.
12902 (*btcq): Ditto.
12903
12904 2008-06-09 Andy Hutchinson <hutchinsonandy@aim.com>
12905
12906 PR middle-end/36447
12907 * simplify-rtx.c (simplify_subreg): Add check for shift count
12908 greater than size.
12909
12910 2008-06-09 Richard Sandiford <rdsandiford@googlemail.com>
12911
12912 * doc/md.texi: Synchronize with later constraints.md change.
12913 * longlong.h (umul_ppmm): Replace the MIPS asm implementation
12914 with a C implementation.
12915 * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
12916 MFLO handling.
12917 (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
12918 (mips_split_doubleword_move): Use special MTHI and MFHI instructions
12919 when moving to and from MD_REGNUM.
12920 (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
12921 Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
12922 Handle byte and halfword moves.
12923 (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
12924 separately.
12925 * config/mips/constraints.md (h): Turn into NO_REGS.
12926 (l, x): Update documentation.
12927 * config/mips/mips.md (UNSPEC_MFHILO): Delete.
12928 (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
12929 (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
12930 (HILO): New mode iterator.
12931 (MOVE128): Add TI.
12932 (any_div): New code iterator.
12933 (u): Extend code attribute to div and udiv.
12934 (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
12935 d_operand in the splitters. Remove redundant CONST_INT checks.
12936 (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
12937 (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
12938 (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits
12939 accordingly, using normal moves instead of unspecs to move LO into
12940 a GPR. Use d_operand and lo_operand instead of *_REG_P checks.
12941 (<u>mulsidi3): Handle expansion in C code.
12942 (<u>mulsidi3_32bit_internal): Rename to...
12943 (<u>mulsidi3_32bit): ...this.
12944 (<u>mulsidi3_32bit_r4000): Fix insn separator.
12945 (*<u>mulsidi3_64bit): Rename to...
12946 (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers
12947 into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO
12948 to set LO and HI to the multiplication result. Use a normal move
12949 for MFLO and an unspec for MFHI.
12950 (*<u>mulsidi3_64bit_parts): Replace with...
12951 (<u>mulsidi3_64bit_hilo): ...this new instruction.
12952 (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
12953 (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
12954 and extend it to TARGET_FIX_R4000. Store the destination in a GPR
12955 instead of HI. Split the instruction into a separate multiplication
12956 and MFHI if !TARGET_FIX_R4000.
12957 (<su>muldi3_highpart): Likewise.
12958 (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
12959 and the "=h" clobber.
12960 (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
12961 (<u>mulditi3): New expander.
12962 (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
12963 (madsi): Remove "=h" clobber.
12964 (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
12965 Force the modulus result to be a GPR and split the instruction into
12966 a division followed by an MFHI after reload.
12967 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
12968 (*lea_high64): Use d_operand in the define_peephole2. Likewise
12969 the MIPS16 HIGH define_split.
12970 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
12971 of acc<->gpr moves to "multi".
12972 (*movdi_64bit): Replace the single "x" alternative with
12973 alternatives for moving into and out of "a".
12974 (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move.
12975 (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
12976 (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
12977 Use d_operand in the splitters. Remove redundant CONST_INT checks.
12978 (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move.
12979 (movti): New expander.
12980 (*movti, *movti_mips16): New insns.
12981 (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
12982 (mfhi<GPR:mode>_<HILO:mode>): New pattern.
12983 (mthi<GPR:mode>_<HILO:mode>): Likewise.
12984 * config/mips/predicates.md (fpr_operand): Delete.
12985 (d_operand): New predicate.
12986
12987 2008-06-09 Michael Meissner <michael.meissner@amd.com>
12988
12989 * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
12990 failure on some Bourne shells.
12991 (x86_64-*-*): Ditto.
12992
12993 2008-06-09 Kai Tietz <kai.tietz@onevision.com>
12994
12995 * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
12996
12997 2008-06-09 Eric Botcazou <ebotcazou@libertysurf.fr>
12998
12999 * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
13000 (sparc-sun-solaris2*): Likewise.
13001
13002 2008-06-09 Arnaud Charlet <charlet@adacore.com
13003
13004 * doc/install.texi: Update requirements to build the Ada compiler.
13005
13006 2008-06-08 Steven Bosscher <stevenb.gcc@gmail.com>
13007
13008 * df-scan.c (struct df_scan_problem_data): Remove the
13009 mw_link_pool alloc pool.
13010 (df_scan_free_internal): Don't free it.
13011 (df_scan_alloc): Don't allocate it.
13012 * df.h (struct df_link): Update comment.
13013
13014 2008-06-08 Nathan Sidwell <nathan@codesourcery.com>
13015
13016 * except.h: Correct checks for when SJLJ exceptions must be used.
13017
13018 2008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13019
13020 * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
13021 default.
13022
13023 2008-06-08 Joseph Myers <joseph@codesourcery.com>
13024
13025 PR tree-optimization/36218
13026 * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
13027 configure for the build system.
13028 (BUILD_LDFLAGS): Define.
13029 * configure: Regenerate.
13030 * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
13031
13032 2008-07-08 Anatoly Sokolov <aesok@post.ru>
13033
13034 PR target/36424
13035 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
13036 * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
13037 * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
13038
13039 2008-06-07 Danny Smith <dannysmith@users.sourceforge.net>
13040
13041 * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
13042
13043 2008-06-07 Joseph Myers <joseph@codesourcery.com>
13044
13045 * config.gcc (Obsolete configurations): Remove list of
13046 configurations.
13047 (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
13048 *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
13049 targets matched by those patterns.
13050 (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
13051 m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
13052 alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
13053 arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
13054 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
13055 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
13056 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
13057 i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
13058 i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
13059 mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
13060 powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
13061 powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
13062 strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
13063 vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
13064 i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
13065 Make code for Solaris 7 and greater unconditional for Solaris.
13066 (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
13067 Remove --with-* handling.
13068 * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
13069 (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
13070 ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
13071 LINK_OS_WINDISS_SPEC): Remove.
13072 * config/rs6000/sysv4.opt (mwindiss): Remove.
13073 * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
13074 * configure: Regenerate.
13075 * doc/cpp.texi: Don't mention BeOS.
13076 * doc/extend.texi (interrupt): Don't mention MS1.
13077 * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
13078 m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
13079 alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
13080 i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
13081 powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
13082 Remove.
13083 * doc/invoke.texi (MT Options): Remove.
13084 (-mwindiss): Remove.
13085 (CRIS Options): Remove cris-axis-aout references.
13086 (HPPA Options): Don't mention hppa1.1-*-pro.
13087 * doc/md.texi: (MorphoTech family): Remove.
13088 * libgcc2.c: Don't handle UWIN.
13089 * config/alpha/t-unicosmk: Remove.
13090 * config/alpha/unicosmk.h: Remove.
13091 * config/arm/kaos-arm.h: Remove.
13092 * config/arm/kaos-strongarm.h: Remove.
13093 * config/arm/strongarm-coff.h: Remove.
13094 * config/arm/strongarm-elf.h: Remove.
13095 * config/arm/strongarm-pe.h: Remove.
13096 * config/arm/t-strongarm-pe: Remove.
13097 * config/arm/t-xscale-coff: Remove.
13098 * config/arm/t-xscale-elf: Remove.
13099 * config/arm/xscale-coff.h: Remove.
13100 * config/arm/xscale-elf.h: Remove.
13101 * config/chorus.h: Remove.
13102 * config/cris/aout.h: Remove.
13103 * config/cris/aout.opt: Remove.
13104 * config/cris/t-aout: Remove.
13105 * config/i386/beos-elf.h: Remove.
13106 * config/i386/kaos-i386.h: Remove.
13107 * config/i386/ptx4-i.h: Remove.
13108 * config/i386/sco5.h: Remove.
13109 * config/i386/sco5.opt: Remove.
13110 * config/i386/sysv4-cpp.h: Remove.
13111 * config/i386/sysv5.h: Remove.
13112 * config/i386/t-beos: Remove.
13113 * config/i386/t-sco5: Remove.
13114 * config/i386/t-uwin: Remove.
13115 * config/i386/uwin.asm: Remove.
13116 * config/i386/uwin.h: Remove.
13117 * config/kaos.h: Remove.
13118 * config/mips/windiss.h: Remove.
13119 * config/mt: Remove directory.
13120 * config/pa/pa-osf.h: Remove.
13121 * config/pa/pa-pro-end.h: Remove.
13122 * config/pa/t-pro: Remove.
13123 * config/ptx4.h: Remove.
13124 * config/rs6000/beos.h: Remove.
13125 * config/rs6000/kaos-ppc.h: Remove.
13126 * config/rs6000/t-beos: Remove.
13127 * config/rs6000/windiss.h: Remove.
13128 * config/sh/kaos-sh.h: Remove.
13129 * config/sol2-6.h: Remove.
13130 * config/sparc/sol26-sld.h: Remove.
13131 * config/sparc/sysv4-only.h: Remove.
13132 * config/vax/bsd.h: Remove.
13133 * config/vax/t-memfuncs: Remove.
13134 * config/vax/ultrix.h: Remove.
13135 * config/vax/vaxv.h: Remove.
13136 * config/windiss.h: Remove.
13137
13138 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
13139
13140 PR rtl-optimization/36438
13141 * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
13142 for vector shifts with constant scalar shift operands.
13143
13144 2008-06-06 Sandip Matte <sandip@rmicorp.com>
13145
13146 * doc/invoke.texi: Document -march=xlr.
13147 * config/mips/xlr.md: New file.
13148 * config/mips/mips.md: Include it.
13149 (cpu): Add "xlr".
13150 * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
13151 * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
13152 (mips_rtx_cost_data): Likewise.
13153
13154 2008-06-06 Nathan Froyd <froydnj@codesourcery.com>
13155
13156 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
13157 PRE_INC and PRE_DEC cases.
13158
13159 2008-06-06 Jakub Jelinek <jakub@redhat.com>
13160
13161 PR rtl-optimization/36419
13162 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
13163 the emitting jump insn.
13164
13165 PR target/36362
13166 * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
13167 is not bool, boolify the whole *expr_p and convert to the desired type.
13168
13169 2008-06-06 Jakub Jelinek <jakub@redhat.com>
13170
13171 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
13172 * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
13173 Add omp_private_outer_ref hook, add another argument to
13174 omp_clause_default_ctor hook.
13175 * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
13176 (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
13177 (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
13178 hook_tree_tree_tree_tree_null.
13179 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
13180 LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
13181 * hooks.c (hook_tree_tree_tree_tree_null): New function.
13182 * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
13183 * tree.def (OMP_TASK): New tree code.
13184 * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
13185 OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
13186 OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
13187 OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
13188 OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
13189 OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
13190 OMP_CLAUSE_COLLAPSE_EXPR): Define.
13191 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
13192 (OMP_DIRECTIVE_P): Add OMP_TASK.
13193 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
13194 (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
13195 * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
13196 and OMP_CLAUSE_UNTIED entries.
13197 (omp_clause_num_ops): Likewise. Increase OMP_CLAUSE_LASTPRIVATE
13198 num_ops to 2.
13199 (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
13200 Walk OMP_CLAUSE_LASTPRIVATE_STMT.
13201 * tree-pretty-print.c (dump_omp_clause): Handle
13202 OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
13203 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
13204 (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
13205 * c-omp.c (c_finish_omp_for): Allow pointer iterators. Remove
13206 warning about unsigned iterators. Change decl/init/cond/incr
13207 arguments to TREE_VECs, check arguments for all collapsed loops.
13208 (c_finish_omp_taskwait): New function.
13209 (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
13210 ws_clauses.
13211 * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops. Call
13212 default_function_array_conversion on init. Add par_clauses argument.
13213 If decl is present in parallel's lastprivate clause, change it to
13214 shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
13215 Add clauses argument, on success set OMP_FOR_CLAUSES to it. Look up
13216 collapse count in clauses.
13217 (c_parser_omp_for, c_parser_omp_parallel): Adjust
13218 c_parser_omp_for_loop callers.
13219 (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
13220 (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
13221 (c_parser_omp_clause_name): Handle collapse and untied clauses.
13222 (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
13223 functions.
13224 (c_parser_omp_clause_schedule): Handle schedule(auto).
13225 Include correct location in the error message.
13226 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
13227 and PRAGMA_OMP_CLAUSE_UNTIED.
13228 (OMP_TASK_CLAUSE_MASK): Define.
13229 (c_parser_omp_task, c_parser_omp_taskwait): New functions.
13230 (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
13231 * tree-nested.c (convert_nonlocal_omp_clauses,
13232 convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
13233 OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
13234 OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
13235 Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
13236 OMP_CLAUSE_DECL.
13237 (conver_nonlocal_reference, convert_local_reference,
13238 convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL. Use
13239 OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
13240 (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
13241 * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
13242 * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
13243 * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
13244 (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
13245 * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
13246 (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
13247 OMP_CLAUSE_UNTIED.
13248 * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
13249 * c-common.h (c_finish_omp_taskwait): New prototype.
13250 * gimple-low.c (lower_stmt): Handle OMP_TASK.
13251 * tree-parloops.c (create_parallel_loop): Create 1 entry
13252 vectors for OMP_FOR_{INIT,COND,INCR}.
13253 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
13254 (make_edges): Handle OMP_TASK.
13255 * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
13256 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
13257 * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
13258 * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
13259 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
13260 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
13261 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
13262 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
13263 * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
13264 BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
13265 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
13266 BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
13267 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
13268 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
13269 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
13270 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
13271 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
13272 BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
13273 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
13274 BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
13275 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
13276 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
13277 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
13278 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
13279 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
13280 * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
13281 handle POINTER_PLUS_EXPR. If loop counter has been replaced and
13282 original iterator is present in lastprivate clause or if
13283 collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT. Handle collapsed
13284 OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
13285 (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
13286 (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
13287 (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
13288 if it is set, lookup var in outer contexts too. Handle
13289 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE. Handle vars that are supposed
13290 to be implicitly determined firstprivate for task regions.
13291 (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
13292 if it is set, lookup var in outer contexts too. Set
13293 OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
13294 Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
13295 OMP_CLAUSE_UNTIED. Take region_type as last argument
13296 instead of in_parallel and in_combined_parallel.
13297 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
13298 Adjust callers.
13299 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
13300 GOVD_PRIVATE_OUTER_REF is set. Call omp_finish_clause langhook.
13301 (new_omp_context): Set default_kind to
13302 OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
13303 (omp_region_type): New enum.
13304 (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
13305 fields, add region_type.
13306 (new_omp_context): Take region_type as argument instead of is_parallel
13307 and is_combined_parallel.
13308 (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
13309 omp_is_private, omp_check_private): Adjust ctx->is_parallel and
13310 ctx->is_combined_parallel checks.
13311 (gimplify_omp_task): New function.
13312 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
13313 OMP_CLAUSE_UNTIED.
13314 * omp-low.c (extract_omp_for_data): Use schedule(static)
13315 for schedule(auto). Handle pointer and unsigned iterators.
13316 Compute fd->iter_type. Handle POINTER_PLUS_EXPR increments.
13317 Add loops argument. Extract data for collapsed OMP_FOR loops.
13318 (expand_parallel_call): Assert sched_kind isn't auto,
13319 map runtime schedule to index 3.
13320 (struct omp_for_data_loop): New type.
13321 (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
13322 Add loop, loops, collapse and iter_type fields.
13323 (workshare_safe_to_combine_p): Disallow combined for if
13324 iter_type is unsigned long long. Don't combine collapse > 1 loops
13325 unless all bounds and steps are constant. Adjust extract_omp_for_data
13326 caller.
13327 (expand_omp_for_generic): Handle pointer, unsigned and long long
13328 iterators. Handle collapsed OMP_FOR loops. Adjust
13329 for struct omp_for_data changes. If libgomp function doesn't return
13330 boolean_type_node, add comparison of the return value with 0.
13331 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
13332 pointer, unsigned and long long iterators. Adjust for struct
13333 omp_for_data changes.
13334 (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
13335 to index 3. Use GOMP_loop_ull*{start,next} if iter_type is
13336 unsigned long long. Allocate loops array, pass it to
13337 extract_omp_for_data. For collapse > 1 loops use always
13338 expand_omp_for_generic.
13339 (omp_context): Add sfield_map and srecord_type fields.
13340 (is_task_ctx, lookup_sfield): New functions.
13341 (use_pointer_for_field): Use is_task_ctx helper. Change first
13342 argument's type from const_tree to tree. Clarify comment.
13343 In OMP_TASK disallow copy-in/out sharing.
13344 (build_sender_ref): Call lookup_sfield instead of lookup_field.
13345 (install_var_field): Add mask argument. Populate both record_type
13346 and srecord_type if needed.
13347 (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
13348 in srecord_type.
13349 (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
13350 and DECL_FIELD_OFFSET.
13351 (scan_sharing_clauses): Adjust install_var_field callers. For
13352 firstprivate clauses on explicit tasks allocate the var by value in
13353 record_type unconditionally, rather than by reference.
13354 Handle OMP_CLAUSE_PRIVATE_OUTER_REF. Scan OMP_CLAUSE_LASTPRIVATE_STMT.
13355 Use is_taskreg_ctx instead of is_parallel_ctx.
13356 Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
13357 (create_omp_child_function_name): Add task_copy argument, use
13358 *_omp_cpyfn* names if it is true.
13359 (create_omp_child_function): Add task_copy argument, if true create
13360 *_omp_cpyfn* helper function.
13361 (scan_omp_parallel): Adjust create_omp_child_function callers.
13362 Rename parallel_nesting_level to taskreg_nesting_level.
13363 (scan_omp_task): New function.
13364 (lower_rec_input_clauses): Don't run constructors for firstprivate
13365 explicit task vars which are initialized by *_omp_cpyfn*.
13366 Pass outer var ref to omp_clause_default_ctor hook if
13367 OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
13368 Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
13369 OMP_CLAUSE_REDUCTION_INIT.
13370 (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
13371 avoid duplicate setting of fields. Handle
13372 OMP_CLAUSE_PRIVATE_OUTER_REF.
13373 (lower_send_shared_vars): Use srecord_type if non-NULL. Don't
13374 copy-out if TREE_READONLY, only copy-in.
13375 (expand_task_copyfn): New function.
13376 (expand_task_call): New function.
13377 (struct omp_taskcopy_context): New type.
13378 (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
13379 New functions.
13380 (lower_omp_parallel): Rename to...
13381 (lower_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
13382 Call create_task_copyfn if srecord_type is needed. Adjust
13383 sender_decl type.
13384 (task_shared_vars): New variable.
13385 (check_omp_nesting_restrictions): Warn if work-sharing,
13386 barrier, master or ordered region is closely nested inside OMP_TASK.
13387 Add warnings for barrier if closely nested inside of work-sharing,
13388 ordered, or master region.
13389 (scan_omp_1): Call check_omp_nesting_restrictions even for
13390 GOMP_barrier calls. Rename parallel_nesting_level to
13391 taskreg_nesting_level. Handle OMP_TASK.
13392 (lower_lastprivate_clauses): Even if some lastprivate is found on a
13393 work-sharing construct, continue looking for them on parent parallel
13394 construct.
13395 (lower_omp_for_lastprivate): Add lastprivate clauses
13396 to the beginning of dlist rather than end. Adjust for struct
13397 omp_for_data changes.
13398 (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
13399 not after it. Handle collapsed OMP_FOR loops, adjust for
13400 OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
13401 (get_ws_args_for): Adjust extract_omp_for_data caller.
13402 (scan_omp_for): Handle collapsed OMP_FOR
13403 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
13404 (lower_omp_single_simple): If libgomp function doesn't return
13405 boolean_type_node, add comparison of the return value with 0.
13406 (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
13407 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes. Handle OMP_TASK.
13408 (parallel_nesting_level): Rename to...
13409 (taskreg_nesting_level): ... this.
13410 (is_taskreg_ctx): New function.
13411 (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
13412 of is_parallel_ctx.
13413 (execute_lower_omp): Rename parallel_nesting_level to
13414 taskreg_nesting_level.
13415 (expand_omp_parallel): Rename to...
13416 (expand_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
13417 Call omp_task_call for OMP_TASK regions.
13418 (expand_omp): Adjust caller, handle OMP_TASK.
13419 (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
13420
13421 * bitmap.c (bitmap_default_obstack_depth): New variable.
13422 (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
13423 if argument is NULL and bitmap_default_obstack is already initialized.
13424 * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
13425 at the end.
13426 * matrix-reorg.c (matrix_reorg): Likewise.
13427
13428 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
13429
13430 * config/i386/i386.md (*indirect_jump): Macroize using P
13431 mode iterator. Remove !TARGET_64BIT from insn constraints.
13432 (*tablejump_1): Ditto.
13433 (*indirect_jump_rex64): Remove insn pattern.
13434 (*tablejump_1_rex64): Ditto.
13435 (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
13436 and eh_return_si insn patterns.
13437
13438 2008-06-06 Richard Guenther <rguenther@suse.de>
13439
13440 * tree-ssa-structalias.c (merge_smts_into): Remove.
13441 (find_what_p_points_to): Do not bother to compute the
13442 points-to set for pt_anything pointers.
13443 * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
13444 for pt_anything pointers is ok.
13445
13446 2008-06-06 Jan Hubicka <jh@suse.cz>
13447
13448 * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
13449
13450 2008-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13451
13452 * cgraph.c: Fix typos in comments.
13453 (cgraph_availability_names): Fix string typo.
13454 * fold-const.c: Fix typos in comments.
13455 (fold_binary): Fix typo in warning.
13456 * genautomata.c: Fix typos in comments.
13457 (check_presence_pattern_sets): Fix typo in local variable.
13458 (output_description): Fix typo in output.
13459 * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
13460 * hwint.h: Likewise.
13461 * matrix-reorg.c (check_allocation_function): Likewise.
13462 * omega.c (smooth_weird_equations): Likewise.
13463 * auto-inc-dec.c: Fix typos in comments.
13464 * bb-reorder.c: Likewise.
13465 * builtins.c: Likewise.
13466 * c-common.c: Likewise.
13467 * c-cppbuiltin.c: Likewise.
13468 * c-parser.c: Likewise.
13469 * c-pretty-print.c: Likewise.
13470 * cfgcleanup.c: Likewise.
13471 * cfgexpand.c: Likewise.
13472 * cfghooks.c: Likewise.
13473 * cfglayout.c: Likewise.
13474 * cfgloopmanip.c: Likewise.
13475 * cgraphunit.c: Likewise.
13476 * coverage.c: Likewise.
13477 * dbxout.c: Likewise.
13478 * df-byte-scan.c: Likewise.
13479 * df-core.c: Likewise.
13480 * df-problems.c: Likewise.
13481 * df-scan.c: Likewise.
13482 * dfp.c: Likewise.
13483 * dominance.c: Likewise.
13484 * domwalk.c: Likewise.
13485 * dse.c: Likewise.
13486 * dwarf2out.c: Likewise.
13487 * emit-rtl.c: Likewise.
13488 * et-forest.c: Likewise.
13489 * function.c: Likewise.
13490 * function.h: Likewise.
13491 * gcc.c: Likewise.
13492 * gcov-io.c: Likewise.
13493 * gcov.c: Likewise.
13494 * gcse.c: Likewise.
13495 * genattrtab.c: Likewise.
13496 * ggc-page.c: Likewise.
13497 * gimplify.c: Likewise.
13498 * gthr-lynx.h: Likewise.
13499 * haifa-sched.c: Likewise.
13500 * ipa-cp.c: Likewise.
13501 * ipa-inline.c: Likewise.
13502 * ipa-prop.h: Likewise.
13503 * ipa-pure-const.c: Likewise.
13504 * ipa-struct-reorg.c: Likewise.
13505 * ipa-struct-reorg.h: Likewise.
13506 * ipa-type-escape.c: Likewise.
13507 * ipa.c: Likewise.
13508 * loop-doloop.c: Likewise.
13509 * mips-tfile.c: Likewise.
13510 * mkmap-flat.awk: Likewise.
13511 * mkmap-symver.awk: Likewise.
13512 * modulo-sched.c: Likewise.
13513 * omp-low.c: Likewise.
13514 * optabs.c: Likewise.
13515 * optabs.h: Likewise.
13516 * opts.c: Likewise.
13517 * passes.c: Likewise.
13518 * postreload-gcse.c: Likewise.
13519 * postreload.c: Likewise.
13520 * predict.c: Likewise.
13521 * pretty-print.h: Likewise.
13522 * profile.c: Likewise.
13523 * protoize.c: Likewise.
13524 * ra-conflict.c: Likewise.
13525 * real.c: Likewise.
13526 * recog.c: Likewise.
13527 * regclass.c: Likewise.
13528 * regs.h: Likewise.
13529 * reload.c: Likewise.
13530 * rtl-error.c: Likewise.
13531 * rtlanal.c: Likewise.
13532 * scan.h: Likewise.
13533 * sched-rgn.c: Likewise.
13534 * see.c: Likewise.
13535 * stmt.c: Likewise.
13536 * target.h: Likewise.
13537 * tree-dfa.c: Likewise.
13538 * tree-eh.c: Likewise.
13539 * tree-flow-inline.h: Likewise.
13540 * tree-inline.c: Likewise.
13541 * tree-into-ssa.c: Likewise.
13542 * tree-loop-distribution.c: Likewise.
13543 * tree-nested.c: Likewise.
13544 * tree-parloops.c: Likewise.
13545 * tree-pass.h: Likewise.
13546 * tree-pretty-print.c: Likewise.
13547 * tree-profile.c: Likewise.
13548 * tree-scalar-evolution.c: Likewise.
13549 * tree-sra.c: Likewise.
13550 * tree-ssa-alias-warnings.c: Likewise.
13551 * tree-ssa-ccp.c: Likewise.
13552 * tree-ssa-coalesce.c: Likewise.
13553 * tree-ssa-dom.c: Likewise.
13554 * tree-ssa-dse.c: Likewise.
13555 * tree-ssa-forwprop.c: Likewise.
13556 * tree-ssa-live.c: Likewise.
13557 * tree-ssa-live.h: Likewise.
13558 * tree-ssa-loop-im.c: Likewise.
13559 * tree-ssa-loop-ivopts.c: Likewise.
13560 * tree-ssa-loop-niter.c: Likewise.
13561 * tree-ssa-loop-prefetch.c: Likewise.
13562 * tree-ssa-phiopt.c: Likewise.
13563 * tree-ssa-phiprop.c: Likewise.
13564 * tree-ssa-sccvn.c: Likewise.
13565 * tree-ssa-ter.c: Likewise.
13566 * tree-ssa-threadupdate.c: Likewise.
13567 * tree-ssa.c: Likewise.
13568 * tree-vect-analyze.c: Likewise.
13569 * tree-vect-transform.c: Likewise.
13570 * tree-vectorizer.c: Likewise.
13571 * tree-vn.c: Likewise.
13572 * tree-vrp.c: Likewise.
13573 * tree.c: Likewise.
13574 * tree.def: Likewise.
13575 * tree.h: Likewise.
13576 * unwind-dw2-fde.c: Likewise.
13577 * unwind.inc: Likewise.
13578 * value-prof.c: Likewise.
13579 * vmsdbgout.c: Likewise.
13580
13581 2008-06-05 David Edelsohn <edelsohn@gnu.org>
13582
13583 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
13584 always place FP constants in the TOC for TARGET_POWERPC64.
13585 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
13586
13587 2008-06-05 Joseph Myers <joseph@codesourcery.com>
13588
13589 * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
13590 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
13591 enable for TARGET_E500_DOUBLE.
13592 (*movdd_softfloat32): Also enable for !TARGET_FPRS.
13593 * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
13594 floating-point modes like integer modes for E500 double.
13595 (rs6000_legitimate_offset_address_p): Likewise.
13596 (rs6000_legitimize_address): Likewise. Do not allow REG+REG
13597 addressing for DDmode for E500 double.
13598 (rs6000_hard_regno_nregs): Do not treat decimal floating-point
13599 modes as using 64-bits of registers for E500 double.
13600 (spe_build_register_parallel): Do not handle DDmode or TDmode.
13601 (rs6000_spe_function_arg): Do not handle DDmode or TDmode
13602 specially for E500 double.
13603 (function_arg): Do not call rs6000_spe_function_arg for DDmode or
13604 TDmode for E500 double.
13605 (rs6000_gimplify_va_arg): Only handle SDmode in registers
13606 specially if TARGET_HARD_FLOAT && TARGET_FPRS.
13607 (rs6000_split_multireg_move): Do not handle TDmode specially for
13608 E500 double.
13609 (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
13610 using 64-bit registers for E500 double.
13611 (emit_frame_save): Do not handle DDmode specially for E500 double.
13612 (gen_frame_mem_offset): Likewise.
13613 (rs6000_function_value): Do not call spe_build_register_parallel
13614 for DDmode or TDmode.
13615 (rs6000_libcall_value): Likewise.
13616 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
13617 DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
13618 for E500 double.
13619
13620 2008-06-04 H.J. Lu <hongjiu.lu@intel.com>
13621
13622 * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
13623 in comments.
13624
13625 2008-06-04 Junjie Gu <jgu@tensilica.com>
13626
13627 * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
13628 comparison for frame pointers.
13629
13630 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
13631
13632 PR target/27386
13633 * config/avr/avr.h (PUSH_ROUNDING): Remove.
13634
13635 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
13636
13637 PR target/30243
13638 * builtins.c (expand_builtin_signbit): Don't take lowpart when
13639 register is already smaller or equal to required mode.
13640
13641 2008-06-04 Xinliang David Li <davidxl@google.com>
13642
13643 * tree-call-cdce.c: New file.
13644 (cond_dead_built_in_calls): New static variable.
13645 (input_domain): New struct.
13646 (check_pow): New function.
13647 (check_builtin_call): Ditto.
13648 (check_target_format): Ditto.
13649 (is_call_dce_candidate): Ditto.
13650 (gen_one_condition): Ditto.
13651 (gen_conditions_for_domain): Ditto.
13652 (get_domain): Ditto.
13653 (gen_conditions_for_pow_cst_base): Ditto.
13654 (gen_conditions_for_pow_int_base): Ditto.
13655 (gen_conditions_for_pow): Ditto.
13656 (get_no_error_domain): Ditto.
13657 (gen_shrink_wrap_conditions): Ditto.
13658 (shrink_wrap_one_built_in_call): Ditto.
13659 (shink_wrap_conditional_dead_built_in_calls): Ditto.
13660 (tree_call_cdce): Ditto.
13661 (gate_call_cdce): Ditto.
13662 (pass_call_cdce): New gimple pass.
13663 * passes.c: (init_optimization_passes): New pass.
13664 * tree-pass.h: New pass declaration.
13665 * opts.c (decode_options): New flag setting.
13666 * common.opt: Add -ftree-builtin-call-dce flag.
13667 * Makefile.in: Add new source file.
13668 * tempvar.def: New tv_id.
13669 * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
13670
13671 2008-06-04 Richard Guenther <rguenther@suse.de>
13672
13673 * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
13674 (is_call_clobbered): Always check var_ann->call_clobbered.
13675 (mark_call_clobbered): Always set var_ann->call_clobbered.
13676 (clear_call_clobbered): Always clear var_ann->call_clobbered.
13677 * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
13678 (reset_alias_info): Clear call clobbering info on MTAGs and
13679 globals as well.
13680 (set_pt_anything): Set pt_global_mem.
13681 (create_tag_raw): Adjust comment.
13682 (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
13683
13684 2008-06-04 Joseph Myers <joseph@codesourcery.com>
13685 Maxim Kuvyrkov <maxim@codesourcery.com>
13686
13687 * config/m68k/m68k.opt (mxgot): New option.
13688 * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
13689 (m68k_output_addr_const_extra): New.
13690 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
13691 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
13692 * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
13693 * doc/invoke.texi (M680x0 Options): Document -mxgot.
13694
13695 2008-06-04 Richard Guenther <rguenther@suse.de>
13696
13697 * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
13698 negative or non-representable offsets.
13699
13700 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
13701
13702 * config/i386/i386.c (ix86_gen_leave): New.
13703 (ix86_gen_pop1): Likewise.
13704 (ix86_gen_add3): Likewise.
13705 (ix86_gen_sub3): Likewise.
13706 (ix86_gen_sub3_carry): Likewise.
13707 (ix86_gen_one_cmpl2): Likewise.
13708 (ix86_gen_monitor): Likewise.
13709 (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
13710 ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
13711 ix86_gen_one_cmpl2 and ix86_gen_monitor.
13712 (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
13713 (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
13714 mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
13715 (ix86_expand_epilogue): Updated.
13716 (print_operand): Handle integer register operand for 'z'.
13717 (ix86_expand_strlensi_unroll_1): Likewise.
13718 (ix86_expand_strlen): Likewise.
13719 (ix86_expand_builtin): Likewise.
13720 (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
13721 mov{q}/mov{l} and add{q}/add{l}.
13722
13723 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
13724
13725 * config/i386/i386.md (P): New mode iterator.
13726 (SFmode push_operand splitter): Macroize DImode and SImode pushes
13727 using P mode iterator.
13728 (DFmode push_operand splitter): Ditto.
13729 (XFmode push_operand splitter): Ditto.
13730 (DFmode float_extend SFmode push_operand splitter): Ditto.
13731 (XFmode float_extend SFmode push_operand splitter): Do not generate
13732 SImode pushes for 64bit target. Macroize Dimode and SImode
13733 pushes using P mode iterator.
13734 (XFmode float_extend DFmode push_operand splitter): Ditto.
13735
13736 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
13737
13738 * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
13739 * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
13740 * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
13741 return type to int.
13742 (ix86_call_abi_override): Remove check for call_used_regs.
13743
13744 2008-06-03 Richard Guenther <rguenther@suse.de>
13745
13746 * tree-ssa-structalias.c (find_func_aliases): Add constraints
13747 for the lhs of calls if the return type contains pointers.
13748
13749 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
13750
13751 * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
13752 * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
13753 * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
13754 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
13755 of cfun and DEFAULT_ABI to deceide abi mode.
13756 (DEFAULT_ABI): New.
13757 (REG_PARM_STACK_SPACE): Removed.
13758 (OUTGOING_REG_PARM_STACK_SPACE): Removed.
13759 (STACK_BOUNDARY): Use default target to deceide stack boundary.
13760 * config/i386/i386-protos.h (ix86_cfun_abi): New.
13761 (ix86_function_abi): Likewise.
13762 (ix86_function_type_abi): Likewise.
13763 (ix86_call_abi_override): Likewise.
13764 * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
13765 specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
13766 * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
13767 (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
13768 specific defines.
13769 (X86_64_REGPARM_MAX): New.
13770 (X86_64_SSE_REGPARM_MAX): New.
13771 (X64_REGPARM_MAX): New.
13772 (X64_SSE_REGPARM_MAX): New.
13773 (X86_32_REGPARM_MAX): New.
13774 (X86_32_SSE_REGPARM_MAX): New.
13775 (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
13776 (ix86_function_regparm): Handle user calling abi.
13777 (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
13778 by DEFAULT_ABI versus SYSV_ABI check.
13779 (ix86_reg_parm_stack_space): New.
13780 (ix86_function_type_abi): New.
13781 (ix86_call_abi_override): New.
13782 (ix86_function_abi): New.
13783 (ix86_cfun_abi): New.
13784 (init_cumulative_args): Call abi specific initialization.
13785 (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
13786 (function_arg_64): Extend SSE_REGPARM_MAX check.
13787 (function_arg (): Remove TARGET_64BIT_MS_ABI.
13788 (ix86_pass_by_reference): Likewise.
13789 (ix86_function_value_regno_p): Likewise.
13790 (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
13791 (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
13792 (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
13793 (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
13794 (setup_incoming_varargs_64): Adjust regparm for call abi.
13795 (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
13796 (ix86_va_start): Likewise.
13797 (ix86_gimplify_va_arg): Likewise.
13798 (ix86_expand_prologue): Likewise.
13799 (output_pic_addr_const): Likewise.
13800 (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
13801 (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
13802 (x86_output_mi_thunk): Likewise.
13803 (x86_function_profiler): Likewise.
13804 * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
13805 (SYSV_ABI, MS_ABI): New constants.
13806 (DEFAULT_ABI): New.
13807 (init_regs): Add prototype of function in regclass.c file.
13808 (OVERRIDE_ABI_FORMAT): New.
13809 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
13810 (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
13811 (OUTGOING_REG_PARM_STACK_SPACE): New.
13812 (ix86_reg_parm_stack_space): New prototype.
13813 (CUMULATIVE_ARGS): Add call_abi member.
13814 (machine_function): Add call_abi member.
13815 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
13816 TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
13817
13818 2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
13819
13820 PR target/34879
13821 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
13822 (avr_builtin_setjmp_frame_value): New function.
13823 * config/avr/avr.md (nonlocal_goto_receiver): Define.
13824 (nonlocal_goto): Define.
13825
13826 2008-06-02 Richard Sandiford <rdsandiford@googlemail.com>
13827
13828 * config/mips/mips.c (mips_emit_loadgp): Return early if
13829 there is nothing do to, otherwise emit a blockage if
13830 !TARGET_EXPLICIT_RELOCS || crtl->profile.
13831 * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
13832
13833 2008-06-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13834
13835 * configure.ac: Drop unneeded backslash ending up in config.in.
13836 * acinclude.m4: Likewise.
13837 * config.in: Regenerate.
13838
13839 2008-05-26 Jan Hubicka <jh@suse.cz>
13840
13841 * predict.c (maybe_hot_frequency_p): Break out of...
13842 (maybe_hot_bb_p): ... here.
13843 (maybe_hot_edge_p): New.
13844 * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
13845 * basic-block.h (maybe_hot_edge_p): Declare.
13846
13847 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
13848
13849 * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
13850 (*cmpfp_<mode>_cc): Ditto.
13851 (*fp_jcc_8<mode>_387): Ditto.
13852 (*fop_<MODEF:mode>_2_i387): Ditto.
13853 (*fop_<MODEF:mode>_3_i387): Ditto.
13854 (*fop_xf_2_i387): Ditto.
13855 (*fop_xf_3_i387): Ditto.
13856
13857 2008-06-02 Tomas Bily <tbily@suse.cz>
13858
13859 * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
13860
13861 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
13862
13863 * config/mips/mips.c (mips_valid_offset_p): New function.
13864 (mips_valid_lo_sum_p): Likewise.
13865 (mips_classify_address): Use them.
13866 (mips_force_address): New function.
13867 (mips_legitimize_address): Use it.
13868 * config/mips/mips.md (MOVE128): New mode iterator.
13869 (movtf): Require TARGET_64BIT. Remove empty strings.
13870 (*movtf_internal): Rename to...
13871 (*movtf): ...this and require !TARGET_MIPS16. Use "m" instead
13872 of "R" and use {,fp}{load,store} attributes instead of "multi".
13873 Use a separate define_split.
13874 (*movtf_mips16): New pattern.
13875
13876 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
13877
13878 * config/mips/mips-protos.h (mips_expand_before_return): Declare.
13879 * config/mips/mips.c (mips_expand_before_return): New function.
13880 (mips_expand_epilogue): Call it.
13881 * config/mips/mips.md (return): Turn into a define_expand.
13882 (*return): New insn.
13883
13884 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
13885
13886 * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
13887 * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
13888 functions. Do not emit uses and clobbers of CONCATs; individually
13889 use and clobber their operands.
13890 * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
13891 gen_clobber, emit_use and gen_use.
13892 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
13893 (expand_builtin_return): Likewise.
13894 * cfgbuild.c (count_basic_blocks): Likewise.
13895 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
13896 * explow.c (emit_stack_restore): Likewise.
13897 * expmed.c (extract_bit_field_1): Likewise.
13898 * expr.c (convert_move, emit_move_complex_parts): Likewise.
13899 (emit_move_multi_word, store_constructor): Likewise.
13900 * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
13901 (thread_prologue_and_epilogue_insns): Likewise.
13902 * lower-subreg.c (resolve_simple_move): Likewise.
13903 * optabs.c (widen_operand, expand_binop): Likewise.
13904 (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
13905 * reload.c (find_reloads): Likewise.
13906 * reload1.c (eliminate_regs_in_insn): Likewise.
13907 * stmt.c (expand_nl_goto_receiver): Likewise.
13908 * config/alpha/alpha.md (builtin_longjmp): Likewise.
13909 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
13910 * config/arm/arm.c (arm_load_pic_register): Likewise.
13911 (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
13912 * config/arm/arm.md (untyped_return): Likewise.
13913 * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
13914 * config/avr/avr.c (expand_prologue): Likewise.
13915 * config/bfin/bfin.c (do_unlink): Likewise.
13916 * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
13917 * config/cris/cris.c (cris_expand_prologue): Likewise.
13918 * config/darwin.c (machopic_indirect_data_reference): Likewise.
13919 (machopic_legitimize_pic_address): Likewise.
13920 * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
13921 (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
13922 * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
13923 (ix86_expand_convert_uns_didf_sse): Likewise.
13924 (ix86_expand_vector_init_general): Likewise.
13925 * config/ia64/ia64.md (eh_epilogue): Likewise.
13926 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
13927 * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
13928 * config/m32r/m32r.c (m32r_reload_lr): Likewise.
13929 (config/iq2000/iq2000.c): Likewise.
13930 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
13931 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
13932 (builtin_longjmp): Likewise.
13933 * config/mn10300/mn10300.md (call, call_value): Likewise.
13934 * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
13935 * config/pdp11/pdp11.md (abshi2): Likewise.
13936 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
13937 * config/s390/s390.c (s390_emit_prologue): Likewise.
13938 * config/s390/s390.md (movmem_long, setmem_long): Likewise.
13939 (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
13940 (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
13941 * config/sh/sh.c (prepare_move_operands): Likewise.
13942 (output_stack_adjust, sh_expand_epilogue): Likewise.
13943 (sh_set_return_address, sh_expand_t_scc): Likewise.
13944 * config/sparc/sparc.c (load_pic_register): Likewise.
13945 * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
13946 * config/spu/spu.c (spu_expand_epilogue): Likewise.
13947 * config/v850/v850.c (expand_epilogue): Likewise.
13948
13949 2008-05-31 Anatoly Sokolov <aesok@post.ru>
13950
13951 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
13952 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
13953 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
13954 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
13955 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
13956 stack pointer register.
13957 (output_movhi): Remove code for interrupt specific writing to the
13958 stack pointer register.
13959
13960 2008-05-31 Richard Guenther <rguenther@suse.de>
13961
13962 PR tree-optimization/34244
13963 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
13964 (tree_expr_nonzero_warnv_p): Likewise.
13965 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
13966 ssa_name_nonnegative_p.
13967 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
13968 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
13969 not tree_expr_nonzero_warnv_p.
13970
13971 PR tree-optimization/36262
13972 Revert
13973 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
13974
13975 PR tree-optimization/34244
13976 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
13977 (record_numbers_of_iterations): New function.
13978 (execute_vrp): Cache the numbers of iterations of loops.
13979 * tree-scalar-evolution.c (scev_reset_except_niters):
13980 New function.
13981 (scev_reset): Use scev_reset_except_niters.
13982 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
13983
13984 2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
13985
13986 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
13987 __WORKAROUND_RETS when appropriate.
13988
13989 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
13990
13991 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
13992 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
13993 mode iterator.
13994 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
13995 *fop_df_comm_sse insn patterns using MODEF mode iterator.
13996 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
13997 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
13998 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
13999 *fop_df_1_mixed insn patterns using MODEF mode iterator.
14000 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
14001 *fop_df_1_sse insn patterns using MODEF mode iterator.
14002 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
14003 *fop_df_1_i387 insn patterns using MODEF mode iterator.
14004 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
14005 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
14006 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
14007 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
14008 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
14009 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
14010 (*fop_xf_4_i387): Use <MODE> for mode attribute.
14011 (*fop_xf_5_i387): Ditto.
14012 (*fop_xf_6_i387): Ditto.
14013
14014 2008-05-30 Richard Guenther <rguenther@suse.de>
14015
14016 * builtins.c (build_string_literal): Avoid generating
14017 a non-gimple_val result.
14018
14019 2008-05-30 DJ Delorie <dj@redhat.com>
14020
14021 * exec-tool.in: Use an environment variable (private) instead of a
14022 file (shared) as a semaphore, so as to not break parallel builds.
14023
14024 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
14025
14026 * optabs.c (maybe_encapsulate_block): Remove.
14027 (emit_libcall_block): Adjust accordingly.
14028 * optabs.h (maybe_encapsulate_block): Remove prototype.
14029
14030 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
14031 Don't use maybe_encapsulate_block.
14032
14033 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
14034
14035 * config/rs6000/rs6000.c (rs6000_legitimize_address,
14036 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
14037 rtx is a SYMBOL_REF before calling get_pool_constant.
14038
14039 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
14040
14041 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
14042
14043 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
14044
14045 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
14046 rather than OS names to choose INO_T_EQ definition.
14047 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
14048 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
14049
14050 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
14051
14052 PR target/36348
14053 * config/darwin-f.c: New.
14054 * config/t-darwin: Added rule to build darwin-f.o.
14055 * config.gcc: Defined new variable, fortran_target_objs.
14056 (*-*-darwin*): Set fortran_target_objs.
14057 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
14058 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
14059 * configure: Regenerated.
14060
14061 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
14062
14063 PR target/35771
14064 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
14065 canonical type if needed.
14066
14067 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
14068
14069 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
14070
14071 2008-05-29 Richard Guenther <rguenther@suse.de>
14072
14073 PR tree-optimization/36343
14074 PR tree-optimization/36346
14075 PR tree-optimization/36347
14076 * tree-flow.h (clobber_what_p_points_to): Declare.
14077 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
14078 pointed-to variable is dereferenced is irrelevant to whether
14079 the pointer can access the pointed-to variable.
14080 (clobber_what_p_points_to): New function.
14081 * tree-ssa-alias.c (set_initial_properties): Use it.
14082 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
14083 call clobber check for NMTs.
14084
14085 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
14086
14087 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
14088 for printing gcov_type.
14089
14090 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
14091
14092 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
14093 and the eh region information.
14094 * value-prof.c (gimple_move_stmt_histograms): New function.
14095 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
14096
14097 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
14098
14099 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
14100
14101 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
14102
14103 * value-prof.c (tree_ic_transform): Print counts.
14104 * tree-profile.c (tree_gen_ic_func_profiler):
14105 Clear __gcov_indreict_call_callee variable to avoid misattribution
14106 of the profile.
14107
14108 2008-05-28 Rafael Espíndola <espindola@google.com>
14109
14110 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
14111 invalid sharing.
14112
14113 2008-05-28 Richard Guenther <rguenther@suse.de>
14114
14115 PR tree-optimization/36339
14116 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
14117 and clobbering code out of the loop.
14118
14119 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
14120
14121 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
14122 letters defined.
14123
14124 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
14125 s390_contiguous_bitmask_p, s390_symref_operand_p,
14126 s390_check_symref_alignment, s390_reload_larl_operand,
14127 s390_reload_symref_address): New functions.
14128 (s390_branch_condition_mnemonic): Support compare and branch
14129 instructions.
14130 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
14131 and 'W' constraints.
14132 (s390_secondary_reload): Add secondary reloads for unaligned
14133 symbol refs or symbol refs to floating point or QI/TI mode
14134 integer values.
14135 (legitimate_address_p): Accept symbol references as addresses.
14136 (s390_expand_insv): Use rotate and insert selected bits
14137 instruction for insv when building for z10.
14138 (print_operand_address): Handle symbol ref addresses.
14139 (print_operand): Output modifier 'c' added for signed byte values.
14140 (s390_encode_section_info): Mark symbol refs with
14141 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
14142
14143 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
14144 (length attribute): RRF, RRR have 4 byte length.
14145 (FPALL, INTALL): New mode iterators added.
14146 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
14147 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
14148 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
14149 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
14150 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
14151 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
14152 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
14153 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
14154 instructions.
14155 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
14156 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
14157 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
14158 reload<INTALL:mode><P:mode>_toreg_z10,
14159 reload<FPALL:mode><P:mode>_tomem_z10,
14160 reload<FPALL:mode><P:mode>_toreg_z10,
14161 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
14162 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
14163 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
14164 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
14165 definition.
14166 (movmem, clrmem, cmpmem): New splitters added.
14167
14168 * config/s390/predicates.md (larl_operand): Use
14169 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
14170 SYMBOL_REF_ALIGN1_P.
14171 (s390_signed_integer_comparison,
14172 s390_unsigned_integer_comparison): New predicates.
14173
14174 * config/s390/s390-protos.h (s390_check_symref_alignment,
14175 s390_contiguous_bitmask_p, s390_reload_larl_operand,
14176 s390_reload_symref_address,
14177 s390_compare_and_branch_condition_mask): Prototypes added.
14178
14179 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
14180 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
14181 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
14182
14183 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
14184
14185 * config/s390/s390.c (z10_cost): New cost function for z10.
14186 (s390_handle_arch_option, override_options): Support -march=z10 switch.
14187 (s390_issue_rate): Adjust issue rate for z10.
14188 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
14189 (processor_flags): Add PF_Z10.
14190 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
14191 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
14192 * gcc/config.gcc: Add z10.
14193
14194 2008-05-28 Richard Guenther <rguenther@suse.de>
14195
14196 PR tree-optimization/36291
14197 * tree-flow. h (struct gimple_df): Remove var_anns member.
14198 * tree-flow-inline.h (gimple_var_anns): Remove.
14199 (var_ann): Simplify.
14200 * tree-dfa.c (create_var_ann): Simplify.
14201 (remove_referenced_var): Clear alias info from var_anns of globals.
14202 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
14203 (delete_tree_ssa): Clear alias info from var_anns of globals.
14204 Do not free var_anns.
14205 (var_ann_eq): Remove.
14206 (var_ann_hash): Likewise.
14207
14208 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
14209
14210 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
14211 and loongson2f entries.
14212 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
14213 * config/mips/mips.h (processor_type): Add Loongson-2E
14214 and Loongson-2F entries.
14215 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
14216 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
14217 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
14218 * doc/invoke.texi (MIPS Options): Document loongson2e
14219 and loongson2f processor names.
14220
14221 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
14222
14223 PR target/35767
14224 PR target/35771
14225 * config/i386/i386.c (ix86_function_arg_boundary): Use
14226 alignment of canonical type.
14227 (ix86_expand_vector_move): Check unaligned memory access for
14228 all SSE modes.
14229
14230 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
14231
14232 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
14233 Moved to the front of file.
14234
14235 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
14236 H.J. Lu <hongjiu.lu@intel.com>
14237
14238 * dwarf2out.c (current_fde): New.
14239 (add_cfi): Use it.
14240 (lookup_cfa:): Likewise.
14241 (dwarf2out_end_epilogue): Likewise.
14242 (dwarf2out_note_section_used): Likewise.
14243
14244 2008-05-27 Michael Matz <matz@suse.de>
14245
14246 PR c++/27975
14247 * c.opt (Wenum-compare): New warning option.
14248 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
14249
14250 2008-05-27 Michael Matz <matz@suse.de>
14251
14252 PR middle-end/36326
14253 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
14254 non-BLKmode types.
14255 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
14256 into memory as tail calls.
14257
14258 2008-05-27 Richard Guenther <rguenther@suse.de>
14259
14260 PR tree-optimization/36339
14261 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
14262 pointers cause all addressable variables to be call clobbered.
14263
14264 2008-05-27 Richard Guenther <rguenther@suse.de>
14265
14266 PR tree-optimization/36245
14267 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
14268
14269 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
14270
14271 * config/s390/s390.md: Replace all occurences of the 'm'
14272 constraint with 'RT'.
14273
14274 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
14275
14276 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
14277 definitions added.
14278 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
14279 "*movdi_64".
14280 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
14281 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
14282 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
14283
14284 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
14285
14286 * reload.c: (find_reloads): Skip alternatives according to the
14287 "enabled" attribute. Constify the constraint variable.
14288 * recog.c (get_attr_enabled): Add default implementation.
14289 (extract_insn): Set the alternative_enabled_p array
14290 in the recog_data struct.
14291 (preprocess_constraints, constrain_operands): Skip
14292 alternatives according to the "enabled" attribute
14293 * recog.h (struct recog_data): New field alternative_enabled_p.
14294 (skip_alternative): New inline function.
14295 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
14296 (record_reg_classes): Skip alternative according to the
14297 "enabled" attribute.
14298
14299 * doc/md.texi: Add documention for the "enabled" attribute.
14300
14301 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
14302
14303 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
14304 * postreload.c (reload_cse_simplify_operands): Replace 'm'
14305 constraint with TARGET_MEM_CONSTRAINT.
14306 * recog.c (asm_operand_ok, preprocess_constraints,
14307 constrain_operands): Likewise.
14308 * regclass.c (record_reg_classes): Likewise.
14309 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
14310 * reload1.c (maybe_fix_stack_asms): Likewise.
14311 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
14312 * recog.h: Adjust comment.
14313 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
14314 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
14315 * doc/md.texi: Add a note to description of 'm' constraint.
14316 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
14317
14318 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
14319
14320 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
14321 that the bitfield is of integral type before testing its precision.
14322
14323 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
14324 Sa Liu <saliu@de.ibm.com>
14325
14326 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
14327 __modti3, __udivti3, __umodti3 and __udivmodti4.
14328 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
14329 that implement TImode mul and div functions.
14330 * config/spu/multi3.c: New. Implement __multi3.
14331 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
14332 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
14333 functions on SPU.
14334
14335 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
14336
14337 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
14338 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
14339 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
14340 tls_sysv_suffix): New mode and mode attribute iterators.
14341 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
14342 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
14343 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
14344 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
14345 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
14346 iterators.
14347
14348 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
14349
14350 PR tree-optimization/36329
14351 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
14352 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
14353 * cgraphbuild.c (initialize_inline_failed): Use the latter
14354 macro in lieu of the former.
14355 * ipa-inline.c (cgraph_mark_inline): Likewise.
14356 (cgraph_decide_inlining_of_small_function): Likewise.
14357 (cgraph_decide_inlining): Likewise.
14358 (cgraph_decide_inlining_incrementally): Likewise.
14359
14360 2008-05-26 Tristan Gingold <gingold@adacore.com>
14361 Anatoly Sokolov <aesok@post.ru>
14362
14363 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
14364 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
14365 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
14366 optimization for 'avr6' architecture.
14367
14368 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
14369
14370 PR target/34932
14371 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
14372
14373 2008-05-26 Richard Guenther <rguenther@suse.de>
14374
14375 * tree-ssa-sccvn.c (expr_has_constants): Declare.
14376 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
14377
14378 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
14379
14380 PR middle-end/36253
14381 * caller-save.c (insert_restore): Verify alignment of spill space.
14382 (insert_save): Likewise.
14383 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
14384 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
14385 (STACK_SLOT_ALIGNMENT): Likewise.
14386 * function.c (LOCAL_ALIGNMENT): Removed.
14387 (get_stack_local_alignment): New.
14388 (assign_stack_local): Use it. Set alignment on stack slot.
14389 (assign_stack_temp_for_type): Use get_stack_local_alignment.
14390 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
14391 (STACK_SLOT_ALIGNMENT): New.
14392 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
14393 stack slot in XFmode.
14394
14395 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
14396
14397 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
14398
14399 PR/36321
14400 * config/i386/i386.md (allocate_stack_worker_64): Make sure
14401 argument operand in rax isn't removed.
14402
14403 2008-05-26 Richard Guenther <rguenther@suse.de>
14404
14405 PR middle-end/36300
14406 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
14407 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
14408
14409 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
14410
14411 PR bootstrap/36331
14412 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
14413
14414 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
14415
14416 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
14417 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
14418
14419 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
14420
14421 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
14422 build a trampoline if we don't want one.
14423 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
14424 return zero for nested functions if we don't want a trampoline.
14425
14426 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
14427
14428 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
14429
14430 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
14431
14432 PR fortran/18428
14433 * c.opt: Removed undocumented option '-lang-fortran'.
14434 * c-common.h: Removed global variable 'lang_fortran'.
14435 * c-opts.c (c_common_handle_option): Removed code to handle
14436 option '-lang-fortran'. Updated includes.
14437 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
14438 definition of '__GFORTRAN__'.
14439 (define__GNUC__): Reimplemented to use BASEVER and
14440 cpp_define_formatted.
14441 (builtin_define_with_value_n): Removed.
14442 * c-incpath.h: Renamed to ...
14443 * incpath.h: ... this.
14444 * c-incpath.c: Renamed to ...
14445 * incpath.c: ... this. Updated includes.
14446 * fix-header.c: Updated includes.
14447 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
14448 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
14449 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
14450
14451 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
14452
14453 * tree.h: Update the table of flags used on tree nodes.
14454 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
14455 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
14456 (FORCED_LABEL): Add access check.
14457 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
14458 (ASM_INPUT_P): Likewise.
14459 (ASM_VOLATILE_P): Likewise.
14460 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
14461 (OMP_SECTION_LAST): Access private_flag directly.
14462 (OMP_RETURN_NOWAIT): Likewise.
14463 (OMP_PARALLEL_COMBINED): Likewise.
14464 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
14465 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
14466 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
14467 deprecated_flag directly.
14468
14469 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
14470
14471 * final.c (frame_pointer_needed): Removed.
14472 * flags.h (frame_pointer_needed): Likewise.
14473
14474 * function.h (rtl_data): Add frame_pointer_needed.
14475 (frame_pointer_needed): New.
14476
14477 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
14478
14479 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
14480
14481 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
14482
14483 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
14484 SRC is a REG.
14485
14486 2008-05-25 Alan Modra <amodra@bigpond.net.au>
14487
14488 * c-common.c (strip_array_types): Move function to..
14489 * tree.c: ..here.
14490 (get_inner_array_type): Delete.
14491 * c-common.h (strip_array_types): Move declaration to..
14492 * tree.h: ..here.
14493 (get_inner_array_type): Delete.
14494 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
14495 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
14496 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
14497 * config/pa/pa.c (emit_move_sequence): Likewise.
14498
14499 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
14500
14501 * config/i386/i386.md (*sse_prologue_save_insn): Set length
14502 attribute to 34.
14503
14504 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
14505
14506 * function.c: Include target hook for nonlocal_goto frame value.
14507
14508 2008-05-24 Richard Guenther <rguenther@suse.de>
14509
14510 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
14511 variable can be only accessed through a pointer or a union.
14512
14513 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14514
14515 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
14516 * doc/extend.texi: Likewise.
14517
14518 2008-05-23 DJ Delorie <dj@redhat.com>
14519
14520 * config/m32c/jump.md (untyped_call): Add.
14521
14522 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
14523 for A24 to PSImode.
14524 (m32c_address_cost): Detail costs for indirect offsets.
14525
14526 2008-05-23 Rafael Espíndola <espindola@google.com>
14527
14528 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
14529 if a node is a SUBREG.
14530 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
14531 is a SUBREG.
14532
14533 2008-05-23 Paul Brook <paul@codesourcery.com>
14534 Carlos O'Donell <carlos@codesourcery.com>
14535
14536 * doc/extend.texi: Clarify use of __attribute__((naked)).
14537 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
14538 * target.h (gcc_target): Add allocate_stack_slots_for_args.
14539 * function.c (use_register_for_decl): Use
14540 targetm.calls.allocate_stack_slots_for_args.
14541 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
14542 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
14543 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
14544
14545 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
14546
14547 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
14548
14549 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
14550
14551 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
14552 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
14553 is only rounded once.
14554
14555 2008-05-23 Richard Guenther <rguenther@suse.de>
14556
14557 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
14558
14559 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
14560 Jakub Jelinek <jakub@redhat.com>
14561
14562 PR target/36079
14563 * configure.ac: Handle --enable-cld.
14564 * configure: Regenerated.
14565 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
14566 * config/i386/i386.h (struct machine_function): Add needs_cld field.
14567 (ix86_current_function_needs_cld): New define.
14568 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
14569 (cld): New isns pattern.
14570 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
14571 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
14572 * config/i386/i386.opt (mcld): New option.
14573 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
14574 TARGET_CLD and ix86_current_function_needs_cld.
14575 (override_options): Use -mcld by default for 32-bit code if
14576 USE_IX86_CLD.
14577
14578 * doc/install.texi (Options specification): Document --enable-cld.
14579 * doc/invoke.texi (Machine Dependent Options)
14580 [i386 and x86-64 Options]: Add -mcld option.
14581 (Intel 386 and AMD x86-64 Options): Document -mcld option.
14582
14583 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
14584 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
14585 (return_in_memory_64): Likewise.
14586 (return_in_memory_ms_64): Likewise.
14587
14588 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14589
14590 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
14591 * builtins.c (fold_builtin_fpclassify): New.
14592 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
14593 * builtins.def (BUILT_IN_FPCLASSIFY): New.
14594 * c-common.c (handle_type_generic_attribute): Adjust to accept
14595 fixed arguments before an elipsis.
14596 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
14597 * doc/extend.texi: Document __builtin_fpclassify.
14598
14599 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
14600
14601 * omp-low.c (gate_expand_omp_ssa): Remove.
14602 (pass_expand_omp_ssa): Remove.
14603 (gate_expand_omp): Do not check for flag_openmp_ssa.
14604 * common.opt (-fopenmp-ssa): Remove.
14605 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
14606
14607 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
14608
14609 * config/sh/sh.opt (mfixed-range): New option.
14610 * config/sh/sh-protos.h (sh_fix_range): Declare.
14611 * config/sh/sh.c (sh_fix_range): New function.
14612 * config/sh/sh.h (sh_fixed_range_str): Declare.
14613 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
14614 is not empty.
14615 * doc/invoke.texi (SH Options): Document -mfixed-range.
14616
14617 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
14618
14619 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
14620 it before the redeclaration.
14621
14622 2008-05-22 Anatoly Sokolov <aesok@post.ru>
14623
14624 * config/avr/avr.c (get_sequence_length): Add new function.
14625 (expand_prologue, expand_epilogue): Remove duplicate code.
14626
14627 2008-05-22 Rafael Espíndola <espindola@google.com>
14628
14629 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
14630 sharing.
14631
14632 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
14633
14634 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
14635 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
14636
14637 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
14638 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
14639 (vect_update_misalignment_for_peel): Likewise.
14640 (vector_alignment_reachable_p): Likewise.
14641 * tree-vect-transform.c (vectorizable_load): Likewise.
14642 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
14643 (get_vectype_for_scalar_type): Pass mode of scalar_type
14644 to UNITS_PER_SIMD_WORD.
14645
14646 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
14647 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
14648 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
14649 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
14650 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
14651
14652 2008-05-22 Ira Rosen <irar@il.ibm.com>
14653
14654 PR tree-optimization/36293
14655 * tree-vect-transform.c (vect_transform_strided_load): Don't check
14656 if the first load must be skipped because of a gap.
14657
14658 2008-05-22 Richard Guenther <rguenther@suse.de>
14659
14660 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
14661 more cases of offset disambiguation that is possible if
14662 strict-aliasing rules apply.
14663 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
14664 for basic offset and type-based disambiguation.
14665
14666 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
14667
14668 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
14669 ix86_expand_vector_set on V16QImode for SSE4.1.
14670
14671 2008-05-21 Tom Tromey <tromey@redhat.com>
14672
14673 * c.opt (Wimport): Mark as undocumented.
14674 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
14675 -Wno-import.
14676 (Warning Options): Likewise.
14677 * doc/cppopts.texi: Don't mention -Wimport.
14678
14679 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
14680
14681 PR tree-optimization/36287
14682 PR tree-optimization/36286
14683 * lambda-code.c (build_access_matrix): Do not use the loop->num
14684 for computing the number of induction variables: use the loop depth
14685 instead.
14686
14687 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
14688
14689 PR/36280
14690 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
14691 option -f(no-)leading-underscore.
14692
14693 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
14694
14695 * config/i386/i386.c (ix86_expand_vector_init_general): Use
14696 GET_MODE_NUNITS (mode).
14697
14698 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
14699
14700 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
14701 (-mmulhw): Add 464 to description.
14702 (-mdlmzb): Likewise.
14703 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
14704 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
14705 464fp entries.
14706 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
14707 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
14708 * config/rs6000/rs6000.md: Update comments for 464.
14709
14710 2008-05-21 Janis Johnson <janis187@us.ibm.com>
14711
14712 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
14713
14714 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
14715
14716 * config/i386/sse.md (vec_extractv4sf): Removed.
14717 (vec_extractv2df): Likewise.
14718 (vec_extractv2di): Likewise.
14719 (vec_extractv4si): Likewise.
14720 (vec_extractv8hi): Likewise.
14721 (vec_extractv16qi): Likewise.
14722 (vec_extract<mode>): New.
14723
14724 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
14725
14726 * config/i386/sse.md (vec_setv4sf): Removed.
14727 (vec_setv2df): Likewise.
14728 (vec_setv2di): Likewise.
14729 (vec_setv4si): Likewise.
14730 (vec_setv8hi): Likewise.
14731 (vec_setv16qi): Likewise.
14732 (vec_set<mode>): New.
14733
14734 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
14735
14736 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
14737 goto for vec_concat and vec_interleave.
14738
14739 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
14740
14741 * config/i386/sse.md (vec_initv4sf): Removed.
14742 (vec_initv2df): Likewise.
14743 (vec_initv2di): Likewise.
14744 (vec_initv4si): Likewise.
14745 (vec_initv8hi): Likewise.
14746 (vec_initv16qi): Likewise.
14747 (vec_init<mode>): New.
14748
14749 2008-05-21 Joseph Myers <joseph@codesourcery.com>
14750
14751 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
14752
14753 2008-05-21 Tom Tromey <tromey@redhat.com>
14754
14755 * ggc-zone.c (lookup_page_table_if_allocated): New function.
14756 (zone_find_object_offset): Likewise.
14757 (gt_ggc_m_S): Likewise.
14758 (highest_bit): Likewise.
14759 * ggc-page.c (gt_ggc_m_S): New function.
14760 * stringpool.c (string_stack): Remove.
14761 (init_stringpool): Update.
14762 (ggc_alloc_string): Use ggc_alloc.
14763 (maybe_delete_ident): New function.
14764 (ggc_purge_stringpool): Likewise.
14765 (gt_ggc_m_S): Remove.
14766 * ggc-common.c (ggc_protect_identifiers): New global.
14767 (ggc_mark_roots): Call ggc_purge_stringpool. Use
14768 ggc_protect_identifiers.
14769 * ggc.h (ggc_protect_identifiers): Declare.
14770 (gt_ggc_m_S): Update.
14771 (ggc_purge_stringpool): Declare.
14772 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
14773 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
14774 special case.
14775 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
14776
14777 2008-05-21 David S. Miller <davem@davemloft.net>
14778
14779 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
14780 tmake_file.
14781
14782 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
14783
14784 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
14785 once finished.
14786
14787 2008-05-20 David Daney <ddaney@avtrex.com>
14788
14789 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
14790 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
14791 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
14792 UNSPEC_UPDATE_GOT_VERSION): Renumber.
14793 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
14794 (atomic_hiqi_op): New define_code_iterator.
14795 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
14796 mips_expand_compare_and_swap_12.
14797 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
14798 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
14799 (sync_<optab><mode>, sync_old_<optab><mode>,
14800 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
14801 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
14802 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
14803 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
14804 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
14805 (test_and_set_12): New insn.
14806 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
14807 sync_new_<optab><mode>, sync_old_nand<mode>,
14808 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
14809 clobber to operand 0 for SI and DI mode insns.
14810 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
14811 mips_gen_fn_4): New typedefs.
14812 (mips_gen_fn_ptrs): Define new union type.
14813 (mips_expand_compare_and_swap_12): Remove declaration.
14814 (mips_expand_atomic_qihi): Declare function.
14815 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
14816 (mips_expand_atomic_qihi): ... this. Use new generator function
14817 parameter.
14818 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
14819 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
14820 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
14821 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
14822 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
14823 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
14824 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
14825 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
14826 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
14827 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
14828 New macros.
14829
14830 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
14831
14832 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
14833 the missing break.
14834
14835 2008-05-20 Anatoly Sokolov <aesok@post.ru>
14836
14837 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
14838 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
14839 (avr_attribute_table): Add 'OS_main' function attribute.
14840 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
14841 functions with 'OS_main' attribute.
14842
14843 2008-05-20 Richard Guenther <rguenther@suse.de>
14844
14845 PR tree-optimization/35204
14846 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
14847 helper, split out from ...
14848 (DFS): ... here. Make the DFS walk non-recursive.
14849
14850 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
14851 Jan Sjodin <jan.sjodin@amd.com>
14852
14853 PR tree-optimization/36181
14854 * tree-parloops.c (loop_has_vector_phi_nodes): New.
14855 (parallelize_loops): Don't parallelize when the loop has vector
14856 phi nodes.
14857
14858 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
14859 Sebastian Pop <sebastian.pop@amd.com>
14860
14861 * tree-loop-linear.c (gather_interchange_stats): Look in the access
14862 matrix, and never look at the tree representation of the memory
14863 accesses.
14864 (linear_transform_loops): Computes parameters and access matrices.
14865 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
14866 when fails.
14867 (access_matrix_get_index_for_parameter): New.
14868 * tree-data-ref.h (struct access_matrix): New.
14869 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
14870 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
14871 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
14872 am_vector_index_for_loop): New.
14873 (struct data_reference): Add field access_matrix.
14874 (DR_ACCESS_MATRIX): New.
14875 (compute_data_dependences_for_loop): Update declaration.
14876 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
14877 * lambda.h (lambda_vector_vec_p): Declared.
14878 * lambda-code.c: Depend on pointer-set.h.
14879 (lambda_collect_parameters_from_af, lambda_collect_parameters,
14880 av_for_af_base, av_for_af, build_access_matrix,
14881 lambda_compute_access_matrices): New.
14882 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
14883
14884 2008-05-20 Joseph Myers <joseph@codesourcery.com>
14885
14886 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
14887 $SOURCEDIR/include.
14888
14889 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
14890 Sebastian Pop <sebastian.pop@amd.com>
14891
14892 PR tree-optimization/36206
14893 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
14894 FOLD_CONVERSIONS.
14895 (instantiate_scev_1): Rename flags to fold_conversions.
14896 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
14897 outeside instantiation_loop.
14898 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
14899 (evolution_function_is_affine_or_constant_p): Removed.
14900 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
14901 instantiate_scev.
14902 (analyze_siv_subscript): Pass in the loop nest number.
14903 Call evolution_function_is_affine_in_loop instead of
14904 evolution_function_is_affine_p.
14905 (analyze_overlapping_iterations): Pass in the loop nest number.
14906
14907 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
14908 Sebastian Pop <sebastian.pop@amd.com>
14909
14910 PR tree-optimization/36206
14911 * tree-chrec.h (chrec_fold_op): New.
14912 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
14913 and other trees.
14914
14915 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
14916
14917 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
14918 (DIRS_EQ): New.
14919 (remove_duplicates): Do not set inode on non-inode systems.
14920 Use DIRS_EQ.
14921
14922 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
14923
14924 * config.gcc (tm_file): Update comments about relative pathnames.
14925
14926 2008-05-20 Richard Guenther <rguenther@suse.de>
14927
14928 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
14929 * tree-ssa-sccvn.c (process_scc): Likewise.
14930 * tree-ssa-sink.c (execute_sink_code): Likewise.
14931 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
14932 * tree-vrp.c (process_assert_insertions): Likewise.
14933 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
14934 (perform_tree_ssa_dce): Likewise.
14935 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
14936 (dump_dominator_optimization_stats): Likewise.
14937 * tree-vectorizer.c (vectorize_loops): Likewise.
14938
14939 2008-05-20 Richard Guenther <rguenther@suse.de>
14940
14941 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
14942
14943 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
14944
14945 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
14946 (ix86_i386elf_return_in_memory): Likewise.
14947 (ix86_i386interix_return_in_memory): Likewise.
14948 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
14949 (SUBTARGET_RETURN_IN_MEMORY): New.
14950 * config/i386/i386elf.h: Likewise.
14951 * config/i386/ptx4-i.h: Likewise.
14952 * config/i386/sol2-10.h: Likewise.
14953 * config/i386/sysv4.h: Likewise.
14954 * config/i386/vx-common.h: Likewise.
14955 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
14956 * config/i386/i386.c (ix86_return_in_memory): Made static and
14957 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
14958 (ix86_i386elf_return_in_memory): Removed.
14959 (ix86_i386interix_return_in_memory): Removed.
14960 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
14961 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
14962
14963 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
14964
14965 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
14966
14967 2008-05-19 Xinliang David Li <davidxl@google.com>
14968
14969 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
14970 * opts.c: Ditto.
14971 * common.opt: Ditto.
14972 * doc/invoke.texi: Ditto.
14973
14974 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
14975
14976 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
14977 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
14978
14979 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
14980
14981 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
14982 sizes of operand array from 8/4 to 4/2.
14983 (ix86_expand_vector_init_general): Change size of operand array
14984 from 32 to 16. Remove op0, op1 and half_mode.
14985
14986 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
14987
14988 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
14989 (ix86_expand_vector_init_interleave): Likewise.
14990 (ix86_expand_vector_init_general): Use them. Assert
14991 word_mode == SImode when n_words == 4.
14992
14993 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
14994
14995 * config/i386/i386.c (ix86_secondary_reload): New static function.
14996 (TARGET_SECONDARY_RELOAD): New define.
14997 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
14998 * config/i386/i386.md (reload_outqi): Remove.
14999
15000 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15001
15002 PR middle-end/35509
15003 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
15004 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
15005 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
15006 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
15007 (fold_builtin_1): Likewise.
15008 * builtins.def (BUILT_IN_ISINF_SIGN): New.
15009 c-common.c (check_builtin_function_arguments): Handle
15010 BUILT_IN_ISINF_SIGN.
15011 * doc/extend.texi: Document __builtin_isinf_sign.
15012 * fold-const.c (operand_equal_p): Handle COND_EXPR.
15013
15014 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
15015
15016 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
15017 EH cleanup at the end of the pass, search for those that have been
15018 turned into forwarder blocks and do the cleanup on their successor.
15019
15020 2008-05-18 Richard Guenther <rguenther@suse.de>
15021
15022 * tree-cfg.c (verify_gimple_expr): Allow conversions from
15023 pointers to sizetype and vice versa.
15024
15025 2008-05-18 Xinliang David Li <davidxl@google.com>
15026
15027 * gcc/tree-ssa-dce.c: Coding style fix.
15028 (check_pow): Documentation comment.
15029 (check_log): Documenation comment. Coding style fix.
15030 (is_unnecessary_except_errno_call): Ditto.
15031 (gen_conditions_for_pow): Ditto.
15032 (gen_conditions_for_log): Ditto.
15033 (gen_shrink_wrap_conditions): Ditto.
15034 (shrink_wrap_one_built_in_calls): Ditto.
15035 * gcc/doc/invoke.texi: Better documentation string.
15036 * ChangeLog: Fix wrong change log entries from
15037 May 17 checkin on function call DCE.
15038
15039 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
15040
15041 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
15042
15043 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
15044
15045 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
15046 * df-problems.c (simulation routines): Fixed block comment to
15047 properly say how to add forwards scanning functions.
15048
15049 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
15050
15051 * tree-inline.c (setup_one_parameter): Remove dead code.
15052
15053 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
15054
15055 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
15056 a BIT_AND_EXPR only for an INTEGER_TYPE.
15057
15058 2008-05-17 Xinliang David Li <davidxl@google.com>
15059
15060 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
15061 (check_pow, check_log, is_unnecessary_except_errno_call): New
15062 functions to check for eliminating math functions that are pure
15063 except for setting errno.
15064 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
15065 general condition expressions for shrink-wrapping pow/log calls.
15066 (gen_shrink_wrap_conditions): Ditto.
15067 (shrink_wrap_one_built_in_call): Ditto.
15068 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
15069 (mark_operand_necessary): If debugging, output if OP is necessary.
15070 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
15071 unnecessary.
15072 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
15073 opt level >= 2.
15074 * gcc/common.opt: New user flag -ftree-builtin-dce.
15075 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
15076
15077 2008-05-16 David S. Miller <davem@davemloft.net>
15078
15079 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
15080 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
15081
15082 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
15083
15084 PR target/36246
15085 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
15086
15087 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
15088
15089 * ifcvt.c (dead_or_predicable): Rename
15090 df_simulate_one_insn_backwards to df_simulate_one_insn.
15091 * recog.c (peephole2_optimize): Ditto.
15092 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
15093 Ditto.
15094 * df.h: Rename df_simulate_one_insn_backwards to
15095 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
15096 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
15097 scanning of defs and uses.
15098 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
15099 (df_simulate_one_insn_forwards): Removed.
15100
15101 2008-05-16 Doug Kwan <dougkwan@google.com>
15102
15103 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
15104 QNaN & SNaN.
15105 (real_from_string): Handle NaNs and Inf as approriate.
15106
15107 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
15108
15109 * doc/gty.texi (Source Files Containing Type Information): Note
15110 that headers should appear first in the gtfiles list.
15111
15112 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
15113
15114 * tree.def (COND_EXEC): Properly documented this code.
15115
15116 2008-05-16 Diego Novillo <dnovillo@google.com>
15117
15118 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
15119 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
15120 the new field.
15121
15122 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
15123
15124 * tree-ssa-dse (max_stmt_uid): Removed.
15125 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
15126 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
15127 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
15128 * function.h (cfun.last_stmt_uid): New field.
15129 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
15130 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
15131 New functions.
15132 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
15133 (create_stmt_ann): Initialize the ann->uid field.
15134 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
15135 with new calls.
15136 * tree-flow.h (renumber_gimple_stmt_uids): New function.
15137
15138 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
15139
15140 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
15141 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
15142 (init_empty_tree_cfg): Call it.
15143
15144 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
15145
15146 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
15147 Update all users.
15148
15149 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
15150
15151 * doc/invoke.text (-fdump-tree-*-verbose): New option.
15152 * tree-dump.c (dump_options): New verbose option.
15153 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
15154 Add verbose dump.
15155 * tree-pass.h (TDF_VERBOSE): New dump flag.
15156 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
15157 (tree-flow.h): Added include.
15158 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
15159
15160 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
15161
15162 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
15163
15164 From Jie Zhang <jie.zhang@analog.com>
15165 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
15166 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
15167 mcpu=bf561-none and mcpu=bf561-0.2.
15168 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
15169 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
15170 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
15171 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
15172 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
15173 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
15174 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
15175 option.
15176 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
15177 (cputype_selected): Remove.
15178 (bfin_handle_option): Don't use cputype_selected.
15179 (override_options): When no mcpu option, enable all workarounds.
15180 Don't use bfin_workarounds.
15181 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
15182 processor type.
15183 (DEFAULT_CPU_TYPE): Don't define.
15184
15185 2008-05-16 Richard Guenther <rguenther@suse.de>
15186
15187 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
15188 on deletion of the last stmt.
15189
15190 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
15191
15192 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
15193 V8HImode for SSE2 and V16QImode for SSE4.1.
15194
15195 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
15196
15197 * cgraph.h (compute_inline_parameters): Made public.
15198 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
15199 variable_generate_summary, function_write_summary,
15200 variable_write_summary, variable_read_summary. Added generate_summary,
15201 write_summary, read_summary.
15202 * cgraphunit.c (cgraph_process_new_functions): Changed call from
15203 pass_ipa_inline.function_generate_summary, to
15204 compute_inline_parameters.
15205 * ipa-inline.c (compute_inline_parameters): Made public and added
15206 node parameter.
15207 (compute_inline_parameters_for_current): New function.
15208 (pass_inline_param): Now calls compute_inline_parameters_for_current.
15209 (inline_generate_summary): Removed parameter and made to loop over
15210 all cgraph nodes.
15211 (pass_ipa_inline): Updated for new IPA_PASS structure.
15212 * passes.c (execute_ipa_summary_passes): Now is called once per
15213 pass rather than once per node*pass.
15214
15215 2008-05-15 Anatoly Sokolov <aesok@post.ru>
15216
15217 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
15218 avr_have_mul_p, avr_asm_only_p): Remove variables.
15219 (avr_override_options): Remove initialization of removed variables.
15220 (avr_file_start): Convert removed variables to fields of
15221 'struct base_arch_s *avr_current_arch'.
15222 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
15223 (AVR_HAVE_MUL): (Ditto.).
15224 (AVR_HAVE_MOVW): (Ditto.).
15225 (AVR_HAVE_LPMX): (Ditto.).
15226 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
15227 avr_asm_only_p): Remove declaration.
15228
15229 2008-05-15 Diego Novillo <dnovillo@google.com>
15230
15231 * config/arm/arm.c (arm_return_in_memory): Fix return type.
15232 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
15233
15234 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
15235
15236 PR middle-end/36194
15237 * combine.c (check_conversion): Rename back to check_promoted_subreg.
15238 Don't call record_truncated_value from here.
15239 (record_truncated_value): Turn it into a for_each_rtx callback.
15240 (record_truncated_values): New function.
15241 (combine_instructions): Call note_uses with record_truncated_values.
15242 Change name of check_conversion to check_promoted_subreg.
15243
15244 2008-05-15 Janis Johnson <janis187@us.ibm.com>
15245
15246 * doc/sourcebuild.texi: Document support for torture tests.
15247
15248 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
15249
15250 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
15251 to alternative 4 of operand 2.
15252
15253 2008-05-15 Richard Guenther <rguenther@suse.de>
15254
15255 * tree-pass.h (current_pass): Declare.
15256 (get_pass_for_id): Likewise.
15257 * passes.c (passes_by_id, passes_by_id_size): New globals.
15258 (set_pass_for_id): New function.
15259 (get_pass_for_id): Likewise.
15260 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
15261 (execute_function_todo): Flush per function statistics.
15262 * toplev.c (compile_file): Init statistics.
15263 (general_init): Do early statistics initialization.
15264 (finalize): Finish statistics.
15265 * statistics.h (statistics_early_init): Declare.
15266 (statistics_init): Likewise.
15267 (statistics_fini): Likewise.
15268 (statistics_fini_pass): Likewise.
15269 (statistics_counter_event): Likewise.
15270 (statistics_histogram_event): Likewise.
15271 * statistics.c: New file.
15272 * Makefile.in (OBJS-common): Add statistics.o.
15273 (statistics.o): Add dependencies.
15274 * doc/invoke.texi (-fdump-statistics): Document.
15275
15276 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
15277 (insert): Likewise.
15278 (execute_pre): Use statistics_counter_event.
15279 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
15280 (substitute_and_fold): Increment it. Use statistics_counter_event.
15281
15282 2008-05-15 Diego Novillo <dnovillo@google.com>
15283
15284 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
15285
15286 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
15287 * tree-ssa-alias.c (new_type_alias): Remove references to
15288 sub-variables from comment.
15289 * tree-ssa-operands.c (swap_tree_operands): Likewise.
15290
15291 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
15292
15293 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
15294 attribute to 1 only for insertps alternative.
15295
15296 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
15297
15298 * config/bfin/bfin.md (loadbytes): New pattern.
15299 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
15300 (bfin_init_builtins): Initialize it.
15301 (bdesc_1arg): Add it.
15302
15303 2008-05-15 Sa Liu <saliu@de.ibm.com>
15304
15305 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
15306 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
15307 * testsuite/lib/target-supports.exp: Add
15308 check_effective_target_fortran_integer_16.
15309
15310 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
15311
15312 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
15313 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
15314 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
15315 (TARGET_RETURN_IN_MEMORY): Define.
15316
15317 2008-05-15 Richard Guenther <rguenther@suse.de>
15318
15319 PR middle-end/36244
15320 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
15321 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
15322 represent unmodifiable vars.
15323
15324 2008-05-15 Richard Guenther <rguenther@suse.de>
15325
15326 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
15327 INDIRECT_REF and TARGET_MEM_REF.
15328 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
15329 TARGET_MEM_REF.
15330
15331 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
15332 H.J. Lu <hongjiu.lu@intel.com>
15333
15334 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
15335 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
15336 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
15337 insn alternatives. Add missing alternatives.
15338 (*vec_concatv2di_rex64_sse4_1): Likewise.
15339 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
15340 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
15341 Require TARGET_SSE.
15342
15343 2008-05-15 Richard Guenther <rguenther@suse.de>
15344
15345 PR tree-optimization/36009
15346 PR tree-optimization/36204
15347 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
15348 (determine_invariantness_stmt): Record the loop a store is
15349 always executed in.
15350 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
15351 dependency.
15352
15353 2008-05-15 Richard Guenther <rguenther@suse.de>
15354
15355 PR tree-optimization/34330
15356 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
15357 through the pointer will alias the SMT.
15358
15359 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
15360
15361 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
15362
15363 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
15364
15365 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
15366
15367 2008-05-14 Michael Meissner <michael.meissner@amd.com>
15368 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
15369
15370 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
15371 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
15372 (vashl_optab): New optab for vector/vector shifts.
15373 (vashr_optab): Ditto.
15374 (vlshr_optab): Ditto.
15375 (vrotl_optab): Ditto.
15376 (vrotr_optab): Ditto.
15377 (optab_subtype): New enum for optab_for_tree_code call.
15378 (optab_for_tree_code): Add enum optab_subtype argument.
15379
15380 * optabs.c (optab_for_tree_code): Take an additional argument to
15381 distinguish between a vector shift by a scalar and vector shift by
15382 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
15383 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
15384 vector shift by a vector.
15385 (expand_widen_pattern_expr): Pass additional argument to
15386 optab_for_tree_code.
15387
15388 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
15389 vrotl_optab, vrotr_optab.
15390
15391 * expr.c (expand_expr_real_1): Update calls to
15392 optab_for_tree_code to distinguish between vector shifted by a
15393 scalar and vector shifted by a vector.
15394 * tree-vectorizer.c (supportable_widening_operation): Ditto.
15395 (supportable_narrowing_operation): Ditto.
15396 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
15397 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
15398 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
15399 (vect_create_epilog_for_reduction): Ditto.
15400 (vectorizable_reduction): Ditto.
15401 (vectorizable_operation): Ditto.
15402 (vect_strided_store_supported): Ditto.
15403 (vect_strided_load_supported): Ditto.
15404 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
15405 * expmed.c (expand_shift): Ditto.
15406
15407 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
15408 scalar type.
15409 (ashr@var{m}3): Ditto.
15410 (vashl@var{m}3): Document new vector/vector shift standard name.
15411 (vashr@var{m}3): Ditto.
15412 (vlshr@var{m}3): Ditto.
15413 (vrotl@var{m}3): Ditto.
15414 (vrotr@var{m}3): Ditto.
15415
15416 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
15417 (PPERM_INVERT): Ditto.
15418 (PPERM_REVERSE): Ditto.
15419 (PPERM_REV_INV): Ditto.
15420 (PPERM_ZERO): Ditto.
15421 (PPERM_ONES): Ditto.
15422 (PPERM_SIGN): Ditto.
15423 (PPERM_INV_SIGN): Ditto.
15424 (PPERM_SRC1): Ditto.
15425 (PPERM_SRC2): Ditto.
15426
15427 * config/i386/sse.md (mulv2di3): Add SSE5 support.
15428 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
15429 allows a memory operand to be the value being added, and split it
15430 to improve vectorization.
15431 (sse5_pmacsdqh_mem): Ditto.
15432 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
15433 (sse5_mulv2div2di3_high): Ditto.
15434 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
15435 (vec_pack_trunc_v4si): Ditto.
15436 (vec_pack_trunc_v2di): Ditto.
15437 (sse5_pcmov_<mode>): Remove code that tried to use use
15438 andps/andnps instead of pcmov.
15439 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
15440 pmacsdqh instructions.
15441 (vec_widen_smult_lo_v4si): Ditto.
15442
15443 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
15444 (PPERM_INVERT): Ditto.
15445 (PPERM_REVERSE): Ditto.
15446 (PPERM_REV_INV): Ditto.
15447 (PPERM_ZERO): Ditto.
15448 (PPERM_ONES): Ditto.
15449 (PPERM_SIGN): Ditto.
15450 (PPERM_INV_SIGN): Ditto.
15451 (PPERM_SRC1): Ditto.
15452 (PPERM_SRC2): Ditto.
15453 (ix86_expand_sse_movcc): Move the SSE5 test after the if
15454 true/false tests.
15455 (ix86_expand_int_vcond): If SSE5 generate all possible integer
15456 comparisons.
15457 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
15458 says ignore whether the last reference is a memory operand.
15459
15460 2008-05-14 Michael Meissner <michael.meissner@amd.com>
15461 Paolo Bonzini <bonzini at gnu dot org>
15462
15463 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
15464 shift patterns.
15465
15466 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
15467 (vlshr<mode>3): Rename from vlshr<mode>3.
15468 (vashr<mode>3): Rename from vashr<mode>3.
15469 (mulv4sf3): Change the names of vector shift patterns.
15470 (mulv4si3): Ditto.
15471 (negv4sf2): Ditt.
15472
15473 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
15474 shift insns.
15475
15476 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
15477 (SI_SHLHI): Ditto.
15478 (SI_SHL): Ditto.
15479 (SI_SHLI): Ditto.
15480 (SI_ROTH): Ditto.
15481 (SI_ROTHI): Ditto.
15482 (SI_ROT): Ditto.
15483 (SI_ROTI): Ditto.
15484 (SPU_RL_0): Ditto.
15485 (SPU_RL_1): Ditto.
15486 (SPU_RL_2): Ditto.
15487 (SPU_RL_3): Ditto.
15488 (SPU_RL_4): Ditto.
15489 (SPU_RL_5): Ditto.
15490 (SPU_RL_6): Ditto.
15491 (SPU_RL_7): Ditto.
15492 (SPU_SL_0): Ditto.
15493 (SPU_SL_1): Ditto.
15494 (SPU_SL_2): Ditto.
15495 (SPU_SL_3): Ditto.
15496 (SPU_SL_4): Ditto.
15497 (SPU_SL_5): Ditto.
15498 (SPU_SL_6): Ditto.
15499 (SPU_SL_7): Ditto.
15500
15501 * config/spu/spu.md (v): New iterator macro to add v for vector types.
15502 (floatunssidf2_internal): Change vector/vector shift names.
15503 (floatunsdidf2_internal): Ditto.
15504 (mulv8hi3): Ditto.
15505 (ashrdi3): Ditto.
15506 (ashrti3): Ditto.
15507 (cgt_df): Ditto.
15508 (cgt_v2df): Ditto.
15509 (dftsv): Ditto.
15510 (vashl<mode>3): Rename from ashl<mode>3.
15511 (vashr<mode>3): Rename from ashr<mode>3.
15512 (vlshr<mode>3): Rename from lshr<mode>3.
15513 (vrotl<mode>3): Rename from rotl<mode>3.
15514
15515 2008-05-14 Michael Meissner <michael.meissner@amd.com>
15516
15517 PR target/36224
15518 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
15519 multiply gives the wrong value when doing widening multiplies.
15520 (vec_widen_smult_lo_v4si): Ditto.
15521
15522 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
15523
15524 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
15525 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
15526 emit_library_call_value.
15527 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
15528 * tree.h (ECF_LIBCALL_BLOCK): Removed.
15529 * calls.c (initialize_argument_information, precompute_arguments,
15530 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
15531 (precompute_arguments): Removed flags parameter.
15532 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
15533
15534 2008-05-14 Richard Guenther <rguenther@suse.de>
15535
15536 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
15537 Make sure to register the store if the use is a PHI_NODE.
15538
15539 2008-05-14 Olivier Hainque <hainque@adacore.com>
15540
15541 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
15542 memory if the component is to be referenced in BLKmode according
15543 to get_inner_reference.
15544
15545 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
15546
15547 * calls.c (emit_library_call_value_1): Restore code clearing
15548 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
15549
15550 2008-05-14 Olivier Hainque <hainque@adacore.com>
15551 Nicolas Roche <roche@adacore.com>
15552
15553 * configure.ac: Add support for a "gcc_subdir" variable in
15554 config-lang.in, to denote a subdirectory where the language/GCC
15555 integration files are to be found.
15556 * configure: Regenerate.
15557
15558 2008-05-14 Ira Rosen <irar@il.ibm.com>
15559
15560 PR tree-optimization/36098
15561 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
15562 value for the first load in the group in case of a gap.
15563 (vect_build_slp_tree): Check that there are no gaps in loads.
15564
15565 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
15566
15567 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
15568 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
15569 expand_copysign_bit, ): Change call to emit_no_conflict_block to
15570 emit_insn and remove unneeded code to construct extra args.
15571 (emit_no_conflict_block): Removed.
15572 * optabls.h: (emit_no_conflict_block): Removed.
15573 * cse.c (cse_extended_basic_block): Remove search for
15574 REG_NO_CONFLICT note.
15575 * global.c: Removed incorrect comment added in revision 117.
15576 * expr.c (convert_move): Change call to emit_no_conflict_block to
15577 emit_insn.
15578 * recog.c: Change comments so that they do not mention
15579 REG_NO_CONFLICT.
15580 * local_alloc.c (combine_regs): Removed last parameter.
15581 (no_conflict_p): Removed.
15582 (block_alloc): Removed note, no_conflict_combined_regno and set
15583 local vars. Removed all code to process REG_NO_CONFLICT blocks.
15584 (combine_regs): Removed already_dead and code to look for
15585 REG_NO_CONFLICT notes.
15586 * lower_subreg (remove_retval_note): Removed code to look for
15587 REG_NO_CONFLICT block.
15588 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
15589 (resolve_clobber): Remove code to process libcalls that have
15590 REG_NO_CONFLICT notes.
15591 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
15592 case.
15593 * combine.c (can_combine_p, distribute_notes): Removed
15594 REG_NO_CONFLICT case.
15595 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
15596 to emit_insns.
15597 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
15598 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
15599 Ditto.
15600 * reg-notes.def (NO_CONFLICT): Removed.
15601
15602 2008-05-14 David S. Miller <davem@davemloft.net>
15603
15604 * config/sparc/sparc.c (sparc_profile_hook): If
15605 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
15606 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
15607 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
15608
15609 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
15610
15611 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
15612
15613 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
15614
15615 PR target/36222
15616 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
15617 and op1 expansion before vector concat to have less live pseudos.
15618
15619 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
15620
15621 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
15622 ix86_expand_vector_set if supported.
15623
15624 2008-05-13 Diego Novillo <dnovillo@google.com>
15625 Kenneth Zadeck <zadeck@naturalbridge.com>
15626
15627 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
15628
15629 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
15630 phinodes_print_statistics, init_ssanames, fini_ssanames,
15631 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
15632 release_ssa_name, release_defs, replace_ssa_name_symbol,
15633 ssanames_print_statistics): Move ...
15634 * tree-flow.h: ... here.
15635 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
15636 Use FN instead of cfun.
15637 (make_ssa_name_fn): Rename from make_ssa_name.
15638 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
15639 * tree-flow-inline.h (make_ssa_name): Move from
15640 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
15641 * omp-low.c (expand_omp_parallel):
15642 * tree-flow-inline.h (redirect_edge_var_map_result):
15643 * tree-ssa.c (init_tree_ssa): Add argument FN.
15644 Use it instead of cfun. Update all users.
15645
15646 2008-05-13 Tom Tromey <tromey@redhat.com>
15647
15648 PR preprocessor/22168:
15649 * doc/cpp.texi (Top): Update menu.
15650 (Alternatives to Wrapper #ifndef): New node.
15651 (Other Directives): Document deprecation.
15652 (Obsolete Features): Remove menu.
15653 (Assertions): Merge node into Obsolete Features.
15654 (Obsolete once-only headers): Move earlier; rename to Alternatives
15655 to Wrapper #ifndef.
15656 * doc/cppopts.texi: Update.
15657 * c.opt (Wdeprecated): Enable for C and ObjC.
15658 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
15659 (C++ Dialect Options): Move -Wno-deprecated from here to...
15660 (Warning Options): ... here.
15661
15662 2008-05-13 Richard Guenther <rguenther@suse.de>
15663
15664 PR middle-end/36227
15665 * fold-const.c (fold_sign_changed_comparison): Do not allow
15666 changes in pointer-ness.
15667
15668 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
15669
15670 PR target/24713
15671 * config/sh/sh.c (sh_expand_prologue): Don't clear
15672 RTX_FRAME_RELATED_P for push insns.
15673
15674 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
15675
15676 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
15677
15678 2008-05-12 Anatoly Sokolov <aesok@post.ru>
15679
15680 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
15681 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
15682 Use 'machine->is_leaf' instead of 'leaf_func_p'.
15683
15684 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
15685
15686 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
15687 (*vec_concatv4sf_sse): This.
15688 (*sse2_concatv2si): Renamed to ...
15689 (*vec_concatv2si_sse2): This.
15690 (*sse1_concatv2si): Renamed to ...
15691 (*vec_concatv2si_sse): This.
15692 (*vec_concatv2di_rex): Renamed to ...
15693 (*vec_concatv2di_rex64): This.
15694 (*vec_concatv2si_sse4_1): New.
15695 (*vec_concatv2di_rex64_sse4_1): Likewise.
15696
15697 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
15698
15699 PR rtl-optimization/36111
15700 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
15701 that was created for swappable operands.
15702
15703 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
15704
15705 PR ada/36001
15706 * Makefile.in: Substitute GNATMAKE and GNATBIND.
15707 * configure.ac: Add call to ACX_PROG_GNAT.
15708
15709 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
15710
15711 * optc-gen.awk: Fix comment typo.
15712
15713 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
15714
15715 * pretty-print.c (pp_integer_with_precision): Use
15716 HOST_LONG_LONG_FORMAT.
15717
15718 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
15719
15720 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
15721
15722 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
15723
15724 * config/i386/i386.c (bdesc_ptest): Removed.
15725 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
15726 (bdesc_args): Add __builtin_ia32_ptestz128,
15727 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
15728 (ix86_init_mmx_sse_builtins): Updated.
15729 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
15730 (ix86_expand_builtin): Updated.
15731
15732 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
15733
15734 * tree-cfg.c (valid_fixed_convert_types_p): New function.
15735 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
15736
15737 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
15738
15739 * value-prof.c (interesting_stringop_to_profile): Do not
15740 return early for BUILT_IN_MEMPCPY.
15741
15742 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
15743
15744 * calls.c (expand_call): Don't use callgraph to increase
15745 preferred_stack_boundary.
15746
15747 * cgraph.h (cgraph_rtl_info): Use unsigned on
15748 preferred_incoming_stack_boundary.
15749
15750 * final.c (rest_of_clean_state): Use unsigned on
15751 preferred_stack_boundary.
15752
15753 2008-05-09 Tom Tromey <tromey@redhat.com>
15754
15755 PR preprocessor/22231:
15756 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
15757 proceeding.
15758
15759 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
15760
15761 PR tree-optimization/36129
15762 * tree-ssa-ccp.c: Include value-prof.h.
15763 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
15764 built-in function was folded to a constant.
15765 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
15766
15767 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
15768 Sebastian Pop <sebastian.pop@amd.com>
15769
15770 * tree-scalar-evolution.c: Document instantiate_scev.
15771 (instantiate_parameters_1): Renamed instantiate_scev_1.
15772 Don't use the same loop for instantiation_loop and evolution_loop.
15773 (instantiate_scev): New.
15774 (instantiate_parameters): Moved...
15775 (resolve_mixers): Update call to instantiate_scev_1 to pass the
15776 same loop twice. Maintains the semantics for this function.
15777 * tree-scalar-evolution.h (instantiate_scev): Declare.
15778 (instantiate_parameters): ...here. Now static inline.
15779 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
15780 instead of resolve_mixers.
15781
15782 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
15783
15784 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
15785
15786 2008-05-09 Tomas Bily <tbily@suse.cz>
15787
15788 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
15789 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
15790 * tree-ssa-structalias.c (get_constraint_for): Likewise.
15791 * c-common.c (c_common_truthvalue_conversion): Likewise.
15792 * tree-object-size.c (compute_object_offset): Likewise.
15793 * tree-inline.c (estimate_num_insns_1): Likewise.
15794 * varasm.c (const_hash_1, compare_constant, copy_constant)
15795 (compute_reloc_for_constant, output_addressed_constants)
15796 (initializer_constant_valid_p): Likewise.
15797 * c-omp.c (check_omp_for_incr_expr): Likewise.
15798 * gimplify.c (gimplify_expr): Likewise.
15799 * c-typeck.c (c_finish_return): Likewise.
15800 * tree-vectorizer.c (supportable_widening_operation)
15801 (supportable_narrowing_operation): Likewise.
15802 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
15803 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
15804 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
15805 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
15806 (descr_info_loc): Likewise.
15807 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
15808 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
15809 (fold_unary): Likewise.
15810 * builtins.c (get_pointer_alignment): Likewise.
15811 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
15812 (instantiate_parameters_1): Likewise.
15813 * tree.c (expr_align, stabilize_reference): Likewise.
15814 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
15815 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
15816 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
15817 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
15818 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
15819 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
15820 Likewise.
15821 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
15822 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
15823 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
15824 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
15825 (forward_propagate_comparison)
15826 (tree_ssa_forward_propagate_single_use_vars): Likewise.
15827 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
15828 * emit-rtl.c (component_ref_for_mem_expr)
15829 (set_mem_attributes_minus_bitpos): Likewise.
15830 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
15831 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
15832 Likewise.
15833 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
15834 (build_function_call, pointer_diff, build_compound_expr)
15835 (c_finish_return): Likewise.
15836 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
15837 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
15838 Likewise.
15839 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
15840 * expr.c (is_aligning_offset): Likewise.
15841 * tree-ssa-alias.c (is_escape_site): Likewise.
15842 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
15843 (check_all_va_list_escapes): Likewise.
15844 * tree-ssa-loop-ivopts.c (determine_base_object)
15845 (determine_common_wider_type): Likewise.
15846 * dojump.c (do_jump): Likewise.
15847 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
15848 * tree-gimple.c (is_gimple_cast): Likewise.
15849 * fold-const.c (decode_field_reference, )
15850 (fold_sign_changed_comparison, fold_unary, fold_comparison)
15851 (fold_binary): Likewise.
15852 * tree-ssa-alias-warnings.c (find_alias_site_helper)
15853 (already_warned_in_frontend_p): Likewise.
15854 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
15855 * tree.c (really_constant_p, get_unwidened): Likewise.
15856 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
15857 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
15858 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
15859 Likewise.
15860 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
15861 CONVERT_EXPR_P.
15862 (CONVERT_EXPR_P): Define.
15863 (CASE_CONVERT): Define.
15864
15865 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
15866
15867 PR middle-end/36117
15868 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
15869 (delete_unmarked_insns): When deleting a call, call
15870 delete_unreachable_blocks.
15871 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
15872 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
15873
15874 2008-05-08 Richard Guenther <rguenther@suse.de>
15875
15876 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
15877 (-ftree-salias): Likewise.
15878 (salias-max-implicit-fields): Remove param documentation.
15879 (salias-max-array-elements): Likewise.
15880 * tree-pass.h (pass_create_structure_vars): Remove.
15881 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
15882 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
15883 * tree-ssa-alias.c (create_structure_vars): Remove.
15884 (gate_structure_vars): Likewise.
15885 (pass_create_structure_vars): Likewise.
15886 (gate_build_alias): Likewise.
15887 (pass_build_alias): Adjust to run always and dump the function.
15888 * common.opt (ftree-salias): Hide.
15889 * passes.c (init_optimization_passes): Remove
15890 pass_create_structure_vars, adjust comment.
15891 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
15892 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
15893 * opts.c (decode_options): Do not set flag_tree_salias.
15894 (common_handle_option): Add OPT_ftree_salias to the backward
15895 compatibility section.
15896
15897 2008-05-08 Richard Guenther <rguenther@suse.de>
15898
15899 * tree-flow-inline.h (var_can_have_subvars): Move ...
15900 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
15901 * tree-flow.h (var_can_have_subvars): Remove.
15902 (push_fields_onto_fieldstack): Remove.
15903 (sort_fieldstack): Likewise.
15904 (struct fieldoff): Move ...
15905 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
15906 alias_set and base_for_components fields.
15907 (sort_fieldstack): Make static.
15908 (push_fields_onto_fieldstack): Likewise. Remove code that
15909 handles anything but RECORD_TYPEs. Remove alias_set and
15910 base_for_components handling.
15911 (create_variable_info_for): Adjust.
15912
15913 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
15914
15915 * common.opt (Wframe-larger-than=): Shorten the help message
15916 to one line.
15917 * doc/invoke.texi (Wframe-larger-than=): Add more description.
15918
15919 2008-05-08 Rafael Espíndola <espindola@google.com>
15920
15921 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
15922 trap.
15923 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
15924 trap and that both operands are gimple values.
15925 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
15926 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
15927 is a fp operation.
15928
15929 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
15930
15931 * read-rtl.c (join_c_conditions): Return the first string if the
15932 two strings are equal.
15933
15934 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
15935
15936 * gensupport.h (pred_data): Add a "num_codes" field.
15937 (add_predicate_code): Declare.
15938 * gensupport.c (add_predicate_code): New function.
15939 (std_pred_table): Add an "allows_const_p" field.
15940 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
15941 Remove the (incomplete) list of such codes from the codes field.
15942 (init_predicate_table): Use add_predicate_code. Add all
15943 RTX_CONST_OBJs if allows_const_p is true.
15944 * genrecog.c (process_define_predicate): Use add_predicate_code.
15945
15946 2008-05-08 David Daney <ddaney@avtrex.com>
15947 Richard Sandiford <rsandifo@nildram.co.uk>
15948
15949 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
15950 special case of constant zero operands.
15951 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
15952 old and new values. Special case constant zero values.
15953 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
15954 fails.
15955 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
15956 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
15957
15958 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
15959
15960 PR target/36090
15961 * simplify-rtx.c (simplify_plus_minus): Create CONST of
15962 similar RTX_CONST_OBJ before CONST_INT.
15963
15964 2008-05-08 Steve Ellcey <sje@cup.hp.com>
15965
15966 * stmt.c (expand_stack_restore): Change sa mode if needed.
15967
15968 2008-05-08 Richard Guenther <rguenther@suse.de>
15969
15970 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
15971 return type to bool.
15972 (ix86_sol10_return_in_memory): Likewise.
15973 (ix86_i386elf_return_in_memory): Likewise.
15974 (ix86_i386interix_return_in_memory): Likewise.
15975 * config/i386/i386.c (ix86_return_in_memory): Likewise.
15976 (ix86_sol10_return_in_memory): Likewise.
15977 (ix86_i386elf_return_in_memory): Likewise.
15978 (ix86_i386interix_return_in_memory): Likewise.
15979
15980 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
15981
15982 PR bootstrap/36180
15983 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
15984 fndecl argument.
15985 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
15986 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
15987 declared in front.
15988
15989 2008-05-08 Richard Guenther <rguenther@suse.de>
15990
15991 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
15992 * tree-data-ref.h (struct dr_alias): Remove subvars field.
15993 (DR_SUBVARS): Remove.
15994 * tree-dfa.c (dump_subvars_for): Remove.
15995 (debug_subvars_for): Likewise.
15996 (dump_variable): Do not dump subvars.
15997 (remove_referenced_var): Do not remove subvars.
15998 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
15999 (lookup_subvars_for_var): Remove.
16000 (get_subvars_for_var): Likewise.
16001 (get_subvars_at): Likewise.
16002 (get_first_overlapping_subvar): Likewise.
16003 (overlap_subvar): Likewise.
16004 * tree-flow.h (subvar_t): Remove.
16005 (struct var_ann_d): Remove subvars field.
16006 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
16007 argument. Remove special handling of SFTs.
16008 (compute_tag_properties): Likewise.
16009 (set_initial_properties): Likewise.
16010 (compute_call_clobbered): Likewise.
16011 (count_mem_refs): Likewise.
16012 (compute_memory_partitions): Likewise.
16013 (compute_flow_insensitive_aliasing): Likewise.
16014 (setup_pointers_and_addressables): Likewise.
16015 (new_type_alias): Likewise.
16016 (struct used_part): Remove.
16017 (used_portions): Likewise.
16018 (struct used_part_map): Likewise.
16019 (used_part_map_eq): Likewise.
16020 (used_part_map_hash): Likewise.
16021 (free_used_part_map): Likewise.
16022 (up_lookup): Likewise.
16023 (up_insert): Likewise.
16024 (get_or_create_used_part_for): Likewise.
16025 (create_sft): Likewise.
16026 (create_overlap_variables_for): Likewise.
16027 (find_used_portions): Likewise.
16028 (create_structure_vars): Likewise.
16029 * tree.def (STRUCT_FIELD_TAG): Remove.
16030 * tree.h (MTAG_P): Adjust.
16031 (struct tree_memory_tag): Remove base_for_components and
16032 unpartitionable flags.
16033 (struct tree_struct_field_tag): Remove.
16034 (SFT_PARENT_VAR): Likewise.
16035 (SFT_OFFSET): Likewise.
16036 (SFT_SIZE): Likewise.
16037 (SFT_NONADDRESSABLE_P): Likewise.
16038 (SFT_ALIAS_SET): Likewise.
16039 (SFT_UNPARTITIONABLE_P): Likewise.
16040 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
16041 (union tree_node): Remove sft field.
16042 * alias.c (get_alias_set): Remove special handling of SFTs.
16043 * print-tree.c (print_node): Remove handling of SFTs.
16044 * tree-dump.c (dequeue_and_dump): Likewise.
16045 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
16046 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
16047 * tree-predcom.c (set_alias_info): Do not set subvars.
16048 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
16049 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
16050 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
16051 (add_vars_for_offset): Remove.
16052 (add_virtual_operand): Remove special handling of SFTs.
16053 (add_call_clobber_ops): Likewise.
16054 (add_call_read_ops): Likewise.
16055 (get_asm_expr_operands): Likewise.
16056 (get_modify_stmt_operands): Likewise.
16057 (get_expr_operands): Likewise.
16058 (add_to_addressable_set): Likewise.
16059 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
16060 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
16061 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
16062 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
16063 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
16064 (tree_node_structure): Likewise.
16065 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
16066 handling of SFTs.
16067 (find_what_p_points_to): Likewise.
16068
16069 2008-05-08 Sa Liu <saliu@de.ibm.com>
16070
16071 * config/spu/spu.md: Fixed subti3 pattern.
16072
16073 2008-05-08 Richard Guenther <rguenther@suse.de>
16074
16075 PR middle-end/36154
16076 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
16077 sure to create a representative for trailing arrays for PTA.
16078
16079 2008-05-08 Richard Guenther <rguenther@suse.de>
16080
16081 PR middle-end/36172
16082 * fold-const.c (operand_equal_p): Two objects which types
16083 differ in pointerness are not equal.
16084
16085 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
16086
16087 * calls.c (compute_argument_block_size): Add argument tree fndecl.
16088 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
16089 (emit_library_call_value_1): Add new variable fndecl initialized by
16090 NULL_TREE. It should be the decl type of orgfun, but this information
16091 seems not to be available here, so it uses the default calling abi.
16092 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
16093 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
16094 by TARGET_RETURN_IN_MEMORY.
16095 * config/i386/i386-interix.h: Likewise.
16096 * config/i386/i386.h: Likewise.
16097 * config/i386/i386elf.h: Likewise.
16098 * config/i386/ptx4-i.h: Likewise.
16099 * config/i386/sol2-10.h: Likewise.
16100 * config/i386/sysv4.h: Likewise.
16101 * config/i386/vx-common.h: Likewise.
16102 * config/cris/cris.h: Removed #if 0 clause.
16103 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
16104 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
16105 argument.
16106 (ix86_sol10_return_in_memory): Likewise.
16107 (ix86_i386elf_return_in_memory): New.
16108 (ix86_i386interix_return_in_memory): New.
16109 * config/mt/mt-protos.h (mt_return_in_memory): New.
16110 * config/mt/mt.c: Likewise.
16111 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
16112 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
16113 * config/bfin/bfin.h: Likewise.
16114 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
16115 argument.
16116 * config/bfin/bfin.c: Likewise.
16117 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
16118 * config/alpha/unicosmk.h: Likewise.
16119 * config/i386/cygming.h: Likewise.
16120 * config/iq2000/iq2000.h: Likewise.
16121 * config/mips/mips.h: Likewise.
16122 * config/mn10300/mn10300.h: Likewise.
16123 * config/rs6000/rs6000.h: Likewise.
16124 * config/score/score.h: Likewise.
16125 * config/spu/spu.h: Likewise.
16126 * config/v850/v850.h: Likewise.
16127 * defaults.h: Likewise.
16128 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
16129 * expr.c (emit_block_move): Adjust use of
16130 OUTGOING_REG_PARM_STACK_SPACE.
16131 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
16132 OUTGOING_REG_PARM_STACK_SPACE.
16133 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
16134
16135 2008-05-08 Jakub Jelinek <jakub@redhat.com>
16136
16137 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
16138 on OMP_RETURN for OMP_FOR.
16139
16140 PR debug/35896
16141 * dwarf2out.c (dw_expand_expr, common_check): Removed.
16142 (fortran_common): New function.
16143 (gen_variable_die): Call fortran_common instead of common_check,
16144 adjust for it returning tree instead of rtx. Formatting.
16145
16146 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
16147
16148 PR rtl/7335
16149 PR rtl/33826
16150 * see.c (see_copy_insn): Copy new pure const attributes for new call.
16151 * c-decl.c (merge_decls): Ditto.
16152 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
16153 to RTL_CONST_OR_PURE_CALL_P.
16154 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
16155 Initialized DECL_LOOPING_CONST_PURE.
16156 (process_call_operands): Set tree_side_effects properly.
16157 * tree.h (TREE_READONLY_DECL_P): Removed.
16158 (DECL_IS_PURE): Renamed to DECL_PURE_P.
16159 (DECL_LOOPING_OR_CONST_P): New macro.
16160 (struct tree_function_decl): Added looping_const_or_pure_p.
16161 (ECF_*) Renumbered.
16162 (ECF_LOOPING_OR_CONST_P): New macro.
16163 * rtlanal.c (pure_const_p): Removed.
16164 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
16165 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
16166 to RTL_CONST_CALL_P.
16167 * ipa-pure-const.c (pure_const_state_e): Added looping field.
16168 (check_decl, check_tree, check_call, scan_function): Initialize
16169 looping.
16170 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
16171 (static_execute): Set looping true for recursive functions.
16172 Undo setting state to IPA_NEITHER for recursive functions.
16173 * cse.c (cse_insn):
16174 * ifcvt.c (noce_can_store_speculate_p): Changed
16175 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
16176 RTL_CONST_OR_PURE_CALL_P.
16177 * dse.c (scan_insn): Ditto.
16178 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
16179 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
16180 RTL_CONST_OR_PURE_CALL_P.
16181 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
16182 pure_call_p to RTL_CONST_CALL_P.
16183 * gimplify.c (gimplify_call_expr): Clear side effects for
16184 non-looping pure and constant calls.
16185 * calls.c (emit_call_1): Set rtl flags from ecf flags.
16186 (flags_from_decl_or_type): Set ecf flags from decl flags.
16187 (initialize_argument_information): Turn off
16188 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
16189 Change const to pure if callee_copies is true rather than just
16190 turning off const.
16191 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
16192 way of marking pure calls.
16193 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
16194 Remove hack that was supposed to fix pr7335 and remove old
16195 way of marking pure calls.
16196 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
16197 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
16198 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
16199 RTL_CONST_OR_PURE_CALL_P.
16200 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
16201 * loop-invariant.c (find_exits, find_invariant_bb): Changed
16202 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
16203 * sched-deps.c (schedule_analyze): Ditto.
16204 * rtl.h (struct rtx_def): Use call field, unchanging field, and
16205 return_val field of calls to represent pure and const function info.
16206 (CONST_OR_PURE_CALL_P): Deleted macro.
16207 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
16208 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
16209 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
16210 TREE_READONLY.
16211 * tree-optimize.c (execute_fixup_cfg): Added test for
16212 ECF_LOOPING_CONST_OR_PURE.
16213 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
16214 DECL_PURE_P.
16215 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
16216 effects for looping pure or const calls.
16217 (verify_gimple_expr): Added verification code.
16218 * config/alpha/alpha.c (alpha_legitimize_address,
16219 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
16220 RTL_CONST_CALL_P.
16221 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
16222 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
16223 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
16224 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
16225 RTL_CONST_OR_PURE_CALL_P.
16226 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
16227 and const calls to be deleted.
16228
16229 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
16230
16231 PR target/35714
16232 * config/i386/mmx.md (mmx_subv2sf3): New expander.
16233 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
16234 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
16235 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
16236 to handle nonimmediate operands.
16237 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
16238 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
16239 to handle nonimmediate operands.
16240 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
16241 (mmx_pmulhrwv4hi3): New expander. Use
16242 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16243 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
16244 (sse2_umulv1siv1di3): New expander. Use
16245 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16246 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
16247 (mmx_eq<mode>3): New expander. Use
16248 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16249 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
16250 (mmx_uavgv8qi3): New expander. Use
16251 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16252 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
16253 (mmx_uavgv4hi3): New expander. Use
16254 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16255
16256 * config/i386/sse.md
16257 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
16258 to handle nonimmediate operands.
16259 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
16260 to handle nonimmediate operands.
16261 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
16262 to handle nonimmediate operands.
16263 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
16264 to handle nonimmediate operands.
16265 (sse2_unpckhpd_exp): New expander. Use
16266 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16267 (sse2_unpcklpd_exp): New expander. Use
16268 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16269 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
16270 to handle nonimmediate operands.
16271 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
16272 to handle nonimmediate operands.
16273 (*sse2_<plusminus_insn><mode>3): Rename from
16274 sse2_<plusminus_insn><mode>3 insn pattern.
16275 (sse2_<plusminus_insn><mode>3): New expander. Use
16276 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16277 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
16278 (sse2_umulv2siv2di3): New expander. Use
16279 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16280 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
16281 (sse4_1_mulv2siv2di3): New expander. Use
16282 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16283 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
16284 (sse2_pmaddwd): New expander. Use
16285 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16286 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
16287 (sse2_eq<mode>3): New expander. Use
16288 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16289 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
16290 (sse4_1_eqv2di3): New expander. Use
16291 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16292 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
16293 (sse2_uavgv16qi3): New expander. Use
16294 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16295 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
16296 (sse2_uavgv16qi3): New expander. Use
16297 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16298 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
16299 (sse2_uavgv8hi3): New expander. Use
16300 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16301 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
16302 (ssse3_pmulhrswv8hi3): New expander. Use
16303 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16304 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
16305 (ssse3_pmulhrswv4hi3): New expander. Use
16306 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16307
16308 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
16309 (<sse>_vmmul<mode>3): Ditto.
16310 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
16311 (divv2df3): Ditto.
16312 (ssse3_pmaddubsw128): Use register_operand for operand 1.
16313 (ssse3_pmaddubsw): Ditto.
16314
16315 * config/i386/i386.c (struct_builtin_description)
16316 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
16317 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
16318 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
16319 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
16320 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
16321 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
16322 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
16323 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
16324 (ix86_fixup_binary_operands): Assert that src1
16325 and src2 must have the same mode when swapped.
16326 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
16327 and ix86_binary_operator_ok. Do not force operands in registers
16328 when optimizing.
16329
16330 2008-05-07 Jan Hubicka <jh@suse.cz>
16331
16332 * cgraph.c (dump_cgraph_node): Update.
16333 * cgraph.h (cgraph_local_info): Break out inline summary.
16334 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
16335 hook.
16336 * ipa-inline (inline_summary): New accestor function.
16337 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
16338 cgraph_decide_inlining, compute_inline_parameters): Update.
16339 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
16340
16341 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
16342
16343 Cleanup ColdFire scheduling support and add V4 pipeline model.
16344
16345 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
16346 (define_attr cpu): Add cfv4 value.
16347 (define_attr type, define_attr type1): Merge into a single 'type'
16348 attribute. Update all uses.
16349 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
16350 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
16351 Update all uses.
16352 (define_attr opx_mem, define_attr opy_mem): Remove.
16353 (define_attr op_mem): Clean up, update comment.
16354 (define_attr size): Use specific values instead of general int.
16355 (define_attr guess, define_attr split): Remove. Update all uses.
16356 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
16357 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
16358 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
16359 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
16360 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
16361 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
16362 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
16363 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
16364 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
16365 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
16366 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
16367 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
16368 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
16369 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
16370 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
16371 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
16372 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
16373 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
16374 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
16375 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
16376 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
16377 Update or set attributes.
16378 (stack_tie): New fake instruction.
16379
16380 * config/m68k/m68k.h (TUNE_CFV4): New macro.
16381 (m68k_sched_attr_size): Update declaration.
16382 (m68k_sched_attr_type2): Remove.
16383 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
16384 Declare new bypass predicates.
16385
16386 * config/m68k/m68k.c (m68k_sched_issue_rate,
16387 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
16388 implementations.
16389 (TARGET_SCHED_ISSUE_RATE,
16390 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
16391 (override_options): Handle scheduling for ColdFire V4 core.
16392 (m68k_expand_prologue): Emit stack_tie.
16393 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
16394 'OP_TYPE_FPN'. Update all uses.
16395 (sched_guess_p): Remove.
16396 (sched_address_type): Handle symbolic addresses.
16397 (sched_get_operand): New static function.
16398 (sched_operand_type): Merge into sched_attr_op_type.
16399 (sched_attr_op_type): Handle FP registers, handle quick constants,
16400 update.
16401 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
16402 (m68k_sched_attr_size): Update. Move logic to ...
16403 (sched_get_attr_size_int): New static function.
16404 (sched_get_opxy_mem_type): New static function.
16405 (m68k_sched_attr_op_mem): Update.
16406 (m68k_sched_attr_type2): Remove.
16407 (sched_cfv4_bypass_data): New static variable.
16408 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
16409 (m68k_sched_issue_rate): Implement scheduler hook.
16410 (struct _sched_ib: enabled_p): New field.
16411 (m68k_sched_variable_issue): Update. Handle V4.
16412 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
16413 sched_dump_class_func_t, sched_dump_split_class,
16414 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
16415 sched_dump_dfa_class, m68k_sched_dump): Remove.
16416 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
16417 hook.
16418 (m68k_sched_init_global): Remove statisctics dumping, introduce
16419 sanity check that all instructions have pipeline reservations. Handle
16420 ColdFire V4 core.
16421 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
16422 Handle ColdFire V4 core.
16423 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
16424 New static functions.
16425 (m68k_sched_address_bypass_p): New bypass predicate.
16426 (sched_get_indexed_address_scale): New static function.
16427 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
16428
16429 * cf.md: Update comments.
16430 (define_attr type2): Remove. Use 'type' attribute instead.
16431 Update all uses.
16432 (cf_ib): Rename to cfv123_ib. Update all uses.
16433 (cf_oep): Rename to cfv123_oep. Update all uses.
16434 (cf_chr): Rename to cfv123_chr. Update all uses.
16435 (cf_mem): Rename to cfv123_mem. Update all uses.
16436 (cf_mac): Move to more appropriate place.
16437 (cfv123_guess): New automaton and cpu_unit.
16438 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
16439 Update uses of 'size' attribute. Handle before reload scheduling.
16440 (cfv123_guess): New dummy reservation for unhandled instructions.
16441 (cfv4_*): Pipeline description of ColdFire V4 core.
16442 (ignore): New reservation to handle 'ignore' type.
16443
16444 2008-05-07 Ian Lance Taylor <iant@google.com>
16445
16446 PR middle-end/36013
16447 * gimplify.c (find_single_pointer_decl_1): Don't look through
16448 indirections.
16449 (find_single_pointer_decl): Adjust comments.
16450
16451 2008-05-07 Jakub Jelinek <jakub@redhat.com>
16452
16453 PR middle-end/36137
16454 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
16455 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
16456
16457 PR middle-end/36106
16458 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
16459 integral type rather than floating point, then VIEW_CONVERT_EXPR
16460 to the floating point type.
16461
16462 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
16463
16464 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
16465 TFmode op0 to register.
16466
16467 2008-05-07 Alan Modra <amodra@bigpond.net.au>
16468
16469 * c-decl.c (grokdeclarator): Comment typo.
16470
16471 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
16472
16473 * tree-flow.h: Remove prototype for computed_goto_p.
16474 * tree-cfg.c (computed_goto_p): Make static.
16475
16476 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
16477
16478 PR target/35657
16479 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
16480 (contains_aligned_value_p): This. Handle _Decimal128.
16481 (ix86_function_arg_boundary): Only align _Decimal128 to its
16482 natural boundary and handle it properly.
16483
16484 2008-05-06 Martin Jambor <mjambor@suse.cz>
16485
16486 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
16487 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
16488 (ipcp_method_set_orig_node): Removed.
16489 (ipcp_cval_get_cvalue_type): Removed.
16490 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
16491 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
16492 (ipcp_cval_set_cvalue_type): Removed.
16493 (ipcp_cval_get_cvalue): Removed.
16494 (ipcp_cval_set_cvalue): Removed.
16495 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
16496 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
16497 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
16498 (ipcp_cval_meet): Renamed to ipa_lattice_meet
16499 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
16500 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
16501 (ipcp_get_ith_lattice): Changed parameters.
16502 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
16503 (ipcp_lattice_from_jfunc): Changed parameters.
16504 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
16505 (ipcp_method_cval_print): Added temporary variable info.
16506 (ipcp_redirect): Removed already unused local variable caller.
16507 (ipcp_redirect): New temporary variable orig_callee_info
16508 (ipcp_redirect): Removed newly unused local variable callee.
16509 (ipcp_redirect): Removed (a bit confusing) local variable type.
16510 (ipcp_insert_stage): Added local variable info.
16511 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
16512 renamed too
16513 (ipcp_formal_create): Removed.
16514 (ipcp_method_cval_set): Removed.
16515 (ipcp_propagate_stage): Renamed lattice variables.
16516 (ipcp_method_cval_set_cvalue_type): Removed.
16517 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
16518 (ipcp_print_all_lattices): Changed printed strings to refer to
16519 lattices rather than cvals.
16520 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
16521 (ipcp_propagate_const): Changed formal parameters.
16522 (build_const_val): Changed formal parameters.
16523 (ipcp_insert_stage): Removed useless variable cvalue
16524 (build_const_val): Changed formal parameters.
16525 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
16526 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
16527 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
16528 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
16529 (ipcp_print_func_profile_counts): Changed string from "method" to
16530 "function"
16531 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
16532 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
16533 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
16534 (ipcp_structures_print): Renamed to ipcp_print_all_structures
16535 (ipcp_profile_print): Renamed to ipcp_print_profile_data
16536 (ipcp_lat_is_const): Changed parameters and made inline.
16537 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
16538 (ipcp_redirect): Renamed to ipcp_need_redirect_p
16539 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
16540 the predicate condition directly
16541 (ipcp_propagate_stage): Added local variable args. Removed local
16542 variable callee. (Both are mere code simplifications.)
16543 (ipcp_method_dont_insert_const): Renamed to
16544 ipcp_node_not_modifiable_p.
16545 (ipcp_node_not_modifiable_p): Made inline.
16546 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
16547 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
16548 (ipcp_print_all_lattices): Removed variable cvalue
16549 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
16550 Updated comments.
16551
16552 2008-05-06 Olivier Hainque <hainque@adacore.com>
16553
16554 * tree-sra.c (try_instantiate_multiple_fields): Early return
16555 if field has POINTER_TYPE.
16556
16557 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
16558
16559 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
16560 by using 'q' specifier for instruction.
16561 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
16562
16563 2008-05-06 Anatoly Sokolov <aesok@post.ru>
16564
16565 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
16566 Change mode of zero_extract from QImode to HImode.
16567 (sign bit tests peepholes): (Ditto.).
16568
16569 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
16570
16571 * config/i386/mmx.md: Remove double backslashes from asm templates.
16572 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
16573 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
16574 to handle nonimmediate operands.
16575 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
16576 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
16577 to handle nonimmediate operands.
16578 (*mmx_<code>v2sf3_finite): New insn pattern.
16579 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
16580 (mmx_<code>v2sf3): New expander. Use
16581 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16582 (mmx_<plusminus_insn><mode>3): New expander. Use
16583 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16584 (*mmx_<plusminus_insn><mode>3): New insn pattern.
16585 (mmx_add<mode>3): Removed.
16586 (mmx_ssadd<mode>3): Ditto.
16587 (mmx_usadd<mode>3): Ditto.
16588 (mmx_sub<mode>3): Ditto.
16589 (mmx_sssub<mode>3): Ditto.
16590 (mmx_ussub<mode>3): Ditto.
16591 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
16592 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
16593 to handle nonimmediate operands.
16594 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
16595 insn pattern.
16596 (mmx_smulv4hi3_highpart): New expander. Use
16597 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16598 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
16599 insn pattern.
16600 (mmx_umulv4hi3_highpart): New expander. Use
16601 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16602 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
16603 (mmx_<code>v4hi3): New expander. Use
16604 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16605 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
16606 (mmx_<code>v8qi3): New expander. Use
16607 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16608 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
16609 (mmx_<code><mode>3): New expander. Use
16610 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16611
16612 2008-05-05 Jan Hubicka <jh@suse.cz>
16613
16614 PR tree-optimization/36118
16615 * passes.c (pass_init_dump_file): Fix dump header.
16616
16617 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
16618
16619 PR middle-end/36141
16620 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
16621 VCE for function decls.
16622
16623 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
16624
16625 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
16626
16627 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
16628
16629 * config/i386/i386.md (sat_plusminus): New.
16630 (plusminus_insn): Likewise.
16631 (plusminus_mnemonic): Likewise.
16632 (addsub): Removed.
16633 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
16634 (*<addsub><mode>3_cc_overflow): Renamed to ...
16635 (*<plusminus_insn><mode>3_cc_overflow): This.
16636 (*<addsub>si3_zext_cc_overflow): Renamed to ...
16637 (*<plusminus_insn>si3_zext_cc_overflow): This.
16638
16639 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
16640 (<plusminus_insn><mode>3): This.
16641 (*<addsub><mode>3): Renamed to ...
16642 (*<plusminus_insn><mode>3): This.
16643 (<sse>_vm<addsub><mode>3): Renamed to ...
16644 (<sse>_vm<plusminus_insn><mode>3): This.
16645 (sse3_h<addsub>v4sf3): Renamed to ...
16646 (sse3_h<plusminus_insn>v4sf3): This.
16647 (sse3_h<addsub>v2df3): Renamed to ...
16648 (sse3_h<plusminus_insn>v2df3): This.
16649 (<plusminus_insn><mode>3): New.
16650 (*<plusminus_insn><mode>3): Likewise.
16651 (sse2_<plusminus_insn><mode>3): Likewise.
16652 (add<mode>): Removed.
16653 (*add<mode>3): Likewise.
16654 (sse2_ssadd<mode>3): Likewise.
16655 (sse2_usadd<mode>3): Likewise.
16656 (sub<mode>3): Likewise.
16657 (*sub<mode>3): Likewise.
16658 (sse2_sssub<mode>3): Likewise.
16659 (sse2_ussub<mode>3): Likewise.
16660
16661 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
16662
16663 * gthr-single.h: Add in required interface elements as per gthr.h.
16664 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
16665 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
16666 Generalize UNUSED macro.
16667 (__gthread_once): Add.
16668 (__gthread_key_create): Add.
16669 (__gthread_key_delete): Add.
16670 (__gthread_getspecific): Add.
16671 (__gthread_setspecific): Add.
16672
16673 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
16674
16675 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
16676 the same size types for the indirect reference on the rhs, then
16677 create a VCE.
16678
16679 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
16680
16681 * config/i386/i386.md
16682 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
16683 one insn template instead of template series.
16684 (*xordi_1_rex64): Ditto.
16685 (*xordi_2_rex64): Ditto.
16686
16687 2008-05-05 Ira Rosen <irar@il.ibm.com>
16688
16689 PR tree-optimization/36119
16690 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
16691 in case of SLP.
16692
16693 2008-06-04 Jan Hubicka <jh@suse.cz>
16694
16695 tree-optimization/36100
16696 * tree-pass.h (pass_O0_always_inline): Declare.
16697 * ipa-inline.c (inline_transform): Remove dead code.
16698 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
16699 pass_O0_always_inline): New.
16700 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
16701
16702 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
16703
16704 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
16705 mnemonic in this_param move for TARGET_64BIT.
16706
16707 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
16708
16709 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
16710 (*strmovsi_rex_1): Ditto.
16711 (*strsetsi_1): Ditto.
16712 (*strsetsi_rex_1): Ditto.
16713
16714 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
16715 adddicc expanders using SWI mode iterator.
16716
16717 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
16718
16719 PR target/36121
16720 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
16721 argument handling.
16722
16723 2008-05-04 David S. Miller <davem@davemloft.net>
16724
16725 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
16726 (sparc*-*-linux*): Use linux.h in tm_file.
16727 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
16728 compiler defaulting to 32-bit.
16729 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
16730 no longer needed.
16731 * config/sparc/linux.h: Remove definitions now obtained
16732 properly from linux.h
16733 * config/sparc/linux64.h: Likewise.
16734 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
16735 don't want this setting for 32-bit builds in a biarch compiler.
16736 * doc/install.texi: Add sparc-linux to list of targets
16737 supporting --enable-targets=all.
16738
16739 2008-05-03 Andrew Pinski <pinskia@gmail.com>
16740
16741 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
16742
16743 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
16744
16745 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
16746 after V4SI_FTYPE_V8HI.
16747 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
16748 case V4SI_FTYPE_V2DF.
16749
16750 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
16751
16752 * doc/invoke.texi (max-flow-memory-locations): Removed.
16753 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
16754
16755 2008-05-03 Richard Guenther <rguenther@suse.de>
16756
16757 PR middle-end/34973
16758 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
16759
16760 2008-05-02 David S. Miller <davem@davemloft.net>
16761
16762 * config.gcc (need_64bit_hwint): Document libcpp dependency.
16763
16764 2008-05-02 Simon Baldwin <simonb@google.com>
16765
16766 PR bootstrap/36108
16767 * c-common.h (warn_array_subscript_range): Removed.
16768 * c-common.c (warn_array_subscript_range): Ditto.
16769 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
16770 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
16771
16772 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
16773
16774 * config/i386/i386.c (ix86_special_builtin_type): New.
16775 (bdesc_special_args): Likewise.
16776 (ix86_expand_special_args_builtin): Likewise.
16777 (ix86_init_mmx_sse_builtins): Updated.
16778 (ix86_expand_builtin): Updated.
16779 (ix86_expand_store_builtin): Removed.
16780 (ix86_expand_unop_builtin): Likewise.
16781
16782 * config/i386/mm3dnow.h (__v2sf): Moved to ...
16783 * config/i386/mmintrin.h (__v2sf): Here.
16784
16785 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
16786 const __v2sf.
16787 (_mm_loadl_pi): Likewise.
16788 (_mm_storeh_pi): Replace __v2si with __v2sf.
16789 (_mm_storel_pi): Likewise.
16790
16791 * doc/extend.texi: Correct __builtin_ia32_loadhps,
16792 __builtin_ia32_loadlps, __builtin_ia32_storehps,
16793 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
16794 __builtin_ia32_loadlpd.
16795
16796 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
16797
16798 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
16799 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
16800 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
16801 (ix86_init_mmx_sse_builtins): Updated.
16802 (ix86_expand_args_builtin): Likewise.
16803 (ix86_expand_builtin): Likewise.
16804 (ix86_expand_unop1_builtin): Renamed to ...
16805 (ix86_expand_unop_vec_merge_builtin): This.
16806
16807 2008-05-01 Jan Hubicka <jh@suse.cz>
16808
16809 PR bootstrap/36100
16810 * ipa-inline.c (inline_generate_summary): Make static.
16811 (inline_transform): Do not call inlining at -O0; make static.
16812 * passes.c (execute_todo): Add sanity check.
16813 (execute_one_ipa_transform_pass): Execute proper flags.
16814
16815 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
16816
16817 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
16818 (DECL_NONADDRESSABLE_P): Likewise.
16819 * alias.c (record_component_aliases): Fix comment.
16820
16821 2008-05-01 Simon Baldwin <simonb@google.com>
16822
16823 * c-common.h (warn_array_subscript_range): New function.
16824 * c-common.c (warn_array_subscript_range): Ditto.
16825 * tree-vrp.c (check_array_ref): Corrected code to agree with
16826 comment, ignoring only arrays of size 0 or size 1.
16827 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
16828
16829 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
16830
16831 * config/i386/i386.c (ix86_builtin_type): Replace
16832 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
16833 (bdesc_args): Updated.
16834 (ix86_init_mmx_sse_builtins): Likewise.
16835 (ix86_expand_args_builtin): Likewise.
16836
16837 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
16838 with __v1di.
16839
16840 * doc/extend.texi: Correct __builtin_ia32_palignr.
16841
16842 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
16843
16844 PR target/36095
16845 * config/i386/i386.c (bdesc_crc32): Removed.
16846 (ix86_expand_crc32): Likewise.
16847 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
16848 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
16849 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
16850 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
16851 UINT_FTYPE_UINT_UCHAR.
16852 (bdesc_args): Updated. Add crc32 builtins.
16853 (ix86_init_mmx_sse_builtins): Updated.
16854 (ix86_expand_args_builtin): Updated to support subreg.
16855
16856 * doc/extend.texi: Correct __builtin_ia32_crc32di.
16857
16858 2008-05-01 Jan Hubicka <jh@suse.cz>
16859
16860 * tree-pass.h (opt_pass): Add IPA_PASS.
16861 (varpool_node, cgraph_node): Forward declare.
16862 (ipa_opt_pass): Define.
16863 (pass_ipa_inline): Turn into ipa_opt_pass.
16864 (pass_apply_inline): Remove.
16865 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
16866 (apply_inline): Turn into ....
16867 (inline_transform): ... this one.
16868 (inline_generate_summary): New function.
16869 (pass_apply_inline): Remove.
16870 * function.h (ipa_opt_pass): Forward declare structure; typedef;
16871 vector.
16872 (struct function): Add ipa_transforms_to_apply.
16873 * passes.c (register_one_dump_file): Work on IPA_PASS.
16874 (init_optimization_passes): Remove pass_inline_parameters and
16875 pass_apply_inline.
16876 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
16877 (execute_one_pass) ... here; apply transforms when possible.
16878 (add_ipa_transform_pass, execute_ipa_summary_asses,
16879 execute_one_ipa_transform_pass): New.
16880 (execute_ipa_pass_list): Update for IPA_PASS type.
16881
16882 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
16883
16884 * config/i386/i386.c (ix86_builtin_type): Add
16885 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
16886 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
16887 (bdesc_args): Add SSE4a builtins.
16888 (ix86_init_mmx_sse_builtins): Updated.
16889 (ix86_expand_args_builtin): Likewise.
16890 (ix86_expand_builtin): Likewise.
16891
16892 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
16893
16894 * config/i386/i386.c (ix86_builtin_type): Add
16895 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
16896 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
16897 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
16898 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
16899 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
16900 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
16901 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
16902 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
16903 and DI_FTYPE_DI_DI_INT.
16904 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
16905 (ix86_init_mmx_sse_builtins): Updated.
16906 (ix86_expand_args_builtin): Likewise.
16907 (ix86_expand_builtin): Likewise.
16908 (ix86_expand_binop_imm_builtin): Removed.
16909
16910 * doc/extend.texi: Correct __builtin_ia32_palignr128.
16911
16912 2008-04-30 Richard Guenther <rguenther@suse.de>
16913
16914 PR tree-optimization/32921
16915 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
16916
16917 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
16918
16919 * config/arm/arm.c (arm_unwind_emit): Use
16920 crtl->all_throwers_are_sibcalls instead of
16921 cfun->all_throwers_are_sibcalls.
16922 (arm_output_fn_unwind): Likewise.
16923 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
16924 instead of cfun->uses_pic_offset_table.
16925 (frv_expand_prologue): Likewise.
16926 (frv_frame_pointer_required): Likewise.
16927 (frv_expand_fdpic_call): Likewise.
16928 (frv_emit_movsi): Likewise.
16929 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
16930 cfun->returns_pcc_struct instead of
16931 current_function_returns_pcc_struct.
16932 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
16933 instead of cfun->calls_eh_return.
16934 (m32c_pushm_popm): Likewise.
16935 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
16936 "extern" declaration.
16937
16938 2008-04-30 Richard Guenther <rguenther@suse.de>
16939
16940 PR tree-optimization/21636
16941 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
16942 constant address.
16943 (evaluate_stmt): Print the likely value.
16944 (ccp_visit_stmt): Avoid excessive vertical spacing.
16945
16946 2008-04-30 Rafael Espíndola <espindola@google.com>
16947
16948 * builtins.c (fold_call_expr): Return realret.
16949 * tree-ssa-threadedge.c
16950 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
16951 __builtin_object_size.
16952
16953 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
16954
16955 * gcc.c (wrapper_string): New variable.
16956 (insert_wrapper): New function.
16957 (execute): New option -wrapper.
16958 * doc/invoke.texi (Overall Options): New driver option -wrapper.
16959
16960 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
16961
16962 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
16963 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
16964 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
16965 from...
16966 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
16967 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
16968 config/rs6000/e500crtres64gprctr.asm,
16969 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
16970 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
16971 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
16972 config/rs6000/e500crtsav64gprctr.asm,
16973 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
16974 config/rs6000/e500crtsavg64gprctr.asm: New files.
16975 * config/rs6000/t-ppccomm: Add build rules for new files.
16976 (LIB2FUNCS_STATIC_EXTRA): Add new files.
16977 * config/rs6000/t-netbsd: Add build rules for new files.
16978 (LIB2FUNCS_STATIC_EXTRA): New variable.
16979 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
16980 (CRTSAVRES_DEFAULT_SPEC): Likewise.
16981 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
16982
16983 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
16984
16985 * config/i386/i386.c (ix86_builtin_type): Add
16986 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
16987 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
16988 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
16989 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
16990 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
16991 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
16992 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
16993 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
16994 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
16995 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
16996 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
16997 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
16998 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
16999 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
17000 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
17001 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
17002 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
17003 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
17004 V1DI_FTYPE_V2SI_V2SI.
17005 (bdesc_2arg): Moved to ...
17006 (bdesc_args): Here.
17007 (ix86_init_mmx_sse_builtins): Updated.
17008 (ix86_expand_args_builtin): Updated. Take a pointer
17009 to const struct builtin_description. Handle comparison
17010 builtin functions.
17011 (ix86_expand_sse_compare): Take a new argument for swapping operands.
17012 (ix86_expand_builtin): Updated.
17013
17014 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
17015 (ssse3_pmaddubsw128): This.
17016 (ssse3_pmaddubswv4hi3): Renamed to ...
17017 (ssse3_pmaddubsw): This.
17018
17019 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
17020 (__builtin_ia32_packssdw128): Likewise.
17021 (__builtin_ia32_packuswb128): Likewise.
17022 (__builtin_ia32_pmaddubsw): Likewise.
17023 (__builtin_ia32_pmaddubsw128): Likewise.
17024
17025 2008-04-30 Richard Guenther <rguenther@suse.de>
17026
17027 PR tree-optimization/14847
17028 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
17029 (recognize_bits_test): Use it.
17030 (recognize_single_bit_test): Likewise.
17031
17032 2008-04-30 Martin Jambor <mjambor@suse.cz>
17033
17034 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
17035 instead of setting number of formal parameters to zero.
17036 (ipcp_init_stage): Do not set the number of actual parameters to zero
17037 either.
17038 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
17039 which are called with variable number of arguments.
17040 (ipcp_insert_stage): Explicitely skipping all nodes which are
17041 called with variable number of arguments.
17042 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
17043 number of parameters.
17044
17045 * ipa-prop.h (struct ipa_node_params): Added flag
17046 called_with_var_arguments
17047 (ipa_set_param_count): Added. Changed sole setter to use it.
17048 (ipa_get_param_count): Added. All readers of param_count
17049 converted to use it instead.
17050 (ipa_set_called_with_variable_arg): Added.
17051 (ipa_is_called_with_var_arguments): Added.
17052 (ipa_get_ith_param): Added. All readers of param_decls converted
17053 to use it instead.
17054 (ipa_set_cs_argument_count): Added, sole writer to argument_count
17055 changed to use it.
17056 (ipa_get_cs_argument_count): Added, all readers of argument_count
17057 changed to cal it.
17058 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
17059 to use it.
17060
17061 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
17062 (struct ipcp_lattice): Renamed cval_type to type
17063 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
17064
17065 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
17066 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
17067 (ipcp_insert_stage): Changed the type of variable cvalue to tree
17068 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
17069 (build_const_val): Changed the type of parameter cvalue to tree
17070 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
17071 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
17072
17073 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
17074 constant
17075
17076 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
17077 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
17078 (ipa_add_method): Renamed to ipa_push_func_to_list
17079 (ipa_remove_method): Renamed to ipa_pop_func_from_list
17080 (ipa_callsite_param_count): Removed.
17081 (ipa_callsite_param_count_set): Removed.
17082 (ipa_callsite_param): Removed.
17083 (ipa_callsite_callee): Removed.
17084 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
17085 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
17086 (ipa_method_formal_count): Removed.
17087 (ipa_method_formal_count_set): Removed.
17088 (ipa_method_get_tree): Removed.
17089 (ipa_method_tree_map_create): Removed.
17090 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
17091 (ipa_create_param_decls_array): Creates the array itself
17092 (ipa_create_param_decls_array): Temporary variable info instead of
17093 a few dereferences.
17094 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
17095 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
17096 (get_type): Removed.
17097 (ipa_jf_get_info_type): Removed.
17098 (ipa_node_create): Renamed to ipa_create_node_params
17099 (ipa_free): Renamed to ipa_free_all_node_params
17100 (ipa_nodes_create): Renamed to ipa_create_all_node_params
17101 (ipa_edges_create): Renamed to ipa_create_all_edge_args
17102 (ipa_edges_free): Renamed to ipa_free_all_edge_args
17103 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
17104 (ipa_free_all_node_params): Deallocation to jump_functions moved to
17105 ipa_free_all_edge_args
17106 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
17107 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
17108 (ipa_create_methodlist_node): Removed.
17109 (ipa_methodlist_method): Removed.
17110 (ipa_methodlist_method_set): Removed.
17111 (ipa_methodlist_next_method): Removed.
17112 (ipa_methodlist_next_method_set): Removed.
17113 (ipa_method_is_modified): Removed.
17114 (ipa_method_modify_create): Removed.
17115 (ipa_method_modify_init): Temporary variable info instead of a few
17116 dereferences.
17117 (ipa_detect_param_modifications): Temporary variable info instead of
17118 a few dereferences.
17119 (ipa_compute_jump_functions): Temporary variable info instead of
17120 a few dereferences.
17121 (ipa_method_modify_set): Removed.
17122 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
17123 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
17124 than craph_node as the first parameter.
17125 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
17126 (ipa_method_modify_init): Removed.
17127 (ipa_compute_jump_functions): Added a temp variable instead of
17128 repeatadly dereferencing the cgraph_edge.aux pointer
17129 (ipa_callsite_param_set_type): Removed.
17130 (ipa_compute_jump_functions): i renamed to index and moved to
17131 an inner block
17132 (ipa_callsite_param_set_info_type_formal): Removed.
17133 (ipa_callsite_param_set_info_type): Removed.
17134 (ipa_callsite_param_map_create): Removed.
17135 (ipa_callsite_tree): Removed.
17136 (ipa_callsite_caller): Removed.
17137 (ipa_pop_func_from_list): return_method removed to return_func
17138
17139 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
17140 prefixed all values with IPA_. Changed all users.
17141 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
17142 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
17143 and FORMAL_IPATYPE IPA_PASS_THROUGH.
17144 (union parameter_info): Renamed to jump_func_value.
17145 (union jump_func_value): Renamed value to constant
17146 (struct ipa_jump_func): Renamed info_type to value
17147 (struct ipa_node): Renamed to ipa_node_params
17148 (struct ipa_node_params): Renamed ipa_arg_num to param_count
17149 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
17150 (struct ipa_node_params): Renamed ipa_mod to modified_flags
17151 (struct ipa_edge): Renamed to ipa_edge_args
17152 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
17153 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
17154 (struct ipa_methodlist): Renamed to ipa_func_list
17155 (struct ipa_func_list): method_p renamed to node, next_method
17156 renamed to next
17157 (ipa_methodlist_p): Removed, switched all users to struct pointer
17158 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
17159
17160 2008-04-30 Alan Modra <amodra@bigpond.net.au>
17161
17162 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
17163 (rs6000_emit_epilogue): Use backchain to restore only when we
17164 have a large frame. Make use of frame pointer to restore if we
17165 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
17166
17167 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
17168
17169 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
17170 Add mode to zero_extract.
17171 (sign bit tests peepholes): (Ditto.).
17172
17173 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
17174
17175 * config/i386/i386.c (ix86_builtins): Replace Prescott New
17176 Instructions in comments with SSE3.
17177 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
17178 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
17179 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
17180 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
17181 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
17182 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
17183 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
17184 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
17185 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
17186 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
17187 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
17188 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
17189 (bdesc_sse_args): Renamed to ...
17190 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
17191 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
17192 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
17193 IX86_BUILTIN_FABSQ.
17194 (bdesc_1arg): Moved to ...
17195 (bdesc_args): Here.
17196 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
17197 Instructions in comments with SSE3.
17198 (ix86_expand_sse_operands_builtin): Renamed to ...
17199 (ix86_expand_args_builtin): This. Updated.
17200 (ix86_expand_unop1_builtin): Update comments.
17201 (ix86_expand_builtin): Updated.
17202
17203 2008-04-29 Richard Guenther <rguenther@suse.de>
17204
17205 PR tree-optimization/36078
17206 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
17207 Update virtual SSA form after cleaning up the CFG.
17208
17209 2008-04-29 Richard Guenther <rguenther@suse.de>
17210
17211 PR middle-end/15255
17212 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
17213
17214 2008-04-29 Richard Guenther <rguenther@suse.de>
17215
17216 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
17217 (compute_may_aliases): Do not call finalize_ref_all_pointers.
17218 (compute_flow_insensitive_aliasing): Do not treat
17219 PTR_IS_REF_ALL pointers special.
17220 (get_smt_for): Likewise.
17221 (may_alias_p): Re-structure.
17222 (is_escape_site): A ref-all pointer conversion is not an escape site.
17223 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
17224 PTR_IS_REF_ALL pointers special.
17225 * tree-ssa-structalias.h (struct alias_info): Remove
17226 ref_all_symbol_mem_tag field.
17227 (PTR_IS_REF_ALL): Remove.
17228
17229 2008-04-29 Richard Guenther <rguenther@suse.de>
17230
17231 PR middle-end/36077
17232 * fold-const.c (extract_muldiv_1): In combining division constants
17233 make sure to never overflow.
17234
17235 2008-04-29 Nick Clifton <nickc@redhat.com>
17236
17237 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
17238
17239 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17240
17241 PR bootstrap/35169
17242 * optc-gen.awk: Work around HP-UX/IA awk bug.
17243
17244 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
17245
17246 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
17247 2008-04-25 commit.
17248
17249 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
17250
17251 PR target/36073
17252 * config/i386/i386.md
17253 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
17254 Change operand 1 predicate to nonimmediate_operand.
17255
17256 2008-04-28 Jakub Jelinek <jakub@redhat.com>
17257
17258 PR debug/36060
17259 * dwarf2out.c (struct die_struct): Mark as chain_circular through
17260 die_sub field.
17261 * gengtype.c (walk_type, write_func_for_structure): Handle
17262 chain_circular.
17263 * doc/gty.texi: Document chain_circular.
17264
17265 2008-04-28 Richard Guenther <rguenther@suse.de>
17266
17267 PR tree-optimization/36066
17268 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
17269 SCEV and loop.
17270
17271 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
17272
17273 PR target/36064
17274 * config/i386/i386.md
17275 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
17276 Use match_scratch instead of match_operand for operands 3 and 4.
17277
17278 2008-04-27 Richard Guenther <rguenther@suse.de>
17279
17280 PR tree-optimization/18754
17281 PR tree-optimization/34223
17282 * tree-pass.h (pass_complete_unrolli): Declare.
17283 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
17284 loop size before and after unconditionally of UL_NO_GROWTH in effect.
17285 Rewrite loop into loop closed SSA form if it is not already.
17286 (tree_unroll_loops_completely): Re-structure to iterate over
17287 innermost loops with intermediate CFG cleanups.
17288 Unroll outermost loops only if requested or the code does not grow
17289 doing so.
17290 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
17291 loops are available.
17292 (tree_vectorize): Instead do so here.
17293 (tree_complete_unroll): Also unroll outermost loops.
17294 (tree_complete_unroll_inner): New function.
17295 (gate_tree_complete_unroll_inner): Likewise.
17296 (pass_complete_unrolli): New pass.
17297 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
17298 uses outside of the loop.
17299 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
17300 form if it is available.
17301 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
17302 * passes.c (init_optimization_passes): Schedule complete inner
17303 loop unrolling pass before the first CCP pass after final inlining.
17304
17305 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
17306
17307 * targhooks.h (default_emutls_var_fields,
17308 default_emutls_var_init): Declare.
17309 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
17310 * target.h (struct gcc_target): Add struct emutls member.
17311 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
17312 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
17313 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
17314 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
17315 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
17316 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
17317 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
17318 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
17319 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
17320 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
17321 emit debug information.
17322 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
17323 * varasm.c: Include targhooks.h.
17324 (emutls_object_section, emutls_tmpl_section): New.
17325 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
17326 (EMUTLS_SEPARATOR): New.
17327 (prefix_name): New.
17328 (get_emutls_object_name): New.
17329 (default_emutls_var_fields): New, broken out of ...
17330 (get_emutls_object_type): ... here. Adjust to use target hooks.
17331 (get_emutls_init_templ_addr): Adjust to use target hooks.
17332 (emutls_decl): Adjust to use target hooks.
17333 (emutls_finish): Likewise.
17334 (default_emutls_var_init): New, broken out of ...
17335 (assemble_variable): ... here. Adjust to use target hooks.
17336 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
17337 SECCAT_EMUTLS_TMPL.
17338 * c-common.c (handle_section_attribute): Prevent overriding
17339 sections for emulated tls with special sections.
17340 * config/i386/i386.c (x86_64_elf_select_section): Add
17341 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
17342 (x86_64_elf_unique_section): Likewise.
17343 * config/vxworks.c: Include tree.h.
17344 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
17345 (vxworks_override_options): Set TLS scheme.
17346 * doc/tm.texi (Emulated TLS): New node.
17347
17348 2008-04-26 Simon Baldwin <simonb@google.com>
17349
17350 PR c/35652
17351 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
17352 with propagated string constants.
17353
17354 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
17355
17356 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
17357 constraint for operand 2 when operand 0 is memory operand.
17358 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
17359 operand 0 is memory operand.
17360 (fix_trunc<mode>_i387_with_temp): Ditto.
17361 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
17362 operand 2 when operand 1 is memory operand.
17363 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
17364 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
17365 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
17366 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
17367 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
17368 operands 2,3 and 4 when operand 1 is memory operand.
17369 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
17370 is memory operand.
17371 (fistdi2_floor_with_temp): Ditto.
17372 (fist<mode>2_floor_with_temp): Ditto.
17373 (fistdi2_ceil_with_temp): Ditto.
17374 (fist<mode>2_ceil_with_temp): Ditto.
17375 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
17376
17377 2008-04-26 David Daney <ddaney@avtrex.com>
17378
17379 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
17380 unspec_volitile.
17381 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
17382 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
17383 UNSPEC_UPDATE_GOT_VERSION): Renumber.
17384 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
17385 (compare_and_swap_12): New insn.
17386 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
17387 * config/mips/mips.c (mips_force_binary): New function.
17388 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
17389 (mips_expand_compare_and_swap_12): New function.
17390 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
17391
17392 2008-04-25 Jan Hubicka <jh@suse.cz>
17393
17394 PR testsuite/35843
17395 * cfgexpand.c (pass_expand): Turn into RTL pass.
17396 * passes.c (execute_one_pass): Do pass typechecking after execution.
17397 * tree-pass.h (pass_expand): Turn into RTL pass.
17398
17399 * function.h (struct rtl_data): Move here fields
17400 accesses_prior_frames, calls_eh_return, saves_all_registers,
17401 has_nonlocal_goto, has_asm_statement, is_thunk,
17402 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
17403 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
17404 arg_pointer_save_area_init from struct function; turn into bool.
17405 (struct function): Move
17406 calls_eh_return, saves_all_registers, has_nonlocal_goto,
17407 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
17408 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
17409 tail_call_emit, arg_pointer_save_area_init
17410 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
17411 (current_function_returns_struct, current_function_returns_pcc_struct,
17412 current_function_calls_setjmp, current_function_calls_alloca,
17413 current_function_accesses_prior_frames,
17414 current_function_calls_eh_return, current_function_is_thunk,
17415 current_function_stdarg, current_function_profile,
17416 current_function_limit_stack, current_function_uses_pic_offset_table,
17417 current_function_uses_const_pool, current_function_has_nonlocal_label,
17418 current_function_saves_all_registers,
17419 current_function_has_nonlocal_goto,
17420 current_function_has_asm_statement): Remove accesor macros.
17421 * ra-conflict.c (global_conflicts): Update.
17422 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
17423 (suitable_for_tail_call_opt_p): Update.
17424 * builtins.c (expand_builtin_return_addr): Update.
17425 (expand_builtin_setjmp_setup): Update.
17426 (expand_builtin_nonlocal_goto): Update.
17427 * final.c (final_start_function): Update.
17428 (profile_function): Update.
17429 (leaf_function_p): Update.
17430 (only_leaf_regs_used): Update.
17431 * df-scan.c (df_get_exit_block_use_set): Update.
17432 * dojump.c (clear_pending_stack_adjust): Update.
17433 * tree-stdarg.c (gate_optimize_stdarg): Update.
17434 * gimple-low.c (lower_function_body): Update.
17435 * global.c (compute_regsets): Update.
17436 (global_alloc): Update.
17437 * dwarf2out.c (dwarf2out_begin_prologue): Update.
17438 * expr.c (expand_assignment): Update.
17439 * dse.c (dse_step0): Update.
17440 (dse_step1): Update.
17441 * c-decl.c (store_parm_decls): Update.
17442 * local-alloc.c (combine_regs): Update.
17443 (find_free_reg): Update.
17444 * function.c (assign_parms_augmented_arg_list): Update.
17445 (assign_parm_find_data_types): Update.
17446 (assign_parms): Update.
17447 (allocate_struct_function): Update.
17448 (expand_function_start): Update.
17449 (expand_function_end): Update.
17450 (get_arg_pointer_save_area): Update.
17451 (thread_prologue_and_epilogue_insns): Update.
17452 (rest_of_match_asm_constraints): Update.
17453 * stor-layout.c (variable_size): Update.
17454 * gcse.c (gcse_main): Update.
17455 (bypass_jumps): Update.
17456 * gimplify.c (gimplify_function_tree): Update.
17457 * calls.c (emit_call_1): Update.
17458 (expand_call): Update.
17459 * bt-load.c (compute_defs_uses_and_gen): Update.
17460 * except.c (sjlj_assign_call_site_values): Update.
17461 (sjlj_emit_function_enter): Update.
17462 (can_throw_external): Update.
17463 (set_nothrow_function_flags): Update.
17464 (expand_builtin_unwind_init): Update.
17465 (expand_eh_return): Update.
17466 (convert_to_eh_region_ranges): Update.
17467 (output_function_exception_table): Update.
17468 * emit-rtl.c (gen_tmp_stack_mem): Update.
17469 * cfgexpand.c (expand_used_vars): Update.
17470 (tree_expand_cfg): Update.
17471 * cfgcleanup.c (rest_of_handle_jump): Update.
17472 * explow.c (allocate_dynamic_stack_space): Update.
17473 * varasm.c (assemble_start_function): Update.
17474 (force_const_mem): Update.
17475 (mark_constant_pool): Update.
17476 * tree-optimize.c (tree_rest_of_compilation): Update.
17477 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
17478 * tree-cfg.c (notice_special_calls): Update.
17479 (is_ctrl_altering_stmt): Update.
17480 (tree_can_make_abnormal_goto): Update.
17481 (tree_purge_dead_abnormal_call_edges): Update.
17482 * config/alpha/predicates.md: Update.
17483 * config/alpha/alpha.c (alpha_sa_mask): Update.
17484 (alpha_sa_size): Update.
17485 (alpha_does_function_need_gp): Update.
17486 (alpha_expand_prologue): Update.
17487 (alpha_start_function): Update.
17488 (alpha_output_function_end_prologue): Update.
17489 (alpha_expand_epilogue): Update.
17490 * config/frv/frv.c (frv_stack_info): Update.
17491 (frv_expand_epilogue): Update.
17492 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
17493 (s390_register_info): Update.
17494 (s390_frame_info): Update.
17495 (s390_init_frame_layout): Update.
17496 (s390_can_eliminate): Update.
17497 (save_gprs): Update.
17498 * config/spu/spu.c (spu_split_immediate): Update.
17499 (need_to_save_reg): Update.
17500 (spu_expand_prologue): Update.
17501 (spu_expand_epilogue): Update.
17502 * config/sparc/sparc.md: Update.
17503 * config/sparc/sparc.c (eligible_for_return_delay): Update.
17504 (sparc_tls_got): Update.
17505 (legitimize_pic_address): Update.
17506 (sparc_emit_call_insn): Update.
17507 (sparc_expand_prologue): Update.
17508 (output_return): Update.
17509 (print_operand): Update.
17510 (sparc_function_ok_for_sibcall): Update.
17511 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
17512 * config/m32r/m32r.md: Update.
17513 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
17514 (m32r_compute_frame_size): Update.
17515 (m32r_expand_prologue): Update.
17516 (m32r_expand_epilogue): Update.
17517 (m32r_legitimize_pic_address): Update.
17518 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
17519 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
17520 * config/i386/i386.c (ix86_frame_pointer_required): Update.
17521 (gen_push): Update.
17522 (ix86_save_reg): Update.
17523 (ix86_compute_frame_layout): Update.
17524 (ix86_expand_prologue): Update.
17525 (ix86_expand_epilogue): Update.
17526 * config/sh/sh.c (output_stack_adjust): Update.
17527 (calc_live_regs): Update.
17528 (sh5_schedule_saves): Update.
17529 (sh_expand_prologue): Update.
17530 (sh_expand_epilogue): Update.
17531 (sh_setup_incoming_varargs): Update.
17532 (sh_allocate_initial_value): Update.
17533 (sh_get_pr_initial_val): Update.
17534 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
17535 * config/sh/sh.md (label:): Update.
17536 * config/avr/avr.c (out_movhi_mr_r): Update.
17537 * config/crx/crx.h (enum): Update.
17538 * config/xtensa/xtensa.h (along): Update.
17539 * config/stormy16/stormy16.c Update.
17540 (xstormy16_compute_stack_layout): Update.
17541 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
17542 (fr30_expand_prologue): Update.
17543 * config/cris/cris.c (cris_conditional_register_usage): Update.
17544 (cris_reg_saved_in_regsave_area): Update.
17545 (cris_initial_frame_pointer_offset): Update.
17546 (cris_simple_epilogue): Update.
17547 (cris_expand_prologue): Update.
17548 (cris_expand_epilogue): Update.
17549 (cris_expand_pic_call_address): Update.
17550 (cris_asm_output_symbol_ref): Update.
17551 (cris_asm_output_label_ref): Update.
17552 * config/cris/cris.md Update.
17553 * config/iq2000/iq2000.c (compute_frame_size): Update.
17554 (iq2000_expand_epilogue): Update.
17555 * config/mt/mt.h (save_direction): Update.
17556 * config/mn10300/mn10300.c (mn10300_function_value): Update.
17557 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
17558 (ia64_secondary_reload_class): Update.
17559 * config/m68k/m68k.c (m68k_save_reg): Update.
17560 (m68k_expand_prologue): Update.
17561 (m68k_expand_epilogue): Update.
17562 (legitimize_pic_address): Update.
17563 * config/rs6000/rs6000.c (rs6000_got_register): Update.
17564 (first_reg_to_save): Update.
17565 (first_altivec_reg_to_save): Update.
17566 (compute_vrsave_mask): Update.
17567 (compute_save_world_info): Update.
17568 (rs6000_stack_info): Update.
17569 (spe_func_has_64bit_regs_p): Update.
17570 (rs6000_ra_ever_killed): Update.
17571 (rs6000_emit_eh_reg_restore): Update.
17572 (rs6000_emit_allocate_stack): Update.
17573 (rs6000_emit_prologue): Update.
17574 (rs6000_emit_epilogue): Update.
17575 (rs6000_output_function_epilogue): Update.
17576 (output_profile_hook): Update.
17577 (rs6000_elf_declare_function_name): Update.
17578 * config/rs6000/rs6000.h (rs6000_args): Update.
17579 * config/rs6000/rs6000.md: Update.
17580 * config/mcore/mcore.c (mcore_expand_prolog): Update.
17581 * config/arc/arc.c (arc_output_function_epilogue): Update.
17582 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
17583 * config/darwin.c (machopic_function_base_name): Update.
17584 * config/score/score3.c (score3_compute_frame_size): Update.
17585 (rpush): Update.
17586 (rpop): Update.
17587 (score3_epilogue): Update.
17588 * config/score/score7.c (score7_compute_frame_size): Update.
17589 (score7_prologue): Update.
17590 (score7_epilogue): Update.
17591 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
17592 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
17593 * config/arm/arm.c (use_return_insn): Update.
17594 (require_pic_register): Update.
17595 (arm_load_pic_register): Update.
17596 (arm_compute_save_reg0_reg12_mask): Update.
17597 (arm_compute_save_reg_mask): Update.
17598 (thumb1_compute_save_reg_mask): Update.
17599 (output_return_instruction): Update.
17600 (arm_output_function_prologue): Update.
17601 (arm_output_epilogue): Update.
17602 (arm_get_frame_offsets): Update.
17603 (arm_expand_prologue): Update.
17604 (thumb_pushpop): Update.
17605 (thumb_exit): Update.
17606 (thumb1_expand_prologue): Update.
17607 (thumb1_expand_epilogue): Update.
17608 (arm_unwind_emit): Update.
17609 (arm_output_fn_unwind): Update.
17610 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
17611 * config/arm/arm.md: Update.
17612 * config/pa/pa.md: Update.
17613 * config/pa/pa.c (legitimize_pic_address): Update.
17614 (compute_frame_size): Update.
17615 (hppa_expand_prologue): Update.
17616 (hppa_expand_epilogue): Update.
17617 (borx_reg_operand): Update.
17618 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
17619 (HARD_REGNO_RENAME_OK): Update.
17620 * config/mips/mips.c (mips_global_pointer): Update.
17621 (mips_save_reg_p): Update.
17622 (mips_compute_frame_info): Update.
17623 (mips_frame_pointer_required): Update.
17624 (mips_expand_prologue): Update.
17625 (mips_expand_epilogue): Update.
17626 (mips_can_use_return_insn): Update.
17627 (mips_reorg_process_insns): Update.
17628 * config/v850/v850.c (compute_register_save_size): Update.
17629 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
17630 * config/mmix/mmix.c (along): Update.
17631 (mmix_expand_epilogue): Update.
17632 * config/bfin/bfin.c (legitimize_pic_address): Update.
17633 (must_save_p): Update.
17634 (stack_frame_needed_p): Update.
17635 (add_to_reg): Update.
17636 (bfin_expand_prologue): Update.
17637 * stmt.c (expand_asm_operands): Update.
17638 * reload1.c (reload): Update.
17639 (init_elim_table): Update.
17640
17641 2008-04-25 Bob Wilson <bob.wilson@acm.org>
17642
17643 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
17644
17645 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
17646
17647 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
17648 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
17649 (mov<mode>): Removed.
17650 (*movv4sf_internal): Likewise.
17651 (*movv2df_internal): Likewise.
17652
17653 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
17654
17655 * config.gcc (crx-*-elf): Remove deprecation.
17656
17657 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
17658
17659 * config/i386/cygming-crtend.c (register_frame_ctor): Register
17660 __gcc_deregister_frame with atexit.
17661 (deregister_frame_dtor): Remove.
17662
17663 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
17664 Nathan Sidwell <nathan@codesourcery.com>
17665
17666 * config/rs6000/rs6000.opt (mspe): Remove Var property.
17667 (misel): Likewise.
17668 * config/rs6000/rs6000.h (rs6000_spe): Declare.
17669 (rs6000_isel): Likewise.
17670 * config/rs6000/rs6000.c (rs6000_spe): New variable.
17671 (rs6000_isel): New variable.
17672 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
17673
17674 2008-04-24 Jakub Jelinek <jakub@redhat.com>
17675
17676 PR c++/35758
17677 * c-common.c (handle_vector_size_attribute): Call
17678 lang_hooks.types.reconstruct_complex_type instead of
17679 reconstruct_complex_type.
17680 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
17681 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
17682 * langhooks.h (struct lang_hooks_for_types): Add
17683 reconstruct_complex_type hook.
17684 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
17685 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
17686
17687 2008-04-24 Richard Guenther <rguenther@suse.de>
17688
17689 * c-common.h (check_builtin_function_arguments): Declare.
17690 * c-common.c (validate_nargs): New function.
17691 (check_builtin_function_arguments): Likewise.
17692 * c-typeck.c (build_function_call): Call
17693 check_builtin_function_arguments.
17694 * builtins.c (fold_builtin_classify): Remove error reporting code.
17695 (fold_builtin_unordered_cmp): Likewise.
17696 (fold_builtin_1): Likewise.
17697 (fold_builtin_n): Likewise.
17698
17699 2008-04-24 Jakub Jelinek <jakub@redhat.com>
17700
17701 PR tree-optimization/36008
17702 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
17703 the original op1, rather than delta by step.
17704
17705 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
17706 Sebastian Pop <sebastian.pop@amd.com>
17707
17708 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
17709 eliminate_local_variables_stmt, eliminate_local_variables,
17710 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
17711 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
17712 of code delimited by two edges in the CFG.
17713 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
17714 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
17715 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
17716 the case of parallelisation of reductions.
17717 (expr_invariant_in_region_p): New.
17718
17719 * tree-flow.h (gather_blocks_in_sese_region): Declared.
17720 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
17721
17722 2008-04-24 Ira Rosen <irar@il.ibm.com>
17723 Richard Guenther <rguenther@suse.de>
17724
17725 PR tree-optimization/36034
17726 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
17727 incapable of dealing with loads with gaps.
17728
17729 2008-04-24 Rafael Espíndola <espindola@google.com>
17730
17731 * tree-flow.h (vrp_evaluate_conditional): Change signature.
17732 * tree-ssa-propagate.c (fold_predicate_in): Update call to
17733 vrp_evaluate_conditional.
17734 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
17735 (vrp_evaluate_conditional): Split the cond argument.
17736 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
17737 (simplify_stmt_for_jump_threading): Update call to
17738 vrp_evaluate_conditional.
17739
17740 2008-04-24 Ira Rosen <irar@il.ibm.com>
17741
17742 PR tree-optimization/35982
17743 * tree-vect-analyze.c (vect_check_interleaving): Check that the
17744 interleaved data-refs are of the same type.
17745
17746 2008-04-24 Danny Smith <dannysmith@users.net>
17747
17748 * c-format.c (check_format_info_main): Use strncmp rather than a
17749 magic prefix to handle multichar length specs.
17750 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
17751 Don't prefix "I64" and "I32" with '\0'.
17752
17753 2008-04-24 Jakub Jelinek <jakub@redhat.com>
17754
17755 PR target/36015
17756 * config/i386/i386.c (init_cumulative_args): Don't pass anything
17757 in registers for -m32 only if stdarg_p (fntype).
17758
17759 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
17760
17761 PR rtl-optimization/36006
17762 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
17763 temp to op0 in order to avoid invalid rtx sharing.
17764
17765 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
17766
17767 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
17768 check TREE_INVARIANT.
17769 * tree-gimple.c (is_gimple_address): New.
17770 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
17771 * tree-gimple.h (is_gimple_address): New.
17772 * tree.h (decl_address_invariant_p): New.
17773 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
17774 (build_string): Likewise.
17775 (decl_address_invariant_p): New, from is_gimple_invariant_address.
17776 (tree_invariant_p_1): Likewise.
17777 (save_expr): Use it.
17778 (tree_invariant_p): New.
17779 (skip_simple_arithmetic): Use it.
17780 (stabilize_reference_1): Use it.
17781 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
17782 simplify.
17783 (build1_stat): Drop code to compute TREE_INVARIANT.
17784 (build2_stat): Drop code to compute TREE_INVARIANT.
17785 (build3_stat): Drop code to compute TREE_INVARIANT.
17786 (build4_stat): Drop code to compute TREE_INVARIANT.
17787 (build5_stat): Drop code to compute TREE_INVARIANT.
17788 (build7_stat): Drop code to compute TREE_INVARIANT.
17789 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
17790 * tree.h (struct tree_base): Remove invariant_flag.
17791 (TREE_INVARIANT): Remove.
17792 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
17793 (fold_builtin_expect): Check TREE_CONSTANT.
17794 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
17795 * c-tree.h (c_expr_to_decl): Drop third parameter.
17796 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
17797 (build_c_cast): Don't set TREE_INVARIANT.
17798 (pop_init_level): Don't set TREE_INVARIANT.
17799 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
17800 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
17801 TREE_CONSTANT.
17802 (gimplify_init_constructor): Don't set TREE_INVARIANT.
17803 (gimplify_addr_expr): Adjust comment.
17804 * tree-mudflap.c (mf_build_string):
17805 * print-tree.c (print_node): Don't print TREE_INVARIANT.
17806 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
17807 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
17808 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
17809 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
17810 * langhooks.h (struct lang_hooks): Drop third parameter from
17811 expr_to_decl.
17812
17813 2008-04-23 Richard Guenther <rguenther@suse.de>
17814
17815 PR tree-optimization/27799
17816 PR tree-optimization/32921
17817 PR tree-optimization/32624
17818 * tree-ssa-structalias.c (merge_smts_into): Only merge the
17819 SMTs aliases and the tag itself into the solution.
17820 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
17821 merge the points-to solution back into the SMT aliases.
17822 (may_alias_p): Use alias_set_subset_of instead of
17823 aliases_conflict_p. A pointer which points to
17824 memory with alias set zero may access any variable.
17825
17826 2008-04-23 Richard Guenther <rguenther@suse.de>
17827
17828 * alias.c (alias_set_subset_of): Correctly handle asking
17829 if zero is a subset of an alias set with zero child.
17830 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
17831 (compute_flow_insensitive_aliasing): Correctly walk all
17832 pointers. Do not unnecessarily union sets.
17833
17834 2008-04-23 Richard Guenther <rguenther@suse.de>
17835
17836 PR middle-end/36021
17837 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
17838
17839 2008-04-22 Tomas Bily <tbily@suse.cz>
17840
17841 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
17842 unreachable case.
17843 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
17844 NON_LVALUE_EXPR.
17845 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
17846 * tree-ssa-structalias.c (get_constraint_for): Likewise.
17847 * tree-inline.c (estimate_num_insns_1): Likewise.
17848 * varasm.c (const_hash_1, compare_constant, copy_constant)
17849 (compute_reloc_for_constant, output_addressed_constants): Likewise.
17850 * emit-rtl.c (component_ref_for_mem_expr)
17851 (set_mem_attributes_minus_bitpos): Likewise.
17852 * expr.c (highest_pow2_factor, expand_expr_real_1, )
17853 (is_aligning_offset): Likewise.
17854 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
17855 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
17856 * dojump.c (do_jump): Likewise.
17857 * builtins.c (get_pointer_alignment, get_memory_rtx)
17858 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
17859 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
17860
17861 2008-04-23 Jakub Jelinek <jakub@redhat.com>
17862
17863 PR rtl-optimization/36017
17864 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
17865 expanding the library call.
17866
17867 2008-04-22 Ian Lance Taylor <iant@google.com>
17868
17869 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
17870 than size_in_bytes.
17871
17872 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
17873
17874 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
17875 of LR/CTR moves for Power6.
17876
17877 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
17878
17879 PR middle-end/36003
17880 * passes.c (init_optimization_passes): Remove
17881 pass_fast_rtl_byte_dce.
17882
17883 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
17884
17885 PR target/29096
17886 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
17887 builtin functions to generate faster code.
17888 (_mm_cvtpu16_ps): Ditto.
17889 (_mm_cvtpi32x2_ps): Ditto.
17890
17891 2008-04-22 Nick Clifton <nickc@redhat.com>
17892
17893 * common.opt (ftree-loop-distribution): Add Optimization
17894 attribute.
17895
17896 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
17897 (frv_expand_builtin_va_start): Likewise.
17898
17899 * config/arm/arm.c (thumb_find_work_register): Fix location of
17900 argument register count.
17901
17902 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
17903
17904 Support scheduling for ColdFire V1 and V3 microarchitecture.
17905 Improve scheduling of multiplication instructions.
17906
17907 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
17908 (mac): New instruction attribute.
17909 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
17910 (m68k_sched_mac): New variable.
17911 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
17912 Handle cfv1 and cfv3.
17913 (max_insn_size): New static variable.
17914 (struct _sched_ib): New type.
17915 (sched_ib): New static variable.
17916 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
17917 to fields of 'struct _sched_ib sched_ib'. Update all uses.
17918 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
17919 Update.
17920 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
17921 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
17922 new variables. Update.
17923 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
17924 Add modeling of cfv3 instruction buffer. Update.
17925 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
17926 * config/m68k/m68k.h (TUNE_CFV3): New macro.
17927 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
17928 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
17929 a particular reservation applies to.
17930 (type2): Reorganize attribute values. Rename alu to alu_reg,
17931 alu_l to alu, move_l to omove. Join move to alu. Split mul
17932 to mul_l and mul_w.
17933 (cf_ib_*): Simplify description of instruction buffer.
17934 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
17935 (cf_mem): Split into cf_mem1 and cf_mem2.
17936 (cf_v2_move_??): Rename to cfv12_alu_??.
17937 (cf_v2_move_l_??): Rename to cfv12_omove_??.
17938 (cf_v2_mul_??): Remove reservations.
17939 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
17940 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
17941 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
17942 appropriate place.
17943 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
17944 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
17945 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
17946 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
17947 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
17948 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
17949 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
17950 expansions of the above reservations for instructions of sizes
17951 1, 2 and 3 words.
17952
17953 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
17954
17955 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
17956
17957 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
17958
17959 * coverage.c: Include tree-pass.h.
17960 (coverage_counter_alloc): Print da_file_name to the dump file.
17961
17962 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
17963
17964 * sbitmap.c (sbitmap_range_empty_p): New function.
17965 * sbitmap.h (sbitmap_range_empty_p): New function.
17966 * bitmap.h: Now includes obstack.h.
17967
17968 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
17969 Kenneth Zadeck <zadeck@naturalbridge.com>
17970
17971 * dbgcnt.def (ra_byte_scan): Added.
17972 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
17973 when the last hit happens for a counter.
17974 * timevar.def (TV_DF_BYTE_LR): New variable.
17975 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
17976 * passes.c (pass_fast_rtl_byte_dce): New pass.
17977 * fwprop.c (update_df): Added mode to call df_ref_create.
17978 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
17979 DF_REF_EXTRACT_OFFSET.
17980 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
17981 DF_BYTE_LR_OUT, df_byte_lr): New macro.
17982 (df_mm): New enum.
17983 (df_ref_extract): Added mode field.
17984 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
17985 DF_REF_EXTRACT_OFFSET.
17986 (DF_REF_EXTRACT_MODE): New macro.
17987 (df_byte_lr_bb_info): New structure.
17988 (df_print_byte_regset, df_compute_accessed_bytes,
17989 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
17990 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
17991 df_byte_lr_simulate_uses,
17992 df_byte_lr_simulate_artificial_refs_at_top,
17993 df_byte_lr_simulate_artificial_refs_at_end,
17994 df_compute_accessed_bytes): New function.
17995 (df_ref_create): Add parameter.
17996 (df_byte_lr_get_bb_info): New inline function.
17997 * df-scan.c (df_ref_record, df_uses_record,
17998 df_ref_create_structure): Added mode parameter.
17999 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
18000 df_defs_record, df_uses_record, df_get_conditional_uses,
18001 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
18002 df_entry_block_defs_collect, df_exit_block_uses_collect):
18003 Added mode parameter to calls to df_ref_record, df_uses_record,
18004 df_ref_create_structure.
18005 (df_ref_equal_p, df_ref_compare): Added test for modes.
18006 (df_ref_create_structure): Added code to set mode. Renamed
18007 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
18008 DF_REF_EXTRACT_OFFSET.
18009 * df-core.c (df_print_byte_regset): New function.
18010 * df-byte-scan.c: New file.
18011 * df-problems.c (df_rd_transfer_function): Removed unnecessary
18012 calls to BITMAP_FREE.
18013 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
18014 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
18015 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
18016 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
18017 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
18018 df_byte_lr_local_compute, df_byte_lr_init,
18019 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
18020 df_byte_lr_transfer_function, df_byte_lr_free,
18021 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
18022 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
18023 df_byte_lr_simulate_uses,
18024 df_byte_lr_simulate_artificial_refs_at_top,
18025 df_byte_lr_simulate_artificial_refs_at_end): New function.
18026 * dce.c (byte_dce_process_block): New function.
18027 (dce_process_block): au is now passed in rather than computed
18028 locally. Changed loops that look at artificial defs to not look
18029 for conditional or partial ones, because there never are any.
18030 (fast_dce): Now is able to drive byte_dce_process_block or
18031 dce_process_block depending on the kind of dce being done.
18032 (rest_of_handle_fast_dce): Add parameter to fast_dce.
18033 (rest_of_handle_fast_byte_dce): New function.
18034 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
18035 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
18036
18037 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
18038
18039 PR fortran/35019
18040 * gcc.h: Added fortran options that take arguments to
18041 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
18042 macros.
18043
18044 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
18045
18046 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
18047 scalarization if on the LHS and not a full access.
18048
18049 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18050
18051 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
18052
18053 2008-04-18 Rafael Espíndola <espindola@google.com>
18054
18055 * tree-vrp.c (find_case_label_index): Fix the binary search.
18056 (find_case_label_range): New.
18057 (vrp_visit_switch_stmt): Use find_case_label_range.
18058 (simplify_switch_using_ranges): Use find_case_label_range.
18059
18060 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
18061
18062 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
18063 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
18064
18065 2008-04-18 Tom Tromey <tromey@redhat.com>
18066
18067 PR libcpp/15500:
18068 * doc/cpp.texi (Implementation-defined behavior): Mention
18069 -finput-charset.
18070
18071 2008-04-18 Ian Lance Taylor <iant@google.com>
18072
18073 * fold-const.c (pointer_may_wrap_p): New static function.
18074 (fold_comparison): Add another test for pointer overflow. Use
18075 pointer_may_wrap_p to disable some false positives.
18076
18077 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
18078
18079 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
18080 (fname_as_string): Match updated cpp_interpret_string prototype.
18081 (fix_string_type): Support char16_t* and char32_t*.
18082 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
18083 derivative) nodes. Register as builtin if C++0x.
18084 (c_parse_error): Support CPP_CHAR{16,32}.
18085 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
18086 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
18087 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
18088 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
18089 CTI_CHAR32_ARRAY_TYPE>: New elements.
18090 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
18091 char32_type_node, signed_char32_type_node, char16_array_type_node,
18092 char32_array_type_node): New defines.
18093 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
18094 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
18095 (lex_string): Support CPP_STRING{16,32}, match updated
18096 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
18097 (lex_charconst): Support CPP_CHAR{16,32}.
18098 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
18099 and CPP_STRING{16,32}.
18100
18101 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
18102
18103 PR bootstrap/35457
18104 * aclocal.m4: Regenerate.
18105 * configure: Regenerate.
18106
18107 2008-04-18 Jan Hubicka <jh@suse.cz>
18108
18109 * except.c (dw2_size_of_call_site_table,
18110 sjlj_size_of_call_site_table): Use vector API for call_site_record.
18111
18112 * cgraphbuild.c (build_cgraph_edges): Update.
18113 * tree-pass.h: Update comment.
18114 * final.c (leaf_function_p): Update.
18115 (leaf_renumber_regs): Update.
18116 (rest_of_clean_state): Update.
18117 * omp-low.c (expand_omp_parallel): Update.
18118 * ipa-reference.c (analyze_function): Update.
18119 * reorg.c (find_end_label): Update.
18120 (optimize_skip): Update.
18121 (fill_simple_delay_slots): Update.
18122 (fill_simple_delay_slots): Update.
18123 (make_return_insns): Update.
18124 (dbr_schedule): Update.
18125 * gimple-low.c (record_vars_into): Update.
18126 * cfgbuild.c (make_edges): Update.
18127 * function.c (assign_stack_local): Update.
18128 (assign_parm_adjust_stack_rtl): Update.
18129 (locate_and_pad_parm): Update.
18130 (allocate_struct_function): Do not initialize stack_alignment_needed
18131 and preferred_stack_boundary here.
18132 (stack_protect_prologue): Update.
18133 (stack_protect_epilogue): Update.
18134 (expand_function_start): Initialize stack_alignment_needed,
18135 preferred_stack_boundary and max_jumptable_ents.
18136 (expand_function_end): Update.
18137 (free_after_compilation): Do not NULLify epilogue_delay_list.
18138 * function.h (struct rtl_data): Add stack_protect_guard,
18139 stack_alignment_needed,
18140 preferred_stack_boundary, epilogue_delay_list.
18141 (struct function): Remove value_histograms, stack_alignment_needed,
18142 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
18143 last_label_uid,
18144 unexpanded_var_list, stack_protect_guard.
18145 (current_function_epilogue_delay_list): Remove.
18146 * ipa-type-escape.c (analyze_function): Update.
18147 * gimplify.c (pop_gimplify_context): Update comment.
18148 * calls.c (expand_call): Update.
18149 (emit_library_call_value_1): Update.
18150 * except.c (set_nothrow_function_flags): Update.
18151 * cfgexpand.c (get_decl_align_unit): Update.
18152 (create_stack_guard): Update.
18153 (estimated_stack_frame_size): Update.
18154 (expand_used_vars): Update.
18155 (tree_expand_cfg): Free histogram earliers, init expansion variables.
18156 * explow.c (allocate_dynamic_stack_space): Update.
18157 * tree-ssa-live.c (remove_unused_locals): Update.
18158 * varasm.c (mark_constant_pool): Update.
18159 * tree-inline.c (remap_decls): Update.
18160 (initialize_cfun): Update.
18161 (declare_return_variable): Update.
18162 (inline_forbidden_p): Update.
18163 (expand_call_inline): Update.
18164 (declare_inline_vars): Update.
18165 (tree_function_versioning): Update.
18166 * tree-flow.h (value_histograms): New.
18167 (VALUE_HISTOGRAMS): New macro.
18168 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
18169 last_label_uid.
18170 * tree-cfg.c (set_bb_for_stmt): Update.
18171 (replace_by_duplicate_decl): Update.
18172 (move_block_to_fn): Update.
18173 (new_label_mapper): Update.
18174 (dump_function_to_file): Update.
18175 * ipa-struct-reorg.c (build_data_structure): Update.
18176 * cfgrtl.c (print_rtl_with_bb): Update.
18177 * reload1.c (reload): Update.
18178 (reload): Update.
18179 * config/i386/i386.c (setup_incoming_varargs_64,
18180 ix86_compute_frame_layout): Update.
18181 * config/arc/arc.c (arc_output_function_epilogue): Update.
18182
18183 2008-04-18 Marius Strobl <marius@FreeBSD.org>
18184
18185 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
18186 for FreeBSD as well.
18187 * gthr-posix95.h: Likewise.
18188
18189 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
18190
18191 PR rtl-optimization/35838
18192 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
18193 out the byte offset of the first subreg.
18194
18195 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
18196
18197 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
18198 to split_ti instead of three separate calls with single member arrays.
18199 (subti3 splitter): Ditto.
18200 (adddi3 splitter): Ditto with split_di.
18201 (subdi3 splitter): Ditto.
18202 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
18203 two separate calls with single member arrays. Swap match_dup
18204 operands 1 and 2 to better fit into the array.
18205 (negdi2 splitter): Ditto with split_di.
18206 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
18207 two separate calls with single member arrays. Swap match_dup operands
18208 6 and 7 to better fit into the array.
18209
18210 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
18211
18212 * config/i386/i386.c (sse_builtin_type): New.
18213 (bdesc_sse_args): Likewise.
18214 (bdesc_sse_3arg): Removed.
18215 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
18216 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
18217 IX86_BUILTIN_ROUNDPS.
18218 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
18219 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
18220 IX86_BUILTIN_ROUNDPS.
18221 (ix86_expand_sse_4_operands_builtin): Removed.
18222 (ix86_expand_sse_operands_builtin): New.
18223 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
18224 and CODE_FOR_sse4_1_roundps.
18225 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
18226 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
18227
18228 2008-04-17 Alan Modra <amodra@bigpond.net.au>
18229
18230 PR target/35907
18231 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
18232 regs before frame pop when needed. If use_backchain_to_restore_sp
18233 then load backchain into a temp reg to restore vr and vrsave. Add
18234 code to restore vr after frame pop if possible.
18235
18236 2008-04-17 Richard Guenther <rguenther@suse.de>
18237
18238 * tree-vn.c (expressions_equal_p): Do not check type
18239 equality or compatibility before calling operand_equal_p.
18240 * fold-const.c (operand_equal_p): Check equivalence of
18241 integer constants before bailing out due to signedness or
18242 precision differences.
18243 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
18244 spurious differences in type qualification. Ignore types
18245 for COMPONENT_REFs at all.
18246
18247 2008-04-17 Christian Bruel <christian.bruel@st.com>
18248
18249 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
18250 msw_skip comparison.
18251
18252 2008-04-16 Jakub Jelinek <jakub@redhat.com>
18253
18254 PR c/35739
18255 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
18256 reg type.
18257
18258 PR tree-optimization/35899
18259 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
18260 rather than TREE_OPERAND.
18261
18262 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
18263
18264 PR target/35944
18265 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
18266 temporary registers. Change operand predicate to general_operand.
18267 (remainderxf3): Ditto.
18268
18269 2008-04-16 Richard Guenther <rguenther@suse.de>
18270
18271 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
18272 * tree-affine.c (aff_combination_expand): Look through some
18273 conversions.
18274
18275 2008-04-15 Doug Kwan <dougkwan@google.com>
18276
18277 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
18278 for hex printing.
18279 * tree-pretty-print.c (dump_generic_node): Ditto.
18280 * final.c (output_addr_const): Ditto.
18281 * dwarf2out.c (output_cfi): Ditto.
18282 * c-pretty-print.c (pp_c_integer_constant): Ditto.
18283 * print-rtl.c (print_rtx): Ditto.
18284 * print-tree.c (print_node_brief, print_node): Ditto.
18285 * c-common.c (match_case_to_enum_1): Ditto.
18286 * sched-vis.c (print_value): Ditto.
18287 * config/i386/i386.c (print_operand): Cast to long unsigned int
18288 for hex printing.
18289
18290 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
18291 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
18292 MS Windows VirtualProtect function.
18293
18294 2008-04-15 Jan Hubicka <jh@suse.cz>
18295
18296 * gengtype.c (write_root): Param_is argument is OK.
18297 * expr.c (expand_expr_real_1): Update call of get_exception_*.
18298 * function.h: Include varray.h
18299 (rtl_eh): New stucture based on except.c one.
18300 (call_site_record): New forward declaration and vector type.
18301 * calls.c (emit_call_1): Do not call
18302 note_current_region_may_contain_throw.
18303 * except.c (eh_status): Remove cur_region, try_region since they are
18304 unused.
18305 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
18306 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
18307 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
18308 Remove call_site_data_used, call_site_data_size.
18309 Turn call_site_record into vector in function.h.
18310 (note_current_region_may_contain_throw): Remove.
18311 (get_exception_pointer, get_exception_filter): Do not take struct
18312 function argument; update.
18313 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
18314 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
18315 build_post_landing_pads, dw2_build_landing_pads,
18316 sjlj_assign_call_site_values, sjlj_mark_call_sites,
18317 sjlj_emit_function_enter, sjlj_emit_function_enter,
18318 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
18319 sjlj_build_landing_pads, finish_eh_generation,
18320 remove_exception_handler_label, remove_eh_handler,
18321 maybe_remove_eh_handler, add_reachable_handler,
18322 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
18323 add_action_record, collect_one_action_chain, add_call_site,
18324 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
18325 sjlj_output_call_site_table, output_function_exception_table,
18326 * except.h (note_current_region_may_contain_throw): Remove
18327 (get_exception_pointer, get_exception_filter): Do not take struct
18328 function argument.
18329 * Makefile.in (GTFILES): Put varargs before struct function.
18330
18331 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
18332
18333 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
18334 punt for STRING_CST.
18335 (get_constraint_for): Deal with STRING_CST here instead.
18336
18337 2008-04-15 Richard Guenther <rguenther@suse.de>
18338
18339 * tree-ssa-propagate.c (substitute_and_fold): Substitute
18340 statements in a basic-block with a backward walk. Do not
18341 substitute into dead statements but instead remove those.
18342
18343 2008-04-15 Richard Guenther <rguenther@suse.de>
18344
18345 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
18346 to zero, thus disable creation of SFTs.
18347
18348 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
18349
18350 * tree-predcom.c (suitable_reference_p): Return false if the
18351 reference can throw.
18352
18353 2008-04-15 Jakub Jelinek <jakub@redhat.com>
18354
18355 PR c/35751
18356 * c-decl.c (finish_decl): If extern or static var has variable
18357 size, set TREE_TYPE (decl) to error_mark_node.
18358
18359 2008-04-15 Rafael Espíndola <espindola@google.com>
18360
18361 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
18362 variable arg1.
18363
18364 2008-04-15 Richard Guenther <rguenther@suse.de>
18365
18366 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
18367 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
18368 (visit_reference_op_load): Do walk vuse-vdef chains on
18369 vn_reference_lookup.
18370 (visit_reference_op_store): But do not here.
18371 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
18372 vn_reference_lookup.
18373 (vn_lookup_with_vuses): But do so here.
18374
18375 2008-04-14 Ian Lance Taylor <iant@google.com>
18376
18377 * fold-const.c (fold_overflow_warning): Remove assertion.
18378
18379 2008-04-15 Ben Elliston <bje@au.ibm.com>
18380
18381 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
18382 temp1 local variables.
18383
18384 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
18385
18386 PR target/35661
18387 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
18388 ".text.unlikely" section as executable.
18389
18390 2008-04-14 James E. Wilson <wilson@tuliptree.org>
18391
18392 * config/ia64/ia64.c (rtx_needs_barrier): Handle
18393 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
18394 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
18395 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
18396 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
18397 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
18398 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
18399
18400 2008-04-14 Ian Lance Taylor <iant@google.com>
18401
18402 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
18403 * fold-const.c (fold_comparison): If appropriate, test
18404 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
18405 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
18406 reassociating a pointer type.
18407 * doc/invoke.texi (Optimize Options): Document that
18408 -fstrict-overflow applies to pointer wraparound.
18409
18410 2008-04-13 Jan Hubicka <jh@suse.cz>
18411
18412 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
18413
18414 2008-04-12 Andrew Pinski <pinskia@gmail.com>
18415
18416 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
18417 we are going to "save the world".
18418
18419 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
18420
18421 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
18422 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
18423 operand 0 constraint, not "=".
18424
18425 2008-04-11 James E. Wilson <wilson@tuliptree.org>
18426
18427 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
18428
18429 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
18430
18431 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
18432 of size of positions_needed * CHAR_BIT.
18433
18434 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
18435
18436 PR middle-end/35897
18437 * dse.c (store_info): Change positions_needed to unsigned
18438 HOST_WIDE_INT.
18439 (lowpart_bitmask): New.
18440 (record_store): Cast to unsigned HOST_WIDE_INT for
18441 positions_needed. Assert width <= size of positions_needed *
18442 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
18443 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
18444 lowpart_bitmask to set mask.
18445
18446 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
18447
18448 * config/bfin/constraints.md: New file.
18449 * config/bfin/bfin.md: Include it.
18450 (adddi3): Use satisfies_constraint functions instead of the old macros.
18451 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
18452 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
18453 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
18454 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
18455 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
18456 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
18457 EXTRA_CONSTRAINT): Delete.
18458 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
18459 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
18460 of the old macros.
18461 * config/bfin/bfin.c: Include "tm-constrs.h".
18462 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
18463 Use satisfies_constraint functions instead of the old macros.
18464 * doc/md.texi (Blackfin Constraints): Update file name reference.
18465
18466 2008-04-11 Richard Guenther <rguenther@suse.de>
18467
18468 PR tree-optimization/35869
18469 * tree-vrp.c (execute_vrp): Move switch statement update after
18470 jump threading. Schedule another cfg cleanup run.
18471
18472 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
18473
18474 PR c/35744
18475 * attribs.c (decl_attributes): Return early on errorneous node.
18476
18477 2008-04-10 Oleg Ryjkov <olegr@google.com>
18478
18479 * tree.h (struct tree_base): Added a new flag default_def_flag.
18480 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
18481
18482 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
18483
18484 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
18485
18486 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18487
18488 PR target/35768
18489 * pa.md: Define mode iterator P. Define mode attribute dwc.
18490 (dcacheflush): Update pattern to use iterator P and attribute dwc.
18491 (icacheflush): Likewise.
18492 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
18493 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
18494
18495 2008-04-11 Ben Elliston <bje@au.ibm.com>
18496
18497 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
18498
18499 2008-04-10 Rafael Espíndola <espindola@google.com>
18500
18501 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
18502 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
18503 (extract_range_from_expr): The same.
18504
18505 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
18506
18507 * config/mips/mips.md (GPR2): New mode iterator.
18508 (seq): Add comment.
18509 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
18510 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
18511 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
18512 Rewrite these to take two modes, the mode of comparison and the
18513 mode of the destination.
18514 * config/mips/mips.c (mips_expand_scc): Instead of having
18515 paradoxical subreg as destination, expand "narrowing" scc if mode
18516 of comparison is SI and target is requested in DI mode.
18517 (mips_emit_int_order_test): Update comment. Make mode of
18518 comparison match CMP0 rather than TARGET. When creating inverse
18519 target use mode of TARGET.
18520
18521 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
18522
18523 * gcov-dump.c (tag_summary): Only print summaries for the first
18524 GCOV_COUNTERS_SUMMABLE counters.
18525
18526 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
18527
18528 * config/i386/i386.md (absneg): New code iterator.
18529 (absnegprefix): New code attribute.
18530 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
18531 patterns using absneg code iterator.
18532 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
18533 using absneg code iterator.
18534 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
18535 *neg<mode>2 patterns using absneg code iterator.
18536 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
18537 *negextendsfdf2 patterns using absneg code iterator.
18538 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
18539 *negextendsfxf2 patterns using absneg code iterator.
18540 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
18541 *negextendsfdf2 patterns using absneg code iterator.
18542 * config/i386/sse.md (<code><mode>2): Macroize expander from
18543 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
18544
18545 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
18546
18547 * config/s390/s390.h: Remove the remains of the recent search
18548 & replace action of current_function_outgoing_args_size.
18549
18550 2008-04-10 Ira Rosen <irar@il.ibm.com>
18551
18552 PR tree-optimization/35821
18553 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
18554 NEW_STMT_LIST is not NULL.
18555
18556 2008-04-09 David Edelsohn <edelsohn@gnu.org>
18557
18558 PR libstdc++/35597
18559 * toplev.c (process_options): Remove -ffunction-sections debugging
18560 warning.
18561
18562 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
18563
18564 PR middle-end/PR28690
18565 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
18566 than gen_rtx_fmt_ee to perform more canonicalizations.
18567
18568 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18569
18570 PR driver/35665
18571 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
18572
18573 2008-04-09 Richard Guenther <rguenther@suse.de>
18574
18575 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
18576 (dump_function_to_file): Dump function arguments with types.
18577
18578 2008-04-08 Richard Guenther <rguenther@suse.de>
18579
18580 * fold-const.c (fold_widened_comparison): Do not allow
18581 sign-changes that change the result.
18582
18583 2008-04-08 Janis Johnson <janis187@us.ibm.com>
18584
18585 PR target/35839
18586 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
18587 kinds of indirect references.
18588
18589 2008-04-08 David Edelsohn <edelsohn@gnu.org>
18590
18591 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
18592 GNU Fortran language string.
18593
18594 2008-04-08 Rafael Espíndola <espindola@google.com>
18595
18596 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
18597 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
18598 * tree.h (tree_call_nonnegative_warnv_p): New.
18599
18600 2008-04-08 Jan Hubicka <jh@suse.cz>
18601
18602 * function.c (free_after_compilation): Clear out regno_reg_rtx
18603 pointer.
18604
18605 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
18606
18607 Revert
18608 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
18609
18610 PR middle-end/PR28690
18611 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
18612 same precedence as REG_POINTER and MEM_POINTER operands.
18613
18614 2008-04-08 Richard Guenther <rguenther@suse.de>
18615
18616 PR middle-end/35834
18617 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
18618 for adding index to base.
18619
18620 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
18621
18622 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
18623 (MINGW_ENABLE_EXECUTE_STACK): New.
18624 (IN_LIBGCC2): For libgcc include windows.h file for
18625 function declarations.
18626
18627 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
18628
18629 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
18630 and tem2 if tem1 is not a REG or MULT.
18631
18632 2008-04-08 Jan Hubicka <jh@suse.cz>
18633
18634 * function.h (incomming_args): Break out of struct function.
18635 (function_subsections): Break out of struct function.
18636 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
18637 return_rtx and hard_reg_initial_vals from struct function.
18638 Kill inl_max_label_num.
18639 (current_function_pops_args, current_function_args_info,
18640 current_function_args_size, current_function_args_size,
18641 current_function_pretend_args_size,
18642 current_function_outgoing_args_size,
18643 current_function_internal_arg_pointer, current_function_return_rtx):
18644 Kill compatibility accestor macros.
18645 * builtins.c (expand_builtin_apply_args_1): Update.
18646 (expand_builtin_next_arg): Update.
18647 * df-scan.c (df_get_call_refs): Update.
18648 * dbxout.c (dbxout_function_end): Update.
18649 * dwarf2out.c (dwarf2out_switch_text_section): Update.
18650 (output_line_info): Update.
18651 (secname_for_decl): Update.
18652 (dwarf2out_var_location): Update.
18653 * function.c (free_after_compilation): Update.
18654 (assign_parm_find_stack_rtl): Update.
18655 (assign_parms): Update.
18656 (expand_dummy_function_end): Update.
18657 (expand_function_end): Update.
18658 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
18659 (expand_call): Update.
18660 (emit_library_call_value_1): Update.
18661 (store_one_arg): Update.
18662 * varasm.c (initialize_cold_section_name): Update.
18663 (unlikely_text_section): Update.
18664 (unlikely_text_section_p): Update.
18665 (assemble_start_function): Update.
18666 (assemble_end_function): Update.
18667 (default_section_type_flags): Update.
18668 (switch_to_section): Update.
18669 * integrate.c (set_decl_abstract_flags): Update.
18670 (get_hard_reg_initial_val): Update.
18671 (has_hard_reg_initial_val): Update.
18672 (allocate_initial_values): Update.
18673 * resource.c (init_resource_info): Update.
18674 * config/alpha/alpha.c (NUM_ARGS): Update.
18675 (direct_return): Update.
18676 (alpha_va_start): Update.
18677 (alpha_sa_size): Update.
18678 (alpha_initial_elimination_offset): Update.
18679 (alpha_expand_prologue): Update.
18680 (alpha_start_function): Update.
18681 (alpha_expand_epilogue): Update.
18682 (unicosmk_initial_elimination_offset):
18683 * config/alpha/alpha.md (call expander): Update.
18684 * config/s390/s390.c (s390_register_info): Update.
18685 (s390_register_info): Update.
18686 (s390_frame_info): Update.
18687 (s390_initial_elimination_offset): Update.
18688 (s390_build_builtin_va_list): Update.
18689 (s390_va_start): Update.
18690 * config/spu/spu.c (direct_return): Update.
18691 (spu_expand_prologue): Update.
18692 (spu_initial_elimination_offset): Update.
18693 (spu_build_builtin_va_list): Update.
18694 (spu_va_start): Update.
18695 * config/sparc/sparc.c (sparc_init_modes): Update.
18696 (sparc_compute_frame_size): Update.
18697 (function_value): Update.
18698 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
18699 * config/i386/i386.md (return expander): Update.
18700 * config/i386/i386.c (ix86_va_start): Update.
18701 (ix86_can_use_return_insn_p): Update.
18702 (ix86_compute_frame_layout): Update.
18703 (ix86_expand_epilogue): Update.
18704 * config/sh/sh.c (output_stack_adjust): Update.
18705 (calc_live_regs): Update.
18706 (sh_expand_prologue): Update.
18707 (sh_builtin_saveregs): Update.
18708 (sh_va_start): Update.
18709 (initial_elimination_offset): Update.
18710 (sh_allocate_initial_value): Update.
18711 (sh_function_ok_for_sibcall): Update.
18712 (sh_get_pr_initial_val): Update.
18713 * config/sh/sh.md (return expander): Update.
18714 * config/avr/avr.c (frame_pointer_required_p): UPdate.
18715 * config/crx/crx.c (crx_compute_frame): UPdate.
18716 (crx_initial_elimination_offset): UPdate.
18717 * config/xtensa/xtensa.c (compute_frame_size): Update
18718 (xtensa_builtin_saveregs): Update.
18719 (xtensa_va_start): Update.
18720 (order_regs_for_local_alloc): Update.
18721 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
18722 (xstormy16_expand_builtin_va_start): Update.
18723 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
18724 * config/m68hc11/m68hc11.md (return expanders): Update.
18725 * config/m68hc11/m68hc11.c (expand_prologue): Update.
18726 (expand_epilogue): Update.
18727 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
18728 (cris_simple_epilogue): Update.
18729 (cris_expand_prologue): Update.
18730 (cris_expand_epilogue): Update.
18731 * config/iq2000/iq2000.c (iq2000_va_start): Update.
18732 (compute_frame_size): Update.
18733 * config/mt/mt.c (mt_compute_frame_size): Update.
18734 * config/mn10300/mn10300.c (expand_prologue): Update.
18735 (expand_epilogue): Update.
18736 (initial_offset): Update.
18737 (mn10300_builtin_saveregs):
18738 * config/mn10300/mn10300.md (return expander): Update.
18739 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
18740 (ia64_initial_elimination_offset): Update.
18741 (ia64_initial_elimination_offset): Update.
18742 (ia64_expand_prologue): Update.
18743 * config/m68k/m68k.md (return expander): Update.
18744 * config/rs6000/rs6000.c (rs6000_va_start): Update.
18745 (rs6000_stack_info): Update.
18746 * config/mcore/mcore.c (layout_mcore_frame): Update.
18747 (mcore_expand_prolog): Update.
18748 * config/arc/arc.c (arc_compute_frame_size): Update.
18749 * config/score/score3.c (score3_compute_frame_size): Update.
18750 * config/score/score7.c (score7_compute_frame_size): Update.
18751 * config/arm/arm.c (use_return_insn): Update.
18752 (thumb_find_work_register): Update.
18753 (arm_compute_save_reg_mask): Update.
18754 (arm_output_function_prologue): Update.
18755 (arm_output_epilogue): Update.
18756 (arm_size_return_regs): Update.
18757 (arm_get_frame_offsets): Update.
18758 (arm_expand_prologue): Update.
18759 (thumb_exit): Update.
18760 (thumb_unexpanded_epilogue): Update.
18761 (thumb1_output_function_prologue): Update.
18762 * config/pa/pa.md (return expander): Update.
18763 * config/pa/pa.c (compute_frame_size): Update.
18764 (hppa_builtin_saveregs): Update.
18765 * config/mips/mips.c (mips_va_start): Update.
18766 (mips16_build_function_stub): Update.
18767 (mips_compute_frame_info): Update.
18768 (mips_restore_gp): Update.
18769 (mips_output_function_prologue): Update.
18770 (mips_expand_prologue): Update.
18771 * config/v850/v850.c (compute_frame_size): Update.
18772 (expand_prologue): * config/mmix/mmix.c (along): update.
18773 (mmix_initial_elimination_offset): update.
18774 (mmix_reorg): update.
18775 (mmix_use_simple_return): update.
18776 (mmix_expand_prologue): update.
18777 (mmix_expand_epilogue): Update.
18778 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
18779 (emit_link_insn): Update.
18780
18781 2008-04-08 Anatoly Sokolov <aesok@post.ru>
18782
18783 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
18784 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
18785 instructions.
18786 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
18787 atmega103 device.
18788
18789 2008-04-07 Jan Hubicka <jh@suse.cz>
18790
18791 * function.h (rtl): Rename to x_rtl.
18792 (crtl): New define.
18793 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
18794 frame_offset, stack_check_probe_note, arg_pointer_save_area,
18795 used_temp_slots avail_temp_slots, temp_slot_level,
18796 nonlocal_goto_handler_labels): Update accesstors.
18797 (rtl): New global variable.
18798 (struct function): Move some fileds to rtl_data.
18799 (get_arg_pointer_save_area): Update prototype.
18800 * builtins.c (expand_builtin_setjmp_receiver): Update call of
18801 get_arg_pointer_save_area.
18802 * expr.c (init_expr): Update
18803 * function.c (get_frame_size): Update
18804 (assign_stack_local): Update
18805 (expand_function_end): Update.
18806 (get_art_pointer_save_area): Update
18807 * function.h
18808 * emit-rtl.c (rtl): Declare.
18809 (regno_reg_rtx): Declare.
18810 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
18811 Update.
18812 (gen_reg_rtx): Update.
18813 * varasm.c (n_deferred_constatns): Update accestor.
18814 (init_varasm_status): Do not allocate varasm_status.
18815 (force_const_mem, get_pool_size, output_constant_pool): Update.
18816 * stmt.c (force_label_rtx): Do not use x_ prefixes.
18817 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
18818 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
18819 * sparc/sparc.h (INIT_EXPANDERS): Update.
18820 * ia64/ia64.h (INIT_EXPANDERS): Update.
18821
18822 2008-04-07 James E. Wilson <wilson@tuliptree.org>
18823
18824 * reload.c (push_secondary_reload): Add missing break to for loop.
18825
18826 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
18827
18828 PR middle-end/PR28690
18829 * rtlanal.c: Update copyright years.
18830 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
18831 as REG_POINTER and MEM_POINTER operands.
18832 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
18833 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
18834 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
18835 * gcse.c: Update copyright years.
18836 (pre_delete): Call gen_reg_rtx_and_attrs.
18837 (hoist_code): Likewise.
18838 (build_store_vectors): Likewise.
18839 (delete_store): Likewise.
18840 * loop-invariant.c (move_invariant_reg): Likewise.
18841 Update copyright years.
18842
18843 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
18844
18845 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
18846 control string instead of quoted.
18847
18848 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
18849
18850 * doc/rtl.texi: Rewrite of subreg section.
18851
18852 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
18853
18854 PR/35842
18855 * config/i386/i386.c (legitimize_pic_address): Add treating
18856 of dllimport SYM_REF's.
18857 (legitimize_dllimport_symbol): Add prototype.
18858
18859 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
18860
18861 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
18862 reference in constructor with non self-referential type.
18863
18864 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
18865
18866 Removal of Return with Depressed Stack Pointer support
18867 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
18868 (ECF_SP_DEPRESSED): Likewise.
18869 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
18870 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
18871 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
18872 (expand_call): Do not test ECF_SP_DEPRESSED.
18873 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
18874 * function.c (keep_stack_depressed): Delete.
18875 (handle_epilogue_set): Likewise.
18876 (update_epilogue_consts): Likewise.
18877 (emit_equiv_load): Likewise.
18878 (thread_prologue_and_epilogue_insns): Remove support for Return with
18879 Depressed Stack Pointer.
18880 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
18881
18882 2008-04-06 Richard Guenther <rguenther@suse.de>
18883
18884 PR tree-optimization/35400
18885 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
18886 information from SSA_NAMEs.
18887
18888 2008-04-06 Anatoly Sokolov <aesok@post.ru>
18889
18890 * config/avr/avr.h (avr_mega_p): Remove declaration.
18891 (AVR_MEGA): Remove macro.
18892 * config/avr/avr.c (avr_mega_p): Remove variable.
18893 (avr_override_options): Remove inicializion of avr_mega_p.
18894 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
18895 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
18896 (avr_jump_mode): (Ditto.).
18897 (avr_output_progmem_section_asm_op): (Ditto.).
18898 (avr_asm_init_sections): (Ditto.).
18899 (avr_asm_init_sections): (Ditto.).
18900 (avr_rtx_costs): (Ditto.).
18901 * config/avr/avr.md: (Ditto.).
18902 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
18903 '__AVR_MEGA__'.
18904
18905 2008-04-06 Richard Guenther <rguenther@suse.de>
18906
18907 PR tree-optimization/35842
18908 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
18909 is_gimple_invariant_address.
18910
18911 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18912
18913 * gcc.c (default_compilers): Sync Fortran extensions list with
18914 that in fortran/lang-specs.h.
18915 * doc/invoke.texi: Likewise.
18916 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
18917 * dwarf2out.c (gen_compile_unit_die): Likewise.
18918
18919 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
18920
18921 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
18922
18923 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
18924
18925 PR target/12329
18926 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
18927 attribute is used for nested functions.
18928
18929 2008-04-05 Jan Hubicka <jh@suse.cz>
18930
18931 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
18932
18933 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
18934 letter argument.
18935 (dump_files): Update.
18936 (enable_rtl_dump_file): Do not accept letter argument.
18937 * tree-pass.h (dump_file_info): Remove letter argument.
18938 * toplev.c (decode_d_option): Update -da handling.
18939 * toplev.h (enable_rtl_dump_file): Update prototype.
18940 * passes.c (register_one_dump_file): Do not accept IPA argument; work
18941 it out based on pass type.
18942 (register_dump_files_1): Likewise.
18943 (init_optimization_passes): Update register_one_dump_file calls.
18944 (execute_one_pass): Sanity check that IPA passes are called at IPA
18945 level and RTL passes at RTL level.
18946 (execute_pass_list): IPA pass can not be after or subpass of
18947 GIMPLE/RTL pass.
18948 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
18949 disallov RTL subpasses of IPA subpasses.
18950
18951 2008-04-05 Ben Elliston <bje@au.ibm.com>
18952
18953 * tree-cfg.c (need_fake_edge_p): Return false for calls to
18954 builtins that return exactly once and do not throw. Cache call to
18955 call_expr_flags.
18956
18957 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
18958
18959 PR rtl-optimization/34916
18960 PR middle-end/35519
18961 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
18962 between instruction pairs.
18963
18964 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
18965
18966 * doc/invoke.texi: Document -mbitops for SH.
18967 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
18968 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
18969 * config/sh/sh.c (print_operand): Add %t operand code.
18970 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
18971 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
18972 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
18973 (extendqihi2): Likewise.
18974 (movqi_i): Likewise.
18975 (insv): Use bset, bclr and bst instructions for SH2A if possible.
18976 (extv): Use bld instruction for SH2A if possible.
18977 (extzv): Likewise.
18978 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
18979 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
18980 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
18981 (bset.b, bclr.b): Define peepholes.
18982 * config/sh/sh.opt (mbitops): New option.
18983
18984 2008-04-04 Janis Johnson <janis187@us.ibm.com>
18985
18986 PR target/35620
18987 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
18988 and view convert expression.
18989
18990 2008-04-04 Jakub Jelinek <jakub@redhat.com>
18991
18992 PR target/35364
18993 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
18994
18995 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
18996
18997 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
18998
18999 * config/i386/cpuid.h (bit_AES): New.
19000 (bit_PCLMUL): Likewise.
19001
19002 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
19003 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
19004 SSE2 if AES or PCLMUL is enabled.
19005 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
19006 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
19007 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
19008 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
19009 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
19010 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
19011 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
19012 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
19013 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
19014 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
19015 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
19016 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
19017 __builtin_ia32_aeskeygenassist128 and
19018 __builtin_ia32_pclmulqdq128.
19019 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
19020 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
19021 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
19022
19023 * config/i386/i386.h (TARGET_AES): New.
19024 (TARGET_PCLMUL): Likewise.
19025 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
19026
19027 * config/i386/i386.md (UNSPEC_AESENC): New.
19028 (UNSPEC_AESENCLAST): Likewise.
19029 (UNSPEC_AESDEC): Likewise.
19030 (UNSPEC_AESDECLAST): Likewise.
19031 (UNSPEC_AESIMC): Likewise.
19032 (UNSPEC_AESKEYGENASSIST): Likewise.
19033 (UNSPEC_PCLMUL): Likewise.
19034
19035 * config/i386/i386.opt (maes): New.
19036 (mpclmul): Likewise.
19037
19038 * config/i386/sse.md (aesenc): New pattern.
19039 (aesenclast): Likewise.
19040 (aesdec): Likewise.
19041 (aesdeclast): Likewise.
19042 (aesimc): Likewise.
19043 (aeskeygenassist): Likewise.
19044 (pclmulqdq): Likewise.
19045
19046 * config/i386/wmmintrin.h: New.
19047
19048 * doc/extend.texi: Document AES and PCLMUL built-in function.
19049
19050 * doc/invoke.texi: Document -maes and -mpclmul.
19051
19052 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
19053
19054 * function.c (free_after_parsing): Replace with
19055 cxx_push_function_context from C++ front-end.
19056 (allocate_struct_function): Don't call langhook.
19057 * langhooks.h (struct lang_hooks_for_functions): Delete.
19058 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
19059 member "function".
19060 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
19061 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
19062 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
19063 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
19064 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
19065 remove LANG_HOOKS_FUNCTION_INITIALIZER.
19066 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
19067
19068 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
19069 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
19070
19071 2008-04-04 Jakub Jelinek <jakub@redhat.com>
19072
19073 PR c/35440
19074 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
19075 for all types.
19076
19077 2008-04-04 Richard Guenther <rguenther@suse.de>
19078
19079 PR middle-end/35823
19080 * fold-const.c (optimize_minmax_comparison): Use the correct
19081 type for the constant in the simplified comparison.
19082
19083 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
19084
19085 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
19086 Pass L2 size as "--param l2-cache-size" to the compiler.
19087 (decode_l2_cache): New function to decode L2 cache parameters using
19088 0x8000006 extended cpuid function.
19089 (detect_caches_amd): Determine parameters of L2 cache using
19090 decode_l2_caches function.
19091 (decode_caches_intel): Decode L2 cache parameters.
19092 (detect_caches_intel): Determine L2 cache parameters using
19093 decode_caches_intel and decode_l2_caches functions.
19094
19095 2008-04-03 Bob Wilson <bob.wilson@acm.org>
19096
19097 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
19098 secondary input reload for subword loads from the constant pool.
19099
19100 2008-04-03 Janis Johnson <janis187@us.ibm.com>
19101
19102 PR target/35713
19103 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
19104 constants of the appropriate size for runtime calculations.
19105
19106 PR c/35712
19107 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
19108 decimal-float literal constant zero.
19109
19110 2008-04-03 Jakub Jelinek <jakub@redhat.com>
19111
19112 PR c/35738
19113 * c-parser.c (c_parser_omp_atomic): Call
19114 default_function_array_conversion on the RHS.
19115
19116 PR middle-end/35818
19117 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
19118 call is_variable_sized if decl has incomplete type.
19119
19120 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
19121
19122 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
19123
19124 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
19125
19126 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
19127 iterators.
19128 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
19129 (sgt<u>): Merge sgt and sgtu into new expander.
19130 (sgt, sgtu): Remove expanders.
19131 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
19132 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
19133 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
19134 *sgtu_<mode>_mips16 into new pattern.
19135 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
19136 (sge<u>): Merge sge and sgeu into new expander.
19137 (sge, sgeu): Remove expanders.
19138 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
19139 new pattern.
19140 (*sge_<mode>, second *sge_<mode>): Remove patterns.
19141 (slt<u>): Merge slt and sltu into new expander.
19142 (slt, sltu): Remove expanders.
19143 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
19144 (*slt_<mode>, *sltu_<mode>): Remove patterns.
19145 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
19146 *sltu_<mode>_mips16 into new pattern.
19147 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
19148 (sle<u>): Merge sle and sleu into new expander.
19149 (sle, sleu): Remove expanders.
19150 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
19151 (*sle_<mode>, *sleu_<mode>): Remove patterns.
19152 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
19153 *sleu_<mode>_mips16 into new pattern.
19154 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
19155
19156 2008-04-03 Jan Hubicka <jh@suse.cz>
19157
19158 PR tree-optimization/35795
19159 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
19160 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
19161 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
19162 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
19163 * score/score3.c (score3_output_mi_thunk): Likewise.
19164 * score/score7.c (score7_output_mi_thunk): Likewise.
19165 * mips/mips.c (mips_output_mi_thunk): Likewise.
19166
19167 2008-04-03 Richard Guenther <rguenther@suse.de>
19168
19169 * tree-vrp.c (extract_range_from_unary_expr): Handle all
19170 conversions. Simplify code.
19171
19172 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
19173
19174 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
19175
19176 2008-04-03 Tom Tromey <tromey@redhat.com>
19177 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19178
19179 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
19180 * config/bfin/t-bfin-linux (generated_files): Add
19181 linux-sysroot-suffix.h.
19182 * doc/install.texi (Prerequisites): Require make 3.80.
19183 * doc/sourcebuild.texi (Front End Directory): Document new
19184 variable.
19185 * Makefile.in (generated_files): New variable.
19186 (ALL_HOST_OBJS): New variable.
19187 ($(ALL_HOST_OBJS)): New target.
19188
19189 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
19190
19191 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
19192 (remap_block): Call id->transform_lang_insert_block instead
19193 of langhook.
19194 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
19195 Set id.transform_lang_insert_block to NULL.
19196 (clone_body): Move to cp/optimize.c
19197 * tree-inline.h (struct copy_body_data): Change
19198 transform_lang_insert_block to function pointer.
19199 (copy_generic_body, copy_decl_no_change): Export.
19200 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
19201 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
19202 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
19203
19204 * c-tree.h (insert_block): Kill.
19205 * c-decl.c (insert_block): Kill.
19206
19207 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
19208
19209 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
19210 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
19211 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
19212 argument.
19213 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
19214 argument, call {push,pop}_function_context from here.
19215 * c-parser.c: Use c_{push,pop}_function_context.
19216
19217 * function.c (push_function_context_to): Move meat ...
19218 (push_function_context): ... here. Simplify.
19219 * function.c (pop_function_context_from): Move meat ...
19220 (pop_function_context): ... here. Simplify.
19221 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
19222 leave_nested).
19223 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
19224 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
19225 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
19226 * tree.h (push_function_context_to, pop_function_context_from): Remove.
19227
19228 2008-04-03 Ben Elliston <bje@au.ibm.com>
19229
19230 * expmed.c (extract_force_align_mem_bit_field): Remove.
19231
19232 2008-04-03 Richard Guenther <rguenther@suse.de>
19233
19234 PR middle-end/35800
19235 * expr.h (try_casesi): Adjust prototype.
19236 * expr.c (try_casesi): Take fallback label as extra parameter.
19237 Use that for gen_casesi if default_label is NULL.
19238 * stmt.c (expand_case): Pass fallback label to try_casesi,
19239 make sure to fill gaps with a fallback label if default_label
19240 is not present.
19241
19242 2008-04-03 Dominique d'Humières <dominiq@lps.ens.fr>
19243
19244 PR target/35801
19245 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
19246
19247 2008-04-03 Ben Elliston <bje@au.ibm.com>
19248
19249 * expmed.c (extract_split_bit_field): Remove if (0) code.
19250 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
19251 (do_ds_constraint): Likewise.
19252
19253 2008-04-02 Joseph Myers <joseph@codesourcery.com>
19254
19255 * doc/cppopts.texi (-dU): Document.
19256 * c-common.h (flag_dump_macros): Update comment.
19257 * c-opts.c (handle_OPT_d): Handle -dU.
19258 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
19259 dump_queued_macros, cb_used_define, cb_used_undef): New.
19260 (init_pp_output): Handle -dU.
19261 (cb_line_change): Call dump_queued_macros.
19262 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
19263
19264 2008-04-02 Anatoly Sokolov <aesok@post.ru>
19265
19266 * config/avr/predicates.md (io_address_operand): New predicate.
19267 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
19268 * config/avr/avr.c (avr_io_address_p): Remove function.
19269 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
19270 'avr_io_address_p' function.
19271 (out_movhi_r_mr): (Ditto.).
19272 (out_movqi_mr_r): (Ditto.).
19273 (out_movhi_mr_r): (Ditto.).
19274 (avr_address_cost): (Ditto.).
19275
19276 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
19277
19278 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
19279 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
19280 in 32bit mode when XMM registers are available to avoid store
19281 forwarding stalls.
19282 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
19283 corresponding post-reload splitters.
19284
19285 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
19286
19287 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
19288 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
19289 __builtin_ia32_roundss.
19290 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
19291 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
19292 __builtin_ia32_roundss.
19293 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
19294 IX86_BUILTIN_SHUFPD here.
19295
19296 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
19297
19298 * config/i386/i386.md (plogic): New.
19299 (plogicprefix): Likewise.
19300
19301 * config/i386/mmx.md (mmx_<code><mode>3): New.
19302 (mmx_and<mode>3): Removed.
19303 (mmx_ior<mode>3): Likewise.
19304 (mmx_xor<mode>3): Likewise.
19305
19306 * config/i386/sse.md (<code><mode>3): New.
19307 (*<code><mode>3): Likewise.
19308 (*<code><mode>3): Likewise.
19309 (<code><mode>3): Likewise.
19310 (*sse_<code><mode>3): Likewise.
19311 (*sse2_<code><mode>3): Likewise.
19312 (<code>tf3): Likewise.
19313 (*<code>tf3): Likewise.
19314 (and<mode>3): Likewise.
19315 (*and<mode>3): Likewise.
19316 (ior<mode>3): Removed.
19317 (*ior<mode>3): Likewise.
19318 (xor<mode>3): Likewise.
19319 (*xor<mode>3): Likewise.
19320 (*and<mode>3): Likewise.
19321 (*ior<mode>3): Likewise.
19322 (*xor<mode>3): Likewise.
19323 (and<mode>3): Likewise.
19324 (*sse_and<mode>3): Likewise.
19325 (*sse2_and<mode>3): Likewise.
19326 (andtf3): Likewise.
19327 (*andtf3): Likewise.
19328 (ior<mode>3): Likewise.
19329 (*sse_ior<mode>3): Likewise.
19330 (*sse2_ior<mode>3): Likewise.
19331 (iortf3): Likewise.
19332 (*iortf3): Likewise.
19333 (xor<mode>3): Likewise.
19334 (*sse_xor<mode>3): Likewise.
19335 (*sse2_xor<mode>3): Likewise.
19336 (xortf3): Likewise.
19337 (*xortf3): Likewise.
19338
19339 2008-04-02 Richard Guenther <rguenther@suse.de>
19340
19341 PR tree-optimization/14495
19342 PR tree-optimization/34793
19343 * tree-vrp.c (struct switch_update): New structure.
19344 (to_remove_edges, to_update_switch_stmts): New VECs.
19345 (simplify_switch_using_ranges): New function. Remove not taken
19346 case labels and edges.
19347 (simplify_stmt_using_ranges): Call it.
19348 (identify_jump_threads): Mark edges we have queued for removal
19349 so we don't thread them.
19350 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
19351 case label vector.
19352 * tree-cfg.c (group_case_labels): Deal with missing default label.
19353 (tree_verify_flow_info): Allow missing default label.
19354 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
19355 (emit_case_nodes): Likewise.
19356 (expand_case): Do not rely on the default label to be present.
19357 * expr.c (try_casesi): Deal with NULL default_label.
19358 (do_tablejump): Likewise.
19359
19360 2008-04-02 Richard Guenther <rguenther@suse.de>
19361
19362 PR tree-optimization/14495
19363 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
19364 SWITCH_EXPR here ...
19365 (vrp_visit_switch_stmt): ... but here (new function).
19366 (find_case_label_index): New helper function.
19367 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
19368
19369 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
19370
19371 * fwprop.c: Fix ISO-C99ism.
19372
19373 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
19374
19375 PR bootstrap/35752
19376 * Makefile.in (objdir): Set it here.
19377 * configure.ac: Not here. Find dynamic linker characteristics.
19378 * exec-tool.in: Use them.
19379 * aclocal.m4: Regenerate.
19380 * configure: Regenerate.
19381
19382 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
19383
19384 * expr.c (expand_var): Delete it.
19385 * expr.h (expand_var): Delete prototype.
19386 * function.c (expand_function_start): Use expand_decl instead.
19387 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
19388 langhook.
19389
19390 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
19391
19392 PR rtl-optimization/35542
19393 * fwprop.c (forward_propagate_and_simplify): Replace
19394 loc_reg_mentioned_in_p with reg_mentioned_p.
19395
19396 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
19397
19398 PR rtl-optimization/35281
19399 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
19400 (propagate_rtx_1): Handle PR_HANDLE_MEM.
19401 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
19402 (varying_mem_p): Move above propagate_rtx.
19403 (all_uses_available_at): Do not check MEMs.
19404
19405 2008-04-02 Rafael Espíndola <espindola@google.com>
19406
19407 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
19408 (register_edge_assert_for_2): Split the cond argument.
19409 (register_edge_assert_for_1): Adjust for the change in
19410 register_edge_assert_for_2.
19411 (register_edge_assert_for): Split the cond argument.
19412 (find_switch_asserts): Adjust for the change in
19413 register_edge_assert_for.
19414
19415 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
19416
19417 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
19418 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
19419 offsets for 64-bit mingw.
19420 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
19421 abi for x86_64-pc-mingw.
19422
19423 2008-04-02 Richard Guenther <rguenther@suse.de>
19424
19425 * tree-vrp.c (extract_range_from_assert): Make sure to not
19426 produce range min/max with TREE_OVERFOW set.
19427 If merging a anti-range and a range keep the anti-range if
19428 the range covers all values of the type.
19429 (register_edge_assert_for_2): Only allow sign-changing
19430 conversions in detecting canonical range checks. Also
19431 register an assert for the unsigned name if useful.
19432
19433 PR tree-optimization/35787
19434 * tree-vrp.c (vrp_val_max): New function.
19435 (vrp_val_min): Likewise.
19436 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
19437 (vrp_val_is_min): Likewise.
19438 (supports_overflow_infinity): Use vrp_val_{min,max}.
19439 (negative_overflow_infinity): Likewise.
19440 (positive_overflow_infinity): Likewise.
19441 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
19442 (is_positive_overflow_infinity): Likewise.
19443 (is_overflow_infinity): Likewise.
19444 (avoid_overflow_infinity): Use vrp_val_{min,max} and
19445 vrp_val_is_{min,max}.
19446 (set_and_canonicalize_value_range): Canonicalize anti-ranges
19447 to ranges if possible. Avoid empty ranges.
19448
19449 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19450
19451 PR middle-end/35705
19452 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
19453 the expression is a function address.
19454
19455 2008-04-01 George Helffrich <george@gcc.gnu.org>
19456
19457 PR fortran/35154, fortran/23057
19458 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
19459 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
19460 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
19461 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
19462 in common.
19463 (dbxout_syms): Check for COMMON-based symbol and wrap in
19464 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
19465 in bracket for efficiency.
19466
19467 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
19468 using DW_TAG_common_block + member offset.
19469 (add_pubname_string): New function.
19470 (dw_expand_expr): New function to find block name and offset for
19471 COMMON var.
19472 (common_check): New function to check whether symbol in Fortran COMMON.
19473 (gen_variable_die): If COMMON, use DW_TAG_common_block.
19474
19475 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
19476
19477 PR c/35436
19478 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
19479
19480 2008-04-02 Ben Elliston <bje@au.ibm.com>
19481
19482 * config/v850/v850.md (casesi): Remove if (0) code.
19483 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
19484 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
19485
19486 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
19487
19488 * config/i386/i386.md (rex64suffix): New mode attribute.
19489 (floathi<mode>2): Disable expander for SSE math.
19490 (*floathi<mode>2_1): New insn insn_and_split pattern.
19491 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
19492 corresponding post-reload splitters.
19493 (*floathi<mode>2_i387): New macroized insn pattern.
19494 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
19495 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
19496 insn_and_split pattern.
19497 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
19498 New macroized instruction patterns and corresponding post-reload
19499 splitters.
19500 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
19501 and corresponding post-reload splitters.
19502 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
19503 New macroized instruction patterns.
19504 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
19505 macroized instruction patterns and corresponding post-reload splitters.
19506 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
19507 corresponding post-reload splitters.
19508 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
19509 New macroized instruction patterns.
19510 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
19511 corresponding post-reload splitters.
19512 (*floatsi<mode>2_i387): New macroized instruction patterns.
19513
19514 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
19515
19516 * config/i386/i386.md (smaxmin): New.
19517 (umaxmin): Likewise.
19518 (maxminiprefix): Likewise.
19519 (maxminfprefix): Likewise.
19520 (<code><mode>3): Likewise.
19521 (smin<mode>3): Removed.
19522 (smax<mode>3): Likewise.
19523
19524 * config/i386/mmx.md (mmx_<code>v2sf3): New.
19525 (mmx_<code>v4hi3): Likewise.
19526 (mmx_<code>v8qi3): Likewise.
19527 (mmx_smaxv2sf3): Removed.
19528 (mmx_sminv2sf3): Likewise.
19529 (mmx_umaxv8qi3): Likewise.
19530 (mmx_smaxv4hi3): Likewise.
19531 (mmx_uminv8qi3): Likewise.
19532 (mmx_sminv4hi3): Likewise.
19533
19534 * config/i386/sse.md (<addsub><mode>3): New.
19535 (*<addsub><mode>3): Likewise.
19536 (<sse>_vm<addsub><mode>3): Likewise.
19537 (<maxmin><mode>3): Likewise.
19538 (*<maxmin><mode>3_finite): Likewise.
19539 (*<maxmin><mode>3): Likewise.
19540 (<sse>_vm<maxmin><mode>3): Likewise.
19541 (sse3_h<addsub>v4sf3): Likewise.
19542 (sse3_h<addsub>v2df3): Likewise.
19543 (<maxmin>v16qi3): Likewise.
19544 (*<maxmin>v16qi3): Likewise.
19545 (<maxmin>v8hi3): Likewise.
19546 (*<maxmin>v8hi3): Likewise.
19547 (*sse4_1_<maxmin><mode>3): Likewise.
19548 (*sse4_1_<maxmin><mode>3): Likewise.
19549 (add<mode>3): Removed.
19550 (*add<mode>3): Likewise.
19551 (<sse>_vmadd<mode>3): Likewise.
19552 (sub<mode>3): Likewise.
19553 (*sub<mode>3): Likewise.
19554 (<sse>_vmsub<mode>3): Likewise.
19555 (smin<mode>3): Likewise.
19556 (*smin<mode>3_finite): Likewise.
19557 (*smin<mode>3): Likewise.
19558 (<sse>_vmsmin<mode>3): Likewise.
19559 (smax<mode>3): Likewise.
19560 (*smax<mode>3_finite): Likewise.
19561 (*smax<mode>3): Likewise.
19562 (<sse>_vmsmax<mode>3): Likewise.
19563 (sse3_haddv4sf3): Likewise.
19564 (sse3_haddv2df3): Likewise.
19565 (sse3_hsubv4sf3): Likewise.
19566 (sse3_hsubv2df3): Likewise.
19567 (umaxv16qi3): Likewise.
19568 (*umaxv16qi3): Likewise.
19569 (smaxv8hi3): Likewise.
19570 (*smaxv8hi3): Likewise.
19571 (*sse4_1_smax<mode>3): Likewise.
19572 (*sse4_1_umax<mode>3): Likewise.
19573 (uminv16qi3): Likewise.
19574 (*uminv16qi3): Likewise.
19575 (sminv8hi3): Likewise.
19576 (*sminv8hi3): Likewise.
19577 (*sse4_1_smin<mode>3): Likewise.
19578 (*sse4_1_umin<mode>3): Likewise.
19579
19580 2008-04-01 Rafael Espíndola <espindola@google.com>
19581
19582 * tree-cfg.c (verify_expr): remove in_phi.
19583 (verify_stmt): Don't call walk_tree with verify_expr. Use
19584 is_gimple_min_invariant instead of is_gimple_val.
19585
19586 2008-04-01 Joseph Myers <joseph@codesourcery.com>
19587
19588 * doc/include/gpl_v3.texi: Update for manpage generation.
19589 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
19590 gpl.texi.
19591 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
19592 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
19593 gpl_v3.texi instead of gpl.texi.
19594 (gpl.pod): New.
19595
19596 2008-04-01 Jakub Jelinek <jakub@redhat.com>
19597
19598 PR pch/13675
19599 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
19600
19601 2008-04-01 Rafael Espíndola <espindola@google.com>
19602
19603 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
19604 (extract_code_and_val_from_cond): Use
19605 extract_code_and_val_from_cond_with_ops.
19606
19607 2008-04-01 Jan Hubicka <jh@suse.cz>
19608
19609 * function.c (free_after_compilation): Free epilogue_delay_list.
19610 (prepare_function_start): Assert that previous compilation was freed.
19611
19612 2008-04-01 Jan Hubicka <jh@suse.cz>
19613 Jim Wilson <wilson@tuliptree.org>
19614 Andreas Tobler <andreast@gcc.gnu.org>
19615
19616 PR middle-end/35781
19617 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
19618 rtl.emit instead cfun->emit.
19619 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
19620 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
19621
19622 2008-04-01 Ben Elliston <bje@au.ibm.com>
19623
19624 * doc/c-tree.texi (Function Basics): Fix grammatical error.
19625
19626 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
19627
19628 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
19629 New options
19630 (fprofile-use): Add var flag_profile_use
19631 * coverage.c (coverage_begin_output): Do not open a gcno file for
19632 output only if -ftest-coverage is set.
19633 Do not add getpwd() to gcda file path.
19634 (build_gcov_info): Check the new flag
19635 flag_profile_datafile_relative_path.
19636 (coverage_init): Use profile_data_prefix.
19637 Read profile counter only if flag_profile_use is set.
19638 * opts.c (common_handle_option): New option fprofile-use=,
19639 fprofile-dir=, fprofile-generate=.
19640 * toplev.c (profile_data_prefix): New variable definition.
19641 * toplev.h (profile_data_prefix): New declaration.
19642 * doc/invoke.tex (Option Summary, Optimization Options):
19643 Add new options.
19644
19645 2008-03-31 James E. Wilson <wilson@tuliptree.org>
19646
19647 * varasm.c (output_constant_pool_1): In LABEL_REF check,
19648 use tmp consistently.
19649
19650 PR target/35695
19651 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
19652 * config/ia64/ia64.c (rtx_needs_barrier): Handle
19653 UNSPEC_FR_RECIP_APPROX_RES.
19654 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
19655
19656 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
19657
19658 PR c/35750
19659 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
19660
19661 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
19662
19663 PR middle-end/30186
19664 * fold-const.c (fold_indirect_ref_1): Support accessing non first
19665 element of the vector via a pointer.
19666
19667 2008-03-31 Ian Lance Taylor <iant@google.com>
19668
19669 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
19670
19671 2008-03-31 Jan Hubicka <jh@suse.cz>
19672
19673 * builtins.c (expand_builtin_setjmp_receiver): Update call of
19674 get_arg_pointer_save_area.
19675 * expr.c (init_expr): Just clear out rtl.expr.
19676 * function.c (free_after_compilation): Clear out whole RTL structure.
19677 (get_func_frame_size): Merge into ...
19678 (get_frame_size): ... this one.
19679 (assign_stack_local_1): Merge into ...
19680 (assign_stack_local): ... this one.
19681 (expand_function_end): Update call of get_arg_pointer_save_area.
19682 (get_art_pointer_save_area): Remove cfun argument.
19683 * function.h (emit_status): regno_pointer_align does not need length
19684 attribute. Move x_regno_reg_rtx to ...
19685 (regno_reg_rtx): ... new global array.
19686 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
19687 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
19688 apply_args_value, forced_labels, stack_pointer_delta):
19689 Update accestors.
19690 (struct varasm_status): Move here from varasm.c
19691 (struct rtl_data): New. Move here some fields from struct function.
19692 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
19693 frame_offset, stack_check_probe_note, arg_pointer_save_area,
19694 used_temp_slots avail_temp_slots, temp_slot_level,
19695 nonlocal_goto_handler_labels): Update accesstors.
19696 (rtl): New global variable.
19697 (struct function): Move some fileds to rtl_data.
19698 (get_arg_pointer_save_area): Update prototype.
19699 * emit-rtl.c (rtl): Declare.
19700 (regno_reg_rtx): Declare.
19701 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
19702 Update.
19703 (gen_reg_rtx): Update.
19704 (init_virtual_regs): Do not tate emit_status argument.
19705 (init_emit): Do not allocate emit.
19706 * varasm.c (varasm_statuc): Move to function.h.
19707 (n_deferred_constatns): Update accestor.
19708 (init_varasm_status): Do not allocate varasm_status.
19709 (force_const_mem, get_pool_size, output_constant_pool): Update.
19710 * stmt.c (force_label_rtx): Do not use x_ prefixes.
19711 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
19712
19713 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
19714
19715 PR rtl-optimization/35729
19716 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
19717 references.
19718
19719 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
19720
19721 PR target/32000
19722 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
19723 load/store if memory is unaligned.
19724 (*movti_rex64): Likewise.
19725
19726 * config/i386/predicates.md (misaligned_operand): New.
19727
19728 2008-03-31 Andrew Pinski <pinskia@gmail.com>
19729
19730 PR tree-opt/35431
19731 * tree-ssa-phiopt.c (conditional_replacement): Return early for
19732 complex types.
19733
19734 2008-03-31 Jan Beulich <jbeulich@novell.com>
19735
19736 * config/ia64/constraints.md: Add 'j' constraint.
19737 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
19738 (movdi_internal): Likewise.
19739
19740 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
19741
19742 PR c/35748
19743 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
19744
19745 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
19746
19747 PR target/35757
19748 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
19749 proper error message for the third argument on blendpd and
19750 blendps.
19751
19752 * config/i386/sse.md (blendbits): New.
19753 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
19754
19755 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
19756
19757 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
19758
19759 2008-03-30 Richard Guenther <rguenther@suse.de>
19760
19761 PR middle-end/31023
19762 * fold-const.c (fold_sign_changed_comparison): Do leave
19763 conversions to base-types alone.
19764
19765 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
19766
19767 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
19768 the link register if one altivec register is be saved.
19769
19770 2008-03-30 Ben Elliston <bje@au.ibm.com>
19771
19772 * final.c (final_scan_insn): Remove if (0) code.
19773
19774 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
19775
19776 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
19777
19778 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
19779
19780 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
19781 of V4SFmode to ix86_binary_operator_ok.
19782
19783 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
19784
19785 * config/i386/i386.c (override_options): Initialize
19786 ix86_veclib_handler to ix86_veclibabi_svml when
19787 -mveclibabi=svml is used.
19788 (ix86_veclibabi_svml): New function for SVML ABI style
19789 vectorization support.
19790 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
19791
19792 2008-03-28 Rafael Espíndola <espindola@google.com>
19793
19794 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
19795 (tree_binary_nonnegative_warnv_p): Make it public.
19796 (tree_single_nonnegative_warnv_p): Make it public.
19797 (tree_invalid_nonnegative_warnv_p): Make it public.
19798 (tree_unary_nonzero_warnv_p): Make it public.
19799 (tree_binary_nonzero_warnv_p): Make it public
19800 (tree_single_nonzero_warnv_p): Make it public.
19801 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
19802 (extract_range_from_binary_expr): Split the expr argument.
19803 (extract_range_from_unary_expr): Split the expr argument.
19804 (extract_range_from_comparison): Split the expr argument.
19805 (extract_range_from_expr): Use the new aux functions.
19806 (vrp_evaluate_conditional_warnv): Use
19807 vrp_evaluate_conditional_warnv_with_ops.
19808 * tree.h (tree_unary_nonzero_warnv_p): Declare.
19809 (tree_binary_nonzero_warnv_p): Declare.
19810 (tree_single_nonzero_warnv_p): Declare.
19811 (tree_expr_nonzero_warnv_p): Declare.
19812 (tree_unary_nonnegative_warnv_p): Declare.
19813 (tree_binary_nonnegative_warnv_p): Declare.
19814 (tree_single_nonnegative_warnv_p): Declare.
19815 (tree_invalid_nonnegative_warnv_p): Declare.
19816
19817 2008-03-28 Richard Guenther <rguenther@suse.de>
19818
19819 PR tree-optimization/30317
19820 PR tree-optimization/30911
19821 PR tree-optimization/34793
19822 * tree-vrp.c (set_and_canonicalize_value_range): New function.
19823 (struct assert_locus_d): New member EXPR.
19824 (register_new_assert_for): Add EXPR parameter to support
19825 ASSERT_EXPR <name, expr OP limit>.
19826 (register_edge_assert_for_1): Adjust callers.
19827 (find_assert_locations): Likewise.
19828 (process_assert_insertions_for): Build condition from expression.
19829 (extract_range_from_assert): Handle ASSERT_EXPRs
19830 of the form ASSERT_EXPR <name, expr OP limit>.
19831 (register_edge_assert_for_2): New helper registering
19832 asserts for comparisons. Recognize range tests of the form
19833 (unsigned)i - CST1 OP CST2.
19834 (register_edge_assert_for_1): Use it.
19835 (register_edge_assert_for): Likewise.
19836 (needs_overflow_infinity): Integer sub-types
19837 do not need overflow infinities.
19838 (vrp_val_is_max): The extreme values of integer sub-types
19839 are those of the base type.
19840 (vrp_val_is_min): Likewise.
19841 * tree.def (ASSERT_EXPR): Document extra allowed conditional
19842 expressions.
19843
19844 2008-03-28 Nick Clifton <nickc@redhat.com>
19845
19846 PR target/31110
19847 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
19848 Return GENERAL_REGS for stack adjustment reloads.
19849
19850 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
19851
19852 PR target/31334
19853 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
19854 const_vector when all the vectors are constant.
19855
19856 2008-03-27 Bob Wilson <bob.wilson@acm.org>
19857
19858 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
19859 comparisons.
19860 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
19861 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
19862 (scc_sf): New.
19863 (s<code>_sf): Use new scc_sf attribute for opcode names.
19864
19865 2008-03-27 Tom Tromey <tromey@redhat.com>
19866
19867 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
19868 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
19869 config/spu/t-spu-elf, config/i386/t-interix,
19870 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
19871 config/i386/x-darwin, config/i386/x-mingw32,
19872 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
19873 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
19874 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
19875 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
19876 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
19877 config/rs6000/x-darwin, config/rs6000/t-rs6000,
19878 config/score/t-score-elf, config/arm/t-strongarm-pe,
19879 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
19880 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
19881 Revert automatic dependency patch.
19882
19883 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
19884
19885 PR target/35657
19886 * config/i386/i386.c (ix86_function_arg_boundary): Align
19887 decimal floating point to its natural boundary.
19888
19889 2008-03-27 Richard Guenther <rguenther@suse.de>
19890
19891 PR middle-end/35716
19892 * fold-const.c (fold_comparison): Restrict distinct decl
19893 comparison folding to VAR_DECLs and PARM_DECLs. Do not
19894 solely rely on operand_equal_p.
19895
19896 2008-03-27 Richard Guenther <rguenther@suse.de>
19897
19898 PR c/32511
19899 * c-common.c (handle_weak_attribute): Reject combination of
19900 weak and inline.
19901
19902 2008-03-27 Richard Guenther <rguenther@suse.de>
19903
19904 PR tree-optimization/32810
19905 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
19906 conversions from DECL_INITIAL.
19907 (fold_const_aggregate_ref): Likewise from constructor elements.
19908
19909 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
19910
19911 * tree-affine.h (aff_combination_expand): Declare.
19912 (get_inner_reference_aff): Likewise.
19913 * tree-affine.c (aff_combination_expand): Split out from
19914 tree_to_aff_combination_expand.
19915 (get_inner_reference_aff): New function.
19916 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
19917 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
19918 (struct lim_aux_data): sm_done field removed.
19919 (mem_ref_loc_p, mem_ref_locs_p): New types.
19920 (struct mem_ref): Added id, stored, accesses_in_loop,
19921 indep_loop, dep_loop, indep_ref, dep_ref fields.
19922 Removed is_stored, locs and next fields.
19923 (memory_accesses): New variable.
19924 (movement_possibility): Do not allow moving statements
19925 that store to memory.
19926 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
19927 New functions.
19928 (determine_max_movement): For statements with memory references,
19929 find the outermost loop in that the reference is independent.
19930 (move_computations_stmt): Mark the virtual operands for renaming.
19931 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
19932 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
19933 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
19934 add_vop_ref_mapping, create_vop_ref_mapping_loop,
19935 create_vop_ref_mapping, analyze_memory_references,
19936 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
19937 get_all_locs_in_loop, ref_always_accessed_p,
19938 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
19939 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
19940 store_motion_loop, store_motion): New functions.
19941 (struct vop_to_refs_elt): New type.
19942 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
19943 memref_hash, memref_eq, hoist_memory_references): Rewritten.
19944 (schedule_sm): Replaced by...
19945 (execute_sm): ... this.
19946 (determine_lsm_ref, hoist_memory_references,
19947 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
19948 find_more_ref_vops, free_mem_ref, free_mem_refs,
19949 determine_lsm_loop, determine_lsm): Removed.
19950 (tree_ssa_lim_finalize): Free data structures used by store motion.
19951 (tree_ssa_lim): Call analyze_memory_references. Use
19952 store_motion instead of determine_lsm.
19953
19954 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
19955
19956 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
19957 rename tmake_file to m68hc11/t-m68hc11.
19958 (mcore): Set inhibit_libc to true.
19959 * config.host (alpha*-dec-*vms*): Set extra_programs.
19960 (interix3*): Don't use host_xmake_file.
19961 * configure.ac: Let config.gcc override inhibit_libc.
19962 * configure: Regenerate.
19963
19964 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
19965 * config/t-openbsd-thread: Remove commented out lines.
19966
19967 * config/x-interix: Remove.
19968
19969 * config/m68hc11/t-m68hc11-gas: Rename to...
19970 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
19971
19972 * config/mcore/t-mcore: Remove T_CFLAGS.
19973 * config/mcore/t-mcore-pe: Likewise.
19974
19975 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
19976
19977 * configure.ac: Replace custom __GNU_SOURCE test with
19978 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
19979 * aclocal.m4: Regenerate.
19980 * configure: Regenerate.
19981 * config.in: Regenerate.
19982
19983 2008-03-27 Richard Guenther <rguenther@suse.de>
19984
19985 * fold-const.c (target.h): Include.
19986 (fold_comparison): Fold comparison of addresses of decls
19987 that bind locally or of constants. Consolidate address folding code.
19988 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
19989 results from fold_binary_to_constant.
19990 (compare_values_warnv): Likewise.
19991
19992 2008-03-27 Andrew Pinski <pinskia@gmail.com>
19993
19994 PR middle-end/35429
19995 * fold-const.c (fold_truthop): Check for integeral types when folding
19996 a == 0 && b == 0 and a != 0 || b != 0 .
19997
19998 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
19999
20000 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
20001
20002 2008-03-26 Andreas Schwab <schwab@suse.de>
20003
20004 * doc/invoke.texi: Fix use of @item vs. @itemx.
20005
20006 2008-03-26 Tom Tromey <tromey@redhat.com>
20007
20008 * Makefile.in (build/gensupport.o, build/print-rtl.o,
20009 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
20010 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
20011 build/gencodes.o, build/genconditions.o, build/genconfig.o,
20012 build/genconstants.o, build/genemit.o, build/genextract.o,
20013 build/genflags.o, build/genmddeps.o, build/genopinit.o,
20014 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
20015 options.h.
20016
20017 2008-03-26 Richard Guenther <rguenther@suse.de>
20018
20019 Revert
20020 2008-03-26 Richard Guenther <rguenther@suse.de>
20021
20022 * fold-const.c (target.h): Include.
20023 (fold_comparison): Fold comparison of addresses of two decls
20024 that bind locally. Consolidate address folding code.
20025
20026 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20027
20028 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
20029 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
20030 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
20031 dconstsqrt2, dconstthird, dconste and/or dconst10.
20032 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
20033 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
20034 dconstsqrt2, dconste): Delete.
20035 (init_emit_once): Likewise. Simplify initializing dconstm1.
20036 Constify variable.
20037 * real.c (get_real_const): New.
20038 * real.h (dconst3, dconst10, dconstm2, dconstthird,
20039 dconstsqrt2, dconste): Delete.
20040 (real_value_const, get_real_const): New.
20041
20042 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
20043
20044 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
20045
20046 * config/i386/i386.c (ix86_function_arg_boundary): Check
20047 BIGGEST_ALIGNMENT instead of 128.
20048 (setup_incoming_varargs_64): Likewise.
20049
20050 2008-03-26 Tom Tromey <tromey@redhat.com>
20051
20052 * Makefile.in (DEPFILES): Add missing '/'.
20053
20054 2008-03-26 Richard Guenther <rguenther@suse.de>
20055
20056 * fold-const.c (target.h): Include.
20057 (fold_comparison): Fold comparison of addresses of two decls
20058 that bind locally. Consolidate address folding code.
20059
20060 2008-03-26 Nick Clifton <nickc@redhat.com>
20061
20062 PR target/31232
20063 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
20064 not allow INT+INT as a legitimate addressing mode.
20065
20066 2008-03-26 Richard Guenther <rguenther@suse.de>
20067
20068 * tree-flow.h (widen_bitfield): Remove declaration.
20069 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
20070 (widen_bitfield): Remove function.
20071 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
20072 code.
20073
20074 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
20075
20076 PR target/31558
20077 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
20078 error_mark_node's.
20079
20080 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
20081
20082 PR rtl-optimization/35232
20083 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
20084 (forget_old_reloads_1, forget_marked_reloads): Don't clear
20085 reg_reloaded_call_part_clobbered here.
20086 (reload_regs_reach_end_p): New function.
20087 (reload_reg_rtx_for_input): New variable.
20088 (reload_reg_rtx_for_output): Likewise.
20089 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
20090 when reassigning a pseudo register. Load reloadreg from
20091 reload_reg_rtx_for_input, moving the mode and register
20092 calculation to...
20093 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
20094 instead of the original when deciding whether an input reload
20095 would be a no-op or whether an output reload can be deleted.
20096 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
20097 when setting up new_spill_reg_store. Load it from
20098 reload_reg_rtx_for_output, moving the mode and register
20099 calculation to...
20100 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
20101 instead of the original when deciding whether an output reload
20102 would be a no-op. Do the same when modifying insn notes.
20103 Use rtx_equal_p instead of == to compare the registers.
20104 (inherit_piecemeal_p): Take a mode and two register numbers
20105 as argument.
20106 (emit_reload_insns): Clear new_spill_reg_store for every hard
20107 register in the reload register. Remove spill registers
20108 from reg_reloaded_valid before considering whether to record
20109 inheritance information for them. Use reload_reg_rtx_for_output
20110 instead of reg_rtx when recording output reloads. Use
20111 reload_reg_rtx_for_input instead of reg_rtx when recording
20112 input reloads. Set or clear reg_reloaded_call_part_clobbered
20113 at the same time as setting reg_reloaded_valid.
20114 (delete_output_reload): Add a new_reload_reg parameter and use it
20115 instead of rld[j].reg_rtx.
20116 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
20117 calls accordingly.
20118
20119 2008-03-25 Tom Tromey <tromey@redhat.com>
20120
20121 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
20122 (build/genattr.o): Likewise.
20123 (build/genattrtab.o): Likewise.
20124 (build/gencodes.o): Likewise.
20125 (build/genconfig.o): Likewise.
20126 (build/genconstants.o): Likewise.
20127 (build/genemit.o): Likewise.
20128 (build/genextract.o): Likewise.
20129 (build/genflags.o): Likewise.
20130
20131 2008-03-25 Bob Wilson <bob.wilson@acm.org>
20132
20133 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
20134 instead of size_int for integer types.
20135 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
20136 to match type of MINUS_EXPR.
20137
20138 2008-03-25 Tom Tromey <tromey@redhat.com>
20139
20140 * configure: Rebuilt.
20141 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
20142 Makefile.
20143
20144 2008-03-25 Tom Tromey <tromey@redhat.com>
20145
20146 * config/x-solaris (host-solaris.o): Update.
20147 * config/x-linux (host-linux.o): Update.
20148 * config/x-hpux (host-hpux.o): Update.
20149 * config/x-darwin (host-darwin.o): Update.
20150 * config/v850/t-v850e (v850-c.o): Update.
20151 * config/v850/t-v850 (v850-c.o): Update.
20152 * config/t-vxworks (vxworks.o): Update.
20153 * config/t-sol2 (sol2-c.o, sol2.o): Update.
20154 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
20155 * config/spu/t-spu-elf (spu-c.o): Update.
20156 (spu.o): Remove.
20157 * config/sh/t-symbian (sh-c.o): Update.
20158 (symbian.o): Update.
20159 * config/sh/t-sh (sh-c.o): Update.
20160 * config/score/t-score-elf (score7.o, score3.o): Update.
20161 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
20162 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
20163 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
20164 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
20165 (rs6000.o): Remove.
20166 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
20167 * config/m32c/t-m32c (m32c-pragma.o): Update.
20168 * config/ia64/t-ia64 (ia64-c.o): Update.
20169 * config/i386/x-mingw32 (host-mingw32.o): Update.
20170 * config/i386/x-i386 (driver-i386.o): Update.
20171 * config/i386/x-darwin (host-i386-darwin.o): Update.
20172 * config/i386/x-cygwin (host-cygwin.o): Update.
20173 * config/i386/t-nwld (nwld.o): Update.
20174 * config/i386/t-netware (netware.o): Update.
20175 * config/i386/t-interix (winnt.o): Update.
20176 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
20177 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
20178 msformat-c.o): Update.
20179 * config/bfin/t-bfin-linux (generated_files): Add
20180 linux-sysroot-suffix.h.
20181 * config/arm/t-wince-pe (pe.o): Update.
20182 * config/arm/t-strongarm-pe (pe.o): Update.
20183 * config/arm/t-pe (pe.o): Update.
20184 * config/arm/t-arm (arm-c.o): Update.
20185 * doc/install.texi (Prerequisites): Require make 3.80.
20186 * Makefile.in: Remove .o targets.
20187 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
20188 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
20189 (simple_generated_h, simple_generated_c): Move earlier.
20190 (generated_files): New variable.
20191 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
20192 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
20193 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
20194 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
20195 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
20196 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
20197 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
20198 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
20199 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
20200 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
20201 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
20202 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
20203 (.c.o): Remove.
20204 (COMPILE.base, COMPILE): New variables.
20205 (%.o): New pattern rule.
20206 (ALL_HOST_OBJS): New variable.
20207 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
20208 (dummy-checksum.o, cc1-checksum.o): Remove.
20209 (DRIVER_SHLIB): New variable.
20210 (DRIVER_DEFINES): Use it.
20211 (gencondmd.c): Move out of build/.
20212 (s-conditions): Update.
20213 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
20214 (ALL_BUILD_OBJS): Likewise.
20215 (build/%.o): Use BUILDCOMPILE.
20216 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
20217 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
20218 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
20219 build/gencheck.o, build/gencodes.o, build/genconditions.o,
20220 build/genconfig.o, build/genconstants.o, build/genemit.o,
20221 build/genextract.o, build/genflags.o, build/genmddeps.o,
20222 build/genopinit.o, build/genoutput.o, build/genpeep.o,
20223 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
20224 build/gen-protos.o, build/scan.o, build/fix-header.o,
20225 build/scan-decls.o): Simplify.
20226 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
20227 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
20228 prefix.o, toplev.o): Reduce to variable setting.
20229 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
20230 ($(out_object_file), gcc-options.o): New targets.
20231 ($(ALL_HOST_OBJS)): New target. Include dependency files.
20232 * configure: Rebuilt.
20233 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
20234 * doc/sourcebuild.texi (Front End Directory): Document new variable.
20235
20236 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
20237
20238 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
20239 complain when we hit an error, return ERROR_MARK_NODE.
20240
20241 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
20242
20243 * config/sh/constraints.md (Pso, Psz): New constraints.
20244 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
20245 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
20246
20247 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
20248
20249 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
20250 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
20251
20252 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
20253
20254 * config/sh/sh.md (prefetch): Add condition for SH2A target.
20255 (prefetch_sh2a): New.
20256
20257 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
20258 Naveen.H.S <naveen.hs@kpitcummins.com>
20259
20260 * config/sh/constraints.md (I28): New constraint.
20261 * config/sh/sh.c (broken_move): Add support for movi20s.
20262 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
20263
20264 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
20265 Jayant Sonar <Jayant.sonar@kpitcummins.com>
20266 Naveen.H.S <naveen.hs@kpitcummins.com>
20267
20268 * config/sh/sh.c (SH_ATTRIBUTES): Define.
20269 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
20270 (print_operand): Handle resbank in %@ operand code.
20271 (sh_encode_section_info): New.
20272 (push_regs): Add conditions for resbank.
20273 (sh_expand_epilogue): Likewise.
20274 (sh_insert_attributes): Likewise.
20275 (sh_attribute_table): Likewise.
20276 (sh_handle_resbank_handler_attribute): New.
20277 (sh2a_handle_function_vector_handler_attribute): New.
20278 (sh2a_is_function_vector_call): New.
20279 (sh2a_get_function_vector_number): New.
20280 (sh2a_function_vector_p): New.
20281 (sh_cfun_resbank_handler_p): New.
20282 * config/sh/sh.md (calli): Emit jsr/n if possible.
20283 (calli_tbr_rel): New.
20284 (calli_pcrel): Emit jsr/n if possible.
20285 (return_i): Emit rts/n if possible.
20286 (call_valuei_tbr_rel): New.
20287 (call_valuei_pcrel): Add condition for SH2A target.
20288 (call_value): Likewise.
20289 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
20290 (sh2a_get_function_vector_number): Likewise.
20291 (sh2a_is_function_vector_call): Likewise.
20292 * doc/extend.texi: Document TBR relative addressing of SH2A.
20293 (resbank): Add description for SH2A.
20294
20295 2008-03-24 Richard Guenther <rguenther@suse.de>
20296
20297 PR c/22371
20298 * gimplify.c (gimplify_modify_expr): For frontend type-correct
20299 pointer assignments change conversions according to middle-end rules.
20300 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
20301 * configure.ac: Include type checking in yes.
20302 * configure: Regenerate.
20303
20304 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20305
20306 * diagnostic.c (diagnostic_count_diagnostic): Delete.
20307 (diagnostic_report_diagnostic): Update. Handle ICEs here.
20308
20309 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
20310
20311 * gthr-vxworks.h (UNUSED): Define.
20312
20313 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
20314
20315 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
20316
20317 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
20318
20319 * doc/extend.texi (Function Attributes): Add missing comma in the
20320 example of the "alloc_size" attribute.
20321
20322 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
20323
20324 Revert:
20325 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
20326
20327 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
20328 32bit host.
20329
20330 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
20331
20332 PR target/35496
20333 * stor-layout.c (update_alignment_for_field): Set minimum alignment
20334 of the underlying type of a MS bitfield layout to the natural
20335 alignment of the type.
20336
20337 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
20338
20339 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
20340 to their natural alignment to avoid store forwarding stalls.
20341
20342 2008-03-22 Richard Guenther <rguenther@suse.de>
20343
20344 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
20345 For PHI nodes verify the address is invariant.
20346 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
20347 (get_symbol_constant_value): Use is_gimple_min_invariant.
20348 (maybe_fold_stmt_indirect): Likewise.
20349
20350 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
20351
20352 PR rtl-optimization/33927
20353 * Makefile.in (dse.o): Depend on $(TM_P_H).
20354 * expr.h (extract_low_bits): Declare.
20355 * expmed.c (extract_low_bits): New function.
20356 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
20357 * dse.c: Include tm_p.h.
20358 (find_shift_sequence): Remove the read_reg argument and return the
20359 read value. Emit the instructions instead of returning them.
20360 Iterate on new_mode rather than calculating it each time.
20361 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
20362 source to NEW_MODE and extract_low_bits to convert the shifted
20363 value to READ_MODE.
20364 (replace_read): Allow the load and store to have different mode
20365 classes. Use extract_low_bits when SHIFT == 0. Create the shift
20366 or extraction instructions before trying the replacement. Update
20367 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
20368
20369 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
20370
20371 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
20372 to their natural alignment to avoid store forwarding stalls.
20373
20374 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
20375
20376 PR target/27946
20377 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
20378 encouraging but not allowing gprs for input;
20379 change the input constraint to !f#r.
20380 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
20381 gprs for output;
20382 change the output constraint to !f#r.
20383
20384 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
20385
20386 PR target/13958
20387 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
20388 corresponding post-reload splitters.
20389 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
20390 when x87 FP math is selected.
20391 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
20392 New function prototype.
20393 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
20394 unreachable function to ease macroization of insn patterns.
20395
20396 2008-03-21 Martin Jambor <mjambor@suse.cz>
20397
20398 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
20399 reference dumps if ddr is NULL or dependence is unknown.
20400
20401 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
20402
20403 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
20404 unsigned extension into account.
20405 (ATOMIC_COMPARE_AND_SWAP): Likewise.
20406 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
20407 Do computations on a scratch register.
20408
20409 2008-03-21 Richard Guenther <rguenther@suse.de>
20410
20411 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
20412 Use is_gimple_min_invariant instead of TREE_INVARIANT.
20413 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
20414 * tree-ssa-dom.c (record_equality): Likewise.
20415 * tree-inline.c (copy_body_r): Likewise.
20416 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
20417 TREE_INVARIANT.
20418
20419 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
20420
20421 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
20422 as 'delete_unused' argument.
20423
20424 2008-03-20 Richard Guenther <rguenther@suse.de>
20425
20426 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
20427 special casing of constant qualifiers.
20428 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
20429 care about them in general.
20430 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
20431 regardless of their type.
20432 (fold_stmt_r): Forcefully fold *& if we end up with that.
20433
20434 2008-03-20 Paul Brook <paul@codesourcery.com>
20435
20436 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
20437 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
20438 linker flags.
20439 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
20440 definition.
20441 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
20442 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
20443
20444 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
20445
20446 * common.opt (Wmudflap): New option.
20447 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
20448 (mx_register_decls): Likewise.
20449 (mudflap_finish_file): Likewise.
20450 * doc/invoke.texi: Document -Wno-mudflap.
20451
20452 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
20453
20454 * c-format.c (replace_format_name_to_system_name): New.
20455 (cmp_attribs): New.
20456 (convert_format_name_to_system_name): New.
20457 (decode_format_attr): Add use of convert_format_name_to_system_name.
20458 (format_types_orig): Add gnu_ prefix to names.
20459 (check_format_info_main): Special treating of \0 escaped names for
20460 supporting multi-character format specifiers as I32, I64.
20461 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
20462 (gnu_target_overrides_format_attributes): New.
20463 * c-format.h: Add structure target_ovr_attr to hold
20464 system specific formatter names.
20465 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
20466 msformat-c.o file to c_target_objs and cxx_target_objs.
20467 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
20468 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
20469 (TARGET_N_FORMAT_TYPES): New.
20470 * config/i386/msformat-c.c: New.
20471 * config/i386/t-cygming: Add build rule for msformat-c.o.
20472 * doc/extend.texi: Add new format names gnu_* and ms_* and
20473 further details.
20474 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
20475
20476 2008-03-20 Ira Rosen <irar@il.ibm.com>
20477
20478 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
20479 optimizations turned on under -O3.
20480 (ftree-vectorize): Add that the flag is turned on with -O3.
20481
20482 2008-03-20 Ben Elliston <bje@au.ibm.com>
20483
20484 * regmove.c (try_auto_increment): Fix spelling error in comment.
20485 * final.c (final_scan_insn): Likewise.
20486
20487 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
20488
20489 PR target/14552
20490 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
20491 allocator preferences for "y" and "r" class registers.
20492 ("*mov<mode>_internal"): Ditto.
20493 ("*movv2sf_internal_rex64"): Ditto.
20494 ("*movv2sf_internal"): Ditto.
20495
20496 2008-03-19 Michael Matz <matz@suse.de>
20497
20498 PR middle-end/35616
20499 * calls.c (expand_call): Check overlap of arguments with call
20500 address for sibcalls.
20501
20502 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
20503
20504 PR target/35496
20505 * stor-layout.c (update_alignment_for_field): Set minimum alignment
20506 of the underlying type of a MS bitfield layout to the natural
20507 alignment of the type.
20508
20509 2008-03-19 Jan Hubicka <jh@suse.cz>
20510
20511 PR other/35094
20512 * toplev.c (decode_d_option): Handle all CPP flags.
20513 * tree-vrp.c: Update tree_pass descriptors.
20514 * regrename.c: Update tree_pass descriptors.
20515 * fwprop.c: Update tree_pass descriptors.
20516 * doc/invoke.texi: Remove documentation of dropped -d? flags.
20517 * tree-into-ssa.c: Update tree_pass descriptors.
20518 * tree-dump.c: Update tree_pass descriptors.
20519 * tree-complex.c: Update tree_pass descriptors.
20520 * tree-dump.h: Update tree_pass descriptors.
20521 * see.c: Update tree_pass descriptors.
20522 * cgraphbuild.c: Update tree_pass descriptors.
20523 * tracer.c: Update tree_pass descriptors.
20524 * tree-loop-distribution.c: Update tree_pass descriptors.
20525 * cgraph.c: Update tree_pass descriptors.
20526 * postreload-gcse.c: Update tree_pass descriptors.
20527 * postreload.c: Update tree_pass descriptors.
20528 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
20529 * tree-tailcall.c: Update tree_pass descriptors.
20530 * tree-pass.h (tree_opt_pass): Rename to ...
20531 (opt_pass) ... this one; add "type" field and remove letter field.
20532 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
20533 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
20534 all_lowering_passes): Update declaration.
20535 * ipa-cp.c: Update tree_pass descriptors.
20536 * final.c: Update tree_pass descriptors.
20537 * omp-low.c: Update tree_pass descriptors.
20538 * tree-ssa-dse.c: Update tree_pass descriptors.
20539 * ipa-reference.c: Update tree_pass descriptors.
20540 * tree-ssa-uncprop.c: Update tree_pass descriptors.
20541 * auto-inc-dec.c: Update tree_pass descriptors.
20542 * reorg.c: Update tree_pass descriptors.
20543 * cgraphunit.c: Update tree_pass descriptors.
20544 * tree-ssa-copyrename.c: Update tree_pass descriptors.
20545 * tree-ssa-ccp.c: Update tree_pass descriptors.
20546 * df-core.c: Update tree_pass descriptors.
20547 * mode-switching.c: Update tree_pass descriptors.
20548 * tree-nomudflap.c: Update tree_pass descriptors.
20549 * modulo-sched.c: Update tree_pass descriptors.
20550 * ipa-pure-const.c: Update tree_pass descriptors.
20551 * cse.c: Update tree_pass descriptors.
20552 * web.c: Update tree_pass descriptors.
20553 * tree-stdarg.c: Update tree_pass descriptors.
20554 * tree-ssa-math-opts.c: Update tree_pass descriptors.
20555 * tree-ssa-dom.c: Update tree_pass descriptors.
20556 * tree-nrv.c: Update tree_pass descriptors.
20557 * tree-ssa-alias.c: Update tree_pass descriptors.
20558 * loop-init.c: Update tree_pass descriptors.
20559 * gimple-low.c: Update tree_pass descriptors.
20560 * ipa-inline.c: Update tree_pass descriptors.
20561 * tree-ssa-sink.c: Update tree_pass descriptors.
20562 * global.c: Update tree_pass descriptors.
20563 * ifcvt.c: Update tree_pass descriptors.
20564 * jump.c: Update tree_pass descriptors.
20565 * predict.c: Update tree_pass descriptors.
20566 * tree-ssa-loop.c: Update tree_pass descriptors.
20567 * recog.c: Update tree_pass descriptors.
20568 * dse.c: Update tree_pass descriptors.
20569 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
20570 * tree-eh.c: Update tree_pass descriptors.
20571 * regmove.c: Update tree_pass descriptors.
20572 * local-alloc.c
20573 * function.c: Update tree_pass descriptors.
20574 * tree-vectorizer.c: Update tree_pass descriptors.
20575 * gcse.c: Update tree_pass descriptors.
20576 * ipa-type-escape.c: Update tree_pass descriptors.
20577 * tree-if-conv.c: Update tree_pass descriptors.
20578 * init-regs.c: Update tree_pass descriptors.
20579 * ipa.c: Update tree_pass descriptors.
20580 * tree-ssa-phiopt.c: Update tree_pass descriptors.
20581 * rtl-factoring.c: Update tree_pass descriptors.
20582 * lower-subreg.c: Update tree_pass descriptors.
20583 * bt-load.c: Update tree_pass descriptors.
20584 * tree-dfa.c: Update tree_pass descriptors.
20585 * except.c: Update tree_pass descriptors.
20586 * emit-rtl.c: Update tree_pass descriptors.
20587 * cfgexpand.c: Update tree_pass descriptors.
20588 * tree-cfgcleanup.c: Update tree_pass descriptors.
20589 * cfgcleanup.c: Update tree_pass descriptors.
20590 * tree-ssa-pre.c: Update tree_pass descriptors.
20591 * tree-sra.c: Update tree_pass descriptors.
20592 * tree-mudflap.c: Update tree_pass descriptors.
20593 * tree-ssa-copy.c: Update tree_pass descriptors.
20594 * cfglayout.c: Update tree_pass descriptors.
20595 * tree-ssa-forwprop.c: Update tree_pass descriptors.
20596 * tree-ssa-dce.c: Update tree_pass descriptors.
20597 * tree-ssa.c: Update tree_pass descriptors.
20598 * regclass.c: Update tree_pass descriptors.
20599 * integrate.c: Update tree_pass descriptors.
20600 * tree-optimize.c: Update tree_pass descriptors.
20601 * tree-ssa-phiprop.c: Update tree_pass descriptors.
20602 * tree-object-size.c: Update tree_pass descriptors.
20603 * combine.c: Update tree_pass descriptors.
20604 * tree-outof-ssa.c: Update tree_pass descriptors.
20605 * bb-reorder.c: Update tree_pass descriptors.
20606 * stack-ptr-mod.c: Update tree_pass descriptors.
20607 * var-tracking.c: Update tree_pass descriptors.
20608 * tree-profile.c: Update tree_pass descriptors.
20609 * tree-vect-generic.c: Update tree_pass descriptors.
20610 * reg-stack.c: Update tree_pass descriptors.
20611 * sched-rgn.c: Update tree_pass descriptors.
20612 * tree-ssa-structalias.c: Update tree_pass descriptors.
20613 * tree-cfg.c: Update tree_pass descriptors.
20614 * passes.c (current_pass): Update declaration.
20615 (finish_optimization_passes): Update.
20616 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
20617 (register_one_dump_file, register_dump_files_1, next_pass_1):
20618 Update arguments.
20619 (init_optimization_passes): Update handling of new types.
20620 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
20621 * ipa-struct-reorg.c: Update tree_pass descriptors.
20622 * tree-ssa-reassoc.c: Update tree_pass descriptors.
20623 * combine-stack-adj.c: Update tree_pass descriptors.
20624 * cfgrtl.c: Update tree_pass descriptors.
20625 * dce.c: Update tree_pass descriptors.
20626 * tree-ssanames.c: Update tree_pass descriptors.
20627
20628 2008-03-19 Richard Guenther <rguenther@suse.de>
20629
20630 PR middle-end/35609
20631 * tree-ssa.c (walk_data): New structure.
20632 (warn_uninitialized_var): If not always_executed warn with "maybe"
20633 instead of "is".
20634 (execute_early_warn_uninitialized): Compute post-dominators.
20635 Initialize always_executed before processing each basic block.
20636
20637 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
20638
20639 PR target/35504
20640 * config/i386/i386.c (x86_this_parameter): Calculate correct location
20641 of "this" pointer when "regparm = N" or "fastcall" is in effect.
20642
20643 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20644
20645 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
20646
20647 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
20648
20649 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
20650 is true.
20651 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
20652 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
20653 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
20654 target after ignore has been set, and move there also the commputation
20655 of subtarget and original_target.
20656 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
20657 (LANG_HOOKS_INITIALIZER): Remove it.
20658 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
20659
20660 2008-03-18 Richard Guenther <rguenther@suse.de>
20661
20662 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
20663 found an expression with constants, note that in the VN for the lhs.
20664 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
20665 fold them to constants if possible. Run cleanup_cfg if done so.
20666 (execute_pre): Return todo.
20667 (do_pre): Likewise.
20668 (execute_fre): Likewise.
20669 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
20670 of constants.
20671 (get_prop_source_stmt): Look through pointer conversions.
20672
20673 2008-03-18 Jan Hubicka <jh@suse.cz>
20674
20675 * tree-pretty-print.c: Include predict.h.
20676 (dump_generic_node): Dump predictor.
20677 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
20678 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
20679 * gimple-low.c (lower_stmt): Likewise.
20680 * expr.c (expand_expr_real): Likewise.
20681 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
20682 them.
20683 (build_predict_expr, build_predict_expr): New.
20684 * predict.h (predictor_name, build_predict_expr): Update.
20685 * c-typeck.c (c_finish_bc_stmt): Add prediction.
20686 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
20687 * predict.def (PRED_CONTINUE): Update hitrate.
20688 * tree.def (PREDICT_EXPR): Define.
20689 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
20690 do not handle BIND_EXPR.
20691 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
20692 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
20693 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
20694 operands.
20695
20696 2008-03-18 Michael Matz <matz@suse.de>
20697
20698 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
20699
20700 2008-03-18 Richard Guenther <rguenther@suse.de>
20701
20702 * tree-gimple.h (is_gimple_invariant_address): Declare.
20703 (is_gimple_constant): Likewise.
20704 * tree-gimple.c (is_gimple_constant): New function.
20705 (is_gimple_invariant_address): Likewise.
20706 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
20707 and is_gimple_invariant_address.
20708 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
20709 previous change.
20710 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
20711 an addressable base.
20712
20713 2008-03-18 Jakub Jelinek <jakub@redhat.com>
20714
20715 PR middle-end/35611
20716 * gimplify.c (gimplify_expr): Gimplify second operand of
20717 OMP_ATOMIC_LOAD.
20718
20719 2008-03-17 Richard Guenther <rguenther@suse.de>
20720
20721 PR tree-optimization/19637
20722 * fold-const.c (fold_unary): Remove restrictions of removing
20723 intermediate pointer-conversions (P2)(P1)P0.
20724 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
20725 conversion to void pointer.
20726 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
20727
20728 2008-03-16 James E. Wilson <wilson@tuliptree.org>
20729
20730 PR debug/31510
20731 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
20732 emulated thread local variables.
20733
20734 2008-03-16 Richard Guenther <rguenther@suse.de>
20735
20736 PR middle-end/35607
20737 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
20738 expand TREE_INVARIANT operations that are not gimple invariant.
20739
20740 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
20741
20742 * doc/extend.texi (Alignment): Say that the ABI controls
20743 the __alignof__ for non-strict-alignment targets rather
20744 than being a recommendation.
20745
20746 2008-03-15 Paul Brook <paul@codesourcery.com>
20747
20748 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
20749 annotations.
20750 (arm_output_fn_unwind): Mark functions that can not be unwound.
20751
20752 2008-03-15 Paul Brook <paul@codesourcery.com>
20753
20754 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
20755 extension instructions.
20756
20757 2008-03-15 Richard Guenther <rguenther@suse.de>
20758
20759 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
20760 and fold constant aggregate refs.
20761 (fold_const_aggregate_ref): Handle string constants
20762 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
20763 (evaluate_stmt): Simplify now that ccp_fold folds constant
20764 aggregate refs.
20765
20766 2008-03-15 Paul Brook <paul@codesourcery.com>
20767
20768 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
20769 (extzv): Use gen_extzv_t2.
20770 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
20771
20772 2008-03-15 Richard Guenther <rguenther@suse.de>
20773
20774 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
20775 (fold_const_aggregate_ref): Likewise.
20776 (get_value): Return NULL if we don't have any values.
20777 (ccp_finalize): Set const_val to NULL after freeing it.
20778 * tree-flow.h (get_symbol_constant_value): Declare.
20779 (fold_const_aggregate_ref): Likewise.
20780 * tree-ssa-sccvn.c (try_to_simplify): Use them.
20781
20782 2008-03-15 Richard Guenther <rguenther@suse.de>
20783
20784 PR middle-end/35593
20785 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
20786 to not produce negative array indices if not allowed. Add
20787 parameter to indicate that.
20788 (maybe_fold_offset_to_component_ref): Allow negative array
20789 indices only for the first member of a structure.
20790 (maybe_fold_offset_to_reference): Allow negative array indices.
20791 (maybe_fold_stmt_addition): Likewise.
20792
20793 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
20794 Anatoly Sokolov <aesok@post.ru>
20795
20796 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
20797 (avr_arch): Add ARCH_AVR6.
20798 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
20799 (initial_elimination_offset): Initialize and use 'avr_pc_size'
20800 instead of fixed value 2.
20801 (print_operand_address): Use gs() asm specifier instead of pm().
20802 (avr_assemble_integer): (Ditto.).
20803 (avr_output_addr_vec_elt): (Ditto.).
20804 (print_operand): Handle "!" code.
20805 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
20806 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
20807 (AVR_HAVE_EIJMP_EICALL): Define.
20808 (AVR_3_BYTE_PC): Redefine.
20809 (AVR_2_BYTE_PC): (Ditto.).
20810 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
20811 (LINK_SPEC): Add atmega2560 and atmega2561.
20812 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
20813 (crtm2561.o).
20814 * config/avr/avr.md (call_insn): Use eicall instead of icall
20815 for 3 byte PC devices.
20816 (call_value_insn): (Ditto.).
20817 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
20818 (indirect_jump): Use only for for 2 byte PC devices.
20819 (*tablejump): (Ditto.).
20820 (*indirect_jump_avr6): Add insn.
20821 (*tablejump_rjmp): Don't use for 3 byte PC devices.
20822 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
20823 instead of ijmp for 3 byte PC devices.
20824 (__tablejump2__): (Ditto.).
20825 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
20826 (MULITLIB_DIRNAMES): (Ditto.).
20827 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
20828
20829 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
20830
20831 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
20832 "sse2_umulsidi3". Use V1DI mode for operand 0.
20833 ("mmx_psadbw"): Use V1DI mode for operand 0.
20834 * config/i386/i386-modes.def (V1SI): New vector mode.
20835 * config/i386/i386.c (struct builtin_description)
20836 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
20837 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
20838 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
20839 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
20840 v1di_ftype_v8qi_v8qi type.
20841 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
20842
20843 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
20844 __builtin_ia32_pmuludq]: Fix the mode of return value.
20845
20846 2008-03-15 Richard Guenther <rguenther@suse.de>
20847
20848 PR middle-end/35595
20849 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
20850 being a PHI_NODE.
20851
20852 2008-03-14 Bob Wilson <bob.wilson@acm.org>
20853
20854 * doc/invoke.texi (Option Summary, Xtensa Options): Document
20855 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
20856 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
20857 unless TARGET_SERIALIZE_VOLATILE is enabled.
20858 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
20859 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
20860 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
20861
20862 2008-03-14 Richard Guenther <rguenther@suse.de>
20863
20864 PR tree-optimization/34172
20865 * tree-flow.h (refs_may_alias_p): Declare.
20866 (get_single_def_stmt): Likewise.
20867 (get_single_def_stmt_from_phi): Likewise.
20868 (get_single_def_stmt_with_phi): Likewise.
20869 * tree-dfa.c (refs_may_alias_p): New function.
20870 (get_single_def_stmt): Likewise.
20871 (get_single_def_stmt_from_phi): Likewise.
20872 (get_single_def_stmt_with_phi): Likewise.
20873 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
20874 (vn_reference_lookup_1): New helper function.
20875 (vn_reference_lookup): Walk the virtual use-def chain to
20876 continue searching for a match if the def does not alias the
20877 reference we are looking for.
20878
20879 2008-03-14 David Edelsohn <edelsohn@gnu.org>
20880
20881 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
20882 archive and Perzl. Update The Written Word listing.
20883
20884 2008-03-14 Richard Guenther <rguenther@suse.de>
20885
20886 PR tree-optimization/34043
20887 PR tree-optimization/33989
20888 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
20889 when doing FRE.
20890 (bitmap_find_leader): Use extra argument to verify dominance
20891 relationship inside a basic-block.
20892 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
20893 (find_leader_in_sets): Adjust.
20894 (create_component_ref_by_pieces): Take extra argument for
20895 dominance check, handle lookup failures.
20896 (find_or_generate_expression): Likewise.
20897 (create_expression_by_pieces): Likewise.
20898 (insert_into_preds_of_block): Adjust.
20899 (create_value_expr_from): If asked for, verify all operands
20900 are in the blocks AVAIL_OUT set.
20901 (make_values_for_stmt): Check for SSA_NAMEs that are life
20902 over an abnormal edge.
20903 (compute_avail): Remove such check.
20904 (do_SCCVN_insertion): New function.
20905 (eliminate): If we do not find a leader suitable for replacement
20906 insert a replacement expression from SCCVN if available.
20907 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
20908 (struct vn_ssa_aux): Add needs_insertion flag.
20909 * tree-ssa-sccvn.c (may_insert): New global flag.
20910 (copy_reference_ops_from_ref): Value-number union member access
20911 based on its size, not type and member if insertion is allowed.
20912 (visit_reference_op_load): For a weak match from union type
20913 punning lookup a view-converted value and insert a SSA_NAME
20914 for that value if that is not found.
20915 (visit_use): Make dumps shorter. Do not disallow value numbering
20916 SSA_NAMEs that are life over an abnormal edge to constants.
20917 (free_scc_vn): Release inserted SSA_NAMEs.
20918 (run_scc_vn): New flag to specify whether insertion is allowed.
20919 Process SSA_NAMEs in forward order.
20920 * tree-ssa-loop-im.c (for_each_index): Handle invariant
20921 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
20922 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
20923 pointer type to/from integral types that do not change the
20924 precision to regular conversions.
20925
20926 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
20927
20928 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
20929 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
20930 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
20931 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
20932 input arguments and the mode of return value. Built-in functions
20933 that operate on whole 64-bit MMX register now use V1DI mode.
20934
20935 2008-03-13 Alon Dayan <alond@il.ibm.com>
20936 Olga Golovanevsky <olga@il.ibm.com>
20937
20938 PR tree-optimization/35041
20939 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
20940 to locate the right position in a statement.
20941
20942 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
20943
20944 PR target/34000
20945 PR target/35553
20946 * config/i386/xmmintrin.h: Change all static inline functions to
20947 extern inline and add __gnu_inline__ attribute.
20948 * config/i386/bmintrin.h: Ditto.
20949 * config/i386/smmintrin.h: Ditto.
20950 * config/i386/tmmintrin.h: Ditto.
20951 * config/i386/mmintrin-common.h: Ditto.
20952 * config/i386/ammintrin.h: Ditto.
20953 * config/i386/emmintrin.h: Ditto.
20954 * config/i386/pmmintrin.h: Ditto.
20955 * config/i386/mmintrin.h: Ditto.
20956 * config/i386/mm3dnow.h: Ditto.
20957
20958 2008-03-13 Jakub Jelinek <jakub@redhat.com>
20959
20960 PR middle-end/35185
20961 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
20962 (lower_omp_2): New function.
20963 (lower_omp_1, lower_omp): Rewritten.
20964
20965 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
20966
20967 PR 35054
20968 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
20969 with the phrase "Microsoft Windows compilers".
20970 (Push/Pop Macro Pragmas): New subsection. Document
20971 #pragma push_macro and pragma pop_macro.
20972
20973 2008-03-12 Paul Brook <paul@codesourcery.com>
20974
20975 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
20976
20977 2008-03-12 Paul Brook <paul@codesourcery.com>
20978
20979 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
20980 (thumb2_alusi3_short): Exclude PLUS and MINUS.
20981 (thumb2_addsi_shortim): Rename ...
20982 (thumb2_addsi_short): ... to this. Allow register operands.
20983 (thumb2_subsi_short): New pattern.
20984 (thumb2_one_cmplsi2_short,
20985 thumb2_negsi2_short): New patterns and peepholes.
20986
20987 2008-03-12 Paul Brook <paul@codesourcery.com>
20988
20989 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
20990
20991 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
20992
20993 * config/i386/i386.md (int_cond): New code iterator.
20994 (fp_cond): Ditto.
20995 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
20996 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
20997 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
20998 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
20999 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
21000 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
21001 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
21002 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
21003
21004 2008-03-12 Paul Brook <paul@codesourcery.com>
21005
21006 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
21007 instead of {arm,thumb}_compute_save_reg_mask.
21008 (output_return_instruction): Ditto.
21009 (thumb_unexpanded_epilogue): Ditto.
21010 (thumb1_expand_prologue): Ditto.
21011 (thumb1_output_function_prologue): Ditto.
21012 (arm_set_return_address): Ditto.
21013 (thumb_set_return_address): Ditto.
21014 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
21015 regs to achieve stack alignment.
21016 (thumb1_compute_save_reg_mask): Fix compiler warning.
21017 (arm_output_epilogue): Use offsets->saved_regs_mask.
21018 Adjust stack pointer by poping call clobered registers.
21019 (arm_expand_prologue): Use offsets->saved_regs_mask.
21020 Adjust stack pointer by pushing extra registers.
21021 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
21022
21023 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
21024
21025 PR tree-opt/35422
21026 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
21027 conversion to the operands of a multiplication.
21028
21029 2008-03-12 Richard Guenther <rguenther@suse.de>
21030
21031 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
21032 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
21033 * timevar.def (TV_TREE_PHIPROP): Add.
21034 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
21035 pass description. Use TV_TREE_PHIPROP.
21036 * tree-ssa-forwprop.c: Remove phiprop code.
21037
21038 2008-03-12 Jakub Jelinek <jakub@redhat.com>
21039
21040 PR middle-end/35549
21041 * omp-low.c (maybe_lookup_decl): Constify first argument.
21042 (use_pointer_for_field): Change last argument from bool to
21043 omp_context *. Disallow shared copy-in/out in nested
21044 parallel if decl is shared in outer parallel too.
21045 (build_outer_var_ref, scan_sharing_clauses,
21046 lower_rec_input_clauses, lower_copyprivate_clauses,
21047 lower_send_clauses, lower_send_shared_vars): Adjust callers.
21048
21049 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
21050 Ira Rosen <irar@il.ibm.com>
21051
21052 * tree-vectorizer.c (free_stmt_vec_info): New function.
21053 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
21054 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
21055 * tree-vectorizer.h (free_stmt_vec_info): Declare.
21056 * tree-vect-transform.c (vectorizable_conversion): Free
21057 vec_oprnds0 if it was allocated.
21058 (vect_permute_store_chain): Remove unused VECs.
21059 (vectorizable_store): Free VECs that are allocated in the..
21060 function.
21061 (vect_transform_strided_load, vectorizable_load): Likewise.
21062 (vect_remove_stores): Simplify the code.
21063 (vect_transform_loop): Move code to vect_remove_stores().
21064 Call vect_remove_stores() and free_stmt_vec_info().
21065
21066 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21067
21068 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
21069 TARGET_HPUX. Revise comment.
21070 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
21071 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
21072 Use sr4 variant of `be' instruction when not generating PIC code.
21073 (attr_length_call): Adjust for above change.
21074
21075 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
21076
21077 * ipa-reference.c (static_execute): Remove module_statics_const and
21078 associated setting code.
21079
21080 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
21081
21082 PR target/35540
21083 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
21084 predicate for operand 1.
21085 (paritysi2_cmp): Use register_operand predicate for operand 2.
21086 Use earlyclobber modifier for operand 1. Remove support for
21087 memory operands.
21088 (paritydi2_cmp): Use register_operand predicate for operand 3.
21089 Use earlyclobber modifier for operand 1. Remove support for
21090 memory operands.
21091
21092 2008-03-11 Paul Brook <paul@codesourcery.com>
21093 Vladimir Prus <vladimir@codesourcery.com>
21094
21095 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
21096 (arm_compute_save_reg0_reg12_mask): Always
21097 check if register 11 must be saved. Always safe hard frame pointer
21098 when frame_pointer_needeed.
21099 (arm_compute_save_reg_mask): Save IP and PC
21100 only with apcs frames.
21101 (arm_output_epilogue): Adjust Thumb2 codepath to
21102 be also invoked and work for ARM non-apcs frames.
21103 (arm_expand_prologue): Don't bother saving IP
21104 for non-apcs frame, since it's not clobbered by
21105 prologue code. Implement non-apcs frame
21106 layout.
21107
21108 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
21109
21110 PR rtl-optimization/35281
21111 * expr.c (convert_move): Use a new pseudo for the intermediate
21112 from_mode->word_mode result.
21113
21114 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
21115
21116 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
21117 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
21118 * toplev.c (compile_file): Don't call it.
21119
21120 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
21121
21122 PR middle-end/35526
21123 * expr.c (store_expr): Call emit_block_move if the mode
21124 of "temp" RTX is BLKmode.
21125
21126 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
21127 Richard Guenther <rguenther@suse.de>
21128
21129 PR tree-optimization/31358
21130 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
21131 the step with a NULL_TREE.
21132 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
21133 to sizetype if type is a pointer type.
21134 (add_candidate_1): Don't convert the base and step to
21135 the generic type if the orginal type is a pointer type.
21136 (add_iv_value_candidates): Use sizetype for the step
21137 if type is a pointer type.
21138 (cand_value_at): Likewise.
21139 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
21140 for pointer types.
21141 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
21142 Don't convert the tem affine to the type.
21143 (add_elt_to_tree): Use sizetype for the step if a pointer.
21144 Use POINTER_PLUS_EXPR for pointers.
21145 (aff_combination_to_tree): Use sizetype for the step if a
21146 pointer.
21147
21148 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
21149
21150 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
21151 Remove commutativity hint.
21152
21153 2008-03-10 Jakub Jelinek <jakub@redhat.com>
21154
21155 PR c/35438
21156 PR c/35439
21157 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
21158 errorneous type. Check that v is a VAR_DECL.
21159
21160 PR middle-end/35099
21161 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
21162
21163 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
21164
21165 PR tree-optimization/35494
21166 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
21167 may be overriden at link and run time.
21168
21169 2008-03-10 Richard Guenther <rguenther@suse.de>
21170
21171 PR tree-optimization/34677
21172 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
21173 (poolify_tree): Likewise.
21174 (modify_expr_template): Likewise.
21175 (poolify_modify_stmt): Likewise.
21176 (insert_fake_stores): Handle all component-ref style stores
21177 in addition to INDIRECT_REF. Also handle complex types.
21178 Do not poolify the inserted load.
21179 (realify_fake_stores): Do not rebuild the tree but only
21180 make it a SSA_NAME copy.
21181 (init_pre): Remove initialzation of modify_expr_template.
21182 Do not allocate modify_expr_node_pool.
21183 (fini_pre): Do not free modify_expr_node_pool.
21184
21185 2008-03-10 Paul Brook <paul@codesourcery.com>
21186
21187 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
21188 to avoid conflicts.
21189
21190 2008-03-10 Paul Brook <paul@codesourcery.com>
21191 Mark Shinwell <shinwell@codesourcery.com>
21192
21193 * config/arm/cortex-r4.md: New.
21194 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
21195 insn attributes.
21196 * config/arm/arm.md: Include cortex-r4.md.
21197 (insn): Add smmls, sdiv and udiv values.
21198 (generic_sched): Don't use generic scheduling for Cortex-R4.
21199 (arm_issue_rate): New function.
21200 (TARGET_SCHED_ISSUE_RATE): Define.
21201
21202 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
21203
21204 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
21205
21206 2008-03-10 Richard Guenther <rguenther@suse.de>
21207
21208 * tree-ssa-pre.c (get_sccvn_value): Simplify.
21209 (compute_avail): Do not add stmt uses to AVAIL_OUT.
21210
21211 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
21212
21213 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
21214 Set default to true.
21215
21216 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21217
21218 * c.opt (Wsynth): Deprecate.
21219 * doc/invoke.texi (Option Summary, Warning Options): Document
21220 -Wno-format-contains-nul.
21221
21222 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
21223
21224 PR target/35496
21225 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
21226 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
21227
21228 2008-03-09 Ira Rosen <irar@il.ibm.com>
21229
21230 * config/rs6000/rs6000.c (builtin_description): Rename vector
21231 left shift operations.
21232 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
21233 (altivec_vsl<VI_char>): Rename to ...
21234 (ashl<mode>3): ... new name.
21235 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
21236 gen_ashlv4si3.
21237 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
21238
21239 2008-03-08 Richard Guenther <rguenther@suse.de>
21240
21241 * coverage.h (tree_coverage_counter_addr): Declare.
21242 * coverage.c (tree_coverage_counter_addr): New function.
21243 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
21244 before using again.
21245 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
21246 (tree_gen_one_value_profiler): Likewise.
21247 (tree_gen_ic_profiler): Likewise.
21248 (tree_gen_average_profiler): Likewise.
21249 (tree_gen_ior_profiler): Likewise.
21250
21251 2008-03-08 Richard Guenther <rguenther@suse.de>
21252
21253 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
21254 (vn_binary_op_insert): Likewise.
21255 (vn_unary_op_lookup): Likewise.
21256 (vn_unary_op_insert): Likewise.
21257 (vn_nary_op_lookup): Declare.
21258 (vn_nary_op_insert): Likewise.
21259 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
21260 and binary hashes, use a single obstack for unary_op_pool
21261 and binary_op_pool.
21262 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
21263 a single struct vn_nary_op_s. Store tree code length and
21264 a variable number of operands.
21265 (struct vn_reference_op_struct): Remove unused op2.
21266 (vn_reference_op_eq): Do not compare op2.
21267 (vn_reference_op_compute_hash): Do not compute hash of op2.
21268 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
21269 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
21270 with vn_nary_op_compute_hash.
21271 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
21272 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
21273 vn_nary_op_lookup.
21274 (vn_unary_op_insert, vn_binary_op_insert): Replace with
21275 vn_nary_op_insert.
21276 (visit_unary_op): Call nary functions.
21277 (visit_binary_op): Likewise.
21278 (process_scc): Adjust for struct vn_tables_s changes.
21279 (allocate_vn_table): Likewise.
21280 (free_vn_table): Likewise.
21281 * tree-vn.c (vn_add): Call nary functions.
21282 (vn_lookup): Likewise.
21283
21284 2008-03-08 Jakub Jelinek <jakub@redhat.com>
21285
21286 PR target/35498
21287 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
21288 wdst back after sync_compare_and_swapqhi_internal.
21289
21290 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
21291
21292 PR target/22152
21293 * config/i386/i386-modes.def (V1DI): New vector mode.
21294 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
21295 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
21296 (MMXMODE248): Ditto.
21297 (MMXMODE): Add V1DI mode.
21298 (mmxvecsize): Change DI mode to V1DI mode.
21299 ("mov<mode>): Use MMXMODEI8 mode iterator.
21300 ("*mov<mode>_internal_rex64"): Ditto.
21301 ("*mov<mode>_internal"): Ditto.
21302 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
21303 ("mmx_sub<mode>3"): Ditto.
21304 ("mmx_adddi3"): Remove insn pattern.
21305 ("mmx_subdi3"): Ditto.
21306 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
21307 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
21308 ("mmx_ashl<mode>3"): Ditto.
21309 ("mmx_lshrdi3"): Remove insn pattern.
21310 ("mmx_ashldi3"): Ditto.
21311 * config/i386/i386.c (classify_argument): Handle V1DImode.
21312 (function_arg_advance_32): Ditto.
21313 (function_arg_32): Ditto.
21314 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
21315 mmx_addv1di3 insn pattern.
21316 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
21317 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
21318 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
21319 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
21320 Remove definitions of built-in functions.
21321 (V1DI_type_node): New node.
21322 (v1di_ftype_v1di_int): Ditto.
21323 (v1di_ftype_v1di_v1di): Ditto.
21324 (v2si_ftype_v2si_si): Ditto.
21325 (v4hi_ftype_v4hi_di): Remove node.
21326 (v2si_ftype_v2si_di): Ditto.
21327 (ix86_init_mmx_sse_builtins): Handle V1DImode.
21328 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
21329 Redefine builtins using def_builtin_const with *_ftype_*_int node.
21330 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
21331 Add new builtins using def_builtin_const.
21332 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
21333 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
21334 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
21335 * config/i386/mmintrin.h (__v1di): New typedef.
21336 (_mm_add_si64): Cast arguments to __v1di type.
21337 (_mm_sub_si64): Ditto.
21338 (_mm_sll_pi16): Cast __count to __v4hi type.
21339 (_mm_sll_pi32): Cast __count to __v2si type.
21340 (_mm_sll_si64): Cast arguments to __v1di type.
21341 (_mm_srl_pi16): Cast __count to __v4hi type.
21342 (_mm_srl_pi32): Cast __count to __v2si type.
21343 (_mm_srl_si64): Cast arguments to __v1di type.
21344 (_mm_sra_pi16): Cast __count to __v4hi type.
21345 (_mm_sra_pi32): Cast __count to __v2si type.
21346 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
21347 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
21348 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
21349 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
21350 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
21351 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
21352 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
21353 (_mm_srai_pi32): Use __builtin_ia32_psradi.
21354 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
21355 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
21356 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
21357 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
21358
21359 2008-03-07 Joseph Myers <joseph@codesourcery.com>
21360
21361 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
21362
21363 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
21364
21365 PR target/35373
21366 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
21367 reg+const addressing for Altivec modes. Don't generate reg+reg
21368 addressing for TFmode or TDmode quantities.
21369
21370 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
21371
21372 * c-common.c (vector_types_convertible_p): Call langhook
21373 instead of comptypes.
21374
21375 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
21376
21377 PR tree-opt/35402
21378 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
21379 integral and scalar float variables which have a
21380 NULL DECL_INITIAL.
21381
21382 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
21383
21384 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
21385 dwarf_register_span hook when emitting unwind information for
21386 register-to-memory saves.
21387 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
21388 (rs6000_frame_related): Remove call to spe_synthesize_frame.
21389
21390 2008-03-06 Jakub Jelinek <jakub@redhat.com>
21391
21392 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
21393 for the same VAR_DECL.
21394
21395 2008-03-06 Tom Tromey <tromey@redhat.com>
21396
21397 * treelang: Delete.
21398 * doc/standards.texi (Standards): Don't mention treelang.
21399 * doc/invoke.texi (Overall Options): Don't mention treelang.
21400 * doc/install.texi (Prerequisites): Don't mention bison or
21401 treelang.
21402 (Configuration): Don't mention treelang.
21403 (Building): Likewise.
21404 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
21405
21406 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
21407
21408 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
21409 word-extractions out of a multi-word object.
21410
21411 2008-03-06 Richard Guenther <rguenther@suse.de>
21412
21413 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
21414 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
21415 result type and precision.
21416 * expr.c (get_inner_reference): Set unsignedp based on the result
21417 type of BIT_FIELD_REF.
21418 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
21419 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
21420 (try_instantiate_multiple_fields): Likewise. Use the correct type
21421 for BIT_FIELD_REF.
21422 (sra_build_assignment): Likewise.
21423 (sra_build_elt_assignment): Likewise.
21424 (sra_explode_bitfield_assignment): Likewise.
21425 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
21426 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
21427 set BIT_FIELD_REF_UNSIGNED.
21428 (vectorizable_load): Likewise.
21429
21430 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
21431
21432 * cse.c (cse_extended_basic_block): Invalidate artificial defs
21433 at bb start.
21434
21435 2008-03-06 Richard Guenther <rguenther@suse.de>
21436
21437 * alias.c (struct alias_set_entry): Move has_zero_child field
21438 to pack with alias_set.
21439
21440 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
21441
21442 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
21443 32bit host.
21444
21445 2008-03-05 Ian Lance Taylor <iant@google.com>
21446
21447 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
21448
21449 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
21450
21451 * fwprop.c (update_df): Support width and offset parameters of
21452 df_ref_create.
21453 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
21454 global_conflicts): Change DF_REF_EXTRACT to either
21455 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
21456 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
21457 * df-scan.c (df_ref_record, df_defs_record,
21458 df_ref_create_structure, df_def_record_1, df_uses_record,
21459 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
21460 df_bb_refs_collect, df_entry_block_defs_collect,
21461 df_exit_block_uses_collect): Support new width and offset fields.
21462 (ref_extract_pool): New storage pool.
21463 (df_free_ref): New function.
21464 (df_reg_chain_unlink, df_free_collection_rec,
21465 df_sort_and_compress_refs): Call df_free_ref.
21466 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
21467 of df_ref_extract.
21468 (df_ref_create_structure): Allocate df_ref_extract if offset and
21469 width fields are used.
21470 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
21471 (df_uses_record): Get offset and width from ZERO_EXTRACT
21472 and SIGN_EXTRACT.
21473 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
21474 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
21475 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
21476 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
21477 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
21478 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
21479 (df_ref_extract): New structure.
21480 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
21481 (df_ref_create): Add width and offset parameters.
21482
21483 2008-03-05 Richard Guenther <rguenther@suse.de>
21484
21485 * tree-ssa-structalias.c (get_constraint_for_component_ref):
21486 Use ranges_overlap_p.
21487 (offset_overlaps_with_access): Rename
21488 to ranges_overlap_p and move ...
21489 * tree-flow-inline.h (ranges_overlap_p): ... here.
21490
21491 * tree.h (get_inner_reference, handled_component_p): Update
21492 comments.
21493
21494 * tree.h (record_component_aliases, get_alias_set,
21495 alias_sets_conflict_p, alias_sets_must_conflict_p,
21496 objects_must_conflict_p): Move declarations ...
21497 * alias.h (record_component_aliases, get_alias_set,
21498 alias_sets_conflict_p, alias_sets_must_conflict_p,
21499 objects_must_conflict_p): ... here.
21500 Include coretypes.h.
21501 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
21502
21503 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
21504
21505 * cfg.c: Include tree-flow.h.
21506 (remove_edge_raw): Call redirect_edge_var_map_clear.
21507 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
21508 * tree-flow-inline.h (redirect_edge_var_map_def): New.
21509 (redirect_edge_var_map_result): New.
21510 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
21511 PENDING_STMT use with redirect_edge_var_map_*.
21512 * tree-ssa.c (edge_var_maps): New definition.
21513 (redirect_edge_var_map_add): New.
21514 (redirect_edge_var_map_clear): New.
21515 (redirect_edge_var_map_dup): New.
21516 (redirect_edge_var_map_vector): New.
21517 (redirect_edge_var_map_destroy): New.
21518 (ssa_redirect_edge): Replace PENDING_STMT use with
21519 redirect_edge_var_map_*.
21520 (flush_pending_stmts): Same.
21521 (delete_tree_ssa): Destroy edge var map.
21522 * tree-flow.h (struct _edge_var_map): New.
21523 Define edge_var_map vector type.
21524 Declare redirect_edge_var_map_* prototypes.
21525 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
21526 * tree-cfg.c (reinstall_phi_args): Replace
21527 PENDING_STMT use with redirect_edge_var_map_*.
21528
21529 2008-03-05 Richard Guenther <rguenther@suse.de>
21530
21531 PR tree-optimization/35472
21532 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
21533 whose single use_stmt has a overlapping set of loaded and
21534 stored symbols as that use_stmt might be a noop assignment then.
21535
21536 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
21537
21538 * gthr-rtems.h: Implement __gthread_mutex_destroy.
21539
21540 2008-03-05 Richard Guenther <rguenther@suse.de>
21541
21542 PR c++/35336
21543 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
21544 should be constants.
21545 * tree-cfg.c (verify_expr): Verify it.
21546 * fold-const.c (fold_truthop): Remove code generating
21547 BIT_FIELD_REFs of structure bases.
21548 (fold_binary): Likewise.
21549 (fold_ternary): Position and size of BIT_FIELD_REFs are
21550 always host integers.
21551 (make_bit_field_ref): Remove.
21552 (optimize_bit_field_compare): Remove.
21553 (all_ones_mask_p): Remove.
21554
21555 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
21556
21557 PR gcc/33009
21558 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
21559 (split_block_and_df_analyze): New. Split basic block and rebuild
21560 dataflow.
21561 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
21562 SPLIT_BLOCK.
21563 (split_pattern_seq): Likewise.
21564 (erase_matching_seqs): Likewise.
21565 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
21566
21567 2008-03-04 Geoff Keating <geoffk@apple.com>
21568
21569 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
21570 declaration and code.
21571 (tree_invalid_nonnegative_warnv_p): Likewise.
21572
21573 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
21574
21575 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
21576 examples. Truncate option-names then causing overfull hbox.
21577
21578 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21579
21580 PR target/35222
21581 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
21582 on hpux10.
21583 * configure: Rebuilt.
21584
21585 2008-03-04 Rafael Espíndola <espindola@google.com>
21586
21587 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
21588 (tree_unary_nonnegative_warnv_p): New.
21589 (tree_binary_nonnegative_warnv_p): New.
21590 (tree_single_nonnegative_warnv_p): New.
21591 (tree_invalid_nonnegative_warnv_p): New.
21592 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
21593
21594 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21595
21596 PR 28322
21597 * opts.c (handle_option): Postpone 'unknown option' errors only for
21598 warning options.
21599
21600 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
21601
21602 PR target/35453
21603 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
21604 (_SIDD_XXX): This.
21605
21606 2008-03-04 Rafael Espíndola <espindola@google.com>
21607
21608 * fold-const.c (tree_unary_nonzero_warnv_p): New.
21609 (tree_binary_nonzero_warnv_p): New.
21610 (tree_single_nonzero_warnv_p): New.
21611 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
21612
21613 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
21614
21615 PR middle-end/35456
21616 * fold-const.c (fold_cond_expr_with_comparison): Prevent
21617 transformations for modes that have signed zeros.
21618 * ifcvt.c (noce_try_abs): Ditto.
21619
21620 2008-03-04 Joseph Myers <joseph@codesourcery.com>
21621
21622 * config/i386/i386.c (override_options): Force
21623 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
21624
21625 2008-03-04 Jan Hubicka <jh@suse.cz>
21626
21627 PR c++/35262
21628 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
21629 in last commit.
21630
21631 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
21632
21633 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
21634 label to probe the stack.
21635
21636 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
21637
21638 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
21639 (__gthr_win32_mutex_destroy): Declare.
21640 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
21641 __gthr_win32_mutex_destroy.
21642 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
21643
21644 2008-03-03 Jan Hubicka <jh@suse.cz>
21645
21646 PR c++/35262
21647 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
21648 aggressive on inlining cold calls.
21649
21650 2008-03-03 Richard Guenther <rguenther@suse.de>
21651
21652 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
21653 struct copies into the expression table.
21654 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
21655 (try_to_simplify): Likewise.
21656 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
21657 integral and pointer arguments which do not change the
21658 precision to NOP_EXPRs.
21659 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
21660 VIEW_CONVERT_EXPR case.
21661
21662 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
21663
21664 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
21665 defined in a loop at depth 0 is invariant.
21666 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
21667 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
21668 be called at loop depth 0.
21669
21670 2008-03-02 Jakub Jelinek <jakub@redhat.com>
21671
21672 PR driver/35420
21673 * gcc.c (process_command): Update copyright notice dates.
21674 * gcov.c (print_version): Likewise.
21675 * gcov-dump.c (print_version): Likewise.
21676 * mips-tfile.c (main): Likewise.
21677 * mips-tdump.c (main): Likewise.
21678
21679 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21680
21681 PR 24924
21682 * c-common.c (flag_permissive): Delete.
21683 (constant_expression_warnings): Check flags first.
21684 (constant_expression_error): New.
21685 * c-common.h (flag_permissive): Delete.
21686 (constant_expression_error): Declare.
21687 * flags.h (flag_permissive): Declare. Update description.
21688 * diagnostic.c (pedwarn): Update.
21689 (permerror): New.
21690 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
21691 (permissive_error_kind): New.
21692 * toplev.c (flag_permissive): Define. Update description.
21693 * toplev.h (permissive_error_kind): Declare.
21694 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
21695 (pedwarn_c90): Use pedantic_warning_kind.
21696 * c-opts.c (c_common_post_options): flag_permissive does not affect
21697 flag_pedantic_errors.
21698
21699 2008-03-02 Joseph Myers <joseph@codesourcery.com>
21700
21701 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
21702 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
21703 __absvsi2, __absvDI2): Use unsigned arithmetic.
21704
21705 2008-03-02 Andi Kleen <ak@suse.de>
21706 Richard Guenther <rguenther@suse.de>
21707
21708 * struct-equiv.c: Remove file.
21709 * cfg_cleanup.c (condjump_equiv_p): Remove.
21710 * Makefile.in (OBJS-common): Remove struct-equiv.o.
21711 (struct-equiv.o): Remove rule.
21712 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
21713 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
21714 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
21715
21716 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
21717
21718 * ifcvt.c (noce_process_if_block): Try to handle only the then
21719 block if the else block exists but isn't suitable.
21720
21721 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
21722
21723 PR gcc/35063
21724 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
21725 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
21726 regression from previous patch.
21727
21728 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
21729
21730 PR gcc/35063
21731 * gthr.h: Add __gthread_mutex_destroy as a function that must be
21732 implemented.
21733 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
21734 * gthr-single.h (__gthread_mutex_destroy): Likewise.
21735 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
21736 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
21737 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
21738 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
21739 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
21740 (__gthread_mutex_destroy_function): Rename to
21741 __gthread_mutex_destroy.
21742 * gthr-dce.h (__gthread_mutex_destroy): Call
21743 pthread_mutex_destroy.
21744 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
21745 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
21746 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
21747
21748 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
21749
21750 * df-scan.c (df_ref_chain_change_bb): Simplify.
21751 (df_insn_change_bb): Add new_bb argument. Simplify. Call
21752 set_block_for_insn if there's any change.
21753 * df.h ((df_insn_change_bb): Fix prototype.
21754 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
21755 df_insn_change_bb, don't call set_block_for_insn.
21756 * emit-rtl.c (reorder_insns): Likewise.
21757 * haifa-sched.c (move_insn): Likewise.
21758
21759 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
21760
21761 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
21762
21763 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
21764
21765 * tree-flow-inline.h (next_readonly_imm_use): Return
21766 NULL_USE_OPERAND_P after the end.
21767
21768 2008-03-01 Richard Guenther <rguenther@suse.de>
21769
21770 PR tree-optimization/35411
21771 * tree-sra.c (sra_build_assignment): Split conversion to
21772 final type to a separate statement if we are not assigning
21773 to a register.
21774
21775 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
21776
21777 * fold-const.c (fold_convertible_p): Correct the logic to follow
21778 that in fold_convert().
21779
21780 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
21781
21782 PR c++/35315
21783 * tree-inline.c (build_duplicate_type): When we make a
21784 duplicate type, make it unique in the canonical types system.
21785
21786 2008-02-29 Tom Tromey <tromey@redhat.com>
21787
21788 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
21789 input_file_stack_history, input_file_stack_restored): Remove.
21790 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
21791 * input.h (struct file_stack): Remove.
21792 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
21793 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
21794 Likewise.
21795 * diagnostic.h (struct diagnostic_context) <last_module>: Change
21796 type.
21797 (diagnostic_last_module_changed): Add 'map' argument.
21798 (diagnostic_set_last_function): Likewise.
21799 * diagnostic.c (undiagnostic_report_current_module): Iterate using
21800 line map, not input_file_stack.
21801 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
21802
21803 2008-02-29 Paul Brook <paul@codesourcery.com>
21804
21805 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
21806
21807 2008-02-29 Paul Brook <paul@codesourcery.com>
21808
21809 * config/arm/ieee754-df.S (muldf3): Use RET macros.
21810
21811 2008-02-29 Richard Guenther <rguenther@suse.de>
21812
21813 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
21814 vn_lookup_or_add.
21815 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
21816 value for comparing for a store match.
21817 (simplify_unary_expression): Do nothing for SSA_NAMEs.
21818 (try_to_simplify): Do not do a full-blown reference lookup.
21819
21820 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
21821
21822 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
21823 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
21824
21825 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
21826
21827 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
21828
21829 * tree-loop-linear.c (try_interchange_loops): Compare memory access
21830 strides against cache sizes.
21831
21832 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
21833
21834 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
21835 constant to fpul.
21836
21837 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
21838
21839 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
21840 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
21841 is smaller than the original promoted value.
21842 (simplify_subreg): If OP is a SUBREG, try to preserve its
21843 SUBREG_PROMOTED_VAR_P information.
21844
21845 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
21846
21847 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
21848 (VN_INFO_GET): Allocate new objects on the obstack.
21849 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
21850 for rpo_numbers_temp, for consistency.
21851 (free_scc_vn): Free the obstack.
21852
21853 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
21854
21855 * doc/invoke.texi: Document -ftree-loop-distribution.
21856 * tree-loop-distribution.c: New.
21857 * tree-pass.h (pass_loop_distribution): New.
21858 * graphds.h (struct graph): Add htab_t indices.
21859 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
21860 * tree-vectorizer.c (rename_variables_in_loop): Extern.
21861 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
21862 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
21863 * tree-data-ref.c (debug_data_dependence_relations): New.
21864 (dump_data_dependence_relation): Also print data references.
21865 (free_data_ref): Extern.
21866 (same_access_functions): Moved...
21867 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
21868 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
21869 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
21870 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
21871 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
21872 (stmts_from_loop): Skip LABEL_EXPR.
21873 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
21874 New.
21875 (build_rdg): Initialize rdg->indices htab.
21876 (free_rdg, stores_from_loop, ref_base_address,
21877 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
21878 have_similar_memory_accesses_1, ref_base_address_1,
21879 remove_similar_memory_refs): New.
21880 * tree-data-ref.h: Depend on tree-chrec.h.
21881 (debug_data_dependence_relations, free_data_ref): Declared.
21882 (same_access_functions): ... here.
21883 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
21884 New.
21885 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
21886 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
21887 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
21888 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
21889 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
21890 rdg_vertex_for_stmt): Declared.
21891 (struct rdg_edge): Add level.
21892 (RDGE_LEVEL): New.
21893 (free_rdg, stores_from_loop, remove_similar_memory_refs,
21894 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
21895 Declared.
21896 (rdg_has_similar_memory_accesses): New.
21897 * tree-vect-analyze.c: Remove unused static decls.
21898 * lambda.h (dependence_level): New.
21899 * common.opt (ftree-loop-distribution): New.
21900 * tree-flow.h (mark_virtual_ops_in_bb,
21901 slpeel_tree_duplicate_loop_to_edge_cfg,
21902 rename_variables_in_loop): Declared.
21903 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
21904 (OBJS-common): Add tree-loop-distribution.o.
21905 (tree-loop-distribution.o): New rule.
21906 * tree-cfg.c (mark_virtual_ops_in_bb): New.
21907 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
21908 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
21909
21910 2008-02-28 Joseph Myers <joseph@codesourcery.com>
21911
21912 PR target/33963
21913 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
21914 other than structures and unions.
21915
21916 2008-02-28 Richard Guenther <rguenther@suse.de>
21917
21918 Revert:
21919 2008-02-26 Richard Guenther <rguenther@suse.de>
21920
21921 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
21922 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
21923 (lookup_decl_from_uid): Declare.
21924 (remove_decl_from_map): Likewise.
21925 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
21926 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
21927 (decl_for_uid_map): New global hashtable mapping DECL_UID
21928 to the decl tree.
21929 (init_ttree): Allocate it.
21930 (insert_decl_to_uid_decl_map): New helper function.
21931 (make_node_stat): Insert new decls into the map.
21932 (copy_node_stat): Likewise.
21933 (lookup_decl_from_uid): New function.
21934 (remove_decl_from_map): Likewise.
21935 (print_decl_for_uid_map_statistics): New helper.
21936 (dump_tree_statistics): Call it.
21937
21938 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
21939 (referenced_var_iterator): Adjust.
21940 (FOR_EACH_REFERENCED_VAR): Adjust.
21941 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
21942 (num_referenced_vars): Adjust.
21943 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
21944 (first_referenced_var): Remove.
21945 (end_referenced_vars_p): Likewise.
21946 (next_referenced_var): Likewise.
21947 (referenced_var_iterator_set): New helper function.
21948 * tree-dfa.c (referenced_var_lookup): Adjust.
21949 (referenced_var_check_and_insert): Likewise.
21950 (remove_referenced_var): Likewise.
21951 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
21952 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21953 (verify_call_clobbering): Likewise.
21954 (verify_memory_partitions): Likewise.
21955 (init_tree_ssa): Allocate bitmap instead of hashtable for
21956 referenced_vars.
21957 (delete_tree_ssa): Adjust.
21958 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
21959 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21960 (compute_tag_properties): Likewise.
21961 (set_initial_properties): Likewise.
21962 (find_partition_for): Likewise.
21963 (update_reference_counts): Likewise.
21964 (dump_may_aliases_for): Likewise.
21965 * tree-ssa-operands.c (add_virtual_operand): Likewise.
21966 (add_call_clobber_ops): Likewise.
21967 (add_call_read_ops): Likewise.
21968 (get_asm_expr_operands): Likewise.
21969 * tree-into-ssa.c (dump_decl_set): Likewise.
21970 (update_ssa): Likewise.
21971 * tree-sra.c (scan_function): Likewise.
21972 (decide_instantiations): Likewise.
21973 (scalarize_parms): Likewise.
21974 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
21975 (dsa_named_for): Likewise.
21976 * tree-ssa-structalias.c (update_alias_info): Likewise.
21977 (merge_smts_into): Likewise.
21978
21979 2008-02-27 David Daney <ddaney@avtrex.com>
21980
21981 PR target/34409
21982 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
21983 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
21984 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
21985 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
21986 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
21987
21988 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
21989
21990 PR target/25477
21991 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
21992 (BUILT_IN_NEXTTOWARD): Remove.
21993 (BUILT_IN_NEXTTOWARDF): Ditto.
21994 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
21995 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
21996
21997 2008-02-27 Tom Tromey <tromey@redhat.com>
21998
21999 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
22000 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
22001
22002 2008-02-27 Jan Beulich <jbeulich@novell.com>
22003
22004 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
22005 update the respective field on newdecl.
22006
22007 2008-02-27 Revital Eres <eres@il.ibm.com>
22008
22009 PR rtl-optimization/34999
22010 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
22011 crossing edges that ends with a call insn.
22012 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
22013 call insn and clear the EDGE_CROSSING flag of the crossing edge
22014 when fixing fallthru edges.
22015
22016 2008-02-27 Richard Guenther <rguenther@suse.de>
22017
22018 PR middle-end/35390
22019 * fold-const.c (fold_unary): Return the correct argument,
22020 converted to the result type.
22021
22022 2008-02-27 Richard Guenther <rguenther@suse.de>
22023
22024 PR middle-end/34971
22025 * expr.c (expand_expr_real_1): Assert on rotates that operate
22026 on partial modes.
22027 * fold-const.c (fold_binary): Use the types precision, not the
22028 bitsize of the mode if folding rotate expressions. Build rotates
22029 only for full modes.
22030
22031 2008-02-27 Jakub Jelinek <jakub@redhat.com>
22032
22033 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
22034 and CPP_PRAGMA_EOL.
22035 * c-pragma.c (pragma_ns_name): New typedef.
22036 (registered_pp_pragmas): New variable.
22037 (c_pp_lookup_pragma): New function.
22038 (c_register_pragma_1): If flag_preprocess_only, do nothing
22039 for non-expanded pragmas, for expanded ones push pragma's
22040 namespace and name into registered_pp_pragmas vector.
22041 (c_invoke_pragma_handler): Register OpenMP pragmas even when
22042 flag_preprocess_only, don't register GCC pch_preprocess
22043 pragma if flag_preprocess_only.
22044 * c-opts.c (c_common_init): Call init_pragma even if
22045 flag_preprocess_only.
22046 * c-pragma.c (c_pp_lookup_pragma): New prototype.
22047 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
22048 cpp_register_pragma if flag_preprocess_only.
22049
22050 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22051
22052 PR c/28800
22053 * c-parser.c (c_parser_translation_unit): Warn for empty
22054 translation unit, not empty source file.
22055
22056 2008-02-26 Paul Brook <paul@codesourcery.com>
22057
22058 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
22059 operand for Thumb-2.
22060 * config/arm/arm.h (reg_class): Add CORE_REGS.
22061 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
22062 (BASE_REG_CLASS): Use CORE_REGS.
22063 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
22064 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
22065 (REGNO_OK_FOR_INDEX_P): Exclude SP.
22066 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
22067 ARM_REGNO_OK_FOR_INDEX_P.
22068 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
22069 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
22070 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
22071 (ldm/stm peepholes): Ditto.
22072 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
22073 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
22074 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
22075 * config/arm/constraints.md: Enable "k" constraint on ARM.
22076
22077 2008-02-27 Ben Elliston <bje@au.ibm.com>
22078
22079 * config/rs6000/rs6000.c: Annotate cache line size field in all
22080 instances of struct processor_costs.
22081
22082 2008-02-26 David Edelsohn <edelsohn@gnu.org>
22083
22084 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
22085 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
22086 jump_bypass): New counters.
22087 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
22088 * dce.c (gate_ud_dce): Same.
22089 (gate_fast_dce): Same.
22090 * dse.c (gate_dse1): New function.
22091 (gate_dse2): New function.
22092 (gate_dse): Merge results of new gate functions.
22093 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
22094 (gate_handle_jump_bypass): Add dbg_cnt.
22095 (gate_handle_gcse): Add dbg_cnt.
22096 * ifcvt.c (gate_handle_if_conversion): Same.
22097 (gate_handle_if_after_combine): Same.
22098 (gate_handle_if_after_reload): Same.
22099 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
22100
22101 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
22102
22103 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
22104 line sizes.
22105 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
22106
22107 2008-02-26 Jason Merrill <jason@redhat.com>
22108
22109 PR c++/35315
22110 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
22111 alone if it's the naming decl for the type's main variant.
22112
22113 2008-02-26 Tom Tromey <tromey@redhat.com>
22114
22115 * system.h (USE_MAPPED_LOCATION): Poison.
22116 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
22117 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
22118 (make_goto_expr_edges): Likewise.
22119 (remove_bb): Likewise.
22120 (execute_warn_function_return): Likewise.
22121 * basic-block.h (struct edge_def) <goto_locus>: Change type to
22122 location_t.
22123 * c-common.c (fname_decl): Remove old location code.
22124 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
22125 location code.
22126 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
22127 variant.
22128 (ASM_INPUT_SOURCE_LOCATION): Likewise.
22129 (gen_rtx_ASM_INPUT): Likewise.
22130 (gen_rtx_ASM_INPUT_loc): Likewise.
22131 (get_rtx_asm_OPERANDS): Remove.
22132 * cfglayout.c (insn_locators_alloc): Remove old location code.
22133 (set_curr_insn_source_location): Likewise.
22134 (curr_insn_locator): Likewise.
22135 * print-tree.c (print_node): Remove old location code.
22136 * tree-mudflap.c (mf_varname_tree): Remove old location code.
22137 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
22138 * cfgexpand.c (expand_gimple_cond_expr): Don't use
22139 location_from_locus.
22140 (construct_exit_block): Remove old location code.
22141 * emit-rtl.c (force_next_line_note): Remove old location code.
22142 * profile.c (branch_prob): Remove old location code.
22143 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
22144 LOC_LINE): Remove old-location variants.
22145 * langhooks.c (lhd_print_error_function): Remove old location
22146 code.
22147 * configure, config.in: Rebuilt.
22148 * configure.ac (--enable-mapped-location): Remove.
22149 * c-decl.c (c_init_decl_processing): Remove old location code.
22150 (finish_function): Likewise.
22151 * recog.c (decode_asm_operands): Remove old location code.
22152 * c-pch.c (c_common_read_pch): Remove old location code.
22153 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
22154 variants.
22155 * gimple-low.c (lower_function_body): Remove old location code.
22156 * toplev.c (unknown_location): Remove.
22157 (push_srcloc): Remove old-location variant.
22158 (process_options): Remove old location code.
22159 (lang_dependent_init): Likewise.
22160 * input.h (UNKNOWN_LOCATION): Move definition.
22161 (location_t): Undeprecate.
22162 (source_locus): Remove.
22163 (location_from_locus): Remove.
22164 (struct location_s): Remove.
22165 Remove all old-location code.
22166 (input_line, input_filename): Remove.
22167 * final.c (final_scan_insn): Remove old location code.
22168 * diagnostic.c (diagnostic_build_prefix): Remove
22169 USE_MAPPED_LOCATION test.
22170 * tree.h (gimple_stmt) <locus>: Now a location_t.
22171 (tree_exp) <locus>: Likewise.
22172 (DECL_IS_BUILTIN): Remove old-location variant.
22173 (annotate_with_file_line, annotate_with_locus): Likewise.
22174 (expr_locus, set_expr_locus): Update.
22175 * tree.c (build1_stat): Remove old location code.
22176 (last_annotated_node): Remove.
22177 (annotate_with_file_line): Remove old-location variant.
22178 (annotate_with_locus): Likewise.
22179 (expr_location): Remove old location code.
22180 (set_expr_location): Likewise.
22181 (expr_has_location): Likewise.
22182 (expr_locus): Likewise.
22183 (set_expr_locus): Likewise.
22184 (expr_filename): Don't use location_from_locus.
22185 (expr_lineno): Likewise.
22186 * rtl-error.c (location_for_asm): Remove old location code.
22187 * c-lex.c (cb_line_change): Remove old location code.
22188 (fe_file_change): Likewise.
22189 (cb_def_pragma): Likewise.
22190 (c_lex_with_flags): Likewise.
22191 * gengtype.c (do_typedef): Don't special-case location types.
22192 (define_location_structures): Remove.
22193 (main): Don't call define_location_structures.
22194 * tree-pretty-print.c (dump_implicit_edges): Remove old location
22195 code.
22196
22197 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22198
22199 PR 26264
22200 * builtins.def (BUILT_IN_STDARG_START): Remove.
22201 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
22202 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
22203 * tree-inline.c (inline_forbidden_p_1): Likewise.
22204
22205 2008-02-26 Richard Guenther <rguenther@suse.de>
22206
22207 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
22208 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
22209 (lookup_decl_from_uid): Declare.
22210 (remove_decl_from_map): Likewise.
22211 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
22212 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
22213 (decl_for_uid_map): New global hashtable mapping DECL_UID
22214 to the decl tree.
22215 (init_ttree): Allocate it.
22216 (insert_decl_to_uid_decl_map): New helper function.
22217 (make_node_stat): Insert new decls into the map.
22218 (copy_node_stat): Likewise.
22219 (lookup_decl_from_uid): New function.
22220 (remove_decl_from_map): Likewise.
22221 (print_decl_for_uid_map_statistics): New helper.
22222 (dump_tree_statistics): Call it.
22223
22224 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
22225 (referenced_var_iterator): Adjust.
22226 (FOR_EACH_REFERENCED_VAR): Adjust.
22227 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
22228 (num_referenced_vars): Adjust.
22229 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
22230 (first_referenced_var): Remove.
22231 (end_referenced_vars_p): Likewise.
22232 (next_referenced_var): Likewise.
22233 (referenced_var_iterator_set): New helper function.
22234 * tree-dfa.c (referenced_var_lookup): Adjust.
22235 (referenced_var_check_and_insert): Likewise.
22236 (remove_referenced_var): Likewise.
22237 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
22238 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
22239 (verify_call_clobbering): Likewise.
22240 (verify_memory_partitions): Likewise.
22241 (init_tree_ssa): Allocate bitmap instead of hashtable for
22242 referenced_vars.
22243 (delete_tree_ssa): Adjust.
22244 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
22245 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
22246 (compute_tag_properties): Likewise.
22247 (set_initial_properties): Likewise.
22248 (find_partition_for): Likewise.
22249 (update_reference_counts): Likewise.
22250 (dump_may_aliases_for): Likewise.
22251 * tree-ssa-operands.c (add_virtual_operand): Likewise.
22252 (add_call_clobber_ops): Likewise.
22253 (add_call_read_ops): Likewise.
22254 (get_asm_expr_operands): Likewise.
22255 * tree-into-ssa.c (dump_decl_set): Likewise.
22256 (update_ssa): Likewise.
22257 * tree-sra.c (scan_function): Likewise.
22258 (decide_instantiations): Likewise.
22259 (scalarize_parms): Likewise.
22260 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
22261 (dsa_named_for): Likewise.
22262 * tree-ssa-structalias.c (update_alias_info): Likewise.
22263 (merge_smts_into): Likewise.
22264
22265 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22266
22267 PR 34351
22268 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
22269 * c-opts.c (c_common_handle_option): Wall enables
22270 Wvolatile-register-var.
22271 * common.opt: Move Wvolatile-register-var to...
22272 * c.opt: ...here.
22273
22274 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22275
22276 * common.opt (Wlarger-than=): New.
22277 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
22278 -Wlarger-than=.
22279 * opts.c (common_handle_option): Handle -Wlarger-than=.
22280 * optc-gen.awk: Likewise.
22281 * opth-gen.awk: Likewise.
22282 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
22283 * tree-optimize.c (tree_rest_of_compilation): Likewise.
22284
22285 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22286
22287 * c-common.c (match_case_to_enum_1): Add appropriate
22288 OPT_W* parameter to warning.
22289 (c_do_switch_warnings): Likewise.
22290 * c-typeck.c (warning_init): Add one more parameter following
22291 'warning' function.
22292 (push_init_level): Update call to warning_init.
22293 (pop_init_level): Likewise.
22294 (add_pending_init): Likewise.
22295 (output_init_element: Likewise.
22296
22297 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22298
22299 PR 28322
22300 * toplev.c (toplev_main): If there are warnings or error, print
22301 errors for ignored options.
22302 * opts.c (ignored_options): New static variable.
22303 (postpone_unknown_option_error): New.
22304 (print_ignored_options): New.
22305 (handle_option): Postpone errors for unknown -Wno-* options.
22306 * opts.h (print_ignored_options): Declare.
22307
22308 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
22309
22310 * config/mips/mips.md (loadgp_blockage, blockage): Change type
22311 to "ghost".
22312
22313 2008-02-25 Richard Guenther <rguenther@suse.de>
22314
22315 Revert:
22316 2008-02-25 Richard Guenther <rguenther@suse.de>
22317
22318 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
22319 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
22320 (lookup_decl_from_uid): Declare.
22321 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
22322 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
22323 (decl_for_uid_map): New global hashtable mapping DECL_UID
22324 to the decl tree.
22325 (init_ttree): Allocate it.
22326 (insert_decl_to_uid_decl_map): New helper function.
22327 (make_node_stat): Insert new decls into the map.
22328 (copy_node_stat): Likewise.
22329 (lookup_decl_from_uid): New function.
22330 (print_decl_for_uid_map_statistics): New helper.
22331 (dump_tree_statistics): Call it.
22332
22333 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
22334 (referenced_var_iterator): Adjust.
22335 (FOR_EACH_REFERENCED_VAR): Adjust.
22336 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
22337 (num_referenced_vars): Adjust.
22338 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
22339 (first_referenced_var): Remove.
22340 (end_referenced_vars_p): Likewise.
22341 (next_referenced_var): Likewise.
22342 (referenced_var_iterator_set): New helper function.
22343 * tree-dfa.c (referenced_var_lookup): Adjust.
22344 (referenced_var_check_and_insert): Likewise.
22345 (remove_referenced_var): Likewise.
22346 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
22347 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
22348 (verify_call_clobbering): Likewise.
22349 (verify_memory_partitions): Likewise.
22350 (init_tree_ssa): Allocate bitmap instead of hashtable for
22351 referenced_vars.
22352 (delete_tree_ssa): Adjust.
22353 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
22354 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
22355 (compute_tag_properties): Likewise.
22356 (set_initial_properties): Likewise.
22357 (find_partition_for): Likewise.
22358 (update_reference_counts): Likewise.
22359 (dump_may_aliases_for): Likewise.
22360 * tree-ssa-operands.c (add_virtual_operand): Likewise.
22361 (add_call_clobber_ops): Likewise.
22362 (add_call_read_ops): Likewise.
22363 (get_asm_expr_operands): Likewise.
22364 * tree-into-ssa.c (dump_decl_set): Likewise.
22365 (update_ssa): Likewise.
22366 * tree-sra.c (scan_function): Likewise.
22367 (decide_instantiations): Likewise.
22368 (scalarize_parms): Likewise.
22369 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
22370 (dsa_named_for): Likewise.
22371 * tree-ssa-structalias.c (update_alias_info): Likewise.
22372 (merge_smts_into): Likewise.
22373
22374 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
22375
22376 PR fortran/29549
22377 * doc/invoke.texi (-fcx-limited-range): Document new option.
22378 * toplev.c (process_options): Handle -fcx-fortran-rules.
22379 * common.opt: Add documentation for -fcx-fortran-rules.
22380
22381 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
22382
22383 PR c/35162
22384 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
22385 actual behaviour and C99.
22386
22387 2008-02-26 Ben Elliston <bje@au.ibm.com>
22388
22389 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
22390 (ASM_CPU_POWER6_SPEC): Likewise.
22391 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
22392 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
22393 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
22394
22395 2008-02-25 Richard Guenther <rguenther@suse.de>
22396
22397 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
22398 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
22399 (lookup_decl_from_uid): Declare.
22400 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
22401 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
22402 (decl_for_uid_map): New global hashtable mapping DECL_UID
22403 to the decl tree.
22404 (init_ttree): Allocate it.
22405 (insert_decl_to_uid_decl_map): New helper function.
22406 (make_node_stat): Insert new decls into the map.
22407 (copy_node_stat): Likewise.
22408 (lookup_decl_from_uid): New function.
22409 (print_decl_for_uid_map_statistics): New helper.
22410 (dump_tree_statistics): Call it.
22411
22412 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
22413 (referenced_var_iterator): Adjust.
22414 (FOR_EACH_REFERENCED_VAR): Adjust.
22415 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
22416 (num_referenced_vars): Adjust.
22417 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
22418 (first_referenced_var): Remove.
22419 (end_referenced_vars_p): Likewise.
22420 (next_referenced_var): Likewise.
22421 (referenced_var_iterator_set): New helper function.
22422 * tree-dfa.c (referenced_var_lookup): Adjust.
22423 (referenced_var_check_and_insert): Likewise.
22424 (remove_referenced_var): Likewise.
22425 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
22426 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
22427 (verify_call_clobbering): Likewise.
22428 (verify_memory_partitions): Likewise.
22429 (init_tree_ssa): Allocate bitmap instead of hashtable for
22430 referenced_vars.
22431 (delete_tree_ssa): Adjust.
22432 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
22433 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
22434 (compute_tag_properties): Likewise.
22435 (set_initial_properties): Likewise.
22436 (find_partition_for): Likewise.
22437 (update_reference_counts): Likewise.
22438 (dump_may_aliases_for): Likewise.
22439 * tree-ssa-operands.c (add_virtual_operand): Likewise.
22440 (add_call_clobber_ops): Likewise.
22441 (add_call_read_ops): Likewise.
22442 (get_asm_expr_operands): Likewise.
22443 * tree-into-ssa.c (dump_decl_set): Likewise.
22444 (update_ssa): Likewise.
22445 * tree-sra.c (scan_function): Likewise.
22446 (decide_instantiations): Likewise.
22447 (scalarize_parms): Likewise.
22448 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
22449 (dsa_named_for): Likewise.
22450 * tree-ssa-structalias.c (update_alias_info): Likewise.
22451 (merge_smts_into): Likewise.
22452
22453 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
22454
22455 PR target/35258
22456 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
22457 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
22458 * alias.h (nonoverlapping_memrefs_p): Likewise.
22459
22460 2008-02-25 Jan Beulich <jbeulich@novell.com>
22461
22462 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
22463 * config/i386/netware-libgcc.exp: Add __bswap?i2,
22464 __emultls_get_address, __emultls_register_common,
22465 __floatundi?f, and _Unwind_GetIPInfo.
22466 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
22467 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
22468 (gen_regparm_prefix): Likewise.
22469 (i386_nlm_encode_section_info): Sync with
22470 config/i386/winnt.c:i386_pe_encode_section_info().
22471 (i386_nlm_maybe_mangle_decl_assembler_name): New.
22472 i386_nlm_mangle_decl_assembler_name): New.
22473 (netware_override_options): New.
22474 * config/i386/netware.h (netware_override_options): Declare.
22475 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
22476 (i386_nlm_mangle_decl_assembler_name): Declare.
22477 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
22478
22479 2008-02-25 Ben Elliston <bje@au.ibm.com>
22480
22481 PR other/32948
22482 * c-decl.c (grokdeclarator): Remove unused local variables
22483 `typedef_type' and `type_as_written'.
22484 * bb-reorder.c
22485 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
22486 unused local variable `has_hot_blocks'.
22487 (fix_crossing_conditional_branches): Remove unused local variable
22488 `prev_bb'.
22489
22490 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
22491
22492 PR middle-end/19984
22493 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
22494 using DEF_C99_BUILTIN.
22495 (BUILT_IN_NANF): Ditto.
22496 (BUILT_IN_NANL): Ditto.
22497
22498 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
22499 Revital Eres <eres@il.ibm.com>
22500
22501 * modulo-sched.c (calculate_must_precede_follow): Address TODO
22502 regarding the order of two dependent insns in the same row.
22503
22504 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
22505
22506 * stor-layout.c (layout_decl): Do not bump the alignment of a
22507 bit-field to more than byte alignment if it is packed.
22508
22509 2008-02-24 David Edelsohn <edelsohn@gnu.org>
22510
22511 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
22512 e300c2 and e300c3.
22513
22514 2008-02-24 Diego Novillo <dnovillo@google.com>
22515
22516 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
22517
22518 PR 33738
22519 * tree-vrp.c (vrp_evaluate_conditional): With
22520 -Wtype-limits, emit a warning when comparing against a
22521 constant outside the natural range of OP0's type.
22522 * c.opt (Wtype-limits): Move ...
22523 * common.opt (Wtype-limits): ... here.
22524
22525 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
22526
22527 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
22528 * config/rs6000/e300c2c3.md: New file.
22529 * config/rs6000/rs6000.c (processor_costs): Add new costs for
22530 e300c2 and e300c3.
22531 (rs6000_override_options): Add e300c2 and e300c3 cases to
22532 processor_target_table. Do not allow usage of Altivec or Spe
22533 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
22534 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
22535 * config/rs6000/rs6000.h (processor_type): Add
22536 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
22537 (ASM_CPU_SPEC): Add e300c2 and e300c3.
22538 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
22539 and ppce300c3. Include e300c2c3.md.
22540
22541 2008-02-23 David Edelsohn <edelsohn@gnu.org>
22542
22543 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
22544 instead of TARGET_STRICT_ALIGN.
22545
22546 2008-02-23 Joseph Myers <joseph@codesourcery.com>
22547
22548 * explow.c (memory_address): Assert that the generated address is
22549 valid.
22550
22551 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
22552
22553 PR target/25477
22554 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
22555 * config/darwin-ppc-ldouble-patch.def: New file.
22556 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
22557 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
22558 SUBTARGET_INIT_BUILTINS if defined.
22559 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
22560 New functions.
22561
22562 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
22563
22564 PR rtl-opt/33512
22565 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
22566 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
22567
22568 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
22569
22570 PR pch/35027
22571 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
22572 file" warning condtional on -Winvalid-PCH.
22573
22574 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
22575
22576 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
22577
22578 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
22579
22580 PR target/22076
22581 PR target/34256
22582 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
22583 prevent reload from using MMX registers.
22584 (*mov<mode>_internal): Ditto.
22585 (*movv2sf_internal_rex64): Ditto.
22586 (*movv2sf_internal): Ditto.
22587
22588 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22589
22590 PR documentation/31569
22591 * doc/install.texi2html: Use makeinfo --no-number-sections.
22592
22593 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
22594
22595 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
22596 ensure that we can address an entire entity > 8 bytes. Don't
22597 generate reg+reg addressing for such data.
22598
22599 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
22600
22601 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
22602 strings when optimizing for size, unless the target cares about
22603 alignment.
22604
22605 2008-02-22 Tom Tromey <tromey@redhat.com>
22606
22607 * regclass.c (current_pass): Remove declaration.
22608
22609 2008-02-22 Anatoly Sokolov <aesok@post.ru>
22610
22611 * config/avr/libgcc.S (__RAMPZ__): Define.
22612 (__do_copy_data): Add for devices with 128KB code memory.
22613
22614 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
22615
22616 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
22617 Use spe_abi.
22618 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
22619
22620 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
22621
22622 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
22623 GENNONACR_REGS.
22624
22625 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22626
22627 PR c/19999
22628 * c-typeck.c (build_binary_op): Warn about floating point
22629 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
22630
22631 2008-02-21 Janis Johnson <janis187@us.ibm.com>
22632
22633 PR target/34526
22634 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
22635 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
22636 add vrsave.
22637 (rs6000_override_options): Set altivec_abi as default, not override,
22638 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
22639 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
22640 is used; use new member spe_abi.
22641 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
22642 spe_abi and altivec_abi.
22643
22644 2008-02-22 Tomas Bily <tbily@suse.cz>
22645
22646 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
22647
22648 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22649
22650 PR bootstrap/35273
22651 * config.build (build_file_translate): Set to `CMD //c' only if
22652 it works.
22653 * Makefile.in (build_file_translate): Improve comment.
22654
22655 2008-02-21 Jan Hubicka <jh@suse.cz>
22656
22657 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
22658 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
22659 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
22660
22661 2008-02-21 Michael Matz <matz@suse.de>
22662
22663 PR target/35264
22664 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
22665
22666 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
22667
22668 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
22669 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
22670 as insn constraint.
22671 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
22672 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
22673 SSE_VEC_FLOAT_MODE_P as insn constraint.
22674 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
22675 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
22676 sse4a_movntdf using MODEF mode iterator.
22677 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
22678 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
22679 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
22680 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
22681 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
22682 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
22683 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
22684
22685 2008-02-21 Richard Guenther <rguenther@suse.de>
22686
22687 * tree.def (PAREN_EXPR): New tree code.
22688 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
22689 and PAREN_EXPR.
22690 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
22691 * expr.c (expand_expr_real_1): Likewise.
22692 * tree-inline.c (estimate_num_insns_1): Likewise.
22693 * tree-complex.c (expand_complex_move): Likewise.
22694 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
22695 as plain x.
22696
22697 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
22698
22699 PR target/35225
22700 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
22701
22702 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
22703
22704 PR target/35190
22705 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
22706
22707 * config/sh/sh.c (find_barrier): Don't go past
22708 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
22709
22710 2008-02-20 DJ Delorie <dj@redhat.com>
22711
22712 * config/h8300/h8300.md (insv): Force source operand to be a register.
22713
22714 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
22715 as a jump, not as a plain insn.
22716
22717 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
22718
22719 * doc/invoke.texi (Warning Options): Add new option
22720 -Wframe-larger-than=.
22721 (-Wframe-larger-than): Document.
22722
22723 * flags.h (warn_frame_larger_than, frame_larger_than_size):
22724 Add declarations for new option variables.
22725
22726 * final.c (final_start_function): Check the frame size
22727 before emission and issue a Wframe-larger-than warning.
22728
22729 * opts.c (warn_frame_larger_than, frame_larger_than_size):
22730 Add definitions for new option variables.
22731 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
22732
22733 * common.opt (Wframe-larger-than=): New option.
22734
22735 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
22736
22737 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
22738 (<sse>_div<mode>3): Ditto.
22739 (<sse>_vmdiv<mode>3): Ditto.
22740 (<sse>_vmsqrt<mode>2): Ditto.
22741 (*smax<mode>3): Ditto.
22742 (sse5_frcz<mode>2): Ditto.
22743 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
22744 as insn constraint.
22745
22746 2008-02-20 Richard Guenther <rguenther@suse.de>
22747
22748 PR middle-end/35265
22749 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
22750 be happy with INTEGRAL_TYPE_P.
22751
22752 2008-02-20 Richard Guenther <rguenther@suse.de>
22753
22754 * fold-const.c (split_tree): Associate floatig-point expressions
22755 if flag_associative_math is set.
22756
22757 2008-02-20 Richard Guenther <rguenther@suse.de>
22758
22759 * tree.h (fold_real_zero_addition_p): Declare.
22760 * fold-const.c (fold_real_zero_addition_p): Export.
22761 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
22762 floating-point operations with zero and one.
22763
22764 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
22765
22766 * doc/install.texi: Correct references to CFLAGS, replacing them
22767 with BOOT_CFLAGS. Document flags used during bootstrap for
22768 target libraries.
22769
22770 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
22771
22772 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
22773 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
22774 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
22775 insn constraint.
22776 (smin<mode>3): Ditto from similar patterns.
22777 (smax<mode>3): Ditto.
22778 (*ieee_smin<mode>3): Ditto.
22779 (*ieee_smax<mode>3): Ditto.
22780 * config/i386/sse.md (sse): New mode attribute.
22781 (mov<mode>): Macroize expander from movv4sf and movv2df using
22782 SSEMODEF2P mode iterator.
22783 (<sse>_movnt<mode>): Ditto from similar patterns. Use
22784 SSE_VEC_FLOAT_MODE_P as insn constraint.
22785 (storent<mode>): Ditto.
22786 (storent<mode>): Macroize expander from storentsf and storentdf using
22787 MODEF mode iterator.
22788 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
22789 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
22790 (abs<mode>2): Ditto from similar patterns.
22791 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
22792 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
22793 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
22794 (<sse>_vmsqrt<mode>2): Ditto.
22795 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
22796 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
22797 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
22798 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
22799 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
22800 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
22801 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
22802 insn constraint.
22803 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
22804 iterator and SSE_FLOAT_MODE_P as insn constraint.
22805 (<sse>_ucomi): Ditto from similar patterns.
22806 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
22807 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
22808 SSE_VEC_FLOAT_MODE_P as insn constraint.
22809 (vcond<mode>): Ditto from similar patterns.
22810 (and<mode>3, *and<mode>3): Ditto.
22811 (<sse>_nand<mode>3): Ditto.
22812 (ior<mode>3, *ior<mode>3): Ditto.
22813 (xor<mode>3, *xor<mode>3): Ditto.
22814 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
22815 iterator and SSE_FLOAT_MODE_P as insn constraint.
22816 (*nand<mode>3): Ditto from similar patterns.
22817 (*ior<mode>3): Ditto.
22818 (*xor<mode>3): Ditto.
22819
22820 2008-02-20 Ira Rosen <irar@il.ibm.com>
22821
22822 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
22823 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
22824 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
22825
22826 2008-02-19 Jan Hubicka <jh@suse.cz>
22827
22828 * predict.c (tree_bb_level_predictions): Remove variable next
22829 mistakely introduced by previous commit.
22830
22831 2008-02-19 Jan Hubicka <jh@suse.cz>
22832
22833 * predict.c (predict_paths_leading_to): Rewrite.
22834 (predict_paths_for_bb): New.
22835 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
22836
22837 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22838
22839 PR bootstrap/35218
22840 * Makefile.in (build_file_translate): New.
22841 (gcc-vers.texi): Use it for translating $(abs_srcdir).
22842 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
22843 * configure.ac (build_file_translate): Substitute it.
22844 * configure: Regenerate.
22845
22846 2008-02-19 Jan Hubicka <jh@suse.cz>
22847
22848 PR rtl-optimization/34408
22849 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
22850 invalid sharing.
22851
22852 2008-02-19 Jan Hubicka <jh@suse.cz>
22853
22854 PR middle-end/28779
22855 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
22856 call_expr.
22857
22858 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
22859
22860 PR Ada/35186
22861 * config/i386/i386-modes.def: Revert the last DI alignment
22862 change until Ada people can look into it.
22863
22864 2008-02-19 Nick Clifton <nickc@redhat.com>
22865
22866 * opts.c (print_specific_help): Fix typo in --help text.
22867
22868 2008-02-19 Jakub Jelinek <jakub@redhat.com>
22869
22870 PR target/35239
22871 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
22872 32-bit inline asm without asm alternatives for host GCC < 3.0.
22873
22874 2008-02-19 Richard Guenther <rguenther@suse.de>
22875
22876 PR tree-optimization/34989
22877 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
22878 Allow propagation to INDIRECT_REF if we can simplify only.
22879
22880 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22881
22882 * c-common.c (warn_for_collisions_1): Use appropriate option when
22883 warning.
22884
22885 2008-02-19 Nick Clifton <nickc@redhat.com>
22886
22887 PR other/31349
22888 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
22889 (handle_options): Fix indentation.
22890 (print_filtered_help): If no language-specific options were
22891 displayed tell the user how to list all the options supported by
22892 the language's front-end.
22893 (print_specific_help): Fix indentation and remove duplicate line.
22894 (common_handle_option): Handle the -v option.
22895 For --help enable the display of undocumented options if the -v
22896 switch has been included on the command line.
22897 For --help= check for overlaps in the arguments between the option
22898 classes and the language names and issue a warning when they
22899 cannot be disambiguated.
22900 * c.opt (v): Pass on to the common option handler.
22901
22902 2008-02-19 Revital Eres <eres@il.ibm.com>
22903
22904 * modulo-sched.c (sms_schedule): Change dump message when
22905 create_ddg function fails.
22906 (try_scheduling_node_in_cycle): Rename row to cycle.
22907 (print_partial_schedule): Rename CYCLE to ROW.
22908
22909 2008-02-19 Christian Bruel <christian.bruel@st.com>
22910 Zdenek Dvorak <ook@ucw.cz>
22911
22912 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
22913
22914 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
22915
22916 PR target/33555
22917 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
22918 (*x86_movdicc_0_m1_se): Ditto.
22919
22920 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
22921
22922 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
22923 (CMPtype): Define as __gcc_CMPtype.
22924 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
22925 (CMPtype): Define as __gcc_CMPtype.
22926
22927 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
22928
22929 Support valgrind 3.3 for --enable-checking=valgrind.
22930 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
22931 here.
22932 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
22933 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
22934 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
22935 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
22936 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
22937 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
22938 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
22939 respectively.
22940 * ggc-zone.c: Similar.
22941 * ggc-page.c: Similar.
22942
22943 2008-02-19 Paul Brook <paul@codesourcery.com>
22944
22945 PR target/35071
22946 * config/arm/ieee754-df.S: Fix do_it typo.
22947 * config/arm/ieee754-sf.S: Fix do_it typo.
22948
22949 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
22950
22951 PR target/35189
22952 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
22953 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
22954 (OPTION_MASK_ISA_SSE_SET): Likewise.
22955 (OPTION_MASK_ISA_SSE2_SET): Likewise.
22956 (OPTION_MASK_ISA_SSE3_SET): Likewise.
22957 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
22958 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
22959 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
22960 (OPTION_MASK_ISA_SSE4_SET): Likewise.
22961 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
22962 (OPTION_MASK_ISA_SSE5_SET): Likewise.
22963 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
22964 (OPTION_MASK_ISA_MMX_UNSET): Updated.
22965 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
22966 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
22967 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
22968 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
22969 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
22970 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
22971 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
22972 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
22973 (OPTION_MASK_ISA_SSE4): Removed.
22974 (ix86_handle_option): Turn on bits in ix86_isa_flags and
22975 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
22976 (override_options): Don't turn on implied SSE/MMX bits in
22977 ix86_isa_flags.
22978
22979 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
22980
22981 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
22982 32bit host.
22983
22984 2008-02-18 Joey Ye <joey.ye@intel.com>
22985
22986 PR middle-end/34921
22987 * tree-nested.c (insert_field_into_struct): Set type alignment
22988 to field alignment if the former is less than the latter.
22989
22990 2008-02-18 Jakub Jelinek <jakub@redhat.com>
22991
22992 * BASE-VER: Set to 4.4.0.
22993
22994 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22995
22996 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
22997 * doc/cfg.texi: Likewise.
22998 * doc/extend.texi: Likewise.
22999 * doc/gty.texi: Likewise.
23000 * doc/invoke.texi: Likewise.
23001 * doc/loop.texi: Likewise.
23002 * doc/md.texi: Likewise.
23003 * doc/passes.texi: Likewise.
23004 * doc/rtl.texi: Likewise.
23005 * doc/sourcebuild.texi: Likewise.
23006 * doc/tm.texi: Likewise.
23007 * doc/tree-ssa.texi: Likewise.
23008
23009 2008-02-17 Richard Guenther <rguenther@suse.de>
23010
23011 PR middle-end/35227
23012 * tree-complex.c (init_parameter_lattice_values): Handle parameters
23013 without default definition.
23014
23015 2008-02-17 Richard Guenther <rguenther@suse.de>
23016
23017 PR tree-optimization/35231
23018 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
23019 if A | B != 1.
23020
23021 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
23022
23023 Revert:
23024 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
23025 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
23026 libgcc_cmp_return mode.
23027
23028 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
23029
23030 PR c/28368
23031 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
23032
23033 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
23034
23035 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
23036 multilibs.
23037
23038 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23039
23040 * doc/c-tree.texi: Use `@.' where appropriate.
23041 * doc/extend.texi: Likewise.
23042 * doc/install.texi: Likewise.
23043 * doc/invoke.texi: Likewise.
23044 * doc/loop.texi: Likewise.
23045 * doc/makefile.texi: Likewise.
23046 * doc/md.texi: Likewise.
23047 * doc/passes.texi: Likewise.
23048 * doc/standards.texi: Likewise.
23049 * doc/tm.texi: Likewise.
23050
23051 2008-02-15 Jakub Jelinek <jakub@redhat.com>
23052
23053 PR middle-end/35196
23054 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
23055 in entry_bb.
23056 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
23057 rather than in entry_bb.
23058
23059 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
23060
23061 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
23062 libgcc_cmp_return mode.
23063
23064 2008-02-15 Jakub Jelinek <jakub@redhat.com>
23065
23066 PR middle-end/35130
23067 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
23068 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
23069
23070 2008-02-15 Richard Guenther <rguenther@suse.de>
23071 Zdenek Dvorak <ook@ucw.cz>
23072
23073 PR tree-optimization/35164
23074 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
23075 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
23076 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
23077 Only propagate addresses which do not have abnormal SSA_NAMEs
23078 in their operands.
23079
23080 2008-02-15 Joseph Myers <joseph@codesourcery.com>
23081
23082 PR target/35088
23083 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
23084
23085 2008-02-15 Jan Hubicka <jh@suse.cz>
23086
23087 PR middle-end/35149
23088 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
23089
23090 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
23091
23092 PR middle-end/34621
23093 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
23094 when calculating alignment_pad.
23095
23096 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
23097
23098 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
23099 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
23100 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
23101 and STACK_BOUNDARY define.
23102
23103 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
23104
23105 PR preprocessor/35061
23106 * c-pragma.c (handle_pragma_pop_macro): Check that
23107 pushed_macro_table has been allocated.
23108
23109 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
23110
23111 PR middle-end/35136
23112 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
23113 (force_gimple_operand): Likewise.
23114 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
23115 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
23116 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
23117 (find_interesting_uses_address): Check addressability and alignment
23118 of the base expression only after substituting bases of IVs into it.
23119
23120 2008-02-14 Michael Matz <matz@suse.de>
23121
23122 PR target/34930
23123 * function.c (instantiate_virtual_regs_in_insn): Reload address
23124 before falling back to reloading the whole operand.
23125
23126 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
23127
23128 * config/s390/s390.c (s390_mainpool_start): Emit the pool
23129 before the first section switch note.
23130
23131 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23132
23133 * doc/bugreport.texi: Update copyright years.
23134 * doc/c-tree.texi: Likewise.
23135 * doc/cfg.texi: Likewise.
23136 * doc/cpp.texi: Likewise.
23137 * doc/cppinternals.texi: Likewise.
23138 * doc/fragments.texi: Likewise.
23139 * doc/frontends.texi: Likewise.
23140 * doc/gcc.texi: Likewise.
23141 * doc/gty.texi: Likewise.
23142 * doc/hostconfig.texi: Likewise.
23143 * doc/implement-c.texi: Likewise.
23144 * doc/libgcc.texi: Likewise.
23145 * doc/loop.texi: Likewise.
23146 * doc/makefile.texi: Likewise.
23147 * doc/options.texi: Likewise.
23148 * doc/passes.texi: Likewise.
23149 * doc/rtl.texi: Likewise.
23150 * doc/sourcebuild.texi: Likewise.
23151 * doc/standards.texi: Likewise.
23152 * doc/tree-ssa.texi: Likewise.
23153 * doc/trouble.texi: Likewise.
23154
23155 * doc/extend.texi: Use @: or add comma where appropriate.
23156 * doc/invoke.texi: Likewise.
23157 * doc/tm.texi: Likewise.
23158
23159 2008-02-14 Alan Modra <amodra@bigpond.net.au>
23160
23161 PR target/34393
23162 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
23163 to a reg.
23164
23165 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
23166
23167 * doc/md.texi (clz, ctz): Add reference.
23168 * doc/rtl.texi (clz, ctz): Likewise.
23169
23170 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23171
23172 PR other/35148
23173 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
23174 srcdir.
23175
23176 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
23177
23178 * config/s390/s390.c (struct constant_pool): New field
23179 emit_pool_after added.
23180 (s390_mainpool_start): Set the emit_pool_after flag according
23181 to the section switch notes.
23182 (s390_mainpool_finish): Consider emit_pool_after when emitting
23183 the literal pool at the end of the function.
23184 (s390_chunkify_start): Force literal pool splits at section
23185 switch notes.
23186
23187 2008-02-13 Michael Matz <matz@suse.de>
23188
23189 PR debug/35065
23190 * var-tracking.c (clobber_variable_part): Correctly traverse the
23191 list.
23192
23193 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
23194
23195 PR 29673
23196 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
23197 Add -fdump-ipa-inline.
23198 * tree-dump.c (dump_files): Remove tree-inlined dump.
23199 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
23200
23201 2008-02-12 Richard Guenther <rguenther@suse.de>
23202
23203 PR tree-optimization/35171
23204 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
23205 default defs.
23206
23207 2008-02-12 Richard Guenther <rguenther@suse.de>
23208
23209 PR middle-end/35163
23210 * fold-const.c (fold_widened_comparison): Use get_unwidened in
23211 value-preserving mode. Disallow final truncation.
23212
23213 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
23214
23215 PR middle-end/35136
23216 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
23217 code from here to...
23218 (force_gimple_operand): ...here.
23219
23220 2008-02-12 Jakub Jelinek <jakub@redhat.com>
23221
23222 PR c++/35144
23223 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
23224 non-compatible pointers.
23225 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
23226 different FIELD_DECLs, try harder by comparing field offsets, sizes
23227 and types.
23228
23229 PR inline-asm/35160
23230 * function.c (match_asm_constraints_1): Don't replace the same input
23231 multiple times.
23232
23233 2008-02-12 Anatoly Sokolov <aesok@post.ru>
23234
23235 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
23236 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
23237 (expand_epilogue): Restore RAMPZ register.
23238 * config/avr/avr.md (RAMPZ_ADDR): New constant.
23239
23240 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
23241
23242 * config/i386/cygwin.asm: (__alloca): Correct calling
23243 convention and alignment.
23244 (__chkstk): Force 8 byte stack alignment.
23245
23246 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
23247 Richard Guenther <rguenther@suse.de>
23248
23249 PR tree-optimization/33992
23250 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
23251 the zero we compare against.
23252
23253 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
23254
23255 PR libfortran/35063
23256 * gthr-win32.h (__gthread_mutex_destroy_function): New function
23257 to CloseHandle after unlocking to prevent accumulation of handle
23258 count.
23259
23260 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23261
23262 PR middle_end/34150
23263 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
23264 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
23265 and update LABEL_NUSES during and after reload.
23266
23267 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
23268
23269 PR middle-end/34627
23270 * combine.c (simplify_if_then_else): Make sure the comparison is
23271 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
23272
23273 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
23274
23275 PR bootstrap/35051
23276 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
23277 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
23278 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
23279 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
23280 * tree.h (get_type_static_bounds): Likewise.
23281
23282 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23283
23284 * doc/invoke.texi (Option Summary, C++ Dialect Options)
23285 (Objective-C and Objective-C++ Dialect Options, Warning Options):
23286 Make -Wfoo language annotations match what the compiler outputs.
23287
23288 2008-02-08 Sa Liu <saliu@de.ibm.com>
23289
23290 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
23291 intrinsics spu_convts, spu_convtu, spu_convtf.
23292
23293 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
23294
23295 * doc/extend.texi (Function Attributes) <noinline>: Mention
23296 asm ("") as method to keep calls.
23297
23298 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
23299
23300 PR other/32754
23301 * doc/options.texi (Options): Replace references to opts.sh with
23302 optc-gen.awk.
23303 * opts-common.c: Likewise.
23304 * optc-gen.awk: Likewise.
23305
23306 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
23307
23308 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
23309
23310 2008-02-07 Richard Henderson <rth@redhat.com>
23311
23312 PR rtl-opt/33410
23313 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
23314 EXPR_LIST for the REG_EQUAL instead of a comparison with a
23315 funny mode.
23316
23317 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
23318
23319 PR tree-optimization/35085
23320 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
23321 for operand entry oe2 in addition to operand entry oe3 in order to
23322 expose more opportunities for vectorizer sum reduction.
23323
23324 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23325
23326 PR other/35107
23327 * Makefile.in (LIBS): Remove $(GMPLIBS).
23328 (cc1-dummy, cc1): Add $(GMPLIBS).
23329
23330 2008-02-06 Jan Hubicka <jh@suse.cz>
23331
23332 PR target/23322
23333 * i386.md (moddf_integer): Do not produce partial memory stalls for
23334 targets where it hurts.
23335
23336 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
23337
23338 PR target/35083
23339 * optabs.c (expand_float): Do not check for decimal modes when
23340 expanding unsigned integer through signed conversion.
23341
23342 2008-02-06 Nick Clifton <nickc@redhat.com>
23343
23344 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
23345 inside the clobber with a match_operand and duplicated operand
23346 number in the constraint.
23347 (ineqbranchsi): Delete redundant comment.
23348
23349 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
23350
23351 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
23352 builtin_define ("__USE_INIT_FINI__").
23353 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
23354 -msx multilibs.
23355 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
23356
23357 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23358
23359 PR documentation/30330
23360 * doc/invoke.texi (C++ Dialect Options)
23361 (Objective-C and Objective-C++ Dialect Options, Warning Options):
23362 For each warning option -Wfoo that allows -Wno-foo, ensure both
23363 -Wfoo and -Wno-foo are listed in the option index. Fix index
23364 entry of -Wswitch-default, index -Wnormalized= including the
23365 `=', and -Wlarger-than-@var{len} including @var{len}.
23366
23367 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
23368
23369 * config/i386/i386.md (floatunssisf2): Use
23370 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
23371 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
23372 Macroize expander using MODEF mode iterator.
23373
23374 2008-02-05 Diego Novillo <dnovillo@google.com>
23375
23376 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
23377
23378 PR 33738
23379 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
23380
23381 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23382
23383 PR other/35070
23384 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
23385
23386 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
23387
23388 PR target/35084
23389 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
23390 to indicate if a message should be generated.
23391 (init_cumulative_args): Updated.
23392 (function_value_32): Likewise.
23393
23394 2008-02-05 Joseph Myers <joseph@codesourcery.com>
23395
23396 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
23397
23398 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
23399
23400 PR target/35083
23401 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
23402 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
23403
23404 2008-02-04 Diego Novillo <dnovillo@google.com>
23405
23406 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
23407
23408 PR 33738
23409 * tree-vrp.c (vrp_evaluate_conditional): With
23410 -Wtype-limits, emit a warning when comparing against a
23411 constant outside the natural range of OP0's type.
23412
23413 2008-02-04 Richard Guenther <rguenther@suse.de>
23414
23415 PR middle-end/33631
23416 * expr.c (count_type_elements): Give for unions instead of
23417 guessing.
23418
23419 2008-02-04 Richard Guenther <rguenther@suse.de>
23420
23421 PR middle-end/35043
23422 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
23423 to TYPE_DOMAINs base type instead of using bitsizetype here.
23424
23425 2008-02-03 Jason Merrill <jason@redhat.com>
23426
23427 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
23428
23429 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23430
23431 PR other/29972
23432 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
23433 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
23434 (RS/6000 and PowerPC Options): Fix typos and markup.
23435 * doc/passes.texi (Tree-SSA passes): Likewise.
23436
23437 2008-02-02 Michael Matz <matz@suse.de>
23438
23439 PR target/35045
23440 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
23441 from record_last_reg_set_info.
23442 (record_last_reg_set_info): Take an RTX argument, iterate over all
23443 constituent hardregs.
23444 (record_last_set_info, record_opr_changes): Change calls to
23445 new signature or to record_last_reg_set_info_regno.
23446
23447 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
23448
23449 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
23450
23451 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
23452
23453 PR rtl-optimization/34773
23454 * reg-notes.def (EQUAL): Mention significance of combination of
23455 REG_EQUAL and REG_RETVAL.
23456 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
23457 insn that has a REG_RETVAL.
23458
23459 2008-02-01 Roger Sayle <roger@eyesopen.com>
23460
23461 PR bootstrap/33781
23462 * configure.ac (--enable-fixed-point): Disable unless explicitly
23463 requested on IRIX.
23464 * configure: Regenerate.
23465
23466 2008-02-01 Richard Guenther <rguenther@suse.de>
23467
23468 PR other/35042
23469 * invoke.texi (-finline-limit): Remove no longer true parts
23470 of the documentation. Note that there is no default value.
23471
23472 2008-02-01 Andrew Pinski <pinskia@gmail.com>
23473 Mark Mitchell <mark@codesourcery.com>
23474 Ben Elliston <bje@au.ibm.com>
23475
23476 PR c/29326
23477 * doc/extend.texi (Other Builtins): Document.
23478
23479 2008-01-31 Tom Browder <tom.browder@gmail.com>
23480
23481 * doc/c-tree.texi (Types): Fix grammar.
23482 (Expression trees): Ditto.
23483 * doc/passes.texi (Tree-SSA passes): Ditto.
23484
23485 * doc/configterms.texi (Configure Terms): Fix typo.
23486 * doc/cpp.texi (Common Predefined Macros): Ditto.
23487 * doc/md.texi (Machine Constraints): Ditto.
23488
23489 * doc/makefile.texi (Makefile): Add comma.
23490
23491 2008-01-31 Tom Browder <tom.browder@gmail.com>
23492 Gerald Pfeifer <gerald@pfeifer.com>
23493
23494 * doc/sourcebuild.texi (Front End): Remove references to CVS
23495 and CVSROOT/modules.
23496 (Texinfo Manuals): Replace reference to CVS by one to SVN.
23497 (Back End): Remove reference to CVS.
23498
23499 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
23500
23501 PR target/34900
23502 * config/mips/mips.c (gen_load_const_gp): New function, taking a
23503 comment from...
23504 (mips16_gp_pseudo_reg): ...here.
23505 * config/mips/mips.md (load_const_gp): Replace with...
23506 (load_const_gp_<mode>): ...this :P-based insn.
23507
23508 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
23509
23510 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
23511 options. Minor fixes.
23512 (-std): Move reference to standards closer to where language
23513 standards are first mentioned.
23514
23515 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
23516
23517 PR rtl-optimization/34995
23518 * reload.c (alternative_allows_const_pool_ref): Take an rtx
23519 parameter and return a bool. If the rtx parameter is nonnull,
23520 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
23521 (find_reloads): Update call accordingly. Pass the new operand
23522 if it needed no address reloads, otherwise pass null.
23523
23524 2008-01-30 Richard Henderson <rth@redhat.com>
23525
23526 PR c/34993
23527 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
23528 for unbounded arrays.
23529
23530 2008-01-30 Silvius Rus <rus@google.com>
23531
23532 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
23533
23534 2008-01-30 Jan Hubicka <jh@suse.cz>
23535
23536 PR target/34982
23537 * i386.c (init_cumulative_args): Use real function declaration when
23538 calling locally.
23539
23540 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
23541
23542 PR rtl-optimization/34998
23543 * global.c (build_insn_chain): Treat non-subreg_lowpart
23544 SUBREGs of pseudos as clobbering all the words covered by the
23545 SUBREG, not just all the bytes.
23546 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
23547 original df_ref rather than an extract parameter.
23548 (global_conflicts): Update call accordingly.
23549
23550 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
23551
23552 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
23553 the overflow check to make it easier to read.
23554 (__fixtfdi): Change the type of the ll member in union
23555 long_double to UDItype_x.
23556
23557 2008-01-30 Jakub Jelinek <jakub@redhat.com>
23558
23559 PR middle-end/34969
23560 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
23561 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
23562 * tree-inline.c (fold_marked_statements): Call
23563 cgraph_update_edges_for_call_stmt if folding a call statement.
23564 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
23565 debug_generic_stmt calls, reset it back afterwards.
23566
23567 PR c/35017
23568 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
23569 static decls.
23570 * c-typeck.c (build_external_ref): Don't pedwarn about
23571 static vars in current function's scope.
23572
23573 2008-01-29 Joseph Myers <joseph@codesourcery.com>
23574
23575 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
23576
23577 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
23578
23579 PR c/35002
23580 * ipa-struct-reorg.c: Fix spelling.
23581 * params.def: Ditto.
23582
23583 2008-01-29 Richard Guenther <rguenther@suse.de>
23584
23585 PR middle-end/35006
23586 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
23587 field.
23588 * tree-inline.c (remap_type): Increment remapping_type_depth
23589 around remapping types.
23590 (copy_body_r): Only add referenced variables if they are referenced
23591 from code, not types.
23592
23593 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
23594
23595 PR c++/34055
23596 PR c++/34103
23597 PR c++/34219
23598 PR c++/34606
23599 PR c++/34753
23600 PR c++/34754
23601 PR c++/34755
23602 PR c++/34919
23603 PR c++/34961
23604 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
23605 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
23606
23607 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
23608
23609 PR target/34412
23610 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
23611 pointer for tiny stack.
23612
23613 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
23614
23615 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
23616
23617 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
23618
23619 * config/vx-common.h: Fix typo in comment.
23620
23621 2008-01-28 Ian Lance Taylor <iant@google.com>
23622
23623 PR c++/34862
23624 PR c++/33407
23625 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
23626 coalesce pointers if they have different DECL_NO_TBAA_P values.
23627 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
23628 between variables with different DECL_NO_TBAA_P values.
23629
23630 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
23631
23632 PR 31535
23633 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
23634 are not legitimate small data references on SPE targets.
23635
23636 2008-01-28 David Daney <ddaney@avtrex.com>
23637
23638 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
23639
23640 2008-01-28 David Daney <ddaney@avtrex.com>
23641
23642 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
23643
23644 2008-01-27 Joseph Myers <joseph@codesourcery.com>
23645
23646 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
23647 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
23648 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
23649 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
23650 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
23651 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
23652 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
23653 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
23654
23655 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
23656
23657 * basic-block.h (condjump_equiv_p): Fix comment.
23658
23659 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
23660
23661 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
23662 print_generic_stmt_indented): Fix comment.
23663
23664 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
23665
23666 * configure.ac (__stack_chk_fail): Add detecion for availability
23667 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
23668 * configure: Regenerate.
23669
23670 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
23671
23672 PR middle-end/34688
23673 * final.c (output_addr_const): Handle TRUNCATE.
23674
23675 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
23676
23677 PR target/34711
23678 * tree-ssa-loop-ivopts.c (comp_cost): New type.
23679 (zero_cost, infinite_cost): New constants.
23680 (struct cost_pair): Change type of cost to comp_cost.
23681 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
23682 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
23683 New functions.
23684 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
23685 split_address_cost, ptr_difference_cost, difference_cost,
23686 get_computation_cost_at, get_computation_cost,
23687 determine_use_iv_cost_generic, determine_use_iv_cost_address,
23688 determine_use_iv_cost_condition, determine_use_iv_costs,
23689 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
23690 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
23691 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
23692 Change type of cost to comp_cost.
23693 (determine_iv_cost): Increase cost of non-original ivs, instead
23694 of decreasing the cost of original ones.
23695 (get_address_cost): Indicate the complexity of the addressing mode
23696 in comp_cost.
23697 (try_add_cand_for): Prefer using ivs not specific to some object.
23698 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
23699
23700 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
23701 Janis Johnson <janis187@us.ibm.com>
23702
23703 PR target/34814
23704 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
23705 (TARGET_INSTANTIATE_DECLS): Likewise.
23706 * target.h (expand_to_rtl_hook): New target hook.
23707 (instantiate_decls): Likewise.
23708 * function.c (instantiate_decl): Make non-static. Rename to...
23709 (instantiate_decl_rtl): ... this.
23710 (instantiate_expr): Use instantiate_decl_rtl.
23711 (instantiate_decls_1): Likewise.
23712 (instantiate_decls): Likewise.
23713 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
23714 * function.h (instantiate_decl_rtl): Add prototype.
23715 * cfgexpand.c (target.h): New include.
23716 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
23717 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
23718 (TARGET_INSTANTIATE_DECLS): Likewise.
23719 (TARGET_INITIALIZER): New target hooks added.
23720 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
23721 New prototype.
23722 * config/rs6000/rs6000.c (tree-flow.h): New include.
23723 (machine_function): Add sdmode_stack_slot field.
23724 (rs6000_alloc_sdmode_stack_slot): New function.
23725 (rs6000_instantiate_decls): Likewise.
23726 (rs6000_secondary_memory_needed_rtx): Likewise.
23727 (rs6000_check_sdmode): Likewise.
23728 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
23729 (TARGET_INSTANTIATE_DECLS): Likewise.
23730 (rs6000_hard_regno_mode_ok): Allow SDmode.
23731 (num_insns_constant): Likewise. Handle _Decimal32 constants.
23732 (rs6000_emit_move): Handle SDmode.
23733 (function_arg_advance): Likewise.
23734 (function_arg): Likewise.
23735 (rs6000_gimplify_va_arg): Likewise. Add special handling of
23736 SDmode var args for 32-bit compiles.
23737 (rs6000_secondary_reload_class): Handle SDmode.
23738 (rs6000_output_function_epilogue): Likewise.
23739 (rs6000_function_value): Simplify if statement.
23740 (rs6000_libcall_value): Likewise.
23741 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
23742 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
23743 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
23744 (movsd_hardfloat): New define_insn.
23745 (movsd_softfloat): Likewise.
23746 (movsd_store): Likewise.
23747 (movsd_load): Likewise.
23748 (extendsddd2): Likewise.
23749 (extendsdtd2): Likewise.
23750 (truncddsd2): Likewise.
23751 (movdd_hardfloat64): Fixup comment.
23752 (UNSPEC_MOVSD_LOAD): New constant.
23753 (UNSPEC_MOVSD_STORE): Likewise.
23754
23755 2008-01-26 Jakub Jelinek <jakub@redhat.com>
23756
23757 PR c++/34965
23758 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
23759 TRUTH_XOR_EXPR.
23760 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
23761 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
23762 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
23763 and TRUTH_XOR_EXPR.
23764
23765 2008-01-26 David Edelsohn <edelsohn@gnu.org>
23766
23767 PR target/34794
23768 * config.gcc: Separate AIX 5.3 from AIX 6.1.
23769 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
23770 __LONGDOUBLE128 too.
23771 * config/rs6000/aix61.h: New file.
23772
23773 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
23774
23775 PR rtl-optimization/34959
23776 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
23777 popcount and parity rtxes the same mode as their operand.
23778 Truncate or extend the result to the return value's mode
23779 if necessary.
23780
23781 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
23782
23783 PR target/34981
23784 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
23785 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
23786 to GOT_VERSION_REGNUM.
23787 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
23788 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
23789 * config/mips/mips.c (mips_emit_call_insn): New function.
23790 (mips_call_tls_get_addr): Call mips_expand_call directly.
23791 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
23792 emit_call_insn.
23793 (mips16_build_call_stub): Likewise. Return the call insn or null.
23794 (mips_expand_call): Update the call to mips16_build_call_stub
23795 accordingly and a remove redundant condition. Assert that MIPS16
23796 stubs do not use lazy binding. Use mips_emit_call_insn and return
23797 the call insn.
23798 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
23799 TARGET_USE_GOT.
23800 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
23801 (mips_avoid_hazard): Remove hazard_set handling.
23802 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
23803 (UNSPEC_RESTORE_GP): ...this.
23804 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
23805 (FAKE_CALL_REGNO): Rename to...
23806 (GOT_VERSION_REGNUM): ...this.
23807 (type): Add "ghost" value. Add an associated insn reservation.
23808 (hazard_set): Remove.
23809 (exception_receiver): Rename to...
23810 (restore_gp): ...this and update the unspec identifier accordingly.
23811 (exception_receiver, nonlocal_got_receiver): New expanders.
23812 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
23813 FAKE_CALL_REGNO. Remove hazard_set attribute.
23814 (set_got_version, update_got_version): New patterns.
23815
23816 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
23817
23818 PR target/34970
23819 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
23820
23821 2008-01-25 Joseph Myers <joseph@codesourcery.com>
23822
23823 PR other/31955
23824 * doc/install.texi2html: Generate gcc-vers.texi.
23825
23826 2008-01-25 DJ Delorie <dj@redhat.com>
23827
23828 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
23829
23830 2008-01-25 Joseph Myers <joseph@codesourcery.com>
23831
23832 * config/c4x: Remove directory.
23833 * config.gcc (crx-*, mt-*): Mark obsolete.
23834 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
23835 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
23836 sh-*-rtemscoff*): Remove cases.
23837 * defaults.h (C4X_FLOAT_FORMAT): Remove.
23838 * real.c (encode_c4x_single, decode_c4x_single,
23839 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
23840 c4x_extended_format): Remove.
23841 * real.h (c4x_single_format, c4x_extended_format): Remove.
23842 * doc/extend.texi (interrupt, naked): Remove mention of attributes
23843 on C4x.
23844 (Pragmas): Remove comment about c4x pragmas.
23845 * doc/install.texi (c4x): Remove target-specific instructions.
23846 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
23847 * doc/md.texi (Machine Constraints): Remove C4x documentation.
23848 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
23849 refer to C4x source files as examples.
23850 (C4X_FLOAT_FORMAT): Remove documentation.
23851
23852 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
23853
23854 * config/bfin/bfin.c (override_options): Reorder tests so that
23855 flag_pic gets enabled for -msep-data.
23856
23857 2008-01-25 Richard Guenther <rguenther@suse.de>
23858
23859 PR middle-end/32244
23860 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
23861 to its bitfield precision if required.
23862
23863 2008-01-25 Jakub Jelinek <jakub@redhat.com>
23864
23865 PR middle-end/33880
23866 * tree-nested.c (walk_omp_for): New function.
23867 (convert_nonlocal_reference, convert_local_reference): Call
23868 walk_omp_for on OMP_FOR.
23869 (convert_call_expr): Call walk_body on OMP_FOR's
23870 OMP_FOR_PRE_INIT_BODY.
23871
23872 2008-01-25 Richard Guenther <rguenther@suse.de>
23873
23874 PR tree-optimization/34966
23875 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
23876 default defs and PHI_NODEs we have to insert after the
23877 defining statement.
23878
23879 2008-01-24 Nick Clifton <nickc@redhat.com>
23880
23881 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
23882 Provide a default definition.
23883 (LIBGCC2_UNITS_PER_WORD): Likewise.
23884
23885 * config/stormy16/stormy16.c: Include df.h for the prototype
23886 for df_regs_ever_live_p.
23887 (xstormy16_expand_builtin_va_start): Convert the stack offset
23888 into a component_ref and then use POINTER_PLUS_EXPR to add it
23889 to the incoming_virtual_args_rtx.
23890 (xstormy16_gimplify_va_arg_expr): Rename to
23891 xstormy16_gimplify_va_arg_expr.
23892 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
23893 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
23894 xstormy16_gimplify_va_arg_expr.
23895 Fix up some formatting issues.
23896
23897 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
23898 Move to predicates.md.
23899 (xs_hi_general_operand): Likewise.
23900 (xs_hi_nonmemory_operand): Likewise.
23901 * config/stormy16/predicates.md:
23902 (xstormy16_carry_plus_operand): New predicate.
23903 (xs_hi_general_operand): New predicate.
23904 (xs_hi_nonmemory_operand): New predicate.
23905 * config/stormy16/stormy16-protos.h:
23906 (xstormy16_carry_plus_operand): Delete prototype.
23907 (xs_hi_general_operand): Likewise.
23908 (xs_hi_nonmemory_operand): Likewise.
23909
23910 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
23911 modifiers as they are no longer needed and they can trigger
23912 reload spill failures.
23913
23914 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
23915 with a match_operand in order to help reload.
23916
23917 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
23918 constraint with 'e' for the 8th alternative as this version of
23919 the mov.w instruction only accepts the lower 8 registers.
23920
23921 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
23922
23923 PR target/34856
23924 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
23925 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
23926 vector elements.
23927
23928 2008-01-25 Jakub Jelinek <jakub@redhat.com>
23929
23930 PR middle-end/33333
23931 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
23932
23933 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
23934
23935 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
23936 New functions.
23937 (remove_structure): Update allocations list before removing structure.
23938
23939 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
23940
23941 * ipa-struct-reorg.c (is_safe_cond_expr,
23942 create_new_stmts_for_cond_expr): Use integer_zerop function,
23943 that recognize not only zero-pointer, but zero-integer too.
23944
23945 2008-01-25 Ben Elliston <bje@au.ibm.com>
23946
23947 PR other/22232
23948 * fixproto: Escape "." in sed expression that strips leading "./".
23949
23950 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
23951
23952 PR driver/34904
23953 * gcc.c (SWITCH_OK): Removed.
23954 (SWITCH_LIVE): Changed to bit.
23955 (SWITCH_FALSE): Likewise.
23956 (SWITCH_IGNORE): Likewise.
23957 (switchstr): Change live_cond to unsigned int.
23958 (process_command): Replace SWITCH_OK with 0.
23959 (do_self_spec): Likewise.
23960 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
23961 (give_switch): Likewise.
23962 (used_arg): Likewise.
23963 (do_spec_1): Set the SWITCH_IGNORE bit.
23964 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
23965 bits. Set the SWITCH_LIVE bit.
23966
23967 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
23968
23969 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
23970
23971 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
23972
23973 PR tree-optimization/34472
23974 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
23975 parameter to a "bool *" and set *DATA to false if there is
23976 an unsafe access. Do not delete the structure here.
23977 (check_cond_exprs): Delete it here instead.
23978 (check_cond_exprs, exclude_cold_structs): Do not increase
23979 I when removing a structure.
23980
23981 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
23982
23983 PR target/34856
23984 * config/i386/i386.c (ix86_expand_vector_init): Consider only
23985 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
23986
23987 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
23988
23989 PR middle-end/34934
23990 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
23991 a fixed vector for stack.
23992
23993 2008-01-24 Ben Elliston <bje@au.ibm.com>
23994
23995 PR c++/25701
23996 * doc/gcc.texi (Software development): Add a direntry for g++.
23997
23998 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
23999
24000 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
24001 stale and straggling -fforce-addr comments above.
24002
24003 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
24004 define.
24005 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
24006 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
24007
24008 2008-01-23 Michael Matz <matz@suse.de>
24009
24010 PR debug/34895
24011 * dwarf2out.c (force_type_die): Use modified_type_die instead of
24012 gen_type_die.
24013
24014 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
24015
24016 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
24017 malloc result type.
24018
24019 2008-01-23 Anatoly Sokolov <aesok@post.ru>
24020
24021 * config/avr/avr.c (avr_current_arch): New variable.
24022 (avr_arch_types): Add 'avr31' and 'avr51' entries.
24023 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
24024 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
24025 (avr_override_options): Init 'avr_current_arch'.
24026 (base_arch_s): Move from here...
24027 * config/avr/avr.h (base_arch_s): ... here. Add new members
24028 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
24029 'mega' to 'have_jmp_call'.
24030 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
24031 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
24032 macros.
24033 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
24034 architectures.
24035 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
24036 MULTILIB_MATCHES): Ditto.
24037
24038 2008-01-23 Richard Guenther <rguenther@suse.de>
24039
24040 PR middle-end/31529
24041 * cgraphunit.c (cgraph_reset_node): Always mark the node
24042 not reachable if it is not queued already.
24043
24044 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
24045
24046 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
24047 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
24048 (cputype_selected): New static variable.
24049 (bfin_handle_option): Set it if -mcpu is used.
24050 (override_option): Select default set of workarounds if no cpu type
24051 selected on the command line.
24052 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
24053
24054 From Michael Frysinger <michael.frysinger@analog.com>
24055 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
24056 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
24057
24058 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
24059 for bf547, bf523, bf524, and bf526.
24060 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
24061 bf526.
24062 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
24063 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
24064 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
24065 __ADSPBF547__ and __ADSPBF54x__ for bf547.
24066 * doc/invoke.texi (Blackfin Options): Document that
24067 -mcpu now accept bf547, bf523, bf524, and bf526.
24068
24069 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
24070
24071 PR rtl-optimization/34628
24072 * combine.c (try_combine): Stop and undo after the first combination
24073 if an autoincrement side-effect on the first insn has effectively
24074 been lost.
24075
24076 2008-01-22 David Edelsohn <edelsohn@gnu.org>
24077
24078 PR target/34529
24079 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
24080 Offset addresses are not valid for Altivec or paired float modes.
24081
24082 2008-01-22 Jakub Jelinek <jakub@redhat.com>
24083
24084 PR c++/34607
24085 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
24086 if DECL_INITIAL (decl) is error_mark_node.
24087
24088 PR c++/34914
24089 * c-common.c (handle_vector_size_attribute): Only allow
24090 integral, scalar float and fixed point types. Handle OFFSET_TYPE
24091 the same way as pointer, array etc. types.
24092 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
24093
24094 PR c++/34917
24095 * tree.c (build_type_attribute_qual_variant): Call
24096 build_qualified_type if attributes are equal, but quals are not.
24097
24098 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
24099
24100 PR 32102
24101 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
24102 * flags.h (warn_strict_aliasing): Remove.
24103 (warn_strict_overflow): Remove.
24104 * opts.c (warn_strict_aliasing): Remove.
24105 (warn_strict_overflow): Remove.
24106 * c-opts.c (c_common_handle_option): -Wall only sets
24107 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
24108 (c_common_post_options): Give default values to -Wstrict-aliasing
24109 and -Wstrict-overflow if they are uninitialized.
24110 * common.opt (Wstrict-aliasing): Specify Var and Init.
24111 (Wstrict-overflow): Likewise.
24112
24113 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
24114
24115 PR rtl-optimization/26854
24116 PR rtl-optimization/34400
24117 PR rtl-optimization/34884
24118 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
24119 DF_RD->gen.
24120 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
24121 (df_rd_bb_info.expanded_lr_out): Deleted
24122 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
24123 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
24124 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
24125 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
24126 Removed code to allocate, initialize or free expanded_lr_out.
24127 (df_rd_bb_local_compute_process_def): Restructured to make more
24128 understandable.
24129 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
24130 sets if the sets are being trimmed.
24131
24132 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
24133
24134 PR bootstrap/32287
24135 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
24136 (as_vers): Likewise.
24137 * configure: Regenerated.
24138
24139 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
24140
24141 PR middle-end/33092
24142 * tree-pass.h (pass_build_alias): New pass.
24143 * tree-ssa-alias.c (gate_build_alias): New.
24144 (pass_build_alias): New.
24145 * passes.c (init_optimization_passes): Add pass_build_alias after
24146 pass_create_structure_vars.
24147
24148 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
24149
24150 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
24151 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
24152 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
24153 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
24154 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
24155 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
24156 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
24157 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
24158 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
24159 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
24160 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
24161 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
24162 * config/s390/s390.md (FP_ALL): New mode iterator.
24163 (_d): New mode attribute.
24164 ("*signbit<mode>2>"): Changed mode of first operand.
24165 ("isinf<mode>2"): Changed mode of first operand.
24166 ("*TDC_insn"): Adaptation for DFP modes.
24167
24168 2008-01-22 Ben Elliston <bje@au.ibm.com>
24169
24170 * tree.c (check_qualified_type): Improve function description.
24171
24172 2008-01-21 Jason Merrill <jason@redhat.com>
24173
24174 PR c++/34196
24175 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
24176 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
24177 if it is set.
24178
24179 2008-01-21 DJ Delorie <dj@redhat.com>
24180
24181 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
24182 return zero.
24183
24184 2008-01-21 Richard Guenther <rguenther@suse.de>
24185
24186 PR middle-end/34856
24187 * tree-cfg.c (verify_expr): Allow all invariant expressions
24188 instead of just constant class ones as reference argument.
24189 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
24190 like any other constant.
24191 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
24192
24193 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
24194
24195 * regmove.c (fixup_match_1): Update call crossed frequencies.
24196
24197 2008-01-21 Richard Guenther <rguenther@suse.de>
24198
24199 PR c/34885
24200 * tree-inline.c (setup_one_parameter): Deal with mismatched
24201 types using a VIEW_CONVERT_EXPR.
24202
24203 2008-01-21 Alon Dayan <alond@il.ibm.com>
24204 Olga Golovanevsky <olga@il.ibm.com>
24205
24206 PR tree-optimization/34701
24207 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
24208 when the structure size is not a power of 2.
24209
24210 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
24211
24212 * doc/install.texi: Add doc for --enable-checking=df.
24213
24214 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
24215
24216 PR rtl-optimization/34808
24217 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
24218
24219 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
24220
24221 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
24222 input.
24223
24224 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
24225
24226 PR rtl-optimization/26854
24227 PR rtl-optimization/34400
24228 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
24229 DF_RD->gen.
24230 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
24231 (df_rd_bb_info.expanded_lr_out): New.
24232 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
24233 * loop_iv.c (iv_analysis_loop_init): Ditto.
24234 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
24235 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
24236 Added code to allocate, initialize or free expanded_lr_out.
24237 (df_rd_bb_local_compute_process_def): Restructured to make
24238 more understandable.
24239 (df_rd_confluence_n): Add code to do nothing with fake edges and
24240 code to no apply invalidate_by_call sets if the sets are being trimmed.
24241 (df_lr_local_finalize): Renamed to df_lr_finalize.
24242 (df_live_local_finalize): Renamed to df_live_finalize.
24243
24244 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
24245
24246 PR target/34831
24247 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
24248 deciding whether to use reciprocal instructions.
24249
24250 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
24251
24252 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
24253 dwarf2out_note_section_used if cold_text_section is NULL.
24254
24255 2008-01-19 Jakub Jelinek <jakub@redhat.com>
24256
24257 PR gcov-profile/34610
24258 * tree-cfg.c (make_edges): Mark both outgoing edges from
24259 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
24260 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
24261 from OMP_FOR and OMP_CONTINUE outgoing edges.
24262
24263 * tree-profile.c (tree_profiling): Return early if
24264 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
24265 at the end.
24266 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
24267 from cfun to child_cfun.
24268 * function.h (struct function): Add after_tree_profile bit.
24269
24270 2008-01-19 Anatoly Sokolov <aesok@post.ru>
24271
24272 * config/avr/avr.S (_exit): Disable interrupt.
24273
24274 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
24275 Steven Bosscher <stevenb.gcc@gmail.com>
24276
24277 PR rtl-optimization/26854
24278 PR rtl-optimization/34400
24279 * df-problems.c (df_live_scratch): New scratch bitmap.
24280 (df_live_alloc): Allocate df_live_scratch when doing df_live.
24281 (df_live_reset): Clear the proper bitmaps.
24282 (df_live_bb_local_compute): Only process the artificial defs once
24283 since the order is not important.
24284 (df_live_init): Init the df_live sets only with the variables
24285 found live by df_lr.
24286 (df_live_transfer_function): Use the df_lr sets to prune the
24287 df_live sets as they are being computed.
24288 (df_live_free): Free df_live_scratch.
24289
24290 2008-01-18 Ian Lance Taylor <iant@google.com>
24291
24292 * common.opt: Add fmerge-debug-strings.
24293 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
24294 flag_merge_debug_strings rather than flag_merge_constants.
24295 * doc/invoke.texi (Option Summary): Mention
24296 -fmerge-debug-strings.
24297 (Debugging Options): Document -fmerge-debug-strings.
24298
24299 2008-01-18 Ian Lance Taylor <iant@google.com>
24300
24301 PR c++/33407
24302 * tree.h (DECL_IS_OPERATOR_NEW): Define.
24303 (struct tree_function_decl): Add new field operator_new_flag.
24304 * tree-inline.c (expand_call_inline): When inlining a call to
24305 operator new, force the return value to go into a variable, and
24306 set DECL_NO_TBAA_P on that variable.
24307 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
24308
24309 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
24310
24311 PR debug/34484
24312 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
24313 DWARF2_DEBUGGING_INFO.
24314 (dwarf2out_note_section_used): Ditto. Add prototype.
24315 (have_multiple_function_sections, text_section_used,
24316 cold_text_section_used, *cold_text_sections): Move declarations
24317 before their uses.
24318
24319 2008-01-17 Bob Wilson <bob.wilson@acm.org>
24320
24321 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
24322 field and add signal_ra.
24323 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
24324 assignments to frame state pc. Move end of stack check after
24325 MD_FALLBACK_FRAME_STATE_FOR.
24326 (uw_update_context_1): Use frame state signal_regs if set, instead
24327 of checking signal_frame flag.
24328 (uw_update_context): Use frame state signal_ra if set.
24329 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
24330 * config/xtensa/linux-unwind.h: New file.
24331
24332 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
24333
24334 * modulo-sched.c (get_sched_window): Fix comment typo.
24335
24336 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
24337
24338 PR tree-optimization/34648
24339 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
24340
24341 2008-01-17 Anatoly Sokolov <aesok@post.ru>
24342
24343 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
24344 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
24345
24346 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
24347
24348 PR rtl-optimization/34400
24349 * df-core.c (df_worklist_dataflow_overeager,
24350 df_worklist_dataflow_doublequeue): New functions.
24351 (df_worklist_dataflow): Two different worklist solvers.
24352 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
24353 New param.
24354
24355 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
24356
24357 PR testsuite/34821
24358 * doc/invoke.texi: Document the dependence on pthread for fopenmp
24359 and ftree-parallelize-loops.
24360
24361 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
24362
24363 PR rtl-optimization/34826
24364 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
24365
24366 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
24367
24368 * global.c (find_reg): Mark the eh regs as used if necessary.
24369 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
24370 * ra.h (struct allocno): no_eh_reg field added. Changed
24371 no_stack_reg type to bitfield.
24372
24373 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
24374
24375 * tree.c (substitute_in_expr): Add missing 'break'.
24376
24377 2008-01-17 Richard Guenther <rguenther@suse.de>
24378
24379 PR tree-optimization/34825
24380 * tree-ssa-math-opts.c (is_division_by): Do not recognize
24381 x / x as division to handle.
24382
24383 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24384
24385 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
24386 "-pthread" is specified.
24387 * pa-hpux11.h (LIB_SPEC): Likewise.
24388
24389 2008-01-16 Janis Johnson <janis187@us.ibm.com>
24390 Peter Bergner <bergner@vnet.ibm.com>
24391
24392 PR rtl-optimization/33796
24393 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
24394
24395 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24396
24397 PR libgfortran/34699
24398 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
24399 static links.
24400 * pa-hpux10.h (LINK_SPEC): Likewise.
24401 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
24402
24403 2008-01-16 Richard Guenther <rguenther@suse.de>
24404
24405 PR middle-end/32628
24406 * fold-const.c (fold_convert_const_int_from_int): Do not
24407 set overflow if that occured only because of a sign extension
24408 change when converting from/to a sizetype with the same
24409 precision and signedness.
24410
24411 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
24412
24413 PR debug/34249
24414 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
24415 location address to the correct place. Update copyright year.
24416
24417 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
24418
24419 * lambda-code.c (lambda_transform_legal_p): Handle the case of
24420 no dependences in the dependence_relations vector.
24421
24422 2008-01-16 Jan Hubicka <jh@suse.cz>
24423
24424 PR rtl-optimization/31396
24425 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
24426 * cfg.c (dump_reg_info): Print it.
24427 * regs.h (struct reg_info_t): add freq_calls_crossed.
24428 (REG_FREQ_CALLS_CROSSED): New macro.
24429 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
24430 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
24431 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
24432 regmove_optimize): Update call crossed frequencies.
24433 * local-alloc.c (struct qty): Add freq_calls_crossed.
24434 (alloc_qty): Copute freq_calls_crossed.
24435 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
24436 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
24437 * ra.h (struct allocno): Add freq_calls_crossed.
24438
24439 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
24440
24441 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
24442 libgomp when compiling with ftree-parallelize-loops.
24443 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
24444
24445 2008-01-16 Richard Guenther <rguenther@suse.de>
24446
24447 PR tree-optimization/34769
24448 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
24449 * tree.c (int_cst_value): Instead make this function more
24450 permissive in what it accepts as valid input. Document this
24451 function always sign-extends the value.
24452
24453 2008-01-16 Jakub Jelinek <jakub@redhat.com>
24454 Richard Guenther <rguenther@suse.de>
24455
24456 PR c/34668
24457 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
24458 (gimple_fold_indirect_ref_rhs): ... this.
24459 (gimple_fold_indirect_ref): New function with foldings
24460 that preserve lvalueness.
24461 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
24462 * tree-flow.h (gimple_fold_indirect_ref): Declare.
24463 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
24464 to fold an INDIRECT_REF, fall back to the old use of
24465 fold_indirect_ref_1.
24466
24467 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
24468
24469 * tree-data-ref.c (subscript_dependence_tester_1): Call
24470 free_conflict_function.
24471 (compute_self_dependence): Same.
24472
24473 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
24474
24475 PR debug/34249
24476 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
24477 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
24478 function global.
24479 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
24480 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
24481 for DWARF2_UNWIND_INFO targets.
24482
24483 2008-01-16 Richard Guenther <rguenther@suse.de>
24484
24485 PR c/34768
24486 * c-typeck.c (common_pointer_type): Do not merge inconsistent
24487 type qualifiers for function types.
24488
24489 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
24490
24491 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
24492 loop_iterator li from previous commit.
24493
24494 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
24495
24496 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
24497
24498 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
24499
24500 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
24501 (parallelize_loops): Don't parallelize irreducible components.
24502
24503 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
24504
24505 PR c++/24924
24506 * c-opts (c_common_post_options): Do not enable CPP
24507 flag_pedantic_errors by default.
24508
24509 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
24510
24511 PR rtl-optimization/31944
24512 * cse.c (remove_pseudo_from_table): New function.
24513 (merge_equiv_classes): Use above function to remove pseudo-registers.
24514 (invalidate): Likewise.
24515
24516 2008-01-13 Richard Guenther <rguenther@suse.de>
24517
24518 PR middle-end/34601
24519 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
24520 instead of TYPE_MODE to deal with calls from expand_one_error_var.
24521
24522 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
24523
24524 * gcse.c (cprop_jump): Call validate_unshare_change instead of
24525 validate_change to unshare the source of the PC set.
24526
24527 2008-01-12 Jan Hubicka <jh@suse.cz>
24528
24529 PR middle-end/32135
24530 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
24531 references above array bounds. This might trigger bounds checks for
24532 pointers to arrays.
24533
24534 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
24535
24536 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
24537 new_replaceable_dependencies.
24538
24539 2008-01-12 Doug Kwan <dougkwan@google.com>
24540
24541 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
24542 instead of OPT_Wreturn_type in warning due to ignored return type
24543 qualifiers.
24544 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
24545 options included in -Wextra.
24546 * c.opt: New option -Wignored_qualifiers.
24547 * doc/invoke.texi (Warning Options, -Wextra): Add new option
24548 -Wignore_qualifiers.
24549 (-Wignored-qualifiers): Document.
24550 (-Wreturn-type): Remove description of functionality now handled
24551 by -Wignored-qualifiers.
24552
24553 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
24554
24555 PR ada/33788
24556 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
24557 NOP_EXPR if it is between integral types with the same precision.
24558
24559 2008-01-12 Jan Hubicka <jh@suse.cz>
24560
24561 PR other/28023
24562 * invoke.texi (max-inline-recursive-depth): Fix default value.
24563
24564 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
24565
24566 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
24567 correct type.
24568
24569 2008-01-11 Bob Wilson <bob.wilson@acm.org>
24570
24571 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
24572
24573 2008-01-11 James E. Wilson <wilson@specifix.com>
24574
24575 PR target/26015
24576 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
24577
24578 2008-01-11 Anatoly Sokolov <aesok@post.ru>
24579
24580 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
24581 save/restore frame pointer register and don't use 'call-prologues'
24582 optimization in function with "OS_task" attribute.
24583
24584 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
24585
24586 PR middle-end/31309
24587 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
24588 when copying to memory.
24589
24590 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
24591
24592 PR rtl-optimization/30905
24593 * cfgcleanup.c: Include dce.h
24594 (crossjumps_occured): New global variable.
24595 (try_crossjump_bb): Exit loop after finding a fallthru edge.
24596 If something changed, set crossjumps_occured to true.
24597 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
24598 Don't add/remove fake edges to exit here...
24599 (cleanup_cfg): ...but do it here, when crossjumping.
24600 Run a fast DCE when successful crossjumps occured in the latest
24601 iteration of try_optimize_cfg.
24602
24603 2008-01-11 Richard Guenther <rguenther@suse.de>
24604
24605 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
24606 (struct vn_unary_op_s): Likewise.
24607 (vn_reference_insert): Free old reference on hash collision.
24608
24609 2008-01-10 Raksit Ashok <raksit@google.com>
24610
24611 PR rtl-optimization/27971
24612 * combine.c (find_split_point): Split PLUS expressions which are
24613 inside a MEM rtx, and whose first operand is complex.
24614
24615 2008-01-10 DJ Delorie <dj@redhat.com>
24616
24617 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
24618 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
24619 (m32c_hard_regno_ok): Call the underlying function.
24620
24621 2008-01-10 Richard Guenther <rguenther@suse.de>
24622
24623 PR middle-end/34683
24624 * tree-cfg.c (tree_merge_blocks): Do not go through the
24625 full-blown folding and stmt updating path if we just deal
24626 with virtual operands.
24627 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
24628 test for abnormal SSA_NAMEs.
24629
24630 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
24631
24632 PR middle-end/34641
24633 * reload.c (push_reload): Add assertions. All constants from
24634 reg_equiv_constant should have been used for replacing the respective
24635 pseudo earlier.
24636 (find_reloads_address): Invoke find_reloads_address_part for
24637 constant taken from the reg_equiv_constant array.
24638
24639 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
24640
24641 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
24642 field (valnum) the first in the struct. Replace bools with
24643 unit bit fields.
24644
24645 2008-01-10 Richard Guenther <rguenther@suse.de>
24646
24647 PR tree-optimization/34651
24648 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
24649 types and ordering for masking and converting.
24650
24651 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
24652
24653 PR tree-optimization/34017
24654 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
24655 also for PHI_NODE expressions.
24656
24657 2008-01-09 Jan Hubicka <jh@suse.cz>
24658
24659 PR tree-optimization/34708
24660 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
24661 based on number of case labels.
24662 (init_inline_once): Remove switch_cost.
24663 * tree-inline.h (eni_weights_d): Remove switch_cost.
24664
24665 2008-01-09 Richard Guenther <rguenther@suse.de>
24666 Andrew Pinski <andrew_pinski@playstation.sony.com>
24667
24668 PR middle-end/30132
24669 * gimplify.c (gimplify_cond_expr): Do not create an addressable
24670 temporary if an rvalue is ok or an lvalue is not required.
24671
24672 2008-01-09 Richard Guenther <rguenther@suse.de>
24673
24674 PR middle-end/34458
24675 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
24676 adjust return type.
24677
24678 2008-01-09 Richard Guenther <rguenther@suse.de>
24679
24680 PR middle-end/34679
24681 * tree.c (host_integerp): Check for sizetype only if the
24682 type is an integer type.
24683
24684 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
24685
24686 PR debug/26364
24687 * opts.c (decode_options): Disable inlining of functions called
24688 once if not in unit-at-a-time mode.
24689
24690 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
24691
24692 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
24693
24694 2008-01-08 Richard Guenther <rguenther@suse.de>
24695
24696 PR middle-end/31863
24697 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
24698 out early if the result will be unused.
24699
24700 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
24701
24702 PR target/34709
24703 Revert:
24704
24705 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
24706 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
24707 for TARGET_RECIP.
24708
24709 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
24710
24711 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
24712 for vectorization tuned.
24713
24714 2008-01-08 Richard Guenther <rguenther@suse.de>
24715
24716 PR tree-optimization/34683
24717 * tree-ssa-operands.c (operand_build_cmp): Export.
24718 * tree-ssa-operands.h (operand_build_cmp): Declare.
24719 * tree-vn.c (vuses_compare): Remove.
24720 (sort_vuses): Use operand_build_cmp.
24721 (sort_vuses_heap): Likewise.
24722 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
24723 to re-use old VEC if available. Do not sort already sorted VUSEs.
24724 (vdefs_to_vec): Do not sort already sorted VDEFs.
24725
24726 2008-01-08 Jakub Jelinek <jakub@redhat.com>
24727
24728 PR middle-end/34694
24729 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
24730
24731 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
24732
24733 PR target/34702
24734 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
24735 limitations of reciprocal sequences on x86 targets.
24736
24737 2008-01-08 Richard Guenther <rguenther@suse.de>
24738
24739 PR tree-optimization/34683
24740 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
24741
24742 2008-01-07 Jakub Jelinek <jakub@redhat.com>
24743
24744 PR target/34622
24745 * config/darwin.c (darwin_mergeable_string_section): Don't use
24746 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
24747
24748 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
24749
24750 PR target/34682
24751 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
24752 negxf2. Macroize expander using X87MODEF mode iterator. Change
24753 predicates of op0 and op1 to register_operand.
24754 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
24755 expander using X87MODEF mode iterator. Change predicates of
24756 op0 and op1 to register_operand.
24757 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
24758 corresponding patterns and macroize using MODEF macro. Change
24759 predicates of op0 and op1 to register_operand and remove
24760 "m" constraint. Disparage "r" alternative with "!".
24761 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
24762 macroize using X87MODEF macro. Change predicates of op0 and op1
24763 to register_operand and remove "m" constraint. Disparage "r"
24764 alternative with "!".
24765 (absneg splitter with memory operands): Remove.
24766 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
24767 patterns and macroize using X87MODEF mode iterator.
24768 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
24769 Change predicate of op1 to register_operand.
24770 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
24771 for memory operands.
24772
24773 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
24774
24775 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
24776
24777 2008-01-07 Richard Guenther <rguenther@suse.de>
24778
24779 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
24780 fields.
24781
24782 2008-01-07 Richard Guenther <rguenther@suse.de>
24783
24784 PR tree-optimization/34683
24785 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
24786 VOPs of the needed size to save memory. Use VEC_quick_push
24787 to save compile-time.
24788 (vdefs_to_vec): Likewise.
24789
24790 2008-01-07 Sa Liu <saliu@de.ibm.com>
24791
24792 * config/spu/spu.md (divdf3): Genetate inline code for double
24793 division. The implementation doesn't handle INF or NAN, therefore it
24794 only applies when -ffinite-math-only is given.
24795
24796 2008-01-06 Paolo Carlini <pcarlini@suse.de>
24797
24798 PR libstdc++/34680
24799 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
24800 * doc/cpp.texi ([Common Predefined Macros]): Document.
24801
24802 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
24803
24804 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
24805 order to use commutative addition instead of subtraction.
24806
24807 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
24808 Mircea Namolaru <namolaru@il.ibm.com>
24809 Vladimir Yanovsky <yanov@il.ibm.com>
24810 Revital Eres <eres@il.ibm.com>
24811
24812 PR tree-optimization/34263
24813 * tree-outof-ssa.c (process_single_block_loop_latch,
24814 contains_tree_r): New functions.
24815 (analyze_edges_for_bb): Call process_single_block_loop_latch
24816 function to empty single-basic-block latch block if possible.
24817
24818 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
24819
24820 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
24821 for TARGET_RECIP.
24822 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
24823
24824 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
24825
24826 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
24827
24828 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
24829
24830 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
24831
24832 2008-01-05 Jakub Jelinek <jakub@redhat.com>
24833
24834 PR tree-optimization/34618
24835 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
24836 flag from T.
24837
24838 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
24839
24840 PR target/34673
24841 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
24842 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
24843 Update copyright year.
24844
24845 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
24846 Update copyright year.
24847 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
24848 using NR fixup.
24849
24850 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
24851
24852 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
24853 edge does not point to current bb before changing need_assert.
24854
24855 2008-01-04 Richard Guenther <rguenther@suse.de>
24856
24857 PR middle-end/34029
24858 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
24859 for verifying purposes if they are is_gimple_min_invariant.
24860
24861 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
24862
24863 PR tree-optimization/34448
24864 PR tree-optimization/34465
24865 * gimplify.c (gimplify_init_constructor): Add new parameter
24866 notify_temp_creation. Use it.
24867 (gimplify_modify_expr_rhs): Take volatiles into account when
24868 optimizing constructors.
24869 Do not optimize constructors if gimplify_init_constructor will dump to
24870 memory.
24871 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
24872 * gcc.c-torture/compile/pr34448.c: New.
24873
24874 2008-01-04 Jakub Jelinek <jakub@redhat.com>
24875
24876 PR gcov-profile/34609
24877 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
24878 return_slot if result is TREE_ADDRESSABLE.
24879
24880 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
24881
24882 * config/mips/mips.md (sqrt_condition): Tweak comment.
24883 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
24884
24885 2008-01-03 Tom Tromey <tromey@redhat.com>
24886
24887 PR c/34457
24888 * c-common.c (c_type_hash): Handle VLAs.
24889
24890 2008-01-03 Jan Hubicka <jh@suse.cz>
24891
24892 PR tree-optimization/31081
24893 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
24894 0 when inlining and not inlining to first basic block.
24895 (remap_decl): When var is initialized to 0, don't set default_def.
24896 (expand_call_inline): Set entry_bb.
24897 * tree-inline.h (copy_body_data): Add entry_bb.
24898
24899 2008-01-03 Jakub Jelinek <jakub@redhat.com>
24900
24901 PR c++/34619
24902 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
24903 before returning.
24904
24905 PR tree-optimization/29484
24906 * tree-inline.c (inline_forbidden_p_2): New function.
24907 (inline_forbidden_p): Disallow inlining if some static var
24908 has an address of a local LABEL_DECL in its initializer.
24909 * doc/extend.texi (Labels as Values): Document &&foo behaviour
24910 vs. inlining.
24911
24912 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
24913
24914 PR tree-optimization/34635
24915 * tree-data-ref.c (add_other_self_distances): Make sure that the
24916 evolution step is constant.
24917
24918 2008-01-03 Jakub Jelinek <jakub@redhat.com>
24919
24920 PR middle-end/34608
24921 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
24922
24923 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
24924
24925 * tree-sra.c (scalarize_init): Insert the generate_element_init
24926 statements after the generate_element_zero statements.
24927
24928 2008-01-02 Richard Guenther <rguenther@suse.de>
24929
24930 PR middle-end/34093
24931 PR middle-end/31976
24932 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
24933 for very large number of operands instead of ICEing.
24934
24935 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
24936
24937 PR target/34013
24938 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
24939 while stack probing.
24940
24941 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
24942
24943 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
24944 in C++0x mode.
24945
24946 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
24947
24948 PR libmudflap/26442
24949 * tree-mudflap.c (mx_register_decls): Guard warning by
24950 !DECL_ARTIFICIAL check.
24951
24952 2008-01-01 Jakub Jelinek <jakub@redhat.com>
24953
24954 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
24955 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
24956 sse5_perm<mode>): Fix constraints.