tree.c (contains_placeholder_p): Return 0 for a SAVE_EXPR.
[gcc.git] / gcc / ChangeLog
1 2008-10-01 Geert Bosch <bosch@adacore.com>
2
3 * tree.c (contains_placeholder_p): Return 0 for a SAVE_EXPR.
4
5 2008-10-01 Richard Guenther <rguenther@suse.de>
6
7 PR tree-optimization/37617
8 * tree-ssa-pre.c (create_expression_by_pieces): During FRE
9 do not add to the NEW_SETS.
10
11 2008-10-01 Richard Guenther <rguenther@suse.de>
12
13 PR middle-end/37285
14 * tree-vrp.c (execute_vrp): If we optimized away the default
15 case make sure to promote the label that got in place of it
16 to a default case label.
17
18 2008-10-01 Richard Henderson <rth@redhat.com>
19
20 PR tree-opt/35737
21 * tree-complex.c (set_component_ssa_name): Don't optimize
22 is_gimple_min_invariant values with ssa_names in abnormal phis.
23
24 2008-09-30 Paolo Bonzini <bonzini@gnu.org>
25
26 PR tree-optimization/37662
27 * tree-ssa-ccp.c (fold_gimple_assign): Invert the operands of a
28 commutative binary operation if they are in the wrong order and
29 fold_build2 produces non-GIMPLE.
30
31 2008-09-30 Jakub Jelinek <jakub@redhat.com>
32
33 PR tree-optimization/37662
34 PR tree-optimization/37663
35 * tree-vrp.c (simplify_truth_ops_using_ranges): Don't call
36 get_value_range with non-SSA_NAME. Don't assert operands have been
37 folded, instead just bail out.
38
39 2008-09-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
40
41 * config/rs6000/rs6000.md (fnmadds combiner): Revert typo.
42
43 2008-09-30 Richard Guenther <rguenther@suse.de>
44
45 PR middle-end/37491
46 * tree-vect-transform.c (vect_create_data_ref_ptr): Properly
47 build restrict-qualified pointers.
48 (vectorizable_store): Move alias check later.
49 (vectorizable_load): Likewise.
50
51 2008-09-30 Paolo Bonzini <bonzini@gnu.org>
52
53 * c-common.c (empty_if_body_warning): Remove.
54 * c-common.h (empty_if_body_warning): Remove.
55 * c-parser.c (c_parser_if_body, c_parser_else_body): Implement
56 here the -Wempty-body warning for `if' and `else' statements.
57 * c-typeck.c (c_finish_if_stmt): Do not call empty_body_warning.
58
59 2008-09-29 H.J. Lu <hongjiu.lu@intel.com>
60
61 * config/i386/i386.opt: Add msse2avx.
62
63 * config/i386/linux.h (ASM_SPEC): New. Support -msse2avx.
64 * config/i386/linux64.h (ASM_SPEC): Likewise.
65
66 * doc/invoke.texi: Document -msse2avx.
67
68 2008-09-29 Eric Botcazou <ebotcazou@adacore.com>
69
70 * dwarf2out.c (constant_size): Use HOST_WIDE_INT in parameter type.
71
72 2008-09-29 Joseph Myers <joseph@codesourcery.com>
73
74 * ifcvt.c (noce_emit_store_flag): If using condition from original
75 jump, reverse it if if_info->cond was reversed.
76
77 2008-09-29 Eric Botcazou <ebotcazou@adacore.com>
78
79 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
80 non-constant memory if it cannot be forced to constant memory.
81 Overhaul surrounding code and factor out common condition.
82
83 2008-09-29 Jeff Law <law@redhat.com>
84
85 * reload1.c (alter_reg): Add missing curly braces.
86
87 2008-09-29 Michael J. Eager <eager@eagercon.com>
88
89 * config/rs6000/predicates.md (easy_fp_constant): Single FP consts
90 are easy.
91 * config/rs6000/rs6000.c (rs6000_override_options): Move
92 rs6000_init_hard_regno_mode_ok after all options changed.
93 Set rs6000_single_float, rs6000_double_float if TARGET_HARD_FLOAT.
94 (rs6000_handle_option): Process -msingle-float, -mdouble-float,
95 -msimple-fpu flags. Add warning messages if single FP not configured.
96 (rs6000_file_start): Output gnu_attribute for single-float.
97 (legitimate_lo_sum_address_p): Condition on TARGET_DOUBLE_FLOAT.
98 (rs6000_legitimize_address): Likewise.
99 (rs6000_legitimize_reload_address): Likewise.
100 (rs6000_emit_move): Condition on TARGET_DOUBLE_FLOAT,
101 TARGET_SINGLE_FLOAT.
102 (function_arg_advance): Likewise (partial conversion).
103 (setup_incoming_varargs): Condition on TARGET_DOUBLE_FLOAT.
104 (rs6000_gimplify_va_arg): Condition on TARGET_DOUBLE_FLOAT,
105 TARGET_SINGLE_FLOAT.
106 (rs6000_split_multireg_move): Condition on TARGET_DOUBLE_FLOAT.
107 (rs6000_emit_prologue): Likewise.
108 (rs6000_function_value): Condition on TARGET_DOUBLE_FLOAT,
109 TARGET_SINGLE_FLOAT.
110 (rs6000_libcall_value): Likewise.
111 * config/rs6000/rs6000.h (TARGET_SINGLE_FLOAT): New default to 1.
112 (TARGET_DOUBLE_FLOAT): New default to 1
113 (TARGET_SIMPLE_FPU): New default to 0
114 (TARGET_SINGLE_FPU): New default to 0
115 (TARGET_SINGLE_FLOAT_MODE): New.
116 (TARGET_DOUBLE_FLOAT_MODE): New.
117 * config/rs6000/singlefp.h: New; redefine TARGET_SINGLE_FLOAT,
118 TARGET_DOUBLE_FLOAT, TARGET_SIMPLE_FPU, TARGET_SINGLE_FPU,
119 UNITS_PER_FP_WORD
120 * config/rs6000/rs6000.md (define_mode_iterator): Condition on
121 TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
122 (extendsfdf2, extendsfdf2_fpr, truncdfsf2, truncdfsf2_fpr,
123 copysigndf3,fseldfsf4, negdf2, negdf2_fpr, absdf2, absdf2_fpr,
124 nabsdf2_fpr, adddf3, adddf3_fpr, subdf3, subdf3_fpr, muldf3,
125 muldf3_fpr, divdf3, divdf3_fpr, sqrtdf2, smaxdf3, smindf3,
126 movdfcc, *fseldfdf4, floatsidf2, *floatsidf2_internal,
127 floatunssidf2, *floatunssidf2_internal, fix_truncdfsi2,
128 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
129 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2,
130 rounddf2, floatdidf2, floatsidf_ppc64_mfpgpr, floatsidf_ppc64,
131 floatunssidf_ppc64, fix_truncdfdi2, movdf_hardfloat32,
132 movdf_hardfloat64_mfpgpr, movdf_hardfloat64, extenddftf2_fprs,
133 extenddftf2_internal, trunctfdf2_internal2, fix_trunc_helper,
134 abstf2_internal, movdf_update1, movdf_update2, cmpdf_internal1,
135 cmptf_internal1, *cmptf_internal2): Condition on
136 TARGET_DOUBLE_FLOAT.
137 (aux_truncdfsf2, negsf2, *negsf2, abssf2, *abssf2, addsf3, subsf3,
138 mulsf3, divsf3, sqrtsf2, copysignsf3, smaxsf3, sminsf3, movsfcc,
139 *fselsfsf4, fixuns_truncsfsi2, fix_truncsfsi2, floatunssisf2,
140 btruncsf2, ceilsf2, floorsf2, roundsf2, floatdisf2_internal1,
141 floatdisf2_internal2, *movsf_hardfloat, trunctfsf2_fprs,
142 *movsf_update1, *movsf_update2, *cmpsf_internal1): Condition on
143 TARGET_SINGLE_FLOAT.
144 (divsf3, sqrtsf2, divdf3, divdf3_fpr): Condition on TARGET_SIMPLE_FPU.
145 * config/rs6000/rs6000.opt (-msingle-float): New.
146 (-mdouble-float): New.
147 (-msimple-fpu): New.
148 * doc/invoke.texi (RS/6000 and PowerPC Options): Add
149 -msingle-float, -mdouble-float, -msimple-fpu options.
150 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Set
151 _SOFT_DOUBLE for -msingle-float.
152 * config.gcc: New config for target=powerpc-xilinx-eabi.
153
154 2008-09-29 Tobias Grosser <grosser@fim.uni-passau.de>
155
156 * graphite.c (dot_all_scops_1): Remove unused checks. SCoPs always have
157 exit and entry.
158 (new_scop): Take entry and exit edge to define new SCoP.
159 (sd_region_p): New structure used during SCoP detection.
160 (move_scops): Delete.
161 (move_sd_regions): New.
162 (scopdet_info): Change the definition from edges back to basic_blocks.
163 (scopdet_edge_info): Work on basic_blocks and rename to
164 scopdet_basic_block_info.
165 (split_difficult_bb): At the moment removed. We should later
166 add it at another place.
167 (build_scops_1): Work on basic_blocks.
168 (bb_in_sd_region): New.
169 (find_single_entry_edge): New.
170 (find_single_exit_edge): New.
171 (create_single_entry_edge): New.
172 (sd_region_without_exit): New.
173 (create_single_exit_edge): New.
174 (unmark_exit_edges): New.
175 (mark_exit_edges): New.
176 (create_sese_edges): New.
177 (build_graphite_scops): New.
178 (build_scops): Make SCoPs SESE.
179 (limit_scops): Use the new functions.
180
181 2008-09-29 Hans-Peter Nilsson <hp@axis.com>
182
183 * config/cris/cris.h (IRA_COVER_CLASSES): Define.
184
185 2008-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
186
187 PR target/37640
188 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Force
189 address to a register before taking the lower part.
190
191 2008-09-28 Kaz Kojima <kkojima@gcc.gnu.org>
192
193 * config/sh/sh.h (OVERRIDE_OPTIONS): Unset flag_dwarf2_cfi_asm
194 for SHmedia.
195
196 2008-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
197 Kaushal Kantawala <kaushal_kantawala@playstation.sony.com>
198
199 PR tree-opt/36891
200 * tree-ssa-loop-im.c (rewrite_reciprocal): Set DECL_GIMPLE_REG_P on
201 the newly created variable.
202 Create a VECTOR_CST of all 1s for vector types.
203
204 2008-09-28 Eric Botcazou <ebotcazou@adacore.com>
205
206 PR middle-end/36575
207 * fold-const.c (div_and_round_double) <ROUND_DIV_EXPR>: Fix typo.
208
209 2008-09-28 Eric Botcazou <ebotcazou@adacore.com>
210
211 * expmed.c (store_fixed_bit_field): Always use convert_to_mode in
212 order to convert between modes.
213 (extract_bit_field_1): Test TRULY_NOOP_TRUNCATION on the right mode.
214
215 2008-09-27 Kaz Kojima <kkojima@gcc.gnu.org>
216
217 * config/sh/sh.c (sh_gimplify_va_arg_expr): Use VIEW_CONVERT_EXPR
218 if needed.
219
220 2008-09-26 Vladimir Makarov <vmakarov@redhat.com>
221
222 Revert:
223 2008-09-25 Vladimir Makarov <vmakarov@redhat.com>
224 * ira-lives.c:...
225 * doc/rtl.texi:...
226
227 2008-09-26 Adam Nemet <anemet@caviumnetworks.com>
228
229 * config/mips/mips.h (ISA_HAS_DMUL3, ISA_HAS_BADDU, ISA_HAS_BBIT,
230 ISA_HAS_CINS, ISA_HAS_EXTS, ISA_HAS_SEQ_SNE, ISA_HAS_POP): Change
231 them to yield false with MIPS16.
232
233 2008-09-26 Jakub Jelinek <jakub@redhat.com>
234
235 PR middle-end/37275
236 * dwarf2out.c (tls_mem_loc_descriptor): New function.
237 (mem_loc_descriptor): Use it for MEM. For PLUS fail if second
238 mem_loc_descriptor failed. Accept UNSPEC.
239 (loc_descriptor): Use tls_mem_loc_descriptor for MEM. For PARALLEL
240 fail if one of the loc_descriptor calls for pieces failed.
241 (loc_descriptor_from_tree_1): Handle even DECL_EXTERNAL __thread vars,
242 as long as they bind locally. For COMPONENT_REF, ARRAY_REF etc. fail
243 if loc_descriptor_from_tree_1 on offset failed.
244
245 PR middle-end/37576
246 * opts.c (common_handle_option): Don't call print_specific_help with
247 CL_SAVE as first argument.
248
249 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
250 Steve Ellcey <sje@cup.hp.com>
251
252 * configure: Regenerate for new libtool.
253 * aclocal.m4: Ditto.
254
255 2008-09-26 Pat Haugen <pthaugen@us.ibm.com>
256
257 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Use correct
258 alias set on MEM when saving stack pointer.
259 * config/rs6000/rs6000.md (allocate_stack): Likewise
260
261 2008-09-26 Dorit Nuzman <dorit@il.ibm.com>
262
263 PR tree-optimization/37574
264 * tree-vectorizer.c (vect_is_simple_use): Fix indentation.
265 * tree-vect-transform.c (vect_get_constant_vectors): Use vectype
266 instead of vector_type for constants. Take computation out of loop.
267 (vect_get_vec_def_for_operand): Use only vectype for constant case,
268 and use only vector_type for invariant case.
269 (get_initial_def_for_reduction): Use vectype instead of vector_type.
270
271 2008-09-25 Jakub Jelinek <jakub@redhat.com>
272
273 PR c/37645
274 * c-common.c (handle_weakref_attribute): Ignore the attribute unless
275 the decl is a VAR_DECL or FUNCTION_DECL.
276
277 2008-09-25 Vladimir Makarov <vmakarov@redhat.com>
278
279 PR middle-end/37535
280 * ira-lives.c (mark_reg_live, mark_reg_dead): New functions.
281 (mark_ref_live, mark_ref_dead): Use them.
282 (def_conflicts_with_inputs_p): Remove.
283 (mark_early_clobbers): New function.
284 (process_bb_node_lives): Call preprocess_constraints and
285 mark_early_clobbers.
286
287 * doc/rtl.texi (clobber): Change how RA deals with clobbers.
288
289 2008-09-25 Vladimir Makarov <vmakarov@redhat.com>
290
291 PR middle-end/37448
292 * ira-int.h (IRA_ALLOCNO_TEMP): Rename to ALLOCNO_TEMP.
293 (ira_compress_allocno_live_ranges): New prototype.
294
295 * ira-color.c: Rename IRA_ALLOCNO_TEMP to ALLOCNO_TEMP.
296 (coalesced_allocnos_living_at_program_points): New.
297 (coalesced_allocnos_live_at_points_p,
298 set_coalesced_allocnos_live_points): New functions.
299 (coalesce_spill_slots): Rewrite.
300
301 * ira-lives.c (remove_some_program_points_and_update_live_ranges,
302 ira_compress_allocno_live_ranges): New functions.
303
304 * ira-build.c (ira_flattening): Call
305 ira_compress_allocno_live_ranges.
306 (ira_build): Ditto.
307
308 2008-09-25 H.J. Lu <hongjiu.lu@intel.com>
309
310 * config/i386/i386.md: Check cmp/branch fuse for cmp peephole
311 optimization.
312
313 2008-09-25 Richard Sandiford <rdsandiford@googlemail.com>
314
315 * combine.c (make_compound_operation): Handle the 'E' format.
316 (count_rtxs): Likewise.
317 (update_table_tick): Likewise.
318 (get_last_value_validate): Likewise.
319
320 2008-09-25 Eric Botcazou <ebotcazou@adacore.com>
321
322 * dbxout.c (dbxout_parms): Fetch the inner REG inside a PARALLEL.
323
324 2008-09-25 Sergei Dyshel <sergeid@il.ibm.com>
325
326 * matrix-reorg.c (transform_allocation_sites): Initializers
327 added to avoid the warning.
328
329 2008-09-25 Martin Jambor <mjambor@suse.cz>
330
331 * cgraph.c (free_nodes): New variable.
332 (NEXT_FREE_NODE): New macro.
333 (cgraph_create_node): Reuse nodes from the free list. Do not
334 update uid if doing so.
335 (cgraph_remove_node): Add the node to the free list.
336
337 2008-09-25 Gerald Pfeifer <gerald@pfeifer.com>
338
339 * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
340
341 2008-09-24 Richard Henderson <rth@redhat.com>
342
343 * dwarf2.h (DW_OP_GNU_encoded_addr): New.
344 * unwind-dw2.c (execute_stack_op): Handle it.
345
346 2008-09-24 David Edelsohn <edelsohn@gnu.org>
347
348 Revert:
349 2008-09-24 Michael J. Eager <eager@eagercon.com>
350
351 2008-09-24 Aldy Hernandez <aldyh@redhat.com>
352
353 * c-common.c (fname_decl): New location argument.
354 * c-common.h (fname_decl): Same.
355 * c-parser.c (c_lex_one_token): Use {warning,error}_at instead of
356 {warning,error}.
357 (c_parser_typeof_specifier): Same.
358 (c_parser_parms_list_declarator): Same.
359 (c_parser_asm_string_literal): Same.
360 (c_parser_compound_statement_nostart): Same.
361 (c_parser_label): Same.
362 (c_parser_do_statement): Same.
363 (c_parser_asm_statement): Same.
364 (c_parser_unary_expression): Same.
365 (c_parser_sizeof_expression): Same.
366 (c_parser_postfix_expression): Same.
367 (c_parser_pragma): Same.
368 (c_parser_omp_clause_collapse): Same.
369 (c_parser_omp_clause_num_threads): Same.
370 (c_parser_omp_clause_schedule): Same.
371 (c_parser_omp_all_clauses): Same.
372 (c_parser_omp_sections_scope): Same.
373 (c_parser_omp_for_loop): Same. Pass condition's location to
374 c_objc_common_truthvalue_conversion.
375 (c_parser_enum_specifier): Remove comment.
376
377 2008-09-24 Michael J. Eager <eager@eagercon.com>
378
379 * config/rs6000/predicates.md (easy_fp_constant): Single FP consts
380 are easy.
381 * config/rs6000/rs6000.c (rs6000_override_options): Move
382 rs6000_init_hard_regno_mode_ok after all options changed.
383 Set rs6000_single_float, rs6000_double_float if TARGET_HARD_FLOAT.
384 (rs6000_handle_option): Process -msingle-float, -mdouble-float,
385 -msimple-fpu flags. Add warning messages if single FP not configured.
386 (rs6000_file_start): Output gnu_attribute for single-float.
387 (legitimate_lo_sum_address_p): Condition on TARGET_DOUBLE_FLOAT.
388 (rs6000_legitimize_address): Likewise.
389 (rs6000_legitimize_reload_address): Likewise.
390 (rs6000_emit_move): Condition on TARGET_DOUBLE_FLOAT,
391 TARGET_SINGLE_FLOAT.
392 (function_arg_advance): Likewise.
393 (function_arg): Likewise.
394 (setup_incoming_varargs): Condition on TARGET_DOUBLE_FLOAT.
395 (rs6000_gimplify_va_arg): Condition on TARGET_DOUBLE_FLOAT,
396 TARGET_SINGLE_FLOAT.
397 (rs6000_split_multireg_move): Condition on TARGET_DOUBLE_FLOAT.
398 (rs6000_emit_prologue): Likewise.
399 (rs6000_function_value): Condition on TARGET_DOUBLE_FLOAT,
400 TARGET_SINGLE_FLOAT.
401 (rs6000_libcall_value): Likewise.
402 * config/rs6000/rs6000.h (TARGET_SINGLE_FLOAT): New default to 1.
403 (TARGET_DOUBLE_FLOAT): New default to 1
404 (TARGET_SIMPLE_FPU): New default to 0
405 (TARGET_SINGLE_FPU): New default to 0
406 (TARGET_SINGLE_FLOAT_MODE): New.
407 (TARGET_DOUBLE_FLOAT_MODE): New.
408 * config/rs6000/singlefp.h: New; redefine TARGET_SINGLE_FLOAT,
409 TARGET_DOUBLE_FLOAT, TARGET_SIMPLE_FPU, TARGET_SINGLE_FPU,
410 UNITS_PER_FP_WORD
411 * config/rs6000/rs6000.md (define_mode_iterator): Condition on
412 TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
413 (extendsfdf2, extendsfdf2_fpr, truncdfsf2, truncdfsf2_fpr,
414 copysigndf3,fseldfsf4, negdf2, negdf2_fpr, absdf2, absdf2_fpr,
415 nabsdf2_fpr, adddf3, adddf3_fpr, subdf3, subdf3_fpr, muldf3,
416 muldf3_fpr, divdf3, divdf3_fpr, sqrtdf2, smaxdf3, smindf3,
417 movdfcc, *fseldfdf4, floatsidf2, *floatsidf2_internal,
418 floatunssidf2, *floatunssidf2_internal, fix_truncdfsi2,
419 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
420 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2,
421 rounddf2, floatdidf2, floatsidf_ppc64_mfpgpr, floatsidf_ppc64,
422 floatunssidf_ppc64, fix_truncdfdi2, movdf_hardfloat32,
423 movdf_hardfloat64_mfpgpr, movdf_hardfloat64, extenddftf2_fprs,
424 extenddftf2_internal, trunctfdf2_internal2, fix_trunc_helper,
425 abstf2_internal, movdf_update1, movdf_update2, cmpdf_internal1,
426 cmptf_internal1, *cmptf_internal2): Condition on
427 TARGET_DOUBLE_FLOAT.
428 (aux_truncdfsf2, negsf2, *negsf2, abssf2, *abssf2, addsf3, subsf3,
429 mulsf3, divsf3, sqrtsf2, copysignsf3, smaxsf3, sminsf3, movsfcc,
430 *fselsfsf4, fixuns_truncsfsi2, fix_truncsfsi2, floatunssisf2,
431 btruncsf2, ceilsf2, floorsf2, roundsf2, floatdisf2_internal1,
432 floatdisf2_internal2, *movsf_hardfloat, trunctfsf2_fprs,
433 *movsf_update1, *movsf_update2, *cmpsf_internal1): Condition on
434 TARGET_SINGLE_FLOAT.
435 (divsf3, sqrtsf2, divdf3, divdf3_fpr): Condition on TARGET_SIMPLE_FPU.
436 * config/rs6000/rs6000.opt (-msingle-float): New.
437 (-mdouble-float): New.
438 (-msimple-fpu): New.
439 * doc/invoke.texi (RS/6000 and PowerPC Options): Add
440 -msingle-float, -mdouble-float, -msimple-fpu options.
441 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Set
442 _SOFT_DOUBLE for -msingle-float.
443 * config.gcc: New config for target=powerpc-xilinx-eabi.
444
445 2008-09-23 Eric Botcazou <ebotcazou@adacore.com>
446
447 * config/sparc/constraints.md: New file.
448 * config/sparc/sparc.md: Include it.
449 * config/sparc/sparc-protos.h (memory_ok_for_ldd): Declare.
450 (sparc_extra_constraint_check): Delete.
451 * config/sparc/sparc.c (register_ok_for_ldd): Minor tweaks.
452 (memory_ok_for_ldd): New predicate.
453 (sparc_extra_constraint_check): Delete.
454 * config/sparc/sparc.h (REG_CLASS_FROM_LETTER): Likewise.
455 (CONST_OK_FOR_LETTER_P): Likewise.
456 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
457 (EXTRA_CONSTRAINT): Likewise.
458
459 2008-08-23 Steve Ellcey <sje@cup.hp.com>
460
461 * regrename.c (do_replace): Copy REG_POINTER value to new reg.
462
463 2008-09-23 Richard Sandiford <rdsandiford@googlemail.com>
464
465 * alias.c (find_base_value): Use FIND_BASE_TERM.
466 * doc/tm.texi (FIND_BASE_TERM): Update documentation.
467
468 2008-09-23 Richard Sandiford <rdsandiford@googlemail.com>
469
470 * config/i386/i386.c: Include cselib.h.
471 (ix86_pic_register_p): New function.
472 (ix86_delegitimize_address): Use it to check for the PIC register.
473
474 2008-09-23 Richard Sandiford <rdsandiford@googlemail.com>
475
476 * doc/tm.texi (FIND_BASE_TERM): Expand documentation.
477 * config/i386/i386.c (ix86_find_base_term): Don't check for
478 SYMBOL_REF and LABEL_REF.
479
480 2008-09-23 Richard Sandiford <rdsandiford@googlemail.com>
481
482 * config/i386/i386.c (ix86_delegitimize_address): Wrap the
483 constant PLUS in a CONST.
484
485 2008-09-23 Kai Tietz <kai.tietz@onevision.com>
486
487 * config/i386/i386.c (ix86_function_ok_for_sibcall): Correct
488 check for sibcall support for w64.
489
490 2008-09-23 Eric Botcazou <ebotcazou@adacore.com>
491
492 * c-ppoutput.c (cb_used_define): Do nothing for a builtin node.
493
494 2008-09-23 Aldy Hernandez <aldyh@redhat.com>
495
496 * c-tree.h: Add argument to c_objc_common_truthvalue_conversion,
497 parser_build_binary_op.
498 * c-decl.c (build_enumerator): Pass location to build_binary_op.
499 * c-typeck.c (build_array_ref): Same.
500 (parser_build_unary_op): New location argument.
501 (pointer_diff): Pass location to build_binary_op,
502 c_objc_common_truthvalue_conversion.
503 (build_modify_expr): Same.
504 (build_unary_op): New location argument.
505 (build_binary_op): New location argument.
506 (c_objc_common_truthvalue_conversion): Pass location to
507 c_*common_truthvalue_conversion.
508 * c-convert.c (convert): Same.
509 * c-common.c (binary_op_error): New location argument.
510 (pointer_int_sum): Pass location to build_binary_op.
511 (c_common_truthvalue_conversion): New location argument.
512 (warn_for_sign_compare): Same.
513 * c-common.h: Add location argument to c_common_truthvalue_conversion,
514 binary_op_error, build_binary_op, warn_for_sign_compare.
515 * c-parser.c (c_parser_condition): Pass location to
516 c_*common_truthvalue_conversion.
517 (c_parser_conditional_expression): Save condition's location and pass
518 it on down.
519 (c_parser_binary_expression): Same, but for the binary operator's
520 location.
521 (c_parser_omp_for_loop): Pass location to
522 c_objc_common_truthvalue_conversion.
523
524 2008-09-23 Martin Jambor <mjambor@suse.cz>
525
526 * cgraph.c (cgraph_free_edge): Use sizeof(*e).
527 (cgraph_node_remove_callees): New temporary f. Hold the next item
528 in f when looping.
529 (cgraph_node_remove_callers): Likewise.
530
531 * ipa-prop.c (ipa_edge_removal_hook): Use ATTRIBUTE_UNUSED.
532 (ipa_node_removal_hook): Likewise.
533
534 * doc/gimple.texi (gimple_copy_call_skip_args): Changed to
535 gimple_call_copy_skip_args and moved to the gimple_call section.
536 * gimple.c (gimple_copy_call_skip_args): Renamed to
537 gimple_call_copy_skip_args. Changed al users.
538
539 2008-09-22 Vladimir Makarov <vmakarov@redhat.com>
540
541 * ira-color.c (start_allocno_priorities): Rename to
542 setup_allocno_priorities. Use costs and
543 ALLOCNO_EXCESS_PRESSURE_POINTS_NUM instead of frequencies and
544 range lengths. Get rid off doubles.
545 (ira_fast_allocations): Call start_allocno_priorities.
546
547 2008-09-22 David Daney <ddaney@avtrex.com>
548
549 PR target/37593
550 * config/mips/mips.h (FUNCTION_PROFILER): Call _mcount via a
551 register if TARGET_LONG_CALLS.
552
553 2008-09-22 Richard Guenther <rguenther@suse.de>
554
555 PR tree-optimization/37145
556 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Re-enable
557 value-numbering union accesses with their offset and size only.
558 (visit_reference_op_load): Fix simplification of inserted conversions.
559 * tree-ssa-pre.c (find_or_generate_expression): Do not
560 recursively generate expressions if running FRE.
561
562 2008-09-22 Adam Nemet <anemet@caviumnetworks.com>
563
564 * config/mips/mips.h (ISA_HAS_BADDU): New macro.
565 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el,
566 *baddu_di<mode>): New patterns.
567
568 2008-09-22 Richard Guenther <rguenther@suse.de>
569
570 PR tree-optimization/37145
571 * tree-ssa-pre.c (fully_constant_expression): Simplify builtin calls.
572 (phi_translate_1): Constant fold references.
573
574 2008-09-22 Ira Rosen <irar@il.ibm.com>
575
576 PR tree-optimization/37482
577 * tree-vectorizer.h (struct _slp_instance): Add new field.
578 (SLP_INSTANCE_FIRST_LOAD_STMT): New.
579 (get_earlier_stmt): New function.
580 * tree-vect-analyze.c (vect_find_first_load_in_slp_instance): New
581 function.
582 (vect_analyze_slp_instance): Set SLP_INSTANCE_FIRST_LOAD_STMT.
583 * tree-vect-transform.c (vect_finish_stmt_generation): Remove the
584 asserts that GSI points to the scalar statement being vectorized.
585 Set new statement location according to GSI.
586 (vect_schedule_slp_instance): Use GSI of
587 SLP_INSTANCE_FIRST_LOAD_STMT when vectorizing loads.
588
589 2008-09-21 Jan Hubicka <jh@suse.cz>
590
591 * ipa-cp.c (ipcp_estimate_growth): Check recursive calls.
592 (ipcp_insert_stage): Update dead_nodes bitmap.
593
594 2008-09-22 Danny Smith <dannysmith@users.sourceforge.net>
595
596 PR target/37528
597 * config/i386/t-cygming (SHLIB_LC): Remove.
598 (SHLIB_LINK): Don't add static objects to SHLIB_IMPLIB
599 * config/i386/t-cygwin (SHLIB_LC): Specify all required
600 libraries.
601
602 2008-09-22 Hans-Peter Nilsson <hp@axis.com>
603
604 PR middle-end/37170
605 PR middle-end/37280
606 * final.c (mark_symbol_ref_as_used): New helper function.
607 (output_operand): Instead of just looking inside MEMs for
608 SYMBOL_REFs, use new helper function and for_each_rtx.
609 * varasm.c (assemble_external): Move #ifndef ASM_OUTPUT_EXTERNAL
610 to after weak-handling. Don't mark decls with TREE_STATIC as weak.
611 Make head comment more general.
612 * config/darwin.c (machopic_output_indirection): Handle weak
613 references here, like in assemble_external.
614
615 2008-09-21 Eric Botcazou <ebotcazou@adacore.com>
616
617 * config/sparc/sparc-protos.h (gen_compare_operator): Declare.
618 (sparc_emit_float_lib_cmp): Change return type.
619 * config/sparc/sparc.c (gen_compare_reg): Add comment about TFmode.
620 (gen_compare_operator): New function.
621 (sparc_emit_float_lib_cmp): Return the new operator to be used in
622 the comparison sequence. Minor tweaks.
623 * config/sparc/sparc.md (seq, sne, sgt, slt, sge, sle): Assert
624 that the final operator and the result of sparc_emit_float_lib_cmp
625 match for software TFmode; use emit_insn in lieu of emit_jump_insn.
626 (beq, bne, bgt, blt, bge, ble, bunordered, bordered, bungt, bunlt,
627 buneq, bunge, bunle, bltgt): Assert that the final operator and the
628 result of sparc_emit_float_lib_cmp match for software TFmode.
629 (movqicc, movhicc, movsicc, movdicc): Merge into...
630 (mov<I:mode>cc): ...this.
631 (movsfcc, movdfcc, movtfcc): Merge into...
632 (mov<F:mode>cc): ...this.
633 (movqi_cc_sp64, movhi_cc_sp64, movsi_cc_sp64, movdi_cc_sp64): Merge
634 into...
635 (mov<I:mode>_cc_v9): ...this.
636 (movdi_cc_sp64_trunc): Delete.
637 (movqi_cc_reg_sp64, movhi_cc_reg_sp64, movsi_cc_reg_sp64,
638 movdi_cc_reg_sp64): Merge into...
639 (mov<I:mode>_cc_reg_sp64): ...this.
640 (movsf_cc_sp64): Rename into...
641 (movsf_cc_v9): ...this.
642 (movdf_cc_sp64): Rename into...
643 (movdf_cc_v9): ...this.
644 (movtf_cc_hq_sp64): Rename into...
645 (movtf_cc_hq_v9): ...this.
646 (movtf_cc_sp64): Rename into...
647 (movtf_cc_v9): ...this. Adjust for renaming of movdf_cc_sp64.
648
649 2008-09-21 Diego Novillo <dnovillo@google.com>
650
651 * doc/gccint.texi: Include generic.texi and gimple.texi.
652 Re-order index.
653 * doc/tree-ssa.texi (GENERIC): Move to generic.texi.
654 (GIMPLE): Move to gimple.texi.
655 (Annotations): Remove references to to stmt_ann_t and
656 ssa_name_ann_t.
657 (SSA Operands): Rename from 'Statement Operands'.
658 * doc/generic.texi: New.
659 * doc/gimple.texi: New.
660 * Makefile.in (TEXI_GCCINT_FILES): Add generic.texi and
661 gimple.texi.
662 * Makefile.in (TEXI_GCCINT_FILES):
663 * gimple.c (gimple_copy_call_skip_args): Rename from
664 giple_copy_call_skip_args. Update all users.
665 * doc/gimple.texi (gimple_copy_call_skip_args): Document.
666
667 2008-09-21 Ira Rosen <irar@il.ibm.com>
668
669 PR tree-optimization/37539
670 * tree-vect-transform.c (vect_transform_strided_load): Save vector
671 statement in related statement field only for the first load of the
672 group of loads with the same data reference.
673
674 2008-09-20 Adam Nemet <anemet@caviumnetworks.com>
675
676 * config/mips/mips.h (TUNE_OCTEON): New macro.
677 * config/mips/mips.c (mips_issue_rate): Return 2 for Octeon.
678 (mips_multipass_dfa_lookahead): Return 2 for Octeon.
679 * config/mips/octeon.md: New file.
680 * config/mips/mips.md: Include octeon.md. Restore
681 semi-alphabetical order of include files.
682
683 2008-09-20 H.J. Lu <hongjiu.lu@intel.com>
684
685 PR target/37571
686 * config/i386/i386.md (*jcc_fused_1): Removed.
687 (*jcc_fused_2): Likewise.
688 (*jcc_fused_3): Likewise.
689 (*jcc_fused_4): Likewise.
690
691 2008-09-20 Richard Sandiford <rdsandiford@googlemail.com>
692
693 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Define.
694 (IRA_COVER_CLASSES): Refer to TARGET_IRA_COVER_CLASSES.
695 * target.h (gcc_target): Add ira_cover_classes.
696 * ira.c: Remove IRA_COVER_CLASSES guards.
697 (setup_cover_and_important_classes): Use targetm.ira_cover_classes
698 instead of IRA_COVER_CLASSES.
699 (setup_cover_and_important_classes): Remove IRA_COVER_CLASSES guard.
700 (setup_class_translate): Likewise.
701 (setup_reg_class_intersect_union): Likewise.
702 (find_reg_class_closure): Replace IRA_COVER_CLASSES guard with a
703 test of targetm.ira_cover_classes.
704 * opts.c (decode_options): Use targetm.ira_cover_classes instead
705 of IRA_COVER_CLASSES.
706 * target-def.h (TARGET_IRA_COVER_CLASSES): Define.
707 (TARGET_INITIALIZER): Include it.
708 * targhooks.h (default_ira_cover_classes): Declare.
709 * targhooks.c (default_ira_cover_classes): New function.
710
711 2008-09-19 Bob Wilson <bob.wilson@acm.org>
712
713 * config/xtensa/xtensa.md (reload<mode>_literal): Handle MEM operands.
714
715 2008-09-19 Ian Lance Taylor <iant@google.com>
716
717 * varasm.c (narrowing_initializer_constant_valid_p): Return
718 NULL_TREE if ENDTYPE is not an integer.
719
720 2008-09-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
721
722 PR tree-opt/30930
723 * tree-ssa.c (execute_update_addresses_taken): Also update
724 DECL_GIMPLE_REG_P for vector and complex types.
725
726 2008-09-19 Andrew MacLeod <amacleod@redhat.com>
727 Jan Hubicka <jh@suse.cz>
728
729 PR middle-end/37567
730 * tree-ssa-ter.c (free_temp_expr_table): Make sure fields are actually
731 empty before freeing them.
732 (find_replaceable_exprs): Move asserts to free_temp_expr_table.
733
734 2008-09-18 Bob Wilson <bob.wilson@acm.org>
735
736 * configure.ac: Add HAVE_AS_TLS check for Xtensa.
737 * config/xtensa/predicates.md (tls_symbol_operand): New.
738 * config/xtensa/xtensa.c (TARGET_HAVE_TLS): Define.
739 (TARGET_CANNOT_FORCE_MEM): Define.
740 (xtensa_tls_symbol_p): New.
741 (xtensa_emit_move_sequence): Check for and legitimize TLS addresses.
742 (xtensa_legitimate_address_p): Disallow constant pool TLS references.
743 (xtensa_tls_module_base): New.
744 (xtensa_call_tls_desc): New.
745 (xtensa_legitimize_tls_address): New.
746 (xtensa_legitimize_address): Handle TLS symbols.
747 (xtensa_tls_referenced_p_1): New.
748 (xtensa_tls_referenced_p): New.
749 (xtensa_output_addr_const_extra): Handle UNSPEC_TPOFF and UNSPEC_DTPOFF.
750 (XTENSA_BUILTIN_THREAD_POINTER): New.
751 (XTENSA_BUILTIN_SET_THREAD_POINTER): New.
752 (xtensa_init_builtins): Set NOTHROW and READONLY for umulsidi3 builtin.
753 Add declarations for __builtin_thread_pointer and
754 __builtin_set_thread_pointer.
755 (xtensa_fold_builtin): Recognize new builtins.
756 (xtensa_expand_builtin): Expand new builtins.
757 * config/xtensa/xtensa.h (XCHAL_HAVE_THREADPTR): Define default value.
758 (TARGET_THREADPTR): Define.
759 (HAVE_AS_TLS): Define default value.
760 (LEGITIMATE_CONSTANT_P): Disallow TLS references.
761 * config/xtensa/xtensa.md (UNSPEC_TPOFF, UNSPEC_DTPOFF): New.
762 (UNSPEC_TLS_FUNC, UNSPEC_TLS_ARG, UNSPEC_TLS_CALL, UNSPEC_TP): New.
763 (UNSPECV_SET_TP): New.
764 (sym_TPOFF, sym_DTPOFF): New.
765 (load_tp, set_tp, tls_func, tls_arg, tls_call): New.
766 * config/xtensa/xtensa-protos.h (xtensa_tls_referenced_p): Declare.
767 * configure: Regenerated.
768
769 2008-09-18 H.J. Lu <hongjiu.lu@intel.com>
770
771 PR target/37394
772 * config/ia64/ia64.c (ia64_optimization_options): Move
773 checking and setting flag_schedule_insns_after_reload and
774 ia64_flag_schedule_insns2 back to ...
775 (ia64_override_options): Here.
776
777 2008-09-18 Andrew Pinski <andrew_pinski@playstation.sony.com>
778
779 PR rtl-opt/37451
780 * loop-doloop.c (doloop_modify): New argument zero_extend_p and
781 zero extend count after the correction to it is done.
782 (doloop_optimize): Update call to doloop_modify, don't zero extend
783 count before call.
784
785 2008-09-18 Martin Jambor <mjambor@suse.cz>
786
787 * ipa-cp.c (ipcp_estimate_growth): Return 0 instead of false.
788
789 * ipa-prop.c: Correct comments.
790 * ipa-prop.h: Likewise.
791
792 2008-09-18 Jan Hubicka <jh@suse.cz>
793
794 PR middle-end/37448
795 * ipa-reference.c (ipa_reference_local_vars_info_d,
796 ipa_reference_global_vars_info_d,
797 ipa_reference_local_vars_info_t, ipa_reference_global_vars_info_t,
798 ipa_reference_vars_info_t): Move here from ipa-reference.h
799 (node_duplication_hook_holder, node_removal_hook_holder): New.
800 (get_reference_vars_info_from_cgraph): Rename to ...
801 (get_reference_vars_info): ... this one, use cgraph uids.
802 (get_local_reference_vars_info, get_global_reference_vars_info):
803 Use cgraph instead of decl.
804 (ipa_reference_get_read_local, ipa_reference_get_written_local): Remove.
805 (ipa_reference_get_read_global, ipa_reference_get_not_read_global
806 ipa_reference_get_written_global, ipa_reference_get_not_written_global): Use
807 cgraph argument.
808 (check_call): Simplify avail check.
809 (scan_stmt_for_static_refs): Update.
810 (propagate_bits): Update.
811 (merge_callee_local_info): Remove.
812 (init_function_info): Use cgraph nodes.
813 (clean_function_local_data): Break out from ...
814 (clean_function): ... here.
815 (copy_local_bitmap, copy_global_bitmap): New functions.
816 (duplicate_node_data, remove_node_data): New functions.
817 (generate_summary): Register hooks; use visibility instead of
818 master clones.
819 (propafate): Use cgraph nodes; copy bitmap to each node in cycle.
820 * ipa-reference.h (ipa_reference_local_vars_info_d,
821 ipa_reference_global_vars_info_d,
822 ipa_reference_local_vars_info_t, ipa_reference_global_vars_info_t,
823 ipa_reference_vars_info_t): Move to ipa-reference.c
824 (ipa_reference_get_read_local, ipa_reference_get_written_local):
825 Remove.
826 (ipa_reference_get_read_global, ipa_reference_get_written_global,
827 ipa_reference_get_not_read_global, ipa_reference_get_not_written_global):
828 Update prototype.
829 * ipa-pure-const.c (funct_state_vec): Turn into VECtor.
830 (init_state): Remove.
831 (node_duplication_hook_holder, node_removal_hook_holder): New.
832 (get_function_state, set_function_state): Use VECtor.
833 (analyze_function): Check body availability.
834 (add_new_function): Likewise.
835 (duplicate_node_data, remove_node_data): New.
836 (generate_summary): Register hooks; do not care about clones.
837 (propafate): Do not care about clones; recursive functions are not looping.
838 * ipa-utils.c (searchc, ipa_utils_reduced_inorder): Do not skip clones.
839 * ipa-prop.c (edge_removal_hook_holder, node_removal_hook_holder,
840 * edge_duplication_hook_holder, node_duplication_hook_holder): Make
841 static.
842 * tree-flow.h (function_ann_d): Remove reference_vars_info.
843 * tree-ssa-opreands.c (add_call_clobber_ops, add_call_read_ops): Update call of
844 ipa-reference accesors.
845
846 2008-09-18 Simon Baldwin <simonb@google.com>
847
848 * c-opts.c (c_common_handle_option): Add handling for
849 -Wbuiltin-macro-redefined command line option.
850 * c.opt: Added builtin-macro-redefined option.
851 * doc/invoke.texi (Warning Options): Add -Wbuiltin-macro-redefined
852 documentation.
853
854 2008-09-18 Richard Guenther <rguenther@suse.de>
855
856 PR tree-optimization/37258
857 * tree-ssa-sccvn.c (vn_phi_compute_hash): Include the precision
858 and signedness for integral types.
859 (vn_phi_eq): Require compatible types.
860
861 2008-09-18 Jakub Jelinek <jakub@redhat.com>
862
863 PR debug/34037
864 * gimplify.c (gimplify_type_sizes): When not optimizing, ensure
865 TYPE_MIN_VALUE and TYPE_MAX_VALUE is not is not DECL_IGNORED_P
866 VAR_DECL.
867 * cfgexpand.c (expand_used_vars): Keep DECL_ARTIFICIAL
868 !DECL_IGNORED_P vars in local_decls list for instantiate_decls,
869 ggc_free other TREE_LIST nodes from that chain.
870 * function.c (instantiate_decls): Instantiate also DECL_RTL
871 of vars in cfun->local_decls, free that list afterwards.
872
873 2008-09-18 Eric Botcazou <ebotcazou@adacore.com>
874
875 * config/sparc/sol2.h (WIDEST_HARDWARE_FP_SIZE): Move to...
876 * config/sparc/sparc.h (WIDEST_HARDWARE_FP_SIZE): ...here.
877
878 2008-09-18 Andrew MacLeod <amacleod@redhat.com>
879
880 * tree-outof-ssa.c (eliminate_useless_phis): Fix formatting.
881 * tree-flow-.h (struct immediate_use_iterator_d): Fix comment.
882
883 2008-09-18 Andrew MacLeod <amacleod@redhat.com>
884
885 PR tree-optimization/37102
886 * tree-outof-ssa.c (remove_gimple_phi_args): Remove all the PHI args
887 from a node. Check to see if another PHI is dead.
888 (eliminate_useless_phis): Rename from eliminate_virtual_phis and
889 remove real PHIs which have no uses.
890 (rewrite_out_of_ssa): Call eliminate_useless_phis.
891
892 2008-09-18 Richard Guenther <rguenther@suse.de>
893
894 PR middle-end/37284
895 * tree-cfg.c (remove_useless_stmts_1): Remove
896 GIMPLE_CHANGE_DYNAMIC_TYPE if not optimizing.
897
898 2008-09-18 Nick Clifton <nickc@redhat.com>
899
900 * config/frv/frv.h (IRA_COVER_CLASSES): Define.
901 (SECONDARY_INPUT_RELOAD_CLASS): Omit unused argument in call
902 to frv_secondary_reload_class.
903 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
904 * config/frv/frv.c (TARGET_SECONDARY_RELOAD): Define.
905 (frv_secondary_reload_class): Omit unused parameter.
906 (frv_secondary_reload): New function. Handle the case when
907 secondary_reload_class() is called before the reload_(in|out)
908 _optabs have been initialised.
909 * config/frv/frv-protos.h (frv_secondary_reload_class): Omit
910 unused parameter.
911 * config/frv/frv.md: Define an exclusion set between fr550_m0
912 and fr550_f0.
913
914 2008-09-18 Richard Guenther <rguenther@suse.de>
915
916 PR tree-optimization/37456
917 * tree-ssa-reassoc.c (build_and_add_sum): If the stmt we
918 want to insert after ends a BB insert on the single fallthru
919 outgoing edge.
920
921 2008-09-18 Andreas Krebbel <krebbel1@de.ibm.com>
922
923 * doc/invoke.texi: Document -mhard-dfp, -mno-hard-dfp.
924 Mention -march=z9-109, z9-ec and z10.
925
926 2008-09-18 Uros Bizjak <ubizjak@gmail.com>
927
928 PR rtl-optimization/37544
929 * regrename.c (maybe_mode_change): Exit early when copy_mode
930 is narrower than orig_mode and narrower than new_mode.
931
932 2008-09-18 Alexander Monakov <amonakov@ispras.ru>
933
934 PR middle-end/37499
935 * sched-int.h (struct _haifa_insn_data): Remove unused field
936 ref_count.
937
938 * sched-rgn.c (ref_counts): Remove.
939 (insn_referenced): New static variable.
940 (INSN_REF_COUNT): Remove.
941 (sched_run_compute_dependencies): Use insn_referenced instead of
942 INSN_REF_COUNT.
943 (add_branch_dependences): Likewise. Delete dead assignment.
944
945 2008-09-17 Adam Nemet <anemet@caviumnetworks.com>
946
947 * haifa-sched.c (dep_cost_1): Recognize the producer even if the
948 consumer is an asm. Add comment why this is important.
949 (choose_ready): Add comment to the "INSN_CODE (insn) >= 0 ||
950 recog_memoized (insn) < 0" assert. Put ENABLE_CHECKING around
951 it.
952
953 2008-09-17 Joseph Myers <joseph@codesourcery.com>
954
955 * expr.c (emit_group_store): Do not shift before moving via a
956 stack slot.
957
958 2008-09-17 Eric Botcazou <ebotcazou@adacore.com>
959
960 * varasm.c (initializer_constant_valid_p): Forbid view-conversions
961 from aggregate to non-aggregate type if the bit pattern is not fully
962 preserved afterwards.
963
964 2008-09-17 Richard Guenther <rguenther@suse.de>
965
966 * tree-cfg.c (verify_types_in_gimple_assign): Rename to ...
967 (verify_gimple_assign): ... this. Split into ...
968 (verify_gimple_assign_unary): ... this,
969 (verify_gimple_assign_binary): ... that,
970 (verify_gimple_assign_single): ... and this.
971 (verify_types_in_gimple_stmt): Call verify_gimple_assign.
972 Fix GIMPLE_CHANGE_DYNAMIC_TYPE handling.
973 (verify_types_in_gimple_min_lval): Handle TARGET_MEM_REF.
974 (verify_types_in_gimple_reference): Be forgiving with
975 VIEW_CONVERT_EXPRs.
976 (verify_gimple_phi): Deal with virtual operands.
977
978 * tree.def (PREDICT_EXPR): Change to tcc_expression.
979
980 2008-09-17 Andrew Pinski <andrew_pinski@playstation.sony.com>
981
982 * tree.c (get_callee_fndecl): Don't call the language hook.
983 * langhooks.h (lang_hooks): Remove lang_get_callee_fndecl.
984 * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): Kill.
985 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_GET_CALLEE_FNDECL.
986
987 2008-09-17 Jakub Jelinek <jakub@redhat.com>
988
989 * tree.c (protected_set_expr_location): Don't unnecessarily
990 check for error_mark_node.
991
992 2008-09-17 Art Haas <ahaas@impactweather.com>
993
994 * ipa-reference.c (analyze_function): Declare step only if
995 ENABLE_CHECKING is defined.
996
997 2008-09-17 Jan Hubicka <jh@suse.cz>
998
999 PR c++/18071
1000 * tree.h (DECL_INLINE): remove.
1001 (DECL_DECLARED_INLINE_P): Update docs.
1002 (DECL_NO_INLINE_WARNING_P): new.
1003 (tree_function_decl): Replace inline_flag by no_inline_warning_flag.
1004 * tree-inline.c (inlinable_function_p): Set DECL_NO_INLINE_WARNING_P.
1005
1006 2008-09-17 Jakub Jelinek <jakub@redhat.com>
1007 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1008
1009 PR bootstrap/37441
1010 * dwarf2out.c (dwarf2out_do_cfi_asm) [MIPS_DEBUGGING_INFO]: Return
1011 false.
1012
1013 2008-09-17 Jan Hubicka <jh@suse.cz>
1014
1015 * ipa-reference.c (ipa_obstack): Remove.
1016 (local_info_obstack, global_info_obstack): New.
1017 (add_static_var): We now handle variables only.
1018 (mark_address_taken, mark_load, mark_store): New functions based on ...
1019 (check_operand): ... remove.
1020 (get_asm_stmt_operands): Rename to ...
1021 (check_asm_memory_clobber): ... this. Look only for memory clobber.
1022 (scan_stmt_for_static_refs): Rewrite.
1023 (scan_op_for_static_refs): Rename to ...
1024 (scan_initializer_for_static_refs): do not look for VAR_DECL
1025 initializers; stop recursion on types and decls.
1026 (ipa_init): Use proper obstacks.
1027 (analyze_variable): Use scan_initializer_for_static_refs.
1028 (init_function_info): Use local obstack.
1029 (analyze_function): Simplify.
1030 (add_new_function): We don't need visited_nodes obstack.
1031 (generate_summary): Use proper obstacks; cleanup after propagation.
1032
1033 2008-09-17 Richard Guenther <rguenther@suse.de>
1034
1035 PR middle-end/37385
1036 PR tree-optimization/37491
1037 * alias.c (get_alias_set): Use the canonical type.
1038 * tree-vect-transform.c (vectorizable_store): Use the type of
1039 the lhs for the vector type. Adjust checking.
1040 (vectorizable_load): Adjust checking.
1041
1042 2008-09-16 Jakub Jelinek <jakub@redhat.com>
1043 Adam Nemet <anemet@caviumnetworks.com>
1044
1045 PR rtl-optimization/37483
1046 * ifcvt.c (noce_try_sign_mask): Use if_info->test_bb instead of
1047 if_info->insn_b's bb as argument to optimize_bb_for_speed_p.
1048 Rearrange code to better match the original comment. Check
1049 t_unconditional first. Improve comment.
1050
1051 2008-09-16 Jakub Jelinek <jakub@redhat.com>
1052
1053 PR c/37529
1054 * gimplify.c (gimplify_expr) <case GOTO_EXPR>: If gimplification of
1055 GOTO_DESTINATION failed, don't create GIMPLE_GOTO.
1056
1057 PR c++/37530
1058 * gimplify.c (gimplify_expr) <case TRY_CATCH_EXPR>: Don't create
1059 GIMPLE_TRY if cleanup sequence is empty.
1060
1061 2008-09-16 Andrew Pinski <andrew_pinski@playstation.sony.com>
1062
1063 PR middle-end/37263
1064 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Prefer the
1065 eliminate IV if the cost are the same.
1066
1067 2008-09-16 Richard Guenther <rguenther@suse.de>
1068
1069 PR middle-end/37380
1070 * tree-sra.c (sra_build_assignment): Do not call the gimplifier
1071 if not necessary.
1072
1073 2008-09-16 Richard Guenther <rguenther@suse.de>
1074
1075 PR tree-optimization/37508
1076 * tree-vrp.c (simplify_truth_ops_using_ranges): Also allow -1.
1077
1078 2008-09-15 Kaz Kojima <kkojima@gcc.gnu.org>
1079
1080 * config/sh/sh.md (movsf_ie): Fix length for TARGET_SH2A.
1081
1082 2008-09-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
1083
1084 * config/rs6000/rs6000.md (floatsidf2): Rewrite PowerPC64 case to
1085 use gen_floatdidf2 directly.
1086 (floatunssidf2): Likewise.
1087 (floatsidf_ppc64_mfpgpr): Remove.
1088 (floatsidf_ppc64): Remove.
1089 (floatunssidf_ppc64): Remove.
1090
1091 2008-09-15 Jakub Jelinek <jakub@redhat.com>
1092
1093 * ira-color.c (finish_cost_update): Free update_cost_queue_elems
1094 rather than update_cost_queue.
1095
1096 * tree-ssa-alias.c (init_alias_info): Call bitmap_obstack_release
1097 in every call starting with the second one, instead of only when
1098 alias_bitmap_obstack.elements != NULL.
1099
1100 * tree-predcom.c (filter_suitable_components): Free all refs in
1101 act->refs vector before calling release_component.
1102 (add_ref_to_chain): Free ref if not adding it to chain->refs.
1103
1104 * tree-data-ref.c (free_subscripts): Free all subscript objects.
1105
1106 * tree-loop-linear.c (linear_transform_loops): Initialize
1107 lambda_obstack only after calling perfect_loop_nest_depth.
1108 Goto free_and_continue instead of just continue for later failures.
1109
1110 PR middle-end/37479
1111 * doc/invoke.texi: Document -fno-dwarf2-cfi-asm.
1112
1113 PR libmudflap/36397
1114 * tree-mudflap.c (mf_xform_derefs_1): Handle VIEW_CONVERT_EXPR.
1115
1116 2008-09-14 Andreas Schwab <schwab@suse.de>
1117
1118 * tree-call-cdce.c (check_target_format): Accept Motorola formats.
1119
1120 2008-09-14 Jan Hubicka <jh@suse.cz>
1121
1122 * invoke.texi (-fconserve-stack): Document.
1123 * opts.c (decode_options): Handle conserve_stack.
1124 * common.opt (fconvserve_stack): New.
1125
1126 2008-09-14 David Edelsohn <edelsohn@gnu.org>
1127
1128 * config.host: Add x-aix to host_xmake_file.
1129 * config/rs6000/t-aix52: Do not override LDFLAGS.
1130 * config/rs6000/x-aix: New file.
1131
1132 2008-09-14 Andy Hutchinson <hutchinsonandy@aim.com>
1133
1134 PR target/19636
1135 PR target/24894
1136 PR target/31644
1137 PR target/31786
1138 * config/avr/avr.c (legitimate_address_p): Fix problem where subreg
1139 is not recognized as a valid register usage. Allow REG_X to be used
1140 as a base pointer.
1141 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Remove code that
1142 forces a reload when using a base register.
1143
1144 2008-09-14 Danny Smith <dannysmith@users.sourceforge.net>
1145
1146 * config/i386/cygming-crtend.c (register_frame_ctor): If
1147 DEFAULT_USE_CXA_ATEXIT, register __gcc_deregister_frame
1148 directly with atexit.
1149 (deregister_frame_ctor): Rename to ...
1150 (deregister_frame_dtor): Use to call __gcc_deregister_frame
1151 if !DEFAULT_USE_CXA_ATEXIT.
1152
1153 2008-09-13 Jan Hubicka <jh@suse.cz>
1154
1155 * cgraph.c: Include value-prof.h
1156 * Makefile.in (cgraph.o): Add value-prof.h dependency.
1157
1158 2008-09-13 Jan Hubicka <jh@suse.cz>
1159
1160 PR middle-end/32581
1161 * tree-profile.c (add_abnormal_goto_call_edges): New function.
1162 (tree_gen_interval_profiler, tree_gen_pow2_profiler,
1163 tree_gen_one_value_profiler, tree_gen_average_profiler,
1164 tree_gen_ic_func_profiler, tree_gen_ior_profiler): Use it.
1165
1166 2008-09-13 Jan Hubicka <jh@suse.cz>
1167
1168 * i386.c (ix86_expand_movmem, ix86_expand_movstr): Avoid processing
1169 too many bytes on misalligned blocks.
1170
1171 2008-09-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1172
1173 * doc/cfg.texi: Fix some typos.
1174 * doc/extend.texi: Likewise.
1175 * doc/install.texi: Likewise.
1176 * doc/invoke.texi: Likewise.
1177 * doc/rtl.texi: Likewise.
1178 * doc/tree-ssa.texi: Likewise.
1179
1180 2008-09-13 Richard Guenther <rguenther@suse.de>
1181
1182 PR middle-end/30141
1183 * tree-nested.c (finalize_nesting_tree_1): Generate valid
1184 gimple stores for memory rhs.
1185
1186 2008-09-13 H.J. Lu <hongjiu.lu@intel.com>
1187
1188 PR rtl-optimization/37489
1189 * cse.c (fold_rtx): Don't return const_true_rtx for float
1190 compare if FLOAT_STORE_FLAG_VALUE is undefined.
1191
1192 2008-09-13 Jan Hubicka <jh@suse.cz>
1193
1194 PR tree-optimization/37392
1195 * tree-inline.c (remap_gimple_stmt): Do not remap return value.
1196
1197 2008-09-13 Martin Jambor <mjambor@suse.cz>
1198 Jan Hubicka <jh@suse.cz>
1199
1200 * cgraph.c (free_edges): New variable.
1201 (NEXT_FREE_EDGE): New macro.
1202 (cgraph_free_edge): New function.
1203 (cgraph_remove_edge): Call cgraph_remove_edge_1.
1204 (cgraph_node_remove_callees): Likewise.
1205 (cgraph_node_remove_callers): Likewise.
1206 (cgraph_create_edge): Reuse edges from the free list. Do not
1207 update uid if doing so.
1208 (cgraph_remove_*_hook): Add free call.
1209
1210 2008-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1211
1212 * ira-color.c (conflict_allocno_vec): Delete.
1213 (update_cost_queue_elem): New structure.
1214 (update_cost_queue): New variable.
1215 (update_cost_queue_tail): Likewise.
1216 (update_cost_queue_elems): Likewise.
1217 (allocno_update_cost_check): Delete.
1218 (initiate_cost_update): Allocate update_cost_queue_elems
1219 instead of allocno_update_cost_check.
1220 (finish_cost_update): Update the free()s accordingly.
1221 (start_update_cost): New function.
1222 (queue_update_cost): Likewise.
1223 (get_next_update_cost): Likewise.
1224 (update_copy_costs_1): Inline into...
1225 (update_copy_costs): ...here. Use a queue instead of recursive calls.
1226 Use cover_class instead of ALLOCNO_COVER_CLASS (another_allocno),
1227 once we've established they are equal. Don't allocate update
1228 costs if there is nothing to add to them.
1229 (update_conflict_hard_regno_costs): Remove ALLOCNO and
1230 DIVISOR arguments. Use a queue instead of recursive calls;
1231 process all the allocnos in the initial queue, rather than
1232 a single allocno.
1233 (assign_hard_reg): Use queue_update_cost instead of
1234 conflict_allocno_vec. Queue coalesced allocnos instead
1235 of calling update_conflict_hard_regno_costs for each one.
1236 Just call update_conflict_hard_regno_costs once for the
1237 entire queue.
1238 (ira_color): Remove conflict_allocno_vec handling.
1239
1240 2008-09-12 Sebastian Pop <sebastian.pop@amd.com>
1241
1242 PR tree-optimization/37484
1243 * graphite.c (scop_record_loop): Use snprintf instead of sprintf.
1244 (save_var_name): Same.
1245 (initialize_cloog_names): Same.
1246 (initialize_cloog_names): Same.
1247
1248 2008-09-12 Sebastian Pop <sebastian.pop@amd.com>
1249
1250 * tree-scalar-evolution.c (set_instantiated_value): Set
1251 instantiated_below.
1252
1253 2008-09-12 Vladimir Makarov <vmakarov@redhat.com>
1254
1255 PR rtl-opt/37377
1256
1257 * ira-build.c (common_loop_tree_node_dominator): Remove.
1258 (copy_live_ranges_to_removed_store_destinations): New function.
1259 (regno_top_level_allocno_map): Move to top level from ...
1260 (ira_flattening): ... here. Use
1261 copy_live_ranges_to_removed_store_destinations.
1262
1263 * ira-emit.c (generate_edge_moves): Fix a comment.
1264
1265 2008-09-12 Anatoly Sokolov <aesok@post.ru>
1266
1267 PR target/37466
1268 * config/avr/avr.md (movsi_lreg_const peephole2): Add match_dup for
1269 scratch register after 'set' pattern.
1270
1271 2008-09-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1272
1273 * emit-rtl.c (set_reg_attrs_from_value): Fix invalid alignment
1274 information passed to mark_reg_pointer.
1275 * explow.c (force_reg): Likewise.
1276
1277 2008-09-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1278
1279 * config/spu/spu.c (spu_override_options): Default to -mno-safe-hints
1280 when building for the celledp architecture.
1281
1282 2008-09-12 Richard Guenther <rguenther@suse.de>
1283
1284 * tree-vrp.c (simplify_truth_ops_using_ranges): Fix types.
1285
1286 2008-09-12 Eric Botcazou <ebotcazou@adacore.com>
1287
1288 PR rtl-optimization/37424
1289 * ira-color.c (coalesced_pseudo_reg_slot_compare): Untie by comparing
1290 the regnos instead of the addresses.
1291
1292 2008-09-11 Janis Johnson <janis187@us.ibm.com>
1293
1294 * ginclude/float.h (DEC_EVAL_METHOD): Correct the macro name.
1295
1296 2008-09-11 Richard Guenther <rguenther@suse.de>
1297
1298 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Avoid
1299 entering the weaker equivalence recording.
1300
1301 * tree-ssa-phiprop.c (propagate_with_phi): Fix tuplification.
1302
1303 2008-09-11 Jeff Law <law@redhat.com>
1304
1305 * reload1.c (alter_reg): Undo the BYTE_BIG_ENDIAN correction performed
1306 by assign_stack_local on the IRA path for stack slot sharing
1307 as well as the non-IRA path.
1308
1309 2008-09-11 Uros Bizjak <ubizjak@gmail.com>
1310
1311 * config/i386/i386.h: Fix whitespace issues.
1312
1313 2008-09-11 Martin Jambor <mjambor@suse.cz>
1314
1315 * ipa-prop.h (struct ipa_param_flags): Removed.
1316 (struct ipa_param_descriptor): New structure.
1317 (struct ipa_node_params): ipcp_lattices, param_decls and
1318 param_flags moved to ipa_param_description.
1319 (ipa_get_ith_param): Renamed to ipa_get_param, changed to access
1320 descriptors. Renamed all users.
1321 (ipa_is_ith_param_modified): Renamed to ipa_is_param_modified,
1322 changed to access descriptors. Renamed all users.
1323 (ipa_is_ith_param_called): Renamed to ipa_is_param_called, changed
1324 to access descriptors. Renamed all users.
1325 * ipa-cp.c (ipcp_init_cloned_node): Call
1326 ipa_initialize_node_params instead of ipa_count_formal_params and
1327 ipa_create_param_decls_array.
1328 (ipcp_analyze_node): Likewise.
1329 (ipcp_get_ith_lattice): Renamed to ipcp_get_lattice, changed to access
1330 descriptors. Renamed all users.
1331 (ipcp_initialize_node_lattices): Remove allocation.
1332 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
1333 ipa_initialize_node_params instead of ipa_count_formal_params and
1334 ipa_create_param_decls_array.
1335 * ipa-prop.c (ipa_create_param_decls_array): Renamed to
1336 ipa_populate_param_decls, made static, added parameter info,
1337 renamed mt to node, removed allocation, changed to use
1338 descriptors.
1339 (ipa_count_formal_params): Made static, added parameter info,
1340 renamed mt to node.
1341 (ipa_initialize_node_params): New function.
1342 (ipa_check_stmt_modifications): Changed to use descriptors.
1343 (ipa_detect_param_modifications): Removed allocation, changed to
1344 use descriptors.
1345 (ipa_note_param_call): Changed to use descriptors.
1346 (ipa_analyze_params_uses): Removed allocation.
1347 (ipa_free_node_params_substructures): Changed to use descriptors.
1348 (ipa_edge_duplication_hook): Use the unused attribute.
1349 (ipa_node_duplication_hook): Use the unused attribute, changed to
1350 use descriptors, changed to duplicate descriptors.
1351
1352 * ipa-inline.c (cgraph_mark_inline_edge): New parameter new_edges,
1353 changed all callers. Call ipa_propagate_indirect_call_infos if doing
1354 indirect inlining. Made static.
1355 (cgraph_decide_inlining): Freeing ipa-prop structures after inlining
1356 functions called only once.
1357 (cgraph_decide_recursive_inlining): Don't call
1358 ipa_propagate_indirect_call_infos, pass new_edges to
1359 cgraph_mark_inline_edge instead.
1360 (cgraph_decide_inlining_of_small_functions): Don't call
1361 ipa_propagate_indirect_call_infos, pass new_edges to
1362 cgraph_mark_inline_edge instead.
1363 (cgraph_decide_inlining): Don't call
1364 ipa_propagate_indirect_call_infos.
1365 * ipa-prop.c: Check that vectors are allocated.
1366
1367 * ipa-inline.c (cgraph_mark_inline_edge): Returns boolean, true
1368 iff a new cgraph edges have been created.
1369 (cgraph_decide_inlining): New variable redo_always_inline.
1370 Flattening and always_inlining loop until callgraph stabilizes.
1371 * ipa-prop.c (update_call_notes_after_inlining): Returns boolean,
1372 true iff new cgraph edges have been created.
1373 (propagate_info_to_inlined_callees): Likewise.
1374 (ipa_propagate_indirect_call_infos): Likewise.
1375
1376 2008-09-11 Richard Guenther <rguenther@suse.de>
1377
1378 * tree-vectorizer.c (slpeel_add_loop_guard): Fix types.
1379 (set_prologue_iterations): Likewise.
1380 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref):
1381 Likewise.
1382 (vect_update_init_of_dr): Likewise.
1383 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Fix
1384 type verification.
1385 * fold-const.c (fold_unary): Do not generate calculations
1386 in sub-types.
1387
1388 2008-09-11 Paolo Bonzini <bonzini@gnu.org>
1389
1390 * dojump.c (do_jump) [BIT_AND_EXPR]: Move below. Fall through to
1391 TRUTH_AND_EXPR for boolean (1-bit precision) expressions.
1392 (do_jump) [BIT_IOR_EXPR]: Compile as TRUTH_OR_EXPR.
1393
1394 * tree-flow.h (simplify_stmt_using_ranges): Accept a GSI, return
1395 a bool.
1396 * tree-ssa-propagate.c (substitute_and_fold): Pass a GSI to
1397 VRP's simplify_stmt_using_ranges. Do simplify_stmt_using_ranges
1398 before finalizing the changes.
1399 * tree-vrp.c (extract_range_from_binary_expr): Add limited support
1400 for BIT_IOR_EXPR.
1401 (simplify_truth_ops_using_ranges): New.
1402 (simplify_div_or_mod_using_ranges, simplify_abs_using_ranges,
1403 simplify_cond_using_ranges, simplify_switch_using_ranges): Return
1404 whether a simplification was made.
1405 (simplify_stmt_using_ranges): Ditto, and accept a GSI. For GS_ASSIGN,
1406 use a switch statement and also call simplify_truth_ops_using_ranges.
1407
1408 2008-09-11 Jan Hubicka <jh@suse.cz>
1409
1410 * ggc-common.c (loc_array): Make static.
1411 * dce.c (rest_of_handle_ud_dce): Free worklist.
1412
1413 2008-09-11 Jan Hubicka <jh@suse.cz>
1414
1415 * cgraph.c (cgraph_release_function_body): Plug memory leak on
1416 ipa_transforms_to_apply and CFG; ggc_free gimple df and struct
1417 function so we are sure we do not dangle it forever.
1418 * function.c (outer_function_chain, find_function_data): Remove.
1419 (function_context_stack): New.
1420 (push_function_context, pop_function_context): Update.
1421 * function.h (struct function): Remove pointer outer.
1422 (outer_function_chain, find_function_data): Remove.
1423 * stmt.c (force_label_rtx): Remove dead call of find_function_data.
1424
1425 2008-09-11 Jan Hubicka <jh@suse.cz>
1426
1427 PR middle-end/37448
1428 * cgraph.c (cgraph_create_edge): Use !cgraph_edge for sanity check.
1429
1430 2008-09-11 Jan Hubicka <jh@suse.cz>
1431
1432 * tree-ssa-pre.c (phi_translate_1): Fix memory leak
1433
1434 2008-09-11 Jan Hubicka <jh@suse.cz>
1435
1436 * tree-ssa.c (redirect_edge_var_map_clear): Fix formatting.
1437 (free_var_map_entry): New function.
1438 (redirect_edge_var_map_destroy): Use it.
1439
1440 2008-09-11 Jan Hubicka <jh@suse.cz>
1441
1442 PR middle-end/37448
1443 * tree-inline.c (add_lexical_block): Replace with ...
1444 (prepend_lexical_block): ... prepend at begginig.
1445 (remap_blocks): Use it and reverse later.
1446 (expand_call_inline): Use prepend_lexical_block.
1447
1448 2008-09-11 Jan Hubicka <jh@suse.cz>
1449
1450 * gimplify.c (pop_gimplify_context): Free bind_expr_stack.
1451
1452 2008-09-11 Jan Hubicka <jh@suse.cz>
1453
1454 * function.c (free_after_compilation): Call insn_locators_free.
1455 * cfglayout.c (insn_locators_free): New function.
1456 * rtl.h (insn_locators_free): Declare.
1457
1458 2008-09-11 Jan Hubicka <jh@suse.cz>
1459
1460 * ifcvt.c (check_cond_move_block): Make regs argument pointer to
1461 vector pointer.
1462 (cond_move_process_if_block): Update call.
1463
1464 2008-09-11 Jan Hubicka <jh@suse.cz>
1465
1466 * toplev.c (dump_memory_report): Call dump_vec_loc_statistics.
1467 * vec.c: Include hashtab.h
1468 (vec_descriptor, ptr_hash_entry): New structures.
1469 (vec_desc_hash, vec_ptr_map): New static variables.
1470 (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr, vec_descriptor,
1471 register_overhead, free_overhead, vec_heap_free): New functions.
1472 (vec_gc_o_reserve_1): ggc_free when resizing to 0.
1473 (vec_heap_o_reserve_1): free when resizing to 0; add statistics.
1474 (cmp_statistic, add_statistics, dump_vec_loc_statistics):
1475 New functions.
1476
1477 2008-09-11 Ira Rosen <irar@il.ibm.com>
1478
1479 PR tree-optimization/37474
1480 * tree-vect-analyze.c (vect_supported_load_permutation_p): Check the
1481 length of load permutation.
1482
1483 2008-09-11 Andreas Schwab <schwab@suse.de>
1484
1485 * config/m68k/m68k.h (IRA_COVER_CLASSES): Define.
1486
1487 2008-09-11 Jakub Jelinek <jakub@redhat.com>
1488
1489 PR target/37382
1490 * expmed.c (extract_low_bits): Avoid creating invalid subregs.
1491 * dse.c (find_shift_sequence): Use extract_low_bits instead of
1492 simplify_gen_subreg.
1493
1494 2008-09-11 Ira Rosen <irar@il.ibm.com>
1495
1496 * tree-vect-transform.c (vectorizable_store): Use the rhs vector type
1497 for alias check.
1498
1499 2008-09-10 Jakub Jelinek <jakub@redhat.com>
1500
1501 PR middle-end/37338
1502 * gimplify.c (gimplify_body): Call default_rtl_profile.
1503
1504 PR target/36904
1505 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Return NULL
1506 instead of tok->val.node if not expanding to something else. Handle
1507 intervening CPP_PADDING tokens.
1508 (altivec_categorize_keyword): Remove unneeded comparisons.
1509
1510 2008-09-10 Richard Guenther <rguenther@suse.de>
1511
1512 * tree-ssa-pre.c (phi_translate_1): Fix memory leak.
1513
1514 2008-09-10 Richard Guenther <rguenther@suse.de>
1515
1516 PR middle-end/37432
1517 * tree-inline.c (insert_init_stmt): Make sure to not
1518 insert invalid gimple stores.
1519
1520 2008-09-10 Sebastian Pop <sebastian.pop@amd.com>
1521
1522 PR tree-optimization/37388
1523 * toplev.c (process_options): Fail and warn when graphite
1524 flags are used, but the compiler has not been configured
1525 with graphite libraries.
1526 * graphite.c (graphite_transform_loops): Remove printfs
1527 to dump_file for the case when graphite is not available.
1528
1529 2008-09-10 H.J. Lu <hongjiu.lu@intel.com>
1530
1531 PR target/37434:
1532 * config/i386/i386.c (ix86_expand_vector_init_interleave): Force
1533 the even element into register.
1534 (ix86_expand_vector_init_general): Don't use
1535 ix86_expand_vector_init_interleave on V16QImode and V8HImode
1536 if we can't move from GPR to SSE register directly.
1537
1538 2008-09-10 Bernd Schmidt <bernd.schmidt@analog.com>
1539
1540 * config/bfin/bfin.c (workaround_speculation): Correct algorithm to
1541 not lose track of the number of NOPs needed. Number of NOPs needed
1542 for sync vs. loads workaround was switched; corrected. Run second
1543 pass for all workarounds. No NOPs needed after call insns. Change
1544 second pass to use find_next_insn_start and find_load helpers in order
1545 to properly detect parallel insns.
1546 * config/bfin/bfin.md (cbranch_with_nops): Increase length.
1547
1548 2008-09-10 Jan Hubicka <jh@suse.cz>
1549
1550 * value-prof.c (gimple_ic): Fix tuplification bug.
1551 * sched-deps.c (sched_insns_conditions_mutex_p): Silence unitialized
1552 var warning.
1553
1554 2008-09-10 Jakub Jelinek <jakub@redhat.com>
1555
1556 PR tree-optimization/37353
1557 * tree-call-cdce.c (cond_dead_built_in_calls): Remove.
1558 (shrink_wrap_conditional_dead_built_in_calls): Add calls argument, use
1559 calls instead of cond_dead_built_in_calls.
1560 (tree_call_cdce): Add cond_dead_built_in_calls automatic variable,
1561 initalize the vector only before adding first entry. Use VEC_safe_push
1562 instead of VEC_quick_push. Pass cond_dead_built_in_calls to
1563 shrink_wrap_conditional_dead_built_in_calls call.
1564
1565 2008-09-10 Ira Rosen <irar@il.ibm.com>
1566
1567 PR tree-optimization/37385
1568 * tree-vect-transform.c (vect_create_data_ref_ptr): Add a new argument,
1569 and use it as a vector type if not NULL.
1570 (vectorizable_store): Call vect_create_data_ref_ptr with the type of
1571 vectorized rhs.
1572 (vect_setup_realignment): Call vect_create_data_ref_ptr with additional
1573 argument.
1574 (vectorizable_load): Likewise.
1575
1576 2008-09-10 Jakub Jelinek <jakub@redhat.com>
1577
1578 * config/i386/i386.md (SWI32): New mode iterator.
1579 (jcc_fused_1, jcc_fused_2, jcc_fused_3, jcc_fused_4): Use it instead
1580 of SWI.
1581
1582 2008-09-09 Vladimir Makarov <vmakarov@redhat.com>
1583
1584 PR rtl-optimization/37435
1585 * caller-save.c (insert_restore, insert_save): Check the mode by
1586 reg_save_code.
1587
1588 2008-09-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1589
1590 PR other/37265
1591 * dwarf2asm.c (dw2_force_const_mem): Use unstripped symbol name for
1592 splay tree lookup.
1593 (dw2_output_indirect_constant_1): Use unstripped name in symbol
1594 reference.
1595
1596 2008-09-09 Sandra Loosemore <sandra@codesourcery.com>
1597
1598 * doc/invoke.texi (ARM Options): Correct errors in discussion
1599 of -mfloat-abi, -mhard-float, and -msoft-float.
1600
1601 2008-09-09 Jakub Jelinek <jakub@redhat.com>
1602 Jan Hubicka <jh@suse.cz>
1603
1604 PR middle-end/37356
1605 * tree-inline.c (copy_bb): Insert stmt into copy_basic_block before
1606 calling gimple_regimplify_operands on it. Iterate over all newly
1607 added statements, not just the last one.
1608 (insert_init_stmt): Insert stmt into seq first, then call
1609 gimple_regimplify_operands on it. Don't create new gimplification
1610 context, nor find referenced vars.
1611
1612 2008-09-09 Jakub Jelinek <jakub@redhat.com>
1613
1614 PR other/37419
1615 * ipa-prop.h (ipa_propagate_indirect_call_infos): Change last argument
1616 to pointer to vector pointer.
1617 * ipa-prop.c (ipa_propagate_indirect_call_infos,
1618 propagate_info_to_inlined_callees): Likewise.
1619 (update_call_notes_after_inlining): Likewise. Push new indirect edge
1620 to *new_edges instead of new_edges. Reread IPA_EDGE_REF after
1621 ipa_check_create_edge_args.
1622 * ipa-inline.c (cgraph_decide_recursive_inlining): Change last argument
1623 to pointer to vector pointer.
1624 (cgraph_decide_inlining_of_small_function): Adjust
1625 cgraph_decide_recursive_inlining and ipa_propagate_indirect_call_infos
1626 calls.
1627
1628 PR target/37438
1629 * config/i386/i386.md (zero_extendqihi2_movzbl): Enable when
1630 optimizing for size, not speed.
1631
1632 PR rtl-optimization/37408
1633 * function.c (assign_parm_find_stack_rtl): Set correct MEM_SIZE
1634 if parm is promoted.
1635
1636 2008-09-09 Sebastian Pop <sebastian.pop@amd.com>
1637
1638 PR tree-optimization/37375
1639 * tree-scalar-evolution.c (scev_info_str): Add field
1640 instantiated_below.
1641 (new_scev_info_str, eq_scev_info, find_var_scev_info,
1642 set_scalar_evolution, get_scalar_evolution, get_instantiated_value,
1643 set_instantiated_value): Pass instantiated_below.
1644 (analyze_scalar_evolution_1, analyze_scalar_evolution): Update calls
1645 to above functions.
1646 (instantiate_scev_1, instantiate_scev): Pass a basic block above which
1647 the definitions are not instantiated.
1648
1649 * tree-scalar-evolution.h (instantiate_scev): Update declaration.
1650 (block_before_loop): New.
1651 * tree-data-ref.c (dr_analyze_indices): Update uses of
1652 instantiate_scev.
1653 * graphite.c (block_before_scop): New.
1654 (loop_affine_expr, stmt_simple_for_scop_p, harmful_stmt_in_bb): Pass a
1655 basic block, not a loop for determining the parameters.
1656 (scopdet_edge_info, build_scops_1): Do not pass outermost loop in the
1657 scop.
1658 (idx_record_params, find_params_in_bb, find_scop_parameters,
1659 build_loop_iteration_domains, add_conditions_to_domain): Update calls
1660 to instantiate_scev.
1661
1662 * Makefile.in (cfgloopmanip.o): Add missing dependency on TREE_FLOW_H.
1663
1664 2008-09-09 Vladimir Makarov <vmakarov@redhat.com>
1665
1666 PR rtl-opt/37333
1667
1668 * ira-build.c (ira_create_allocno): Setup frequency to 0.
1669
1670 * ira-color.c (update_conflict_hard_regno_costs): Remove assert.
1671 Check zero freq and increase if necessary.
1672
1673 2008-09-09 Vladimir Makarov <vmakarov@redhat.com>
1674
1675 * ira-conflicts.c (process_regs_for_copy): Check that the hard
1676 regno is in the right range. Add comments.
1677
1678 2008-09-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1679
1680 * Makefile.in (mips-tfile.o-warn): Don't error out on mips-tfile.c
1681 warnings.
1682 * mips-tfile.c (copy_object): Cast alloca result to int *.
1683 * mips-tdump.c (print_symbol): Cast xmalloc return values to
1684 proper types.
1685 Rename class to sclass.
1686 (read_tfile): Cast read_seek return values to proper types.
1687 Cast xcalloc return value to proper type.
1688
1689 2008-09-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1690
1691 * config/sol2.h (REGISTER_TARGET_PRAGMAS): Move ...
1692 * config/i386/sol2.h (REGISTER_SUBTARGET_PRAGMAS): ... here.
1693 * config/sparc/sol2.h (REGISTER_TARGET_PRAGMAS): ... and here.
1694
1695 2008-09-09 Jan Hubicka <jh@suse.cz>
1696
1697 * profile.c (is_edge_inconsistent): Add debug output; ignore
1698 negative count on fake edges.
1699 (is_inconsistent): Add debug output.
1700
1701 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
1702
1703 * haifa-sched.c (advance_one_cycle): Do not print '\n' before printing
1704 dump message.
1705 (choose_ready): When first insn is chosen from the ready list, also
1706 dump it.
1707
1708 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
1709
1710 PR rtl-optimization/37360
1711 * haifa-sched.c (max_issue): Do not assert that we never issue more
1712 insns than issue_rate. Add comment.
1713
1714 2008-09-09 Richard Guenther <rguenther@suse.de>
1715
1716 * tree-cfg.c (verify_types_in_gimple_op): Remove.
1717 (verify_types_in_gimple_call): Rename to ...
1718 (verify_gimple_call): ... this. Enhance.
1719 (verify_types_in_gimple_cond): Remove.
1720 (verify_gimple_comparison): New function ...
1721 (verify_types_in_gimple_assign): ... split out from here.
1722 (verify_types_in_gimple_return): Rename to ...
1723 (verify_gimple_return): ... this. Enhance.
1724 (verify_types_in_gimple_switch): Rename to ...
1725 (verify_gimple_switch): ... this. Enhance.
1726 (verify_gimple_goto): New function.
1727 (verify_types_in_gimple_phi): Rename to ...
1728 (verify_gimple_phi): ... this. Enhance.
1729 (verify_types_in_gimple_stmt): Adjust calls to helper functions.
1730 Fold in single-statement cases from verify_types_in_gimple_seq_2.
1731 (verify_types_in_gimple_seq_2): Remove cases handled in
1732 verify_types_in_gimple_stmt.
1733
1734 2008-09-09 Bernd Schmidt <bernd.schmidt@analog.com>
1735
1736 * config/bfin/bfin.c (n_regs_to_save): New static variable.
1737 (push_multiple_operation, pop_multiple_operation): Set it.
1738 (workaround_rts_anomaly): New function.
1739 (workaround_speculation): New function, broken out of bfin_reorg.
1740 (bfin_reorg): Call the new functions.
1741
1742 2008-09-09 Richard Guenther <rguenther@suse.de>
1743
1744 PR middle-end/37354
1745 PR middle-end/30165
1746 * gimplify.c (gimplify_conversion): Change conversions of
1747 non-register type to VIEW_CONVERT_EXPRs.
1748 (gimplify_addr_expr): If we need to make the operand
1749 addressable make sure to use a properly initialized
1750 temporary for that so it gets a valid gimple store.
1751
1752 2008-09-09 Aldy Hernandez <aldyh@redhat.com>
1753
1754 * function.h (struct function): Add function_start_locus.
1755 * cfgexpand.c (gimple_expand_cfg): Use it.
1756 * c-parser.c (c_parser_declaration_or_fndef): Set it.
1757
1758 2008-09-09 Richard Guenther <rguenther@suse.de>
1759
1760 PR tree-optimization/37433
1761 * tree-ssa-ccp.c (ccp_fold): Properly guard folding of
1762 function calls.
1763
1764 2008-09-09 Richard Guenther <rguenther@suse.de>
1765
1766 PR tree-optimization/37387
1767 * tree-ssa-ifcombine.c (ifcombine_iforif): Convert the name
1768 and bits to a common type.
1769
1770 2008-09-09 Nick Clifton <nickc@redhat.com>
1771
1772 * config/v850/v850.md (return): Restore frame size restriction.
1773
1774 2008-09-09 Paolo Bonzini <bonzini@gnu.org>
1775
1776 * c-common.c (c_expand_decl): Remove.
1777 * c-common.h (anon_aggr_type_p): Remove prototype.
1778 (DECL_ANON_UNION_ELEMS): Remove.
1779 * c-objc-common.h (LANG_HOOKS_EXPAND_DECL): Remove.
1780 * c-decl.c (anon_aggr_type_p): Remove.
1781 * langhooks-def.h (LANG_HOOKS_EXPAND_DECL): Remove.
1782 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_EXPAND_DECL.
1783 * langhooks.h (struct lang_hooks): Remove expand_decl.
1784 * langhooks.c (lhd_expand_decl): Remove.
1785 * stmt.c (expand_anon_union_decl): Remove.
1786 * tree.h (expand_anon_union_decl): Remove prototype.
1787
1788 2008-08-09 Andy Hutchinson <hutchinsonandy@aim.com>
1789
1790 PR target/36609
1791 * config/avr/avr.c (avr_reorg): Create RTL for reversed compare with
1792 zero.
1793 * config/avr/avr.md (QISI) : Define mode iterator.
1794 (negated_tst<mode>) : Redefine as split using mode macro.
1795 (reversed_tstqi): Define insn as reversed compare with zero.
1796 (reversed_tsthi): Ditto.
1797 (reversed_tstsi): Ditto.
1798
1799 2008-09-08 Jakub Jelinek <jakub@redhat.com>
1800
1801 PR middle-end/37393
1802 * tree-inline.c (copy_bb): When replacing a gimple_call_va_arg_pack_p
1803 call stmt by new_call, clear gimple_bb on stmt after gsi_replace.
1804
1805 PR middle-end/37414
1806 * predict.c (optimize_function_for_size_p): Don't segfault if
1807 FUN is NULL.
1808 * fold-const.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop,
1809 tree_swap_operands_p): Don't test cfun != NULL before calling
1810 optimize_function_for_s*_p.
1811
1812 2008-09-08 Eric Botcazou <ebotcazou@adacore.com>
1813
1814 * ira-color.c (ira_reuse_stack_slot): Set slot_num on success at the
1815 end of the search.
1816
1817 2008-09-08 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
1818
1819 * crx/crx.h (IRA_COVER_CLASSES): Define.
1820
1821 2008-09-08 Jakub Jelinek <jakub@redhat.com>
1822
1823 PR middle-end/37337
1824 * tree-ssa-dom.c (optimize_stmt): Call maybe_clean_or_replace_eh_stmt
1825 even when a stmt has been gimple_modified_p, but after fold_stmt is
1826 not any longer. Remove unneeded may_have_exposed_new_symbols
1827 initializations.
1828
1829 2008-09-08 Richard Guenther <rguenther@suse.de>
1830
1831 PR tree-optimization/37421
1832 * tree-ssa-sccvn.c (visit_copy): Make sure to fully
1833 valueize the RHS.
1834
1835 2008-09-08 Jakub Jelinek <jakub@redhat.com>
1836
1837 PR middle-end/37415
1838 * opts.c (common_handle_option): Handle OPT_ftree_store_ccp.
1839
1840 2008-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1841
1842 PR driver/37409
1843 * pa-hpux.h (LINK_SPEC): Strip -fwhole-program.
1844 * pa-hpux10.h (LINK_SPEC): Likewise.
1845 * pa-hpux11.h (LINK_SPEC): Likewise.
1846
1847 2008-09-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1848
1849 * pa32-regs.h (IRA_COVER_CLASSES): Define.
1850 * pa64-regs.h (IRA_COVER_CLASSES): Define.
1851
1852 2008-09-07 Helge Deller <deller@gmx.de>
1853
1854 * pa/linux-atomic.c: New file.
1855 * pa/t-linux (LIB2FUNCS_STATIC_EXTRA): Define.
1856 * pa/t-linux64 (LIB2FUNCS_STATIC_EXTRA): Define.
1857
1858 2008-09-07 Richard Guenther <rguenther@suse.de>
1859 Ira Rosen <irar@il.ibm.com>
1860
1861 PR tree-optimization/36630
1862 * tree-vect-transform.c (vect_update_ivs_after_vectorizer):
1863 Call STRIP_NOPS before calling evolution_part_in_loop_num.
1864
1865 2008-09-07 Dorit Nuzman <dorit@il.ibm.com>
1866 Ira Rosen <irar@il.ibm.com>
1867
1868 PR tree-optimization/35642
1869 * config/rs6000/altivec.md (mulv8hi3): Implement.
1870
1871 2008-09-06 Jeff Law <law@redhat.com>
1872
1873 * h8300/h8300.h (IRA_COVER_CLASSES): Define.
1874
1875 2008-09-06 Jan Hubicka <jh@suse.cz>
1876
1877 PR tree-optimization/14703
1878 * tree-ssa-live.c (remove_unused_scope_block_p): Remove ignored
1879 declarations.
1880 * passes.c (init_optimization_passes): Recompute inline parameters.
1881
1882 2008-09-06 Richard Sandiford <rdsandiford@googlemail.com>
1883
1884 * config/mips/mips.c (mips_function_ok_for_sibcall): Check for
1885 DECL being null.
1886
1887 2008-09-06 Richard Sandiford <rdsandiford@goolemail.com>
1888 Peter Fuerst <post@pfrst.de>
1889
1890 * doc/invoke.texi: Document -mr10k-cache-barrier=.
1891 * doc/extend.texi: Document __builtin_mips_cache.
1892 * config/mips/mips-ftypes.def: Add a (VOID, SI, CVPOINTER) entry.
1893 * config/mips/mips.opt (mr10k-cache-barrier=): New option.
1894 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
1895 __GCC_HAVE_BUILTIN_MIPS_CACHE.
1896 (TARGET_CACHE_BUILTIN, ISA_HAS_CACHE): New macros.
1897 * config/mips/mips.c (mips_r10k_cache_barrier_setting): New enum.
1898 (set_push_mips_isas): New variable.
1899 (mips_r10k_cache_barrier): New variable.
1900 (cache): New availability predicate.
1901 (mips_builtins): Add an entry for __builtin_mips_cache.
1902 (mips_build_cvpointer_type): New function.
1903 (MIPS_ATYPE_CVPOINTER): New macro.
1904 (mips_prepare_builtin_arg): Only use the insn's mode if the rtx's
1905 mode is VOIDmode.
1906 (r10k_simplified_address_p, r10k_simplify_address)
1907 (r10k_uncached_address_p, r10k_safe_address_p)
1908 (r10k_needs_protection_p_1, r10k_needs_protection_p_store)
1909 (r10k_needs_protection_p_call, r10k_needs_protection_p)
1910 (r10k_insert_cache_barriers): New functions.
1911 (mips_reorg_process_insns): Delete cache barriers after a
1912 branch-likely instruction.
1913 (mips_reorg): Call r10k_insert_cache_barriers.
1914 (mips_handle_option): Handle OPT_mr10k_cache_barrier_.
1915 * config/mips/mips.md (UNSPEC_MIPS_CACHE): New constant.
1916 (UNSPEC_R10K_CACHE_BARRIER): Likewise.
1917 (mips_cache, r10k_cache_barrier): New define_insns.
1918
1919 2008-09-06 Richard Sandiford <rdsandiford@googlemail.com>
1920
1921 * ira-int.h (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
1922 * ira-color.c (setup_allocno_left_conflicts_num): Use
1923 hard_reg_set_equal_p instead of a comparison with
1924 ira_zero_hard_reg_set.
1925 * ira.c (setup_reg_subclasses): Likewise.
1926 (setup_cover_and_important_classes): Likewise.
1927 (setup_class_translate): Likewise.
1928 (setup_reg_class_intersect_union): Likewise.
1929 (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
1930 (ira_init_once): Don't initialize them.
1931
1932 2008-09-05 Vladimir Makarov <vmakarov@redhat.com>
1933
1934 * doc/tm.texi (IRA_COVER_CLASSES): Fix a typo.
1935
1936 2008-09-05 Vladimir Makarov <vmakarov@redhat.com>
1937
1938 * ira-color.c (ira_fast_allocation): Permit global allocno allocation.
1939
1940 2008-09-05 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
1941
1942 Improved branch hints, safe hints, and scheduling.
1943
1944 * haifa-sched.c (sched_emit_insn) : Define.
1945 * sched-int.h (sched_emit_insn) : Add prototype.
1946 * doc/invoke.texi (-mdual-nops, -mhint-max-nops,
1947 -mhint-max-distance -msafe-hints) : Document.
1948 * config/spu/spu.c (spu_flag_var_tracking): New.
1949 (TARGET_SCHED_INIT_GLOBAL, TARGET_SCHED_INIT,
1950 TARGET_SCHED_REORDER, TARGET_SCHED_REORDER2,
1951 TARGET_ASM_FILE_START): Define.
1952 (TARGET_SCHED_ADJUST_PRIORITY): Remove.
1953 (STOP_HINT_P, HINTED_P, SCHED_ON_EVEN_P): Define.
1954 (spu_emit_branch_hint): Add blocks argument.
1955 (insert_branch_hints, insert_nops): Remove.
1956 (pad_bb, insert_hbrp_for_ilb_runout, insert_hbrp, in_spu_reorg,
1957 uses_ls_unit, spu_sched_init_global, spu_sched_init,
1958 spu_sched_reorder, asm_file_start): New functions.
1959 (clock_var, spu_sched_length, pipe0_clock,
1960 pipe1_clock, prev_clock_var, prev_priority,
1961 spu_ls_first, prev_ls_clock): New static variables.
1962 * config/spu/spu.h (TARGET_DEFAULT): Add MASK_SAFE_HINTS.
1963 * config/spu.md (iprefetch): Add operand, make it clobber MEM.
1964 (nopn_nv): Add a non-volatile version of nop.
1965 * config/spu/spu.opt (-mdual-nops, -mhint-max-nops,
1966 -mhint-max-distance, -msafe-hints): New options.
1967
1968 2008-09-05 Janis Johnson <janis187@us.ibm.com>
1969 Samuel Tardieu <sam@rfc1149.net>
1970
1971 * opts.c (decode_options): Combine nested if statements.
1972
1973 PR target/37283
1974 * opts.c (decode_options): Handle more relationships among
1975 unit-at-a-time, toplevel-reorder, and section-anchors.
1976
1977 2008-09-05 David Daney <ddaney@avtrex.com>
1978
1979 * doc/install.texi (--enable-reduced-reflection): Document new option.
1980
1981 2008-09-05 Bob Wilson <bob.wilson@acm.org>
1982
1983 * config/xtensa/predicates.md (nonimmed_operand, mem_operand): Use
1984 constantpool_mem_p.
1985 (constantpool_operand): New.
1986 (move_operand): Disallow sub-word modes for the constant pool.
1987 * config/xtensa/xtensa.c (TARGET_SECONDARY_RELOAD): Define.
1988 (xtensa_secondary_reload_class): Replace with....
1989 (xtensa_secondary_reload): this function. Remove SIGN_EXTEND check.
1990 Set icode for sub-word reloads from the constant pool.
1991 * config/xtensa/xtensa.h (SECONDARY_INPUT_RELOAD_CLASS): Delete.
1992 (SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
1993 * config/xtensa/xtensa.md (reload<mode>_literal): New.
1994 * config/xtensa/xtensa-protos.h: Update prototypes.
1995
1996 2008-09-05 Joseph Myers <joseph@codesourcery.com>
1997
1998 * config/mips/mips.h (enum reg_class): Add FRAME_REGS.
1999 (REG_CLASS_NAMES): Update.
2000 (REG_CLASS_CONTENTS): Update.
2001 * config/mips/mips.c (mips_regno_to_class): Use FRAME_REGS instead
2002 of ALL_REGS for regs 77 and 78.
2003 * function.c (instantiate_virtual_regs_in_insn): Assert that
2004 return value of simplify_gen_subreg is not NULL.
2005
2006 2008-09-05 Paolo Bonzini <bonzini@gnu.org>
2007
2008 * emit-rtl.c (gen_rtvec): Rewrite not using gen_rtvec_v.
2009 (gen_rtvec_v): Fix coding standards.
2010
2011 2008-09-04 Jan Hubicka <jh@suse.cz>
2012
2013 * i386.c (decide_alg): Be more conservative about optimizing for size.
2014
2015 2008-09-04 Ian Lance Taylor <iant@google.com>
2016
2017 * varasm.c (narrowing_initializer_constant_valid_p): New
2018 static function.
2019 (initializer_constant_valid_p): Call it.
2020
2021 2008-09-04 Jeff Law <law@redhat.com>
2022
2023 * fold-const.c (native_encode_real): Fix computation of WORDS.
2024 (native_interpret_real): Likewise.
2025
2026 2008-09-04 Janis Johnson <janis187@us.ibm.com>
2027
2028 * config/rs6000/t-rs6000: Remove target gt-rs6000.h.
2029
2030 2008-09-04 Vladimir Makarov <vmakarov@redhat.com>
2031
2032 * ira-conflicts.c (process_regs_for_copy): Check insn to check
2033 that the cost is already taken into account in ira-costs.c
2034
2035 * ira-int.h (ira_debug_copy, ira_debug_copies): New.
2036
2037 * ira-build.c (print_copy, print_copies, ira_debug_copy,
2038 ira_debug_copies): New.
2039 (ira_bulid): Call print_copies.
2040
2041 * doc/tm.texi (IRA_COVER_CLASSES): Fix the description.
2042
2043 2008-09-04 Samuel Tardieu <sam@rfc1149.net>
2044
2045 PR target/32783
2046 * config/rs6000/rs6000.c (optimization_options): Remove check of
2047 flag_toplevel_order.
2048
2049 2008-09-04 Adam Nemet <anemet@caviumnetworks.com>
2050
2051 * config/mips/mips.h (ISA_HAS_SEQ_SNE): New macro.
2052 * config/mips/mips.c (mips_expand_scc): Also expand seq and sne if
2053 second operand is a reg_imm10_operand.
2054 * config/mips/mips.md (*seq_<GPR:mode><GPR2:mode>_seq,
2055 *sne_<GPR:mode><GPR2:mode>_sne): New patterns.
2056 (*seq_<GPR:mode><GPR2:mode>): Rename to
2057 *seq_zero_<GPR:mode><GPR2:mode>. Don't match if
2058 ISA_HAS_SEQ_SNE.
2059 (*seq_<GPR:mode><GPR2:mode>_mips16): Rename to
2060 *seq_zero_<GPR:mode><GPR2:mode>_mip16. Don't match if
2061 ISA_HAS_SEQ_SNE.
2062 (*sne_<GPR:mode><GPR2:mode>): Rename to
2063 *sne_zero_<GPR:mode><GPR2:mode>. Don't match if
2064 ISA_HAS_SEQ_SNE.
2065
2066 2008-09-04 Adam Nemet <anemet@caviumnetworks.com>
2067
2068 * config/mips/mips.h (ISA_HAS_EXTS): New macro.
2069 * config/mips/mips.md (*ashr_trunc<mode>): Name the pattern
2070 combining an arithmetic right shift by more than 31 and a
2071 trunction. Don't match for out-of-range shift amounts. Set
2072 attribute mode to <MODE>.
2073 (*lshr32_trunc<mode>): Name the pattern combining a logical right
2074 shift by 32 and and a truncation. Set attribute mode to <MODE>.
2075 (*<optab>_trunc<mode>_exts): New pattern for truncated right
2076 shifts by less than 32.
2077 (extv): Change predicate on first operand to accept registers.
2078 Change predicate of the other operands from immediate_operand to
2079 const_int_operand. Expand exts when source is a register.
2080 (extzv): Change predicate of the constant operands from
2081 immediate_operand to const_int_operand.
2082 (extzv<mode>): Change predicate of the constant operands from
2083 immediate_operand to const_int_operand and no constraint. Also
2084 remove mode.
2085 (*extzv_trunc<mode>_exts): New pattern.
2086
2087 2008-09-04 Adam Nemet <anemet@caviumnetworks.com>
2088
2089 * config/mips/mips.h (ISA_HAS_CINS): New macro.
2090 * config/mips/mips-protos.h (mask_low_and_shift_p,
2091 mask_low_and_shift_len): Declare.
2092 * config/mips/mips.c (mask_low_and_shift_p,
2093 mask_low_and_shift_len): New functions.
2094 (mips_print_operand): Handle new operand prefix "m".
2095 * config/mips/mips.md (*cins<mode>): New pattern.
2096
2097 2008-09-04 Bernd Schmidt <bernd.schmidt@analog.com>
2098
2099 * config/bfin/bfin.c (gen_one_bundle): Don't create new nops when
2100 optimizing for size.
2101
2102 2008-09-04 Richard Sandiford <rdsandiford@googlemail.com>
2103
2104 * df-scan.c (df_get_entry_block_def_set): Add STACK_POINTER_REGNUM
2105 regardless of epilogue_completed.
2106
2107 2008-09-04 Vladimir Makarov <vmakarov@redhat.com>
2108
2109 PR middle-end/37359
2110 * ira-lives.c (process_bb_node_lives): Check setjmp.
2111
2112 2008-09-04 Richard Sandiford <rdsandiford@googlemail.com>
2113
2114 PR middle-end/37243
2115 * ira-build.c (form_loop_tree): Reverse BB walk.
2116 (create_bb_allocnos): Likewise.
2117 * ira-lives.c (make_regno_born_and_dead, regs_set): Delete.
2118 (mark_reg_store): Rename to...
2119 (mark_ref_live): ...this and take a df_ref argument instead of
2120 note_stores arguments. Assert that we have a register.
2121 (mark_reg_clobber): Delete.
2122 (def_conflicts_with_inputs_p): New function.
2123 (mark_reg_conflicts): Delete.
2124 (mark_reg_death): Rename to...
2125 (mark_ref_dead): ...this and take a df_ref argument instead of
2126 a register. Assert that we have a register.
2127 (process_bb_node_lives): Hoist frequency calculation out of
2128 instruction walk. Convert from a forwards scan to a backwards scan.
2129 Use DF_REF_USES and DF_REF_DEFS instead of register notes and
2130 note_stores. Remove EH_RETURN_DATA_REGNO and regs_set handling.
2131 (create_allocno_live_ranges): Don't create regs_set.
2132
2133 2008-09-04 Ian Lance Taylor <iant@google.com>
2134
2135 * rtl.h (LABEL_REF_NONLOCAL_P): Don't check for REG_LABEL_OPERAND
2136 or REG_LABEL_TARGET.
2137 * calls.c (emit_library_call_value_1): Use MEM_P rather than
2138 comparing MODE with MEM.
2139 * gimple.c (gimple_build_predict): Cast END_PREDICTORS before
2140 comparing with GF_PREDICT_TAKEN.
2141 (gimple_get_lhs): Change code to enum gimple_code.
2142 (gimple_set_lhs): Likewise.
2143 * ifcvt.c (noce_process_if_block): Correct GET_MODE to GET_CODE.
2144 * omp-low.c (find_omp_clause): Change kind parameter to enum
2145 omp_clause_code.
2146 * tree-flow.h (find_omp_clause): Update declaration.
2147 * regrename.c (clear_dead_regs): Change kind parameter to enum
2148 reg_note.
2149 * reload1.c (eliminate_regs_1): Use REG_NOTE_KIND rather than
2150 GET_MODE.
2151 * see.c (see_get_extension_data): Change return type to enum
2152 entry_type. Change UNKNOWN to NOT_RELEVANT, SIGN_EXTEND to
2153 SIGNED_EXTENDED_DEF, ZERO_EXTEND to ZERO_EXTENDED_DEF.
2154 (see_gen_normalized_extension): Change extension_code parameter to
2155 enum entry_type.
2156 (see_seek_pre_extension_expr): Change extension_code to enum
2157 entry_type.
2158 (see_merge_one_def_extension): Likewise.
2159 (see_handle_relevant_defs): Likewise.
2160 (see_handle_relevant_uses): Likewise.
2161 (see_analyze_one_def): Likewise.
2162 * tree-cfg.c (need_fake_edge_p): Compare gimple code with
2163 GIMPLE_ASM rather than ASM_EXPR.
2164 * tree-ssa-alias.c (is_escape_site): Compare gimple code with
2165 GIMPLE_RETURN rather than RETURN_EXPR.
2166 * tree-ssa-ccp.c (likely_value): Change code to enum gimple_code.
2167 (evaluate_stmt): Likewise.
2168 * tree-vect-analyze.c (vect_analyze_operations): Change relevance
2169 to enum vect_relevant.
2170 (vect_mark_stmts_to_be_vectorized): Change assertion to not
2171 compare gimple codes with tree codes.
2172
2173 2008-09-04 Paul Brook <paul@codesourcery.com>
2174
2175 * config/arm/arm.c (arm_size_rtx_costs): Call cost function.
2176
2177 2008-09-04 Bernd Schmidt <bernd.schmidt@analog.com>
2178
2179 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Restore a null
2180 pointer check lost in the recent no-unit-at-a-time patch.
2181
2182 2008-09-04 Jan Hubicka <jh@suse.cz>
2183
2184 PR middle-end/37343
2185 * tree-switch-conversion.c (check_final_bb): Accept only IP
2186 invariants.
2187
2188 2008-09-04 Jan Hubicka <jh@suse.cz>
2189
2190 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
2191 Break out from ...
2192 (vrp_evaluate_conditional_warnv_with_ops): ... this one. Add
2193 using_ranges argument.
2194 (vrp_evaluate_conditional): Avoid bogus warning for type range.
2195 (vrp_visit_cond_stmt): Update call of
2196 vrp_evaluate_conditional_warnv_with_ops
2197
2198 2008-09-04 Jan Hubicka <jh@suse.cz>
2199
2200 PR tree-optimization/37345
2201 PR tree-optimization/37358
2202 PR tree-optimization/37357
2203 * tree.c (build_function_type_skip_args): Build distinct type copy;
2204 set TYPE_CONTEXT.
2205 (build_function_decl_skip_args): Set type of new decl not orig decl;
2206 clear DECL_VINDEX for methods turned into functions.
2207
2208 2008-09-04 Nick Clifton <nickc@redhat.com>
2209
2210 * configure.ac (HAVE_GAS_LCOMM_WITH_ALIGNMENT): New assembler check.
2211 * configure: Regenerate.
2212 * config.in: Regenerate.
2213 * config/i386/bsd.h (ASM_OUTPUT_ALIGNED_LOCAL): Use .lcomm with an
2214 alignment field, if it is supported.
2215
2216 2008-09-04 Kai Tietz <kai.tietz@onevision.com>
2217
2218 * config/i386/t-mingw32 (SHLIB_LC): Change order of import
2219 libraries.
2220
2221 2008-09-03 David Edelsohn <edelsohn@gnu.org>
2222
2223 * config/rs6000/rs6000.c (processor_target_table): Do not
2224 enable VMX for POWER6.
2225
2226 2008-09-03 Anton Blanchard <anton@samba.org>
2227
2228 * config/rs6000/rs6000.c (rs6000_split_lock_test_and_set): Do not
2229 emit memory barrier before operation.
2230
2231 2008-09-03 John David Anglin <dave.anglin@nrc.cnrc.gc.ca>
2232
2233 PR testsuite/37325
2234 * config/pa/pa64-hpux.h (ASM_OUTPUT_EXTERNAL_REAL): Call
2235 default_elf_asm_output_external.
2236
2237 2008-09-03 Jeff Law <law@redhat.com>
2238
2239 * h8300.c (expand_a_shift): Avoid invalid RTL sharing.
2240
2241 2008-09-03 Richard Henderson <rth@redhat.com>
2242
2243 * config/alpha/alpha.c (alpha_split_lock_test_and_set): Move
2244 memory barrier to below the test-and-set.
2245 (alpha_split_lock_test_and_set_12): Likewise.
2246
2247 2008-09-03 Vladimir Makarov <vmakarov@redhat.com>
2248
2249 PR rtl-opt/37243
2250
2251 * ira-int.h (ira_loop_tree_node): Rename mentioned_allocnos to
2252 all_allocnos.
2253
2254 * ira-color.c (print_loop_title): Use all_allocnos.
2255 (color_pass): Ditto. Don't add border_allocnos. Check that
2256 subloop allocno in the correspdoning bitmap all_allocnos.
2257
2258 * ira-emit.c (change_loop): Use all_allocnos.
2259
2260 * ira-build.c (create_loop_tree_nodes, finish_loop_tree_node):
2261 Ditto.
2262 (ira_create_allocno): Set up all_allocnos bit for the created
2263 allocno.
2264 (create_cap_allocno): Remove setting mentioned_allocnos.
2265 (create_insn_allocnos): Ditto.
2266 (remove_unnecessary_allocnos): Use all_allocnos.
2267 (check_allocno_creation): Check that allocnos are in the
2268 corresponding bitmap all_allocnos.
2269
2270 2008-09-03 Vladimir Makarov <vmakarov@redhat.com>
2271
2272 PR rtl-opt/37243
2273
2274 * ira-conflicts.c (REG_SUBREG_P, go_through_subreg): New.
2275 (process_regs_for_copy): Process subregs. Refine check when cost
2276 is taken into account in ira-costs.c.
2277 (process_reg_shuffles): Use REG_SUBREG_P.
2278 (add_insn_allocno_copies): Ditto. Ignore modes.
2279
2280 * ira-color.c (conflict_allocno_vec): New.
2281 (COST_HOP_DIVISOR): New macro.
2282 (update_copy_costs_1): Use it.
2283 (update_conflict_hard_regno_costs): New function.
2284 (assign_hard_reg): Use it.
2285 (ira_color): Allocate and free conflict_allocno_vec.
2286
2287 2008-09-03 Vladimir Makarov <vmakarov@redhat.com>
2288
2289 PR rtl-opt/37296
2290
2291 * ira-int.h (ira_sort_insn_chain): Remove.
2292
2293 * ira.c (basic_block_order_nums, chain_insn_order,
2294 chain_freq_compare, chain_bb_compare, ira_sort_insn_chain): Remove.
2295 (ira): Don't call ira_sort_insn_chain.
2296
2297 * reload1.c (reload): Don't call ira_sort_insn_chain.
2298
2299 2008-09-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
2300
2301 PR middle-end/37293
2302 * cgraphunit.c (update_call_expr): Remove eh regions from statements
2303 which become non throw.
2304 (cgraph_function_versioning): Also clear DECL_WEAK. Call
2305 update_call_expr after updating the flags on the decl.
2306
2307 2008-09-03 Jan Hubicka <jh@suse.cz>
2308
2309 PR tree-optimization/37315
2310 * cgraph.c (cgraph_create_edge): Use gimple_has_body_p.
2311 * cgraphunit.c (verify_cgraph_node): drop gimple_body check.
2312 (cgraph_analyze_functions): Use node->analyzed
2313 (cgraph_mark_functions_to_output): Likewise.
2314 (cgraph_expand_function): All functions can be released after
2315 expanding.
2316 (cgraph_optimize): Use gimple_has_body_p.
2317 * ipa-inline.c (cgraph_clone_inlined_nodes): Use analyzed flag.
2318 (cgraph_decide_inlining_incrementally): Likewise.
2319 (inline_transform): Inline transform.
2320 * tree-inline.c (initialize_cfun): Do now shallow copy structure;
2321 copy fields needed.
2322 (inlinable_function_p): Drop gimple_body check.
2323 (expand_call_inline): Use gimple_has_body_p.
2324 * gimple.c (gimple_has_body_p): New.
2325 * gimple.h (gimple_has_body_p): Add prototype.
2326 * tree-cfg.c (execute_build_cfg): Remove gimple_body.
2327 (dump_function_to_file): Use gimple_has_body_p check.
2328
2329 2008-09-03 Jakub Jelinek <jakub@redhat.com>
2330
2331 PR c++/37346
2332 * gimple.h (gimple_has_substatements): GIMPLE_OMP_CRITICAL has
2333 substatements.
2334 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_CRITICAL.
2335
2336 2008-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
2337
2338 From Michael Frysinger <michael.frysinger@analog.com>
2339 * config/bfin/bfin.c (bfin_cpus[]): Add 0.1 for bf522, bf523, bf524,
2340 bf525, bf526, bf527, bf542, bf544, bf547, bf548, and bf549. Add 0.2
2341 for bf538.
2342
2343 2008-09-03 Hari Sandanagobalane <hariharan@picochip.com>
2344
2345 Add picoChip port.
2346 * doc/extend.texi: Document picoChip builtin functions.
2347 * doc/invoke.texi: Document picoChip options.
2348 * doc/contrib.texi: Add picoChip contribution.
2349 * doc/md.texi: Document picoChip constraints.
2350 * config.gcc: Add picochip-*-*.
2351 * config/picochip/: Add new port.
2352
2353 2008-09-03 Richard Guenther <rguenther@suse.de>
2354
2355 PR tree-optimization/37328
2356 * tree-sra.c (sra_build_assignment): Gimplify properly.
2357 (generate_copy_inout): Take the correct stmt as definition,
2358 remove bogus assert.
2359
2360 2008-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
2361
2362 * config/bfin/bfin.c (bfin_expand_prologue): Honour no_stack_limit
2363 attributes.
2364
2365 From Michael Frysinger <michael.frysinger@analog.com>
2366 * config/bfin/bfin.c (bfin_handle_option): Remove BF561 warning.
2367
2368 2008-09-03 Danny Smith <dannysmith@usrs.sourceforge.net>
2369
2370 * gthr-win32.h (CONST_CAST2): Really make sure CONST_CAST2 is defined.
2371 (__gthread_setspecific): Revert 2008-08-31 change to
2372 __GTHREAD_HIDE_W32API case. Apply it to !__GTHREAD_HIDE_W32API case.
2373
2374 2008-09-02 Aldy Hernandez <aldyh@redhat.com>
2375
2376 * diagnostic.c (error_at): New.
2377 * toplev.h (error_at): New prototype.
2378 * c-typeck.c (build_array_ref): Call error_at instead of error.
2379 Pass location to pedwarn.
2380
2381 2008-09-02 Adam Nemet <anemet@caviumnetworks.com>
2382
2383 * sel-sched.c (sel_hard_regno_rename_ok): Mark arguments unused.
2384
2385 2008-09-02 Jakub Jelinek <jakub@redhat.com>
2386
2387 * dwarf2out.c (tree_add_const_value_attribute): Only handle
2388 VAR_DECL and CONST_DECL.
2389
2390 2008-09-02 H.J. Lu <hongjiu.lu@intel.com>
2391 Jakub Jelinek <jakub@redhat.com>
2392
2393 * config/i386/i386.c (X86_64_VARARGS_SIZE): Removed.
2394 (setup_incoming_varargs_64): Assume cum != NULL. Set/check
2395 ix86_varargs_gpr_size and ix86_varargs_fpr_size. Use
2396 ix86_varargs_gpr_size instead of X86_64_REGPARM_MAX.
2397 Don't set ix86_save_varrargs_registers.
2398 (ix86_setup_incoming_varargs): Assume cum != NULL.
2399 (ix86_va_start): Check ix86_varargs_gpr_size and
2400 ix86_varargs_fpr_size instead of cfun->va_list_gpr_size and
2401 cfun->va_list_fpr_size, respectively. Subtract 8*X86_64_REGPARM_MAX
2402 from frame pointer if ix86_varargs_gpr_size == 0.
2403 (ix86_compute_frame_layout): Updated.
2404 * config/i386/i386.h (ix86_save_varrargs_registers): Removed.
2405 (ix86_varargs_gpr_size): Define.
2406 (ix86_varargs_fpr_size): Likewise.
2407 (machine_function): Remove save_varrargs_registers.
2408 Add varargs_gpr_size and varargs_fpr_size.
2409
2410 2008-09-02 Jakub Jelinek <jakub@redhat.com>
2411
2412 * config/alpha/alpha.c (va_list_skip_additions,
2413 alpha_stdarg_optimize_hook, alpha_gimplify_va_arg_1): Tuplify.
2414 (alpha_gimplify_va_arg): Call unshare_expr on second use of
2415 offset_field.
2416
2417 PR tree-optimization/36766
2418 * tree-cfg.c (gimple_purge_all_dead_eh_edges): Do nothing
2419 for already removed basic blocks.
2420
2421 PR target/36332
2422 * real.c (real_maxval): Clear a lower bit to make real_maxval
2423 match get_max_float for IBM long double format.
2424
2425 2008-09-02 Andreas Schwab <schwab@suse.de>
2426
2427 * configure.ac: Use m4_quote to quote the expansion of m4_do.
2428 * configure: Regenerate.
2429
2430 2008-09-02 Richard Sandiford <rdsandiford@googlemail.com>
2431
2432 * simplify-rtx.c (simplify_binary_operation_1): Check for CONST,
2433 SYMBOL_REF and LABEL_REF when applying plus_constant, instead of
2434 checking for a non-VOID CONSTANT_P.
2435
2436 2008-09-02 Jan Hubicka <jh@suse.cz>
2437
2438 * predict.c (pass_strip_predict_hints): Avoid bugs dump file.
2439 * expmed.c (expand_divmod): Fix test of smod_pow2_cheap and
2440 sdiv_pow2_cheap
2441
2442 2008-09-02 H.J. Lu <hongjiu.lu@intel.com>
2443
2444 * expr.c (emit_group_store): Don't assert stack temp mode size.
2445
2446 2008-09-02 Sebastian Pop <sebastian.pop@amd.com>
2447 Tobias Grosser <grosser@fim.uni-passau.de>
2448 Jan Sjodin <jan.sjodin@amd.com>
2449 Harsha Jagasia <harsha.jagasia@amd.com>
2450 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
2451 Konrad Trifunovic <konrad.trifunovic@inria.fr>
2452 Adrien Eliche <aeliche@isty.uvsq.fr>
2453
2454 Merge from graphite branch.
2455 * graphite.c: New.
2456 * graphite.h: New.
2457 * tree-loop-linear.c (perfect_loop_nest_depth): Export.
2458 * doc/invoke.texi (-floop-block, -floop-interchange,
2459 -floop-strip-mine): Document new flags.
2460 * tree-into-ssa.c (gimple_vec): Moved...
2461 * tree-loop-distribution.c (rdg_component): Moved...
2462 * cfgloopmanip.c: Include tree-flow.h.
2463 (update_dominators_in_loop): New.
2464 (create_empty_if_region_on_edge): New.
2465 (create_empty_loop_on_edge): New.
2466 (loopify): Use update_dominators_in_loop.
2467 * tree-pass.h (pass_graphite_transforms): Declared.
2468 * configure: Regenerate.
2469 * tree-phinodes.c (make_phi_node): Export.
2470 (add_phi_node_to_bb): New, split from create_phi_node.
2471 * tree-chrec.c (for_each_scev_op): New.
2472 * tree-chrec.h (for_each_scev_op): Declared.
2473 * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
2474 (remove_statement): Call get_phi_with_result.
2475 * config.in (HAVE_cloog): Undef.
2476 * gdbinit.in (pgg): New.
2477 * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
2478 * tree-ssa-loop.c (graphite_transforms): New.
2479 (gate_graphite_transforms): New.
2480 (pass_graphite_transforms): New.
2481 * configure.ac (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC,
2482 HAVE_cloog): Defined.
2483 * tree-vectorizer.c (rename_variables_in_bb): Export.
2484 * tree-data-ref.c (dr_may_alias_p): Export.
2485 (stmt_simple_memref_p): New.
2486 (find_data_references_in_stmt): Export.
2487 (find_data_references_in_loop): Export.
2488 (create_rdg_edge_for_ddr): Initialize RDGE_RELATION.
2489 (create_rdg_edges_for_scalar): Initialize RDGE_RELATION.
2490 (create_rdg_vertices): Export.
2491 (build_empty_rdg): New.
2492 (build_rdg): Call build_empty_rdg. Free dependence_relations.
2493 * tree-data-ref.h (rdg_component): ... here.
2494 (scop_p): New.
2495 (struct data_reference): Add a field scop.
2496 (DR_SCOP): New.
2497 (find_data_references_in_loop): Declared.
2498 (find_data_references_in_stmt): Declared.
2499 (create_rdg_vertices): Declared.
2500 (dr_may_alias_p): Declared.
2501 (stmt_simple_memref_p): Declared.
2502 (struct rdg_edge): Add a field ddr_p relation.
2503 (build_empty_rdg): Declared.
2504 * lambda.h (lambda_matrix): Declare a VEC of.
2505 (find_induction_var_from_exit_cond): Declared.
2506 (lambda_vector_compare): New.
2507 * common.opt (fgraphite, floop-strip-mine,
2508 floop-interchange, floop-block): New flags.
2509 * lambda-code.c (find_induction_var_from_exit_cond): Export.
2510 * cfgloop.c (is_loop_exit): New.
2511 * cfgloop.h (is_loop_exit): Declared.
2512 (create_empty_if_region_on_edge): Declared.
2513 (create_empty_loop_on_edge): Declared.
2514 * tree-flow.h (add_phi_node_to_bb): Declared.
2515 (make_phi_node): Declared.
2516 (rename_variables_in_bb): Declared.
2517 (perfect_loop_nest_depth): Declared.
2518 (graphite_transform_loops): Declared.
2519 * Makefile.in (cfgloopmanip.o): Depend on TREE_FLOW_H.
2520 (graphite.o-warn): Add -Wno-error.
2521 (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC): Declared.
2522 (LIBS): Add GMPLIBS, CLOOGLIBS, PPLLIBS.
2523 (INCLUDES): Add PPLINC, CLOOGINC.
2524 (OBJS-common): Add graphite.o.
2525 (graphite.o): Add rule.
2526 * gimple.h (gimple_vec): ... here.
2527 * tree-cfg.c (print_loops): Start printing at ENTRY_BLOCK_PTR.
2528 * passes.c (init_optimization_passes): Schedule
2529 pass_graphite_transforms.
2530
2531 2008-09-02 Samuel Tardieu <sam@rfc1149.net>
2532
2533 PR target/37283
2534 * opts.c (decode_options): Move processing of -fno-unit-at-a-time
2535 and -fno-toplevel-reorder after handle_options.
2536
2537 2008-09-02 Paul Brook <paul@codesourcery.com>
2538
2539 * config/arm/arm.c (arm_tune_cortex_a9): Define.
2540 (arm_override_options): Set arm_tune_cortex_a9.
2541 (arm_rtx_costs_1): Make register shifts more expensive on Cortex-A9.
2542 (arm_issue_rate): Handle cortexa9.
2543 * config/arm/arm.h (arm_tune_cortex_a9): Declare.
2544 * config/arm/arm-cores.def: Add cortex-a9.
2545 * config/arm/arm-tune.md: Regenerate.
2546 * config/arm/arm.md: Include cortex-a9.md.
2547 (generic_sched, generic_vfp): Add cortexa9.
2548 * config/arm/cortex-a9.md: New file.
2549
2550 2008-09-02 Richard Guenther <rguenther@suse.de>
2551
2552 PR tree-optimization/37327
2553 * tree-vrp.c (register_new_assert_for): Make sure to not have
2554 TREE_OVERFLOW set on the bound.
2555
2556 2008-09-02 Alexander Monakov <amonakov@ispras.ru>
2557
2558 Fixed typo in date of the 2008-09-01 MOVE_RATIO commit.
2559
2560 * config/ia64/ia64.opt (msched-ar-data-spec): Default to 1.
2561 * config/ia64/ia64.c (ia64_set_sched_flags): Always initialize
2562 spec_info->mask.
2563
2564 2008-09-02 Victor Kaplansky <victork@il.ibm.com>
2565
2566 * gcc/config/spu/spu.md (divdf3): Removed.
2567
2568 2008-09-02 Jakub Jelinek <jakub@redhat.com>
2569
2570 PR tree-optimization/37095
2571 * cgraph.c (cgraph_node): When creating new cgraph node after
2572 assembler_name_hash has been populated, record it in the hash
2573 table.
2574
2575 2008-09-01 Paul Brook <paul@codesourcery.com>
2576
2577 * doc/invoke.texi: Document -mword-relocations.
2578 * config/arm/uclinux-elf.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
2579 * config/arm/symbian.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
2580 * config/arm/vxworks.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
2581 * config/arm/arm.c (arm_split_constant): Use arm_emit_movpair.
2582 (arm_rtx_costs_1, arm_size_rtx_costs): Handle HIGH and LO_SUM.
2583 (arm_emit_movpair): New function.
2584 (arm_print_operand <c>): Handle sybolic addresses.
2585 * config/arm/arm.h (TARGET_USE_MOVT): Define.
2586 (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
2587 * config/arm/arm-protos.h (arm_emit_movpair): Add prototype.
2588 * config/arm/arm.opt: Add -mword-relocations.
2589 * config/arm/arm.md (movsi): Use arm_emit_movpair.
2590 (arm_movt, arm_movw): New.
2591
2592 2008-09-01 Paul Brook <paul@codesourcery.com>
2593
2594 * config/arm/arm.c (arm_override_options): Set arm_abi earlier.
2595 Allow Interworking on ARMv4 EABI based targets.
2596 * config/arm/bpabi.h (TARGET_FIX_V4BX_SPEC): Define.
2597 (SUBTARGET_EXTRA_ASM_SPEC, LINK_SPEC): Add TARGET_FIX_V4BX_SPEC.
2598
2599 2008-09-01 Paul Brook <paul@codesourcery.com>
2600
2601 * config/arm/thumb2.md (thumb2_negscc): Match the correct operand for
2602 optimized LT0 test. Remove optimization for GT.
2603
2604 2008-09-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2605
2606 * pa64-hpux.h (LIB_SPEC): Link against librt when building static
2607 openmp applications.
2608 * pa-hpux11.h (LIB_SPEC): Likewise.
2609
2610 * ira.c (setup_eliminable_regset): Only declare i if ELIMINABLE_REGS
2611 is defined.
2612
2613 2008-09-01 Jan Hubicka <jh@suse.cz>
2614
2615 * predict.c (maybe_hot_count_p, maybe_hot_edge_p): When profile is
2616 present, use only counts; when guessed use only frequencies.
2617 (estimate_bb_frequencies): Use function_frequency.
2618 * profile.c (compute_branch_probabilities): Exit early when
2619 profile reading failed. Set profile_status.
2620 (branch_prob): Do not set profile_status.
2621
2622 2008-09-01 Aldy Hernandez <aldyh@redhat.com>
2623
2624 * tree.c (protected_set_expr_location): New.
2625 * tree.h (protected_set_expr_location): New prototype.
2626 * c-tree.h (build_array_ref): Add argument.
2627 (parser_build_unary_op): Same.
2628 * c-typeck.c (build_indirect_ref): Handle new location argument.
2629 (build_array_ref): Same.
2630 (parser_build_unary_op): Same.
2631 * gimplify.c (gimplify_asm_expr): Set input_location before calling
2632 error.
2633 * c-omp.c (c_finish_omp_atomic): Pass location when calling
2634 build_indirect_ref.
2635 * c-common.c (finish_label_address_expr): Handle new location argument.
2636 * c-common.h (build_indirect_ref): Add argument.
2637 (finish_label_address_expr): Same.
2638 * c-parser.c (c_parser_unary_expression): Pass location to build
2639 functions.
2640 (c_parser_postfix_expression): Same.
2641
2642 2008-09-01 Paul Brook <paul@codesourcery.com>
2643
2644 * config/arm/arm.md: Include cortex-r4f.md.
2645 (attr fpu): Update type list.
2646 (attr type): Add fcpys, ffariths, ffarithd, fadds, faddd, fconsts,
2647 fconstd, fcmps and fcmpd.
2648 (attr tune_cortexr4): Define.
2649 (attr generic_sched, attr generic_vfp): Use tune_cortexr4.
2650 * config/arm/vfp.md: Document fcpys, ffariths, ffarithd, fadds, faddd,
2651 fconsts, fconstd, fcmps and fcmpd. Use them in insn patterns.
2652 * config/arm/arm.c (arm_issue_rate): Add cortexr4f.
2653 * config/arm/arm1020e.md (v10_ffarith, v10_farith): Use new insn types.
2654 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_add_sub,
2655 cortex_a8_vfp_farith: Ditto.
2656 * config/arm/vfp11.md (vfp_ffarith, vfp_farith): Ditto.
2657 * config/arm/cortex-r4.md: Use tune_cortexr4.
2658 * config/arm/cortex-r4f.md: New file.
2659
2660 2008-09-01 Richard Guenther <rguenther@suse.de>
2661
2662 PR tree-optimization/37305
2663 * tree-ssa-ccp.c (ccp_fold): Do not set TREE_OVERFLOW on
2664 the result of constant conversions.
2665 (fold_gimple_assign): Likewise.
2666
2667 2008-09-01 Andrey Belevantsev <abel@ispras.ru>
2668
2669 * sel-sched-ir.c (cmp_v_in_regset_pool): Surround with
2670 #ifdef ENABLE_CHECKING.
2671
2672 2008-09-01 Andrey Belevantsev <abel@ispras.ru>
2673
2674 * sel-sched-dump.c: Surround with #ifdef INSN_SCHEDULING.
2675 * sched-int.h (print_insn, print_pattern, print_value): Declare also
2676 when !INSN_SCHEDULING.
2677
2678 2008-09-01 Andreas Schwab <schwab@suse.de>
2679
2680 * config/ia64/ia64.c (TARGET_ADDRESS_COST): Update.
2681
2682 2008-09-01 Paul Brook <paul@codesourcery.com>
2683
2684 * config/arm/arm.c (arm_no_early_mul_dep): Handle multiply-subtract.
2685
2686 2008-09-01 Jan Hubicka <jh@suse.cz>
2687
2688 * config/spu/spu.c (spu_expand_block_move) Update call of MOVE_RATIO.
2689
2690 * expr.c (MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P, SET_BY_PIECES_P):
2691 Pass speed operand.
2692 * expr.h (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Update.
2693 * gimplify.c (gimplify_init_constructor): Add speed operand.
2694 * tree-sra.c (decide_block_copy): Likewise.
2695 * tree-inline.c (estimate_move_cost): Likewise.
2696 * config/alpha/alpha.h (MOVE_RATIO): Update.
2697 * config/frv/frv.c (MOVE_RATIO): Update.
2698 * config/spu/spu.h (MOVE_RATIO): Update.
2699 * config/sparc/sparc.h (MOVE_RATIO): Update.
2700 * config/i386/i386.h (MOVE_RATIO, CLEAR_RATIO): Update.
2701 * config/m68hc11/m68hc11.h (MOVE_RATIO): Update.
2702 * config/cris/cris.h (MOVE_RATIO): Update.
2703 * config/mn10300/mn10300.h (MOVE_RATIO): Update.
2704 * config/arm/arm.h (MOVE_RATIO): Update.
2705 * config/pa/pa.md: Update uses of MOVE_RATIO
2706 * config/pa/pa.h (MOVE_RATIO): Update.
2707 * config/mips/mips.h (MOVE_RATIO, MOVE_BY_PIECES,
2708 CLEAR_RATIO, SET_RATIO): Update.
2709 * config/h8300/h8300.h (MOVE_RATIO): Update.
2710 * config/v850/v850.h (MOVE_RATIO): Update.
2711 * config/bfin/bfin.h (MOVE_RATIO): Update.
2712
2713 2008-08-31 Andrey Belevantsev <abel@ispras.ru>
2714 Dmitry Melnik <dm@ispras.ru>
2715 Dmitry Zhurikhin <zhur@ispras.ru>
2716 Alexander Monakov <amonakov@ispras.ru>
2717 Maxim Kuvyrkov <maxim@codesourcery.com>
2718
2719 * sel-sched.h, sel-sched-dump.h, sel-sched-ir.h, sel-sched.c,
2720 sel-sched-dump.c, sel-sched-ir.c: New files.
2721 * Makefile.in (OBJS-common): Add selective scheduling object files.
2722 (sel-sched.o, sel-sched-dump.o, sel-sched-ir.o): New entries.
2723 (SEL_SCHED_IR_H, SEL_SCHED_DUMP_H): New entries.
2724 (sched-vis.o): Add dependency on $(INSN_ATTR_H).
2725 * cfghooks.h (get_cfg_hooks, set_cfg_hooks): New prototypes.
2726 * cfghooks.c (get_cfg_hooks, set_cfg_hooks): New functions.
2727 (make_forwarder_block): Update loop latch if we have redirected
2728 the loop latch edge.
2729 * cfgloop.c (get_loop_body_in_custom_order): New function.
2730 * cfgloop.h (LOOPS_HAVE_FALLTHRU_PREHEADERS): New enum field.
2731 (CP_FALLTHRU_PREHEADERS): Likewise.
2732 (get_loop_body_in_custom_order): Declare.
2733 * cfgloopmanip.c (has_preds_from_loop): New.
2734 (create_preheader): Honor CP_FALLTHRU_PREHEADERS.
2735 Assert that the preheader edge will be fall thru when it is set.
2736 * common.opt (fsel-sched-bookkeeping, fsel-sched-pipelining,
2737 fsel-sched-pipelining-outer-loops, fsel-sched-renaming,
2738 fsel-sched-substitution, fselective-scheduling): New flags.
2739 * cse.c (hash_rtx_cb): New.
2740 (hash_rtx): Use it.
2741 * dbgcnt.def (sel_sched_cnt, sel_sched_region_cnt,
2742 sel_sched_insn_cnt): New counters.
2743 * final.c (compute_alignments): Export. Free dominance
2744 info after loop_optimizer_finalize.
2745 * genattr.c (main): Output maximal_insn_latency prototype.
2746 * genautomata.c (output_default_latencies): New.
2747 Factor its code from ...
2748 (output_internal_insn_latency_func): ... here.
2749 (output_internal_maximal_insn_latency_func): New.
2750 (output_maximal_insn_latency_func): New.
2751 * hard-reg-set.h (UHOST_BITS_PER_WIDE_INT): Define unconditionally.
2752 (struct hard_reg_set_iterator): New.
2753 (hard_reg_set_iter_init, hard_reg_set_iter_set,
2754 hard_reg_set_iter_next): New functions.
2755 (EXECUTE_IF_SET_IN_HARD_REG_SET): New macro.
2756 * lists.c (remove_free_INSN_LIST_node,
2757 remove_free_EXPR_LIST_node): New functions.
2758 * loop-init.c (loop_optimizer_init): When
2759 LOOPS_HAVE_FALLTHRU_PREHEADERS, set CP_FALLTHRU_PREHEADERS when
2760 calling create_preheaders.
2761 (loop_optimizer_finalize): Do not verify flow info after reload.
2762 * recog.c (validate_replace_rtx_1): New parameter simplify.
2763 Default it to true. Update all uses. Factor out simplifying
2764 code to ...
2765 (simplify_while_replacing): ... this new function.
2766 (validate_replace_rtx_part,
2767 validate_replace_rtx_part_nosimplify): New.
2768 * recog.h (validate_replace_rtx_part,
2769 validate_replace_rtx_part_nosimplify): Declare.
2770 * rtl.c (rtx_equal_p_cb): New.
2771 (rtx_equal_p): Use it.
2772 * rtl.h (rtx_equal_p_cb, hash_rtx_cb): Declare.
2773 (remove_free_INSN_LIST_NODE, remove_free_EXPR_LIST_node,
2774 debug_bb_n_slim, debug_bb_slim, print_rtl_slim): Likewise.
2775 * vecprim.h: Add a vector type for unsigned int.
2776 * haifa-sched.c: Include vecprim.h and cfgloop.h.
2777 (issue_rate, sched_verbose_param, note_list, dfa_state_size,
2778 ready_try, cycle_issued_insns, spec_info): Make global.
2779 (readyp): Initialize.
2780 (dfa_lookahead): New global variable.
2781 (old_max_uid, old_last_basic_block): Remove.
2782 (h_i_d): Make it a vector.
2783 (INSN_TICK, INTER_TICK, QUEUE_INDEX, INSN_COST): Make them work
2784 through HID macro.
2785 (after_recovery, adding_bb_to_current_region_p):
2786 New variables to handle correct insertion of the recovery code.
2787 (struct ready_list): Move declaration to sched-int.h.
2788 (rgn_n_insns): Removed.
2789 (rtx_vec_t): Move to sched-int.h.
2790 (find_insn_reg_weight): Remove.
2791 (find_insn_reg_weight1): Rename to find_insn_reg_weight.
2792 (haifa_init_h_i_d, haifa_finish_h_i_d):
2793 New functions to initialize / finalize haifa instruction data.
2794 (extend_h_i_d, init_h_i_d): Rewrite.
2795 (unlink_other_notes): Move logic to add_to_note_list. Handle
2796 selective scheduler.
2797 (ready_lastpos, ready_element, ready_sort, reemit_notes,
2798 find_fallthru_edge): Make global, remove static prototypes.
2799 (max_issue): Make global. Add privileged_n and state parameters. Use
2800 them.
2801 (extend_global, extend_all): Removed.
2802 (init_before_recovery): Add new param. Fix the handling of the case
2803 when we insert a recovery code before the EXIT which has a predecessor
2804 with a fallthrough edge to it.
2805 (create_recovery_block): Make global. Rename to
2806 sched_create_recovery_block. Update.
2807 (change_pattern): Rename to sched_change_pattern. Make global.
2808 (speculate_insn): Rename to sched_speculate_insn. Make global.
2809 Split haifa-specific functionality into ...
2810 (haifa_change_pattern): New static function.
2811 (sched_extend_bb): New static function.
2812 (sched_init_bbs): New function.
2813 (current_sched_info): Change type to struct haifa_sched_info.
2814 (insn_cost): Adjust for selective scheduling.
2815 (dep_cost_1): New function. Move logic from ...
2816 (dep_cost): ... here.
2817 (dep_cost): Use dep_cost_1.
2818 (contributes_to_priority_p): Use sched_deps_info instead of
2819 current_sched_info.
2820 (priority): Adjust to work with selective scheduling. Process the
2821 corner case when all dependencies don't contribute to priority.
2822 (rank_for_schedule): Use ds_weak instead of dep_weak.
2823 (advance_state): New function. Move logic from ...
2824 (advance_one_cycle): ... here.
2825 (add_to_note_list, concat_note_lists): New functions.
2826 (rm_other_notes): Make static. Adjust for selective scheduling.
2827 (remove_notes, restore_other_notes): New functions.
2828 (move_insn): Add two arguments. Update assert. Don't call
2829 reemit_notes.
2830 (choose_ready): Remove lookahead variable, use dfa_lookahead.
2831 Remove more_issue, max_points. Move the code to initialize
2832 max_lookahead_tries to max_issue.
2833 (schedule_block): Remove rgn_n_insns1 parameter. Don't allocate
2834 ready. Adjust use of move_insn. Call restore_other_notes.
2835 (luid): Remove.
2836 (sched_init, sched_finish): Move Haifa-specific initialization/
2837 finalization to ...
2838 (haifa_sched_init, haifa_sched_finish): ... respectively.
2839 New functions.
2840 (setup_sched_dump): New function.
2841 (haifa_init_only_bb): New static function.
2842 (haifa_speculate_insn): New static function.
2843 (try_ready): Use haifa_* instead of speculate_insn and change_pattern.
2844 (extend_ready, extend_all): Remove.
2845 (sched_extend_ready_list, sched_finish_ready_list): New functions.
2846 (create_check_block_twin, add_to_speculative_block): Use
2847 haifa_insns_init instead of extend_global. Update to use new
2848 initialization functions. Change parameter. Factor out code from
2849 create_check_block_twin to ...
2850 (sched_create_recovery_edges) ... this new function.
2851 (add_block): Remove.
2852 (sched_scan_info): New.
2853 (extend_bb): Use sched_scan_info.
2854 (init_bb, extend_insn, init_insn, init_insns_in_bb, sched_scan): New
2855 static functions for walking through scheduling region.
2856 (sched_luids): New vector variable to replace uid_to_luid.
2857 (luids_extend_insn): New function.
2858 (sched_max_luid): New variable.
2859 (luids_init_insn): New function.
2860 (sched_init_luids, sched_finish_luids): New functions.
2861 (insn_luid): New debug function.
2862 (sched_extend_target): New function.
2863 (haifa_init_insn): New static function.
2864 (sched_init_only_bb): New hook.
2865 (sched_split_block): New hook.
2866 (sched_split_block_1): New function.
2867 (sched_create_empty_bb): New hook.
2868 (sched_create_empty_bb_1): New function.
2869 (common_sched_info, ready): New global variables.
2870 (current_sched_info_var): Remove.
2871 (move_block_after_check): Use common_sched_info.
2872 (haifa_luid_for_non_insn): New static function.
2873 (init_before_recovery): Use haifa_init_only_bb instead of add_block.
2874 (increase_insn_priority): New.
2875 * modulo-sched.c: (issue_rate): Remove static declaration.
2876 (sms_sched_info): Change type to haifa_sched_info.
2877 (sms_sched_deps_info, sms_common_sched_info): New variables.
2878 (setup_sched_infos): New.
2879 (sms_schedule): Initialize them. Call haifa_sched_init/finish.
2880 Do not call regstat_free_calls_crossed.
2881 (sms_print_insn): Use const_rtx.
2882 * params.def (PARAM_MAX_PIPELINE_REGION_BLOCKS,
2883 PARAM_MAX_PIPELINE_REGION_INSNS, PARAM_SELSCHED_MAX_LOOKAHEAD,
2884 PARAM_SELSCHED_MAX_SCHED_TIMES, PARAM_SELSCHED_INSNS_TO_RENAME,
2885 PARAM_SCHED_MEM_TRUE_DEP_COST): New.
2886 * sched-deps.c (sched_deps_info): New. Update all relevant uses of
2887 current_sched_info to use it.
2888 (enum reg_pending_barrier_mode): Move to sched-int.h.
2889 (h_d_i_d): New variable. Initialize to NULL.
2890 ({true, output, anti, spec, forward}_dependency_cache): Initialize
2891 to NULL.
2892 (estimate_dep_weak): Remove static declaration.
2893 (sched_has_condition_p): New function. Adjust users of
2894 sched_get_condition to use it instead.
2895 (conditions_mutex_p): Add arguments indicating which conditions are
2896 reversed. Use them.
2897 (sched_get_condition_with_rev): Rename from sched_get_condition. Add
2898 argument to indicate whether returned condition is reversed. Do not
2899 generate new rtx when condition should be reversed; indicate it by
2900 setting new argument instead.
2901 (add_dependence_list_and_free): Add deps parameter.
2902 Update all users. Do not free dependence list when
2903 deps context is readonly.
2904 (add_insn_mem_dependence, flush_pending_lists): Adjust for readonly
2905 contexts.
2906 (remove_from_dependence_list, remove_from_both_dependence_lists): New.
2907 (remove_from_deps): New. Use the above functions.
2908 (cur_insn, can_start_lhs_rhs_p): New static variables.
2909 (add_or_update_back_dep_1): Initialize present_dep_type.
2910 (haifa_start_insn, haifa_finish_insn, haifa_note_reg_set,
2911 haifa_note_reg_clobber, haifa_note_reg_use, haifa_note_mem_dep,
2912 haifa_note_dep): New functions implementing dependence hooks for
2913 the Haifa scheduler.
2914 (note_reg_use, note_reg_set, note_reg_clobber, note_mem_dep,
2915 note_dep): New functions.
2916 (ds_to_dt, extend_deps_reg_info, maybe_extend_reg_info_p): New
2917 functions.
2918 (init_deps): Initialize last_reg_pending_barrier and deps->readonly.
2919 (free_deps): Initialize deps->reg_last.
2920 (sched_analyze_reg, sched_analyze_1, sched_analyze_2,
2921 sched_analyze_insn): Update to use dependency hooks infrastructure
2922 and readonly contexts.
2923 (deps_analyze_insn): New function. Move part of logic from ...
2924 (sched_analyze): ... here. Also move some logic to ...
2925 (deps_start_bb): ... here. New function.
2926 (add_forw_dep, delete_forw_dep): Guard use of INSN_DEP_COUNT with
2927 sel_sched_p.
2928 (sched_deps_init): New function. Move code from ...
2929 (init_dependency_caches): ... here. Remove.
2930 (init_deps_data_vector): New.
2931 (sched_deps_finish): New function. Move code from ...
2932 (free_dependency_caches): ... here. Remove.
2933 (init_deps_global, finish_deps_global): Adjust for use with
2934 selective scheduling.
2935 (get_dep_weak): Move logic to ...
2936 (get_dep_weak_1): New function.
2937 (ds_merge): Move logic to ...
2938 (ds_merge_1): New static function.
2939 (ds_full_merge, ds_max_merge, ds_get_speculation_types): New functions.
2940 (ds_get_max_dep_weak): New function.
2941 * sched-ebb.c (sched_n_insns): Rename to sched_rgn_n_insns.
2942 (n_insns): Rename to rgn_n_insns.
2943 (debug_ebb_dependencies): New function.
2944 (init_ready_list): Use it.
2945 (begin_schedule_ready): Use sched_init_only_bb.
2946 (ebb_print_insn): Indicate when an insn starts a new cycle.
2947 (contributes_to_priority, compute_jump_reg_dependencies,
2948 add_remove_insn, fix_recovery_cfg): Add ebb_ prefix to function names.
2949 (add_block1): Remove to ebb_add_block.
2950 (ebb_sched_deps_info, ebb_common_sched_info): New variables.
2951 (schedule_ebb): Initialize them. Use remove_notes instead of
2952 rm_other_notes. Use haifa_local_init/finish.
2953 (schedule_ebbs): Use haifa_sched_init/finish.
2954 * sched-int.h: Include vecprim.h, remove rtl.h.
2955 (struct ready_list): Delete declaration.
2956 (sched_verbose_param, enum sched_pass_id_t,
2957 bb_vec_t, insn_vec_t, rtx_vec_t): New.
2958 (struct sched_scan_info_def): New structure.
2959 (sched_scan_info, sched_scan, sched_init_bbs,
2960 sched_init_luids, sched_finish_luids, sched_extend_target,
2961 haifa_init_h_i_d, haifa_finish_h_i_d): Declare.
2962 (struct common_sched_info_def): New.
2963 (common_sched_info, haifa_common_sched_info,
2964 sched_emulate_haifa_p): Declare.
2965 (sel_sched_p): New.
2966 (sched_luids): Declare.
2967 (INSN_LUID, LUID_BY_UID, SET_INSN_LUID): Declare.
2968 (sched_max_luid, insn_luid): Declare.
2969 (note_list, remove_notes, restore_other_notes, bb_note): Declare.
2970 (sched_insns_init, sched_insns_finish, xrecalloc, reemit_notes,
2971 print_insn, print_pattern, print_value, haifa_classify_insn,
2972 sel_find_rgns, sel_mark_hard_insn, dfa_state_size, advance_state,
2973 setup_sched_dump, sched_init, sched_finish,
2974 sel_insn_is_speculation_check): Export.
2975 (struct ready_list): Move from haifa-sched.c.
2976 (ready_try, ready, max_issue): Export.
2977 (ebb_compute_jump_reg_dependencies, find_fallthru_edge,
2978 sched_init_only_bb, sched_split_block, sched_split_block_1,
2979 sched_create_empty_bb, sched_create_empty_bb_1,
2980 sched_create_recovery_block, sched_create_recovery_edges): Export.
2981 (enum reg_pending_barrier_mode): Export.
2982 (struct deps): New fields `last_reg_pending_barrier' and `readonly'.
2983 (deps_t): New.
2984 (struct sched_info): Rename to haifa_sched_info. Use const_rtx for
2985 print_insn field. Move add_block and fix_recovery_cfg to
2986 common_sched_info_def. Move compute_jump_reg_dependencies,
2987 use_cselib ...
2988 (struct sched_deps_info_def): ... this new structure.
2989 (sched_deps_info): Declare.
2990 (struct spec_info_def): Remove weakness_cutoff, add
2991 data_weakness_cutoff and control_weakness_cutoff.
2992 (spec_info): Declare.
2993 (struct _haifa_deps_insn_data): Split from haifa_insn_data. Add
2994 dep_count field.
2995 (struct haifa_insn_data): Rename to struct _haifa_insn_data.
2996 (haifa_insn_data_def, haifa_insn_data_t): New typedefs.
2997 (current_sched_info): Change type to struct haifa_sched_info.
2998 (haifa_deps_insn_data_def, haifa_deps_insn_data_t): New typedefs.
2999 (h_d_i_d): New variable.
3000 (HDID): New accessor macro.
3001 (h_i_d): Change type to VEC (haifa_insn_data_def, heap) *.
3002 (HID): New accessor macro. Rewrite h_i_d accessor macros through HID
3003 and HDID.
3004 (IS_SPECULATION_CHECK_P): Update for selective scheduler.
3005 (enum SCHED_FLAGS): Update for selective scheduler.
3006 (enum SPEC_SCHED_FLAGS): New flag SEL_SCHED_SPEC_DONT_CHECK_CONTROL.
3007 (init_dependency_caches, free_dependency_caches): Delete declarations.
3008 (deps_analyze_insn, remove_from_deps, get_dep_weak_1,
3009 estimate_dep_weak, ds_full_merge, ds_max_merge, ds_weak,
3010 ds_get_speculation_types, ds_get_max_dep_weak, sched_deps_init,
3011 sched_deps_finish, haifa_note_reg_set, haifa_note_reg_use,
3012 haifa_note_reg_clobber, maybe_extend_reg_info_p, deps_start_bb,
3013 ds_to_dt): Export.
3014 (rm_other_notes): Delete declaration.
3015 (schedule_block): Remove one argument.
3016 (cycle_issued_insns, issue_rate, dfa_lookahead, ready_sort,
3017 ready_element, ready_lastpos, sched_extend_ready_list,
3018 sched_finish_ready_list, sched_change_pattern, sched_speculate_insn,
3019 concat_note_lists): Export.
3020 (struct region): Move from sched-rgn.h.
3021 (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
3022 RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
3023 BLOCK_TO_BB, CONTAINING_RGN): Export.
3024 (ebb_head, BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB, INSN_BB): Likewise.
3025 (current_nr_blocks, current_blocks, target_bb): Likewise.
3026 (dep_cost_1, sched_is_disabled_for_current_region_p, sched_rgn_init,
3027 sched_rgn_finish, rgn_setup_region, sched_rgn_compute_dependencies,
3028 sched_rgn_local_init, extend_regions,
3029 rgn_make_new_region_out_of_new_block, compute_priorities,
3030 debug_rgn_dependencies, free_rgn_deps, contributes_to_priority,
3031 extend_rgns, deps_join rgn_setup_common_sched_info,
3032 rgn_setup_sched_infos, debug_regions, debug_region, dump_region_dot,
3033 dump_region_dot_file, haifa_sched_init, haifa_sched_finish): Export.
3034 (get_rgn_sched_max_insns_priority, sel_add_to_insn_priority,
3035 increase_insn_priority): Likewise.
3036 * sched-rgn.c: Include sel-sched.h.
3037 (ref_counts): New static variable. Use it ...
3038 (INSN_REF_COUNT): ... here. Rewrite and move closer to uses.
3039 (FED_BY_SPEC_LOAD, IS_LOAD_INSN): Rewrite to use HID accessor macro.
3040 (sched_is_disabled_for_current_region_p): Delete static declaration.
3041 (struct region): Move to sched-int.h.
3042 (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
3043 ebb_head): Define and initialize.
3044 (RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
3045 BLOCK_TO_BB, CONTAINING_RGN, debug_regions, extend_regions,
3046 BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB): Move to
3047 sched-int.h.
3048 (find_single_block_region): Add new argument to indicate that EBB
3049 regions should be constructed.
3050 (debug_live): Delete declaration.
3051 (current_nr_blocks, current_blocks, target_bb):
3052 Remove static qualifiers.
3053 (compute_dom_prob_ps, check_live, update_live, set_spec_fed): Delete
3054 declaration.
3055 (init_regions): Delete declaration.
3056 (debug_region, bb_in_region_p, dump_region_dot_file, dump_region_dot,
3057 rgn_estimate_number_of_insns): New.
3058 (too_large): Use estimate_number_of_insns.
3059 (haifa_find_rgns): New. Move the code from ...
3060 (find_rgns): ... here. Call either sel_find_rgns or haifa_find_rgns.
3061 (free_trg_info): New.
3062 (compute_trg_info): Allocate candidate tables here instead of ...
3063 (init_ready_list): ... here.
3064 (rgn_print_insn): Use const_rtx.
3065 (contributes_to_priority, extend_regions): Delete static declaration.
3066 (add_remove_insn, fix_recovery_cfg): Add rgn_ to function names.
3067 (add_block1): Rename to rgn_add_block.
3068 (debug_rgn_dependencies): Delete static qualifier.
3069 (new_ready): Use sched_deps_info. Simplify.
3070 (rgn_common_sched_info, rgn_const_sched_deps_info,
3071 rgn_const_sel_sched_deps_info, rgn_sched_deps_info, rgn_sched_info):
3072 New.
3073 (region_sched_info): Rename to rgn_const_sched_info.
3074 (deps_join): New, extracted from ...
3075 (propagate_deps): ... here.
3076 (compute_block_dependences, debug_dependencies): Update for selective
3077 scheduling.
3078 (free_rgn_deps, compute_priorities): New functions.
3079 (sched_rgn_init, sched_rgn_finish, rgn_setup_region,
3080 sched_rgn_compute_dependencies): New functions.
3081 (schedule_region): Use them.
3082 (sched_rgn_local_init, sched_rgn_local_free, sched_rgn_local_finish,
3083 rgn_setup_common_sched_info, rgn_setup_sched_infos):
3084 New functions.
3085 (schedule_insns): Call new functions that were split out.
3086 (rgn_make_new_region_out_of_new_block): New.
3087 (get_rgn_sched_max_insns_priority): New.
3088 (rest_of_handle_sched, rest_of_handle_sched2): Call selective
3089 scheduling when appropriate.
3090 * sched-vis.c: Include insn-attr.h.
3091 (print_value, print_pattern): Make global.
3092 (print_rtl_slim, debug_bb_slim, debug_bb_n_slim): New functions.
3093 * target-def.h (TARGET_SCHED_ADJUST_COST_2,
3094 TARGET_SCHED_ALLOC_SCHED_CONTEXT, TARGET_SCHED_INIT_SCHED_CONTEXT,
3095 TARGET_SCHED_SET_SCHED_CONTEXT, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
3096 TARGET_SCHED_FREE_SCHED_CONTEXT, TARGET_SCHED_GET_INSN_CHECKED_DS,
3097 TARGET_SCHED_GET_INSN_SPEC_DS, TARGET_SCHED_SKIP_RTX_P): New target
3098 hooks. Initialize them to 0.
3099 (TARGET_SCHED_GEN_CHECK): Rename to TARGET_SCHED_GEN_SPEC_CHECK.
3100 * target.h (struct gcc_target): Add them. Rename gen_check field to
3101 gen_spec_check.
3102 * flags.h (sel_sched_switch_set): Declare.
3103 * opts.c (sel_sched_switch_set): New variable.
3104 (decode_options): Unset flag_sel_sched_pipelining_outer_loops if
3105 pipelining is disabled from command line.
3106 (common_handle_option): Record whether selective scheduling is
3107 requested from command line.
3108 * doc/invoke.texi: Document new flags and parameters.
3109 * doc/tm.texi: Document new target hooks.
3110 * config/ia64/ia64.c (TARGET_SCHED_GEN_SPEC_CHECK): Define to
3111 ia64_gen_check.
3112 (dfa_state_size): Do not declare locally.
3113 * config/ia64/ia64.opt (msched-ar-data-spec): Default to 0.
3114 * config/rs6000/rs6000.c (rs6000_init_sched_context,
3115 rs6000_alloc_sched_context, rs6000_set_sched_context,
3116 rs6000_free_sched_context): New functions.
3117 (struct _rs6000_sched_context): New.
3118 (rs6000_sched_reorder2): Do not modify INSN_PRIORITY for selective
3119 scheduling.
3120 (rs6000_sched_finish): Do not run for selective scheduling.
3121
3122 2008-08-31 Jan Hubicka <jh@suse.cz>
3123
3124 * frv.c (frv_rtx_costs): Update forward declaration.
3125 * spu.c (spu_rtx_costs): Likewise.
3126 * pdp11.c: Include df.h
3127 (pdp11_output_function_epilogue): Use df_set_regs_ever_live.
3128 * m68hc11.c (m68hc11_gen_highpart): Fix call of gen_rtx_SUBREG.
3129 (m68hc11_rtx_costs_1): Fix call of rtx_cost.
3130 * iq2000.c (iq2000_address_cost): Add speed argument.
3131 (iq2000_rtx_costs): Likewise.
3132 * mn10300.c (mn10300_address_cost_1): Remove speed argument;
3133 update call of mn10300_address_cost.
3134 * mcore.c: Include df.h
3135 (mcore_rtx_costs): Update prototype.
3136 * score3.c: Include df.h
3137 (score3_rtx_costs): Remove speed argument.
3138 * score7.c: Include df.h
3139 (score7_address_cost): Remove speed argument.
3140 * score-protos.h (score_address_cost): Update prototype.
3141 * score.c: Include df.h
3142 (score_rtx_costs): Update call of costs functions.
3143 * v850.c (v850_rtx_costs): Add bool argument.
3144
3145 2008-08-31 Hans-Peter Nilsson <hp@axis.com>
3146
3147 * config/cris/cris.c (cris_rtx_costs): Correct call to rtx_costs.
3148
3149 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3150
3151 * gthr-win32.h (__gthread_setspecific): Use CONST_CAST2.
3152 * config/i386/gthr-win32.c (__gthread_setspecific): Same.
3153
3154 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3155
3156 * mkmap-flat.awk: Add option pe_dll.
3157 * config/i386/t-cygming (SHLIB_LINK): Support building libgcc_s.
3158 * config/i386/t-cygwin (SHLIB_LC): Add.
3159 * config/i386/t-mingw32 (SHLIB_LC): Add.
3160 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): New.
3161 (SUBTARGET_EXTRA_SPECS): Use SHARED_LIBGCC_UNDEFS_SPEC.
3162 (LINK_SPEC): Support libgcc_s.
3163 (LIBGCC_SPEC): Support libgcc_s.
3164 (LIBGCC_SONAME): New.
3165
3166 2008-08-31 Jan Hubicka <jh@suse.cz>
3167
3168 * predict.c (maybe_hot_bb_p, maybe_hot_edge_p): Previous commit
3169 mistakely had old version of patch.
3170
3171 * ipa-cp.c (ipcp_need_original_clone_p): Remove.
3172 (ipcp_estimate_growth): New.
3173 (ipcp_insert_stage): Use ipcp_estimate_growth.
3174 * profile.c (branch_prob): When reading failed, do not consider
3175 profile as read.
3176
3177 2008-08-31 Jan Hubicka <jh@suse.cz>
3178
3179 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Check that
3180 loop is optimized for speed.
3181
3182 2008-08-31 Richard Guenther <rguenther@suse.de>
3183
3184 PR middle-end/37289
3185 * fold-const.c (fold_binary): Retain conversions in folding
3186 ~A + 1 to -A.
3187
3188 2008-08-31 Jan Hubicka <jh@suse.cz>
3189
3190 * postreload-gcse.c (eliminate_partially_redundant_loads):
3191 Use optimize_bb_for_size_p.
3192 * predict.c (maybe_hot_frequency_p): Make inline.
3193 (maybe_hot_count_p): Break out from ...
3194 (maybe_hot_bb_p): ... this one.
3195 (maybe_hot_edge_p): Simplify.
3196 * basic-block.h (probably_cold_bb_p): Remove.
3197
3198 2008-08-31 Jakub Jelinek <jakub@redhat.com>
3199
3200 PR target/37168
3201 * config/rs6000/rs6000-protos.h (const_vector_elt_as_int): Add
3202 prototype.
3203 * config/rs6000/rs6000.c (const_vector_elt_as_int): No longer static.
3204 * config/rs6000/altivec.md (easy_vector_constant_add_self splitter):
3205 Also split V4SFmode.
3206 * config/rs6000/predicates.md (easy_vector_constant_add_self): Handle
3207 vector float modes.
3208
3209 2008-08-31 Jan Hubicka <jh@suse.cz>
3210
3211 * predict.c (PROB_VERY_LIKELY): Make small enough so things
3212 become cold.
3213 * predict.def (PRED_NORETURN_CALL, PRED_COLD_CALL): Use it.
3214
3215 2008-08-31 Jakub Jelinek <jakub@redhat.com>
3216
3217 PR debug/37287
3218 * dwarf2out.c (gen_namespace_die): For DECL_EXTERNAL modules don't
3219 add source coords.
3220
3221 * dwarf2out.c (native_encode_initializer): Subtract min_index for
3222 non-range array index. Handle VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
3223
3224 2008-08-31 Jan Hubicka <jh@suse.cz>
3225
3226 * sparc.h (BRANCH_COST): Fix macro definition.
3227 * avr.c (avr_operand_rtx_cost): Add speed argument.
3228 (avr_rtx_costs): Update calls of avr_operand_rtx_cost.
3229
3230 2008-08-31 Richard Guenther <rguenther@suse.de>
3231
3232 * tree-cfg.c (verify_types_in_gimple_assign): Dump mismatched
3233 types instead of operands. Re-instantiate verifying of
3234 binary expression operands.
3235
3236 2008-08-30 Jan Hubicka <jh@suse.cz>
3237
3238 * fwprop.c (should_replace_address): Add speed attribute.
3239 (PR_OPTIMIZE_FOR_SPEED): New flag.
3240 (propagate_rtx_1): Use it.
3241 (propagate_rtx): Set it.
3242 (try_fwprop_subst): Update call of rtx_costs.
3243 (forward_propagate_and_simplify): LIkewise.
3244 * hooks.c (hook_int_rtx_bool_0): New
3245 (hook_bool_rtx_int_int_intp_false): Replace by ...
3246 (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
3247 * hooks.h (hook_int_rtx_bool_0): New
3248 (hook_bool_rtx_int_int_intp_false): Replace by ...
3249 (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
3250 * optabs.c (avoid_expensive_constant): UPdate call of rtx_cost.
3251 (prepare_cmp_insn): UPdate call of rtx_cost.
3252 * postreload.c (reload_cse_simplify_set): Update call of rtx_cost.
3253 (reload_cse_simplify_operands): Update call of rtx_cost.
3254 (reload_cse_move2add): call of rtx_cost.
3255 * target.h (struct gcc_target): Update rtx_costs and address_costs.
3256 * rtlanal.c (rtx_cost): Add speed argument.
3257 (address_cost): Add speed argument
3258 (default_address_cost): Likewise.
3259 (insn_rtx_cost): Likewise.
3260 * cfgloopanal.c (seq_cost): Add speed argument.
3261 (target_reg_cost, target_spill_cost): Turn to array.
3262 (init_set_costs): Update for speed.
3263 (estimate_reg_pressure_cost): Add speed argument.
3264 * auto-inc-dec.c (attempt_change): Update call of rtx_cost.
3265 * dojump.c (prefer_and_bit_test): UPdate call of rtx_cost.
3266 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field speed.
3267 (seq_cost): Add speed argument.
3268 (computation_cost): Add speed arugment.
3269 (add_cost, multiply_by_const, get_address_cost): add speed argument.
3270 (force_expr_to_var_cost): Update for profile info.
3271 (force_var_cost): Likewise.
3272 (split_address_cost): Likewise.
3273 (ptr_difference_cost): Likewise.
3274 (difference_cost): Likewise.
3275 (get_computation_cost_at): Likewise.
3276 (determine_iv_cost): Likewise.
3277 (ivopts_global_cost_for_size): Likewise.
3278 (rewrite_use_address): Likewise.
3279 (tree_ssa_iv_optimize_loop): Initialize speed field.
3280 * cse.c (optimize_this_for_speed_p): New static var.
3281 (notreg_cost): Update call of rtx_cost.
3282 (cse_extended_basic_block): set optimize_this_for_speed_p.
3283 * ifcvt.c (cheap_bb_rtx_cost_p): Update call of rtx_cost.
3284 (noce_try_cmove_arith): Likewise.
3285 (noce_try_sign_mask): LIkewise.
3286 * expr.c (compress_float_constant): Update rtx_cost calls.
3287 * tree-ssa-address.c (most_expensive_mult_to_index): Add speed
3288 argument.
3289 (addr_to_parts): Likewise.
3290 (create_mem_ref): Likewise.
3291 * dse.c (find_shift_sequence): Add speed argument.
3292 (replace_read): Update call.
3293 * calls.c (precompute_register_parameters): Update call of rtx_cost.
3294 * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost,
3295 * neg_cost, shift_cost, shiftadd_cost,
3296 shiftsub_cost, mul_cost, sdiv_cost, udiv_cost ,mul_widen_cost,
3297 mul_highpart_cost): Increase dimension.
3298 (init_expmed): Initialize for both size and speed.
3299 (expand_shift): Use profile.
3300 (synth_mult): Use profile.
3301 (choose_mult_variant): Use profile.
3302 (expand_mult): Use profile.
3303 (expand_mult_highpart_optab): Use profile.
3304 (expand_mult_highpart): Use profile.
3305 (expand_smod_pow2): Use profile.
3306 (expand_divmod): Use profile.
3307 * simplify-rtx.c (simplify_binary_operation_1): Update call of
3308 rtx_cost.
3309 * loop-invariant.c (create_new_invariant): Use profile.
3310 (gain_for_invariant): Add speed parameter.
3311 (best_gain_for_invariant): Likewise.
3312 (find_invariants_to_move): Likewise.
3313 (move_single_loop_invariants): Set it.
3314 * target-def.h (TARGET_RTX_COSTS): Use hook.
3315 * rtl.h (rtx_cost, address_cost, insn_rtx_cost): Update prototpe.
3316 (optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
3317 * output.h (default_address_cost): Update prototype.
3318 * combine.c (optimize_this_for_speed_p): New static var.
3319 (combine_validate_cost): Update call of rtx_cost.
3320 (combine_instructions): Set optimize_this_for_speed_p.
3321 (expand_compound_operation): Update call of rtx_cost.
3322 (make_extraction):Update call of rtx_cost.
3323 (force_to_mode):Update call of rtx_cost.
3324 (distribute_and_simplify_rtx):Update call of rtx_cost.
3325 * cfgloop.h (target_reg_cost, target_spill_cost): Turn to array.
3326 (estimate_reg_pressure_cost): Update prototype.
3327 * tree-flow.h (multiply_by_cost, create_mem_ref): Update prototype.
3328 * basic-block.h (optimize_insn_for_size_p, optimize_insn_for_speed_p):
3329 Remove.
3330 * config/alpha/alpha.c (alpha_rtx_costs): Update.
3331 (alpha_rtx_costs): Update.
3332 * config/frv/frv.c (frv_rtx_costs): Update.
3333 * config/s390/s390.c (s390_rtx_costs): Update.
3334 * config/m32c/m32c.c (m32c_memory_move_cost): Update.
3335 (m32c_rtx_costs): Update.
3336 * config/spu/spu.c (TARGET_ADDRESS_COST): Upate.
3337 (spu_rtx_costs): Update.
3338 * config/sparc/sparc.c (sparc_rtx_costs): Update.
3339 * config/m32r/m32r.c (m32r_rtx_costs): Update.
3340 * config/i386/i386.c (:ix86_address_cost): Update.
3341 (ix86_rtx_costs): Update.
3342 * config/sh/sh.c (sh_rtx_costs, sh_address_cost): Update.
3343 * config/pdp11/pdp11.c (pdp11_rtx_costs): Update.
3344 * config/avr/avr.c (avr_rtx_costs, avr_address_cost): Update.
3345 * config/crx/crx.c (crx_address_cost): Update.
3346 * config/xtensa/xtensa.c (xtensa_rtx_costs): Update.
3347 * config/stormy16/stormy16.c
3348 (xstormy16_address_cost, xstormy16_rtx_costs): Update.
3349 * config/m68hc11/m68hc11.c
3350 (m68hc11_address_cost, m68hc11_rtx_costs): Update.
3351 * config/cris/cris.c (cris_rtx_costs, cris_address_cost): Update.
3352 * config/iq2000/iq2000.c (iq2000_rtx_costs, iq2000_address_cost):
3353 Update.
3354 * config/mn10300/mn10300.c (mn10300_address_cost, mn10300_rtx_costs):
3355 Update
3356 * config/ia64/ia64.c (ia64_rtx_costs): Update.
3357 * config/m68k/m68k.c (m68k_rtx_costs): Update.
3358 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update.
3359 * config/arc/arc.c (arc_rtx_costs, arc_address_cost): Update.
3360 * config/mcore/mcore.c (TARGET_ADDRESS_COST): Update.
3361 (mcore_rtx_costs): update.
3362 * config/score/score3.c (score3_rtx_costs): Update.
3363 * config/score/score7.c (score7_rtx_costs): Update.
3364 * config/score/score3.h (score3_rtx_costs):Update.
3365 * config/score/score7.h (score7_rtx_costs): Update.
3366 * config/score/score.c (score_rtx_costs): Update.
3367 * config/arm/arm.c (arm_address_cost): Update.
3368 (arm_rtx_costs_1): Update.
3369 (arm_rtx_costs_1): Update.
3370 (arm_size_rtx_costs): Update.
3371 (arm_size_rtx_costs): Update.
3372 (arm_size_rtx_costs): Update.
3373 (arm_xscale_rtx_costs): Update.
3374 (arm_thumb_address_cost): Update.
3375 * config/pa/pa.c (hppa_address_cost): Update.
3376 * config/mips/mips.c (mips_rtx_costs): Update.
3377 * config/vax/vax.c (vax_address_cost): Update.
3378 * config/h8300/h8300.c (h8300_shift_costs): Update.
3379 (h8300_rtx_costs): Update.
3380 * config/v850/v850.c (TARGET_ADDRESS_COST): Update.
3381 (v850_rtx_costs): Update.
3382 * config/mmix/mmix.c (mmix_rtx_costs, mmix_rtx_costs): Update.
3383 * config/bfin/bfin.c
3384 (bfin_address_cost): Update.
3385 (bfin_rtx_costs): Update.
3386 * stmt.c (lshift_cheap_p): Update.
3387
3388 2008-08-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
3389
3390 PR middle-end/36444
3391 * expmed.c (extract_bit_field_1): Check the mode size to make
3392 sure the vector modes have the same size.
3393
3394 2008-08-29 Michael Meissner <gnu@the-meissners.org>
3395
3396 * dojump.c (top level): Include basic-block.h to declare
3397 optimize_insn_for_speed_p
3398
3399 * Makefile.in (dodump.h): Add $(BASIC_BLOCK_H) dependency.
3400
3401 * opts.h (CL_SAVE): New option class for marking options that are
3402 target specific options usable in the target attribute.
3403 (CL_MIN_OPTION_CLASS): CL_SAVE is now the minimum option.
3404
3405 * opt-functions.awk (switch_flags): Add CL_SAVE flag so backends
3406 can easily find the target specific options that are safe to use
3407 in the attribute or pragma.
3408
3409 * attribs.c (decl_attributes): Change #pragma GCC option to
3410 #pragma GCC target, and attribute((option(...))) to
3411 attribute((target(...))).
3412
3413 * doc/extend.texi (target attribute): Change from option
3414 attribute. Delete push/pop/reset.
3415 (#pragma GCC target): Change from #pragma GCC option. Delete
3416 push/pop/reset.
3417 (#pragma GCC push_options): Document new pragma.
3418 (#pragma GCC pop_options): Document new pragma.
3419 (#pragma GCC reset_options): Document new pragma.
3420
3421 * targhooks.c (default_target_option_valid_attribute_p): Add
3422 warning about port not supporting target attributes.
3423 (default_target_option_pragma_parse): New function, warn about
3424 #pragma GCC target not being supported.
3425
3426 * targhooks.h (default_target_option_pragma_parse): Add
3427 declaration.
3428
3429 * tree.h (TI_CURRENT_TARGET_PRAGMA): Rename from
3430 TI_CURRENT_OPTION_PRAGMA.
3431 (current_target_pragma): Rename from current_option_pragma.
3432
3433 * target.h: (struct target_option): Delete booleans for changing
3434 the optimization level on hot/cold functions. Change signature of
3435 pragma_parse hook to take a second tree.
3436
3437 * c-tree.h (c_builtin_function_ext_scope): Add declaration.
3438
3439 * c-decl.c (c_builtin_function_ext_scope): New function, guarantee
3440 that the declaration is done at global scope.
3441
3442 * langhooks.c (add_builtin_function_common): Move most of the code
3443 from add_builtin_function here, calling the hook passed in.
3444 (add_builtin_function): Call add_builtin_function_common with
3445 standard builtin hook.
3446 (add_builtin_function_ext_scope): New function to add builtins to
3447 global scope.
3448
3449 * langhooks.h (struct lang_hooks): Add builtin_function_ext_scope
3450 hook.
3451 (add_builtin_function_ext_scope): Add declaration.
3452
3453 * c-pragma.c (handle_pragma_target): Rename from
3454 handle_pragma_option, #pragma GCC option is now #pragma GCC
3455 target. Move warning about port not supporting target options to
3456 default pragma parse hook. Remove push/pop/reset from this
3457 pragma.
3458 (handle_pragma_optimize): Remove push/pop/reset from this pragma.
3459 (option_stack): Delete static variable.
3460 (optimize_stack): Ditto.
3461 (optons_stack): New stack of saved target and optimization
3462 options.
3463 (handle_pragma_push_options): New function to handle pushing both
3464 target and optimization options.
3465 (handle_pragma_pop_options): New function to handle popping both
3466 target and optimization options.
3467 (handle_pragma_reset_options): New function to handle resetting
3468 both target and optimization options to their initial state.
3469 (init_pragma): Rename handle_pragma_option to
3470 handle_pragma_target. Add support for push_options, pop_options,
3471 and reset_options pragmas.
3472
3473 * target-def.h (TARGET_OPTION_PRAGMA_PARSE): Change default to
3474 default_target_option_pragma_parse.
3475 (TARGET_OPTION_VALID_ATTRIBUTE_P): Change default to
3476 default_target_option_valid_attribute_p.
3477 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
3478 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
3479 (TARGET_OPTION_HOOKS): Delete the fields for whether to change
3480 optimization level on hot/cold functions.
3481
3482 * tree-inline.c (tree_can_inline_p): Disable suppressing inlining
3483 if the caller and callee have different optimization levels.
3484
3485 * c-common.c (handle_target_attribute): Rename from
3486 handle_option_attribute, attribute((option(...))) is now
3487 attribute((target(...))). Move warning if the port does not
3488 support target attributes to the default hook.
3489 (handle_hot_attribute): Delete code to change the optimization
3490 level of hot functions.
3491 (handle_cold_attribute): Ditto.
3492
3493 * config/i386/i386-c.c (ix86_pragma_target_parse): Take a second
3494 argument that is the binary tree options to use if there are no
3495 arguments. Call ix86_valid_target_attribute_tree instead of
3496 ix86_valid_option_attribute_tree.
3497 (ix86_pragma_target_parse): Rename from ix86_pragma_option_parse.
3498 (ix86_register_pragmas): Use ix86_pragma_target_parse instead of
3499 ix86_pragma_option_parse.
3500
3501 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
3502 Rename from ix86_valid_option_attribute_tree.
3503
3504 * config/i386/i386.c (ix86_add_new_builtins): New function to add
3505 new builtins when the ISA changes.
3506 (ix86_valid_target_attribute_tree): Rename from
3507 ix86_valid_option_attribute_tree. Change callers. If the
3508 function specified optimization options, use those as the starting
3509 point before setting up the target attributes. If the
3510 optimization options were changed in the course of setting the
3511 target attributes, record the new optimization options.
3512 (ix86_valid_target_attribute_tree_inner_p): Rename from
3513 ix86_valid_option_attribute_tree_inner_p. Change callers. Call
3514 ix86_add_new_builtins if the ISA changed.
3515 (ix86_valid_target_attribute_p): Rename from
3516 ix86_valid_option_attribute_p. Change callers.
3517 (enum ix86_builtins): Add IX86_BUILTIN_PCMOV to allow both
3518 __builtin_ia32_pcmov and __builtin_ia32_pcmov_v2di to be declared
3519 as delayed builtin functions.
3520 (struct builtin_isa): New structure to record builtin functions
3521 that should be delayed until the ISA for that function is used.
3522 (ix86_builtins_isa): Change from int to struct to track builtin
3523 functions we want to declare at some point.
3524 (def_builtin): If the front end can delay defining the builtin
3525 functions, don't create builtins for ISAs not part of the default
3526 options.
3527 (def_builtin_const): Ditto.
3528 (bdesc_multi_arg): Declare __builtin_ia32_pcmov and
3529 __builtin_ia32_pcmov_v2di to be different builtin functions.
3530 (ix86_expand_builtin): Changes due to ix86_builtins_isa now being
3531 a structure instead of an int.
3532 (TARGET_OPTION_VALID_ATTRIBUTE_P): Use
3533 ix86_valid_target_attribute_p, not ix86_valid_option_attribute_p.
3534 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
3535 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
3536
3537 * config/ia64/ia64.h
3538 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
3539 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
3540
3541 * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE): New
3542 hook, default to being the same as LANG_HOOKS_BUILTIN_FUNCTION.
3543 (LANG_HOOKS_INITIALIZER): Add
3544 LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE hook.
3545
3546 2008-08-30 Kaz Kojima <kkojima@gcc.gnu.org>
3547
3548 PR target/37270
3549 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Generate
3550 the reload address with the index register for SFmode
3551 access with a displacement.
3552
3553 2008-08-30 Jan Hubicka <jh@suse.cz>
3554
3555 * optabs.c (expand_abs_nojump): Update BRANCH_COST call.
3556 * fold-cost.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop): Likewise.
3557 * dojump.c (do_jump): Likewise.
3558 * ifcvt.c (MAX_CONDITIONAL_EXECUTE): Likewise.
3559 (note-if_info): Add BRANCH_COST.
3560 (noce_try_store_flag_constants, noce_try_addcc,
3561 noce_try_store_flag_mask, noce_try_cmove_arith, noce_try_cmove_arith,
3562 noce_try_cmove_arith, noce_find_if_block, find_if_case_1,
3563 find_if_case_2): Use computed branch cost.
3564 * expr.h (BRANCH_COST): Update default.
3565 * predict.c (predictable_edge_p): New function.
3566 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, emit_store_flag):
3567 Update BRANCH_COST call.
3568 * basic-block.h (predictable_edge_p): Declare.
3569 * config/alpha/alpha.h (BRANCH_COST): Update.
3570 * config/frv/frv.h (BRANCH_COST): Update.
3571 * config/s390/s390.h (BRANCH_COST): Update.
3572 * config/spu/spu.h (BRANCH_COST): Update.
3573 * config/sparc/sparc.h (BRANCH_COST): Update.
3574 * config/m32r/m32r.h (BRANCH_COST): Update.
3575 * config/i386/i386.h (BRANCH_COST): Update.
3576 * config/i386/i386.c (ix86_expand_int_movcc): Update use of
3577 BRANCH_COST.
3578 * config/sh/sh.h (BRANCH_COST): Update.
3579 * config/pdp11/pdp11.h (BRANCH_COST): Update.
3580 * config/avr/avr.h (BRANCH_COST): Update.
3581 * config/crx/crx.h (BRANCH_COST): Update.
3582 * config/xtensa/xtensa.h (BRANCH_COST): Update.
3583 * config/stormy16/stormy16.h (BRANCH_COST): Update.
3584 * config/m68hc11/m68hc11.h (BRANCH_COST): Update.
3585 * config/iq2000/iq2000.h (BRANCH_COST): Update.
3586 * config/ia64/ia64.h (BRANCH_COST): Update.
3587 * config/rs6000/rs6000.h (BRANCH_COST): Update.
3588 * config/arc/arc.h (BRANCH_COST): Update.
3589 * config/score/score.h (BRANCH_COST): Update.
3590 * config/arm/arm.h (BRANCH_COST): Update.
3591 * config/pa/pa.h (BRANCH_COST): Update.
3592 * config/mips/mips.h (BRANCH_COST): Update.
3593 * config/vax/vax.h (BRANCH_COST): Update.
3594 * config/h8300/h8300.h (BRANCH_COST): Update.
3595 * params.def (PARAM_PREDICTABLE_BRANCH_OUTCOME): New.
3596 * doc/invoke.texi (predictable-branch-cost-outcome): Document.
3597 * doc/tm.texi (BRANCH_COST): Update.
3598
3599 2008-08-30 Samuel Tardieu <sam@rfc1149.net>
3600
3601 PR target/37283
3602 * config/arm/arm.c (arm_optimization_options): Set
3603 flag_section_anchors to 2 instead of 1 to distinguish it from
3604 -fsection-anchors given explicitely on the command line.
3605
3606 2008-08-30 Richard Sandiford <rdsandiford@googlemail.com>
3607
3608 * recog.c (split_insn): Consider attaching a REG_EQUAL note to the
3609 final insn of a split.
3610
3611 2008-08-30 Jan Hubicka <jh@suse.cz>
3612
3613 * postreload-gcse.c (gate_handle_gcse2): Disable for functions
3614 optimized for speed.
3615 * final.c (compute_alignments): Use optimize_bb_for_size_p.
3616 * tree-call-cdce.c (gate_call_cdce): Use optimize_function_for_speed_p.
3617 * opts.c (flag_predictive_commoning_set, flag_unswitch_loops_set,
3618 flag_gcse_after_reload_set): New static vars.
3619 (common_handle_option): Enable those flags for profile-use.
3620 (decode_options): Remove optimize_size flags that are handled
3621 on higher granuality.
3622 * tree-vectorizer.c (vectorize_loops): Use
3623 optimize_loop_nest_for_speed_p.
3624 * tree-ssa-pre.c (do_pre): Use optimize_function_for_speed_p.
3625 * tree-predcom.c (tree_predictive_commoning): Use
3626 optimize_loop_for_speed_p.
3627 * varasm.c (assemble_start_function): Use
3628 optimize_function_for_speed_p.
3629 * bb-reorder.c (rest_of_handle_reorder_blocks): Likewise.
3630 * predict.c (optimize_loop_for_speed_p): Fix walk.
3631
3632 2008-08-30 Jan Hubicka <jh@suse.cz>
3633
3634 * ipa-inline.c (cgraph_estimate_growth): Discover self recursive
3635 functions.
3636 (cgraph_decide_inlining_of_small_function): Use edge->count to detect
3637 profile presence locally.
3638
3639 2008-08-29 Joseph Myers <joseph@codesourcery.com>
3640
3641 PR bootstrap/37086
3642 * tree-vrp.c (find_switch_asserts): Make idx volatile for GCC
3643 versions before 4.0.
3644
3645 2008-08-29 Jan Hubicka <jh@suse.cz>
3646
3647 * tree-inline.c (insert_init_stmt): Insert sequence even when
3648 not in SSA form.
3649
3650 2008-08-29 Jeff Law <law@redhat.com>
3651
3652 * mn10300.c (mn10300_secondary_reload_class): We need secondary
3653 reloads for AM33-2 if IN is a pseudo with an equivalent memory
3654 location and class is an FP register.
3655
3656 2008-08-29 Jan Hubicka <jh@suse.cz>
3657
3658 * see.c (see_merge_one_def_extension): Silence used uninitialized
3659 warning.
3660 * matrix-reorg.c (check_allocation_function): Likewise.
3661 * config/i386/driver-i386.c (detect_caches_amd): Likewise.
3662
3663 2008-08-29 Jakub Jelinek <jakub@redhat.com>
3664
3665 PR c/37261
3666 * fold-const.c (fold_binary): In (X | C1) & C2 canonicalization
3667 compute new & and | in type rather than TREE_TYPE (arg0).
3668
3669 * dwarf2out.c (fortran_common): Update comment.
3670 (gen_variable_die): Swap com_die and var_die variables in Fortran
3671 COMMON block handling code.
3672
3673 * dwarf2out.c (descr_info_loc): Handle VAR_DECL.
3674
3675 * dwarf2out.c (gen_const_die): New function.
3676 (size_of_die, value_format, output_die): Output larger
3677 dw_val_class_vec using DW_FORM_block2 or DW_FORM_block4.
3678 (native_encode_initializer): New function.
3679 (tree_add_const_value_attribute): Call it.
3680 (gen_decl_die, dwarf2out_decl): Handle CONST_DECLs if is_fortran ().
3681
3682 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): For
3683 DECL_BY_REFERENCE decls don't pass TREE_READONLY and
3684 TREE_THIS_VOLATILE to add_type_attribute.
3685
3686 * dwarf2out.c (add_subscript_info): Stop on Fortran TYPE_STRING_FLAG
3687 types.
3688 (gen_array_type_die): Emit DW_TAG_string_type for Fortran character
3689 types.
3690
3691 * dwarf2out.c (loc_by_reference): New function.
3692 (add_location_or_const_value_attribute): Use it.
3693
3694 PR fortran/23057
3695 * dwarf2out.c (gen_variable_die): Represent Fortran COMMON vars
3696 as DW_TAG_variable children of DW_TAG_common_block rather than
3697 DW_TAG_member children. Put DW_AT_external to individual
3698 DW_TAG_variable DIEs, not to DW_TAG_common_block.
3699
3700 * dwarf2out.c (add_bound_info): If lookup_decl_die failed, try
3701 loc_descriptor_from_tree_1.
3702
3703 PR fortran/29635
3704 PR fortran/23057
3705 * debug.h (struct gcc_debug_hooks): Add NAME and CHILD
3706 arguments to imported_module_or_decl.
3707 (debug_nothing_tree_tree): Removed.
3708 (debug_nothing_tree_tree_tree_bool): New prototype.
3709 * debug.c (do_nothing_debug_hooks): Adjust.
3710 (debug_nothing_tree_tree): Removed.
3711 (debug_nothing_tree_tree_tree_bool): New function.
3712 * dwarf2out.c (is_symbol_die): Handle DW_TAG_module.
3713 (gen_variable_die): Put all common vars for the
3714 same COMMON block under one DW_TAG_common_block.
3715 (declare_in_namespace): Return new context_die, for Fortran
3716 return the module DIE instead of adding extra declarations into
3717 the namespace.
3718 (gen_type_die_with_usage): Adjust declare_in_namespace caller.
3719 (gen_namespace_die): If is_fortran (), generate DW_TAG_module
3720 instead of DW_TAG_namespace. If DECL_EXTERNAL is set, add
3721 DW_AT_declaration.
3722 (dwarf2out_global_decl): Don't skip Fortran global vars.
3723 (gen_decl_die): Likewise. Adjust declare_in_namespace callers.
3724 (dwarf2out_imported_module_or_decl): Add NAME and CHILD arguments.
3725 If NAME is non-NULL, add DW_AT_name. If CHILD is non-NULL, put
3726 DW_TAG_imported_declaration as child of previous
3727 DW_TAG_imported_module.
3728 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Adjust.
3729 * sdbout.c (sdb_debug_hooks): Likewise.
3730 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3731
3732 2008-08-29 Jan Hubicka <jh@suse.cz>
3733
3734 * cgraph.c (cgraph_remove_node): Do not remove nested nodes.
3735
3736 * cgraph.h (cgraph_maybe_hot_edge_p): Declare.
3737 * ipa-cp.c (n_cloning_candidates): New static variable.
3738 (ipcp_print_profile_data, ipcp_function_scale_print): Forward declare.
3739 (ipcp_print_all_lattices): Improve debug output.
3740 (ipcp_cloning_candidate_p): New function.
3741 (ipcp_initialize_node_lattices): Use it.
3742 (ipcp_init_stage): Do only analyzis here; prettier debug output.
3743 (ipcp_propagate_stage): Prettier debug output.
3744 (ipcp_iterate_stage): Initialize latices here; prettier debug output.
3745 (ipcp_print_all_structures): Remove.
3746 (ipcp_need_redirect_p): Test !n_cloning_candidates.
3747 (ipcp_insert_stage): Prettier debug output; call
3748 cgraph_remove_unreachable_nodes before propagating.
3749 (pass_ipa_cp): Schedule function removal pass.
3750 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Better
3751 debug output.
3752 (cgraph_maybe_hot_edge_p): Move to ...
3753 * predict.c (cgraph_maybe_hot_edge_p) ... here.
3754 * opts.c (flag_ipa_cp_set, flag_ipa_cp_clone_set): New.
3755 (common_handle_option): Set them; enable ipa-cp when profiling.
3756 * ipa-prop.c (ipa_print_node_jump_functions): Prettier output.
3757 (ipa_print_all_jump_functions): Likewise.
3758 (ipa_print_all_tree_maps, ipa_print_node_param_flags): Remove.
3759 (ipa_print_node_params, ipa_print_all_params): New.
3760 * ipa-prop.h (ipa_print_all_tree_maps, ipa_print_node_param_flags,
3761 ipa_print_all_param_flags): Remove.
3762 (ipa_print_node_params, ipa_print_all_params): New.
3763
3764 2008-08-29 Bob Wilson <bob.wilson@acm.org>
3765
3766 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Revert
3767 change from 2008-04-03.
3768 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Define.
3769
3770 2008-08-29 Vladimir Makarov <vmakarov@redhat.com>
3771
3772 PR rtl-opt/37251
3773 * ira-color.c (push_allocnos_to_stack): Truncate
3774 removed_splay_allocno_vec.
3775
3776 2008-08-29 Vladimir Makarov <vmakarov@redhat.com>
3777
3778 PR rtl-opt/37243
3779 * ira-color (ira_fast_allocation): Don't assign hard registers to
3780 global allocnos.
3781
3782 2008-08-29 Jan Hubicka <jh@suse.cz>
3783
3784 PR middle-end/37278
3785 * predict.c (optimize_loop_nest_for_speed_p): Do not ICE
3786 for cold internal loops.
3787
3788 2008-08-29 Richard Guenther <rguenther@suse.de>
3789
3790 * tree-ssa-structalias.c (create_variable_info_for): Do not
3791 create fields for heap vars or vars with a noalias state.
3792 For NO_ALIAS_ANYTHING variables add a self-constraint, not one
3793 from ESCAPED.
3794
3795 2008-08-29 Richard Guenther <rguenther@suse.de>
3796
3797 * common.opt (ftree-store-ccp): Mark as preserved for
3798 backward compatibility.
3799 * doc/invoke.texi (-ftree-store-ccp): Remove documentation.
3800 * tree-pass.h (pass_store_ccp): Remove.
3801 * tree-ssa-propagate.h (struct prop_value_d): Remove mem_ref field.
3802 (first_vdef): Remove declaration.
3803 (get_value_loaded_by): Likewise.
3804 * tree-ssa-ccp.c (do_store_ccp): Remove.
3805 (get_default_value): Simplify as do_store_ccp is always false
3806 now. Do not initialize mem_ref.
3807 (set_value_varying): Likewise.
3808 (canonicalize_float_value): Likewise.
3809 (set_lattice_value): Likewise.
3810 (likely_value): Likewise.
3811 (surely_varying_stmt_p): Likewise.
3812 (ccp_initialize): Likewise.
3813 (ccp_lattice_meet): Likewise.
3814 (ccp_visit_phi_node): Likewise.
3815 (ccp_fold): Likewise.
3816 (evaluate_stmt): Likewise.
3817 (visit_assignment): Likewise.
3818 (ccp_visit_stmt): Likewise.
3819 (execute_ssa_ccp): Fold into ...
3820 (do_ssa_ccp): ... this.
3821 (do_ssa_store_ccp): Remove.
3822 (gate_store_ccp): Likewise.
3823 (pass_store_ccp): Likewise.
3824 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not
3825 initialize mem_ref.
3826 * tree-ssa-propagate.c (first_vdef): Remove.
3827 (get_value_loaded_by): Likewise.
3828 (replace_vuses_in): Likewise.
3829 (substitute_and_fold): Do not call replace_vuses_in.
3830 * opts.c (decode_options): Do not set flag_tree_store_ccp.
3831
3832 2008-08-29 Richard Guenther <rguenther@suse.de>
3833
3834 PR middle-end/37236
3835 * tree-ssa-structalias.c (intra_create_variable_infos): Mark
3836 PARAM_NOALIAS tags with is_heapvar.
3837 * tree-ssa-operands.c (access_can_touch_variable): Offset
3838 based tests do not apply for heapvars. Fix offset test.
3839
3840 2008-08-29 Jan Hubicka <jh@suse.cz>
3841
3842 * doc/invoke.texi (-fipa-cp): Enabled by default at -O2/-Os/-O3
3843 (-fipa-cp-clone): Enabled by default at -O3.
3844 * opts.c (decode_options): Enable ipa-cp at -O2, ipa-cp-clone at -O3;
3845 make ipa-cp-clone to imply ipa-cp; disable cloning at -Os.
3846
3847 2008-08-29 Jan Hubicka <jh@suse.cz>
3848
3849 * tree.c (build_function_type_skip_args,
3850 build_function_decl_skip_args): New functions.
3851 * tree.h (build_function_type_skip_args,
3852 build_function_decl_skip_args): Declare.
3853 * gimple.c (giple_copy_call_skip_args): New function.
3854 (giple_copy_call_skip_args): Declare.
3855
3856 * cgraph.h (cgraph_function_versioning): Add skip_args arugmnet
3857 * ipa-cp.c (ipcp_node_not_modifiable_p): Rename to ...
3858 (ipcp_node_modifiable_p): ... this one; use
3859 tree_versionable_function_p.
3860 (ipcp_create_replace_map): Improve debug output.
3861 (ipcp_need_redirect_p): Return false when not clonning.
3862 (ipcp_update_callgraph): Skip args.
3863 (ipcp_insert_stage): UPdate call of !ipcp_node_modifiable_p;
3864 skip args.
3865 * cgraphunit.c (cgraph_function_versioning): Add skip_args argument.
3866 (save_inline_function_body): Update call of tree_function_versioning.
3867 * ipa-prop.c (ipa_edge_removal_hook): Do not ICE on unanalyzed nodes.
3868 * tree-inline.c (copy_arguments_for_versioning): Add skip_args
3869 argument.
3870 (tree_function_versioning): Likewise.
3871 * tree-inline.h (tree_function_versioning): Update prototype.
3872
3873 2008-08-29 Jan Hubicka <jh@suse.cz>
3874
3875 * loop-unswitch.c (unswitch_single_loop): Use
3876 optimize_loop_for_speed_p.
3877 * tree-ssa-threadupdate.c (mark_threaded_blocks):
3878 Use optimize_function_for_size_p.
3879 * tracer.c (ignore_bb_p): Use optimize_bb_for_size_p.
3880 * postreload-gcse.c (eliminate_partially_redundant_load):
3881 Use optimize_bb_for_size_p.
3882 * value-prof.c (gimple_divmod_fixed_value_transform,
3883 gimple_mod_pow2_value_transform, gimple_mod_subtract_transform,
3884 gimple_stringops_transform): Use optimize_bb_for_size_p.
3885 * ipa-cp.c (ipcp_insert_stage): Use optimize_function_for_size_p.
3886 * final.c (compute_alignments): Use optimize_function_for_size_p.
3887 * builtins.c (fold_builtin_cabs): Use optimize_function_for_speed_p.
3888 (fold_builtin_strcpy, fold_builtin_fputs): Use
3889 optimize_function_for_size_p.
3890 * fold-const.c (tree_swap_operands_p): Use
3891 optimize_function_for_size_p.
3892 * recog.c (relax_delay_slots): Likewise.
3893 * tree-ssa-math-opts.c (replace_reciprocal):
3894 Use optimize_bb_for_speed_p.
3895 (execute_cse_reciprocals): Use optimize_bb_for_size_p.
3896 * ipa-inline.c (cgraph_decide_recursive_inlining): Use
3897 optimize_function_for_size_p.
3898 (cgraph_decide_inlining_of_small_function): Use
3899 optimize_function_for_size_p.
3900 * global.c (find_reg): Use optimize_function_for_size_p.
3901 * opts.c (decode_options): Do not clear flag_tree_ch,
3902 flag_inline_functions, flag_unswitch_loops, flag_unroll_loops,
3903 flag_unroll_all_loops and flag_prefetch_loop_arrays. Those can
3904 work it out from profile.
3905 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Use
3906 optimize_loop_for_speed_p.
3907 * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
3908 Constify argument.
3909 (optimize_loop_nest_for_size_p, optimize_loop_nest_for_speed_p): New.
3910 * tree-parloops.c (parallelize_loops): Use optimize_loop_for_size_p.
3911 * tree-eh.c (decide_copy_try_finally): Use
3912 optimize_function_for_size_p.
3913 * local-alloc.c (block_alloc): Pass BB pointer.
3914 (find_free_reg): Add BB pointer, use optimize_bb_for_size_p.
3915 * gcse.c (gcse_main): Use optimize_function_for_size_p.
3916 * loop-unroll.c (decide_unrolling_and_peeling):
3917 Use optimize_loop_for_size_p.
3918 (decide_peel_completely): Likewise.
3919 * tree-vect-analyze.c (vect_mark_for_runtime_alias_test): Use
3920 optimize_loop_for_size_p.
3921 (vect_enhance_data_refs_alignment): Likewise.
3922 * tree-ssa-coalesce.c (coalesce_cost): Add optimize_for_size argument.
3923 (coalesce_cost_bb, coalesce_cost_edge, create_outofssa_var_map):
3924 Update call.
3925 * cfgcleanup.c (outgoing_edges_match): Use optimize_bb_for_speed_p.
3926 (try_crossjump_bb): Use optimize_bb_for_size_p.
3927 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
3928 optimize_loop_for_speed_p.
3929 * bb-reorder.c (find_traces_1_round): Likewise.
3930 (copy_bb): Use optimize_bb_for_speed_p.
3931 (duplicate_computed_gotos): Likewise.
3932 * basic-block.h (optimize_loop_nest_for_size_p,
3933 optimize_loop_nest_for_speed_p): New.
3934 * stmt.c (expand_case): Use optimize_insn_for_size_p.
3935
3936 2008-08-29 Tristan Gingold <gingold@adacore.com>
3937
3938 * gcov.c (main): Call expandargv.
3939
3940 2008-08-29 Jan Hubicka <jh@suse.cz>
3941
3942 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Check that loop
3943 is not cold.
3944 * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
3945 Constify arguments.
3946 (optimize_loop_for_size_p, optimize_loop_for_speed_p): New functions.
3947 * basic-block.h (optimize_bb_for_size_p, optimize_bb_for_speed_p):
3948 Constify.
3949 (optimize_loop_for_size_p, optimize_loop_for_speed_p): Declare.
3950
3951 2008-08-29 Jan Hubicka <jh@suse.cz>
3952
3953 * tree-pass.h (pass_strip_predict_hints): Declare.
3954 * predict.c (strip_builtin_expect): Rename to ...
3955 (strip_predict_hints): ... this one; strip also GIMPLE_PREDICT.
3956 (tree_bb_level_predictions): Do not remove GIMPLE_PREDICT.
3957 (tree_estimate_probability): Do not strip builtin_expect.
3958 (pass_strip_predict_hints): New pass.
3959 * tree-inline.c (expand_call_inline): When inlining cold function,
3960 predict it as unlikely.
3961 * passes.c (init_optimization_passes): Add pass_strip_predict_hints.
3962
3963 2008-08-29 Richard Guenther <rguenther@suse.de>
3964
3965 PR tree-optimization/37207
3966 * tree-vrp.c (extract_range_from_binary_expr): Also try
3967 to constant fold if only one of the operands is a constant.
3968
3969 2008-08-29 Nick Clifton <nickc@redhat.com>
3970
3971 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Treat LABEL_REFs in
3972 the same way as SYMBOL_REFs.
3973
3974 2008-08-28 Bob Wilson <bob.wilson@acm.org>
3975
3976 * config/xtensa/xtensa.md (<u>mulsidi3): Use a temporary register.
3977
3978 2008-08-28 Adam Nemet <anemet@caviumnetworks.com>
3979
3980 * config/mips/mips.h (ISA_HAS_BBIT): New macro.
3981 * config/mips/mips.md (branch_likely): Remove const. Fix
3982 comment formatting.
3983 (define_delay for type "branch"): Change to only apply for branch
3984 with likely variant.
3985 (define_delay for type "branch" and "branch_likely" no). New delay
3986 definition.
3987 (equality_op): New code iterator.
3988 (bbv, bbinv): New code attributes.
3989 (*branch_bit<bbv><mode>, *branch_bit<bbv><mode>_inverted): New
3990 patterns.
3991
3992 2008-08-28 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3993 Andrew Pinski <pinskia@gcc.gnu.org>
3994
3995 PR 18050
3996 * c-common.c (verify_tree): Fix handling of ADDR_EXPR.
3997
3998 2008-08-28 Paolo Carlini <paolo.carlini@oracle.com>
3999
4000 * gtrh-posix.h: Fix uses of _POSIX_TIMEOUTS per the normal Posix
4001 rule that a symbolic constant must be defined and >= 0 for the
4002 corresponding facility to be present at compile-time.
4003 * gthr-posix.c: Likewise.
4004
4005 2008-08-28 Adam Nemet <anemet@caviumnetworks.com>
4006
4007 * config/mips/mips.h (ISA_HAS_DMUL3): New macro.
4008 * config/mips/mips.md (D): New mode attribute.
4009 (mulsi3, muldi3): Merge it into ...
4010 (mul<mode>3): ... new template. Use _mul3 ending for 3-op patterns.
4011 (muldi3_mul3): New pattern.
4012 (mulsi3_mult3): Rename to mulsi3_mul3.
4013
4014 2008-08-28 Jan Hubicka <jh@suse.cz>
4015
4016 * expmed.c (store_bit_field_1): Be prepared for movstrict expander
4017 to fail.
4018 * predict.c (always_optimize_for_size_p): Rename to ...
4019 (optimize_function_for_size): ... this one; make extern.
4020 (optimize_function_for_speed_p): New.
4021 (optimize_bb_for_size_p, optimize_bb_for_size_p,
4022 optimize_edge_for_size_p,optimize_edge_for_size_p,
4023 optimize_insn_for_size_p, optimize_insn_for_size_p): Update.
4024 * basic-block.h (optimize_function_for_size_p,
4025 optimize_function_for_speed_p): Declare.
4026 * i386.md (optimize_size checks): Replace them by appropriate
4027 predicate.
4028 (standard_80387_constant_p, ix86_compute_frame_layout,
4029 ix86_expand_epilogue, ix86_decompose_address,
4030 print_operand, emit_i387_cw_initialization,
4031 inline_memory_move_cost, ix86_pad_returns,
4032 ix86_reorg): Replace optimize_size checks.
4033
4034 2008-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4035
4036 * rtl.h (simplify_subreg_regno): Declare.
4037 * rtlanal.c (simplify_subreg_regno): New function, split out from...
4038 * simplify-rtx.c (simplify_subreg): ...here.
4039 * reload.c (find_reloads): Use simplify_subreg_regno instead of
4040 subreg_offset_representable_p.
4041
4042 2008-08-28 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4043
4044 PR c/30949
4045 * c-typeck.c (convert_for_assignment): Give a note describing what
4046 was passed and what was expected.
4047
4048 2008-08-28 Joey Ye <joey.ye@intel.com>
4049
4050 * doc/extend.texi: Document AVX built-in functions.
4051 * doc/invoke.texi: Document -mavx.
4052
4053 2008-08-28 H.J. Lu <hongjiu.lu@intel.com>
4054 Joey Ye <joey.ye@intel.com>
4055 Xuepeng Guo <xuepeng.guo@intel.com>
4056
4057 * config.gcc (extra_headers): Add gmmintrin.h for x86 and x86-64.
4058
4059 * config/i386/cpuid.h (bit_FMA): New.
4060 (bit_XSAVE): Likewise.
4061 (bit_OSXSAVE): Likewise.
4062 (bit_AVX): Likewise.
4063
4064 * config/i386/gas.h (ASM_OUTPUT_OPCODE): Undefine before
4065 define. Use ASM_OUTPUT_AVX_PREFIX.
4066
4067 * config/i386/gmmintrin.h: New.
4068
4069 * config/i386/i386.c (x86_64_reg_class): Add X86_64_AVX_CLASS.
4070 (OPTION_MASK_ISA_AVX_SET): New.
4071 (OPTION_MASK_ISA_FMA_SET): Likewise.
4072 (OPTION_MASK_ISA_AVX_UNSET): Likewise.
4073 (OPTION_MASK_ISA_FMA_SET): Likewise.
4074 (OPTION_MASK_ISA_SSE4_2_UNSET): Updated.
4075 (ix86_handle_option): Handle OPT_mavx and OPT_mfma.
4076 (pta_flags): Add PTA_AVX and PTA_FMA.
4077 (override_options): Handle PTA_AVX and PTA_FMA.
4078 (init_cumulative_args): Handle warn_avx.
4079 (classify_argument): Return 0 for COImode and OImode. Return
4080 1 and X86_64_AVX_CLASS for 256bit vector types.
4081 (examine_argument): Handle X86_64_AVX_CLASS.
4082 (construct_container): Likewise.
4083 (function_arg_advance_32): Pass OImode and 256bit vector types
4084 in AVX register.
4085 (function_arg_advance_64): Take a new argument to indicate if a
4086 parameter is named. Handle 256bit vector types. Return
4087 immediately for unnamed 256bit vector mode parameters.
4088 (function_arg_advance): Updated.
4089 (function_arg_32): Add comments for TImode. Handle OImode
4090 and 256bit vector types.
4091 (function_arg_64): Take a new argument to indicate if a
4092 parameter is named. Handle 256bit vector types. Return NULL
4093 for unnamed 256bit vector mode parameters.
4094 (function_arg): Updated.
4095 (setup_incoming_varargs_64): Support
4096 AVX encoding for *sse_prologue_save_insn.
4097 (ix86_gimplify_va_arg): Handle 256bit vector mode parameters.
4098 (standard_sse_constant_p): Return -2 for all 1s if SSE2 isn't
4099 enabled. For all 1s in 256bit vector modes, return 3 if AVX is
4100 enabled, otherwise return -3.
4101 (standard_sse_constant_opcode): Handle AVX and 256bit vector
4102 modes.
4103 (print_reg): Support AVX registers. Handle 'x' and 't'.
4104 Handle 'd' to duplicate the operand.
4105 (print_operand): Likewise. Also support AVX vector compare
4106 instructions.
4107 (output_387_binary_op): Support AVX.
4108 (output_fp_compare): Likewise.
4109 (ix86_expand_vector_move_misalign): Likewise.
4110 (ix86_attr_length_vex_default): New.
4111 (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
4112 IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
4113 IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
4114 IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
4115 IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_BLENDPD256,
4116 IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
4117 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DIVPD256,
4118 IX86_BUILTIN_DIVPS256, IX86_BUILTIN_DPPS256,
4119 IX86_BUILTIN_HADDPD256, IX86_BUILTIN_HADDPS256,
4120 IX86_BUILTIN_HSUBPD256, IX86_BUILTIN_HSUBPS256,
4121 IX86_BUILTIN_MAXPD256, IX86_BUILTIN_MAXPS256,
4122 IX86_BUILTIN_MINPD256, IX86_BUILTIN_MINPS256,
4123 IX86_BUILTIN_MULPD256, IX86_BUILTIN_MULPS256,
4124 IX86_BUILTIN_ORPD256, IX86_BUILTIN_ORPS256,
4125 IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
4126 IX86_BUILTIN_SUBPD256, IX86_BUILTIN_SUBPS256,
4127 IX86_BUILTIN_XORPD256, IX86_BUILTIN_XORPS256,
4128 IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
4129 IX86_BUILTIN_CMPPS, IX86_BUILTIN_CMPPD256,
4130 IX86_BUILTIN_CMPPS256, IX86_BUILTIN_CVTDQ2PD256,
4131 IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
4132 IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
4133 IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
4134 IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_EXTRACTF128PD256,
4135 IX86_BUILTIN_EXTRACTF128PS256, IX86_BUILTIN_EXTRACTF128SI256,
4136 IX86_BUILTIN_VZEROALL, IX86_BUILTIN_VZEROUPPER,
4137 IX86_BUILTIN_VZEROUPPER_REX64, IX86_BUILTIN_VPERMILVARPD,
4138 IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
4139 IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_VPERMILPD,
4140 IX86_BUILTIN_VPERMILPS, IX86_BUILTIN_VPERMILPD256,
4141 IX86_BUILTIN_VPERMILPS256, IX86_BUILTIN_VPERMIL2PD,
4142 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256,
4143 IX86_BUILTIN_VPERMIL2PS256, IX86_BUILTIN_VPERM2F128PD256,
4144 IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
4145 IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
4146 IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
4147 IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_VINSERTF128PD256,
4148 IX86_BUILTIN_VINSERTF128PS256, IX86_BUILTIN_VINSERTF128SI256,
4149 IX86_BUILTIN_LOADUPD256, IX86_BUILTIN_LOADUPS256,
4150 IX86_BUILTIN_STOREUPD256, IX86_BUILTIN_STOREUPS256,
4151 IX86_BUILTIN_LDDQU256, IX86_BUILTIN_LOADDQU256,
4152 IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_MASKLOADPD,
4153 IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKSTOREPD,
4154 IX86_BUILTIN_MASKSTOREPS, IX86_BUILTIN_MASKLOADPD256,
4155 IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKSTOREPD256,
4156 IX86_BUILTIN_MASKSTOREPS256, IX86_BUILTIN_MOVSHDUP256,
4157 IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
4158 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
4159 IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
4160 IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
4161 IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
4162 IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
4163 IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
4164 IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
4165 IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
4166 IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
4167 IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
4168 IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
4169 IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
4170 IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
4171 IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
4172 IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
4173 IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
4174 IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256
4175 and IX86_BUILTIN_MOVMSKPS256,
4176 (ix86_special_builtin_type): Add V32QI_FTYPE_PCCHAR,
4177 V8SF_FTYPE_PCV4SF, V8SF_FTYPE_PCFLOAT, V4DF_FTYPE_PCV2DF,
4178 V4DF_FTYPE_PCDOUBLE, V8SF_FTYPE_PCV8SF_V8SF,
4179 V4DF_FTYPE_PCV4DF_V4DF, V4SF_FTYPE_PCV4SF_V4SF,
4180 V2DF_FTYPE_PCV2DF_V2DF, VOID_FTYPE_PCHAR_V32QI,
4181 VOID_FTYPE_PFLOAT_V8SF, VOID_FTYPE_PDOUBLE_V4DF,
4182 VOID_FTYPE_PV8SF_V8SF_V8SF, VOID_FTYPE_PV4DF_V4DF_V4DF,
4183 VOID_FTYPE_PV4SF_V4SF_V4SF and VOID_FTYPE_PV2DF_V2DF_V2DF,
4184 (ix86_builtin_type): Add INT_FTYPE_V8SF_V8SF_PTEST,
4185 INT_FTYPE_V4DI_V4DI_PTEST, INT_FTYPE_V4DF_V4DF_PTEST,
4186 INT_FTYPE_V4SF_V4SF_PTEST, INT_FTYPE_V2DF_V2DF_PTEST,
4187 INT_FTYPE_V8SF, INT_FTYPE_V4DF, V8SI_FTYPE_V8SF, V8SI_FTYPE_V4SI,
4188 V8SF_FTYPE_V8SF, V8SF_FTYPE_V8SI, V8SF_FTYPE_V4SF,
4189 V4SI_FTYPE_V8SI, V4SI_FTYPE_V4DF, V4DF_FTYPE_V4DF,
4190 V4DF_FTYPE_V4SI, V4DF_FTYPE_V4SF, V4DF_FTYPE_V2DF,
4191 V4SF_FTYPE_V4DF, V4SF_FTYPE_V8SF, V2DF_FTYPE_V4DF,
4192 V8SF_FTYPE_V8SF_V8SF, V8SF_FTYPE_V8SF_V8SI,
4193 V4DF_FTYPE_V4DF_V4DF, V4DF_FTYPE_V4DF_V4DI,
4194 V4SF_FTYPE_V4SF_V4SI, V2DF_FTYPE_V2DF_V2DI,
4195 V8SF_FTYPE_V8SF_INT, V4SI_FTYPE_V8SI_INT, V4SF_FTYPE_V8SF_INT,
4196 V2DF_FTYPE_V4DF_INT, V4DF_FTYPE_V4DF_INT,
4197 V8SF_FTYPE_V8SF_V8SF_V8SF, V4DF_FTYPE_V4DF_V4DF_V4DF,
4198 V8SI_FTYPE_V8SI_V8SI_INT, V8SF_FTYPE_V8SF_V8SF_INT,
4199 V4DF_FTYPE_V4DF_V4DF_INT, V4DF_FTYPE_V4DF_V2DF_INT,
4200 V8SF_FTYPE_V8SF_V8SF_V8SI_INT, V4DF_FTYPE_V4DF_V4DF_V4DI_INT,
4201 V4SF_FTYPE_V4SF_V4SF_V4SI_INT and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
4202 (bdesc_special_args): Add IX86_BUILTIN_VZEROALL,
4203 IX86_BUILTIN_VZEROUPPER. IX86_BUILTIN_VZEROUPPER_REX64,
4204 IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
4205 IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
4206 IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_LOADUPD256,
4207 IX86_BUILTIN_LOADUPS256, IX86_BUILTIN_STOREUPD256,
4208 IX86_BUILTIN_STOREUPS256, IX86_BUILTIN_LOADDQU256,
4209 IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_LDDQU256,
4210 IX86_BUILTIN_MASKLOADPD, IX86_BUILTIN_MASKLOADPS,
4211 IX86_BUILTIN_MASKLOADPD256, IX86_BUILTIN_MASKLOADPS256,
4212 IX86_BUILTIN_MASKSTOREPD, IX86_BUILTIN_MASKSTOREPS,
4213 IX86_BUILTIN_MASKSTOREPD256 and IX86_BUILTIN_MASKSTOREPS256.
4214 (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
4215 IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
4216 IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
4217 IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
4218 IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_DIVPD256,
4219 IX86_BUILTIN_DIVPS256, IX86_BUILTIN_HADDPD256,
4220 IX86_BUILTIN_HSUBPS256, IX86_BUILTIN_HSUBPD256,
4221 IX86_BUILTIN_HADDPS256, IX86_BUILTIN_MAXPD256,
4222 IX86_BUILTIN_MAXPS256, IX86_BUILTIN_MINPD256,
4223 IX86_BUILTIN_MINPS256, IX86_BUILTIN_MULPD256,
4224 IX86_BUILTIN_MULPS256, IX86_BUILTIN_ORPD256,
4225 IX86_BUILTIN_ORPS256, IX86_BUILTIN_SUBPD256,
4226 IX86_BUILTIN_SUBPS256, IX86_BUILTIN_XORPD256,
4227 IX86_BUILTIN_XORPS256, IX86_BUILTIN_VPERMILVARPD,
4228 IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
4229 IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_BLENDPD256,
4230 IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
4231 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DPPS256,
4232 IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
4233 IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
4234 IX86_BUILTIN_CMPPS,
4235 IX86_BUILTIN_CMPPD256,IX86_BUILTIN_CMPPS256,
4236 IX86_BUILTIN_EXTRACTF128PD256, IX86_BUILTIN_EXTRACTF128PS256,
4237 IX86_BUILTIN_EXTRACTF128SI256, IX86_BUILTIN_CVTDQ2PD256,
4238 IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
4239 IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
4240 IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
4241 IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_VPERM2F128PD256,
4242 IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
4243 IX86_BUILTIN_VPERMILPD, IX86_BUILTIN_VPERMILPS,
4244 IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
4245 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMILPS,
4246 IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
4247 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
4248 IX86_BUILTIN_VPERMIL2PD256, IX86_BUILTIN_VPERMIL2PS256,
4249 IX86_BUILTIN_VINSERTF128PD256, IX86_BUILTIN_VINSERTF128PS256,
4250 IX86_BUILTIN_VINSERTF128SI256, IX86_BUILTIN_MOVSHDUP256,
4251 IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
4252 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
4253 IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
4254 IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
4255 IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
4256 IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
4257 IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
4258 IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
4259 IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
4260 IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
4261 IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
4262 IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
4263 IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
4264 IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
4265 IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
4266 IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
4267 IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
4268 IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256 and
4269 IX86_BUILTIN_MOVMSKPS256.
4270 (ix86_init_mmx_sse_builtins): Support AVX builtins.
4271 (ix86_expand_args_builtin): Likewise.
4272 (ix86_expand_special_args_builtin): Likewise.
4273 (ix86_hard_regno_mode_ok): Handle AVX modes.
4274 (ix86_expand_vector_init_duplicate): Likewise.
4275 (ix86_expand_vector_init_one_nonzero): Likewise.
4276 (ix86_expand_vector_init_one_var): Likewise.
4277 (ix86_expand_vector_init_concat): Likewise.
4278 (ix86_expand_vector_init_general): Likewise.
4279 (ix86_expand_vector_set): Likewise.
4280 (ix86_vector_mode_supported_p): Likewise.
4281 (x86_extended_reg_mentioned_p): Check INSN_P before using
4282 PATTERN.
4283
4284 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
4285 OPTION_MASK_ISA_AVX and OPTION_MASK_ISA_FMA.
4286
4287 * config/i386/i386.h (TARGET_AVX): New.
4288 (TARGET_FMA): Likewise.
4289 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AVX and TARGET_FMA.
4290 (BIGGEST_ALIGNMENT): Set to 256 for TARGET_AVX.
4291 (VALID_AVX256_REG_MODE): New.
4292 (AVX256_VEC_FLOAT_MODE_P): Likewise.
4293 (AVX_FLOAT_MODE_P): Likewise.
4294 (AVX128_VEC_FLOAT_MODE_P): Likewise.
4295 (AVX256_VEC_FLOAT_MODE_P): Likewise.
4296 (AVX_VEC_FLOAT_MODE_P): Likewise.
4297 (ASM_OUTPUT_AVX_PREFIX): Likewise.
4298 (ASM_OUTPUT_OPCODE): Likewise.
4299 (UNITS_PER_SIMD_WORD): Add a FIXME for 32byte vectorizer
4300 support.
4301 (SSE_REG_MODE_P): Allow 256bit vector modes.
4302 (ix86_args): Add a warn_avx field.
4303
4304 * config/i386/i386.md (UNSPEC_PCMP): New.
4305 (UNSPEC_VPERMIL): Likewise.
4306 (UNSPEC_VPERMIL2): Likewise.
4307 (UNSPEC_VPERMIL2F128): Likewise.
4308 (UNSPEC_MASKLOAD): Likewise.
4309 (UNSPEC_MASKSTORE): Likewise.
4310 (UNSPEC_CAST): Likewise.
4311 (UNSPEC_VTESTP): Likewise.
4312 (UNSPECV_VZEROALL): Likewise.
4313 (UNSPECV_VZEROUPPER): Likewise.
4314 (XMM0_REG): Likewise.
4315 (XMM1_REG): Likewise.
4316 (XMM2_REG): Likewise.
4317 (XMM3_REG): Likewise.
4318 (XMM4_REG): Likewise.
4319 (XMM5_REG): Likewise.
4320 (XMM6_REG): Likewise.
4321 (XMM8_REG): Likewise.
4322 (XMM9_REG): Likewise.
4323 (XMM10_REG): Likewise.
4324 (XMM11_REG): Likewise.
4325 (XMM12_REG): Likewise.
4326 (XMM13_REG): Likewise.
4327 (XMM14_REG): Likewise.
4328 (XMM15_REG): Likewise.
4329 (prefix): Likewise.
4330 (prefix_vex_imm8): Likewise.
4331 (prefix_vex_w): Likewise.
4332 (length_vex): Likewise.
4333 (maxmin): Likewise.
4334 (movoi): Likewise.
4335 (*avx_ashlti3): Likewise.
4336 (*avx_lshrti3): Likewise.
4337 (*avx_setcc<mode>): Likewise.
4338 (*fop_<mode>_comm_mixed_avx): Likewise.
4339 (*fop_<mode>_comm_avx): Likewise.
4340 (*fop_<mode>_1_mixed_avx): Likewise.
4341 (*fop_<mode>_1_avx): Likewise.
4342 (*avx_<code><mode>3): Likewise.
4343 (*avx_ieee_smin<mode>3): Likewise.
4344 (*avx_ieee_smax<mode>3): Likewise.
4345 (mode): Add OI, V8SF and V4DF.
4346 (length): Support VEX prefix.
4347 (*cmpfp_i_mixed): Set prefix attribute.
4348 (*cmpfp_i_sse): Likewise.
4349 (*cmpfp_iu_mixed): Likewise.
4350 (*cmpfp_iu_sse): Likewise.
4351 (*movsi_1): Support AVX.
4352 (*movdi_2): Likewise.
4353 (*movdi_1_rex64): Likewise.
4354 (*movti_internal): Likewise.
4355 (*movti_rex64): Likewise.
4356 (*movsf_1): Likewise.
4357 (*movdf_nointeger): Likewise.
4358 (*movdf_integer_rex64): Likewise.
4359 (*movtf_internal): Likewise.
4360 (zero_extendsidi2_32): Likewise.
4361 (zero_extendsidi2_rex64): Likewise.
4362 (*extendsfdf2_mixed): Likewise.
4363 (*extendsfdf2_sse): Likewise.
4364 (*truncdfsf_fast_mixed): Likewise.
4365 (*truncdfsf_fast_sse): Likewise.
4366 (*truncdfsf_mixed): Likewise.
4367 (fix_trunc<mode>di_sse): Likewise.
4368 (fix_trunc<mode>si_sse): Likewise.
4369 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
4370 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
4371 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
4372 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
4373 (*rcpsf2_sse): Likewise.
4374 (*rsqrtsf2_sse): Likewise.
4375 (*sqrt<mode>2_sse): Likewise.
4376 (sse4_1_round<mode>2): Likewise.
4377 (*sse_prologue_save_insn): Disallow REX prefix for AVX.
4378 Support AVX. Set length attribute properly for AVX.
4379
4380 * config/i386/i386-modes.def (VECTOR_MODES (INT, 32)): New.
4381 (VECTOR_MODES (FLOAT, 32)): Likewise.
4382 (VECTOR_MODE (INT, DI, 8)): Likewise.
4383 (VECTOR_MODE (INT, HI, 32)): Likewise.
4384 (VECTOR_MODE (INT, QI, 64)): Likewise.
4385 (VECTOR_MODE (FLOAT, DF, 8)): Likewise.
4386 (VECTOR_MODE (FLOAT, SF, 16)): Likewise.
4387 (VECTOR_MODE (INT, DI, 4)): Removed.
4388 (VECTOR_MODE (INT, SI, 8)): Likewise.
4389 (VECTOR_MODE (INT, HI, 16)): Likewise.
4390 (VECTOR_MODE (INT, QI, 32)): Likewise.
4391 (VECTOR_MODE (FLOAT, SF, 8)): Likewise.
4392 (INT_MODE (OI, 32)): Likewise.
4393
4394 * config/i386/i386.opt (mavx): New.
4395 (mfma): Likewise.
4396
4397 * config/i386/i386-protos.h (ix86_attr_length_vex_default): New.
4398
4399 * config/i386/mmx.md (*mov<mode>_internal_rex64): Support AVX.
4400 (*mov<mode>_internal_avx): New.
4401 (*movv2sf_internal_rex64_avx): Likewise.
4402 (*movv2sf_internal_avx): Likewise.
4403
4404 * config/i386/predicates.md (const_4_to_5_operand): New.
4405 (const_6_to_7_operand): Likewise.
4406 (const_8_to_11_operand): Likewise.
4407 (const_12_to_15_operand): Likewise.
4408 (avx_comparison_float_operator): Likewise.
4409
4410 * config/i386/sse.md (AVX256MODEI): New.
4411 (AVX256MODE): Likewise.
4412 (AVXMODEQI): Likewise.
4413 (AVXMODE): Likewise.
4414 (AVX256MODEF2P): Likewise.
4415 (AVX256MODE2P): Likewise.
4416 (AVX256MODE4P): Likewise.
4417 (AVX256MODE8P): Likewise.
4418 (AVXMODEF2P): Likewise.
4419 (AVXMODEF4P): Likewise.
4420 (AVXMODEDCVTDQ2PS): Likewise.
4421 (AVXMODEDCVTPS2DQ): Likewise.
4422 (avxvecmode): Likewise.
4423 (avxvecpsmode): Likewise.
4424 (avxhalfvecmode): Likewise.
4425 (avxscalarmode): Likewise.
4426 (avxcvtvecmode): Likewise.
4427 (avxpermvecmode): Likewise.
4428 (avxmodesuffixf2c): Likewise.
4429 (avxmodesuffixp): Likewise.
4430 (avxmodesuffixs): Likewise.
4431 (avxmodesuffix): Likewise.
4432 (vpermilbits): Likewise.
4433 (pinsrbits): Likewise.
4434 (mov<mode>): Likewise.
4435 (*mov<mode>_internal): Likewise.
4436 (push<mode>1): Likewise.
4437 (movmisalign<mode>): Likewise.
4438 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Likewise.
4439 (avx_movdqu<avxmodesuffix>): Likewise.
4440 (avx_lddqu<avxmodesuffix>): Likewise.
4441 (<plusminus_insn><mode>3): Likewise.
4442 (*avx_<plusminus_insn><mode>3): Likewise.
4443 (*avx_vm<plusminus_insn><mode>3): Likewise.
4444 (mul<mode>3): Likewise.
4445 (*avx_mul<mode>3): Likewise.
4446 (*avx_vmmul<mode>3): Likewise.
4447 (divv8sf3): Likewise.
4448 (divv4df3): Likewise.
4449 (avx_div<mode>3): Likewise.
4450 (*avx_div<mode>3): Likewise.
4451 (*avx_vmdiv<mode>3): Likewise.
4452 (avx_rcpv8sf2): Likewise.
4453 (*avx_vmrcpv4sf2): Likewise.
4454 (sqrtv8sf2): Likewise.
4455 (avx_sqrtv8sf2): Likewise.
4456 (*avx_vmsqrt<mode>2): Likewise.
4457 (rsqrtv8sf2): Likewise.
4458 (avx_rsqrtv8sf2): Likewise.
4459 (*avx_vmrsqrtv4sf2): Likewise.
4460 (<code><mode>3): Likewise.
4461 (*avx_<code><mode>3_finite): Likewise.
4462 (*avx_<code><mode>3): Likewise.
4463 (*avx_vm<code><mode>3): Likewise.
4464 (*avx_ieee_smin<mode>3): Likewise.
4465 (*avx_ieee_smax<mode>3): Likewise.
4466 (avx_addsubv8sf3): Likewise.
4467 (avx_addsubv4df3): Likewise.
4468 (*avx_addsubv4sf3): Likewise.
4469 (*avx_addsubv2df3): Likewise.
4470 (avx_h<plusminus_insn>v4df3): Likewise.
4471 (avx_h<plusminus_insn>v8sf3): Likewise.
4472 (*avx_h<plusminus_insn>v4sf3): Likewise.
4473 (*avx_h<plusminus_insn>v2df3): Likewise.
4474 (avx_cmpp<avxmodesuffixf2c><mode>3): Likewise.
4475 (avx_cmps<ssemodesuffixf2c><mode>3): Likewise.
4476 (*avx_maskcmp<mode>3): Likewise.
4477 (avx_nand<mode>3): Likewise.
4478 (*avx_<code><mode>3): Likewise.
4479 (*avx_nand<mode>3): Likewise.
4480 (*avx_<code><mode>3): Likewise.
4481 (*avx_cvtsi2ss): Likewise.
4482 (*avx_cvtsi2ssq): Likewise.
4483 (*avx_cvtsi2sd): Likewise.
4484 (*avx_cvtsi2sdq): Likewise.
4485 (*avx_cvtsd2ss): Likewise.
4486 (avx_cvtss2sd): Likewise.
4487 (avx_cvtdq2ps<avxmodesuffix>): Likewise.
4488 (avx_cvtps2dq<avxmodesuffix>): Likewise.
4489 (avx_cvttps2dq<avxmodesuffix>): Likewise.
4490 (*avx_cvtsi2sd): Likewise.
4491 (*avx_cvtsi2sdq): Likewise.
4492 (avx_cvtdq2pd256): Likewise.
4493 (avx_cvtpd2dq256): Likewise.
4494 (avx_cvttpd2dq256): Likewise.
4495 (*avx_cvtsd2ss): Likewise.
4496 (*avx_cvtss2sd): Likewise.
4497 (avx_cvtpd2ps256): Likewise.
4498 (avx_cvtps2pd256): Likewise.
4499 (*avx_movhlps): Likewise.
4500 (*avx_movlhps): Likewise.
4501 (avx_unpckhps256): Likewise.
4502 (*avx_unpckhps): Likewise.
4503 (avx_unpcklps256): Likewise.
4504 (*avx_unpcklps): Likewise.
4505 (avx_movshdup256): Likewise.
4506 (avx_movsldup256): Likewise.
4507 (avx_shufps256): Likewise.
4508 (avx_shufps256_1): Likewise.
4509 (*avx_shufps_<mode>): Likewise.
4510 (*avx_loadhps): Likewise.
4511 (*avx_storelps): Likewise.
4512 (*avx_loadlps): Likewise.
4513 (*avx_movss): Likewise.
4514 (*vec_dupv4sf_avx): Likewise.
4515 (*vec_concatv2sf_avx): Likewise.
4516 (*vec_concatv4sf_avx): Likewise.
4517 (*vec_setv4sf_0_avx): Likewise.
4518 (*vec_setv4sf_avx): Likewise.
4519 (*avx_insertps): Likewise.
4520 (avx_vextractf128<mode>): Likewise.
4521 (vec_extract_lo_<mode>): Likewise.
4522 (vec_extract_hi_<mode>): Likewise.
4523 (vec_extract_lo_<mode>): Likewise.
4524 (vec_extract_hi_<mode>): Likewise.
4525 (vec_extract_lo_v16hi): Likewise.
4526 (vec_extract_hi_v16hi): Likewise.
4527 (vec_extract_lo_v32qi): Likewise.
4528 (vec_extract_hi_v32qi): Likewise.
4529 (avx_unpckhpd256): Likewise.
4530 (*avx_unpckhpd): Likewise.
4531 (avx_movddup256): Likewise.
4532 (*avx_movddup): Likewise.
4533 (avx_unpcklpd256): Likewise.
4534 (*avx_unpcklpd): Likewise.
4535 (avx_shufpd256): Likewise.
4536 (avx_shufpd256_1): Likewise.
4537 (*avx_punpckhqdq): Likewise.
4538 (*avx_punpcklqdq): Likewise.
4539 (*avx_shufpd_<mode>): Likewise.
4540 (*avx_storehpd): Likewise.
4541 (*avx_loadhpd): Likewise.
4542 (*avx_loadlpd): Likewise.
4543 (*avx_movsd): Likewise.
4544 (*vec_concatv2df_avx): Likewise.
4545 (*avx_<plusminus_insn><mode>3): Likewise.
4546 (*avx_<plusminus_insn><mode>3): Likewise.
4547 (*avx_mulv8hi3): Likewise.
4548 (*avxv8hi3_highpart): Likewise.
4549 (*avx_umulv8hi3_highpart): Likewise.
4550 (*avx_umulv2siv2di3): Likewise.
4551 (*avx_mulv2siv2di3): Likewise.
4552 (*avx_pmaddwd): Likewise.
4553 (*avx_mulv4si3): Likewise.
4554 (*avx_ashr<mode>3): Likewise.
4555 (*avx_lshr<mode>3): Likewise.
4556 (*avx_ashl<mode>3): Likewise.
4557 (*avx_<code><mode>3): Likewise.
4558 (*avx_eq<mode>3): Likewise.
4559 (*avx_gt<mode>3): Likewise.
4560 (*avx_nand<mode>3): Likewise.
4561 (*avx_nand<mode>3): Likewise.
4562 (*avx_<code><mode>3): Likewise.
4563 (*avx_<code><mode>3): Likewise.
4564 (*avx_packsswb): Likewise.
4565 (*avx_packssdw): Likewise.
4566 (*avx_packuswb): Likewise.
4567 (*avx_punpckhbw): Likewise.
4568 (*avx_punpcklbw): Likewise.
4569 (*avx_punpckhwd): Likewise.
4570 (*avx_punpcklwd): Likewise.
4571 (*avx_punpckhdq): Likewise.
4572 (*avx_punpckldq): Likewise.
4573 (*avx_pinsr<avxmodesuffixs>): Likewise.
4574 (*avx_pinsrq): Likewise.
4575 (*avx_loadld): Likewise.
4576 (*vec_extractv2di_1_rex64_avx): Likewise.
4577 (*vec_extractv2di_1_avx): Likewise.
4578 (*vec_dupv2di_avx): Likewise.
4579 (*vec_concatv2si_avx): Likewise.
4580 (*vec_concatv4si_1_avx): Likewise.
4581 (*vec_concatv2di_avx): Likewise.
4582 (*vec_concatv2di_rex64_avx): Likewise.
4583 (*avx_uavgv16qi3): Likewise.
4584 (*avx_uavgv8hi3): Likewise.
4585 (*avx_psadbw): Likewise.
4586 (avx_movmskp<avxmodesuffixf2c>256): Likewise.
4587 (*avx_phaddwv8hi3): Likewise.
4588 (*avx_phadddv4si3): Likewise.
4589 (*avx_phaddswv8hi3): Likewise.
4590 (*avx_phsubwv8hi3): Likewise.
4591 (*avx_phsubdv4si3): Likewise.
4592 (*avx_phsubswv8hi3): Likewise.
4593 (*avx_pmaddubsw128): Likewise.
4594 (*avx_pmulhrswv8hi3): Likewise.
4595 (*avx_pshufbv16qi3): Likewise.
4596 (*avx_psign<mode>3): Likewise.
4597 (*avx_palignrti): Likewise.
4598 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
4599 (avx_blendvp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
4600 (avx_dpp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
4601 (*avx_mpsadbw): Likewise.
4602 (*avx_packusdw): Likewise.
4603 (*avx_pblendvb): Likewise.
4604 (*avx_pblendw): Likewise.
4605 (avx_vtestp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
4606 (avx_ptest256): Likewise.
4607 (avx_roundp<avxmodesuffixf2c>256): Likewise.
4608 (*avx_rounds<ssemodesuffixf2c>): Likewise.
4609 (*avx_aesenc): Likewise.
4610 (*avx_aesenclast): Likewise.
4611 (*avx_aesdec): Likewise.
4612 (*avx_aesdeclast): Likewise.
4613 (avx_vzeroupper): Likewise.
4614 (avx_vzeroupper_rex64): Likewise.
4615 (avx_vpermil<mode>): Likewise.
4616 (avx_vpermilvar<mode>3): Likewise.
4617 (avx_vpermil2<mode>3): Likewise.
4618 (avx_vperm2f128<mode>3): Likewise.
4619 (avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>): Likewise.
4620 (avx_vbroadcastss256): Likewise.
4621 (avx_vbroadcastf128_p<avxmodesuffixf2c>256): Likewise.
4622 (avx_vinsertf128<mode>): Likewise.
4623 (vec_set_lo_<mode>): Likewise.
4624 (vec_set_hi_<mode>): Likewise.
4625 (vec_set_lo_<mode>): Likewise.
4626 (vec_set_hi_<mode>): Likewise.
4627 (vec_set_lo_v16hi): Likewise.
4628 (vec_set_hi_v16hi): Likewise.
4629 (vec_set_lo_v32qi): Likewise.
4630 (vec_set_hi_v32qi): Likewise.
4631 (avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
4632 (avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>): Likewise.
4633 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
4634 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Likewise.
4635 (vec_init<mode>): Likewise.
4636 (*vec_concat<mode>_avx): Likewise.
4637 (blendbits): Support V8SF and V4DF.
4638 (sse2_movq128): Support AVX.
4639 (<sse>_movnt<mode>): Likewise.
4640 (sse2_movntv2di): Likewise.
4641 (sse_rcpv4sf2): Likewise.
4642 (sse_sqrtv4sf2): Likewise.
4643 (sse_rsqrtv4sf2): Likewise.
4644 (<sse>_comi): Likewise.
4645 (<sse>_ucomi): Likewise.
4646 (sse_cvtss2si): Likewise.
4647 (sse_cvtss2si_2): Likewise.
4648 (sse_cvtss2siq): Likewise.
4649 (sse_cvtss2siq_2): Likewise.
4650 (sse_cvttss2si): Likewise.
4651 (sse_cvttss2siq): Likewise.
4652 (sse2_cvtsd2si): Likewise.
4653 (sse2_cvtsd2si_2): Likewise.
4654 (sse2_cvtsd2siq): Likewise.
4655 (sse2_cvtsd2siq_2): Likewise.
4656 (sse2_cvttsd2si): Likewise.
4657 (sse2_cvttsd2siq): Likewise.
4658 (sse2_cvtdq2pd): Likewise.
4659 (*sse2_cvtpd2dq): Likewise.
4660 (*sse2_cvttpd2dq): Likewise.
4661 (*sse2_cvtpd2ps): Likewise.
4662 (sse2_cvtps2pd): Likewise.
4663 (sse3_movshdup): Likewise.
4664 (sse3_movsldup): Likewise.
4665 (sse_storehps): Likewise.
4666 (*sse4_1_extractps): Likewise.
4667 (sse2_storelpd): Likewise.
4668 (vec_dupv2df_sse3): Likewise.
4669 (*vec_concatv2df_sse3): Likewise.
4670 (*sse4_1_pextrb): Likewise.
4671 (*sse4_1_pextrb_memory): Likewise.
4672 (*sse2_pextrw): Likewise.
4673 (*sse4_1_pextrw_memory): Likewise.
4674 (*sse4_1_pextrd): Likewise.
4675 (*sse4_1_pextrq): Likewise.
4676 (sse2_pshufd_1): Likewise.
4677 (sse2_pshuflw_1): Likewise.
4678 (sse2_pshufhw_1): Likewise.
4679 (*sse2_storeq_rex64): Likewise.
4680 (*vec_dupv4si): Likewise.
4681 (<sse>_movmskp<ssemodesuffixf2c>): Likewise.
4682 (sse2_pmovmskb): Likewise.
4683 (*sse2_maskmovdqu): Likewise.
4684 (*sse2_maskmovdqu_rex64): Likewise.
4685 (sse_ldmxcsr): Likewise.
4686 (sse_stmxcsr): Likewise.
4687 (abs<mode>2): Likewise.
4688 (sse4_1_movntdqa): Likewise.
4689 (sse4_1_phminposuw): Likewise.
4690 (sse4_1_extendv8qiv8hi2): Likewise.
4691 (*sse4_1_extendv8qiv8hi2): Likewise.
4692 (sse4_1_extendv4qiv4si2): Likewise.
4693 (*sse4_1_extendv4qiv4si2): Likewise.
4694 (sse4_1_extendv2qiv2di2): Likewise.
4695 (*sse4_1_extendv2qiv2di2): Likewise.
4696 (sse4_1_extendv4hiv4si2): Likewise.
4697 (*sse4_1_extendv4hiv4si2): Likewise.
4698 (sse4_1_extendv2hiv2di2): Likewise.
4699 (*sse4_1_extendv2hiv2di2): Likewise.
4700 (sse4_1_extendv2siv2di2): Likewise.
4701 (*sse4_1_extendv2siv2di2): Likewise.
4702 (sse4_1_zero_extendv8qiv8hi2): Likewise.
4703 (*sse4_1_zero_extendv8qiv8hi2): Likewise.
4704 (sse4_1_zero_extendv4qiv4si2): Likewise.
4705 (*sse4_1_zero_extendv4qiv4si2): Likewise.
4706 (sse4_1_zero_extendv2qiv2di2): Likewise.
4707 (*sse4_1_zero_extendv2qiv2di2): Likewise.
4708 (sse4_1_zero_extendv4hiv4si2): Likewise.
4709 (*sse4_1_zero_extendv4hiv4si2): Likewise.
4710 (sse4_1_zero_extendv2hiv2di2): Likewise.
4711 (*sse4_1_zero_extendv2hiv2di2): Likewise.
4712 (sse4_1_zero_extendv2siv2di2): Likewise.
4713 (*sse4_1_zero_extendv2siv2di2): Likewise.
4714 (sse4_1_ptest): Likewise.
4715 (sse4_1_roundp<ssemodesuffixf2c>): Likewise.
4716 (sse4_2_pcmpestri): Likewise.
4717 (sse4_2_pcmpestrm): Likewise.
4718 (sse4_2_pcmpistri): Likewise.
4719 (sse4_2_pcmpistrm): Likewise.
4720 (aesimc): Likewise.
4721 (aeskeygenassist): Likewise.
4722
4723 2008-08-28 Uros Bizjak <ubizjak@gmail.com>
4724
4725 * config/i386/predicates.md (vzeroall_operation): New.
4726
4727 * config/i386/sse.md (avx_vzeroall): New.
4728 (*avx_vzeroall): Likewise.
4729
4730 2008-08-28 Paul Brook <paul@codesourcery.com>
4731 Mark Shinwell <shinwell@codesourcery.com>
4732 Richard Earnshaw <richard.earnshaw@arm.com>
4733
4734 * config/arm/arm.c (TARGET_MAX_ANCHOR_OFFSET): New.
4735 (TARGET_MIN_ANCHOR_OFFSET): New.
4736 (arm_override_options): Set correct anchor ranges for Thumb-1
4737 and Thumb-2 if required.
4738 (legitimize_pic_address): Handle case involving a TLS symbol
4739 reference with an addend.
4740 (arm_optimization_options): Enable section anchors at -O1 and
4741 above.
4742 * config/arm/arm.h (OPTIMIZATION_OPTIONS): New.
4743 * config/arm/arm-protos.h (arm_optimization_options): New.
4744
4745 2008-08-28 Nick Clifton <nickc@redhat.com>
4746
4747 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Define.
4748 * config/stormy16/stormy16.md (zero_extendqihi2): Fix length
4749 attribute.
4750
4751 * config/v850/v850.h (IRA_COVER_CLASSES): Define.
4752 * config/v850/v850.md (return): Remove frame size restriction.
4753
4754 * config/mcore/mcore.h (IRA_COVER_CLASSES): Define.
4755
4756 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Define.
4757
4758 * config/fr30/fr30.h (IRA_COVER_CLASSES): Define.
4759
4760 * config/m32r/m32r.h (IRA_COVER_CLASSES): Define.
4761
4762 2008-08-28 Paul Brook <paul@codesourcery.com>
4763
4764 * config/arm/vfp11.md: Update license notice.
4765 * config/arm/cortex-r4.md: Ditto.
4766
4767 2008-08-28 Richard Guenther <rguenther@suse.de>
4768
4769 PR tree-optimization/37207
4770 * tree-ssa-ifcombine.c (recognize_single_bit_test): Fix
4771 tuplification bug.
4772
4773 2008-08-28 Dodji Seketeli <dodji@redhat.com>
4774
4775 PR c++/36741
4776 * tree.c (int_fits_type_p): Don't forget unsigned integers
4777 of type sizetype which higher end word equals -1.
4778
4779 2008-08-28 Ira Rosen <irar@il.ibm.com>
4780
4781 * target.h (struct vectorize): Add new target builtin.
4782 * tree-vectorizer.c (destroy_loop_vec_info): Call
4783 vect_free_slp_instance instead of vect_free_slp_node.
4784 * tree-vectorizer.h (enum slp_load_perm_type): New.
4785 (struct _slp_instance): Add new fields.
4786 (SLP_INSTANCE_LOAD_PERMUTATION): New.
4787 (SLP_INSTANCE_LOADS): New.
4788 (vect_free_slp_tree): Remove.
4789 (vect_free_slp_instance): Declare.
4790 (SLP_TREE_LOADS_PERM_TYPE, TARG_VEC_PERMUTE_COST): New.
4791 (vectorizable_load): Add argument.
4792 (vect_transform_slp_perm_load): New.
4793 * tree-vect-analyze.c (vect_analyze_operations): Add an argument to
4794 vectorizable_load.
4795 (vect_get_place_in_interleaving_chain): New function.
4796 (vect_free_slp_tree): Make static.
4797 (vect_free_slp_instance): New function.
4798 (vect_build_slp_tree): Add new arguments. Allow load permutations and
4799 collect the load location in the interleaving chain.
4800 (vect_supported_slp_permutation_p): New function.
4801 (vect_supported_load_permutation_p): Likewise.
4802 (vect_analyze_slp_instance): In case of loads permutation, call
4803 vect_supported_load_permutation_p to check that the permutation is
4804 supported.
4805 * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM): New.
4806 * tree-vect-transform.c (vect_transform_stmt): Add new argument.
4807 (vect_create_mask_and_perm): New function.
4808 (vect_get_mask_element, vect_transform_slp_perm_load): Likewise.
4809 (vectorizable_load): Add an argument. Don't keep the created vectors
4810 statements in the node if permutation is required. Call
4811 vect_transform_slp_perm_load to generate the permutation.
4812 (vect_transform_stmt): Add new argument. Call vectorizable_load with
4813 additional argument.
4814 (vect_schedule_slp_instance): In case of loads permutation, allocate
4815 vectorized statements structure for all the related SLP nodes. Call
4816 vect_transform_stmt with addditional argument.
4817 (vect_transform_loop): Call vect_transform_stmt with correct arguments.
4818 * config/spu/spu.c (spu_builtin_vec_perm): New.
4819 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
4820 * config/spu/spu.h (TARG_VEC_PERMUTE_COS): Define.
4821 * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): New.
4822 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
4823
4824 2008-08-28 Chris Fairles <chris.fairles@gmail.com>
4825
4826 * gthr-posix.h (__gthread_create, __gthread_join, __gthread_detach,
4827 __gthread_mutex_timed_lock, __gthread_recursive_mutex_timed_lock,
4828 __gthread_cond_signal, __gthread_cond_timedwait,
4829 __gthread_cond_timedwait_recursive): New functions.
4830 * gthr-posix.c (pthread_mutex_timedlock, pthread_cond_timedwait):
4831 Likewise.
4832 * gthr.h: Comment on defining __GTHREADS_CXX0X macro in conforming
4833 thread interfaces.
4834
4835 2008-08-28 Richard Guenther <rguenther@suse.de>
4836
4837 PR middle-end/37005
4838 * fold-const.c (maybe_canonicalize_comparison_1): Require
4839 undefined overflow only for canonicalizing A +- CST cmp CST.
4840 Make sure to not generate new constants that are not inside
4841 their TYPE_MIN/MAX_VALUE range.
4842 (maybe_canonicalize_comparison): Remove undefined overflow
4843 checking from here.
4844 (fold_binary): Remove now duplicate folding.
4845
4846 2008-08-27 Paolo Carlini <paolo.carlini@oracle.com>
4847
4848 * c-typeck.c (convert_for_assignment): Adjust WARN_FOR_ASSIGNMENT
4849 use not updated in the last change.
4850
4851 2008-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
4852
4853 * config/sh/sh.h (REG_CLASS_CONTENTS): Drop fr32 from FPUL_REGS.
4854 (IRA_COVER_CLASSES): Add FPUL_REGS.
4855
4856 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4857
4858 PR 37217
4859 * c-common.c (conversion_warning): Check for null operands.
4860
4861 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4862
4863 PR c/31673
4864 * c-decl.c (check_for_loop_decls): Improve error message. Give
4865 hint.
4866
4867 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4868
4869 PR c/37186
4870 * c-typeck.c (WARN_FOR_ASSIGNMENT): Add OPT parameter.
4871 (convert_for_assignment): Pass corrent OPT_W* parameter to
4872 WARN_FOR_ASSIGNMENT.
4873
4874 2008-08-27 Paolo Carlini <paolo.carlini@oracle.com>
4875
4876 PR c++/35321
4877 * c-common.c (fold_offsetof_1): Handle TARGET_EXPR like CALL_EXPR.
4878
4879 2008-08-27 Paul Brook <paul@codesourcery.com>
4880
4881 * config.gcc: Loosen checks for arm uclinux eabi targets.
4882
4883 2008-08-27 Paul Brook <paul@codesourcery.com>
4884
4885 * config/arm/t-arm-coff (LIB1ASMFUNCS): Add missing undescrore on
4886 _clzsi2.
4887 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
4888
4889 2008-08-26 Douglas Gregor <doug.gregor@gmail.com>
4890
4891 * c-common.c (do_switch_warnings): Look through the CONST_DECLs in
4892 the enumerators of an ENUMERAL_TYPE.
4893 * dbxout.c (dbxout_type): Ditto.
4894
4895 2008-08-26 Andrew Pinski <andrew_pinski@playstation.sony.com>
4896
4897 PR rtl-opt/37219
4898 * fwprop.c (fwprop): Check that the loop_father is the outer loop.
4899 (fwprop_addr): Check that the loop_father is not the outer loop.
4900
4901 2008-08-26 Paul Brook <paul@codesourcery.com>
4902
4903 * config/arm/vfp.md: Document fmul{s,d} and fmac{s,d} types.
4904 Remove documentation entry for fmul type.
4905 Use fmuls to annotate single-precision multiplication patterns,
4906 fmuld to annotate double-precision multiplication patterns,
4907 fmacs to annotate single-precision multiply-accumulate patterns
4908 and fmacd to annotate double-precision multiply-accumulate patterns.
4909 * config/arm/vfp11.md: Update reservations accordingly.
4910 * config/arm/arm.md: Note that certain values of the "type"
4911 attribute are documented in vfp.md.
4912 * config/arm/arm1020e.md: Remove out of date duplicate comment.
4913 (v10_cvt): Use new fmul types.
4914
4915 2008-08-26 Paul Brook <paul@codesourcery.com>
4916
4917 * config/arm/vfp.md: Move pipeline description for VFP11 to...
4918 * config/arm/vfp11.md: ...here. New.
4919 * config/arm/arm.md: Include vfp11.md.
4920
4921 2008-08-26 Hans-Peter Nilsson <hp@axis.com>
4922
4923 * opts.c (decode_options) [!IRA_COVER_CLASSES]: Add missing
4924 parameter to inform call.
4925
4926 2008-08-26 Jeff Law <law@redhat.com>
4927
4928 * mn10300.md (movqi, movhi): Split i->d*a case into two cases to
4929 avoid the possibility of getting DATA_OR_ADDRESS_REGS as the
4930 preferred class when copying a constant into a partial word register.
4931
4932 2008-08-26 Ben Elliston <bje@au.ibm.com>
4933
4934 * rtlanal.c: Fix uses of "it's" with "its" where appropriate.
4935 * cp/typeck.c: Likewise.
4936 * cp/tree.c: Likewise.
4937 * gimple-low.c: Likewise.
4938 * jump.c: Likewise.
4939
4940 2008-08-26 Vladimir Makarov <vmakarov@redhat.com>
4941
4942 * ira-build.c, ira-color.c, ira-costs.c, ira.h, ira-lives.c,
4943 ira.c, ira-conflicts.c, ira-emit.c, ira-int.h: New files.
4944
4945 * doc/passes.texi: Describe IRA.
4946
4947 * doc/tm.texi (IRA_COVER_CLASSES,
4948 IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Describe the new macros.
4949
4950 * doc/invoke.texi (ira-max-loops-num): Describe the new parameter.
4951 (-fira, -fira-algorithm, -fira-coalesce, -fno-ira-move-spills,
4952 -fira-propagate-cost, -fno-ira-share-save-slots,
4953 -fno-ira-share-spill-slots, -fira-verbose): Describe new options.
4954
4955 * flags.h (ira_algorithm): New enumeration.
4956 (flag_ira_algorithm, flag_ira_verbose): New external variable
4957 declarations.
4958
4959 * postreload.c (gate_handle_postreload): Don't do post reload
4960 optimizations unless the reload is completed.
4961
4962 * reload.c (push_reload, find_dummy_reload): Use DF_LR_OUT for
4963 IRA.
4964
4965 * tree-pass.h (pass_ira): New external variable declaration.
4966
4967 * reload.h: Add 2008 to the Copyright.
4968
4969 * cfgloopanal.c: Include params.h.
4970 (estimate_reg_pressure_cost): Decrease cost for IRA optimization
4971 mode.
4972
4973 * params.h (IRA_MAX_LOOPS_NUM): New macro.
4974
4975 * toplev.c (ira.h): New include.
4976 (flag_ira_algorithm, flag_ira_verbose): New external variables.
4977 (backend_init_target): Call ira_init.
4978 (backend_init): Call ira_init_once.
4979 (finalize): Call finish_ira_once.
4980
4981 * toplev.h (flag_ira, flag_ira_coalesce, flag_ira_move_spills,
4982 flag_ira_share_save_slots, flag_ira_share_spill_slots): New
4983 external variables.
4984
4985 * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
4986 may_move_out_cost): New external variable declarations.
4987 (move_table): New typedef.
4988
4989 * caller-save.c: Include headers output.h and ira.h.
4990 (no_caller_save_reg_set): New global variable.
4991 (save_slots_num, save_slots): New variables.
4992 (reg_save_code, reg_restore_code, add_stored_regs): Add
4993 prototypes.
4994 (init_caller_save): Set up no_caller_save_reg_set.
4995 (init_save_areas): Reset save_slots_num.
4996 (saved_hard_reg): New structure.
4997 (hard_reg_map, saved_regs_num, all_saved_regs): New variables.
4998 (initiate_saved_hard_regs, new_saved_hard_reg,
4999 finish_saved_hard_regs, saved_hard_reg_compare_func): New
5000 functions.
5001 (setup_save_areas): Add code for sharing stack slots.
5002 (all_blocks): New variable.
5003 (save_call_clobbered_regs): Process pseudo-register too.
5004 (mark_set_regs): Process pseudo-register too.
5005 (insert_one_insn): Put the insn after bb note in a empty basic
5006 block. Add insn check.
5007
5008 * global.c (eliminable_regset): Make it external.
5009 (mark_elimination): Use DF_LR_IN for IRA.
5010 (pseudo_for_reload_consideration_p): New.
5011 (build_insn_chain): Make it external. Don't ignore spilled
5012 pseudos for IRA. Use pseudo_for_reload_consideration_p.
5013 (gate_handle_global_alloc): New function.
5014 (pass_global_alloc): Add the gate function.
5015
5016 * opts.c (decode_options): Set up flag_ira. Print the warning for
5017 -fira.
5018 (common_handle_option): Process -fira-algorithm and -fira-verbose.
5019
5020 * timevar.def (TV_IRA, TV_RELOAD): New passes.
5021
5022 * regmove.c (regmove_optimize): Don't do replacement of output for
5023 IRA.
5024
5025 * hard-reg-set.h (no_caller_save_reg_set, reg_class_subclasses):
5026 New external variable declarations.
5027
5028 * local-alloc.c (update_equiv_regs): Make it external. Return
5029 true if jump label rebuilding should be done. Rescan new_insn for
5030 notes.
5031 (gate_handle_local_alloc): New function.
5032 (pass_local_alloc): Add the gate function.
5033
5034 * alias.c (value_addr_p, stack_addr_p): New functions.
5035 (nonoverlapping_memrefs_p): Use them for IRA.
5036
5037 * common.opt (fira, fira-algorithm, fira-coalesce,
5038 fira-move-spills, fira-share-save-slots, fira-share-spill-slots,
5039 fira-verbose): New options.
5040
5041 * regclass.c (reg_class_subclasses, contains_reg_of_mode,
5042 move_cost, may_move_in_cost, may_move_out_cost): Make the
5043 variables external.
5044 (move_table): Remove typedef.
5045 (init_move_cost): Make it external.
5046 (allocate_reg_info, resize_reg_info, setup_reg_classes): New
5047 functions.
5048
5049 * rtl.h (init_move_cost, allocate_reg_info, resize_reg_info,
5050 setup_reg_classes): New function prototypes.
5051 (eliminable_regset): New external variable declaration.
5052 (build_insn_chain, update_equiv_regs): New function prototypes.
5053
5054 * Makefile.in (IRA_INT_H): New definition.
5055 (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
5056 ira-conflicts.o, ira-color.o, ira-emit.o, and ira-lives.o.
5057 (reload1.o, toplev.o): Add dependence on ira.h.
5058 (cfgloopanal.o): Add PARAMS_H.
5059 (caller-save.o): Add dependence on output.h and ira.h.
5060 (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
5061 ira-emit.o, ira-lives.o): New entries.
5062
5063 * passes.c (pass_ira): New pass.
5064
5065 * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
5066
5067 * reload1.c (ira.h): Include the header.
5068 (changed_allocation_pseudos): New bitmap.
5069 (init_reload): Initiate the bitmap.
5070 (compute_use_by_pseudos): Permits spilled registers in FROM.
5071 (temp_pseudo_reg_arr): New variable.
5072 (reload): Allocate and free temp_pseudo_reg_arr. Sort pseudos for
5073 IRA. Call alter_reg with the additional parameter. Don't clear
5074 spilled_pseudos for IRA. Restore original insn chain for IRA.
5075 Clear changed_allocation_pseudos at the end of reload.
5076 (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
5077 (hard_regno_to_pseudo_regno): New variable.
5078 (count_pseudo): Check spilled pseudos. Set up
5079 hard_regno_to_pseudo_regno.
5080 (count_spilled_pseudo): Check spilled pseudos. Update
5081 hard_regno_to_pseudo_regno.
5082 (find_reg): Use better_spill_reload_regno_p. Check
5083 hard_regno_to_pseudo_regno.
5084 (alter_reg): Set up spilled_pseudos. Add a new parameter. Add
5085 code for IRA.
5086 (eliminate_regs_1): Use additional parameter for alter_reg.
5087 (finish_spills): Set up pseudo_previous_regs only for spilled
5088 pseudos. Call reassign_pseudos once for all spilled pseudos, pass
5089 more arguments. Don't clear live_throughout and dead_or_set for
5090 spilled pseudos. Use additional parameter for alter_reg. Call
5091 mark_allocation_change. Set up changed_allocation_pseudos.
5092 Remove sanity check.
5093 (emit_input_reload_insns, delete_output_reload): Use additional
5094 parameter for alter_reg. Call mark_allocation_change.
5095 (substitute, gen_reload_chain_without_interm_reg_p): New
5096 functions.
5097 (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
5098
5099 * testsuite/gcc.dg/20080410-1.c: New file.
5100
5101 * config/s390/s390.h (IRA_COVER_CLASSES,
5102 IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Define.
5103
5104 * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
5105
5106 * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
5107
5108 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
5109
5110 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
5111
5112 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
5113
5114 * config/alpha/alpha.h (IRA_COVER_CLASSES): Ditto.
5115
5116 2008-08-24 Jeff Law <law@redhat.com>
5117 * ira.c (setup_reg_class_intersect_union): Prefer smallest class
5118 when ignoring unavailable registers.
5119
5120 2008-08-24 Jeff Law <law@redhat.com>
5121 * ira-color.c (coalesced_pseudo_reg_slot_compare): Check
5122 FRAME_GROWS_DOWNWARD and STACK_GROWS_DOWNWARD.
5123 * ira.c (setup_eliminable_regset): Check stack_realign_needed.
5124 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): New macro.
5125
5126 2008-06-03 Steve Chamberlain <steve.chamberlain@gmail.com>
5127 * ira-build.c (allocno_range_compare_func): Stabilize sort.
5128
5129 2008-05-29 Andy Hutchinson <hutchinsonandy@aim.com>
5130 * config/avr/avr.h (IRA_COVER_CLASSES): New macro.
5131 * reload1.c (find_reg): Process registers in register allocation order.
5132
5133 2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
5134 * toplev.c (backend_init_target): Move ira_init call from
5135 here...
5136 (lang_dependent_init_target): ...to here.
5137
5138 2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
5139 * ira.c (setup_class_subset_and_memory_move_costs): Don't
5140 calculate memory move costs for NO_REGS.
5141
5142 2008-05-05 Kaz Kojima <kkojima@gcc.gnu.org>
5143 * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
5144 STACK_REGS is defined.
5145
5146 2008-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
5147 * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
5148
5149 2008-04-04 Bernd Schmidt <bernd.schmidt@analog.com>
5150 * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
5151
5152 2008-04-04 Kaz Kojima <kkojima@gcc.gnu.org>
5153 * config/sh/sh.h (IRA_COVER_CLASSES): Define.
5154 * config/sh/sh.md (movsicc_true+3): Check if emit returns a
5155 barrier.
5156
5157 2008-08-26 Victor Kaplansky <victork@il.ibm.com>
5158 Dorit Nuzman <dorit@il.ibm.com>
5159
5160 * gcc/config/spu/spu.md (vec_extract_evenv4si,
5161 vec_extract_evenv4sf, vec_extract_evenv8hi,
5162 vec_extract_evenv16qi, vec_extract_oddv4si,
5163 vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
5164 vec_interleave_highv4sf, vec_interleave_lowv4sf,
5165 vec_interleave_highv4si, vec_interleave_lowv4si,
5166 vec_interleave_highv8hi, vec_interleave_lowv8hi,
5167 vec_interleave_highv16qi, vec_interleave_lowv16qi,
5168 vec_pack_trunc_v8hi, vec_pack_trunc_v4si): Implement.S
5169
5170 2008-08-25 Janis Johnson <janis187@us.ibm.com>
5171
5172 PR target/36756
5173 * config/rs6000/rs6000.c (optimization_options): Don't default to
5174 section anchors without toplevel reorder.
5175
5176 2008-08-25 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5177
5178 * config/spu/spu_mfcio.h (mfc_begin_critical_section): New function.
5179 (mfc_end_critical_section): Likewise.
5180
5181 2008-08-25 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5182
5183 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Propagate
5184 all type qualifiers from element type to vector type.
5185
5186 2008-08-25 David Daney <ddaney@avtrex.com>
5187
5188 * config/mips/mips.md (immediate_insn): Move up in file, fix
5189 comment typo, reformat.
5190 (fetchop_bit, atomic_hiqi_op memory_barrier,
5191 sync_compare_and_swap<mode>, compare_and_swap_12, sync_add<mode>,
5192 sync_<optab><mode>, sync_<optab>_12, sync_old_<optab><mode>,
5193 sync_old_<optab>_12, sync_new_<optab><mode>, sync_new_<optab>_12,
5194 sync_nand<mode>, sync_nand_12, sync_old_nand<mode>,
5195 sync_old_nand_12, sync_new_nand<mode>, sync_new_nand_12,
5196 sync_sub<mode>, sync_old_add<mode>, sync_old_sub<mode>,
5197 sync_new_add<mode>, sync_new_sub<mode>, sync_<optab><mode>,
5198 sync_old_<optab><mode>, sync_new_<optab><mode>, sync_nand<mode>,
5199 sync_old_nand<mode>, sync_new_nand<mode>,
5200 sync_lock_test_and_set<mode>, sync_lock_test_and_set<mode>,
5201 test_and_set_12): Moved to sync.md.
5202 (sync.md): Include.
5203 * config/mips/sync.md: New file.
5204
5205 2008-08-25 Richard Henderson <rth@redhat.com>
5206
5207 * dwarf2out.c (def_cfa_1): Don't scale by DWARF_CIE_DATA_ALIGNMENT.
5208 (regsave): Likewise.
5209 (lookup_cfa_1): Don't rescale by DWARF_CIE_DATA_ALIGNMENT.
5210 (output_cfi_directive): Likewise.
5211 (div_data_align): New.
5212 (output_cfi): Use it.
5213
5214 2008-08-24 Adam Nemet <anemet@caviumnetworks.com>
5215
5216 * config.gcc (mips64*-*-linux*): Handle mips64octeon*-*-linux*.
5217 * config/mips/mips.h (enum processor_type): Add PROCESSOR_OCTEON.
5218 (TARGET_OCTEON): New macro.
5219 (TARGET_CPU_CPP_BUILTINS): Define __OCTEON__ for Octeon.
5220 (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC): Handle -march=octeon.
5221 (ISA_HAS_POP): New macro.
5222 * config/mips/driver-native.c (host_detect_local_cpu): Handle
5223 Octeon.
5224 * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
5225 Handle Octeon.
5226 * config/mips/mips.md (cpu): Add octeon.
5227 (type): Add pop attribute value.
5228 (popcount<mode>2): New pattern.
5229 * doc/invoke.texi (-march=@var{arch}): Add octeon.
5230
5231 2008-08-24 Jan Hubicka <jh@suse.cz>
5232
5233 * doc/invoke.texi (-fipa-cp-clone): New option.
5234 (-fipa-cp): Update docs.
5235 (--param ipcp-unit-growth):New.
5236 * ipa-cp.c: Include fibheap.h, params.h
5237 (ipcp_initialize_node_lattices): When not cloning, all externally
5238 visible functions are bottom.
5239 (ipcp_need_redirect_p): Accept clones.
5240 (ipcp_insert_stage): Use cost driven heuristics.
5241 (max_count, dead_nodes): New static vars.
5242 (ipcp_need_original_clone_p, ipcp_estimate_cloning_cost,
5243 ipcp_const_param_count): New functions.
5244 * common.opt (ipa-cp-clone): New command line option.
5245 * params.def (ipcp-unit-growth): New.
5246
5247 2008-08-24 Jan Hubicka <jh@suse.cz>
5248
5249 * tree-inline.c (tree_function_versioning): Look harder
5250 for referenced vars.
5251
5252 2008-08-24 Razya Ladelsky <razya@il.ibm.com>
5253
5254 PR tree-optimization/37185
5255 * matrix-reorg.c (transform_access_sites): Update changed stmt.
5256
5257 2008-08-23 Jan Hubicka <jh@suse.cz>
5258
5259 * ipa-cp.c (ipcp_analyze_node): New function.
5260 (ipcp_update_cloned_node): Use it.
5261 (ipcp_init_stage): Likewise.
5262 * ipa-inline.c (function_insertion_hook_holder): New static var.
5263 (analyze_function): Break out from ....
5264 (inline_generate_summary): Here; register insertion hook.
5265 (cgraph_decide_inlining): Remove hook.
5266 (add_new_function): New function.
5267
5268 2008-08-23 Jan Hubicka <jh@suse.cz>
5269
5270 * opts.c (decode_options): Revert accidental change enabling ipa-cp.
5271
5272 2008-08-23 Jan Hubicka <jh@suse.cz>
5273
5274 * ipa-cp.c (constant_val_insert): Remove.
5275 (ipcp_propagate_one_const): Remove.
5276 (ipcp_create_replace_map): Always insert replacements to the map.
5277 (ipcp_insert_stage): Do not try to insert statements by hand.
5278 * tree-inline.c (insert_init_stmt): Break out from ...
5279 (setup_one_parameter): ... here; allow NULL BB pointer.
5280 (tree_function_versioning): Use setup_one_parameter to process
5281 replacement map.
5282
5283 2008-08-23 Jan Hubicka <jh@suse.cz>
5284
5285 * tree.c (decl_address_ip_invariant_p): New function.
5286 * tree.h (decl_address_ip_invariant_p): Declare.
5287 * gimple.c (strip_invariant_refs): Break out from ...
5288 (is_gimple_invariant_address): ... here
5289 (is_gimple_ip_invariant_address): New function.
5290 (is_gimple_ip_invariant): New function.
5291 * gimple.h (is_gimple_ip_invariant_address, is_gimple_ip_invariant):
5292 Declare.
5293
5294 * ipa-cp.c (ipcp_lat_is_const): Remove handling of IPA_CONST_VALUE_REF.
5295 (ipcp_lat_is_insertable): All constants are insertable.
5296 (ipcp_lattice_from_jfunc, ipcp_print_all_lattices): Remove handling of
5297 IPA_CONST_VALUE_REF.
5298 (ipcp_initialize_node_lattices): Propagate all types of operands.
5299 (build_const_val): Do not handle IPA_CONST_VALUE_REF.
5300 (ipcp_create_replace_map): Reformat.
5301 (ipcp_need_redirect_p): Simplify.
5302 (ipcp_insert_stage): Check that argument is used before clonning.
5303 * ipa-prop.c (ipa_print_node_jump_functions): Do not handle
5304 IPA_CONST_REF.
5305 (compute_scalar_jump_functions): Simplify using is_gimple_ip_invariat.
5306 (determine_cst_member_ptr): Keep wrapping ADDR_EXPR of members.
5307 (update_call_notes_after_inlining): Expect ADDR_EXPR in operand.
5308 * ipa-prop.h (jump_func_type): Remove IPA_CONST_REF.
5309 (jump_func_type): Remove IPA_CONST_VALUE_REF.
5310 * tree-inline.c (tree_function_versioning): Add variables referenced
5311 by replacing trees.
5312
5313 2008-08-23 Jan Hubicka <jh@suse.cz>
5314
5315 PR target/37094
5316 * i386.c (standard_80387_constant_p): Use optimize_size.
5317
5318 2008-08-23 Ira Rosen <irar@il.ibm.com>
5319
5320 PR tree-optimization/37161
5321 * tree-vectorizer.h (vect_get_smallest_scalar_type): Declare.
5322 * tree-vect-analyze.c (vect_get_smallest_scalar_type): New function.
5323 (vect_determine_vectorization_factor): Move the scalar type
5324 retrieval to vect_get_smallest_scalar_type.
5325 (vect_build_slp_tree): Call vect_get_smallest_scalar_type to get
5326 scalar type. Remove redundant computation.
5327 * tree-vect-transform.c (vect_get_constant_vectors): Add argument.
5328 (vect_get_slp_defs): Take the type of RHS into account if
5329 necessary by calling vect_get_smallest_scalar_type. Call
5330 vect_get_constant_vectors with additional argument.
5331
5332 2008-08-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5333
5334 PR 35648
5335 * doc/invoke.texi (Wwrite-strings): Clarify description.
5336
5337 2008-08-23 Ira Rosen <irar@il.ibm.com>
5338
5339 PR tree-optimization/37174
5340 * tree-vect-analyze.c (vect_get_and_check_slp_defs): Check that the
5341 def stmt is a part of the loop before accessing its stmt_vec_info.
5342
5343 2008-08-22 Anatoly Sokolov <aesok@post.ru>
5344
5345 PR target/11259
5346 * config/avr/avr.md (UNSPEC_SWAP): New constants.
5347 (*swap): New insn pattern.
5348 (*ashlqi3): Rename from ashlqi3 insn pattern.
5349 (ashlqi3): New expanders.
5350 (*lshrqi3): Rename from lshrqi3 insn pattern.
5351 (lshrqi3): New expanders.
5352 (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, lshrqi3_const4,
5353 lshrqi3_const5, lshrqi3_const6): New splitters.
5354 (andi, ashlqi3_l_const4, ashlqi3_l_const5, ashlqi3_l_const6,
5355 lshrqi3_l_const4, lshrqi3_l_const5, lshrqi3_l_const6): Define
5356 peephole2 patterns.
5357
5358 2008-08-22 Richard Guenther <rguenther@suse.de>
5359
5360 PR tree-optimization/37078
5361 * tree-vrp.c (extract_range_from_unary_expr): Avoid generating
5362 [+INF, +INF] ranges.
5363
5364 2008-08-22 Richard Guenther <rguenther@suse.de>
5365
5366 PR tree-optimization/37143
5367 * tree-vect-transform.c (vect_create_cond_for_align_checks): Build
5368 a conversion statement instead of a copy.
5369
5370 2008-08-22 Uros Bizjak <ubizjak@gmail.com>
5371
5372 PR target/37184
5373 * config/i386/i386.c (ix86_match_ccmode): Handle CCAmode,
5374 CCCmode, CCOmode and CCSmode destination modes.
5375
5376 PR target/37191
5377 * config/i386/mmx.md (*vec_extractv2sf_0): Avoid combining registers
5378 from different units in a single alternative.
5379 (*vec_extractv2sf_1): Ditto.
5380 (*vec_extractv2si_0): Ditto.
5381 (*vec_extractv2si_1): Ditto.
5382 * config/i386/sse.md (sse2_storehpd): Ditto.
5383 (sse2_storelpd): Ditto.
5384 (sse2_loadhpd): Ditto.
5385 (sse2_loadlpd): Ditto.
5386
5387 PR target/37197
5388 * config/i386/i386.md (clzsi2_abm): Fix operand 1 constraints.
5389 (popcountsi2): Ditto.
5390 (clzdi2_abm): Ditto.
5391 (popcountdi2): Ditto.
5392 (clzhi2_abm): Ditto.
5393 (popcounthi2): Ditto.
5394
5395 2008-08-22 Richard Guenther <rguenther@suse.de>
5396
5397 PR middle-end/36548
5398 PR middle-end/37125
5399 * fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only
5400 if the multiplication does not overflow.
5401
5402 2008-08-21 Nathan Sidwell <nathan@codesourcery.com>
5403
5404 * c-ppoutput.c (init_pp_output): Initialize src_line to 1.
5405
5406 2008-08-21 Richard Henderson <rth@redhat.com>
5407
5408 * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove
5409 spurrious comma from test.
5410 * configure: Rebuild.
5411
5412 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5413
5414 PR 30457
5415 * builtins.c (fold_builtin_next_arg): Add warning about undefined
5416 behaviour.
5417
5418 2008-08-21 Aldy Hernandez <aldyh@redhat.com>
5419
5420 * c-tree.h (grokfield): New argument.
5421 * c-decl.c (grokfield): Handle new location argument.
5422 * c-parser.c (c_parser_struct_declaration): Pass location to grokfield.
5423
5424 2008-08-21 Richard Guenther <rguenther@suse.de>
5425
5426 * tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants.
5427
5428 2008-08-21 Jan Hubicka <jh@suse.cz>
5429
5430 * cgraph.c (first_cgraph_function_insertion_hook): New variable.
5431 (cgraph_add_function_insertion_hook,
5432 cgraph_remove_function_insertion_hook,
5433 cgraph_call_function_insertion_hooks): New functions.
5434 * cgraph.h (cgraph_add_function_insertion_hook,
5435 cgraph_remove_function_insertion_hook,
5436 cgraph_call_function_insertion_hooks): Declare.
5437 * ipa-reference.c (function_insertion_hook_holder): New variable.
5438 (check_operand, look_for_address_of): When checking late, do not care
5439 about module bitmaps.
5440 (add_new_function): New function.
5441 (generate_summary): Register hooks; zero module bitmaps.
5442 (propagate): Unregister hooks.
5443 * ipa-pure-const.c (function_insertion_hook_holder): New variable.
5444 (add_new_function): New function.
5445 (generate_summary): Register hook.
5446 (propagate): Remove hook.
5447
5448 * ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
5449
5450 * tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
5451 * ipa-cp.c (ipcp_update_cloned_node): New function.
5452 (build_const_val): Handle functions correctly; bring type logic
5453 into sync with tree-inline.c
5454 (ipcp_init_stage): Take care of computing stuff needed by
5455 indirect inlining; update clones.
5456 (ipcp_generate_summary): Break out of ipcp_driver.
5457 (ipcp_driver): Do only execution and transformation.
5458 (pass_ipa_cp): Make IPA_PASS.
5459 * tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
5460 offset to address.
5461 * ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
5462 ipcp, some info is already available.
5463 * ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
5464 * tree-inline.c (remap_ssa_name): Unshare expression.
5465
5466 2008-08-21 Richard Guenther <rguenther@suse.de>
5467
5468 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
5469 a PHI ask VN if it is already available.
5470 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
5471 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
5472
5473 2008-08-21 Richard Guenther <rguenther@suse.de>
5474
5475 PR middle-end/36817
5476 * tree-chrec.c (chrec_apply): Always call chrec_fold_plus which
5477 makes sure to produce a result of the correct type.
5478
5479 2008-08-21 Jan Hubicka <jh@suse.cz>
5480 Backport from LTO branch:
5481
5482 2008-05-05 Kenneth Zadeck <zadeck@naturalbridge.com>
5483 Jan Hubicka <jh@suse.cz>
5484
5485 * ipa-pure-const.c
5486 (init_state, finish_state, set_function_state, generate_summary):
5487 New functions.
5488 (scan_stmt): Renamed from scan_function. Changed to keep state in
5489 local static vars rather than cgraph aux field.
5490 (propagate): Renamed from static_execute. Changed to keep state in
5491 local static vars rather than cgraph aux field.
5492 (pass_ipa_pure_const): Changed from SIMPLE_IPA_PASS to IPA_PASS.
5493 * tree-pass.h (pass_ipa_pure_const): Turn into IPA_PASS.
5494
5495 2008-07-15 Kenneth Zadeck <zadeck@naturalbridge.com>
5496
5497 * tree-pass.h (pass_ipa_reference): Make into ipa_opt_pass.
5498 * ipa-reference.c (init_function_info, generate_summary,
5499 propagate): New functions.
5500 (analyze_function): Call init_function_info.
5501 (static_execute): Stripped into generate_summary and propagate.
5502 (pass_ipa_reference): Made into ipa_opt_pass.
5503
5504 2008-08-21 Richard Guenther <rguenther@suse.de>
5505
5506 PR tree-optimization/37181
5507 * tree-vrp.c (extract_range_from_binary_expr): Check for NULL
5508 folding result.
5509 (extract_range_from_unary_expr): Likewise.
5510
5511 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5512
5513 * diagnostic.c (pedwarn_at): Rename as pedwarn.
5514 (pedwarn): Delete.
5515 * toplev.h (pedwarn_at): Likewise.
5516 * builtins.c: Update all calls to pedwarn.
5517 * c-lex.c: Likewise.
5518 * toplev.c: Likewise.
5519 * c-tree.h: Likewise.
5520 * c-decl.c: Likewise.
5521 * c-errors.c: Likewise.
5522 * c-typeck.c: Likewise.
5523 * c-common.c: Likewise.
5524 * c-parser.c: Likewise.
5525
5526 2008-08-20 Joseph Myers <joseph@codesourcery.com>
5527
5528 PR target/31070
5529 * config/sparc/sparc.c (function_arg_slotno): Handle structure
5530 with MODE_VECTOR_INT mode.
5531
5532 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5533
5534 PR middle-end/179
5535 * tree-ssa.c (warn_uninit): Do not warn for variables that can be
5536 initialized outside the current module.
5537 (warn_uninitialized_var): Ignore left-hand side when walking the
5538 trees. Ignore address expressions. Examine VUSE operands in gimple
5539 statements with a variable declaration on the right-hand side.
5540
5541 2008-08-20 Richard Sandiford <rdsandiford@googlemail.com>
5542
5543 PR bootstrap/37155
5544 * rtlanal.c (subreg_offset_representable_p): Revert last change.
5545
5546 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5547
5548 PR 35701
5549 * c-common.c (conversion_warning): Do not warn if applying bit-and
5550 operator to unsigned constant that fits in the target type.
5551
5552 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5553
5554 PR c++/35602
5555 * c-common.c (conversion_warning): Do not warn for artificial
5556 expressions.
5557
5558 2008-08-20 Richard Guenther <rguenther@suse.de>
5559
5560 * tree-vrp.c (op_with_constant_singleton_value_range): New function.
5561 (extract_range_from_binary_expr): Fall back to constant propagation.
5562 (extract_range_from_unary_expr): Likewise.
5563
5564 2008-08-20 Richard Guenther <rguenther@suse.de>
5565
5566 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Do not mess
5567 with TREE_THIS_VOLATILE on shared nodes.
5568 (fold_stmt_r): Likewise.
5569
5570 2008-08-20 Jakub Jelinek <jakub@redhat.com>
5571
5572 PR c/37171
5573 * c-parser.c (c_parser_attributes): For keywords use canonical
5574 spelling for attr_name.
5575
5576 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5577
5578 * value-prof.c (check_counter): Revert wrong call to error.
5579
5580 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5581
5582 * profile.c: Update calls to inform.
5583 * value-prof.c: Update calls to inform.
5584
5585 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5586
5587 * diagnostic.c (inform): Add an explicit location_t parameter.
5588 * toplev.h (inform): Update declaration.
5589 * builtins.c: Update all calls to inform.
5590 * c-common.c: Likewise.
5591 * c-decl.c: Likewise.
5592 * c-opts.c: Likewise.
5593 * c-pch.c: Likewise.
5594 * c-pragma.c: Likewise.
5595 * c-typeck.c: Likewise.
5596 * coverage.c: Likewise.
5597 * opts.c: Likewise.
5598 * toplev.c: Likewise.
5599 * tree-cfg.c: Likewise.
5600 * tree-ssa.c: Likewise.
5601
5602 2008-08-20 H.J. Lu <hongjiu.lu@intel.com>
5603
5604 PR target/37169
5605 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): In
5606 V2DI mode, for SSE4.1, use movq instead of vector set if the
5607 second element is zero and inter-unit moves are OK.
5608
5609 2008-08-20 Richard Guenther <rguenther@suse.de>
5610
5611 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): More
5612 properly handle conversion/copy chains after tuplification.
5613
5614 2008-08-20 Richard Guenther <rguenther@suse.de>
5615
5616 * passes.c (init_optimization_passes): Move the second
5617 forwprop pass before alias computation. Remove the second
5618 DCE pass. Remove the first dominator and phi copy/const
5619 prop passes.
5620
5621 2008-08-20 Nick Clifton <nickc@redhat.com>
5622
5623 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler
5624 support of this feature. Do not assume that a sufficiently new
5625 assembler will support the feature regardless of the target type.
5626 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
5627 * configure: Regenerate.
5628
5629 2008-08-20 Richard Guenther <rguenther@suse.de>
5630
5631 * tree-vrp.c (found_in_subgraph): Remove.
5632 (live): New global static.
5633 (live_on_edge): New function.
5634 (blocks_visited): Remove.
5635 (register_edge_assert_for_2): Use live_on_edge.
5636 (find_conditional_asserts): Remove code dealing with
5637 found_in_subgraph. Do not walk the CFG.
5638 (find_switch_asserts): Likewise.
5639 (find_assert_locations_1): Renamed from find_assert_locations.
5640 Move finding assert locations for conditional and switch
5641 statements first. Update live bitmap. Do not walk the CFG.
5642 (find_assert_locations): New function.
5643 (insert_range_assertions): Remove entry of CFG walk.
5644 Adjust call to find_assert_locations.
5645 * tree-ssa-pre.c (do_regular_insertion): Ignore critical edges
5646 that only can appear because of fake exit edges but assert we
5647 never try to insert on those.
5648 (fini_pre): Do not remove fake exit edges here...
5649 (execute_pre): ...but here, before committing edge inserts.
5650
5651 2008-08-19 Richard Guenther <rguenther@suse.de>
5652
5653 * passes.c (init_optimization_passes): Exchange store-ccp
5654 with a ccp pass.
5655
5656 2008-08-19 Rafael Espíndola <espindola@google.com>
5657
5658 * varasm.c (weak_decls): Move earlier in the file.
5659 (assemble_external): Add weak decls to the weak_decls list.
5660 (declare_weak): Don't add decls to the weak_decls list.
5661
5662 2008-08-19 H.J. Lu <hongjiu.lu@intel.com>
5663
5664 PR target/37157
5665 * config/i386/sse.md (sse2_punpckhqdq, sse2_punpcklqdq): Moved
5666 before (sse2_shufpd_<mode>).
5667
5668 2008-08-19 Jakub Jelinek <jakub@redhat.com>
5669
5670 PR debug/37156
5671 * pretty-print.c (pp_base_format): Deal with recursive BLOCK trees.
5672 * tree.c (block_nonartificial_location): Likewise.
5673
5674 2008-08-19 Richard Guenther <rguenther@suse.de>
5675
5676 PR tree-optimization/35972
5677 PR tree-optimization/23094
5678 * tree-ssa-sccvn.h (vn_reference_lookup_pieces): Add maywalk
5679 parameter.
5680 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
5681 handle MISALIGNED_INDIRECT_REF.
5682 (get_ref_from_reference_ops): New helper.
5683 (vn_reference_lookup_pieces): Walk the use-def chain using the
5684 alias-oracle if requested.
5685 * tree-ssa-pre.c (phi_translate_1): Do reference lookup with
5686 walking the use-def chain.
5687 (compute_avail): But not here.
5688 (create_component_ref_by_pieces_1): Properly handle
5689 MISALIGNED_INDIRECT_REF.
5690 (do_regular_insertion): Handle fully redundant
5691 expressions after PHI-translation also for SSA_NAME values, not
5692 only constants. Correctly use edoubleprime for that.
5693
5694 2008-08-19 Ira Rosen <irar@il.ibm.com>
5695
5696 * tree-vectorizer.c (supportable_widening_operation): Support
5697 multi-step conversion, return the number of steps in such conversion
5698 and the required intermediate types.
5699 (supportable_narrowing_operation): Likewise.
5700 * tree-vectorizer.h (vect_pow2): New function.
5701 (supportable_widening_operation): Change argument types.
5702 (supportable_narrowing_operation): Likewise.
5703 (vectorizable_type_promotion): Add an argument.
5704 (vectorizable_type_demotion): Likewise.
5705 * tree-vect-analyze.c (vect_analyze_operations): Call
5706 vectorizable_type_promotion and vectorizable_type_demotion with
5707 additional argument.
5708 (vect_get_and_check_slp_defs): Detect patterns.
5709 (vect_build_slp_tree): Add an argument, don't fail in case of multiple
5710 types.
5711 (vect_analyze_slp_instance): Don't fail in case of multiple types.
5712 Call vect_build_slp_tree with correct arguments. Calculate unrolling
5713 factor according to the smallest type in the loop.
5714 (vect_detect_hybrid_slp_stmts): Include statements from patterns.
5715 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Call
5716 supportable_widening_operation with correct arguments.
5717 * tree-vect-transform.c (vect_get_slp_defs): Allocate output vector
5718 operands lists according to the number of vector statements in left
5719 or right node, if exists.
5720 (vect_gen_widened_results_half): Remove unused argument.
5721 (vectorizable_conversion): Call supportable_widening_operation,
5722 supportable_narrowing_operation, and vect_gen_widened_results_half
5723 with correct arguments.
5724 (vectorizable_assignment): Change documentation, support multiple
5725 types in SLP.
5726 (vectorizable_operation): Likewise.
5727 (vect_get_loop_based_defs): New function.
5728 (vect_create_vectorized_demotion_stmts): Likewise.
5729 (vectorizable_type_demotion): Support loop-aware SLP and general
5730 multi-step conversion. Call vect_get_loop_based_defs and
5731 vect_create_vectorized_demotion_stmts for transformation.
5732 (vect_create_vectorized_promotion_stmts): New function.
5733 (vectorizable_type_promotion): Support loop-aware SLP and general
5734 multi-step conversion. Call vect_create_vectorized_promotion_stmts
5735 for transformation.
5736 (vectorizable_store): Change documentation, support multiple
5737 types in SLP.
5738 (vectorizable_load): Likewise.
5739 (vect_transform_stmt): Pass SLP_NODE to
5740 vectorizable_type_promotion and vectorizable_type_demotion.
5741 (vect_schedule_slp_instance): Move here the calculation of number
5742 of vectorized statements for each node from...
5743 (vect_schedule_slp): ... here.
5744 (vect_transform_loop): Call vect_schedule_slp without the last
5745 argument.
5746
5747 2008-08-19 Dorit Nuzman <dorit@il.ibm.com>
5748
5749 PR bootstrap/37152
5750 * tree-vect-transform.c (vect_create_epilog_for_reduction): Change =
5751 to == in assert statement.
5752 (vectorizable_reduction): Fix typo.
5753
5754 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
5755
5756 PR bootstrap/37153
5757 * value-prof.c (check_counter): Dereference pointer to overall
5758 count when printing it.
5759
5760 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
5761
5762 * profile.h: Really add it.
5763
5764 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
5765
5766 * mcf.c: Really add it.
5767
5768 2008-08-18 Paul Yuan <yingbo.com@gmail.com>
5769 Vinodha Ramasamy <vinodha@google.com>
5770
5771 * cgraph.c (cgraph_edge): Handle inconsistent counts when setting
5772 count_scale.
5773 * value-prof.c (check_counter): Fix the counter if
5774 flag_profile_correction is true.
5775 (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
5776 tree_mod_subtract_transform):
5777 Follow check_counter parameter change.
5778 * common.opt (fprofile-correction): New option.
5779 * mcf.c: New file.
5780 * profile.h: Likewise.
5781 * profile.c (edge_info, EDGE_INFO): Moved to new file profile.h.
5782 (sum_edge_counts, is_edge_inconsistent, correct_negative_edge_counts,
5783 is_inconsistent, set_bb_counts, read_profile_edge_counts): New
5784 functions.
5785 (compute_branch_probabilities): Refactored. Invokes mcf_smooth_cfg if
5786 flag_profile_correction is set.
5787
5788 2008-08-18 Richard Sandiford <rdsandiford@googlemail.com>
5789
5790 * rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.
5791
5792 2008-08-18 Tomas Bily <tbily@suse.cz>
5793
5794 * tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P.
5795 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Use
5796 CONVERT_EXPR_P.
5797 * tree-data-ref.c (split_constant_offset_1): Likewise.
5798 * tree-inline.c (estimate_operator_cost): Use CASE_CONVERT.
5799 * tree-sra.c (sra_walk_expr): Likewise.
5800 * matrix-reorg.c (ssa_accessed_in_assign_rhs): Likewise.
5801 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
5802 * gimple.h (gimple_assign_cast_p): Use CONVERT_EXPR_CODE_P.
5803 * tree-ssa-structalias.c (find_func_aliases, find_func_aliases):
5804 Likewise.
5805 * gimple.c (gimple_assign_unary_nop_p): Likewise.
5806 * tree-vect-transform.c (vectorizable_type_demotion)
5807 (vectorizable_type_promotion): Likewise.
5808 * tree-inline.c (expand_call_inline):
5809 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
5810 (forward_propagate_addr_expr_1, forward_propagate_comparison)
5811 (tree_ssa_forward_propagate_single_use_vars): Likewise.
5812 * expr.c (expand_expr_real_1): Likewise.
5813 * tree-ssa-dom.c (hashable_expr_equal_p, iterative_hash_hashable_expr)
5814 (gimple_assign_unary_useless_conversion_p): Likewise.
5815 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
5816 * tree-ssa-ccp.c (ccp_fold, fold_gimple_assign): Likewise.
5817 * fold-const.c (fold_unary): Likewise.
5818 * tree.h (CONVERT_EXPR_P): Likewise.
5819 * tree.c (simple_cst_equal, iterative_hash_expr): Likewise.
5820 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
5821 * tree-vrp.c:
5822 (register_edge_assert_for_2, extract_range_from_unary_expr)
5823 (register_edge_assert_for_1): Likewise.
5824
5825 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5826
5827 * real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
5828 dconst_third_ptr, dconst_sqrt2_ptr): Declare.
5829 (enum real_value_const): Delete.
5830 (get_real_const): Delete.
5831 * real.c (get_real_const): Delete.
5832 (dconst_e_ptr): Define.
5833 (dconst_third_ptr): Define.
5834 (dconst_sqrt2_ptr): Define.
5835 * builtins.c: Update all callers.
5836
5837 2008-08-18 Richard Guenther <rguenther@suse.de>
5838
5839 * tree-ssa-reassoc.c (reassociate_bb): Properly reset the
5840 statement iterator after statement removal.
5841
5842 2008-08-18 Andreas Tobler <a.tobler@schweiz.org>
5843
5844 * config/rs6000/driver-rs6000.c (detect_caches_freebsd): New function.
5845 (detect_processor_freebsd): Likewise.
5846 (host_detect_local_cpu): Call newly added functions for FreeBSD.
5847
5848 2008-08-18 Richard Guenther <rguenther@suse.de>
5849
5850 * tree-cfg.c (verify_types_in_gimple_assign): Verify copies
5851 and loads have the correct types.
5852
5853 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5854
5855 PR cpp/7263
5856 * c-opts.c (cpp_opts): Remove static.
5857 * c-parser.c (cpp_opts): Declare it extern.
5858 (disable_extension_diagnostics): Handle cpp options.
5859 (enable_extension_diagnostics): Likewise.
5860
5861 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5862
5863 * diagnostics.c (permerror_at): Rename as permerror.
5864 (permerror): Delete.
5865 * toplev.h: Likewise.
5866
5867 2008-08-18 Richard Guenther <rguenther@suse.de>
5868
5869 * passes.c (init_optimization_passes): Remove cleanup_cfg1,
5870 sdse1 and addressables2 passes. Replace dce1 with cddce1.
5871 Move call_cdce before build_alias. Move copyrename2,
5872 cunrolli and ccp2 beafore build_alias. Re-add addressable2
5873 right after final inlining.
5874 * tree-cfg.c (build_gimple_cfg): Do not dump function here.
5875 (pass_build_cfg): But instead via TODO_dump_func.
5876
5877 2008-08-18 Richard Guenther <rguenther@suse.de>
5878
5879 * tree-sra.c (generate_element_init_1): Deal with NULL constructor
5880 element index.
5881 (scalarize_init): If we failed to generate some initializers
5882 do not generate zeros for not instantiated members. Instead
5883 rely on the copy out.
5884 * tree-ssa-operands.c (get_addr_dereference_operands): Warn
5885 about missing flow-sensitive alias info only if we have
5886 aliases computed.
5887
5888 2008-08-17 Nick Clifton <nickc@redhat.com>
5889
5890 * doc/extend.texi (Function Attributes): Fix typo in description
5891 if hot function attribute.
5892
5893 2008-08-17 Daniel Jacobowitz <dan@codesourcery.com>
5894 Richard Sandiford <rdsandiford@googlemail.com>
5895
5896 * doc/install.texi (--with-mips-plt): Document.
5897 * doc/invoke.texi (-mplt, -mno-plt): Document.
5898 * config.gcc (mips*-*-*): Add mips-plt to supported_defaults
5899 and handle ${with_mips_plt}.
5900 * config/mips/mips.opt (mplt): New option.
5901 * config/mips/mips.h (TARGET_ABICALLS_PIC0): New macro.
5902 (TARGET_ABICALLS_PIC2): Likewise.
5903 (TARGET_GPWORD): Return false for TARGET_ABSOLUTE_ABICALLS.
5904 (OPTION_DEFAULT_SPECS): Add a mips-plt entry.
5905 (ASM_SPEC): Use !mabi=* instead of !mabi*.
5906 (MIPS_CALL): Use TARGET_ABICALLS_PIC2 instead of TARGET_ABICALLS
5907 to decide whether to output ".option picX" directives.
5908 * config/mips/linux.h (SUBTARGET_ASM_SPEC): Remove -mabi=64 handling.
5909 Pass -call_nonpic rather than -KPIC for -mplt.
5910 (BASE_DRIVER_SELF_SPECS): Remove -mplt if -mno-shared is not present
5911 on the command line. Also remove it when -mabi=64 is used without
5912 -msym32.
5913 * config/mips/linux64.h (SUBTARGET_ASM_SPEC): Delete.
5914 * config/mips/mips.c (mips_use_pic_fn_addr_reg_p): Handle
5915 TARGET_ABICALLS_PIC0.
5916 (mips_classify_symbol): Use TARGET_ABICALLS_PIC2 instead of
5917 TARGET_ABICALLS.
5918 (mips16_build_function_stub): Only output ".option pic" directives
5919 and PIC stubs if TARGET_ABICALLS_PIC2. Call through $25 instead of $1.
5920 (mips16_build_call_stub): Fix comment and remove redundant
5921 ".set at"/"set .noat" directives.
5922 (mips_function_rodata_section): Use the default behaviour for
5923 TARGET_ABSOLUTE_ABICALLS.
5924 (mips_file_start): Emit ".option pic0" for TARGET_ABICALLS_PIC0.
5925 (mips_global_pointer): Handle TARGET_ABICALLS_PIC0.
5926 (mips_restore_gp): Do nothing if the current function doesn't use
5927 a global pointer.
5928 (mips_expand_prologue): Only save $gp if the current function uses it.
5929 Use a normal move for TARGET_ABICALLS_PIC0.
5930 (mips_override_options): Only set flag_pic if TARGET_ABICALLS_PIC2.
5931
5932 2008-08-17 Richard Sandiford <rdsandiford@googlemail.com>
5933
5934 * config/mips/mips.c (mips_save_reg_p): Don't short-circuit rest
5935 of function when handling GLOBAL_POINTER_REGNUM.
5936
5937 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
5938
5939 PR ada/20548
5940 * common.opt (-fstack-check): Do not declare the variable here.
5941 (-fstack-check=): New option variant.
5942 * doc/invoke.texi (Code Gen Options): Document it.
5943 * expr.h (STACK_OLD_CHECK_PROTECT): New macro.
5944 (STACK_CHECK_PROTECT): Bump to 3 pages if DWARF-2 EH is used.
5945 (STACK_CHECK_STATIC_BUILTIN): New macro.
5946 * doc/tm.texi (Stack Checking): Document STACK_CHECK_STATIC_BUILTIN.
5947 * opts.c: Include expr.h.
5948 (common_handle_option) <OPT_fold_stack_check_>: New case.
5949 <OPT_fstack_check>: Likewise.
5950 * calls.c (initialize_argument_information): Use TYPE_SIZE_UNIT
5951 consistently in the test for variable-sized types. Adjust for
5952 new behaviour of flag_stack_check.
5953 * explow.c: Include except.h.
5954 (allocate_dynamic_stack_space): Do not take into account
5955 STACK_CHECK_MAX_FRAME_SIZE for static builtin stack checking.
5956 * function.c (gimplify_parameters): Use DECL_SIZE_UNIT in the test
5957 for variable-sized parameters. Treat all parameters whose size is
5958 greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized if generic
5959 stack checking is enabled.
5960 * gimplify.c (gimplify_decl_expr): Treat non-static objects whose
5961 size is greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized
5962 if generic stack checking is enabled.
5963 (expand_function_end): Adjust for new behaviour of flag_stack_check.
5964 * reload1.c (reload): Likewise.
5965 * stmt.c (expand_decl): Assert that all automatic variables have
5966 fixed size at this point and remove dead code.
5967 * flags.h (stack_check_type): New enumeration type.
5968 (flag_stack_check): Declare.
5969 * toplev.c (flag_stack_check): New global variable.
5970 * Makefile.in (opts.o): Add dependency on EXPR_H.
5971 (explow.o): Add dependency on except.h.
5972
5973 2008-08-16 Andy Hutchinson <hutchinsonandy@aim.com>
5974
5975 * config/avr/avr.c (avr_override_options): Reduce value of
5976 PARAM_INLINE_CALL_COST.
5977
5978 2008-08-15 Eric Botcazou <ebotcazou@adacore.com>
5979
5980 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: When converting
5981 to BLKmode, try to fetch an inner memory reference. Use 'mode' in
5982 lieu of TYPE_MODE (type) throughout.
5983
5984 2008-08-15 Joseph Myers <joseph@codesourcery.com>
5985
5986 * config/arm/arm.c (add_minipool_backward_ref): Check for
5987 8-byte-aligned entries in second case of forcing insertion after a
5988 particular entry. Change third case to avoid inserting
5989 non-8-byte-aligned entries before 8-byte-aligned ones.
5990
5991 2008-08-15 Richard Guenther <rguenther@suse.de>
5992
5993 * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not
5994 strip components for unknown size accesses.
5995
5996 2008-08-15 Wolfgang Gellerich <gellerich@de.ibm.com>
5997
5998 * config/s390/2097.md New file.
5999 * config/s390/s390.md ("z10prop" attribute): Define none,
6000 z10_super, z10_super_E1, z10_super_A1, z10_super_c,
6001 z10_super_c_E1, z10_fwd, z10_fwd_A1, z10_fwd_A3, z10_fwd_E1,
6002 z10_rec, z10_fr, z10_fr_A3, z10_fr_E1, z10_c, and z10_cobra as
6003 possible values and apply them to insns as appropriate.
6004 ("type" attribute): Removed itof and added ftrunctf,ftruncdf,
6005 ftruncsd, ftruncdd, itoftf, itofdf, itofsf, itofdd, itoftd,
6006 fdivdd, fdivtd, floaddd, floadsd, fmuldd, fmultd, fsimpdd,
6007 fsimpsd, fsimptd, fstoredd, fstoresd, ftoidfp as possible values.
6008 ("bfp" mode attribute): Removed. Every occurence replaced
6009 with <mode>.
6010 * config/s390/s390.c (struct "z10_cost"): Updated entries.
6011 * config/s390/2084.md (insn_reservation "x_itof"): Updated
6012 type attribute.
6013
6014 2008-08-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6015
6016 PR c/28152
6017 * c-parser.c (c_lex_one_token): Do not store the canonical spelling
6018 for keywords.
6019
6020 2008-08-14 Dorit Nuzman <dorit@il.ibm.com>
6021
6022 * tree-vect-transform.c (vect_create_epilog_for_reduction): Takes an
6023 additional argument. Support reduction when duplication is needed due
6024 to data-types of different sizes in the loop.
6025 (get_initial_def_for_induction): Fix printout.
6026 (vect_get_vec_def_for_stmt_copy): Support case where the
6027 vec_stmt_for_operand is a phi node.
6028 (vectorizable_reduction): Support reduction when duplication is needed
6029 due to data-types of different sizes in the loop.
6030 (vectorizable_call): Remove restriction to not vectorize in case we
6031 have data-types of different sizes in the loop.
6032 (vectorizable_conversion): Likewise.
6033 (vectorizable_operation): Likewise.
6034 (vectorizable_type_demotion): Likewise.
6035 (vectorizable_type_promotion): Likewise.
6036 (vectorizable_induction): Add restriction to not vectorize in case
6037 we have data-types of different sizes in the loop.
6038
6039 2008-08-14 Christophe Saout <christophe@saout.de>
6040 Uros Bizjak <ubizjak@gmail.com>
6041
6042 PR target/37101
6043 * config/i386/sse.md (vec_concatv2di): Remove movlps alternative.
6044 (*vec_concatv2di_rex64_sse4_1): Ditto.
6045 (*vec_concatv2di_rex64_sse): Ditto.
6046
6047 2008-08-14 Jakub Jelinek <jakub@redhat.com>
6048
6049 PR middle-end/37103
6050 * fold-const.c (fold_widened_comparison): Do not allow
6051 sign changes that change the result even if shorter type
6052 is wider than arg1_unw's type.
6053
6054 2008-08-13 Kazu Hirata <kazu@codesourcery.com>
6055
6056 * gcc.dg/arm-g2.c, gcc.dg/arm-mmx-1.c, gcc.dg/arm-scd42-2.c:
6057 Skip if the multilib testing specifies -march that does not
6058 agree with the one specified in the testcase.
6059
6060 2008-08-13 Joseph Myers <joseph@codesourcery.com>
6061
6062 * config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
6063 zero extend SImode values being converted to TFmode before passing
6064 to libcalls.
6065
6066 2008-08-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6067
6068 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
6069 __PPU__ when targeting the Cell/B.E. PPU processor.
6070
6071 2008-08-13 Eric Botcazou <ebotcazou@adacore.com>
6072
6073 * gimple.h (gimple_call_set_chain): Accept SSA variables.
6074 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <CALL_EXPR>:
6075 Rematerialize the static chain, if any.
6076 * tree-ssa-sccvn.c (copy_reference_ops_from_call): Also copy the
6077 static chain.
6078
6079 2008-08-13 H.J. Lu <hongjiu.lu@intel.com>
6080
6081 * dwarf2out.c (dwarf_stack_op_name): Remove prototype.
6082 (new_loc_descr): Likewise.
6083 (add_loc_descr): Likewise.
6084 (size_of_loc_descr): Likewise.
6085 (size_of_locs): Likewise.
6086 (output_loc_operands): Likewise.
6087 (output_loc_sequence): Likewise.
6088 (new_reg_loc_descr): New.
6089 (build_cfa_loc): Use it.
6090 (build_cfa_aligned_loc): Likewise.
6091 (one_reg_loc_descriptor): Likewise.
6092 (based_loc_descr): Likewise.
6093
6094 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6095
6096 PR 30551
6097 * doc/invoke.texi (Wmain): Update.
6098 * c-decl.c (start_decl): warn_main is only 0 or 1.
6099 (start_function): Likewise. Fix formatting.
6100 (finish_function): Delete redundant warning.
6101 * c.opt (Wmain): Add Var(warn_main) and Init(-1).
6102 * c-opts (c_common_handle_option): -Wall only has effect if
6103 warn_main is uninitialized. OPT_Wmain is automatically
6104 handled. -pedantic also enables Wmain.
6105 (c_common_post_options): Handle all logic for Wmain here.
6106 * c-common.c (warn_main): Delete.
6107 (check_main_parameter_types): Make pedwarns conditional on OPT_Wmain.
6108 * c-common.h (warn_main): Delete.
6109
6110 2008-08-13 H.J. Lu <hongjiu.lu@intel.com>
6111
6112 PR middle-end/36701
6113 * expr.c (emit_group_store): Allocate stack temp with the
6114 largest alignment when copying from register to stack.
6115
6116 2008-08-13 Richard Guenther <rguenther@suse.de>
6117
6118 * tree.h (maybe_fold_offset_to_address): Declare.
6119 * tree-ssa-ccp.c (surely_varying_stmt_p): Fix typo in last commit.
6120 (ccp_fold): Handle pointer conversions the same as fold_stmt.
6121 Likewise for POINTER_PLUS_EXPR.
6122 (maybe_fold_offset_to_reference): Enable disabled code.
6123 (maybe_fold_offset_to_address): New function.
6124 (fold_stmt_r): Use it.
6125 (fold_gimple_assign): Likewise.
6126 * gimplify.c (gimplify_conversion): Use maybe_fold_offset_to_address.
6127 (gimplify_expr): Likewise.
6128
6129 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6130
6131 * toplev.h (pedwarn_at): Fix declaration.
6132
6133 2008-08-13 Joseph Myers <joseph@codesourcery.com>
6134
6135 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
6136 LINK_SPEC): Use %R in -Y P argument.
6137
6138 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6139
6140 PR c/15236
6141 * diagnostic.c (pedwarn_at): New.
6142 * toplev.h (pedwarn_at): Declare.
6143 * c-tree.h (build_enumerator): Update declaration.
6144 * c-decl.c (finish_enum): Update comment.
6145 (build_enumerator): Take a location parameter. Give a pedwarn but do
6146 not perform any conversion.
6147 * c-parser.c (c_parser_enum_specifier): Set correct location for
6148 enumerator.
6149
6150 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6151
6152 PR 35635
6153 * c-common.c (conversion_warning): Use a switch. Ignore boolean
6154 expressions except for conversions to signed:1 bitfields. Handle
6155 COND_EXPR with constant operands.
6156
6157 2008-08-13 Richard Guenther <rguenther@suse.de>
6158
6159 PR tree-optimization/15255
6160 * tree-ssa-reassoc.c (linearize_expr_tree): Declare.
6161 (struct oecount_s): New struct and VEC types.
6162 (cvec): New global.
6163 (oecount_hash): New function.
6164 (oecount_eq): Likewise.
6165 (oecount_cmp): Likewise.
6166 (zero_one_operation): New function.
6167 (build_and_add_sum): Likewise.
6168 (undistribute_ops_list): Perform un-distribution of multiplication
6169 and division on the chain of summands.
6170 (should_break_up_subtract): Also break up subtracts for factors.
6171 (reassociate_bb): Delete dead visited statements.
6172 Call undistribute_ops_list. Re-sort and optimize if it did something.
6173 * passes.c (init_optimization_passes): Move DSE before
6174 reassociation.
6175 * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Correctly handle
6176 PHI nodes.
6177
6178 2008-08-12 Janis Johnson <janis187@us.ibm.com>
6179
6180 * doc/invoke.texi (-fipa-pta): Say the option is experimental.
6181
6182 * doc/invoke.texi: Revert unintended checkin.
6183
6184 2008-08-12 Nathan Froyd <froydnj@codesourcery.com>
6185
6186 PR libgomp/26165
6187 * gcc.c (include_spec_function): Tweak call to find_a_file.
6188
6189 2008-08-12 Jakub Jelinek <jakub@redhat.com>
6190
6191 PR middle-end/37014
6192 * expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
6193 and TRUTH_ORIF_EXPR.
6194 * dojump.c (do_jump): Likewise.
6195
6196 PR tree-optimization/37084
6197 * tree-inline.c (copy_bb): Call gimple_regimplify_operands
6198 if id->regimplify, don't assume stmt is a cast assignment.
6199
6200 2008-08-12 Anatoly Sokolov <aesok@post.ru>
6201
6202 * final.c (final_scan_insn): Use app_enable/app_disable functions.
6203
6204 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6205
6206 PR bootstrap/37097
6207 * builtins.c (do_mpfr_bessel_n): Fix copy-and-paste bug introduced
6208 by last change.
6209
6210 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6211
6212 * defaults.h (TARGET_FLOAT_FORMAT): Remove.
6213 (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT): Remove.
6214
6215 * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Remove.
6216 * config/iq2000/iq2000.h (TARGET_FLOAT_FORMAT): Remove.
6217 * config/pdp11/pdp11.h (TARGET_FLOAT_FORMAT): Remove.
6218 * config/score/score.h (TARGET_FLOAT_FORMAT): Remove.
6219 * config/vax/vax.h (TARGET_FLOAT_FORMAT): Remove.
6220
6221 * doc/tm.texi (Storage Layout): Remove documentation for
6222 TARGET_FLOAT_FORMAT.
6223
6224 * simplify-rtx.c (simplify_binary_operation_1): Replace
6225 TARGET_FLOAT_FORMAT check by appropriate HONOR_... checks.
6226
6227 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6228
6229 * real.h (struct real_format): New member has_sign_dependent_rounding.
6230 * real.c (ieee_single_format, mips_single_format, motorola_single_format,
6231 spu_single_format, ieee_double_format, mips_double_format,
6232 motorola_double_format, ieee_extended_motorola_format,
6233 ieee_extended_intel_96_format, ieee_extended_intel_128_format,
6234 ieee_extended_intel_96_round_53_format, ibm_extended_format,
6235 mips_extended_format, ieee_quad_format, mips_quad_format,
6236 vax_f_format, vax_d_format, vax_g_format): Initialize it.
6237 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
6238
6239 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
6240 MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
6241 * config/spu/spu.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
6242 MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
6243 (ROUND_TOWARDS_ZERO): Likewise.
6244
6245 * real.h (REAL_MODE_FORMAT): Protect MODE against macro expansion.
6246 (FLOAT_MODE_FORMAT): New macro.
6247 (REAL_MODE_FORMAT_COMPOSITE_P): Remove, replace by ...
6248 (MODE_COMPOSITE_P): ... this new macro.
6249 (MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
6250 MODE_HAS_SIGN_DEPENDENT_ROUNDING): New macros.
6251 * machmode.h (GET_MODE_INNER): Cast result to enum machine_mode.
6252
6253 * flags.h: Include "real.h".
6254
6255 * fold-const.c (const_binop): Use MODE_COMPOSITE_P instead of
6256 REAL_MODE_FORMAT_COMPOSITE_P.
6257 * simplify-rtx.c (simplify_const_binary_operation): Likewise.
6258
6259 * doc/tm.texi (Storage Layout): Remove documentation of
6260 MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
6261 MODE_HAS_SIGN_DEPENDENT_ROUNDING. Update documentation of
6262 ROUND_TOWARDS_ZERO and LARGEST_EXPONENT_IS_NORMAL to clarify
6263 they only apply to libgcc2.a.
6264
6265 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6266
6267 * config/spu/float_disf.c: New file.
6268 * config/spu/float_unsdisf.c: New file.
6269 * config/spu/t-elf (LIB2FUNCS_STATIC_EXTRA): Add them.
6270 (LIB2FUNCS_EXCLUDE): Define.
6271
6272 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6273 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
6274
6275 * real.h (struct real_format): New member round_towards_zero.
6276 * real.c (round_for_format): Respect fmt->round_towards_zero.
6277 (ieee_single_format, mips_single_format, motorola_single_format,
6278 spu_single_format, ieee_double_format, mips_double_format,
6279 motorola_double_format, ieee_extended_motorola_format,
6280 ieee_extended_intel_96_format, ieee_extended_intel_128_format,
6281 ieee_extended_intel_96_round_53_format, ibm_extended_format,
6282 mips_extended_format, ieee_quad_format, mips_quad_format,
6283 vax_f_format, vax_d_format, vax_g_format): Initialize it.
6284 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
6285
6286 * builtins.s (do_mpfr_arg1): Consider round_towards_zero member of
6287 real_format to choose rounding mode when calling MPFR functions.
6288 (do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Likewise.
6289 (do_mpfr_bessel_n, do_mpfr_remquo, do_mpfr_lgamma_r): Likewise.
6290
6291 * real.h (real_to_decimal_for_mode): Add prototype.
6292 * real.c (real_to_decimal_for_mode): Renames old real_to_decimal.
6293 Respect target rounding mode when generating decimal representation.
6294 (real_to_decimal): New stub for backwards compatibility.
6295 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Use
6296 real_to_decimal_for_mode instead of real_to_decimal.
6297
6298 * config/spu/spu.md ("floatdisf2", "floatunsdisf2"): New.
6299
6300 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6301 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
6302
6303 * real.c (spu_single_format): New variable.
6304 * real.h (spu_single_format): Declare.
6305
6306 * config/spu/spu.c (spu_override_options): Install SFmode format.
6307 (spu_split_immediate): Use integer mode to operate on pieces of
6308 floating-point values in all cases.
6309
6310 * config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
6311 ("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
6312 ("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.
6313
6314 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6315
6316 * config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
6317
6318 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6319
6320 * config/spu/spu.h (DWARF_FRAME_RETURN_COLUMN): Define.
6321
6322 2008-08-12 Jakub Jelinek <jakub@redhat.com>
6323
6324 PR c++/36688
6325 * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
6326 on the VAR_DECL instead of TYPE_READONLY on its type.
6327
6328 2008-08-12 Ira Rosen <irar@il.ibm.com>
6329
6330 * tree-vectorizer.c: Depend on langhooks.h.
6331 (supportable_widening_operation): Add two arguments. Support double
6332 type conversions.
6333 (supportable_narrowing_operation): Likewise.
6334 * tree-vectorizer.h (supportable_widening_operation): Add two
6335 arguments.
6336 (supportable_narrowing_operation): Likewise.
6337 * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call
6338 supportable_widening_operation with correct arguments.
6339 * tree-vect-transform.c (vectorizable_conversion): Likewise.
6340 (vectorizable_type_demotion): Support double type conversions.
6341 (vectorizable_type_promotion): Likewise.
6342 * Makefile.in (tree-vectorizer.o): Depend on langhooks.h.
6343
6344 2008-08-11 Michael Matz <matz@suse.de>
6345
6346 * i386/i386.c (override_options): Move initialisation from
6347 flag_schedule_insns_after_reload to here from ...
6348 (optimization_options): ... here.
6349
6350 2008-08-11 Jakub Jelinek <jakub@redhat.com>
6351
6352 PR rtl-optimization/36998
6353 * dwarf2out.c (compute_barrier_args_size_1,
6354 compute_barrier_args_size): Temporarily remove assertions.
6355
6356 2008-08-10 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6357
6358 PR middle-end/20644
6359 * tree-ssa.c (struct walk_data): Add new flag
6360 warn_possibly_uninitialized.
6361 (warn_uninitialized_var): Use it.
6362 (warn_uninitialized_vars): New.
6363 (execute_early_warn_uninitialized): Call it.
6364 (execute_late_warn_uninitialized): Likewise.
6365
6366 2008-08-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
6367
6368 PR middle-end/36238
6369 * reload1.c (gen_reload): Guard calls to get_secondary_mem
6370 for memory subregs.
6371
6372 2008-08-09 Jan Hubicka <jh@suse.cz>
6373
6374 PR target/37055
6375 * optabs.c (maybe_emit_unop_insn): Remove produced code if
6376 expansion failed.
6377 (expand_fix): Be prepared for expansion to fail.
6378 (expand_sfix_optab): Remove instructions if expansion failed.
6379
6380 2008-08-09 Anatoly Sokolov <aesok@post.ru>
6381
6382 * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
6383 avr31 architecture.
6384 * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
6385 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
6386
6387 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
6388
6389 * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
6390 mips/t-libgcc-mips16 to tmake_file.
6391 * config/mips/mips-protos.h (mips_call_type): New enum.
6392 (mips_pic_base_register, mips_got_load): Declare.
6393 (mips_restore_gp): Take an rtx argument.
6394 (mips_use_pic_fn_addr_reg_p): Declare.
6395 (mips_expand_call): Replace the sibcall_p argument with
6396 a mips_call_type argument. Add a lazy_p parameter.
6397 (mips_split_call): Declare.
6398 * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
6399 (MIPS16_PIC_TEMP): Likewise.
6400 (reg_class): Delete M16_NA_REGS.
6401 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
6402 (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
6403 (mips_split_hi_p): Declare.
6404 * config/mips/mips.c (mips_split_hi_p): New array.
6405 (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
6406 (mips_got_symbol_type_p): New function.
6407 (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
6408 (mips16_stub_function_p): New function.
6409 (mips16_local_function_p): Likewise.
6410 (mips_use_pic_fn_addr_reg_p): Likewise.
6411 (mips_cannot_force_const_mem): Return false for HIGHs.
6412 Extend CONST_INT and symbolic handling to MIPS16, using
6413 mips_symbol_insns to check that the base symbol type is a
6414 legitimate constant. Reject GOT-based constants if
6415 TARGET_MIPS16_PCREL_LOADS.
6416 (mips_const_insns): Check targetm.cannot_force_const_mem when
6417 decomposing a symbolic base and a large offset.
6418 (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
6419 When calling a function that needs $25 from MIPS16 code,
6420 move the target address into $25 separately and add a USE
6421 to the call insn.
6422 (mips16_gp_pseudo_reg): Insert the initializer immediately
6423 before the first real insn.
6424 (mips_pic_base_register, mips_got_load): New functions.
6425 (mips_split_symbol): Generalize the name of the LO_SUM_OUT
6426 parameter to LOW_OUT. Say that it can be any valid SET_SRC
6427 when splitting a load-address operation. Split SYMBOL_GOT_DISP
6428 constants and highs of SYMBOL_GOT_PAGE_OFST constants.
6429 (mips_call_tls_get_addr): Update the call to mips_expand_call,
6430 also passing NULL_RTX rather than const0_rtx as the aux argument.
6431 (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
6432 instead of TARGET_EXPLICIT_RELOCS.
6433 (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
6434 (mips_load_call_address): Replace the sibcall_p argument with
6435 a mips_call_type argument. Use mips_got_load.
6436 (mips16_local_alias): New structure.
6437 (mips16_local_aliases): New variable.
6438 (mips16_local_aliases_hash): New function.
6439 (mips16_local_aliases_eq): Likewise.
6440 (mips16_local_alias): Likewise.
6441 (mips16_stub_function): Likewise.
6442 (mips16_build_function_stub): Create a local alias for the target
6443 function. Handle TARGET_ABICALLS. For PIC abicalls, emit a
6444 .cpload directive and an R_MIPS_NONE relocation for the target
6445 function, then load the alias rather than the function itself.
6446 Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
6447 (mips16_copy_fpr_return_value): Use mips16_stub_function and
6448 mips_expand_call. Set SYMBOL_REF_BIND_NOW on the symbol.
6449 (mips16_build_call_stub): Replace the FN parameter with an
6450 FN_PTR parameter. Force the address into a register if it
6451 isn't a call_insn_operand; don't rely on the caller to do this.
6452 If a call to a locally-defined and locally-binding MIPS16
6453 function must be made indirectly, redirect the call to the
6454 function's local alias. Use mips16_stub_function_p,
6455 mips16_stub_function, mips_expand_call and use_reg.
6456 Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
6457 Use explicit %hi and %lo accesses where possible.
6458 Use MIPS_CALL to generate the correct code form of a
6459 jal instruction. Add clobbers of $18 instead of uses.
6460 Update the call to mips_emit_call_insn.
6461 (mips_expand_call): Replace the SIBCALL_P argument with a
6462 mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
6463 Take a LAZY_P parameter. Call mips16_build_call_stub first,
6464 allowing it to modify the call address. Update the calls to
6465 mips_load_call_address and mips_emit_call_insn.
6466 (mips_split_call): New function.
6467 (mips_init_relocs): Clear mips_split_hi_p. Only use %gp_rel if
6468 !TARGET_MIPS16. Split SYMBOL_GOT_DISP, and the high parts of
6469 SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
6470 (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
6471 (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
6472 if TARGET_MIPS16.
6473 (mips_cprestore_slot): New function.
6474 (mips_restore_gp): Take a TEMP parameter. Handle TARGET_MIPS16
6475 and use mips_cprestore_slot.
6476 (mips_output_function_prologue): Handle TARGET_MIPS16 for
6477 LOADGP_OLDABI.
6478 (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
6479 then use a copygp_mips16 instruction to set up $28.
6480 (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
6481 (mips16_lay_out_constants): Call split_all_insns_noflow.
6482 (mips_reorg_process_insns): Explicitly set all_noreorder_p to
6483 false if TARGET_MIPS16.
6484 (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
6485 (mips_output_mi_thunk): Use mips_got_symbol_type_p. Use the
6486 mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
6487 (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
6488 MIPS16 code. Allow MIPS16 o32 PIC.
6489 (mips_override_options): Allow MIPS16 o32 PIC.
6490 * config/mips/mips.md: Lower CONST_GP_P moves into register moves
6491 after reload if TARGET_USE_GOT.
6492 (UNSPEC_COPYGP): New constant.
6493 (length): Use a default length of 8 for MIPS16 GOT loads.
6494 (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
6495 (*got_page<mode>): Check mips_split_hi_p.
6496 (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
6497 (unspec_got<mode>, unspec_call<mode>): New expanders.
6498 (load_got<mode>, load_call<mode>): Remove the length attributes.
6499 Use a got attribute instead of a type attribute.
6500 (copygp_mips16): New insn.
6501 (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
6502 (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
6503 (sibcall, sibcall_value, call, call_value): Update the calls
6504 to mips_expand_call.
6505 (call_internal, call_value_internal): Use mips_split_call.
6506 (call_value_multiple_internal): Likewise.
6507 (call_split): Move after call_internal (the insn it is split from).
6508 (call_internal_direct, call_value_internal_direct): Turn into
6509 define_insn_and_splits. Split if TARGET_SPLIT_CALLS.
6510 (call_direct_split, call_value_direct_split): New patterns.
6511 * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
6512 and use M16_REGS instead of M16_NA_REGS.
6513 * config/mips/predicates.md (const_call_insn_operand): Replace
6514 the TARGET_ABSOLUTE_ABICALLS-based check with a more general
6515 mips_use_pic_fn_addr_reg_p check.
6516 (move_operand): Reject HIGHs if mips_split_hi_p.
6517 * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
6518 (__mips16_floatunsisf): Inline __mips16_floatsisf.
6519 (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
6520 * config/mips/libgcc-mips16.ver: New file.
6521 * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
6522 $(srcdir)/config/mips/libgcc-mips16.ver.
6523
6524 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
6525
6526 * config/mips/mips.c (mips_unspec_address_offset): Move earlier
6527 in file.
6528 (mips_unspec_address, mips_unspec_offset_high): Likewise.
6529 (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
6530 (mips16_cfun_returns_in_fpr_p): Likewise.
6531
6532 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
6533
6534 * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
6535 * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
6536 rather than 4 to PC.
6537
6538 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
6539
6540 * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
6541 (FUNCTION_PROFILER): Save the static chain pointer into $2
6542 beforehand and restore it aftewards.
6543 (TRAMPOLINE_TEMPLATE): Adjust accordingly. Load the target
6544 address directly into $25 and call the function through $25;
6545 do not clobber $3. Pad the DImode version to cover the space
6546 left by the deleted $25 <- $3 move.
6547 (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
6548 the removal of the $25 <- $3 move.
6549 (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
6550 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
6551
6552 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
6553 Daniel Jacobowitz <dan@codesourcery.com>
6554
6555 * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
6556 * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
6557 (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
6558 * config/mips/mips.c (mips_start_function_definition): New function.
6559 (mips_end_function_definition): Likewise.
6560 (mips_output_function_prologue): Use mips_start_function_definition.
6561 (mips_output_function_epilogue): Use mips_end_function_definition.
6562 (build_mips16_function_stub): Use mips_start_function_definition
6563 and mips_end_function_definition.
6564 (build_mips16_call_stub): Likewise.
6565
6566 2008-08-09 Richard Guenther <rguenther@suse.de>
6567
6568 * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
6569 * gimple.h (gimple_call_fn): Adjust comment.
6570 (gimple_call_set_fndecl): New function.
6571 (gimple_call_fndecl): Adjust for GIMPLE_CALL no
6572 longer having bare FUNCTION_DECL operand.
6573 (gimple_call_return_type): Likewise.
6574 * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
6575
6576 * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
6577 (gimple_mod_pow2): Likewise.
6578 (gimple_mod_subtract): Likewise.
6579 (gimple_ic): Likewise.
6580 (gimple_stringop_fixed_value): Likewise.
6581 (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
6582 longer having bare FUNCTION_DECL operand.
6583 * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
6584 * omp-low.c (optimize_omp_library_calls): Likewise.
6585 * cgraphunit.c (update_call_expr): Likewise.
6586 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
6587 (execute_convert_to_rsqrt): Likewise.
6588 * cfgexpand.c (gimple_to_tree): Simplify.
6589 (release_stmt_tree): Fix for GIMPLE_CALL no longer having
6590 bare FUNCTION_DECL operand.
6591 * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
6592 (convert_gimple_call): Use gimple_call_fndecl.
6593 * c-common.c (c_warn_unused_result): Likewise.
6594
6595 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6596
6597 PR c/17880
6598 * c-typeck.c (digest_init): Call verify_sequence_points from here.
6599 (c_finish_return): Likewise.
6600 (c_start_case): Likewise.
6601 * c-common.c (warn_for_collisions_1): Use explicit location in warning.
6602 * c-parser.c (c_parser_condition): New. Call
6603 verify_sequence_points.
6604 (c_parser_paren_condition): Call c_parser_condition.
6605 (c_parser_for_statement): Call c_parser_condition.
6606
6607 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6608
6609 PR 36901
6610 * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.
6611 * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
6612 Moved from diagnostic.h
6613 (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
6614 DK_PERMERROR.
6615 (emit_diagnostic): New.
6616 (warning0, pedwarn0): Delete.
6617 (warning, warning_at, pedwarn, permerror): Return bool.
6618 * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
6619 Moved to diagnostic.c.
6620 (struct diagnostic_context): Use correct type for
6621 classify_diagnostic.
6622 (diagnostic_report_diagnostic): Update declaration.
6623 (emit_diagnostic): Declare.
6624 * errors.c (warning): Return bool.
6625 * errors.h (warning): Update declaration.
6626 * toplev.h (warning0, pedwarn0): Delete.
6627 (warning, warning_at, pedwarn, permerror): Return bool.
6628 * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
6629 * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
6630 inform. Update all calls.
6631 (diagnose_mismatched_decls): Check return value of warning/pedwarn
6632 before giving informative note.
6633 (implicit_decl_warning): Likewise.
6634 * c-typeck.c (build_function_call): Likewise.
6635 * tree-sssa.c (warn_uninit): Likewise.
6636 * builtins.c (gimplify_va_arg_expr): Likewise.
6637
6638 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6639
6640 PR 7651
6641 * doc/invoke.texi (-Wextra): Move warning from here...
6642 (-Wuninitialized): ... to here.
6643
6644 2008-08-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6645
6646 PR 28875
6647 * flags.h (set_Wunused): Delete
6648 * toplev.c (process_options): Handle Wunused flags here.
6649 * opts.c (maybe_warn_unused_parameter): Delete.
6650 (common_handle_option): Replace set_Wunused by warn_unused.
6651 (set_Wextra): Do not handle Wunused-parameter here.
6652 (set_Wunused): Delete.
6653 * c-opts.c (c_common_handle_option): Replace set_Wunused by
6654 warn_unused.
6655 * common.opt (Wunused): Add Var and Init.
6656 (Wunused-function): Likewise.
6657 (Wunused-label): Likewise.
6658 (Wunused-parameter): Likewise.
6659 (Wunused-value): Likewise.
6660 (Wunused-variable): Likewise.
6661
6662 2008-08-08 Peter Bergner <bergner@vnet.ibm.com>
6663
6664 * doc/invoke.texi: Add cpu_type power7.
6665 * config.in (HAVE_AS_VSX): New.
6666 * config.gcc: Add cpu_type power7.
6667 * configure.ac (HAVE_AS_VSX): Check for assembler support of the
6668 VSX instructions.
6669 * configure: Regenerate.
6670 * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
6671 power5.
6672 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
6673 (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
6674 (EXTRA_SPECS): Add asm_cpu_power7 spec string.
6675
6676 2008-08-08 Dorit Nuzman <dorit@il.ibm.com>
6677
6678 * tree-vect-transform.c (vectorizable_conversion): Pass the integral
6679 type to vectorize.builtin_conversion.
6680 (vectorizable_conversion): Likewise.
6681 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
6682 integral type as input.
6683 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
6684 FIX_TRUNC_EXPR.
6685 (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
6686 and ALTIVEC_BUILTIN_VCTSXS.
6687 (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
6688 formatting.
6689
6690 2008-08-08 Richard Guenther <rguenther@suse.de>
6691
6692 * tree-ssa-ccp.c (likely_value): Calls are not all varying.
6693 (surely_varying_stmt_p): Calls are varying only if they are
6694 non-builtin and not indirect or have no result.
6695 (ccp_fold): Re-instantiate code before the tuples merge.
6696
6697 2008-08-08 Richard Guenther <rguenther@suse.de>
6698
6699 PR tree-optimization/37056
6700 * gimple.h (gimple_assign_rhs_class): New helper function.
6701 * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
6702 unary operations properly.
6703
6704 2008-08-07 Jan Hubicka <jh@suse.cz>
6705
6706 * i386.h (ix86_size_cost): Declare.
6707 (ix86_cur_cost): New function macro.
6708 * i386.md (peepholes expanding size and splitters): Predicate by
6709 optimize_insn_for_speed_p.
6710 (peepholes reduce size and splitters): Predicate by
6711 optimize_insn_for_size_p.
6712 * i386.c (ix86_size_cost): Rename from ...
6713 (size_cost): This one.
6714 (override_options): Update.
6715 (decide_alg): Likewise.
6716 (ix86_expand_clear): Use RTL profile.
6717 (ix86_pad_returns): Use RTL profile.
6718
6719 2008-08-07 Jan Hubicka <jh@suse.cz>
6720
6721 * recog.c (split_all_insns): Set RTL profile
6722 (peephole2_optimize): Likewise.
6723 * function.c (thread_prologue_and_epilogue_insns): Likewise.
6724 * combine.c (combine_instructions): Likewise.
6725
6726 2008-08-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6727
6728 * c-common.c (c_common_reswords): Also warn about keyword "bool".
6729
6730 2008-08-07 Bob Wilson <bob.wilson@acm.org>
6731
6732 * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming
6733 value in a6 after the set_frame_ptr insn.
6734
6735 2008-08-07 Richard Henderson <rth@redhat.com>
6736
6737 PR debug/37033
6738 * gcc.c (cpp_options): Pass along -g*.
6739
6740 2008-08-07 Joseph Myers <joseph@codesourcery.com>
6741
6742 * config/arm/arm.c (output_move_neon): Update comment describing
6743 big-endian vector layout.
6744 (arm_assemble_integer): Do not handle big-endian NEON vectors
6745 specially.
6746 * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
6747 neon_vget_lane<mode>_sext_internal,
6748 neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
6749 element indices for big-endian.
6750
6751 2008-08-07 Richard Henderson <rth@redhat.com>
6752
6753 * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
6754 * configure, config.in: Rebuild.
6755 * debug.h (dwarf2out_do_cfi_asm): Declare.
6756 * c-cppbuiltin.c (c_cpp_builtins): Use it.
6757 * dwarf2out.c (dwarf2out_do_cfi_asm): New.
6758 (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
6759 dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
6760
6761 2008-08-07 Joseph Myers <joseph@codesourcery.com>
6762
6763 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
6764 movv2si_internal): Combine into mov<mode>_internal.
6765 (movv2si_internal_2): Remove.
6766
6767 2008-08-07 Jan Hubicka <jh@suse.cz>
6768
6769 PR target/37048
6770 * i386.md (single stringop patterns): Enable unconditionally.
6771
6772 2008-08-07 H.J. Lu <hongjiu.lu@intel.com>
6773
6774 PR target/36992
6775 * config/i386/emmintrin.h (_mm_move_epi64): Use __builtin_ia32_movq128.
6776
6777 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
6778 (bdesc_args): Add IX86_BUILTIN_MOVQ128.
6779
6780 * config/i386/sse.md (sse2_movq128): New.
6781
6782 * doc/extend.texi: Document __builtin_ia32_movq128.
6783
6784 2008-08-07 Richard Guenther <rguenther@suse.de>
6785
6786 PR middle-end/37042
6787 * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
6788 pointers can access anything.
6789
6790 2008-08-06 Jan Hubicka <jh@suse.cz>
6791
6792 * optabs.c (emit_unop_insn): Break out to ...
6793 (maybe_emit_unop_insn): ... this one.
6794 (expand_sfix_optab): Use maybe variant.
6795 * optabs.h (maybe_emit_unop_insn): Declare.
6796
6797 * i386.md (mov0 patterns): Enable by default.
6798 (FP conversion expanders): Disable expansion of code expanding
6799 sequences when instruction should be optimized for size.
6800 (single strinop patterns): Enable when optimizing for size.
6801 (string expanders): Disable expanding of code expanding sequences
6802 when optimizning instruction for size.
6803 * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
6804 per BB basis.
6805 (ix86_fp_comparison_sahf_cost): Likewise.
6806 (ix86_expand_branch): Likewise.
6807 (ix86_expand_ashl_const): Likewise.
6808 (ix86_split_ashl): Likewise.
6809 (ix86_expand_strlen): Likewise.
6810 (ix86_emit_fp_unordered_jump): Likewie.
6811
6812 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6813
6814 * c-common.c: Fix typo.
6815 (c_common_reswords): Activate more C++ keyword warnings.
6816
6817 * matrix-reorg.c (compute_offset): Avoid C++ keywords.
6818
6819 2008-08-06 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6820
6821 PR 26785
6822 * diagnostic.c (permerror_at): New.
6823 * toplev.h (permerror_at): Declare.
6824
6825 2008-08-06 Victor Kaplansky <victork@il.ibm.com>
6826 Ira Rosen <irar@il.ibm.com>
6827
6828 * tree-vect-transform.c (vect_model_simple_cost): Return
6829 immediately if stmt is pure SLP.
6830 (vect_model_store_cost): Ditto.
6831 (vect_model_load_cost): Ditto.
6832 (vectorizable_store): Remove PURE_SLP check before call
6833 to vect_model_store_cost.
6834 (vect_model_store_cost): When checking whether stmt describe
6835 strided access, add a check that it is not slp_node.
6836
6837 2008-08-06 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6838
6839 PR 8715
6840 * c-common.c (warn_for_sign_compare): New. Handle separately the
6841 case that 'constant' is zero.
6842 * c-typeck.c (build_binary_op): Move code to c-common.c
6843
6844 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6845
6846 * config/alpha/alpha.c (alpha_preferred_reload_class,
6847 alpha_secondary_reload, alpha_emit_set_const_1, function_value,
6848 alpha_output_mi_thunk_osf): Avoid C++ keywords.
6849 * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
6850 * config/arm/arm.md: Likewise.
6851 * config/avr/avr-protos.h (preferred_reload_class,
6852 test_hard_reg_class, avr_simplify_comparison_p,
6853 out_shift_with_cnt, class_max_nregs): Likewise.
6854 * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
6855 output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
6856 preferred_reload_class, test_hard_reg_class): Likewise.
6857 * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
6858 bfin_memory_move_cost, bfin_secondary_reload,
6859 bfin_output_mi_thunk): Likewise.
6860 * config/crx/crx.c (crx_secondary_reload_class,
6861 crx_memory_move_cost): Likewise.
6862 * config/frv/frv-protos.h (frv_secondary_reload_class,
6863 frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
6864 * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
6865 frv_secondary_reload_class, frv_class_likely_spilled_p,
6866 frv_class_max_nregs): Likewise.
6867 * config/h8300/h8300.c (h8300_classify_operand,
6868 h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
6869 Likewise.
6870 * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
6871 * config/ia64/ia64.c (ia64_preferred_reload_class,
6872 ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
6873 * config/iq2000/iq2000.c (gen_int_relational): Likewise.
6874 * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
6875 Likewise.
6876 * config/m68hc11/m68hc11.c (preferred_reload_class,
6877 m68hc11_memory_move_cost): Likewise.
6878 * config/mcore/mcore.c (mcore_secondary_reload_class,
6879 mcore_reload_class): Likewise.
6880 * config/mips/mips.c (mips_hard_regno_mode_ok_p,
6881 mips_class_max_nregs, mips_cannot_change_mode_class,
6882 mips_preferred_reload_class, mips_secondary_reload_class,
6883 mips_output_mi_thunk): Likewise.
6884 * config/mmix/mmix.c (mmix_preferred_reload_class,
6885 mmix_preferred_output_reload_class, mmix_secondary_reload_class):
6886 Likewise.
6887 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
6888 Likewise.
6889 * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
6890 pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
6891 * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
6892 * config/rs6000/rs6000.c (paired_expand_vector_init,
6893 rs6000_secondary_reload_class, rs6000_output_mi_thunk,
6894 compare_section_name, rs6000_memory_move_cost): Likewise.
6895 * config/s390/s390.c (s390_emit_compare_and_swap,
6896 s390_preferred_reload_class, s390_secondary_reload,
6897 legitimize_pic_address, legitimize_tls_address,
6898 legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
6899 s390_class_max_nregs): Likewise.
6900 * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
6901 * config/s390/s390.md: Likewise.
6902 * config/score/score-protos.h (score_secondary_reload_class,
6903 score_preferred_reload_class): Likewise.
6904 * config/score/score.c (score_preferred_reload_class,
6905 score_secondary_reload_class): Likewise.
6906 * config/score/score3.c (score3_output_mi_thunk,
6907 score3_preferred_reload_class, score3_secondary_reload_class,
6908 score3_hard_regno_mode_ok): Likewise.
6909 * config/score/score3.h (score3_preferred_reload_class,
6910 score3_secondary_reload_class): Likewise.
6911 * config/score/score7.c (score7_output_mi_thunk,
6912 score7_preferred_reload_class, score7_secondary_reload_class,
6913 score7_hard_regno_mode_ok): Likewise.
6914 * config/score/score7.h (score7_preferred_reload_class,
6915 score7_secondary_reload_class): Likewise.
6916 * config/sh/sh.c (prepare_move_operands, output_far_jump,
6917 output_branchy_insn, add_constant, gen_block_redirect,
6918 sh_insn_length_adjustment, sh_cannot_change_mode_class,
6919 sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload): Likewise.
6920 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
6921 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
6922 xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
6923 xstormy16_preferred_reload_class): Likewise.
6924 * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
6925 xtensa_expand_atomic, override_options,
6926 xtensa_preferred_reload_class, xtensa_secondary_reload_class):
6927 Likewise.
6928 * reorg.c (try_merge_delay_insns): Likewise.
6929 * tree.c (merge_dllimport_decl_attributes): Likewise.
6930
6931 * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
6932
6933 2008-08-06 Michael Matz <matz@suse.de>
6934
6935 * Makefile.in (write_entries_to_file): Quote words.
6936 * gengtype.c: (read_input_line): Skip over leading white-space.
6937
6938 2008-08-06 Marc Gauthier <marc@tensilica.com>
6939
6940 * config.gcc: Match more processor names for Xtensa.
6941 * configure.ac: Likewise.
6942 * doc/install.texi (Specific): Likewise.
6943 * configure: Regenerate.
6944
6945 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6946
6947 * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
6948 * calls.c (avoid_likely_spilled_reg): Likewise.
6949 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
6950 * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
6951 * config/i386/i386.c (ix86_expand_special_args_builtin,
6952 ix86_secondary_reload): Likewise.
6953 * except.c (struct eh_region, gen_eh_region_catch,
6954 remove_unreachable_regions, duplicate_eh_regions,
6955 assign_filter_values, build_post_landing_pads,
6956 sjlj_find_directly_reachable_regions, remove_eh_handler,
6957 reachable_next_level, foreach_reachable_handler,
6958 can_throw_internal_1, can_throw_external_1,
6959 collect_one_action_chain): Likewise.
6960 * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
6961 * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
6962 * function.c (update_temp_slot_address, instantiate_new_reg,
6963 instantiate_virtual_regs_in_rtx,
6964 instantiate_virtual_regs_in_insn): Likewise.
6965 * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
6966 * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
6967 gimplify_cleanup_point_expr): Likewise.
6968 * ipa-cp.c (ipcp_lattice_changed): Likewise.
6969 * passes.c (next_pass_1): Likewise.
6970 * print-tree.c (print_node_brief, print_node): Likewise.
6971 * profile.c (branch_prob): Likewise.
6972 * tree-dump.c (dump_register): Likewise.
6973 * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
6974 Likewise.
6975 * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
6976 copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
6977 copy_edges_for_bb, copy_cfg_body, copy_tree_r,
6978 copy_arguments_for_versioning, copy_static_chain): Likewise.
6979 * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
6980 add_new_name_mapping, register_new_name_mapping): Likewise.
6981 * tree-mudflap.c (mf_xform_derefs): Likewise.
6982 * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
6983 get_init_expr, combine_chains): Likewise.
6984 * tree-pretty-print.c (dump_generic_node): Likewise.
6985 * tree-ssa-structalias.c (create_variable_info_for): Likewise.
6986 * tree-vrp.c (simplify_cond_using_ranges): Likewise.
6987 * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
6988 * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
6989
6990 2008-08-06 H.J. Lu <hongjiu.lu@intel.com>
6991
6992 PR middle-end/37010
6993 * calls.c (expand_call): Use the biggest preferred stack
6994 boundary.
6995
6996 2008-08-06 Michael Matz <matz@suse.de>
6997
6998 PR target/36613
6999 * reload.c (push_reload): Merge in,out,in_reg,out_reg members
7000 for reused reload, instead of overwriting them.
7001
7002 2008-08-06 H.J. Lu <hongjiu.lu@intel.com>
7003
7004 PR middle-end/37009
7005 * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
7006 for incoming stack boundary.
7007
7008 * function.c (assign_parm_find_entry_rtl): Update
7009 parm_stack_boundary.
7010
7011 * function.h (rtl_data): Add parm_stack_boundary.
7012
7013 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
7014 parm_stack_boundary for incoming stack boundary.
7015
7016 2008-08-06 Joseph Myers <joseph@codesourcery.com>
7017
7018 * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
7019 for unrepresentable subregs or treat them as equal to other regs
7020 or subregs with the same register number.
7021
7022 2008-08-06 Aldy Hernandez <aldyh@redhat.com>
7023
7024 PR middle-end/35432
7025 * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
7026 if want_value.
7027
7028 2008-08-06 Jan Hubicka <jh@suse.cz>
7029
7030 * predict.c (maybe_hot_frequency_p): When profile is absent, all
7031 frequencies might be hot.
7032
7033 2008-08-06 Andreas Krebbel <krebbel1@de.ibm.com>
7034
7035 * reload.c (find_reloads): Force constants into literal pool
7036 also if they are wrapped in a SUBREG.
7037
7038 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
7039
7040 PR target/35659
7041 * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
7042 * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
7043 Don't allow predicated instructions for data speculation.
7044 * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
7045 declaration.
7046
7047 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
7048
7049 * haifa-sched.c (extend_global): Split to extend_global_data and
7050 extend_region_data. Update all uses.
7051 (extend_all): Rename to extend_block_data.
7052
7053 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
7054
7055 * sched-rgn.c (new_ready): Check if instruction can be
7056 speculatively scheduled before attempting speculation.
7057 (debug_rgn_dependencies): Remove wrongful assert.
7058
7059 2008-08-05 Bob Wilson <bob.wilson@acm.org>
7060
7061 * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
7062
7063 2008-08-05 Bob Wilson <bob.wilson@acm.org>
7064
7065 * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
7066 (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
7067 va_size, and type_size.
7068
7069 2008-08-04 Jason Merrill <jason@redhat.com>
7070
7071 PR c++/37016
7072 * tree-ssa.c (useless_type_conversion_p_1): Call langhook
7073 if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
7074
7075 2008-08-05 Richard Henderson <rth@redhat.com>
7076
7077 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
7078 * configure: Rebuild.
7079
7080 2008-08-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
7081
7082 PR tree-opt/37024
7083 * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
7084 instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
7085 is a conversion.
7086
7087 2008-08-05 Richard Henderson <rth@redhat.com>
7088
7089 * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
7090 * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
7091 * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
7092 * common.opt (fdwarf2-cfi-asm): New.
7093 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
7094 * config.in, configure: Rebuild.
7095 * dwarf2asm.c (dw2_asm_output_data_raw): New.
7096 (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw):
7097 New.
7098 (dw2_force_const_mem): Externalize.
7099 * dwarf2asm.h: Update.
7100 * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
7101 generate a real label.
7102 (output_cfi_directive): New.
7103 (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
7104 (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
7105 (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
7106 and .cfi_lsda.
7107 (dwarf2out_end_epilogue): Emit .cfi_endproc.
7108 (output_loc_operands_raw, output_loc_sequence_raw): New.
7109 (output_cfa_loc_raw): New.
7110
7111 2008-08-05 Paul Brook <paul@codesourcery.com>
7112
7113 * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
7114 * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
7115 (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
7116 (arm_file_start): Add FPUTYPE_VFP3D16. Rename vfp3 to vfpv3.
7117 * config/arm/arm.h (TARGET_VFPD32): Define.
7118 (TARGET_VFP3): Use TARGET_VFPD32.
7119 (fputype): Add FPUTYPE_VFP3D16.
7120 (LAST_VFP_REGNUM): Use TARGET_VFPD32.
7121 * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
7122 * config/arm/arm-cores.def: Add cortex-r4f.
7123 * config/arm/arm-tune.md: Regenerate.
7124
7125 2008-08-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7126
7127 * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
7128 Reword some comments throughout the file.
7129
7130 (MFC_MIN_DMA_LIST_ELEMENTS): New define.
7131 (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
7132 (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of
7133 MFC_MIN_DMA_LIST_ELEMENTS.
7134 (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of
7135 MFC_MAX_DMA_LIST_ELEMENTS.
7136
7137 (MFC_START_ENABLE): Remove PPU-only define.
7138 (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
7139 (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
7140
7141 (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
7142 (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
7143 (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
7144 (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
7145 (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
7146 (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
7147 (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
7148
7149 (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
7150 (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
7151 (mfc_sdcrt, mfc_sdcrtst): Likewise.
7152 (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
7153
7154 (spu_read_machine_status): Fix typo.
7155
7156 2008-08-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7157
7158 * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
7159 SUBREG of multi-word hard register.
7160 * config/spu/spu.c (valid_subreg): Likewise.
7161 (adjust_operand): Handle SUBREGs of multi-word hard registers.
7162
7163 2008-08-04 Richard Guenther <rguenther@suse.de>
7164
7165 * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
7166 the candidate with the stripped base if that base is different
7167 from the original base even for offset zero.
7168
7169 2008-08-04 Richard Guenther <rguenther@suse.de>
7170
7171 PR middle-end/36691
7172 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
7173 check for no_overflow.
7174
7175 2008-08-04 Richard Guenther <rguenther@suse.de>
7176
7177 * tree-vect-transform.c (vectorizable_call): Fix tuplification.
7178
7179 2008-08-04 Paul Brook <paul@codesourcery.com>
7180
7181 * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
7182 (arm_order_regs_for_local_alloc): New function.
7183 * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
7184 prototype.
7185 * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
7186
7187 2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
7188
7189 PR target/37012
7190 * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
7191 instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
7192 (ix86_expand_epilogue): Likewise.
7193
7194 2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
7195
7196 * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
7197 in comments.
7198
7199 2008-08-03 Uros Bizjak <ubizjak@gmail.com>
7200
7201 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
7202 to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
7203 (*movv2sf_internal_rex64): Ditto.
7204
7205 2008-08-03 Jan Hubicka <jh@suse.cz>
7206
7207 * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
7208 expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
7209 * expmed.c (expand_smod_pow2): Likewise.
7210
7211 2008-08-03 Uros Bizjak <ubizjak@gmail.com>
7212
7213 PR target/36992
7214 * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
7215 alternative 0 of operand 1.
7216 (*vec_concatv2di_rex64_sse): Ditto.
7217 (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
7218 of operand 1.
7219 (*sse2_storeq_rex64): Penalize allocation of "r" registers.
7220 * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
7221 of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
7222 (*movv2sf_internal_rex64): Ditto.
7223
7224 2008-08-02 Richard Guenther <rguenther@suse.de>
7225
7226 PR target/35252
7227 * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
7228 (ssedoublesizemode): New mode attribute.
7229 (sse_shufps): Call gen_sse_shufps_v4sf.
7230 (sse_shufps_1): Macroize.
7231 (sse2_shufpd): Call gen_Sse_shufpd_v2df.
7232 (sse2_shufpd_1): Macroize.
7233 (vec_extract_odd, vec_extract_even): New expanders.
7234 (vec_interleave_highv4sf, vec_interleave_lowv4sf,
7235 vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
7236 * i386.c (ix86_expand_vector_init_one_nonzero): Call
7237 gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
7238 (ix86_expand_vector_set): Likewise.
7239 (ix86_expand_reduc_v4sf): Likewise.
7240
7241 2008-08-01 Doug Kwan <dougkwan@google.com>
7242
7243 * matrix-reorg.c: Re-enable all code.
7244 (struct malloc_call_data): Change CALL_STMT to gimple type.
7245 (collect_data_for_malloc_call): Tuplify.
7246 (struct access_site_info): Change STMT to gimple type.
7247 (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
7248 and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
7249 (struct free_info): Change STMT to gimple type.
7250 (struct matrix_access_phi_node): Change PHI to gimple type.
7251 (get_inner_of_cast_expr): Remove.
7252 (may_flatten_matrices_1): Tuplify.
7253 (may_flatten_matrices): Ditto.
7254 (mark_min_matrix_escape_level): Ditto.
7255 (ssa_accessed_in_tree): Refactor statement RHS related code into ...
7256 (ssa_accessed_in_call_rhs): New
7257 (ssa_accessed_in_assign_rhs): New
7258 (record_access_alloc_site_info): Tuplify.
7259 (add_allocation_site): Ditto.
7260 (analyze_matrix_allocation_site): Ditto.
7261 (analyze_transpose): Ditto.
7262 (get_index_from_offset): Ditto.
7263 (update_type_size): Ditto.
7264 (analyze_accesses_for_call_expr): Tuplify and renamed into ...
7265 (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
7266 (analyze_accesses_for_phi_node): Tuplify.
7267 (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
7268 (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
7269 (analyze_matrix_accesses): Tuplify.
7270 (check_var_data): New call-back type for check_var_notmodified_p.
7271 (check_var_notmodified_p): Tuplify and use call-back struct to
7272 return statement found.
7273 (can_calculate_expr_before_stmt): Factor out statement related code
7274 into ...
7275 (can_calculate_stmt_before_stmt): New.
7276 (check_allocation_function): Tuplify.
7277 (find_sites_in_func): Ditto.
7278 (record_all_accesses_in_func): Ditto.
7279 (transform_access_sites): Ditto.
7280 (transform_allocation_sites): Ditto.
7281 (matrix_reorg): Re-enable.
7282 (gate_matrix_reorg): Re-enable.
7283
7284 2008-08-01 Jakub Jelinek <jakub@redhat.com>
7285
7286 * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
7287 for labels for which it hasn't been set yet. If it has been set,
7288 stop walking insns and continue with next worklist item.
7289 (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
7290 if the only BARRIER is at the very end of a function.
7291
7292 2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
7293
7294 * cfgexpand.c (expand_stack_alignment): Assert that
7295 stack_realign_drap and drap_rtx must match.
7296
7297 * function.c (instantiate_new_reg): If DRAP is used to realign
7298 stack, replace virtual_incoming_args_rtx with internal arg
7299 pointer.
7300
7301 2008-08-01 Richard Guenther <rguenther@suse.de>
7302
7303 * tree-ssa-pre.c (fini_pre): Take in_fre parameter. Free
7304 loop information only if we initialized it.
7305 (execute_pre): Call fini_pre with in_fre.
7306 * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
7307 if we do not unroll because we hit max-completely-peeled-insns.
7308 Use our estimation for consistency, do allow shrinking.
7309
7310 2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
7311
7312 * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
7313 with MIN_STACK_BOUNDARY.
7314 (ix86_update_stack_boundary): Likewise.
7315 (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
7316 STACK_BOUNDARY.
7317
7318 * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
7319 (MIN_STACK_BOUNDARY): This.
7320
7321 2008-08-01 Richard Guenther <rguenther@suse.de>
7322
7323 PR middle-end/36997
7324 * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
7325
7326 2008-08-01 Richard Guenther <rguenther@suse.de>
7327
7328 PR tree-optimization/36988
7329 * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
7330 do not matter if that doesn't change volatile qualification.
7331
7332 2008-08-01 Paolo Bonzini <bonzini@gnu.org>
7333
7334 * configure.ac: Do not generate libada-mk. Do not subst
7335 host_cc_for_libada.
7336 * libada-mk.in: Remove.
7337 * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
7338 * configure: Regenerate.
7339
7340 2008-08-01 Basile Starynkevitch <basile@starynkevitch.net>
7341
7342 * tree-pass.h: Added comment about not dumping passes with name
7343 starting with star in struct opt_pass.
7344 * passes.c (register_dump_files_1): Don't do dump for a pass with
7345 name starting with star.
7346 * doc/passes.texi (Pass manager): Mention pass names and special
7347 meaning of star prefix to avoid dump.
7348
7349 2008-07-31 Adam Nemet <anemet@caviumnetworks.com>
7350
7351 * config.gcc (mipsisa64r2*-*-linux*): New configuration. Set ISA
7352 to MIPS64r2.
7353 * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
7354 (ISA_MIPS64R2): New macro.
7355 (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
7356 (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
7357 ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
7358 ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
7359 ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
7360 ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
7361 ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
7362 (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
7363 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
7364 Move up to keep list alphabetically sorted.
7365 (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
7366 * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
7367 processor.
7368 * doc/invoke.texi (MIPS Options): Add -mips64r2.
7369 (-march=@var{arch}): Add mips64r2.
7370
7371 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
7372
7373 * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
7374
7375 2008-07-31 Steve Ellcey <sje@cup.hp.com>
7376
7377 * expr.c (expand_assignment): Check for complete type.
7378
7379 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
7380
7381 PR debug/36977
7382 * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
7383
7384 * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
7385 for stack alignment.
7386
7387 * function.h (rtl_data): Add stack_realign_tried. Update comments.
7388
7389 2008-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
7390
7391 * config/sh/sh.c (sh_canonical_va_list_type): Remove.
7392 (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
7393
7394 2008-07-31 Jakub Jelinek <jakub@redhat.com>
7395
7396 PR rtl-optimization/36419
7397 * dwarf2out.c (barrier_args_size): New variable.
7398 (compute_barrier_args_size, compute_barrier_args_size_1): New
7399 functions.
7400 (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
7401 if not called yet in the current function, use barrier_args_size
7402 array to find the new args_size value.
7403 (dwarf2out_frame_debug): Free and clear barrier_args_size.
7404
7405 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
7406
7407 PR debug/36980
7408 * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
7409 rule 19.
7410
7411 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
7412
7413 PR debug/36976
7414 * dwarf2out.c (dwarf2out_args_size_adjust): New.
7415 (dwarf2out_stack_adjust): Use it.
7416 (dwarf2out_frame_debug_expr): Likewise.
7417
7418 2008-07-31 Richard Guenther <rguenther@suse.de>
7419
7420 PR tree-optimization/36978
7421 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
7422 the generated condition.
7423
7424 2008-07-31 Richard Guenther <rguenther@suse.de>
7425
7426 * passes.c (init_optimization_passes): Always call
7427 pass_early_warn_uninitialized.
7428 * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
7429 * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
7430 * doc/passes.texi (Warn for uninitialized variables): Adjust.
7431
7432 2008-07-31 Jakub Jelinek <jakub@redhat.com>
7433
7434 PR c/36970
7435 * builtins.c (maybe_emit_free_warning): New function.
7436 (expand_builtin): Process BUILT_IN_FREE even at -O0. Call
7437 maybe_emit_free_warning for BUILT_IN_FREE.
7438
7439 PR debug/36278
7440 * dwarf2out.c (get_context_die): New function.
7441 (force_decl_die, force_type_die): Use it.
7442 (dwarf2out_imported_module_or_decl): Likewise. If base_type_die
7443 returns NULL, force generation of DW_TAG_typedef and put that into
7444 DW_AT_import.
7445
7446 PR preprocessor/36649
7447 * c-pch.c (c_common_read_pch): Save and restore
7448 line_table->trace_includes across PCH restore.
7449
7450 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
7451
7452 PR ada/36554
7453 * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
7454
7455 2008-07-30 Rafael Ãvila de Espíndola <espindola@google.com>
7456
7457 PR 36974
7458 * final.c (call_from_call_insn): Handle COND_EXEC.
7459
7460 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
7461
7462 * builtins.c (std_gimplify_va_arg_expr): Replace
7463 PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
7464 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
7465
7466 2008-07-30 Joey Ye <joey.ye@intel.com>
7467 H.J. Lu <hongjiu.lu@intel.com>
7468
7469 * builtins.c (expand_builtin_setjmp_receiver): Replace
7470 virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
7471 (expand_builtin_apply_args_1): Likewise.
7472 (expand_builtin_longjmp): Need DRAP for stack alignment.
7473 (expand_builtin_apply): Likewise.
7474
7475 * caller-save.c (setup_save_areas): Call assign_stack_local_1
7476 instead of assign_stack_local to allow alignment reduction.
7477
7478 * calls.c (emit_call_1): Need DRAP for stack alignment if
7479 return pops.
7480 (expand_call): Replace virtual_incoming_args_rtx with
7481 crtl->args.internal_arg_pointer.
7482 * stmt.c (expand_nl_goto_receiver): Likewise.
7483
7484 * cfgexpand.c (get_decl_align_unit): Estimate stack variable
7485 alignment and store to stack_alignment_estimated and
7486 max_used_stack_slot_alignment.
7487 (expand_one_var): Likewise.
7488 (expand_stack_alignment): New function.
7489 (tree_expand_cfg): Initialize max_used_stack_slot_alignment
7490 and stack_alignment_estimated fields in rtl_data. Call
7491 expand_stack_alignment at end.
7492
7493 * defaults.h (INCOMING_STACK_BOUNDARY): New.
7494 (MAX_STACK_ALIGNMENT): Likewise.
7495 (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
7496 (SUPPORTS_STACK_ALIGNMENT): Likewise.
7497
7498 * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
7499 stack alignment when generating virtual registers.
7500
7501 * function.c (assign_stack_local): Renamed to ...
7502 (assign_stack_local_1): This. Add a parameter to indicate
7503 if it is OK to reduce alignment.
7504 (assign_stack_local): Use it.
7505 (instantiate_new_reg): Instantiate virtual incoming args rtx
7506 to vDRAP if stack realignment and DRAP is needed.
7507 (assign_parms): Collect parameter/return type alignment and
7508 contribute to stack_alignment_estimated.
7509 (locate_and_pad_parm): Likewise.
7510 (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
7511 with crtl->args.internal_arg_pointer.
7512
7513 * function.h (rtl_data): Add new field drap_reg,
7514 max_used_stack_slot_alignment, stack_alignment_estimated,
7515 stack_realign_needed, need_drap, stack_realign_processed and
7516 stack_realign_finalized.
7517 (stack_realign_fp): New macro.
7518 (stack_realign_drap): Likewise.
7519
7520 * global.c (compute_regsets): Frame pointer is needed when
7521 stack is realigned. Can eliminate frame pointer when stack is
7522 realigned and dynamic realigned argument pointer isn't used.
7523
7524 * reload1.c (update_eliminables): Frame pointer is needed
7525 when stack is realigned.
7526 (init_elim_table): Can eliminate frame pointer when stack is
7527 realigned and dynamic realigned argument pointer isn't used.
7528
7529 * rtl.h (assign_stack_local_1): Declare new funtion.
7530
7531 * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
7532 (TARGET_GET_DRAP_RTX): Likewise.
7533 (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
7534 TARGET_GET_DRAP_RTX.
7535
7536 * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
7537
7538 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
7539 STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
7540
7541 2008-07-30 Xuepeng Guo <xuepeng.guo@intel.com>
7542 H.J. Lu <hongjiu.lu@intel.com>
7543
7544 * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
7545 vdrap_reg, stack_realign and drap_reg_saved.
7546 (add_cfi): Don't allow redefining CFA when DRAP is used.
7547 (reg_save): Handle stack alignment.
7548 (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
7549 alignment. Don't generate DWARF information for (set fp sp)
7550 when DRAP is used.
7551 (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
7552 to INVALID_REGNUM.
7553 (int_loc_descriptor): Move prototype forward. Also define if
7554 DWARF2_UNWIND_INFO is true.
7555 (output_cfa_loc): Handle DW_CFA_expression.
7556 (build_cfa_aligned_loc): New.
7557 (based_loc_descr): Update assert for stack realign. For local
7558 variables, use sp+offset when stack is aligned without drap and
7559 fp+offset when stack is aligned with drap. For arguments, use
7560 cfa+offset when drap is used to align stack.
7561
7562 2008-07-30 Joey Ye <joey.ye@intel.com>
7563 H.J. Lu <hongjiu.lu@intel.com>
7564
7565 * config/i386/i386.c (ix86_force_align_arg_pointer_string):
7566 Break long line.
7567 (ix86_gen_andsp): New.
7568 (ix86_user_incoming_stack_boundary): Likewise.
7569 (ix86_default_incoming_stack_boundary): Likewise.
7570 (ix86_incoming_stack_boundary): Likewise.
7571 (ix86_can_eliminate): Likewise.
7572 (find_drap_reg): Likewise.
7573 (ix86_update_stack_boundary): Likewise.
7574 (ix86_get_drap_rtx): Likewise.
7575 (ix86_finalize_stack_realign_flags): Likewise.
7576 (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
7577 (TARGET_GET_DRAP_RTX): Likewise.
7578 (override_options): Overide option value for new options.
7579 (ix86_function_ok_for_sibcall): Remove check for
7580 force_align_arg_pointer.
7581 (ix86_handle_cconv_attribute): Likewise.
7582 (ix86_function_regparm): Likewise.
7583 (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
7584 (ix86_va_start): Replace virtual_incoming_args_rtx with
7585 crtl->args.internal_arg_pointer.
7586 (ix86_select_alt_pic_regnum): Check DRAP register.
7587 (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
7588 (ix86_compute_frame_layout): Compute frame layout wrt stack
7589 realignment.
7590 (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
7591 (ix86_expand_prologue): Decide if stack realignment is needed
7592 and generate prologue code accordingly.
7593 (ix86_expand_epilogue): Generate epilogue code wrt stack
7594 realignment is really needed or not.
7595
7596 * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
7597 (ABI_STACK_BOUNDARY): Likewise.
7598 (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
7599 (STACK_REALIGN_DEFAULT): Likewise.
7600 (INCOMING_STACK_BOUNDARY): Likewise.
7601 (MAX_STACK_ALIGNMENT): Likewise.
7602 (ix86_incoming_stack_boundary): Likewise.
7603 (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
7604 (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
7605 (CAN_ELIMINATE): Defined with ix86_can_eliminate.
7606 (machine_function): Remove force_align_arg_pointer.
7607
7608 * config/i386/i386.md (BX_REG): New.
7609 (R13_REG): Likewise.
7610
7611 * config/i386/i386.opt (mforce_drap): New.
7612 (mincoming-stack-boundary): Likewise.
7613 (mstackrealign): Add Init(-1).
7614
7615 * config/i386/i386-protos.h (ix86_can_eliminate): New
7616
7617 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
7618
7619 * doc/extend.texi: Update force_align_arg_pointer.
7620
7621 * doc/invoke.texi: Document -mincoming-stack-boundary. Update
7622 -mstackrealign.
7623
7624 * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
7625 (INCOMING_STACK_BOUNDARY): Likewise.
7626 (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
7627 (TARGET_GET_DRAP_RTX): Likewise.
7628
7629 2008-07-30 Andreas Schwab <schwab@suse.de>
7630
7631 PR rtl-optimization/36929
7632 * dse.c (replace_inc_dec): Use emit_insn_before instead of
7633 add_insn_before and fix argument order.
7634 (replace_inc_dec_mem): Handle NULL rtx.
7635
7636 2008-07-30 Andrew Jenner <andrew@codesourcery.com>
7637
7638 * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
7639 function.
7640 (arm_compute_initial_elimination_offset): Use it.
7641 (arm_compute_save_reg_mask): Include static chain save slot when
7642 calculating alignment.
7643 (arm_get_frame_offsets): Ditto.
7644 (thumb1_compute_save_reg_mask): Ensure we have a low register saved
7645 that we can use to decrement the stack when the stack decrement
7646 could be too big for an immediate value in a single insn.
7647 (thumb1_expand_prologue): Avoid using r12 for stack decrement.
7648
7649 2008-07-30 Richard Guenther <rguenther@suse.de>
7650
7651 PR tree-optimization/36967
7652 * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
7653 Release defs of statements we remove.
7654
7655 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
7656
7657 * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
7658 instead of NULL_RTVEC.
7659
7660 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
7661
7662 PR target/35866
7663
7664 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
7665 vector modes.
7666
7667 2008-07-30 Rafael Ãvila de Espíndola <espindola@google.com>
7668
7669 * final.c (call_from_call_insn): New.
7670 (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
7671
7672 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
7673
7674 * configure.ac: Substitute ADA_CFLAGS.
7675 * configure: Regenerate.
7676 * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
7677 * Makefile.in: Remove mention of X_* variables.
7678 * config/pa/x-ada-hpux10: Remove.
7679 * config/pa/x-ada: Remove.
7680
7681 * doc/fragments.texi: Update.
7682
7683 2008-07-30 Olivier Hainque <hainque@adacore.com>
7684
7685 * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
7686 * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
7687 __dso_handle explicitly here.
7688
7689 2008-07-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7690
7691 PR 34389
7692 * c-typeck.c (build_binary_op): Encapsulate code into...
7693 * c-common.c (shorten_binary_op): ...this new function.
7694 (conversion_warning): Use the new function. Handle non-negative
7695 constant in bitwise-and.
7696 * c-common.h (shorten_binary_op): Declare.
7697
7698 2008-07-30 Olivier Hainque <hainque@adacore.com>
7699
7700 * scan.c (make_sstring_space): Add explicit conversions of
7701 allocator's return value.
7702 * fix-header.c (recognized_function): Likewise.
7703
7704 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7705
7706 * doc/cpp.texi: Update to GFDL 1.2.
7707 * doc/gcc.texi: Do not list GPL as Invariant Section.
7708 * doc/gccint.texi: Likewise. Update copyright years.
7709 * doc/install.texi: Update copyright years.
7710
7711 2008-07-30 Alan Modra <amodra@bigpond.net.au>
7712
7713 PR target/36955
7714 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
7715 a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
7716
7717 2008-07-29 Jan Hubicka <jh@suse.cz>
7718
7719 * c-decl.c (merge_decls): Do not handle DECL_INLINE.
7720 (grokdeclarator): Likewise.
7721 * langhooks.c (lhd_warn_unused_global_decl): Use
7722 DECL_DECLARED_INLINE_P.
7723 * print-tree.c (print_node): Remove DECL_INLINE check.
7724
7725 2008-07-29 Richard Guenther <rguenther@suse.de>
7726
7727 PR tree-optimization/36945
7728 * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
7729 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
7730 Record invariant addresses un-decomposed.
7731 (copy_reference_ops_from_call): Record reference call
7732 arguments properly. Simplify.
7733 * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
7734 helper split out from ...
7735 (create_component_ref_by_pieces): ... here. Simplify.
7736 Prepare for recursive invocation for call arguments.
7737 (create_expression_by_pieces): Adjust call to
7738 create_component_ref_by_pieces.
7739 (compute_avail): Process operand 2 of reference ops.
7740
7741 2008-07-29 Richard Guenther <rguenther@suse.de>
7742
7743 * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
7744
7745 2008-07-29 Jakub Jelinek <jakub@redhat.com>
7746
7747 * c-format.c (check_format_types): Revert unwanted checkin.
7748
7749 2008-07-29 Jan Hubicka <jh@suse.cz>
7750
7751 * flags.h (flag_really_no_inline): Remove.
7752 * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
7753 * toplev.c (flag_really_no_inline): Remove.
7754 * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
7755 * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
7756 (cgraph_decide_inlining_incrementally): Likewise.
7757 (compute_inline_parameters): Likewise.
7758 * opts.c (decode_options): Simplify.
7759 * c-opts.c (c_common_post_options): Do not set flag_no_inline.
7760 * common.opt (finline): Initialize to 1.
7761 * tree-inline.c (inlinable_function_p): Check flag_no_inline.
7762
7763 2008-07-29 Jan Hubicka <jh@suse.cz>
7764
7765 * predict.c (always_optimize_for_size_p): New function.
7766 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
7767 optimize_edge_for_size_p, optimize_edge_for_speed_p,
7768 optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
7769 functions.
7770 (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
7771 * function.c (prepare_function_start): Set default profile.
7772 * function.h (rtl_data): Add maybe_hot_insn_p.
7773 * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
7774 (construct_exit_block): Likewise.
7775 (tree_expand_cfg): Likewise.
7776 * basic-block.h
7777 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
7778 optimize_edge_for_size_p, optimize_edge_for_speed_p,
7779 optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
7780 (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
7781 Declare.
7782
7783 2008-07-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7784
7785 PR 34985
7786 * c-decl.c (merge_decls): Merge USED flags.
7787
7788 2008-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
7789
7790 * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
7791 valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
7792 next_stack, lab_false and lab_over trees.
7793
7794 2008-07-28 Richard Guenther <rguenther@suse.de>
7795
7796 PR tree-optimization/36957
7797 * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
7798 (useless_type_conversion_p): Remove.
7799 (types_compatible_p): Remove.
7800 * gimple.h (tree_ssa_useless_type_conversion): Declare.
7801 (useless_type_conversion_p): Declare.
7802 (types_compatible_p): Declare.
7803 (gimple_expr_type): Return the base type only if it is
7804 trivially convertible to the subtype.
7805
7806 2008-07-28 Andreas Tobler <a.tobler@schweiz.org>
7807
7808 * configure.ac: Use the m4_do macro to concatenate the warnings into
7809 one string in ACX_PROG_CC_WARNING_OPTS,
7810 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and
7811 ACX_PROG_CC_WARNINGS_ARE_ERRORS.
7812 * configure: Regenerate.
7813
7814 2008-07-28 Richard Guenther <rguenther@suse.de>
7815
7816 * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
7817 (insert_fake_stores): Remove.
7818 (realify_fake_stores): Likewise.
7819 (execute_pre): Remove dead code.
7820 * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
7821 (find_func_aliases): Deal with it here instead.
7822 Re-enable gcc_unreachable call.
7823
7824 2008-07-28 Richard Guenther <rguenther@suse.de>
7825
7826 Merge from gimple-tuples-branch.
7827
7828 * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
7829 * gimple.def: New file.
7830 * gsstruct.def: Likewise.
7831 * gimple-iterator.c: Likewise.
7832 * gimple-pretty-print.c: Likewise.
7833 * tree-gimple.c: Removed. Merged into ...
7834 * gimple.c: ... here. New file.
7835 * tree-gimple.h: Removed. Merged into ...
7836 * gimple.h: ... here. New file.
7837
7838 * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
7839 * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
7840 --enable-checking=gimple flag.
7841 * config.in: Likewise.
7842 * configure: Regenerated.
7843
7844 * tree-ssa-operands.h: Tuplified.
7845 * tree-vrp.c: Likewise.
7846 * tree-loop-linear.c: Likewise.
7847 * tree-into-ssa.c: Likewise.
7848 * tree-ssa-loop-im.c: Likewise.
7849 * tree-dump.c: Likewise.
7850 * tree-complex.c: Likewise.
7851 * cgraphbuild.c: Likewise.
7852 * tree-ssa-threadupdate.c: Likewise.
7853 * tree-ssa-loop-niter.c: Likewise.
7854 * tree-pretty-print.c: Likewise.
7855 * tracer.c: Likewise.
7856 * gengtype.c: Likewise.
7857 * tree-loop-distribution.c: Likewise.
7858 * tree-ssa-loop-unswitch.c: Likewise.
7859 * cgraph.c: Likewise.
7860 * cgraph.h: Likewise.
7861 * tree-ssa-loop-manip.c: Likewise.
7862 * value-prof.c: Likewise.
7863 * tree-ssa-loop-ch.c: Likewise.
7864 * tree-tailcall.c: Likewise.
7865 * value-prof.h: Likewise.
7866 * tree.c: Likewise.
7867 * tree.h: Likewise.
7868 * tree-pass.h: Likewise.
7869 * ipa-cp.c: Likewise.
7870 * tree-scalar-evolution.c: Likewise.
7871 * tree-scalar-evolution.h: Likewise.
7872 * target.h: Likewise.
7873 * lambda-mat.c: Likewise.
7874 * tree-phinodes.c: Likewise.
7875 * diagnostic.h: Likewise.
7876 * builtins.c: Likewise.
7877 * tree-ssa-alias-warnings.c: Likewise.
7878 * cfghooks.c: Likewise.
7879 * fold-const.c: Likewise.
7880 * cfghooks.h: Likewise.
7881 * omp-low.c: Likewise.
7882 * tree-ssa-dse.c: Likewise.
7883 * ipa-reference.c: Likewise.
7884 * tree-ssa-uncprop.c: Likewise.
7885 * toplev.c: Likewise.
7886 * tree-gimple.c: Likewise.
7887 * tree-gimple.h: Likewise.
7888 * tree-chrec.c: Likewise.
7889 * tree-chrec.h: Likewise.
7890 * tree-ssa-sccvn.c: Likewise.
7891 * tree-ssa-sccvn.h: Likewise.
7892 * cgraphunit.c: Likewise.
7893 * tree-ssa-copyrename.c: Likewise.
7894 * tree-ssa-ccp.c: Likewise.
7895 * tree-ssa-loop-ivopts.c: Likewise.
7896 * tree-nomudflap.c: Likewise.
7897 * tree-call-cdce.c: Likewise.
7898 * ipa-pure-const.c: Likewise.
7899 * c-format.c: Likewise.
7900 * tree-stdarg.c: Likewise.
7901 * tree-ssa-math-opts.c: Likewise.
7902 * tree-ssa-dom.c: Likewise.
7903 * tree-nrv.c: Likewise.
7904 * tree-ssa-propagate.c: Likewise.
7905 * ipa-utils.c: Likewise.
7906 * tree-ssa-propagate.h: Likewise.
7907 * tree-ssa-alias.c: Likewise.
7908 * gimple-low.c: Likewise.
7909 * tree-ssa-sink.c: Likewise.
7910 * ipa-inline.c: Likewise.
7911 * c-semantics.c: Likewise.
7912 * dwarf2out.c: Likewise.
7913 * expr.c: Likewise.
7914 * tree-ssa-loop-ivcanon.c: Likewise.
7915 * predict.c: Likewise.
7916 * tree-ssa-loop.c: Likewise.
7917 * tree-parloops.c: Likewise.
7918 * tree-ssa-address.c: Likewise.
7919 * tree-ssa-ifcombine.c: Likewise.
7920 * matrix-reorg.c: Likewise.
7921 * c-decl.c: Likewise.
7922 * tree-eh.c: Likewise.
7923 * c-pretty-print.c: Likewise.
7924 * lambda-trans.c: Likewise.
7925 * function.c: Likewise.
7926 * langhooks.c: Likewise.
7927 * ebitmap.h: Likewise.
7928 * tree-vectorizer.c: Likewise.
7929 * function.h: Likewise.
7930 * langhooks.h: Likewise.
7931 * tree-vectorizer.h: Likewise.
7932 * ipa-type-escape.c: Likewise.
7933 * ipa-type-escape.h: Likewise.
7934 * domwalk.c: Likewise.
7935 * tree-if-conv.c: Likewise.
7936 * profile.c: Likewise.
7937 * domwalk.h: Likewise.
7938 * tree-data-ref.c: Likewise.
7939 * tree-data-ref.h: Likewise.
7940 * tree-flow-inline.h: Likewise.
7941 * tree-affine.c: Likewise.
7942 * tree-vect-analyze.c: Likewise.
7943 * c-typeck.c: Likewise.
7944 * gimplify.c: Likewise.
7945 * coretypes.h: Likewise.
7946 * tree-ssa-phiopt.c: Likewise.
7947 * calls.c: Likewise.
7948 * tree-ssa-coalesce.c: Likewise.
7949 * tree.def: Likewise.
7950 * tree-dfa.c: Likewise.
7951 * except.c: Likewise.
7952 * except.h: Likewise.
7953 * cfgexpand.c: Likewise.
7954 * tree-cfgcleanup.c: Likewise.
7955 * tree-ssa-pre.c: Likewise.
7956 * tree-ssa-live.c: Likewise.
7957 * tree-sra.c: Likewise.
7958 * tree-ssa-live.h: Likewise.
7959 * tree-predcom.c: Likewise.
7960 * lambda.h: Likewise.
7961 * tree-mudflap.c: Likewise.
7962 * ipa-prop.c: Likewise.
7963 * print-tree.c: Likewise.
7964 * tree-ssa-copy.c: Likewise.
7965 * ipa-prop.h: Likewise.
7966 * tree-ssa-forwprop.c: Likewise.
7967 * ggc-page.c: Likewise.
7968 * c-omp.c: Likewise.
7969 * tree-ssa-dce.c: Likewise.
7970 * tree-vect-patterns.c: Likewise.
7971 * tree-ssa-ter.c: Likewise.
7972 * tree-nested.c: Likewise.
7973 * tree-ssa.c: Likewise.
7974 * lambda-code.c: Likewise.
7975 * tree-ssa-loop-prefetch.c: Likewise.
7976 * tree-inline.c: Likewise.
7977 * tree-inline.h: Likewise.
7978 * tree-iterator.c: Likewise.
7979 * tree-optimize.c: Likewise.
7980 * tree-ssa-phiprop.c: Likewise.
7981 * tree-vect-transform.c: Likewise.
7982 * tree-object-size.c: Likewise.
7983 * tree-outof-ssa.c: Likewise.
7984 * cfgloop.c: Likewise.
7985 * system.h: Likewise.
7986 * tree-profile.c: Likewise.
7987 * cfgloop.h: Likewise.
7988 * c-gimplify.c: Likewise.
7989 * c-common.c: Likewise.
7990 * tree-vect-generic.c: Likewise.
7991 * tree-flow.h: Likewise.
7992 * c-common.h: Likewise.
7993 * basic-block.h: Likewise.
7994 * tree-ssa-structalias.c: Likewise.
7995 * tree-switch-conversion.c: Likewise.
7996 * tree-ssa-structalias.h: Likewise.
7997 * tree-cfg.c: Likewise.
7998 * passes.c: Likewise.
7999 * ipa-struct-reorg.c: Likewise.
8000 * ipa-struct-reorg.h: Likewise.
8001 * tree-ssa-reassoc.c: Likewise.
8002 * cfgrtl.c: Likewise.
8003 * varpool.c: Likewise.
8004 * stmt.c: Likewise.
8005 * tree-ssanames.c: Likewise.
8006 * tree-ssa-threadedge.c: Likewise.
8007 * langhooks-def.h: Likewise.
8008 * tree-ssa-operands.c: Likewise.
8009 * config/alpha/alpha.c: Likewise.
8010 * config/frv/frv.c: Likewise.
8011 * config/s390/s390.c: Likewise.
8012 * config/m32c/m32c.c: Likewise.
8013 * config/m32c/m32c-protos.h: Likewise.
8014 * config/spu/spu.c: Likewise.
8015 * config/sparc/sparc.c: Likewise.
8016 * config/i386/i386.c: Likewise.
8017 * config/sh/sh.c: Likewise.
8018 * config/xtensa/xtensa.c: Likewise.
8019 * config/stormy16/stormy16.c: Likewise.
8020 * config/ia64/ia64.c: Likewise.
8021 * config/rs6000/rs6000.c: Likewise.
8022 * config/pa/pa.c: Likewise.
8023 * config/mips/mips.c: Likewise.
8024
8025 2008-07-28 Simon Baldwin <simonb@google.com>
8026
8027 * c-pragma.c (handle_pragma_message): New function.
8028 (init_pragma): Register handle_pragma_message.
8029 * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
8030 documentation.
8031
8032 2008-07-27 Victor Kaplansky <victork@il.ibm.com>
8033
8034 PR tree-optimization/35252
8035 * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
8036 REALPART_EXPR to be considered as same load operation.
8037
8038 2008-07-27 Eric Botcazou <ebotcazou@adacore.com>
8039
8040 PR tree-optimization/36830
8041 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
8042 (expressions_equal_p): Return false if only one operand is null.
8043
8044 2008-07-26 Gerald Pfeifer <gerald@pfeifer.com>
8045
8046 * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
8047 version requirements.
8048
8049 2008-07-26 Olivier Hainque <hainque@adacore.com>
8050
8051 * collect2.c (symkind): New enum. Symbol kinds we care about.
8052 (is_ctor_dtor): Return symkind instead of int. Adjust prototype,
8053 code and head comment accordingly.
8054 (scan_prog_file): Use symkind names instead of bare integers.
8055
8056 2008-07-25 Jan Hubicka <jh@suse.cz>
8057
8058 * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
8059 DECL_INLINE.
8060 * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
8061 (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
8062 * dojump.c (clear_pending_stack_adjust): Likewise.
8063 * print-tree.c (print_node): Ignore DECL_INLINE.
8064 * tree-inline.c (inlinable_function_p): Likewise.
8065
8066 2008-07-25 Michael Meissner <gnu@the-meissners.org>
8067
8068 * doc/extend.texi (hot attribute): Document that the hot attribute
8069 turns on -O3 for some ports.
8070 (cold attribute): Document that the cold attribute turns on -Os
8071 for some ports
8072
8073 * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
8074 reflect function specific option support.
8075
8076 * target.h (struct target_option_hooks): Add fields to say whether
8077 the cold attribute implies -Os and the hot attribute implies -O3.
8078
8079 * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
8080 By default, do not turn on -Os for cold functions.
8081 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
8082 not turn on -O3 for hot functions.
8083
8084 * c-common.c (handle_hot_attribute): Use target hook to determine
8085 if hot functions should enable -O3.
8086 (handle_cold_attribute): Use target hook to determine if cold
8087 functions should enable -Os.
8088
8089 * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
8090 (override_options): Move disable scheduling to
8091 optimization_options.
8092 (optimization_options): Disable scheduling here, not
8093 override_options.
8094 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
8095 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
8096
8097 * config/ia64/ia64.c (ia64_override_options): Move setting
8098 scheduling flags to ia64_optimization_options.
8099 (ia64_optimization_options): Disable scheduling options here, and
8100 not in ia64_override_options.
8101 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
8102 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
8103
8104 2008-07-25 H.J. Lu <hongjiu.lu@intel.com>
8105
8106 PR target/36936
8107 * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
8108
8109 2008-07-25 Martin Jambor <mjambor@suse.cz>
8110
8111 PR tree-optimization/36926
8112 * ipa-prop.c (ipa_analyze_call_uses): Call
8113 ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
8114
8115 2008-07-25 Joseph Myers <joseph@codesourcery.com>
8116
8117 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
8118 movv2si_internal): Add mem = reg alternative.
8119
8120 2008-07-25 Andreas Tobler <a.tobler@schweiz.org>
8121
8122 PR bootstrap/36918
8123 * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
8124 DEFAULT_PCC_STRUCT_RETURN to 127.
8125
8126 2008-07-24 Jan Hubicka <jh@suse.cz>
8127
8128 * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
8129 (build_cgraph_edges): Likewise.
8130 * cgraph.c (cgraph_node): Do not update assembler hash.
8131 (cgraph_remove_node): Drop non-unit-at-a-time code.
8132 * tree-pass.h (pass_O0_always_inline): Remove.
8133 * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
8134 * toplev.c (process_options): Flag unit-at-a-time does not imply
8135 no section anchors.
8136 * cgraphunit.c: Update comments.
8137 (decide_is_function_needed): Drop non-unit-at-a-time mode.
8138 (cgraph_assemble_pending_functions): Remove.
8139 (cgraph_reset_node): Drop non-unit-at-a-time code.
8140 (cgraph_finalize_function): Likewise.
8141 (cgraph_analyze_function): Likewise.
8142 (cgraph_finalize_compilation_unit): Likewise.
8143 (cgraph_expand_function): Likewise.
8144 (cgraph_optimize): Likesise.
8145 (save_inline_function_body): Likewise.
8146 * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
8147 * tree-ssa-alias.c (maybe_be_aliased): Likewise.
8148 * ipa-inline.c: Update comments.
8149 (enum inlining_mode): remove INLINE_SPEED.
8150 (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
8151 (cgraph_mark_inline_edge): Likewise.
8152 (try_inline): Likewise.
8153 (cgraph_decide_inlining_incrementally): Likewise.
8154 (cgraph_gate_inlining): Remove.
8155 (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
8156 (cgraph_gate_early_inlining): Likewise.
8157 (gate_inline_passes): Remove.
8158 (pass_inline_parameters, pass_ipa_inline): Remove gates.
8159 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
8160 pass_O0_always_inline): Remove.
8161 * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
8162 * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
8163 * opts.c (no_unit_at_a_time_default): Remove.
8164 (decode_options): Remove flag_unit_at_a_time reset and warning.
8165 * opts.h (no_unit_at_a_time_default): Remove.
8166 * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
8167 early in GNU dialect.
8168 (merge_decls): Update comment; drop unit-at-a-time check.
8169 (finish_decl): Likewise.
8170 (grok_declaration): Remove flag_inline_trees code.
8171 (finish_functions): Return on function returning non-void on all
8172 statics.
8173 * ipa-tye-escape.c (gate_type_escape_vars): Remove.
8174 * cfgexpand.c (expand_one_static_var): Remove.
8175 (expand_one_var): Remove expand_one_static_var call.
8176 (expand_used_vars_for_block): Remove flag_unit_a_time check.
8177 * c-opts.c (c_common_post_options): Remove flag_inline_trees code
8178 and flag_unit_at_a-time compatibility checks.
8179 * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
8180 * tree-inline.c (flag_inline_trees): Remove.
8181 (inlinable_function_p): Don't check it.
8182 (expand_call_inline): Remove non-unit-at-a-time code.
8183 * tree-inline.h (flag_inline_trees): Remove.
8184 * tree-optimize.c (execute_early_local_optimizations): Remove
8185 unit-at-a-time checks.
8186 (tree_rest_of_compilation): Likewise.
8187 * combine.c (setup_incoming_promotions): Likewise.
8188 * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
8189 * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
8190 * passes.c (pass_inline_parameters): Update comments; remove
8191 O0_alwaysinline pass.
8192 (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
8193 (execute_one_pass): Likewise.
8194 * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
8195 (ix86_function_sseregparm): Likewise.
8196 * arm.c (arm_function_in_section_p): Likewise.
8197 * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
8198 * varpool.c: Update comments.
8199 (decide_is_variable_needed): Remove unit-at-a-time checks.
8200 (varpool_finalize_decl): Likewise.
8201
8202 2008-07-24 Kaz Kojima <kkojima@gcc.gnu.org>
8203
8204 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
8205 to 2 instead of -1.
8206 (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
8207
8208 2008-07-24 Kai Tietz <kai.tietz@onevision.com>
8209
8210 * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
8211 imp symbol extension.
8212
8213 2008-07-23 Ian Lance Taylor <iant@google.com>
8214
8215 * tree-vrp.c (infer_value_range): Ignore asm statements when
8216 looking for memory accesses for -fdelete-null-pointer-checks.
8217
8218 2008-07-24 Ben Elliston <bje@au.ibm.com>
8219
8220 * config/spu/spu-c.c (__vector_keyword): New variable.
8221 (vector_keyword): Likewise.
8222 (spu_categorize_keyword): New function.
8223 (spu_macro_to_expand): Likewise.
8224 (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
8225 compiling an ISO C dialect.
8226
8227 2008-07-24 Ben Elliston <bje@au.ibm.com>
8228
8229 * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
8230 conventional usage.
8231
8232 2008-07-23 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
8233
8234 * configure: Regenerate.
8235 * configure.ac: Require texinfo 4.7.
8236 * doc/install.texi: Document texinfo 4.7 requirement.
8237
8238 2008-07-23 Martin Jambor <mjambor@suse.cz>
8239
8240 * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
8241 rather than for DECL_SAVED_TREE.
8242 * ipa-prop.c: Include diagnostic.h.
8243 (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
8244 thoroughly.
8245 (ipa_detect_param_modifications): Function rewritten from scratch.
8246 (ipa_compute_jump_functions): Changed accesses to modification flags.
8247 (ipa_free_node_params_substructures): Update flags destruction.
8248 (ipa_node_duplication_hook): Update flags duplication.
8249 (ipa_print_all_params_modified): Updated flag access.
8250 * ipa-prop.h (struct ipa_param_flags): New structure.
8251 (struct ipa_node_params): New field modification_analysis_done,
8252 modified_flags changed into param_flags.
8253 (ipa_is_ith_param_modified): Changed to use new flags.
8254 * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
8255
8256 * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
8257 ipa-cp.c and split into two functions.
8258 (ipa_print_node_jump_functions): New function.
8259 (compute_scalar_jump_functions): New function.
8260 (type_like_member_ptr_p): New function.
8261 (compute_pass_through_member_ptrs): New function.
8262 (fill_member_ptr_cst_jump_function): New function.
8263 (determine_cst_member_ptr): New function.
8264 (compute_cst_member_ptr_arguments): New function.
8265 (ipa_compute_jump_functions): Complete rewrite.
8266 * ipa-prop.h (enum jump_func_type): Make explicit that we depend
8267 on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
8268 (struct ipa_member_ptr_cst): New structure.
8269 (union jump_func_value): New field member_cst.
8270 * ipa-cp.c (ipcp_lat_is_insertable): New function.
8271 (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
8272 jump function types.
8273 (ipcp_print_all_lattices): Slight fprintf rearrangement.
8274 (ipcp_print_all_structures): Call ipa_print_all_jump_functions
8275 instead of ipcp_print_all_jump_functions.
8276 (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
8277 only for replacable scalars.
8278
8279 * doc/invoke.texi (Optimize options): Add description of
8280 -findirect-inlining.
8281 * common.opt (flag_indirect_inlining): New flag.
8282 * opts.c (decode_options): Set flag_indirect_inlining when
8283 optimize >= 3.
8284
8285 * ipa-inline.c: Include ipa-prop.h.
8286 (inline_indirect_intraprocedural_analysis): New function.
8287 (inline_generate_summary): Allocate parameter and argument info
8288 structures, call inline_indirect_intraprocedural_analysis on each
8289 node when doing indirect inlining and deallocate indirect inlining
8290 data structures in the end.
8291 * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
8292 (free_all_ipa_structures_after_iinln): New function.
8293 (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
8294 done.
8295 * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
8296
8297 * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
8298 (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
8299 of computing the frequency separately.
8300 (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
8301 of computing the frequency separately.
8302 * ipa-cp.c (ipcp_print_all_structures): Replace a call to
8303 ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
8304 * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
8305 (ipa_get_stmt_member_ptr_load_param): New function.
8306 (ipa_is_ssa_with_stmt_def): New function.
8307 (ipa_note_param_call): New function.
8308 (ipa_analyze_call_uses): New function.
8309 (ipa_analyze_stmt_uses): New function.
8310 (ipa_analyze_params_uses): New function.
8311 (ipa_free_node_params_substructures): Also free the param_calls linked
8312 list.
8313 (ipa_node_duplication_hook): Also duplicate the param_calls
8314 linked list.
8315 (ipa_print_node_param_flags): New function.
8316 (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
8317 (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
8318 * ipa-prop.h (struct ipa_param_flags): New field called.
8319 (struct ipa_param_call_note): New structure.
8320 (struct ipa_node_params): New fields param_calls and
8321 uses_analysis_done.
8322 (ipa_is_ith_param_called): New function.
8323 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
8324 ipa_analyze_params_uses and dump parameter flags.
8325
8326 * ipa-inline.c (cgraph_decide_recursive_inlining): Call
8327 ipa_propagate_indirect_call_infos if performing indirect inlining,
8328 pass a new parameter new_edges to it.
8329 (add_new_edges_to_heap): New fucntion.
8330 (cgraph_decide_inlining_of_small_functions): New vector
8331 new_indirect_edges for newly found indirect edges , call
8332 ipa_propagate_indirect_call_infos after inlining.
8333 (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
8334 inlining if performing indirect inlining. Call
8335 free_all_ipa_structures_after_iinln when doing so too.
8336 (inline_generate_summary): Do not call
8337 free_all_ipa_structures_after_iinln here.
8338 * ipa-prop.c (update_jump_functions_after_inlining): New function.
8339 (print_edge_addition_message): New function.
8340 (update_call_notes_after_inlining): New function.
8341 (propagate_info_to_inlined_callees): New function.
8342 (ipa_propagate_indirect_call_infos): New function.
8343 * ipa-prop.h: Include cgraph.h
8344 (struct ipa_param_call_note): Fields reordered, new field processed.
8345 * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
8346 flag indirect_call.
8347 * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
8348 rediscovered call statements.
8349 * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
8350 (dump_cgraph_node): Dump also the indirect_call flag.
8351 (cgraph_clone_edge): Copy also the indirect_call flag.
8352 * tree-inline.c (copy_bb): Do not check for fndecls from call
8353 expressions, check for edge availability when moving clones.
8354 (get_indirect_callee_fndecl): New function.
8355 (expand_call_inline): If callee declaration is not apprent from
8356 the statement, try calling get_indirect_callee_fndecl. Do not
8357 issue warnings or call sorry when not inlinings an indirect edge.
8358 * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
8359
8360 * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
8361 bit more frandly to matching.
8362 * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
8363 * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
8364 * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
8365
8366 2008-07-23 Michael Meissner <gnu@the-meissners.org>
8367
8368 PR 36907
8369 * opth-gen.awk: Suppress function specific features when building
8370 target libraries.
8371 * optc-gen.awk: Ditto.
8372
8373 2008-07-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8374
8375 PR 35058
8376 * diagnostic.c (pedwarn): Add opt parameter.
8377 (pedwarn0): New.
8378 * c-tree.h (pedwarn_init): Add opt parameter.
8379 (pedwarn_c90): Likewise.
8380 (pedwarn_c99): Likewise.
8381 * c-errors.c (pedwarn_c99): Likewise.
8382 (pedwarn_c90): Likewise.
8383 * toplev.h (pedwarn): Update declaration.
8384 (pedwarn0): Declare.
8385 * c-lex.c: All calls to pedwarn changed.
8386 * builtins.c: All calls to pedwarn changed.
8387 * toplev.c: All calls to pedwarn changed.
8388 * c-decl.c: All calls to pedwarn changed.
8389 * c-typeck.c: All calls to pedwarn changed.
8390 * c-common.c: All calls to pedwarn changed.
8391 * c-parser.c: All calls to pedwarn changed.
8392
8393 2008-07-23 Michael Meissner <gnu@the-meissners.org>
8394 Karthik Kumar <karthikkumar@gmail.com>
8395
8396 * attribs.c (file scope): Include c-common.h.
8397 (decl_attributes): Add support for #pragma GCC optimize and
8398 #pragma GCC option.
8399
8400 * targhooks.c (default_can_inline_p): New function that is the
8401 default for the TARGET_CAN_INLINE_P target hook.
8402
8403 * targhooks.h (default_can_inline_p): Add declaration.
8404
8405 * tree.c (cl_optimization_node): New static tree for building
8406 OPTIMIZATION_NODE tree.
8407 (cl_target_option_node): New static tree for building
8408 TARGET_OPTION_NODE tree.
8409 (cl_option_hash_table): New hash table for hashing
8410 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
8411 (cl_option_hash_hash): New function to provide the hash value for
8412 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
8413 (cl_option_hash_eq): New function to provide an equality test for
8414 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
8415 (tree_code_size): Add support for OPTIMIZATION_NODE and
8416 TARGET_OPTION_NODE trees.
8417 (tree_code_structure): Add support for OPTIMIZATION_NODE and
8418 TARGET_OPTION_NODE trees.
8419 (build_optimization_node): Build a tree that has all of the
8420 current optimization options.
8421 (build_target_option_node): Build a tree that has the target
8422 options that might be changed on a per function basis.
8423
8424 * tree.h (file scope): Include options.h.
8425 (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
8426 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
8427 (TREE_OPTIMIZATION): Ditto.
8428 (TREE_TARGET_SPECIFIC): Ditto.
8429 (struct tree_function_decl): Add fields for remembering the
8430 current optimization options and target specific options.
8431 (struct tree_optimization_option): New tree variant that remembers
8432 the optimization options.
8433 (struct tree_target_option): New tree variant that remembers the
8434 target specific flags that might change for compiling a particular
8435 function.
8436 (union tree_node): Include tree_optimization_option and
8437 tree_target_option fields.
8438 (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
8439 TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
8440 TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
8441 TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
8442 TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
8443 optimization and target options.
8444 (optimization_default_node): New macro to refer to global_trees
8445 field.
8446 (optimization_current_node): Ditto.
8447 (optimization_cold_node): Ditto.
8448 (optimization_hot_node): Ditto.
8449 (target_option_default_node): Ditto.
8450 (target_option_current_node): Ditto.
8451 (current_option_pragma): Ditto.
8452 (current_optimize_pragma): Ditto.
8453
8454 * target.h (struct gcc_target): Add valid_option_attribute_p,
8455 target_option_save, target_option_restore, target_option_print,
8456 target_option_pragma_parse, and can_inline_p hooks.
8457
8458 * toplev.h (parse_optimize_options): Add declaration.
8459 (fast_math_flags_struct_set_p): Ditto.
8460
8461 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
8462 adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
8463 optimize is used.
8464
8465 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
8466 tree_can_inline_p hook to see if one function can inline another.
8467 (cgraph_decide_inlining): Ditto.
8468 (cgraph_decide_inlining_incrementally): Ditto.
8469
8470 * opts.c (decode_options): Add support for running multiple times
8471 to allow functions with different target or optimization options
8472 than was specified on the command line.
8473 (fast_math_flags_struct_set_p): New function that is similar to
8474 fast_math_flags_set_p, except it uses the values in the
8475 cl_optimization structure instead of global variables.
8476
8477 * optc-gen.awk: Add support for TargetSave to allow a back end to
8478 declare new fields that need to be saved when using function
8479 specific options. Include flags.h and target.h in the options.c
8480 source. Add support for Save to indicate which options can be set
8481 for individual functions. Generate cl_optimize_save,
8482 cl_optimize_restore, cl_optimize_print, cl_target_option_save,
8483 cl_target_option_restore, cl_target_option_print functions to
8484 allow functions to use different optimization or target options.
8485
8486 * opt-functions.awk (var_type_struct): Return the type used for
8487 storing the field in a structure.
8488
8489 * opth-gen.awk: Add support for TargetSave to allow a back end to
8490 declare new fields that need to be saved when using function
8491 specific options. Add support for Save to indicate which options
8492 can be set for individual functions. Only generate one extern for
8493 Mask fields. Generate cl_optimization and cl_target_option
8494 structures to remember optimization and target options.
8495
8496 * treestruct.def (TS_OPTIMIZATION): Add support for garbage
8497 collecting new tree nodes.
8498 (TS_TARGET_OPTION): Ditto.
8499
8500 * c-decl.c (merge_decls): Merge function specific target and
8501 optimization options.
8502
8503 * function.c (invoke_set_current_function_hook): If the function
8504 uses different optimization options, change the global variables
8505 to reflect this.
8506
8507 * coretypes.h (struct cl_optimization): Add forward reference.
8508 (struct cl_target_option): Ditto.
8509
8510 * c-pragma.c (option_stack): New static vector to remember the
8511 current #pragma GCC option stack.
8512 (handle_pragma_option): New function to support #pragma GCC option
8513 to change target options.
8514 (optimize_stack): New static vector to remember the current
8515 #pragma GCC optimize stack.
8516 (handle_pragma_optimize): New function to support #pragma GCC
8517 optimize to change optimization options.
8518 (init_pragma): Add support for #pragma GCC optimize and #pragma
8519 GCC option.
8520
8521 * tree.def (OPTIMIZATION_NODE): New tree code for remembering
8522 optimization options.
8523 (TARGET_OPTION_NODE): New tree code for remembering certain target
8524 options.
8525
8526 * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
8527 TARGET_OPTION_NODE trees.
8528
8529 * common.opt (-O): Add Optimization flag.
8530 (-Os): Ditto.
8531 (-fmath-errno): Ditto.
8532 (-falign-functions): Add UInteger flag to make sure flag gets full
8533 int in cl_optimization structure.
8534 (-falign-jumps): Ditto.
8535 (-falign-labels): Ditto.
8536 (-falign-loops): Ditto.
8537 (-fsched-stalled-insns): Ditto.
8538 (-fsched-stalled-insns-dep): Ditto.
8539
8540 * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
8541 definition.
8542 (TARGET_OPTION_SAVE): Ditto.
8543 (TARGET_OPTION_RESTORE): Ditto.
8544 (TARGET_OPTION_PRINT): Ditto.
8545 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
8546 (TARGET_CAN_INLINE_P): Ditto.
8547 (TARGET_INITIALIZER): Add new hooks.
8548
8549 * tree-inline.c (tree_can_inline_p): New function to determine
8550 whether one function can inline another. Check if the functions
8551 use compatible optimization options, and also call the backend
8552 can_inline_p hook.
8553
8554 * tree-inline.h (tree_can_inline_p): Add declaration.
8555
8556 * c-common.c (c_common_attribute): Add support for option and
8557 optimize attributes.
8558 (handle_option_attribute): Add support for the option attribute to
8559 allow the user to specify different target options for compiling a
8560 specific function.
8561 (handle_optimize_attribute): Add support for the optimize
8562 attribute to allow the user to specify different optimization
8563 options for compiling a specific function.
8564 (handle_hot_attribute): Turn on -O3 optimization for this one
8565 function if it isn't the default optimization level.
8566 (handle_cold_attribute): Turn on -Os optimization for this one
8567 function if it insn't the default optimization.
8568 (const_char_p): New const char * typedef.
8569 (optimize_args): New static vector to remember the optimization
8570 arguments.
8571 (parse_optimize_options): New function to set up the optimization
8572 arguments from either the optimize attribute or #pragma GCC optimize.
8573
8574 * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
8575 (builtin_define_std): Ditto.
8576
8577 * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
8578 Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
8579 (x86_64-*-*): Ditto.
8580
8581 * Makefile.in (TREE_H): Add options.h.
8582 (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
8583
8584 * doc/extend.texi (option attribute): Document new attribute.
8585 (optimize attribute): Ditto.
8586 (hot attribute): Document hot attribute sets -O3.
8587 (cold attribute): Document cold attribute sets -Os.
8588 (#pragma GCC option): Document new pragma.
8589 (#pragma GCC optimize): Ditto.
8590
8591 * doc/options.texi (TargetSave): Document TargetSave syntax.
8592 (UInteger): Document UInteger must be used for certain flags.
8593 (Save): Document Save option to create target specific options
8594 that can be saved/restored on a function specific context.
8595
8596 * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
8597 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
8598
8599 * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
8600 (TARGET_OPTION_SAVE): Ditto.
8601 (TARGET_OPTION_RESTORE): Ditto.
8602 (TARGET_OPTION_PRINT): Ditto.
8603 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
8604 (TARGET_CAN_INLINE_P): Ditto.
8605
8606 * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
8607 -mfpmath=sse,387.
8608 (-mfpmath=both): Ditto.
8609
8610 2008-07-23 Michael Meissner <gnu@the-meissners.org>
8611 Karthik Kumar <karthikkumar@gmail.com>
8612
8613 * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
8614 (TARGET_POPCNT): Ditto.
8615 (TARGET_SAHF): Ditto.
8616 (TARGET_AES): Ditto.
8617 (TARGET_PCLMUL): Ditto.
8618 (TARGET_CMPXCHG16B): Ditto.
8619 (TARGET_RECIP): Move switch into target_flags.
8620 (TARGET_FUSED_MADD): Ditto.
8621 (ix86_arch_features): Make an unsigned char type.
8622 (ix86_tune_features): Ditto.
8623 (OVERRIDE_OPTIONS): Add bool argument to override_options call.
8624 (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
8625 (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
8626
8627 * config/i386/i386.opt (arch): New TargetSave field to define
8628 fields that need to be saved for function specific option support.
8629 (tune): Ditto.
8630 (fpmath): Ditto.
8631 (branch_cost): Ditto.
8632 (ix86_isa_flags_explicit): Ditto.
8633 (tune_defaulted): Ditto.
8634 (arch_specified): Ditto.
8635 (-m128-long-double): Add Save flag to save option for target
8636 specific option support.
8637 (-m80387): Ditto.
8638 (-maccumulate-outgoing-args): Ditto.
8639 (-malign-double): Ditto.
8640 (-malign-stringops): Ditto.
8641 (-mfancy-math-387): Ditto.
8642 (-mhard-float): Ditto.
8643 (-mieee-fp): Ditto.
8644 (-minline-all-stringops): Ditto.
8645 (-minline-stringops-dynamically): Ditto.
8646 (-mms-bitfields): Ditto.
8647 (-mno-align-stringops): Ditto.
8648 (-mno-fancy-math-387): Ditto.
8649 (-mno-push-args): Ditto.
8650 (-mno-red-zone): Ditto.
8651 (-mpush-args): Ditto.
8652 (-mred-zone): Ditto.
8653 (-mrtd): Ditto.
8654 (-msseregparm): Ditto.
8655 (-mstack-arg-probe): Ditto.
8656 (-m32): Ditto.
8657 (-m64): Ditto.
8658 (-mmmx): Ditto.
8659 (-m3dnow): Ditto.
8660 (-m3dnowa): Ditto.
8661 (-msse): Ditto.
8662 (-msse2): Ditto.
8663 (-msse3): Ditto.
8664 (-msse4.1): Ditto.
8665 (-msse4.2): Ditto.
8666 (-msse4): Ditto.
8667 (-mno-sse4): Ditto.
8668 (-msse4a): Ditto.
8669 (-msse5): Ditto.
8670 (-mrecip): Move flag into target_flags.
8671 (-mcld): Ditto.
8672 (-mno-fused-madd): Ditto.
8673 (-mfused-madd): Ditto.
8674 (-mabm): Move flag into ix86_isa_flags.
8675 (-mcx16): Ditto.
8676 (-mpopcnt): Ditto.
8677 (-msahf): Ditto.
8678 (-maes): Ditto.
8679 (-mpclmul): Ditto.
8680
8681 * config/i386/i386-c.c: New file for #pragma support.
8682 (ix86_target_macros_internal): New function to #define or #undef
8683 target macros based when the user uses the #pragma GCC option to
8684 change target options.
8685 (ix86_pragma_option_parse): New function to add #pragma GCC option
8686 support.
8687 (ix86_target_macros): Move defining the target macros here from
8688 TARGET_CPU_CPP_BUILTINS in i386.h.
8689 (ix86_register_pragmas): Register the #pragma GCC option hook. If
8690 defined, initialize any subtarget #pragmas.
8691
8692 * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
8693 REGISTER_TARGET_PRAGMAS.
8694
8695 * config/i386/t-i386: New file for x86 dependencies.
8696 (i386.o): Make dependencies mirror the include files used.
8697 (i386-c.o): New file, add dependencies.
8698
8699 * config/i386/i386-protos.h (override_options): Add bool argument.
8700 (ix86_valid_option_attribute_tree): Add declaration.
8701 (ix86_target_macros): Ditto.
8702 (ix86_register_macros): Ditto.
8703
8704 * config/i386/i386.c (ix86_tune_features): Move initialization of
8705 the target masks to initial_ix86_tune_features to allow functions
8706 to have different target options. Make type unsigned char,
8707 instead of unsigned int.
8708 (initial_ix86_tune_features): New static vector to hold processor
8709 masks for the tune variables.
8710 (ix86_arch_features): Move initialization of the target masks to
8711 initial_ix86_arch_features to allow functions to have different
8712 target options. Make type unsigned char, instead of unsigned int.
8713 (initial_ix86_arch_features): New static vector to hold processor
8714 masks for the arch variables.
8715 (enum ix86_function_specific_strings): New enum to describe the
8716 string options used for attribute((option(...))).
8717 (ix86_target_string): New function to return a string that
8718 describes the target options.
8719 (ix86_debug_options): New function to print the current options in
8720 the debugger.
8721 (ix86_function_specific_save): New function hook to save the
8722 function specific global variables in the cl_target_option structure.
8723 (ix86_function_specific_restore): New function hook to restore the
8724 function specific variables from the cl_target_option structure to
8725 the global variables.
8726 (ix86_function_specific_print): New function hook to print the
8727 target specific options in the cl_target_option structure.
8728 (ix86_valid_option_attribute_p): New function hook to validate
8729 attribute((option(...))) arguments.
8730 (ix86_valid_option_attribute_tree): New function that is common
8731 code between attribute((option(...))) and #pragma GCC option
8732 support that parses the options and returns a tree holding the options.
8733 (ix86_valid_option_attribute_inner_p): New helper function for
8734 ix86_valid_option_attribute_tree.
8735 (ix86_can_inline_p): New function hook to decide if one function
8736 can inline another on a target specific basis.
8737 (ix86_set_current_function); New function hook to switch target
8738 options if the user used attribute((option(...))) or #pragma GCC
8739 option.
8740 (ix86_tune_defaulted): Move to static file scope from
8741 override_options.
8742 (ix86_arch_specified): Ditto.
8743 (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
8744 ix86_isa_flags.
8745 (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
8746 (OPTION_MASK_ISA_ABM_SET): Ditto.
8747 (OPTION_MASK_ISA_POPCNT_SET): Ditto.
8748 (OPTION_MASK_ISA_CX16_SET): Ditto.
8749 (OPTION_MASK_ISA_SAHF_SET): Ditto.
8750 (OPTION_MASK_ISA_AES_UNSET): Ditto.
8751 (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
8752 (OPTION_MASK_ISA_ABM_UNSET): Ditto.
8753 (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
8754 (OPTION_MASK_ISA_CX16_UNSET): Ditto.
8755 (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
8756 (struct ptt): Move to static file scope from override_options.
8757 (processor_target_table): Ditto.
8758 (cpu_names): Ditto.
8759 (ix86_handle_option): Add support for options that are now isa options.
8760 (override_options): Add support for declaring functions that
8761 support different target options than were specified on the
8762 command line. Move struct ptt, processor_target_table, cpu_names,
8763 ix86_tune_defaulted, ix86_arch_specified to static file scope.
8764 Add bool argument. Fix up error messages so the appropriate error
8765 is given for either command line or attribute.
8766 (ix86_previous_fndecl): New static to remember previous function
8767 declaration to see if we need to change target options.
8768 (ix86_builtins_isa): New array to record the ISA of each builtin
8769 function.
8770 (def_builtin): Always create the builtin function, even if the
8771 current ISA doesn't support it.
8772 (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
8773 tests for those builtins.
8774 (ix86_init_builtins): Remove TARGET_MMX test for calling
8775 ix86_init_mmx_sse_builtins.
8776 (ix86_expand_builtin): If the current ISA doesn't support a given
8777 builtin, signal an error.
8778 (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
8779 (TARGET_SET_CURRENT_FUNCTION): Ditto.
8780 (TARGET_OPTION_SAVE): Ditto.
8781 (TARGET_OPTION_RESTORE): Ditto.
8782 (TARGET_OPTION_PRINT): Ditto.
8783 (TARGET_CAN_INLINE_P): Ditto.
8784
8785 2008-07-22 Rafael Ãvila de Espíndola <espindola@google.com>
8786
8787 * c-typeck.c (build_external_ref): Don't call assemble_external.
8788 * final.c (output_operand): Call assemble_external.
8789
8790 2008-07-21 DJ Delorie <dj@redhat.com>
8791
8792 * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
8793 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
8794
8795 2008-07-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8796
8797 * config/spu/spu.md ("div<mode>3"): Convert into expander, move
8798 original insn and splitter contents into ...
8799 ("*div<mode>3_fast"): ... this new pattern. Enable only if
8800 flag_unsafe_math_optimizations. Add dummy scratch register.
8801 ("*div<mode>3_adjusted"): New insn and splitter. Enable only if
8802 !flag_unsafe_math_optimizations. Returns number with next
8803 highest magnitude if this is still less or equal to the true
8804 quotient in magnitude.
8805
8806 2008-07-21 Rafael Ãvila de Espíndola <espindola@google.com>
8807
8808 * Makefile.in: Replace toplev.h with TOPLEV_H.
8809 * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
8810 * c-lex.c (fe_file_change): Don't set in_system_header.
8811 * c-parser.c (c_token): Remove in_system_header.
8812 (c_lex_one_token): Don't set in_system_header.
8813 (c_parser_set_source_position_from_token): Don't set in_system_header.
8814 * diagnostic.c (diagnostic_report_diagnostic): Use location from
8815 diagnostic_info.
8816 (warning_at): New.
8817 * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
8818 * flags.h (in_system_header): Remove.
8819 * function.c (saved_in_system_header): Remove.
8820 (push_cfun): Don't set in_system_header.
8821 (pop_cfun): Don't set in_system_header.
8822 (push_struct_function): Don't set in_system_header.
8823 * input.h (expanded_location): Add sysp.
8824 (in_system_header_at): New.
8825 (in_system_header): New.
8826 * toplev.c (in_system_header): Remove.
8827 * toplev.h: Include input.h
8828 (warning_at): New.
8829 * tree-cfg.c (execute_warn_function_return): Call warning_at.
8830 * tree-ssa.c (warn_uninit): Call warning_at.
8831 (warn_uninitialized_var): Update calls to warn_uninit.
8832 (warn_uninitialized_phi): Update calls to warn_uninit.
8833 * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
8834 (expand_location): Initialize xloc.sysp.
8835 * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
8836 (tree_decl_with_vis): Remove in_system_header_flag.
8837
8838 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
8839
8840 PR target/36822
8841 * recog.c (asm_operand_ok): Change the order of the extra
8842 memory constraint checks.
8843
8844 2008-07-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
8845
8846 PR tree-opt/36879
8847 * tree-switch-conversion.c (build_one_array): Call
8848 varpool_mark_needed_node and varpool_finalize_decl
8849 instead of assemble_variable.
8850
8851 2008-07-19 Jan Hubicka <jh@suse.cz>
8852
8853 * cgraph.c (cgraph_add_new_function): Do early local passes.
8854 * tree-nrv.c (gate_pass_return_slot): New gate.
8855 (pass_nrv): Add the gate.
8856 * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
8857 functions.
8858 (coalesce_ssa_name): Coalesce SSA names.
8859 * tree-ssa-live.c (remove_unused_locals): Be more conservative when
8860 not optimizing so unused user vars remains visible.
8861 * common.opt (flag_tree_ter): Always enable by default.
8862 * tree-ssa-ter.c: Include flags.h
8863 (is_replaceable_p): Check that locations match; when aliasing
8864 is missing be conservative about loads.
8865 * tree-optimize.c (gate_init_datastructures): Remove.
8866 (pass_init_datastructures): New.
8867 * passes.c: Reorder passes so we always go into SSA.
8868
8869 2008-07-19 Jan Hubicka <jh@suse.cz>
8870
8871 * doc/extend.texi (flatten attribute): Remove note about
8872 unit-at-a-time.
8873 * doc/invoke.texi (--combine): Likewise.
8874 (-finline-functions-called-once): Update levels when enabled.
8875 (-funit-at-a-time): Document new behaviour.
8876 (-ftoplevel-reorder): Document that it is enabled -O0 and imply
8877 -fno-section-anchors when disabled explicitly.
8878 (inline params): They are not ignored now.
8879 (precompiled headers): Remove unit-at-a-time as being incompatible.
8880 * opts.c (decode_options): Handle unit-at-a-time as alias;
8881 imply -fno-section-anchors when toplevel reorder is disabled
8882 explicitly.
8883 * common.opt (ftoplevel-reorder): Set default value to 2.
8884 (funit-at-a-time): Set default value to 1.
8885 * config/rs6000/rs6000.c (optimization_options): Set section anchors
8886 to 2.
8887
8888 2008-07-19 Jan Hubicka <jh@suse.cz>
8889
8890 * builtins.c (expand_builtin_int_roundingfn,
8891 expand_builtin_int_roundingfn_2): Do not take subtarget argument;
8892 it is not useful.
8893
8894 2008-07-19 Richard Guenther <rguenther@suse.de>
8895
8896 PR bootstrap/36864
8897 * tree-ssa-sccvn.h (get_constant_value_id): Declare.
8898 * tree-ssa-sccvn.c (get_constant_value_id): New function.
8899 * tree-ssa-pre.c (get_expr_value_id): For newly created
8900 constant value-ids make sure to add the expression to its
8901 expression-set.
8902
8903 2008-07-19 Jakub Jelinek <jakub@redhat.com>
8904
8905 PR middle-end/36877
8906 * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
8907 return value of the builtin is ignored.
8908
8909 2008-07-19 Olivier Hainque <hainque@adacore.com>
8910
8911 * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
8912 bits, a C conformant malloc implementation has to provide.
8913 * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
8914
8915 2008-07-19 Joseph Myers <joseph@codesourcery.com>
8916
8917 PR target/36780
8918 PR target/36827
8919 * reload.c (find_reloads_subreg_address): Only reload address if
8920 reloaded == 0, not for reloaded != 1.
8921
8922 Revert:
8923 2008-07-16 Joseph Myers <joseph@codesourcery.com>
8924 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
8925 (m32c_legitimate_address_p): Handle "++rii" addresses created by
8926 m32c_legitimize_reload_address.
8927
8928 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
8929 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
8930 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
8931
8932 2008-07-19 Olivier Hainque <hainque@adacore.com>
8933
8934 * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
8935 argument, saying whether nested array are to be collapsed
8936 into a single array type DIE with multiple subscripts.
8937 (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
8938 issues, centralize the nested array types collapsing control and
8939 disable the transformation for Ada.
8940
8941 2008-07-18 Uros Bizjak <ubizjak@gmail.com>
8942
8943 PR target/36786
8944 * config/i386/i386.md (x86_64_shift_adj_1): Rename from
8945 x86_64_shift_adj.
8946 (x86_64_shift_adj_2): New expander.
8947 (x86_64_shift_adj_3): Ditto.
8948 * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
8949 to split TImode operands.
8950 (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
8951 (ix86_split_lshr): Ditto.
8952
8953 2008-07-18 Kris Van Hees <kris.van.hees@oracle.com>
8954
8955 * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
8956 and __CHAR32_TYPE__.
8957 * c-typeck.c (digest_init): Support char16_t and char32_t.
8958 (set_nonincremental_init_from_string): Idem.
8959
8960 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
8961
8962 PR middle-end/36859
8963 * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
8964 PREFERRED_STACK_BOUNDARY.
8965 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
8966
8967 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
8968
8969 PR middle-end/36858
8970 * function.c (locate_and_pad_parm): Cap boundary earlier.
8971
8972 2008-07-17 Julian Brown <julian@codesourcery.com>
8973
8974 * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
8975 no-op for targets which don't use DLLs.
8976
8977 2008-07-17 Martin Jambor <mjambor@suse.cz>
8978
8979 * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
8980 that nodes are relevant by examining the node->analyzed flag.
8981 (ipcp_init_stage): Check which nodes are relevant, assert that the
8982 relevant ones are also required.
8983 (ipcp_propagate_stage): Check on the side arrays are properly
8984 allocated.
8985 (ipcp_print_all_jump_functions): Make sure not to touch any node
8986 that is not analyzed or an edge that does not have a corresponding
8987 entry in the on-the-side vectors.
8988 (ipcp_function_scale_print): Likewise.
8989 (ipcp_update_callgraph): Check that the node is relevant.
8990 (ipcp_insert_stage): Check that the node is relevant. Check there is
8991 an info for every node and edge.
8992 * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
8993 (ipa_print_all_tree_maps): Likewise and a new variable info.
8994 (ipa_print_all_params_modified): Likewise.
8995 * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
8996
8997 2008-07-17 Roman Zippel <zippel@linux-m68k.org>
8998
8999 PR target/25343
9000 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
9001
9002 2008-07-17 Paolo Bonzini <bonzini@gnu.org>
9003
9004 PR rtl-optimization/36753
9005 * fwprop.c (use_killed_between): Don't shortcut
9006 single-definition global registers.
9007
9008 2008-07-16 Jan Hubicka <jh@suse.cz>
9009
9010 * cgraph.h (varpool_empty_needed_queue): Declare.
9011 * cgraphunit.c (output_in_order): Mark all variables as needed;
9012 empty the queue.
9013 * varpool.c (varpool_assemble_node): Update debug queue.
9014 (varpool_assemble_pending_decls): Don't do it here.
9015 (varpool_empty_needed_queue): New function.
9016
9017 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9018
9019 * recog.c (peephole2_optimize): Fix formatting.
9020
9021 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9022
9023 * c-pch.c (get_ident): Avoid C++ keywords.
9024 * combine-stack-adj.c (single_set_for_csa): Likewise.
9025 * final.c (asm_insn_count, final_scan_insn, alter_subreg,
9026 output_asm_insn): Likewise.
9027 * reload.c (push_secondary_reload, find_reusable_reload,
9028 push_reload, combine_reloads, find_reloads,
9029 debug_reload_to_stream): Likewise.
9030 * reload.h (struct reload): Likewise.
9031 * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
9032 allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
9033 emit_output_reload_insns): Likewise.
9034 * targhooks.c (default_secondary_reload): Likewise.
9035 * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
9036
9037 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9038
9039 * recog.c (validate_change_1, validate_change,
9040 validate_unshare_change, validate_replace_rtx_1, struct
9041 funny_match, constrain_operands, peephole2_optimize): Avoid C++
9042 keywords.
9043 * reload.c (push_secondary_reload, secondary_reload_class,
9044 scratch_reload_class, find_valid_class, find_reusable_reload,
9045 push_reload, find_dummy_reload, find_reloads_address_1,
9046 find_reloads_address_part, find_equiv_reg): Likewise.
9047 * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
9048 choose_reload_regs): Likewise.
9049 * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
9050 Likewise.
9051 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
9052 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
9053 * sched-rgn.c (concat_INSN_LIST): Likewise.
9054 * stor-layout.c (mode_for_size, mode_for_size_tree,
9055 smallest_mode_for_size): Likewise.
9056
9057 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9058
9059 * cfg.c (dump_reg_info): Avoid C++ keywords.
9060 * dwarf2asm.c (dw2_force_const_mem,
9061 dw2_asm_output_encoded_addr_rtx): Likewise.
9062 * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
9063 * expmed.c (expand_shift): Likewise.
9064 * global.c (find_reg): Likewise.
9065 * graph.c (draw_edge): Likewise.
9066 * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
9067 * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
9068 widen_clz, widen_bswap, expand_parity, expand_unop,
9069 emit_cmp_and_jump_insn_1): Likewise.
9070 * postreload.c (reload_cse_simplify_operands): Likewise.
9071 * ra.h (add_neighbor): Likewise.
9072 * reg-stack.c (remove_regno_note, change_stack): Likewise.
9073 * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
9074 record_reg_classes, copy_cost, record_address_regs,
9075 invalid_mode_change_p): Likewise.
9076 * regrename.c (regrename_optimize, scan_rtx_reg,
9077 dump_def_use_chain, find_oldest_value_reg,
9078 replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
9079
9080 2008-07-16 David Edelsohn <edelsohn@gnu.org>
9081
9082 * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
9083 MASK_POWERPC64 for power4 in previous commit.
9084
9085 2008-07-16 Olivier Hainque <hainque@adacore.com>
9086
9087 * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
9088 instead of bare conversion to cast const-ness away.
9089
9090 2008-07-16 Anatoly Sokolov <aesok@post.ru>
9091
9092 * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
9093 XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
9094 * config/xtensa/xtensa.c (xtensa_function_value): New function.
9095 (TARGET_FUNCTION_VALUE): Define.
9096
9097 2008-07-16 David Edelsohn <edelsohn@gnu.org>
9098
9099 * config/rs6000/rs6000.c (processor_target_table): Add
9100 MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
9101
9102 2008-07-16 Joseph Myers <joseph@codesourcery.com>
9103
9104 PR target/36827
9105 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
9106 (m32c_legitimate_address_p): Handle "++rii" addresses created by
9107 m32c_legitimize_reload_address.
9108
9109 2007-07-16 Rafael Ãvila de Espíndola <espindola@google.com>
9110
9111 * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
9112 DECL_IN_SYSTEM_HEADER in sync.
9113
9114 2008-07-15 Daniel Berlin <dberlin@dberlin.org>
9115
9116 * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
9117 * tree-ssa-pre.c (pre_expr_eq): Ditto
9118 (get_constant_for_value_id): Take a type as an argument.
9119 (fully_constant_expression): Pass in type.
9120 (find_or_generate_expression): Short circuit constant case.
9121 (create_expression_by_pieces): Remove special casing of
9122 pointer_plus.
9123 (do_regular_insertion): Short circuit constant case.
9124 (do_partial_partial_insertion): Ditto.
9125
9126 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
9127
9128 PR target/36782
9129 * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
9130
9131 2008-07-15 Bob Wilson <bob.wilson@acm.org>
9132
9133 * config/xtensa/libgcc-xtensa.ver: New file.
9134 * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
9135
9136 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9137
9138 * df-problems.c (df_set_note): Avoid C++ keywords.
9139 * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
9140 * dse.c (record_store, remove_useless_values): Likewise.
9141 * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
9142 gen_reg_rtx_offset, operand_subword, change_address_1,
9143 change_address, adjust_address_1, offset_address,
9144 widen_memory_access, emit_copy_of_insn_after): Likewise.
9145 * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
9146 * fwprop.c (should_replace_address, propagate_rtx_1,
9147 propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
9148 Likewise.
9149 * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
9150 gcse_emit_move_after, update_ld_motion_stores): Likewise.
9151 * lcm.c (compute_insert_delete, pre_edge_lcm,
9152 compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
9153 * lower-subreg.c (resolve_reg_notes): Likewise.
9154 * mode-switching.c (optimize_mode_switching): Likewise.
9155
9156 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9157
9158 * bt-load.c (add_btr_def, migrate_btr_def,
9159 branch_target_load_optimize): Avoid C++ keywords.
9160 * caller-save.c (insert_restore, insert_save, insert_one_insn):
9161 Likewise.
9162 * combine.c (subst, simplify_set, make_extraction,
9163 make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
9164 * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
9165 fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
9166
9167 2008-07-15 Richard Guenther <rguenther@suse.de>
9168
9169 PR middle-end/36369
9170 * c-common.c (strict_aliasing_warning): Do not warn for
9171 TYPE_REF_CAN_ALIAS_ALL pointers.
9172 (c_common_get_alias_set): may_alias types are not special.
9173 * tree.c (build_pointer_type_for_mode): Look up the may_alias
9174 attribute and set can_ref_all accordingly.
9175 (build_reference_type_for_mode): Likewise.
9176 * doc/extend.texi (may_alias): Clarify.
9177
9178 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
9179
9180 PR target/36780
9181 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
9182 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
9183
9184 2008-07-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
9185
9186 PR target/31568
9187 * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
9188 gcc_assert, instead call output_operand_lossage.
9189
9190 2008-07-15 Kai Tietz <kai.tietz@onevision.com>
9191
9192 * builtins.c (std_canonical_va_list): Treat structure based
9193 va_list types.
9194
9195 2008-07-15 Ben Elliston <bje@au.ibm.com>
9196
9197 * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
9198
9199 2007-07-14 Rafael Ãvila de Espíndola <espindola@google.com>
9200
9201 * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
9202 is set.
9203
9204 2008-07-14 Jan Hubicka <jh@suse.cz>
9205
9206 * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
9207 * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
9208 fix predicates and constraints.
9209 * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
9210 * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
9211
9212 2008-07-14 Doug Kwan <dougkwan@google.com>
9213
9214 * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
9215 additional option file arm/eabi.opt.
9216 * config/arm/eabi.h (File): New configuration file for EABI targets.
9217 * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
9218 SUBSUBTARGET_EXTRA_SPECS.
9219 (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
9220 * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
9221 from STARTFILE_SPEC so that it can be referenced in an override.
9222 (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
9223 (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
9224 can be referenced in an override.
9225 (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
9226 * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
9227 so that it can be referenced in an override.
9228 (LINK_SPEC): Use BPABI_LINK_SPEC.
9229 * config/arm/eabi.opt (File): New.
9230
9231 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9232
9233 * Makefile.in (TARGET_DEF_H): Add targhooks.h.
9234 (FIXED_VALUE_H): New variable.
9235 (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
9236 input.h, fixed-value.h.
9237 (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
9238 (BASIC_BLOCK_H): Use $(BITMAP_H).
9239 (FUNCTION_H): Add varray.h.
9240 (IPA_REFERENCE_H): Use $(BITMAP_H).
9241 (CGRAPH_H): Add $(BASIC_BLOCK_H).
9242 (DF_H): Use $(BITMAP_H).
9243 (GGC_H): Add statistics.h.
9244 (INSN_ADDR_H): New.
9245 (INSN_ATTR_H): Use it.
9246 (SYSTEM_H): Add safe-ctype.h, filenames.h.
9247 (INPUT_H): New.
9248 (SYMTAB_H): Add $(OBSTACK_H).
9249 (CPP_INTERNAL_H): New.
9250 (TREE_DUMP_H): Add tree-pass.h.
9251 (TREE_FLOW_H): Use $(BITMAP_H)
9252 (PRETTY_PRINT_H): Use $(INPUT_H).
9253 (EBITMAP_H): Rename from typo-ed EBIMAP_H.
9254 (GSTAB_H): New.
9255 (BITMAP_H): New.
9256 (many object files): Fix lots of header dependencies throughout.
9257
9258 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9259
9260 * Makefile.in (write_entries_to_file, write_entries_to_file_split):
9261 New macros.
9262 (s-gtyp-input): Use them to write tmp-gi.list.
9263 (echo_to_gi.list): Remove.
9264
9265 2008-07-14 Richard Guenther <rguenther@suse.de>
9266
9267 * tree-ssa-sccvn.c (pre_info): Remove.
9268 (switch_to_PRE_table): Likewise.
9269 (free_scc_vn): Do not clear SSA_NAME_VALUE. Do not free pre_info.
9270 (set_hashtable_value_ids): Do not create value-ids for the
9271 optimistic tables.
9272 (run_scc_vn): Remove double test. Remove bogus special-case
9273 in value-number printing.
9274 * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
9275 * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
9276 SSA_NAME_VALUE.
9277 * tree-flow-inline.h (get_value_handle): Remove.
9278 * tree-flow.h (get_value_handle): Remove.
9279
9280 2008-07-14 Martin Jambor <mjambor@suse.cz>
9281
9282 * tree-switch-conversion.c (gen_inbound_check): Make sure the type
9283 in which we generate arithmetics is not a subrange.
9284
9285 2008-07-14 Martin Jambor <mjambor@suse.cz>
9286
9287 * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
9288
9289 2008-07-14 Richard Guenther <rguenther@suse.de>
9290
9291 * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
9292
9293 2008-07-14 Andreas Krebbel <krebbel1@de.ibm.com>
9294
9295 PR target/36745
9296 * config/s390/s390.c: (s390_secondary_reload): Add a secondary
9297 reload for symbol refs moved to r0 with -fPIC.
9298 (legitimize_pic_address): Use the target register as temporary
9299 reg if possible.
9300 (emit_symbolic_move): Adjust comment.
9301 * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
9302 New expanders.
9303
9304 2008-07-14 Ben Elliston <bje@au.ibm.com>
9305
9306 * c-common.h (C_CPP_HASHNODE): New macro.
9307 * coretypes.h (struct cpp_token): Forward declare.
9308 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
9309 the context-sensitive keyword method.
9310 * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
9311 __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
9312 expand_bool_pixel): New.
9313 (altivec_categorize_keyword): New function.
9314 (init_vector_keywords): New function.
9315 (rs6000_macro_to_expand): Likewise.
9316 (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
9317 compiling an ISO C dialect.
9318
9319 2008-07-13 Daniel Berlin <dberlin@dberlin.org>
9320
9321 * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
9322 (create_expression_by_pieces): Fix typo.
9323 (do_regular_insertion): Use debug counter here too.
9324
9325 2008-07-14 Hans-Peter Nilsson <hp@axis.com>
9326
9327 PR target/35492.
9328 * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
9329 CONST_OK_FOR_LETTER_P. All port-local users changed.
9330 (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
9331 implement Kp matching power-of-two.
9332 (CONSTRAINT_LEN): Define to match.
9333 * config/cris/cris.md: Replace all use of constraint K with Kc.
9334 ("*btst*): Use Kp for operand 0 of last alternative.
9335
9336 2008-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9337
9338 PR testsuite/36440
9339 * tree-call-cdce.c (check_target_format): Accept MIPS single, double
9340 and quad formats.
9341
9342 2008-07-13 Jan Hubicka <jh@suse.cz>
9343
9344 * tree.c (decl_assembler_name_equal): Expect assembler name of decl
9345 to be mangled too.
9346
9347 2008-07-13 Richard Guenther <rguenther@suse.de>
9348
9349 PR middle-end/36811
9350 * langhooks.c (lhd_print_error_function): Deal with recursive
9351 BLOCK trees.
9352
9353 2008-07-12 Jan Hubicka <jh@suse.cz>
9354
9355 * cgraph.c (assembler_name_hash): New static var.
9356 (hash_node_by_assembler_name, eq_assembler_name): New.
9357 (cgraph_node_for_asm): Use hashtable.
9358 (cgraph_remove_node): Maintain hashtable.
9359 (change_decl_assembler_name): Sanity check that names are not changing
9360 after aliasing was processed.
9361 * cgraph.h (varpoon_node): Add next GGC marker.
9362 * tree.c (decl_assembler_name_equal): Constify.
9363 (decl_assembler_name_hash): New.
9364 * tree.h (decl_assembler_name_equal): Constify.
9365 (decl_assembler_name_hash): Update.
9366
9367 2008-07-12 David Daney <ddaney@avtrex.com>
9368
9369 * config/mips/driver-native.c (host_detect_local_cpu): Handle
9370 sb1 and r5000 cpus.
9371
9372 2008-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9373
9374 * doc/md.texi: Document the MIPS "v" constraint.
9375 * config/mips/mips.h (reg_class): Revert last change.
9376 (REG_CLASS_NAMES): Likewise.
9377 (REG_CLASS_CONTENTS): Likewise.
9378 * config/mips/mips.c (mips_regno_to_class): Likewise.
9379 * config/mips/constraints.md (v): Likewise, but add documentation.
9380 Add a comment to say that this constraint should not be used in
9381 gcc code.
9382
9383 2008-07-11 DJ Delorie <dj@redhat.com>
9384
9385 * config/h8300/h8300.md (length): Fix branch offset limit.
9386
9387 2008-07-11 Anatoly Sokolov <aesok@post.ru>
9388
9389 * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
9390 * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
9391 (avr_hard_regno_scratch_ok): New function.
9392 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
9393 * config/avr/avr.md (all peepholes that request a scratch register):
9394 Remove avr_peep2_scratch_safe use.
9395
9396 2008-07-11 Tom Tromey <tromey@redhat.com>
9397 Ian Lance Taylor <iant@google.com>
9398
9399 * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
9400 (struct c_common_resword): Define.
9401 (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
9402 (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
9403 (c_common_reswords, num_c_common_reswords): Declare.
9404 * c-common.c (c_common_reswords): New global const array.
9405 (num_c_common_reswords): New const int.
9406 * c-parser.c (struct resword, reswords): Don't define.
9407 (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
9408 (c_parse_init): Clarify mask code. Use c_common_reswords rather
9409 than reswords. If warning about C++ keywords, give them a special
9410 RID code.
9411 (c_lex_one_token): Warn about C++ keywords. Call
9412 objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
9413 (c_parser_external_declaration): Look for RID_xxx rather than
9414 RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
9415 (c_parser_statement_after_labels): Likewise.
9416 (c_parser_objc_class_instance_variables): Likewise.
9417 (c_parser_objc_class_declaration): Likewise.
9418 (c_parser_objc_try_catch_statement): Likewise.
9419 * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
9420 (declspecs_add_type): Likewise.
9421
9422 2008-07-11 Angelo Graziosi <angelo.graziosi@alice.it>
9423
9424 * ggc-page.c (alloc_page):
9425 Substituting xmalloc, xcalloc with
9426 XNEWVEC and XCNEWVAR macros which add the
9427 needed casts.
9428
9429 2008-07-11 Richard Guenther <rguenther@suse.de>
9430
9431 PR tree-optimization/36765
9432 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
9433 aliases from HEAP vars to SMTs.
9434
9435 2008-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9436
9437 * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
9438 * configure.ac (loose_warn): Move -Wc++-compat from here...
9439 (strict_warn): ...to here.
9440 * configure: Regenerate.
9441
9442 2008-07-10 Joseph Myers <joseph@codesourcery.com>
9443
9444 * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
9445 i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
9446 m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
9447 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
9448 excluding more specific h8300-*-* and sh-*-* targets.
9449
9450 2008-07-10 Daniel Berlin <dberlin@dberlin.org>
9451
9452 * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
9453 (eliminate): Ditto.
9454 (execute_pre): Call loop_optimizer_finalize in early exit.
9455
9456 2008-07-10 Jakub Jelinek <jakub@redhat.com>
9457
9458 PR middle-end/36790
9459 * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
9460 uids in the bitmap, not just VAR_DECL uids.
9461
9462 PR rtl-optimization/36419
9463 * combine-stack-adj.c (adjust_frame_related_expr): New function.
9464 (combine_stack_adjustments_for_block): Call it if needed. Delete
9465 correct insn.
9466 * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
9467 DW_CFA_GNU_args_size if CSA pass merged some adjustments into
9468 prologue sp adjustment.
9469
9470 2008-07-10 Peter Maydell <pmaydell@chiark.greenend.org.uk>
9471
9472 PR other/28322
9473 * opts.c (print_ignored_options): Report postponed diagnostics for
9474 unknown -Wno-* options as warnings, not errors.
9475 (postpone_unknown_option_error): Renamed to...
9476 (postpone_unknown_option_warning): ... this.
9477
9478 2008-07-09 Doug Kwan <dougkwan@google.com>
9479
9480 Revert:
9481 2008-07-08 Doug Kwan <dougkwan@google.com>
9482
9483 * config/arm/arm.opt (mandroid): New option.
9484 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
9485 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
9486 (CC1_SPEC): Same.
9487 (CC1PLUS_SPEC): Same.
9488 (LIB_SPEC): Same.
9489 (STARTFILE_SPEC): Same.
9490 (ENDFILE_SPEC): Same.
9491 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
9492 used.
9493
9494 2008-07-09 Richard Sandiford <rdsandiford@googlemail.com>
9495
9496 PR target/35802
9497 * config/mips/mips.h (reg_class): Remove V1_REG.
9498 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
9499 * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
9500 instead of V1_REGS.
9501 (mips_get_tp): New function.
9502 (mips_legitimize_tls_address): Use it.
9503 * config/mips/constraints.md (v): Delete.
9504 * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
9505 (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
9506 After reload, split into a move and ...
9507 (*tls_get_tp_<mode>_split): ...this new instruction.
9508
9509 2008-07-09 David Daney <ddaney@avtrex.com>
9510
9511 * config/mips/driver-native.c: Include coretypes.h and tm.h.
9512
9513 2008-07-09 Jakub Jelinek <jakub@redhat.com>
9514
9515 * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
9516 (push_gimplify_context): Don't allocate temp_htab nor c itself here.
9517 Add c argument.
9518 (pop_gimplify_context): Check c->temp_htab instead of optimize whether
9519 htab_delete should be called. Don't free c.
9520 (lookup_tmp_var): Create temp_htab lazily.
9521 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
9522 gimplify_body, force_gimple_operand): Adjust push_gimplify_context
9523 callers.
9524 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
9525 lower_omp_ordered, lower_omp_critical, lower_omp_for,
9526 create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
9527 * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
9528 * tree-sra.c (generate_element_init): Likewise.
9529 * tree-mudflap.c (execute_mudflap_function_ops,
9530 execute_mudflap_function_decls): Likewise.
9531 * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
9532 * tree-gimple.h (struct gimplify_ctx): New type.
9533 (push_gimplify_context): Adjust prototype.
9534
9535 2008-07-09 Daniel Berlin <dberlin@dberlin.org>
9536
9537 * tree-ssa-pre.c (phi_translate_1): Update placement of
9538 add_to_value calls.
9539
9540 2008-07-09 Anatoly Sokolov <aesok@post.ru>
9541
9542 * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
9543 * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
9544 (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
9545 * targhooks.c (default_hard_regno_scratch_ok): New function.
9546 * targhooks.h (default_hard_regno_scratch_ok): Declare function.
9547 * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
9548 * recog.c: Include "target.h".
9549 (peep2_find_free_register): Add check for global regs. Add target
9550 specific check.
9551 * Makefile.in (recog.o): Depend on target.h.
9552
9553 2008-07-09 Kaz Kojima <kkojima@gcc.gnu.org>
9554
9555 * config/sh/sh.c (sh_canonical_va_list_type): New.
9556 (TARGET_CANONICAL_VA_LIST_TYPE): Define.
9557
9558 2008-07-09 Raksit Ashok <raksit@google.com>
9559
9560 * doc/invoke.texi (Option Summary): Mention new option
9561 -Wdisallowed-function-list=...
9562 (Warning Options): Document -Wdisallowed-function-list=...
9563 * common.opt (Wdisallowed-function-list=): New flag.
9564 * flags.h (warn_disallowed_functions): External definition of new
9565 boolean warning flag.
9566 (warn_if_disallowed_function_p): Declare new function.
9567 * opts.c (warning_disallowed_functions): New static variable.
9568 (warn_disallowed_functions): New boolean warning flag.
9569 (warn_if_disallowed_function_p): New function.
9570 (add_comma_separated_to_vector): Rename
9571 add_instrument_functions_exclude_list to this.
9572 (common_handle_option): Handle new option. Rename calls to
9573 add_instrument_functions_exclude_list into calls to
9574 add_comma_separated_to_vector.
9575 * c-parser.c (c_parser_postfix_expression_after_primary): New warning
9576 based on flag warn_disallowed_functions.
9577
9578 2008-07-09 Christian Bruel <christian.bruel@st.com>
9579
9580 * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
9581 instead of get_attr_length.
9582
9583 2008-07-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9584
9585 * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
9586 keywords.
9587 * genemit.c (gen_insn): Likewise.
9588 * gengtype.c (note_def_vec): Likewise.
9589 * gengtype.h (note_def_vec): Likewise.
9590 * genoutput.c (struct data, output_insn_data, process_template,
9591 gen_expand, gen_split, note_constraint): Likewise.
9592 * genrecog.c (new_decision, add_to_sequence, factor_tests,
9593 make_insn_sequence): Likewise.
9594 * gensupport.c (record_insn_name): Likewise.
9595
9596 2008-07-08 Doug Kwan <dougkwan@google.com>
9597
9598 * config/arm/arm.opt (mandroid): New option.
9599 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
9600 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
9601 (CC1_SPEC): Same.
9602 (CC1PLUS_SPEC): Same.
9603 (LIB_SPEC): Same.
9604 (STARTFILE_SPEC): Same.
9605 (ENDFILE_SPEC): Same.
9606 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
9607 used.
9608
9609 2008-07-08 Raksit Ashok <raksit@google.com>
9610
9611 * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
9612 (set_storage_via_setmem): Fix expected_align parameter.
9613 * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
9614 missing from the list.
9615 * doc/md.texi (movmem): Explicitly state that expected alignment is
9616 to be expressed in bytes.
9617 (setmem): Explicitly state that expected alignment is to be expressed
9618 in bytes.
9619
9620 2008-07-08 Joseph Myers <joseph@codesourcery.com>
9621
9622 * reload.c (find_reloads_subreg_address): Do not require validity
9623 of address in original mode before reloading address.
9624
9625 2008-07-07 Tianwei Sheng <tianweis@google.com>
9626
9627 * df-core.c (df_remove_problem): Adjust the access to avoid out of
9628 bounds array access.
9629
9630 2008-07-08 Jakub Jelinek <jakub@redhat.com>
9631
9632 * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
9633
9634 2008-07-05 Daniel Berlin <dberlin@dberlin.org>
9635
9636 Fix PR tree-optimization/23455
9637 Fix PR tree-optimization/35286
9638 Fix PR tree-optimization/35287
9639 * Makefile.in (OBJS-common): Remove tree-vn.o.
9640 (tree-vn.o): Remove.
9641 * dbgcnt.def: Add treepre_insert debug counter.
9642 * gcc/tree-flow.h (add_to_value): Updated for other changes.
9643 (debug_value_expressions): Ditto.
9644 (print_value_expressions): Ditto.
9645 * tree-pretty-print.c (dump_generic_node): Updated for
9646 VALUE_HANDLE removal.
9647 * tree-ssa-dom.c (record_equality): Ditto.
9648 (cprop_operand): Ditto.
9649 (lookup_avail_expr): Ditto.
9650 * tree-ssa-threadedge.c
9651 (record_temporary_equivalences_from_stmts_at_dest): Ditto.
9652 (simplify_control_stmt_condition): Ditto.
9653 * tree.c (tree_code_size): Ditto.
9654 (tree_node_structure): Ditto.
9655 (iterative_hash_expr): Ditto.
9656 * tree.def: Ditto.
9657 * tree.h (VALUE_HANDLE_ID): Ditto.
9658 (VALUE_HANDLE_EXPR_SET): Ditto.
9659 (struct tree_value_handle): Ditto.
9660 (union tree_node): Ditto.
9661 * treestruct.def: Ditto.
9662 * tree-vn.c: Removed.
9663 * tree-ssa-pre.c: Rewritten entirely.
9664 * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
9665 (constant_value_ids): Ditto.
9666 (vn_nary_op_t): Moved to header.
9667 (vn_phi_t): Ditto.
9668 (vn_reference_op_t): Ditto
9669 (vn_reference_t): Ditto.
9670 (next_value_id): New variable.
9671 (VN_INFO): Add an assert.
9672 (vn_constant_eq): New function.
9673 (vn_constant_hash): Ditto.
9674 (get_or_alloc_constant_value_id): Ditto.
9675 (value_id_constant_p): Ditto.
9676 (vn_reference_compute_hash): De-staticify.
9677 (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
9678 Disable some code with a FIXME. Remove VALUE_HANDLE use.
9679 (valueize_refs): Update opcode if it changes from ssa name to constant.
9680 (vn_reference_lookup_1): Add new argument.
9681 (vn_reference_lookup): Ditto.
9682 (vn_reference_lookup_pieces): New function.
9683 (vn_reference_insert): Add return type. Modify to deal with value ids.
9684 (vn_reference_insert_pieces): New function.
9685 (vn_nary_op_compute_hash): De-staticify.
9686 (vn_nary_op_eq): Ditto.
9687 (vn_nary_op_lookup_pieces): New function.
9688 (vn_nary_op_lookup): Add new argument.
9689 (vn_nary_op_insert_pieces): New function.
9690 (vn_nary_op_insert): Add return type. Modify to deal with value ids.
9691 (vn_phi_insert): Ditto.
9692 (visit_unary_op): Update for callee changes.
9693 (visit_binary_op): Ditto.
9694 (visit_reference_op_load): Ditto.
9695 (visit_reference_op_store): Ditto.
9696 (init_scc_vn): Init next_value_id, constant_to_value_id and
9697 constant_value_ids.
9698 (free_scc_vn): Free them.
9699 (set_hashtable_value_ids): New function.
9700 (run_scc_vn): Use it.
9701 (get_max_value_id): New function.
9702 (get_next_value_id): Ditto.
9703 (expressions_equal_p): Moved from tree-vn.c
9704 (sort_vuses): Ditto.
9705 (sort_vuses_heap): Ditto.
9706 * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
9707 above).
9708 * tree.c (iterative_hash_hashval_t): Made non-static
9709 * tree.h (iterative_hash_hashval_t): Declare it.
9710
9711 2008-07-08 Martin Jambor <mjambor@suse.cz>
9712
9713 * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
9714 instead of ipa_create_node_params.
9715 (ipcp_driver): Allocate infos with ipa_check_create_node_params and
9716 ipa_check_create_edge_args, free them with
9717 free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
9718
9719 * ipa-prop.c: Include flags.h and tree-inline.h.
9720 (ipa_node_params_vector): New variable.
9721 (ipa_edge_args_vector): New variable.
9722 (edge_removal_hook_holder): New variable.
9723 (node_removal_hook_holder): New variable.
9724 (edge_duplication_hook_holder): New variable.
9725 (node_duplication_hook_holder): New variable.
9726 (ipa_detect_param_modifications): Check for presence of modified flags.
9727 (ipa_compute_jump_functions): Check for presence of jump functions.
9728 (ipa_free_edge_args_substructures): New function.
9729 (ipa_create_node_params): Removed.
9730 (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
9731 (ipa_free_node_params_substructures): New function.
9732 (ipa_free_all_node_params): Changed to deallocate the on-the-side
9733 vector.
9734 (ipa_edge_removal_hook): New function.
9735 (ipa_node_removal_hook): New function.
9736 (duplicate_array): New function.
9737 (ipa_edge_duplication_hook): New function.
9738 (ipa_node_duplication_hook): New function.
9739 (ipa_register_cgraph_hooks): New function.
9740 (ipa_unregister_cgraph_hooks): New function.
9741 (free_all_ipa_structures_after_ipa_cp): New function.
9742
9743 * ipa-prop.h: Include vec.h.
9744 (ipa_node_params_t): New typedef with vector types for it.
9745 (ipa_edge_args_t): New typedef with vector types for it.
9746 (IPA_NODE_REF): Changed to access an on-the-side vector.
9747 (IPA_EDGE_REF): Changed to access an on-the-side vector.
9748 (ipa_check_create_node_params): New function.
9749 (ipa_check_create_edge_args): New function.
9750
9751 * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h. Converted
9752 all users.
9753
9754 2008-07-07 Tom Tromey <tromey@redhat.com>
9755
9756 * configure, config.in: Rebuilt.
9757 * configure.ac: Don't check for scandir or alphasort.
9758
9759 2008-07-07 Joseph Myers <joseph@codesourcery.com>
9760
9761 * config/arm/arm.c (arm_init_neon_builtins): Register built-in
9762 types immediately after creating them.
9763
9764 2008-07-07 Joseph Myers <joseph@codesourcery.com>
9765
9766 * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
9767
9768 2008-07-07 Fernando Pereira <fernando@cs.ucla.edu>
9769
9770 * tree-ssa-structalias.c (compute_points_to_sets): Add call to
9771 dump_constraint_graph.
9772 (dump_constraint_edge): New function.
9773 (dump_constraint_graph): New function.
9774 (debug_constraint_graph): New function.
9775 (dump_constraint): Removed useless comparison.
9776 * tree-ssa-structalias.h (dump_constraint_edge): Declare.
9777 (dump_constraint_graph): Declare.
9778 (debug_constraint_graph): Declare.
9779 * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
9780
9781 2008-07-07 Kai Tietz <kai.tietz@onevision.com>
9782
9783 * config/i386/i386.c (is_va_list_char_pointer): New.
9784 (ix86_va_start): Replace compare with ms_va_list_type_node
9785 by is_va_list_char_pointer.
9786 (ix86_gimplify_va_arg): Likewise.
9787
9788 2008-07-07 Martin Jambor <mjambor@suse.cz>
9789
9790 * cgraph.c (cgraph_edge_max_uid): New variable.
9791 (struct cgraph_edge_hook_list): New type.
9792 (struct cgraph_node_hook_list): New type.
9793 (struct cgraph_2edge_hook_list): New type.
9794 (struct cgraph_2node_hook_list): New type.
9795 (first_cgraph_edge_removal_hook): New variable.
9796 (first_cgraph_node_removal_hook): New variable.
9797 (first_cgraph_edge_duplicated_hook): New variable.
9798 (first_cgraph_node_duplicated_hook): New variable.
9799 (cgraph_add_edge_removal_hook): New function.
9800 (cgraph_remove_edge_removal_hook): New function.
9801 (cgraph_call_edge_removal_hooks): New function.
9802 (cgraph_add_node_removal_hook): New function.
9803 (cgraph_remove_node_removal_hook): New function.
9804 (cgraph_call_node_removal_hooks): New function.
9805 (cgraph_add_edge_duplication_hook): New function.
9806 (cgraph_remove_edge_duplication_hook): New function.
9807 (cgraph_call_edge_duplication_hooks): New function.
9808 (cgraph_add_node_duplication_hook): New function.
9809 (cgraph_remove_node_duplication_hook): New function.
9810 (cgraph_call_node_duplication_hooks): New function.
9811 (cgraph_create_edge): Assign to edge uid.
9812 (cgraph_remove_edge): Call edge removal hooks.
9813 (cgraph_node_remove_callees): Call edge removal hooks.
9814 (cgraph_node_remove_callers): Call edge removal hooks.
9815 (cgraph_remove_node): Call node removal hooks.
9816 (cgraph_clone_edge): Call edge duplication hooks.
9817 (cgraph_clone_node): Call node duplication hooks.
9818
9819 * cgraph.h (cgraph_edge): New field uid.
9820 (cgraph_edge_hook): New type.
9821 (cgraph_node_hook): New type.
9822 (cgraph_2edge_hook): New type.
9823 (cgraph_2node_hook): New type.
9824
9825 2008-07-07 Andreas Tobler <a.tobler@schweiz.org>
9826
9827 * config.in: Regenerate.
9828
9829 2008-07-07 Vladimir Prus <vladimir@codesourcery.com>
9830
9831 * gcc.c (print_sysroot): New.
9832 (option_map, display_help, process_command): Handle the
9833 -print-sysroot option.
9834 (main): Print the sysroot if requested.
9835 * doc/invoke.texi (Debugging Options): Document -print-sysroot.
9836
9837 2008-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9838
9839 PR target/34780
9840 * unwind-pe.h (size_of_encoded_value): add attribute unused.
9841
9842 2008-07-07 Daniel Jacobowitz <dan@codesourcery.com>
9843
9844 * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
9845 (assign_parm_setup_block_p): Also check mode of entry_parm.
9846
9847 2008-07-07 Richard Guenther <rguenther@suse.de>
9848
9849 * tree-ssa-structalias.h (set_used_smts): Remove.
9850 * tree-ssa-structalias.c (used_smts): Likewise.
9851 (set_used_smts): Likewise.
9852 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
9853 call to set_used_smts.
9854
9855 2008-07-07 Richard Guenther <rguenther@suse.de>
9856
9857 * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
9858 (new_var_info): Set it to false.
9859 (solution_set_add): Correctly handle pointers outside a var and
9860 inside a field.
9861 (type_safe): Treat variables with is_full_var properly.
9862 (do_sd_constraint): Likewise.
9863 (do_ds_constraint): Likewise.
9864 (process_constraint): Remove zeroing offset for !use_field_sensitive.
9865 (get_constraint_for_ptr_offset): New function.
9866 (get_constraint_for_component_ref): For addresses at least include
9867 the last field of the variable. Handle is_full_vars properly.
9868 (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
9869 (handle_ptr_arith): Remove.
9870 (find_func_aliases): Simplify assignment handling.
9871 (create_function_info_for): For parameter and result varinfos set
9872 is_full_var flag.
9873 (create_variable_info_for): Set is_full_var flag whenever we
9874 just created a single varinfo for a decl.
9875 (init_alias_vars): Initialize use_field_sensitive from
9876 max-fields-for-field-sensitive parameter.
9877
9878 2008-07-07 Richard Guenther <rguenther@suse.de>
9879
9880 PR tree-optimization/36713
9881 * tree-flow-inline.h (is_call_used): New function.
9882 * tree-nrv.c (dest_safe_for_nrv_p): Use it.
9883 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
9884 * tree-outof-ssa.c (create_temp): Set call-used flag if required.
9885
9886 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
9887
9888 * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
9889
9890 2008-07-07 Mark Shinwell <shinwell@codesourcery.com>
9891
9892 * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
9893
9894 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
9895 Nathan Sidwell <nathan@codesourcery.com>
9896
9897 * config.gcc (m68k-*-linux*): Add with_arch. Add sysroot-suffix.h
9898 to tm_file. Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
9899 tmake_file.
9900 * config/m68k/t-linux: New.
9901 * doc/install.texi: Document m68k-*-linux is now multilibbed by
9902 default.
9903
9904 2008-07-07 Nathan Sidwell <nathan@codesourcery.com>
9905
9906 * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
9907 * config/m68k/m68k-devices.def: Remove multilibs that only differ
9908 by MAC/EMAC.
9909
9910 2008-07-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9911
9912 * gcc.c (execute): Fix -Wc++-compat warning.
9913
9914 2008-07-06 H.J. Lu <hongjiu.lu@intel.com>
9915
9916 PR target/36720
9917 * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
9918 constant for little endian.
9919
9920 2008-07-06 Richard Sandiford <rdsandiford@googlemail.com>
9921
9922 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
9923 mips_base_mips16 instead of TARGET_MIPS16.
9924 (mips_base_mips16): Declare.
9925 * config/mips/mips.c (mips_base_mips16): Make global.
9926 (was_mips16_p): Remove GTY marker.
9927 (was_mips16_pch_p): New variable.
9928 (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
9929 (mips_override_options): Force to non-MIPS16 mode initially.
9930 Do not complain about MIPS16 PIC incompatibilities here.
9931 Only allow -mgpopt if -mexplicit-relocs is in force for
9932 non-MIPS16 code.
9933
9934 2008-07-06 Andreas Tobler <a.tobler@schweiz.org>
9935
9936 * configure.ac: Check for caddr_t, define to char * if not defined.
9937 * configure: Regenerate.
9938 * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
9939 (mmap_gt_pch_use_address): Likewise.
9940 * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
9941
9942 2008-07-06 Richard Guenther <rguenther@suse.de>
9943
9944 * tree-ssa-structalias.c (struct variable_info): Remove has_union.
9945 (new_var_info): Deal with it.
9946 (solution_set_add): Likewise.
9947 (bitpos_of_field): Make signed, fix.
9948 (struct fieldoff): Remove type and decl fields. Make size field
9949 unsigned HOST_WIDE_INT. Add has_unknown_size and may_have_pointers
9950 flags.
9951 (fieldoff_compare): Deal with it.
9952 (push_fields_onto_fieldstack): Remove has_union argument, glob
9953 adjacent non-pointer fields together.
9954 (create_function_info_for): Do not set has_union.
9955 (create_variable_info_for): Simplify.
9956
9957 2008-07-06 Kai Tietz <kai.tietz@onevision.com>
9958
9959 * config.gcc (extra_headers): Add cross-stdarg.h for target
9960 x86_64-*-* and i?86-*-*.
9961 * config/i386/cross-stdarg.h: New.
9962 * builtins.c (std_fn_abi_va_list): New.
9963 (std_canonical_va_list_type): New.
9964 (stabilize_va_list): Replace va_list_type_node use by
9965 mtarget.canonical_va_list_type.
9966 (gimplify_va_arg_expr): Likewise.
9967 (expand_builtin_va_copy): Replace va_list_type_node use by
9968 mtarget.fn_abi_va_list.
9969 * tree-sra.c (is_va_list_type): New helper.
9970 (decl_can_be_decomposed_p): Replace
9971 va_list_type_node use by is_va_list_type.
9972 * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
9973 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
9974 * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
9975 * config/i386/i386-protos.h (ix86_get_valist_type): New.
9976 (ix86_enum_va_list): New.
9977 * config/i386/i386.c (sysv_va_list_type_node): New.
9978 (ms_va_list_type_node): New.
9979 (ix86_function_type_abi): Remove sorry.
9980 (ix86_build_builtin_va_list_abi): New.
9981 (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
9982 for 64-bit targets.
9983 (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
9984 (ix86_init_builtins_va_builtins_abi): New.
9985 (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
9986 for 64-bit targets.
9987 (ix86_handle_abi_attribute): New.
9988 (attribute_spec): Add sysv_abi and ms_abi.
9989 (ix86_fn_abi_va_list): New.
9990 (ix86_canonical_va_list_type): New.
9991 (ix86_enum_va_list): New.
9992 (TARGET_FN_ABI_VA_LIST): New.
9993 (TARGET_CANONICAL_VA_LIST_TYPE): New.
9994 * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
9995 * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
9996 (TARGET_CANONICAL_VA_LIST_TYPE): New.
9997 (TARGET_ENUM_VA_LIST): New.
9998 * expr.h (std_fn_abi_va_list): New.
9999 (std_canonical_va_list_type): New.
10000 * target-def.h (TARGET_FN_ABI_VA_LIST): New.
10001 (TARGET_CANONICAL_VA_LIST_TYPE): New.
10002 (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
10003 TARGET_CANONICAL_VA_LIST_TYPE.
10004 * target.h (struct gcc_target): Add fn_abi_va_list hook
10005 and canonical_va_list_type hook.
10006
10007 2008-07-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
10008
10009 * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
10010 integral and pointer types.
10011
10012 2008-07-04 Roger Sayle <roger@eyesopen.com>
10013
10014 * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
10015 the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
10016
10017 2008-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
10018
10019 PR target/36684
10020 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
10021
10022 2008-07-04 Jakub Jelinek <jakub@redhat.com>
10023
10024 * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
10025 build_gimple_modify_stmt.
10026 (build_arrays, gen_inbound_check): Likewise. Force RHS to be
10027 gimple operand. Use fold_build* instead of build*.
10028
10029 2008-07-04 Richard Guenther <rguenther@suse.de>
10030
10031 * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
10032 (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
10033 properly to compute the reachability set if we do field-sensitive PTA.
10034 * invoke.texi (max-fields-for-field-sensitive): Document default.
10035 * opts.c (decode_options): Set max-fields-for-field-sensitive to
10036 100 for optimize >= 2.
10037
10038 2008-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10039
10040 * ggc-zone.c (lookup_page_table_if_allocated,
10041 set_page_table_entry, zone_find_object_size, alloc_small_page,
10042 alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
10043 new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
10044 -Wc++-compat and/or -Wcast-qual warnings.
10045
10046 2008-07-04 Alan Modra <amodra@bigpond.net.au>
10047
10048 PR target/36634
10049 * config/rs6000/rs6000.md (call, call_value): Don't arrange for
10050 pic_offset_table_rtx to be marked as used here.
10051 (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
10052 TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
10053 (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
10054 (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
10055 !TARGET_SECURE_PLT.
10056
10057 2008-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10058
10059 * alloc-pool.c (hash_descriptor, eq_descriptor,
10060 alloc_pool_descriptor): Fix -Wc++-compat warnings.
10061 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
10062 Likewise.
10063 * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
10064 loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
10065 final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
10066 * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
10067 Likewise.
10068
10069 2008-07-03 Eric Botcazou <ebotcazou@adacore.com>
10070
10071 * tree-flow.h (loop_only_exit_p): Declare.
10072 * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
10073 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
10074 the number of iterations if it is constant. Otherwise, if this is the
10075 only possible exit of the loop, use the conservative estimate on the
10076 number of iterations of the entire loop if available.
10077
10078 2008-07-03 Richard Sandiford <rdsandiford@googlemail.com>
10079
10080 * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
10081 * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
10082 Add synchronization functions.
10083 * config/sync.c: New file.
10084 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
10085 (LIBGCC_SYNC_CFLAGS): Likewise.
10086
10087 2008-07-03 Uros Bizjak <ubizjak@gmail.com>
10088
10089 PR target/36710
10090 * config/i386/i386.md (mode): Add TF to "mode" attribute.
10091 (*pushtf_sse): New insn pattern.
10092 (pushtf splitters): New splitters.
10093
10094 2008-07-03 Michael Meissner <gnu@the-meissners.org>
10095
10096 PR middle-end/35736
10097 * predict.c (build_predict_expr): Use void_type_node for the tree
10098 type, instead of NULL_TREE.
10099
10100 2008-07-03 H.J. Lu <hongjiu.lu@intel.com>
10101
10102 * config/i386/i386.c (contains_aligned_value_p): Return true
10103 for TCmode.
10104 (ix86_data_alignment): Align TCmode to 128bits.
10105 (ix86_local_alignment): Likewise.
10106
10107 2008-07-03 Andrew Haley <aph@redhat.com>
10108
10109 PR bootstrap/33304
10110 * vec.h (VEC_TA): New.
10111 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
10112 DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
10113 * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
10114 (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
10115 (C_COMMON_FIXED_TYPES): Remove first arg.
10116 (C_COMMON_FIXED_MODE_TYPES): Likewise.
10117 * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
10118 MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
10119 not to use empty macro arguments.
10120
10121 2008-07-02 Joseph Myers <joseph@codesourcery.com>
10122
10123 * config/alpha/vms_tramp.asm, config/arm/crti.asm,
10124 config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
10125 config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
10126 config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
10127 config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
10128 config/i386/sol2-gc1.asm, config/ia64/crti.asm,
10129 config/ia64/crtn.asm, config/m68hc11/larith.asm,
10130 config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
10131 config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
10132 config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
10133 config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
10134 config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
10135 config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
10136 config/rs6000/e500crtres64gpr.asm,
10137 config/rs6000/e500crtres64gprctr.asm,
10138 config/rs6000/e500crtrest32gpr.asm,
10139 config/rs6000/e500crtrest64gpr.asm,
10140 config/rs6000/e500crtresx32gpr.asm,
10141 config/rs6000/e500crtresx64gpr.asm,
10142 config/rs6000/e500crtsav32gpr.asm,
10143 config/rs6000/e500crtsav64gpr.asm,
10144 config/rs6000/e500crtsav64gprctr.asm,
10145 config/rs6000/e500crtsavg32gpr.asm,
10146 config/rs6000/e500crtsavg64gpr.asm,
10147 config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
10148 config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
10149 config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
10150 config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
10151 config/sparc/sol2-cn.asm: Remove .file directives.
10152
10153 2008-07-02 Richard Sandiford <rdsandiford@googlemail.com>
10154
10155 * resource.c (mark_referenced_resources): Look inside
10156 UNSPEC_VOLATILEs and ASM_INPUTs.
10157
10158 2008-07-02 Ian Lance Taylor <iant@google.com>
10159
10160 * rtlanal.c (add_reg_note): New function.
10161 * rtl.h (add_reg_note): Declare.
10162 * auto-inc-dec.c (attempt_change): Use add_reg_note.
10163 * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
10164 * builtins.c (expand_builtin_longjmp): Likewise.
10165 (expand_builtin_nonlocal_goto): Likewise.
10166 * calls.c (emit_call_1, expand_call): Likewise.
10167 * cfgexpand.c (add_reg_br_prob_note): Likewise.
10168 * cfglayout.c (fixup_reorder_chain): Likewise.
10169 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
10170 (commit_one_edge_insertion): Likewise.
10171 * combine.c (move_deaths, distribute_notes): Likewise.
10172 * df-problems.c (df_set_note): Likewise.
10173 * emit-rtl.c (link_cc0_insns, try_split): Likewise.
10174 (set_unique_reg_note): Likewise.
10175 (emit_copy_of_insn_after): Likewise.
10176 * expr.c (expand_expr_real): Likewise.
10177 * gcse.c (add_label_notes): Likewise.
10178 * haifa-sched.c (create_check_block_twin): Likewise.
10179 * jump.c (mark_jump_label_1): Likewise.
10180 * loop-doloop.c (add_test, doloop_modify): Likewise.
10181 * loop-unswitch.c (compare_and_jump_seq): Likewise.
10182 * lower-subreg.c (move_eh_region_note): Likewise.
10183 * optabs.c (emit_libcall_block): Likewise.
10184 * predict.c (predict_insn): Likewise.
10185 (combine_predictions_for_insn): Likewise.
10186 * recog.c (peephole2_optimize): Likewise.
10187 * regmove.c (try_auto_increment): Likewise.
10188 * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
10189 * reload.c (find_reloads): Likewise.
10190 * reload1.c (fixup_eh_region_note): Likewise.
10191 (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
10192 * reorg.c (delete_prior_computation): Likewise.
10193 (delete_computation, dbr_schedule): Likewise.
10194 * config/pa/pa.c (legitimize_pic_address): Likewise.
10195 * config/sh/sh.c (sh_reorg): Likewise.
10196
10197 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
10198
10199 PR target/36669
10200 * config/libgcc-glibc.ver: Add %exclude.
10201 * config/m32r/libgcc-glibc.ver: Likwise.
10202 * config/s390/libgcc-glibc.ver: Likwise.
10203 * config/sh/libgcc-glibc.ver: Likwise.
10204 * config/sparc/libgcc-sparc-glibc.ver: Likwise.
10205
10206 * config/i386/libgcc-glibc.ver: New.
10207
10208 * config/i386/libgcc-x86_64-glibc.ver: Removed.
10209
10210 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
10211
10212 * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
10213 from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
10214 i[34567]86-*-linux*, x86_64-*-linux*. Add
10215 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
10216 i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
10217 x86_64-*-linux*. Add i386/t-linux to tmake_file for
10218 i[34567]86-*-linux*, x86_64-*-linux*.
10219
10220 * libgcc-std.ver: Add empty GCC_4.4.0.
10221
10222 * mkmap-symver.awk: Support multiple versions per symbol.
10223
10224 * config/i386/i386.c (ix86_init_builtins): Always define
10225 __builtin_fabsq and __builtin_copysignq with fallbacks.
10226 (ix86_expand_builtin): Emit normal call for __builtin_fabsq
10227 and __builtin_copysignq if SSE2 isn't available.
10228
10229 * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
10230 (LIBGCC2_TF_CEXT): Likwise.
10231 (TF_SIZE): Likwise.
10232
10233 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
10234
10235 * config/i386/sfp-machine.h: Moved to libgcc.
10236
10237 * config/i386/sfp-machine.h: New.
10238 * config/i386/t-linux: Likwise.
10239
10240 * config/i386/t-darwin: Remove softfp_wrap_start and
10241 softfp_wrap_end.
10242 * config/i386/t-darwin64: Likewise.
10243
10244 * config/i386/t-fprules-softfp64: Renamed to ...
10245 * config/i386/t-fprules-softfp: This.
10246
10247 * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
10248 and softfp_wrap_end.
10249
10250 2008-07-02 Jason Merrill <jason@redhat.com>
10251
10252 * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
10253
10254 * tree.c (ctor_to_list): New fn.
10255 * tree.h: Declare it.
10256 (CONSTRUCTOR_ELT): New macro.
10257 (CONSTRUCTOR_NELTS): New macro.
10258
10259 2008-07-02 Richard Guenther <rguenther@suse.de>
10260
10261 * tree-ssa-structalias.c (struct variable_info): Reorder
10262 to fill padding on 64bit hosts. Make collapsed_to an int.
10263 (get_varinfo_fc): Deal with that.
10264 (new_var_info): Likewise.
10265 (collapse_rest_of_var): Likewise.
10266
10267 2008-07-02 Joshua Sumali <jsumali@redhat.com>
10268
10269 * doc/install.texi (--enable-java-home): Document.
10270 (--enable-aot-compile-rpm): Likewise.
10271 (--with-arch-directory): Likewise.
10272 (--with-os-directory): Likewise.
10273 (--with-origin-name): Likewise.
10274 (--with-arch-suffix): Likewise.
10275 (--with-jvm-root-dir): Likewise.
10276 (--with-jvm-jar-dir): Likewise.
10277 (--with-python-dir): Likewise.
10278
10279 2008-07-02 Richard Guenther <rguenther@suse.de>
10280
10281 * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
10282 from decls explicitly. Merge operand checking from tuples.
10283
10284 2008-07-02 Martin Jambor <mjambor@suse.cz>
10285
10286 * tree-switch-conversion.c: Included timevar.h which I forgot before.
10287
10288 2008-07-02 Martin Jambor <mjambor@suse.cz>
10289
10290 * tree-switch-conversion.c: Included timevar.h
10291 (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
10292
10293 * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
10294
10295 2008-07-02 Martin Jambor <mjambor@suse.cz>
10296
10297 * tree-switch-conversion.c: Corrected various comments and
10298 whitespace issues
10299 (build_constructors): Fixed minor formatting mistakes.
10300
10301 * invoke.texi (Optimize Options): Corrected the
10302 switch-conversion-max-branch-ratio parameter.
10303
10304 2008-07-02 Mark Shinwell <shinwell@codesourcery.com>
10305
10306 * final.c (asm_insn_count): Return zero for an empty asm body.
10307
10308 2008-07-02 Richard Guenther <rguenther@suse.de>
10309
10310 * bitmap.h (bitmap_set_bit): Return bool.
10311 (bitmap_clear_bit): Likewise.
10312 * bitmap.c (bitmap_set_bit): Return if the bit changed. Only
10313 write to the bitmap if it would.
10314 (bitmap_clear_bit): Likewise.
10315 * tree-ssa-structalias.c (add_implicit_graph_edge): Use
10316 bitmap_set_bit return value.
10317 (add_pred_graph_edge): Likewise.
10318 (add_graph_edge): Likewise.
10319 (do_sd_constraint): Likewise.
10320 (do_ds_constraint): Likewise.
10321
10322 2008-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10323
10324 * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
10325 Fix -Wc++-compat and/or -Wcast-qual warnings.
10326 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
10327 gen_regparm_prefix): Likewise.
10328 * vmsdbgout.c (write_modbeg, lookup_filename,
10329 vmsdbgout_source_line, vmsdbgout_init): Likewise.
10330
10331 2008-07-02 Danny Smith <dannysmith@users.sourceforge.net>
10332
10333 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
10334 defaults.h definition apply.
10335
10336 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
10337
10338 * function.c (assign_parm_remove_parallels): New.
10339 (assign_parm_setup_block_p): Do not return true for non-BLKmode
10340 PARALLELs.
10341 (assign_parm_setup_block): Do not handle them.
10342 (assign_parm_setup_reg, assign_parm_setup_stack): Call
10343 assign_parm_remove_parallels.
10344
10345 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
10346
10347 * c-typeck.c (convert_for_assignment): Use
10348 vector_targets_convertible_p.
10349 * c-common.c (vector_targets_convertible_p): New.
10350 * c-common.h (vector_targets_convertible_p): New prototype.
10351 * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
10352 opaque_p_V2SI_type_node.
10353
10354 2008-07-01 Steve Ellcey <sje@cup.hp.com>
10355
10356 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
10357 RFmode constants.
10358
10359 2008-07-01 Uros Bizjak <ubizjak@gmail.com>
10360
10361 * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
10362 TFmode constants via two element DImode vector for hosts with
10363 HOST_BITS_PER_WIDE_INT < 64.
10364 (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
10365 also for HOST_BITS_PER_WIDE_INT < 64.
10366
10367 2008-07-01 Richard Guenther <rguenther@suse.de>
10368
10369 PR tree-optimization/36666
10370 * tree-ssa-structalias.c (get_constraint_for_1): Declare.
10371 (get_constraint_exp_from_ssa_var): Split into ...
10372 (get_constraint_exp_for_temp): ... this ...
10373 (get_constraint_for_ssa_var): ... and that.
10374 Return constraint expressions for all touched sub-fields
10375 if the results address is not taken.
10376 (process_constraint): Remove assertion that aggregate
10377 assignments do not happen at this place.
10378 (get_constraint_for_component_ref): Add address_p argument.
10379 Return constraint expressions for all touched sub-fields
10380 if the results address is not taken.
10381 (do_deref): Use get_constraint_exp_for_temp.
10382 (get_constraint_for_1): Rename from ...
10383 (get_constraint_for): ... this. Add the old function as wrapper.
10384 (do_structure_copy): Use get_constraint_for_1.
10385
10386 2008-07-01 Martin Jambor <mjambor@suse.cz>
10387
10388 * Makefile.in (tree-switch-conversion.o): Add.
10389 (OBJS-common): Add tree-swtch-conversion.o.
10390 * passes.c (init_optimization_passes): Add pass_convert_switch.
10391 * tree-pass.h: (pass_convert_switch): Add.
10392 * tree-switch-conversion.c: New file.
10393 * gcc.dg/tree-ssa/cswtch.c: New testcase.
10394 * common.opt (ftree-cswtch): New option.
10395 * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
10396 * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
10397 * opts.c (decode_options): Set flag_tree_switch_conversion when
10398 optimization level is >= 2.
10399 * doc/invoke.texi (Optimize Options): Added description of
10400 -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
10401
10402 2008-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10403
10404 * config/darwin-driver.c (darwin_default_min_version): Fix
10405 -Wc++-compat warnings.
10406
10407 2008-06-30 Uros Bizjak <ubizjak@gmail.com>
10408
10409 * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
10410 of operand 0.
10411
10412 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
10413
10414 * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
10415
10416 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
10417
10418 PR rtl-optimization/34744
10419 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
10420 (df_scan_free_internal): Free data structures not
10421 allocated in storage pools.
10422 (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
10423 (df_refs_add_to_chains): Use df_scan_free_ref_vec and
10424 df_scan_free_mws_vec.
10425 * dse.c (dse_step6): Free offset_map_p and offset_map_n
10426 unconditionally.
10427
10428 2008-06-30 H.J. Lu <hongjiu.lu@intel.com>
10429
10430 * config/i386/i386.c (contains_aligned_value_p): Return true
10431 for __float128.
10432 (ix86_function_arg_boundary): Return its natural boundary
10433 for __float128.
10434 (return_in_memory_32): Don't check TDmode.
10435 (ix86_split_to_parts): Support splitting into 4 parts and
10436 support TFmode for 32bit target.
10437 (ix86_split_long_move): Support splitting into 4 parts.
10438 (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
10439 for SSE2.
10440 (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
10441 (ix86_init_builtins): Here.
10442 (ix86_scalar_mode_supported_p): Always return true for TFmode.
10443 (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
10444 'q' and 'w', respectively.
10445
10446 * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
10447 TARGET_64BIT.
10448 (movtf_internal): Likewise.
10449 (<code>tf2): Likewise.
10450 (*absnegtf2_sse): Likewise.
10451 (copysign<mode>3): Likewise.
10452 (copysign<mode>3_const): Likewise.
10453 (copysign<mode>3_var): Likewise.
10454 (define_split UNSPEC_COPYSIGN): Likewise.
10455 * config/i386/sse.md (*nandtf3): Likewise.
10456 (<code>tf3): Likewise.
10457 (*<code>tf3): Likewise.
10458
10459 2008-06-30 Joey Ye <joey.ye@intel.com>
10460 H.J. Lu <hongjiu.lu@intel.com>
10461
10462 * global.c (compute_regsets): Set frame_pointer_needed here.
10463 * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
10464
10465 2008-06-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
10466
10467 * doc/install.texi (specific): Expand Windows build notes.
10468
10469 2008-06-30 Ira Rosen <irar@il.ibm.com>
10470
10471 PR tree-optimization/36648
10472 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
10473 number of prolog iterations by step. Fix the comment.
10474
10475 2008-06-30 Richard Guenther <rguenther@suse.de>
10476
10477 PR middle-end/36671
10478 * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
10479 handle calls from ECF_MALLOC functions.
10480 (handle_pure_call): ECF_MALLOC functions do not return
10481 call-used memory.
10482 (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
10483
10484 2008-06-29 Andreas Schwab <schwab@suse.de>
10485
10486 * config/m68k/m68k.c (print_operand): Always print a float
10487 constant in hex.
10488 * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
10489 (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
10490 Remove macros.
10491
10492 * config/rs6000/x-linux64: Remove never used file.
10493
10494 2008-06-29 Richard Guenther <rguenther@suse.de>
10495
10496 * tree-ssa-structalias.h (compute_points_to_sets): Adjust
10497 prototype.
10498 (struct alias_info): Move ...
10499 * tree-ssa-alias.c: ... here.
10500 (update_alias_info): Declare.
10501 (compute_may_aliases): Call it.
10502 (update_alias_info): New function.
10503 * tree-ssa-structalias.c (update_alias_info): Move ...
10504 * tree-ssa-alias.c (update_alias_info_1): ... here.
10505 * tree-ssa-structalias.c (process_constraint_1): Remove
10506 unused from_call argument. Rename to ...
10507 (process_constraint): ... this. Delete old wrapper.
10508 (make_constraint_to): Adjust callers.
10509 (handle_const_call): Likewise.
10510 (handle_pure_call): Likewise.
10511 (init_base_vars): Likewise.
10512 (handle_lhs_call): Likewise. Remove unnecessary constraint.
10513 (find_func_aliases): We don't need structure copies for
10514 complex types.
10515 (make_constraint_from_anything): Remove.
10516 (create_variable_info_for): For globals make constraints
10517 from escaped, not from anything.
10518 (compute_points_to_sets): Do not call update_alias_info.
10519 (ipa_pta_execute): Use make_constraint_from.
10520
10521 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10522
10523 * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
10524 (bitmap.o-warn, dominance.o-warn): New.
10525 * configure.ac (cxx_compat_warn): Delete.
10526 (loose_warn): Add -Wcast-qual and -Wc++-compat.
10527 * system.h: Remove #pragma diagnostic for -Wcast-qual and
10528 -Wc++-compat.
10529 * configure: Regenerate.
10530
10531 * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
10532 warnings.
10533
10534 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10535
10536 * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
10537 * df-scan.c (df_notes_rescan): Likewise.
10538 * ggc-page.c (set_page_table_entry): Likewise.
10539 * intl.c (gcc_gettext_width): Likewise.
10540 * varasm.c (get_unnamed_section, get_noswitch_section,
10541 get_section): Likewise.
10542
10543 2008-06-28 Andrew Jenner <andrew@codesourcery.com>
10544
10545 * regrename.c (build_def_use): Don't copy RTX.
10546
10547 2008-06-28 Sandra Loosemore <sandra@codesourcery.com>
10548
10549 * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
10550 (Type Attributes): Fix nesting of @table and @subsection. Adjust
10551 punctuation. Use @ref instead of @xref.
10552 (Function Names): Remove stray @display/@end display.
10553 (C++ Attributes): Use @ref instead of @xref.
10554 (Deprecated Features): Fix punctuation around @xref.
10555 (Backwards Compatibility): Likewise.
10556 * doc/rtl.texi (Incdec): Remove stray @table/@end table.
10557
10558 2008-06-28 Joseph Myers <joseph@codesourcery.com>
10559
10560 * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
10561 constants for E500 double.
10562
10563 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10564
10565 * doc/rtl.texi (const_vector): Document const_fixed as legitimate
10566 element type of const_vector.
10567
10568 2008-06-28 Uros Bizjak <ubizjak@gmail.com>
10569
10570 * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
10571 Remove FLAGS_REG clobber from expander pattern.
10572 (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
10573 (anddi3, andsi3, andhi3, andqi3): Ditto.
10574 (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
10575 (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
10576 (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
10577 (ashlsi3, ashlhi3, ashlqi3): Ditto.
10578 (ashrsi3, ashrhi3, ashrqi3): Ditto.
10579 (lshrsi3, lshrhi3, lshrqi3): Ditto.
10580 (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
10581 (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
10582
10583 2008-06-28 Richard Guenther <rguenther@suse.de>
10584
10585 * tree-ssa-structalias.c (callused_id, var_callused,
10586 callused_tree): Add.
10587 (handle_pure_call): New function.
10588 (find_func_aliases): Call it.
10589 (find_what_p_points_to): Handle the call-used set.
10590 (clobber_what_escaped): Likewise.
10591 (compute_call_used_vars): New function.
10592 (init_base_vars): Init the call-used variable.
10593 (do_sd_constraint): Do not propagate the solution from CALLUSED
10594 but use CALLUSED as a placeholder.
10595 (solve_graph): Likewise.
10596 * tree-flow-inline.h (gimple_call_used_vars): New function.
10597 * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
10598 (compute_call_used_vars): Declare.
10599 * tree-ssa-alias.c (set_initial_properties): Call
10600 compute_call_used_vars.
10601 (reset_alias_info): Clear call-used variables.
10602 (add_call_clobber_ops): Assert we are not called for const/pure
10603 functions. Remove handling of them.
10604 (add_call_read_ops): Handle pure functions by adding the
10605 call-used set of variables as VUSEs.
10606 * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
10607 (delete_tree_ssa): Free it.
10608 * tree-dfa.c (remove_referenced_var): Clear the var from the
10609 call-used bitmap.
10610
10611 2008-06-28 Kai Tietz <kai.tietz@onevision.com>
10612
10613 * tree.c (build_varargs_function_type_list): New.
10614 (build_function_type_list_1): New.
10615 (build_function_type_list): Use build_function_type_list_1.
10616 * tree.h (build_varargs_function_type_list): New.
10617
10618 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10619
10620 PR target/34856
10621 * config/spu/spu.c (spu_builtin_splats): Do not generate
10622 invalid CONST_VECTOR expressions.
10623 (spu_expand_vector_init): Likewise.
10624
10625 2008-06-28 Richard Sandiford <rdsandiford@googlemail.com>
10626
10627 * optabs.c (libfunc_decls): New variable.
10628 (libfunc_decl_hash, libfunc_decl_eq): New functions.
10629 (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
10630 for the same function twice.
10631
10632 2008-06-27 Uros Bizjak <ubizjak@gmail.com>
10633
10634 * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
10635 ix86_expand_binary_operator directly.
10636 (*ashlti3_1): Rename from ashlti3_1. Use nonmemory_operand predicate
10637 for operand 2.
10638 (*ashrti3_1): Ditto.
10639 (*lshrti3_1): Ditto.
10640 (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
10641 (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
10642 using only one splitter. Conditionaly execute splitter before or
10643 after peephole2 pass.
10644 (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
10645 (x86_shld): Rename from x86_shld_1. Compress operand 2 constraints.
10646 Use only one alternative in asm template.
10647 (x86_64_shld): Compress operand 2 constraints. Use only one alternative
10648 in asm template.
10649 (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
10650 "J" operand constraint for operand 2.
10651 (*ashldi3_cconly_rex64): Ditto.
10652 (*ashrdi3_cmp_rex64): Ditto.
10653 (*ashrdi3_cconly_rex64): Ditto.
10654 (*lshrdi3_cmp_rex64): Ditto.
10655 (*lshrdi3_cconly_rex64): Ditto.
10656 * config/i386/predicates.md (const_1_to_63_operand): New predicate.
10657 * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
10658 (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
10659 gen_x86_shrd_1.
10660
10661 2008-06-27 Jakub Jelinek <jakub@redhat.com>
10662
10663 * gimplify.c (omp_is_private): Don't return true if decl is not
10664 already private on #pragma omp for or #pragma omp parallel for.
10665
10666 PR debug/36617
10667 * tree-cfg.c (struct move_stmt_d): Replace block field with
10668 orig_block and new_block fields.
10669 (move_stmt_r): Only set TREE_BLOCK to p->new_block if
10670 if it used to be NULL, p->orig_block or if p->orig_block is NULL.
10671 (move_block_to_fn): Replace vars_map and new_label_map arguments
10672 with struct move_stmt_d pointer.
10673 (replace_block_vars_by_duplicates): New function.
10674 (move_sese_region_to_fn): Add ORIG_BLOCK argument. Adjust
10675 move_block_to_fn caller. If ORIG_BLOCK is non-NULL, move over
10676 all subblocks of ORIG_BLOCK to the new function. Call
10677 replace_block_vars_by_duplicates.
10678 * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
10679 * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
10680 BLOCK of the new function. Adjust move_sese_region_to_fn caller.
10681 Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
10682 (expand_omp): Temporarily set input_location to the location of
10683 region's controlling stmt.
10684 (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
10685 BIND_EXPR, push ctx->block_vars and gimplification vars into
10686 the BIND_EXPR and its block's BLOCK_VARS instead of directly
10687 into dest function.
10688 (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
10689 there are any BLOCK_VARS.
10690 (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
10691 OMP_PARALLEL or OMP_TASK stmt.
10692 (lower_omp): Save and restore input_location around the lower_omp_1
10693 call.
10694
10695 2008-06-27 Richard Guenther <rguenther@suse.de>
10696
10697 PR tree-optimization/36400
10698 PR tree-optimization/36373
10699 PR tree-optimization/36344
10700 * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
10701 var_nonlocal, nonlocal_tree, nonlocal_id): New globals
10702 (update_alias_info): Remove call clobbering code.
10703 (make_constraint_to): New helper function.
10704 (make_escape_constraint): Likewise.
10705 (handle_rhs_call): Use it on all pointer containing arguments.
10706 Also mark the static chain escaped.
10707 (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
10708 instead of ANYTHING.
10709 (make_constraint_from): New helper split out from ...
10710 (make_constraint_from_anything): ... here.
10711 (find_func_aliases): Add constraints for escape sites.
10712 (intra_create_variable_infos): Make constraints from NONLOCAL
10713 for parameters.
10714 (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
10715 as ANYTHING.
10716 (clobber_what_p_points_to): Remove.
10717 (clobber_what_escaped): New function.
10718 (init_base_vars): Init NONLOCAL and ESCAPED.
10719 (do_sd_constraint): Do not propagate the solution from ESCAPED
10720 but use ESCAPED as a placeholder.
10721 (solve_graph): Likewise.
10722 * tree-flow.h (clobber_what_p_points_to): Remove.
10723 (clobber_what_escaped): Declare.
10724 * tree-ssa-alias.c (set_initial_properties): Call it.
10725 Remove code clobbering escaped pointers.
10726
10727 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
10728
10729 * function.c (allocate_struct_function): Only allocate a unique
10730 funcdef_no if the decl is nonzero.
10731
10732 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
10733
10734 * config/mips/mips-protos.h (mips_split_const_insns): Declare.
10735 * config/mips/mips.c (mips_split_const_insns): New function.
10736 * config/mips/mips.md (move_type): New attribute.
10737 (mode): Move attribute definition earlier in file. Add "TI" and "TF".
10738 (dword_mode): New attribute.
10739 (type): Avoid long line. Map "move_type"s to "type"s,
10740 choosing "multi" for doubleword moves if appropriate.
10741 Swap MTC/MFC comments to match their declaration order.
10742 (extended_mips16): Default to "yes" if "move_type" is "sll0",
10743 "type" is "branch" or "jal" is "direct".
10744 (length): Handle "extended_mips16" first. Make the default
10745 "0" for "ghost" instructions. Set the length from "move_type".
10746 (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
10747 of "type", with "sll0" for the register alternative. Remove the
10748 "extended_mips16" attribute.
10749 (zero_extendsidi2, *clear_upper32): Use "move_type" instead
10750 of "type", with "shift_shift" for the register alternative.
10751 Remove the "length" attribute.
10752 (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
10753 (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
10754 of "type", with "andi" for the register alternative.
10755 (*zero_extendqihi2): Likewise.
10756 (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
10757 of "andi" instead of a "type" of "arith".
10758 (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
10759 instead of "type".
10760 (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
10761 (mov_<store>r, *mov<mode>_ra): Likewise.
10762 (extendsidi2): Use "move_type" instead of "type", with "move"
10763 for the register alternative.
10764 (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
10765 of "type", with "signext" for the register alternative.
10766 (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
10767 (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
10768 (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
10769 (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
10770 (floatdisf2, *branch_equality<mode>_mips16): Likewise.
10771 (unnamed branch insn): Likewise.
10772 (*movdi_gp32_fp64): Fold into...
10773 (*movdi_32bit): ...here.
10774 (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
10775 (*movdf_hardfloat): ...this new pattern.
10776 (*movdf_softfloat): Remove redundant FPR alternatives.
10777 (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
10778 (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
10779 (*movv2sf): ...this new pattern. Use "DF" rather than "SF" for
10780 the "move" attribute.
10781 (*movdi_32bit): Use "move_type" instead of "type" and remove the
10782 "length" attribute. Use "fpload" and "fpstore" instead of "load"
10783 and "store" for COP loads and stores.
10784 (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
10785 (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
10786 (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
10787 (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
10788 (*movtf_mips16, *movv2sf): Likewise.
10789 (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
10790 (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
10791 (mfhc1<mode>): Use "move_type" instead of "move".
10792 (*low<mode>_mips16): Use "extended_mips16" instead of "length".
10793 (loadgp_blockage): Remove the "length" attribute.
10794 (blockage, set_got_version, update_got_version): Likewise.
10795 (call_internal): Remove the "extended_mips16" attribute.
10796 (call_value_internal, call_value_multiple_internal): Likewise.
10797 * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
10798 instead of "move".
10799 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
10800 the "length" attribute.
10801
10802 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10803
10804 * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
10805 -Wcast-qual warnings.
10806 * c-pragma.c (dpm_eq, handle_pragma_push_macro,
10807 handle_pragma_pop_macro): Likewise.
10808 * collect2.c (resolve_lib_name): Likewise.
10809 * config/arc/arc.c (arc_init): Likewise.
10810 * config/arm/arm.c (neon_builtin_compare,
10811 locate_neon_builtin_icode): Likewise.
10812 * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
10813 * config/bfin/bfin.c (bfin_init_machine_status,
10814 bfin_optimize_loop): Likewise.
10815 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
10816 * config/cris/cris.c (cris_init_expanders): Likewise.
10817 * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
10818 * config/darwin.c (machopic_indirection_eq,
10819 machopic_indirection_name, machopic_output_indirection): Likewise.
10820 * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
10821 frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
10822 frv_optimize_membar): Likewise.
10823 * config/i386/cygwin.h (mingw_scan,
10824 GCC_DRIVER_HOST_INITIALIZATION): Likewise.
10825 * config/i386/cygwin1.c (mingw_scan): Likewise.
10826 * config/i386/i386.c (machopic_output_stub): Likewise.
10827 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
10828 i386_pe_unique_section): Likewise.
10829 * config/ia64/ia64.c (ia64_init_machine_status,
10830 ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
10831 Likewise.
10832 * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
10833 * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
10834 * config/m68k/m68k.c (m68k_handle_option,
10835 m68k_sched_md_init_global): Likewise.
10836 * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
10837 mcore_unique_section): Likewise.
10838 * config/mips/mips.c (mips_block_move_straight,
10839 mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
10840 Likewise.
10841 * config/mmix/mmix.c (mmix_init_machine_status,
10842 mmix_encode_section_info): Likewise.
10843 * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
10844 * config/rs6000/rs6000.c (rs6000_init_machine_status,
10845 print_operand_address, output_toc, redefine_groups,
10846 rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
10847 * config/s390/s390.c (s390_init_machine_status): Likewise.
10848 * config/score/score.c (score_block_move_straight,
10849 score_block_move_loop_body): Likewise.
10850 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
10851 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
10852 * emit-rtl.c (find_auto_inc): Likewise.
10853 * gcc.c (translate_options, process_command): Likewise.
10854 * reorg.c (dbr_schedule): Likewise.
10855 * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
10856 * xcoffout.c (xcoffout_declare_function): Likewise.
10857
10858 2008-06-27 Daniel Berlin <dberlin@dberlin.org>
10859
10860 * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
10861 ipa-pta working again.
10862
10863 2008-06-27 David Edelsohn <edelsohn@gnu.org>
10864
10865 * config/rs6000/t-aix52: Append large data option to LDFLAGS for
10866 genautomata.
10867
10868 2008-06-27 Edmar Wienskoski <edmar@freescale.com>
10869
10870 * config.gcc (powerpc*-*-*): Add new core e500mc.
10871 * config/rs6000/e500mc.md: New file.
10872 * config/rs6000/rs6000.c (processor_costs): Add new costs for
10873 e500mc.
10874 (rs6000_override_options): Add e500mc case to
10875 processor_target_table. Altivec and Spe options not allowed
10876 with e500mc. Add isel instruction to e500mc by
10877 default. Initialize rs6000_cost for e500mc.
10878 (rs6000_issue_rate): Set issue rate for e500mc.
10879 * config/rs6000/rs6000.h (processor_type): Add
10880 PROCESSOR_PPCE500MC.
10881 (ASM_CPU_SPEC): Add e500mc.
10882 Set TARGET_ISEL to rs6000_isel.
10883 * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
10884 (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
10885 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
10886 Include e500mc.md.
10887 * doc/invoke.texi: Add e500mc to list of cpus.
10888
10889 2008-06-27 Laurynas Biveinis <laurynas.biveinis@gmail.com>
10890
10891 PR c/34867
10892 * c-lex.c (lex_charconst): Initialize unsignedp.
10893
10894 2008-06-27 Olivier Hainque <hainque@adacore.com>
10895
10896 * gimplify.c (gimplify_modify_expr_to_memset): Assert our
10897 documented assumptions.
10898
10899 2008-06-26 H.J. Lu <hongjiu.lu@intel.com>
10900
10901 * dwarf2out.c: Remove trailing white spaces. Break long line
10902 in comments.
10903
10904 2008-06-26 Richard Sandiford <rdsandiford@googlemail.com>
10905
10906 * libfuncs.h (LTI_synchronize): New libfunc_index.
10907 (synchronize_libfunc): Declare.
10908 * builtins.c (expand_builtin_synchronize): Consider using
10909 synchronize_libfunc before falling back on an asm blockage.
10910 * config/mips/mips.c: Include libfuncs.h
10911 (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
10912
10913 2008-06-26 Nathan Froyd <froydnj@codesourcery.com>
10914
10915 * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
10916 parameter. Copy stack_reg to r11 where appropriate.
10917 (no_global_regs_above): Add gpr parameter.
10918 (rs6000_stack_info): Only add padding for SPE save area if we
10919 are saving SPE GPRs and CR.
10920 (saveres_routine_syms): New variable.
10921 (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
10922 Define.
10923 (rs6000_savres_routine_sym): New function.
10924 (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
10925 split out of...
10926 (rs6000_emit_epilogue): ...here. Use rs6000_use_multiple_p and
10927 rs6000_savres_strategy. Restore GPRs out-of-line if appropriate.
10928 Tweak FPR out-of-line saving.
10929 (rs6000_make_savres_rtx): New function.
10930 (rs6000_use_multiple_p): New function.
10931 (rs6000_savres_strategy): New function.
10932 (rs6000_emit_prologue): Use rs6000_savres_strategy. Save GPRs
10933 out-of-line if appropriate.
10934 * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
10935 if we are optimizing for size.
10936 (GP_SAVE_INLINE): Define.
10937 (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
10938 * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
10939 * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
10940 * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
10941 (*save_fpregs_<mode>): Add use of r11.
10942 (*restore_gpregs_<mode>): New insn.
10943 (*return_and_restore_gpregs_<mode>): New insn.
10944 (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
10945 use r11.
10946 * config/rs6000/spe.md (*save_gpregs_spe): New insn.
10947 (*restore_gpregs_spe): New insn.
10948 (*return_and_restore_gpregs_spe): New insn.
10949 * config/rs6000/predicates.md (save_world_operation): Fix check.
10950
10951 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
10952
10953 * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
10954 this point, so assert that.
10955
10956 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
10957
10958 * cfganal.c: Include vec.h and vecprim.h.
10959 (compute_idf): Import from...
10960 * tree-into-ssa (compute_idf): ...here.
10961 * basic-block.h (compute_idf): Export.
10962
10963 2008-06-26 Joseph Myers <joseph@codesourcery.com>
10964
10965 * c-decl.c (merge_decls): Use !current_function_decl to check for
10966 extern declaration of C99 inline function being at file scope.
10967
10968 2008-06-25 John David Anglin <dave.anglin@gcc-cnrc.gc.ca>
10969
10970 * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
10971
10972 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10973
10974 * alias.c (record_alias_subset, init_alias_analysis): Fix
10975 -Wc++-compat and/or -Wcast-qual warnings.
10976 * attribs.c (lookup_attribute_spec): Likewise.
10977 * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
10978 copy_bb, connect_traces,
10979 find_rarely_executed_basic_blocks_and_cr): Likewise.
10980 * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
10981 note_btr_set, migrate_btr_defs): Likewise.
10982 * builtins.c (result_vector, expand_builtin_memcpy,
10983 expand_builtin_mempcpy_args, expand_builtin_strncpy,
10984 builtin_memset_read_str, expand_builtin_printf,
10985 fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
10986 Likewise.
10987 * caller-save.c (mark_set_regs): Likewise.
10988 * calls.c (expand_call, emit_library_call_value_1): Likewise.
10989 * cgraph.c (cgraph_edge): Likewise.
10990 * combine.c (likely_spilled_retval_1): Likewise.
10991 * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
10992 htab_counts_entry_del, get_coverage_counts): Likewise.
10993 * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
10994 new_cselib_val): Likewise.
10995 * dbgcnt.c (dbg_cnt_process_opt): Likewise.
10996 * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
10997 Likewise.
10998 * df-core.c (df_compact_blocks): Likewise.
10999 * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
11000 * df-scan.c (df_grow_reg_info, df_ref_create,
11001 df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
11002 df_ref_compare, df_ref_create_structure, df_bb_refs_record,
11003 df_record_entry_block_defs, df_record_exit_block_uses,
11004 df_bb_verify): Likewise.
11005 * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
11006 DF_REF_EXTRACT_MODE_CONST): New.
11007 * dominance.c (get_immediate_dominator, get_dominated_by,
11008 nearest_common_dominator, root_of_dom_tree,
11009 iterate_fix_dominators, first_dom_son, next_dom_son): Fix
11010 -Wc++-compat and/or -Wcast-qual warnings.
11011 * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
11012 record_store, replace_read, check_mem_read_rtx, scan_insn,
11013 dse_step1, dse_record_singleton_alias_set): Likewise.
11014 * dwarf2asm.c (dw2_force_const_mem): Likewise.
11015
11016 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11017
11018 * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
11019 dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
11020 lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
11021 assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
11022 build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
11023 add_ranges_num, add_ranges_by_labels, file_info_cmp,
11024 file_name_acquire, output_file_names, add_const_value_attribute,
11025 premark_used_types_helper, file_table_eq, file_table_hash,
11026 lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
11027 dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
11028 -Wcast-qual warnings.
11029 * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
11030 ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
11031 * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
11032 gen_reg_rtx, start_sequence, init_emit): Likewise.
11033 * et-forest.c (et_new_occ, et_new_tree): Likewise.
11034 * except.c (init_eh_for_function, gen_eh_region,
11035 remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
11036 arh_to_landing_pad, arh_to_label, add_action_record,
11037 add_call_site, switch_to_exception_section): Likewise.
11038 * expmed.c (synth_mult): Likewise.
11039 * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
11040 store_expr): Likewise.
11041 * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
11042 Likewise.
11043 * function.c (assign_stack_temp_for_type,
11044 allocate_struct_function, match_asm_constraints_1): Likewise.
11045 * gcov-io.c (gcov_allocate): Likewise.
11046 * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
11047 GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
11048 (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
11049 record_one_set, insert_expr_in_table, insert_set_in_table,
11050 dump_hash_table, compute_hash_table_work, alloc_hash_table,
11051 pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
11052 reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
11053 -Wcast-qual warnings.
11054
11055 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11056
11057 * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
11058 -Wcast-qual warnings.
11059 * gcc.c (process_command): Likewise.
11060 * genattrtab.c (oballoc): Use XOBNEW.
11061 (oballocvec): Define.
11062 (attr_hash_add_rtx, attr_hash_add_string, attr_string,
11063 get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
11064 gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
11065 -Wc++-compat and/or -Wcast-qual warnings.
11066 * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
11067 XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
11068 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
11069 gen_presence_absence_set, gen_automaton, gen_regexp_el,
11070 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
11071 gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
11072 add_excls, process_presence_absence_names,
11073 process_presence_absence_patterns, add_presence_absence,
11074 process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
11075 get_free_state, add_arc, get_free_automata_list_el,
11076 form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
11077 transform_3, cache_presence, create_ainsns, create_automata,
11078 create_state_ainsn_table, dfa_insn_code_enlarge,
11079 output_trans_func, output_min_issue_delay_func,
11080 output_dead_lock_func, output_reset_func,
11081 output_get_cpu_unit_code_func, output_dfa_start_func,
11082 expand_automata): Likewise.
11083 * genextract.c (gen_insn): Likewise.
11084 * gengtype-lex.l: Likewise.
11085 * gengtype.c (read_input_list, adjust_field_type,
11086 process_gc_options): Likewise.
11087 * genoutput.c (note_constraint): Likewise.
11088 * genpreds.c (mangle, add_constraint): Likewise.
11089 * genrecog.c (process_define_predicate, new_decision,
11090 add_to_sequence): Likewise.
11091 * gensupport.c (record_insn_name): Likewise.
11092
11093 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11094
11095 * config/i386/driver-i386.c (detect_caches_amd,
11096 detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
11097 and/or -Wcast-qual warnings.
11098 *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
11099 gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
11100 gt_pch_save): Likewise.
11101 * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
11102 gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
11103 * global.c (compute_regsets): Likewise.
11104 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
11105 finish_graph_dump_file): Likewise.
11106 * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
11107 unlink_bb_notes): Likewise.
11108 * integrate.c (get_hard_reg_initial_val): Likewise.
11109 * ipa-prop.c (ipa_push_func_to_list): Likewise.
11110 * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
11111 * local-alloc.c (update_equiv_regs): Likewise.
11112 * loop-invariant.c (check_invariant_table_size,
11113 hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
11114 Likewise.
11115 * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
11116 altered_reg_used, mark_altered): Likewise.
11117 * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
11118 insert_var_expansion_initialization,
11119 combine_var_copies_in_loop_exit, apply_opt_in_copies,
11120 release_var_copies): Likewise.
11121 * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
11122 analyze_matrix_decl, add_allocation_site, analyze_transpose,
11123 analyze_accesses_for_phi_node, check_var_notmodified_p,
11124 check_allocation_function, find_sites_in_func,
11125 record_all_accesses_in_func, transform_access_sites,
11126 transform_allocation_sites): Likewise.
11127 * omp-low.c (new_omp_region, create_omp_child_function_name,
11128 check_omp_nesting_restrictions, check_combined_parallel,
11129 lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
11130 * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
11131 gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
11132 gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
11133 Likewise.
11134 * opts-common.c (prune_options): Likewise.
11135 * opts.c (add_input_filename, print_filtered_help,
11136 get_option_state): Likewise.
11137 * params.c (add_params): Likewise.
11138 * passes.c (set_pass_for_id, next_pass_1,
11139 do_per_function_toporder, pass_fini_dump_file): Likewise.
11140 * postreload.c (reload_cse_simplify_operands): Likewise.
11141 * predict.c (tree_predicted_by_p, tree_predict_edge,
11142 clear_bb_predictions, combine_predictions_for_bb): Likewise.
11143
11144 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11145
11146 * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
11147 warnings.
11148 * recog.c (check_asm_operands, validate_change_1): Likewise.
11149 * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
11150 subst_asm_stack_regs): Likewise.
11151 * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
11152 cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
11153 * regmove.c (reg_is_remote_constant_p): Likewise.
11154 * regrename.c (regrename_optimize, scan_rtx_reg,
11155 kill_clobbered_value, kill_set_value, kill_autoinc_value):
11156 Likewise.
11157 * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
11158 regstat_compute_calls_crossed): Likewise.
11159 * reload1.c (init_reload, new_insn_chain,
11160 has_nonexceptional_receiver, reload, copy_reloads,
11161 calculate_needs_all_insns, init_elim_table): Likewise.
11162 * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
11163 * rtl.c (shallow_copy_rtx_stat): Likewise.
11164 * rtlanal.c (parms_set): Likewise.
11165 * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
11166 sbitmap_resize, sbitmap_vector_alloc): Likewise.
11167 * sched-ebb.c (earliest_block_with_similiar_load,
11168 add_deps_for_risky_insns): Likewise.
11169 * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
11170 schedule_region): Likewise.
11171 * see.c (eq_descriptor_pre_extension,
11172 hash_descriptor_pre_extension, hash_del_pre_extension,
11173 eq_descriptor_properties, hash_descriptor_properties,
11174 hash_del_properties, see_seek_pre_extension_expr,
11175 see_initialize_data_structures, see_print_register_properties,
11176 see_print_pre_extension_expr, see_delete_merged_def_extension,
11177 see_delete_unmerged_def_extension, see_emit_use_extension,
11178 see_pre_delete_extension, see_map_extension, see_commit_changes,
11179 see_analyze_merged_def_local_prop,
11180 see_analyze_merged_def_local_prop,
11181 see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
11182 see_set_prop_merged_def, see_set_prop_unmerged_def,
11183 see_set_prop_unmerged_use, see_print_one_extension,
11184 see_merge_one_use_extension, see_merge_one_def_extension,
11185 see_store_reference_and_extension, see_update_uses_relevancy,
11186 see_update_defs_relevancy): Likewise.
11187 * statistics.c (hash_statistics_hash, hash_statistics_eq,
11188 hash_statistics_free, curr_statistics_hash): Likewise.
11189 * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
11190 expand_asm_operands, expand_return, case_bit_test_cmp,
11191 expand_case): Likewise.
11192 * stor-layout.c (start_record_layout): Likewise.
11193 * stringpool.c (ggc_alloc_string, gt_pch_n_S,
11194 gt_pch_save_stringpool): Likewise.
11195 * tree-data-ref.c (hash_stmt_vertex_info,
11196 have_similar_memory_accesses_1, ref_base_address_1): Likewise.
11197 * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
11198
11199 2008-06-25 Uros Bizjak <ubizjak@gmail.com>
11200
11201 PR target/36627
11202 * config/i386/i386.md : Change constraints of HImode and QImode
11203 immediate operands from "i" to "n". Change SImode "ni" constraint to
11204 "i" and SImode "rmi" constraint to "g". Remove all constraints
11205 from const0_operand and const1_operand predicated operands.
11206 (i): Change QImode and HImode attribute from "i" to "n".
11207 (*subqi_2): Change HImode operands to QImode.
11208 (*subqi_3): Ditto.
11209
11210 2008-06-25 Olivier Hainque <hainque@adacore.com>
11211
11212 * Makefile.in (GTFILES_H): Use | instead of ; as separator in
11213 sed substitutions.
11214
11215 2008-06-25 Richard Guenther <rguenther@suse.de>
11216
11217 * tree-ssa-structalias.c (fieldoff_compare): Make sure to
11218 not overflow the result type.
11219
11220 2008-06-25 Richard Guenther <rguenther@suse.de>
11221
11222 * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
11223 (vn_lookup): Likewise.
11224
11225 2008-06-25 Richard Guenther <rguenther@suse.de>
11226
11227 PR tree-optimization/35518
11228 * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
11229 * tree-sra.c (instantiate_element): Use fold_build3 to build
11230 BIT_FIELD_REFs.
11231 (try_instantiate_multiple_fields): Likewise.
11232
11233 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
11234
11235 * config/rs6000/rs6000.md: Change all string instruction's clobber to
11236 be early clobbers.
11237
11238 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
11239
11240 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
11241 use_backchain_to_restore_sp to true
11242 if the offset of the link register save area would go over the 32k - 1
11243 offset limit of the load
11244 instructions.
11245
11246 2008-06-25 Hans-Peter Nilsson <hp@axis.com>
11247
11248 * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
11249 anchor for the type-punning blurb. Cross-reference "Structures
11250 unions enumerations and bit-fields implementation". Provide a
11251 cast-through-pointer example. Make final sentence self-contained.
11252 * doc/implement-c.texi (Structures unions enumerations and
11253 bit-fields implementation): Cross-reference the type-punning blurb
11254 in the -fstrict-aliasing documentation.
11255
11256 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
11257
11258 PR middle-end/36594
11259 * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
11260 the memory instead of the memory itself for the save area.
11261
11262 2008-06-24 Olivier Hainque <hainque@adacore.com>
11263 Nicolas Roche <roche@adacore.com>
11264
11265 * gengtype.c (srcdir_len): size_t instead of int.
11266 (get_file_realbasename): New function. For F a filename, the real
11267 basename of F, with all the path components stripped.
11268 (get_file_srcdir_relative_path): New function. For F a filename, the
11269 relative path to F from $(srcdir).
11270 (get_file_basename): Rewrite using get_file_srcdir_relative_path and
11271 get_file_realbasename. Adjust the head comment.
11272 (get_prefix_langdir_index): New function. For F a filename, return the
11273 lang_dir_names[] relative index of the language directory that is
11274 a prefix in F.
11275 (get_file_langdir): For F a filename, return the name of the language
11276 directory where F is located.
11277 (get_file_gtfilename): New function. The gt- output file name for an
11278 input filename F.
11279 (get_output_file_with_visibility): Replace in-line computations with
11280 uses of get_file_gtfilename and get_prefix_langdir_index.
11281 * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
11282
11283 2008-06-24 Jakub Jelinek <jakub@redhat.com>
11284
11285 PR tree-optimization/36504
11286 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
11287 references without base address.
11288
11289 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
11290
11291 PR middle-end/36584
11292 * calls.c (expand_call): Increase alignment for recursive functions.
11293
11294 2008-06-23 Anatoly Sokolov <aesok@post.ru>
11295
11296 * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
11297 (TARGET_FUNCTION_VALUE): New define.
11298 * config/avr/avr-protos.h (avr_function_value): Remove declaration.
11299 * config/avr/avr.h (FUNCTION_VALUE): Remove.
11300
11301 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
11302
11303 * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
11304 (fmod<mode>3): Ditto.
11305 (remainderxf3): Ditto.
11306 (remainder<mode>3): Ditto.
11307
11308 2008-06-23 Jakub Jelinek <jakub@redhat.com>
11309
11310 PR target/36533
11311 * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
11312 REG is a hard register.
11313
11314 PR tree-optimization/36508
11315 * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
11316 499, don't check it at all in release compilers.
11317
11318 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
11319
11320 * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
11321 together with SSE_TARGET_MATH to disable insn pattern.
11322 (*fop_<MODEF:mode>_2_i387): Ditto.
11323 (*fop_<MODEF:mode>_3_i387): Ditto.
11324
11325 2008-06-22 Andy Hutchinson <hutchinsonandy@aim.com>
11326
11327 * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
11328
11329 2008-06-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11330
11331 PR middle-end/34906
11332 * gimplify.c (gimplify_asm_expr): Check the return code of
11333 parse_output_constraint call, set function return and is_inout
11334 value if it failed.
11335
11336 2008-06-22 Ian Lance Taylor <iant@google.com>
11337
11338 * c-lex.c (narrowest_unsigned_type): Change itk to int.
11339 (narrowest_signed_type): Likewise.
11340 * c-typeck.c (c_common_type): Change local variable mclass to enum
11341 mode_class, twice.
11342 (parser_build_binary_op): Compare the TREE_CODE_CLASS with
11343 tcc_comparison, not the tree code itself.
11344 * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
11345 (c_expand_expr): Cast modifier to enum expand_modifier.
11346 * c-common.h (C_RID_CODE): Add casts.
11347 (C_SET_RID_CODE): Define.
11348 * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
11349 (c_lex_one_token): Add cast to avoid warning.
11350 (c_parser_objc_type_name): Rename local typename to type_name.
11351 (check_no_duplicate_clause): Change code parameter to enum
11352 omp_clause_code.
11353 (c_parser_omp_var_list_parens): Change kind parameter to enum
11354 omp_clause_code.
11355 (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
11356 c_parser_omp_list_var_parens.
11357 (c_parser_omp_threadprivate): Likewise.
11358 * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
11359 * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
11360 * c-format.c (NO_FMT): Define.
11361 (printf_length_specs): Use NO_FMT.
11362 (asm_fprintf_length_specs): Likewise.
11363 (gcc_diag_length_specs): Likewise.
11364 (scanf_length_specs): Likewise.
11365 (strfmon_length_specs): Likewise.
11366 (gcc_gfc_length_specs): Likewise.
11367 (printf_flag_specs): Change 0 to STD_C89.
11368 (asm_fprintf_flag_specs): Likewise.
11369 (gcc_diag_flag_specs): Likewise.
11370 (gcc_cxxdiag_flag_specs): Likewise.
11371 (scanf_flag_specs): Likewise.
11372 (strftime_flag_specs): Likewise.
11373 (strfmon_flag_specs): Likewise.
11374 (print_char_table): Likewise.
11375 (asm_fprintf_char_table): Likewise.
11376 (gcc_diag_char_table): Likewise.
11377 (gcc_tdiag_char_table): Likewise.
11378 (gcc_cdiag_char_table): Likewise.
11379 (gcc_cxxdiag_char_table): Likewise.
11380 (gcc_gfc_char_table): Likewise.
11381 (scan_char_table): Likewise.
11382 (time_char_table): Likewis.
11383 (monetary_char_table): Likewise.
11384 * c-format.h (BADLEN): Likewise.
11385
11386 2008-06-21 Ian Lance Taylor <iant@google.com>
11387
11388 * tree.h (enum tree_code): Include all-tree.def, not tree.def.
11389 Define END_OF_BASE_TREE_CODES around inclusion.
11390 * tree.c (tree_code_type): New global array.
11391 (tree_code_length, tree_code_name): Likewise.
11392 * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
11393 $(lang_tree_files).
11394 (all-tree.def, s-alltree): New targets.
11395 (gencheck.h, s-gencheck): Remove.
11396 (tree.o): Depend upon all-tree.def.
11397 (build/gencheck.o): Remove gencheck.h dependency.
11398 (mostlyclean): Don't remove gencheck.h.
11399 * c-common.h (enum c_tree_code): Remove.
11400 * c-lang.c (tree_code_type): Remove.
11401 (tree_code_length, tree_code_name): Remove.
11402 * gencheck.c (tree_codes): Include all-tree.def, rather than
11403 tree.def, c-common.def, and gencheck.h. Undefined DEFTREECODE
11404 after it is used.
11405 * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
11406 than tree.def.
11407 * cp/cp-tree.h (enum cplus_tree_code): Remove.
11408 (operator_name_info): Size to MAX_TREE_CODES.
11409 (assignment_operator_name_info): Likewise.
11410 * cp/cp-lang.c (tree_code_type): Remove.
11411 (tree_code_length, tree_code_name): Remove.
11412 * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
11413 (assignment_operator_name_info): Likewise.
11414 * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
11415 MAX_TREE_CODES.
11416 * cp/mangle.c (write_expression): Likewise.
11417 * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
11418 * fortran/f95-lang.c (tree_code_type): Remove.
11419 (tree_code_length, tree_code_name): Remove.
11420 * java/java-tree.h (enum java_tree_code): Remove.
11421 * java/lang.c (tree_code_type): Remove.
11422 (tree_code_length, tree_code_name): Remove.
11423 * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
11424 * objc/objc-act.h (enum objc_tree_code): Remove.
11425 * objc/objc-lang.c (tree_code_type): Remove.
11426 (tree_code_length, tree_code_name): Remove.
11427 * objcp/objcp-lang.c (tree_code_type): Remove.
11428 (tree_code_length, tree_code_name): Remove.
11429 * ada/ada-tree.h (enum gnat_tree_code): Remove.
11430 * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
11431 * ada/misc.c (tree_code_type): Remove.
11432 (tree_code_length, tree_code_name): Remove.
11433
11434 2008-06-21 Bernhard Fischer <aldot@gcc.gnu.org>
11435
11436 * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
11437 the grand_bitmap_obstack.
11438
11439 2008-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11440
11441 * ggc.h (GGC_RESIZEVAR): New, reorder macros.
11442 * tracer.c (tail_duplicate): Fix for -Wc++-compat.
11443 * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
11444 * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
11445 move_stmt_r, new_label_mapper): Likewise.
11446 * tree-complex.c (cvc_lookup): Likewise.
11447 * tree-dfa.c (create_function_ann): Likewise.
11448 * tree-dump.c (dump_register): Likewise.
11449 * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
11450 find_phi_replacement_condition): Likewise.
11451 * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
11452 tree_function_versioning): Likewise.
11453 * tree-into-ssa.c (cmp_dfsnum): Likewise.
11454 * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
11455 * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
11456 get_nonlocal_debug_decl, convert_nonlocal_reference,
11457 convert_nonlocal_omp_clauses, get_local_debug_decl,
11458 convert_local_reference, convert_local_omp_clauses,
11459 convert_nl_goto_reference, convert_nl_goto_receiver,
11460 convert_tramp_reference, convert_call_expr): Likewise.
11461 * tree-outof-ssa.c (contains_tree_r): Likewise.
11462 * tree-parloops.c (reduction_phi, initialize_reductions,
11463 eliminate_local_variables_1, add_field_for_reduction,
11464 add_field_for_name, create_phi_for_local_result,
11465 create_call_for_reduction_1, create_loads_for_reductions,
11466 create_stores_for_reduction, create_loads_and_stores_for_name):
11467 Likewise.
11468 * tree-phinodes.c (allocate_phi_node): Likewise.
11469 * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
11470 * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
11471 * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
11472 * tree-ssa-coalesce.c (compare_pairs): Likewise.
11473 * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
11474 memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
11475 record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
11476 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
11477 * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
11478 vn_nary_op_insert): Likewise.
11479 * tree-ssa.c (redirect_edge_var_map_add,
11480 redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
11481 * tree-vectorizer.c (vectorize_loops): Likewise.
11482 * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
11483 build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
11484 tree_cons_stat, build1_stat, build_variant_type_copy,
11485 decl_init_priority_lookup, decl_fini_priority_lookup,
11486 decl_priority_info, decl_restrict_base_lookup,
11487 decl_restrict_base_insert, decl_debug_expr_lookup,
11488 decl_debug_expr_insert, decl_value_expr_lookup,
11489 decl_value_expr_insert, type_hash_eq, type_hash_lookup,
11490 type_hash_add, get_file_function_name, tree_check_failed,
11491 tree_not_check_failed, tree_range_check_failed,
11492 omp_clause_range_check_failed, build_omp_clause,
11493 build_vl_exp_stat): Likewise.
11494 * value-prof.c (gimple_histogram_value,
11495 gimple_duplicate_stmt_histograms): Likewise.
11496 * var-tracking.c (attrs_list_insert, attrs_list_copy,
11497 unshare_variable, variable_union_info_cmp_pos, variable_union,
11498 dataflow_set_different_1, dataflow_set_different_2,
11499 vt_find_locations, variable_was_changed, set_variable_part,
11500 emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
11501 * varasm.c (prefix_name, emutls_decl, section_entry_eq,
11502 section_entry_hash, object_block_entry_eq,
11503 object_block_entry_hash, create_block_symbol,
11504 initialize_cold_section_name, default_function_rodata_section,
11505 strip_reg_name, set_user_assembler_name, const_desc_eq,
11506 build_constant_desc, output_constant_def, lookup_constant_def,
11507 const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
11508 create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
11509 default_internal_label): Likewise.
11510 * varray.c (varray_init, varray_grow): Likewise.
11511 * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
11512
11513 2008-06-20 Uros Bizjak <ubizjak@gmail.com>
11514
11515 * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
11516 operators for "test" insn. Macroize insn using SWI mode macro.
11517 (*jcc_fused_2): Ditto.
11518 (*jcc_fused_3): Macroize insn using SWI mode macro.
11519 (*jcc_fused_4): Ditto.
11520
11521 2008-06-20 Bernhard Fischer <aldot@gcc.gnu.org>
11522
11523 * tree-ssa-pre.c: Fix typo in comment.
11524 (init_antic, fini_antic): Add explicit funtions for
11525 initializing and deinitializing ANTIC and AVAIL sets.
11526 (create_expression_by_pieces): Fix typo in comment.
11527 Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
11528 (execute_pre): Eventually dump details about ANTIC_IN.
11529
11530 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11531
11532 * collect2.c (main, add_to_list): Fix for -Wc++-compat.
11533 * gcc.c (translate_options, init_spec, store_arg, read_specs,
11534 add_to_obstack, file_at_path, find_a_file, execute,
11535 add_preprocessor_option, add_assembler_option, add_linker_option,
11536 process_command, insert_wrapper, do_option_spec, do_self_spec,
11537 spec_path, do_spec_1, is_directory, main, used_arg,
11538 getenv_spec_function): Likewise.
11539 * tlink.c (symbol_hash_lookup, file_hash_lookup,
11540 demangled_hash_lookup, symbol_push, file_push, frob_extension):
11541 Likewise.
11542
11543 2008-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
11544
11545 * doc/rtl.texi: Updated subreg section.
11546
11547 2008-06-19 Jakub Jelinek <jakub@redhat.com>
11548
11549 PR c++/36523
11550 * cgraphunit.c (cgraph_process_new_functions): Don't clear
11551 node->needed and node->reachable.
11552 * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
11553 * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
11554 (expand_task_call): Don't call expand_task_copyfn.
11555 (expand_task_copyfn): Renamed to...
11556 (finalize_task_copyfn): ... this.
11557
11558 2008-06-19 Jan Hubicka <jh@suse.cz>
11559
11560 * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
11561 clobbering framepointer.
11562
11563 2008-06-19 Jan Hubicka <jh@suse.cz>
11564
11565 * tree-optimize.c (execute_early_local_optimizations): Set
11566 cgraph_state only at first invocation.
11567
11568 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11569
11570 * system.h (-Wc++-compat): Activate as a warning, no an error.
11571
11572 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
11573
11574 * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
11575 instead of "#" in insn asm template.
11576 (*jcc_fused_2): Ditto.
11577
11578 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
11579
11580 * config/i386/i386.h (ix86_tune_indices)
11581 [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
11582 (TARGET_FUSE_CMP_AND_BRANCH): New define.
11583 * config/i386/i386.md (*jcc_fused_1): New insn pattern
11584 (*jcc_fused_2): Ditto.
11585 * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
11586 X86_TUNE_FUSE_CMP_AND_BRANCH targets.
11587 (print operand): Handle 'E' and 'e' code.
11588
11589 2008-06-19 Anatoly Sokolov <aesok@post.ru>
11590
11591 * config/avr/avr.c (avr_mcu_t): Add attiny13a.
11592 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
11593 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
11594
11595 2008-06-19 Bernhard Fischer <aldot@gcc.gnu.org>
11596
11597 * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
11598 node->decl.
11599 (cgraph_expand_function): Use local copy of decl.
11600 (cgraph_expand_all_functions): Remove redundant initialization of
11601 order_pos.
11602 (cgraph_optimize): Reword internal_error message.
11603
11604 2008-06-19 Chung-Lin Tang <ctang@marvell.com>
11605
11606 * arm-protos.h (arm_return_in_memory): Remove public
11607 arm_return_in_memory() prototype.
11608 * arm.c (arm_return_in_memory): Add static prototype, add target
11609 hook macro, change definition and comments.
11610 * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
11611
11612 2008-06-19 Ben Elliston <bje@au.ibm.com>
11613
11614 * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
11615 real.c: Remove references to IEEE 754R.
11616 * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
11617 * doc/libgcc.texi (Decimal float library routines): Likewise.
11618
11619 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11620
11621 * targhooks.h (struct gcc_target): New member unwind_word_mode.
11622 (default_unwind_word_mode): Add prototype.
11623 * targhooks.c (default_unwind_word_mode): New function.
11624 (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
11625 instead of word_mode.
11626 * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
11627 (TARGET_INITIALIZER): Use it.
11628
11629 * c-common.c (handle_mode_attribute): Support "unwind_word"
11630 mode attribute.
11631 * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
11632
11633 * except.c (init_eh): Use targetm.unwind_word_mode () instead of
11634 word_mode to access SjLj_Function_Context member "data".
11635 (sjlj_emit_dispatch_table): Likewise. Also, perform type
11636 conversion from targetm.eh_return_filter_mode () to
11637 targetm.unwind_word_mode () if they differ.
11638
11639 * builtin-types.def (BT_UNWINDWORD): New primitive type.
11640 (BT_FN_UNWINDWORD_PTR): New function type.
11641 (BT_FN_WORD_PTR): Remove.
11642 * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
11643 * except.c (expand_builtin_extend_pointer): Convert pointer to
11644 targetm.unwind_word_mode () instead of word_mode.
11645
11646 * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
11647 * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
11648 (spu_unwind_word_mode): New function.
11649 (TARGET_EH_RETURN_FILTER_MODE): Do not define.
11650 (TARGET_UNWIND_WORD_MODE): Define.
11651 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
11652
11653 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11654
11655 * config/spu/spu.c (reg_align): Remove.
11656 (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
11657 (spu_split_load): Use regno_aligned_for_load instead of reg_align.
11658 (spu_split_store): Likewise.
11659
11660 2008-06-18 Bernhard Fischer <aldot@gcc.gnu.org>
11661
11662 * gcc/tree-vn.c: Fix typo in comment.
11663
11664 2008-06-18 Jan Hubicka <jh@suse.cz>
11665
11666 * cgraphunit.c (cgraph_optimize): Output debug info when doing
11667 toplevel reorder too.
11668
11669 2008-06-18 Jan Hubicka <jh@suse.cz>
11670
11671 * c-opts.c (c_common_post_options): PCH is not compatible with
11672 no-unit-at-a-time.
11673 * opts.c (handle_options): Enable unit-at-a-time at O0 along with
11674 -fno-toplevel-reorder by default now.
11675
11676 2008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11677
11678 PR documentation/30739
11679 * doc/install.texi (Prerequisites): Document dependency on awk.
11680
11681 2008-06-18 Uros Bizjak <ubizjak@gmail.com>
11682 Ian Lance Taylor <iant@google.com>
11683
11684 PR rtl-optimization/35604
11685 * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
11686 only want to change jump destinations, not eventual label comparisons.
11687
11688 2008-06-16 Jan Hubicka <jh@suse.cz>
11689
11690 * cgraphunit.c (cgraph_expand_pending_functions): Give up at
11691 syntax errors.
11692 (cgraph_analyze_function): Likewise.
11693
11694 2008-06-16 Jan Hubicka <jh@suse.cz>
11695
11696 * cgraph.h (cgraph_mark_if_needed): New function.
11697 * cgraphunit.c (cgraph_mark_if_needed): New function.
11698 * c-decl.c (duplicate_decl): Use it.
11699
11700 2008-06-16 Jan Hubicka <jh@suse.cz>
11701
11702 * cgraph.c (cgraph_add_new_function): When in expansion state, do
11703 lowering.
11704
11705 2008-06-16 Jan Hubicka <jh@suse.cz>
11706
11707 * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
11708
11709 2008-06-16 Daniel Jacobowitz <dan@codesourcery.com>
11710 Kazu Hirata <kazu@codesourcery.com>
11711 Maxim Kuvyrkov <maxim@codesourcery.com
11712
11713 * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
11714 * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
11715 * config/mips/linux.h (host_detect_local_cpu): Declare, add to
11716 EXTRA_SPEC_FUNCTIONS.
11717 (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
11718 (DRIVER_SELF_SPECS): Adjust.
11719 * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
11720 * config/mips/st.h, config/mips/t-st: New.
11721 * config/mips/driver-native.c, config/mips/x-native: New.
11722 * doc/invoke.texi (MIPS): Document 'native' value for -march and
11723 -mtune options.
11724
11725 2008-06-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11726
11727 * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
11728 from it.
11729 (ISA_HAS_FP_CONDMOVE): New macro.
11730 (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
11731 (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
11732 (ISA_HAS_NMADD3_NMSUB3): New macro.
11733 * config/mips/mips.c (mips_rtx_costs): Update.
11734 * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
11735 compiling for ST Loongson 2E/2F.
11736 (madd<mode>): Rename to madd4<mode>. Update.
11737 (madd3<mode>): New pattern.
11738 (msub<mode>): Rename to msub4<mode>. Update.
11739 (msub3<mode>): New pattern.
11740 (nmadd<mode>): Rename to nmadd4<mode>. Update.
11741 (nmadd3<mode>): New pattern.
11742 (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath. Update.
11743 (nmadd3<mode>_fastmath): New pattern.
11744 (nmsub<mode>): Rename to nmsub4<mode>. Update.
11745 (nmsub3<mode>): New pattern.
11746 (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath. Update.
11747 (nmsub3<mode>_fastmath): New pattern.
11748 (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
11749
11750 2008-06-18 Steven Bosscher <steven@gcc.gnu.org>
11751
11752 * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
11753 (DF_REF_INSN_INFO): New.
11754 (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
11755 (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
11756 with a NULL DF_REF_INSN_INFO.
11757 (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
11758 DF_INSN_SET.
11759 (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
11760 DF_INSN_INFO_EQ_USES): New.
11761 (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
11762 DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
11763 DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
11764 * df-core.c: Update comment for above changes.
11765 (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
11766 DF_INSN_UID_* macros.
11767 (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
11768 * df-scan.c (df_ref_record): Take a df_insn_info instead of an
11769 insn rtx. Update all callers.
11770 (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
11771 df_ref_create_structure, df_insn_refs_collect): Likewise.
11772 (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
11773 * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
11774 (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
11775 macros to access the insn refs.
11776 (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
11777 * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
11778 (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
11779 for accessing the refs.
11780 (try_fwprop_subst): Likewise.
11781 * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
11782 * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
11783 for accessing the refs.
11784 * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
11785 (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
11786 to look at the insn refs.
11787 (record_uses): Likewise.
11788 * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
11789 function anymore.
11790 (mark_artificial_uses): Don't mark_insn for artificial refs.
11791 (mark_reg_rependencies): Likewise.
11792
11793 * doc/rtl.texi: Remove documentation of ADDRESSOF.
11794
11795 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11796
11797 * configure: Regenerate.
11798
11799 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
11800
11801 * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
11802 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
11803 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11804
11805 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
11806
11807 * config/avr/avr.c (avr_mcu_t): Add attiny167.
11808 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
11809 * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11810
11811 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
11812
11813 * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
11814 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
11815 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11816
11817 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
11818
11819 * tree-ssa-sccvn.c: Fix format of comments.
11820
11821 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
11822
11823 * cgraph.c: Remove unneeded forward declarations of eq_node()
11824 and hash_node().
11825
11826 2008-06-17 Steven Bosscher <steven@gcc.gnu.org>
11827
11828 * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
11829 REG_RETVAL notes.
11830 (see_update_relevancy): Likewise.
11831 * fwprop.c (try_fwprop_subst): Likewise.
11832 * rtlanal.c (noop_move_p): Likewise.
11833 * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
11834 notes to non-existing libcall blocks.
11835 * cse.c (cse_insn): Change prototype. Don't update libcall notes.
11836 Remove orig_set.
11837 (cse_extended_basic_block): Don't track libcall and no-conflict notes.
11838 (dead_libcall_p): Remove.
11839 (delete_trivially_dead_insns): Don't use it.
11840 * web.c (union_defs): Remove comment about keeping nops.
11841 * gcse.c (hash_scan_insn): Don't take libcall pointers.
11842 (compute_hash_table_work): Don't track libcall notes.
11843 (do_local_cprop): Don't take libcall pointers. Don't update
11844 libcall notes.
11845 (adjust_libcall_notes): Deleted.
11846 (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
11847 ever have existed in the first place).
11848 (replace_store_insn): Don't try to remove libcall notes.
11849 * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
11850 (resolve_reg_notes): Don't call them.
11851 (resolve_simple_move): Likewise.
11852 (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
11853 Don't remove REG_RETVAL notes.
11854 * emit-rtl.c (try_split): Don't update libcall notes.
11855 (emit_copy_of_insn_after): Dito.
11856 * cselib.c (cselib_current_insn_in_libcall): Remove.
11857 (cselib_process_insn): Don't set/clear it.
11858 (new_elt_loc_list): Don't record it.
11859 (cselib_init): Don't initialize it.
11860 * cselib.c (struct elt_loc_list): Remove in_libcall field.
11861 * loop-invariant.c (find_invariant_insn): Don't look for libcall
11862 notes.
11863 * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
11864 (sched_analyze): Don't set up deps->libcall_block_tail_insn.
11865 (init_deps): Don't initialize it.
11866 * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
11867 * combine.c (delete_noop_moves): Don't update libcall notes.
11868 (can_combine_p): Remove now pointless #if 0 block.
11869 (try_combine): Remove another obsolete #if 0 block.
11870 (distribute_notes): Don't distribute libcall notes.
11871 * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
11872 * dce.c (libcall_dead_p): Remove.
11873 (delete_unmarked_insns): Don't handle libcall blocks.
11874 (preserve_libcall_for_dce): Remove.
11875 (prescan_insns_for_dce): Don't special-case libcall block insns.
11876 * reload1 (reload): Don't handle libcall notes.
11877 * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
11878 documentation.
11879
11880 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
11881
11882 * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
11883 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
11884 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11885
11886 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
11887
11888 * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
11889 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
11890 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11891
11892 2008-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11893
11894 * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
11895
11896 2008-06-16 Ira Rosen <irar@il.ibm.com>
11897
11898 PR tree-optimization/36493
11899 * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
11900 the arguments list. Use VECTYPE to create vector pointer.
11901 (vectorizable_store): Fail if accesses through a pointer to vectype
11902 do not alias the original memory reference operands.
11903 Call vect_create_data_ref_ptr without the removed argument.
11904 (vectorizable_load): Likewise.
11905 (vect_setup_realignment): Call vect_create_data_ref_ptr without the
11906 removed argument.
11907
11908 2008-06-015 Andy Hutchinson <hutchinsonandy@aim.com>
11909
11910 PR target/36336
11911 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
11912 reg_equiv_constant.
11913
11914 2008-06-15 Maxim Kuvyrkov <maxim@codesourcery.com>
11915
11916 * config/mips/loongson2ef.md: New file.
11917 * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
11918 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
11919 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
11920 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
11921 (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
11922 and loongson_2f.
11923 (loongson2ef.md): New include.
11924 * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
11925 (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
11926 (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
11927 (loongson_gt_<mode>, loongson_extract_halfword)
11928 (loongson_insert_halfword_0, loongson_insert_halfword_2)
11929 (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
11930 (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
11931 (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
11932 (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
11933 (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
11934 (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
11935 (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
11936 (vec_interleave_low<mode>): Define type attribute.
11937 * config/mips/mips.c (mips_ls2): New static variable.
11938 (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
11939 (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
11940 (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
11941 Implement target scheduling hooks.
11942 (mips_multipass_dfa_lookahead): Update to handle tuning for
11943 Loongson 2E/2F.
11944 (mips_sched_init): Initialize data for Loongson scheduling.
11945 (mips_ls2_variable_issue): New static function.
11946 (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
11947 Add sanity check.
11948 (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
11949 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
11950 * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
11951 (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
11952 Handle ST Loongson 2E/2F cores.
11953 (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
11954
11955 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11956
11957 * omp-low.c (extract_omp_for_data): Fix comment typo.
11958 * c.opt: Fix typo.
11959
11960 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11961
11962 * doc/sourcebuild.texi (Config Fragments): Remove obsolete
11963 FIXME note about gcc/config.guess.
11964 * doc/options.texi (Option file format): Remove non-ASCII bytes.
11965 * doc/cpp.texi: Expand TABs, drop indentation outside examples.
11966 * doc/cppopts.texi: Likewise.
11967 * doc/extend.texi: Likewise.
11968 * doc/gcc.texi: Likewise.
11969 * doc/gccint.texi: Likewise.
11970 * doc/gcov.texi: Likewise.
11971 * doc/gty.texi: Likewise.
11972 * doc/hostconfig.texi: Likewise.
11973 * doc/install.texi: Likewise.
11974 * doc/invoke.texi: Likewise.
11975 * doc/loop.texi: Likewise.
11976 * doc/makefile.texi: Likewise.
11977 * doc/md.texi: Likewise.
11978 * doc/passes.texi: Likewise.
11979 * doc/tm.texi: Likewise.
11980 * doc/tree-ssa.texi: Likewise.
11981 * doc/trouble.texi: Likewise.
11982
11983 2008-06-15 Mark Shinwell <shinwell@codesourcery.com>
11984 Nathan Sidwell <nathan@codesourcery.com>
11985 Maxim Kuvyrkov <maxim@codesourcery.com>
11986 Richard Sandiford <rdsandiford@googlemail.com>
11987
11988 * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
11989 * config/mips/mips-protos.h (mips_expand_vector_init): New.
11990 * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
11991 builtins.
11992 * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
11993 (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
11994 (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
11995 V8QImode cases.
11996 (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
11997 (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
11998 (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
11999 (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
12000 (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
12001 (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
12002 (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
12003 (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
12004 (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
12005 (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
12006 (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
12007 (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
12008 (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
12009 (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
12010 (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
12011 (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
12012 (mips_builtins): Add Loongson builtins.
12013 (mips_loongson_2ef_bdesc): New.
12014 (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
12015 (mips_builtin_vector_type): Handle unsigned versions of vector modes.
12016 (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
12017 (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
12018 New.
12019 (mips_expand_vector_init): New.
12020 * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
12021 (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
12022 if appropriate.
12023 * config/mips/mips.md: Add unspec numbers for Loongson
12024 builtins. Include loongson.md.
12025 (MOVE64): Include Loongson vector modes.
12026 (SPLITF): Include Loongson vector modes.
12027 (HALFMODE): Handle Loongson vector modes.
12028 * config/mips/loongson.md: New.
12029 * config/mips/loongson.h: New.
12030 * config.gcc: Add loongson.h header for mips*-*-* targets.
12031 * doc/extend.texi (MIPS Loongson Built-in Functions): New.
12032
12033 2008-06-14 Joseph Myers <joseph@codesourcery.com>
12034
12035 * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
12036 h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
12037 i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
12038 iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
12039 m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
12040 m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
12041 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
12042 mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
12043 mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
12044 mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
12045 powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
12046 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
12047 sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
12048 sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
12049 sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
12050 v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
12051 Remove use_fixproto=yes.
12052 (ia64*-*-hpux*): Remove comment about using fixproto.
12053 (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
12054
12055 2008-06-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12056
12057 * configure.ac: Update gthr-default.h lazily, to avoid unneeded
12058 library rebuilds.
12059 * configure: Regenerate.
12060
12061 2008-06-13 Eric Botcazou <ebotcazou@adacore.com>
12062
12063 PR middle-end/36520
12064 * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
12065 before evaluating it.
12066
12067 2008-06-13 Jakub Jelinek <jakub@redhat.com>
12068
12069 PR c/36507
12070 * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
12071 nested inline functions.
12072 (start_decl, start_function): Don't invert DECL_EXTERNAL
12073 for nested inline functions.
12074
12075 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
12076
12077 * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
12078 splits that must be made for correctness.
12079
12080 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
12081
12082 * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
12083 (AVAIL_NON_MIPS16): Likewise.
12084 (mips_builtin_description): Replace target_flags with a predicate.
12085 (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
12086 (dspr2_32): New availability predicates.
12087 (MIPS_BUILTIN): New macro.
12088 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
12089 (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
12090 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
12091 Replace the TARGET_FLAGS parameters with AVAIL parameters.
12092 (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
12093 (mips_dsp_32only_bdesc): Merge into...
12094 (mips_builtins): ...this new array.
12095 (mips_bdesc_map, mips_bdesc_arrays): Delete.
12096 (mips_init_builtins): Update after above changes.
12097 (mips_expand_builtin_1): Merge into...
12098 (mips_expand_builtin): ...here and update after above changes.
12099
12100 2008-06-12 Paul Brook <paul@codesourcery.com>
12101
12102 * longlong.h (__arm__): Define count_leading_zeros.
12103 * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
12104 (clzsi2, clzdi2): New functions.
12105 * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
12106 * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
12107 * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
12108 * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
12109 * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
12110 * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
12111 * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
12112 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
12113 * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
12114 * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
12115
12116 2008-06-12 Kazu Hirata <kazu@codesourcery.com>
12117
12118 * config/m68k/m68k.c (m68k_tune_flags): New.
12119 (override_options): Compute m68k_tune_flags.
12120 (MULL_COST, MULW_COST): Update for various variants of CFV2.
12121 * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
12122
12123 2008-06-12 Jakub Jelinek <jakub@redhat.com>
12124
12125 PR middle-end/36506
12126 * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
12127
12128 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
12129
12130 * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
12131 TREE_THIS_VOLATILE on INDIRECT_REF nodes.
12132
12133 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
12134
12135 * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
12136 (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
12137
12138 2008-06-12 Jakub Jelinek <jakub@redhat.com>
12139
12140 PR middle-end/36506
12141 * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
12142 reductions.
12143
12144 2008-06-12 Richard Guenther <rguenther@suse.de>
12145
12146 PR tree-optimization/36345
12147 * tree-flow.h (struct ptr_info_def): Align escape_mask,
12148 add memory_tag_needed flag.
12149 (may_alias_p): Declare.
12150 * tree-ssa-alias.c (may_alias_p): Export.
12151 (set_initial_properties): Use memory_tag_needed flag.
12152 (update_reference_counts): Likewise.
12153 (reset_alias_info): Reset memory_tag_needed flag.
12154 (create_name_tags): Check memory_tag_needed flag.
12155 (dump_points_to_info_for): Dump it.
12156 * tree-ssa-structalias.c (struct variable_info): Remove
12157 directly_dereferenced flag.
12158 (new_var_info): Do not initialize it.
12159 (process_constraint_1): Do not set it.
12160 (update_alias_info): Set is_dereferenced flag.
12161 (set_uids_in_ptset): Use may_alias_p.
12162 (set_used_smts): Check memory_tag_needed flag.
12163 (find_what_p_points_to): Likewise. Pass is_dereferenced flag.
12164 * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
12165 memory_tag_needed flag.
12166 * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
12167 from broken design.
12168
12169 2008-06-12 Kai Tietz <kai.tietz@onevision.com>
12170
12171 * config/i386/i386.c (ix86_compute_frame_layout): Disable
12172 red zone for w64 abi.
12173 (ix86_expand_prologue): Likewise.
12174 (ix86_force_to_memory): Likewise.
12175 (ix86_free_from_memory): Likewise.
12176
12177 2008-06-11 Edmar Wienskoski <edmar@freescale.com>
12178
12179 PR target/36425
12180 * config/rs6000/rs6000.c (rs6000_override_options): Set
12181 rs6000_isel conditionally to the absence of comand line override.
12182 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
12183 Remove duplicate rs6000_isel setting.
12184 * config/rs6000/eabispe.h: Ditto.
12185
12186 2008-06-11 Richard Guenther <rguenther@suse.de>
12187
12188 * alias.c (get_alias_set): Use the element alias-set for arrays.
12189 (record_component_aliases): For arrays and vectors do nothing.
12190 * c-common.c (strict_aliasing_warning): Handle the cases
12191 of alias set zero explicitly.
12192 * Makefile.in (dfp.o-warn): Add -Wno-error.
12193
12194 2008-06-11 Joseph Myers <joseph@codesourcery.com>
12195
12196 * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
12197 tune_32 tune_64.
12198 (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
12199 tune_32 tune_64 to supported_defaults. Allow values not
12200 supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
12201 x86_64. Do not override cpu_32 or cpu_64 values from target name.
12202 (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
12203 with_cpu_64 to generic for 64-bit-supporting configurations, not
12204 with_cpu. Remove FIXMEs.
12205 * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
12206 --with-arch-64, --with-tune-32, --with-tune-64): Document.
12207 * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
12208 (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
12209 arch_32 and arch_64.
12210
12211 2008-06-11 Eric Botcazou <ebotcazou@adacore.com>
12212 Olivier Hainque <hainque@adacore.com>
12213
12214 * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
12215 Use DECL_SIZE_UNIT to retrieve the size of the field.
12216
12217 2008-06-11 Joseph Myers <joseph@codesourcery.com>
12218
12219 * config/arm/arm.c (arm_init_neon_builtins): Move initialization
12220 with function calls after declarations. Lay out
12221 neon_float_type_node before further use.
12222
12223 2008-06-11 Richard Guenther <rguenther@suse.de>
12224
12225 * tree-flow.h (may_point_to_global_var): Declare.
12226 * tree-ssa-alias.c (may_point_to_global_var): New function.
12227 * tree-ssa-sink.c (is_hidden_global_store): Use it.
12228
12229 2008-06-10 Kazu Hirata <kazu@codesourcery.com>
12230
12231 * configure.ac: Teach that fido supports .debug_line.
12232 * configure: Regenerate.
12233
12234 2008-06-10 Tom Tromey <tromey@redhat.com>
12235
12236 * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
12237 debug hook.
12238
12239 2008-06-10 Joseph Myers <joseph@codesourcery.com>
12240
12241 * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
12242 (encode_decimal64, decode_decimal64, encode_decimal128,
12243 decode_decimal128): Reverse order of 32-bit parts of value if host
12244 and target endianness differ.
12245
12246 2008-06-10 Vinodha Ramasamy <vinodha@google.com>
12247
12248 * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
12249 Avoid division by 0.
12250 (tree_mod_pow2_value_transform): Likewise.
12251 (tree_ic_transform): Likewise.
12252 (tree_stringops_transform): Likewise.
12253 (tree_mod_subtract_transform): Likewise.
12254 * tree-inline-c (copy_bb): Corrected int type to gcov_type.
12255 (copy_edges_for_bb): Likewise.
12256 (initialize_cfun): Likewise.
12257
12258 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
12259
12260 * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
12261 nonmemory_operand. Add "N" operand constraint.
12262 (*btsi): Ditto.
12263 (*jcc_btdi_mask_rex64): New instruction and split pattern.
12264 (*jcc_btsi_mask): Ditto.
12265 (*jcc_btsi_mask_1): Ditto.
12266
12267 2008-06-10 Joseph Myers <joseph@codesourcery.com>
12268
12269 * config/rs6000/rs6000.c (build_opaque_vector_type): Set
12270 TYPE_CANONICAL for copied element type.
12271
12272 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
12273
12274 PR target/36473
12275 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
12276 Add m_CORE2 and m_GENERIC.
12277 * config/i386/predicates.md (bt_comparison_operator): New predicate.
12278 * config/i386/i386.md (*btdi_rex64): New instruction pattern.
12279 (*btsi): Ditto.
12280 (*jcc_btdi_rex64): New instruction and split pattern.
12281 (*jcc_btsi): Ditto.
12282 (*jcc_btsi_1): Ditto.
12283 (*btsq): Fix Intel asm dialect operand order.
12284 (*btrq): Ditto.
12285 (*btcq): Ditto.
12286
12287 2008-06-09 Andy Hutchinson <hutchinsonandy@aim.com>
12288
12289 PR middle-end/36447
12290 * simplify-rtx.c (simplify_subreg): Add check for shift count
12291 greater than size.
12292
12293 2008-06-09 Richard Sandiford <rdsandiford@googlemail.com>
12294
12295 * doc/md.texi: Synchronize with later constraints.md change.
12296 * longlong.h (umul_ppmm): Replace the MIPS asm implementation
12297 with a C implementation.
12298 * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
12299 MFLO handling.
12300 (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
12301 (mips_split_doubleword_move): Use special MTHI and MFHI instructions
12302 when moving to and from MD_REGNUM.
12303 (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
12304 Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
12305 Handle byte and halfword moves.
12306 (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
12307 separately.
12308 * config/mips/constraints.md (h): Turn into NO_REGS.
12309 (l, x): Update documentation.
12310 * config/mips/mips.md (UNSPEC_MFHILO): Delete.
12311 (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
12312 (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
12313 (HILO): New mode iterator.
12314 (MOVE128): Add TI.
12315 (any_div): New code iterator.
12316 (u): Extend code attribute to div and udiv.
12317 (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
12318 d_operand in the splitters. Remove redundant CONST_INT checks.
12319 (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
12320 (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
12321 (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits
12322 accordingly, using normal moves instead of unspecs to move LO into
12323 a GPR. Use d_operand and lo_operand instead of *_REG_P checks.
12324 (<u>mulsidi3): Handle expansion in C code.
12325 (<u>mulsidi3_32bit_internal): Rename to...
12326 (<u>mulsidi3_32bit): ...this.
12327 (<u>mulsidi3_32bit_r4000): Fix insn separator.
12328 (*<u>mulsidi3_64bit): Rename to...
12329 (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers
12330 into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO
12331 to set LO and HI to the multiplication result. Use a normal move
12332 for MFLO and an unspec for MFHI.
12333 (*<u>mulsidi3_64bit_parts): Replace with...
12334 (<u>mulsidi3_64bit_hilo): ...this new instruction.
12335 (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
12336 (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
12337 and extend it to TARGET_FIX_R4000. Store the destination in a GPR
12338 instead of HI. Split the instruction into a separate multiplication
12339 and MFHI if !TARGET_FIX_R4000.
12340 (<su>muldi3_highpart): Likewise.
12341 (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
12342 and the "=h" clobber.
12343 (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
12344 (<u>mulditi3): New expander.
12345 (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
12346 (madsi): Remove "=h" clobber.
12347 (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
12348 Force the modulus result to be a GPR and split the instruction into
12349 a division followed by an MFHI after reload.
12350 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
12351 (*lea_high64): Use d_operand in the define_peephole2. Likewise
12352 the MIPS16 HIGH define_split.
12353 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
12354 of acc<->gpr moves to "multi".
12355 (*movdi_64bit): Replace the single "x" alternative with
12356 alternatives for moving into and out of "a".
12357 (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move.
12358 (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
12359 (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
12360 Use d_operand in the splitters. Remove redundant CONST_INT checks.
12361 (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move.
12362 (movti): New expander.
12363 (*movti, *movti_mips16): New insns.
12364 (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
12365 (mfhi<GPR:mode>_<HILO:mode>): New pattern.
12366 (mthi<GPR:mode>_<HILO:mode>): Likewise.
12367 * config/mips/predicates.md (fpr_operand): Delete.
12368 (d_operand): New predicate.
12369
12370 2008-06-09 Michael Meissner <michael.meissner@amd.com>
12371
12372 * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
12373 failure on some Bourne shells.
12374 (x86_64-*-*): Ditto.
12375
12376 2008-06-09 Kai Tietz <kai.tietz@onevision.com>
12377
12378 * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
12379
12380 2008-06-09 Eric Botcazou <ebotcazou@libertysurf.fr>
12381
12382 * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
12383 (sparc-sun-solaris2*): Likewise.
12384
12385 2008-06-09 Arnaud Charlet <charlet@adacore.com
12386
12387 * doc/install.texi: Update requirements to build the Ada compiler.
12388
12389 2008-06-08 Steven Bosscher <stevenb.gcc@gmail.com>
12390
12391 * df-scan.c (struct df_scan_problem_data): Remove the
12392 mw_link_pool alloc pool.
12393 (df_scan_free_internal): Don't free it.
12394 (df_scan_alloc): Don't allocate it.
12395 * df.h (struct df_link): Update comment.
12396
12397 2008-06-08 Nathan Sidwell <nathan@codesourcery.com>
12398
12399 * except.h: Correct checks for when SJLJ exceptions must be used.
12400
12401 2008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12402
12403 * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
12404 default.
12405
12406 2008-06-08 Joseph Myers <joseph@codesourcery.com>
12407
12408 PR tree-optimization/36218
12409 * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
12410 configure for the build system.
12411 (BUILD_LDFLAGS): Define.
12412 * configure: Regenerate.
12413 * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
12414
12415 2008-07-08 Anatoly Sokolov <aesok@post.ru>
12416
12417 PR target/36424
12418 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
12419 * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
12420 * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
12421
12422 2008-06-07 Danny Smith <dannysmith@users.sourceforge.net>
12423
12424 * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
12425
12426 2008-06-07 Joseph Myers <joseph@codesourcery.com>
12427
12428 * config.gcc (Obsolete configurations): Remove list of
12429 configurations.
12430 (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
12431 *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
12432 targets matched by those patterns.
12433 (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
12434 m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
12435 alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
12436 arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
12437 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
12438 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
12439 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
12440 i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
12441 i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
12442 mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
12443 powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
12444 powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
12445 strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
12446 vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
12447 i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
12448 Make code for Solaris 7 and greater unconditional for Solaris.
12449 (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
12450 Remove --with-* handling.
12451 * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
12452 (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
12453 ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
12454 LINK_OS_WINDISS_SPEC): Remove.
12455 * config/rs6000/sysv4.opt (mwindiss): Remove.
12456 * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
12457 * configure: Regenerate.
12458 * doc/cpp.texi: Don't mention BeOS.
12459 * doc/extend.texi (interrupt): Don't mention MS1.
12460 * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
12461 m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
12462 alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
12463 i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
12464 powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
12465 Remove.
12466 * doc/invoke.texi (MT Options): Remove.
12467 (-mwindiss): Remove.
12468 (CRIS Options): Remove cris-axis-aout references.
12469 (HPPA Options): Don't mention hppa1.1-*-pro.
12470 * doc/md.texi: (MorphoTech family): Remove.
12471 * libgcc2.c: Don't handle UWIN.
12472 * config/alpha/t-unicosmk: Remove.
12473 * config/alpha/unicosmk.h: Remove.
12474 * config/arm/kaos-arm.h: Remove.
12475 * config/arm/kaos-strongarm.h: Remove.
12476 * config/arm/strongarm-coff.h: Remove.
12477 * config/arm/strongarm-elf.h: Remove.
12478 * config/arm/strongarm-pe.h: Remove.
12479 * config/arm/t-strongarm-pe: Remove.
12480 * config/arm/t-xscale-coff: Remove.
12481 * config/arm/t-xscale-elf: Remove.
12482 * config/arm/xscale-coff.h: Remove.
12483 * config/arm/xscale-elf.h: Remove.
12484 * config/chorus.h: Remove.
12485 * config/cris/aout.h: Remove.
12486 * config/cris/aout.opt: Remove.
12487 * config/cris/t-aout: Remove.
12488 * config/i386/beos-elf.h: Remove.
12489 * config/i386/kaos-i386.h: Remove.
12490 * config/i386/ptx4-i.h: Remove.
12491 * config/i386/sco5.h: Remove.
12492 * config/i386/sco5.opt: Remove.
12493 * config/i386/sysv4-cpp.h: Remove.
12494 * config/i386/sysv5.h: Remove.
12495 * config/i386/t-beos: Remove.
12496 * config/i386/t-sco5: Remove.
12497 * config/i386/t-uwin: Remove.
12498 * config/i386/uwin.asm: Remove.
12499 * config/i386/uwin.h: Remove.
12500 * config/kaos.h: Remove.
12501 * config/mips/windiss.h: Remove.
12502 * config/mt: Remove directory.
12503 * config/pa/pa-osf.h: Remove.
12504 * config/pa/pa-pro-end.h: Remove.
12505 * config/pa/t-pro: Remove.
12506 * config/ptx4.h: Remove.
12507 * config/rs6000/beos.h: Remove.
12508 * config/rs6000/kaos-ppc.h: Remove.
12509 * config/rs6000/t-beos: Remove.
12510 * config/rs6000/windiss.h: Remove.
12511 * config/sh/kaos-sh.h: Remove.
12512 * config/sol2-6.h: Remove.
12513 * config/sparc/sol26-sld.h: Remove.
12514 * config/sparc/sysv4-only.h: Remove.
12515 * config/vax/bsd.h: Remove.
12516 * config/vax/t-memfuncs: Remove.
12517 * config/vax/ultrix.h: Remove.
12518 * config/vax/vaxv.h: Remove.
12519 * config/windiss.h: Remove.
12520
12521 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
12522
12523 PR rtl-optimization/36438
12524 * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
12525 for vector shifts with constant scalar shift operands.
12526
12527 2008-06-06 Sandip Matte <sandip@rmicorp.com>
12528
12529 * doc/invoke.texi: Document -march=xlr.
12530 * config/mips/xlr.md: New file.
12531 * config/mips/mips.md: Include it.
12532 (cpu): Add "xlr".
12533 * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
12534 * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
12535 (mips_rtx_cost_data): Likewise.
12536
12537 2008-06-06 Nathan Froyd <froydnj@codesourcery.com>
12538
12539 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
12540 PRE_INC and PRE_DEC cases.
12541
12542 2008-06-06 Jakub Jelinek <jakub@redhat.com>
12543
12544 PR rtl-optimization/36419
12545 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
12546 the emitting jump insn.
12547
12548 PR target/36362
12549 * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
12550 is not bool, boolify the whole *expr_p and convert to the desired type.
12551
12552 2008-06-06 Jakub Jelinek <jakub@redhat.com>
12553
12554 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
12555 * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
12556 Add omp_private_outer_ref hook, add another argument to
12557 omp_clause_default_ctor hook.
12558 * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
12559 (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
12560 (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
12561 hook_tree_tree_tree_tree_null.
12562 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
12563 LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
12564 * hooks.c (hook_tree_tree_tree_tree_null): New function.
12565 * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
12566 * tree.def (OMP_TASK): New tree code.
12567 * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
12568 OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
12569 OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
12570 OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
12571 OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
12572 OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
12573 OMP_CLAUSE_COLLAPSE_EXPR): Define.
12574 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
12575 (OMP_DIRECTIVE_P): Add OMP_TASK.
12576 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
12577 (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
12578 * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
12579 and OMP_CLAUSE_UNTIED entries.
12580 (omp_clause_num_ops): Likewise. Increase OMP_CLAUSE_LASTPRIVATE
12581 num_ops to 2.
12582 (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
12583 Walk OMP_CLAUSE_LASTPRIVATE_STMT.
12584 * tree-pretty-print.c (dump_omp_clause): Handle
12585 OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
12586 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
12587 (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
12588 * c-omp.c (c_finish_omp_for): Allow pointer iterators. Remove
12589 warning about unsigned iterators. Change decl/init/cond/incr
12590 arguments to TREE_VECs, check arguments for all collapsed loops.
12591 (c_finish_omp_taskwait): New function.
12592 (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
12593 ws_clauses.
12594 * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops. Call
12595 default_function_array_conversion on init. Add par_clauses argument.
12596 If decl is present in parallel's lastprivate clause, change it to
12597 shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
12598 Add clauses argument, on success set OMP_FOR_CLAUSES to it. Look up
12599 collapse count in clauses.
12600 (c_parser_omp_for, c_parser_omp_parallel): Adjust
12601 c_parser_omp_for_loop callers.
12602 (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
12603 (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
12604 (c_parser_omp_clause_name): Handle collapse and untied clauses.
12605 (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
12606 functions.
12607 (c_parser_omp_clause_schedule): Handle schedule(auto).
12608 Include correct location in the error message.
12609 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
12610 and PRAGMA_OMP_CLAUSE_UNTIED.
12611 (OMP_TASK_CLAUSE_MASK): Define.
12612 (c_parser_omp_task, c_parser_omp_taskwait): New functions.
12613 (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
12614 * tree-nested.c (convert_nonlocal_omp_clauses,
12615 convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
12616 OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
12617 OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
12618 Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
12619 OMP_CLAUSE_DECL.
12620 (conver_nonlocal_reference, convert_local_reference,
12621 convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL. Use
12622 OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
12623 (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
12624 * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
12625 * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
12626 * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
12627 (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
12628 * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
12629 (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
12630 OMP_CLAUSE_UNTIED.
12631 * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
12632 * c-common.h (c_finish_omp_taskwait): New prototype.
12633 * gimple-low.c (lower_stmt): Handle OMP_TASK.
12634 * tree-parloops.c (create_parallel_loop): Create 1 entry
12635 vectors for OMP_FOR_{INIT,COND,INCR}.
12636 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
12637 (make_edges): Handle OMP_TASK.
12638 * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
12639 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
12640 * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
12641 * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
12642 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
12643 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
12644 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
12645 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
12646 * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
12647 BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
12648 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
12649 BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
12650 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
12651 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
12652 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
12653 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
12654 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
12655 BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
12656 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
12657 BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
12658 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
12659 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
12660 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
12661 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
12662 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
12663 * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
12664 handle POINTER_PLUS_EXPR. If loop counter has been replaced and
12665 original iterator is present in lastprivate clause or if
12666 collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT. Handle collapsed
12667 OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
12668 (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
12669 (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
12670 (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
12671 if it is set, lookup var in outer contexts too. Handle
12672 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE. Handle vars that are supposed
12673 to be implicitly determined firstprivate for task regions.
12674 (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
12675 if it is set, lookup var in outer contexts too. Set
12676 OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
12677 Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
12678 OMP_CLAUSE_UNTIED. Take region_type as last argument
12679 instead of in_parallel and in_combined_parallel.
12680 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
12681 Adjust callers.
12682 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
12683 GOVD_PRIVATE_OUTER_REF is set. Call omp_finish_clause langhook.
12684 (new_omp_context): Set default_kind to
12685 OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
12686 (omp_region_type): New enum.
12687 (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
12688 fields, add region_type.
12689 (new_omp_context): Take region_type as argument instead of is_parallel
12690 and is_combined_parallel.
12691 (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
12692 omp_is_private, omp_check_private): Adjust ctx->is_parallel and
12693 ctx->is_combined_parallel checks.
12694 (gimplify_omp_task): New function.
12695 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
12696 OMP_CLAUSE_UNTIED.
12697 * omp-low.c (extract_omp_for_data): Use schedule(static)
12698 for schedule(auto). Handle pointer and unsigned iterators.
12699 Compute fd->iter_type. Handle POINTER_PLUS_EXPR increments.
12700 Add loops argument. Extract data for collapsed OMP_FOR loops.
12701 (expand_parallel_call): Assert sched_kind isn't auto,
12702 map runtime schedule to index 3.
12703 (struct omp_for_data_loop): New type.
12704 (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
12705 Add loop, loops, collapse and iter_type fields.
12706 (workshare_safe_to_combine_p): Disallow combined for if
12707 iter_type is unsigned long long. Don't combine collapse > 1 loops
12708 unless all bounds and steps are constant. Adjust extract_omp_for_data
12709 caller.
12710 (expand_omp_for_generic): Handle pointer, unsigned and long long
12711 iterators. Handle collapsed OMP_FOR loops. Adjust
12712 for struct omp_for_data changes. If libgomp function doesn't return
12713 boolean_type_node, add comparison of the return value with 0.
12714 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
12715 pointer, unsigned and long long iterators. Adjust for struct
12716 omp_for_data changes.
12717 (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
12718 to index 3. Use GOMP_loop_ull*{start,next} if iter_type is
12719 unsigned long long. Allocate loops array, pass it to
12720 extract_omp_for_data. For collapse > 1 loops use always
12721 expand_omp_for_generic.
12722 (omp_context): Add sfield_map and srecord_type fields.
12723 (is_task_ctx, lookup_sfield): New functions.
12724 (use_pointer_for_field): Use is_task_ctx helper. Change first
12725 argument's type from const_tree to tree. Clarify comment.
12726 In OMP_TASK disallow copy-in/out sharing.
12727 (build_sender_ref): Call lookup_sfield instead of lookup_field.
12728 (install_var_field): Add mask argument. Populate both record_type
12729 and srecord_type if needed.
12730 (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
12731 in srecord_type.
12732 (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
12733 and DECL_FIELD_OFFSET.
12734 (scan_sharing_clauses): Adjust install_var_field callers. For
12735 firstprivate clauses on explicit tasks allocate the var by value in
12736 record_type unconditionally, rather than by reference.
12737 Handle OMP_CLAUSE_PRIVATE_OUTER_REF. Scan OMP_CLAUSE_LASTPRIVATE_STMT.
12738 Use is_taskreg_ctx instead of is_parallel_ctx.
12739 Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
12740 (create_omp_child_function_name): Add task_copy argument, use
12741 *_omp_cpyfn* names if it is true.
12742 (create_omp_child_function): Add task_copy argument, if true create
12743 *_omp_cpyfn* helper function.
12744 (scan_omp_parallel): Adjust create_omp_child_function callers.
12745 Rename parallel_nesting_level to taskreg_nesting_level.
12746 (scan_omp_task): New function.
12747 (lower_rec_input_clauses): Don't run constructors for firstprivate
12748 explicit task vars which are initialized by *_omp_cpyfn*.
12749 Pass outer var ref to omp_clause_default_ctor hook if
12750 OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
12751 Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
12752 OMP_CLAUSE_REDUCTION_INIT.
12753 (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
12754 avoid duplicate setting of fields. Handle
12755 OMP_CLAUSE_PRIVATE_OUTER_REF.
12756 (lower_send_shared_vars): Use srecord_type if non-NULL. Don't
12757 copy-out if TREE_READONLY, only copy-in.
12758 (expand_task_copyfn): New function.
12759 (expand_task_call): New function.
12760 (struct omp_taskcopy_context): New type.
12761 (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
12762 New functions.
12763 (lower_omp_parallel): Rename to...
12764 (lower_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
12765 Call create_task_copyfn if srecord_type is needed. Adjust
12766 sender_decl type.
12767 (task_shared_vars): New variable.
12768 (check_omp_nesting_restrictions): Warn if work-sharing,
12769 barrier, master or ordered region is closely nested inside OMP_TASK.
12770 Add warnings for barrier if closely nested inside of work-sharing,
12771 ordered, or master region.
12772 (scan_omp_1): Call check_omp_nesting_restrictions even for
12773 GOMP_barrier calls. Rename parallel_nesting_level to
12774 taskreg_nesting_level. Handle OMP_TASK.
12775 (lower_lastprivate_clauses): Even if some lastprivate is found on a
12776 work-sharing construct, continue looking for them on parent parallel
12777 construct.
12778 (lower_omp_for_lastprivate): Add lastprivate clauses
12779 to the beginning of dlist rather than end. Adjust for struct
12780 omp_for_data changes.
12781 (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
12782 not after it. Handle collapsed OMP_FOR loops, adjust for
12783 OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
12784 (get_ws_args_for): Adjust extract_omp_for_data caller.
12785 (scan_omp_for): Handle collapsed OMP_FOR
12786 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
12787 (lower_omp_single_simple): If libgomp function doesn't return
12788 boolean_type_node, add comparison of the return value with 0.
12789 (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
12790 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes. Handle OMP_TASK.
12791 (parallel_nesting_level): Rename to...
12792 (taskreg_nesting_level): ... this.
12793 (is_taskreg_ctx): New function.
12794 (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
12795 of is_parallel_ctx.
12796 (execute_lower_omp): Rename parallel_nesting_level to
12797 taskreg_nesting_level.
12798 (expand_omp_parallel): Rename to...
12799 (expand_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
12800 Call omp_task_call for OMP_TASK regions.
12801 (expand_omp): Adjust caller, handle OMP_TASK.
12802 (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
12803
12804 * bitmap.c (bitmap_default_obstack_depth): New variable.
12805 (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
12806 if argument is NULL and bitmap_default_obstack is already initialized.
12807 * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
12808 at the end.
12809 * matrix-reorg.c (matrix_reorg): Likewise.
12810
12811 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
12812
12813 * config/i386/i386.md (*indirect_jump): Macroize using P
12814 mode iterator. Remove !TARGET_64BIT from insn constraints.
12815 (*tablejump_1): Ditto.
12816 (*indirect_jump_rex64): Remove insn pattern.
12817 (*tablejump_1_rex64): Ditto.
12818 (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
12819 and eh_return_si insn patterns.
12820
12821 2008-06-06 Richard Guenther <rguenther@suse.de>
12822
12823 * tree-ssa-structalias.c (merge_smts_into): Remove.
12824 (find_what_p_points_to): Do not bother to compute the
12825 points-to set for pt_anything pointers.
12826 * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
12827 for pt_anything pointers is ok.
12828
12829 2008-06-06 Jan Hubicka <jh@suse.cz>
12830
12831 * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
12832
12833 2008-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12834
12835 * cgraph.c: Fix typos in comments.
12836 (cgraph_availability_names): Fix string typo.
12837 * fold-const.c: Fix typos in comments.
12838 (fold_binary): Fix typo in warning.
12839 * genautomata.c: Fix typos in comments.
12840 (check_presence_pattern_sets): Fix typo in local variable.
12841 (output_description): Fix typo in output.
12842 * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
12843 * hwint.h: Likewise.
12844 * matrix-reorg.c (check_allocation_function): Likewise.
12845 * omega.c (smooth_weird_equations): Likewise.
12846 * auto-inc-dec.c: Fix typos in comments.
12847 * bb-reorder.c: Likewise.
12848 * builtins.c: Likewise.
12849 * c-common.c: Likewise.
12850 * c-cppbuiltin.c: Likewise.
12851 * c-parser.c: Likewise.
12852 * c-pretty-print.c: Likewise.
12853 * cfgcleanup.c: Likewise.
12854 * cfgexpand.c: Likewise.
12855 * cfghooks.c: Likewise.
12856 * cfglayout.c: Likewise.
12857 * cfgloopmanip.c: Likewise.
12858 * cgraphunit.c: Likewise.
12859 * coverage.c: Likewise.
12860 * dbxout.c: Likewise.
12861 * df-byte-scan.c: Likewise.
12862 * df-core.c: Likewise.
12863 * df-problems.c: Likewise.
12864 * df-scan.c: Likewise.
12865 * dfp.c: Likewise.
12866 * dominance.c: Likewise.
12867 * domwalk.c: Likewise.
12868 * dse.c: Likewise.
12869 * dwarf2out.c: Likewise.
12870 * emit-rtl.c: Likewise.
12871 * et-forest.c: Likewise.
12872 * function.c: Likewise.
12873 * function.h: Likewise.
12874 * gcc.c: Likewise.
12875 * gcov-io.c: Likewise.
12876 * gcov.c: Likewise.
12877 * gcse.c: Likewise.
12878 * genattrtab.c: Likewise.
12879 * ggc-page.c: Likewise.
12880 * gimplify.c: Likewise.
12881 * gthr-lynx.h: Likewise.
12882 * haifa-sched.c: Likewise.
12883 * ipa-cp.c: Likewise.
12884 * ipa-inline.c: Likewise.
12885 * ipa-prop.h: Likewise.
12886 * ipa-pure-const.c: Likewise.
12887 * ipa-struct-reorg.c: Likewise.
12888 * ipa-struct-reorg.h: Likewise.
12889 * ipa-type-escape.c: Likewise.
12890 * ipa.c: Likewise.
12891 * loop-doloop.c: Likewise.
12892 * mips-tfile.c: Likewise.
12893 * mkmap-flat.awk: Likewise.
12894 * mkmap-symver.awk: Likewise.
12895 * modulo-sched.c: Likewise.
12896 * omp-low.c: Likewise.
12897 * optabs.c: Likewise.
12898 * optabs.h: Likewise.
12899 * opts.c: Likewise.
12900 * passes.c: Likewise.
12901 * postreload-gcse.c: Likewise.
12902 * postreload.c: Likewise.
12903 * predict.c: Likewise.
12904 * pretty-print.h: Likewise.
12905 * profile.c: Likewise.
12906 * protoize.c: Likewise.
12907 * ra-conflict.c: Likewise.
12908 * real.c: Likewise.
12909 * recog.c: Likewise.
12910 * regclass.c: Likewise.
12911 * regs.h: Likewise.
12912 * reload.c: Likewise.
12913 * rtl-error.c: Likewise.
12914 * rtlanal.c: Likewise.
12915 * scan.h: Likewise.
12916 * sched-rgn.c: Likewise.
12917 * see.c: Likewise.
12918 * stmt.c: Likewise.
12919 * target.h: Likewise.
12920 * tree-dfa.c: Likewise.
12921 * tree-eh.c: Likewise.
12922 * tree-flow-inline.h: Likewise.
12923 * tree-inline.c: Likewise.
12924 * tree-into-ssa.c: Likewise.
12925 * tree-loop-distribution.c: Likewise.
12926 * tree-nested.c: Likewise.
12927 * tree-parloops.c: Likewise.
12928 * tree-pass.h: Likewise.
12929 * tree-pretty-print.c: Likewise.
12930 * tree-profile.c: Likewise.
12931 * tree-scalar-evolution.c: Likewise.
12932 * tree-sra.c: Likewise.
12933 * tree-ssa-alias-warnings.c: Likewise.
12934 * tree-ssa-ccp.c: Likewise.
12935 * tree-ssa-coalesce.c: Likewise.
12936 * tree-ssa-dom.c: Likewise.
12937 * tree-ssa-dse.c: Likewise.
12938 * tree-ssa-forwprop.c: Likewise.
12939 * tree-ssa-live.c: Likewise.
12940 * tree-ssa-live.h: Likewise.
12941 * tree-ssa-loop-im.c: Likewise.
12942 * tree-ssa-loop-ivopts.c: Likewise.
12943 * tree-ssa-loop-niter.c: Likewise.
12944 * tree-ssa-loop-prefetch.c: Likewise.
12945 * tree-ssa-phiopt.c: Likewise.
12946 * tree-ssa-phiprop.c: Likewise.
12947 * tree-ssa-sccvn.c: Likewise.
12948 * tree-ssa-ter.c: Likewise.
12949 * tree-ssa-threadupdate.c: Likewise.
12950 * tree-ssa.c: Likewise.
12951 * tree-vect-analyze.c: Likewise.
12952 * tree-vect-transform.c: Likewise.
12953 * tree-vectorizer.c: Likewise.
12954 * tree-vn.c: Likewise.
12955 * tree-vrp.c: Likewise.
12956 * tree.c: Likewise.
12957 * tree.def: Likewise.
12958 * tree.h: Likewise.
12959 * unwind-dw2-fde.c: Likewise.
12960 * unwind.inc: Likewise.
12961 * value-prof.c: Likewise.
12962 * vmsdbgout.c: Likewise.
12963
12964 2008-06-05 David Edelsohn <edelsohn@gnu.org>
12965
12966 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
12967 always place FP constants in the TOC for TARGET_POWERPC64.
12968 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
12969
12970 2008-06-05 Joseph Myers <joseph@codesourcery.com>
12971
12972 * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
12973 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
12974 enable for TARGET_E500_DOUBLE.
12975 (*movdd_softfloat32): Also enable for !TARGET_FPRS.
12976 * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
12977 floating-point modes like integer modes for E500 double.
12978 (rs6000_legitimate_offset_address_p): Likewise.
12979 (rs6000_legitimize_address): Likewise. Do not allow REG+REG
12980 addressing for DDmode for E500 double.
12981 (rs6000_hard_regno_nregs): Do not treat decimal floating-point
12982 modes as using 64-bits of registers for E500 double.
12983 (spe_build_register_parallel): Do not handle DDmode or TDmode.
12984 (rs6000_spe_function_arg): Do not handle DDmode or TDmode
12985 specially for E500 double.
12986 (function_arg): Do not call rs6000_spe_function_arg for DDmode or
12987 TDmode for E500 double.
12988 (rs6000_gimplify_va_arg): Only handle SDmode in registers
12989 specially if TARGET_HARD_FLOAT && TARGET_FPRS.
12990 (rs6000_split_multireg_move): Do not handle TDmode specially for
12991 E500 double.
12992 (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
12993 using 64-bit registers for E500 double.
12994 (emit_frame_save): Do not handle DDmode specially for E500 double.
12995 (gen_frame_mem_offset): Likewise.
12996 (rs6000_function_value): Do not call spe_build_register_parallel
12997 for DDmode or TDmode.
12998 (rs6000_libcall_value): Likewise.
12999 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
13000 DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
13001 for E500 double.
13002
13003 2008-06-04 H.J. Lu <hongjiu.lu@intel.com>
13004
13005 * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
13006 in comments.
13007
13008 2008-06-04 Junjie Gu <jgu@tensilica.com>
13009
13010 * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
13011 comparison for frame pointers.
13012
13013 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
13014
13015 PR target/27386
13016 * config/avr/avr.h (PUSH_ROUNDING): Remove.
13017
13018 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
13019
13020 PR target/30243
13021 * builtins.c (expand_builtin_signbit): Don't take lowpart when
13022 register is already smaller or equal to required mode.
13023
13024 2008-06-04 Xinliang David Li <davidxl@google.com>
13025
13026 * tree-call-cdce.c: New file.
13027 (cond_dead_built_in_calls): New static variable.
13028 (input_domain): New struct.
13029 (check_pow): New function.
13030 (check_builtin_call): Ditto.
13031 (check_target_format): Ditto.
13032 (is_call_dce_candidate): Ditto.
13033 (gen_one_condition): Ditto.
13034 (gen_conditions_for_domain): Ditto.
13035 (get_domain): Ditto.
13036 (gen_conditions_for_pow_cst_base): Ditto.
13037 (gen_conditions_for_pow_int_base): Ditto.
13038 (gen_conditions_for_pow): Ditto.
13039 (get_no_error_domain): Ditto.
13040 (gen_shrink_wrap_conditions): Ditto.
13041 (shrink_wrap_one_built_in_call): Ditto.
13042 (shink_wrap_conditional_dead_built_in_calls): Ditto.
13043 (tree_call_cdce): Ditto.
13044 (gate_call_cdce): Ditto.
13045 (pass_call_cdce): New gimple pass.
13046 * passes.c: (init_optimization_passes): New pass.
13047 * tree-pass.h: New pass declaration.
13048 * opts.c (decode_options): New flag setting.
13049 * common.opt: Add -ftree-builtin-call-dce flag.
13050 * Makefile.in: Add new source file.
13051 * tempvar.def: New tv_id.
13052 * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
13053
13054 2008-06-04 Richard Guenther <rguenther@suse.de>
13055
13056 * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
13057 (is_call_clobbered): Always check var_ann->call_clobbered.
13058 (mark_call_clobbered): Always set var_ann->call_clobbered.
13059 (clear_call_clobbered): Always clear var_ann->call_clobbered.
13060 * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
13061 (reset_alias_info): Clear call clobbering info on MTAGs and
13062 globals as well.
13063 (set_pt_anything): Set pt_global_mem.
13064 (create_tag_raw): Adjust comment.
13065 (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
13066
13067 2008-06-04 Joseph Myers <joseph@codesourcery.com>
13068 Maxim Kuvyrkov <maxim@codesourcery.com>
13069
13070 * config/m68k/m68k.opt (mxgot): New option.
13071 * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
13072 (m68k_output_addr_const_extra): New.
13073 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
13074 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
13075 * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
13076 * doc/invoke.texi (M680x0 Options): Document -mxgot.
13077
13078 2008-06-04 Richard Guenther <rguenther@suse.de>
13079
13080 * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
13081 negative or non-representable offsets.
13082
13083 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
13084
13085 * config/i386/i386.c (ix86_gen_leave): New.
13086 (ix86_gen_pop1): Likewise.
13087 (ix86_gen_add3): Likewise.
13088 (ix86_gen_sub3): Likewise.
13089 (ix86_gen_sub3_carry): Likewise.
13090 (ix86_gen_one_cmpl2): Likewise.
13091 (ix86_gen_monitor): Likewise.
13092 (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
13093 ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
13094 ix86_gen_one_cmpl2 and ix86_gen_monitor.
13095 (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
13096 (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
13097 mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
13098 (ix86_expand_epilogue): Updated.
13099 (print_operand): Handle integer register operand for 'z'.
13100 (ix86_expand_strlensi_unroll_1): Likewise.
13101 (ix86_expand_strlen): Likewise.
13102 (ix86_expand_builtin): Likewise.
13103 (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
13104 mov{q}/mov{l} and add{q}/add{l}.
13105
13106 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
13107
13108 * config/i386/i386.md (P): New mode iterator.
13109 (SFmode push_operand splitter): Macroize DImode and SImode pushes
13110 using P mode iterator.
13111 (DFmode push_operand splitter): Ditto.
13112 (XFmode push_operand splitter): Ditto.
13113 (DFmode float_extend SFmode push_operand splitter): Ditto.
13114 (XFmode float_extend SFmode push_operand splitter): Do not generate
13115 SImode pushes for 64bit target. Macroize Dimode and SImode
13116 pushes using P mode iterator.
13117 (XFmode float_extend DFmode push_operand splitter): Ditto.
13118
13119 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
13120
13121 * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
13122 * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
13123 * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
13124 return type to int.
13125 (ix86_call_abi_override): Remove check for call_used_regs.
13126
13127 2008-06-03 Richard Guenther <rguenther@suse.de>
13128
13129 * tree-ssa-structalias.c (find_func_aliases): Add constraints
13130 for the lhs of calls if the return type contains pointers.
13131
13132 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
13133
13134 * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
13135 * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
13136 * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
13137 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
13138 of cfun and DEFAULT_ABI to deceide abi mode.
13139 (DEFAULT_ABI): New.
13140 (REG_PARM_STACK_SPACE): Removed.
13141 (OUTGOING_REG_PARM_STACK_SPACE): Removed.
13142 (STACK_BOUNDARY): Use default target to deceide stack boundary.
13143 * config/i386/i386-protos.h (ix86_cfun_abi): New.
13144 (ix86_function_abi): Likewise.
13145 (ix86_function_type_abi): Likewise.
13146 (ix86_call_abi_override): Likewise.
13147 * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
13148 specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
13149 * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
13150 (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
13151 specific defines.
13152 (X86_64_REGPARM_MAX): New.
13153 (X86_64_SSE_REGPARM_MAX): New.
13154 (X64_REGPARM_MAX): New.
13155 (X64_SSE_REGPARM_MAX): New.
13156 (X86_32_REGPARM_MAX): New.
13157 (X86_32_SSE_REGPARM_MAX): New.
13158 (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
13159 (ix86_function_regparm): Handle user calling abi.
13160 (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
13161 by DEFAULT_ABI versus SYSV_ABI check.
13162 (ix86_reg_parm_stack_space): New.
13163 (ix86_function_type_abi): New.
13164 (ix86_call_abi_override): New.
13165 (ix86_function_abi): New.
13166 (ix86_cfun_abi): New.
13167 (init_cumulative_args): Call abi specific initialization.
13168 (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
13169 (function_arg_64): Extend SSE_REGPARM_MAX check.
13170 (function_arg (): Remove TARGET_64BIT_MS_ABI.
13171 (ix86_pass_by_reference): Likewise.
13172 (ix86_function_value_regno_p): Likewise.
13173 (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
13174 (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
13175 (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
13176 (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
13177 (setup_incoming_varargs_64): Adjust regparm for call abi.
13178 (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
13179 (ix86_va_start): Likewise.
13180 (ix86_gimplify_va_arg): Likewise.
13181 (ix86_expand_prologue): Likewise.
13182 (output_pic_addr_const): Likewise.
13183 (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
13184 (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
13185 (x86_output_mi_thunk): Likewise.
13186 (x86_function_profiler): Likewise.
13187 * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
13188 (SYSV_ABI, MS_ABI): New constants.
13189 (DEFAULT_ABI): New.
13190 (init_regs): Add prototype of function in regclass.c file.
13191 (OVERRIDE_ABI_FORMAT): New.
13192 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
13193 (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
13194 (OUTGOING_REG_PARM_STACK_SPACE): New.
13195 (ix86_reg_parm_stack_space): New prototype.
13196 (CUMULATIVE_ARGS): Add call_abi member.
13197 (machine_function): Add call_abi member.
13198 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
13199 TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
13200
13201 2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
13202
13203 PR target/34879
13204 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
13205 (avr_builtin_setjmp_frame_value): New function.
13206 * config/avr/avr.md (nonlocal_goto_receiver): Define.
13207 (nonlocal_goto): Define.
13208
13209 2008-06-02 Richard Sandiford <rdsandiford@googlemail.com>
13210
13211 * config/mips/mips.c (mips_emit_loadgp): Return early if
13212 there is nothing do to, otherwise emit a blockage if
13213 !TARGET_EXPLICIT_RELOCS || crtl->profile.
13214 * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
13215
13216 2008-06-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13217
13218 * configure.ac: Drop unneeded backslash ending up in config.in.
13219 * acinclude.m4: Likewise.
13220 * config.in: Regenerate.
13221
13222 2008-05-26 Jan Hubicka <jh@suse.cz>
13223
13224 * predict.c (maybe_hot_frequency_p): Break out of...
13225 (maybe_hot_bb_p): ... here.
13226 (maybe_hot_edge_p): New.
13227 * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
13228 * basic-block.h (maybe_hot_edge_p): Declare.
13229
13230 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
13231
13232 * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
13233 (*cmpfp_<mode>_cc): Ditto.
13234 (*fp_jcc_8<mode>_387): Ditto.
13235 (*fop_<MODEF:mode>_2_i387): Ditto.
13236 (*fop_<MODEF:mode>_3_i387): Ditto.
13237 (*fop_xf_2_i387): Ditto.
13238 (*fop_xf_3_i387): Ditto.
13239
13240 2008-06-02 Tomas Bily <tbily@suse.cz>
13241
13242 * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
13243
13244 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
13245
13246 * config/mips/mips.c (mips_valid_offset_p): New function.
13247 (mips_valid_lo_sum_p): Likewise.
13248 (mips_classify_address): Use them.
13249 (mips_force_address): New function.
13250 (mips_legitimize_address): Use it.
13251 * config/mips/mips.md (MOVE128): New mode iterator.
13252 (movtf): Require TARGET_64BIT. Remove empty strings.
13253 (*movtf_internal): Rename to...
13254 (*movtf): ...this and require !TARGET_MIPS16. Use "m" instead
13255 of "R" and use {,fp}{load,store} attributes instead of "multi".
13256 Use a separate define_split.
13257 (*movtf_mips16): New pattern.
13258
13259 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
13260
13261 * config/mips/mips-protos.h (mips_expand_before_return): Declare.
13262 * config/mips/mips.c (mips_expand_before_return): New function.
13263 (mips_expand_epilogue): Call it.
13264 * config/mips/mips.md (return): Turn into a define_expand.
13265 (*return): New insn.
13266
13267 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
13268
13269 * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
13270 * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
13271 functions. Do not emit uses and clobbers of CONCATs; individually
13272 use and clobber their operands.
13273 * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
13274 gen_clobber, emit_use and gen_use.
13275 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
13276 (expand_builtin_return): Likewise.
13277 * cfgbuild.c (count_basic_blocks): Likewise.
13278 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
13279 * explow.c (emit_stack_restore): Likewise.
13280 * expmed.c (extract_bit_field_1): Likewise.
13281 * expr.c (convert_move, emit_move_complex_parts): Likewise.
13282 (emit_move_multi_word, store_constructor): Likewise.
13283 * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
13284 (thread_prologue_and_epilogue_insns): Likewise.
13285 * lower-subreg.c (resolve_simple_move): Likewise.
13286 * optabs.c (widen_operand, expand_binop): Likewise.
13287 (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
13288 * reload.c (find_reloads): Likewise.
13289 * reload1.c (eliminate_regs_in_insn): Likewise.
13290 * stmt.c (expand_nl_goto_receiver): Likewise.
13291 * config/alpha/alpha.md (builtin_longjmp): Likewise.
13292 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
13293 * config/arm/arm.c (arm_load_pic_register): Likewise.
13294 (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
13295 * config/arm/arm.md (untyped_return): Likewise.
13296 * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
13297 * config/avr/avr.c (expand_prologue): Likewise.
13298 * config/bfin/bfin.c (do_unlink): Likewise.
13299 * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
13300 * config/cris/cris.c (cris_expand_prologue): Likewise.
13301 * config/darwin.c (machopic_indirect_data_reference): Likewise.
13302 (machopic_legitimize_pic_address): Likewise.
13303 * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
13304 (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
13305 * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
13306 (ix86_expand_convert_uns_didf_sse): Likewise.
13307 (ix86_expand_vector_init_general): Likewise.
13308 * config/ia64/ia64.md (eh_epilogue): Likewise.
13309 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
13310 * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
13311 * config/m32r/m32r.c (m32r_reload_lr): Likewise.
13312 (config/iq2000/iq2000.c): Likewise.
13313 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
13314 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
13315 (builtin_longjmp): Likewise.
13316 * config/mn10300/mn10300.md (call, call_value): Likewise.
13317 * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
13318 * config/pdp11/pdp11.md (abshi2): Likewise.
13319 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
13320 * config/s390/s390.c (s390_emit_prologue): Likewise.
13321 * config/s390/s390.md (movmem_long, setmem_long): Likewise.
13322 (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
13323 (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
13324 * config/sh/sh.c (prepare_move_operands): Likewise.
13325 (output_stack_adjust, sh_expand_epilogue): Likewise.
13326 (sh_set_return_address, sh_expand_t_scc): Likewise.
13327 * config/sparc/sparc.c (load_pic_register): Likewise.
13328 * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
13329 * config/spu/spu.c (spu_expand_epilogue): Likewise.
13330 * config/v850/v850.c (expand_epilogue): Likewise.
13331
13332 2008-05-31 Anatoly Sokolov <aesok@post.ru>
13333
13334 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
13335 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
13336 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
13337 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
13338 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
13339 stack pointer register.
13340 (output_movhi): Remove code for interrupt specific writing to the
13341 stack pointer register.
13342
13343 2008-05-31 Richard Guenther <rguenther@suse.de>
13344
13345 PR tree-optimization/34244
13346 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
13347 (tree_expr_nonzero_warnv_p): Likewise.
13348 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
13349 ssa_name_nonnegative_p.
13350 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
13351 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
13352 not tree_expr_nonzero_warnv_p.
13353
13354 PR tree-optimization/36262
13355 Revert
13356 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
13357
13358 PR tree-optimization/34244
13359 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
13360 (record_numbers_of_iterations): New function.
13361 (execute_vrp): Cache the numbers of iterations of loops.
13362 * tree-scalar-evolution.c (scev_reset_except_niters):
13363 New function.
13364 (scev_reset): Use scev_reset_except_niters.
13365 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
13366
13367 2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
13368
13369 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
13370 __WORKAROUND_RETS when appropriate.
13371
13372 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
13373
13374 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
13375 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
13376 mode iterator.
13377 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
13378 *fop_df_comm_sse insn patterns using MODEF mode iterator.
13379 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
13380 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
13381 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
13382 *fop_df_1_mixed insn patterns using MODEF mode iterator.
13383 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
13384 *fop_df_1_sse insn patterns using MODEF mode iterator.
13385 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
13386 *fop_df_1_i387 insn patterns using MODEF mode iterator.
13387 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
13388 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
13389 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
13390 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
13391 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
13392 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
13393 (*fop_xf_4_i387): Use <MODE> for mode attribute.
13394 (*fop_xf_5_i387): Ditto.
13395 (*fop_xf_6_i387): Ditto.
13396
13397 2008-05-30 Richard Guenther <rguenther@suse.de>
13398
13399 * builtins.c (build_string_literal): Avoid generating
13400 a non-gimple_val result.
13401
13402 2008-05-30 DJ Delorie <dj@redhat.com>
13403
13404 * exec-tool.in: Use an environment variable (private) instead of a
13405 file (shared) as a semaphore, so as to not break parallel builds.
13406
13407 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
13408
13409 * optabs.c (maybe_encapsulate_block): Remove.
13410 (emit_libcall_block): Adjust accordingly.
13411 * optabs.h (maybe_encapsulate_block): Remove prototype.
13412
13413 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
13414 Don't use maybe_encapsulate_block.
13415
13416 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
13417
13418 * config/rs6000/rs6000.c (rs6000_legitimize_address,
13419 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
13420 rtx is a SYMBOL_REF before calling get_pool_constant.
13421
13422 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
13423
13424 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
13425
13426 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
13427
13428 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
13429 rather than OS names to choose INO_T_EQ definition.
13430 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
13431 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
13432
13433 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
13434
13435 PR target/36348
13436 * config/darwin-f.c: New.
13437 * config/t-darwin: Added rule to build darwin-f.o.
13438 * config.gcc: Defined new variable, fortran_target_objs.
13439 (*-*-darwin*): Set fortran_target_objs.
13440 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
13441 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
13442 * configure: Regenerated.
13443
13444 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
13445
13446 PR target/35771
13447 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
13448 canonical type if needed.
13449
13450 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
13451
13452 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
13453
13454 2008-05-29 Richard Guenther <rguenther@suse.de>
13455
13456 PR tree-optimization/36343
13457 PR tree-optimization/36346
13458 PR tree-optimization/36347
13459 * tree-flow.h (clobber_what_p_points_to): Declare.
13460 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
13461 pointed-to variable is dereferenced is irrelevant to whether
13462 the pointer can access the pointed-to variable.
13463 (clobber_what_p_points_to): New function.
13464 * tree-ssa-alias.c (set_initial_properties): Use it.
13465 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
13466 call clobber check for NMTs.
13467
13468 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
13469
13470 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
13471 for printing gcov_type.
13472
13473 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
13474
13475 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
13476 and the eh region information.
13477 * value-prof.c (gimple_move_stmt_histograms): New function.
13478 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
13479
13480 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
13481
13482 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
13483
13484 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
13485
13486 * value-prof.c (tree_ic_transform): Print counts.
13487 * tree-profile.c (tree_gen_ic_func_profiler):
13488 Clear __gcov_indreict_call_callee variable to avoid misattribution
13489 of the profile.
13490
13491 2008-05-28 Rafael Espíndola <espindola@google.com>
13492
13493 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
13494 invalid sharing.
13495
13496 2008-05-28 Richard Guenther <rguenther@suse.de>
13497
13498 PR tree-optimization/36339
13499 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
13500 and clobbering code out of the loop.
13501
13502 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
13503
13504 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
13505 letters defined.
13506
13507 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
13508 s390_contiguous_bitmask_p, s390_symref_operand_p,
13509 s390_check_symref_alignment, s390_reload_larl_operand,
13510 s390_reload_symref_address): New functions.
13511 (s390_branch_condition_mnemonic): Support compare and branch
13512 instructions.
13513 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
13514 and 'W' constraints.
13515 (s390_secondary_reload): Add secondary reloads for unaligned
13516 symbol refs or symbol refs to floating point or QI/TI mode
13517 integer values.
13518 (legitimate_address_p): Accept symbol references as addresses.
13519 (s390_expand_insv): Use rotate and insert selected bits
13520 instruction for insv when building for z10.
13521 (print_operand_address): Handle symbol ref addresses.
13522 (print_operand): Output modifier 'c' added for signed byte values.
13523 (s390_encode_section_info): Mark symbol refs with
13524 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
13525
13526 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
13527 (length attribute): RRF, RRR have 4 byte length.
13528 (FPALL, INTALL): New mode iterators added.
13529 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
13530 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
13531 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
13532 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
13533 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
13534 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
13535 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
13536 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
13537 instructions.
13538 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
13539 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
13540 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
13541 reload<INTALL:mode><P:mode>_toreg_z10,
13542 reload<FPALL:mode><P:mode>_tomem_z10,
13543 reload<FPALL:mode><P:mode>_toreg_z10,
13544 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
13545 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
13546 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
13547 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
13548 definition.
13549 (movmem, clrmem, cmpmem): New splitters added.
13550
13551 * config/s390/predicates.md (larl_operand): Use
13552 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
13553 SYMBOL_REF_ALIGN1_P.
13554 (s390_signed_integer_comparison,
13555 s390_unsigned_integer_comparison): New predicates.
13556
13557 * config/s390/s390-protos.h (s390_check_symref_alignment,
13558 s390_contiguous_bitmask_p, s390_reload_larl_operand,
13559 s390_reload_symref_address,
13560 s390_compare_and_branch_condition_mask): Prototypes added.
13561
13562 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
13563 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
13564 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
13565
13566 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
13567
13568 * config/s390/s390.c (z10_cost): New cost function for z10.
13569 (s390_handle_arch_option, override_options): Support -march=z10 switch.
13570 (s390_issue_rate): Adjust issue rate for z10.
13571 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
13572 (processor_flags): Add PF_Z10.
13573 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
13574 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
13575 * gcc/config.gcc: Add z10.
13576
13577 2008-05-28 Richard Guenther <rguenther@suse.de>
13578
13579 PR tree-optimization/36291
13580 * tree-flow. h (struct gimple_df): Remove var_anns member.
13581 * tree-flow-inline.h (gimple_var_anns): Remove.
13582 (var_ann): Simplify.
13583 * tree-dfa.c (create_var_ann): Simplify.
13584 (remove_referenced_var): Clear alias info from var_anns of globals.
13585 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
13586 (delete_tree_ssa): Clear alias info from var_anns of globals.
13587 Do not free var_anns.
13588 (var_ann_eq): Remove.
13589 (var_ann_hash): Likewise.
13590
13591 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
13592
13593 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
13594 and loongson2f entries.
13595 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
13596 * config/mips/mips.h (processor_type): Add Loongson-2E
13597 and Loongson-2F entries.
13598 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
13599 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
13600 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
13601 * doc/invoke.texi (MIPS Options): Document loongson2e
13602 and loongson2f processor names.
13603
13604 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
13605
13606 PR target/35767
13607 PR target/35771
13608 * config/i386/i386.c (ix86_function_arg_boundary): Use
13609 alignment of canonical type.
13610 (ix86_expand_vector_move): Check unaligned memory access for
13611 all SSE modes.
13612
13613 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
13614
13615 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
13616 Moved to the front of file.
13617
13618 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
13619 H.J. Lu <hongjiu.lu@intel.com>
13620
13621 * dwarf2out.c (current_fde): New.
13622 (add_cfi): Use it.
13623 (lookup_cfa:): Likewise.
13624 (dwarf2out_end_epilogue): Likewise.
13625 (dwarf2out_note_section_used): Likewise.
13626
13627 2008-05-27 Michael Matz <matz@suse.de>
13628
13629 PR c++/27975
13630 * c.opt (Wenum-compare): New warning option.
13631 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
13632
13633 2008-05-27 Michael Matz <matz@suse.de>
13634
13635 PR middle-end/36326
13636 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
13637 non-BLKmode types.
13638 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
13639 into memory as tail calls.
13640
13641 2008-05-27 Richard Guenther <rguenther@suse.de>
13642
13643 PR tree-optimization/36339
13644 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
13645 pointers cause all addressable variables to be call clobbered.
13646
13647 2008-05-27 Richard Guenther <rguenther@suse.de>
13648
13649 PR tree-optimization/36245
13650 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
13651
13652 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
13653
13654 * config/s390/s390.md: Replace all occurences of the 'm'
13655 constraint with 'RT'.
13656
13657 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
13658
13659 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
13660 definitions added.
13661 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
13662 "*movdi_64".
13663 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
13664 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
13665 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
13666
13667 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
13668
13669 * reload.c: (find_reloads): Skip alternatives according to the
13670 "enabled" attribute. Constify the constraint variable.
13671 * recog.c (get_attr_enabled): Add default implementation.
13672 (extract_insn): Set the alternative_enabled_p array
13673 in the recog_data struct.
13674 (preprocess_constraints, constrain_operands): Skip
13675 alternatives according to the "enabled" attribute
13676 * recog.h (struct recog_data): New field alternative_enabled_p.
13677 (skip_alternative): New inline function.
13678 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
13679 (record_reg_classes): Skip alternative according to the
13680 "enabled" attribute.
13681
13682 * doc/md.texi: Add documention for the "enabled" attribute.
13683
13684 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
13685
13686 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
13687 * postreload.c (reload_cse_simplify_operands): Replace 'm'
13688 constraint with TARGET_MEM_CONSTRAINT.
13689 * recog.c (asm_operand_ok, preprocess_constraints,
13690 constrain_operands): Likewise.
13691 * regclass.c (record_reg_classes): Likewise.
13692 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
13693 * reload1.c (maybe_fix_stack_asms): Likewise.
13694 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
13695 * recog.h: Adjust comment.
13696 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
13697 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
13698 * doc/md.texi: Add a note to description of 'm' constraint.
13699 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
13700
13701 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
13702
13703 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
13704 that the bitfield is of integral type before testing its precision.
13705
13706 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
13707 Sa Liu <saliu@de.ibm.com>
13708
13709 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
13710 __modti3, __udivti3, __umodti3 and __udivmodti4.
13711 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
13712 that implement TImode mul and div functions.
13713 * config/spu/multi3.c: New. Implement __multi3.
13714 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
13715 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
13716 functions on SPU.
13717
13718 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
13719
13720 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
13721 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
13722 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
13723 tls_sysv_suffix): New mode and mode attribute iterators.
13724 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
13725 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
13726 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
13727 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
13728 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
13729 iterators.
13730
13731 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
13732
13733 PR tree-optimization/36329
13734 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
13735 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
13736 * cgraphbuild.c (initialize_inline_failed): Use the latter
13737 macro in lieu of the former.
13738 * ipa-inline.c (cgraph_mark_inline): Likewise.
13739 (cgraph_decide_inlining_of_small_function): Likewise.
13740 (cgraph_decide_inlining): Likewise.
13741 (cgraph_decide_inlining_incrementally): Likewise.
13742
13743 2008-05-26 Tristan Gingold <gingold@adacore.com>
13744 Anatoly Sokolov <aesok@post.ru>
13745
13746 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
13747 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
13748 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
13749 optimization for 'avr6' architecture.
13750
13751 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
13752
13753 PR target/34932
13754 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
13755
13756 2008-05-26 Richard Guenther <rguenther@suse.de>
13757
13758 * tree-ssa-sccvn.c (expr_has_constants): Declare.
13759 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
13760
13761 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
13762
13763 PR middle-end/36253
13764 * caller-save.c (insert_restore): Verify alignment of spill space.
13765 (insert_save): Likewise.
13766 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
13767 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
13768 (STACK_SLOT_ALIGNMENT): Likewise.
13769 * function.c (LOCAL_ALIGNMENT): Removed.
13770 (get_stack_local_alignment): New.
13771 (assign_stack_local): Use it. Set alignment on stack slot.
13772 (assign_stack_temp_for_type): Use get_stack_local_alignment.
13773 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
13774 (STACK_SLOT_ALIGNMENT): New.
13775 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
13776 stack slot in XFmode.
13777
13778 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
13779
13780 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
13781
13782 PR/36321
13783 * config/i386/i386.md (allocate_stack_worker_64): Make sure
13784 argument operand in rax isn't removed.
13785
13786 2008-05-26 Richard Guenther <rguenther@suse.de>
13787
13788 PR middle-end/36300
13789 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
13790 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
13791
13792 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
13793
13794 PR bootstrap/36331
13795 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
13796
13797 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
13798
13799 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
13800 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
13801
13802 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
13803
13804 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
13805 build a trampoline if we don't want one.
13806 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
13807 return zero for nested functions if we don't want a trampoline.
13808
13809 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
13810
13811 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
13812
13813 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
13814
13815 PR fortran/18428
13816 * c.opt: Removed undocumented option '-lang-fortran'.
13817 * c-common.h: Removed global variable 'lang_fortran'.
13818 * c-opts.c (c_common_handle_option): Removed code to handle
13819 option '-lang-fortran'. Updated includes.
13820 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
13821 definition of '__GFORTRAN__'.
13822 (define__GNUC__): Reimplemented to use BASEVER and
13823 cpp_define_formatted.
13824 (builtin_define_with_value_n): Removed.
13825 * c-incpath.h: Renamed to ...
13826 * incpath.h: ... this.
13827 * c-incpath.c: Renamed to ...
13828 * incpath.c: ... this. Updated includes.
13829 * fix-header.c: Updated includes.
13830 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
13831 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
13832 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
13833
13834 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
13835
13836 * tree.h: Update the table of flags used on tree nodes.
13837 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
13838 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
13839 (FORCED_LABEL): Add access check.
13840 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
13841 (ASM_INPUT_P): Likewise.
13842 (ASM_VOLATILE_P): Likewise.
13843 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
13844 (OMP_SECTION_LAST): Access private_flag directly.
13845 (OMP_RETURN_NOWAIT): Likewise.
13846 (OMP_PARALLEL_COMBINED): Likewise.
13847 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
13848 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
13849 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
13850 deprecated_flag directly.
13851
13852 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
13853
13854 * final.c (frame_pointer_needed): Removed.
13855 * flags.h (frame_pointer_needed): Likewise.
13856
13857 * function.h (rtl_data): Add frame_pointer_needed.
13858 (frame_pointer_needed): New.
13859
13860 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
13861
13862 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
13863
13864 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
13865
13866 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
13867 SRC is a REG.
13868
13869 2008-05-25 Alan Modra <amodra@bigpond.net.au>
13870
13871 * c-common.c (strip_array_types): Move function to..
13872 * tree.c: ..here.
13873 (get_inner_array_type): Delete.
13874 * c-common.h (strip_array_types): Move declaration to..
13875 * tree.h: ..here.
13876 (get_inner_array_type): Delete.
13877 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
13878 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
13879 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
13880 * config/pa/pa.c (emit_move_sequence): Likewise.
13881
13882 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
13883
13884 * config/i386/i386.md (*sse_prologue_save_insn): Set length
13885 attribute to 34.
13886
13887 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
13888
13889 * function.c: Include target hook for nonlocal_goto frame value.
13890
13891 2008-05-24 Richard Guenther <rguenther@suse.de>
13892
13893 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
13894 variable can be only accessed through a pointer or a union.
13895
13896 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13897
13898 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
13899 * doc/extend.texi: Likewise.
13900
13901 2008-05-23 DJ Delorie <dj@redhat.com>
13902
13903 * config/m32c/jump.md (untyped_call): Add.
13904
13905 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
13906 for A24 to PSImode.
13907 (m32c_address_cost): Detail costs for indirect offsets.
13908
13909 2008-05-23 Rafael Espíndola <espindola@google.com>
13910
13911 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
13912 if a node is a SUBREG.
13913 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
13914 is a SUBREG.
13915
13916 2008-05-23 Paul Brook <paul@codesourcery.com>
13917 Carlos O'Donell <carlos@codesourcery.com>
13918
13919 * doc/extend.texi: Clarify use of __attribute__((naked)).
13920 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
13921 * target.h (gcc_target): Add allocate_stack_slots_for_args.
13922 * function.c (use_register_for_decl): Use
13923 targetm.calls.allocate_stack_slots_for_args.
13924 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
13925 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
13926 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
13927
13928 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
13929
13930 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
13931
13932 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
13933
13934 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
13935 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
13936 is only rounded once.
13937
13938 2008-05-23 Richard Guenther <rguenther@suse.de>
13939
13940 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
13941
13942 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
13943 Jakub Jelinek <jakub@redhat.com>
13944
13945 PR target/36079
13946 * configure.ac: Handle --enable-cld.
13947 * configure: Regenerated.
13948 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
13949 * config/i386/i386.h (struct machine_function): Add needs_cld field.
13950 (ix86_current_function_needs_cld): New define.
13951 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
13952 (cld): New isns pattern.
13953 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
13954 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
13955 * config/i386/i386.opt (mcld): New option.
13956 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
13957 TARGET_CLD and ix86_current_function_needs_cld.
13958 (override_options): Use -mcld by default for 32-bit code if
13959 USE_IX86_CLD.
13960
13961 * doc/install.texi (Options specification): Document --enable-cld.
13962 * doc/invoke.texi (Machine Dependent Options)
13963 [i386 and x86-64 Options]: Add -mcld option.
13964 (Intel 386 and AMD x86-64 Options): Document -mcld option.
13965
13966 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
13967 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
13968 (return_in_memory_64): Likewise.
13969 (return_in_memory_ms_64): Likewise.
13970
13971 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13972
13973 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
13974 * builtins.c (fold_builtin_fpclassify): New.
13975 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
13976 * builtins.def (BUILT_IN_FPCLASSIFY): New.
13977 * c-common.c (handle_type_generic_attribute): Adjust to accept
13978 fixed arguments before an elipsis.
13979 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
13980 * doc/extend.texi: Document __builtin_fpclassify.
13981
13982 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
13983
13984 * omp-low.c (gate_expand_omp_ssa): Remove.
13985 (pass_expand_omp_ssa): Remove.
13986 (gate_expand_omp): Do not check for flag_openmp_ssa.
13987 * common.opt (-fopenmp-ssa): Remove.
13988 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
13989
13990 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
13991
13992 * config/sh/sh.opt (mfixed-range): New option.
13993 * config/sh/sh-protos.h (sh_fix_range): Declare.
13994 * config/sh/sh.c (sh_fix_range): New function.
13995 * config/sh/sh.h (sh_fixed_range_str): Declare.
13996 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
13997 is not empty.
13998 * doc/invoke.texi (SH Options): Document -mfixed-range.
13999
14000 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
14001
14002 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
14003 it before the redeclaration.
14004
14005 2008-05-22 Anatoly Sokolov <aesok@post.ru>
14006
14007 * config/avr/avr.c (get_sequence_length): Add new function.
14008 (expand_prologue, expand_epilogue): Remove duplicate code.
14009
14010 2008-05-22 Rafael Espíndola <espindola@google.com>
14011
14012 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
14013 sharing.
14014
14015 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
14016
14017 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
14018 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
14019
14020 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
14021 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
14022 (vect_update_misalignment_for_peel): Likewise.
14023 (vector_alignment_reachable_p): Likewise.
14024 * tree-vect-transform.c (vectorizable_load): Likewise.
14025 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
14026 (get_vectype_for_scalar_type): Pass mode of scalar_type
14027 to UNITS_PER_SIMD_WORD.
14028
14029 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
14030 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
14031 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
14032 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
14033 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
14034
14035 2008-05-22 Ira Rosen <irar@il.ibm.com>
14036
14037 PR tree-optimization/36293
14038 * tree-vect-transform.c (vect_transform_strided_load): Don't check
14039 if the first load must be skipped because of a gap.
14040
14041 2008-05-22 Richard Guenther <rguenther@suse.de>
14042
14043 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
14044 more cases of offset disambiguation that is possible if
14045 strict-aliasing rules apply.
14046 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
14047 for basic offset and type-based disambiguation.
14048
14049 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
14050
14051 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
14052 ix86_expand_vector_set on V16QImode for SSE4.1.
14053
14054 2008-05-21 Tom Tromey <tromey@redhat.com>
14055
14056 * c.opt (Wimport): Mark as undocumented.
14057 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
14058 -Wno-import.
14059 (Warning Options): Likewise.
14060 * doc/cppopts.texi: Don't mention -Wimport.
14061
14062 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
14063
14064 PR tree-optimization/36287
14065 PR tree-optimization/36286
14066 * lambda-code.c (build_access_matrix): Do not use the loop->num
14067 for computing the number of induction variables: use the loop depth
14068 instead.
14069
14070 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
14071
14072 PR/36280
14073 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
14074 option -f(no-)leading-underscore.
14075
14076 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
14077
14078 * config/i386/i386.c (ix86_expand_vector_init_general): Use
14079 GET_MODE_NUNITS (mode).
14080
14081 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
14082
14083 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
14084 (-mmulhw): Add 464 to description.
14085 (-mdlmzb): Likewise.
14086 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
14087 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
14088 464fp entries.
14089 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
14090 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
14091 * config/rs6000/rs6000.md: Update comments for 464.
14092
14093 2008-05-21 Janis Johnson <janis187@us.ibm.com>
14094
14095 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
14096
14097 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
14098
14099 * config/i386/sse.md (vec_extractv4sf): Removed.
14100 (vec_extractv2df): Likewise.
14101 (vec_extractv2di): Likewise.
14102 (vec_extractv4si): Likewise.
14103 (vec_extractv8hi): Likewise.
14104 (vec_extractv16qi): Likewise.
14105 (vec_extract<mode>): New.
14106
14107 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
14108
14109 * config/i386/sse.md (vec_setv4sf): Removed.
14110 (vec_setv2df): Likewise.
14111 (vec_setv2di): Likewise.
14112 (vec_setv4si): Likewise.
14113 (vec_setv8hi): Likewise.
14114 (vec_setv16qi): Likewise.
14115 (vec_set<mode>): New.
14116
14117 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
14118
14119 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
14120 goto for vec_concat and vec_interleave.
14121
14122 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
14123
14124 * config/i386/sse.md (vec_initv4sf): Removed.
14125 (vec_initv2df): Likewise.
14126 (vec_initv2di): Likewise.
14127 (vec_initv4si): Likewise.
14128 (vec_initv8hi): Likewise.
14129 (vec_initv16qi): Likewise.
14130 (vec_init<mode>): New.
14131
14132 2008-05-21 Joseph Myers <joseph@codesourcery.com>
14133
14134 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
14135
14136 2008-05-21 Tom Tromey <tromey@redhat.com>
14137
14138 * ggc-zone.c (lookup_page_table_if_allocated): New function.
14139 (zone_find_object_offset): Likewise.
14140 (gt_ggc_m_S): Likewise.
14141 (highest_bit): Likewise.
14142 * ggc-page.c (gt_ggc_m_S): New function.
14143 * stringpool.c (string_stack): Remove.
14144 (init_stringpool): Update.
14145 (ggc_alloc_string): Use ggc_alloc.
14146 (maybe_delete_ident): New function.
14147 (ggc_purge_stringpool): Likewise.
14148 (gt_ggc_m_S): Remove.
14149 * ggc-common.c (ggc_protect_identifiers): New global.
14150 (ggc_mark_roots): Call ggc_purge_stringpool. Use
14151 ggc_protect_identifiers.
14152 * ggc.h (ggc_protect_identifiers): Declare.
14153 (gt_ggc_m_S): Update.
14154 (ggc_purge_stringpool): Declare.
14155 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
14156 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
14157 special case.
14158 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
14159
14160 2008-05-21 David S. Miller <davem@davemloft.net>
14161
14162 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
14163 tmake_file.
14164
14165 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
14166
14167 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
14168 once finished.
14169
14170 2008-05-20 David Daney <ddaney@avtrex.com>
14171
14172 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
14173 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
14174 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
14175 UNSPEC_UPDATE_GOT_VERSION): Renumber.
14176 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
14177 (atomic_hiqi_op): New define_code_iterator.
14178 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
14179 mips_expand_compare_and_swap_12.
14180 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
14181 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
14182 (sync_<optab><mode>, sync_old_<optab><mode>,
14183 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
14184 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
14185 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
14186 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
14187 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
14188 (test_and_set_12): New insn.
14189 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
14190 sync_new_<optab><mode>, sync_old_nand<mode>,
14191 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
14192 clobber to operand 0 for SI and DI mode insns.
14193 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
14194 mips_gen_fn_4): New typedefs.
14195 (mips_gen_fn_ptrs): Define new union type.
14196 (mips_expand_compare_and_swap_12): Remove declaration.
14197 (mips_expand_atomic_qihi): Declare function.
14198 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
14199 (mips_expand_atomic_qihi): ... this. Use new generator function
14200 parameter.
14201 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
14202 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
14203 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
14204 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
14205 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
14206 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
14207 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
14208 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
14209 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
14210 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
14211 New macros.
14212
14213 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
14214
14215 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
14216 the missing break.
14217
14218 2008-05-20 Anatoly Sokolov <aesok@post.ru>
14219
14220 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
14221 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
14222 (avr_attribute_table): Add 'OS_main' function attribute.
14223 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
14224 functions with 'OS_main' attribute.
14225
14226 2008-05-20 Richard Guenther <rguenther@suse.de>
14227
14228 PR tree-optimization/35204
14229 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
14230 helper, split out from ...
14231 (DFS): ... here. Make the DFS walk non-recursive.
14232
14233 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
14234 Jan Sjodin <jan.sjodin@amd.com>
14235
14236 PR tree-optimization/36181
14237 * tree-parloops.c (loop_has_vector_phi_nodes): New.
14238 (parallelize_loops): Don't parallelize when the loop has vector
14239 phi nodes.
14240
14241 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
14242 Sebastian Pop <sebastian.pop@amd.com>
14243
14244 * tree-loop-linear.c (gather_interchange_stats): Look in the access
14245 matrix, and never look at the tree representation of the memory
14246 accesses.
14247 (linear_transform_loops): Computes parameters and access matrices.
14248 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
14249 when fails.
14250 (access_matrix_get_index_for_parameter): New.
14251 * tree-data-ref.h (struct access_matrix): New.
14252 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
14253 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
14254 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
14255 am_vector_index_for_loop): New.
14256 (struct data_reference): Add field access_matrix.
14257 (DR_ACCESS_MATRIX): New.
14258 (compute_data_dependences_for_loop): Update declaration.
14259 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
14260 * lambda.h (lambda_vector_vec_p): Declared.
14261 * lambda-code.c: Depend on pointer-set.h.
14262 (lambda_collect_parameters_from_af, lambda_collect_parameters,
14263 av_for_af_base, av_for_af, build_access_matrix,
14264 lambda_compute_access_matrices): New.
14265 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
14266
14267 2008-05-20 Joseph Myers <joseph@codesourcery.com>
14268
14269 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
14270 $SOURCEDIR/include.
14271
14272 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
14273 Sebastian Pop <sebastian.pop@amd.com>
14274
14275 PR tree-optimization/36206
14276 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
14277 FOLD_CONVERSIONS.
14278 (instantiate_scev_1): Rename flags to fold_conversions.
14279 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
14280 outeside instantiation_loop.
14281 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
14282 (evolution_function_is_affine_or_constant_p): Removed.
14283 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
14284 instantiate_scev.
14285 (analyze_siv_subscript): Pass in the loop nest number.
14286 Call evolution_function_is_affine_in_loop instead of
14287 evolution_function_is_affine_p.
14288 (analyze_overlapping_iterations): Pass in the loop nest number.
14289
14290 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
14291 Sebastian Pop <sebastian.pop@amd.com>
14292
14293 PR tree-optimization/36206
14294 * tree-chrec.h (chrec_fold_op): New.
14295 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
14296 and other trees.
14297
14298 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
14299
14300 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
14301 (DIRS_EQ): New.
14302 (remove_duplicates): Do not set inode on non-inode systems.
14303 Use DIRS_EQ.
14304
14305 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
14306
14307 * config.gcc (tm_file): Update comments about relative pathnames.
14308
14309 2008-05-20 Richard Guenther <rguenther@suse.de>
14310
14311 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
14312 * tree-ssa-sccvn.c (process_scc): Likewise.
14313 * tree-ssa-sink.c (execute_sink_code): Likewise.
14314 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
14315 * tree-vrp.c (process_assert_insertions): Likewise.
14316 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
14317 (perform_tree_ssa_dce): Likewise.
14318 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
14319 (dump_dominator_optimization_stats): Likewise.
14320 * tree-vectorizer.c (vectorize_loops): Likewise.
14321
14322 2008-05-20 Richard Guenther <rguenther@suse.de>
14323
14324 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
14325
14326 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
14327
14328 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
14329 (ix86_i386elf_return_in_memory): Likewise.
14330 (ix86_i386interix_return_in_memory): Likewise.
14331 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
14332 (SUBTARGET_RETURN_IN_MEMORY): New.
14333 * config/i386/i386elf.h: Likewise.
14334 * config/i386/ptx4-i.h: Likewise.
14335 * config/i386/sol2-10.h: Likewise.
14336 * config/i386/sysv4.h: Likewise.
14337 * config/i386/vx-common.h: Likewise.
14338 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
14339 * config/i386/i386.c (ix86_return_in_memory): Made static and
14340 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
14341 (ix86_i386elf_return_in_memory): Removed.
14342 (ix86_i386interix_return_in_memory): Removed.
14343 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
14344 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
14345
14346 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
14347
14348 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
14349
14350 2008-05-19 Xinliang David Li <davidxl@google.com>
14351
14352 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
14353 * opts.c: Ditto.
14354 * common.opt: Ditto.
14355 * doc/invoke.texi: Ditto.
14356
14357 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
14358
14359 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
14360 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
14361
14362 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
14363
14364 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
14365 sizes of operand array from 8/4 to 4/2.
14366 (ix86_expand_vector_init_general): Change size of operand array
14367 from 32 to 16. Remove op0, op1 and half_mode.
14368
14369 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
14370
14371 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
14372 (ix86_expand_vector_init_interleave): Likewise.
14373 (ix86_expand_vector_init_general): Use them. Assert
14374 word_mode == SImode when n_words == 4.
14375
14376 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
14377
14378 * config/i386/i386.c (ix86_secondary_reload): New static function.
14379 (TARGET_SECONDARY_RELOAD): New define.
14380 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
14381 * config/i386/i386.md (reload_outqi): Remove.
14382
14383 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14384
14385 PR middle-end/35509
14386 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
14387 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
14388 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
14389 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
14390 (fold_builtin_1): Likewise.
14391 * builtins.def (BUILT_IN_ISINF_SIGN): New.
14392 c-common.c (check_builtin_function_arguments): Handle
14393 BUILT_IN_ISINF_SIGN.
14394 * doc/extend.texi: Document __builtin_isinf_sign.
14395 * fold-const.c (operand_equal_p): Handle COND_EXPR.
14396
14397 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
14398
14399 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
14400 EH cleanup at the end of the pass, search for those that have been
14401 turned into forwarder blocks and do the cleanup on their successor.
14402
14403 2008-05-18 Richard Guenther <rguenther@suse.de>
14404
14405 * tree-cfg.c (verify_gimple_expr): Allow conversions from
14406 pointers to sizetype and vice versa.
14407
14408 2008-05-18 Xinliang David Li <davidxl@google.com>
14409
14410 * gcc/tree-ssa-dce.c: Coding style fix.
14411 (check_pow): Documentation comment.
14412 (check_log): Documenation comment. Coding style fix.
14413 (is_unnecessary_except_errno_call): Ditto.
14414 (gen_conditions_for_pow): Ditto.
14415 (gen_conditions_for_log): Ditto.
14416 (gen_shrink_wrap_conditions): Ditto.
14417 (shrink_wrap_one_built_in_calls): Ditto.
14418 * gcc/doc/invoke.texi: Better documentation string.
14419 * ChangeLog: Fix wrong change log entries from
14420 May 17 checkin on function call DCE.
14421
14422 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
14423
14424 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
14425
14426 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
14427
14428 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
14429 * df-problems.c (simulation routines): Fixed block comment to
14430 properly say how to add forwards scanning functions.
14431
14432 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
14433
14434 * tree-inline.c (setup_one_parameter): Remove dead code.
14435
14436 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
14437
14438 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
14439 a BIT_AND_EXPR only for an INTEGER_TYPE.
14440
14441 2008-05-17 Xinliang David Li <davidxl@google.com>
14442
14443 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
14444 (check_pow, check_log, is_unnecessary_except_errno_call): New
14445 functions to check for eliminating math functions that are pure
14446 except for setting errno.
14447 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
14448 general condition expressions for shrink-wrapping pow/log calls.
14449 (gen_shrink_wrap_conditions): Ditto.
14450 (shrink_wrap_one_built_in_call): Ditto.
14451 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
14452 (mark_operand_necessary): If debugging, output if OP is necessary.
14453 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
14454 unnecessary.
14455 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
14456 opt level >= 2.
14457 * gcc/common.opt: New user flag -ftree-builtin-dce.
14458 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
14459
14460 2008-05-16 David S. Miller <davem@davemloft.net>
14461
14462 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
14463 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
14464
14465 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
14466
14467 PR target/36246
14468 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
14469
14470 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
14471
14472 * ifcvt.c (dead_or_predicable): Rename
14473 df_simulate_one_insn_backwards to df_simulate_one_insn.
14474 * recog.c (peephole2_optimize): Ditto.
14475 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
14476 Ditto.
14477 * df.h: Rename df_simulate_one_insn_backwards to
14478 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
14479 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
14480 scanning of defs and uses.
14481 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
14482 (df_simulate_one_insn_forwards): Removed.
14483
14484 2008-05-16 Doug Kwan <dougkwan@google.com>
14485
14486 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
14487 QNaN & SNaN.
14488 (real_from_string): Handle NaNs and Inf as approriate.
14489
14490 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
14491
14492 * doc/gty.texi (Source Files Containing Type Information): Note
14493 that headers should appear first in the gtfiles list.
14494
14495 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
14496
14497 * tree.def (COND_EXEC): Properly documented this code.
14498
14499 2008-05-16 Diego Novillo <dnovillo@google.com>
14500
14501 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
14502 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
14503 the new field.
14504
14505 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
14506
14507 * tree-ssa-dse (max_stmt_uid): Removed.
14508 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
14509 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
14510 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
14511 * function.h (cfun.last_stmt_uid): New field.
14512 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
14513 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
14514 New functions.
14515 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
14516 (create_stmt_ann): Initialize the ann->uid field.
14517 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
14518 with new calls.
14519 * tree-flow.h (renumber_gimple_stmt_uids): New function.
14520
14521 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
14522
14523 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
14524 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
14525 (init_empty_tree_cfg): Call it.
14526
14527 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
14528
14529 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
14530 Update all users.
14531
14532 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
14533
14534 * doc/invoke.text (-fdump-tree-*-verbose): New option.
14535 * tree-dump.c (dump_options): New verbose option.
14536 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
14537 Add verbose dump.
14538 * tree-pass.h (TDF_VERBOSE): New dump flag.
14539 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
14540 (tree-flow.h): Added include.
14541 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
14542
14543 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
14544
14545 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
14546
14547 From Jie Zhang <jie.zhang@analog.com>
14548 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
14549 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
14550 mcpu=bf561-none and mcpu=bf561-0.2.
14551 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
14552 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
14553 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
14554 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
14555 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
14556 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
14557 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
14558 option.
14559 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
14560 (cputype_selected): Remove.
14561 (bfin_handle_option): Don't use cputype_selected.
14562 (override_options): When no mcpu option, enable all workarounds.
14563 Don't use bfin_workarounds.
14564 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
14565 processor type.
14566 (DEFAULT_CPU_TYPE): Don't define.
14567
14568 2008-05-16 Richard Guenther <rguenther@suse.de>
14569
14570 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
14571 on deletion of the last stmt.
14572
14573 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
14574
14575 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
14576 V8HImode for SSE2 and V16QImode for SSE4.1.
14577
14578 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
14579
14580 * cgraph.h (compute_inline_parameters): Made public.
14581 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
14582 variable_generate_summary, function_write_summary,
14583 variable_write_summary, variable_read_summary. Added generate_summary,
14584 write_summary, read_summary.
14585 * cgraphunit.c (cgraph_process_new_functions): Changed call from
14586 pass_ipa_inline.function_generate_summary, to
14587 compute_inline_parameters.
14588 * ipa-inline.c (compute_inline_parameters): Made public and added
14589 node parameter.
14590 (compute_inline_parameters_for_current): New function.
14591 (pass_inline_param): Now calls compute_inline_parameters_for_current.
14592 (inline_generate_summary): Removed parameter and made to loop over
14593 all cgraph nodes.
14594 (pass_ipa_inline): Updated for new IPA_PASS structure.
14595 * passes.c (execute_ipa_summary_passes): Now is called once per
14596 pass rather than once per node*pass.
14597
14598 2008-05-15 Anatoly Sokolov <aesok@post.ru>
14599
14600 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
14601 avr_have_mul_p, avr_asm_only_p): Remove variables.
14602 (avr_override_options): Remove initialization of removed variables.
14603 (avr_file_start): Convert removed variables to fields of
14604 'struct base_arch_s *avr_current_arch'.
14605 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
14606 (AVR_HAVE_MUL): (Ditto.).
14607 (AVR_HAVE_MOVW): (Ditto.).
14608 (AVR_HAVE_LPMX): (Ditto.).
14609 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
14610 avr_asm_only_p): Remove declaration.
14611
14612 2008-05-15 Diego Novillo <dnovillo@google.com>
14613
14614 * config/arm/arm.c (arm_return_in_memory): Fix return type.
14615 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
14616
14617 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
14618
14619 PR middle-end/36194
14620 * combine.c (check_conversion): Rename back to check_promoted_subreg.
14621 Don't call record_truncated_value from here.
14622 (record_truncated_value): Turn it into a for_each_rtx callback.
14623 (record_truncated_values): New function.
14624 (combine_instructions): Call note_uses with record_truncated_values.
14625 Change name of check_conversion to check_promoted_subreg.
14626
14627 2008-05-15 Janis Johnson <janis187@us.ibm.com>
14628
14629 * doc/sourcebuild.texi: Document support for torture tests.
14630
14631 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
14632
14633 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
14634 to alternative 4 of operand 2.
14635
14636 2008-05-15 Richard Guenther <rguenther@suse.de>
14637
14638 * tree-pass.h (current_pass): Declare.
14639 (get_pass_for_id): Likewise.
14640 * passes.c (passes_by_id, passes_by_id_size): New globals.
14641 (set_pass_for_id): New function.
14642 (get_pass_for_id): Likewise.
14643 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
14644 (execute_function_todo): Flush per function statistics.
14645 * toplev.c (compile_file): Init statistics.
14646 (general_init): Do early statistics initialization.
14647 (finalize): Finish statistics.
14648 * statistics.h (statistics_early_init): Declare.
14649 (statistics_init): Likewise.
14650 (statistics_fini): Likewise.
14651 (statistics_fini_pass): Likewise.
14652 (statistics_counter_event): Likewise.
14653 (statistics_histogram_event): Likewise.
14654 * statistics.c: New file.
14655 * Makefile.in (OBJS-common): Add statistics.o.
14656 (statistics.o): Add dependencies.
14657 * doc/invoke.texi (-fdump-statistics): Document.
14658
14659 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
14660 (insert): Likewise.
14661 (execute_pre): Use statistics_counter_event.
14662 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
14663 (substitute_and_fold): Increment it. Use statistics_counter_event.
14664
14665 2008-05-15 Diego Novillo <dnovillo@google.com>
14666
14667 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
14668
14669 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
14670 * tree-ssa-alias.c (new_type_alias): Remove references to
14671 sub-variables from comment.
14672 * tree-ssa-operands.c (swap_tree_operands): Likewise.
14673
14674 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
14675
14676 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
14677 attribute to 1 only for insertps alternative.
14678
14679 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
14680
14681 * config/bfin/bfin.md (loadbytes): New pattern.
14682 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
14683 (bfin_init_builtins): Initialize it.
14684 (bdesc_1arg): Add it.
14685
14686 2008-05-15 Sa Liu <saliu@de.ibm.com>
14687
14688 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
14689 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
14690 * testsuite/lib/target-supports.exp: Add
14691 check_effective_target_fortran_integer_16.
14692
14693 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
14694
14695 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
14696 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
14697 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
14698 (TARGET_RETURN_IN_MEMORY): Define.
14699
14700 2008-05-15 Richard Guenther <rguenther@suse.de>
14701
14702 PR middle-end/36244
14703 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
14704 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
14705 represent unmodifiable vars.
14706
14707 2008-05-15 Richard Guenther <rguenther@suse.de>
14708
14709 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
14710 INDIRECT_REF and TARGET_MEM_REF.
14711 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
14712 TARGET_MEM_REF.
14713
14714 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
14715 H.J. Lu <hongjiu.lu@intel.com>
14716
14717 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
14718 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
14719 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
14720 insn alternatives. Add missing alternatives.
14721 (*vec_concatv2di_rex64_sse4_1): Likewise.
14722 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
14723 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
14724 Require TARGET_SSE.
14725
14726 2008-05-15 Richard Guenther <rguenther@suse.de>
14727
14728 PR tree-optimization/36009
14729 PR tree-optimization/36204
14730 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
14731 (determine_invariantness_stmt): Record the loop a store is
14732 always executed in.
14733 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
14734 dependency.
14735
14736 2008-05-15 Richard Guenther <rguenther@suse.de>
14737
14738 PR tree-optimization/34330
14739 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
14740 through the pointer will alias the SMT.
14741
14742 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
14743
14744 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
14745
14746 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
14747
14748 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
14749
14750 2008-05-14 Michael Meissner <michael.meissner@amd.com>
14751 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
14752
14753 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
14754 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
14755 (vashl_optab): New optab for vector/vector shifts.
14756 (vashr_optab): Ditto.
14757 (vlshr_optab): Ditto.
14758 (vrotl_optab): Ditto.
14759 (vrotr_optab): Ditto.
14760 (optab_subtype): New enum for optab_for_tree_code call.
14761 (optab_for_tree_code): Add enum optab_subtype argument.
14762
14763 * optabs.c (optab_for_tree_code): Take an additional argument to
14764 distinguish between a vector shift by a scalar and vector shift by
14765 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
14766 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
14767 vector shift by a vector.
14768 (expand_widen_pattern_expr): Pass additional argument to
14769 optab_for_tree_code.
14770
14771 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
14772 vrotl_optab, vrotr_optab.
14773
14774 * expr.c (expand_expr_real_1): Update calls to
14775 optab_for_tree_code to distinguish between vector shifted by a
14776 scalar and vector shifted by a vector.
14777 * tree-vectorizer.c (supportable_widening_operation): Ditto.
14778 (supportable_narrowing_operation): Ditto.
14779 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
14780 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
14781 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
14782 (vect_create_epilog_for_reduction): Ditto.
14783 (vectorizable_reduction): Ditto.
14784 (vectorizable_operation): Ditto.
14785 (vect_strided_store_supported): Ditto.
14786 (vect_strided_load_supported): Ditto.
14787 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
14788 * expmed.c (expand_shift): Ditto.
14789
14790 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
14791 scalar type.
14792 (ashr@var{m}3): Ditto.
14793 (vashl@var{m}3): Document new vector/vector shift standard name.
14794 (vashr@var{m}3): Ditto.
14795 (vlshr@var{m}3): Ditto.
14796 (vrotl@var{m}3): Ditto.
14797 (vrotr@var{m}3): Ditto.
14798
14799 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
14800 (PPERM_INVERT): Ditto.
14801 (PPERM_REVERSE): Ditto.
14802 (PPERM_REV_INV): Ditto.
14803 (PPERM_ZERO): Ditto.
14804 (PPERM_ONES): Ditto.
14805 (PPERM_SIGN): Ditto.
14806 (PPERM_INV_SIGN): Ditto.
14807 (PPERM_SRC1): Ditto.
14808 (PPERM_SRC2): Ditto.
14809
14810 * config/i386/sse.md (mulv2di3): Add SSE5 support.
14811 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
14812 allows a memory operand to be the value being added, and split it
14813 to improve vectorization.
14814 (sse5_pmacsdqh_mem): Ditto.
14815 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
14816 (sse5_mulv2div2di3_high): Ditto.
14817 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
14818 (vec_pack_trunc_v4si): Ditto.
14819 (vec_pack_trunc_v2di): Ditto.
14820 (sse5_pcmov_<mode>): Remove code that tried to use use
14821 andps/andnps instead of pcmov.
14822 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
14823 pmacsdqh instructions.
14824 (vec_widen_smult_lo_v4si): Ditto.
14825
14826 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
14827 (PPERM_INVERT): Ditto.
14828 (PPERM_REVERSE): Ditto.
14829 (PPERM_REV_INV): Ditto.
14830 (PPERM_ZERO): Ditto.
14831 (PPERM_ONES): Ditto.
14832 (PPERM_SIGN): Ditto.
14833 (PPERM_INV_SIGN): Ditto.
14834 (PPERM_SRC1): Ditto.
14835 (PPERM_SRC2): Ditto.
14836 (ix86_expand_sse_movcc): Move the SSE5 test after the if
14837 true/false tests.
14838 (ix86_expand_int_vcond): If SSE5 generate all possible integer
14839 comparisons.
14840 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
14841 says ignore whether the last reference is a memory operand.
14842
14843 2008-05-14 Michael Meissner <michael.meissner@amd.com>
14844 Paolo Bonzini <bonzini at gnu dot org>
14845
14846 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
14847 shift patterns.
14848
14849 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
14850 (vlshr<mode>3): Rename from vlshr<mode>3.
14851 (vashr<mode>3): Rename from vashr<mode>3.
14852 (mulv4sf3): Change the names of vector shift patterns.
14853 (mulv4si3): Ditto.
14854 (negv4sf2): Ditt.
14855
14856 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
14857 shift insns.
14858
14859 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
14860 (SI_SHLHI): Ditto.
14861 (SI_SHL): Ditto.
14862 (SI_SHLI): Ditto.
14863 (SI_ROTH): Ditto.
14864 (SI_ROTHI): Ditto.
14865 (SI_ROT): Ditto.
14866 (SI_ROTI): Ditto.
14867 (SPU_RL_0): Ditto.
14868 (SPU_RL_1): Ditto.
14869 (SPU_RL_2): Ditto.
14870 (SPU_RL_3): Ditto.
14871 (SPU_RL_4): Ditto.
14872 (SPU_RL_5): Ditto.
14873 (SPU_RL_6): Ditto.
14874 (SPU_RL_7): Ditto.
14875 (SPU_SL_0): Ditto.
14876 (SPU_SL_1): Ditto.
14877 (SPU_SL_2): Ditto.
14878 (SPU_SL_3): Ditto.
14879 (SPU_SL_4): Ditto.
14880 (SPU_SL_5): Ditto.
14881 (SPU_SL_6): Ditto.
14882 (SPU_SL_7): Ditto.
14883
14884 * config/spu/spu.md (v): New iterator macro to add v for vector types.
14885 (floatunssidf2_internal): Change vector/vector shift names.
14886 (floatunsdidf2_internal): Ditto.
14887 (mulv8hi3): Ditto.
14888 (ashrdi3): Ditto.
14889 (ashrti3): Ditto.
14890 (cgt_df): Ditto.
14891 (cgt_v2df): Ditto.
14892 (dftsv): Ditto.
14893 (vashl<mode>3): Rename from ashl<mode>3.
14894 (vashr<mode>3): Rename from ashr<mode>3.
14895 (vlshr<mode>3): Rename from lshr<mode>3.
14896 (vrotl<mode>3): Rename from rotl<mode>3.
14897
14898 2008-05-14 Michael Meissner <michael.meissner@amd.com>
14899
14900 PR target/36224
14901 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
14902 multiply gives the wrong value when doing widening multiplies.
14903 (vec_widen_smult_lo_v4si): Ditto.
14904
14905 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
14906
14907 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
14908 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
14909 emit_library_call_value.
14910 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
14911 * tree.h (ECF_LIBCALL_BLOCK): Removed.
14912 * calls.c (initialize_argument_information, precompute_arguments,
14913 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
14914 (precompute_arguments): Removed flags parameter.
14915 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
14916
14917 2008-05-14 Richard Guenther <rguenther@suse.de>
14918
14919 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
14920 Make sure to register the store if the use is a PHI_NODE.
14921
14922 2008-05-14 Olivier Hainque <hainque@adacore.com>
14923
14924 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
14925 memory if the component is to be referenced in BLKmode according
14926 to get_inner_reference.
14927
14928 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
14929
14930 * calls.c (emit_library_call_value_1): Restore code clearing
14931 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
14932
14933 2008-05-14 Olivier Hainque <hainque@adacore.com>
14934 Nicolas Roche <roche@adacore.com>
14935
14936 * configure.ac: Add support for a "gcc_subdir" variable in
14937 config-lang.in, to denote a subdirectory where the language/GCC
14938 integration files are to be found.
14939 * configure: Regenerate.
14940
14941 2008-05-14 Ira Rosen <irar@il.ibm.com>
14942
14943 PR tree-optimization/36098
14944 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
14945 value for the first load in the group in case of a gap.
14946 (vect_build_slp_tree): Check that there are no gaps in loads.
14947
14948 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
14949
14950 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
14951 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
14952 expand_copysign_bit, ): Change call to emit_no_conflict_block to
14953 emit_insn and remove unneeded code to construct extra args.
14954 (emit_no_conflict_block): Removed.
14955 * optabls.h: (emit_no_conflict_block): Removed.
14956 * cse.c (cse_extended_basic_block): Remove search for
14957 REG_NO_CONFLICT note.
14958 * global.c: Removed incorrect comment added in revision 117.
14959 * expr.c (convert_move): Change call to emit_no_conflict_block to
14960 emit_insn.
14961 * recog.c: Change comments so that they do not mention
14962 REG_NO_CONFLICT.
14963 * local_alloc.c (combine_regs): Removed last parameter.
14964 (no_conflict_p): Removed.
14965 (block_alloc): Removed note, no_conflict_combined_regno and set
14966 local vars. Removed all code to process REG_NO_CONFLICT blocks.
14967 (combine_regs): Removed already_dead and code to look for
14968 REG_NO_CONFLICT notes.
14969 * lower_subreg (remove_retval_note): Removed code to look for
14970 REG_NO_CONFLICT block.
14971 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
14972 (resolve_clobber): Remove code to process libcalls that have
14973 REG_NO_CONFLICT notes.
14974 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
14975 case.
14976 * combine.c (can_combine_p, distribute_notes): Removed
14977 REG_NO_CONFLICT case.
14978 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
14979 to emit_insns.
14980 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
14981 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
14982 Ditto.
14983 * reg-notes.def (NO_CONFLICT): Removed.
14984
14985 2008-05-14 David S. Miller <davem@davemloft.net>
14986
14987 * config/sparc/sparc.c (sparc_profile_hook): If
14988 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
14989 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
14990 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
14991
14992 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
14993
14994 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
14995
14996 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
14997
14998 PR target/36222
14999 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
15000 and op1 expansion before vector concat to have less live pseudos.
15001
15002 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
15003
15004 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
15005 ix86_expand_vector_set if supported.
15006
15007 2008-05-13 Diego Novillo <dnovillo@google.com>
15008 Kenneth Zadeck <zadeck@naturalbridge.com>
15009
15010 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
15011
15012 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
15013 phinodes_print_statistics, init_ssanames, fini_ssanames,
15014 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
15015 release_ssa_name, release_defs, replace_ssa_name_symbol,
15016 ssanames_print_statistics): Move ...
15017 * tree-flow.h: ... here.
15018 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
15019 Use FN instead of cfun.
15020 (make_ssa_name_fn): Rename from make_ssa_name.
15021 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
15022 * tree-flow-inline.h (make_ssa_name): Move from
15023 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
15024 * omp-low.c (expand_omp_parallel):
15025 * tree-flow-inline.h (redirect_edge_var_map_result):
15026 * tree-ssa.c (init_tree_ssa): Add argument FN.
15027 Use it instead of cfun. Update all users.
15028
15029 2008-05-13 Tom Tromey <tromey@redhat.com>
15030
15031 PR preprocessor/22168:
15032 * doc/cpp.texi (Top): Update menu.
15033 (Alternatives to Wrapper #ifndef): New node.
15034 (Other Directives): Document deprecation.
15035 (Obsolete Features): Remove menu.
15036 (Assertions): Merge node into Obsolete Features.
15037 (Obsolete once-only headers): Move earlier; rename to Alternatives
15038 to Wrapper #ifndef.
15039 * doc/cppopts.texi: Update.
15040 * c.opt (Wdeprecated): Enable for C and ObjC.
15041 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
15042 (C++ Dialect Options): Move -Wno-deprecated from here to...
15043 (Warning Options): ... here.
15044
15045 2008-05-13 Richard Guenther <rguenther@suse.de>
15046
15047 PR middle-end/36227
15048 * fold-const.c (fold_sign_changed_comparison): Do not allow
15049 changes in pointer-ness.
15050
15051 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
15052
15053 PR target/24713
15054 * config/sh/sh.c (sh_expand_prologue): Don't clear
15055 RTX_FRAME_RELATED_P for push insns.
15056
15057 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
15058
15059 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
15060
15061 2008-05-12 Anatoly Sokolov <aesok@post.ru>
15062
15063 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
15064 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
15065 Use 'machine->is_leaf' instead of 'leaf_func_p'.
15066
15067 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
15068
15069 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
15070 (*vec_concatv4sf_sse): This.
15071 (*sse2_concatv2si): Renamed to ...
15072 (*vec_concatv2si_sse2): This.
15073 (*sse1_concatv2si): Renamed to ...
15074 (*vec_concatv2si_sse): This.
15075 (*vec_concatv2di_rex): Renamed to ...
15076 (*vec_concatv2di_rex64): This.
15077 (*vec_concatv2si_sse4_1): New.
15078 (*vec_concatv2di_rex64_sse4_1): Likewise.
15079
15080 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
15081
15082 PR rtl-optimization/36111
15083 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
15084 that was created for swappable operands.
15085
15086 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
15087
15088 PR ada/36001
15089 * Makefile.in: Substitute GNATMAKE and GNATBIND.
15090 * configure.ac: Add call to ACX_PROG_GNAT.
15091
15092 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
15093
15094 * optc-gen.awk: Fix comment typo.
15095
15096 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
15097
15098 * pretty-print.c (pp_integer_with_precision): Use
15099 HOST_LONG_LONG_FORMAT.
15100
15101 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
15102
15103 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
15104
15105 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
15106
15107 * config/i386/i386.c (bdesc_ptest): Removed.
15108 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
15109 (bdesc_args): Add __builtin_ia32_ptestz128,
15110 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
15111 (ix86_init_mmx_sse_builtins): Updated.
15112 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
15113 (ix86_expand_builtin): Updated.
15114
15115 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
15116
15117 * tree-cfg.c (valid_fixed_convert_types_p): New function.
15118 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
15119
15120 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
15121
15122 * value-prof.c (interesting_stringop_to_profile): Do not
15123 return early for BUILT_IN_MEMPCPY.
15124
15125 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
15126
15127 * calls.c (expand_call): Don't use callgraph to increase
15128 preferred_stack_boundary.
15129
15130 * cgraph.h (cgraph_rtl_info): Use unsigned on
15131 preferred_incoming_stack_boundary.
15132
15133 * final.c (rest_of_clean_state): Use unsigned on
15134 preferred_stack_boundary.
15135
15136 2008-05-09 Tom Tromey <tromey@redhat.com>
15137
15138 PR preprocessor/22231:
15139 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
15140 proceeding.
15141
15142 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
15143
15144 PR tree-optimization/36129
15145 * tree-ssa-ccp.c: Include value-prof.h.
15146 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
15147 built-in function was folded to a constant.
15148 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
15149
15150 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
15151 Sebastian Pop <sebastian.pop@amd.com>
15152
15153 * tree-scalar-evolution.c: Document instantiate_scev.
15154 (instantiate_parameters_1): Renamed instantiate_scev_1.
15155 Don't use the same loop for instantiation_loop and evolution_loop.
15156 (instantiate_scev): New.
15157 (instantiate_parameters): Moved...
15158 (resolve_mixers): Update call to instantiate_scev_1 to pass the
15159 same loop twice. Maintains the semantics for this function.
15160 * tree-scalar-evolution.h (instantiate_scev): Declare.
15161 (instantiate_parameters): ...here. Now static inline.
15162 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
15163 instead of resolve_mixers.
15164
15165 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
15166
15167 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
15168
15169 2008-05-09 Tomas Bily <tbily@suse.cz>
15170
15171 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
15172 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
15173 * tree-ssa-structalias.c (get_constraint_for): Likewise.
15174 * c-common.c (c_common_truthvalue_conversion): Likewise.
15175 * tree-object-size.c (compute_object_offset): Likewise.
15176 * tree-inline.c (estimate_num_insns_1): Likewise.
15177 * varasm.c (const_hash_1, compare_constant, copy_constant)
15178 (compute_reloc_for_constant, output_addressed_constants)
15179 (initializer_constant_valid_p): Likewise.
15180 * c-omp.c (check_omp_for_incr_expr): Likewise.
15181 * gimplify.c (gimplify_expr): Likewise.
15182 * c-typeck.c (c_finish_return): Likewise.
15183 * tree-vectorizer.c (supportable_widening_operation)
15184 (supportable_narrowing_operation): Likewise.
15185 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
15186 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
15187 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
15188 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
15189 (descr_info_loc): Likewise.
15190 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
15191 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
15192 (fold_unary): Likewise.
15193 * builtins.c (get_pointer_alignment): Likewise.
15194 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
15195 (instantiate_parameters_1): Likewise.
15196 * tree.c (expr_align, stabilize_reference): Likewise.
15197 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
15198 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
15199 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
15200 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
15201 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
15202 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
15203 Likewise.
15204 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
15205 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
15206 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
15207 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
15208 (forward_propagate_comparison)
15209 (tree_ssa_forward_propagate_single_use_vars): Likewise.
15210 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
15211 * emit-rtl.c (component_ref_for_mem_expr)
15212 (set_mem_attributes_minus_bitpos): Likewise.
15213 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
15214 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
15215 Likewise.
15216 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
15217 (build_function_call, pointer_diff, build_compound_expr)
15218 (c_finish_return): Likewise.
15219 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
15220 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
15221 Likewise.
15222 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
15223 * expr.c (is_aligning_offset): Likewise.
15224 * tree-ssa-alias.c (is_escape_site): Likewise.
15225 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
15226 (check_all_va_list_escapes): Likewise.
15227 * tree-ssa-loop-ivopts.c (determine_base_object)
15228 (determine_common_wider_type): Likewise.
15229 * dojump.c (do_jump): Likewise.
15230 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
15231 * tree-gimple.c (is_gimple_cast): Likewise.
15232 * fold-const.c (decode_field_reference, )
15233 (fold_sign_changed_comparison, fold_unary, fold_comparison)
15234 (fold_binary): Likewise.
15235 * tree-ssa-alias-warnings.c (find_alias_site_helper)
15236 (already_warned_in_frontend_p): Likewise.
15237 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
15238 * tree.c (really_constant_p, get_unwidened): Likewise.
15239 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
15240 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
15241 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
15242 Likewise.
15243 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
15244 CONVERT_EXPR_P.
15245 (CONVERT_EXPR_P): Define.
15246 (CASE_CONVERT): Define.
15247
15248 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
15249
15250 PR middle-end/36117
15251 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
15252 (delete_unmarked_insns): When deleting a call, call
15253 delete_unreachable_blocks.
15254 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
15255 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
15256
15257 2008-05-08 Richard Guenther <rguenther@suse.de>
15258
15259 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
15260 (-ftree-salias): Likewise.
15261 (salias-max-implicit-fields): Remove param documentation.
15262 (salias-max-array-elements): Likewise.
15263 * tree-pass.h (pass_create_structure_vars): Remove.
15264 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
15265 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
15266 * tree-ssa-alias.c (create_structure_vars): Remove.
15267 (gate_structure_vars): Likewise.
15268 (pass_create_structure_vars): Likewise.
15269 (gate_build_alias): Likewise.
15270 (pass_build_alias): Adjust to run always and dump the function.
15271 * common.opt (ftree-salias): Hide.
15272 * passes.c (init_optimization_passes): Remove
15273 pass_create_structure_vars, adjust comment.
15274 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
15275 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
15276 * opts.c (decode_options): Do not set flag_tree_salias.
15277 (common_handle_option): Add OPT_ftree_salias to the backward
15278 compatibility section.
15279
15280 2008-05-08 Richard Guenther <rguenther@suse.de>
15281
15282 * tree-flow-inline.h (var_can_have_subvars): Move ...
15283 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
15284 * tree-flow.h (var_can_have_subvars): Remove.
15285 (push_fields_onto_fieldstack): Remove.
15286 (sort_fieldstack): Likewise.
15287 (struct fieldoff): Move ...
15288 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
15289 alias_set and base_for_components fields.
15290 (sort_fieldstack): Make static.
15291 (push_fields_onto_fieldstack): Likewise. Remove code that
15292 handles anything but RECORD_TYPEs. Remove alias_set and
15293 base_for_components handling.
15294 (create_variable_info_for): Adjust.
15295
15296 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
15297
15298 * common.opt (Wframe-larger-than=): Shorten the help message
15299 to one line.
15300 * doc/invoke.texi (Wframe-larger-than=): Add more description.
15301
15302 2008-05-08 Rafael Espíndola <espindola@google.com>
15303
15304 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
15305 trap.
15306 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
15307 trap and that both operands are gimple values.
15308 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
15309 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
15310 is a fp operation.
15311
15312 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
15313
15314 * read-rtl.c (join_c_conditions): Return the first string if the
15315 two strings are equal.
15316
15317 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
15318
15319 * gensupport.h (pred_data): Add a "num_codes" field.
15320 (add_predicate_code): Declare.
15321 * gensupport.c (add_predicate_code): New function.
15322 (std_pred_table): Add an "allows_const_p" field.
15323 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
15324 Remove the (incomplete) list of such codes from the codes field.
15325 (init_predicate_table): Use add_predicate_code. Add all
15326 RTX_CONST_OBJs if allows_const_p is true.
15327 * genrecog.c (process_define_predicate): Use add_predicate_code.
15328
15329 2008-05-08 David Daney <ddaney@avtrex.com>
15330 Richard Sandiford <rsandifo@nildram.co.uk>
15331
15332 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
15333 special case of constant zero operands.
15334 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
15335 old and new values. Special case constant zero values.
15336 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
15337 fails.
15338 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
15339 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
15340
15341 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
15342
15343 PR target/36090
15344 * simplify-rtx.c (simplify_plus_minus): Create CONST of
15345 similar RTX_CONST_OBJ before CONST_INT.
15346
15347 2008-05-08 Steve Ellcey <sje@cup.hp.com>
15348
15349 * stmt.c (expand_stack_restore): Change sa mode if needed.
15350
15351 2008-05-08 Richard Guenther <rguenther@suse.de>
15352
15353 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
15354 return type to bool.
15355 (ix86_sol10_return_in_memory): Likewise.
15356 (ix86_i386elf_return_in_memory): Likewise.
15357 (ix86_i386interix_return_in_memory): Likewise.
15358 * config/i386/i386.c (ix86_return_in_memory): Likewise.
15359 (ix86_sol10_return_in_memory): Likewise.
15360 (ix86_i386elf_return_in_memory): Likewise.
15361 (ix86_i386interix_return_in_memory): Likewise.
15362
15363 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
15364
15365 PR bootstrap/36180
15366 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
15367 fndecl argument.
15368 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
15369 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
15370 declared in front.
15371
15372 2008-05-08 Richard Guenther <rguenther@suse.de>
15373
15374 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
15375 * tree-data-ref.h (struct dr_alias): Remove subvars field.
15376 (DR_SUBVARS): Remove.
15377 * tree-dfa.c (dump_subvars_for): Remove.
15378 (debug_subvars_for): Likewise.
15379 (dump_variable): Do not dump subvars.
15380 (remove_referenced_var): Do not remove subvars.
15381 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
15382 (lookup_subvars_for_var): Remove.
15383 (get_subvars_for_var): Likewise.
15384 (get_subvars_at): Likewise.
15385 (get_first_overlapping_subvar): Likewise.
15386 (overlap_subvar): Likewise.
15387 * tree-flow.h (subvar_t): Remove.
15388 (struct var_ann_d): Remove subvars field.
15389 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
15390 argument. Remove special handling of SFTs.
15391 (compute_tag_properties): Likewise.
15392 (set_initial_properties): Likewise.
15393 (compute_call_clobbered): Likewise.
15394 (count_mem_refs): Likewise.
15395 (compute_memory_partitions): Likewise.
15396 (compute_flow_insensitive_aliasing): Likewise.
15397 (setup_pointers_and_addressables): Likewise.
15398 (new_type_alias): Likewise.
15399 (struct used_part): Remove.
15400 (used_portions): Likewise.
15401 (struct used_part_map): Likewise.
15402 (used_part_map_eq): Likewise.
15403 (used_part_map_hash): Likewise.
15404 (free_used_part_map): Likewise.
15405 (up_lookup): Likewise.
15406 (up_insert): Likewise.
15407 (get_or_create_used_part_for): Likewise.
15408 (create_sft): Likewise.
15409 (create_overlap_variables_for): Likewise.
15410 (find_used_portions): Likewise.
15411 (create_structure_vars): Likewise.
15412 * tree.def (STRUCT_FIELD_TAG): Remove.
15413 * tree.h (MTAG_P): Adjust.
15414 (struct tree_memory_tag): Remove base_for_components and
15415 unpartitionable flags.
15416 (struct tree_struct_field_tag): Remove.
15417 (SFT_PARENT_VAR): Likewise.
15418 (SFT_OFFSET): Likewise.
15419 (SFT_SIZE): Likewise.
15420 (SFT_NONADDRESSABLE_P): Likewise.
15421 (SFT_ALIAS_SET): Likewise.
15422 (SFT_UNPARTITIONABLE_P): Likewise.
15423 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
15424 (union tree_node): Remove sft field.
15425 * alias.c (get_alias_set): Remove special handling of SFTs.
15426 * print-tree.c (print_node): Remove handling of SFTs.
15427 * tree-dump.c (dequeue_and_dump): Likewise.
15428 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
15429 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
15430 * tree-predcom.c (set_alias_info): Do not set subvars.
15431 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
15432 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
15433 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
15434 (add_vars_for_offset): Remove.
15435 (add_virtual_operand): Remove special handling of SFTs.
15436 (add_call_clobber_ops): Likewise.
15437 (add_call_read_ops): Likewise.
15438 (get_asm_expr_operands): Likewise.
15439 (get_modify_stmt_operands): Likewise.
15440 (get_expr_operands): Likewise.
15441 (add_to_addressable_set): Likewise.
15442 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
15443 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
15444 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
15445 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
15446 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
15447 (tree_node_structure): Likewise.
15448 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
15449 handling of SFTs.
15450 (find_what_p_points_to): Likewise.
15451
15452 2008-05-08 Sa Liu <saliu@de.ibm.com>
15453
15454 * config/spu/spu.md: Fixed subti3 pattern.
15455
15456 2008-05-08 Richard Guenther <rguenther@suse.de>
15457
15458 PR middle-end/36154
15459 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
15460 sure to create a representative for trailing arrays for PTA.
15461
15462 2008-05-08 Richard Guenther <rguenther@suse.de>
15463
15464 PR middle-end/36172
15465 * fold-const.c (operand_equal_p): Two objects which types
15466 differ in pointerness are not equal.
15467
15468 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
15469
15470 * calls.c (compute_argument_block_size): Add argument tree fndecl.
15471 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
15472 (emit_library_call_value_1): Add new variable fndecl initialized by
15473 NULL_TREE. It should be the decl type of orgfun, but this information
15474 seems not to be available here, so it uses the default calling abi.
15475 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
15476 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
15477 by TARGET_RETURN_IN_MEMORY.
15478 * config/i386/i386-interix.h: Likewise.
15479 * config/i386/i386.h: Likewise.
15480 * config/i386/i386elf.h: Likewise.
15481 * config/i386/ptx4-i.h: Likewise.
15482 * config/i386/sol2-10.h: Likewise.
15483 * config/i386/sysv4.h: Likewise.
15484 * config/i386/vx-common.h: Likewise.
15485 * config/cris/cris.h: Removed #if 0 clause.
15486 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
15487 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
15488 argument.
15489 (ix86_sol10_return_in_memory): Likewise.
15490 (ix86_i386elf_return_in_memory): New.
15491 (ix86_i386interix_return_in_memory): New.
15492 * config/mt/mt-protos.h (mt_return_in_memory): New.
15493 * config/mt/mt.c: Likewise.
15494 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
15495 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
15496 * config/bfin/bfin.h: Likewise.
15497 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
15498 argument.
15499 * config/bfin/bfin.c: Likewise.
15500 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
15501 * config/alpha/unicosmk.h: Likewise.
15502 * config/i386/cygming.h: Likewise.
15503 * config/iq2000/iq2000.h: Likewise.
15504 * config/mips/mips.h: Likewise.
15505 * config/mn10300/mn10300.h: Likewise.
15506 * config/rs6000/rs6000.h: Likewise.
15507 * config/score/score.h: Likewise.
15508 * config/spu/spu.h: Likewise.
15509 * config/v850/v850.h: Likewise.
15510 * defaults.h: Likewise.
15511 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
15512 * expr.c (emit_block_move): Adjust use of
15513 OUTGOING_REG_PARM_STACK_SPACE.
15514 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
15515 OUTGOING_REG_PARM_STACK_SPACE.
15516 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
15517
15518 2008-05-08 Jakub Jelinek <jakub@redhat.com>
15519
15520 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
15521 on OMP_RETURN for OMP_FOR.
15522
15523 PR debug/35896
15524 * dwarf2out.c (dw_expand_expr, common_check): Removed.
15525 (fortran_common): New function.
15526 (gen_variable_die): Call fortran_common instead of common_check,
15527 adjust for it returning tree instead of rtx. Formatting.
15528
15529 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
15530
15531 PR rtl/7335
15532 PR rtl/33826
15533 * see.c (see_copy_insn): Copy new pure const attributes for new call.
15534 * c-decl.c (merge_decls): Ditto.
15535 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
15536 to RTL_CONST_OR_PURE_CALL_P.
15537 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
15538 Initialized DECL_LOOPING_CONST_PURE.
15539 (process_call_operands): Set tree_side_effects properly.
15540 * tree.h (TREE_READONLY_DECL_P): Removed.
15541 (DECL_IS_PURE): Renamed to DECL_PURE_P.
15542 (DECL_LOOPING_OR_CONST_P): New macro.
15543 (struct tree_function_decl): Added looping_const_or_pure_p.
15544 (ECF_*) Renumbered.
15545 (ECF_LOOPING_OR_CONST_P): New macro.
15546 * rtlanal.c (pure_const_p): Removed.
15547 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
15548 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
15549 to RTL_CONST_CALL_P.
15550 * ipa-pure-const.c (pure_const_state_e): Added looping field.
15551 (check_decl, check_tree, check_call, scan_function): Initialize
15552 looping.
15553 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
15554 (static_execute): Set looping true for recursive functions.
15555 Undo setting state to IPA_NEITHER for recursive functions.
15556 * cse.c (cse_insn):
15557 * ifcvt.c (noce_can_store_speculate_p): Changed
15558 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
15559 RTL_CONST_OR_PURE_CALL_P.
15560 * dse.c (scan_insn): Ditto.
15561 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
15562 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
15563 RTL_CONST_OR_PURE_CALL_P.
15564 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
15565 pure_call_p to RTL_CONST_CALL_P.
15566 * gimplify.c (gimplify_call_expr): Clear side effects for
15567 non-looping pure and constant calls.
15568 * calls.c (emit_call_1): Set rtl flags from ecf flags.
15569 (flags_from_decl_or_type): Set ecf flags from decl flags.
15570 (initialize_argument_information): Turn off
15571 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
15572 Change const to pure if callee_copies is true rather than just
15573 turning off const.
15574 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
15575 way of marking pure calls.
15576 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
15577 Remove hack that was supposed to fix pr7335 and remove old
15578 way of marking pure calls.
15579 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
15580 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
15581 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
15582 RTL_CONST_OR_PURE_CALL_P.
15583 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
15584 * loop-invariant.c (find_exits, find_invariant_bb): Changed
15585 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
15586 * sched-deps.c (schedule_analyze): Ditto.
15587 * rtl.h (struct rtx_def): Use call field, unchanging field, and
15588 return_val field of calls to represent pure and const function info.
15589 (CONST_OR_PURE_CALL_P): Deleted macro.
15590 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
15591 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
15592 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
15593 TREE_READONLY.
15594 * tree-optimize.c (execute_fixup_cfg): Added test for
15595 ECF_LOOPING_CONST_OR_PURE.
15596 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
15597 DECL_PURE_P.
15598 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
15599 effects for looping pure or const calls.
15600 (verify_gimple_expr): Added verification code.
15601 * config/alpha/alpha.c (alpha_legitimize_address,
15602 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
15603 RTL_CONST_CALL_P.
15604 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
15605 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
15606 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
15607 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
15608 RTL_CONST_OR_PURE_CALL_P.
15609 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
15610 and const calls to be deleted.
15611
15612 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
15613
15614 PR target/35714
15615 * config/i386/mmx.md (mmx_subv2sf3): New expander.
15616 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
15617 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
15618 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
15619 to handle nonimmediate operands.
15620 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
15621 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
15622 to handle nonimmediate operands.
15623 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
15624 (mmx_pmulhrwv4hi3): New expander. Use
15625 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15626 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
15627 (sse2_umulv1siv1di3): New expander. Use
15628 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15629 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
15630 (mmx_eq<mode>3): New expander. Use
15631 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15632 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
15633 (mmx_uavgv8qi3): New expander. Use
15634 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15635 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
15636 (mmx_uavgv4hi3): New expander. Use
15637 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15638
15639 * config/i386/sse.md
15640 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
15641 to handle nonimmediate operands.
15642 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
15643 to handle nonimmediate operands.
15644 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
15645 to handle nonimmediate operands.
15646 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
15647 to handle nonimmediate operands.
15648 (sse2_unpckhpd_exp): New expander. Use
15649 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15650 (sse2_unpcklpd_exp): New expander. Use
15651 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15652 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
15653 to handle nonimmediate operands.
15654 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
15655 to handle nonimmediate operands.
15656 (*sse2_<plusminus_insn><mode>3): Rename from
15657 sse2_<plusminus_insn><mode>3 insn pattern.
15658 (sse2_<plusminus_insn><mode>3): New expander. Use
15659 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15660 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
15661 (sse2_umulv2siv2di3): New expander. Use
15662 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15663 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
15664 (sse4_1_mulv2siv2di3): New expander. Use
15665 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15666 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
15667 (sse2_pmaddwd): New expander. Use
15668 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15669 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
15670 (sse2_eq<mode>3): New expander. Use
15671 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15672 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
15673 (sse4_1_eqv2di3): New expander. Use
15674 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15675 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
15676 (sse2_uavgv16qi3): New expander. Use
15677 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15678 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
15679 (sse2_uavgv16qi3): New expander. Use
15680 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15681 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
15682 (sse2_uavgv8hi3): New expander. Use
15683 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15684 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
15685 (ssse3_pmulhrswv8hi3): New expander. Use
15686 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15687 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
15688 (ssse3_pmulhrswv4hi3): New expander. Use
15689 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15690
15691 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
15692 (<sse>_vmmul<mode>3): Ditto.
15693 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
15694 (divv2df3): Ditto.
15695 (ssse3_pmaddubsw128): Use register_operand for operand 1.
15696 (ssse3_pmaddubsw): Ditto.
15697
15698 * config/i386/i386.c (struct_builtin_description)
15699 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
15700 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
15701 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
15702 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
15703 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
15704 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
15705 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
15706 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
15707 (ix86_fixup_binary_operands): Assert that src1
15708 and src2 must have the same mode when swapped.
15709 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
15710 and ix86_binary_operator_ok. Do not force operands in registers
15711 when optimizing.
15712
15713 2008-05-07 Jan Hubicka <jh@suse.cz>
15714
15715 * cgraph.c (dump_cgraph_node): Update.
15716 * cgraph.h (cgraph_local_info): Break out inline summary.
15717 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
15718 hook.
15719 * ipa-inline (inline_summary): New accestor function.
15720 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
15721 cgraph_decide_inlining, compute_inline_parameters): Update.
15722 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
15723
15724 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
15725
15726 Cleanup ColdFire scheduling support and add V4 pipeline model.
15727
15728 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
15729 (define_attr cpu): Add cfv4 value.
15730 (define_attr type, define_attr type1): Merge into a single 'type'
15731 attribute. Update all uses.
15732 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
15733 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
15734 Update all uses.
15735 (define_attr opx_mem, define_attr opy_mem): Remove.
15736 (define_attr op_mem): Clean up, update comment.
15737 (define_attr size): Use specific values instead of general int.
15738 (define_attr guess, define_attr split): Remove. Update all uses.
15739 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
15740 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
15741 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
15742 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
15743 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
15744 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
15745 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
15746 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
15747 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
15748 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
15749 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
15750 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
15751 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
15752 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
15753 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
15754 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
15755 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
15756 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
15757 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
15758 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
15759 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
15760 Update or set attributes.
15761 (stack_tie): New fake instruction.
15762
15763 * config/m68k/m68k.h (TUNE_CFV4): New macro.
15764 (m68k_sched_attr_size): Update declaration.
15765 (m68k_sched_attr_type2): Remove.
15766 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
15767 Declare new bypass predicates.
15768
15769 * config/m68k/m68k.c (m68k_sched_issue_rate,
15770 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
15771 implementations.
15772 (TARGET_SCHED_ISSUE_RATE,
15773 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
15774 (override_options): Handle scheduling for ColdFire V4 core.
15775 (m68k_expand_prologue): Emit stack_tie.
15776 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
15777 'OP_TYPE_FPN'. Update all uses.
15778 (sched_guess_p): Remove.
15779 (sched_address_type): Handle symbolic addresses.
15780 (sched_get_operand): New static function.
15781 (sched_operand_type): Merge into sched_attr_op_type.
15782 (sched_attr_op_type): Handle FP registers, handle quick constants,
15783 update.
15784 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
15785 (m68k_sched_attr_size): Update. Move logic to ...
15786 (sched_get_attr_size_int): New static function.
15787 (sched_get_opxy_mem_type): New static function.
15788 (m68k_sched_attr_op_mem): Update.
15789 (m68k_sched_attr_type2): Remove.
15790 (sched_cfv4_bypass_data): New static variable.
15791 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
15792 (m68k_sched_issue_rate): Implement scheduler hook.
15793 (struct _sched_ib: enabled_p): New field.
15794 (m68k_sched_variable_issue): Update. Handle V4.
15795 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
15796 sched_dump_class_func_t, sched_dump_split_class,
15797 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
15798 sched_dump_dfa_class, m68k_sched_dump): Remove.
15799 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
15800 hook.
15801 (m68k_sched_init_global): Remove statisctics dumping, introduce
15802 sanity check that all instructions have pipeline reservations. Handle
15803 ColdFire V4 core.
15804 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
15805 Handle ColdFire V4 core.
15806 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
15807 New static functions.
15808 (m68k_sched_address_bypass_p): New bypass predicate.
15809 (sched_get_indexed_address_scale): New static function.
15810 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
15811
15812 * cf.md: Update comments.
15813 (define_attr type2): Remove. Use 'type' attribute instead.
15814 Update all uses.
15815 (cf_ib): Rename to cfv123_ib. Update all uses.
15816 (cf_oep): Rename to cfv123_oep. Update all uses.
15817 (cf_chr): Rename to cfv123_chr. Update all uses.
15818 (cf_mem): Rename to cfv123_mem. Update all uses.
15819 (cf_mac): Move to more appropriate place.
15820 (cfv123_guess): New automaton and cpu_unit.
15821 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
15822 Update uses of 'size' attribute. Handle before reload scheduling.
15823 (cfv123_guess): New dummy reservation for unhandled instructions.
15824 (cfv4_*): Pipeline description of ColdFire V4 core.
15825 (ignore): New reservation to handle 'ignore' type.
15826
15827 2008-05-07 Ian Lance Taylor <iant@google.com>
15828
15829 PR middle-end/36013
15830 * gimplify.c (find_single_pointer_decl_1): Don't look through
15831 indirections.
15832 (find_single_pointer_decl): Adjust comments.
15833
15834 2008-05-07 Jakub Jelinek <jakub@redhat.com>
15835
15836 PR middle-end/36137
15837 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
15838 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
15839
15840 PR middle-end/36106
15841 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
15842 integral type rather than floating point, then VIEW_CONVERT_EXPR
15843 to the floating point type.
15844
15845 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
15846
15847 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
15848 TFmode op0 to register.
15849
15850 2008-05-07 Alan Modra <amodra@bigpond.net.au>
15851
15852 * c-decl.c (grokdeclarator): Comment typo.
15853
15854 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
15855
15856 * tree-flow.h: Remove prototype for computed_goto_p.
15857 * tree-cfg.c (computed_goto_p): Make static.
15858
15859 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
15860
15861 PR target/35657
15862 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
15863 (contains_aligned_value_p): This. Handle _Decimal128.
15864 (ix86_function_arg_boundary): Only align _Decimal128 to its
15865 natural boundary and handle it properly.
15866
15867 2008-05-06 Martin Jambor <mjambor@suse.cz>
15868
15869 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
15870 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
15871 (ipcp_method_set_orig_node): Removed.
15872 (ipcp_cval_get_cvalue_type): Removed.
15873 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
15874 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
15875 (ipcp_cval_set_cvalue_type): Removed.
15876 (ipcp_cval_get_cvalue): Removed.
15877 (ipcp_cval_set_cvalue): Removed.
15878 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
15879 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
15880 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
15881 (ipcp_cval_meet): Renamed to ipa_lattice_meet
15882 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
15883 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
15884 (ipcp_get_ith_lattice): Changed parameters.
15885 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
15886 (ipcp_lattice_from_jfunc): Changed parameters.
15887 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
15888 (ipcp_method_cval_print): Added temporary variable info.
15889 (ipcp_redirect): Removed already unused local variable caller.
15890 (ipcp_redirect): New temporary variable orig_callee_info
15891 (ipcp_redirect): Removed newly unused local variable callee.
15892 (ipcp_redirect): Removed (a bit confusing) local variable type.
15893 (ipcp_insert_stage): Added local variable info.
15894 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
15895 renamed too
15896 (ipcp_formal_create): Removed.
15897 (ipcp_method_cval_set): Removed.
15898 (ipcp_propagate_stage): Renamed lattice variables.
15899 (ipcp_method_cval_set_cvalue_type): Removed.
15900 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
15901 (ipcp_print_all_lattices): Changed printed strings to refer to
15902 lattices rather than cvals.
15903 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
15904 (ipcp_propagate_const): Changed formal parameters.
15905 (build_const_val): Changed formal parameters.
15906 (ipcp_insert_stage): Removed useless variable cvalue
15907 (build_const_val): Changed formal parameters.
15908 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
15909 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
15910 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
15911 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
15912 (ipcp_print_func_profile_counts): Changed string from "method" to
15913 "function"
15914 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
15915 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
15916 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
15917 (ipcp_structures_print): Renamed to ipcp_print_all_structures
15918 (ipcp_profile_print): Renamed to ipcp_print_profile_data
15919 (ipcp_lat_is_const): Changed parameters and made inline.
15920 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
15921 (ipcp_redirect): Renamed to ipcp_need_redirect_p
15922 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
15923 the predicate condition directly
15924 (ipcp_propagate_stage): Added local variable args. Removed local
15925 variable callee. (Both are mere code simplifications.)
15926 (ipcp_method_dont_insert_const): Renamed to
15927 ipcp_node_not_modifiable_p.
15928 (ipcp_node_not_modifiable_p): Made inline.
15929 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
15930 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
15931 (ipcp_print_all_lattices): Removed variable cvalue
15932 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
15933 Updated comments.
15934
15935 2008-05-06 Olivier Hainque <hainque@adacore.com>
15936
15937 * tree-sra.c (try_instantiate_multiple_fields): Early return
15938 if field has POINTER_TYPE.
15939
15940 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
15941
15942 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
15943 by using 'q' specifier for instruction.
15944 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
15945
15946 2008-05-06 Anatoly Sokolov <aesok@post.ru>
15947
15948 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
15949 Change mode of zero_extract from QImode to HImode.
15950 (sign bit tests peepholes): (Ditto.).
15951
15952 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
15953
15954 * config/i386/mmx.md: Remove double backslashes from asm templates.
15955 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
15956 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
15957 to handle nonimmediate operands.
15958 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
15959 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
15960 to handle nonimmediate operands.
15961 (*mmx_<code>v2sf3_finite): New insn pattern.
15962 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
15963 (mmx_<code>v2sf3): New expander. Use
15964 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15965 (mmx_<plusminus_insn><mode>3): New expander. Use
15966 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15967 (*mmx_<plusminus_insn><mode>3): New insn pattern.
15968 (mmx_add<mode>3): Removed.
15969 (mmx_ssadd<mode>3): Ditto.
15970 (mmx_usadd<mode>3): Ditto.
15971 (mmx_sub<mode>3): Ditto.
15972 (mmx_sssub<mode>3): Ditto.
15973 (mmx_ussub<mode>3): Ditto.
15974 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
15975 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
15976 to handle nonimmediate operands.
15977 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
15978 insn pattern.
15979 (mmx_smulv4hi3_highpart): New expander. Use
15980 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15981 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
15982 insn pattern.
15983 (mmx_umulv4hi3_highpart): New expander. Use
15984 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15985 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
15986 (mmx_<code>v4hi3): New expander. Use
15987 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15988 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
15989 (mmx_<code>v8qi3): New expander. Use
15990 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15991 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
15992 (mmx_<code><mode>3): New expander. Use
15993 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15994
15995 2008-05-05 Jan Hubicka <jh@suse.cz>
15996
15997 PR tree-optimization/36118
15998 * passes.c (pass_init_dump_file): Fix dump header.
15999
16000 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
16001
16002 PR middle-end/36141
16003 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
16004 VCE for function decls.
16005
16006 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
16007
16008 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
16009
16010 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
16011
16012 * config/i386/i386.md (sat_plusminus): New.
16013 (plusminus_insn): Likewise.
16014 (plusminus_mnemonic): Likewise.
16015 (addsub): Removed.
16016 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
16017 (*<addsub><mode>3_cc_overflow): Renamed to ...
16018 (*<plusminus_insn><mode>3_cc_overflow): This.
16019 (*<addsub>si3_zext_cc_overflow): Renamed to ...
16020 (*<plusminus_insn>si3_zext_cc_overflow): This.
16021
16022 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
16023 (<plusminus_insn><mode>3): This.
16024 (*<addsub><mode>3): Renamed to ...
16025 (*<plusminus_insn><mode>3): This.
16026 (<sse>_vm<addsub><mode>3): Renamed to ...
16027 (<sse>_vm<plusminus_insn><mode>3): This.
16028 (sse3_h<addsub>v4sf3): Renamed to ...
16029 (sse3_h<plusminus_insn>v4sf3): This.
16030 (sse3_h<addsub>v2df3): Renamed to ...
16031 (sse3_h<plusminus_insn>v2df3): This.
16032 (<plusminus_insn><mode>3): New.
16033 (*<plusminus_insn><mode>3): Likewise.
16034 (sse2_<plusminus_insn><mode>3): Likewise.
16035 (add<mode>): Removed.
16036 (*add<mode>3): Likewise.
16037 (sse2_ssadd<mode>3): Likewise.
16038 (sse2_usadd<mode>3): Likewise.
16039 (sub<mode>3): Likewise.
16040 (*sub<mode>3): Likewise.
16041 (sse2_sssub<mode>3): Likewise.
16042 (sse2_ussub<mode>3): Likewise.
16043
16044 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
16045
16046 * gthr-single.h: Add in required interface elements as per gthr.h.
16047 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
16048 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
16049 Generalize UNUSED macro.
16050 (__gthread_once): Add.
16051 (__gthread_key_create): Add.
16052 (__gthread_key_delete): Add.
16053 (__gthread_getspecific): Add.
16054 (__gthread_setspecific): Add.
16055
16056 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
16057
16058 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
16059 the same size types for the indirect reference on the rhs, then
16060 create a VCE.
16061
16062 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
16063
16064 * config/i386/i386.md
16065 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
16066 one insn template instead of template series.
16067 (*xordi_1_rex64): Ditto.
16068 (*xordi_2_rex64): Ditto.
16069
16070 2008-05-05 Ira Rosen <irar@il.ibm.com>
16071
16072 PR tree-optimization/36119
16073 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
16074 in case of SLP.
16075
16076 2008-06-04 Jan Hubicka <jh@suse.cz>
16077
16078 tree-optimization/36100
16079 * tree-pass.h (pass_O0_always_inline): Declare.
16080 * ipa-inline.c (inline_transform): Remove dead code.
16081 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
16082 pass_O0_always_inline): New.
16083 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
16084
16085 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
16086
16087 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
16088 mnemonic in this_param move for TARGET_64BIT.
16089
16090 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
16091
16092 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
16093 (*strmovsi_rex_1): Ditto.
16094 (*strsetsi_1): Ditto.
16095 (*strsetsi_rex_1): Ditto.
16096
16097 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
16098 adddicc expanders using SWI mode iterator.
16099
16100 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
16101
16102 PR target/36121
16103 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
16104 argument handling.
16105
16106 2008-05-04 David S. Miller <davem@davemloft.net>
16107
16108 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
16109 (sparc*-*-linux*): Use linux.h in tm_file.
16110 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
16111 compiler defaulting to 32-bit.
16112 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
16113 no longer needed.
16114 * config/sparc/linux.h: Remove definitions now obtained
16115 properly from linux.h
16116 * config/sparc/linux64.h: Likewise.
16117 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
16118 don't want this setting for 32-bit builds in a biarch compiler.
16119 * doc/install.texi: Add sparc-linux to list of targets
16120 supporting --enable-targets=all.
16121
16122 2008-05-03 Andrew Pinski <pinskia@gmail.com>
16123
16124 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
16125
16126 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
16127
16128 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
16129 after V4SI_FTYPE_V8HI.
16130 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
16131 case V4SI_FTYPE_V2DF.
16132
16133 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
16134
16135 * doc/invoke.texi (max-flow-memory-locations): Removed.
16136 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
16137
16138 2008-05-03 Richard Guenther <rguenther@suse.de>
16139
16140 PR middle-end/34973
16141 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
16142
16143 2008-05-02 David S. Miller <davem@davemloft.net>
16144
16145 * config.gcc (need_64bit_hwint): Document libcpp dependency.
16146
16147 2008-05-02 Simon Baldwin <simonb@google.com>
16148
16149 PR bootstrap/36108
16150 * c-common.h (warn_array_subscript_range): Removed.
16151 * c-common.c (warn_array_subscript_range): Ditto.
16152 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
16153 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
16154
16155 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
16156
16157 * config/i386/i386.c (ix86_special_builtin_type): New.
16158 (bdesc_special_args): Likewise.
16159 (ix86_expand_special_args_builtin): Likewise.
16160 (ix86_init_mmx_sse_builtins): Updated.
16161 (ix86_expand_builtin): Updated.
16162 (ix86_expand_store_builtin): Removed.
16163 (ix86_expand_unop_builtin): Likewise.
16164
16165 * config/i386/mm3dnow.h (__v2sf): Moved to ...
16166 * config/i386/mmintrin.h (__v2sf): Here.
16167
16168 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
16169 const __v2sf.
16170 (_mm_loadl_pi): Likewise.
16171 (_mm_storeh_pi): Replace __v2si with __v2sf.
16172 (_mm_storel_pi): Likewise.
16173
16174 * doc/extend.texi: Correct __builtin_ia32_loadhps,
16175 __builtin_ia32_loadlps, __builtin_ia32_storehps,
16176 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
16177 __builtin_ia32_loadlpd.
16178
16179 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
16180
16181 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
16182 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
16183 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
16184 (ix86_init_mmx_sse_builtins): Updated.
16185 (ix86_expand_args_builtin): Likewise.
16186 (ix86_expand_builtin): Likewise.
16187 (ix86_expand_unop1_builtin): Renamed to ...
16188 (ix86_expand_unop_vec_merge_builtin): This.
16189
16190 2008-05-01 Jan Hubicka <jh@suse.cz>
16191
16192 PR bootstrap/36100
16193 * ipa-inline.c (inline_generate_summary): Make static.
16194 (inline_transform): Do not call inlining at -O0; make static.
16195 * passes.c (execute_todo): Add sanity check.
16196 (execute_one_ipa_transform_pass): Execute proper flags.
16197
16198 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
16199
16200 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
16201 (DECL_NONADDRESSABLE_P): Likewise.
16202 * alias.c (record_component_aliases): Fix comment.
16203
16204 2008-05-01 Simon Baldwin <simonb@google.com>
16205
16206 * c-common.h (warn_array_subscript_range): New function.
16207 * c-common.c (warn_array_subscript_range): Ditto.
16208 * tree-vrp.c (check_array_ref): Corrected code to agree with
16209 comment, ignoring only arrays of size 0 or size 1.
16210 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
16211
16212 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
16213
16214 * config/i386/i386.c (ix86_builtin_type): Replace
16215 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
16216 (bdesc_args): Updated.
16217 (ix86_init_mmx_sse_builtins): Likewise.
16218 (ix86_expand_args_builtin): Likewise.
16219
16220 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
16221 with __v1di.
16222
16223 * doc/extend.texi: Correct __builtin_ia32_palignr.
16224
16225 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
16226
16227 PR target/36095
16228 * config/i386/i386.c (bdesc_crc32): Removed.
16229 (ix86_expand_crc32): Likewise.
16230 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
16231 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
16232 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
16233 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
16234 UINT_FTYPE_UINT_UCHAR.
16235 (bdesc_args): Updated. Add crc32 builtins.
16236 (ix86_init_mmx_sse_builtins): Updated.
16237 (ix86_expand_args_builtin): Updated to support subreg.
16238
16239 * doc/extend.texi: Correct __builtin_ia32_crc32di.
16240
16241 2008-05-01 Jan Hubicka <jh@suse.cz>
16242
16243 * tree-pass.h (opt_pass): Add IPA_PASS.
16244 (varpool_node, cgraph_node): Forward declare.
16245 (ipa_opt_pass): Define.
16246 (pass_ipa_inline): Turn into ipa_opt_pass.
16247 (pass_apply_inline): Remove.
16248 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
16249 (apply_inline): Turn into ....
16250 (inline_transform): ... this one.
16251 (inline_generate_summary): New function.
16252 (pass_apply_inline): Remove.
16253 * function.h (ipa_opt_pass): Forward declare structure; typedef;
16254 vector.
16255 (struct function): Add ipa_transforms_to_apply.
16256 * passes.c (register_one_dump_file): Work on IPA_PASS.
16257 (init_optimization_passes): Remove pass_inline_parameters and
16258 pass_apply_inline.
16259 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
16260 (execute_one_pass) ... here; apply transforms when possible.
16261 (add_ipa_transform_pass, execute_ipa_summary_asses,
16262 execute_one_ipa_transform_pass): New.
16263 (execute_ipa_pass_list): Update for IPA_PASS type.
16264
16265 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
16266
16267 * config/i386/i386.c (ix86_builtin_type): Add
16268 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
16269 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
16270 (bdesc_args): Add SSE4a builtins.
16271 (ix86_init_mmx_sse_builtins): Updated.
16272 (ix86_expand_args_builtin): Likewise.
16273 (ix86_expand_builtin): Likewise.
16274
16275 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
16276
16277 * config/i386/i386.c (ix86_builtin_type): Add
16278 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
16279 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
16280 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
16281 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
16282 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
16283 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
16284 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
16285 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
16286 and DI_FTYPE_DI_DI_INT.
16287 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
16288 (ix86_init_mmx_sse_builtins): Updated.
16289 (ix86_expand_args_builtin): Likewise.
16290 (ix86_expand_builtin): Likewise.
16291 (ix86_expand_binop_imm_builtin): Removed.
16292
16293 * doc/extend.texi: Correct __builtin_ia32_palignr128.
16294
16295 2008-04-30 Richard Guenther <rguenther@suse.de>
16296
16297 PR tree-optimization/32921
16298 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
16299
16300 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
16301
16302 * config/arm/arm.c (arm_unwind_emit): Use
16303 crtl->all_throwers_are_sibcalls instead of
16304 cfun->all_throwers_are_sibcalls.
16305 (arm_output_fn_unwind): Likewise.
16306 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
16307 instead of cfun->uses_pic_offset_table.
16308 (frv_expand_prologue): Likewise.
16309 (frv_frame_pointer_required): Likewise.
16310 (frv_expand_fdpic_call): Likewise.
16311 (frv_emit_movsi): Likewise.
16312 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
16313 cfun->returns_pcc_struct instead of
16314 current_function_returns_pcc_struct.
16315 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
16316 instead of cfun->calls_eh_return.
16317 (m32c_pushm_popm): Likewise.
16318 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
16319 "extern" declaration.
16320
16321 2008-04-30 Richard Guenther <rguenther@suse.de>
16322
16323 PR tree-optimization/21636
16324 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
16325 constant address.
16326 (evaluate_stmt): Print the likely value.
16327 (ccp_visit_stmt): Avoid excessive vertical spacing.
16328
16329 2008-04-30 Rafael Espíndola <espindola@google.com>
16330
16331 * builtins.c (fold_call_expr): Return realret.
16332 * tree-ssa-threadedge.c
16333 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
16334 __builtin_object_size.
16335
16336 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
16337
16338 * gcc.c (wrapper_string): New variable.
16339 (insert_wrapper): New function.
16340 (execute): New option -wrapper.
16341 * doc/invoke.texi (Overall Options): New driver option -wrapper.
16342
16343 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
16344
16345 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
16346 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
16347 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
16348 from...
16349 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
16350 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
16351 config/rs6000/e500crtres64gprctr.asm,
16352 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
16353 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
16354 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
16355 config/rs6000/e500crtsav64gprctr.asm,
16356 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
16357 config/rs6000/e500crtsavg64gprctr.asm: New files.
16358 * config/rs6000/t-ppccomm: Add build rules for new files.
16359 (LIB2FUNCS_STATIC_EXTRA): Add new files.
16360 * config/rs6000/t-netbsd: Add build rules for new files.
16361 (LIB2FUNCS_STATIC_EXTRA): New variable.
16362 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
16363 (CRTSAVRES_DEFAULT_SPEC): Likewise.
16364 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
16365
16366 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
16367
16368 * config/i386/i386.c (ix86_builtin_type): Add
16369 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
16370 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
16371 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
16372 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
16373 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
16374 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
16375 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
16376 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
16377 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
16378 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
16379 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
16380 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
16381 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
16382 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
16383 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
16384 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
16385 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
16386 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
16387 V1DI_FTYPE_V2SI_V2SI.
16388 (bdesc_2arg): Moved to ...
16389 (bdesc_args): Here.
16390 (ix86_init_mmx_sse_builtins): Updated.
16391 (ix86_expand_args_builtin): Updated. Take a pointer
16392 to const struct builtin_description. Handle comparison
16393 builtin functions.
16394 (ix86_expand_sse_compare): Take a new argument for swapping operands.
16395 (ix86_expand_builtin): Updated.
16396
16397 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
16398 (ssse3_pmaddubsw128): This.
16399 (ssse3_pmaddubswv4hi3): Renamed to ...
16400 (ssse3_pmaddubsw): This.
16401
16402 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
16403 (__builtin_ia32_packssdw128): Likewise.
16404 (__builtin_ia32_packuswb128): Likewise.
16405 (__builtin_ia32_pmaddubsw): Likewise.
16406 (__builtin_ia32_pmaddubsw128): Likewise.
16407
16408 2008-04-30 Richard Guenther <rguenther@suse.de>
16409
16410 PR tree-optimization/14847
16411 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
16412 (recognize_bits_test): Use it.
16413 (recognize_single_bit_test): Likewise.
16414
16415 2008-04-30 Martin Jambor <mjambor@suse.cz>
16416
16417 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
16418 instead of setting number of formal parameters to zero.
16419 (ipcp_init_stage): Do not set the number of actual parameters to zero
16420 either.
16421 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
16422 which are called with variable number of arguments.
16423 (ipcp_insert_stage): Explicitely skipping all nodes which are
16424 called with variable number of arguments.
16425 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
16426 number of parameters.
16427
16428 * ipa-prop.h (struct ipa_node_params): Added flag
16429 called_with_var_arguments
16430 (ipa_set_param_count): Added. Changed sole setter to use it.
16431 (ipa_get_param_count): Added. All readers of param_count
16432 converted to use it instead.
16433 (ipa_set_called_with_variable_arg): Added.
16434 (ipa_is_called_with_var_arguments): Added.
16435 (ipa_get_ith_param): Added. All readers of param_decls converted
16436 to use it instead.
16437 (ipa_set_cs_argument_count): Added, sole writer to argument_count
16438 changed to use it.
16439 (ipa_get_cs_argument_count): Added, all readers of argument_count
16440 changed to cal it.
16441 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
16442 to use it.
16443
16444 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
16445 (struct ipcp_lattice): Renamed cval_type to type
16446 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
16447
16448 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
16449 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
16450 (ipcp_insert_stage): Changed the type of variable cvalue to tree
16451 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
16452 (build_const_val): Changed the type of parameter cvalue to tree
16453 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
16454 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
16455
16456 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
16457 constant
16458
16459 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
16460 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
16461 (ipa_add_method): Renamed to ipa_push_func_to_list
16462 (ipa_remove_method): Renamed to ipa_pop_func_from_list
16463 (ipa_callsite_param_count): Removed.
16464 (ipa_callsite_param_count_set): Removed.
16465 (ipa_callsite_param): Removed.
16466 (ipa_callsite_callee): Removed.
16467 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
16468 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
16469 (ipa_method_formal_count): Removed.
16470 (ipa_method_formal_count_set): Removed.
16471 (ipa_method_get_tree): Removed.
16472 (ipa_method_tree_map_create): Removed.
16473 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
16474 (ipa_create_param_decls_array): Creates the array itself
16475 (ipa_create_param_decls_array): Temporary variable info instead of
16476 a few dereferences.
16477 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
16478 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
16479 (get_type): Removed.
16480 (ipa_jf_get_info_type): Removed.
16481 (ipa_node_create): Renamed to ipa_create_node_params
16482 (ipa_free): Renamed to ipa_free_all_node_params
16483 (ipa_nodes_create): Renamed to ipa_create_all_node_params
16484 (ipa_edges_create): Renamed to ipa_create_all_edge_args
16485 (ipa_edges_free): Renamed to ipa_free_all_edge_args
16486 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
16487 (ipa_free_all_node_params): Deallocation to jump_functions moved to
16488 ipa_free_all_edge_args
16489 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
16490 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
16491 (ipa_create_methodlist_node): Removed.
16492 (ipa_methodlist_method): Removed.
16493 (ipa_methodlist_method_set): Removed.
16494 (ipa_methodlist_next_method): Removed.
16495 (ipa_methodlist_next_method_set): Removed.
16496 (ipa_method_is_modified): Removed.
16497 (ipa_method_modify_create): Removed.
16498 (ipa_method_modify_init): Temporary variable info instead of a few
16499 dereferences.
16500 (ipa_detect_param_modifications): Temporary variable info instead of
16501 a few dereferences.
16502 (ipa_compute_jump_functions): Temporary variable info instead of
16503 a few dereferences.
16504 (ipa_method_modify_set): Removed.
16505 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
16506 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
16507 than craph_node as the first parameter.
16508 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
16509 (ipa_method_modify_init): Removed.
16510 (ipa_compute_jump_functions): Added a temp variable instead of
16511 repeatadly dereferencing the cgraph_edge.aux pointer
16512 (ipa_callsite_param_set_type): Removed.
16513 (ipa_compute_jump_functions): i renamed to index and moved to
16514 an inner block
16515 (ipa_callsite_param_set_info_type_formal): Removed.
16516 (ipa_callsite_param_set_info_type): Removed.
16517 (ipa_callsite_param_map_create): Removed.
16518 (ipa_callsite_tree): Removed.
16519 (ipa_callsite_caller): Removed.
16520 (ipa_pop_func_from_list): return_method removed to return_func
16521
16522 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
16523 prefixed all values with IPA_. Changed all users.
16524 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
16525 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
16526 and FORMAL_IPATYPE IPA_PASS_THROUGH.
16527 (union parameter_info): Renamed to jump_func_value.
16528 (union jump_func_value): Renamed value to constant
16529 (struct ipa_jump_func): Renamed info_type to value
16530 (struct ipa_node): Renamed to ipa_node_params
16531 (struct ipa_node_params): Renamed ipa_arg_num to param_count
16532 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
16533 (struct ipa_node_params): Renamed ipa_mod to modified_flags
16534 (struct ipa_edge): Renamed to ipa_edge_args
16535 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
16536 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
16537 (struct ipa_methodlist): Renamed to ipa_func_list
16538 (struct ipa_func_list): method_p renamed to node, next_method
16539 renamed to next
16540 (ipa_methodlist_p): Removed, switched all users to struct pointer
16541 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
16542
16543 2008-04-30 Alan Modra <amodra@bigpond.net.au>
16544
16545 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
16546 (rs6000_emit_epilogue): Use backchain to restore only when we
16547 have a large frame. Make use of frame pointer to restore if we
16548 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
16549
16550 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
16551
16552 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
16553 Add mode to zero_extract.
16554 (sign bit tests peepholes): (Ditto.).
16555
16556 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
16557
16558 * config/i386/i386.c (ix86_builtins): Replace Prescott New
16559 Instructions in comments with SSE3.
16560 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
16561 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
16562 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
16563 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
16564 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
16565 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
16566 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
16567 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
16568 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
16569 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
16570 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
16571 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
16572 (bdesc_sse_args): Renamed to ...
16573 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
16574 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
16575 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
16576 IX86_BUILTIN_FABSQ.
16577 (bdesc_1arg): Moved to ...
16578 (bdesc_args): Here.
16579 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
16580 Instructions in comments with SSE3.
16581 (ix86_expand_sse_operands_builtin): Renamed to ...
16582 (ix86_expand_args_builtin): This. Updated.
16583 (ix86_expand_unop1_builtin): Update comments.
16584 (ix86_expand_builtin): Updated.
16585
16586 2008-04-29 Richard Guenther <rguenther@suse.de>
16587
16588 PR tree-optimization/36078
16589 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
16590 Update virtual SSA form after cleaning up the CFG.
16591
16592 2008-04-29 Richard Guenther <rguenther@suse.de>
16593
16594 PR middle-end/15255
16595 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
16596
16597 2008-04-29 Richard Guenther <rguenther@suse.de>
16598
16599 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
16600 (compute_may_aliases): Do not call finalize_ref_all_pointers.
16601 (compute_flow_insensitive_aliasing): Do not treat
16602 PTR_IS_REF_ALL pointers special.
16603 (get_smt_for): Likewise.
16604 (may_alias_p): Re-structure.
16605 (is_escape_site): A ref-all pointer conversion is not an escape site.
16606 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
16607 PTR_IS_REF_ALL pointers special.
16608 * tree-ssa-structalias.h (struct alias_info): Remove
16609 ref_all_symbol_mem_tag field.
16610 (PTR_IS_REF_ALL): Remove.
16611
16612 2008-04-29 Richard Guenther <rguenther@suse.de>
16613
16614 PR middle-end/36077
16615 * fold-const.c (extract_muldiv_1): In combining division constants
16616 make sure to never overflow.
16617
16618 2008-04-29 Nick Clifton <nickc@redhat.com>
16619
16620 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
16621
16622 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16623
16624 PR bootstrap/35169
16625 * optc-gen.awk: Work around HP-UX/IA awk bug.
16626
16627 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
16628
16629 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
16630 2008-04-25 commit.
16631
16632 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
16633
16634 PR target/36073
16635 * config/i386/i386.md
16636 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
16637 Change operand 1 predicate to nonimmediate_operand.
16638
16639 2008-04-28 Jakub Jelinek <jakub@redhat.com>
16640
16641 PR debug/36060
16642 * dwarf2out.c (struct die_struct): Mark as chain_circular through
16643 die_sub field.
16644 * gengtype.c (walk_type, write_func_for_structure): Handle
16645 chain_circular.
16646 * doc/gty.texi: Document chain_circular.
16647
16648 2008-04-28 Richard Guenther <rguenther@suse.de>
16649
16650 PR tree-optimization/36066
16651 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
16652 SCEV and loop.
16653
16654 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
16655
16656 PR target/36064
16657 * config/i386/i386.md
16658 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
16659 Use match_scratch instead of match_operand for operands 3 and 4.
16660
16661 2008-04-27 Richard Guenther <rguenther@suse.de>
16662
16663 PR tree-optimization/18754
16664 PR tree-optimization/34223
16665 * tree-pass.h (pass_complete_unrolli): Declare.
16666 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
16667 loop size before and after unconditionally of UL_NO_GROWTH in effect.
16668 Rewrite loop into loop closed SSA form if it is not already.
16669 (tree_unroll_loops_completely): Re-structure to iterate over
16670 innermost loops with intermediate CFG cleanups.
16671 Unroll outermost loops only if requested or the code does not grow
16672 doing so.
16673 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
16674 loops are available.
16675 (tree_vectorize): Instead do so here.
16676 (tree_complete_unroll): Also unroll outermost loops.
16677 (tree_complete_unroll_inner): New function.
16678 (gate_tree_complete_unroll_inner): Likewise.
16679 (pass_complete_unrolli): New pass.
16680 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
16681 uses outside of the loop.
16682 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
16683 form if it is available.
16684 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
16685 * passes.c (init_optimization_passes): Schedule complete inner
16686 loop unrolling pass before the first CCP pass after final inlining.
16687
16688 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
16689
16690 * targhooks.h (default_emutls_var_fields,
16691 default_emutls_var_init): Declare.
16692 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
16693 * target.h (struct gcc_target): Add struct emutls member.
16694 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
16695 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
16696 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
16697 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
16698 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
16699 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
16700 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
16701 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
16702 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
16703 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
16704 emit debug information.
16705 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
16706 * varasm.c: Include targhooks.h.
16707 (emutls_object_section, emutls_tmpl_section): New.
16708 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
16709 (EMUTLS_SEPARATOR): New.
16710 (prefix_name): New.
16711 (get_emutls_object_name): New.
16712 (default_emutls_var_fields): New, broken out of ...
16713 (get_emutls_object_type): ... here. Adjust to use target hooks.
16714 (get_emutls_init_templ_addr): Adjust to use target hooks.
16715 (emutls_decl): Adjust to use target hooks.
16716 (emutls_finish): Likewise.
16717 (default_emutls_var_init): New, broken out of ...
16718 (assemble_variable): ... here. Adjust to use target hooks.
16719 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
16720 SECCAT_EMUTLS_TMPL.
16721 * c-common.c (handle_section_attribute): Prevent overriding
16722 sections for emulated tls with special sections.
16723 * config/i386/i386.c (x86_64_elf_select_section): Add
16724 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
16725 (x86_64_elf_unique_section): Likewise.
16726 * config/vxworks.c: Include tree.h.
16727 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
16728 (vxworks_override_options): Set TLS scheme.
16729 * doc/tm.texi (Emulated TLS): New node.
16730
16731 2008-04-26 Simon Baldwin <simonb@google.com>
16732
16733 PR c/35652
16734 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
16735 with propagated string constants.
16736
16737 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
16738
16739 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
16740 constraint for operand 2 when operand 0 is memory operand.
16741 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
16742 operand 0 is memory operand.
16743 (fix_trunc<mode>_i387_with_temp): Ditto.
16744 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
16745 operand 2 when operand 1 is memory operand.
16746 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
16747 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
16748 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
16749 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
16750 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
16751 operands 2,3 and 4 when operand 1 is memory operand.
16752 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
16753 is memory operand.
16754 (fistdi2_floor_with_temp): Ditto.
16755 (fist<mode>2_floor_with_temp): Ditto.
16756 (fistdi2_ceil_with_temp): Ditto.
16757 (fist<mode>2_ceil_with_temp): Ditto.
16758 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
16759
16760 2008-04-26 David Daney <ddaney@avtrex.com>
16761
16762 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
16763 unspec_volitile.
16764 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
16765 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
16766 UNSPEC_UPDATE_GOT_VERSION): Renumber.
16767 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
16768 (compare_and_swap_12): New insn.
16769 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
16770 * config/mips/mips.c (mips_force_binary): New function.
16771 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
16772 (mips_expand_compare_and_swap_12): New function.
16773 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
16774
16775 2008-04-25 Jan Hubicka <jh@suse.cz>
16776
16777 PR testsuite/35843
16778 * cfgexpand.c (pass_expand): Turn into RTL pass.
16779 * passes.c (execute_one_pass): Do pass typechecking after execution.
16780 * tree-pass.h (pass_expand): Turn into RTL pass.
16781
16782 * function.h (struct rtl_data): Move here fields
16783 accesses_prior_frames, calls_eh_return, saves_all_registers,
16784 has_nonlocal_goto, has_asm_statement, is_thunk,
16785 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
16786 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
16787 arg_pointer_save_area_init from struct function; turn into bool.
16788 (struct function): Move
16789 calls_eh_return, saves_all_registers, has_nonlocal_goto,
16790 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
16791 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
16792 tail_call_emit, arg_pointer_save_area_init
16793 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
16794 (current_function_returns_struct, current_function_returns_pcc_struct,
16795 current_function_calls_setjmp, current_function_calls_alloca,
16796 current_function_accesses_prior_frames,
16797 current_function_calls_eh_return, current_function_is_thunk,
16798 current_function_stdarg, current_function_profile,
16799 current_function_limit_stack, current_function_uses_pic_offset_table,
16800 current_function_uses_const_pool, current_function_has_nonlocal_label,
16801 current_function_saves_all_registers,
16802 current_function_has_nonlocal_goto,
16803 current_function_has_asm_statement): Remove accesor macros.
16804 * ra-conflict.c (global_conflicts): Update.
16805 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
16806 (suitable_for_tail_call_opt_p): Update.
16807 * builtins.c (expand_builtin_return_addr): Update.
16808 (expand_builtin_setjmp_setup): Update.
16809 (expand_builtin_nonlocal_goto): Update.
16810 * final.c (final_start_function): Update.
16811 (profile_function): Update.
16812 (leaf_function_p): Update.
16813 (only_leaf_regs_used): Update.
16814 * df-scan.c (df_get_exit_block_use_set): Update.
16815 * dojump.c (clear_pending_stack_adjust): Update.
16816 * tree-stdarg.c (gate_optimize_stdarg): Update.
16817 * gimple-low.c (lower_function_body): Update.
16818 * global.c (compute_regsets): Update.
16819 (global_alloc): Update.
16820 * dwarf2out.c (dwarf2out_begin_prologue): Update.
16821 * expr.c (expand_assignment): Update.
16822 * dse.c (dse_step0): Update.
16823 (dse_step1): Update.
16824 * c-decl.c (store_parm_decls): Update.
16825 * local-alloc.c (combine_regs): Update.
16826 (find_free_reg): Update.
16827 * function.c (assign_parms_augmented_arg_list): Update.
16828 (assign_parm_find_data_types): Update.
16829 (assign_parms): Update.
16830 (allocate_struct_function): Update.
16831 (expand_function_start): Update.
16832 (expand_function_end): Update.
16833 (get_arg_pointer_save_area): Update.
16834 (thread_prologue_and_epilogue_insns): Update.
16835 (rest_of_match_asm_constraints): Update.
16836 * stor-layout.c (variable_size): Update.
16837 * gcse.c (gcse_main): Update.
16838 (bypass_jumps): Update.
16839 * gimplify.c (gimplify_function_tree): Update.
16840 * calls.c (emit_call_1): Update.
16841 (expand_call): Update.
16842 * bt-load.c (compute_defs_uses_and_gen): Update.
16843 * except.c (sjlj_assign_call_site_values): Update.
16844 (sjlj_emit_function_enter): Update.
16845 (can_throw_external): Update.
16846 (set_nothrow_function_flags): Update.
16847 (expand_builtin_unwind_init): Update.
16848 (expand_eh_return): Update.
16849 (convert_to_eh_region_ranges): Update.
16850 (output_function_exception_table): Update.
16851 * emit-rtl.c (gen_tmp_stack_mem): Update.
16852 * cfgexpand.c (expand_used_vars): Update.
16853 (tree_expand_cfg): Update.
16854 * cfgcleanup.c (rest_of_handle_jump): Update.
16855 * explow.c (allocate_dynamic_stack_space): Update.
16856 * varasm.c (assemble_start_function): Update.
16857 (force_const_mem): Update.
16858 (mark_constant_pool): Update.
16859 * tree-optimize.c (tree_rest_of_compilation): Update.
16860 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
16861 * tree-cfg.c (notice_special_calls): Update.
16862 (is_ctrl_altering_stmt): Update.
16863 (tree_can_make_abnormal_goto): Update.
16864 (tree_purge_dead_abnormal_call_edges): Update.
16865 * config/alpha/predicates.md: Update.
16866 * config/alpha/alpha.c (alpha_sa_mask): Update.
16867 (alpha_sa_size): Update.
16868 (alpha_does_function_need_gp): Update.
16869 (alpha_expand_prologue): Update.
16870 (alpha_start_function): Update.
16871 (alpha_output_function_end_prologue): Update.
16872 (alpha_expand_epilogue): Update.
16873 * config/frv/frv.c (frv_stack_info): Update.
16874 (frv_expand_epilogue): Update.
16875 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
16876 (s390_register_info): Update.
16877 (s390_frame_info): Update.
16878 (s390_init_frame_layout): Update.
16879 (s390_can_eliminate): Update.
16880 (save_gprs): Update.
16881 * config/spu/spu.c (spu_split_immediate): Update.
16882 (need_to_save_reg): Update.
16883 (spu_expand_prologue): Update.
16884 (spu_expand_epilogue): Update.
16885 * config/sparc/sparc.md: Update.
16886 * config/sparc/sparc.c (eligible_for_return_delay): Update.
16887 (sparc_tls_got): Update.
16888 (legitimize_pic_address): Update.
16889 (sparc_emit_call_insn): Update.
16890 (sparc_expand_prologue): Update.
16891 (output_return): Update.
16892 (print_operand): Update.
16893 (sparc_function_ok_for_sibcall): Update.
16894 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
16895 * config/m32r/m32r.md: Update.
16896 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
16897 (m32r_compute_frame_size): Update.
16898 (m32r_expand_prologue): Update.
16899 (m32r_expand_epilogue): Update.
16900 (m32r_legitimize_pic_address): Update.
16901 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
16902 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
16903 * config/i386/i386.c (ix86_frame_pointer_required): Update.
16904 (gen_push): Update.
16905 (ix86_save_reg): Update.
16906 (ix86_compute_frame_layout): Update.
16907 (ix86_expand_prologue): Update.
16908 (ix86_expand_epilogue): Update.
16909 * config/sh/sh.c (output_stack_adjust): Update.
16910 (calc_live_regs): Update.
16911 (sh5_schedule_saves): Update.
16912 (sh_expand_prologue): Update.
16913 (sh_expand_epilogue): Update.
16914 (sh_setup_incoming_varargs): Update.
16915 (sh_allocate_initial_value): Update.
16916 (sh_get_pr_initial_val): Update.
16917 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
16918 * config/sh/sh.md (label:): Update.
16919 * config/avr/avr.c (out_movhi_mr_r): Update.
16920 * config/crx/crx.h (enum): Update.
16921 * config/xtensa/xtensa.h (along): Update.
16922 * config/stormy16/stormy16.c Update.
16923 (xstormy16_compute_stack_layout): Update.
16924 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
16925 (fr30_expand_prologue): Update.
16926 * config/cris/cris.c (cris_conditional_register_usage): Update.
16927 (cris_reg_saved_in_regsave_area): Update.
16928 (cris_initial_frame_pointer_offset): Update.
16929 (cris_simple_epilogue): Update.
16930 (cris_expand_prologue): Update.
16931 (cris_expand_epilogue): Update.
16932 (cris_expand_pic_call_address): Update.
16933 (cris_asm_output_symbol_ref): Update.
16934 (cris_asm_output_label_ref): Update.
16935 * config/cris/cris.md Update.
16936 * config/iq2000/iq2000.c (compute_frame_size): Update.
16937 (iq2000_expand_epilogue): Update.
16938 * config/mt/mt.h (save_direction): Update.
16939 * config/mn10300/mn10300.c (mn10300_function_value): Update.
16940 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
16941 (ia64_secondary_reload_class): Update.
16942 * config/m68k/m68k.c (m68k_save_reg): Update.
16943 (m68k_expand_prologue): Update.
16944 (m68k_expand_epilogue): Update.
16945 (legitimize_pic_address): Update.
16946 * config/rs6000/rs6000.c (rs6000_got_register): Update.
16947 (first_reg_to_save): Update.
16948 (first_altivec_reg_to_save): Update.
16949 (compute_vrsave_mask): Update.
16950 (compute_save_world_info): Update.
16951 (rs6000_stack_info): Update.
16952 (spe_func_has_64bit_regs_p): Update.
16953 (rs6000_ra_ever_killed): Update.
16954 (rs6000_emit_eh_reg_restore): Update.
16955 (rs6000_emit_allocate_stack): Update.
16956 (rs6000_emit_prologue): Update.
16957 (rs6000_emit_epilogue): Update.
16958 (rs6000_output_function_epilogue): Update.
16959 (output_profile_hook): Update.
16960 (rs6000_elf_declare_function_name): Update.
16961 * config/rs6000/rs6000.h (rs6000_args): Update.
16962 * config/rs6000/rs6000.md: Update.
16963 * config/mcore/mcore.c (mcore_expand_prolog): Update.
16964 * config/arc/arc.c (arc_output_function_epilogue): Update.
16965 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
16966 * config/darwin.c (machopic_function_base_name): Update.
16967 * config/score/score3.c (score3_compute_frame_size): Update.
16968 (rpush): Update.
16969 (rpop): Update.
16970 (score3_epilogue): Update.
16971 * config/score/score7.c (score7_compute_frame_size): Update.
16972 (score7_prologue): Update.
16973 (score7_epilogue): Update.
16974 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
16975 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
16976 * config/arm/arm.c (use_return_insn): Update.
16977 (require_pic_register): Update.
16978 (arm_load_pic_register): Update.
16979 (arm_compute_save_reg0_reg12_mask): Update.
16980 (arm_compute_save_reg_mask): Update.
16981 (thumb1_compute_save_reg_mask): Update.
16982 (output_return_instruction): Update.
16983 (arm_output_function_prologue): Update.
16984 (arm_output_epilogue): Update.
16985 (arm_get_frame_offsets): Update.
16986 (arm_expand_prologue): Update.
16987 (thumb_pushpop): Update.
16988 (thumb_exit): Update.
16989 (thumb1_expand_prologue): Update.
16990 (thumb1_expand_epilogue): Update.
16991 (arm_unwind_emit): Update.
16992 (arm_output_fn_unwind): Update.
16993 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
16994 * config/arm/arm.md: Update.
16995 * config/pa/pa.md: Update.
16996 * config/pa/pa.c (legitimize_pic_address): Update.
16997 (compute_frame_size): Update.
16998 (hppa_expand_prologue): Update.
16999 (hppa_expand_epilogue): Update.
17000 (borx_reg_operand): Update.
17001 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
17002 (HARD_REGNO_RENAME_OK): Update.
17003 * config/mips/mips.c (mips_global_pointer): Update.
17004 (mips_save_reg_p): Update.
17005 (mips_compute_frame_info): Update.
17006 (mips_frame_pointer_required): Update.
17007 (mips_expand_prologue): Update.
17008 (mips_expand_epilogue): Update.
17009 (mips_can_use_return_insn): Update.
17010 (mips_reorg_process_insns): Update.
17011 * config/v850/v850.c (compute_register_save_size): Update.
17012 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
17013 * config/mmix/mmix.c (along): Update.
17014 (mmix_expand_epilogue): Update.
17015 * config/bfin/bfin.c (legitimize_pic_address): Update.
17016 (must_save_p): Update.
17017 (stack_frame_needed_p): Update.
17018 (add_to_reg): Update.
17019 (bfin_expand_prologue): Update.
17020 * stmt.c (expand_asm_operands): Update.
17021 * reload1.c (reload): Update.
17022 (init_elim_table): Update.
17023
17024 2008-04-25 Bob Wilson <bob.wilson@acm.org>
17025
17026 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
17027
17028 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
17029
17030 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
17031 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
17032 (mov<mode>): Removed.
17033 (*movv4sf_internal): Likewise.
17034 (*movv2df_internal): Likewise.
17035
17036 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
17037
17038 * config.gcc (crx-*-elf): Remove deprecation.
17039
17040 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
17041
17042 * config/i386/cygming-crtend.c (register_frame_ctor): Register
17043 __gcc_deregister_frame with atexit.
17044 (deregister_frame_dtor): Remove.
17045
17046 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
17047 Nathan Sidwell <nathan@codesourcery.com>
17048
17049 * config/rs6000/rs6000.opt (mspe): Remove Var property.
17050 (misel): Likewise.
17051 * config/rs6000/rs6000.h (rs6000_spe): Declare.
17052 (rs6000_isel): Likewise.
17053 * config/rs6000/rs6000.c (rs6000_spe): New variable.
17054 (rs6000_isel): New variable.
17055 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
17056
17057 2008-04-24 Jakub Jelinek <jakub@redhat.com>
17058
17059 PR c++/35758
17060 * c-common.c (handle_vector_size_attribute): Call
17061 lang_hooks.types.reconstruct_complex_type instead of
17062 reconstruct_complex_type.
17063 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
17064 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
17065 * langhooks.h (struct lang_hooks_for_types): Add
17066 reconstruct_complex_type hook.
17067 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
17068 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
17069
17070 2008-04-24 Richard Guenther <rguenther@suse.de>
17071
17072 * c-common.h (check_builtin_function_arguments): Declare.
17073 * c-common.c (validate_nargs): New function.
17074 (check_builtin_function_arguments): Likewise.
17075 * c-typeck.c (build_function_call): Call
17076 check_builtin_function_arguments.
17077 * builtins.c (fold_builtin_classify): Remove error reporting code.
17078 (fold_builtin_unordered_cmp): Likewise.
17079 (fold_builtin_1): Likewise.
17080 (fold_builtin_n): Likewise.
17081
17082 2008-04-24 Jakub Jelinek <jakub@redhat.com>
17083
17084 PR tree-optimization/36008
17085 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
17086 the original op1, rather than delta by step.
17087
17088 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
17089 Sebastian Pop <sebastian.pop@amd.com>
17090
17091 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
17092 eliminate_local_variables_stmt, eliminate_local_variables,
17093 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
17094 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
17095 of code delimited by two edges in the CFG.
17096 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
17097 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
17098 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
17099 the case of parallelisation of reductions.
17100 (expr_invariant_in_region_p): New.
17101
17102 * tree-flow.h (gather_blocks_in_sese_region): Declared.
17103 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
17104
17105 2008-04-24 Ira Rosen <irar@il.ibm.com>
17106 Richard Guenther <rguenther@suse.de>
17107
17108 PR tree-optimization/36034
17109 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
17110 incapable of dealing with loads with gaps.
17111
17112 2008-04-24 Rafael Espíndola <espindola@google.com>
17113
17114 * tree-flow.h (vrp_evaluate_conditional): Change signature.
17115 * tree-ssa-propagate.c (fold_predicate_in): Update call to
17116 vrp_evaluate_conditional.
17117 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
17118 (vrp_evaluate_conditional): Split the cond argument.
17119 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
17120 (simplify_stmt_for_jump_threading): Update call to
17121 vrp_evaluate_conditional.
17122
17123 2008-04-24 Ira Rosen <irar@il.ibm.com>
17124
17125 PR tree-optimization/35982
17126 * tree-vect-analyze.c (vect_check_interleaving): Check that the
17127 interleaved data-refs are of the same type.
17128
17129 2008-04-24 Danny Smith <dannysmith@users.net>
17130
17131 * c-format.c (check_format_info_main): Use strncmp rather than a
17132 magic prefix to handle multichar length specs.
17133 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
17134 Don't prefix "I64" and "I32" with '\0'.
17135
17136 2008-04-24 Jakub Jelinek <jakub@redhat.com>
17137
17138 PR target/36015
17139 * config/i386/i386.c (init_cumulative_args): Don't pass anything
17140 in registers for -m32 only if stdarg_p (fntype).
17141
17142 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
17143
17144 PR rtl-optimization/36006
17145 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
17146 temp to op0 in order to avoid invalid rtx sharing.
17147
17148 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
17149
17150 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
17151 check TREE_INVARIANT.
17152 * tree-gimple.c (is_gimple_address): New.
17153 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
17154 * tree-gimple.h (is_gimple_address): New.
17155 * tree.h (decl_address_invariant_p): New.
17156 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
17157 (build_string): Likewise.
17158 (decl_address_invariant_p): New, from is_gimple_invariant_address.
17159 (tree_invariant_p_1): Likewise.
17160 (save_expr): Use it.
17161 (tree_invariant_p): New.
17162 (skip_simple_arithmetic): Use it.
17163 (stabilize_reference_1): Use it.
17164 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
17165 simplify.
17166 (build1_stat): Drop code to compute TREE_INVARIANT.
17167 (build2_stat): Drop code to compute TREE_INVARIANT.
17168 (build3_stat): Drop code to compute TREE_INVARIANT.
17169 (build4_stat): Drop code to compute TREE_INVARIANT.
17170 (build5_stat): Drop code to compute TREE_INVARIANT.
17171 (build7_stat): Drop code to compute TREE_INVARIANT.
17172 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
17173 * tree.h (struct tree_base): Remove invariant_flag.
17174 (TREE_INVARIANT): Remove.
17175 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
17176 (fold_builtin_expect): Check TREE_CONSTANT.
17177 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
17178 * c-tree.h (c_expr_to_decl): Drop third parameter.
17179 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
17180 (build_c_cast): Don't set TREE_INVARIANT.
17181 (pop_init_level): Don't set TREE_INVARIANT.
17182 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
17183 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
17184 TREE_CONSTANT.
17185 (gimplify_init_constructor): Don't set TREE_INVARIANT.
17186 (gimplify_addr_expr): Adjust comment.
17187 * tree-mudflap.c (mf_build_string):
17188 * print-tree.c (print_node): Don't print TREE_INVARIANT.
17189 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
17190 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
17191 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
17192 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
17193 * langhooks.h (struct lang_hooks): Drop third parameter from
17194 expr_to_decl.
17195
17196 2008-04-23 Richard Guenther <rguenther@suse.de>
17197
17198 PR tree-optimization/27799
17199 PR tree-optimization/32921
17200 PR tree-optimization/32624
17201 * tree-ssa-structalias.c (merge_smts_into): Only merge the
17202 SMTs aliases and the tag itself into the solution.
17203 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
17204 merge the points-to solution back into the SMT aliases.
17205 (may_alias_p): Use alias_set_subset_of instead of
17206 aliases_conflict_p. A pointer which points to
17207 memory with alias set zero may access any variable.
17208
17209 2008-04-23 Richard Guenther <rguenther@suse.de>
17210
17211 * alias.c (alias_set_subset_of): Correctly handle asking
17212 if zero is a subset of an alias set with zero child.
17213 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
17214 (compute_flow_insensitive_aliasing): Correctly walk all
17215 pointers. Do not unnecessarily union sets.
17216
17217 2008-04-23 Richard Guenther <rguenther@suse.de>
17218
17219 PR middle-end/36021
17220 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
17221
17222 2008-04-22 Tomas Bily <tbily@suse.cz>
17223
17224 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
17225 unreachable case.
17226 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
17227 NON_LVALUE_EXPR.
17228 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
17229 * tree-ssa-structalias.c (get_constraint_for): Likewise.
17230 * tree-inline.c (estimate_num_insns_1): Likewise.
17231 * varasm.c (const_hash_1, compare_constant, copy_constant)
17232 (compute_reloc_for_constant, output_addressed_constants): Likewise.
17233 * emit-rtl.c (component_ref_for_mem_expr)
17234 (set_mem_attributes_minus_bitpos): Likewise.
17235 * expr.c (highest_pow2_factor, expand_expr_real_1, )
17236 (is_aligning_offset): Likewise.
17237 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
17238 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
17239 * dojump.c (do_jump): Likewise.
17240 * builtins.c (get_pointer_alignment, get_memory_rtx)
17241 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
17242 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
17243
17244 2008-04-23 Jakub Jelinek <jakub@redhat.com>
17245
17246 PR rtl-optimization/36017
17247 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
17248 expanding the library call.
17249
17250 2008-04-22 Ian Lance Taylor <iant@google.com>
17251
17252 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
17253 than size_in_bytes.
17254
17255 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
17256
17257 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
17258 of LR/CTR moves for Power6.
17259
17260 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
17261
17262 PR middle-end/36003
17263 * passes.c (init_optimization_passes): Remove
17264 pass_fast_rtl_byte_dce.
17265
17266 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
17267
17268 PR target/29096
17269 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
17270 builtin functions to generate faster code.
17271 (_mm_cvtpu16_ps): Ditto.
17272 (_mm_cvtpi32x2_ps): Ditto.
17273
17274 2008-04-22 Nick Clifton <nickc@redhat.com>
17275
17276 * common.opt (ftree-loop-distribution): Add Optimization
17277 attribute.
17278
17279 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
17280 (frv_expand_builtin_va_start): Likewise.
17281
17282 * config/arm/arm.c (thumb_find_work_register): Fix location of
17283 argument register count.
17284
17285 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
17286
17287 Support scheduling for ColdFire V1 and V3 microarchitecture.
17288 Improve scheduling of multiplication instructions.
17289
17290 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
17291 (mac): New instruction attribute.
17292 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
17293 (m68k_sched_mac): New variable.
17294 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
17295 Handle cfv1 and cfv3.
17296 (max_insn_size): New static variable.
17297 (struct _sched_ib): New type.
17298 (sched_ib): New static variable.
17299 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
17300 to fields of 'struct _sched_ib sched_ib'. Update all uses.
17301 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
17302 Update.
17303 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
17304 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
17305 new variables. Update.
17306 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
17307 Add modeling of cfv3 instruction buffer. Update.
17308 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
17309 * config/m68k/m68k.h (TUNE_CFV3): New macro.
17310 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
17311 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
17312 a particular reservation applies to.
17313 (type2): Reorganize attribute values. Rename alu to alu_reg,
17314 alu_l to alu, move_l to omove. Join move to alu. Split mul
17315 to mul_l and mul_w.
17316 (cf_ib_*): Simplify description of instruction buffer.
17317 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
17318 (cf_mem): Split into cf_mem1 and cf_mem2.
17319 (cf_v2_move_??): Rename to cfv12_alu_??.
17320 (cf_v2_move_l_??): Rename to cfv12_omove_??.
17321 (cf_v2_mul_??): Remove reservations.
17322 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
17323 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
17324 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
17325 appropriate place.
17326 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
17327 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
17328 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
17329 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
17330 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
17331 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
17332 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
17333 expansions of the above reservations for instructions of sizes
17334 1, 2 and 3 words.
17335
17336 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
17337
17338 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
17339
17340 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
17341
17342 * coverage.c: Include tree-pass.h.
17343 (coverage_counter_alloc): Print da_file_name to the dump file.
17344
17345 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
17346
17347 * sbitmap.c (sbitmap_range_empty_p): New function.
17348 * sbitmap.h (sbitmap_range_empty_p): New function.
17349 * bitmap.h: Now includes obstack.h.
17350
17351 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
17352 Kenneth Zadeck <zadeck@naturalbridge.com>
17353
17354 * dbgcnt.def (ra_byte_scan): Added.
17355 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
17356 when the last hit happens for a counter.
17357 * timevar.def (TV_DF_BYTE_LR): New variable.
17358 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
17359 * passes.c (pass_fast_rtl_byte_dce): New pass.
17360 * fwprop.c (update_df): Added mode to call df_ref_create.
17361 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
17362 DF_REF_EXTRACT_OFFSET.
17363 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
17364 DF_BYTE_LR_OUT, df_byte_lr): New macro.
17365 (df_mm): New enum.
17366 (df_ref_extract): Added mode field.
17367 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
17368 DF_REF_EXTRACT_OFFSET.
17369 (DF_REF_EXTRACT_MODE): New macro.
17370 (df_byte_lr_bb_info): New structure.
17371 (df_print_byte_regset, df_compute_accessed_bytes,
17372 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
17373 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
17374 df_byte_lr_simulate_uses,
17375 df_byte_lr_simulate_artificial_refs_at_top,
17376 df_byte_lr_simulate_artificial_refs_at_end,
17377 df_compute_accessed_bytes): New function.
17378 (df_ref_create): Add parameter.
17379 (df_byte_lr_get_bb_info): New inline function.
17380 * df-scan.c (df_ref_record, df_uses_record,
17381 df_ref_create_structure): Added mode parameter.
17382 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
17383 df_defs_record, df_uses_record, df_get_conditional_uses,
17384 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
17385 df_entry_block_defs_collect, df_exit_block_uses_collect):
17386 Added mode parameter to calls to df_ref_record, df_uses_record,
17387 df_ref_create_structure.
17388 (df_ref_equal_p, df_ref_compare): Added test for modes.
17389 (df_ref_create_structure): Added code to set mode. Renamed
17390 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
17391 DF_REF_EXTRACT_OFFSET.
17392 * df-core.c (df_print_byte_regset): New function.
17393 * df-byte-scan.c: New file.
17394 * df-problems.c (df_rd_transfer_function): Removed unnecessary
17395 calls to BITMAP_FREE.
17396 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
17397 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
17398 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
17399 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
17400 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
17401 df_byte_lr_local_compute, df_byte_lr_init,
17402 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
17403 df_byte_lr_transfer_function, df_byte_lr_free,
17404 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
17405 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
17406 df_byte_lr_simulate_uses,
17407 df_byte_lr_simulate_artificial_refs_at_top,
17408 df_byte_lr_simulate_artificial_refs_at_end): New function.
17409 * dce.c (byte_dce_process_block): New function.
17410 (dce_process_block): au is now passed in rather than computed
17411 locally. Changed loops that look at artificial defs to not look
17412 for conditional or partial ones, because there never are any.
17413 (fast_dce): Now is able to drive byte_dce_process_block or
17414 dce_process_block depending on the kind of dce being done.
17415 (rest_of_handle_fast_dce): Add parameter to fast_dce.
17416 (rest_of_handle_fast_byte_dce): New function.
17417 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
17418 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
17419
17420 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
17421
17422 PR fortran/35019
17423 * gcc.h: Added fortran options that take arguments to
17424 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
17425 macros.
17426
17427 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
17428
17429 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
17430 scalarization if on the LHS and not a full access.
17431
17432 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17433
17434 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
17435
17436 2008-04-18 Rafael Espíndola <espindola@google.com>
17437
17438 * tree-vrp.c (find_case_label_index): Fix the binary search.
17439 (find_case_label_range): New.
17440 (vrp_visit_switch_stmt): Use find_case_label_range.
17441 (simplify_switch_using_ranges): Use find_case_label_range.
17442
17443 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
17444
17445 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
17446 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
17447
17448 2008-04-18 Tom Tromey <tromey@redhat.com>
17449
17450 PR libcpp/15500:
17451 * doc/cpp.texi (Implementation-defined behavior): Mention
17452 -finput-charset.
17453
17454 2008-04-18 Ian Lance Taylor <iant@google.com>
17455
17456 * fold-const.c (pointer_may_wrap_p): New static function.
17457 (fold_comparison): Add another test for pointer overflow. Use
17458 pointer_may_wrap_p to disable some false positives.
17459
17460 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
17461
17462 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
17463 (fname_as_string): Match updated cpp_interpret_string prototype.
17464 (fix_string_type): Support char16_t* and char32_t*.
17465 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
17466 derivative) nodes. Register as builtin if C++0x.
17467 (c_parse_error): Support CPP_CHAR{16,32}.
17468 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
17469 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
17470 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
17471 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
17472 CTI_CHAR32_ARRAY_TYPE>: New elements.
17473 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
17474 char32_type_node, signed_char32_type_node, char16_array_type_node,
17475 char32_array_type_node): New defines.
17476 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
17477 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
17478 (lex_string): Support CPP_STRING{16,32}, match updated
17479 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
17480 (lex_charconst): Support CPP_CHAR{16,32}.
17481 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
17482 and CPP_STRING{16,32}.
17483
17484 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
17485
17486 PR bootstrap/35457
17487 * aclocal.m4: Regenerate.
17488 * configure: Regenerate.
17489
17490 2008-04-18 Jan Hubicka <jh@suse.cz>
17491
17492 * except.c (dw2_size_of_call_site_table,
17493 sjlj_size_of_call_site_table): Use vector API for call_site_record.
17494
17495 * cgraphbuild.c (build_cgraph_edges): Update.
17496 * tree-pass.h: Update comment.
17497 * final.c (leaf_function_p): Update.
17498 (leaf_renumber_regs): Update.
17499 (rest_of_clean_state): Update.
17500 * omp-low.c (expand_omp_parallel): Update.
17501 * ipa-reference.c (analyze_function): Update.
17502 * reorg.c (find_end_label): Update.
17503 (optimize_skip): Update.
17504 (fill_simple_delay_slots): Update.
17505 (fill_simple_delay_slots): Update.
17506 (make_return_insns): Update.
17507 (dbr_schedule): Update.
17508 * gimple-low.c (record_vars_into): Update.
17509 * cfgbuild.c (make_edges): Update.
17510 * function.c (assign_stack_local): Update.
17511 (assign_parm_adjust_stack_rtl): Update.
17512 (locate_and_pad_parm): Update.
17513 (allocate_struct_function): Do not initialize stack_alignment_needed
17514 and preferred_stack_boundary here.
17515 (stack_protect_prologue): Update.
17516 (stack_protect_epilogue): Update.
17517 (expand_function_start): Initialize stack_alignment_needed,
17518 preferred_stack_boundary and max_jumptable_ents.
17519 (expand_function_end): Update.
17520 (free_after_compilation): Do not NULLify epilogue_delay_list.
17521 * function.h (struct rtl_data): Add stack_protect_guard,
17522 stack_alignment_needed,
17523 preferred_stack_boundary, epilogue_delay_list.
17524 (struct function): Remove value_histograms, stack_alignment_needed,
17525 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
17526 last_label_uid,
17527 unexpanded_var_list, stack_protect_guard.
17528 (current_function_epilogue_delay_list): Remove.
17529 * ipa-type-escape.c (analyze_function): Update.
17530 * gimplify.c (pop_gimplify_context): Update comment.
17531 * calls.c (expand_call): Update.
17532 (emit_library_call_value_1): Update.
17533 * except.c (set_nothrow_function_flags): Update.
17534 * cfgexpand.c (get_decl_align_unit): Update.
17535 (create_stack_guard): Update.
17536 (estimated_stack_frame_size): Update.
17537 (expand_used_vars): Update.
17538 (tree_expand_cfg): Free histogram earliers, init expansion variables.
17539 * explow.c (allocate_dynamic_stack_space): Update.
17540 * tree-ssa-live.c (remove_unused_locals): Update.
17541 * varasm.c (mark_constant_pool): Update.
17542 * tree-inline.c (remap_decls): Update.
17543 (initialize_cfun): Update.
17544 (declare_return_variable): Update.
17545 (inline_forbidden_p): Update.
17546 (expand_call_inline): Update.
17547 (declare_inline_vars): Update.
17548 (tree_function_versioning): Update.
17549 * tree-flow.h (value_histograms): New.
17550 (VALUE_HISTOGRAMS): New macro.
17551 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
17552 last_label_uid.
17553 * tree-cfg.c (set_bb_for_stmt): Update.
17554 (replace_by_duplicate_decl): Update.
17555 (move_block_to_fn): Update.
17556 (new_label_mapper): Update.
17557 (dump_function_to_file): Update.
17558 * ipa-struct-reorg.c (build_data_structure): Update.
17559 * cfgrtl.c (print_rtl_with_bb): Update.
17560 * reload1.c (reload): Update.
17561 (reload): Update.
17562 * config/i386/i386.c (setup_incoming_varargs_64,
17563 ix86_compute_frame_layout): Update.
17564 * config/arc/arc.c (arc_output_function_epilogue): Update.
17565
17566 2008-04-18 Marius Strobl <marius@FreeBSD.org>
17567
17568 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
17569 for FreeBSD as well.
17570 * gthr-posix95.h: Likewise.
17571
17572 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
17573
17574 PR rtl-optimization/35838
17575 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
17576 out the byte offset of the first subreg.
17577
17578 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
17579
17580 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
17581 to split_ti instead of three separate calls with single member arrays.
17582 (subti3 splitter): Ditto.
17583 (adddi3 splitter): Ditto with split_di.
17584 (subdi3 splitter): Ditto.
17585 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
17586 two separate calls with single member arrays. Swap match_dup
17587 operands 1 and 2 to better fit into the array.
17588 (negdi2 splitter): Ditto with split_di.
17589 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
17590 two separate calls with single member arrays. Swap match_dup operands
17591 6 and 7 to better fit into the array.
17592
17593 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
17594
17595 * config/i386/i386.c (sse_builtin_type): New.
17596 (bdesc_sse_args): Likewise.
17597 (bdesc_sse_3arg): Removed.
17598 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
17599 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
17600 IX86_BUILTIN_ROUNDPS.
17601 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
17602 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
17603 IX86_BUILTIN_ROUNDPS.
17604 (ix86_expand_sse_4_operands_builtin): Removed.
17605 (ix86_expand_sse_operands_builtin): New.
17606 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
17607 and CODE_FOR_sse4_1_roundps.
17608 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
17609 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
17610
17611 2008-04-17 Alan Modra <amodra@bigpond.net.au>
17612
17613 PR target/35907
17614 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
17615 regs before frame pop when needed. If use_backchain_to_restore_sp
17616 then load backchain into a temp reg to restore vr and vrsave. Add
17617 code to restore vr after frame pop if possible.
17618
17619 2008-04-17 Richard Guenther <rguenther@suse.de>
17620
17621 * tree-vn.c (expressions_equal_p): Do not check type
17622 equality or compatibility before calling operand_equal_p.
17623 * fold-const.c (operand_equal_p): Check equivalence of
17624 integer constants before bailing out due to signedness or
17625 precision differences.
17626 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
17627 spurious differences in type qualification. Ignore types
17628 for COMPONENT_REFs at all.
17629
17630 2008-04-17 Christian Bruel <christian.bruel@st.com>
17631
17632 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
17633 msw_skip comparison.
17634
17635 2008-04-16 Jakub Jelinek <jakub@redhat.com>
17636
17637 PR c/35739
17638 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
17639 reg type.
17640
17641 PR tree-optimization/35899
17642 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
17643 rather than TREE_OPERAND.
17644
17645 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
17646
17647 PR target/35944
17648 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
17649 temporary registers. Change operand predicate to general_operand.
17650 (remainderxf3): Ditto.
17651
17652 2008-04-16 Richard Guenther <rguenther@suse.de>
17653
17654 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
17655 * tree-affine.c (aff_combination_expand): Look through some
17656 conversions.
17657
17658 2008-04-15 Doug Kwan <dougkwan@google.com>
17659
17660 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
17661 for hex printing.
17662 * tree-pretty-print.c (dump_generic_node): Ditto.
17663 * final.c (output_addr_const): Ditto.
17664 * dwarf2out.c (output_cfi): Ditto.
17665 * c-pretty-print.c (pp_c_integer_constant): Ditto.
17666 * print-rtl.c (print_rtx): Ditto.
17667 * print-tree.c (print_node_brief, print_node): Ditto.
17668 * c-common.c (match_case_to_enum_1): Ditto.
17669 * sched-vis.c (print_value): Ditto.
17670 * config/i386/i386.c (print_operand): Cast to long unsigned int
17671 for hex printing.
17672
17673 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
17674 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
17675 MS Windows VirtualProtect function.
17676
17677 2008-04-15 Jan Hubicka <jh@suse.cz>
17678
17679 * gengtype.c (write_root): Param_is argument is OK.
17680 * expr.c (expand_expr_real_1): Update call of get_exception_*.
17681 * function.h: Include varray.h
17682 (rtl_eh): New stucture based on except.c one.
17683 (call_site_record): New forward declaration and vector type.
17684 * calls.c (emit_call_1): Do not call
17685 note_current_region_may_contain_throw.
17686 * except.c (eh_status): Remove cur_region, try_region since they are
17687 unused.
17688 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
17689 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
17690 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
17691 Remove call_site_data_used, call_site_data_size.
17692 Turn call_site_record into vector in function.h.
17693 (note_current_region_may_contain_throw): Remove.
17694 (get_exception_pointer, get_exception_filter): Do not take struct
17695 function argument; update.
17696 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
17697 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
17698 build_post_landing_pads, dw2_build_landing_pads,
17699 sjlj_assign_call_site_values, sjlj_mark_call_sites,
17700 sjlj_emit_function_enter, sjlj_emit_function_enter,
17701 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
17702 sjlj_build_landing_pads, finish_eh_generation,
17703 remove_exception_handler_label, remove_eh_handler,
17704 maybe_remove_eh_handler, add_reachable_handler,
17705 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
17706 add_action_record, collect_one_action_chain, add_call_site,
17707 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
17708 sjlj_output_call_site_table, output_function_exception_table,
17709 * except.h (note_current_region_may_contain_throw): Remove
17710 (get_exception_pointer, get_exception_filter): Do not take struct
17711 function argument.
17712 * Makefile.in (GTFILES): Put varargs before struct function.
17713
17714 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
17715
17716 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
17717 punt for STRING_CST.
17718 (get_constraint_for): Deal with STRING_CST here instead.
17719
17720 2008-04-15 Richard Guenther <rguenther@suse.de>
17721
17722 * tree-ssa-propagate.c (substitute_and_fold): Substitute
17723 statements in a basic-block with a backward walk. Do not
17724 substitute into dead statements but instead remove those.
17725
17726 2008-04-15 Richard Guenther <rguenther@suse.de>
17727
17728 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
17729 to zero, thus disable creation of SFTs.
17730
17731 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
17732
17733 * tree-predcom.c (suitable_reference_p): Return false if the
17734 reference can throw.
17735
17736 2008-04-15 Jakub Jelinek <jakub@redhat.com>
17737
17738 PR c/35751
17739 * c-decl.c (finish_decl): If extern or static var has variable
17740 size, set TREE_TYPE (decl) to error_mark_node.
17741
17742 2008-04-15 Rafael Espíndola <espindola@google.com>
17743
17744 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
17745 variable arg1.
17746
17747 2008-04-15 Richard Guenther <rguenther@suse.de>
17748
17749 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
17750 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
17751 (visit_reference_op_load): Do walk vuse-vdef chains on
17752 vn_reference_lookup.
17753 (visit_reference_op_store): But do not here.
17754 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
17755 vn_reference_lookup.
17756 (vn_lookup_with_vuses): But do so here.
17757
17758 2008-04-14 Ian Lance Taylor <iant@google.com>
17759
17760 * fold-const.c (fold_overflow_warning): Remove assertion.
17761
17762 2008-04-15 Ben Elliston <bje@au.ibm.com>
17763
17764 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
17765 temp1 local variables.
17766
17767 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
17768
17769 PR target/35661
17770 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
17771 ".text.unlikely" section as executable.
17772
17773 2008-04-14 James E. Wilson <wilson@tuliptree.org>
17774
17775 * config/ia64/ia64.c (rtx_needs_barrier): Handle
17776 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
17777 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
17778 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
17779 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
17780 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
17781 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
17782
17783 2008-04-14 Ian Lance Taylor <iant@google.com>
17784
17785 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
17786 * fold-const.c (fold_comparison): If appropriate, test
17787 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
17788 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
17789 reassociating a pointer type.
17790 * doc/invoke.texi (Optimize Options): Document that
17791 -fstrict-overflow applies to pointer wraparound.
17792
17793 2008-04-13 Jan Hubicka <jh@suse.cz>
17794
17795 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
17796
17797 2008-04-12 Andrew Pinski <pinskia@gmail.com>
17798
17799 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
17800 we are going to "save the world".
17801
17802 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
17803
17804 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
17805 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
17806 operand 0 constraint, not "=".
17807
17808 2008-04-11 James E. Wilson <wilson@tuliptree.org>
17809
17810 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
17811
17812 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
17813
17814 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
17815 of size of positions_needed * CHAR_BIT.
17816
17817 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
17818
17819 PR middle-end/35897
17820 * dse.c (store_info): Change positions_needed to unsigned
17821 HOST_WIDE_INT.
17822 (lowpart_bitmask): New.
17823 (record_store): Cast to unsigned HOST_WIDE_INT for
17824 positions_needed. Assert width <= size of positions_needed *
17825 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
17826 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
17827 lowpart_bitmask to set mask.
17828
17829 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
17830
17831 * config/bfin/constraints.md: New file.
17832 * config/bfin/bfin.md: Include it.
17833 (adddi3): Use satisfies_constraint functions instead of the old macros.
17834 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
17835 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
17836 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
17837 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
17838 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
17839 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
17840 EXTRA_CONSTRAINT): Delete.
17841 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
17842 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
17843 of the old macros.
17844 * config/bfin/bfin.c: Include "tm-constrs.h".
17845 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
17846 Use satisfies_constraint functions instead of the old macros.
17847 * doc/md.texi (Blackfin Constraints): Update file name reference.
17848
17849 2008-04-11 Richard Guenther <rguenther@suse.de>
17850
17851 PR tree-optimization/35869
17852 * tree-vrp.c (execute_vrp): Move switch statement update after
17853 jump threading. Schedule another cfg cleanup run.
17854
17855 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
17856
17857 PR c/35744
17858 * attribs.c (decl_attributes): Return early on errorneous node.
17859
17860 2008-04-10 Oleg Ryjkov <olegr@google.com>
17861
17862 * tree.h (struct tree_base): Added a new flag default_def_flag.
17863 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
17864
17865 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
17866
17867 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
17868
17869 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17870
17871 PR target/35768
17872 * pa.md: Define mode iterator P. Define mode attribute dwc.
17873 (dcacheflush): Update pattern to use iterator P and attribute dwc.
17874 (icacheflush): Likewise.
17875 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
17876 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
17877
17878 2008-04-11 Ben Elliston <bje@au.ibm.com>
17879
17880 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
17881
17882 2008-04-10 Rafael Espíndola <espindola@google.com>
17883
17884 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
17885 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
17886 (extract_range_from_expr): The same.
17887
17888 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
17889
17890 * config/mips/mips.md (GPR2): New mode iterator.
17891 (seq): Add comment.
17892 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
17893 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
17894 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
17895 Rewrite these to take two modes, the mode of comparison and the
17896 mode of the destination.
17897 * config/mips/mips.c (mips_expand_scc): Instead of having
17898 paradoxical subreg as destination, expand "narrowing" scc if mode
17899 of comparison is SI and target is requested in DI mode.
17900 (mips_emit_int_order_test): Update comment. Make mode of
17901 comparison match CMP0 rather than TARGET. When creating inverse
17902 target use mode of TARGET.
17903
17904 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
17905
17906 * gcov-dump.c (tag_summary): Only print summaries for the first
17907 GCOV_COUNTERS_SUMMABLE counters.
17908
17909 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
17910
17911 * config/i386/i386.md (absneg): New code iterator.
17912 (absnegprefix): New code attribute.
17913 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
17914 patterns using absneg code iterator.
17915 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
17916 using absneg code iterator.
17917 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
17918 *neg<mode>2 patterns using absneg code iterator.
17919 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
17920 *negextendsfdf2 patterns using absneg code iterator.
17921 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
17922 *negextendsfxf2 patterns using absneg code iterator.
17923 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
17924 *negextendsfdf2 patterns using absneg code iterator.
17925 * config/i386/sse.md (<code><mode>2): Macroize expander from
17926 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
17927
17928 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
17929
17930 * config/s390/s390.h: Remove the remains of the recent search
17931 & replace action of current_function_outgoing_args_size.
17932
17933 2008-04-10 Ira Rosen <irar@il.ibm.com>
17934
17935 PR tree-optimization/35821
17936 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
17937 NEW_STMT_LIST is not NULL.
17938
17939 2008-04-09 David Edelsohn <edelsohn@gnu.org>
17940
17941 PR libstdc++/35597
17942 * toplev.c (process_options): Remove -ffunction-sections debugging
17943 warning.
17944
17945 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
17946
17947 PR middle-end/PR28690
17948 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
17949 than gen_rtx_fmt_ee to perform more canonicalizations.
17950
17951 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17952
17953 PR driver/35665
17954 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
17955
17956 2008-04-09 Richard Guenther <rguenther@suse.de>
17957
17958 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
17959 (dump_function_to_file): Dump function arguments with types.
17960
17961 2008-04-08 Richard Guenther <rguenther@suse.de>
17962
17963 * fold-const.c (fold_widened_comparison): Do not allow
17964 sign-changes that change the result.
17965
17966 2008-04-08 Janis Johnson <janis187@us.ibm.com>
17967
17968 PR target/35839
17969 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
17970 kinds of indirect references.
17971
17972 2008-04-08 David Edelsohn <edelsohn@gnu.org>
17973
17974 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
17975 GNU Fortran language string.
17976
17977 2008-04-08 Rafael Espíndola <espindola@google.com>
17978
17979 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
17980 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
17981 * tree.h (tree_call_nonnegative_warnv_p): New.
17982
17983 2008-04-08 Jan Hubicka <jh@suse.cz>
17984
17985 * function.c (free_after_compilation): Clear out regno_reg_rtx
17986 pointer.
17987
17988 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
17989
17990 Revert
17991 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
17992
17993 PR middle-end/PR28690
17994 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
17995 same precedence as REG_POINTER and MEM_POINTER operands.
17996
17997 2008-04-08 Richard Guenther <rguenther@suse.de>
17998
17999 PR middle-end/35834
18000 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
18001 for adding index to base.
18002
18003 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
18004
18005 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
18006 (MINGW_ENABLE_EXECUTE_STACK): New.
18007 (IN_LIBGCC2): For libgcc include windows.h file for
18008 function declarations.
18009
18010 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
18011
18012 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
18013 and tem2 if tem1 is not a REG or MULT.
18014
18015 2008-04-08 Jan Hubicka <jh@suse.cz>
18016
18017 * function.h (incomming_args): Break out of struct function.
18018 (function_subsections): Break out of struct function.
18019 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
18020 return_rtx and hard_reg_initial_vals from struct function.
18021 Kill inl_max_label_num.
18022 (current_function_pops_args, current_function_args_info,
18023 current_function_args_size, current_function_args_size,
18024 current_function_pretend_args_size,
18025 current_function_outgoing_args_size,
18026 current_function_internal_arg_pointer, current_function_return_rtx):
18027 Kill compatibility accestor macros.
18028 * builtins.c (expand_builtin_apply_args_1): Update.
18029 (expand_builtin_next_arg): Update.
18030 * df-scan.c (df_get_call_refs): Update.
18031 * dbxout.c (dbxout_function_end): Update.
18032 * dwarf2out.c (dwarf2out_switch_text_section): Update.
18033 (output_line_info): Update.
18034 (secname_for_decl): Update.
18035 (dwarf2out_var_location): Update.
18036 * function.c (free_after_compilation): Update.
18037 (assign_parm_find_stack_rtl): Update.
18038 (assign_parms): Update.
18039 (expand_dummy_function_end): Update.
18040 (expand_function_end): Update.
18041 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
18042 (expand_call): Update.
18043 (emit_library_call_value_1): Update.
18044 (store_one_arg): Update.
18045 * varasm.c (initialize_cold_section_name): Update.
18046 (unlikely_text_section): Update.
18047 (unlikely_text_section_p): Update.
18048 (assemble_start_function): Update.
18049 (assemble_end_function): Update.
18050 (default_section_type_flags): Update.
18051 (switch_to_section): Update.
18052 * integrate.c (set_decl_abstract_flags): Update.
18053 (get_hard_reg_initial_val): Update.
18054 (has_hard_reg_initial_val): Update.
18055 (allocate_initial_values): Update.
18056 * resource.c (init_resource_info): Update.
18057 * config/alpha/alpha.c (NUM_ARGS): Update.
18058 (direct_return): Update.
18059 (alpha_va_start): Update.
18060 (alpha_sa_size): Update.
18061 (alpha_initial_elimination_offset): Update.
18062 (alpha_expand_prologue): Update.
18063 (alpha_start_function): Update.
18064 (alpha_expand_epilogue): Update.
18065 (unicosmk_initial_elimination_offset):
18066 * config/alpha/alpha.md (call expander): Update.
18067 * config/s390/s390.c (s390_register_info): Update.
18068 (s390_register_info): Update.
18069 (s390_frame_info): Update.
18070 (s390_initial_elimination_offset): Update.
18071 (s390_build_builtin_va_list): Update.
18072 (s390_va_start): Update.
18073 * config/spu/spu.c (direct_return): Update.
18074 (spu_expand_prologue): Update.
18075 (spu_initial_elimination_offset): Update.
18076 (spu_build_builtin_va_list): Update.
18077 (spu_va_start): Update.
18078 * config/sparc/sparc.c (sparc_init_modes): Update.
18079 (sparc_compute_frame_size): Update.
18080 (function_value): Update.
18081 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
18082 * config/i386/i386.md (return expander): Update.
18083 * config/i386/i386.c (ix86_va_start): Update.
18084 (ix86_can_use_return_insn_p): Update.
18085 (ix86_compute_frame_layout): Update.
18086 (ix86_expand_epilogue): Update.
18087 * config/sh/sh.c (output_stack_adjust): Update.
18088 (calc_live_regs): Update.
18089 (sh_expand_prologue): Update.
18090 (sh_builtin_saveregs): Update.
18091 (sh_va_start): Update.
18092 (initial_elimination_offset): Update.
18093 (sh_allocate_initial_value): Update.
18094 (sh_function_ok_for_sibcall): Update.
18095 (sh_get_pr_initial_val): Update.
18096 * config/sh/sh.md (return expander): Update.
18097 * config/avr/avr.c (frame_pointer_required_p): UPdate.
18098 * config/crx/crx.c (crx_compute_frame): UPdate.
18099 (crx_initial_elimination_offset): UPdate.
18100 * config/xtensa/xtensa.c (compute_frame_size): Update
18101 (xtensa_builtin_saveregs): Update.
18102 (xtensa_va_start): Update.
18103 (order_regs_for_local_alloc): Update.
18104 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
18105 (xstormy16_expand_builtin_va_start): Update.
18106 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
18107 * config/m68hc11/m68hc11.md (return expanders): Update.
18108 * config/m68hc11/m68hc11.c (expand_prologue): Update.
18109 (expand_epilogue): Update.
18110 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
18111 (cris_simple_epilogue): Update.
18112 (cris_expand_prologue): Update.
18113 (cris_expand_epilogue): Update.
18114 * config/iq2000/iq2000.c (iq2000_va_start): Update.
18115 (compute_frame_size): Update.
18116 * config/mt/mt.c (mt_compute_frame_size): Update.
18117 * config/mn10300/mn10300.c (expand_prologue): Update.
18118 (expand_epilogue): Update.
18119 (initial_offset): Update.
18120 (mn10300_builtin_saveregs):
18121 * config/mn10300/mn10300.md (return expander): Update.
18122 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
18123 (ia64_initial_elimination_offset): Update.
18124 (ia64_initial_elimination_offset): Update.
18125 (ia64_expand_prologue): Update.
18126 * config/m68k/m68k.md (return expander): Update.
18127 * config/rs6000/rs6000.c (rs6000_va_start): Update.
18128 (rs6000_stack_info): Update.
18129 * config/mcore/mcore.c (layout_mcore_frame): Update.
18130 (mcore_expand_prolog): Update.
18131 * config/arc/arc.c (arc_compute_frame_size): Update.
18132 * config/score/score3.c (score3_compute_frame_size): Update.
18133 * config/score/score7.c (score7_compute_frame_size): Update.
18134 * config/arm/arm.c (use_return_insn): Update.
18135 (thumb_find_work_register): Update.
18136 (arm_compute_save_reg_mask): Update.
18137 (arm_output_function_prologue): Update.
18138 (arm_output_epilogue): Update.
18139 (arm_size_return_regs): Update.
18140 (arm_get_frame_offsets): Update.
18141 (arm_expand_prologue): Update.
18142 (thumb_exit): Update.
18143 (thumb_unexpanded_epilogue): Update.
18144 (thumb1_output_function_prologue): Update.
18145 * config/pa/pa.md (return expander): Update.
18146 * config/pa/pa.c (compute_frame_size): Update.
18147 (hppa_builtin_saveregs): Update.
18148 * config/mips/mips.c (mips_va_start): Update.
18149 (mips16_build_function_stub): Update.
18150 (mips_compute_frame_info): Update.
18151 (mips_restore_gp): Update.
18152 (mips_output_function_prologue): Update.
18153 (mips_expand_prologue): Update.
18154 * config/v850/v850.c (compute_frame_size): Update.
18155 (expand_prologue): * config/mmix/mmix.c (along): update.
18156 (mmix_initial_elimination_offset): update.
18157 (mmix_reorg): update.
18158 (mmix_use_simple_return): update.
18159 (mmix_expand_prologue): update.
18160 (mmix_expand_epilogue): Update.
18161 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
18162 (emit_link_insn): Update.
18163
18164 2008-04-08 Anatoly Sokolov <aesok@post.ru>
18165
18166 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
18167 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
18168 instructions.
18169 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
18170 atmega103 device.
18171
18172 2008-04-07 Jan Hubicka <jh@suse.cz>
18173
18174 * function.h (rtl): Rename to x_rtl.
18175 (crtl): New define.
18176 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
18177 frame_offset, stack_check_probe_note, arg_pointer_save_area,
18178 used_temp_slots avail_temp_slots, temp_slot_level,
18179 nonlocal_goto_handler_labels): Update accesstors.
18180 (rtl): New global variable.
18181 (struct function): Move some fileds to rtl_data.
18182 (get_arg_pointer_save_area): Update prototype.
18183 * builtins.c (expand_builtin_setjmp_receiver): Update call of
18184 get_arg_pointer_save_area.
18185 * expr.c (init_expr): Update
18186 * function.c (get_frame_size): Update
18187 (assign_stack_local): Update
18188 (expand_function_end): Update.
18189 (get_art_pointer_save_area): Update
18190 * function.h
18191 * emit-rtl.c (rtl): Declare.
18192 (regno_reg_rtx): Declare.
18193 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
18194 Update.
18195 (gen_reg_rtx): Update.
18196 * varasm.c (n_deferred_constatns): Update accestor.
18197 (init_varasm_status): Do not allocate varasm_status.
18198 (force_const_mem, get_pool_size, output_constant_pool): Update.
18199 * stmt.c (force_label_rtx): Do not use x_ prefixes.
18200 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
18201 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
18202 * sparc/sparc.h (INIT_EXPANDERS): Update.
18203 * ia64/ia64.h (INIT_EXPANDERS): Update.
18204
18205 2008-04-07 James E. Wilson <wilson@tuliptree.org>
18206
18207 * reload.c (push_secondary_reload): Add missing break to for loop.
18208
18209 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
18210
18211 PR middle-end/PR28690
18212 * rtlanal.c: Update copyright years.
18213 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
18214 as REG_POINTER and MEM_POINTER operands.
18215 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
18216 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
18217 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
18218 * gcse.c: Update copyright years.
18219 (pre_delete): Call gen_reg_rtx_and_attrs.
18220 (hoist_code): Likewise.
18221 (build_store_vectors): Likewise.
18222 (delete_store): Likewise.
18223 * loop-invariant.c (move_invariant_reg): Likewise.
18224 Update copyright years.
18225
18226 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
18227
18228 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
18229 control string instead of quoted.
18230
18231 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
18232
18233 * doc/rtl.texi: Rewrite of subreg section.
18234
18235 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
18236
18237 PR/35842
18238 * config/i386/i386.c (legitimize_pic_address): Add treating
18239 of dllimport SYM_REF's.
18240 (legitimize_dllimport_symbol): Add prototype.
18241
18242 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
18243
18244 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
18245 reference in constructor with non self-referential type.
18246
18247 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
18248
18249 Removal of Return with Depressed Stack Pointer support
18250 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
18251 (ECF_SP_DEPRESSED): Likewise.
18252 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
18253 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
18254 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
18255 (expand_call): Do not test ECF_SP_DEPRESSED.
18256 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
18257 * function.c (keep_stack_depressed): Delete.
18258 (handle_epilogue_set): Likewise.
18259 (update_epilogue_consts): Likewise.
18260 (emit_equiv_load): Likewise.
18261 (thread_prologue_and_epilogue_insns): Remove support for Return with
18262 Depressed Stack Pointer.
18263 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
18264
18265 2008-04-06 Richard Guenther <rguenther@suse.de>
18266
18267 PR tree-optimization/35400
18268 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
18269 information from SSA_NAMEs.
18270
18271 2008-04-06 Anatoly Sokolov <aesok@post.ru>
18272
18273 * config/avr/avr.h (avr_mega_p): Remove declaration.
18274 (AVR_MEGA): Remove macro.
18275 * config/avr/avr.c (avr_mega_p): Remove variable.
18276 (avr_override_options): Remove inicializion of avr_mega_p.
18277 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
18278 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
18279 (avr_jump_mode): (Ditto.).
18280 (avr_output_progmem_section_asm_op): (Ditto.).
18281 (avr_asm_init_sections): (Ditto.).
18282 (avr_asm_init_sections): (Ditto.).
18283 (avr_rtx_costs): (Ditto.).
18284 * config/avr/avr.md: (Ditto.).
18285 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
18286 '__AVR_MEGA__'.
18287
18288 2008-04-06 Richard Guenther <rguenther@suse.de>
18289
18290 PR tree-optimization/35842
18291 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
18292 is_gimple_invariant_address.
18293
18294 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18295
18296 * gcc.c (default_compilers): Sync Fortran extensions list with
18297 that in fortran/lang-specs.h.
18298 * doc/invoke.texi: Likewise.
18299 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
18300 * dwarf2out.c (gen_compile_unit_die): Likewise.
18301
18302 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
18303
18304 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
18305
18306 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
18307
18308 PR target/12329
18309 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
18310 attribute is used for nested functions.
18311
18312 2008-04-05 Jan Hubicka <jh@suse.cz>
18313
18314 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
18315
18316 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
18317 letter argument.
18318 (dump_files): Update.
18319 (enable_rtl_dump_file): Do not accept letter argument.
18320 * tree-pass.h (dump_file_info): Remove letter argument.
18321 * toplev.c (decode_d_option): Update -da handling.
18322 * toplev.h (enable_rtl_dump_file): Update prototype.
18323 * passes.c (register_one_dump_file): Do not accept IPA argument; work
18324 it out based on pass type.
18325 (register_dump_files_1): Likewise.
18326 (init_optimization_passes): Update register_one_dump_file calls.
18327 (execute_one_pass): Sanity check that IPA passes are called at IPA
18328 level and RTL passes at RTL level.
18329 (execute_pass_list): IPA pass can not be after or subpass of
18330 GIMPLE/RTL pass.
18331 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
18332 disallov RTL subpasses of IPA subpasses.
18333
18334 2008-04-05 Ben Elliston <bje@au.ibm.com>
18335
18336 * tree-cfg.c (need_fake_edge_p): Return false for calls to
18337 builtins that return exactly once and do not throw. Cache call to
18338 call_expr_flags.
18339
18340 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
18341
18342 PR rtl-optimization/34916
18343 PR middle-end/35519
18344 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
18345 between instruction pairs.
18346
18347 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
18348
18349 * doc/invoke.texi: Document -mbitops for SH.
18350 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
18351 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
18352 * config/sh/sh.c (print_operand): Add %t operand code.
18353 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
18354 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
18355 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
18356 (extendqihi2): Likewise.
18357 (movqi_i): Likewise.
18358 (insv): Use bset, bclr and bst instructions for SH2A if possible.
18359 (extv): Use bld instruction for SH2A if possible.
18360 (extzv): Likewise.
18361 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
18362 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
18363 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
18364 (bset.b, bclr.b): Define peepholes.
18365 * config/sh/sh.opt (mbitops): New option.
18366
18367 2008-04-04 Janis Johnson <janis187@us.ibm.com>
18368
18369 PR target/35620
18370 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
18371 and view convert expression.
18372
18373 2008-04-04 Jakub Jelinek <jakub@redhat.com>
18374
18375 PR target/35364
18376 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
18377
18378 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
18379
18380 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
18381
18382 * config/i386/cpuid.h (bit_AES): New.
18383 (bit_PCLMUL): Likewise.
18384
18385 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
18386 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
18387 SSE2 if AES or PCLMUL is enabled.
18388 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
18389 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
18390 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
18391 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
18392 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
18393 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
18394 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
18395 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
18396 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
18397 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
18398 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
18399 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
18400 __builtin_ia32_aeskeygenassist128 and
18401 __builtin_ia32_pclmulqdq128.
18402 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
18403 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
18404 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
18405
18406 * config/i386/i386.h (TARGET_AES): New.
18407 (TARGET_PCLMUL): Likewise.
18408 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
18409
18410 * config/i386/i386.md (UNSPEC_AESENC): New.
18411 (UNSPEC_AESENCLAST): Likewise.
18412 (UNSPEC_AESDEC): Likewise.
18413 (UNSPEC_AESDECLAST): Likewise.
18414 (UNSPEC_AESIMC): Likewise.
18415 (UNSPEC_AESKEYGENASSIST): Likewise.
18416 (UNSPEC_PCLMUL): Likewise.
18417
18418 * config/i386/i386.opt (maes): New.
18419 (mpclmul): Likewise.
18420
18421 * config/i386/sse.md (aesenc): New pattern.
18422 (aesenclast): Likewise.
18423 (aesdec): Likewise.
18424 (aesdeclast): Likewise.
18425 (aesimc): Likewise.
18426 (aeskeygenassist): Likewise.
18427 (pclmulqdq): Likewise.
18428
18429 * config/i386/wmmintrin.h: New.
18430
18431 * doc/extend.texi: Document AES and PCLMUL built-in function.
18432
18433 * doc/invoke.texi: Document -maes and -mpclmul.
18434
18435 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
18436
18437 * function.c (free_after_parsing): Replace with
18438 cxx_push_function_context from C++ front-end.
18439 (allocate_struct_function): Don't call langhook.
18440 * langhooks.h (struct lang_hooks_for_functions): Delete.
18441 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
18442 member "function".
18443 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
18444 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
18445 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
18446 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
18447 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
18448 remove LANG_HOOKS_FUNCTION_INITIALIZER.
18449 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
18450
18451 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
18452 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
18453
18454 2008-04-04 Jakub Jelinek <jakub@redhat.com>
18455
18456 PR c/35440
18457 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
18458 for all types.
18459
18460 2008-04-04 Richard Guenther <rguenther@suse.de>
18461
18462 PR middle-end/35823
18463 * fold-const.c (optimize_minmax_comparison): Use the correct
18464 type for the constant in the simplified comparison.
18465
18466 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
18467
18468 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
18469 Pass L2 size as "--param l2-cache-size" to the compiler.
18470 (decode_l2_cache): New function to decode L2 cache parameters using
18471 0x8000006 extended cpuid function.
18472 (detect_caches_amd): Determine parameters of L2 cache using
18473 decode_l2_caches function.
18474 (decode_caches_intel): Decode L2 cache parameters.
18475 (detect_caches_intel): Determine L2 cache parameters using
18476 decode_caches_intel and decode_l2_caches functions.
18477
18478 2008-04-03 Bob Wilson <bob.wilson@acm.org>
18479
18480 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
18481 secondary input reload for subword loads from the constant pool.
18482
18483 2008-04-03 Janis Johnson <janis187@us.ibm.com>
18484
18485 PR target/35713
18486 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
18487 constants of the appropriate size for runtime calculations.
18488
18489 PR c/35712
18490 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
18491 decimal-float literal constant zero.
18492
18493 2008-04-03 Jakub Jelinek <jakub@redhat.com>
18494
18495 PR c/35738
18496 * c-parser.c (c_parser_omp_atomic): Call
18497 default_function_array_conversion on the RHS.
18498
18499 PR middle-end/35818
18500 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
18501 call is_variable_sized if decl has incomplete type.
18502
18503 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
18504
18505 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
18506
18507 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
18508
18509 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
18510 iterators.
18511 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
18512 (sgt<u>): Merge sgt and sgtu into new expander.
18513 (sgt, sgtu): Remove expanders.
18514 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
18515 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
18516 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
18517 *sgtu_<mode>_mips16 into new pattern.
18518 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
18519 (sge<u>): Merge sge and sgeu into new expander.
18520 (sge, sgeu): Remove expanders.
18521 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
18522 new pattern.
18523 (*sge_<mode>, second *sge_<mode>): Remove patterns.
18524 (slt<u>): Merge slt and sltu into new expander.
18525 (slt, sltu): Remove expanders.
18526 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
18527 (*slt_<mode>, *sltu_<mode>): Remove patterns.
18528 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
18529 *sltu_<mode>_mips16 into new pattern.
18530 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
18531 (sle<u>): Merge sle and sleu into new expander.
18532 (sle, sleu): Remove expanders.
18533 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
18534 (*sle_<mode>, *sleu_<mode>): Remove patterns.
18535 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
18536 *sleu_<mode>_mips16 into new pattern.
18537 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
18538
18539 2008-04-03 Jan Hubicka <jh@suse.cz>
18540
18541 PR tree-optimization/35795
18542 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
18543 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
18544 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
18545 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
18546 * score/score3.c (score3_output_mi_thunk): Likewise.
18547 * score/score7.c (score7_output_mi_thunk): Likewise.
18548 * mips/mips.c (mips_output_mi_thunk): Likewise.
18549
18550 2008-04-03 Richard Guenther <rguenther@suse.de>
18551
18552 * tree-vrp.c (extract_range_from_unary_expr): Handle all
18553 conversions. Simplify code.
18554
18555 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
18556
18557 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
18558
18559 2008-04-03 Tom Tromey <tromey@redhat.com>
18560 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18561
18562 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
18563 * config/bfin/t-bfin-linux (generated_files): Add
18564 linux-sysroot-suffix.h.
18565 * doc/install.texi (Prerequisites): Require make 3.80.
18566 * doc/sourcebuild.texi (Front End Directory): Document new
18567 variable.
18568 * Makefile.in (generated_files): New variable.
18569 (ALL_HOST_OBJS): New variable.
18570 ($(ALL_HOST_OBJS)): New target.
18571
18572 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
18573
18574 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
18575 (remap_block): Call id->transform_lang_insert_block instead
18576 of langhook.
18577 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
18578 Set id.transform_lang_insert_block to NULL.
18579 (clone_body): Move to cp/optimize.c
18580 * tree-inline.h (struct copy_body_data): Change
18581 transform_lang_insert_block to function pointer.
18582 (copy_generic_body, copy_decl_no_change): Export.
18583 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
18584 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
18585 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
18586
18587 * c-tree.h (insert_block): Kill.
18588 * c-decl.c (insert_block): Kill.
18589
18590 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
18591
18592 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
18593 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
18594 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
18595 argument.
18596 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
18597 argument, call {push,pop}_function_context from here.
18598 * c-parser.c: Use c_{push,pop}_function_context.
18599
18600 * function.c (push_function_context_to): Move meat ...
18601 (push_function_context): ... here. Simplify.
18602 * function.c (pop_function_context_from): Move meat ...
18603 (pop_function_context): ... here. Simplify.
18604 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
18605 leave_nested).
18606 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
18607 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
18608 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
18609 * tree.h (push_function_context_to, pop_function_context_from): Remove.
18610
18611 2008-04-03 Ben Elliston <bje@au.ibm.com>
18612
18613 * expmed.c (extract_force_align_mem_bit_field): Remove.
18614
18615 2008-04-03 Richard Guenther <rguenther@suse.de>
18616
18617 PR middle-end/35800
18618 * expr.h (try_casesi): Adjust prototype.
18619 * expr.c (try_casesi): Take fallback label as extra parameter.
18620 Use that for gen_casesi if default_label is NULL.
18621 * stmt.c (expand_case): Pass fallback label to try_casesi,
18622 make sure to fill gaps with a fallback label if default_label
18623 is not present.
18624
18625 2008-04-03 Dominique d'Humières <dominiq@lps.ens.fr>
18626
18627 PR target/35801
18628 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
18629
18630 2008-04-03 Ben Elliston <bje@au.ibm.com>
18631
18632 * expmed.c (extract_split_bit_field): Remove if (0) code.
18633 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
18634 (do_ds_constraint): Likewise.
18635
18636 2008-04-02 Joseph Myers <joseph@codesourcery.com>
18637
18638 * doc/cppopts.texi (-dU): Document.
18639 * c-common.h (flag_dump_macros): Update comment.
18640 * c-opts.c (handle_OPT_d): Handle -dU.
18641 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
18642 dump_queued_macros, cb_used_define, cb_used_undef): New.
18643 (init_pp_output): Handle -dU.
18644 (cb_line_change): Call dump_queued_macros.
18645 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
18646
18647 2008-04-02 Anatoly Sokolov <aesok@post.ru>
18648
18649 * config/avr/predicates.md (io_address_operand): New predicate.
18650 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
18651 * config/avr/avr.c (avr_io_address_p): Remove function.
18652 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
18653 'avr_io_address_p' function.
18654 (out_movhi_r_mr): (Ditto.).
18655 (out_movqi_mr_r): (Ditto.).
18656 (out_movhi_mr_r): (Ditto.).
18657 (avr_address_cost): (Ditto.).
18658
18659 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
18660
18661 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
18662 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
18663 in 32bit mode when XMM registers are available to avoid store
18664 forwarding stalls.
18665 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
18666 corresponding post-reload splitters.
18667
18668 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
18669
18670 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
18671 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
18672 __builtin_ia32_roundss.
18673 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
18674 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
18675 __builtin_ia32_roundss.
18676 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
18677 IX86_BUILTIN_SHUFPD here.
18678
18679 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
18680
18681 * config/i386/i386.md (plogic): New.
18682 (plogicprefix): Likewise.
18683
18684 * config/i386/mmx.md (mmx_<code><mode>3): New.
18685 (mmx_and<mode>3): Removed.
18686 (mmx_ior<mode>3): Likewise.
18687 (mmx_xor<mode>3): Likewise.
18688
18689 * config/i386/sse.md (<code><mode>3): New.
18690 (*<code><mode>3): Likewise.
18691 (*<code><mode>3): Likewise.
18692 (<code><mode>3): Likewise.
18693 (*sse_<code><mode>3): Likewise.
18694 (*sse2_<code><mode>3): Likewise.
18695 (<code>tf3): Likewise.
18696 (*<code>tf3): Likewise.
18697 (and<mode>3): Likewise.
18698 (*and<mode>3): Likewise.
18699 (ior<mode>3): Removed.
18700 (*ior<mode>3): Likewise.
18701 (xor<mode>3): Likewise.
18702 (*xor<mode>3): Likewise.
18703 (*and<mode>3): Likewise.
18704 (*ior<mode>3): Likewise.
18705 (*xor<mode>3): Likewise.
18706 (and<mode>3): Likewise.
18707 (*sse_and<mode>3): Likewise.
18708 (*sse2_and<mode>3): Likewise.
18709 (andtf3): Likewise.
18710 (*andtf3): Likewise.
18711 (ior<mode>3): Likewise.
18712 (*sse_ior<mode>3): Likewise.
18713 (*sse2_ior<mode>3): Likewise.
18714 (iortf3): Likewise.
18715 (*iortf3): Likewise.
18716 (xor<mode>3): Likewise.
18717 (*sse_xor<mode>3): Likewise.
18718 (*sse2_xor<mode>3): Likewise.
18719 (xortf3): Likewise.
18720 (*xortf3): Likewise.
18721
18722 2008-04-02 Richard Guenther <rguenther@suse.de>
18723
18724 PR tree-optimization/14495
18725 PR tree-optimization/34793
18726 * tree-vrp.c (struct switch_update): New structure.
18727 (to_remove_edges, to_update_switch_stmts): New VECs.
18728 (simplify_switch_using_ranges): New function. Remove not taken
18729 case labels and edges.
18730 (simplify_stmt_using_ranges): Call it.
18731 (identify_jump_threads): Mark edges we have queued for removal
18732 so we don't thread them.
18733 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
18734 case label vector.
18735 * tree-cfg.c (group_case_labels): Deal with missing default label.
18736 (tree_verify_flow_info): Allow missing default label.
18737 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
18738 (emit_case_nodes): Likewise.
18739 (expand_case): Do not rely on the default label to be present.
18740 * expr.c (try_casesi): Deal with NULL default_label.
18741 (do_tablejump): Likewise.
18742
18743 2008-04-02 Richard Guenther <rguenther@suse.de>
18744
18745 PR tree-optimization/14495
18746 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
18747 SWITCH_EXPR here ...
18748 (vrp_visit_switch_stmt): ... but here (new function).
18749 (find_case_label_index): New helper function.
18750 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
18751
18752 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
18753
18754 * fwprop.c: Fix ISO-C99ism.
18755
18756 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
18757
18758 PR bootstrap/35752
18759 * Makefile.in (objdir): Set it here.
18760 * configure.ac: Not here. Find dynamic linker characteristics.
18761 * exec-tool.in: Use them.
18762 * aclocal.m4: Regenerate.
18763 * configure: Regenerate.
18764
18765 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
18766
18767 * expr.c (expand_var): Delete it.
18768 * expr.h (expand_var): Delete prototype.
18769 * function.c (expand_function_start): Use expand_decl instead.
18770 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
18771 langhook.
18772
18773 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
18774
18775 PR rtl-optimization/35542
18776 * fwprop.c (forward_propagate_and_simplify): Replace
18777 loc_reg_mentioned_in_p with reg_mentioned_p.
18778
18779 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
18780
18781 PR rtl-optimization/35281
18782 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
18783 (propagate_rtx_1): Handle PR_HANDLE_MEM.
18784 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
18785 (varying_mem_p): Move above propagate_rtx.
18786 (all_uses_available_at): Do not check MEMs.
18787
18788 2008-04-02 Rafael Espíndola <espindola@google.com>
18789
18790 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
18791 (register_edge_assert_for_2): Split the cond argument.
18792 (register_edge_assert_for_1): Adjust for the change in
18793 register_edge_assert_for_2.
18794 (register_edge_assert_for): Split the cond argument.
18795 (find_switch_asserts): Adjust for the change in
18796 register_edge_assert_for.
18797
18798 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
18799
18800 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
18801 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
18802 offsets for 64-bit mingw.
18803 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
18804 abi for x86_64-pc-mingw.
18805
18806 2008-04-02 Richard Guenther <rguenther@suse.de>
18807
18808 * tree-vrp.c (extract_range_from_assert): Make sure to not
18809 produce range min/max with TREE_OVERFOW set.
18810 If merging a anti-range and a range keep the anti-range if
18811 the range covers all values of the type.
18812 (register_edge_assert_for_2): Only allow sign-changing
18813 conversions in detecting canonical range checks. Also
18814 register an assert for the unsigned name if useful.
18815
18816 PR tree-optimization/35787
18817 * tree-vrp.c (vrp_val_max): New function.
18818 (vrp_val_min): Likewise.
18819 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
18820 (vrp_val_is_min): Likewise.
18821 (supports_overflow_infinity): Use vrp_val_{min,max}.
18822 (negative_overflow_infinity): Likewise.
18823 (positive_overflow_infinity): Likewise.
18824 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
18825 (is_positive_overflow_infinity): Likewise.
18826 (is_overflow_infinity): Likewise.
18827 (avoid_overflow_infinity): Use vrp_val_{min,max} and
18828 vrp_val_is_{min,max}.
18829 (set_and_canonicalize_value_range): Canonicalize anti-ranges
18830 to ranges if possible. Avoid empty ranges.
18831
18832 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18833
18834 PR middle-end/35705
18835 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
18836 the expression is a function address.
18837
18838 2008-04-01 George Helffrich <george@gcc.gnu.org>
18839
18840 PR fortran/35154, fortran/23057
18841 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
18842 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
18843 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
18844 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
18845 in common.
18846 (dbxout_syms): Check for COMMON-based symbol and wrap in
18847 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
18848 in bracket for efficiency.
18849
18850 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
18851 using DW_TAG_common_block + member offset.
18852 (add_pubname_string): New function.
18853 (dw_expand_expr): New function to find block name and offset for
18854 COMMON var.
18855 (common_check): New function to check whether symbol in Fortran COMMON.
18856 (gen_variable_die): If COMMON, use DW_TAG_common_block.
18857
18858 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
18859
18860 PR c/35436
18861 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
18862
18863 2008-04-02 Ben Elliston <bje@au.ibm.com>
18864
18865 * config/v850/v850.md (casesi): Remove if (0) code.
18866 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
18867 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
18868
18869 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
18870
18871 * config/i386/i386.md (rex64suffix): New mode attribute.
18872 (floathi<mode>2): Disable expander for SSE math.
18873 (*floathi<mode>2_1): New insn insn_and_split pattern.
18874 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
18875 corresponding post-reload splitters.
18876 (*floathi<mode>2_i387): New macroized insn pattern.
18877 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
18878 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
18879 insn_and_split pattern.
18880 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
18881 New macroized instruction patterns and corresponding post-reload
18882 splitters.
18883 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
18884 and corresponding post-reload splitters.
18885 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
18886 New macroized instruction patterns.
18887 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
18888 macroized instruction patterns and corresponding post-reload splitters.
18889 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
18890 corresponding post-reload splitters.
18891 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
18892 New macroized instruction patterns.
18893 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
18894 corresponding post-reload splitters.
18895 (*floatsi<mode>2_i387): New macroized instruction patterns.
18896
18897 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
18898
18899 * config/i386/i386.md (smaxmin): New.
18900 (umaxmin): Likewise.
18901 (maxminiprefix): Likewise.
18902 (maxminfprefix): Likewise.
18903 (<code><mode>3): Likewise.
18904 (smin<mode>3): Removed.
18905 (smax<mode>3): Likewise.
18906
18907 * config/i386/mmx.md (mmx_<code>v2sf3): New.
18908 (mmx_<code>v4hi3): Likewise.
18909 (mmx_<code>v8qi3): Likewise.
18910 (mmx_smaxv2sf3): Removed.
18911 (mmx_sminv2sf3): Likewise.
18912 (mmx_umaxv8qi3): Likewise.
18913 (mmx_smaxv4hi3): Likewise.
18914 (mmx_uminv8qi3): Likewise.
18915 (mmx_sminv4hi3): Likewise.
18916
18917 * config/i386/sse.md (<addsub><mode>3): New.
18918 (*<addsub><mode>3): Likewise.
18919 (<sse>_vm<addsub><mode>3): Likewise.
18920 (<maxmin><mode>3): Likewise.
18921 (*<maxmin><mode>3_finite): Likewise.
18922 (*<maxmin><mode>3): Likewise.
18923 (<sse>_vm<maxmin><mode>3): Likewise.
18924 (sse3_h<addsub>v4sf3): Likewise.
18925 (sse3_h<addsub>v2df3): Likewise.
18926 (<maxmin>v16qi3): Likewise.
18927 (*<maxmin>v16qi3): Likewise.
18928 (<maxmin>v8hi3): Likewise.
18929 (*<maxmin>v8hi3): Likewise.
18930 (*sse4_1_<maxmin><mode>3): Likewise.
18931 (*sse4_1_<maxmin><mode>3): Likewise.
18932 (add<mode>3): Removed.
18933 (*add<mode>3): Likewise.
18934 (<sse>_vmadd<mode>3): Likewise.
18935 (sub<mode>3): Likewise.
18936 (*sub<mode>3): Likewise.
18937 (<sse>_vmsub<mode>3): Likewise.
18938 (smin<mode>3): Likewise.
18939 (*smin<mode>3_finite): Likewise.
18940 (*smin<mode>3): Likewise.
18941 (<sse>_vmsmin<mode>3): Likewise.
18942 (smax<mode>3): Likewise.
18943 (*smax<mode>3_finite): Likewise.
18944 (*smax<mode>3): Likewise.
18945 (<sse>_vmsmax<mode>3): Likewise.
18946 (sse3_haddv4sf3): Likewise.
18947 (sse3_haddv2df3): Likewise.
18948 (sse3_hsubv4sf3): Likewise.
18949 (sse3_hsubv2df3): Likewise.
18950 (umaxv16qi3): Likewise.
18951 (*umaxv16qi3): Likewise.
18952 (smaxv8hi3): Likewise.
18953 (*smaxv8hi3): Likewise.
18954 (*sse4_1_smax<mode>3): Likewise.
18955 (*sse4_1_umax<mode>3): Likewise.
18956 (uminv16qi3): Likewise.
18957 (*uminv16qi3): Likewise.
18958 (sminv8hi3): Likewise.
18959 (*sminv8hi3): Likewise.
18960 (*sse4_1_smin<mode>3): Likewise.
18961 (*sse4_1_umin<mode>3): Likewise.
18962
18963 2008-04-01 Rafael Espíndola <espindola@google.com>
18964
18965 * tree-cfg.c (verify_expr): remove in_phi.
18966 (verify_stmt): Don't call walk_tree with verify_expr. Use
18967 is_gimple_min_invariant instead of is_gimple_val.
18968
18969 2008-04-01 Joseph Myers <joseph@codesourcery.com>
18970
18971 * doc/include/gpl_v3.texi: Update for manpage generation.
18972 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
18973 gpl.texi.
18974 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
18975 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
18976 gpl_v3.texi instead of gpl.texi.
18977 (gpl.pod): New.
18978
18979 2008-04-01 Jakub Jelinek <jakub@redhat.com>
18980
18981 PR pch/13675
18982 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
18983
18984 2008-04-01 Rafael Espíndola <espindola@google.com>
18985
18986 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
18987 (extract_code_and_val_from_cond): Use
18988 extract_code_and_val_from_cond_with_ops.
18989
18990 2008-04-01 Jan Hubicka <jh@suse.cz>
18991
18992 * function.c (free_after_compilation): Free epilogue_delay_list.
18993 (prepare_function_start): Assert that previous compilation was freed.
18994
18995 2008-04-01 Jan Hubicka <jh@suse.cz>
18996 Jim Wilson <wilson@tuliptree.org>
18997 Andreas Tobler <andreast@gcc.gnu.org>
18998
18999 PR middle-end/35781
19000 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
19001 rtl.emit instead cfun->emit.
19002 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
19003 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
19004
19005 2008-04-01 Ben Elliston <bje@au.ibm.com>
19006
19007 * doc/c-tree.texi (Function Basics): Fix grammatical error.
19008
19009 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
19010
19011 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
19012 New options
19013 (fprofile-use): Add var flag_profile_use
19014 * coverage.c (coverage_begin_output): Do not open a gcno file for
19015 output only if -ftest-coverage is set.
19016 Do not add getpwd() to gcda file path.
19017 (build_gcov_info): Check the new flag
19018 flag_profile_datafile_relative_path.
19019 (coverage_init): Use profile_data_prefix.
19020 Read profile counter only if flag_profile_use is set.
19021 * opts.c (common_handle_option): New option fprofile-use=,
19022 fprofile-dir=, fprofile-generate=.
19023 * toplev.c (profile_data_prefix): New variable definition.
19024 * toplev.h (profile_data_prefix): New declaration.
19025 * doc/invoke.tex (Option Summary, Optimization Options):
19026 Add new options.
19027
19028 2008-03-31 James E. Wilson <wilson@tuliptree.org>
19029
19030 * varasm.c (output_constant_pool_1): In LABEL_REF check,
19031 use tmp consistently.
19032
19033 PR target/35695
19034 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
19035 * config/ia64/ia64.c (rtx_needs_barrier): Handle
19036 UNSPEC_FR_RECIP_APPROX_RES.
19037 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
19038
19039 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
19040
19041 PR c/35750
19042 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
19043
19044 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
19045
19046 PR middle-end/30186
19047 * fold-const.c (fold_indirect_ref_1): Support accessing non first
19048 element of the vector via a pointer.
19049
19050 2008-03-31 Ian Lance Taylor <iant@google.com>
19051
19052 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
19053
19054 2008-03-31 Jan Hubicka <jh@suse.cz>
19055
19056 * builtins.c (expand_builtin_setjmp_receiver): Update call of
19057 get_arg_pointer_save_area.
19058 * expr.c (init_expr): Just clear out rtl.expr.
19059 * function.c (free_after_compilation): Clear out whole RTL structure.
19060 (get_func_frame_size): Merge into ...
19061 (get_frame_size): ... this one.
19062 (assign_stack_local_1): Merge into ...
19063 (assign_stack_local): ... this one.
19064 (expand_function_end): Update call of get_arg_pointer_save_area.
19065 (get_art_pointer_save_area): Remove cfun argument.
19066 * function.h (emit_status): regno_pointer_align does not need length
19067 attribute. Move x_regno_reg_rtx to ...
19068 (regno_reg_rtx): ... new global array.
19069 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
19070 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
19071 apply_args_value, forced_labels, stack_pointer_delta):
19072 Update accestors.
19073 (struct varasm_status): Move here from varasm.c
19074 (struct rtl_data): New. Move here some fields from struct function.
19075 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
19076 frame_offset, stack_check_probe_note, arg_pointer_save_area,
19077 used_temp_slots avail_temp_slots, temp_slot_level,
19078 nonlocal_goto_handler_labels): Update accesstors.
19079 (rtl): New global variable.
19080 (struct function): Move some fileds to rtl_data.
19081 (get_arg_pointer_save_area): Update prototype.
19082 * emit-rtl.c (rtl): Declare.
19083 (regno_reg_rtx): Declare.
19084 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
19085 Update.
19086 (gen_reg_rtx): Update.
19087 (init_virtual_regs): Do not tate emit_status argument.
19088 (init_emit): Do not allocate emit.
19089 * varasm.c (varasm_statuc): Move to function.h.
19090 (n_deferred_constatns): Update accestor.
19091 (init_varasm_status): Do not allocate varasm_status.
19092 (force_const_mem, get_pool_size, output_constant_pool): Update.
19093 * stmt.c (force_label_rtx): Do not use x_ prefixes.
19094 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
19095
19096 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
19097
19098 PR rtl-optimization/35729
19099 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
19100 references.
19101
19102 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
19103
19104 PR target/32000
19105 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
19106 load/store if memory is unaligned.
19107 (*movti_rex64): Likewise.
19108
19109 * config/i386/predicates.md (misaligned_operand): New.
19110
19111 2008-03-31 Andrew Pinski <pinskia@gmail.com>
19112
19113 PR tree-opt/35431
19114 * tree-ssa-phiopt.c (conditional_replacement): Return early for
19115 complex types.
19116
19117 2008-03-31 Jan Beulich <jbeulich@novell.com>
19118
19119 * config/ia64/constraints.md: Add 'j' constraint.
19120 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
19121 (movdi_internal): Likewise.
19122
19123 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
19124
19125 PR c/35748
19126 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
19127
19128 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
19129
19130 PR target/35757
19131 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
19132 proper error message for the third argument on blendpd and
19133 blendps.
19134
19135 * config/i386/sse.md (blendbits): New.
19136 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
19137
19138 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
19139
19140 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
19141
19142 2008-03-30 Richard Guenther <rguenther@suse.de>
19143
19144 PR middle-end/31023
19145 * fold-const.c (fold_sign_changed_comparison): Do leave
19146 conversions to base-types alone.
19147
19148 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
19149
19150 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
19151 the link register if one altivec register is be saved.
19152
19153 2008-03-30 Ben Elliston <bje@au.ibm.com>
19154
19155 * final.c (final_scan_insn): Remove if (0) code.
19156
19157 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
19158
19159 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
19160
19161 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
19162
19163 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
19164 of V4SFmode to ix86_binary_operator_ok.
19165
19166 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
19167
19168 * config/i386/i386.c (override_options): Initialize
19169 ix86_veclib_handler to ix86_veclibabi_svml when
19170 -mveclibabi=svml is used.
19171 (ix86_veclibabi_svml): New function for SVML ABI style
19172 vectorization support.
19173 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
19174
19175 2008-03-28 Rafael Espíndola <espindola@google.com>
19176
19177 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
19178 (tree_binary_nonnegative_warnv_p): Make it public.
19179 (tree_single_nonnegative_warnv_p): Make it public.
19180 (tree_invalid_nonnegative_warnv_p): Make it public.
19181 (tree_unary_nonzero_warnv_p): Make it public.
19182 (tree_binary_nonzero_warnv_p): Make it public
19183 (tree_single_nonzero_warnv_p): Make it public.
19184 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
19185 (extract_range_from_binary_expr): Split the expr argument.
19186 (extract_range_from_unary_expr): Split the expr argument.
19187 (extract_range_from_comparison): Split the expr argument.
19188 (extract_range_from_expr): Use the new aux functions.
19189 (vrp_evaluate_conditional_warnv): Use
19190 vrp_evaluate_conditional_warnv_with_ops.
19191 * tree.h (tree_unary_nonzero_warnv_p): Declare.
19192 (tree_binary_nonzero_warnv_p): Declare.
19193 (tree_single_nonzero_warnv_p): Declare.
19194 (tree_expr_nonzero_warnv_p): Declare.
19195 (tree_unary_nonnegative_warnv_p): Declare.
19196 (tree_binary_nonnegative_warnv_p): Declare.
19197 (tree_single_nonnegative_warnv_p): Declare.
19198 (tree_invalid_nonnegative_warnv_p): Declare.
19199
19200 2008-03-28 Richard Guenther <rguenther@suse.de>
19201
19202 PR tree-optimization/30317
19203 PR tree-optimization/30911
19204 PR tree-optimization/34793
19205 * tree-vrp.c (set_and_canonicalize_value_range): New function.
19206 (struct assert_locus_d): New member EXPR.
19207 (register_new_assert_for): Add EXPR parameter to support
19208 ASSERT_EXPR <name, expr OP limit>.
19209 (register_edge_assert_for_1): Adjust callers.
19210 (find_assert_locations): Likewise.
19211 (process_assert_insertions_for): Build condition from expression.
19212 (extract_range_from_assert): Handle ASSERT_EXPRs
19213 of the form ASSERT_EXPR <name, expr OP limit>.
19214 (register_edge_assert_for_2): New helper registering
19215 asserts for comparisons. Recognize range tests of the form
19216 (unsigned)i - CST1 OP CST2.
19217 (register_edge_assert_for_1): Use it.
19218 (register_edge_assert_for): Likewise.
19219 (needs_overflow_infinity): Integer sub-types
19220 do not need overflow infinities.
19221 (vrp_val_is_max): The extreme values of integer sub-types
19222 are those of the base type.
19223 (vrp_val_is_min): Likewise.
19224 * tree.def (ASSERT_EXPR): Document extra allowed conditional
19225 expressions.
19226
19227 2008-03-28 Nick Clifton <nickc@redhat.com>
19228
19229 PR target/31110
19230 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
19231 Return GENERAL_REGS for stack adjustment reloads.
19232
19233 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
19234
19235 PR target/31334
19236 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
19237 const_vector when all the vectors are constant.
19238
19239 2008-03-27 Bob Wilson <bob.wilson@acm.org>
19240
19241 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
19242 comparisons.
19243 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
19244 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
19245 (scc_sf): New.
19246 (s<code>_sf): Use new scc_sf attribute for opcode names.
19247
19248 2008-03-27 Tom Tromey <tromey@redhat.com>
19249
19250 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
19251 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
19252 config/spu/t-spu-elf, config/i386/t-interix,
19253 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
19254 config/i386/x-darwin, config/i386/x-mingw32,
19255 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
19256 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
19257 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
19258 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
19259 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
19260 config/rs6000/x-darwin, config/rs6000/t-rs6000,
19261 config/score/t-score-elf, config/arm/t-strongarm-pe,
19262 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
19263 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
19264 Revert automatic dependency patch.
19265
19266 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
19267
19268 PR target/35657
19269 * config/i386/i386.c (ix86_function_arg_boundary): Align
19270 decimal floating point to its natural boundary.
19271
19272 2008-03-27 Richard Guenther <rguenther@suse.de>
19273
19274 PR middle-end/35716
19275 * fold-const.c (fold_comparison): Restrict distinct decl
19276 comparison folding to VAR_DECLs and PARM_DECLs. Do not
19277 solely rely on operand_equal_p.
19278
19279 2008-03-27 Richard Guenther <rguenther@suse.de>
19280
19281 PR c/32511
19282 * c-common.c (handle_weak_attribute): Reject combination of
19283 weak and inline.
19284
19285 2008-03-27 Richard Guenther <rguenther@suse.de>
19286
19287 PR tree-optimization/32810
19288 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
19289 conversions from DECL_INITIAL.
19290 (fold_const_aggregate_ref): Likewise from constructor elements.
19291
19292 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
19293
19294 * tree-affine.h (aff_combination_expand): Declare.
19295 (get_inner_reference_aff): Likewise.
19296 * tree-affine.c (aff_combination_expand): Split out from
19297 tree_to_aff_combination_expand.
19298 (get_inner_reference_aff): New function.
19299 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
19300 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
19301 (struct lim_aux_data): sm_done field removed.
19302 (mem_ref_loc_p, mem_ref_locs_p): New types.
19303 (struct mem_ref): Added id, stored, accesses_in_loop,
19304 indep_loop, dep_loop, indep_ref, dep_ref fields.
19305 Removed is_stored, locs and next fields.
19306 (memory_accesses): New variable.
19307 (movement_possibility): Do not allow moving statements
19308 that store to memory.
19309 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
19310 New functions.
19311 (determine_max_movement): For statements with memory references,
19312 find the outermost loop in that the reference is independent.
19313 (move_computations_stmt): Mark the virtual operands for renaming.
19314 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
19315 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
19316 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
19317 add_vop_ref_mapping, create_vop_ref_mapping_loop,
19318 create_vop_ref_mapping, analyze_memory_references,
19319 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
19320 get_all_locs_in_loop, ref_always_accessed_p,
19321 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
19322 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
19323 store_motion_loop, store_motion): New functions.
19324 (struct vop_to_refs_elt): New type.
19325 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
19326 memref_hash, memref_eq, hoist_memory_references): Rewritten.
19327 (schedule_sm): Replaced by...
19328 (execute_sm): ... this.
19329 (determine_lsm_ref, hoist_memory_references,
19330 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
19331 find_more_ref_vops, free_mem_ref, free_mem_refs,
19332 determine_lsm_loop, determine_lsm): Removed.
19333 (tree_ssa_lim_finalize): Free data structures used by store motion.
19334 (tree_ssa_lim): Call analyze_memory_references. Use
19335 store_motion instead of determine_lsm.
19336
19337 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
19338
19339 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
19340 rename tmake_file to m68hc11/t-m68hc11.
19341 (mcore): Set inhibit_libc to true.
19342 * config.host (alpha*-dec-*vms*): Set extra_programs.
19343 (interix3*): Don't use host_xmake_file.
19344 * configure.ac: Let config.gcc override inhibit_libc.
19345 * configure: Regenerate.
19346
19347 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
19348 * config/t-openbsd-thread: Remove commented out lines.
19349
19350 * config/x-interix: Remove.
19351
19352 * config/m68hc11/t-m68hc11-gas: Rename to...
19353 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
19354
19355 * config/mcore/t-mcore: Remove T_CFLAGS.
19356 * config/mcore/t-mcore-pe: Likewise.
19357
19358 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
19359
19360 * configure.ac: Replace custom __GNU_SOURCE test with
19361 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
19362 * aclocal.m4: Regenerate.
19363 * configure: Regenerate.
19364 * config.in: Regenerate.
19365
19366 2008-03-27 Richard Guenther <rguenther@suse.de>
19367
19368 * fold-const.c (target.h): Include.
19369 (fold_comparison): Fold comparison of addresses of decls
19370 that bind locally or of constants. Consolidate address folding code.
19371 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
19372 results from fold_binary_to_constant.
19373 (compare_values_warnv): Likewise.
19374
19375 2008-03-27 Andrew Pinski <pinskia@gmail.com>
19376
19377 PR middle-end/35429
19378 * fold-const.c (fold_truthop): Check for integeral types when folding
19379 a == 0 && b == 0 and a != 0 || b != 0 .
19380
19381 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
19382
19383 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
19384
19385 2008-03-26 Andreas Schwab <schwab@suse.de>
19386
19387 * doc/invoke.texi: Fix use of @item vs. @itemx.
19388
19389 2008-03-26 Tom Tromey <tromey@redhat.com>
19390
19391 * Makefile.in (build/gensupport.o, build/print-rtl.o,
19392 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
19393 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
19394 build/gencodes.o, build/genconditions.o, build/genconfig.o,
19395 build/genconstants.o, build/genemit.o, build/genextract.o,
19396 build/genflags.o, build/genmddeps.o, build/genopinit.o,
19397 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
19398 options.h.
19399
19400 2008-03-26 Richard Guenther <rguenther@suse.de>
19401
19402 Revert
19403 2008-03-26 Richard Guenther <rguenther@suse.de>
19404
19405 * fold-const.c (target.h): Include.
19406 (fold_comparison): Fold comparison of addresses of two decls
19407 that bind locally. Consolidate address folding code.
19408
19409 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19410
19411 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
19412 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
19413 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
19414 dconstsqrt2, dconstthird, dconste and/or dconst10.
19415 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
19416 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
19417 dconstsqrt2, dconste): Delete.
19418 (init_emit_once): Likewise. Simplify initializing dconstm1.
19419 Constify variable.
19420 * real.c (get_real_const): New.
19421 * real.h (dconst3, dconst10, dconstm2, dconstthird,
19422 dconstsqrt2, dconste): Delete.
19423 (real_value_const, get_real_const): New.
19424
19425 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
19426
19427 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
19428
19429 * config/i386/i386.c (ix86_function_arg_boundary): Check
19430 BIGGEST_ALIGNMENT instead of 128.
19431 (setup_incoming_varargs_64): Likewise.
19432
19433 2008-03-26 Tom Tromey <tromey@redhat.com>
19434
19435 * Makefile.in (DEPFILES): Add missing '/'.
19436
19437 2008-03-26 Richard Guenther <rguenther@suse.de>
19438
19439 * fold-const.c (target.h): Include.
19440 (fold_comparison): Fold comparison of addresses of two decls
19441 that bind locally. Consolidate address folding code.
19442
19443 2008-03-26 Nick Clifton <nickc@redhat.com>
19444
19445 PR target/31232
19446 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
19447 not allow INT+INT as a legitimate addressing mode.
19448
19449 2008-03-26 Richard Guenther <rguenther@suse.de>
19450
19451 * tree-flow.h (widen_bitfield): Remove declaration.
19452 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
19453 (widen_bitfield): Remove function.
19454 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
19455 code.
19456
19457 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
19458
19459 PR target/31558
19460 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
19461 error_mark_node's.
19462
19463 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
19464
19465 PR rtl-optimization/35232
19466 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
19467 (forget_old_reloads_1, forget_marked_reloads): Don't clear
19468 reg_reloaded_call_part_clobbered here.
19469 (reload_regs_reach_end_p): New function.
19470 (reload_reg_rtx_for_input): New variable.
19471 (reload_reg_rtx_for_output): Likewise.
19472 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
19473 when reassigning a pseudo register. Load reloadreg from
19474 reload_reg_rtx_for_input, moving the mode and register
19475 calculation to...
19476 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
19477 instead of the original when deciding whether an input reload
19478 would be a no-op or whether an output reload can be deleted.
19479 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
19480 when setting up new_spill_reg_store. Load it from
19481 reload_reg_rtx_for_output, moving the mode and register
19482 calculation to...
19483 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
19484 instead of the original when deciding whether an output reload
19485 would be a no-op. Do the same when modifying insn notes.
19486 Use rtx_equal_p instead of == to compare the registers.
19487 (inherit_piecemeal_p): Take a mode and two register numbers
19488 as argument.
19489 (emit_reload_insns): Clear new_spill_reg_store for every hard
19490 register in the reload register. Remove spill registers
19491 from reg_reloaded_valid before considering whether to record
19492 inheritance information for them. Use reload_reg_rtx_for_output
19493 instead of reg_rtx when recording output reloads. Use
19494 reload_reg_rtx_for_input instead of reg_rtx when recording
19495 input reloads. Set or clear reg_reloaded_call_part_clobbered
19496 at the same time as setting reg_reloaded_valid.
19497 (delete_output_reload): Add a new_reload_reg parameter and use it
19498 instead of rld[j].reg_rtx.
19499 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
19500 calls accordingly.
19501
19502 2008-03-25 Tom Tromey <tromey@redhat.com>
19503
19504 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
19505 (build/genattr.o): Likewise.
19506 (build/genattrtab.o): Likewise.
19507 (build/gencodes.o): Likewise.
19508 (build/genconfig.o): Likewise.
19509 (build/genconstants.o): Likewise.
19510 (build/genemit.o): Likewise.
19511 (build/genextract.o): Likewise.
19512 (build/genflags.o): Likewise.
19513
19514 2008-03-25 Bob Wilson <bob.wilson@acm.org>
19515
19516 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
19517 instead of size_int for integer types.
19518 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
19519 to match type of MINUS_EXPR.
19520
19521 2008-03-25 Tom Tromey <tromey@redhat.com>
19522
19523 * configure: Rebuilt.
19524 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
19525 Makefile.
19526
19527 2008-03-25 Tom Tromey <tromey@redhat.com>
19528
19529 * config/x-solaris (host-solaris.o): Update.
19530 * config/x-linux (host-linux.o): Update.
19531 * config/x-hpux (host-hpux.o): Update.
19532 * config/x-darwin (host-darwin.o): Update.
19533 * config/v850/t-v850e (v850-c.o): Update.
19534 * config/v850/t-v850 (v850-c.o): Update.
19535 * config/t-vxworks (vxworks.o): Update.
19536 * config/t-sol2 (sol2-c.o, sol2.o): Update.
19537 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
19538 * config/spu/t-spu-elf (spu-c.o): Update.
19539 (spu.o): Remove.
19540 * config/sh/t-symbian (sh-c.o): Update.
19541 (symbian.o): Update.
19542 * config/sh/t-sh (sh-c.o): Update.
19543 * config/score/t-score-elf (score7.o, score3.o): Update.
19544 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
19545 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
19546 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
19547 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
19548 (rs6000.o): Remove.
19549 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
19550 * config/m32c/t-m32c (m32c-pragma.o): Update.
19551 * config/ia64/t-ia64 (ia64-c.o): Update.
19552 * config/i386/x-mingw32 (host-mingw32.o): Update.
19553 * config/i386/x-i386 (driver-i386.o): Update.
19554 * config/i386/x-darwin (host-i386-darwin.o): Update.
19555 * config/i386/x-cygwin (host-cygwin.o): Update.
19556 * config/i386/t-nwld (nwld.o): Update.
19557 * config/i386/t-netware (netware.o): Update.
19558 * config/i386/t-interix (winnt.o): Update.
19559 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
19560 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
19561 msformat-c.o): Update.
19562 * config/bfin/t-bfin-linux (generated_files): Add
19563 linux-sysroot-suffix.h.
19564 * config/arm/t-wince-pe (pe.o): Update.
19565 * config/arm/t-strongarm-pe (pe.o): Update.
19566 * config/arm/t-pe (pe.o): Update.
19567 * config/arm/t-arm (arm-c.o): Update.
19568 * doc/install.texi (Prerequisites): Require make 3.80.
19569 * Makefile.in: Remove .o targets.
19570 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
19571 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
19572 (simple_generated_h, simple_generated_c): Move earlier.
19573 (generated_files): New variable.
19574 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
19575 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
19576 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
19577 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
19578 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
19579 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
19580 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
19581 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
19582 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
19583 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
19584 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
19585 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
19586 (.c.o): Remove.
19587 (COMPILE.base, COMPILE): New variables.
19588 (%.o): New pattern rule.
19589 (ALL_HOST_OBJS): New variable.
19590 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
19591 (dummy-checksum.o, cc1-checksum.o): Remove.
19592 (DRIVER_SHLIB): New variable.
19593 (DRIVER_DEFINES): Use it.
19594 (gencondmd.c): Move out of build/.
19595 (s-conditions): Update.
19596 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
19597 (ALL_BUILD_OBJS): Likewise.
19598 (build/%.o): Use BUILDCOMPILE.
19599 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
19600 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
19601 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
19602 build/gencheck.o, build/gencodes.o, build/genconditions.o,
19603 build/genconfig.o, build/genconstants.o, build/genemit.o,
19604 build/genextract.o, build/genflags.o, build/genmddeps.o,
19605 build/genopinit.o, build/genoutput.o, build/genpeep.o,
19606 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
19607 build/gen-protos.o, build/scan.o, build/fix-header.o,
19608 build/scan-decls.o): Simplify.
19609 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
19610 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
19611 prefix.o, toplev.o): Reduce to variable setting.
19612 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
19613 ($(out_object_file), gcc-options.o): New targets.
19614 ($(ALL_HOST_OBJS)): New target. Include dependency files.
19615 * configure: Rebuilt.
19616 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
19617 * doc/sourcebuild.texi (Front End Directory): Document new variable.
19618
19619 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
19620
19621 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
19622 complain when we hit an error, return ERROR_MARK_NODE.
19623
19624 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
19625
19626 * config/sh/constraints.md (Pso, Psz): New constraints.
19627 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
19628 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
19629
19630 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
19631
19632 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
19633 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
19634
19635 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
19636
19637 * config/sh/sh.md (prefetch): Add condition for SH2A target.
19638 (prefetch_sh2a): New.
19639
19640 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
19641 Naveen.H.S <naveen.hs@kpitcummins.com>
19642
19643 * config/sh/constraints.md (I28): New constraint.
19644 * config/sh/sh.c (broken_move): Add support for movi20s.
19645 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
19646
19647 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
19648 Jayant Sonar <Jayant.sonar@kpitcummins.com>
19649 Naveen.H.S <naveen.hs@kpitcummins.com>
19650
19651 * config/sh/sh.c (SH_ATTRIBUTES): Define.
19652 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
19653 (print_operand): Handle resbank in %@ operand code.
19654 (sh_encode_section_info): New.
19655 (push_regs): Add conditions for resbank.
19656 (sh_expand_epilogue): Likewise.
19657 (sh_insert_attributes): Likewise.
19658 (sh_attribute_table): Likewise.
19659 (sh_handle_resbank_handler_attribute): New.
19660 (sh2a_handle_function_vector_handler_attribute): New.
19661 (sh2a_is_function_vector_call): New.
19662 (sh2a_get_function_vector_number): New.
19663 (sh2a_function_vector_p): New.
19664 (sh_cfun_resbank_handler_p): New.
19665 * config/sh/sh.md (calli): Emit jsr/n if possible.
19666 (calli_tbr_rel): New.
19667 (calli_pcrel): Emit jsr/n if possible.
19668 (return_i): Emit rts/n if possible.
19669 (call_valuei_tbr_rel): New.
19670 (call_valuei_pcrel): Add condition for SH2A target.
19671 (call_value): Likewise.
19672 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
19673 (sh2a_get_function_vector_number): Likewise.
19674 (sh2a_is_function_vector_call): Likewise.
19675 * doc/extend.texi: Document TBR relative addressing of SH2A.
19676 (resbank): Add description for SH2A.
19677
19678 2008-03-24 Richard Guenther <rguenther@suse.de>
19679
19680 PR c/22371
19681 * gimplify.c (gimplify_modify_expr): For frontend type-correct
19682 pointer assignments change conversions according to middle-end rules.
19683 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
19684 * configure.ac: Include type checking in yes.
19685 * configure: Regenerate.
19686
19687 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19688
19689 * diagnostic.c (diagnostic_count_diagnostic): Delete.
19690 (diagnostic_report_diagnostic): Update. Handle ICEs here.
19691
19692 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
19693
19694 * gthr-vxworks.h (UNUSED): Define.
19695
19696 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
19697
19698 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
19699
19700 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
19701
19702 * doc/extend.texi (Function Attributes): Add missing comma in the
19703 example of the "alloc_size" attribute.
19704
19705 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
19706
19707 Revert:
19708 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
19709
19710 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
19711 32bit host.
19712
19713 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
19714
19715 PR target/35496
19716 * stor-layout.c (update_alignment_for_field): Set minimum alignment
19717 of the underlying type of a MS bitfield layout to the natural
19718 alignment of the type.
19719
19720 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
19721
19722 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
19723 to their natural alignment to avoid store forwarding stalls.
19724
19725 2008-03-22 Richard Guenther <rguenther@suse.de>
19726
19727 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
19728 For PHI nodes verify the address is invariant.
19729 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
19730 (get_symbol_constant_value): Use is_gimple_min_invariant.
19731 (maybe_fold_stmt_indirect): Likewise.
19732
19733 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
19734
19735 PR rtl-optimization/33927
19736 * Makefile.in (dse.o): Depend on $(TM_P_H).
19737 * expr.h (extract_low_bits): Declare.
19738 * expmed.c (extract_low_bits): New function.
19739 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
19740 * dse.c: Include tm_p.h.
19741 (find_shift_sequence): Remove the read_reg argument and return the
19742 read value. Emit the instructions instead of returning them.
19743 Iterate on new_mode rather than calculating it each time.
19744 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
19745 source to NEW_MODE and extract_low_bits to convert the shifted
19746 value to READ_MODE.
19747 (replace_read): Allow the load and store to have different mode
19748 classes. Use extract_low_bits when SHIFT == 0. Create the shift
19749 or extraction instructions before trying the replacement. Update
19750 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
19751
19752 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
19753
19754 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
19755 to their natural alignment to avoid store forwarding stalls.
19756
19757 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
19758
19759 PR target/27946
19760 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
19761 encouraging but not allowing gprs for input;
19762 change the input constraint to !f#r.
19763 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
19764 gprs for output;
19765 change the output constraint to !f#r.
19766
19767 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
19768
19769 PR target/13958
19770 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
19771 corresponding post-reload splitters.
19772 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
19773 when x87 FP math is selected.
19774 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
19775 New function prototype.
19776 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
19777 unreachable function to ease macroization of insn patterns.
19778
19779 2008-03-21 Martin Jambor <mjambor@suse.cz>
19780
19781 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
19782 reference dumps if ddr is NULL or dependence is unknown.
19783
19784 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
19785
19786 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
19787 unsigned extension into account.
19788 (ATOMIC_COMPARE_AND_SWAP): Likewise.
19789 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
19790 Do computations on a scratch register.
19791
19792 2008-03-21 Richard Guenther <rguenther@suse.de>
19793
19794 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
19795 Use is_gimple_min_invariant instead of TREE_INVARIANT.
19796 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
19797 * tree-ssa-dom.c (record_equality): Likewise.
19798 * tree-inline.c (copy_body_r): Likewise.
19799 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
19800 TREE_INVARIANT.
19801
19802 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
19803
19804 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
19805 as 'delete_unused' argument.
19806
19807 2008-03-20 Richard Guenther <rguenther@suse.de>
19808
19809 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
19810 special casing of constant qualifiers.
19811 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
19812 care about them in general.
19813 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
19814 regardless of their type.
19815 (fold_stmt_r): Forcefully fold *& if we end up with that.
19816
19817 2008-03-20 Paul Brook <paul@codesourcery.com>
19818
19819 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
19820 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
19821 linker flags.
19822 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
19823 definition.
19824 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
19825 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
19826
19827 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
19828
19829 * common.opt (Wmudflap): New option.
19830 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
19831 (mx_register_decls): Likewise.
19832 (mudflap_finish_file): Likewise.
19833 * doc/invoke.texi: Document -Wno-mudflap.
19834
19835 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
19836
19837 * c-format.c (replace_format_name_to_system_name): New.
19838 (cmp_attribs): New.
19839 (convert_format_name_to_system_name): New.
19840 (decode_format_attr): Add use of convert_format_name_to_system_name.
19841 (format_types_orig): Add gnu_ prefix to names.
19842 (check_format_info_main): Special treating of \0 escaped names for
19843 supporting multi-character format specifiers as I32, I64.
19844 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
19845 (gnu_target_overrides_format_attributes): New.
19846 * c-format.h: Add structure target_ovr_attr to hold
19847 system specific formatter names.
19848 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
19849 msformat-c.o file to c_target_objs and cxx_target_objs.
19850 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
19851 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
19852 (TARGET_N_FORMAT_TYPES): New.
19853 * config/i386/msformat-c.c: New.
19854 * config/i386/t-cygming: Add build rule for msformat-c.o.
19855 * doc/extend.texi: Add new format names gnu_* and ms_* and
19856 further details.
19857 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
19858
19859 2008-03-20 Ira Rosen <irar@il.ibm.com>
19860
19861 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
19862 optimizations turned on under -O3.
19863 (ftree-vectorize): Add that the flag is turned on with -O3.
19864
19865 2008-03-20 Ben Elliston <bje@au.ibm.com>
19866
19867 * regmove.c (try_auto_increment): Fix spelling error in comment.
19868 * final.c (final_scan_insn): Likewise.
19869
19870 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
19871
19872 PR target/14552
19873 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
19874 allocator preferences for "y" and "r" class registers.
19875 ("*mov<mode>_internal"): Ditto.
19876 ("*movv2sf_internal_rex64"): Ditto.
19877 ("*movv2sf_internal"): Ditto.
19878
19879 2008-03-19 Michael Matz <matz@suse.de>
19880
19881 PR middle-end/35616
19882 * calls.c (expand_call): Check overlap of arguments with call
19883 address for sibcalls.
19884
19885 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
19886
19887 PR target/35496
19888 * stor-layout.c (update_alignment_for_field): Set minimum alignment
19889 of the underlying type of a MS bitfield layout to the natural
19890 alignment of the type.
19891
19892 2008-03-19 Jan Hubicka <jh@suse.cz>
19893
19894 PR other/35094
19895 * toplev.c (decode_d_option): Handle all CPP flags.
19896 * tree-vrp.c: Update tree_pass descriptors.
19897 * regrename.c: Update tree_pass descriptors.
19898 * fwprop.c: Update tree_pass descriptors.
19899 * doc/invoke.texi: Remove documentation of dropped -d? flags.
19900 * tree-into-ssa.c: Update tree_pass descriptors.
19901 * tree-dump.c: Update tree_pass descriptors.
19902 * tree-complex.c: Update tree_pass descriptors.
19903 * tree-dump.h: Update tree_pass descriptors.
19904 * see.c: Update tree_pass descriptors.
19905 * cgraphbuild.c: Update tree_pass descriptors.
19906 * tracer.c: Update tree_pass descriptors.
19907 * tree-loop-distribution.c: Update tree_pass descriptors.
19908 * cgraph.c: Update tree_pass descriptors.
19909 * postreload-gcse.c: Update tree_pass descriptors.
19910 * postreload.c: Update tree_pass descriptors.
19911 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
19912 * tree-tailcall.c: Update tree_pass descriptors.
19913 * tree-pass.h (tree_opt_pass): Rename to ...
19914 (opt_pass) ... this one; add "type" field and remove letter field.
19915 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
19916 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
19917 all_lowering_passes): Update declaration.
19918 * ipa-cp.c: Update tree_pass descriptors.
19919 * final.c: Update tree_pass descriptors.
19920 * omp-low.c: Update tree_pass descriptors.
19921 * tree-ssa-dse.c: Update tree_pass descriptors.
19922 * ipa-reference.c: Update tree_pass descriptors.
19923 * tree-ssa-uncprop.c: Update tree_pass descriptors.
19924 * auto-inc-dec.c: Update tree_pass descriptors.
19925 * reorg.c: Update tree_pass descriptors.
19926 * cgraphunit.c: Update tree_pass descriptors.
19927 * tree-ssa-copyrename.c: Update tree_pass descriptors.
19928 * tree-ssa-ccp.c: Update tree_pass descriptors.
19929 * df-core.c: Update tree_pass descriptors.
19930 * mode-switching.c: Update tree_pass descriptors.
19931 * tree-nomudflap.c: Update tree_pass descriptors.
19932 * modulo-sched.c: Update tree_pass descriptors.
19933 * ipa-pure-const.c: Update tree_pass descriptors.
19934 * cse.c: Update tree_pass descriptors.
19935 * web.c: Update tree_pass descriptors.
19936 * tree-stdarg.c: Update tree_pass descriptors.
19937 * tree-ssa-math-opts.c: Update tree_pass descriptors.
19938 * tree-ssa-dom.c: Update tree_pass descriptors.
19939 * tree-nrv.c: Update tree_pass descriptors.
19940 * tree-ssa-alias.c: Update tree_pass descriptors.
19941 * loop-init.c: Update tree_pass descriptors.
19942 * gimple-low.c: Update tree_pass descriptors.
19943 * ipa-inline.c: Update tree_pass descriptors.
19944 * tree-ssa-sink.c: Update tree_pass descriptors.
19945 * global.c: Update tree_pass descriptors.
19946 * ifcvt.c: Update tree_pass descriptors.
19947 * jump.c: Update tree_pass descriptors.
19948 * predict.c: Update tree_pass descriptors.
19949 * tree-ssa-loop.c: Update tree_pass descriptors.
19950 * recog.c: Update tree_pass descriptors.
19951 * dse.c: Update tree_pass descriptors.
19952 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
19953 * tree-eh.c: Update tree_pass descriptors.
19954 * regmove.c: Update tree_pass descriptors.
19955 * local-alloc.c
19956 * function.c: Update tree_pass descriptors.
19957 * tree-vectorizer.c: Update tree_pass descriptors.
19958 * gcse.c: Update tree_pass descriptors.
19959 * ipa-type-escape.c: Update tree_pass descriptors.
19960 * tree-if-conv.c: Update tree_pass descriptors.
19961 * init-regs.c: Update tree_pass descriptors.
19962 * ipa.c: Update tree_pass descriptors.
19963 * tree-ssa-phiopt.c: Update tree_pass descriptors.
19964 * rtl-factoring.c: Update tree_pass descriptors.
19965 * lower-subreg.c: Update tree_pass descriptors.
19966 * bt-load.c: Update tree_pass descriptors.
19967 * tree-dfa.c: Update tree_pass descriptors.
19968 * except.c: Update tree_pass descriptors.
19969 * emit-rtl.c: Update tree_pass descriptors.
19970 * cfgexpand.c: Update tree_pass descriptors.
19971 * tree-cfgcleanup.c: Update tree_pass descriptors.
19972 * cfgcleanup.c: Update tree_pass descriptors.
19973 * tree-ssa-pre.c: Update tree_pass descriptors.
19974 * tree-sra.c: Update tree_pass descriptors.
19975 * tree-mudflap.c: Update tree_pass descriptors.
19976 * tree-ssa-copy.c: Update tree_pass descriptors.
19977 * cfglayout.c: Update tree_pass descriptors.
19978 * tree-ssa-forwprop.c: Update tree_pass descriptors.
19979 * tree-ssa-dce.c: Update tree_pass descriptors.
19980 * tree-ssa.c: Update tree_pass descriptors.
19981 * regclass.c: Update tree_pass descriptors.
19982 * integrate.c: Update tree_pass descriptors.
19983 * tree-optimize.c: Update tree_pass descriptors.
19984 * tree-ssa-phiprop.c: Update tree_pass descriptors.
19985 * tree-object-size.c: Update tree_pass descriptors.
19986 * combine.c: Update tree_pass descriptors.
19987 * tree-outof-ssa.c: Update tree_pass descriptors.
19988 * bb-reorder.c: Update tree_pass descriptors.
19989 * stack-ptr-mod.c: Update tree_pass descriptors.
19990 * var-tracking.c: Update tree_pass descriptors.
19991 * tree-profile.c: Update tree_pass descriptors.
19992 * tree-vect-generic.c: Update tree_pass descriptors.
19993 * reg-stack.c: Update tree_pass descriptors.
19994 * sched-rgn.c: Update tree_pass descriptors.
19995 * tree-ssa-structalias.c: Update tree_pass descriptors.
19996 * tree-cfg.c: Update tree_pass descriptors.
19997 * passes.c (current_pass): Update declaration.
19998 (finish_optimization_passes): Update.
19999 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
20000 (register_one_dump_file, register_dump_files_1, next_pass_1):
20001 Update arguments.
20002 (init_optimization_passes): Update handling of new types.
20003 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
20004 * ipa-struct-reorg.c: Update tree_pass descriptors.
20005 * tree-ssa-reassoc.c: Update tree_pass descriptors.
20006 * combine-stack-adj.c: Update tree_pass descriptors.
20007 * cfgrtl.c: Update tree_pass descriptors.
20008 * dce.c: Update tree_pass descriptors.
20009 * tree-ssanames.c: Update tree_pass descriptors.
20010
20011 2008-03-19 Richard Guenther <rguenther@suse.de>
20012
20013 PR middle-end/35609
20014 * tree-ssa.c (walk_data): New structure.
20015 (warn_uninitialized_var): If not always_executed warn with "maybe"
20016 instead of "is".
20017 (execute_early_warn_uninitialized): Compute post-dominators.
20018 Initialize always_executed before processing each basic block.
20019
20020 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
20021
20022 PR target/35504
20023 * config/i386/i386.c (x86_this_parameter): Calculate correct location
20024 of "this" pointer when "regparm = N" or "fastcall" is in effect.
20025
20026 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20027
20028 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
20029
20030 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
20031
20032 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
20033 is true.
20034 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
20035 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
20036 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
20037 target after ignore has been set, and move there also the commputation
20038 of subtarget and original_target.
20039 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
20040 (LANG_HOOKS_INITIALIZER): Remove it.
20041 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
20042
20043 2008-03-18 Richard Guenther <rguenther@suse.de>
20044
20045 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
20046 found an expression with constants, note that in the VN for the lhs.
20047 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
20048 fold them to constants if possible. Run cleanup_cfg if done so.
20049 (execute_pre): Return todo.
20050 (do_pre): Likewise.
20051 (execute_fre): Likewise.
20052 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
20053 of constants.
20054 (get_prop_source_stmt): Look through pointer conversions.
20055
20056 2008-03-18 Jan Hubicka <jh@suse.cz>
20057
20058 * tree-pretty-print.c: Include predict.h.
20059 (dump_generic_node): Dump predictor.
20060 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
20061 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
20062 * gimple-low.c (lower_stmt): Likewise.
20063 * expr.c (expand_expr_real): Likewise.
20064 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
20065 them.
20066 (build_predict_expr, build_predict_expr): New.
20067 * predict.h (predictor_name, build_predict_expr): Update.
20068 * c-typeck.c (c_finish_bc_stmt): Add prediction.
20069 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
20070 * predict.def (PRED_CONTINUE): Update hitrate.
20071 * tree.def (PREDICT_EXPR): Define.
20072 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
20073 do not handle BIND_EXPR.
20074 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
20075 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
20076 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
20077 operands.
20078
20079 2008-03-18 Michael Matz <matz@suse.de>
20080
20081 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
20082
20083 2008-03-18 Richard Guenther <rguenther@suse.de>
20084
20085 * tree-gimple.h (is_gimple_invariant_address): Declare.
20086 (is_gimple_constant): Likewise.
20087 * tree-gimple.c (is_gimple_constant): New function.
20088 (is_gimple_invariant_address): Likewise.
20089 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
20090 and is_gimple_invariant_address.
20091 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
20092 previous change.
20093 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
20094 an addressable base.
20095
20096 2008-03-18 Jakub Jelinek <jakub@redhat.com>
20097
20098 PR middle-end/35611
20099 * gimplify.c (gimplify_expr): Gimplify second operand of
20100 OMP_ATOMIC_LOAD.
20101
20102 2008-03-17 Richard Guenther <rguenther@suse.de>
20103
20104 PR tree-optimization/19637
20105 * fold-const.c (fold_unary): Remove restrictions of removing
20106 intermediate pointer-conversions (P2)(P1)P0.
20107 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
20108 conversion to void pointer.
20109 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
20110
20111 2008-03-16 James E. Wilson <wilson@tuliptree.org>
20112
20113 PR debug/31510
20114 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
20115 emulated thread local variables.
20116
20117 2008-03-16 Richard Guenther <rguenther@suse.de>
20118
20119 PR middle-end/35607
20120 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
20121 expand TREE_INVARIANT operations that are not gimple invariant.
20122
20123 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
20124
20125 * doc/extend.texi (Alignment): Say that the ABI controls
20126 the __alignof__ for non-strict-alignment targets rather
20127 than being a recommendation.
20128
20129 2008-03-15 Paul Brook <paul@codesourcery.com>
20130
20131 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
20132 annotations.
20133 (arm_output_fn_unwind): Mark functions that can not be unwound.
20134
20135 2008-03-15 Paul Brook <paul@codesourcery.com>
20136
20137 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
20138 extension instructions.
20139
20140 2008-03-15 Richard Guenther <rguenther@suse.de>
20141
20142 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
20143 and fold constant aggregate refs.
20144 (fold_const_aggregate_ref): Handle string constants
20145 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
20146 (evaluate_stmt): Simplify now that ccp_fold folds constant
20147 aggregate refs.
20148
20149 2008-03-15 Paul Brook <paul@codesourcery.com>
20150
20151 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
20152 (extzv): Use gen_extzv_t2.
20153 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
20154
20155 2008-03-15 Richard Guenther <rguenther@suse.de>
20156
20157 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
20158 (fold_const_aggregate_ref): Likewise.
20159 (get_value): Return NULL if we don't have any values.
20160 (ccp_finalize): Set const_val to NULL after freeing it.
20161 * tree-flow.h (get_symbol_constant_value): Declare.
20162 (fold_const_aggregate_ref): Likewise.
20163 * tree-ssa-sccvn.c (try_to_simplify): Use them.
20164
20165 2008-03-15 Richard Guenther <rguenther@suse.de>
20166
20167 PR middle-end/35593
20168 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
20169 to not produce negative array indices if not allowed. Add
20170 parameter to indicate that.
20171 (maybe_fold_offset_to_component_ref): Allow negative array
20172 indices only for the first member of a structure.
20173 (maybe_fold_offset_to_reference): Allow negative array indices.
20174 (maybe_fold_stmt_addition): Likewise.
20175
20176 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
20177 Anatoly Sokolov <aesok@post.ru>
20178
20179 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
20180 (avr_arch): Add ARCH_AVR6.
20181 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
20182 (initial_elimination_offset): Initialize and use 'avr_pc_size'
20183 instead of fixed value 2.
20184 (print_operand_address): Use gs() asm specifier instead of pm().
20185 (avr_assemble_integer): (Ditto.).
20186 (avr_output_addr_vec_elt): (Ditto.).
20187 (print_operand): Handle "!" code.
20188 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
20189 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
20190 (AVR_HAVE_EIJMP_EICALL): Define.
20191 (AVR_3_BYTE_PC): Redefine.
20192 (AVR_2_BYTE_PC): (Ditto.).
20193 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
20194 (LINK_SPEC): Add atmega2560 and atmega2561.
20195 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
20196 (crtm2561.o).
20197 * config/avr/avr.md (call_insn): Use eicall instead of icall
20198 for 3 byte PC devices.
20199 (call_value_insn): (Ditto.).
20200 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
20201 (indirect_jump): Use only for for 2 byte PC devices.
20202 (*tablejump): (Ditto.).
20203 (*indirect_jump_avr6): Add insn.
20204 (*tablejump_rjmp): Don't use for 3 byte PC devices.
20205 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
20206 instead of ijmp for 3 byte PC devices.
20207 (__tablejump2__): (Ditto.).
20208 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
20209 (MULITLIB_DIRNAMES): (Ditto.).
20210 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
20211
20212 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
20213
20214 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
20215 "sse2_umulsidi3". Use V1DI mode for operand 0.
20216 ("mmx_psadbw"): Use V1DI mode for operand 0.
20217 * config/i386/i386-modes.def (V1SI): New vector mode.
20218 * config/i386/i386.c (struct builtin_description)
20219 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
20220 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
20221 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
20222 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
20223 v1di_ftype_v8qi_v8qi type.
20224 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
20225
20226 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
20227 __builtin_ia32_pmuludq]: Fix the mode of return value.
20228
20229 2008-03-15 Richard Guenther <rguenther@suse.de>
20230
20231 PR middle-end/35595
20232 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
20233 being a PHI_NODE.
20234
20235 2008-03-14 Bob Wilson <bob.wilson@acm.org>
20236
20237 * doc/invoke.texi (Option Summary, Xtensa Options): Document
20238 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
20239 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
20240 unless TARGET_SERIALIZE_VOLATILE is enabled.
20241 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
20242 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
20243 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
20244
20245 2008-03-14 Richard Guenther <rguenther@suse.de>
20246
20247 PR tree-optimization/34172
20248 * tree-flow.h (refs_may_alias_p): Declare.
20249 (get_single_def_stmt): Likewise.
20250 (get_single_def_stmt_from_phi): Likewise.
20251 (get_single_def_stmt_with_phi): Likewise.
20252 * tree-dfa.c (refs_may_alias_p): New function.
20253 (get_single_def_stmt): Likewise.
20254 (get_single_def_stmt_from_phi): Likewise.
20255 (get_single_def_stmt_with_phi): Likewise.
20256 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
20257 (vn_reference_lookup_1): New helper function.
20258 (vn_reference_lookup): Walk the virtual use-def chain to
20259 continue searching for a match if the def does not alias the
20260 reference we are looking for.
20261
20262 2008-03-14 David Edelsohn <edelsohn@gnu.org>
20263
20264 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
20265 archive and Perzl. Update The Written Word listing.
20266
20267 2008-03-14 Richard Guenther <rguenther@suse.de>
20268
20269 PR tree-optimization/34043
20270 PR tree-optimization/33989
20271 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
20272 when doing FRE.
20273 (bitmap_find_leader): Use extra argument to verify dominance
20274 relationship inside a basic-block.
20275 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
20276 (find_leader_in_sets): Adjust.
20277 (create_component_ref_by_pieces): Take extra argument for
20278 dominance check, handle lookup failures.
20279 (find_or_generate_expression): Likewise.
20280 (create_expression_by_pieces): Likewise.
20281 (insert_into_preds_of_block): Adjust.
20282 (create_value_expr_from): If asked for, verify all operands
20283 are in the blocks AVAIL_OUT set.
20284 (make_values_for_stmt): Check for SSA_NAMEs that are life
20285 over an abnormal edge.
20286 (compute_avail): Remove such check.
20287 (do_SCCVN_insertion): New function.
20288 (eliminate): If we do not find a leader suitable for replacement
20289 insert a replacement expression from SCCVN if available.
20290 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
20291 (struct vn_ssa_aux): Add needs_insertion flag.
20292 * tree-ssa-sccvn.c (may_insert): New global flag.
20293 (copy_reference_ops_from_ref): Value-number union member access
20294 based on its size, not type and member if insertion is allowed.
20295 (visit_reference_op_load): For a weak match from union type
20296 punning lookup a view-converted value and insert a SSA_NAME
20297 for that value if that is not found.
20298 (visit_use): Make dumps shorter. Do not disallow value numbering
20299 SSA_NAMEs that are life over an abnormal edge to constants.
20300 (free_scc_vn): Release inserted SSA_NAMEs.
20301 (run_scc_vn): New flag to specify whether insertion is allowed.
20302 Process SSA_NAMEs in forward order.
20303 * tree-ssa-loop-im.c (for_each_index): Handle invariant
20304 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
20305 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
20306 pointer type to/from integral types that do not change the
20307 precision to regular conversions.
20308
20309 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
20310
20311 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
20312 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
20313 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
20314 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
20315 input arguments and the mode of return value. Built-in functions
20316 that operate on whole 64-bit MMX register now use V1DI mode.
20317
20318 2008-03-13 Alon Dayan <alond@il.ibm.com>
20319 Olga Golovanevsky <olga@il.ibm.com>
20320
20321 PR tree-optimization/35041
20322 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
20323 to locate the right position in a statement.
20324
20325 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
20326
20327 PR target/34000
20328 PR target/35553
20329 * config/i386/xmmintrin.h: Change all static inline functions to
20330 extern inline and add __gnu_inline__ attribute.
20331 * config/i386/bmintrin.h: Ditto.
20332 * config/i386/smmintrin.h: Ditto.
20333 * config/i386/tmmintrin.h: Ditto.
20334 * config/i386/mmintrin-common.h: Ditto.
20335 * config/i386/ammintrin.h: Ditto.
20336 * config/i386/emmintrin.h: Ditto.
20337 * config/i386/pmmintrin.h: Ditto.
20338 * config/i386/mmintrin.h: Ditto.
20339 * config/i386/mm3dnow.h: Ditto.
20340
20341 2008-03-13 Jakub Jelinek <jakub@redhat.com>
20342
20343 PR middle-end/35185
20344 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
20345 (lower_omp_2): New function.
20346 (lower_omp_1, lower_omp): Rewritten.
20347
20348 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
20349
20350 PR 35054
20351 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
20352 with the phrase "Microsoft Windows compilers".
20353 (Push/Pop Macro Pragmas): New subsection. Document
20354 #pragma push_macro and pragma pop_macro.
20355
20356 2008-03-12 Paul Brook <paul@codesourcery.com>
20357
20358 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
20359
20360 2008-03-12 Paul Brook <paul@codesourcery.com>
20361
20362 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
20363 (thumb2_alusi3_short): Exclude PLUS and MINUS.
20364 (thumb2_addsi_shortim): Rename ...
20365 (thumb2_addsi_short): ... to this. Allow register operands.
20366 (thumb2_subsi_short): New pattern.
20367 (thumb2_one_cmplsi2_short,
20368 thumb2_negsi2_short): New patterns and peepholes.
20369
20370 2008-03-12 Paul Brook <paul@codesourcery.com>
20371
20372 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
20373
20374 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
20375
20376 * config/i386/i386.md (int_cond): New code iterator.
20377 (fp_cond): Ditto.
20378 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
20379 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
20380 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
20381 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
20382 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
20383 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
20384 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
20385 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
20386
20387 2008-03-12 Paul Brook <paul@codesourcery.com>
20388
20389 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
20390 instead of {arm,thumb}_compute_save_reg_mask.
20391 (output_return_instruction): Ditto.
20392 (thumb_unexpanded_epilogue): Ditto.
20393 (thumb1_expand_prologue): Ditto.
20394 (thumb1_output_function_prologue): Ditto.
20395 (arm_set_return_address): Ditto.
20396 (thumb_set_return_address): Ditto.
20397 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
20398 regs to achieve stack alignment.
20399 (thumb1_compute_save_reg_mask): Fix compiler warning.
20400 (arm_output_epilogue): Use offsets->saved_regs_mask.
20401 Adjust stack pointer by poping call clobered registers.
20402 (arm_expand_prologue): Use offsets->saved_regs_mask.
20403 Adjust stack pointer by pushing extra registers.
20404 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
20405
20406 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
20407
20408 PR tree-opt/35422
20409 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
20410 conversion to the operands of a multiplication.
20411
20412 2008-03-12 Richard Guenther <rguenther@suse.de>
20413
20414 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
20415 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
20416 * timevar.def (TV_TREE_PHIPROP): Add.
20417 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
20418 pass description. Use TV_TREE_PHIPROP.
20419 * tree-ssa-forwprop.c: Remove phiprop code.
20420
20421 2008-03-12 Jakub Jelinek <jakub@redhat.com>
20422
20423 PR middle-end/35549
20424 * omp-low.c (maybe_lookup_decl): Constify first argument.
20425 (use_pointer_for_field): Change last argument from bool to
20426 omp_context *. Disallow shared copy-in/out in nested
20427 parallel if decl is shared in outer parallel too.
20428 (build_outer_var_ref, scan_sharing_clauses,
20429 lower_rec_input_clauses, lower_copyprivate_clauses,
20430 lower_send_clauses, lower_send_shared_vars): Adjust callers.
20431
20432 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
20433 Ira Rosen <irar@il.ibm.com>
20434
20435 * tree-vectorizer.c (free_stmt_vec_info): New function.
20436 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
20437 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
20438 * tree-vectorizer.h (free_stmt_vec_info): Declare.
20439 * tree-vect-transform.c (vectorizable_conversion): Free
20440 vec_oprnds0 if it was allocated.
20441 (vect_permute_store_chain): Remove unused VECs.
20442 (vectorizable_store): Free VECs that are allocated in the..
20443 function.
20444 (vect_transform_strided_load, vectorizable_load): Likewise.
20445 (vect_remove_stores): Simplify the code.
20446 (vect_transform_loop): Move code to vect_remove_stores().
20447 Call vect_remove_stores() and free_stmt_vec_info().
20448
20449 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20450
20451 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
20452 TARGET_HPUX. Revise comment.
20453 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
20454 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
20455 Use sr4 variant of `be' instruction when not generating PIC code.
20456 (attr_length_call): Adjust for above change.
20457
20458 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
20459
20460 * ipa-reference.c (static_execute): Remove module_statics_const and
20461 associated setting code.
20462
20463 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
20464
20465 PR target/35540
20466 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
20467 predicate for operand 1.
20468 (paritysi2_cmp): Use register_operand predicate for operand 2.
20469 Use earlyclobber modifier for operand 1. Remove support for
20470 memory operands.
20471 (paritydi2_cmp): Use register_operand predicate for operand 3.
20472 Use earlyclobber modifier for operand 1. Remove support for
20473 memory operands.
20474
20475 2008-03-11 Paul Brook <paul@codesourcery.com>
20476 Vladimir Prus <vladimir@codesourcery.com>
20477
20478 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
20479 (arm_compute_save_reg0_reg12_mask): Always
20480 check if register 11 must be saved. Always safe hard frame pointer
20481 when frame_pointer_needeed.
20482 (arm_compute_save_reg_mask): Save IP and PC
20483 only with apcs frames.
20484 (arm_output_epilogue): Adjust Thumb2 codepath to
20485 be also invoked and work for ARM non-apcs frames.
20486 (arm_expand_prologue): Don't bother saving IP
20487 for non-apcs frame, since it's not clobbered by
20488 prologue code. Implement non-apcs frame
20489 layout.
20490
20491 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
20492
20493 PR rtl-optimization/35281
20494 * expr.c (convert_move): Use a new pseudo for the intermediate
20495 from_mode->word_mode result.
20496
20497 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
20498
20499 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
20500 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
20501 * toplev.c (compile_file): Don't call it.
20502
20503 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
20504
20505 PR middle-end/35526
20506 * expr.c (store_expr): Call emit_block_move if the mode
20507 of "temp" RTX is BLKmode.
20508
20509 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
20510 Richard Guenther <rguenther@suse.de>
20511
20512 PR tree-optimization/31358
20513 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
20514 the step with a NULL_TREE.
20515 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
20516 to sizetype if type is a pointer type.
20517 (add_candidate_1): Don't convert the base and step to
20518 the generic type if the orginal type is a pointer type.
20519 (add_iv_value_candidates): Use sizetype for the step
20520 if type is a pointer type.
20521 (cand_value_at): Likewise.
20522 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
20523 for pointer types.
20524 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
20525 Don't convert the tem affine to the type.
20526 (add_elt_to_tree): Use sizetype for the step if a pointer.
20527 Use POINTER_PLUS_EXPR for pointers.
20528 (aff_combination_to_tree): Use sizetype for the step if a
20529 pointer.
20530
20531 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
20532
20533 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
20534 Remove commutativity hint.
20535
20536 2008-03-10 Jakub Jelinek <jakub@redhat.com>
20537
20538 PR c/35438
20539 PR c/35439
20540 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
20541 errorneous type. Check that v is a VAR_DECL.
20542
20543 PR middle-end/35099
20544 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
20545
20546 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
20547
20548 PR tree-optimization/35494
20549 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
20550 may be overriden at link and run time.
20551
20552 2008-03-10 Richard Guenther <rguenther@suse.de>
20553
20554 PR tree-optimization/34677
20555 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
20556 (poolify_tree): Likewise.
20557 (modify_expr_template): Likewise.
20558 (poolify_modify_stmt): Likewise.
20559 (insert_fake_stores): Handle all component-ref style stores
20560 in addition to INDIRECT_REF. Also handle complex types.
20561 Do not poolify the inserted load.
20562 (realify_fake_stores): Do not rebuild the tree but only
20563 make it a SSA_NAME copy.
20564 (init_pre): Remove initialzation of modify_expr_template.
20565 Do not allocate modify_expr_node_pool.
20566 (fini_pre): Do not free modify_expr_node_pool.
20567
20568 2008-03-10 Paul Brook <paul@codesourcery.com>
20569
20570 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
20571 to avoid conflicts.
20572
20573 2008-03-10 Paul Brook <paul@codesourcery.com>
20574 Mark Shinwell <shinwell@codesourcery.com>
20575
20576 * config/arm/cortex-r4.md: New.
20577 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
20578 insn attributes.
20579 * config/arm/arm.md: Include cortex-r4.md.
20580 (insn): Add smmls, sdiv and udiv values.
20581 (generic_sched): Don't use generic scheduling for Cortex-R4.
20582 (arm_issue_rate): New function.
20583 (TARGET_SCHED_ISSUE_RATE): Define.
20584
20585 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
20586
20587 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
20588
20589 2008-03-10 Richard Guenther <rguenther@suse.de>
20590
20591 * tree-ssa-pre.c (get_sccvn_value): Simplify.
20592 (compute_avail): Do not add stmt uses to AVAIL_OUT.
20593
20594 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
20595
20596 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
20597 Set default to true.
20598
20599 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20600
20601 * c.opt (Wsynth): Deprecate.
20602 * doc/invoke.texi (Option Summary, Warning Options): Document
20603 -Wno-format-contains-nul.
20604
20605 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
20606
20607 PR target/35496
20608 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
20609 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
20610
20611 2008-03-09 Ira Rosen <irar@il.ibm.com>
20612
20613 * config/rs6000/rs6000.c (builtin_description): Rename vector
20614 left shift operations.
20615 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
20616 (altivec_vsl<VI_char>): Rename to ...
20617 (ashl<mode>3): ... new name.
20618 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
20619 gen_ashlv4si3.
20620 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
20621
20622 2008-03-08 Richard Guenther <rguenther@suse.de>
20623
20624 * coverage.h (tree_coverage_counter_addr): Declare.
20625 * coverage.c (tree_coverage_counter_addr): New function.
20626 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
20627 before using again.
20628 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
20629 (tree_gen_one_value_profiler): Likewise.
20630 (tree_gen_ic_profiler): Likewise.
20631 (tree_gen_average_profiler): Likewise.
20632 (tree_gen_ior_profiler): Likewise.
20633
20634 2008-03-08 Richard Guenther <rguenther@suse.de>
20635
20636 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
20637 (vn_binary_op_insert): Likewise.
20638 (vn_unary_op_lookup): Likewise.
20639 (vn_unary_op_insert): Likewise.
20640 (vn_nary_op_lookup): Declare.
20641 (vn_nary_op_insert): Likewise.
20642 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
20643 and binary hashes, use a single obstack for unary_op_pool
20644 and binary_op_pool.
20645 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
20646 a single struct vn_nary_op_s. Store tree code length and
20647 a variable number of operands.
20648 (struct vn_reference_op_struct): Remove unused op2.
20649 (vn_reference_op_eq): Do not compare op2.
20650 (vn_reference_op_compute_hash): Do not compute hash of op2.
20651 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
20652 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
20653 with vn_nary_op_compute_hash.
20654 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
20655 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
20656 vn_nary_op_lookup.
20657 (vn_unary_op_insert, vn_binary_op_insert): Replace with
20658 vn_nary_op_insert.
20659 (visit_unary_op): Call nary functions.
20660 (visit_binary_op): Likewise.
20661 (process_scc): Adjust for struct vn_tables_s changes.
20662 (allocate_vn_table): Likewise.
20663 (free_vn_table): Likewise.
20664 * tree-vn.c (vn_add): Call nary functions.
20665 (vn_lookup): Likewise.
20666
20667 2008-03-08 Jakub Jelinek <jakub@redhat.com>
20668
20669 PR target/35498
20670 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
20671 wdst back after sync_compare_and_swapqhi_internal.
20672
20673 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
20674
20675 PR target/22152
20676 * config/i386/i386-modes.def (V1DI): New vector mode.
20677 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
20678 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
20679 (MMXMODE248): Ditto.
20680 (MMXMODE): Add V1DI mode.
20681 (mmxvecsize): Change DI mode to V1DI mode.
20682 ("mov<mode>): Use MMXMODEI8 mode iterator.
20683 ("*mov<mode>_internal_rex64"): Ditto.
20684 ("*mov<mode>_internal"): Ditto.
20685 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
20686 ("mmx_sub<mode>3"): Ditto.
20687 ("mmx_adddi3"): Remove insn pattern.
20688 ("mmx_subdi3"): Ditto.
20689 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
20690 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
20691 ("mmx_ashl<mode>3"): Ditto.
20692 ("mmx_lshrdi3"): Remove insn pattern.
20693 ("mmx_ashldi3"): Ditto.
20694 * config/i386/i386.c (classify_argument): Handle V1DImode.
20695 (function_arg_advance_32): Ditto.
20696 (function_arg_32): Ditto.
20697 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
20698 mmx_addv1di3 insn pattern.
20699 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
20700 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
20701 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
20702 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
20703 Remove definitions of built-in functions.
20704 (V1DI_type_node): New node.
20705 (v1di_ftype_v1di_int): Ditto.
20706 (v1di_ftype_v1di_v1di): Ditto.
20707 (v2si_ftype_v2si_si): Ditto.
20708 (v4hi_ftype_v4hi_di): Remove node.
20709 (v2si_ftype_v2si_di): Ditto.
20710 (ix86_init_mmx_sse_builtins): Handle V1DImode.
20711 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
20712 Redefine builtins using def_builtin_const with *_ftype_*_int node.
20713 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
20714 Add new builtins using def_builtin_const.
20715 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
20716 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
20717 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
20718 * config/i386/mmintrin.h (__v1di): New typedef.
20719 (_mm_add_si64): Cast arguments to __v1di type.
20720 (_mm_sub_si64): Ditto.
20721 (_mm_sll_pi16): Cast __count to __v4hi type.
20722 (_mm_sll_pi32): Cast __count to __v2si type.
20723 (_mm_sll_si64): Cast arguments to __v1di type.
20724 (_mm_srl_pi16): Cast __count to __v4hi type.
20725 (_mm_srl_pi32): Cast __count to __v2si type.
20726 (_mm_srl_si64): Cast arguments to __v1di type.
20727 (_mm_sra_pi16): Cast __count to __v4hi type.
20728 (_mm_sra_pi32): Cast __count to __v2si type.
20729 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
20730 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
20731 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
20732 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
20733 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
20734 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
20735 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
20736 (_mm_srai_pi32): Use __builtin_ia32_psradi.
20737 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
20738 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
20739 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
20740 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
20741
20742 2008-03-07 Joseph Myers <joseph@codesourcery.com>
20743
20744 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
20745
20746 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
20747
20748 PR target/35373
20749 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
20750 reg+const addressing for Altivec modes. Don't generate reg+reg
20751 addressing for TFmode or TDmode quantities.
20752
20753 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
20754
20755 * c-common.c (vector_types_convertible_p): Call langhook
20756 instead of comptypes.
20757
20758 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
20759
20760 PR tree-opt/35402
20761 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
20762 integral and scalar float variables which have a
20763 NULL DECL_INITIAL.
20764
20765 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
20766
20767 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
20768 dwarf_register_span hook when emitting unwind information for
20769 register-to-memory saves.
20770 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
20771 (rs6000_frame_related): Remove call to spe_synthesize_frame.
20772
20773 2008-03-06 Jakub Jelinek <jakub@redhat.com>
20774
20775 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
20776 for the same VAR_DECL.
20777
20778 2008-03-06 Tom Tromey <tromey@redhat.com>
20779
20780 * treelang: Delete.
20781 * doc/standards.texi (Standards): Don't mention treelang.
20782 * doc/invoke.texi (Overall Options): Don't mention treelang.
20783 * doc/install.texi (Prerequisites): Don't mention bison or
20784 treelang.
20785 (Configuration): Don't mention treelang.
20786 (Building): Likewise.
20787 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
20788
20789 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
20790
20791 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
20792 word-extractions out of a multi-word object.
20793
20794 2008-03-06 Richard Guenther <rguenther@suse.de>
20795
20796 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
20797 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
20798 result type and precision.
20799 * expr.c (get_inner_reference): Set unsignedp based on the result
20800 type of BIT_FIELD_REF.
20801 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
20802 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
20803 (try_instantiate_multiple_fields): Likewise. Use the correct type
20804 for BIT_FIELD_REF.
20805 (sra_build_assignment): Likewise.
20806 (sra_build_elt_assignment): Likewise.
20807 (sra_explode_bitfield_assignment): Likewise.
20808 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
20809 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
20810 set BIT_FIELD_REF_UNSIGNED.
20811 (vectorizable_load): Likewise.
20812
20813 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
20814
20815 * cse.c (cse_extended_basic_block): Invalidate artificial defs
20816 at bb start.
20817
20818 2008-03-06 Richard Guenther <rguenther@suse.de>
20819
20820 * alias.c (struct alias_set_entry): Move has_zero_child field
20821 to pack with alias_set.
20822
20823 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
20824
20825 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
20826 32bit host.
20827
20828 2008-03-05 Ian Lance Taylor <iant@google.com>
20829
20830 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
20831
20832 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
20833
20834 * fwprop.c (update_df): Support width and offset parameters of
20835 df_ref_create.
20836 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
20837 global_conflicts): Change DF_REF_EXTRACT to either
20838 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
20839 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
20840 * df-scan.c (df_ref_record, df_defs_record,
20841 df_ref_create_structure, df_def_record_1, df_uses_record,
20842 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
20843 df_bb_refs_collect, df_entry_block_defs_collect,
20844 df_exit_block_uses_collect): Support new width and offset fields.
20845 (ref_extract_pool): New storage pool.
20846 (df_free_ref): New function.
20847 (df_reg_chain_unlink, df_free_collection_rec,
20848 df_sort_and_compress_refs): Call df_free_ref.
20849 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
20850 of df_ref_extract.
20851 (df_ref_create_structure): Allocate df_ref_extract if offset and
20852 width fields are used.
20853 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
20854 (df_uses_record): Get offset and width from ZERO_EXTRACT
20855 and SIGN_EXTRACT.
20856 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
20857 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
20858 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
20859 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
20860 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
20861 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
20862 (df_ref_extract): New structure.
20863 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
20864 (df_ref_create): Add width and offset parameters.
20865
20866 2008-03-05 Richard Guenther <rguenther@suse.de>
20867
20868 * tree-ssa-structalias.c (get_constraint_for_component_ref):
20869 Use ranges_overlap_p.
20870 (offset_overlaps_with_access): Rename
20871 to ranges_overlap_p and move ...
20872 * tree-flow-inline.h (ranges_overlap_p): ... here.
20873
20874 * tree.h (get_inner_reference, handled_component_p): Update
20875 comments.
20876
20877 * tree.h (record_component_aliases, get_alias_set,
20878 alias_sets_conflict_p, alias_sets_must_conflict_p,
20879 objects_must_conflict_p): Move declarations ...
20880 * alias.h (record_component_aliases, get_alias_set,
20881 alias_sets_conflict_p, alias_sets_must_conflict_p,
20882 objects_must_conflict_p): ... here.
20883 Include coretypes.h.
20884 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
20885
20886 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
20887
20888 * cfg.c: Include tree-flow.h.
20889 (remove_edge_raw): Call redirect_edge_var_map_clear.
20890 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
20891 * tree-flow-inline.h (redirect_edge_var_map_def): New.
20892 (redirect_edge_var_map_result): New.
20893 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
20894 PENDING_STMT use with redirect_edge_var_map_*.
20895 * tree-ssa.c (edge_var_maps): New definition.
20896 (redirect_edge_var_map_add): New.
20897 (redirect_edge_var_map_clear): New.
20898 (redirect_edge_var_map_dup): New.
20899 (redirect_edge_var_map_vector): New.
20900 (redirect_edge_var_map_destroy): New.
20901 (ssa_redirect_edge): Replace PENDING_STMT use with
20902 redirect_edge_var_map_*.
20903 (flush_pending_stmts): Same.
20904 (delete_tree_ssa): Destroy edge var map.
20905 * tree-flow.h (struct _edge_var_map): New.
20906 Define edge_var_map vector type.
20907 Declare redirect_edge_var_map_* prototypes.
20908 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
20909 * tree-cfg.c (reinstall_phi_args): Replace
20910 PENDING_STMT use with redirect_edge_var_map_*.
20911
20912 2008-03-05 Richard Guenther <rguenther@suse.de>
20913
20914 PR tree-optimization/35472
20915 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
20916 whose single use_stmt has a overlapping set of loaded and
20917 stored symbols as that use_stmt might be a noop assignment then.
20918
20919 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
20920
20921 * gthr-rtems.h: Implement __gthread_mutex_destroy.
20922
20923 2008-03-05 Richard Guenther <rguenther@suse.de>
20924
20925 PR c++/35336
20926 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
20927 should be constants.
20928 * tree-cfg.c (verify_expr): Verify it.
20929 * fold-const.c (fold_truthop): Remove code generating
20930 BIT_FIELD_REFs of structure bases.
20931 (fold_binary): Likewise.
20932 (fold_ternary): Position and size of BIT_FIELD_REFs are
20933 always host integers.
20934 (make_bit_field_ref): Remove.
20935 (optimize_bit_field_compare): Remove.
20936 (all_ones_mask_p): Remove.
20937
20938 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
20939
20940 PR gcc/33009
20941 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
20942 (split_block_and_df_analyze): New. Split basic block and rebuild
20943 dataflow.
20944 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
20945 SPLIT_BLOCK.
20946 (split_pattern_seq): Likewise.
20947 (erase_matching_seqs): Likewise.
20948 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
20949
20950 2008-03-04 Geoff Keating <geoffk@apple.com>
20951
20952 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
20953 declaration and code.
20954 (tree_invalid_nonnegative_warnv_p): Likewise.
20955
20956 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
20957
20958 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
20959 examples. Truncate option-names then causing overfull hbox.
20960
20961 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20962
20963 PR target/35222
20964 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
20965 on hpux10.
20966 * configure: Rebuilt.
20967
20968 2008-03-04 Rafael Espíndola <espindola@google.com>
20969
20970 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
20971 (tree_unary_nonnegative_warnv_p): New.
20972 (tree_binary_nonnegative_warnv_p): New.
20973 (tree_single_nonnegative_warnv_p): New.
20974 (tree_invalid_nonnegative_warnv_p): New.
20975 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
20976
20977 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20978
20979 PR 28322
20980 * opts.c (handle_option): Postpone 'unknown option' errors only for
20981 warning options.
20982
20983 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
20984
20985 PR target/35453
20986 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
20987 (_SIDD_XXX): This.
20988
20989 2008-03-04 Rafael Espíndola <espindola@google.com>
20990
20991 * fold-const.c (tree_unary_nonzero_warnv_p): New.
20992 (tree_binary_nonzero_warnv_p): New.
20993 (tree_single_nonzero_warnv_p): New.
20994 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
20995
20996 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
20997
20998 PR middle-end/35456
20999 * fold-const.c (fold_cond_expr_with_comparison): Prevent
21000 transformations for modes that have signed zeros.
21001 * ifcvt.c (noce_try_abs): Ditto.
21002
21003 2008-03-04 Joseph Myers <joseph@codesourcery.com>
21004
21005 * config/i386/i386.c (override_options): Force
21006 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
21007
21008 2008-03-04 Jan Hubicka <jh@suse.cz>
21009
21010 PR c++/35262
21011 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
21012 in last commit.
21013
21014 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
21015
21016 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
21017 label to probe the stack.
21018
21019 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
21020
21021 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
21022 (__gthr_win32_mutex_destroy): Declare.
21023 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
21024 __gthr_win32_mutex_destroy.
21025 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
21026
21027 2008-03-03 Jan Hubicka <jh@suse.cz>
21028
21029 PR c++/35262
21030 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
21031 aggressive on inlining cold calls.
21032
21033 2008-03-03 Richard Guenther <rguenther@suse.de>
21034
21035 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
21036 struct copies into the expression table.
21037 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
21038 (try_to_simplify): Likewise.
21039 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
21040 integral and pointer arguments which do not change the
21041 precision to NOP_EXPRs.
21042 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
21043 VIEW_CONVERT_EXPR case.
21044
21045 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
21046
21047 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
21048 defined in a loop at depth 0 is invariant.
21049 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
21050 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
21051 be called at loop depth 0.
21052
21053 2008-03-02 Jakub Jelinek <jakub@redhat.com>
21054
21055 PR driver/35420
21056 * gcc.c (process_command): Update copyright notice dates.
21057 * gcov.c (print_version): Likewise.
21058 * gcov-dump.c (print_version): Likewise.
21059 * mips-tfile.c (main): Likewise.
21060 * mips-tdump.c (main): Likewise.
21061
21062 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21063
21064 PR 24924
21065 * c-common.c (flag_permissive): Delete.
21066 (constant_expression_warnings): Check flags first.
21067 (constant_expression_error): New.
21068 * c-common.h (flag_permissive): Delete.
21069 (constant_expression_error): Declare.
21070 * flags.h (flag_permissive): Declare. Update description.
21071 * diagnostic.c (pedwarn): Update.
21072 (permerror): New.
21073 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
21074 (permissive_error_kind): New.
21075 * toplev.c (flag_permissive): Define. Update description.
21076 * toplev.h (permissive_error_kind): Declare.
21077 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
21078 (pedwarn_c90): Use pedantic_warning_kind.
21079 * c-opts.c (c_common_post_options): flag_permissive does not affect
21080 flag_pedantic_errors.
21081
21082 2008-03-02 Joseph Myers <joseph@codesourcery.com>
21083
21084 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
21085 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
21086 __absvsi2, __absvDI2): Use unsigned arithmetic.
21087
21088 2008-03-02 Andi Kleen <ak@suse.de>
21089 Richard Guenther <rguenther@suse.de>
21090
21091 * struct-equiv.c: Remove file.
21092 * cfg_cleanup.c (condjump_equiv_p): Remove.
21093 * Makefile.in (OBJS-common): Remove struct-equiv.o.
21094 (struct-equiv.o): Remove rule.
21095 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
21096 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
21097 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
21098
21099 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
21100
21101 * ifcvt.c (noce_process_if_block): Try to handle only the then
21102 block if the else block exists but isn't suitable.
21103
21104 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
21105
21106 PR gcc/35063
21107 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
21108 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
21109 regression from previous patch.
21110
21111 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
21112
21113 PR gcc/35063
21114 * gthr.h: Add __gthread_mutex_destroy as a function that must be
21115 implemented.
21116 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
21117 * gthr-single.h (__gthread_mutex_destroy): Likewise.
21118 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
21119 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
21120 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
21121 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
21122 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
21123 (__gthread_mutex_destroy_function): Rename to
21124 __gthread_mutex_destroy.
21125 * gthr-dce.h (__gthread_mutex_destroy): Call
21126 pthread_mutex_destroy.
21127 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
21128 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
21129 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
21130
21131 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
21132
21133 * df-scan.c (df_ref_chain_change_bb): Simplify.
21134 (df_insn_change_bb): Add new_bb argument. Simplify. Call
21135 set_block_for_insn if there's any change.
21136 * df.h ((df_insn_change_bb): Fix prototype.
21137 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
21138 df_insn_change_bb, don't call set_block_for_insn.
21139 * emit-rtl.c (reorder_insns): Likewise.
21140 * haifa-sched.c (move_insn): Likewise.
21141
21142 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
21143
21144 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
21145
21146 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
21147
21148 * tree-flow-inline.h (next_readonly_imm_use): Return
21149 NULL_USE_OPERAND_P after the end.
21150
21151 2008-03-01 Richard Guenther <rguenther@suse.de>
21152
21153 PR tree-optimization/35411
21154 * tree-sra.c (sra_build_assignment): Split conversion to
21155 final type to a separate statement if we are not assigning
21156 to a register.
21157
21158 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
21159
21160 * fold-const.c (fold_convertible_p): Correct the logic to follow
21161 that in fold_convert().
21162
21163 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
21164
21165 PR c++/35315
21166 * tree-inline.c (build_duplicate_type): When we make a
21167 duplicate type, make it unique in the canonical types system.
21168
21169 2008-02-29 Tom Tromey <tromey@redhat.com>
21170
21171 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
21172 input_file_stack_history, input_file_stack_restored): Remove.
21173 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
21174 * input.h (struct file_stack): Remove.
21175 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
21176 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
21177 Likewise.
21178 * diagnostic.h (struct diagnostic_context) <last_module>: Change
21179 type.
21180 (diagnostic_last_module_changed): Add 'map' argument.
21181 (diagnostic_set_last_function): Likewise.
21182 * diagnostic.c (undiagnostic_report_current_module): Iterate using
21183 line map, not input_file_stack.
21184 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
21185
21186 2008-02-29 Paul Brook <paul@codesourcery.com>
21187
21188 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
21189
21190 2008-02-29 Paul Brook <paul@codesourcery.com>
21191
21192 * config/arm/ieee754-df.S (muldf3): Use RET macros.
21193
21194 2008-02-29 Richard Guenther <rguenther@suse.de>
21195
21196 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
21197 vn_lookup_or_add.
21198 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
21199 value for comparing for a store match.
21200 (simplify_unary_expression): Do nothing for SSA_NAMEs.
21201 (try_to_simplify): Do not do a full-blown reference lookup.
21202
21203 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
21204
21205 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
21206 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
21207
21208 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
21209
21210 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
21211
21212 * tree-loop-linear.c (try_interchange_loops): Compare memory access
21213 strides against cache sizes.
21214
21215 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
21216
21217 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
21218 constant to fpul.
21219
21220 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
21221
21222 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
21223 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
21224 is smaller than the original promoted value.
21225 (simplify_subreg): If OP is a SUBREG, try to preserve its
21226 SUBREG_PROMOTED_VAR_P information.
21227
21228 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
21229
21230 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
21231 (VN_INFO_GET): Allocate new objects on the obstack.
21232 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
21233 for rpo_numbers_temp, for consistency.
21234 (free_scc_vn): Free the obstack.
21235
21236 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
21237
21238 * doc/invoke.texi: Document -ftree-loop-distribution.
21239 * tree-loop-distribution.c: New.
21240 * tree-pass.h (pass_loop_distribution): New.
21241 * graphds.h (struct graph): Add htab_t indices.
21242 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
21243 * tree-vectorizer.c (rename_variables_in_loop): Extern.
21244 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
21245 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
21246 * tree-data-ref.c (debug_data_dependence_relations): New.
21247 (dump_data_dependence_relation): Also print data references.
21248 (free_data_ref): Extern.
21249 (same_access_functions): Moved...
21250 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
21251 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
21252 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
21253 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
21254 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
21255 (stmts_from_loop): Skip LABEL_EXPR.
21256 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
21257 New.
21258 (build_rdg): Initialize rdg->indices htab.
21259 (free_rdg, stores_from_loop, ref_base_address,
21260 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
21261 have_similar_memory_accesses_1, ref_base_address_1,
21262 remove_similar_memory_refs): New.
21263 * tree-data-ref.h: Depend on tree-chrec.h.
21264 (debug_data_dependence_relations, free_data_ref): Declared.
21265 (same_access_functions): ... here.
21266 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
21267 New.
21268 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
21269 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
21270 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
21271 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
21272 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
21273 rdg_vertex_for_stmt): Declared.
21274 (struct rdg_edge): Add level.
21275 (RDGE_LEVEL): New.
21276 (free_rdg, stores_from_loop, remove_similar_memory_refs,
21277 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
21278 Declared.
21279 (rdg_has_similar_memory_accesses): New.
21280 * tree-vect-analyze.c: Remove unused static decls.
21281 * lambda.h (dependence_level): New.
21282 * common.opt (ftree-loop-distribution): New.
21283 * tree-flow.h (mark_virtual_ops_in_bb,
21284 slpeel_tree_duplicate_loop_to_edge_cfg,
21285 rename_variables_in_loop): Declared.
21286 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
21287 (OBJS-common): Add tree-loop-distribution.o.
21288 (tree-loop-distribution.o): New rule.
21289 * tree-cfg.c (mark_virtual_ops_in_bb): New.
21290 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
21291 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
21292
21293 2008-02-28 Joseph Myers <joseph@codesourcery.com>
21294
21295 PR target/33963
21296 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
21297 other than structures and unions.
21298
21299 2008-02-28 Richard Guenther <rguenther@suse.de>
21300
21301 Revert:
21302 2008-02-26 Richard Guenther <rguenther@suse.de>
21303
21304 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
21305 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
21306 (lookup_decl_from_uid): Declare.
21307 (remove_decl_from_map): Likewise.
21308 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
21309 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
21310 (decl_for_uid_map): New global hashtable mapping DECL_UID
21311 to the decl tree.
21312 (init_ttree): Allocate it.
21313 (insert_decl_to_uid_decl_map): New helper function.
21314 (make_node_stat): Insert new decls into the map.
21315 (copy_node_stat): Likewise.
21316 (lookup_decl_from_uid): New function.
21317 (remove_decl_from_map): Likewise.
21318 (print_decl_for_uid_map_statistics): New helper.
21319 (dump_tree_statistics): Call it.
21320
21321 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
21322 (referenced_var_iterator): Adjust.
21323 (FOR_EACH_REFERENCED_VAR): Adjust.
21324 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
21325 (num_referenced_vars): Adjust.
21326 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
21327 (first_referenced_var): Remove.
21328 (end_referenced_vars_p): Likewise.
21329 (next_referenced_var): Likewise.
21330 (referenced_var_iterator_set): New helper function.
21331 * tree-dfa.c (referenced_var_lookup): Adjust.
21332 (referenced_var_check_and_insert): Likewise.
21333 (remove_referenced_var): Likewise.
21334 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
21335 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21336 (verify_call_clobbering): Likewise.
21337 (verify_memory_partitions): Likewise.
21338 (init_tree_ssa): Allocate bitmap instead of hashtable for
21339 referenced_vars.
21340 (delete_tree_ssa): Adjust.
21341 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
21342 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21343 (compute_tag_properties): Likewise.
21344 (set_initial_properties): Likewise.
21345 (find_partition_for): Likewise.
21346 (update_reference_counts): Likewise.
21347 (dump_may_aliases_for): Likewise.
21348 * tree-ssa-operands.c (add_virtual_operand): Likewise.
21349 (add_call_clobber_ops): Likewise.
21350 (add_call_read_ops): Likewise.
21351 (get_asm_expr_operands): Likewise.
21352 * tree-into-ssa.c (dump_decl_set): Likewise.
21353 (update_ssa): Likewise.
21354 * tree-sra.c (scan_function): Likewise.
21355 (decide_instantiations): Likewise.
21356 (scalarize_parms): Likewise.
21357 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
21358 (dsa_named_for): Likewise.
21359 * tree-ssa-structalias.c (update_alias_info): Likewise.
21360 (merge_smts_into): Likewise.
21361
21362 2008-02-27 David Daney <ddaney@avtrex.com>
21363
21364 PR target/34409
21365 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
21366 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
21367 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
21368 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
21369 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
21370
21371 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
21372
21373 PR target/25477
21374 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
21375 (BUILT_IN_NEXTTOWARD): Remove.
21376 (BUILT_IN_NEXTTOWARDF): Ditto.
21377 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
21378 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
21379
21380 2008-02-27 Tom Tromey <tromey@redhat.com>
21381
21382 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
21383 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
21384
21385 2008-02-27 Jan Beulich <jbeulich@novell.com>
21386
21387 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
21388 update the respective field on newdecl.
21389
21390 2008-02-27 Revital Eres <eres@il.ibm.com>
21391
21392 PR rtl-optimization/34999
21393 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
21394 crossing edges that ends with a call insn.
21395 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
21396 call insn and clear the EDGE_CROSSING flag of the crossing edge
21397 when fixing fallthru edges.
21398
21399 2008-02-27 Richard Guenther <rguenther@suse.de>
21400
21401 PR middle-end/35390
21402 * fold-const.c (fold_unary): Return the correct argument,
21403 converted to the result type.
21404
21405 2008-02-27 Richard Guenther <rguenther@suse.de>
21406
21407 PR middle-end/34971
21408 * expr.c (expand_expr_real_1): Assert on rotates that operate
21409 on partial modes.
21410 * fold-const.c (fold_binary): Use the types precision, not the
21411 bitsize of the mode if folding rotate expressions. Build rotates
21412 only for full modes.
21413
21414 2008-02-27 Jakub Jelinek <jakub@redhat.com>
21415
21416 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
21417 and CPP_PRAGMA_EOL.
21418 * c-pragma.c (pragma_ns_name): New typedef.
21419 (registered_pp_pragmas): New variable.
21420 (c_pp_lookup_pragma): New function.
21421 (c_register_pragma_1): If flag_preprocess_only, do nothing
21422 for non-expanded pragmas, for expanded ones push pragma's
21423 namespace and name into registered_pp_pragmas vector.
21424 (c_invoke_pragma_handler): Register OpenMP pragmas even when
21425 flag_preprocess_only, don't register GCC pch_preprocess
21426 pragma if flag_preprocess_only.
21427 * c-opts.c (c_common_init): Call init_pragma even if
21428 flag_preprocess_only.
21429 * c-pragma.c (c_pp_lookup_pragma): New prototype.
21430 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
21431 cpp_register_pragma if flag_preprocess_only.
21432
21433 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21434
21435 PR c/28800
21436 * c-parser.c (c_parser_translation_unit): Warn for empty
21437 translation unit, not empty source file.
21438
21439 2008-02-26 Paul Brook <paul@codesourcery.com>
21440
21441 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
21442 operand for Thumb-2.
21443 * config/arm/arm.h (reg_class): Add CORE_REGS.
21444 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
21445 (BASE_REG_CLASS): Use CORE_REGS.
21446 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
21447 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
21448 (REGNO_OK_FOR_INDEX_P): Exclude SP.
21449 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
21450 ARM_REGNO_OK_FOR_INDEX_P.
21451 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
21452 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
21453 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
21454 (ldm/stm peepholes): Ditto.
21455 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
21456 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
21457 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
21458 * config/arm/constraints.md: Enable "k" constraint on ARM.
21459
21460 2008-02-27 Ben Elliston <bje@au.ibm.com>
21461
21462 * config/rs6000/rs6000.c: Annotate cache line size field in all
21463 instances of struct processor_costs.
21464
21465 2008-02-26 David Edelsohn <edelsohn@gnu.org>
21466
21467 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
21468 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
21469 jump_bypass): New counters.
21470 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
21471 * dce.c (gate_ud_dce): Same.
21472 (gate_fast_dce): Same.
21473 * dse.c (gate_dse1): New function.
21474 (gate_dse2): New function.
21475 (gate_dse): Merge results of new gate functions.
21476 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
21477 (gate_handle_jump_bypass): Add dbg_cnt.
21478 (gate_handle_gcse): Add dbg_cnt.
21479 * ifcvt.c (gate_handle_if_conversion): Same.
21480 (gate_handle_if_after_combine): Same.
21481 (gate_handle_if_after_reload): Same.
21482 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
21483
21484 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
21485
21486 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
21487 line sizes.
21488 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
21489
21490 2008-02-26 Jason Merrill <jason@redhat.com>
21491
21492 PR c++/35315
21493 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
21494 alone if it's the naming decl for the type's main variant.
21495
21496 2008-02-26 Tom Tromey <tromey@redhat.com>
21497
21498 * system.h (USE_MAPPED_LOCATION): Poison.
21499 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
21500 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
21501 (make_goto_expr_edges): Likewise.
21502 (remove_bb): Likewise.
21503 (execute_warn_function_return): Likewise.
21504 * basic-block.h (struct edge_def) <goto_locus>: Change type to
21505 location_t.
21506 * c-common.c (fname_decl): Remove old location code.
21507 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
21508 location code.
21509 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
21510 variant.
21511 (ASM_INPUT_SOURCE_LOCATION): Likewise.
21512 (gen_rtx_ASM_INPUT): Likewise.
21513 (gen_rtx_ASM_INPUT_loc): Likewise.
21514 (get_rtx_asm_OPERANDS): Remove.
21515 * cfglayout.c (insn_locators_alloc): Remove old location code.
21516 (set_curr_insn_source_location): Likewise.
21517 (curr_insn_locator): Likewise.
21518 * print-tree.c (print_node): Remove old location code.
21519 * tree-mudflap.c (mf_varname_tree): Remove old location code.
21520 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
21521 * cfgexpand.c (expand_gimple_cond_expr): Don't use
21522 location_from_locus.
21523 (construct_exit_block): Remove old location code.
21524 * emit-rtl.c (force_next_line_note): Remove old location code.
21525 * profile.c (branch_prob): Remove old location code.
21526 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
21527 LOC_LINE): Remove old-location variants.
21528 * langhooks.c (lhd_print_error_function): Remove old location
21529 code.
21530 * configure, config.in: Rebuilt.
21531 * configure.ac (--enable-mapped-location): Remove.
21532 * c-decl.c (c_init_decl_processing): Remove old location code.
21533 (finish_function): Likewise.
21534 * recog.c (decode_asm_operands): Remove old location code.
21535 * c-pch.c (c_common_read_pch): Remove old location code.
21536 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
21537 variants.
21538 * gimple-low.c (lower_function_body): Remove old location code.
21539 * toplev.c (unknown_location): Remove.
21540 (push_srcloc): Remove old-location variant.
21541 (process_options): Remove old location code.
21542 (lang_dependent_init): Likewise.
21543 * input.h (UNKNOWN_LOCATION): Move definition.
21544 (location_t): Undeprecate.
21545 (source_locus): Remove.
21546 (location_from_locus): Remove.
21547 (struct location_s): Remove.
21548 Remove all old-location code.
21549 (input_line, input_filename): Remove.
21550 * final.c (final_scan_insn): Remove old location code.
21551 * diagnostic.c (diagnostic_build_prefix): Remove
21552 USE_MAPPED_LOCATION test.
21553 * tree.h (gimple_stmt) <locus>: Now a location_t.
21554 (tree_exp) <locus>: Likewise.
21555 (DECL_IS_BUILTIN): Remove old-location variant.
21556 (annotate_with_file_line, annotate_with_locus): Likewise.
21557 (expr_locus, set_expr_locus): Update.
21558 * tree.c (build1_stat): Remove old location code.
21559 (last_annotated_node): Remove.
21560 (annotate_with_file_line): Remove old-location variant.
21561 (annotate_with_locus): Likewise.
21562 (expr_location): Remove old location code.
21563 (set_expr_location): Likewise.
21564 (expr_has_location): Likewise.
21565 (expr_locus): Likewise.
21566 (set_expr_locus): Likewise.
21567 (expr_filename): Don't use location_from_locus.
21568 (expr_lineno): Likewise.
21569 * rtl-error.c (location_for_asm): Remove old location code.
21570 * c-lex.c (cb_line_change): Remove old location code.
21571 (fe_file_change): Likewise.
21572 (cb_def_pragma): Likewise.
21573 (c_lex_with_flags): Likewise.
21574 * gengtype.c (do_typedef): Don't special-case location types.
21575 (define_location_structures): Remove.
21576 (main): Don't call define_location_structures.
21577 * tree-pretty-print.c (dump_implicit_edges): Remove old location
21578 code.
21579
21580 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21581
21582 PR 26264
21583 * builtins.def (BUILT_IN_STDARG_START): Remove.
21584 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
21585 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
21586 * tree-inline.c (inline_forbidden_p_1): Likewise.
21587
21588 2008-02-26 Richard Guenther <rguenther@suse.de>
21589
21590 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
21591 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
21592 (lookup_decl_from_uid): Declare.
21593 (remove_decl_from_map): Likewise.
21594 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
21595 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
21596 (decl_for_uid_map): New global hashtable mapping DECL_UID
21597 to the decl tree.
21598 (init_ttree): Allocate it.
21599 (insert_decl_to_uid_decl_map): New helper function.
21600 (make_node_stat): Insert new decls into the map.
21601 (copy_node_stat): Likewise.
21602 (lookup_decl_from_uid): New function.
21603 (remove_decl_from_map): Likewise.
21604 (print_decl_for_uid_map_statistics): New helper.
21605 (dump_tree_statistics): Call it.
21606
21607 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
21608 (referenced_var_iterator): Adjust.
21609 (FOR_EACH_REFERENCED_VAR): Adjust.
21610 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
21611 (num_referenced_vars): Adjust.
21612 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
21613 (first_referenced_var): Remove.
21614 (end_referenced_vars_p): Likewise.
21615 (next_referenced_var): Likewise.
21616 (referenced_var_iterator_set): New helper function.
21617 * tree-dfa.c (referenced_var_lookup): Adjust.
21618 (referenced_var_check_and_insert): Likewise.
21619 (remove_referenced_var): Likewise.
21620 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
21621 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21622 (verify_call_clobbering): Likewise.
21623 (verify_memory_partitions): Likewise.
21624 (init_tree_ssa): Allocate bitmap instead of hashtable for
21625 referenced_vars.
21626 (delete_tree_ssa): Adjust.
21627 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
21628 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21629 (compute_tag_properties): Likewise.
21630 (set_initial_properties): Likewise.
21631 (find_partition_for): Likewise.
21632 (update_reference_counts): Likewise.
21633 (dump_may_aliases_for): Likewise.
21634 * tree-ssa-operands.c (add_virtual_operand): Likewise.
21635 (add_call_clobber_ops): Likewise.
21636 (add_call_read_ops): Likewise.
21637 (get_asm_expr_operands): Likewise.
21638 * tree-into-ssa.c (dump_decl_set): Likewise.
21639 (update_ssa): Likewise.
21640 * tree-sra.c (scan_function): Likewise.
21641 (decide_instantiations): Likewise.
21642 (scalarize_parms): Likewise.
21643 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
21644 (dsa_named_for): Likewise.
21645 * tree-ssa-structalias.c (update_alias_info): Likewise.
21646 (merge_smts_into): Likewise.
21647
21648 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21649
21650 PR 34351
21651 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
21652 * c-opts.c (c_common_handle_option): Wall enables
21653 Wvolatile-register-var.
21654 * common.opt: Move Wvolatile-register-var to...
21655 * c.opt: ...here.
21656
21657 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21658
21659 * common.opt (Wlarger-than=): New.
21660 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
21661 -Wlarger-than=.
21662 * opts.c (common_handle_option): Handle -Wlarger-than=.
21663 * optc-gen.awk: Likewise.
21664 * opth-gen.awk: Likewise.
21665 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
21666 * tree-optimize.c (tree_rest_of_compilation): Likewise.
21667
21668 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21669
21670 * c-common.c (match_case_to_enum_1): Add appropriate
21671 OPT_W* parameter to warning.
21672 (c_do_switch_warnings): Likewise.
21673 * c-typeck.c (warning_init): Add one more parameter following
21674 'warning' function.
21675 (push_init_level): Update call to warning_init.
21676 (pop_init_level): Likewise.
21677 (add_pending_init): Likewise.
21678 (output_init_element: Likewise.
21679
21680 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21681
21682 PR 28322
21683 * toplev.c (toplev_main): If there are warnings or error, print
21684 errors for ignored options.
21685 * opts.c (ignored_options): New static variable.
21686 (postpone_unknown_option_error): New.
21687 (print_ignored_options): New.
21688 (handle_option): Postpone errors for unknown -Wno-* options.
21689 * opts.h (print_ignored_options): Declare.
21690
21691 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
21692
21693 * config/mips/mips.md (loadgp_blockage, blockage): Change type
21694 to "ghost".
21695
21696 2008-02-25 Richard Guenther <rguenther@suse.de>
21697
21698 Revert:
21699 2008-02-25 Richard Guenther <rguenther@suse.de>
21700
21701 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
21702 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
21703 (lookup_decl_from_uid): Declare.
21704 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
21705 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
21706 (decl_for_uid_map): New global hashtable mapping DECL_UID
21707 to the decl tree.
21708 (init_ttree): Allocate it.
21709 (insert_decl_to_uid_decl_map): New helper function.
21710 (make_node_stat): Insert new decls into the map.
21711 (copy_node_stat): Likewise.
21712 (lookup_decl_from_uid): New function.
21713 (print_decl_for_uid_map_statistics): New helper.
21714 (dump_tree_statistics): Call it.
21715
21716 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
21717 (referenced_var_iterator): Adjust.
21718 (FOR_EACH_REFERENCED_VAR): Adjust.
21719 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
21720 (num_referenced_vars): Adjust.
21721 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
21722 (first_referenced_var): Remove.
21723 (end_referenced_vars_p): Likewise.
21724 (next_referenced_var): Likewise.
21725 (referenced_var_iterator_set): New helper function.
21726 * tree-dfa.c (referenced_var_lookup): Adjust.
21727 (referenced_var_check_and_insert): Likewise.
21728 (remove_referenced_var): Likewise.
21729 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
21730 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21731 (verify_call_clobbering): Likewise.
21732 (verify_memory_partitions): Likewise.
21733 (init_tree_ssa): Allocate bitmap instead of hashtable for
21734 referenced_vars.
21735 (delete_tree_ssa): Adjust.
21736 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
21737 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21738 (compute_tag_properties): Likewise.
21739 (set_initial_properties): Likewise.
21740 (find_partition_for): Likewise.
21741 (update_reference_counts): Likewise.
21742 (dump_may_aliases_for): Likewise.
21743 * tree-ssa-operands.c (add_virtual_operand): Likewise.
21744 (add_call_clobber_ops): Likewise.
21745 (add_call_read_ops): Likewise.
21746 (get_asm_expr_operands): Likewise.
21747 * tree-into-ssa.c (dump_decl_set): Likewise.
21748 (update_ssa): Likewise.
21749 * tree-sra.c (scan_function): Likewise.
21750 (decide_instantiations): Likewise.
21751 (scalarize_parms): Likewise.
21752 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
21753 (dsa_named_for): Likewise.
21754 * tree-ssa-structalias.c (update_alias_info): Likewise.
21755 (merge_smts_into): Likewise.
21756
21757 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
21758
21759 PR fortran/29549
21760 * doc/invoke.texi (-fcx-limited-range): Document new option.
21761 * toplev.c (process_options): Handle -fcx-fortran-rules.
21762 * common.opt: Add documentation for -fcx-fortran-rules.
21763
21764 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
21765
21766 PR c/35162
21767 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
21768 actual behaviour and C99.
21769
21770 2008-02-26 Ben Elliston <bje@au.ibm.com>
21771
21772 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
21773 (ASM_CPU_POWER6_SPEC): Likewise.
21774 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
21775 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
21776 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
21777
21778 2008-02-25 Richard Guenther <rguenther@suse.de>
21779
21780 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
21781 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
21782 (lookup_decl_from_uid): Declare.
21783 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
21784 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
21785 (decl_for_uid_map): New global hashtable mapping DECL_UID
21786 to the decl tree.
21787 (init_ttree): Allocate it.
21788 (insert_decl_to_uid_decl_map): New helper function.
21789 (make_node_stat): Insert new decls into the map.
21790 (copy_node_stat): Likewise.
21791 (lookup_decl_from_uid): New function.
21792 (print_decl_for_uid_map_statistics): New helper.
21793 (dump_tree_statistics): Call it.
21794
21795 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
21796 (referenced_var_iterator): Adjust.
21797 (FOR_EACH_REFERENCED_VAR): Adjust.
21798 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
21799 (num_referenced_vars): Adjust.
21800 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
21801 (first_referenced_var): Remove.
21802 (end_referenced_vars_p): Likewise.
21803 (next_referenced_var): Likewise.
21804 (referenced_var_iterator_set): New helper function.
21805 * tree-dfa.c (referenced_var_lookup): Adjust.
21806 (referenced_var_check_and_insert): Likewise.
21807 (remove_referenced_var): Likewise.
21808 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
21809 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21810 (verify_call_clobbering): Likewise.
21811 (verify_memory_partitions): Likewise.
21812 (init_tree_ssa): Allocate bitmap instead of hashtable for
21813 referenced_vars.
21814 (delete_tree_ssa): Adjust.
21815 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
21816 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21817 (compute_tag_properties): Likewise.
21818 (set_initial_properties): Likewise.
21819 (find_partition_for): Likewise.
21820 (update_reference_counts): Likewise.
21821 (dump_may_aliases_for): Likewise.
21822 * tree-ssa-operands.c (add_virtual_operand): Likewise.
21823 (add_call_clobber_ops): Likewise.
21824 (add_call_read_ops): Likewise.
21825 (get_asm_expr_operands): Likewise.
21826 * tree-into-ssa.c (dump_decl_set): Likewise.
21827 (update_ssa): Likewise.
21828 * tree-sra.c (scan_function): Likewise.
21829 (decide_instantiations): Likewise.
21830 (scalarize_parms): Likewise.
21831 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
21832 (dsa_named_for): Likewise.
21833 * tree-ssa-structalias.c (update_alias_info): Likewise.
21834 (merge_smts_into): Likewise.
21835
21836 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
21837
21838 PR target/35258
21839 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
21840 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
21841 * alias.h (nonoverlapping_memrefs_p): Likewise.
21842
21843 2008-02-25 Jan Beulich <jbeulich@novell.com>
21844
21845 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
21846 * config/i386/netware-libgcc.exp: Add __bswap?i2,
21847 __emultls_get_address, __emultls_register_common,
21848 __floatundi?f, and _Unwind_GetIPInfo.
21849 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
21850 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
21851 (gen_regparm_prefix): Likewise.
21852 (i386_nlm_encode_section_info): Sync with
21853 config/i386/winnt.c:i386_pe_encode_section_info().
21854 (i386_nlm_maybe_mangle_decl_assembler_name): New.
21855 i386_nlm_mangle_decl_assembler_name): New.
21856 (netware_override_options): New.
21857 * config/i386/netware.h (netware_override_options): Declare.
21858 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
21859 (i386_nlm_mangle_decl_assembler_name): Declare.
21860 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
21861
21862 2008-02-25 Ben Elliston <bje@au.ibm.com>
21863
21864 PR other/32948
21865 * c-decl.c (grokdeclarator): Remove unused local variables
21866 `typedef_type' and `type_as_written'.
21867 * bb-reorder.c
21868 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
21869 unused local variable `has_hot_blocks'.
21870 (fix_crossing_conditional_branches): Remove unused local variable
21871 `prev_bb'.
21872
21873 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
21874
21875 PR middle-end/19984
21876 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
21877 using DEF_C99_BUILTIN.
21878 (BUILT_IN_NANF): Ditto.
21879 (BUILT_IN_NANL): Ditto.
21880
21881 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
21882 Revital Eres <eres@il.ibm.com>
21883
21884 * modulo-sched.c (calculate_must_precede_follow): Address TODO
21885 regarding the order of two dependent insns in the same row.
21886
21887 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
21888
21889 * stor-layout.c (layout_decl): Do not bump the alignment of a
21890 bit-field to more than byte alignment if it is packed.
21891
21892 2008-02-24 David Edelsohn <edelsohn@gnu.org>
21893
21894 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
21895 e300c2 and e300c3.
21896
21897 2008-02-24 Diego Novillo <dnovillo@google.com>
21898
21899 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
21900
21901 PR 33738
21902 * tree-vrp.c (vrp_evaluate_conditional): With
21903 -Wtype-limits, emit a warning when comparing against a
21904 constant outside the natural range of OP0's type.
21905 * c.opt (Wtype-limits): Move ...
21906 * common.opt (Wtype-limits): ... here.
21907
21908 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
21909
21910 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
21911 * config/rs6000/e300c2c3.md: New file.
21912 * config/rs6000/rs6000.c (processor_costs): Add new costs for
21913 e300c2 and e300c3.
21914 (rs6000_override_options): Add e300c2 and e300c3 cases to
21915 processor_target_table. Do not allow usage of Altivec or Spe
21916 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
21917 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
21918 * config/rs6000/rs6000.h (processor_type): Add
21919 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
21920 (ASM_CPU_SPEC): Add e300c2 and e300c3.
21921 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
21922 and ppce300c3. Include e300c2c3.md.
21923
21924 2008-02-23 David Edelsohn <edelsohn@gnu.org>
21925
21926 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
21927 instead of TARGET_STRICT_ALIGN.
21928
21929 2008-02-23 Joseph Myers <joseph@codesourcery.com>
21930
21931 * explow.c (memory_address): Assert that the generated address is
21932 valid.
21933
21934 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
21935
21936 PR target/25477
21937 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
21938 * config/darwin-ppc-ldouble-patch.def: New file.
21939 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
21940 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
21941 SUBTARGET_INIT_BUILTINS if defined.
21942 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
21943 New functions.
21944
21945 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
21946
21947 PR rtl-opt/33512
21948 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
21949 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
21950
21951 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
21952
21953 PR pch/35027
21954 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
21955 file" warning condtional on -Winvalid-PCH.
21956
21957 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
21958
21959 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
21960
21961 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
21962
21963 PR target/22076
21964 PR target/34256
21965 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
21966 prevent reload from using MMX registers.
21967 (*mov<mode>_internal): Ditto.
21968 (*movv2sf_internal_rex64): Ditto.
21969 (*movv2sf_internal): Ditto.
21970
21971 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21972
21973 PR documentation/31569
21974 * doc/install.texi2html: Use makeinfo --no-number-sections.
21975
21976 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
21977
21978 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
21979 ensure that we can address an entire entity > 8 bytes. Don't
21980 generate reg+reg addressing for such data.
21981
21982 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
21983
21984 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
21985 strings when optimizing for size, unless the target cares about
21986 alignment.
21987
21988 2008-02-22 Tom Tromey <tromey@redhat.com>
21989
21990 * regclass.c (current_pass): Remove declaration.
21991
21992 2008-02-22 Anatoly Sokolov <aesok@post.ru>
21993
21994 * config/avr/libgcc.S (__RAMPZ__): Define.
21995 (__do_copy_data): Add for devices with 128KB code memory.
21996
21997 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
21998
21999 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
22000 Use spe_abi.
22001 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
22002
22003 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
22004
22005 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
22006 GENNONACR_REGS.
22007
22008 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22009
22010 PR c/19999
22011 * c-typeck.c (build_binary_op): Warn about floating point
22012 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
22013
22014 2008-02-21 Janis Johnson <janis187@us.ibm.com>
22015
22016 PR target/34526
22017 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
22018 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
22019 add vrsave.
22020 (rs6000_override_options): Set altivec_abi as default, not override,
22021 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
22022 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
22023 is used; use new member spe_abi.
22024 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
22025 spe_abi and altivec_abi.
22026
22027 2008-02-22 Tomas Bily <tbily@suse.cz>
22028
22029 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
22030
22031 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22032
22033 PR bootstrap/35273
22034 * config.build (build_file_translate): Set to `CMD //c' only if
22035 it works.
22036 * Makefile.in (build_file_translate): Improve comment.
22037
22038 2008-02-21 Jan Hubicka <jh@suse.cz>
22039
22040 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
22041 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
22042 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
22043
22044 2008-02-21 Michael Matz <matz@suse.de>
22045
22046 PR target/35264
22047 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
22048
22049 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
22050
22051 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
22052 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
22053 as insn constraint.
22054 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
22055 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
22056 SSE_VEC_FLOAT_MODE_P as insn constraint.
22057 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
22058 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
22059 sse4a_movntdf using MODEF mode iterator.
22060 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
22061 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
22062 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
22063 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
22064 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
22065 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
22066 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
22067
22068 2008-02-21 Richard Guenther <rguenther@suse.de>
22069
22070 * tree.def (PAREN_EXPR): New tree code.
22071 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
22072 and PAREN_EXPR.
22073 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
22074 * expr.c (expand_expr_real_1): Likewise.
22075 * tree-inline.c (estimate_num_insns_1): Likewise.
22076 * tree-complex.c (expand_complex_move): Likewise.
22077 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
22078 as plain x.
22079
22080 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
22081
22082 PR target/35225
22083 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
22084
22085 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
22086
22087 PR target/35190
22088 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
22089
22090 * config/sh/sh.c (find_barrier): Don't go past
22091 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
22092
22093 2008-02-20 DJ Delorie <dj@redhat.com>
22094
22095 * config/h8300/h8300.md (insv): Force source operand to be a register.
22096
22097 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
22098 as a jump, not as a plain insn.
22099
22100 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
22101
22102 * doc/invoke.texi (Warning Options): Add new option
22103 -Wframe-larger-than=.
22104 (-Wframe-larger-than): Document.
22105
22106 * flags.h (warn_frame_larger_than, frame_larger_than_size):
22107 Add declarations for new option variables.
22108
22109 * final.c (final_start_function): Check the frame size
22110 before emission and issue a Wframe-larger-than warning.
22111
22112 * opts.c (warn_frame_larger_than, frame_larger_than_size):
22113 Add definitions for new option variables.
22114 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
22115
22116 * common.opt (Wframe-larger-than=): New option.
22117
22118 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
22119
22120 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
22121 (<sse>_div<mode>3): Ditto.
22122 (<sse>_vmdiv<mode>3): Ditto.
22123 (<sse>_vmsqrt<mode>2): Ditto.
22124 (*smax<mode>3): Ditto.
22125 (sse5_frcz<mode>2): Ditto.
22126 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
22127 as insn constraint.
22128
22129 2008-02-20 Richard Guenther <rguenther@suse.de>
22130
22131 PR middle-end/35265
22132 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
22133 be happy with INTEGRAL_TYPE_P.
22134
22135 2008-02-20 Richard Guenther <rguenther@suse.de>
22136
22137 * fold-const.c (split_tree): Associate floatig-point expressions
22138 if flag_associative_math is set.
22139
22140 2008-02-20 Richard Guenther <rguenther@suse.de>
22141
22142 * tree.h (fold_real_zero_addition_p): Declare.
22143 * fold-const.c (fold_real_zero_addition_p): Export.
22144 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
22145 floating-point operations with zero and one.
22146
22147 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
22148
22149 * doc/install.texi: Correct references to CFLAGS, replacing them
22150 with BOOT_CFLAGS. Document flags used during bootstrap for
22151 target libraries.
22152
22153 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
22154
22155 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
22156 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
22157 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
22158 insn constraint.
22159 (smin<mode>3): Ditto from similar patterns.
22160 (smax<mode>3): Ditto.
22161 (*ieee_smin<mode>3): Ditto.
22162 (*ieee_smax<mode>3): Ditto.
22163 * config/i386/sse.md (sse): New mode attribute.
22164 (mov<mode>): Macroize expander from movv4sf and movv2df using
22165 SSEMODEF2P mode iterator.
22166 (<sse>_movnt<mode>): Ditto from similar patterns. Use
22167 SSE_VEC_FLOAT_MODE_P as insn constraint.
22168 (storent<mode>): Ditto.
22169 (storent<mode>): Macroize expander from storentsf and storentdf using
22170 MODEF mode iterator.
22171 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
22172 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
22173 (abs<mode>2): Ditto from similar patterns.
22174 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
22175 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
22176 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
22177 (<sse>_vmsqrt<mode>2): Ditto.
22178 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
22179 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
22180 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
22181 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
22182 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
22183 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
22184 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
22185 insn constraint.
22186 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
22187 iterator and SSE_FLOAT_MODE_P as insn constraint.
22188 (<sse>_ucomi): Ditto from similar patterns.
22189 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
22190 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
22191 SSE_VEC_FLOAT_MODE_P as insn constraint.
22192 (vcond<mode>): Ditto from similar patterns.
22193 (and<mode>3, *and<mode>3): Ditto.
22194 (<sse>_nand<mode>3): Ditto.
22195 (ior<mode>3, *ior<mode>3): Ditto.
22196 (xor<mode>3, *xor<mode>3): Ditto.
22197 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
22198 iterator and SSE_FLOAT_MODE_P as insn constraint.
22199 (*nand<mode>3): Ditto from similar patterns.
22200 (*ior<mode>3): Ditto.
22201 (*xor<mode>3): Ditto.
22202
22203 2008-02-20 Ira Rosen <irar@il.ibm.com>
22204
22205 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
22206 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
22207 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
22208
22209 2008-02-19 Jan Hubicka <jh@suse.cz>
22210
22211 * predict.c (tree_bb_level_predictions): Remove variable next
22212 mistakely introduced by previous commit.
22213
22214 2008-02-19 Jan Hubicka <jh@suse.cz>
22215
22216 * predict.c (predict_paths_leading_to): Rewrite.
22217 (predict_paths_for_bb): New.
22218 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
22219
22220 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22221
22222 PR bootstrap/35218
22223 * Makefile.in (build_file_translate): New.
22224 (gcc-vers.texi): Use it for translating $(abs_srcdir).
22225 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
22226 * configure.ac (build_file_translate): Substitute it.
22227 * configure: Regenerate.
22228
22229 2008-02-19 Jan Hubicka <jh@suse.cz>
22230
22231 PR rtl-optimization/34408
22232 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
22233 invalid sharing.
22234
22235 2008-02-19 Jan Hubicka <jh@suse.cz>
22236
22237 PR middle-end/28779
22238 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
22239 call_expr.
22240
22241 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
22242
22243 PR Ada/35186
22244 * config/i386/i386-modes.def: Revert the last DI alignment
22245 change until Ada people can look into it.
22246
22247 2008-02-19 Nick Clifton <nickc@redhat.com>
22248
22249 * opts.c (print_specific_help): Fix typo in --help text.
22250
22251 2008-02-19 Jakub Jelinek <jakub@redhat.com>
22252
22253 PR target/35239
22254 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
22255 32-bit inline asm without asm alternatives for host GCC < 3.0.
22256
22257 2008-02-19 Richard Guenther <rguenther@suse.de>
22258
22259 PR tree-optimization/34989
22260 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
22261 Allow propagation to INDIRECT_REF if we can simplify only.
22262
22263 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22264
22265 * c-common.c (warn_for_collisions_1): Use appropriate option when
22266 warning.
22267
22268 2008-02-19 Nick Clifton <nickc@redhat.com>
22269
22270 PR other/31349
22271 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
22272 (handle_options): Fix indentation.
22273 (print_filtered_help): If no language-specific options were
22274 displayed tell the user how to list all the options supported by
22275 the language's front-end.
22276 (print_specific_help): Fix indentation and remove duplicate line.
22277 (common_handle_option): Handle the -v option.
22278 For --help enable the display of undocumented options if the -v
22279 switch has been included on the command line.
22280 For --help= check for overlaps in the arguments between the option
22281 classes and the language names and issue a warning when they
22282 cannot be disambiguated.
22283 * c.opt (v): Pass on to the common option handler.
22284
22285 2008-02-19 Revital Eres <eres@il.ibm.com>
22286
22287 * modulo-sched.c (sms_schedule): Change dump message when
22288 create_ddg function fails.
22289 (try_scheduling_node_in_cycle): Rename row to cycle.
22290 (print_partial_schedule): Rename CYCLE to ROW.
22291
22292 2008-02-19 Christian Bruel <christian.bruel@st.com>
22293 Zdenek Dvorak <ook@ucw.cz>
22294
22295 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
22296
22297 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
22298
22299 PR target/33555
22300 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
22301 (*x86_movdicc_0_m1_se): Ditto.
22302
22303 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
22304
22305 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
22306 (CMPtype): Define as __gcc_CMPtype.
22307 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
22308 (CMPtype): Define as __gcc_CMPtype.
22309
22310 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
22311
22312 Support valgrind 3.3 for --enable-checking=valgrind.
22313 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
22314 here.
22315 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
22316 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
22317 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
22318 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
22319 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
22320 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
22321 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
22322 respectively.
22323 * ggc-zone.c: Similar.
22324 * ggc-page.c: Similar.
22325
22326 2008-02-19 Paul Brook <paul@codesourcery.com>
22327
22328 PR target/35071
22329 * config/arm/ieee754-df.S: Fix do_it typo.
22330 * config/arm/ieee754-sf.S: Fix do_it typo.
22331
22332 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
22333
22334 PR target/35189
22335 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
22336 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
22337 (OPTION_MASK_ISA_SSE_SET): Likewise.
22338 (OPTION_MASK_ISA_SSE2_SET): Likewise.
22339 (OPTION_MASK_ISA_SSE3_SET): Likewise.
22340 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
22341 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
22342 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
22343 (OPTION_MASK_ISA_SSE4_SET): Likewise.
22344 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
22345 (OPTION_MASK_ISA_SSE5_SET): Likewise.
22346 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
22347 (OPTION_MASK_ISA_MMX_UNSET): Updated.
22348 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
22349 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
22350 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
22351 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
22352 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
22353 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
22354 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
22355 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
22356 (OPTION_MASK_ISA_SSE4): Removed.
22357 (ix86_handle_option): Turn on bits in ix86_isa_flags and
22358 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
22359 (override_options): Don't turn on implied SSE/MMX bits in
22360 ix86_isa_flags.
22361
22362 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
22363
22364 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
22365 32bit host.
22366
22367 2008-02-18 Joey Ye <joey.ye@intel.com>
22368
22369 PR middle-end/34921
22370 * tree-nested.c (insert_field_into_struct): Set type alignment
22371 to field alignment if the former is less than the latter.
22372
22373 2008-02-18 Jakub Jelinek <jakub@redhat.com>
22374
22375 * BASE-VER: Set to 4.4.0.
22376
22377 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22378
22379 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
22380 * doc/cfg.texi: Likewise.
22381 * doc/extend.texi: Likewise.
22382 * doc/gty.texi: Likewise.
22383 * doc/invoke.texi: Likewise.
22384 * doc/loop.texi: Likewise.
22385 * doc/md.texi: Likewise.
22386 * doc/passes.texi: Likewise.
22387 * doc/rtl.texi: Likewise.
22388 * doc/sourcebuild.texi: Likewise.
22389 * doc/tm.texi: Likewise.
22390 * doc/tree-ssa.texi: Likewise.
22391
22392 2008-02-17 Richard Guenther <rguenther@suse.de>
22393
22394 PR middle-end/35227
22395 * tree-complex.c (init_parameter_lattice_values): Handle parameters
22396 without default definition.
22397
22398 2008-02-17 Richard Guenther <rguenther@suse.de>
22399
22400 PR tree-optimization/35231
22401 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
22402 if A | B != 1.
22403
22404 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
22405
22406 Revert:
22407 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
22408 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
22409 libgcc_cmp_return mode.
22410
22411 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22412
22413 PR c/28368
22414 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
22415
22416 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
22417
22418 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
22419 multilibs.
22420
22421 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22422
22423 * doc/c-tree.texi: Use `@.' where appropriate.
22424 * doc/extend.texi: Likewise.
22425 * doc/install.texi: Likewise.
22426 * doc/invoke.texi: Likewise.
22427 * doc/loop.texi: Likewise.
22428 * doc/makefile.texi: Likewise.
22429 * doc/md.texi: Likewise.
22430 * doc/passes.texi: Likewise.
22431 * doc/standards.texi: Likewise.
22432 * doc/tm.texi: Likewise.
22433
22434 2008-02-15 Jakub Jelinek <jakub@redhat.com>
22435
22436 PR middle-end/35196
22437 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
22438 in entry_bb.
22439 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
22440 rather than in entry_bb.
22441
22442 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
22443
22444 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
22445 libgcc_cmp_return mode.
22446
22447 2008-02-15 Jakub Jelinek <jakub@redhat.com>
22448
22449 PR middle-end/35130
22450 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
22451 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
22452
22453 2008-02-15 Richard Guenther <rguenther@suse.de>
22454 Zdenek Dvorak <ook@ucw.cz>
22455
22456 PR tree-optimization/35164
22457 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
22458 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
22459 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
22460 Only propagate addresses which do not have abnormal SSA_NAMEs
22461 in their operands.
22462
22463 2008-02-15 Joseph Myers <joseph@codesourcery.com>
22464
22465 PR target/35088
22466 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
22467
22468 2008-02-15 Jan Hubicka <jh@suse.cz>
22469
22470 PR middle-end/35149
22471 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
22472
22473 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
22474
22475 PR middle-end/34621
22476 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
22477 when calculating alignment_pad.
22478
22479 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
22480
22481 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
22482 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
22483 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
22484 and STACK_BOUNDARY define.
22485
22486 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
22487
22488 PR preprocessor/35061
22489 * c-pragma.c (handle_pragma_pop_macro): Check that
22490 pushed_macro_table has been allocated.
22491
22492 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
22493
22494 PR middle-end/35136
22495 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
22496 (force_gimple_operand): Likewise.
22497 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
22498 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
22499 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
22500 (find_interesting_uses_address): Check addressability and alignment
22501 of the base expression only after substituting bases of IVs into it.
22502
22503 2008-02-14 Michael Matz <matz@suse.de>
22504
22505 PR target/34930
22506 * function.c (instantiate_virtual_regs_in_insn): Reload address
22507 before falling back to reloading the whole operand.
22508
22509 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
22510
22511 * config/s390/s390.c (s390_mainpool_start): Emit the pool
22512 before the first section switch note.
22513
22514 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22515
22516 * doc/bugreport.texi: Update copyright years.
22517 * doc/c-tree.texi: Likewise.
22518 * doc/cfg.texi: Likewise.
22519 * doc/cpp.texi: Likewise.
22520 * doc/cppinternals.texi: Likewise.
22521 * doc/fragments.texi: Likewise.
22522 * doc/frontends.texi: Likewise.
22523 * doc/gcc.texi: Likewise.
22524 * doc/gty.texi: Likewise.
22525 * doc/hostconfig.texi: Likewise.
22526 * doc/implement-c.texi: Likewise.
22527 * doc/libgcc.texi: Likewise.
22528 * doc/loop.texi: Likewise.
22529 * doc/makefile.texi: Likewise.
22530 * doc/options.texi: Likewise.
22531 * doc/passes.texi: Likewise.
22532 * doc/rtl.texi: Likewise.
22533 * doc/sourcebuild.texi: Likewise.
22534 * doc/standards.texi: Likewise.
22535 * doc/tree-ssa.texi: Likewise.
22536 * doc/trouble.texi: Likewise.
22537
22538 * doc/extend.texi: Use @: or add comma where appropriate.
22539 * doc/invoke.texi: Likewise.
22540 * doc/tm.texi: Likewise.
22541
22542 2008-02-14 Alan Modra <amodra@bigpond.net.au>
22543
22544 PR target/34393
22545 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
22546 to a reg.
22547
22548 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
22549
22550 * doc/md.texi (clz, ctz): Add reference.
22551 * doc/rtl.texi (clz, ctz): Likewise.
22552
22553 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22554
22555 PR other/35148
22556 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
22557 srcdir.
22558
22559 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
22560
22561 * config/s390/s390.c (struct constant_pool): New field
22562 emit_pool_after added.
22563 (s390_mainpool_start): Set the emit_pool_after flag according
22564 to the section switch notes.
22565 (s390_mainpool_finish): Consider emit_pool_after when emitting
22566 the literal pool at the end of the function.
22567 (s390_chunkify_start): Force literal pool splits at section
22568 switch notes.
22569
22570 2008-02-13 Michael Matz <matz@suse.de>
22571
22572 PR debug/35065
22573 * var-tracking.c (clobber_variable_part): Correctly traverse the
22574 list.
22575
22576 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22577
22578 PR 29673
22579 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
22580 Add -fdump-ipa-inline.
22581 * tree-dump.c (dump_files): Remove tree-inlined dump.
22582 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
22583
22584 2008-02-12 Richard Guenther <rguenther@suse.de>
22585
22586 PR tree-optimization/35171
22587 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
22588 default defs.
22589
22590 2008-02-12 Richard Guenther <rguenther@suse.de>
22591
22592 PR middle-end/35163
22593 * fold-const.c (fold_widened_comparison): Use get_unwidened in
22594 value-preserving mode. Disallow final truncation.
22595
22596 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
22597
22598 PR middle-end/35136
22599 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
22600 code from here to...
22601 (force_gimple_operand): ...here.
22602
22603 2008-02-12 Jakub Jelinek <jakub@redhat.com>
22604
22605 PR c++/35144
22606 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
22607 non-compatible pointers.
22608 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
22609 different FIELD_DECLs, try harder by comparing field offsets, sizes
22610 and types.
22611
22612 PR inline-asm/35160
22613 * function.c (match_asm_constraints_1): Don't replace the same input
22614 multiple times.
22615
22616 2008-02-12 Anatoly Sokolov <aesok@post.ru>
22617
22618 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
22619 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
22620 (expand_epilogue): Restore RAMPZ register.
22621 * config/avr/avr.md (RAMPZ_ADDR): New constant.
22622
22623 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
22624
22625 * config/i386/cygwin.asm: (__alloca): Correct calling
22626 convention and alignment.
22627 (__chkstk): Force 8 byte stack alignment.
22628
22629 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
22630 Richard Guenther <rguenther@suse.de>
22631
22632 PR tree-optimization/33992
22633 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
22634 the zero we compare against.
22635
22636 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
22637
22638 PR libfortran/35063
22639 * gthr-win32.h (__gthread_mutex_destroy_function): New function
22640 to CloseHandle after unlocking to prevent accumulation of handle
22641 count.
22642
22643 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22644
22645 PR middle_end/34150
22646 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
22647 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
22648 and update LABEL_NUSES during and after reload.
22649
22650 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
22651
22652 PR middle-end/34627
22653 * combine.c (simplify_if_then_else): Make sure the comparison is
22654 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
22655
22656 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
22657
22658 PR bootstrap/35051
22659 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
22660 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
22661 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
22662 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
22663 * tree.h (get_type_static_bounds): Likewise.
22664
22665 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22666
22667 * doc/invoke.texi (Option Summary, C++ Dialect Options)
22668 (Objective-C and Objective-C++ Dialect Options, Warning Options):
22669 Make -Wfoo language annotations match what the compiler outputs.
22670
22671 2008-02-08 Sa Liu <saliu@de.ibm.com>
22672
22673 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
22674 intrinsics spu_convts, spu_convtu, spu_convtf.
22675
22676 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
22677
22678 * doc/extend.texi (Function Attributes) <noinline>: Mention
22679 asm ("") as method to keep calls.
22680
22681 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22682
22683 PR other/32754
22684 * doc/options.texi (Options): Replace references to opts.sh with
22685 optc-gen.awk.
22686 * opts-common.c: Likewise.
22687 * optc-gen.awk: Likewise.
22688
22689 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
22690
22691 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
22692
22693 2008-02-07 Richard Henderson <rth@redhat.com>
22694
22695 PR rtl-opt/33410
22696 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
22697 EXPR_LIST for the REG_EQUAL instead of a comparison with a
22698 funny mode.
22699
22700 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
22701
22702 PR tree-optimization/35085
22703 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
22704 for operand entry oe2 in addition to operand entry oe3 in order to
22705 expose more opportunities for vectorizer sum reduction.
22706
22707 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22708
22709 PR other/35107
22710 * Makefile.in (LIBS): Remove $(GMPLIBS).
22711 (cc1-dummy, cc1): Add $(GMPLIBS).
22712
22713 2008-02-06 Jan Hubicka <jh@suse.cz>
22714
22715 PR target/23322
22716 * i386.md (moddf_integer): Do not produce partial memory stalls for
22717 targets where it hurts.
22718
22719 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
22720
22721 PR target/35083
22722 * optabs.c (expand_float): Do not check for decimal modes when
22723 expanding unsigned integer through signed conversion.
22724
22725 2008-02-06 Nick Clifton <nickc@redhat.com>
22726
22727 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
22728 inside the clobber with a match_operand and duplicated operand
22729 number in the constraint.
22730 (ineqbranchsi): Delete redundant comment.
22731
22732 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
22733
22734 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
22735 builtin_define ("__USE_INIT_FINI__").
22736 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
22737 -msx multilibs.
22738 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
22739
22740 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22741
22742 PR documentation/30330
22743 * doc/invoke.texi (C++ Dialect Options)
22744 (Objective-C and Objective-C++ Dialect Options, Warning Options):
22745 For each warning option -Wfoo that allows -Wno-foo, ensure both
22746 -Wfoo and -Wno-foo are listed in the option index. Fix index
22747 entry of -Wswitch-default, index -Wnormalized= including the
22748 `=', and -Wlarger-than-@var{len} including @var{len}.
22749
22750 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
22751
22752 * config/i386/i386.md (floatunssisf2): Use
22753 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
22754 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
22755 Macroize expander using MODEF mode iterator.
22756
22757 2008-02-05 Diego Novillo <dnovillo@google.com>
22758
22759 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
22760
22761 PR 33738
22762 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
22763
22764 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22765
22766 PR other/35070
22767 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
22768
22769 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
22770
22771 PR target/35084
22772 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
22773 to indicate if a message should be generated.
22774 (init_cumulative_args): Updated.
22775 (function_value_32): Likewise.
22776
22777 2008-02-05 Joseph Myers <joseph@codesourcery.com>
22778
22779 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
22780
22781 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
22782
22783 PR target/35083
22784 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
22785 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
22786
22787 2008-02-04 Diego Novillo <dnovillo@google.com>
22788
22789 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
22790
22791 PR 33738
22792 * tree-vrp.c (vrp_evaluate_conditional): With
22793 -Wtype-limits, emit a warning when comparing against a
22794 constant outside the natural range of OP0's type.
22795
22796 2008-02-04 Richard Guenther <rguenther@suse.de>
22797
22798 PR middle-end/33631
22799 * expr.c (count_type_elements): Give for unions instead of
22800 guessing.
22801
22802 2008-02-04 Richard Guenther <rguenther@suse.de>
22803
22804 PR middle-end/35043
22805 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
22806 to TYPE_DOMAINs base type instead of using bitsizetype here.
22807
22808 2008-02-03 Jason Merrill <jason@redhat.com>
22809
22810 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
22811
22812 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22813
22814 PR other/29972
22815 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
22816 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
22817 (RS/6000 and PowerPC Options): Fix typos and markup.
22818 * doc/passes.texi (Tree-SSA passes): Likewise.
22819
22820 2008-02-02 Michael Matz <matz@suse.de>
22821
22822 PR target/35045
22823 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
22824 from record_last_reg_set_info.
22825 (record_last_reg_set_info): Take an RTX argument, iterate over all
22826 constituent hardregs.
22827 (record_last_set_info, record_opr_changes): Change calls to
22828 new signature or to record_last_reg_set_info_regno.
22829
22830 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
22831
22832 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
22833
22834 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
22835
22836 PR rtl-optimization/34773
22837 * reg-notes.def (EQUAL): Mention significance of combination of
22838 REG_EQUAL and REG_RETVAL.
22839 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
22840 insn that has a REG_RETVAL.
22841
22842 2008-02-01 Roger Sayle <roger@eyesopen.com>
22843
22844 PR bootstrap/33781
22845 * configure.ac (--enable-fixed-point): Disable unless explicitly
22846 requested on IRIX.
22847 * configure: Regenerate.
22848
22849 2008-02-01 Richard Guenther <rguenther@suse.de>
22850
22851 PR other/35042
22852 * invoke.texi (-finline-limit): Remove no longer true parts
22853 of the documentation. Note that there is no default value.
22854
22855 2008-02-01 Andrew Pinski <pinskia@gmail.com>
22856 Mark Mitchell <mark@codesourcery.com>
22857 Ben Elliston <bje@au.ibm.com>
22858
22859 PR c/29326
22860 * doc/extend.texi (Other Builtins): Document.
22861
22862 2008-01-31 Tom Browder <tom.browder@gmail.com>
22863
22864 * doc/c-tree.texi (Types): Fix grammar.
22865 (Expression trees): Ditto.
22866 * doc/passes.texi (Tree-SSA passes): Ditto.
22867
22868 * doc/configterms.texi (Configure Terms): Fix typo.
22869 * doc/cpp.texi (Common Predefined Macros): Ditto.
22870 * doc/md.texi (Machine Constraints): Ditto.
22871
22872 * doc/makefile.texi (Makefile): Add comma.
22873
22874 2008-01-31 Tom Browder <tom.browder@gmail.com>
22875 Gerald Pfeifer <gerald@pfeifer.com>
22876
22877 * doc/sourcebuild.texi (Front End): Remove references to CVS
22878 and CVSROOT/modules.
22879 (Texinfo Manuals): Replace reference to CVS by one to SVN.
22880 (Back End): Remove reference to CVS.
22881
22882 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
22883
22884 PR target/34900
22885 * config/mips/mips.c (gen_load_const_gp): New function, taking a
22886 comment from...
22887 (mips16_gp_pseudo_reg): ...here.
22888 * config/mips/mips.md (load_const_gp): Replace with...
22889 (load_const_gp_<mode>): ...this :P-based insn.
22890
22891 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22892
22893 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
22894 options. Minor fixes.
22895 (-std): Move reference to standards closer to where language
22896 standards are first mentioned.
22897
22898 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
22899
22900 PR rtl-optimization/34995
22901 * reload.c (alternative_allows_const_pool_ref): Take an rtx
22902 parameter and return a bool. If the rtx parameter is nonnull,
22903 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
22904 (find_reloads): Update call accordingly. Pass the new operand
22905 if it needed no address reloads, otherwise pass null.
22906
22907 2008-01-30 Richard Henderson <rth@redhat.com>
22908
22909 PR c/34993
22910 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
22911 for unbounded arrays.
22912
22913 2008-01-30 Silvius Rus <rus@google.com>
22914
22915 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
22916
22917 2008-01-30 Jan Hubicka <jh@suse.cz>
22918
22919 PR target/34982
22920 * i386.c (init_cumulative_args): Use real function declaration when
22921 calling locally.
22922
22923 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
22924
22925 PR rtl-optimization/34998
22926 * global.c (build_insn_chain): Treat non-subreg_lowpart
22927 SUBREGs of pseudos as clobbering all the words covered by the
22928 SUBREG, not just all the bytes.
22929 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
22930 original df_ref rather than an extract parameter.
22931 (global_conflicts): Update call accordingly.
22932
22933 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
22934
22935 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
22936 the overflow check to make it easier to read.
22937 (__fixtfdi): Change the type of the ll member in union
22938 long_double to UDItype_x.
22939
22940 2008-01-30 Jakub Jelinek <jakub@redhat.com>
22941
22942 PR middle-end/34969
22943 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
22944 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
22945 * tree-inline.c (fold_marked_statements): Call
22946 cgraph_update_edges_for_call_stmt if folding a call statement.
22947 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
22948 debug_generic_stmt calls, reset it back afterwards.
22949
22950 PR c/35017
22951 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
22952 static decls.
22953 * c-typeck.c (build_external_ref): Don't pedwarn about
22954 static vars in current function's scope.
22955
22956 2008-01-29 Joseph Myers <joseph@codesourcery.com>
22957
22958 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
22959
22960 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
22961
22962 PR c/35002
22963 * ipa-struct-reorg.c: Fix spelling.
22964 * params.def: Ditto.
22965
22966 2008-01-29 Richard Guenther <rguenther@suse.de>
22967
22968 PR middle-end/35006
22969 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
22970 field.
22971 * tree-inline.c (remap_type): Increment remapping_type_depth
22972 around remapping types.
22973 (copy_body_r): Only add referenced variables if they are referenced
22974 from code, not types.
22975
22976 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
22977
22978 PR c++/34055
22979 PR c++/34103
22980 PR c++/34219
22981 PR c++/34606
22982 PR c++/34753
22983 PR c++/34754
22984 PR c++/34755
22985 PR c++/34919
22986 PR c++/34961
22987 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
22988 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
22989
22990 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
22991
22992 PR target/34412
22993 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
22994 pointer for tiny stack.
22995
22996 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
22997
22998 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
22999
23000 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
23001
23002 * config/vx-common.h: Fix typo in comment.
23003
23004 2008-01-28 Ian Lance Taylor <iant@google.com>
23005
23006 PR c++/34862
23007 PR c++/33407
23008 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
23009 coalesce pointers if they have different DECL_NO_TBAA_P values.
23010 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
23011 between variables with different DECL_NO_TBAA_P values.
23012
23013 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
23014
23015 PR 31535
23016 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
23017 are not legitimate small data references on SPE targets.
23018
23019 2008-01-28 David Daney <ddaney@avtrex.com>
23020
23021 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
23022
23023 2008-01-28 David Daney <ddaney@avtrex.com>
23024
23025 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
23026
23027 2008-01-27 Joseph Myers <joseph@codesourcery.com>
23028
23029 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
23030 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
23031 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
23032 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
23033 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
23034 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
23035 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
23036 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
23037
23038 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
23039
23040 * basic-block.h (condjump_equiv_p): Fix comment.
23041
23042 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
23043
23044 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
23045 print_generic_stmt_indented): Fix comment.
23046
23047 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
23048
23049 * configure.ac (__stack_chk_fail): Add detecion for availability
23050 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
23051 * configure: Regenerate.
23052
23053 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
23054
23055 PR middle-end/34688
23056 * final.c (output_addr_const): Handle TRUNCATE.
23057
23058 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
23059
23060 PR target/34711
23061 * tree-ssa-loop-ivopts.c (comp_cost): New type.
23062 (zero_cost, infinite_cost): New constants.
23063 (struct cost_pair): Change type of cost to comp_cost.
23064 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
23065 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
23066 New functions.
23067 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
23068 split_address_cost, ptr_difference_cost, difference_cost,
23069 get_computation_cost_at, get_computation_cost,
23070 determine_use_iv_cost_generic, determine_use_iv_cost_address,
23071 determine_use_iv_cost_condition, determine_use_iv_costs,
23072 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
23073 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
23074 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
23075 Change type of cost to comp_cost.
23076 (determine_iv_cost): Increase cost of non-original ivs, instead
23077 of decreasing the cost of original ones.
23078 (get_address_cost): Indicate the complexity of the addressing mode
23079 in comp_cost.
23080 (try_add_cand_for): Prefer using ivs not specific to some object.
23081 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
23082
23083 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
23084 Janis Johnson <janis187@us.ibm.com>
23085
23086 PR target/34814
23087 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
23088 (TARGET_INSTANTIATE_DECLS): Likewise.
23089 * target.h (expand_to_rtl_hook): New target hook.
23090 (instantiate_decls): Likewise.
23091 * function.c (instantiate_decl): Make non-static. Rename to...
23092 (instantiate_decl_rtl): ... this.
23093 (instantiate_expr): Use instantiate_decl_rtl.
23094 (instantiate_decls_1): Likewise.
23095 (instantiate_decls): Likewise.
23096 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
23097 * function.h (instantiate_decl_rtl): Add prototype.
23098 * cfgexpand.c (target.h): New include.
23099 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
23100 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
23101 (TARGET_INSTANTIATE_DECLS): Likewise.
23102 (TARGET_INITIALIZER): New target hooks added.
23103 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
23104 New prototype.
23105 * config/rs6000/rs6000.c (tree-flow.h): New include.
23106 (machine_function): Add sdmode_stack_slot field.
23107 (rs6000_alloc_sdmode_stack_slot): New function.
23108 (rs6000_instantiate_decls): Likewise.
23109 (rs6000_secondary_memory_needed_rtx): Likewise.
23110 (rs6000_check_sdmode): Likewise.
23111 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
23112 (TARGET_INSTANTIATE_DECLS): Likewise.
23113 (rs6000_hard_regno_mode_ok): Allow SDmode.
23114 (num_insns_constant): Likewise. Handle _Decimal32 constants.
23115 (rs6000_emit_move): Handle SDmode.
23116 (function_arg_advance): Likewise.
23117 (function_arg): Likewise.
23118 (rs6000_gimplify_va_arg): Likewise. Add special handling of
23119 SDmode var args for 32-bit compiles.
23120 (rs6000_secondary_reload_class): Handle SDmode.
23121 (rs6000_output_function_epilogue): Likewise.
23122 (rs6000_function_value): Simplify if statement.
23123 (rs6000_libcall_value): Likewise.
23124 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
23125 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
23126 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
23127 (movsd_hardfloat): New define_insn.
23128 (movsd_softfloat): Likewise.
23129 (movsd_store): Likewise.
23130 (movsd_load): Likewise.
23131 (extendsddd2): Likewise.
23132 (extendsdtd2): Likewise.
23133 (truncddsd2): Likewise.
23134 (movdd_hardfloat64): Fixup comment.
23135 (UNSPEC_MOVSD_LOAD): New constant.
23136 (UNSPEC_MOVSD_STORE): Likewise.
23137
23138 2008-01-26 Jakub Jelinek <jakub@redhat.com>
23139
23140 PR c++/34965
23141 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
23142 TRUTH_XOR_EXPR.
23143 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
23144 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
23145 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
23146 and TRUTH_XOR_EXPR.
23147
23148 2008-01-26 David Edelsohn <edelsohn@gnu.org>
23149
23150 PR target/34794
23151 * config.gcc: Separate AIX 5.3 from AIX 6.1.
23152 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
23153 __LONGDOUBLE128 too.
23154 * config/rs6000/aix61.h: New file.
23155
23156 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
23157
23158 PR rtl-optimization/34959
23159 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
23160 popcount and parity rtxes the same mode as their operand.
23161 Truncate or extend the result to the return value's mode
23162 if necessary.
23163
23164 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
23165
23166 PR target/34981
23167 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
23168 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
23169 to GOT_VERSION_REGNUM.
23170 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
23171 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
23172 * config/mips/mips.c (mips_emit_call_insn): New function.
23173 (mips_call_tls_get_addr): Call mips_expand_call directly.
23174 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
23175 emit_call_insn.
23176 (mips16_build_call_stub): Likewise. Return the call insn or null.
23177 (mips_expand_call): Update the call to mips16_build_call_stub
23178 accordingly and a remove redundant condition. Assert that MIPS16
23179 stubs do not use lazy binding. Use mips_emit_call_insn and return
23180 the call insn.
23181 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
23182 TARGET_USE_GOT.
23183 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
23184 (mips_avoid_hazard): Remove hazard_set handling.
23185 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
23186 (UNSPEC_RESTORE_GP): ...this.
23187 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
23188 (FAKE_CALL_REGNO): Rename to...
23189 (GOT_VERSION_REGNUM): ...this.
23190 (type): Add "ghost" value. Add an associated insn reservation.
23191 (hazard_set): Remove.
23192 (exception_receiver): Rename to...
23193 (restore_gp): ...this and update the unspec identifier accordingly.
23194 (exception_receiver, nonlocal_got_receiver): New expanders.
23195 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
23196 FAKE_CALL_REGNO. Remove hazard_set attribute.
23197 (set_got_version, update_got_version): New patterns.
23198
23199 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
23200
23201 PR target/34970
23202 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
23203
23204 2008-01-25 Joseph Myers <joseph@codesourcery.com>
23205
23206 PR other/31955
23207 * doc/install.texi2html: Generate gcc-vers.texi.
23208
23209 2008-01-25 DJ Delorie <dj@redhat.com>
23210
23211 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
23212
23213 2008-01-25 Joseph Myers <joseph@codesourcery.com>
23214
23215 * config/c4x: Remove directory.
23216 * config.gcc (crx-*, mt-*): Mark obsolete.
23217 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
23218 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
23219 sh-*-rtemscoff*): Remove cases.
23220 * defaults.h (C4X_FLOAT_FORMAT): Remove.
23221 * real.c (encode_c4x_single, decode_c4x_single,
23222 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
23223 c4x_extended_format): Remove.
23224 * real.h (c4x_single_format, c4x_extended_format): Remove.
23225 * doc/extend.texi (interrupt, naked): Remove mention of attributes
23226 on C4x.
23227 (Pragmas): Remove comment about c4x pragmas.
23228 * doc/install.texi (c4x): Remove target-specific instructions.
23229 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
23230 * doc/md.texi (Machine Constraints): Remove C4x documentation.
23231 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
23232 refer to C4x source files as examples.
23233 (C4X_FLOAT_FORMAT): Remove documentation.
23234
23235 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
23236
23237 * config/bfin/bfin.c (override_options): Reorder tests so that
23238 flag_pic gets enabled for -msep-data.
23239
23240 2008-01-25 Richard Guenther <rguenther@suse.de>
23241
23242 PR middle-end/32244
23243 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
23244 to its bitfield precision if required.
23245
23246 2008-01-25 Jakub Jelinek <jakub@redhat.com>
23247
23248 PR middle-end/33880
23249 * tree-nested.c (walk_omp_for): New function.
23250 (convert_nonlocal_reference, convert_local_reference): Call
23251 walk_omp_for on OMP_FOR.
23252 (convert_call_expr): Call walk_body on OMP_FOR's
23253 OMP_FOR_PRE_INIT_BODY.
23254
23255 2008-01-25 Richard Guenther <rguenther@suse.de>
23256
23257 PR tree-optimization/34966
23258 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
23259 default defs and PHI_NODEs we have to insert after the
23260 defining statement.
23261
23262 2008-01-24 Nick Clifton <nickc@redhat.com>
23263
23264 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
23265 Provide a default definition.
23266 (LIBGCC2_UNITS_PER_WORD): Likewise.
23267
23268 * config/stormy16/stormy16.c: Include df.h for the prototype
23269 for df_regs_ever_live_p.
23270 (xstormy16_expand_builtin_va_start): Convert the stack offset
23271 into a component_ref and then use POINTER_PLUS_EXPR to add it
23272 to the incoming_virtual_args_rtx.
23273 (xstormy16_gimplify_va_arg_expr): Rename to
23274 xstormy16_gimplify_va_arg_expr.
23275 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
23276 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
23277 xstormy16_gimplify_va_arg_expr.
23278 Fix up some formatting issues.
23279
23280 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
23281 Move to predicates.md.
23282 (xs_hi_general_operand): Likewise.
23283 (xs_hi_nonmemory_operand): Likewise.
23284 * config/stormy16/predicates.md:
23285 (xstormy16_carry_plus_operand): New predicate.
23286 (xs_hi_general_operand): New predicate.
23287 (xs_hi_nonmemory_operand): New predicate.
23288 * config/stormy16/stormy16-protos.h:
23289 (xstormy16_carry_plus_operand): Delete prototype.
23290 (xs_hi_general_operand): Likewise.
23291 (xs_hi_nonmemory_operand): Likewise.
23292
23293 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
23294 modifiers as they are no longer needed and they can trigger
23295 reload spill failures.
23296
23297 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
23298 with a match_operand in order to help reload.
23299
23300 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
23301 constraint with 'e' for the 8th alternative as this version of
23302 the mov.w instruction only accepts the lower 8 registers.
23303
23304 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
23305
23306 PR target/34856
23307 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
23308 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
23309 vector elements.
23310
23311 2008-01-25 Jakub Jelinek <jakub@redhat.com>
23312
23313 PR middle-end/33333
23314 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
23315
23316 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
23317
23318 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
23319 New functions.
23320 (remove_structure): Update allocations list before removing structure.
23321
23322 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
23323
23324 * ipa-struct-reorg.c (is_safe_cond_expr,
23325 create_new_stmts_for_cond_expr): Use integer_zerop function,
23326 that recognize not only zero-pointer, but zero-integer too.
23327
23328 2008-01-25 Ben Elliston <bje@au.ibm.com>
23329
23330 PR other/22232
23331 * fixproto: Escape "." in sed expression that strips leading "./".
23332
23333 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
23334
23335 PR driver/34904
23336 * gcc.c (SWITCH_OK): Removed.
23337 (SWITCH_LIVE): Changed to bit.
23338 (SWITCH_FALSE): Likewise.
23339 (SWITCH_IGNORE): Likewise.
23340 (switchstr): Change live_cond to unsigned int.
23341 (process_command): Replace SWITCH_OK with 0.
23342 (do_self_spec): Likewise.
23343 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
23344 (give_switch): Likewise.
23345 (used_arg): Likewise.
23346 (do_spec_1): Set the SWITCH_IGNORE bit.
23347 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
23348 bits. Set the SWITCH_LIVE bit.
23349
23350 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
23351
23352 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
23353
23354 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
23355
23356 PR tree-optimization/34472
23357 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
23358 parameter to a "bool *" and set *DATA to false if there is
23359 an unsafe access. Do not delete the structure here.
23360 (check_cond_exprs): Delete it here instead.
23361 (check_cond_exprs, exclude_cold_structs): Do not increase
23362 I when removing a structure.
23363
23364 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
23365
23366 PR target/34856
23367 * config/i386/i386.c (ix86_expand_vector_init): Consider only
23368 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
23369
23370 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
23371
23372 PR middle-end/34934
23373 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
23374 a fixed vector for stack.
23375
23376 2008-01-24 Ben Elliston <bje@au.ibm.com>
23377
23378 PR c++/25701
23379 * doc/gcc.texi (Software development): Add a direntry for g++.
23380
23381 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
23382
23383 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
23384 stale and straggling -fforce-addr comments above.
23385
23386 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
23387 define.
23388 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
23389 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
23390
23391 2008-01-23 Michael Matz <matz@suse.de>
23392
23393 PR debug/34895
23394 * dwarf2out.c (force_type_die): Use modified_type_die instead of
23395 gen_type_die.
23396
23397 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
23398
23399 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
23400 malloc result type.
23401
23402 2008-01-23 Anatoly Sokolov <aesok@post.ru>
23403
23404 * config/avr/avr.c (avr_current_arch): New variable.
23405 (avr_arch_types): Add 'avr31' and 'avr51' entries.
23406 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
23407 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
23408 (avr_override_options): Init 'avr_current_arch'.
23409 (base_arch_s): Move from here...
23410 * config/avr/avr.h (base_arch_s): ... here. Add new members
23411 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
23412 'mega' to 'have_jmp_call'.
23413 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
23414 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
23415 macros.
23416 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
23417 architectures.
23418 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
23419 MULTILIB_MATCHES): Ditto.
23420
23421 2008-01-23 Richard Guenther <rguenther@suse.de>
23422
23423 PR middle-end/31529
23424 * cgraphunit.c (cgraph_reset_node): Always mark the node
23425 not reachable if it is not queued already.
23426
23427 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
23428
23429 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
23430 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
23431 (cputype_selected): New static variable.
23432 (bfin_handle_option): Set it if -mcpu is used.
23433 (override_option): Select default set of workarounds if no cpu type
23434 selected on the command line.
23435 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
23436
23437 From Michael Frysinger <michael.frysinger@analog.com>
23438 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
23439 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
23440
23441 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
23442 for bf547, bf523, bf524, and bf526.
23443 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
23444 bf526.
23445 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
23446 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
23447 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
23448 __ADSPBF547__ and __ADSPBF54x__ for bf547.
23449 * doc/invoke.texi (Blackfin Options): Document that
23450 -mcpu now accept bf547, bf523, bf524, and bf526.
23451
23452 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
23453
23454 PR rtl-optimization/34628
23455 * combine.c (try_combine): Stop and undo after the first combination
23456 if an autoincrement side-effect on the first insn has effectively
23457 been lost.
23458
23459 2008-01-22 David Edelsohn <edelsohn@gnu.org>
23460
23461 PR target/34529
23462 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
23463 Offset addresses are not valid for Altivec or paired float modes.
23464
23465 2008-01-22 Jakub Jelinek <jakub@redhat.com>
23466
23467 PR c++/34607
23468 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
23469 if DECL_INITIAL (decl) is error_mark_node.
23470
23471 PR c++/34914
23472 * c-common.c (handle_vector_size_attribute): Only allow
23473 integral, scalar float and fixed point types. Handle OFFSET_TYPE
23474 the same way as pointer, array etc. types.
23475 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
23476
23477 PR c++/34917
23478 * tree.c (build_type_attribute_qual_variant): Call
23479 build_qualified_type if attributes are equal, but quals are not.
23480
23481 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
23482
23483 PR 32102
23484 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
23485 * flags.h (warn_strict_aliasing): Remove.
23486 (warn_strict_overflow): Remove.
23487 * opts.c (warn_strict_aliasing): Remove.
23488 (warn_strict_overflow): Remove.
23489 * c-opts.c (c_common_handle_option): -Wall only sets
23490 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
23491 (c_common_post_options): Give default values to -Wstrict-aliasing
23492 and -Wstrict-overflow if they are uninitialized.
23493 * common.opt (Wstrict-aliasing): Specify Var and Init.
23494 (Wstrict-overflow): Likewise.
23495
23496 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
23497
23498 PR rtl-optimization/26854
23499 PR rtl-optimization/34400
23500 PR rtl-optimization/34884
23501 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
23502 DF_RD->gen.
23503 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
23504 (df_rd_bb_info.expanded_lr_out): Deleted
23505 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
23506 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
23507 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
23508 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
23509 Removed code to allocate, initialize or free expanded_lr_out.
23510 (df_rd_bb_local_compute_process_def): Restructured to make more
23511 understandable.
23512 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
23513 sets if the sets are being trimmed.
23514
23515 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
23516
23517 PR bootstrap/32287
23518 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
23519 (as_vers): Likewise.
23520 * configure: Regenerated.
23521
23522 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
23523
23524 PR middle-end/33092
23525 * tree-pass.h (pass_build_alias): New pass.
23526 * tree-ssa-alias.c (gate_build_alias): New.
23527 (pass_build_alias): New.
23528 * passes.c (init_optimization_passes): Add pass_build_alias after
23529 pass_create_structure_vars.
23530
23531 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
23532
23533 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
23534 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
23535 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
23536 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
23537 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
23538 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
23539 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
23540 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
23541 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
23542 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
23543 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
23544 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
23545 * config/s390/s390.md (FP_ALL): New mode iterator.
23546 (_d): New mode attribute.
23547 ("*signbit<mode>2>"): Changed mode of first operand.
23548 ("isinf<mode>2"): Changed mode of first operand.
23549 ("*TDC_insn"): Adaptation for DFP modes.
23550
23551 2008-01-22 Ben Elliston <bje@au.ibm.com>
23552
23553 * tree.c (check_qualified_type): Improve function description.
23554
23555 2008-01-21 Jason Merrill <jason@redhat.com>
23556
23557 PR c++/34196
23558 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
23559 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
23560 if it is set.
23561
23562 2008-01-21 DJ Delorie <dj@redhat.com>
23563
23564 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
23565 return zero.
23566
23567 2008-01-21 Richard Guenther <rguenther@suse.de>
23568
23569 PR middle-end/34856
23570 * tree-cfg.c (verify_expr): Allow all invariant expressions
23571 instead of just constant class ones as reference argument.
23572 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
23573 like any other constant.
23574 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
23575
23576 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
23577
23578 * regmove.c (fixup_match_1): Update call crossed frequencies.
23579
23580 2008-01-21 Richard Guenther <rguenther@suse.de>
23581
23582 PR c/34885
23583 * tree-inline.c (setup_one_parameter): Deal with mismatched
23584 types using a VIEW_CONVERT_EXPR.
23585
23586 2008-01-21 Alon Dayan <alond@il.ibm.com>
23587 Olga Golovanevsky <olga@il.ibm.com>
23588
23589 PR tree-optimization/34701
23590 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
23591 when the structure size is not a power of 2.
23592
23593 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
23594
23595 * doc/install.texi: Add doc for --enable-checking=df.
23596
23597 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
23598
23599 PR rtl-optimization/34808
23600 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
23601
23602 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
23603
23604 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
23605 input.
23606
23607 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
23608
23609 PR rtl-optimization/26854
23610 PR rtl-optimization/34400
23611 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
23612 DF_RD->gen.
23613 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
23614 (df_rd_bb_info.expanded_lr_out): New.
23615 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
23616 * loop_iv.c (iv_analysis_loop_init): Ditto.
23617 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
23618 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
23619 Added code to allocate, initialize or free expanded_lr_out.
23620 (df_rd_bb_local_compute_process_def): Restructured to make
23621 more understandable.
23622 (df_rd_confluence_n): Add code to do nothing with fake edges and
23623 code to no apply invalidate_by_call sets if the sets are being trimmed.
23624 (df_lr_local_finalize): Renamed to df_lr_finalize.
23625 (df_live_local_finalize): Renamed to df_live_finalize.
23626
23627 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
23628
23629 PR target/34831
23630 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
23631 deciding whether to use reciprocal instructions.
23632
23633 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
23634
23635 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
23636 dwarf2out_note_section_used if cold_text_section is NULL.
23637
23638 2008-01-19 Jakub Jelinek <jakub@redhat.com>
23639
23640 PR gcov-profile/34610
23641 * tree-cfg.c (make_edges): Mark both outgoing edges from
23642 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
23643 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
23644 from OMP_FOR and OMP_CONTINUE outgoing edges.
23645
23646 * tree-profile.c (tree_profiling): Return early if
23647 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
23648 at the end.
23649 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
23650 from cfun to child_cfun.
23651 * function.h (struct function): Add after_tree_profile bit.
23652
23653 2008-01-19 Anatoly Sokolov <aesok@post.ru>
23654
23655 * config/avr/avr.S (_exit): Disable interrupt.
23656
23657 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
23658 Steven Bosscher <stevenb.gcc@gmail.com>
23659
23660 PR rtl-optimization/26854
23661 PR rtl-optimization/34400
23662 * df-problems.c (df_live_scratch): New scratch bitmap.
23663 (df_live_alloc): Allocate df_live_scratch when doing df_live.
23664 (df_live_reset): Clear the proper bitmaps.
23665 (df_live_bb_local_compute): Only process the artificial defs once
23666 since the order is not important.
23667 (df_live_init): Init the df_live sets only with the variables
23668 found live by df_lr.
23669 (df_live_transfer_function): Use the df_lr sets to prune the
23670 df_live sets as they are being computed.
23671 (df_live_free): Free df_live_scratch.
23672
23673 2008-01-18 Ian Lance Taylor <iant@google.com>
23674
23675 * common.opt: Add fmerge-debug-strings.
23676 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
23677 flag_merge_debug_strings rather than flag_merge_constants.
23678 * doc/invoke.texi (Option Summary): Mention
23679 -fmerge-debug-strings.
23680 (Debugging Options): Document -fmerge-debug-strings.
23681
23682 2008-01-18 Ian Lance Taylor <iant@google.com>
23683
23684 PR c++/33407
23685 * tree.h (DECL_IS_OPERATOR_NEW): Define.
23686 (struct tree_function_decl): Add new field operator_new_flag.
23687 * tree-inline.c (expand_call_inline): When inlining a call to
23688 operator new, force the return value to go into a variable, and
23689 set DECL_NO_TBAA_P on that variable.
23690 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
23691
23692 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
23693
23694 PR debug/34484
23695 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
23696 DWARF2_DEBUGGING_INFO.
23697 (dwarf2out_note_section_used): Ditto. Add prototype.
23698 (have_multiple_function_sections, text_section_used,
23699 cold_text_section_used, *cold_text_sections): Move declarations
23700 before their uses.
23701
23702 2008-01-17 Bob Wilson <bob.wilson@acm.org>
23703
23704 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
23705 field and add signal_ra.
23706 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
23707 assignments to frame state pc. Move end of stack check after
23708 MD_FALLBACK_FRAME_STATE_FOR.
23709 (uw_update_context_1): Use frame state signal_regs if set, instead
23710 of checking signal_frame flag.
23711 (uw_update_context): Use frame state signal_ra if set.
23712 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
23713 * config/xtensa/linux-unwind.h: New file.
23714
23715 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
23716
23717 * modulo-sched.c (get_sched_window): Fix comment typo.
23718
23719 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
23720
23721 PR tree-optimization/34648
23722 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
23723
23724 2008-01-17 Anatoly Sokolov <aesok@post.ru>
23725
23726 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
23727 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
23728
23729 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
23730
23731 PR rtl-optimization/34400
23732 * df-core.c (df_worklist_dataflow_overeager,
23733 df_worklist_dataflow_doublequeue): New functions.
23734 (df_worklist_dataflow): Two different worklist solvers.
23735 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
23736 New param.
23737
23738 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
23739
23740 PR testsuite/34821
23741 * doc/invoke.texi: Document the dependence on pthread for fopenmp
23742 and ftree-parallelize-loops.
23743
23744 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
23745
23746 PR rtl-optimization/34826
23747 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
23748
23749 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
23750
23751 * global.c (find_reg): Mark the eh regs as used if necessary.
23752 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
23753 * ra.h (struct allocno): no_eh_reg field added. Changed
23754 no_stack_reg type to bitfield.
23755
23756 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
23757
23758 * tree.c (substitute_in_expr): Add missing 'break'.
23759
23760 2008-01-17 Richard Guenther <rguenther@suse.de>
23761
23762 PR tree-optimization/34825
23763 * tree-ssa-math-opts.c (is_division_by): Do not recognize
23764 x / x as division to handle.
23765
23766 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23767
23768 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
23769 "-pthread" is specified.
23770 * pa-hpux11.h (LIB_SPEC): Likewise.
23771
23772 2008-01-16 Janis Johnson <janis187@us.ibm.com>
23773 Peter Bergner <bergner@vnet.ibm.com>
23774
23775 PR rtl-optimization/33796
23776 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
23777
23778 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23779
23780 PR libgfortran/34699
23781 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
23782 static links.
23783 * pa-hpux10.h (LINK_SPEC): Likewise.
23784 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
23785
23786 2008-01-16 Richard Guenther <rguenther@suse.de>
23787
23788 PR middle-end/32628
23789 * fold-const.c (fold_convert_const_int_from_int): Do not
23790 set overflow if that occured only because of a sign extension
23791 change when converting from/to a sizetype with the same
23792 precision and signedness.
23793
23794 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
23795
23796 PR debug/34249
23797 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
23798 location address to the correct place. Update copyright year.
23799
23800 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
23801
23802 * lambda-code.c (lambda_transform_legal_p): Handle the case of
23803 no dependences in the dependence_relations vector.
23804
23805 2008-01-16 Jan Hubicka <jh@suse.cz>
23806
23807 PR rtl-optimization/31396
23808 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
23809 * cfg.c (dump_reg_info): Print it.
23810 * regs.h (struct reg_info_t): add freq_calls_crossed.
23811 (REG_FREQ_CALLS_CROSSED): New macro.
23812 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
23813 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
23814 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
23815 regmove_optimize): Update call crossed frequencies.
23816 * local-alloc.c (struct qty): Add freq_calls_crossed.
23817 (alloc_qty): Copute freq_calls_crossed.
23818 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
23819 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
23820 * ra.h (struct allocno): Add freq_calls_crossed.
23821
23822 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
23823
23824 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
23825 libgomp when compiling with ftree-parallelize-loops.
23826 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
23827
23828 2008-01-16 Richard Guenther <rguenther@suse.de>
23829
23830 PR tree-optimization/34769
23831 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
23832 * tree.c (int_cst_value): Instead make this function more
23833 permissive in what it accepts as valid input. Document this
23834 function always sign-extends the value.
23835
23836 2008-01-16 Jakub Jelinek <jakub@redhat.com>
23837 Richard Guenther <rguenther@suse.de>
23838
23839 PR c/34668
23840 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
23841 (gimple_fold_indirect_ref_rhs): ... this.
23842 (gimple_fold_indirect_ref): New function with foldings
23843 that preserve lvalueness.
23844 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
23845 * tree-flow.h (gimple_fold_indirect_ref): Declare.
23846 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
23847 to fold an INDIRECT_REF, fall back to the old use of
23848 fold_indirect_ref_1.
23849
23850 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
23851
23852 * tree-data-ref.c (subscript_dependence_tester_1): Call
23853 free_conflict_function.
23854 (compute_self_dependence): Same.
23855
23856 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
23857
23858 PR debug/34249
23859 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
23860 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
23861 function global.
23862 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
23863 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
23864 for DWARF2_UNWIND_INFO targets.
23865
23866 2008-01-16 Richard Guenther <rguenther@suse.de>
23867
23868 PR c/34768
23869 * c-typeck.c (common_pointer_type): Do not merge inconsistent
23870 type qualifiers for function types.
23871
23872 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
23873
23874 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
23875 loop_iterator li from previous commit.
23876
23877 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
23878
23879 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
23880
23881 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
23882
23883 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
23884 (parallelize_loops): Don't parallelize irreducible components.
23885
23886 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
23887
23888 PR c++/24924
23889 * c-opts (c_common_post_options): Do not enable CPP
23890 flag_pedantic_errors by default.
23891
23892 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
23893
23894 PR rtl-optimization/31944
23895 * cse.c (remove_pseudo_from_table): New function.
23896 (merge_equiv_classes): Use above function to remove pseudo-registers.
23897 (invalidate): Likewise.
23898
23899 2008-01-13 Richard Guenther <rguenther@suse.de>
23900
23901 PR middle-end/34601
23902 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
23903 instead of TYPE_MODE to deal with calls from expand_one_error_var.
23904
23905 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
23906
23907 * gcse.c (cprop_jump): Call validate_unshare_change instead of
23908 validate_change to unshare the source of the PC set.
23909
23910 2008-01-12 Jan Hubicka <jh@suse.cz>
23911
23912 PR middle-end/32135
23913 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
23914 references above array bounds. This might trigger bounds checks for
23915 pointers to arrays.
23916
23917 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
23918
23919 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
23920 new_replaceable_dependencies.
23921
23922 2008-01-12 Doug Kwan <dougkwan@google.com>
23923
23924 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
23925 instead of OPT_Wreturn_type in warning due to ignored return type
23926 qualifiers.
23927 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
23928 options included in -Wextra.
23929 * c.opt: New option -Wignored_qualifiers.
23930 * doc/invoke.texi (Warning Options, -Wextra): Add new option
23931 -Wignore_qualifiers.
23932 (-Wignored-qualifiers): Document.
23933 (-Wreturn-type): Remove description of functionality now handled
23934 by -Wignored-qualifiers.
23935
23936 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
23937
23938 PR ada/33788
23939 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
23940 NOP_EXPR if it is between integral types with the same precision.
23941
23942 2008-01-12 Jan Hubicka <jh@suse.cz>
23943
23944 PR other/28023
23945 * invoke.texi (max-inline-recursive-depth): Fix default value.
23946
23947 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
23948
23949 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
23950 correct type.
23951
23952 2008-01-11 Bob Wilson <bob.wilson@acm.org>
23953
23954 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
23955
23956 2008-01-11 James E. Wilson <wilson@specifix.com>
23957
23958 PR target/26015
23959 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
23960
23961 2008-01-11 Anatoly Sokolov <aesok@post.ru>
23962
23963 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
23964 save/restore frame pointer register and don't use 'call-prologues'
23965 optimization in function with "OS_task" attribute.
23966
23967 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
23968
23969 PR middle-end/31309
23970 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
23971 when copying to memory.
23972
23973 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
23974
23975 PR rtl-optimization/30905
23976 * cfgcleanup.c: Include dce.h
23977 (crossjumps_occured): New global variable.
23978 (try_crossjump_bb): Exit loop after finding a fallthru edge.
23979 If something changed, set crossjumps_occured to true.
23980 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
23981 Don't add/remove fake edges to exit here...
23982 (cleanup_cfg): ...but do it here, when crossjumping.
23983 Run a fast DCE when successful crossjumps occured in the latest
23984 iteration of try_optimize_cfg.
23985
23986 2008-01-11 Richard Guenther <rguenther@suse.de>
23987
23988 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
23989 (struct vn_unary_op_s): Likewise.
23990 (vn_reference_insert): Free old reference on hash collision.
23991
23992 2008-01-10 Raksit Ashok <raksit@google.com>
23993
23994 PR rtl-optimization/27971
23995 * combine.c (find_split_point): Split PLUS expressions which are
23996 inside a MEM rtx, and whose first operand is complex.
23997
23998 2008-01-10 DJ Delorie <dj@redhat.com>
23999
24000 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
24001 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
24002 (m32c_hard_regno_ok): Call the underlying function.
24003
24004 2008-01-10 Richard Guenther <rguenther@suse.de>
24005
24006 PR middle-end/34683
24007 * tree-cfg.c (tree_merge_blocks): Do not go through the
24008 full-blown folding and stmt updating path if we just deal
24009 with virtual operands.
24010 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
24011 test for abnormal SSA_NAMEs.
24012
24013 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
24014
24015 PR middle-end/34641
24016 * reload.c (push_reload): Add assertions. All constants from
24017 reg_equiv_constant should have been used for replacing the respective
24018 pseudo earlier.
24019 (find_reloads_address): Invoke find_reloads_address_part for
24020 constant taken from the reg_equiv_constant array.
24021
24022 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
24023
24024 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
24025 field (valnum) the first in the struct. Replace bools with
24026 unit bit fields.
24027
24028 2008-01-10 Richard Guenther <rguenther@suse.de>
24029
24030 PR tree-optimization/34651
24031 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
24032 types and ordering for masking and converting.
24033
24034 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
24035
24036 PR tree-optimization/34017
24037 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
24038 also for PHI_NODE expressions.
24039
24040 2008-01-09 Jan Hubicka <jh@suse.cz>
24041
24042 PR tree-optimization/34708
24043 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
24044 based on number of case labels.
24045 (init_inline_once): Remove switch_cost.
24046 * tree-inline.h (eni_weights_d): Remove switch_cost.
24047
24048 2008-01-09 Richard Guenther <rguenther@suse.de>
24049 Andrew Pinski <andrew_pinski@playstation.sony.com>
24050
24051 PR middle-end/30132
24052 * gimplify.c (gimplify_cond_expr): Do not create an addressable
24053 temporary if an rvalue is ok or an lvalue is not required.
24054
24055 2008-01-09 Richard Guenther <rguenther@suse.de>
24056
24057 PR middle-end/34458
24058 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
24059 adjust return type.
24060
24061 2008-01-09 Richard Guenther <rguenther@suse.de>
24062
24063 PR middle-end/34679
24064 * tree.c (host_integerp): Check for sizetype only if the
24065 type is an integer type.
24066
24067 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
24068
24069 PR debug/26364
24070 * opts.c (decode_options): Disable inlining of functions called
24071 once if not in unit-at-a-time mode.
24072
24073 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
24074
24075 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
24076
24077 2008-01-08 Richard Guenther <rguenther@suse.de>
24078
24079 PR middle-end/31863
24080 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
24081 out early if the result will be unused.
24082
24083 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
24084
24085 PR target/34709
24086 Revert:
24087
24088 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
24089 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
24090 for TARGET_RECIP.
24091
24092 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
24093
24094 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
24095 for vectorization tuned.
24096
24097 2008-01-08 Richard Guenther <rguenther@suse.de>
24098
24099 PR tree-optimization/34683
24100 * tree-ssa-operands.c (operand_build_cmp): Export.
24101 * tree-ssa-operands.h (operand_build_cmp): Declare.
24102 * tree-vn.c (vuses_compare): Remove.
24103 (sort_vuses): Use operand_build_cmp.
24104 (sort_vuses_heap): Likewise.
24105 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
24106 to re-use old VEC if available. Do not sort already sorted VUSEs.
24107 (vdefs_to_vec): Do not sort already sorted VDEFs.
24108
24109 2008-01-08 Jakub Jelinek <jakub@redhat.com>
24110
24111 PR middle-end/34694
24112 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
24113
24114 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
24115
24116 PR target/34702
24117 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
24118 limitations of reciprocal sequences on x86 targets.
24119
24120 2008-01-08 Richard Guenther <rguenther@suse.de>
24121
24122 PR tree-optimization/34683
24123 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
24124
24125 2008-01-07 Jakub Jelinek <jakub@redhat.com>
24126
24127 PR target/34622
24128 * config/darwin.c (darwin_mergeable_string_section): Don't use
24129 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
24130
24131 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
24132
24133 PR target/34682
24134 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
24135 negxf2. Macroize expander using X87MODEF mode iterator. Change
24136 predicates of op0 and op1 to register_operand.
24137 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
24138 expander using X87MODEF mode iterator. Change predicates of
24139 op0 and op1 to register_operand.
24140 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
24141 corresponding patterns and macroize using MODEF macro. Change
24142 predicates of op0 and op1 to register_operand and remove
24143 "m" constraint. Disparage "r" alternative with "!".
24144 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
24145 macroize using X87MODEF macro. Change predicates of op0 and op1
24146 to register_operand and remove "m" constraint. Disparage "r"
24147 alternative with "!".
24148 (absneg splitter with memory operands): Remove.
24149 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
24150 patterns and macroize using X87MODEF mode iterator.
24151 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
24152 Change predicate of op1 to register_operand.
24153 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
24154 for memory operands.
24155
24156 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
24157
24158 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
24159
24160 2008-01-07 Richard Guenther <rguenther@suse.de>
24161
24162 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
24163 fields.
24164
24165 2008-01-07 Richard Guenther <rguenther@suse.de>
24166
24167 PR tree-optimization/34683
24168 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
24169 VOPs of the needed size to save memory. Use VEC_quick_push
24170 to save compile-time.
24171 (vdefs_to_vec): Likewise.
24172
24173 2008-01-07 Sa Liu <saliu@de.ibm.com>
24174
24175 * config/spu/spu.md (divdf3): Genetate inline code for double
24176 division. The implementation doesn't handle INF or NAN, therefore it
24177 only applies when -ffinite-math-only is given.
24178
24179 2008-01-06 Paolo Carlini <pcarlini@suse.de>
24180
24181 PR libstdc++/34680
24182 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
24183 * doc/cpp.texi ([Common Predefined Macros]): Document.
24184
24185 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
24186
24187 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
24188 order to use commutative addition instead of subtraction.
24189
24190 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
24191 Mircea Namolaru <namolaru@il.ibm.com>
24192 Vladimir Yanovsky <yanov@il.ibm.com>
24193 Revital Eres <eres@il.ibm.com>
24194
24195 PR tree-optimization/34263
24196 * tree-outof-ssa.c (process_single_block_loop_latch,
24197 contains_tree_r): New functions.
24198 (analyze_edges_for_bb): Call process_single_block_loop_latch
24199 function to empty single-basic-block latch block if possible.
24200
24201 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
24202
24203 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
24204 for TARGET_RECIP.
24205 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
24206
24207 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
24208
24209 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
24210
24211 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
24212
24213 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
24214
24215 2008-01-05 Jakub Jelinek <jakub@redhat.com>
24216
24217 PR tree-optimization/34618
24218 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
24219 flag from T.
24220
24221 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
24222
24223 PR target/34673
24224 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
24225 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
24226 Update copyright year.
24227
24228 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
24229 Update copyright year.
24230 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
24231 using NR fixup.
24232
24233 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
24234
24235 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
24236 edge does not point to current bb before changing need_assert.
24237
24238 2008-01-04 Richard Guenther <rguenther@suse.de>
24239
24240 PR middle-end/34029
24241 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
24242 for verifying purposes if they are is_gimple_min_invariant.
24243
24244 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
24245
24246 PR tree-optimization/34448
24247 PR tree-optimization/34465
24248 * gimplify.c (gimplify_init_constructor): Add new parameter
24249 notify_temp_creation. Use it.
24250 (gimplify_modify_expr_rhs): Take volatiles into account when
24251 optimizing constructors.
24252 Do not optimize constructors if gimplify_init_constructor will dump to
24253 memory.
24254 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
24255 * gcc.c-torture/compile/pr34448.c: New.
24256
24257 2008-01-04 Jakub Jelinek <jakub@redhat.com>
24258
24259 PR gcov-profile/34609
24260 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
24261 return_slot if result is TREE_ADDRESSABLE.
24262
24263 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
24264
24265 * config/mips/mips.md (sqrt_condition): Tweak comment.
24266 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
24267
24268 2008-01-03 Tom Tromey <tromey@redhat.com>
24269
24270 PR c/34457
24271 * c-common.c (c_type_hash): Handle VLAs.
24272
24273 2008-01-03 Jan Hubicka <jh@suse.cz>
24274
24275 PR tree-optimization/31081
24276 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
24277 0 when inlining and not inlining to first basic block.
24278 (remap_decl): When var is initialized to 0, don't set default_def.
24279 (expand_call_inline): Set entry_bb.
24280 * tree-inline.h (copy_body_data): Add entry_bb.
24281
24282 2008-01-03 Jakub Jelinek <jakub@redhat.com>
24283
24284 PR c++/34619
24285 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
24286 before returning.
24287
24288 PR tree-optimization/29484
24289 * tree-inline.c (inline_forbidden_p_2): New function.
24290 (inline_forbidden_p): Disallow inlining if some static var
24291 has an address of a local LABEL_DECL in its initializer.
24292 * doc/extend.texi (Labels as Values): Document &&foo behaviour
24293 vs. inlining.
24294
24295 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
24296
24297 PR tree-optimization/34635
24298 * tree-data-ref.c (add_other_self_distances): Make sure that the
24299 evolution step is constant.
24300
24301 2008-01-03 Jakub Jelinek <jakub@redhat.com>
24302
24303 PR middle-end/34608
24304 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
24305
24306 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
24307
24308 * tree-sra.c (scalarize_init): Insert the generate_element_init
24309 statements after the generate_element_zero statements.
24310
24311 2008-01-02 Richard Guenther <rguenther@suse.de>
24312
24313 PR middle-end/34093
24314 PR middle-end/31976
24315 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
24316 for very large number of operands instead of ICEing.
24317
24318 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
24319
24320 PR target/34013
24321 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
24322 while stack probing.
24323
24324 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
24325
24326 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
24327 in C++0x mode.
24328
24329 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
24330
24331 PR libmudflap/26442
24332 * tree-mudflap.c (mx_register_decls): Guard warning by
24333 !DECL_ARTIFICIAL check.
24334
24335 2008-01-01 Jakub Jelinek <jakub@redhat.com>
24336
24337 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
24338 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
24339 sse5_perm<mode>): Fix constraints.