rs6000.md (fnmadds combiner): Revert typo.
[gcc.git] / gcc / ChangeLog
1 2008-09-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
2
3 * config/rs6000/rs6000.md (fnmadds combiner): Revert typo.
4
5 2008-09-30 Richard Guenther <rguenther@suse.de>
6
7 PR middle-end/37491
8 * tree-vect-transform.c (vect_create_data_ref_ptr): Properly
9 build restrict-qualified pointers.
10 (vectorizable_store): Move alias check later.
11 (vectorizable_load): Likewise.
12
13 2008-09-30 Paolo Bonzini <bonzini@gnu.org>
14
15 * c-common.c (empty_if_body_warning): Remove.
16 * c-common.h (empty_if_body_warning): Remove.
17 * c-parser.c (c_parser_if_body, c_parser_else_body): Implement
18 here the -Wempty-body warning for `if' and `else' statements.
19 * c-typeck.c (c_finish_if_stmt): Do not call empty_body_warning.
20
21 2008-09-29 H.J. Lu <hongjiu.lu@intel.com>
22
23 * config/i386/i386.opt: Add msse2avx.
24
25 * config/i386/linux.h (ASM_SPEC): New. Support -msse2avx.
26 * config/i386/linux64.h (ASM_SPEC): Likewise.
27
28 * doc/invoke.texi: Document -msse2avx.
29
30 2008-09-29 Eric Botcazou <ebotcazou@adacore.com>
31
32 * dwarf2out.c (constant_size): Use HOST_WIDE_INT in parameter type.
33
34 2008-09-29 Joseph Myers <joseph@codesourcery.com>
35
36 * ifcvt.c (noce_emit_store_flag): If using condition from original
37 jump, reverse it if if_info->cond was reversed.
38
39 2008-09-29 Eric Botcazou <ebotcazou@adacore.com>
40
41 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
42 non-constant memory if it cannot be forced to constant memory.
43 Overhaul surrounding code and factor out common condition.
44
45 2008-09-29 Jeff Law <law@redhat.com>
46
47 * reload1.c (alter_reg): Add missing curly braces.
48
49 2008-09-29 Michael J. Eager <eager@eagercon.com>
50
51 * config/rs6000/predicates.md (easy_fp_constant): Single FP consts
52 are easy.
53 * config/rs6000/rs6000.c (rs6000_override_options): Move
54 rs6000_init_hard_regno_mode_ok after all options changed.
55 Set rs6000_single_float, rs6000_double_float if TARGET_HARD_FLOAT.
56 (rs6000_handle_option): Process -msingle-float, -mdouble-float,
57 -msimple-fpu flags. Add warning messages if single FP not configured.
58 (rs6000_file_start): Output gnu_attribute for single-float.
59 (legitimate_lo_sum_address_p): Condition on TARGET_DOUBLE_FLOAT.
60 (rs6000_legitimize_address): Likewise.
61 (rs6000_legitimize_reload_address): Likewise.
62 (rs6000_emit_move): Condition on TARGET_DOUBLE_FLOAT,
63 TARGET_SINGLE_FLOAT.
64 (function_arg_advance): Likewise (partial conversion).
65 (setup_incoming_varargs): Condition on TARGET_DOUBLE_FLOAT.
66 (rs6000_gimplify_va_arg): Condition on TARGET_DOUBLE_FLOAT,
67 TARGET_SINGLE_FLOAT.
68 (rs6000_split_multireg_move): Condition on TARGET_DOUBLE_FLOAT.
69 (rs6000_emit_prologue): Likewise.
70 (rs6000_function_value): Condition on TARGET_DOUBLE_FLOAT,
71 TARGET_SINGLE_FLOAT.
72 (rs6000_libcall_value): Likewise.
73 * config/rs6000/rs6000.h (TARGET_SINGLE_FLOAT): New default to 1.
74 (TARGET_DOUBLE_FLOAT): New default to 1
75 (TARGET_SIMPLE_FPU): New default to 0
76 (TARGET_SINGLE_FPU): New default to 0
77 (TARGET_SINGLE_FLOAT_MODE): New.
78 (TARGET_DOUBLE_FLOAT_MODE): New.
79 * config/rs6000/singlefp.h: New; redefine TARGET_SINGLE_FLOAT,
80 TARGET_DOUBLE_FLOAT, TARGET_SIMPLE_FPU, TARGET_SINGLE_FPU,
81 UNITS_PER_FP_WORD
82 * config/rs6000/rs6000.md (define_mode_iterator): Condition on
83 TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
84 (extendsfdf2, extendsfdf2_fpr, truncdfsf2, truncdfsf2_fpr,
85 copysigndf3,fseldfsf4, negdf2, negdf2_fpr, absdf2, absdf2_fpr,
86 nabsdf2_fpr, adddf3, adddf3_fpr, subdf3, subdf3_fpr, muldf3,
87 muldf3_fpr, divdf3, divdf3_fpr, sqrtdf2, smaxdf3, smindf3,
88 movdfcc, *fseldfdf4, floatsidf2, *floatsidf2_internal,
89 floatunssidf2, *floatunssidf2_internal, fix_truncdfsi2,
90 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
91 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2,
92 rounddf2, floatdidf2, floatsidf_ppc64_mfpgpr, floatsidf_ppc64,
93 floatunssidf_ppc64, fix_truncdfdi2, movdf_hardfloat32,
94 movdf_hardfloat64_mfpgpr, movdf_hardfloat64, extenddftf2_fprs,
95 extenddftf2_internal, trunctfdf2_internal2, fix_trunc_helper,
96 abstf2_internal, movdf_update1, movdf_update2, cmpdf_internal1,
97 cmptf_internal1, *cmptf_internal2): Condition on
98 TARGET_DOUBLE_FLOAT.
99 (aux_truncdfsf2, negsf2, *negsf2, abssf2, *abssf2, addsf3, subsf3,
100 mulsf3, divsf3, sqrtsf2, copysignsf3, smaxsf3, sminsf3, movsfcc,
101 *fselsfsf4, fixuns_truncsfsi2, fix_truncsfsi2, floatunssisf2,
102 btruncsf2, ceilsf2, floorsf2, roundsf2, floatdisf2_internal1,
103 floatdisf2_internal2, *movsf_hardfloat, trunctfsf2_fprs,
104 *movsf_update1, *movsf_update2, *cmpsf_internal1): Condition on
105 TARGET_SINGLE_FLOAT.
106 (divsf3, sqrtsf2, divdf3, divdf3_fpr): Condition on TARGET_SIMPLE_FPU.
107 * config/rs6000/rs6000.opt (-msingle-float): New.
108 (-mdouble-float): New.
109 (-msimple-fpu): New.
110 * doc/invoke.texi (RS/6000 and PowerPC Options): Add
111 -msingle-float, -mdouble-float, -msimple-fpu options.
112 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Set
113 _SOFT_DOUBLE for -msingle-float.
114 * config.gcc: New config for target=powerpc-xilinx-eabi.
115
116 2008-09-29 Tobias Grosser <grosser@fim.uni-passau.de>
117
118 * graphite.c (dot_all_scops_1): Remove unused checks. SCoPs always have
119 exit and entry.
120 (new_scop): Take entry and exit edge to define new SCoP.
121 (sd_region_p): New structure used during SCoP detection.
122 (move_scops): Delete.
123 (move_sd_regions): New.
124 (scopdet_info): Change the definition from edges back to basic_blocks.
125 (scopdet_edge_info): Work on basic_blocks and rename to
126 scopdet_basic_block_info.
127 (split_difficult_bb): At the moment removed. We should later
128 add it at another place.
129 (build_scops_1): Work on basic_blocks.
130 (bb_in_sd_region): New.
131 (find_single_entry_edge): New.
132 (find_single_exit_edge): New.
133 (create_single_entry_edge): New.
134 (sd_region_without_exit): New.
135 (create_single_exit_edge): New.
136 (unmark_exit_edges): New.
137 (mark_exit_edges): New.
138 (create_sese_edges): New.
139 (build_graphite_scops): New.
140 (build_scops): Make SCoPs SESE.
141 (limit_scops): Use the new functions.
142
143 2008-09-29 Hans-Peter Nilsson <hp@axis.com>
144
145 * config/cris/cris.h (IRA_COVER_CLASSES): Define.
146
147 2008-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
148
149 PR target/37640
150 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Force
151 address to a register before taking the lower part.
152
153 2008-09-28 Kaz Kojima <kkojima@gcc.gnu.org>
154
155 * config/sh/sh.h (OVERRIDE_OPTIONS): Unset flag_dwarf2_cfi_asm
156 for SHmedia.
157
158 2008-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
159 Kaushal Kantawala <kaushal_kantawala@playstation.sony.com>
160
161 PR tree-opt/36891
162 * tree-ssa-loop-im.c (rewrite_reciprocal): Set DECL_GIMPLE_REG_P on
163 the newly created variable.
164 Create a VECTOR_CST of all 1s for vector types.
165
166 2008-09-28 Eric Botcazou <ebotcazou@adacore.com>
167
168 PR middle-end/36575
169 * fold-const.c (div_and_round_double) <ROUND_DIV_EXPR>: Fix typo.
170
171 2008-09-28 Eric Botcazou <ebotcazou@adacore.com>
172
173 * expmed.c (store_fixed_bit_field): Always use convert_to_mode in
174 order to convert between modes.
175 (extract_bit_field_1): Test TRULY_NOOP_TRUNCATION on the right mode.
176
177 2008-09-27 Kaz Kojima <kkojima@gcc.gnu.org>
178
179 * config/sh/sh.c (sh_gimplify_va_arg_expr): Use VIEW_CONVERT_EXPR
180 if needed.
181
182 2008-09-26 Vladimir Makarov <vmakarov@redhat.com>
183
184 Revert:
185 2008-09-25 Vladimir Makarov <vmakarov@redhat.com>
186 * ira-lives.c:...
187 * doc/rtl.texi:...
188
189 2008-09-26 Adam Nemet <anemet@caviumnetworks.com>
190
191 * config/mips/mips.h (ISA_HAS_DMUL3, ISA_HAS_BADDU, ISA_HAS_BBIT,
192 ISA_HAS_CINS, ISA_HAS_EXTS, ISA_HAS_SEQ_SNE, ISA_HAS_POP): Change
193 them to yield false with MIPS16.
194
195 2008-09-26 Jakub Jelinek <jakub@redhat.com>
196
197 PR middle-end/37275
198 * dwarf2out.c (tls_mem_loc_descriptor): New function.
199 (mem_loc_descriptor): Use it for MEM. For PLUS fail if second
200 mem_loc_descriptor failed. Accept UNSPEC.
201 (loc_descriptor): Use tls_mem_loc_descriptor for MEM. For PARALLEL
202 fail if one of the loc_descriptor calls for pieces failed.
203 (loc_descriptor_from_tree_1): Handle even DECL_EXTERNAL __thread vars,
204 as long as they bind locally. For COMPONENT_REF, ARRAY_REF etc. fail
205 if loc_descriptor_from_tree_1 on offset failed.
206
207 PR middle-end/37576
208 * opts.c (common_handle_option): Don't call print_specific_help with
209 CL_SAVE as first argument.
210
211 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
212 Steve Ellcey <sje@cup.hp.com>
213
214 * configure: Regenerate for new libtool.
215 * aclocal.m4: Ditto.
216
217 2008-09-26 Pat Haugen <pthaugen@us.ibm.com>
218
219 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Use correct
220 alias set on MEM when saving stack pointer.
221 * config/rs6000/rs6000.md (allocate_stack): Likewise
222
223 2008-09-26 Dorit Nuzman <dorit@il.ibm.com>
224
225 PR tree-optimization/37574
226 * tree-vectorizer.c (vect_is_simple_use): Fix indentation.
227 * tree-vect-transform.c (vect_get_constant_vectors): Use vectype
228 instead of vector_type for constants. Take computation out of loop.
229 (vect_get_vec_def_for_operand): Use only vectype for constant case,
230 and use only vector_type for invariant case.
231 (get_initial_def_for_reduction): Use vectype instead of vector_type.
232
233 2008-09-25 Jakub Jelinek <jakub@redhat.com>
234
235 PR c/37645
236 * c-common.c (handle_weakref_attribute): Ignore the attribute unless
237 the decl is a VAR_DECL or FUNCTION_DECL.
238
239 2008-09-25 Vladimir Makarov <vmakarov@redhat.com>
240
241 PR middle-end/37535
242 * ira-lives.c (mark_reg_live, mark_reg_dead): New functions.
243 (mark_ref_live, mark_ref_dead): Use them.
244 (def_conflicts_with_inputs_p): Remove.
245 (mark_early_clobbers): New function.
246 (process_bb_node_lives): Call preprocess_constraints and
247 mark_early_clobbers.
248
249 * doc/rtl.texi (clobber): Change how RA deals with clobbers.
250
251 2008-09-25 Vladimir Makarov <vmakarov@redhat.com>
252
253 PR middle-end/37448
254 * ira-int.h (IRA_ALLOCNO_TEMP): Rename to ALLOCNO_TEMP.
255 (ira_compress_allocno_live_ranges): New prototype.
256
257 * ira-color.c: Rename IRA_ALLOCNO_TEMP to ALLOCNO_TEMP.
258 (coalesced_allocnos_living_at_program_points): New.
259 (coalesced_allocnos_live_at_points_p,
260 set_coalesced_allocnos_live_points): New functions.
261 (coalesce_spill_slots): Rewrite.
262
263 * ira-lives.c (remove_some_program_points_and_update_live_ranges,
264 ira_compress_allocno_live_ranges): New functions.
265
266 * ira-build.c (ira_flattening): Call
267 ira_compress_allocno_live_ranges.
268 (ira_build): Ditto.
269
270 2008-09-25 H.J. Lu <hongjiu.lu@intel.com>
271
272 * config/i386/i386.md: Check cmp/branch fuse for cmp peephole
273 optimization.
274
275 2008-09-25 Richard Sandiford <rdsandiford@googlemail.com>
276
277 * combine.c (make_compound_operation): Handle the 'E' format.
278 (count_rtxs): Likewise.
279 (update_table_tick): Likewise.
280 (get_last_value_validate): Likewise.
281
282 2008-09-25 Eric Botcazou <ebotcazou@adacore.com>
283
284 * dbxout.c (dbxout_parms): Fetch the inner REG inside a PARALLEL.
285
286 2008-09-25 Sergei Dyshel <sergeid@il.ibm.com>
287
288 * matrix-reorg.c (transform_allocation_sites): Initializers
289 added to avoid the warning.
290
291 2008-09-25 Martin Jambor <mjambor@suse.cz>
292
293 * cgraph.c (free_nodes): New variable.
294 (NEXT_FREE_NODE): New macro.
295 (cgraph_create_node): Reuse nodes from the free list. Do not
296 update uid if doing so.
297 (cgraph_remove_node): Add the node to the free list.
298
299 2008-09-25 Gerald Pfeifer <gerald@pfeifer.com>
300
301 * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
302
303 2008-09-24 Richard Henderson <rth@redhat.com>
304
305 * dwarf2.h (DW_OP_GNU_encoded_addr): New.
306 * unwind-dw2.c (execute_stack_op): Handle it.
307
308 2008-09-24 David Edelsohn <edelsohn@gnu.org>
309
310 Revert:
311 2008-09-24 Michael J. Eager <eager@eagercon.com>
312
313 2008-09-24 Aldy Hernandez <aldyh@redhat.com>
314
315 * c-common.c (fname_decl): New location argument.
316 * c-common.h (fname_decl): Same.
317 * c-parser.c (c_lex_one_token): Use {warning,error}_at instead of
318 {warning,error}.
319 (c_parser_typeof_specifier): Same.
320 (c_parser_parms_list_declarator): Same.
321 (c_parser_asm_string_literal): Same.
322 (c_parser_compound_statement_nostart): Same.
323 (c_parser_label): Same.
324 (c_parser_do_statement): Same.
325 (c_parser_asm_statement): Same.
326 (c_parser_unary_expression): Same.
327 (c_parser_sizeof_expression): Same.
328 (c_parser_postfix_expression): Same.
329 (c_parser_pragma): Same.
330 (c_parser_omp_clause_collapse): Same.
331 (c_parser_omp_clause_num_threads): Same.
332 (c_parser_omp_clause_schedule): Same.
333 (c_parser_omp_all_clauses): Same.
334 (c_parser_omp_sections_scope): Same.
335 (c_parser_omp_for_loop): Same. Pass condition's location to
336 c_objc_common_truthvalue_conversion.
337 (c_parser_enum_specifier): Remove comment.
338
339 2008-09-24 Michael J. Eager <eager@eagercon.com>
340
341 * config/rs6000/predicates.md (easy_fp_constant): Single FP consts
342 are easy.
343 * config/rs6000/rs6000.c (rs6000_override_options): Move
344 rs6000_init_hard_regno_mode_ok after all options changed.
345 Set rs6000_single_float, rs6000_double_float if TARGET_HARD_FLOAT.
346 (rs6000_handle_option): Process -msingle-float, -mdouble-float,
347 -msimple-fpu flags. Add warning messages if single FP not configured.
348 (rs6000_file_start): Output gnu_attribute for single-float.
349 (legitimate_lo_sum_address_p): Condition on TARGET_DOUBLE_FLOAT.
350 (rs6000_legitimize_address): Likewise.
351 (rs6000_legitimize_reload_address): Likewise.
352 (rs6000_emit_move): Condition on TARGET_DOUBLE_FLOAT,
353 TARGET_SINGLE_FLOAT.
354 (function_arg_advance): Likewise.
355 (function_arg): Likewise.
356 (setup_incoming_varargs): Condition on TARGET_DOUBLE_FLOAT.
357 (rs6000_gimplify_va_arg): Condition on TARGET_DOUBLE_FLOAT,
358 TARGET_SINGLE_FLOAT.
359 (rs6000_split_multireg_move): Condition on TARGET_DOUBLE_FLOAT.
360 (rs6000_emit_prologue): Likewise.
361 (rs6000_function_value): Condition on TARGET_DOUBLE_FLOAT,
362 TARGET_SINGLE_FLOAT.
363 (rs6000_libcall_value): Likewise.
364 * config/rs6000/rs6000.h (TARGET_SINGLE_FLOAT): New default to 1.
365 (TARGET_DOUBLE_FLOAT): New default to 1
366 (TARGET_SIMPLE_FPU): New default to 0
367 (TARGET_SINGLE_FPU): New default to 0
368 (TARGET_SINGLE_FLOAT_MODE): New.
369 (TARGET_DOUBLE_FLOAT_MODE): New.
370 * config/rs6000/singlefp.h: New; redefine TARGET_SINGLE_FLOAT,
371 TARGET_DOUBLE_FLOAT, TARGET_SIMPLE_FPU, TARGET_SINGLE_FPU,
372 UNITS_PER_FP_WORD
373 * config/rs6000/rs6000.md (define_mode_iterator): Condition on
374 TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
375 (extendsfdf2, extendsfdf2_fpr, truncdfsf2, truncdfsf2_fpr,
376 copysigndf3,fseldfsf4, negdf2, negdf2_fpr, absdf2, absdf2_fpr,
377 nabsdf2_fpr, adddf3, adddf3_fpr, subdf3, subdf3_fpr, muldf3,
378 muldf3_fpr, divdf3, divdf3_fpr, sqrtdf2, smaxdf3, smindf3,
379 movdfcc, *fseldfdf4, floatsidf2, *floatsidf2_internal,
380 floatunssidf2, *floatunssidf2_internal, fix_truncdfsi2,
381 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
382 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2,
383 rounddf2, floatdidf2, floatsidf_ppc64_mfpgpr, floatsidf_ppc64,
384 floatunssidf_ppc64, fix_truncdfdi2, movdf_hardfloat32,
385 movdf_hardfloat64_mfpgpr, movdf_hardfloat64, extenddftf2_fprs,
386 extenddftf2_internal, trunctfdf2_internal2, fix_trunc_helper,
387 abstf2_internal, movdf_update1, movdf_update2, cmpdf_internal1,
388 cmptf_internal1, *cmptf_internal2): Condition on
389 TARGET_DOUBLE_FLOAT.
390 (aux_truncdfsf2, negsf2, *negsf2, abssf2, *abssf2, addsf3, subsf3,
391 mulsf3, divsf3, sqrtsf2, copysignsf3, smaxsf3, sminsf3, movsfcc,
392 *fselsfsf4, fixuns_truncsfsi2, fix_truncsfsi2, floatunssisf2,
393 btruncsf2, ceilsf2, floorsf2, roundsf2, floatdisf2_internal1,
394 floatdisf2_internal2, *movsf_hardfloat, trunctfsf2_fprs,
395 *movsf_update1, *movsf_update2, *cmpsf_internal1): Condition on
396 TARGET_SINGLE_FLOAT.
397 (divsf3, sqrtsf2, divdf3, divdf3_fpr): Condition on TARGET_SIMPLE_FPU.
398 * config/rs6000/rs6000.opt (-msingle-float): New.
399 (-mdouble-float): New.
400 (-msimple-fpu): New.
401 * doc/invoke.texi (RS/6000 and PowerPC Options): Add
402 -msingle-float, -mdouble-float, -msimple-fpu options.
403 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Set
404 _SOFT_DOUBLE for -msingle-float.
405 * config.gcc: New config for target=powerpc-xilinx-eabi.
406
407 2008-09-23 Eric Botcazou <ebotcazou@adacore.com>
408
409 * config/sparc/constraints.md: New file.
410 * config/sparc/sparc.md: Include it.
411 * config/sparc/sparc-protos.h (memory_ok_for_ldd): Declare.
412 (sparc_extra_constraint_check): Delete.
413 * config/sparc/sparc.c (register_ok_for_ldd): Minor tweaks.
414 (memory_ok_for_ldd): New predicate.
415 (sparc_extra_constraint_check): Delete.
416 * config/sparc/sparc.h (REG_CLASS_FROM_LETTER): Likewise.
417 (CONST_OK_FOR_LETTER_P): Likewise.
418 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
419 (EXTRA_CONSTRAINT): Likewise.
420
421 2008-08-23 Steve Ellcey <sje@cup.hp.com>
422
423 * regrename.c (do_replace): Copy REG_POINTER value to new reg.
424
425 2008-09-23 Richard Sandiford <rdsandiford@googlemail.com>
426
427 * alias.c (find_base_value): Use FIND_BASE_TERM.
428 * doc/tm.texi (FIND_BASE_TERM): Update documentation.
429
430 2008-09-23 Richard Sandiford <rdsandiford@googlemail.com>
431
432 * config/i386/i386.c: Include cselib.h.
433 (ix86_pic_register_p): New function.
434 (ix86_delegitimize_address): Use it to check for the PIC register.
435
436 2008-09-23 Richard Sandiford <rdsandiford@googlemail.com>
437
438 * doc/tm.texi (FIND_BASE_TERM): Expand documentation.
439 * config/i386/i386.c (ix86_find_base_term): Don't check for
440 SYMBOL_REF and LABEL_REF.
441
442 2008-09-23 Richard Sandiford <rdsandiford@googlemail.com>
443
444 * config/i386/i386.c (ix86_delegitimize_address): Wrap the
445 constant PLUS in a CONST.
446
447 2008-09-23 Kai Tietz <kai.tietz@onevision.com>
448
449 * config/i386/i386.c (ix86_function_ok_for_sibcall): Correct
450 check for sibcall support for w64.
451
452 2008-09-23 Eric Botcazou <ebotcazou@adacore.com>
453
454 * c-ppoutput.c (cb_used_define): Do nothing for a builtin node.
455
456 2008-09-23 Aldy Hernandez <aldyh@redhat.com>
457
458 * c-tree.h: Add argument to c_objc_common_truthvalue_conversion,
459 parser_build_binary_op.
460 * c-decl.c (build_enumerator): Pass location to build_binary_op.
461 * c-typeck.c (build_array_ref): Same.
462 (parser_build_unary_op): New location argument.
463 (pointer_diff): Pass location to build_binary_op,
464 c_objc_common_truthvalue_conversion.
465 (build_modify_expr): Same.
466 (build_unary_op): New location argument.
467 (build_binary_op): New location argument.
468 (c_objc_common_truthvalue_conversion): Pass location to
469 c_*common_truthvalue_conversion.
470 * c-convert.c (convert): Same.
471 * c-common.c (binary_op_error): New location argument.
472 (pointer_int_sum): Pass location to build_binary_op.
473 (c_common_truthvalue_conversion): New location argument.
474 (warn_for_sign_compare): Same.
475 * c-common.h: Add location argument to c_common_truthvalue_conversion,
476 binary_op_error, build_binary_op, warn_for_sign_compare.
477 * c-parser.c (c_parser_condition): Pass location to
478 c_*common_truthvalue_conversion.
479 (c_parser_conditional_expression): Save condition's location and pass
480 it on down.
481 (c_parser_binary_expression): Same, but for the binary operator's
482 location.
483 (c_parser_omp_for_loop): Pass location to
484 c_objc_common_truthvalue_conversion.
485
486 2008-09-23 Martin Jambor <mjambor@suse.cz>
487
488 * cgraph.c (cgraph_free_edge): Use sizeof(*e).
489 (cgraph_node_remove_callees): New temporary f. Hold the next item
490 in f when looping.
491 (cgraph_node_remove_callers): Likewise.
492
493 * ipa-prop.c (ipa_edge_removal_hook): Use ATTRIBUTE_UNUSED.
494 (ipa_node_removal_hook): Likewise.
495
496 * doc/gimple.texi (gimple_copy_call_skip_args): Changed to
497 gimple_call_copy_skip_args and moved to the gimple_call section.
498 * gimple.c (gimple_copy_call_skip_args): Renamed to
499 gimple_call_copy_skip_args. Changed al users.
500
501 2008-09-22 Vladimir Makarov <vmakarov@redhat.com>
502
503 * ira-color.c (start_allocno_priorities): Rename to
504 setup_allocno_priorities. Use costs and
505 ALLOCNO_EXCESS_PRESSURE_POINTS_NUM instead of frequencies and
506 range lengths. Get rid off doubles.
507 (ira_fast_allocations): Call start_allocno_priorities.
508
509 2008-09-22 David Daney <ddaney@avtrex.com>
510
511 PR target/37593
512 * config/mips/mips.h (FUNCTION_PROFILER): Call _mcount via a
513 register if TARGET_LONG_CALLS.
514
515 2008-09-22 Richard Guenther <rguenther@suse.de>
516
517 PR tree-optimization/37145
518 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Re-enable
519 value-numbering union accesses with their offset and size only.
520 (visit_reference_op_load): Fix simplification of inserted conversions.
521 * tree-ssa-pre.c (find_or_generate_expression): Do not
522 recursively generate expressions if running FRE.
523
524 2008-09-22 Adam Nemet <anemet@caviumnetworks.com>
525
526 * config/mips/mips.h (ISA_HAS_BADDU): New macro.
527 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el,
528 *baddu_di<mode>): New patterns.
529
530 2008-09-22 Richard Guenther <rguenther@suse.de>
531
532 PR tree-optimization/37145
533 * tree-ssa-pre.c (fully_constant_expression): Simplify builtin calls.
534 (phi_translate_1): Constant fold references.
535
536 2008-09-22 Ira Rosen <irar@il.ibm.com>
537
538 PR tree-optimization/37482
539 * tree-vectorizer.h (struct _slp_instance): Add new field.
540 (SLP_INSTANCE_FIRST_LOAD_STMT): New.
541 (get_earlier_stmt): New function.
542 * tree-vect-analyze.c (vect_find_first_load_in_slp_instance): New
543 function.
544 (vect_analyze_slp_instance): Set SLP_INSTANCE_FIRST_LOAD_STMT.
545 * tree-vect-transform.c (vect_finish_stmt_generation): Remove the
546 asserts that GSI points to the scalar statement being vectorized.
547 Set new statement location according to GSI.
548 (vect_schedule_slp_instance): Use GSI of
549 SLP_INSTANCE_FIRST_LOAD_STMT when vectorizing loads.
550
551 2008-09-21 Jan Hubicka <jh@suse.cz>
552
553 * ipa-cp.c (ipcp_estimate_growth): Check recursive calls.
554 (ipcp_insert_stage): Update dead_nodes bitmap.
555
556 2008-09-22 Danny Smith <dannysmith@users.sourceforge.net>
557
558 PR target/37528
559 * config/i386/t-cygming (SHLIB_LC): Remove.
560 (SHLIB_LINK): Don't add static objects to SHLIB_IMPLIB
561 * config/i386/t-cygwin (SHLIB_LC): Specify all required
562 libraries.
563
564 2008-09-22 Hans-Peter Nilsson <hp@axis.com>
565
566 PR middle-end/37170
567 PR middle-end/37280
568 * final.c (mark_symbol_ref_as_used): New helper function.
569 (output_operand): Instead of just looking inside MEMs for
570 SYMBOL_REFs, use new helper function and for_each_rtx.
571 * varasm.c (assemble_external): Move #ifndef ASM_OUTPUT_EXTERNAL
572 to after weak-handling. Don't mark decls with TREE_STATIC as weak.
573 Make head comment more general.
574 * config/darwin.c (machopic_output_indirection): Handle weak
575 references here, like in assemble_external.
576
577 2008-09-21 Eric Botcazou <ebotcazou@adacore.com>
578
579 * config/sparc/sparc-protos.h (gen_compare_operator): Declare.
580 (sparc_emit_float_lib_cmp): Change return type.
581 * config/sparc/sparc.c (gen_compare_reg): Add comment about TFmode.
582 (gen_compare_operator): New function.
583 (sparc_emit_float_lib_cmp): Return the new operator to be used in
584 the comparison sequence. Minor tweaks.
585 * config/sparc/sparc.md (seq, sne, sgt, slt, sge, sle): Assert
586 that the final operator and the result of sparc_emit_float_lib_cmp
587 match for software TFmode; use emit_insn in lieu of emit_jump_insn.
588 (beq, bne, bgt, blt, bge, ble, bunordered, bordered, bungt, bunlt,
589 buneq, bunge, bunle, bltgt): Assert that the final operator and the
590 result of sparc_emit_float_lib_cmp match for software TFmode.
591 (movqicc, movhicc, movsicc, movdicc): Merge into...
592 (mov<I:mode>cc): ...this.
593 (movsfcc, movdfcc, movtfcc): Merge into...
594 (mov<F:mode>cc): ...this.
595 (movqi_cc_sp64, movhi_cc_sp64, movsi_cc_sp64, movdi_cc_sp64): Merge
596 into...
597 (mov<I:mode>_cc_v9): ...this.
598 (movdi_cc_sp64_trunc): Delete.
599 (movqi_cc_reg_sp64, movhi_cc_reg_sp64, movsi_cc_reg_sp64,
600 movdi_cc_reg_sp64): Merge into...
601 (mov<I:mode>_cc_reg_sp64): ...this.
602 (movsf_cc_sp64): Rename into...
603 (movsf_cc_v9): ...this.
604 (movdf_cc_sp64): Rename into...
605 (movdf_cc_v9): ...this.
606 (movtf_cc_hq_sp64): Rename into...
607 (movtf_cc_hq_v9): ...this.
608 (movtf_cc_sp64): Rename into...
609 (movtf_cc_v9): ...this. Adjust for renaming of movdf_cc_sp64.
610
611 2008-09-21 Diego Novillo <dnovillo@google.com>
612
613 * doc/gccint.texi: Include generic.texi and gimple.texi.
614 Re-order index.
615 * doc/tree-ssa.texi (GENERIC): Move to generic.texi.
616 (GIMPLE): Move to gimple.texi.
617 (Annotations): Remove references to to stmt_ann_t and
618 ssa_name_ann_t.
619 (SSA Operands): Rename from 'Statement Operands'.
620 * doc/generic.texi: New.
621 * doc/gimple.texi: New.
622 * Makefile.in (TEXI_GCCINT_FILES): Add generic.texi and
623 gimple.texi.
624 * Makefile.in (TEXI_GCCINT_FILES):
625 * gimple.c (gimple_copy_call_skip_args): Rename from
626 giple_copy_call_skip_args. Update all users.
627 * doc/gimple.texi (gimple_copy_call_skip_args): Document.
628
629 2008-09-21 Ira Rosen <irar@il.ibm.com>
630
631 PR tree-optimization/37539
632 * tree-vect-transform.c (vect_transform_strided_load): Save vector
633 statement in related statement field only for the first load of the
634 group of loads with the same data reference.
635
636 2008-09-20 Adam Nemet <anemet@caviumnetworks.com>
637
638 * config/mips/mips.h (TUNE_OCTEON): New macro.
639 * config/mips/mips.c (mips_issue_rate): Return 2 for Octeon.
640 (mips_multipass_dfa_lookahead): Return 2 for Octeon.
641 * config/mips/octeon.md: New file.
642 * config/mips/mips.md: Include octeon.md. Restore
643 semi-alphabetical order of include files.
644
645 2008-09-20 H.J. Lu <hongjiu.lu@intel.com>
646
647 PR target/37571
648 * config/i386/i386.md (*jcc_fused_1): Removed.
649 (*jcc_fused_2): Likewise.
650 (*jcc_fused_3): Likewise.
651 (*jcc_fused_4): Likewise.
652
653 2008-09-20 Richard Sandiford <rdsandiford@googlemail.com>
654
655 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Define.
656 (IRA_COVER_CLASSES): Refer to TARGET_IRA_COVER_CLASSES.
657 * target.h (gcc_target): Add ira_cover_classes.
658 * ira.c: Remove IRA_COVER_CLASSES guards.
659 (setup_cover_and_important_classes): Use targetm.ira_cover_classes
660 instead of IRA_COVER_CLASSES.
661 (setup_cover_and_important_classes): Remove IRA_COVER_CLASSES guard.
662 (setup_class_translate): Likewise.
663 (setup_reg_class_intersect_union): Likewise.
664 (find_reg_class_closure): Replace IRA_COVER_CLASSES guard with a
665 test of targetm.ira_cover_classes.
666 * opts.c (decode_options): Use targetm.ira_cover_classes instead
667 of IRA_COVER_CLASSES.
668 * target-def.h (TARGET_IRA_COVER_CLASSES): Define.
669 (TARGET_INITIALIZER): Include it.
670 * targhooks.h (default_ira_cover_classes): Declare.
671 * targhooks.c (default_ira_cover_classes): New function.
672
673 2008-09-19 Bob Wilson <bob.wilson@acm.org>
674
675 * config/xtensa/xtensa.md (reload<mode>_literal): Handle MEM operands.
676
677 2008-09-19 Ian Lance Taylor <iant@google.com>
678
679 * varasm.c (narrowing_initializer_constant_valid_p): Return
680 NULL_TREE if ENDTYPE is not an integer.
681
682 2008-09-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
683
684 PR tree-opt/30930
685 * tree-ssa.c (execute_update_addresses_taken): Also update
686 DECL_GIMPLE_REG_P for vector and complex types.
687
688 2008-09-19 Andrew MacLeod <amacleod@redhat.com>
689 Jan Hubicka <jh@suse.cz>
690
691 PR middle-end/37567
692 * tree-ssa-ter.c (free_temp_expr_table): Make sure fields are actually
693 empty before freeing them.
694 (find_replaceable_exprs): Move asserts to free_temp_expr_table.
695
696 2008-09-18 Bob Wilson <bob.wilson@acm.org>
697
698 * configure.ac: Add HAVE_AS_TLS check for Xtensa.
699 * config/xtensa/predicates.md (tls_symbol_operand): New.
700 * config/xtensa/xtensa.c (TARGET_HAVE_TLS): Define.
701 (TARGET_CANNOT_FORCE_MEM): Define.
702 (xtensa_tls_symbol_p): New.
703 (xtensa_emit_move_sequence): Check for and legitimize TLS addresses.
704 (xtensa_legitimate_address_p): Disallow constant pool TLS references.
705 (xtensa_tls_module_base): New.
706 (xtensa_call_tls_desc): New.
707 (xtensa_legitimize_tls_address): New.
708 (xtensa_legitimize_address): Handle TLS symbols.
709 (xtensa_tls_referenced_p_1): New.
710 (xtensa_tls_referenced_p): New.
711 (xtensa_output_addr_const_extra): Handle UNSPEC_TPOFF and UNSPEC_DTPOFF.
712 (XTENSA_BUILTIN_THREAD_POINTER): New.
713 (XTENSA_BUILTIN_SET_THREAD_POINTER): New.
714 (xtensa_init_builtins): Set NOTHROW and READONLY for umulsidi3 builtin.
715 Add declarations for __builtin_thread_pointer and
716 __builtin_set_thread_pointer.
717 (xtensa_fold_builtin): Recognize new builtins.
718 (xtensa_expand_builtin): Expand new builtins.
719 * config/xtensa/xtensa.h (XCHAL_HAVE_THREADPTR): Define default value.
720 (TARGET_THREADPTR): Define.
721 (HAVE_AS_TLS): Define default value.
722 (LEGITIMATE_CONSTANT_P): Disallow TLS references.
723 * config/xtensa/xtensa.md (UNSPEC_TPOFF, UNSPEC_DTPOFF): New.
724 (UNSPEC_TLS_FUNC, UNSPEC_TLS_ARG, UNSPEC_TLS_CALL, UNSPEC_TP): New.
725 (UNSPECV_SET_TP): New.
726 (sym_TPOFF, sym_DTPOFF): New.
727 (load_tp, set_tp, tls_func, tls_arg, tls_call): New.
728 * config/xtensa/xtensa-protos.h (xtensa_tls_referenced_p): Declare.
729 * configure: Regenerated.
730
731 2008-09-18 H.J. Lu <hongjiu.lu@intel.com>
732
733 PR target/37394
734 * config/ia64/ia64.c (ia64_optimization_options): Move
735 checking and setting flag_schedule_insns_after_reload and
736 ia64_flag_schedule_insns2 back to ...
737 (ia64_override_options): Here.
738
739 2008-09-18 Andrew Pinski <andrew_pinski@playstation.sony.com>
740
741 PR rtl-opt/37451
742 * loop-doloop.c (doloop_modify): New argument zero_extend_p and
743 zero extend count after the correction to it is done.
744 (doloop_optimize): Update call to doloop_modify, don't zero extend
745 count before call.
746
747 2008-09-18 Martin Jambor <mjambor@suse.cz>
748
749 * ipa-cp.c (ipcp_estimate_growth): Return 0 instead of false.
750
751 * ipa-prop.c: Correct comments.
752 * ipa-prop.h: Likewise.
753
754 2008-09-18 Jan Hubicka <jh@suse.cz>
755
756 PR middle-end/37448
757 * ipa-reference.c (ipa_reference_local_vars_info_d,
758 ipa_reference_global_vars_info_d,
759 ipa_reference_local_vars_info_t, ipa_reference_global_vars_info_t,
760 ipa_reference_vars_info_t): Move here from ipa-reference.h
761 (node_duplication_hook_holder, node_removal_hook_holder): New.
762 (get_reference_vars_info_from_cgraph): Rename to ...
763 (get_reference_vars_info): ... this one, use cgraph uids.
764 (get_local_reference_vars_info, get_global_reference_vars_info):
765 Use cgraph instead of decl.
766 (ipa_reference_get_read_local, ipa_reference_get_written_local): Remove.
767 (ipa_reference_get_read_global, ipa_reference_get_not_read_global
768 ipa_reference_get_written_global, ipa_reference_get_not_written_global): Use
769 cgraph argument.
770 (check_call): Simplify avail check.
771 (scan_stmt_for_static_refs): Update.
772 (propagate_bits): Update.
773 (merge_callee_local_info): Remove.
774 (init_function_info): Use cgraph nodes.
775 (clean_function_local_data): Break out from ...
776 (clean_function): ... here.
777 (copy_local_bitmap, copy_global_bitmap): New functions.
778 (duplicate_node_data, remove_node_data): New functions.
779 (generate_summary): Register hooks; use visibility instead of
780 master clones.
781 (propafate): Use cgraph nodes; copy bitmap to each node in cycle.
782 * ipa-reference.h (ipa_reference_local_vars_info_d,
783 ipa_reference_global_vars_info_d,
784 ipa_reference_local_vars_info_t, ipa_reference_global_vars_info_t,
785 ipa_reference_vars_info_t): Move to ipa-reference.c
786 (ipa_reference_get_read_local, ipa_reference_get_written_local):
787 Remove.
788 (ipa_reference_get_read_global, ipa_reference_get_written_global,
789 ipa_reference_get_not_read_global, ipa_reference_get_not_written_global):
790 Update prototype.
791 * ipa-pure-const.c (funct_state_vec): Turn into VECtor.
792 (init_state): Remove.
793 (node_duplication_hook_holder, node_removal_hook_holder): New.
794 (get_function_state, set_function_state): Use VECtor.
795 (analyze_function): Check body availability.
796 (add_new_function): Likewise.
797 (duplicate_node_data, remove_node_data): New.
798 (generate_summary): Register hooks; do not care about clones.
799 (propafate): Do not care about clones; recursive functions are not looping.
800 * ipa-utils.c (searchc, ipa_utils_reduced_inorder): Do not skip clones.
801 * ipa-prop.c (edge_removal_hook_holder, node_removal_hook_holder,
802 * edge_duplication_hook_holder, node_duplication_hook_holder): Make
803 static.
804 * tree-flow.h (function_ann_d): Remove reference_vars_info.
805 * tree-ssa-opreands.c (add_call_clobber_ops, add_call_read_ops): Update call of
806 ipa-reference accesors.
807
808 2008-09-18 Simon Baldwin <simonb@google.com>
809
810 * c-opts.c (c_common_handle_option): Add handling for
811 -Wbuiltin-macro-redefined command line option.
812 * c.opt: Added builtin-macro-redefined option.
813 * doc/invoke.texi (Warning Options): Add -Wbuiltin-macro-redefined
814 documentation.
815
816 2008-09-18 Richard Guenther <rguenther@suse.de>
817
818 PR tree-optimization/37258
819 * tree-ssa-sccvn.c (vn_phi_compute_hash): Include the precision
820 and signedness for integral types.
821 (vn_phi_eq): Require compatible types.
822
823 2008-09-18 Jakub Jelinek <jakub@redhat.com>
824
825 PR debug/34037
826 * gimplify.c (gimplify_type_sizes): When not optimizing, ensure
827 TYPE_MIN_VALUE and TYPE_MAX_VALUE is not is not DECL_IGNORED_P
828 VAR_DECL.
829 * cfgexpand.c (expand_used_vars): Keep DECL_ARTIFICIAL
830 !DECL_IGNORED_P vars in local_decls list for instantiate_decls,
831 ggc_free other TREE_LIST nodes from that chain.
832 * function.c (instantiate_decls): Instantiate also DECL_RTL
833 of vars in cfun->local_decls, free that list afterwards.
834
835 2008-09-18 Eric Botcazou <ebotcazou@adacore.com>
836
837 * config/sparc/sol2.h (WIDEST_HARDWARE_FP_SIZE): Move to...
838 * config/sparc/sparc.h (WIDEST_HARDWARE_FP_SIZE): ...here.
839
840 2008-09-18 Andrew MacLeod <amacleod@redhat.com>
841
842 * tree-outof-ssa.c (eliminate_useless_phis): Fix formatting.
843 * tree-flow-.h (struct immediate_use_iterator_d): Fix comment.
844
845 2008-09-18 Andrew MacLeod <amacleod@redhat.com>
846
847 PR tree-optimization/37102
848 * tree-outof-ssa.c (remove_gimple_phi_args): Remove all the PHI args
849 from a node. Check to see if another PHI is dead.
850 (eliminate_useless_phis): Rename from eliminate_virtual_phis and
851 remove real PHIs which have no uses.
852 (rewrite_out_of_ssa): Call eliminate_useless_phis.
853
854 2008-09-18 Richard Guenther <rguenther@suse.de>
855
856 PR middle-end/37284
857 * tree-cfg.c (remove_useless_stmts_1): Remove
858 GIMPLE_CHANGE_DYNAMIC_TYPE if not optimizing.
859
860 2008-09-18 Nick Clifton <nickc@redhat.com>
861
862 * config/frv/frv.h (IRA_COVER_CLASSES): Define.
863 (SECONDARY_INPUT_RELOAD_CLASS): Omit unused argument in call
864 to frv_secondary_reload_class.
865 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
866 * config/frv/frv.c (TARGET_SECONDARY_RELOAD): Define.
867 (frv_secondary_reload_class): Omit unused parameter.
868 (frv_secondary_reload): New function. Handle the case when
869 secondary_reload_class() is called before the reload_(in|out)
870 _optabs have been initialised.
871 * config/frv/frv-protos.h (frv_secondary_reload_class): Omit
872 unused parameter.
873 * config/frv/frv.md: Define an exclusion set between fr550_m0
874 and fr550_f0.
875
876 2008-09-18 Richard Guenther <rguenther@suse.de>
877
878 PR tree-optimization/37456
879 * tree-ssa-reassoc.c (build_and_add_sum): If the stmt we
880 want to insert after ends a BB insert on the single fallthru
881 outgoing edge.
882
883 2008-09-18 Andreas Krebbel <krebbel1@de.ibm.com>
884
885 * doc/invoke.texi: Document -mhard-dfp, -mno-hard-dfp.
886 Mention -march=z9-109, z9-ec and z10.
887
888 2008-09-18 Uros Bizjak <ubizjak@gmail.com>
889
890 PR rtl-optimization/37544
891 * regrename.c (maybe_mode_change): Exit early when copy_mode
892 is narrower than orig_mode and narrower than new_mode.
893
894 2008-09-18 Alexander Monakov <amonakov@ispras.ru>
895
896 PR middle-end/37499
897 * sched-int.h (struct _haifa_insn_data): Remove unused field
898 ref_count.
899
900 * sched-rgn.c (ref_counts): Remove.
901 (insn_referenced): New static variable.
902 (INSN_REF_COUNT): Remove.
903 (sched_run_compute_dependencies): Use insn_referenced instead of
904 INSN_REF_COUNT.
905 (add_branch_dependences): Likewise. Delete dead assignment.
906
907 2008-09-17 Adam Nemet <anemet@caviumnetworks.com>
908
909 * haifa-sched.c (dep_cost_1): Recognize the producer even if the
910 consumer is an asm. Add comment why this is important.
911 (choose_ready): Add comment to the "INSN_CODE (insn) >= 0 ||
912 recog_memoized (insn) < 0" assert. Put ENABLE_CHECKING around
913 it.
914
915 2008-09-17 Joseph Myers <joseph@codesourcery.com>
916
917 * expr.c (emit_group_store): Do not shift before moving via a
918 stack slot.
919
920 2008-09-17 Eric Botcazou <ebotcazou@adacore.com>
921
922 * varasm.c (initializer_constant_valid_p): Forbid view-conversions
923 from aggregate to non-aggregate type if the bit pattern is not fully
924 preserved afterwards.
925
926 2008-09-17 Richard Guenther <rguenther@suse.de>
927
928 * tree-cfg.c (verify_types_in_gimple_assign): Rename to ...
929 (verify_gimple_assign): ... this. Split into ...
930 (verify_gimple_assign_unary): ... this,
931 (verify_gimple_assign_binary): ... that,
932 (verify_gimple_assign_single): ... and this.
933 (verify_types_in_gimple_stmt): Call verify_gimple_assign.
934 Fix GIMPLE_CHANGE_DYNAMIC_TYPE handling.
935 (verify_types_in_gimple_min_lval): Handle TARGET_MEM_REF.
936 (verify_types_in_gimple_reference): Be forgiving with
937 VIEW_CONVERT_EXPRs.
938 (verify_gimple_phi): Deal with virtual operands.
939
940 * tree.def (PREDICT_EXPR): Change to tcc_expression.
941
942 2008-09-17 Andrew Pinski <andrew_pinski@playstation.sony.com>
943
944 * tree.c (get_callee_fndecl): Don't call the language hook.
945 * langhooks.h (lang_hooks): Remove lang_get_callee_fndecl.
946 * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): Kill.
947 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_GET_CALLEE_FNDECL.
948
949 2008-09-17 Jakub Jelinek <jakub@redhat.com>
950
951 * tree.c (protected_set_expr_location): Don't unnecessarily
952 check for error_mark_node.
953
954 2008-09-17 Art Haas <ahaas@impactweather.com>
955
956 * ipa-reference.c (analyze_function): Declare step only if
957 ENABLE_CHECKING is defined.
958
959 2008-09-17 Jan Hubicka <jh@suse.cz>
960
961 PR c++/18071
962 * tree.h (DECL_INLINE): remove.
963 (DECL_DECLARED_INLINE_P): Update docs.
964 (DECL_NO_INLINE_WARNING_P): new.
965 (tree_function_decl): Replace inline_flag by no_inline_warning_flag.
966 * tree-inline.c (inlinable_function_p): Set DECL_NO_INLINE_WARNING_P.
967
968 2008-09-17 Jakub Jelinek <jakub@redhat.com>
969 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
970
971 PR bootstrap/37441
972 * dwarf2out.c (dwarf2out_do_cfi_asm) [MIPS_DEBUGGING_INFO]: Return
973 false.
974
975 2008-09-17 Jan Hubicka <jh@suse.cz>
976
977 * ipa-reference.c (ipa_obstack): Remove.
978 (local_info_obstack, global_info_obstack): New.
979 (add_static_var): We now handle variables only.
980 (mark_address_taken, mark_load, mark_store): New functions based on ...
981 (check_operand): ... remove.
982 (get_asm_stmt_operands): Rename to ...
983 (check_asm_memory_clobber): ... this. Look only for memory clobber.
984 (scan_stmt_for_static_refs): Rewrite.
985 (scan_op_for_static_refs): Rename to ...
986 (scan_initializer_for_static_refs): do not look for VAR_DECL
987 initializers; stop recursion on types and decls.
988 (ipa_init): Use proper obstacks.
989 (analyze_variable): Use scan_initializer_for_static_refs.
990 (init_function_info): Use local obstack.
991 (analyze_function): Simplify.
992 (add_new_function): We don't need visited_nodes obstack.
993 (generate_summary): Use proper obstacks; cleanup after propagation.
994
995 2008-09-17 Richard Guenther <rguenther@suse.de>
996
997 PR middle-end/37385
998 PR tree-optimization/37491
999 * alias.c (get_alias_set): Use the canonical type.
1000 * tree-vect-transform.c (vectorizable_store): Use the type of
1001 the lhs for the vector type. Adjust checking.
1002 (vectorizable_load): Adjust checking.
1003
1004 2008-09-16 Jakub Jelinek <jakub@redhat.com>
1005 Adam Nemet <anemet@caviumnetworks.com>
1006
1007 PR rtl-optimization/37483
1008 * ifcvt.c (noce_try_sign_mask): Use if_info->test_bb instead of
1009 if_info->insn_b's bb as argument to optimize_bb_for_speed_p.
1010 Rearrange code to better match the original comment. Check
1011 t_unconditional first. Improve comment.
1012
1013 2008-09-16 Jakub Jelinek <jakub@redhat.com>
1014
1015 PR c/37529
1016 * gimplify.c (gimplify_expr) <case GOTO_EXPR>: If gimplification of
1017 GOTO_DESTINATION failed, don't create GIMPLE_GOTO.
1018
1019 PR c++/37530
1020 * gimplify.c (gimplify_expr) <case TRY_CATCH_EXPR>: Don't create
1021 GIMPLE_TRY if cleanup sequence is empty.
1022
1023 2008-09-16 Andrew Pinski <andrew_pinski@playstation.sony.com>
1024
1025 PR middle-end/37263
1026 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Prefer the
1027 eliminate IV if the cost are the same.
1028
1029 2008-09-16 Richard Guenther <rguenther@suse.de>
1030
1031 PR middle-end/37380
1032 * tree-sra.c (sra_build_assignment): Do not call the gimplifier
1033 if not necessary.
1034
1035 2008-09-16 Richard Guenther <rguenther@suse.de>
1036
1037 PR tree-optimization/37508
1038 * tree-vrp.c (simplify_truth_ops_using_ranges): Also allow -1.
1039
1040 2008-09-15 Kaz Kojima <kkojima@gcc.gnu.org>
1041
1042 * config/sh/sh.md (movsf_ie): Fix length for TARGET_SH2A.
1043
1044 2008-09-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
1045
1046 * config/rs6000/rs6000.md (floatsidf2): Rewrite PowerPC64 case to
1047 use gen_floatdidf2 directly.
1048 (floatunssidf2): Likewise.
1049 (floatsidf_ppc64_mfpgpr): Remove.
1050 (floatsidf_ppc64): Remove.
1051 (floatunssidf_ppc64): Remove.
1052
1053 2008-09-15 Jakub Jelinek <jakub@redhat.com>
1054
1055 * ira-color.c (finish_cost_update): Free update_cost_queue_elems
1056 rather than update_cost_queue.
1057
1058 * tree-ssa-alias.c (init_alias_info): Call bitmap_obstack_release
1059 in every call starting with the second one, instead of only when
1060 alias_bitmap_obstack.elements != NULL.
1061
1062 * tree-predcom.c (filter_suitable_components): Free all refs in
1063 act->refs vector before calling release_component.
1064 (add_ref_to_chain): Free ref if not adding it to chain->refs.
1065
1066 * tree-data-ref.c (free_subscripts): Free all subscript objects.
1067
1068 * tree-loop-linear.c (linear_transform_loops): Initialize
1069 lambda_obstack only after calling perfect_loop_nest_depth.
1070 Goto free_and_continue instead of just continue for later failures.
1071
1072 PR middle-end/37479
1073 * doc/invoke.texi: Document -fno-dwarf2-cfi-asm.
1074
1075 PR libmudflap/36397
1076 * tree-mudflap.c (mf_xform_derefs_1): Handle VIEW_CONVERT_EXPR.
1077
1078 2008-09-14 Andreas Schwab <schwab@suse.de>
1079
1080 * tree-call-cdce.c (check_target_format): Accept Motorola formats.
1081
1082 2008-09-14 Jan Hubicka <jh@suse.cz>
1083
1084 * invoke.texi (-fconserve-stack): Document.
1085 * opts.c (decode_options): Handle conserve_stack.
1086 * common.opt (fconvserve_stack): New.
1087
1088 2008-09-14 David Edelsohn <edelsohn@gnu.org>
1089
1090 * config.host: Add x-aix to host_xmake_file.
1091 * config/rs6000/t-aix52: Do not override LDFLAGS.
1092 * config/rs6000/x-aix: New file.
1093
1094 2008-09-14 Andy Hutchinson <hutchinsonandy@aim.com>
1095
1096 PR target/19636
1097 PR target/24894
1098 PR target/31644
1099 PR target/31786
1100 * config/avr/avr.c (legitimate_address_p): Fix problem where subreg
1101 is not recognized as a valid register usage. Allow REG_X to be used
1102 as a base pointer.
1103 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Remove code that
1104 forces a reload when using a base register.
1105
1106 2008-09-14 Danny Smith <dannysmith@users.sourceforge.net>
1107
1108 * config/i386/cygming-crtend.c (register_frame_ctor): If
1109 DEFAULT_USE_CXA_ATEXIT, register __gcc_deregister_frame
1110 directly with atexit.
1111 (deregister_frame_ctor): Rename to ...
1112 (deregister_frame_dtor): Use to call __gcc_deregister_frame
1113 if !DEFAULT_USE_CXA_ATEXIT.
1114
1115 2008-09-13 Jan Hubicka <jh@suse.cz>
1116
1117 * cgraph.c: Include value-prof.h
1118 * Makefile.in (cgraph.o): Add value-prof.h dependency.
1119
1120 2008-09-13 Jan Hubicka <jh@suse.cz>
1121
1122 PR middle-end/32581
1123 * tree-profile.c (add_abnormal_goto_call_edges): New function.
1124 (tree_gen_interval_profiler, tree_gen_pow2_profiler,
1125 tree_gen_one_value_profiler, tree_gen_average_profiler,
1126 tree_gen_ic_func_profiler, tree_gen_ior_profiler): Use it.
1127
1128 2008-09-13 Jan Hubicka <jh@suse.cz>
1129
1130 * i386.c (ix86_expand_movmem, ix86_expand_movstr): Avoid processing
1131 too many bytes on misalligned blocks.
1132
1133 2008-09-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1134
1135 * doc/cfg.texi: Fix some typos.
1136 * doc/extend.texi: Likewise.
1137 * doc/install.texi: Likewise.
1138 * doc/invoke.texi: Likewise.
1139 * doc/rtl.texi: Likewise.
1140 * doc/tree-ssa.texi: Likewise.
1141
1142 2008-09-13 Richard Guenther <rguenther@suse.de>
1143
1144 PR middle-end/30141
1145 * tree-nested.c (finalize_nesting_tree_1): Generate valid
1146 gimple stores for memory rhs.
1147
1148 2008-09-13 H.J. Lu <hongjiu.lu@intel.com>
1149
1150 PR rtl-optimization/37489
1151 * cse.c (fold_rtx): Don't return const_true_rtx for float
1152 compare if FLOAT_STORE_FLAG_VALUE is undefined.
1153
1154 2008-09-13 Jan Hubicka <jh@suse.cz>
1155
1156 PR tree-optimization/37392
1157 * tree-inline.c (remap_gimple_stmt): Do not remap return value.
1158
1159 2008-09-13 Martin Jambor <mjambor@suse.cz>
1160 Jan Hubicka <jh@suse.cz>
1161
1162 * cgraph.c (free_edges): New variable.
1163 (NEXT_FREE_EDGE): New macro.
1164 (cgraph_free_edge): New function.
1165 (cgraph_remove_edge): Call cgraph_remove_edge_1.
1166 (cgraph_node_remove_callees): Likewise.
1167 (cgraph_node_remove_callers): Likewise.
1168 (cgraph_create_edge): Reuse edges from the free list. Do not
1169 update uid if doing so.
1170 (cgraph_remove_*_hook): Add free call.
1171
1172 2008-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1173
1174 * ira-color.c (conflict_allocno_vec): Delete.
1175 (update_cost_queue_elem): New structure.
1176 (update_cost_queue): New variable.
1177 (update_cost_queue_tail): Likewise.
1178 (update_cost_queue_elems): Likewise.
1179 (allocno_update_cost_check): Delete.
1180 (initiate_cost_update): Allocate update_cost_queue_elems
1181 instead of allocno_update_cost_check.
1182 (finish_cost_update): Update the free()s accordingly.
1183 (start_update_cost): New function.
1184 (queue_update_cost): Likewise.
1185 (get_next_update_cost): Likewise.
1186 (update_copy_costs_1): Inline into...
1187 (update_copy_costs): ...here. Use a queue instead of recursive calls.
1188 Use cover_class instead of ALLOCNO_COVER_CLASS (another_allocno),
1189 once we've established they are equal. Don't allocate update
1190 costs if there is nothing to add to them.
1191 (update_conflict_hard_regno_costs): Remove ALLOCNO and
1192 DIVISOR arguments. Use a queue instead of recursive calls;
1193 process all the allocnos in the initial queue, rather than
1194 a single allocno.
1195 (assign_hard_reg): Use queue_update_cost instead of
1196 conflict_allocno_vec. Queue coalesced allocnos instead
1197 of calling update_conflict_hard_regno_costs for each one.
1198 Just call update_conflict_hard_regno_costs once for the
1199 entire queue.
1200 (ira_color): Remove conflict_allocno_vec handling.
1201
1202 2008-09-12 Sebastian Pop <sebastian.pop@amd.com>
1203
1204 PR tree-optimization/37484
1205 * graphite.c (scop_record_loop): Use snprintf instead of sprintf.
1206 (save_var_name): Same.
1207 (initialize_cloog_names): Same.
1208 (initialize_cloog_names): Same.
1209
1210 2008-09-12 Sebastian Pop <sebastian.pop@amd.com>
1211
1212 * tree-scalar-evolution.c (set_instantiated_value): Set
1213 instantiated_below.
1214
1215 2008-09-12 Vladimir Makarov <vmakarov@redhat.com>
1216
1217 PR rtl-opt/37377
1218
1219 * ira-build.c (common_loop_tree_node_dominator): Remove.
1220 (copy_live_ranges_to_removed_store_destinations): New function.
1221 (regno_top_level_allocno_map): Move to top level from ...
1222 (ira_flattening): ... here. Use
1223 copy_live_ranges_to_removed_store_destinations.
1224
1225 * ira-emit.c (generate_edge_moves): Fix a comment.
1226
1227 2008-09-12 Anatoly Sokolov <aesok@post.ru>
1228
1229 PR target/37466
1230 * config/avr/avr.md (movsi_lreg_const peephole2): Add match_dup for
1231 scratch register after 'set' pattern.
1232
1233 2008-09-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1234
1235 * emit-rtl.c (set_reg_attrs_from_value): Fix invalid alignment
1236 information passed to mark_reg_pointer.
1237 * explow.c (force_reg): Likewise.
1238
1239 2008-09-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1240
1241 * config/spu/spu.c (spu_override_options): Default to -mno-safe-hints
1242 when building for the celledp architecture.
1243
1244 2008-09-12 Richard Guenther <rguenther@suse.de>
1245
1246 * tree-vrp.c (simplify_truth_ops_using_ranges): Fix types.
1247
1248 2008-09-12 Eric Botcazou <ebotcazou@adacore.com>
1249
1250 PR rtl-optimization/37424
1251 * ira-color.c (coalesced_pseudo_reg_slot_compare): Untie by comparing
1252 the regnos instead of the addresses.
1253
1254 2008-09-11 Janis Johnson <janis187@us.ibm.com>
1255
1256 * ginclude/float.h (DEC_EVAL_METHOD): Correct the macro name.
1257
1258 2008-09-11 Richard Guenther <rguenther@suse.de>
1259
1260 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Avoid
1261 entering the weaker equivalence recording.
1262
1263 * tree-ssa-phiprop.c (propagate_with_phi): Fix tuplification.
1264
1265 2008-09-11 Jeff Law <law@redhat.com>
1266
1267 * reload1.c (alter_reg): Undo the BYTE_BIG_ENDIAN correction performed
1268 by assign_stack_local on the IRA path for stack slot sharing
1269 as well as the non-IRA path.
1270
1271 2008-09-11 Uros Bizjak <ubizjak@gmail.com>
1272
1273 * config/i386/i386.h: Fix whitespace issues.
1274
1275 2008-09-11 Martin Jambor <mjambor@suse.cz>
1276
1277 * ipa-prop.h (struct ipa_param_flags): Removed.
1278 (struct ipa_param_descriptor): New structure.
1279 (struct ipa_node_params): ipcp_lattices, param_decls and
1280 param_flags moved to ipa_param_description.
1281 (ipa_get_ith_param): Renamed to ipa_get_param, changed to access
1282 descriptors. Renamed all users.
1283 (ipa_is_ith_param_modified): Renamed to ipa_is_param_modified,
1284 changed to access descriptors. Renamed all users.
1285 (ipa_is_ith_param_called): Renamed to ipa_is_param_called, changed
1286 to access descriptors. Renamed all users.
1287 * ipa-cp.c (ipcp_init_cloned_node): Call
1288 ipa_initialize_node_params instead of ipa_count_formal_params and
1289 ipa_create_param_decls_array.
1290 (ipcp_analyze_node): Likewise.
1291 (ipcp_get_ith_lattice): Renamed to ipcp_get_lattice, changed to access
1292 descriptors. Renamed all users.
1293 (ipcp_initialize_node_lattices): Remove allocation.
1294 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
1295 ipa_initialize_node_params instead of ipa_count_formal_params and
1296 ipa_create_param_decls_array.
1297 * ipa-prop.c (ipa_create_param_decls_array): Renamed to
1298 ipa_populate_param_decls, made static, added parameter info,
1299 renamed mt to node, removed allocation, changed to use
1300 descriptors.
1301 (ipa_count_formal_params): Made static, added parameter info,
1302 renamed mt to node.
1303 (ipa_initialize_node_params): New function.
1304 (ipa_check_stmt_modifications): Changed to use descriptors.
1305 (ipa_detect_param_modifications): Removed allocation, changed to
1306 use descriptors.
1307 (ipa_note_param_call): Changed to use descriptors.
1308 (ipa_analyze_params_uses): Removed allocation.
1309 (ipa_free_node_params_substructures): Changed to use descriptors.
1310 (ipa_edge_duplication_hook): Use the unused attribute.
1311 (ipa_node_duplication_hook): Use the unused attribute, changed to
1312 use descriptors, changed to duplicate descriptors.
1313
1314 * ipa-inline.c (cgraph_mark_inline_edge): New parameter new_edges,
1315 changed all callers. Call ipa_propagate_indirect_call_infos if doing
1316 indirect inlining. Made static.
1317 (cgraph_decide_inlining): Freeing ipa-prop structures after inlining
1318 functions called only once.
1319 (cgraph_decide_recursive_inlining): Don't call
1320 ipa_propagate_indirect_call_infos, pass new_edges to
1321 cgraph_mark_inline_edge instead.
1322 (cgraph_decide_inlining_of_small_functions): Don't call
1323 ipa_propagate_indirect_call_infos, pass new_edges to
1324 cgraph_mark_inline_edge instead.
1325 (cgraph_decide_inlining): Don't call
1326 ipa_propagate_indirect_call_infos.
1327 * ipa-prop.c: Check that vectors are allocated.
1328
1329 * ipa-inline.c (cgraph_mark_inline_edge): Returns boolean, true
1330 iff a new cgraph edges have been created.
1331 (cgraph_decide_inlining): New variable redo_always_inline.
1332 Flattening and always_inlining loop until callgraph stabilizes.
1333 * ipa-prop.c (update_call_notes_after_inlining): Returns boolean,
1334 true iff new cgraph edges have been created.
1335 (propagate_info_to_inlined_callees): Likewise.
1336 (ipa_propagate_indirect_call_infos): Likewise.
1337
1338 2008-09-11 Richard Guenther <rguenther@suse.de>
1339
1340 * tree-vectorizer.c (slpeel_add_loop_guard): Fix types.
1341 (set_prologue_iterations): Likewise.
1342 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref):
1343 Likewise.
1344 (vect_update_init_of_dr): Likewise.
1345 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Fix
1346 type verification.
1347 * fold-const.c (fold_unary): Do not generate calculations
1348 in sub-types.
1349
1350 2008-09-11 Paolo Bonzini <bonzini@gnu.org>
1351
1352 * dojump.c (do_jump) [BIT_AND_EXPR]: Move below. Fall through to
1353 TRUTH_AND_EXPR for boolean (1-bit precision) expressions.
1354 (do_jump) [BIT_IOR_EXPR]: Compile as TRUTH_OR_EXPR.
1355
1356 * tree-flow.h (simplify_stmt_using_ranges): Accept a GSI, return
1357 a bool.
1358 * tree-ssa-propagate.c (substitute_and_fold): Pass a GSI to
1359 VRP's simplify_stmt_using_ranges. Do simplify_stmt_using_ranges
1360 before finalizing the changes.
1361 * tree-vrp.c (extract_range_from_binary_expr): Add limited support
1362 for BIT_IOR_EXPR.
1363 (simplify_truth_ops_using_ranges): New.
1364 (simplify_div_or_mod_using_ranges, simplify_abs_using_ranges,
1365 simplify_cond_using_ranges, simplify_switch_using_ranges): Return
1366 whether a simplification was made.
1367 (simplify_stmt_using_ranges): Ditto, and accept a GSI. For GS_ASSIGN,
1368 use a switch statement and also call simplify_truth_ops_using_ranges.
1369
1370 2008-09-11 Jan Hubicka <jh@suse.cz>
1371
1372 * ggc-common.c (loc_array): Make static.
1373 * dce.c (rest_of_handle_ud_dce): Free worklist.
1374
1375 2008-09-11 Jan Hubicka <jh@suse.cz>
1376
1377 * cgraph.c (cgraph_release_function_body): Plug memory leak on
1378 ipa_transforms_to_apply and CFG; ggc_free gimple df and struct
1379 function so we are sure we do not dangle it forever.
1380 * function.c (outer_function_chain, find_function_data): Remove.
1381 (function_context_stack): New.
1382 (push_function_context, pop_function_context): Update.
1383 * function.h (struct function): Remove pointer outer.
1384 (outer_function_chain, find_function_data): Remove.
1385 * stmt.c (force_label_rtx): Remove dead call of find_function_data.
1386
1387 2008-09-11 Jan Hubicka <jh@suse.cz>
1388
1389 PR middle-end/37448
1390 * cgraph.c (cgraph_create_edge): Use !cgraph_edge for sanity check.
1391
1392 2008-09-11 Jan Hubicka <jh@suse.cz>
1393
1394 * tree-ssa-pre.c (phi_translate_1): Fix memory leak
1395
1396 2008-09-11 Jan Hubicka <jh@suse.cz>
1397
1398 * tree-ssa.c (redirect_edge_var_map_clear): Fix formatting.
1399 (free_var_map_entry): New function.
1400 (redirect_edge_var_map_destroy): Use it.
1401
1402 2008-09-11 Jan Hubicka <jh@suse.cz>
1403
1404 PR middle-end/37448
1405 * tree-inline.c (add_lexical_block): Replace with ...
1406 (prepend_lexical_block): ... prepend at begginig.
1407 (remap_blocks): Use it and reverse later.
1408 (expand_call_inline): Use prepend_lexical_block.
1409
1410 2008-09-11 Jan Hubicka <jh@suse.cz>
1411
1412 * gimplify.c (pop_gimplify_context): Free bind_expr_stack.
1413
1414 2008-09-11 Jan Hubicka <jh@suse.cz>
1415
1416 * function.c (free_after_compilation): Call insn_locators_free.
1417 * cfglayout.c (insn_locators_free): New function.
1418 * rtl.h (insn_locators_free): Declare.
1419
1420 2008-09-11 Jan Hubicka <jh@suse.cz>
1421
1422 * ifcvt.c (check_cond_move_block): Make regs argument pointer to
1423 vector pointer.
1424 (cond_move_process_if_block): Update call.
1425
1426 2008-09-11 Jan Hubicka <jh@suse.cz>
1427
1428 * toplev.c (dump_memory_report): Call dump_vec_loc_statistics.
1429 * vec.c: Include hashtab.h
1430 (vec_descriptor, ptr_hash_entry): New structures.
1431 (vec_desc_hash, vec_ptr_map): New static variables.
1432 (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr, vec_descriptor,
1433 register_overhead, free_overhead, vec_heap_free): New functions.
1434 (vec_gc_o_reserve_1): ggc_free when resizing to 0.
1435 (vec_heap_o_reserve_1): free when resizing to 0; add statistics.
1436 (cmp_statistic, add_statistics, dump_vec_loc_statistics):
1437 New functions.
1438
1439 2008-09-11 Ira Rosen <irar@il.ibm.com>
1440
1441 PR tree-optimization/37474
1442 * tree-vect-analyze.c (vect_supported_load_permutation_p): Check the
1443 length of load permutation.
1444
1445 2008-09-11 Andreas Schwab <schwab@suse.de>
1446
1447 * config/m68k/m68k.h (IRA_COVER_CLASSES): Define.
1448
1449 2008-09-11 Jakub Jelinek <jakub@redhat.com>
1450
1451 PR target/37382
1452 * expmed.c (extract_low_bits): Avoid creating invalid subregs.
1453 * dse.c (find_shift_sequence): Use extract_low_bits instead of
1454 simplify_gen_subreg.
1455
1456 2008-09-11 Ira Rosen <irar@il.ibm.com>
1457
1458 * tree-vect-transform.c (vectorizable_store): Use the rhs vector type
1459 for alias check.
1460
1461 2008-09-10 Jakub Jelinek <jakub@redhat.com>
1462
1463 PR middle-end/37338
1464 * gimplify.c (gimplify_body): Call default_rtl_profile.
1465
1466 PR target/36904
1467 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Return NULL
1468 instead of tok->val.node if not expanding to something else. Handle
1469 intervening CPP_PADDING tokens.
1470 (altivec_categorize_keyword): Remove unneeded comparisons.
1471
1472 2008-09-10 Richard Guenther <rguenther@suse.de>
1473
1474 * tree-ssa-pre.c (phi_translate_1): Fix memory leak.
1475
1476 2008-09-10 Richard Guenther <rguenther@suse.de>
1477
1478 PR middle-end/37432
1479 * tree-inline.c (insert_init_stmt): Make sure to not
1480 insert invalid gimple stores.
1481
1482 2008-09-10 Sebastian Pop <sebastian.pop@amd.com>
1483
1484 PR tree-optimization/37388
1485 * toplev.c (process_options): Fail and warn when graphite
1486 flags are used, but the compiler has not been configured
1487 with graphite libraries.
1488 * graphite.c (graphite_transform_loops): Remove printfs
1489 to dump_file for the case when graphite is not available.
1490
1491 2008-09-10 H.J. Lu <hongjiu.lu@intel.com>
1492
1493 PR target/37434:
1494 * config/i386/i386.c (ix86_expand_vector_init_interleave): Force
1495 the even element into register.
1496 (ix86_expand_vector_init_general): Don't use
1497 ix86_expand_vector_init_interleave on V16QImode and V8HImode
1498 if we can't move from GPR to SSE register directly.
1499
1500 2008-09-10 Bernd Schmidt <bernd.schmidt@analog.com>
1501
1502 * config/bfin/bfin.c (workaround_speculation): Correct algorithm to
1503 not lose track of the number of NOPs needed. Number of NOPs needed
1504 for sync vs. loads workaround was switched; corrected. Run second
1505 pass for all workarounds. No NOPs needed after call insns. Change
1506 second pass to use find_next_insn_start and find_load helpers in order
1507 to properly detect parallel insns.
1508 * config/bfin/bfin.md (cbranch_with_nops): Increase length.
1509
1510 2008-09-10 Jan Hubicka <jh@suse.cz>
1511
1512 * value-prof.c (gimple_ic): Fix tuplification bug.
1513 * sched-deps.c (sched_insns_conditions_mutex_p): Silence unitialized
1514 var warning.
1515
1516 2008-09-10 Jakub Jelinek <jakub@redhat.com>
1517
1518 PR tree-optimization/37353
1519 * tree-call-cdce.c (cond_dead_built_in_calls): Remove.
1520 (shrink_wrap_conditional_dead_built_in_calls): Add calls argument, use
1521 calls instead of cond_dead_built_in_calls.
1522 (tree_call_cdce): Add cond_dead_built_in_calls automatic variable,
1523 initalize the vector only before adding first entry. Use VEC_safe_push
1524 instead of VEC_quick_push. Pass cond_dead_built_in_calls to
1525 shrink_wrap_conditional_dead_built_in_calls call.
1526
1527 2008-09-10 Ira Rosen <irar@il.ibm.com>
1528
1529 PR tree-optimization/37385
1530 * tree-vect-transform.c (vect_create_data_ref_ptr): Add a new argument,
1531 and use it as a vector type if not NULL.
1532 (vectorizable_store): Call vect_create_data_ref_ptr with the type of
1533 vectorized rhs.
1534 (vect_setup_realignment): Call vect_create_data_ref_ptr with additional
1535 argument.
1536 (vectorizable_load): Likewise.
1537
1538 2008-09-10 Jakub Jelinek <jakub@redhat.com>
1539
1540 * config/i386/i386.md (SWI32): New mode iterator.
1541 (jcc_fused_1, jcc_fused_2, jcc_fused_3, jcc_fused_4): Use it instead
1542 of SWI.
1543
1544 2008-09-09 Vladimir Makarov <vmakarov@redhat.com>
1545
1546 PR rtl-optimization/37435
1547 * caller-save.c (insert_restore, insert_save): Check the mode by
1548 reg_save_code.
1549
1550 2008-09-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1551
1552 PR other/37265
1553 * dwarf2asm.c (dw2_force_const_mem): Use unstripped symbol name for
1554 splay tree lookup.
1555 (dw2_output_indirect_constant_1): Use unstripped name in symbol
1556 reference.
1557
1558 2008-09-09 Sandra Loosemore <sandra@codesourcery.com>
1559
1560 * doc/invoke.texi (ARM Options): Correct errors in discussion
1561 of -mfloat-abi, -mhard-float, and -msoft-float.
1562
1563 2008-09-09 Jakub Jelinek <jakub@redhat.com>
1564 Jan Hubicka <jh@suse.cz>
1565
1566 PR middle-end/37356
1567 * tree-inline.c (copy_bb): Insert stmt into copy_basic_block before
1568 calling gimple_regimplify_operands on it. Iterate over all newly
1569 added statements, not just the last one.
1570 (insert_init_stmt): Insert stmt into seq first, then call
1571 gimple_regimplify_operands on it. Don't create new gimplification
1572 context, nor find referenced vars.
1573
1574 2008-09-09 Jakub Jelinek <jakub@redhat.com>
1575
1576 PR other/37419
1577 * ipa-prop.h (ipa_propagate_indirect_call_infos): Change last argument
1578 to pointer to vector pointer.
1579 * ipa-prop.c (ipa_propagate_indirect_call_infos,
1580 propagate_info_to_inlined_callees): Likewise.
1581 (update_call_notes_after_inlining): Likewise. Push new indirect edge
1582 to *new_edges instead of new_edges. Reread IPA_EDGE_REF after
1583 ipa_check_create_edge_args.
1584 * ipa-inline.c (cgraph_decide_recursive_inlining): Change last argument
1585 to pointer to vector pointer.
1586 (cgraph_decide_inlining_of_small_function): Adjust
1587 cgraph_decide_recursive_inlining and ipa_propagate_indirect_call_infos
1588 calls.
1589
1590 PR target/37438
1591 * config/i386/i386.md (zero_extendqihi2_movzbl): Enable when
1592 optimizing for size, not speed.
1593
1594 PR rtl-optimization/37408
1595 * function.c (assign_parm_find_stack_rtl): Set correct MEM_SIZE
1596 if parm is promoted.
1597
1598 2008-09-09 Sebastian Pop <sebastian.pop@amd.com>
1599
1600 PR tree-optimization/37375
1601 * tree-scalar-evolution.c (scev_info_str): Add field
1602 instantiated_below.
1603 (new_scev_info_str, eq_scev_info, find_var_scev_info,
1604 set_scalar_evolution, get_scalar_evolution, get_instantiated_value,
1605 set_instantiated_value): Pass instantiated_below.
1606 (analyze_scalar_evolution_1, analyze_scalar_evolution): Update calls
1607 to above functions.
1608 (instantiate_scev_1, instantiate_scev): Pass a basic block above which
1609 the definitions are not instantiated.
1610
1611 * tree-scalar-evolution.h (instantiate_scev): Update declaration.
1612 (block_before_loop): New.
1613 * tree-data-ref.c (dr_analyze_indices): Update uses of
1614 instantiate_scev.
1615 * graphite.c (block_before_scop): New.
1616 (loop_affine_expr, stmt_simple_for_scop_p, harmful_stmt_in_bb): Pass a
1617 basic block, not a loop for determining the parameters.
1618 (scopdet_edge_info, build_scops_1): Do not pass outermost loop in the
1619 scop.
1620 (idx_record_params, find_params_in_bb, find_scop_parameters,
1621 build_loop_iteration_domains, add_conditions_to_domain): Update calls
1622 to instantiate_scev.
1623
1624 * Makefile.in (cfgloopmanip.o): Add missing dependency on TREE_FLOW_H.
1625
1626 2008-09-09 Vladimir Makarov <vmakarov@redhat.com>
1627
1628 PR rtl-opt/37333
1629
1630 * ira-build.c (ira_create_allocno): Setup frequency to 0.
1631
1632 * ira-color.c (update_conflict_hard_regno_costs): Remove assert.
1633 Check zero freq and increase if necessary.
1634
1635 2008-09-09 Vladimir Makarov <vmakarov@redhat.com>
1636
1637 * ira-conflicts.c (process_regs_for_copy): Check that the hard
1638 regno is in the right range. Add comments.
1639
1640 2008-09-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1641
1642 * Makefile.in (mips-tfile.o-warn): Don't error out on mips-tfile.c
1643 warnings.
1644 * mips-tfile.c (copy_object): Cast alloca result to int *.
1645 * mips-tdump.c (print_symbol): Cast xmalloc return values to
1646 proper types.
1647 Rename class to sclass.
1648 (read_tfile): Cast read_seek return values to proper types.
1649 Cast xcalloc return value to proper type.
1650
1651 2008-09-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1652
1653 * config/sol2.h (REGISTER_TARGET_PRAGMAS): Move ...
1654 * config/i386/sol2.h (REGISTER_SUBTARGET_PRAGMAS): ... here.
1655 * config/sparc/sol2.h (REGISTER_TARGET_PRAGMAS): ... and here.
1656
1657 2008-09-09 Jan Hubicka <jh@suse.cz>
1658
1659 * profile.c (is_edge_inconsistent): Add debug output; ignore
1660 negative count on fake edges.
1661 (is_inconsistent): Add debug output.
1662
1663 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
1664
1665 * haifa-sched.c (advance_one_cycle): Do not print '\n' before printing
1666 dump message.
1667 (choose_ready): When first insn is chosen from the ready list, also
1668 dump it.
1669
1670 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
1671
1672 PR rtl-optimization/37360
1673 * haifa-sched.c (max_issue): Do not assert that we never issue more
1674 insns than issue_rate. Add comment.
1675
1676 2008-09-09 Richard Guenther <rguenther@suse.de>
1677
1678 * tree-cfg.c (verify_types_in_gimple_op): Remove.
1679 (verify_types_in_gimple_call): Rename to ...
1680 (verify_gimple_call): ... this. Enhance.
1681 (verify_types_in_gimple_cond): Remove.
1682 (verify_gimple_comparison): New function ...
1683 (verify_types_in_gimple_assign): ... split out from here.
1684 (verify_types_in_gimple_return): Rename to ...
1685 (verify_gimple_return): ... this. Enhance.
1686 (verify_types_in_gimple_switch): Rename to ...
1687 (verify_gimple_switch): ... this. Enhance.
1688 (verify_gimple_goto): New function.
1689 (verify_types_in_gimple_phi): Rename to ...
1690 (verify_gimple_phi): ... this. Enhance.
1691 (verify_types_in_gimple_stmt): Adjust calls to helper functions.
1692 Fold in single-statement cases from verify_types_in_gimple_seq_2.
1693 (verify_types_in_gimple_seq_2): Remove cases handled in
1694 verify_types_in_gimple_stmt.
1695
1696 2008-09-09 Bernd Schmidt <bernd.schmidt@analog.com>
1697
1698 * config/bfin/bfin.c (n_regs_to_save): New static variable.
1699 (push_multiple_operation, pop_multiple_operation): Set it.
1700 (workaround_rts_anomaly): New function.
1701 (workaround_speculation): New function, broken out of bfin_reorg.
1702 (bfin_reorg): Call the new functions.
1703
1704 2008-09-09 Richard Guenther <rguenther@suse.de>
1705
1706 PR middle-end/37354
1707 PR middle-end/30165
1708 * gimplify.c (gimplify_conversion): Change conversions of
1709 non-register type to VIEW_CONVERT_EXPRs.
1710 (gimplify_addr_expr): If we need to make the operand
1711 addressable make sure to use a properly initialized
1712 temporary for that so it gets a valid gimple store.
1713
1714 2008-09-09 Aldy Hernandez <aldyh@redhat.com>
1715
1716 * function.h (struct function): Add function_start_locus.
1717 * cfgexpand.c (gimple_expand_cfg): Use it.
1718 * c-parser.c (c_parser_declaration_or_fndef): Set it.
1719
1720 2008-09-09 Richard Guenther <rguenther@suse.de>
1721
1722 PR tree-optimization/37433
1723 * tree-ssa-ccp.c (ccp_fold): Properly guard folding of
1724 function calls.
1725
1726 2008-09-09 Richard Guenther <rguenther@suse.de>
1727
1728 PR tree-optimization/37387
1729 * tree-ssa-ifcombine.c (ifcombine_iforif): Convert the name
1730 and bits to a common type.
1731
1732 2008-09-09 Nick Clifton <nickc@redhat.com>
1733
1734 * config/v850/v850.md (return): Restore frame size restriction.
1735
1736 2008-09-09 Paolo Bonzini <bonzini@gnu.org>
1737
1738 * c-common.c (c_expand_decl): Remove.
1739 * c-common.h (anon_aggr_type_p): Remove prototype.
1740 (DECL_ANON_UNION_ELEMS): Remove.
1741 * c-objc-common.h (LANG_HOOKS_EXPAND_DECL): Remove.
1742 * c-decl.c (anon_aggr_type_p): Remove.
1743 * langhooks-def.h (LANG_HOOKS_EXPAND_DECL): Remove.
1744 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_EXPAND_DECL.
1745 * langhooks.h (struct lang_hooks): Remove expand_decl.
1746 * langhooks.c (lhd_expand_decl): Remove.
1747 * stmt.c (expand_anon_union_decl): Remove.
1748 * tree.h (expand_anon_union_decl): Remove prototype.
1749
1750 2008-08-09 Andy Hutchinson <hutchinsonandy@aim.com>
1751
1752 PR target/36609
1753 * config/avr/avr.c (avr_reorg): Create RTL for reversed compare with
1754 zero.
1755 * config/avr/avr.md (QISI) : Define mode iterator.
1756 (negated_tst<mode>) : Redefine as split using mode macro.
1757 (reversed_tstqi): Define insn as reversed compare with zero.
1758 (reversed_tsthi): Ditto.
1759 (reversed_tstsi): Ditto.
1760
1761 2008-09-08 Jakub Jelinek <jakub@redhat.com>
1762
1763 PR middle-end/37393
1764 * tree-inline.c (copy_bb): When replacing a gimple_call_va_arg_pack_p
1765 call stmt by new_call, clear gimple_bb on stmt after gsi_replace.
1766
1767 PR middle-end/37414
1768 * predict.c (optimize_function_for_size_p): Don't segfault if
1769 FUN is NULL.
1770 * fold-const.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop,
1771 tree_swap_operands_p): Don't test cfun != NULL before calling
1772 optimize_function_for_s*_p.
1773
1774 2008-09-08 Eric Botcazou <ebotcazou@adacore.com>
1775
1776 * ira-color.c (ira_reuse_stack_slot): Set slot_num on success at the
1777 end of the search.
1778
1779 2008-09-08 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
1780
1781 * crx/crx.h (IRA_COVER_CLASSES): Define.
1782
1783 2008-09-08 Jakub Jelinek <jakub@redhat.com>
1784
1785 PR middle-end/37337
1786 * tree-ssa-dom.c (optimize_stmt): Call maybe_clean_or_replace_eh_stmt
1787 even when a stmt has been gimple_modified_p, but after fold_stmt is
1788 not any longer. Remove unneeded may_have_exposed_new_symbols
1789 initializations.
1790
1791 2008-09-08 Richard Guenther <rguenther@suse.de>
1792
1793 PR tree-optimization/37421
1794 * tree-ssa-sccvn.c (visit_copy): Make sure to fully
1795 valueize the RHS.
1796
1797 2008-09-08 Jakub Jelinek <jakub@redhat.com>
1798
1799 PR middle-end/37415
1800 * opts.c (common_handle_option): Handle OPT_ftree_store_ccp.
1801
1802 2008-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1803
1804 PR driver/37409
1805 * pa-hpux.h (LINK_SPEC): Strip -fwhole-program.
1806 * pa-hpux10.h (LINK_SPEC): Likewise.
1807 * pa-hpux11.h (LINK_SPEC): Likewise.
1808
1809 2008-09-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1810
1811 * pa32-regs.h (IRA_COVER_CLASSES): Define.
1812 * pa64-regs.h (IRA_COVER_CLASSES): Define.
1813
1814 2008-09-07 Helge Deller <deller@gmx.de>
1815
1816 * pa/linux-atomic.c: New file.
1817 * pa/t-linux (LIB2FUNCS_STATIC_EXTRA): Define.
1818 * pa/t-linux64 (LIB2FUNCS_STATIC_EXTRA): Define.
1819
1820 2008-09-07 Richard Guenther <rguenther@suse.de>
1821 Ira Rosen <irar@il.ibm.com>
1822
1823 PR tree-optimization/36630
1824 * tree-vect-transform.c (vect_update_ivs_after_vectorizer):
1825 Call STRIP_NOPS before calling evolution_part_in_loop_num.
1826
1827 2008-09-07 Dorit Nuzman <dorit@il.ibm.com>
1828 Ira Rosen <irar@il.ibm.com>
1829
1830 PR tree-optimization/35642
1831 * config/rs6000/altivec.md (mulv8hi3): Implement.
1832
1833 2008-09-06 Jeff Law <law@redhat.com>
1834
1835 * h8300/h8300.h (IRA_COVER_CLASSES): Define.
1836
1837 2008-09-06 Jan Hubicka <jh@suse.cz>
1838
1839 PR tree-optimization/14703
1840 * tree-ssa-live.c (remove_unused_scope_block_p): Remove ignored
1841 declarations.
1842 * passes.c (init_optimization_passes): Recompute inline parameters.
1843
1844 2008-09-06 Richard Sandiford <rdsandiford@googlemail.com>
1845
1846 * config/mips/mips.c (mips_function_ok_for_sibcall): Check for
1847 DECL being null.
1848
1849 2008-09-06 Richard Sandiford <rdsandiford@goolemail.com>
1850 Peter Fuerst <post@pfrst.de>
1851
1852 * doc/invoke.texi: Document -mr10k-cache-barrier=.
1853 * doc/extend.texi: Document __builtin_mips_cache.
1854 * config/mips/mips-ftypes.def: Add a (VOID, SI, CVPOINTER) entry.
1855 * config/mips/mips.opt (mr10k-cache-barrier=): New option.
1856 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
1857 __GCC_HAVE_BUILTIN_MIPS_CACHE.
1858 (TARGET_CACHE_BUILTIN, ISA_HAS_CACHE): New macros.
1859 * config/mips/mips.c (mips_r10k_cache_barrier_setting): New enum.
1860 (set_push_mips_isas): New variable.
1861 (mips_r10k_cache_barrier): New variable.
1862 (cache): New availability predicate.
1863 (mips_builtins): Add an entry for __builtin_mips_cache.
1864 (mips_build_cvpointer_type): New function.
1865 (MIPS_ATYPE_CVPOINTER): New macro.
1866 (mips_prepare_builtin_arg): Only use the insn's mode if the rtx's
1867 mode is VOIDmode.
1868 (r10k_simplified_address_p, r10k_simplify_address)
1869 (r10k_uncached_address_p, r10k_safe_address_p)
1870 (r10k_needs_protection_p_1, r10k_needs_protection_p_store)
1871 (r10k_needs_protection_p_call, r10k_needs_protection_p)
1872 (r10k_insert_cache_barriers): New functions.
1873 (mips_reorg_process_insns): Delete cache barriers after a
1874 branch-likely instruction.
1875 (mips_reorg): Call r10k_insert_cache_barriers.
1876 (mips_handle_option): Handle OPT_mr10k_cache_barrier_.
1877 * config/mips/mips.md (UNSPEC_MIPS_CACHE): New constant.
1878 (UNSPEC_R10K_CACHE_BARRIER): Likewise.
1879 (mips_cache, r10k_cache_barrier): New define_insns.
1880
1881 2008-09-06 Richard Sandiford <rdsandiford@googlemail.com>
1882
1883 * ira-int.h (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
1884 * ira-color.c (setup_allocno_left_conflicts_num): Use
1885 hard_reg_set_equal_p instead of a comparison with
1886 ira_zero_hard_reg_set.
1887 * ira.c (setup_reg_subclasses): Likewise.
1888 (setup_cover_and_important_classes): Likewise.
1889 (setup_class_translate): Likewise.
1890 (setup_reg_class_intersect_union): Likewise.
1891 (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
1892 (ira_init_once): Don't initialize them.
1893
1894 2008-09-05 Vladimir Makarov <vmakarov@redhat.com>
1895
1896 * doc/tm.texi (IRA_COVER_CLASSES): Fix a typo.
1897
1898 2008-09-05 Vladimir Makarov <vmakarov@redhat.com>
1899
1900 * ira-color.c (ira_fast_allocation): Permit global allocno allocation.
1901
1902 2008-09-05 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
1903
1904 Improved branch hints, safe hints, and scheduling.
1905
1906 * haifa-sched.c (sched_emit_insn) : Define.
1907 * sched-int.h (sched_emit_insn) : Add prototype.
1908 * doc/invoke.texi (-mdual-nops, -mhint-max-nops,
1909 -mhint-max-distance -msafe-hints) : Document.
1910 * config/spu/spu.c (spu_flag_var_tracking): New.
1911 (TARGET_SCHED_INIT_GLOBAL, TARGET_SCHED_INIT,
1912 TARGET_SCHED_REORDER, TARGET_SCHED_REORDER2,
1913 TARGET_ASM_FILE_START): Define.
1914 (TARGET_SCHED_ADJUST_PRIORITY): Remove.
1915 (STOP_HINT_P, HINTED_P, SCHED_ON_EVEN_P): Define.
1916 (spu_emit_branch_hint): Add blocks argument.
1917 (insert_branch_hints, insert_nops): Remove.
1918 (pad_bb, insert_hbrp_for_ilb_runout, insert_hbrp, in_spu_reorg,
1919 uses_ls_unit, spu_sched_init_global, spu_sched_init,
1920 spu_sched_reorder, asm_file_start): New functions.
1921 (clock_var, spu_sched_length, pipe0_clock,
1922 pipe1_clock, prev_clock_var, prev_priority,
1923 spu_ls_first, prev_ls_clock): New static variables.
1924 * config/spu/spu.h (TARGET_DEFAULT): Add MASK_SAFE_HINTS.
1925 * config/spu.md (iprefetch): Add operand, make it clobber MEM.
1926 (nopn_nv): Add a non-volatile version of nop.
1927 * config/spu/spu.opt (-mdual-nops, -mhint-max-nops,
1928 -mhint-max-distance, -msafe-hints): New options.
1929
1930 2008-09-05 Janis Johnson <janis187@us.ibm.com>
1931 Samuel Tardieu <sam@rfc1149.net>
1932
1933 * opts.c (decode_options): Combine nested if statements.
1934
1935 PR target/37283
1936 * opts.c (decode_options): Handle more relationships among
1937 unit-at-a-time, toplevel-reorder, and section-anchors.
1938
1939 2008-09-05 David Daney <ddaney@avtrex.com>
1940
1941 * doc/install.texi (--enable-reduced-reflection): Document new option.
1942
1943 2008-09-05 Bob Wilson <bob.wilson@acm.org>
1944
1945 * config/xtensa/predicates.md (nonimmed_operand, mem_operand): Use
1946 constantpool_mem_p.
1947 (constantpool_operand): New.
1948 (move_operand): Disallow sub-word modes for the constant pool.
1949 * config/xtensa/xtensa.c (TARGET_SECONDARY_RELOAD): Define.
1950 (xtensa_secondary_reload_class): Replace with....
1951 (xtensa_secondary_reload): this function. Remove SIGN_EXTEND check.
1952 Set icode for sub-word reloads from the constant pool.
1953 * config/xtensa/xtensa.h (SECONDARY_INPUT_RELOAD_CLASS): Delete.
1954 (SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
1955 * config/xtensa/xtensa.md (reload<mode>_literal): New.
1956 * config/xtensa/xtensa-protos.h: Update prototypes.
1957
1958 2008-09-05 Joseph Myers <joseph@codesourcery.com>
1959
1960 * config/mips/mips.h (enum reg_class): Add FRAME_REGS.
1961 (REG_CLASS_NAMES): Update.
1962 (REG_CLASS_CONTENTS): Update.
1963 * config/mips/mips.c (mips_regno_to_class): Use FRAME_REGS instead
1964 of ALL_REGS for regs 77 and 78.
1965 * function.c (instantiate_virtual_regs_in_insn): Assert that
1966 return value of simplify_gen_subreg is not NULL.
1967
1968 2008-09-05 Paolo Bonzini <bonzini@gnu.org>
1969
1970 * emit-rtl.c (gen_rtvec): Rewrite not using gen_rtvec_v.
1971 (gen_rtvec_v): Fix coding standards.
1972
1973 2008-09-04 Jan Hubicka <jh@suse.cz>
1974
1975 * i386.c (decide_alg): Be more conservative about optimizing for size.
1976
1977 2008-09-04 Ian Lance Taylor <iant@google.com>
1978
1979 * varasm.c (narrowing_initializer_constant_valid_p): New
1980 static function.
1981 (initializer_constant_valid_p): Call it.
1982
1983 2008-09-04 Jeff Law <law@redhat.com>
1984
1985 * fold-const.c (native_encode_real): Fix computation of WORDS.
1986 (native_interpret_real): Likewise.
1987
1988 2008-09-04 Janis Johnson <janis187@us.ibm.com>
1989
1990 * config/rs6000/t-rs6000: Remove target gt-rs6000.h.
1991
1992 2008-09-04 Vladimir Makarov <vmakarov@redhat.com>
1993
1994 * ira-conflicts.c (process_regs_for_copy): Check insn to check
1995 that the cost is already taken into account in ira-costs.c
1996
1997 * ira-int.h (ira_debug_copy, ira_debug_copies): New.
1998
1999 * ira-build.c (print_copy, print_copies, ira_debug_copy,
2000 ira_debug_copies): New.
2001 (ira_bulid): Call print_copies.
2002
2003 * doc/tm.texi (IRA_COVER_CLASSES): Fix the description.
2004
2005 2008-09-04 Samuel Tardieu <sam@rfc1149.net>
2006
2007 PR target/32783
2008 * config/rs6000/rs6000.c (optimization_options): Remove check of
2009 flag_toplevel_order.
2010
2011 2008-09-04 Adam Nemet <anemet@caviumnetworks.com>
2012
2013 * config/mips/mips.h (ISA_HAS_SEQ_SNE): New macro.
2014 * config/mips/mips.c (mips_expand_scc): Also expand seq and sne if
2015 second operand is a reg_imm10_operand.
2016 * config/mips/mips.md (*seq_<GPR:mode><GPR2:mode>_seq,
2017 *sne_<GPR:mode><GPR2:mode>_sne): New patterns.
2018 (*seq_<GPR:mode><GPR2:mode>): Rename to
2019 *seq_zero_<GPR:mode><GPR2:mode>. Don't match if
2020 ISA_HAS_SEQ_SNE.
2021 (*seq_<GPR:mode><GPR2:mode>_mips16): Rename to
2022 *seq_zero_<GPR:mode><GPR2:mode>_mip16. Don't match if
2023 ISA_HAS_SEQ_SNE.
2024 (*sne_<GPR:mode><GPR2:mode>): Rename to
2025 *sne_zero_<GPR:mode><GPR2:mode>. Don't match if
2026 ISA_HAS_SEQ_SNE.
2027
2028 2008-09-04 Adam Nemet <anemet@caviumnetworks.com>
2029
2030 * config/mips/mips.h (ISA_HAS_EXTS): New macro.
2031 * config/mips/mips.md (*ashr_trunc<mode>): Name the pattern
2032 combining an arithmetic right shift by more than 31 and a
2033 trunction. Don't match for out-of-range shift amounts. Set
2034 attribute mode to <MODE>.
2035 (*lshr32_trunc<mode>): Name the pattern combining a logical right
2036 shift by 32 and and a truncation. Set attribute mode to <MODE>.
2037 (*<optab>_trunc<mode>_exts): New pattern for truncated right
2038 shifts by less than 32.
2039 (extv): Change predicate on first operand to accept registers.
2040 Change predicate of the other operands from immediate_operand to
2041 const_int_operand. Expand exts when source is a register.
2042 (extzv): Change predicate of the constant operands from
2043 immediate_operand to const_int_operand.
2044 (extzv<mode>): Change predicate of the constant operands from
2045 immediate_operand to const_int_operand and no constraint. Also
2046 remove mode.
2047 (*extzv_trunc<mode>_exts): New pattern.
2048
2049 2008-09-04 Adam Nemet <anemet@caviumnetworks.com>
2050
2051 * config/mips/mips.h (ISA_HAS_CINS): New macro.
2052 * config/mips/mips-protos.h (mask_low_and_shift_p,
2053 mask_low_and_shift_len): Declare.
2054 * config/mips/mips.c (mask_low_and_shift_p,
2055 mask_low_and_shift_len): New functions.
2056 (mips_print_operand): Handle new operand prefix "m".
2057 * config/mips/mips.md (*cins<mode>): New pattern.
2058
2059 2008-09-04 Bernd Schmidt <bernd.schmidt@analog.com>
2060
2061 * config/bfin/bfin.c (gen_one_bundle): Don't create new nops when
2062 optimizing for size.
2063
2064 2008-09-04 Richard Sandiford <rdsandiford@googlemail.com>
2065
2066 * df-scan.c (df_get_entry_block_def_set): Add STACK_POINTER_REGNUM
2067 regardless of epilogue_completed.
2068
2069 2008-09-04 Vladimir Makarov <vmakarov@redhat.com>
2070
2071 PR middle-end/37359
2072 * ira-lives.c (process_bb_node_lives): Check setjmp.
2073
2074 2008-09-04 Richard Sandiford <rdsandiford@googlemail.com>
2075
2076 PR middle-end/37243
2077 * ira-build.c (form_loop_tree): Reverse BB walk.
2078 (create_bb_allocnos): Likewise.
2079 * ira-lives.c (make_regno_born_and_dead, regs_set): Delete.
2080 (mark_reg_store): Rename to...
2081 (mark_ref_live): ...this and take a df_ref argument instead of
2082 note_stores arguments. Assert that we have a register.
2083 (mark_reg_clobber): Delete.
2084 (def_conflicts_with_inputs_p): New function.
2085 (mark_reg_conflicts): Delete.
2086 (mark_reg_death): Rename to...
2087 (mark_ref_dead): ...this and take a df_ref argument instead of
2088 a register. Assert that we have a register.
2089 (process_bb_node_lives): Hoist frequency calculation out of
2090 instruction walk. Convert from a forwards scan to a backwards scan.
2091 Use DF_REF_USES and DF_REF_DEFS instead of register notes and
2092 note_stores. Remove EH_RETURN_DATA_REGNO and regs_set handling.
2093 (create_allocno_live_ranges): Don't create regs_set.
2094
2095 2008-09-04 Ian Lance Taylor <iant@google.com>
2096
2097 * rtl.h (LABEL_REF_NONLOCAL_P): Don't check for REG_LABEL_OPERAND
2098 or REG_LABEL_TARGET.
2099 * calls.c (emit_library_call_value_1): Use MEM_P rather than
2100 comparing MODE with MEM.
2101 * gimple.c (gimple_build_predict): Cast END_PREDICTORS before
2102 comparing with GF_PREDICT_TAKEN.
2103 (gimple_get_lhs): Change code to enum gimple_code.
2104 (gimple_set_lhs): Likewise.
2105 * ifcvt.c (noce_process_if_block): Correct GET_MODE to GET_CODE.
2106 * omp-low.c (find_omp_clause): Change kind parameter to enum
2107 omp_clause_code.
2108 * tree-flow.h (find_omp_clause): Update declaration.
2109 * regrename.c (clear_dead_regs): Change kind parameter to enum
2110 reg_note.
2111 * reload1.c (eliminate_regs_1): Use REG_NOTE_KIND rather than
2112 GET_MODE.
2113 * see.c (see_get_extension_data): Change return type to enum
2114 entry_type. Change UNKNOWN to NOT_RELEVANT, SIGN_EXTEND to
2115 SIGNED_EXTENDED_DEF, ZERO_EXTEND to ZERO_EXTENDED_DEF.
2116 (see_gen_normalized_extension): Change extension_code parameter to
2117 enum entry_type.
2118 (see_seek_pre_extension_expr): Change extension_code to enum
2119 entry_type.
2120 (see_merge_one_def_extension): Likewise.
2121 (see_handle_relevant_defs): Likewise.
2122 (see_handle_relevant_uses): Likewise.
2123 (see_analyze_one_def): Likewise.
2124 * tree-cfg.c (need_fake_edge_p): Compare gimple code with
2125 GIMPLE_ASM rather than ASM_EXPR.
2126 * tree-ssa-alias.c (is_escape_site): Compare gimple code with
2127 GIMPLE_RETURN rather than RETURN_EXPR.
2128 * tree-ssa-ccp.c (likely_value): Change code to enum gimple_code.
2129 (evaluate_stmt): Likewise.
2130 * tree-vect-analyze.c (vect_analyze_operations): Change relevance
2131 to enum vect_relevant.
2132 (vect_mark_stmts_to_be_vectorized): Change assertion to not
2133 compare gimple codes with tree codes.
2134
2135 2008-09-04 Paul Brook <paul@codesourcery.com>
2136
2137 * config/arm/arm.c (arm_size_rtx_costs): Call cost function.
2138
2139 2008-09-04 Bernd Schmidt <bernd.schmidt@analog.com>
2140
2141 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Restore a null
2142 pointer check lost in the recent no-unit-at-a-time patch.
2143
2144 2008-09-04 Jan Hubicka <jh@suse.cz>
2145
2146 PR middle-end/37343
2147 * tree-switch-conversion.c (check_final_bb): Accept only IP
2148 invariants.
2149
2150 2008-09-04 Jan Hubicka <jh@suse.cz>
2151
2152 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
2153 Break out from ...
2154 (vrp_evaluate_conditional_warnv_with_ops): ... this one. Add
2155 using_ranges argument.
2156 (vrp_evaluate_conditional): Avoid bogus warning for type range.
2157 (vrp_visit_cond_stmt): Update call of
2158 vrp_evaluate_conditional_warnv_with_ops
2159
2160 2008-09-04 Jan Hubicka <jh@suse.cz>
2161
2162 PR tree-optimization/37345
2163 PR tree-optimization/37358
2164 PR tree-optimization/37357
2165 * tree.c (build_function_type_skip_args): Build distinct type copy;
2166 set TYPE_CONTEXT.
2167 (build_function_decl_skip_args): Set type of new decl not orig decl;
2168 clear DECL_VINDEX for methods turned into functions.
2169
2170 2008-09-04 Nick Clifton <nickc@redhat.com>
2171
2172 * configure.ac (HAVE_GAS_LCOMM_WITH_ALIGNMENT): New assembler check.
2173 * configure: Regenerate.
2174 * config.in: Regenerate.
2175 * config/i386/bsd.h (ASM_OUTPUT_ALIGNED_LOCAL): Use .lcomm with an
2176 alignment field, if it is supported.
2177
2178 2008-09-04 Kai Tietz <kai.tietz@onevision.com>
2179
2180 * config/i386/t-mingw32 (SHLIB_LC): Change order of import
2181 libraries.
2182
2183 2008-09-03 David Edelsohn <edelsohn@gnu.org>
2184
2185 * config/rs6000/rs6000.c (processor_target_table): Do not
2186 enable VMX for POWER6.
2187
2188 2008-09-03 Anton Blanchard <anton@samba.org>
2189
2190 * config/rs6000/rs6000.c (rs6000_split_lock_test_and_set): Do not
2191 emit memory barrier before operation.
2192
2193 2008-09-03 John David Anglin <dave.anglin@nrc.cnrc.gc.ca>
2194
2195 PR testsuite/37325
2196 * config/pa/pa64-hpux.h (ASM_OUTPUT_EXTERNAL_REAL): Call
2197 default_elf_asm_output_external.
2198
2199 2008-09-03 Jeff Law <law@redhat.com>
2200
2201 * h8300.c (expand_a_shift): Avoid invalid RTL sharing.
2202
2203 2008-09-03 Richard Henderson <rth@redhat.com>
2204
2205 * config/alpha/alpha.c (alpha_split_lock_test_and_set): Move
2206 memory barrier to below the test-and-set.
2207 (alpha_split_lock_test_and_set_12): Likewise.
2208
2209 2008-09-03 Vladimir Makarov <vmakarov@redhat.com>
2210
2211 PR rtl-opt/37243
2212
2213 * ira-int.h (ira_loop_tree_node): Rename mentioned_allocnos to
2214 all_allocnos.
2215
2216 * ira-color.c (print_loop_title): Use all_allocnos.
2217 (color_pass): Ditto. Don't add border_allocnos. Check that
2218 subloop allocno in the correspdoning bitmap all_allocnos.
2219
2220 * ira-emit.c (change_loop): Use all_allocnos.
2221
2222 * ira-build.c (create_loop_tree_nodes, finish_loop_tree_node):
2223 Ditto.
2224 (ira_create_allocno): Set up all_allocnos bit for the created
2225 allocno.
2226 (create_cap_allocno): Remove setting mentioned_allocnos.
2227 (create_insn_allocnos): Ditto.
2228 (remove_unnecessary_allocnos): Use all_allocnos.
2229 (check_allocno_creation): Check that allocnos are in the
2230 corresponding bitmap all_allocnos.
2231
2232 2008-09-03 Vladimir Makarov <vmakarov@redhat.com>
2233
2234 PR rtl-opt/37243
2235
2236 * ira-conflicts.c (REG_SUBREG_P, go_through_subreg): New.
2237 (process_regs_for_copy): Process subregs. Refine check when cost
2238 is taken into account in ira-costs.c.
2239 (process_reg_shuffles): Use REG_SUBREG_P.
2240 (add_insn_allocno_copies): Ditto. Ignore modes.
2241
2242 * ira-color.c (conflict_allocno_vec): New.
2243 (COST_HOP_DIVISOR): New macro.
2244 (update_copy_costs_1): Use it.
2245 (update_conflict_hard_regno_costs): New function.
2246 (assign_hard_reg): Use it.
2247 (ira_color): Allocate and free conflict_allocno_vec.
2248
2249 2008-09-03 Vladimir Makarov <vmakarov@redhat.com>
2250
2251 PR rtl-opt/37296
2252
2253 * ira-int.h (ira_sort_insn_chain): Remove.
2254
2255 * ira.c (basic_block_order_nums, chain_insn_order,
2256 chain_freq_compare, chain_bb_compare, ira_sort_insn_chain): Remove.
2257 (ira): Don't call ira_sort_insn_chain.
2258
2259 * reload1.c (reload): Don't call ira_sort_insn_chain.
2260
2261 2008-09-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
2262
2263 PR middle-end/37293
2264 * cgraphunit.c (update_call_expr): Remove eh regions from statements
2265 which become non throw.
2266 (cgraph_function_versioning): Also clear DECL_WEAK. Call
2267 update_call_expr after updating the flags on the decl.
2268
2269 2008-09-03 Jan Hubicka <jh@suse.cz>
2270
2271 PR tree-optimization/37315
2272 * cgraph.c (cgraph_create_edge): Use gimple_has_body_p.
2273 * cgraphunit.c (verify_cgraph_node): drop gimple_body check.
2274 (cgraph_analyze_functions): Use node->analyzed
2275 (cgraph_mark_functions_to_output): Likewise.
2276 (cgraph_expand_function): All functions can be released after
2277 expanding.
2278 (cgraph_optimize): Use gimple_has_body_p.
2279 * ipa-inline.c (cgraph_clone_inlined_nodes): Use analyzed flag.
2280 (cgraph_decide_inlining_incrementally): Likewise.
2281 (inline_transform): Inline transform.
2282 * tree-inline.c (initialize_cfun): Do now shallow copy structure;
2283 copy fields needed.
2284 (inlinable_function_p): Drop gimple_body check.
2285 (expand_call_inline): Use gimple_has_body_p.
2286 * gimple.c (gimple_has_body_p): New.
2287 * gimple.h (gimple_has_body_p): Add prototype.
2288 * tree-cfg.c (execute_build_cfg): Remove gimple_body.
2289 (dump_function_to_file): Use gimple_has_body_p check.
2290
2291 2008-09-03 Jakub Jelinek <jakub@redhat.com>
2292
2293 PR c++/37346
2294 * gimple.h (gimple_has_substatements): GIMPLE_OMP_CRITICAL has
2295 substatements.
2296 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_CRITICAL.
2297
2298 2008-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
2299
2300 From Michael Frysinger <michael.frysinger@analog.com>
2301 * config/bfin/bfin.c (bfin_cpus[]): Add 0.1 for bf522, bf523, bf524,
2302 bf525, bf526, bf527, bf542, bf544, bf547, bf548, and bf549. Add 0.2
2303 for bf538.
2304
2305 2008-09-03 Hari Sandanagobalane <hariharan@picochip.com>
2306
2307 Add picoChip port.
2308 * doc/extend.texi: Document picoChip builtin functions.
2309 * doc/invoke.texi: Document picoChip options.
2310 * doc/contrib.texi: Add picoChip contribution.
2311 * doc/md.texi: Document picoChip constraints.
2312 * config.gcc: Add picochip-*-*.
2313 * config/picochip/: Add new port.
2314
2315 2008-09-03 Richard Guenther <rguenther@suse.de>
2316
2317 PR tree-optimization/37328
2318 * tree-sra.c (sra_build_assignment): Gimplify properly.
2319 (generate_copy_inout): Take the correct stmt as definition,
2320 remove bogus assert.
2321
2322 2008-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
2323
2324 * config/bfin/bfin.c (bfin_expand_prologue): Honour no_stack_limit
2325 attributes.
2326
2327 From Michael Frysinger <michael.frysinger@analog.com>
2328 * config/bfin/bfin.c (bfin_handle_option): Remove BF561 warning.
2329
2330 2008-09-03 Danny Smith <dannysmith@usrs.sourceforge.net>
2331
2332 * gthr-win32.h (CONST_CAST2): Really make sure CONST_CAST2 is defined.
2333 (__gthread_setspecific): Revert 2008-08-31 change to
2334 __GTHREAD_HIDE_W32API case. Apply it to !__GTHREAD_HIDE_W32API case.
2335
2336 2008-09-02 Aldy Hernandez <aldyh@redhat.com>
2337
2338 * diagnostic.c (error_at): New.
2339 * toplev.h (error_at): New prototype.
2340 * c-typeck.c (build_array_ref): Call error_at instead of error.
2341 Pass location to pedwarn.
2342
2343 2008-09-02 Adam Nemet <anemet@caviumnetworks.com>
2344
2345 * sel-sched.c (sel_hard_regno_rename_ok): Mark arguments unused.
2346
2347 2008-09-02 Jakub Jelinek <jakub@redhat.com>
2348
2349 * dwarf2out.c (tree_add_const_value_attribute): Only handle
2350 VAR_DECL and CONST_DECL.
2351
2352 2008-09-02 H.J. Lu <hongjiu.lu@intel.com>
2353 Jakub Jelinek <jakub@redhat.com>
2354
2355 * config/i386/i386.c (X86_64_VARARGS_SIZE): Removed.
2356 (setup_incoming_varargs_64): Assume cum != NULL. Set/check
2357 ix86_varargs_gpr_size and ix86_varargs_fpr_size. Use
2358 ix86_varargs_gpr_size instead of X86_64_REGPARM_MAX.
2359 Don't set ix86_save_varrargs_registers.
2360 (ix86_setup_incoming_varargs): Assume cum != NULL.
2361 (ix86_va_start): Check ix86_varargs_gpr_size and
2362 ix86_varargs_fpr_size instead of cfun->va_list_gpr_size and
2363 cfun->va_list_fpr_size, respectively. Subtract 8*X86_64_REGPARM_MAX
2364 from frame pointer if ix86_varargs_gpr_size == 0.
2365 (ix86_compute_frame_layout): Updated.
2366 * config/i386/i386.h (ix86_save_varrargs_registers): Removed.
2367 (ix86_varargs_gpr_size): Define.
2368 (ix86_varargs_fpr_size): Likewise.
2369 (machine_function): Remove save_varrargs_registers.
2370 Add varargs_gpr_size and varargs_fpr_size.
2371
2372 2008-09-02 Jakub Jelinek <jakub@redhat.com>
2373
2374 * config/alpha/alpha.c (va_list_skip_additions,
2375 alpha_stdarg_optimize_hook, alpha_gimplify_va_arg_1): Tuplify.
2376 (alpha_gimplify_va_arg): Call unshare_expr on second use of
2377 offset_field.
2378
2379 PR tree-optimization/36766
2380 * tree-cfg.c (gimple_purge_all_dead_eh_edges): Do nothing
2381 for already removed basic blocks.
2382
2383 PR target/36332
2384 * real.c (real_maxval): Clear a lower bit to make real_maxval
2385 match get_max_float for IBM long double format.
2386
2387 2008-09-02 Andreas Schwab <schwab@suse.de>
2388
2389 * configure.ac: Use m4_quote to quote the expansion of m4_do.
2390 * configure: Regenerate.
2391
2392 2008-09-02 Richard Sandiford <rdsandiford@googlemail.com>
2393
2394 * simplify-rtx.c (simplify_binary_operation_1): Check for CONST,
2395 SYMBOL_REF and LABEL_REF when applying plus_constant, instead of
2396 checking for a non-VOID CONSTANT_P.
2397
2398 2008-09-02 Jan Hubicka <jh@suse.cz>
2399
2400 * predict.c (pass_strip_predict_hints): Avoid bugs dump file.
2401 * expmed.c (expand_divmod): Fix test of smod_pow2_cheap and
2402 sdiv_pow2_cheap
2403
2404 2008-09-02 H.J. Lu <hongjiu.lu@intel.com>
2405
2406 * expr.c (emit_group_store): Don't assert stack temp mode size.
2407
2408 2008-09-02 Sebastian Pop <sebastian.pop@amd.com>
2409 Tobias Grosser <grosser@fim.uni-passau.de>
2410 Jan Sjodin <jan.sjodin@amd.com>
2411 Harsha Jagasia <harsha.jagasia@amd.com>
2412 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
2413 Konrad Trifunovic <konrad.trifunovic@inria.fr>
2414 Adrien Eliche <aeliche@isty.uvsq.fr>
2415
2416 Merge from graphite branch.
2417 * graphite.c: New.
2418 * graphite.h: New.
2419 * tree-loop-linear.c (perfect_loop_nest_depth): Export.
2420 * doc/invoke.texi (-floop-block, -floop-interchange,
2421 -floop-strip-mine): Document new flags.
2422 * tree-into-ssa.c (gimple_vec): Moved...
2423 * tree-loop-distribution.c (rdg_component): Moved...
2424 * cfgloopmanip.c: Include tree-flow.h.
2425 (update_dominators_in_loop): New.
2426 (create_empty_if_region_on_edge): New.
2427 (create_empty_loop_on_edge): New.
2428 (loopify): Use update_dominators_in_loop.
2429 * tree-pass.h (pass_graphite_transforms): Declared.
2430 * configure: Regenerate.
2431 * tree-phinodes.c (make_phi_node): Export.
2432 (add_phi_node_to_bb): New, split from create_phi_node.
2433 * tree-chrec.c (for_each_scev_op): New.
2434 * tree-chrec.h (for_each_scev_op): Declared.
2435 * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
2436 (remove_statement): Call get_phi_with_result.
2437 * config.in (HAVE_cloog): Undef.
2438 * gdbinit.in (pgg): New.
2439 * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
2440 * tree-ssa-loop.c (graphite_transforms): New.
2441 (gate_graphite_transforms): New.
2442 (pass_graphite_transforms): New.
2443 * configure.ac (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC,
2444 HAVE_cloog): Defined.
2445 * tree-vectorizer.c (rename_variables_in_bb): Export.
2446 * tree-data-ref.c (dr_may_alias_p): Export.
2447 (stmt_simple_memref_p): New.
2448 (find_data_references_in_stmt): Export.
2449 (find_data_references_in_loop): Export.
2450 (create_rdg_edge_for_ddr): Initialize RDGE_RELATION.
2451 (create_rdg_edges_for_scalar): Initialize RDGE_RELATION.
2452 (create_rdg_vertices): Export.
2453 (build_empty_rdg): New.
2454 (build_rdg): Call build_empty_rdg. Free dependence_relations.
2455 * tree-data-ref.h (rdg_component): ... here.
2456 (scop_p): New.
2457 (struct data_reference): Add a field scop.
2458 (DR_SCOP): New.
2459 (find_data_references_in_loop): Declared.
2460 (find_data_references_in_stmt): Declared.
2461 (create_rdg_vertices): Declared.
2462 (dr_may_alias_p): Declared.
2463 (stmt_simple_memref_p): Declared.
2464 (struct rdg_edge): Add a field ddr_p relation.
2465 (build_empty_rdg): Declared.
2466 * lambda.h (lambda_matrix): Declare a VEC of.
2467 (find_induction_var_from_exit_cond): Declared.
2468 (lambda_vector_compare): New.
2469 * common.opt (fgraphite, floop-strip-mine,
2470 floop-interchange, floop-block): New flags.
2471 * lambda-code.c (find_induction_var_from_exit_cond): Export.
2472 * cfgloop.c (is_loop_exit): New.
2473 * cfgloop.h (is_loop_exit): Declared.
2474 (create_empty_if_region_on_edge): Declared.
2475 (create_empty_loop_on_edge): Declared.
2476 * tree-flow.h (add_phi_node_to_bb): Declared.
2477 (make_phi_node): Declared.
2478 (rename_variables_in_bb): Declared.
2479 (perfect_loop_nest_depth): Declared.
2480 (graphite_transform_loops): Declared.
2481 * Makefile.in (cfgloopmanip.o): Depend on TREE_FLOW_H.
2482 (graphite.o-warn): Add -Wno-error.
2483 (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC): Declared.
2484 (LIBS): Add GMPLIBS, CLOOGLIBS, PPLLIBS.
2485 (INCLUDES): Add PPLINC, CLOOGINC.
2486 (OBJS-common): Add graphite.o.
2487 (graphite.o): Add rule.
2488 * gimple.h (gimple_vec): ... here.
2489 * tree-cfg.c (print_loops): Start printing at ENTRY_BLOCK_PTR.
2490 * passes.c (init_optimization_passes): Schedule
2491 pass_graphite_transforms.
2492
2493 2008-09-02 Samuel Tardieu <sam@rfc1149.net>
2494
2495 PR target/37283
2496 * opts.c (decode_options): Move processing of -fno-unit-at-a-time
2497 and -fno-toplevel-reorder after handle_options.
2498
2499 2008-09-02 Paul Brook <paul@codesourcery.com>
2500
2501 * config/arm/arm.c (arm_tune_cortex_a9): Define.
2502 (arm_override_options): Set arm_tune_cortex_a9.
2503 (arm_rtx_costs_1): Make register shifts more expensive on Cortex-A9.
2504 (arm_issue_rate): Handle cortexa9.
2505 * config/arm/arm.h (arm_tune_cortex_a9): Declare.
2506 * config/arm/arm-cores.def: Add cortex-a9.
2507 * config/arm/arm-tune.md: Regenerate.
2508 * config/arm/arm.md: Include cortex-a9.md.
2509 (generic_sched, generic_vfp): Add cortexa9.
2510 * config/arm/cortex-a9.md: New file.
2511
2512 2008-09-02 Richard Guenther <rguenther@suse.de>
2513
2514 PR tree-optimization/37327
2515 * tree-vrp.c (register_new_assert_for): Make sure to not have
2516 TREE_OVERFLOW set on the bound.
2517
2518 2008-09-02 Alexander Monakov <amonakov@ispras.ru>
2519
2520 Fixed typo in date of the 2008-09-01 MOVE_RATIO commit.
2521
2522 * config/ia64/ia64.opt (msched-ar-data-spec): Default to 1.
2523 * config/ia64/ia64.c (ia64_set_sched_flags): Always initialize
2524 spec_info->mask.
2525
2526 2008-09-02 Victor Kaplansky <victork@il.ibm.com>
2527
2528 * gcc/config/spu/spu.md (divdf3): Removed.
2529
2530 2008-09-02 Jakub Jelinek <jakub@redhat.com>
2531
2532 PR tree-optimization/37095
2533 * cgraph.c (cgraph_node): When creating new cgraph node after
2534 assembler_name_hash has been populated, record it in the hash
2535 table.
2536
2537 2008-09-01 Paul Brook <paul@codesourcery.com>
2538
2539 * doc/invoke.texi: Document -mword-relocations.
2540 * config/arm/uclinux-elf.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
2541 * config/arm/symbian.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
2542 * config/arm/vxworks.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
2543 * config/arm/arm.c (arm_split_constant): Use arm_emit_movpair.
2544 (arm_rtx_costs_1, arm_size_rtx_costs): Handle HIGH and LO_SUM.
2545 (arm_emit_movpair): New function.
2546 (arm_print_operand <c>): Handle sybolic addresses.
2547 * config/arm/arm.h (TARGET_USE_MOVT): Define.
2548 (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
2549 * config/arm/arm-protos.h (arm_emit_movpair): Add prototype.
2550 * config/arm/arm.opt: Add -mword-relocations.
2551 * config/arm/arm.md (movsi): Use arm_emit_movpair.
2552 (arm_movt, arm_movw): New.
2553
2554 2008-09-01 Paul Brook <paul@codesourcery.com>
2555
2556 * config/arm/arm.c (arm_override_options): Set arm_abi earlier.
2557 Allow Interworking on ARMv4 EABI based targets.
2558 * config/arm/bpabi.h (TARGET_FIX_V4BX_SPEC): Define.
2559 (SUBTARGET_EXTRA_ASM_SPEC, LINK_SPEC): Add TARGET_FIX_V4BX_SPEC.
2560
2561 2008-09-01 Paul Brook <paul@codesourcery.com>
2562
2563 * config/arm/thumb2.md (thumb2_negscc): Match the correct operand for
2564 optimized LT0 test. Remove optimization for GT.
2565
2566 2008-09-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2567
2568 * pa64-hpux.h (LIB_SPEC): Link against librt when building static
2569 openmp applications.
2570 * pa-hpux11.h (LIB_SPEC): Likewise.
2571
2572 * ira.c (setup_eliminable_regset): Only declare i if ELIMINABLE_REGS
2573 is defined.
2574
2575 2008-09-01 Jan Hubicka <jh@suse.cz>
2576
2577 * predict.c (maybe_hot_count_p, maybe_hot_edge_p): When profile is
2578 present, use only counts; when guessed use only frequencies.
2579 (estimate_bb_frequencies): Use function_frequency.
2580 * profile.c (compute_branch_probabilities): Exit early when
2581 profile reading failed. Set profile_status.
2582 (branch_prob): Do not set profile_status.
2583
2584 2008-09-01 Aldy Hernandez <aldyh@redhat.com>
2585
2586 * tree.c (protected_set_expr_location): New.
2587 * tree.h (protected_set_expr_location): New prototype.
2588 * c-tree.h (build_array_ref): Add argument.
2589 (parser_build_unary_op): Same.
2590 * c-typeck.c (build_indirect_ref): Handle new location argument.
2591 (build_array_ref): Same.
2592 (parser_build_unary_op): Same.
2593 * gimplify.c (gimplify_asm_expr): Set input_location before calling
2594 error.
2595 * c-omp.c (c_finish_omp_atomic): Pass location when calling
2596 build_indirect_ref.
2597 * c-common.c (finish_label_address_expr): Handle new location argument.
2598 * c-common.h (build_indirect_ref): Add argument.
2599 (finish_label_address_expr): Same.
2600 * c-parser.c (c_parser_unary_expression): Pass location to build
2601 functions.
2602 (c_parser_postfix_expression): Same.
2603
2604 2008-09-01 Paul Brook <paul@codesourcery.com>
2605
2606 * config/arm/arm.md: Include cortex-r4f.md.
2607 (attr fpu): Update type list.
2608 (attr type): Add fcpys, ffariths, ffarithd, fadds, faddd, fconsts,
2609 fconstd, fcmps and fcmpd.
2610 (attr tune_cortexr4): Define.
2611 (attr generic_sched, attr generic_vfp): Use tune_cortexr4.
2612 * config/arm/vfp.md: Document fcpys, ffariths, ffarithd, fadds, faddd,
2613 fconsts, fconstd, fcmps and fcmpd. Use them in insn patterns.
2614 * config/arm/arm.c (arm_issue_rate): Add cortexr4f.
2615 * config/arm/arm1020e.md (v10_ffarith, v10_farith): Use new insn types.
2616 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_add_sub,
2617 cortex_a8_vfp_farith: Ditto.
2618 * config/arm/vfp11.md (vfp_ffarith, vfp_farith): Ditto.
2619 * config/arm/cortex-r4.md: Use tune_cortexr4.
2620 * config/arm/cortex-r4f.md: New file.
2621
2622 2008-09-01 Richard Guenther <rguenther@suse.de>
2623
2624 PR tree-optimization/37305
2625 * tree-ssa-ccp.c (ccp_fold): Do not set TREE_OVERFLOW on
2626 the result of constant conversions.
2627 (fold_gimple_assign): Likewise.
2628
2629 2008-09-01 Andrey Belevantsev <abel@ispras.ru>
2630
2631 * sel-sched-ir.c (cmp_v_in_regset_pool): Surround with
2632 #ifdef ENABLE_CHECKING.
2633
2634 2008-09-01 Andrey Belevantsev <abel@ispras.ru>
2635
2636 * sel-sched-dump.c: Surround with #ifdef INSN_SCHEDULING.
2637 * sched-int.h (print_insn, print_pattern, print_value): Declare also
2638 when !INSN_SCHEDULING.
2639
2640 2008-09-01 Andreas Schwab <schwab@suse.de>
2641
2642 * config/ia64/ia64.c (TARGET_ADDRESS_COST): Update.
2643
2644 2008-09-01 Paul Brook <paul@codesourcery.com>
2645
2646 * config/arm/arm.c (arm_no_early_mul_dep): Handle multiply-subtract.
2647
2648 2008-09-01 Jan Hubicka <jh@suse.cz>
2649
2650 * config/spu/spu.c (spu_expand_block_move) Update call of MOVE_RATIO.
2651
2652 * expr.c (MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P, SET_BY_PIECES_P):
2653 Pass speed operand.
2654 * expr.h (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Update.
2655 * gimplify.c (gimplify_init_constructor): Add speed operand.
2656 * tree-sra.c (decide_block_copy): Likewise.
2657 * tree-inline.c (estimate_move_cost): Likewise.
2658 * config/alpha/alpha.h (MOVE_RATIO): Update.
2659 * config/frv/frv.c (MOVE_RATIO): Update.
2660 * config/spu/spu.h (MOVE_RATIO): Update.
2661 * config/sparc/sparc.h (MOVE_RATIO): Update.
2662 * config/i386/i386.h (MOVE_RATIO, CLEAR_RATIO): Update.
2663 * config/m68hc11/m68hc11.h (MOVE_RATIO): Update.
2664 * config/cris/cris.h (MOVE_RATIO): Update.
2665 * config/mn10300/mn10300.h (MOVE_RATIO): Update.
2666 * config/arm/arm.h (MOVE_RATIO): Update.
2667 * config/pa/pa.md: Update uses of MOVE_RATIO
2668 * config/pa/pa.h (MOVE_RATIO): Update.
2669 * config/mips/mips.h (MOVE_RATIO, MOVE_BY_PIECES,
2670 CLEAR_RATIO, SET_RATIO): Update.
2671 * config/h8300/h8300.h (MOVE_RATIO): Update.
2672 * config/v850/v850.h (MOVE_RATIO): Update.
2673 * config/bfin/bfin.h (MOVE_RATIO): Update.
2674
2675 2008-08-31 Andrey Belevantsev <abel@ispras.ru>
2676 Dmitry Melnik <dm@ispras.ru>
2677 Dmitry Zhurikhin <zhur@ispras.ru>
2678 Alexander Monakov <amonakov@ispras.ru>
2679 Maxim Kuvyrkov <maxim@codesourcery.com>
2680
2681 * sel-sched.h, sel-sched-dump.h, sel-sched-ir.h, sel-sched.c,
2682 sel-sched-dump.c, sel-sched-ir.c: New files.
2683 * Makefile.in (OBJS-common): Add selective scheduling object files.
2684 (sel-sched.o, sel-sched-dump.o, sel-sched-ir.o): New entries.
2685 (SEL_SCHED_IR_H, SEL_SCHED_DUMP_H): New entries.
2686 (sched-vis.o): Add dependency on $(INSN_ATTR_H).
2687 * cfghooks.h (get_cfg_hooks, set_cfg_hooks): New prototypes.
2688 * cfghooks.c (get_cfg_hooks, set_cfg_hooks): New functions.
2689 (make_forwarder_block): Update loop latch if we have redirected
2690 the loop latch edge.
2691 * cfgloop.c (get_loop_body_in_custom_order): New function.
2692 * cfgloop.h (LOOPS_HAVE_FALLTHRU_PREHEADERS): New enum field.
2693 (CP_FALLTHRU_PREHEADERS): Likewise.
2694 (get_loop_body_in_custom_order): Declare.
2695 * cfgloopmanip.c (has_preds_from_loop): New.
2696 (create_preheader): Honor CP_FALLTHRU_PREHEADERS.
2697 Assert that the preheader edge will be fall thru when it is set.
2698 * common.opt (fsel-sched-bookkeeping, fsel-sched-pipelining,
2699 fsel-sched-pipelining-outer-loops, fsel-sched-renaming,
2700 fsel-sched-substitution, fselective-scheduling): New flags.
2701 * cse.c (hash_rtx_cb): New.
2702 (hash_rtx): Use it.
2703 * dbgcnt.def (sel_sched_cnt, sel_sched_region_cnt,
2704 sel_sched_insn_cnt): New counters.
2705 * final.c (compute_alignments): Export. Free dominance
2706 info after loop_optimizer_finalize.
2707 * genattr.c (main): Output maximal_insn_latency prototype.
2708 * genautomata.c (output_default_latencies): New.
2709 Factor its code from ...
2710 (output_internal_insn_latency_func): ... here.
2711 (output_internal_maximal_insn_latency_func): New.
2712 (output_maximal_insn_latency_func): New.
2713 * hard-reg-set.h (UHOST_BITS_PER_WIDE_INT): Define unconditionally.
2714 (struct hard_reg_set_iterator): New.
2715 (hard_reg_set_iter_init, hard_reg_set_iter_set,
2716 hard_reg_set_iter_next): New functions.
2717 (EXECUTE_IF_SET_IN_HARD_REG_SET): New macro.
2718 * lists.c (remove_free_INSN_LIST_node,
2719 remove_free_EXPR_LIST_node): New functions.
2720 * loop-init.c (loop_optimizer_init): When
2721 LOOPS_HAVE_FALLTHRU_PREHEADERS, set CP_FALLTHRU_PREHEADERS when
2722 calling create_preheaders.
2723 (loop_optimizer_finalize): Do not verify flow info after reload.
2724 * recog.c (validate_replace_rtx_1): New parameter simplify.
2725 Default it to true. Update all uses. Factor out simplifying
2726 code to ...
2727 (simplify_while_replacing): ... this new function.
2728 (validate_replace_rtx_part,
2729 validate_replace_rtx_part_nosimplify): New.
2730 * recog.h (validate_replace_rtx_part,
2731 validate_replace_rtx_part_nosimplify): Declare.
2732 * rtl.c (rtx_equal_p_cb): New.
2733 (rtx_equal_p): Use it.
2734 * rtl.h (rtx_equal_p_cb, hash_rtx_cb): Declare.
2735 (remove_free_INSN_LIST_NODE, remove_free_EXPR_LIST_node,
2736 debug_bb_n_slim, debug_bb_slim, print_rtl_slim): Likewise.
2737 * vecprim.h: Add a vector type for unsigned int.
2738 * haifa-sched.c: Include vecprim.h and cfgloop.h.
2739 (issue_rate, sched_verbose_param, note_list, dfa_state_size,
2740 ready_try, cycle_issued_insns, spec_info): Make global.
2741 (readyp): Initialize.
2742 (dfa_lookahead): New global variable.
2743 (old_max_uid, old_last_basic_block): Remove.
2744 (h_i_d): Make it a vector.
2745 (INSN_TICK, INTER_TICK, QUEUE_INDEX, INSN_COST): Make them work
2746 through HID macro.
2747 (after_recovery, adding_bb_to_current_region_p):
2748 New variables to handle correct insertion of the recovery code.
2749 (struct ready_list): Move declaration to sched-int.h.
2750 (rgn_n_insns): Removed.
2751 (rtx_vec_t): Move to sched-int.h.
2752 (find_insn_reg_weight): Remove.
2753 (find_insn_reg_weight1): Rename to find_insn_reg_weight.
2754 (haifa_init_h_i_d, haifa_finish_h_i_d):
2755 New functions to initialize / finalize haifa instruction data.
2756 (extend_h_i_d, init_h_i_d): Rewrite.
2757 (unlink_other_notes): Move logic to add_to_note_list. Handle
2758 selective scheduler.
2759 (ready_lastpos, ready_element, ready_sort, reemit_notes,
2760 find_fallthru_edge): Make global, remove static prototypes.
2761 (max_issue): Make global. Add privileged_n and state parameters. Use
2762 them.
2763 (extend_global, extend_all): Removed.
2764 (init_before_recovery): Add new param. Fix the handling of the case
2765 when we insert a recovery code before the EXIT which has a predecessor
2766 with a fallthrough edge to it.
2767 (create_recovery_block): Make global. Rename to
2768 sched_create_recovery_block. Update.
2769 (change_pattern): Rename to sched_change_pattern. Make global.
2770 (speculate_insn): Rename to sched_speculate_insn. Make global.
2771 Split haifa-specific functionality into ...
2772 (haifa_change_pattern): New static function.
2773 (sched_extend_bb): New static function.
2774 (sched_init_bbs): New function.
2775 (current_sched_info): Change type to struct haifa_sched_info.
2776 (insn_cost): Adjust for selective scheduling.
2777 (dep_cost_1): New function. Move logic from ...
2778 (dep_cost): ... here.
2779 (dep_cost): Use dep_cost_1.
2780 (contributes_to_priority_p): Use sched_deps_info instead of
2781 current_sched_info.
2782 (priority): Adjust to work with selective scheduling. Process the
2783 corner case when all dependencies don't contribute to priority.
2784 (rank_for_schedule): Use ds_weak instead of dep_weak.
2785 (advance_state): New function. Move logic from ...
2786 (advance_one_cycle): ... here.
2787 (add_to_note_list, concat_note_lists): New functions.
2788 (rm_other_notes): Make static. Adjust for selective scheduling.
2789 (remove_notes, restore_other_notes): New functions.
2790 (move_insn): Add two arguments. Update assert. Don't call
2791 reemit_notes.
2792 (choose_ready): Remove lookahead variable, use dfa_lookahead.
2793 Remove more_issue, max_points. Move the code to initialize
2794 max_lookahead_tries to max_issue.
2795 (schedule_block): Remove rgn_n_insns1 parameter. Don't allocate
2796 ready. Adjust use of move_insn. Call restore_other_notes.
2797 (luid): Remove.
2798 (sched_init, sched_finish): Move Haifa-specific initialization/
2799 finalization to ...
2800 (haifa_sched_init, haifa_sched_finish): ... respectively.
2801 New functions.
2802 (setup_sched_dump): New function.
2803 (haifa_init_only_bb): New static function.
2804 (haifa_speculate_insn): New static function.
2805 (try_ready): Use haifa_* instead of speculate_insn and change_pattern.
2806 (extend_ready, extend_all): Remove.
2807 (sched_extend_ready_list, sched_finish_ready_list): New functions.
2808 (create_check_block_twin, add_to_speculative_block): Use
2809 haifa_insns_init instead of extend_global. Update to use new
2810 initialization functions. Change parameter. Factor out code from
2811 create_check_block_twin to ...
2812 (sched_create_recovery_edges) ... this new function.
2813 (add_block): Remove.
2814 (sched_scan_info): New.
2815 (extend_bb): Use sched_scan_info.
2816 (init_bb, extend_insn, init_insn, init_insns_in_bb, sched_scan): New
2817 static functions for walking through scheduling region.
2818 (sched_luids): New vector variable to replace uid_to_luid.
2819 (luids_extend_insn): New function.
2820 (sched_max_luid): New variable.
2821 (luids_init_insn): New function.
2822 (sched_init_luids, sched_finish_luids): New functions.
2823 (insn_luid): New debug function.
2824 (sched_extend_target): New function.
2825 (haifa_init_insn): New static function.
2826 (sched_init_only_bb): New hook.
2827 (sched_split_block): New hook.
2828 (sched_split_block_1): New function.
2829 (sched_create_empty_bb): New hook.
2830 (sched_create_empty_bb_1): New function.
2831 (common_sched_info, ready): New global variables.
2832 (current_sched_info_var): Remove.
2833 (move_block_after_check): Use common_sched_info.
2834 (haifa_luid_for_non_insn): New static function.
2835 (init_before_recovery): Use haifa_init_only_bb instead of add_block.
2836 (increase_insn_priority): New.
2837 * modulo-sched.c: (issue_rate): Remove static declaration.
2838 (sms_sched_info): Change type to haifa_sched_info.
2839 (sms_sched_deps_info, sms_common_sched_info): New variables.
2840 (setup_sched_infos): New.
2841 (sms_schedule): Initialize them. Call haifa_sched_init/finish.
2842 Do not call regstat_free_calls_crossed.
2843 (sms_print_insn): Use const_rtx.
2844 * params.def (PARAM_MAX_PIPELINE_REGION_BLOCKS,
2845 PARAM_MAX_PIPELINE_REGION_INSNS, PARAM_SELSCHED_MAX_LOOKAHEAD,
2846 PARAM_SELSCHED_MAX_SCHED_TIMES, PARAM_SELSCHED_INSNS_TO_RENAME,
2847 PARAM_SCHED_MEM_TRUE_DEP_COST): New.
2848 * sched-deps.c (sched_deps_info): New. Update all relevant uses of
2849 current_sched_info to use it.
2850 (enum reg_pending_barrier_mode): Move to sched-int.h.
2851 (h_d_i_d): New variable. Initialize to NULL.
2852 ({true, output, anti, spec, forward}_dependency_cache): Initialize
2853 to NULL.
2854 (estimate_dep_weak): Remove static declaration.
2855 (sched_has_condition_p): New function. Adjust users of
2856 sched_get_condition to use it instead.
2857 (conditions_mutex_p): Add arguments indicating which conditions are
2858 reversed. Use them.
2859 (sched_get_condition_with_rev): Rename from sched_get_condition. Add
2860 argument to indicate whether returned condition is reversed. Do not
2861 generate new rtx when condition should be reversed; indicate it by
2862 setting new argument instead.
2863 (add_dependence_list_and_free): Add deps parameter.
2864 Update all users. Do not free dependence list when
2865 deps context is readonly.
2866 (add_insn_mem_dependence, flush_pending_lists): Adjust for readonly
2867 contexts.
2868 (remove_from_dependence_list, remove_from_both_dependence_lists): New.
2869 (remove_from_deps): New. Use the above functions.
2870 (cur_insn, can_start_lhs_rhs_p): New static variables.
2871 (add_or_update_back_dep_1): Initialize present_dep_type.
2872 (haifa_start_insn, haifa_finish_insn, haifa_note_reg_set,
2873 haifa_note_reg_clobber, haifa_note_reg_use, haifa_note_mem_dep,
2874 haifa_note_dep): New functions implementing dependence hooks for
2875 the Haifa scheduler.
2876 (note_reg_use, note_reg_set, note_reg_clobber, note_mem_dep,
2877 note_dep): New functions.
2878 (ds_to_dt, extend_deps_reg_info, maybe_extend_reg_info_p): New
2879 functions.
2880 (init_deps): Initialize last_reg_pending_barrier and deps->readonly.
2881 (free_deps): Initialize deps->reg_last.
2882 (sched_analyze_reg, sched_analyze_1, sched_analyze_2,
2883 sched_analyze_insn): Update to use dependency hooks infrastructure
2884 and readonly contexts.
2885 (deps_analyze_insn): New function. Move part of logic from ...
2886 (sched_analyze): ... here. Also move some logic to ...
2887 (deps_start_bb): ... here. New function.
2888 (add_forw_dep, delete_forw_dep): Guard use of INSN_DEP_COUNT with
2889 sel_sched_p.
2890 (sched_deps_init): New function. Move code from ...
2891 (init_dependency_caches): ... here. Remove.
2892 (init_deps_data_vector): New.
2893 (sched_deps_finish): New function. Move code from ...
2894 (free_dependency_caches): ... here. Remove.
2895 (init_deps_global, finish_deps_global): Adjust for use with
2896 selective scheduling.
2897 (get_dep_weak): Move logic to ...
2898 (get_dep_weak_1): New function.
2899 (ds_merge): Move logic to ...
2900 (ds_merge_1): New static function.
2901 (ds_full_merge, ds_max_merge, ds_get_speculation_types): New functions.
2902 (ds_get_max_dep_weak): New function.
2903 * sched-ebb.c (sched_n_insns): Rename to sched_rgn_n_insns.
2904 (n_insns): Rename to rgn_n_insns.
2905 (debug_ebb_dependencies): New function.
2906 (init_ready_list): Use it.
2907 (begin_schedule_ready): Use sched_init_only_bb.
2908 (ebb_print_insn): Indicate when an insn starts a new cycle.
2909 (contributes_to_priority, compute_jump_reg_dependencies,
2910 add_remove_insn, fix_recovery_cfg): Add ebb_ prefix to function names.
2911 (add_block1): Remove to ebb_add_block.
2912 (ebb_sched_deps_info, ebb_common_sched_info): New variables.
2913 (schedule_ebb): Initialize them. Use remove_notes instead of
2914 rm_other_notes. Use haifa_local_init/finish.
2915 (schedule_ebbs): Use haifa_sched_init/finish.
2916 * sched-int.h: Include vecprim.h, remove rtl.h.
2917 (struct ready_list): Delete declaration.
2918 (sched_verbose_param, enum sched_pass_id_t,
2919 bb_vec_t, insn_vec_t, rtx_vec_t): New.
2920 (struct sched_scan_info_def): New structure.
2921 (sched_scan_info, sched_scan, sched_init_bbs,
2922 sched_init_luids, sched_finish_luids, sched_extend_target,
2923 haifa_init_h_i_d, haifa_finish_h_i_d): Declare.
2924 (struct common_sched_info_def): New.
2925 (common_sched_info, haifa_common_sched_info,
2926 sched_emulate_haifa_p): Declare.
2927 (sel_sched_p): New.
2928 (sched_luids): Declare.
2929 (INSN_LUID, LUID_BY_UID, SET_INSN_LUID): Declare.
2930 (sched_max_luid, insn_luid): Declare.
2931 (note_list, remove_notes, restore_other_notes, bb_note): Declare.
2932 (sched_insns_init, sched_insns_finish, xrecalloc, reemit_notes,
2933 print_insn, print_pattern, print_value, haifa_classify_insn,
2934 sel_find_rgns, sel_mark_hard_insn, dfa_state_size, advance_state,
2935 setup_sched_dump, sched_init, sched_finish,
2936 sel_insn_is_speculation_check): Export.
2937 (struct ready_list): Move from haifa-sched.c.
2938 (ready_try, ready, max_issue): Export.
2939 (ebb_compute_jump_reg_dependencies, find_fallthru_edge,
2940 sched_init_only_bb, sched_split_block, sched_split_block_1,
2941 sched_create_empty_bb, sched_create_empty_bb_1,
2942 sched_create_recovery_block, sched_create_recovery_edges): Export.
2943 (enum reg_pending_barrier_mode): Export.
2944 (struct deps): New fields `last_reg_pending_barrier' and `readonly'.
2945 (deps_t): New.
2946 (struct sched_info): Rename to haifa_sched_info. Use const_rtx for
2947 print_insn field. Move add_block and fix_recovery_cfg to
2948 common_sched_info_def. Move compute_jump_reg_dependencies,
2949 use_cselib ...
2950 (struct sched_deps_info_def): ... this new structure.
2951 (sched_deps_info): Declare.
2952 (struct spec_info_def): Remove weakness_cutoff, add
2953 data_weakness_cutoff and control_weakness_cutoff.
2954 (spec_info): Declare.
2955 (struct _haifa_deps_insn_data): Split from haifa_insn_data. Add
2956 dep_count field.
2957 (struct haifa_insn_data): Rename to struct _haifa_insn_data.
2958 (haifa_insn_data_def, haifa_insn_data_t): New typedefs.
2959 (current_sched_info): Change type to struct haifa_sched_info.
2960 (haifa_deps_insn_data_def, haifa_deps_insn_data_t): New typedefs.
2961 (h_d_i_d): New variable.
2962 (HDID): New accessor macro.
2963 (h_i_d): Change type to VEC (haifa_insn_data_def, heap) *.
2964 (HID): New accessor macro. Rewrite h_i_d accessor macros through HID
2965 and HDID.
2966 (IS_SPECULATION_CHECK_P): Update for selective scheduler.
2967 (enum SCHED_FLAGS): Update for selective scheduler.
2968 (enum SPEC_SCHED_FLAGS): New flag SEL_SCHED_SPEC_DONT_CHECK_CONTROL.
2969 (init_dependency_caches, free_dependency_caches): Delete declarations.
2970 (deps_analyze_insn, remove_from_deps, get_dep_weak_1,
2971 estimate_dep_weak, ds_full_merge, ds_max_merge, ds_weak,
2972 ds_get_speculation_types, ds_get_max_dep_weak, sched_deps_init,
2973 sched_deps_finish, haifa_note_reg_set, haifa_note_reg_use,
2974 haifa_note_reg_clobber, maybe_extend_reg_info_p, deps_start_bb,
2975 ds_to_dt): Export.
2976 (rm_other_notes): Delete declaration.
2977 (schedule_block): Remove one argument.
2978 (cycle_issued_insns, issue_rate, dfa_lookahead, ready_sort,
2979 ready_element, ready_lastpos, sched_extend_ready_list,
2980 sched_finish_ready_list, sched_change_pattern, sched_speculate_insn,
2981 concat_note_lists): Export.
2982 (struct region): Move from sched-rgn.h.
2983 (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
2984 RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
2985 BLOCK_TO_BB, CONTAINING_RGN): Export.
2986 (ebb_head, BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB, INSN_BB): Likewise.
2987 (current_nr_blocks, current_blocks, target_bb): Likewise.
2988 (dep_cost_1, sched_is_disabled_for_current_region_p, sched_rgn_init,
2989 sched_rgn_finish, rgn_setup_region, sched_rgn_compute_dependencies,
2990 sched_rgn_local_init, extend_regions,
2991 rgn_make_new_region_out_of_new_block, compute_priorities,
2992 debug_rgn_dependencies, free_rgn_deps, contributes_to_priority,
2993 extend_rgns, deps_join rgn_setup_common_sched_info,
2994 rgn_setup_sched_infos, debug_regions, debug_region, dump_region_dot,
2995 dump_region_dot_file, haifa_sched_init, haifa_sched_finish): Export.
2996 (get_rgn_sched_max_insns_priority, sel_add_to_insn_priority,
2997 increase_insn_priority): Likewise.
2998 * sched-rgn.c: Include sel-sched.h.
2999 (ref_counts): New static variable. Use it ...
3000 (INSN_REF_COUNT): ... here. Rewrite and move closer to uses.
3001 (FED_BY_SPEC_LOAD, IS_LOAD_INSN): Rewrite to use HID accessor macro.
3002 (sched_is_disabled_for_current_region_p): Delete static declaration.
3003 (struct region): Move to sched-int.h.
3004 (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
3005 ebb_head): Define and initialize.
3006 (RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
3007 BLOCK_TO_BB, CONTAINING_RGN, debug_regions, extend_regions,
3008 BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB): Move to
3009 sched-int.h.
3010 (find_single_block_region): Add new argument to indicate that EBB
3011 regions should be constructed.
3012 (debug_live): Delete declaration.
3013 (current_nr_blocks, current_blocks, target_bb):
3014 Remove static qualifiers.
3015 (compute_dom_prob_ps, check_live, update_live, set_spec_fed): Delete
3016 declaration.
3017 (init_regions): Delete declaration.
3018 (debug_region, bb_in_region_p, dump_region_dot_file, dump_region_dot,
3019 rgn_estimate_number_of_insns): New.
3020 (too_large): Use estimate_number_of_insns.
3021 (haifa_find_rgns): New. Move the code from ...
3022 (find_rgns): ... here. Call either sel_find_rgns or haifa_find_rgns.
3023 (free_trg_info): New.
3024 (compute_trg_info): Allocate candidate tables here instead of ...
3025 (init_ready_list): ... here.
3026 (rgn_print_insn): Use const_rtx.
3027 (contributes_to_priority, extend_regions): Delete static declaration.
3028 (add_remove_insn, fix_recovery_cfg): Add rgn_ to function names.
3029 (add_block1): Rename to rgn_add_block.
3030 (debug_rgn_dependencies): Delete static qualifier.
3031 (new_ready): Use sched_deps_info. Simplify.
3032 (rgn_common_sched_info, rgn_const_sched_deps_info,
3033 rgn_const_sel_sched_deps_info, rgn_sched_deps_info, rgn_sched_info):
3034 New.
3035 (region_sched_info): Rename to rgn_const_sched_info.
3036 (deps_join): New, extracted from ...
3037 (propagate_deps): ... here.
3038 (compute_block_dependences, debug_dependencies): Update for selective
3039 scheduling.
3040 (free_rgn_deps, compute_priorities): New functions.
3041 (sched_rgn_init, sched_rgn_finish, rgn_setup_region,
3042 sched_rgn_compute_dependencies): New functions.
3043 (schedule_region): Use them.
3044 (sched_rgn_local_init, sched_rgn_local_free, sched_rgn_local_finish,
3045 rgn_setup_common_sched_info, rgn_setup_sched_infos):
3046 New functions.
3047 (schedule_insns): Call new functions that were split out.
3048 (rgn_make_new_region_out_of_new_block): New.
3049 (get_rgn_sched_max_insns_priority): New.
3050 (rest_of_handle_sched, rest_of_handle_sched2): Call selective
3051 scheduling when appropriate.
3052 * sched-vis.c: Include insn-attr.h.
3053 (print_value, print_pattern): Make global.
3054 (print_rtl_slim, debug_bb_slim, debug_bb_n_slim): New functions.
3055 * target-def.h (TARGET_SCHED_ADJUST_COST_2,
3056 TARGET_SCHED_ALLOC_SCHED_CONTEXT, TARGET_SCHED_INIT_SCHED_CONTEXT,
3057 TARGET_SCHED_SET_SCHED_CONTEXT, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
3058 TARGET_SCHED_FREE_SCHED_CONTEXT, TARGET_SCHED_GET_INSN_CHECKED_DS,
3059 TARGET_SCHED_GET_INSN_SPEC_DS, TARGET_SCHED_SKIP_RTX_P): New target
3060 hooks. Initialize them to 0.
3061 (TARGET_SCHED_GEN_CHECK): Rename to TARGET_SCHED_GEN_SPEC_CHECK.
3062 * target.h (struct gcc_target): Add them. Rename gen_check field to
3063 gen_spec_check.
3064 * flags.h (sel_sched_switch_set): Declare.
3065 * opts.c (sel_sched_switch_set): New variable.
3066 (decode_options): Unset flag_sel_sched_pipelining_outer_loops if
3067 pipelining is disabled from command line.
3068 (common_handle_option): Record whether selective scheduling is
3069 requested from command line.
3070 * doc/invoke.texi: Document new flags and parameters.
3071 * doc/tm.texi: Document new target hooks.
3072 * config/ia64/ia64.c (TARGET_SCHED_GEN_SPEC_CHECK): Define to
3073 ia64_gen_check.
3074 (dfa_state_size): Do not declare locally.
3075 * config/ia64/ia64.opt (msched-ar-data-spec): Default to 0.
3076 * config/rs6000/rs6000.c (rs6000_init_sched_context,
3077 rs6000_alloc_sched_context, rs6000_set_sched_context,
3078 rs6000_free_sched_context): New functions.
3079 (struct _rs6000_sched_context): New.
3080 (rs6000_sched_reorder2): Do not modify INSN_PRIORITY for selective
3081 scheduling.
3082 (rs6000_sched_finish): Do not run for selective scheduling.
3083
3084 2008-08-31 Jan Hubicka <jh@suse.cz>
3085
3086 * frv.c (frv_rtx_costs): Update forward declaration.
3087 * spu.c (spu_rtx_costs): Likewise.
3088 * pdp11.c: Include df.h
3089 (pdp11_output_function_epilogue): Use df_set_regs_ever_live.
3090 * m68hc11.c (m68hc11_gen_highpart): Fix call of gen_rtx_SUBREG.
3091 (m68hc11_rtx_costs_1): Fix call of rtx_cost.
3092 * iq2000.c (iq2000_address_cost): Add speed argument.
3093 (iq2000_rtx_costs): Likewise.
3094 * mn10300.c (mn10300_address_cost_1): Remove speed argument;
3095 update call of mn10300_address_cost.
3096 * mcore.c: Include df.h
3097 (mcore_rtx_costs): Update prototype.
3098 * score3.c: Include df.h
3099 (score3_rtx_costs): Remove speed argument.
3100 * score7.c: Include df.h
3101 (score7_address_cost): Remove speed argument.
3102 * score-protos.h (score_address_cost): Update prototype.
3103 * score.c: Include df.h
3104 (score_rtx_costs): Update call of costs functions.
3105 * v850.c (v850_rtx_costs): Add bool argument.
3106
3107 2008-08-31 Hans-Peter Nilsson <hp@axis.com>
3108
3109 * config/cris/cris.c (cris_rtx_costs): Correct call to rtx_costs.
3110
3111 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3112
3113 * gthr-win32.h (__gthread_setspecific): Use CONST_CAST2.
3114 * config/i386/gthr-win32.c (__gthread_setspecific): Same.
3115
3116 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3117
3118 * mkmap-flat.awk: Add option pe_dll.
3119 * config/i386/t-cygming (SHLIB_LINK): Support building libgcc_s.
3120 * config/i386/t-cygwin (SHLIB_LC): Add.
3121 * config/i386/t-mingw32 (SHLIB_LC): Add.
3122 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): New.
3123 (SUBTARGET_EXTRA_SPECS): Use SHARED_LIBGCC_UNDEFS_SPEC.
3124 (LINK_SPEC): Support libgcc_s.
3125 (LIBGCC_SPEC): Support libgcc_s.
3126 (LIBGCC_SONAME): New.
3127
3128 2008-08-31 Jan Hubicka <jh@suse.cz>
3129
3130 * predict.c (maybe_hot_bb_p, maybe_hot_edge_p): Previous commit
3131 mistakely had old version of patch.
3132
3133 * ipa-cp.c (ipcp_need_original_clone_p): Remove.
3134 (ipcp_estimate_growth): New.
3135 (ipcp_insert_stage): Use ipcp_estimate_growth.
3136 * profile.c (branch_prob): When reading failed, do not consider
3137 profile as read.
3138
3139 2008-08-31 Jan Hubicka <jh@suse.cz>
3140
3141 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Check that
3142 loop is optimized for speed.
3143
3144 2008-08-31 Richard Guenther <rguenther@suse.de>
3145
3146 PR middle-end/37289
3147 * fold-const.c (fold_binary): Retain conversions in folding
3148 ~A + 1 to -A.
3149
3150 2008-08-31 Jan Hubicka <jh@suse.cz>
3151
3152 * postreload-gcse.c (eliminate_partially_redundant_loads):
3153 Use optimize_bb_for_size_p.
3154 * predict.c (maybe_hot_frequency_p): Make inline.
3155 (maybe_hot_count_p): Break out from ...
3156 (maybe_hot_bb_p): ... this one.
3157 (maybe_hot_edge_p): Simplify.
3158 * basic-block.h (probably_cold_bb_p): Remove.
3159
3160 2008-08-31 Jakub Jelinek <jakub@redhat.com>
3161
3162 PR target/37168
3163 * config/rs6000/rs6000-protos.h (const_vector_elt_as_int): Add
3164 prototype.
3165 * config/rs6000/rs6000.c (const_vector_elt_as_int): No longer static.
3166 * config/rs6000/altivec.md (easy_vector_constant_add_self splitter):
3167 Also split V4SFmode.
3168 * config/rs6000/predicates.md (easy_vector_constant_add_self): Handle
3169 vector float modes.
3170
3171 2008-08-31 Jan Hubicka <jh@suse.cz>
3172
3173 * predict.c (PROB_VERY_LIKELY): Make small enough so things
3174 become cold.
3175 * predict.def (PRED_NORETURN_CALL, PRED_COLD_CALL): Use it.
3176
3177 2008-08-31 Jakub Jelinek <jakub@redhat.com>
3178
3179 PR debug/37287
3180 * dwarf2out.c (gen_namespace_die): For DECL_EXTERNAL modules don't
3181 add source coords.
3182
3183 * dwarf2out.c (native_encode_initializer): Subtract min_index for
3184 non-range array index. Handle VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
3185
3186 2008-08-31 Jan Hubicka <jh@suse.cz>
3187
3188 * sparc.h (BRANCH_COST): Fix macro definition.
3189 * avr.c (avr_operand_rtx_cost): Add speed argument.
3190 (avr_rtx_costs): Update calls of avr_operand_rtx_cost.
3191
3192 2008-08-31 Richard Guenther <rguenther@suse.de>
3193
3194 * tree-cfg.c (verify_types_in_gimple_assign): Dump mismatched
3195 types instead of operands. Re-instantiate verifying of
3196 binary expression operands.
3197
3198 2008-08-30 Jan Hubicka <jh@suse.cz>
3199
3200 * fwprop.c (should_replace_address): Add speed attribute.
3201 (PR_OPTIMIZE_FOR_SPEED): New flag.
3202 (propagate_rtx_1): Use it.
3203 (propagate_rtx): Set it.
3204 (try_fwprop_subst): Update call of rtx_costs.
3205 (forward_propagate_and_simplify): LIkewise.
3206 * hooks.c (hook_int_rtx_bool_0): New
3207 (hook_bool_rtx_int_int_intp_false): Replace by ...
3208 (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
3209 * hooks.h (hook_int_rtx_bool_0): New
3210 (hook_bool_rtx_int_int_intp_false): Replace by ...
3211 (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
3212 * optabs.c (avoid_expensive_constant): UPdate call of rtx_cost.
3213 (prepare_cmp_insn): UPdate call of rtx_cost.
3214 * postreload.c (reload_cse_simplify_set): Update call of rtx_cost.
3215 (reload_cse_simplify_operands): Update call of rtx_cost.
3216 (reload_cse_move2add): call of rtx_cost.
3217 * target.h (struct gcc_target): Update rtx_costs and address_costs.
3218 * rtlanal.c (rtx_cost): Add speed argument.
3219 (address_cost): Add speed argument
3220 (default_address_cost): Likewise.
3221 (insn_rtx_cost): Likewise.
3222 * cfgloopanal.c (seq_cost): Add speed argument.
3223 (target_reg_cost, target_spill_cost): Turn to array.
3224 (init_set_costs): Update for speed.
3225 (estimate_reg_pressure_cost): Add speed argument.
3226 * auto-inc-dec.c (attempt_change): Update call of rtx_cost.
3227 * dojump.c (prefer_and_bit_test): UPdate call of rtx_cost.
3228 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field speed.
3229 (seq_cost): Add speed argument.
3230 (computation_cost): Add speed arugment.
3231 (add_cost, multiply_by_const, get_address_cost): add speed argument.
3232 (force_expr_to_var_cost): Update for profile info.
3233 (force_var_cost): Likewise.
3234 (split_address_cost): Likewise.
3235 (ptr_difference_cost): Likewise.
3236 (difference_cost): Likewise.
3237 (get_computation_cost_at): Likewise.
3238 (determine_iv_cost): Likewise.
3239 (ivopts_global_cost_for_size): Likewise.
3240 (rewrite_use_address): Likewise.
3241 (tree_ssa_iv_optimize_loop): Initialize speed field.
3242 * cse.c (optimize_this_for_speed_p): New static var.
3243 (notreg_cost): Update call of rtx_cost.
3244 (cse_extended_basic_block): set optimize_this_for_speed_p.
3245 * ifcvt.c (cheap_bb_rtx_cost_p): Update call of rtx_cost.
3246 (noce_try_cmove_arith): Likewise.
3247 (noce_try_sign_mask): LIkewise.
3248 * expr.c (compress_float_constant): Update rtx_cost calls.
3249 * tree-ssa-address.c (most_expensive_mult_to_index): Add speed
3250 argument.
3251 (addr_to_parts): Likewise.
3252 (create_mem_ref): Likewise.
3253 * dse.c (find_shift_sequence): Add speed argument.
3254 (replace_read): Update call.
3255 * calls.c (precompute_register_parameters): Update call of rtx_cost.
3256 * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost,
3257 * neg_cost, shift_cost, shiftadd_cost,
3258 shiftsub_cost, mul_cost, sdiv_cost, udiv_cost ,mul_widen_cost,
3259 mul_highpart_cost): Increase dimension.
3260 (init_expmed): Initialize for both size and speed.
3261 (expand_shift): Use profile.
3262 (synth_mult): Use profile.
3263 (choose_mult_variant): Use profile.
3264 (expand_mult): Use profile.
3265 (expand_mult_highpart_optab): Use profile.
3266 (expand_mult_highpart): Use profile.
3267 (expand_smod_pow2): Use profile.
3268 (expand_divmod): Use profile.
3269 * simplify-rtx.c (simplify_binary_operation_1): Update call of
3270 rtx_cost.
3271 * loop-invariant.c (create_new_invariant): Use profile.
3272 (gain_for_invariant): Add speed parameter.
3273 (best_gain_for_invariant): Likewise.
3274 (find_invariants_to_move): Likewise.
3275 (move_single_loop_invariants): Set it.
3276 * target-def.h (TARGET_RTX_COSTS): Use hook.
3277 * rtl.h (rtx_cost, address_cost, insn_rtx_cost): Update prototpe.
3278 (optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
3279 * output.h (default_address_cost): Update prototype.
3280 * combine.c (optimize_this_for_speed_p): New static var.
3281 (combine_validate_cost): Update call of rtx_cost.
3282 (combine_instructions): Set optimize_this_for_speed_p.
3283 (expand_compound_operation): Update call of rtx_cost.
3284 (make_extraction):Update call of rtx_cost.
3285 (force_to_mode):Update call of rtx_cost.
3286 (distribute_and_simplify_rtx):Update call of rtx_cost.
3287 * cfgloop.h (target_reg_cost, target_spill_cost): Turn to array.
3288 (estimate_reg_pressure_cost): Update prototype.
3289 * tree-flow.h (multiply_by_cost, create_mem_ref): Update prototype.
3290 * basic-block.h (optimize_insn_for_size_p, optimize_insn_for_speed_p):
3291 Remove.
3292 * config/alpha/alpha.c (alpha_rtx_costs): Update.
3293 (alpha_rtx_costs): Update.
3294 * config/frv/frv.c (frv_rtx_costs): Update.
3295 * config/s390/s390.c (s390_rtx_costs): Update.
3296 * config/m32c/m32c.c (m32c_memory_move_cost): Update.
3297 (m32c_rtx_costs): Update.
3298 * config/spu/spu.c (TARGET_ADDRESS_COST): Upate.
3299 (spu_rtx_costs): Update.
3300 * config/sparc/sparc.c (sparc_rtx_costs): Update.
3301 * config/m32r/m32r.c (m32r_rtx_costs): Update.
3302 * config/i386/i386.c (:ix86_address_cost): Update.
3303 (ix86_rtx_costs): Update.
3304 * config/sh/sh.c (sh_rtx_costs, sh_address_cost): Update.
3305 * config/pdp11/pdp11.c (pdp11_rtx_costs): Update.
3306 * config/avr/avr.c (avr_rtx_costs, avr_address_cost): Update.
3307 * config/crx/crx.c (crx_address_cost): Update.
3308 * config/xtensa/xtensa.c (xtensa_rtx_costs): Update.
3309 * config/stormy16/stormy16.c
3310 (xstormy16_address_cost, xstormy16_rtx_costs): Update.
3311 * config/m68hc11/m68hc11.c
3312 (m68hc11_address_cost, m68hc11_rtx_costs): Update.
3313 * config/cris/cris.c (cris_rtx_costs, cris_address_cost): Update.
3314 * config/iq2000/iq2000.c (iq2000_rtx_costs, iq2000_address_cost):
3315 Update.
3316 * config/mn10300/mn10300.c (mn10300_address_cost, mn10300_rtx_costs):
3317 Update
3318 * config/ia64/ia64.c (ia64_rtx_costs): Update.
3319 * config/m68k/m68k.c (m68k_rtx_costs): Update.
3320 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update.
3321 * config/arc/arc.c (arc_rtx_costs, arc_address_cost): Update.
3322 * config/mcore/mcore.c (TARGET_ADDRESS_COST): Update.
3323 (mcore_rtx_costs): update.
3324 * config/score/score3.c (score3_rtx_costs): Update.
3325 * config/score/score7.c (score7_rtx_costs): Update.
3326 * config/score/score3.h (score3_rtx_costs):Update.
3327 * config/score/score7.h (score7_rtx_costs): Update.
3328 * config/score/score.c (score_rtx_costs): Update.
3329 * config/arm/arm.c (arm_address_cost): Update.
3330 (arm_rtx_costs_1): Update.
3331 (arm_rtx_costs_1): Update.
3332 (arm_size_rtx_costs): Update.
3333 (arm_size_rtx_costs): Update.
3334 (arm_size_rtx_costs): Update.
3335 (arm_xscale_rtx_costs): Update.
3336 (arm_thumb_address_cost): Update.
3337 * config/pa/pa.c (hppa_address_cost): Update.
3338 * config/mips/mips.c (mips_rtx_costs): Update.
3339 * config/vax/vax.c (vax_address_cost): Update.
3340 * config/h8300/h8300.c (h8300_shift_costs): Update.
3341 (h8300_rtx_costs): Update.
3342 * config/v850/v850.c (TARGET_ADDRESS_COST): Update.
3343 (v850_rtx_costs): Update.
3344 * config/mmix/mmix.c (mmix_rtx_costs, mmix_rtx_costs): Update.
3345 * config/bfin/bfin.c
3346 (bfin_address_cost): Update.
3347 (bfin_rtx_costs): Update.
3348 * stmt.c (lshift_cheap_p): Update.
3349
3350 2008-08-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
3351
3352 PR middle-end/36444
3353 * expmed.c (extract_bit_field_1): Check the mode size to make
3354 sure the vector modes have the same size.
3355
3356 2008-08-29 Michael Meissner <gnu@the-meissners.org>
3357
3358 * dojump.c (top level): Include basic-block.h to declare
3359 optimize_insn_for_speed_p
3360
3361 * Makefile.in (dodump.h): Add $(BASIC_BLOCK_H) dependency.
3362
3363 * opts.h (CL_SAVE): New option class for marking options that are
3364 target specific options usable in the target attribute.
3365 (CL_MIN_OPTION_CLASS): CL_SAVE is now the minimum option.
3366
3367 * opt-functions.awk (switch_flags): Add CL_SAVE flag so backends
3368 can easily find the target specific options that are safe to use
3369 in the attribute or pragma.
3370
3371 * attribs.c (decl_attributes): Change #pragma GCC option to
3372 #pragma GCC target, and attribute((option(...))) to
3373 attribute((target(...))).
3374
3375 * doc/extend.texi (target attribute): Change from option
3376 attribute. Delete push/pop/reset.
3377 (#pragma GCC target): Change from #pragma GCC option. Delete
3378 push/pop/reset.
3379 (#pragma GCC push_options): Document new pragma.
3380 (#pragma GCC pop_options): Document new pragma.
3381 (#pragma GCC reset_options): Document new pragma.
3382
3383 * targhooks.c (default_target_option_valid_attribute_p): Add
3384 warning about port not supporting target attributes.
3385 (default_target_option_pragma_parse): New function, warn about
3386 #pragma GCC target not being supported.
3387
3388 * targhooks.h (default_target_option_pragma_parse): Add
3389 declaration.
3390
3391 * tree.h (TI_CURRENT_TARGET_PRAGMA): Rename from
3392 TI_CURRENT_OPTION_PRAGMA.
3393 (current_target_pragma): Rename from current_option_pragma.
3394
3395 * target.h: (struct target_option): Delete booleans for changing
3396 the optimization level on hot/cold functions. Change signature of
3397 pragma_parse hook to take a second tree.
3398
3399 * c-tree.h (c_builtin_function_ext_scope): Add declaration.
3400
3401 * c-decl.c (c_builtin_function_ext_scope): New function, guarantee
3402 that the declaration is done at global scope.
3403
3404 * langhooks.c (add_builtin_function_common): Move most of the code
3405 from add_builtin_function here, calling the hook passed in.
3406 (add_builtin_function): Call add_builtin_function_common with
3407 standard builtin hook.
3408 (add_builtin_function_ext_scope): New function to add builtins to
3409 global scope.
3410
3411 * langhooks.h (struct lang_hooks): Add builtin_function_ext_scope
3412 hook.
3413 (add_builtin_function_ext_scope): Add declaration.
3414
3415 * c-pragma.c (handle_pragma_target): Rename from
3416 handle_pragma_option, #pragma GCC option is now #pragma GCC
3417 target. Move warning about port not supporting target options to
3418 default pragma parse hook. Remove push/pop/reset from this
3419 pragma.
3420 (handle_pragma_optimize): Remove push/pop/reset from this pragma.
3421 (option_stack): Delete static variable.
3422 (optimize_stack): Ditto.
3423 (optons_stack): New stack of saved target and optimization
3424 options.
3425 (handle_pragma_push_options): New function to handle pushing both
3426 target and optimization options.
3427 (handle_pragma_pop_options): New function to handle popping both
3428 target and optimization options.
3429 (handle_pragma_reset_options): New function to handle resetting
3430 both target and optimization options to their initial state.
3431 (init_pragma): Rename handle_pragma_option to
3432 handle_pragma_target. Add support for push_options, pop_options,
3433 and reset_options pragmas.
3434
3435 * target-def.h (TARGET_OPTION_PRAGMA_PARSE): Change default to
3436 default_target_option_pragma_parse.
3437 (TARGET_OPTION_VALID_ATTRIBUTE_P): Change default to
3438 default_target_option_valid_attribute_p.
3439 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
3440 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
3441 (TARGET_OPTION_HOOKS): Delete the fields for whether to change
3442 optimization level on hot/cold functions.
3443
3444 * tree-inline.c (tree_can_inline_p): Disable suppressing inlining
3445 if the caller and callee have different optimization levels.
3446
3447 * c-common.c (handle_target_attribute): Rename from
3448 handle_option_attribute, attribute((option(...))) is now
3449 attribute((target(...))). Move warning if the port does not
3450 support target attributes to the default hook.
3451 (handle_hot_attribute): Delete code to change the optimization
3452 level of hot functions.
3453 (handle_cold_attribute): Ditto.
3454
3455 * config/i386/i386-c.c (ix86_pragma_target_parse): Take a second
3456 argument that is the binary tree options to use if there are no
3457 arguments. Call ix86_valid_target_attribute_tree instead of
3458 ix86_valid_option_attribute_tree.
3459 (ix86_pragma_target_parse): Rename from ix86_pragma_option_parse.
3460 (ix86_register_pragmas): Use ix86_pragma_target_parse instead of
3461 ix86_pragma_option_parse.
3462
3463 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
3464 Rename from ix86_valid_option_attribute_tree.
3465
3466 * config/i386/i386.c (ix86_add_new_builtins): New function to add
3467 new builtins when the ISA changes.
3468 (ix86_valid_target_attribute_tree): Rename from
3469 ix86_valid_option_attribute_tree. Change callers. If the
3470 function specified optimization options, use those as the starting
3471 point before setting up the target attributes. If the
3472 optimization options were changed in the course of setting the
3473 target attributes, record the new optimization options.
3474 (ix86_valid_target_attribute_tree_inner_p): Rename from
3475 ix86_valid_option_attribute_tree_inner_p. Change callers. Call
3476 ix86_add_new_builtins if the ISA changed.
3477 (ix86_valid_target_attribute_p): Rename from
3478 ix86_valid_option_attribute_p. Change callers.
3479 (enum ix86_builtins): Add IX86_BUILTIN_PCMOV to allow both
3480 __builtin_ia32_pcmov and __builtin_ia32_pcmov_v2di to be declared
3481 as delayed builtin functions.
3482 (struct builtin_isa): New structure to record builtin functions
3483 that should be delayed until the ISA for that function is used.
3484 (ix86_builtins_isa): Change from int to struct to track builtin
3485 functions we want to declare at some point.
3486 (def_builtin): If the front end can delay defining the builtin
3487 functions, don't create builtins for ISAs not part of the default
3488 options.
3489 (def_builtin_const): Ditto.
3490 (bdesc_multi_arg): Declare __builtin_ia32_pcmov and
3491 __builtin_ia32_pcmov_v2di to be different builtin functions.
3492 (ix86_expand_builtin): Changes due to ix86_builtins_isa now being
3493 a structure instead of an int.
3494 (TARGET_OPTION_VALID_ATTRIBUTE_P): Use
3495 ix86_valid_target_attribute_p, not ix86_valid_option_attribute_p.
3496 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
3497 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
3498
3499 * config/ia64/ia64.h
3500 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
3501 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
3502
3503 * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE): New
3504 hook, default to being the same as LANG_HOOKS_BUILTIN_FUNCTION.
3505 (LANG_HOOKS_INITIALIZER): Add
3506 LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE hook.
3507
3508 2008-08-30 Kaz Kojima <kkojima@gcc.gnu.org>
3509
3510 PR target/37270
3511 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Generate
3512 the reload address with the index register for SFmode
3513 access with a displacement.
3514
3515 2008-08-30 Jan Hubicka <jh@suse.cz>
3516
3517 * optabs.c (expand_abs_nojump): Update BRANCH_COST call.
3518 * fold-cost.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop): Likewise.
3519 * dojump.c (do_jump): Likewise.
3520 * ifcvt.c (MAX_CONDITIONAL_EXECUTE): Likewise.
3521 (note-if_info): Add BRANCH_COST.
3522 (noce_try_store_flag_constants, noce_try_addcc,
3523 noce_try_store_flag_mask, noce_try_cmove_arith, noce_try_cmove_arith,
3524 noce_try_cmove_arith, noce_find_if_block, find_if_case_1,
3525 find_if_case_2): Use computed branch cost.
3526 * expr.h (BRANCH_COST): Update default.
3527 * predict.c (predictable_edge_p): New function.
3528 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, emit_store_flag):
3529 Update BRANCH_COST call.
3530 * basic-block.h (predictable_edge_p): Declare.
3531 * config/alpha/alpha.h (BRANCH_COST): Update.
3532 * config/frv/frv.h (BRANCH_COST): Update.
3533 * config/s390/s390.h (BRANCH_COST): Update.
3534 * config/spu/spu.h (BRANCH_COST): Update.
3535 * config/sparc/sparc.h (BRANCH_COST): Update.
3536 * config/m32r/m32r.h (BRANCH_COST): Update.
3537 * config/i386/i386.h (BRANCH_COST): Update.
3538 * config/i386/i386.c (ix86_expand_int_movcc): Update use of
3539 BRANCH_COST.
3540 * config/sh/sh.h (BRANCH_COST): Update.
3541 * config/pdp11/pdp11.h (BRANCH_COST): Update.
3542 * config/avr/avr.h (BRANCH_COST): Update.
3543 * config/crx/crx.h (BRANCH_COST): Update.
3544 * config/xtensa/xtensa.h (BRANCH_COST): Update.
3545 * config/stormy16/stormy16.h (BRANCH_COST): Update.
3546 * config/m68hc11/m68hc11.h (BRANCH_COST): Update.
3547 * config/iq2000/iq2000.h (BRANCH_COST): Update.
3548 * config/ia64/ia64.h (BRANCH_COST): Update.
3549 * config/rs6000/rs6000.h (BRANCH_COST): Update.
3550 * config/arc/arc.h (BRANCH_COST): Update.
3551 * config/score/score.h (BRANCH_COST): Update.
3552 * config/arm/arm.h (BRANCH_COST): Update.
3553 * config/pa/pa.h (BRANCH_COST): Update.
3554 * config/mips/mips.h (BRANCH_COST): Update.
3555 * config/vax/vax.h (BRANCH_COST): Update.
3556 * config/h8300/h8300.h (BRANCH_COST): Update.
3557 * params.def (PARAM_PREDICTABLE_BRANCH_OUTCOME): New.
3558 * doc/invoke.texi (predictable-branch-cost-outcome): Document.
3559 * doc/tm.texi (BRANCH_COST): Update.
3560
3561 2008-08-30 Samuel Tardieu <sam@rfc1149.net>
3562
3563 PR target/37283
3564 * config/arm/arm.c (arm_optimization_options): Set
3565 flag_section_anchors to 2 instead of 1 to distinguish it from
3566 -fsection-anchors given explicitely on the command line.
3567
3568 2008-08-30 Richard Sandiford <rdsandiford@googlemail.com>
3569
3570 * recog.c (split_insn): Consider attaching a REG_EQUAL note to the
3571 final insn of a split.
3572
3573 2008-08-30 Jan Hubicka <jh@suse.cz>
3574
3575 * postreload-gcse.c (gate_handle_gcse2): Disable for functions
3576 optimized for speed.
3577 * final.c (compute_alignments): Use optimize_bb_for_size_p.
3578 * tree-call-cdce.c (gate_call_cdce): Use optimize_function_for_speed_p.
3579 * opts.c (flag_predictive_commoning_set, flag_unswitch_loops_set,
3580 flag_gcse_after_reload_set): New static vars.
3581 (common_handle_option): Enable those flags for profile-use.
3582 (decode_options): Remove optimize_size flags that are handled
3583 on higher granuality.
3584 * tree-vectorizer.c (vectorize_loops): Use
3585 optimize_loop_nest_for_speed_p.
3586 * tree-ssa-pre.c (do_pre): Use optimize_function_for_speed_p.
3587 * tree-predcom.c (tree_predictive_commoning): Use
3588 optimize_loop_for_speed_p.
3589 * varasm.c (assemble_start_function): Use
3590 optimize_function_for_speed_p.
3591 * bb-reorder.c (rest_of_handle_reorder_blocks): Likewise.
3592 * predict.c (optimize_loop_for_speed_p): Fix walk.
3593
3594 2008-08-30 Jan Hubicka <jh@suse.cz>
3595
3596 * ipa-inline.c (cgraph_estimate_growth): Discover self recursive
3597 functions.
3598 (cgraph_decide_inlining_of_small_function): Use edge->count to detect
3599 profile presence locally.
3600
3601 2008-08-29 Joseph Myers <joseph@codesourcery.com>
3602
3603 PR bootstrap/37086
3604 * tree-vrp.c (find_switch_asserts): Make idx volatile for GCC
3605 versions before 4.0.
3606
3607 2008-08-29 Jan Hubicka <jh@suse.cz>
3608
3609 * tree-inline.c (insert_init_stmt): Insert sequence even when
3610 not in SSA form.
3611
3612 2008-08-29 Jeff Law <law@redhat.com>
3613
3614 * mn10300.c (mn10300_secondary_reload_class): We need secondary
3615 reloads for AM33-2 if IN is a pseudo with an equivalent memory
3616 location and class is an FP register.
3617
3618 2008-08-29 Jan Hubicka <jh@suse.cz>
3619
3620 * see.c (see_merge_one_def_extension): Silence used uninitialized
3621 warning.
3622 * matrix-reorg.c (check_allocation_function): Likewise.
3623 * config/i386/driver-i386.c (detect_caches_amd): Likewise.
3624
3625 2008-08-29 Jakub Jelinek <jakub@redhat.com>
3626
3627 PR c/37261
3628 * fold-const.c (fold_binary): In (X | C1) & C2 canonicalization
3629 compute new & and | in type rather than TREE_TYPE (arg0).
3630
3631 * dwarf2out.c (fortran_common): Update comment.
3632 (gen_variable_die): Swap com_die and var_die variables in Fortran
3633 COMMON block handling code.
3634
3635 * dwarf2out.c (descr_info_loc): Handle VAR_DECL.
3636
3637 * dwarf2out.c (gen_const_die): New function.
3638 (size_of_die, value_format, output_die): Output larger
3639 dw_val_class_vec using DW_FORM_block2 or DW_FORM_block4.
3640 (native_encode_initializer): New function.
3641 (tree_add_const_value_attribute): Call it.
3642 (gen_decl_die, dwarf2out_decl): Handle CONST_DECLs if is_fortran ().
3643
3644 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): For
3645 DECL_BY_REFERENCE decls don't pass TREE_READONLY and
3646 TREE_THIS_VOLATILE to add_type_attribute.
3647
3648 * dwarf2out.c (add_subscript_info): Stop on Fortran TYPE_STRING_FLAG
3649 types.
3650 (gen_array_type_die): Emit DW_TAG_string_type for Fortran character
3651 types.
3652
3653 * dwarf2out.c (loc_by_reference): New function.
3654 (add_location_or_const_value_attribute): Use it.
3655
3656 PR fortran/23057
3657 * dwarf2out.c (gen_variable_die): Represent Fortran COMMON vars
3658 as DW_TAG_variable children of DW_TAG_common_block rather than
3659 DW_TAG_member children. Put DW_AT_external to individual
3660 DW_TAG_variable DIEs, not to DW_TAG_common_block.
3661
3662 * dwarf2out.c (add_bound_info): If lookup_decl_die failed, try
3663 loc_descriptor_from_tree_1.
3664
3665 PR fortran/29635
3666 PR fortran/23057
3667 * debug.h (struct gcc_debug_hooks): Add NAME and CHILD
3668 arguments to imported_module_or_decl.
3669 (debug_nothing_tree_tree): Removed.
3670 (debug_nothing_tree_tree_tree_bool): New prototype.
3671 * debug.c (do_nothing_debug_hooks): Adjust.
3672 (debug_nothing_tree_tree): Removed.
3673 (debug_nothing_tree_tree_tree_bool): New function.
3674 * dwarf2out.c (is_symbol_die): Handle DW_TAG_module.
3675 (gen_variable_die): Put all common vars for the
3676 same COMMON block under one DW_TAG_common_block.
3677 (declare_in_namespace): Return new context_die, for Fortran
3678 return the module DIE instead of adding extra declarations into
3679 the namespace.
3680 (gen_type_die_with_usage): Adjust declare_in_namespace caller.
3681 (gen_namespace_die): If is_fortran (), generate DW_TAG_module
3682 instead of DW_TAG_namespace. If DECL_EXTERNAL is set, add
3683 DW_AT_declaration.
3684 (dwarf2out_global_decl): Don't skip Fortran global vars.
3685 (gen_decl_die): Likewise. Adjust declare_in_namespace callers.
3686 (dwarf2out_imported_module_or_decl): Add NAME and CHILD arguments.
3687 If NAME is non-NULL, add DW_AT_name. If CHILD is non-NULL, put
3688 DW_TAG_imported_declaration as child of previous
3689 DW_TAG_imported_module.
3690 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Adjust.
3691 * sdbout.c (sdb_debug_hooks): Likewise.
3692 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3693
3694 2008-08-29 Jan Hubicka <jh@suse.cz>
3695
3696 * cgraph.c (cgraph_remove_node): Do not remove nested nodes.
3697
3698 * cgraph.h (cgraph_maybe_hot_edge_p): Declare.
3699 * ipa-cp.c (n_cloning_candidates): New static variable.
3700 (ipcp_print_profile_data, ipcp_function_scale_print): Forward declare.
3701 (ipcp_print_all_lattices): Improve debug output.
3702 (ipcp_cloning_candidate_p): New function.
3703 (ipcp_initialize_node_lattices): Use it.
3704 (ipcp_init_stage): Do only analyzis here; prettier debug output.
3705 (ipcp_propagate_stage): Prettier debug output.
3706 (ipcp_iterate_stage): Initialize latices here; prettier debug output.
3707 (ipcp_print_all_structures): Remove.
3708 (ipcp_need_redirect_p): Test !n_cloning_candidates.
3709 (ipcp_insert_stage): Prettier debug output; call
3710 cgraph_remove_unreachable_nodes before propagating.
3711 (pass_ipa_cp): Schedule function removal pass.
3712 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Better
3713 debug output.
3714 (cgraph_maybe_hot_edge_p): Move to ...
3715 * predict.c (cgraph_maybe_hot_edge_p) ... here.
3716 * opts.c (flag_ipa_cp_set, flag_ipa_cp_clone_set): New.
3717 (common_handle_option): Set them; enable ipa-cp when profiling.
3718 * ipa-prop.c (ipa_print_node_jump_functions): Prettier output.
3719 (ipa_print_all_jump_functions): Likewise.
3720 (ipa_print_all_tree_maps, ipa_print_node_param_flags): Remove.
3721 (ipa_print_node_params, ipa_print_all_params): New.
3722 * ipa-prop.h (ipa_print_all_tree_maps, ipa_print_node_param_flags,
3723 ipa_print_all_param_flags): Remove.
3724 (ipa_print_node_params, ipa_print_all_params): New.
3725
3726 2008-08-29 Bob Wilson <bob.wilson@acm.org>
3727
3728 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Revert
3729 change from 2008-04-03.
3730 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Define.
3731
3732 2008-08-29 Vladimir Makarov <vmakarov@redhat.com>
3733
3734 PR rtl-opt/37251
3735 * ira-color.c (push_allocnos_to_stack): Truncate
3736 removed_splay_allocno_vec.
3737
3738 2008-08-29 Vladimir Makarov <vmakarov@redhat.com>
3739
3740 PR rtl-opt/37243
3741 * ira-color (ira_fast_allocation): Don't assign hard registers to
3742 global allocnos.
3743
3744 2008-08-29 Jan Hubicka <jh@suse.cz>
3745
3746 PR middle-end/37278
3747 * predict.c (optimize_loop_nest_for_speed_p): Do not ICE
3748 for cold internal loops.
3749
3750 2008-08-29 Richard Guenther <rguenther@suse.de>
3751
3752 * tree-ssa-structalias.c (create_variable_info_for): Do not
3753 create fields for heap vars or vars with a noalias state.
3754 For NO_ALIAS_ANYTHING variables add a self-constraint, not one
3755 from ESCAPED.
3756
3757 2008-08-29 Richard Guenther <rguenther@suse.de>
3758
3759 * common.opt (ftree-store-ccp): Mark as preserved for
3760 backward compatibility.
3761 * doc/invoke.texi (-ftree-store-ccp): Remove documentation.
3762 * tree-pass.h (pass_store_ccp): Remove.
3763 * tree-ssa-propagate.h (struct prop_value_d): Remove mem_ref field.
3764 (first_vdef): Remove declaration.
3765 (get_value_loaded_by): Likewise.
3766 * tree-ssa-ccp.c (do_store_ccp): Remove.
3767 (get_default_value): Simplify as do_store_ccp is always false
3768 now. Do not initialize mem_ref.
3769 (set_value_varying): Likewise.
3770 (canonicalize_float_value): Likewise.
3771 (set_lattice_value): Likewise.
3772 (likely_value): Likewise.
3773 (surely_varying_stmt_p): Likewise.
3774 (ccp_initialize): Likewise.
3775 (ccp_lattice_meet): Likewise.
3776 (ccp_visit_phi_node): Likewise.
3777 (ccp_fold): Likewise.
3778 (evaluate_stmt): Likewise.
3779 (visit_assignment): Likewise.
3780 (ccp_visit_stmt): Likewise.
3781 (execute_ssa_ccp): Fold into ...
3782 (do_ssa_ccp): ... this.
3783 (do_ssa_store_ccp): Remove.
3784 (gate_store_ccp): Likewise.
3785 (pass_store_ccp): Likewise.
3786 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not
3787 initialize mem_ref.
3788 * tree-ssa-propagate.c (first_vdef): Remove.
3789 (get_value_loaded_by): Likewise.
3790 (replace_vuses_in): Likewise.
3791 (substitute_and_fold): Do not call replace_vuses_in.
3792 * opts.c (decode_options): Do not set flag_tree_store_ccp.
3793
3794 2008-08-29 Richard Guenther <rguenther@suse.de>
3795
3796 PR middle-end/37236
3797 * tree-ssa-structalias.c (intra_create_variable_infos): Mark
3798 PARAM_NOALIAS tags with is_heapvar.
3799 * tree-ssa-operands.c (access_can_touch_variable): Offset
3800 based tests do not apply for heapvars. Fix offset test.
3801
3802 2008-08-29 Jan Hubicka <jh@suse.cz>
3803
3804 * doc/invoke.texi (-fipa-cp): Enabled by default at -O2/-Os/-O3
3805 (-fipa-cp-clone): Enabled by default at -O3.
3806 * opts.c (decode_options): Enable ipa-cp at -O2, ipa-cp-clone at -O3;
3807 make ipa-cp-clone to imply ipa-cp; disable cloning at -Os.
3808
3809 2008-08-29 Jan Hubicka <jh@suse.cz>
3810
3811 * tree.c (build_function_type_skip_args,
3812 build_function_decl_skip_args): New functions.
3813 * tree.h (build_function_type_skip_args,
3814 build_function_decl_skip_args): Declare.
3815 * gimple.c (giple_copy_call_skip_args): New function.
3816 (giple_copy_call_skip_args): Declare.
3817
3818 * cgraph.h (cgraph_function_versioning): Add skip_args arugmnet
3819 * ipa-cp.c (ipcp_node_not_modifiable_p): Rename to ...
3820 (ipcp_node_modifiable_p): ... this one; use
3821 tree_versionable_function_p.
3822 (ipcp_create_replace_map): Improve debug output.
3823 (ipcp_need_redirect_p): Return false when not clonning.
3824 (ipcp_update_callgraph): Skip args.
3825 (ipcp_insert_stage): UPdate call of !ipcp_node_modifiable_p;
3826 skip args.
3827 * cgraphunit.c (cgraph_function_versioning): Add skip_args argument.
3828 (save_inline_function_body): Update call of tree_function_versioning.
3829 * ipa-prop.c (ipa_edge_removal_hook): Do not ICE on unanalyzed nodes.
3830 * tree-inline.c (copy_arguments_for_versioning): Add skip_args
3831 argument.
3832 (tree_function_versioning): Likewise.
3833 * tree-inline.h (tree_function_versioning): Update prototype.
3834
3835 2008-08-29 Jan Hubicka <jh@suse.cz>
3836
3837 * loop-unswitch.c (unswitch_single_loop): Use
3838 optimize_loop_for_speed_p.
3839 * tree-ssa-threadupdate.c (mark_threaded_blocks):
3840 Use optimize_function_for_size_p.
3841 * tracer.c (ignore_bb_p): Use optimize_bb_for_size_p.
3842 * postreload-gcse.c (eliminate_partially_redundant_load):
3843 Use optimize_bb_for_size_p.
3844 * value-prof.c (gimple_divmod_fixed_value_transform,
3845 gimple_mod_pow2_value_transform, gimple_mod_subtract_transform,
3846 gimple_stringops_transform): Use optimize_bb_for_size_p.
3847 * ipa-cp.c (ipcp_insert_stage): Use optimize_function_for_size_p.
3848 * final.c (compute_alignments): Use optimize_function_for_size_p.
3849 * builtins.c (fold_builtin_cabs): Use optimize_function_for_speed_p.
3850 (fold_builtin_strcpy, fold_builtin_fputs): Use
3851 optimize_function_for_size_p.
3852 * fold-const.c (tree_swap_operands_p): Use
3853 optimize_function_for_size_p.
3854 * recog.c (relax_delay_slots): Likewise.
3855 * tree-ssa-math-opts.c (replace_reciprocal):
3856 Use optimize_bb_for_speed_p.
3857 (execute_cse_reciprocals): Use optimize_bb_for_size_p.
3858 * ipa-inline.c (cgraph_decide_recursive_inlining): Use
3859 optimize_function_for_size_p.
3860 (cgraph_decide_inlining_of_small_function): Use
3861 optimize_function_for_size_p.
3862 * global.c (find_reg): Use optimize_function_for_size_p.
3863 * opts.c (decode_options): Do not clear flag_tree_ch,
3864 flag_inline_functions, flag_unswitch_loops, flag_unroll_loops,
3865 flag_unroll_all_loops and flag_prefetch_loop_arrays. Those can
3866 work it out from profile.
3867 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Use
3868 optimize_loop_for_speed_p.
3869 * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
3870 Constify argument.
3871 (optimize_loop_nest_for_size_p, optimize_loop_nest_for_speed_p): New.
3872 * tree-parloops.c (parallelize_loops): Use optimize_loop_for_size_p.
3873 * tree-eh.c (decide_copy_try_finally): Use
3874 optimize_function_for_size_p.
3875 * local-alloc.c (block_alloc): Pass BB pointer.
3876 (find_free_reg): Add BB pointer, use optimize_bb_for_size_p.
3877 * gcse.c (gcse_main): Use optimize_function_for_size_p.
3878 * loop-unroll.c (decide_unrolling_and_peeling):
3879 Use optimize_loop_for_size_p.
3880 (decide_peel_completely): Likewise.
3881 * tree-vect-analyze.c (vect_mark_for_runtime_alias_test): Use
3882 optimize_loop_for_size_p.
3883 (vect_enhance_data_refs_alignment): Likewise.
3884 * tree-ssa-coalesce.c (coalesce_cost): Add optimize_for_size argument.
3885 (coalesce_cost_bb, coalesce_cost_edge, create_outofssa_var_map):
3886 Update call.
3887 * cfgcleanup.c (outgoing_edges_match): Use optimize_bb_for_speed_p.
3888 (try_crossjump_bb): Use optimize_bb_for_size_p.
3889 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
3890 optimize_loop_for_speed_p.
3891 * bb-reorder.c (find_traces_1_round): Likewise.
3892 (copy_bb): Use optimize_bb_for_speed_p.
3893 (duplicate_computed_gotos): Likewise.
3894 * basic-block.h (optimize_loop_nest_for_size_p,
3895 optimize_loop_nest_for_speed_p): New.
3896 * stmt.c (expand_case): Use optimize_insn_for_size_p.
3897
3898 2008-08-29 Tristan Gingold <gingold@adacore.com>
3899
3900 * gcov.c (main): Call expandargv.
3901
3902 2008-08-29 Jan Hubicka <jh@suse.cz>
3903
3904 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Check that loop
3905 is not cold.
3906 * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
3907 Constify arguments.
3908 (optimize_loop_for_size_p, optimize_loop_for_speed_p): New functions.
3909 * basic-block.h (optimize_bb_for_size_p, optimize_bb_for_speed_p):
3910 Constify.
3911 (optimize_loop_for_size_p, optimize_loop_for_speed_p): Declare.
3912
3913 2008-08-29 Jan Hubicka <jh@suse.cz>
3914
3915 * tree-pass.h (pass_strip_predict_hints): Declare.
3916 * predict.c (strip_builtin_expect): Rename to ...
3917 (strip_predict_hints): ... this one; strip also GIMPLE_PREDICT.
3918 (tree_bb_level_predictions): Do not remove GIMPLE_PREDICT.
3919 (tree_estimate_probability): Do not strip builtin_expect.
3920 (pass_strip_predict_hints): New pass.
3921 * tree-inline.c (expand_call_inline): When inlining cold function,
3922 predict it as unlikely.
3923 * passes.c (init_optimization_passes): Add pass_strip_predict_hints.
3924
3925 2008-08-29 Richard Guenther <rguenther@suse.de>
3926
3927 PR tree-optimization/37207
3928 * tree-vrp.c (extract_range_from_binary_expr): Also try
3929 to constant fold if only one of the operands is a constant.
3930
3931 2008-08-29 Nick Clifton <nickc@redhat.com>
3932
3933 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Treat LABEL_REFs in
3934 the same way as SYMBOL_REFs.
3935
3936 2008-08-28 Bob Wilson <bob.wilson@acm.org>
3937
3938 * config/xtensa/xtensa.md (<u>mulsidi3): Use a temporary register.
3939
3940 2008-08-28 Adam Nemet <anemet@caviumnetworks.com>
3941
3942 * config/mips/mips.h (ISA_HAS_BBIT): New macro.
3943 * config/mips/mips.md (branch_likely): Remove const. Fix
3944 comment formatting.
3945 (define_delay for type "branch"): Change to only apply for branch
3946 with likely variant.
3947 (define_delay for type "branch" and "branch_likely" no). New delay
3948 definition.
3949 (equality_op): New code iterator.
3950 (bbv, bbinv): New code attributes.
3951 (*branch_bit<bbv><mode>, *branch_bit<bbv><mode>_inverted): New
3952 patterns.
3953
3954 2008-08-28 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3955 Andrew Pinski <pinskia@gcc.gnu.org>
3956
3957 PR 18050
3958 * c-common.c (verify_tree): Fix handling of ADDR_EXPR.
3959
3960 2008-08-28 Paolo Carlini <paolo.carlini@oracle.com>
3961
3962 * gtrh-posix.h: Fix uses of _POSIX_TIMEOUTS per the normal Posix
3963 rule that a symbolic constant must be defined and >= 0 for the
3964 corresponding facility to be present at compile-time.
3965 * gthr-posix.c: Likewise.
3966
3967 2008-08-28 Adam Nemet <anemet@caviumnetworks.com>
3968
3969 * config/mips/mips.h (ISA_HAS_DMUL3): New macro.
3970 * config/mips/mips.md (D): New mode attribute.
3971 (mulsi3, muldi3): Merge it into ...
3972 (mul<mode>3): ... new template. Use _mul3 ending for 3-op patterns.
3973 (muldi3_mul3): New pattern.
3974 (mulsi3_mult3): Rename to mulsi3_mul3.
3975
3976 2008-08-28 Jan Hubicka <jh@suse.cz>
3977
3978 * expmed.c (store_bit_field_1): Be prepared for movstrict expander
3979 to fail.
3980 * predict.c (always_optimize_for_size_p): Rename to ...
3981 (optimize_function_for_size): ... this one; make extern.
3982 (optimize_function_for_speed_p): New.
3983 (optimize_bb_for_size_p, optimize_bb_for_size_p,
3984 optimize_edge_for_size_p,optimize_edge_for_size_p,
3985 optimize_insn_for_size_p, optimize_insn_for_size_p): Update.
3986 * basic-block.h (optimize_function_for_size_p,
3987 optimize_function_for_speed_p): Declare.
3988 * i386.md (optimize_size checks): Replace them by appropriate
3989 predicate.
3990 (standard_80387_constant_p, ix86_compute_frame_layout,
3991 ix86_expand_epilogue, ix86_decompose_address,
3992 print_operand, emit_i387_cw_initialization,
3993 inline_memory_move_cost, ix86_pad_returns,
3994 ix86_reorg): Replace optimize_size checks.
3995
3996 2008-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3997
3998 * rtl.h (simplify_subreg_regno): Declare.
3999 * rtlanal.c (simplify_subreg_regno): New function, split out from...
4000 * simplify-rtx.c (simplify_subreg): ...here.
4001 * reload.c (find_reloads): Use simplify_subreg_regno instead of
4002 subreg_offset_representable_p.
4003
4004 2008-08-28 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4005
4006 PR c/30949
4007 * c-typeck.c (convert_for_assignment): Give a note describing what
4008 was passed and what was expected.
4009
4010 2008-08-28 Joey Ye <joey.ye@intel.com>
4011
4012 * doc/extend.texi: Document AVX built-in functions.
4013 * doc/invoke.texi: Document -mavx.
4014
4015 2008-08-28 H.J. Lu <hongjiu.lu@intel.com>
4016 Joey Ye <joey.ye@intel.com>
4017 Xuepeng Guo <xuepeng.guo@intel.com>
4018
4019 * config.gcc (extra_headers): Add gmmintrin.h for x86 and x86-64.
4020
4021 * config/i386/cpuid.h (bit_FMA): New.
4022 (bit_XSAVE): Likewise.
4023 (bit_OSXSAVE): Likewise.
4024 (bit_AVX): Likewise.
4025
4026 * config/i386/gas.h (ASM_OUTPUT_OPCODE): Undefine before
4027 define. Use ASM_OUTPUT_AVX_PREFIX.
4028
4029 * config/i386/gmmintrin.h: New.
4030
4031 * config/i386/i386.c (x86_64_reg_class): Add X86_64_AVX_CLASS.
4032 (OPTION_MASK_ISA_AVX_SET): New.
4033 (OPTION_MASK_ISA_FMA_SET): Likewise.
4034 (OPTION_MASK_ISA_AVX_UNSET): Likewise.
4035 (OPTION_MASK_ISA_FMA_SET): Likewise.
4036 (OPTION_MASK_ISA_SSE4_2_UNSET): Updated.
4037 (ix86_handle_option): Handle OPT_mavx and OPT_mfma.
4038 (pta_flags): Add PTA_AVX and PTA_FMA.
4039 (override_options): Handle PTA_AVX and PTA_FMA.
4040 (init_cumulative_args): Handle warn_avx.
4041 (classify_argument): Return 0 for COImode and OImode. Return
4042 1 and X86_64_AVX_CLASS for 256bit vector types.
4043 (examine_argument): Handle X86_64_AVX_CLASS.
4044 (construct_container): Likewise.
4045 (function_arg_advance_32): Pass OImode and 256bit vector types
4046 in AVX register.
4047 (function_arg_advance_64): Take a new argument to indicate if a
4048 parameter is named. Handle 256bit vector types. Return
4049 immediately for unnamed 256bit vector mode parameters.
4050 (function_arg_advance): Updated.
4051 (function_arg_32): Add comments for TImode. Handle OImode
4052 and 256bit vector types.
4053 (function_arg_64): Take a new argument to indicate if a
4054 parameter is named. Handle 256bit vector types. Return NULL
4055 for unnamed 256bit vector mode parameters.
4056 (function_arg): Updated.
4057 (setup_incoming_varargs_64): Support
4058 AVX encoding for *sse_prologue_save_insn.
4059 (ix86_gimplify_va_arg): Handle 256bit vector mode parameters.
4060 (standard_sse_constant_p): Return -2 for all 1s if SSE2 isn't
4061 enabled. For all 1s in 256bit vector modes, return 3 if AVX is
4062 enabled, otherwise return -3.
4063 (standard_sse_constant_opcode): Handle AVX and 256bit vector
4064 modes.
4065 (print_reg): Support AVX registers. Handle 'x' and 't'.
4066 Handle 'd' to duplicate the operand.
4067 (print_operand): Likewise. Also support AVX vector compare
4068 instructions.
4069 (output_387_binary_op): Support AVX.
4070 (output_fp_compare): Likewise.
4071 (ix86_expand_vector_move_misalign): Likewise.
4072 (ix86_attr_length_vex_default): New.
4073 (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
4074 IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
4075 IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
4076 IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
4077 IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_BLENDPD256,
4078 IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
4079 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DIVPD256,
4080 IX86_BUILTIN_DIVPS256, IX86_BUILTIN_DPPS256,
4081 IX86_BUILTIN_HADDPD256, IX86_BUILTIN_HADDPS256,
4082 IX86_BUILTIN_HSUBPD256, IX86_BUILTIN_HSUBPS256,
4083 IX86_BUILTIN_MAXPD256, IX86_BUILTIN_MAXPS256,
4084 IX86_BUILTIN_MINPD256, IX86_BUILTIN_MINPS256,
4085 IX86_BUILTIN_MULPD256, IX86_BUILTIN_MULPS256,
4086 IX86_BUILTIN_ORPD256, IX86_BUILTIN_ORPS256,
4087 IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
4088 IX86_BUILTIN_SUBPD256, IX86_BUILTIN_SUBPS256,
4089 IX86_BUILTIN_XORPD256, IX86_BUILTIN_XORPS256,
4090 IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
4091 IX86_BUILTIN_CMPPS, IX86_BUILTIN_CMPPD256,
4092 IX86_BUILTIN_CMPPS256, IX86_BUILTIN_CVTDQ2PD256,
4093 IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
4094 IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
4095 IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
4096 IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_EXTRACTF128PD256,
4097 IX86_BUILTIN_EXTRACTF128PS256, IX86_BUILTIN_EXTRACTF128SI256,
4098 IX86_BUILTIN_VZEROALL, IX86_BUILTIN_VZEROUPPER,
4099 IX86_BUILTIN_VZEROUPPER_REX64, IX86_BUILTIN_VPERMILVARPD,
4100 IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
4101 IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_VPERMILPD,
4102 IX86_BUILTIN_VPERMILPS, IX86_BUILTIN_VPERMILPD256,
4103 IX86_BUILTIN_VPERMILPS256, IX86_BUILTIN_VPERMIL2PD,
4104 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256,
4105 IX86_BUILTIN_VPERMIL2PS256, IX86_BUILTIN_VPERM2F128PD256,
4106 IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
4107 IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
4108 IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
4109 IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_VINSERTF128PD256,
4110 IX86_BUILTIN_VINSERTF128PS256, IX86_BUILTIN_VINSERTF128SI256,
4111 IX86_BUILTIN_LOADUPD256, IX86_BUILTIN_LOADUPS256,
4112 IX86_BUILTIN_STOREUPD256, IX86_BUILTIN_STOREUPS256,
4113 IX86_BUILTIN_LDDQU256, IX86_BUILTIN_LOADDQU256,
4114 IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_MASKLOADPD,
4115 IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKSTOREPD,
4116 IX86_BUILTIN_MASKSTOREPS, IX86_BUILTIN_MASKLOADPD256,
4117 IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKSTOREPD256,
4118 IX86_BUILTIN_MASKSTOREPS256, IX86_BUILTIN_MOVSHDUP256,
4119 IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
4120 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
4121 IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
4122 IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
4123 IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
4124 IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
4125 IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
4126 IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
4127 IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
4128 IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
4129 IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
4130 IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
4131 IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
4132 IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
4133 IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
4134 IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
4135 IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
4136 IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256
4137 and IX86_BUILTIN_MOVMSKPS256,
4138 (ix86_special_builtin_type): Add V32QI_FTYPE_PCCHAR,
4139 V8SF_FTYPE_PCV4SF, V8SF_FTYPE_PCFLOAT, V4DF_FTYPE_PCV2DF,
4140 V4DF_FTYPE_PCDOUBLE, V8SF_FTYPE_PCV8SF_V8SF,
4141 V4DF_FTYPE_PCV4DF_V4DF, V4SF_FTYPE_PCV4SF_V4SF,
4142 V2DF_FTYPE_PCV2DF_V2DF, VOID_FTYPE_PCHAR_V32QI,
4143 VOID_FTYPE_PFLOAT_V8SF, VOID_FTYPE_PDOUBLE_V4DF,
4144 VOID_FTYPE_PV8SF_V8SF_V8SF, VOID_FTYPE_PV4DF_V4DF_V4DF,
4145 VOID_FTYPE_PV4SF_V4SF_V4SF and VOID_FTYPE_PV2DF_V2DF_V2DF,
4146 (ix86_builtin_type): Add INT_FTYPE_V8SF_V8SF_PTEST,
4147 INT_FTYPE_V4DI_V4DI_PTEST, INT_FTYPE_V4DF_V4DF_PTEST,
4148 INT_FTYPE_V4SF_V4SF_PTEST, INT_FTYPE_V2DF_V2DF_PTEST,
4149 INT_FTYPE_V8SF, INT_FTYPE_V4DF, V8SI_FTYPE_V8SF, V8SI_FTYPE_V4SI,
4150 V8SF_FTYPE_V8SF, V8SF_FTYPE_V8SI, V8SF_FTYPE_V4SF,
4151 V4SI_FTYPE_V8SI, V4SI_FTYPE_V4DF, V4DF_FTYPE_V4DF,
4152 V4DF_FTYPE_V4SI, V4DF_FTYPE_V4SF, V4DF_FTYPE_V2DF,
4153 V4SF_FTYPE_V4DF, V4SF_FTYPE_V8SF, V2DF_FTYPE_V4DF,
4154 V8SF_FTYPE_V8SF_V8SF, V8SF_FTYPE_V8SF_V8SI,
4155 V4DF_FTYPE_V4DF_V4DF, V4DF_FTYPE_V4DF_V4DI,
4156 V4SF_FTYPE_V4SF_V4SI, V2DF_FTYPE_V2DF_V2DI,
4157 V8SF_FTYPE_V8SF_INT, V4SI_FTYPE_V8SI_INT, V4SF_FTYPE_V8SF_INT,
4158 V2DF_FTYPE_V4DF_INT, V4DF_FTYPE_V4DF_INT,
4159 V8SF_FTYPE_V8SF_V8SF_V8SF, V4DF_FTYPE_V4DF_V4DF_V4DF,
4160 V8SI_FTYPE_V8SI_V8SI_INT, V8SF_FTYPE_V8SF_V8SF_INT,
4161 V4DF_FTYPE_V4DF_V4DF_INT, V4DF_FTYPE_V4DF_V2DF_INT,
4162 V8SF_FTYPE_V8SF_V8SF_V8SI_INT, V4DF_FTYPE_V4DF_V4DF_V4DI_INT,
4163 V4SF_FTYPE_V4SF_V4SF_V4SI_INT and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
4164 (bdesc_special_args): Add IX86_BUILTIN_VZEROALL,
4165 IX86_BUILTIN_VZEROUPPER. IX86_BUILTIN_VZEROUPPER_REX64,
4166 IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
4167 IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
4168 IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_LOADUPD256,
4169 IX86_BUILTIN_LOADUPS256, IX86_BUILTIN_STOREUPD256,
4170 IX86_BUILTIN_STOREUPS256, IX86_BUILTIN_LOADDQU256,
4171 IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_LDDQU256,
4172 IX86_BUILTIN_MASKLOADPD, IX86_BUILTIN_MASKLOADPS,
4173 IX86_BUILTIN_MASKLOADPD256, IX86_BUILTIN_MASKLOADPS256,
4174 IX86_BUILTIN_MASKSTOREPD, IX86_BUILTIN_MASKSTOREPS,
4175 IX86_BUILTIN_MASKSTOREPD256 and IX86_BUILTIN_MASKSTOREPS256.
4176 (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
4177 IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
4178 IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
4179 IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
4180 IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_DIVPD256,
4181 IX86_BUILTIN_DIVPS256, IX86_BUILTIN_HADDPD256,
4182 IX86_BUILTIN_HSUBPS256, IX86_BUILTIN_HSUBPD256,
4183 IX86_BUILTIN_HADDPS256, IX86_BUILTIN_MAXPD256,
4184 IX86_BUILTIN_MAXPS256, IX86_BUILTIN_MINPD256,
4185 IX86_BUILTIN_MINPS256, IX86_BUILTIN_MULPD256,
4186 IX86_BUILTIN_MULPS256, IX86_BUILTIN_ORPD256,
4187 IX86_BUILTIN_ORPS256, IX86_BUILTIN_SUBPD256,
4188 IX86_BUILTIN_SUBPS256, IX86_BUILTIN_XORPD256,
4189 IX86_BUILTIN_XORPS256, IX86_BUILTIN_VPERMILVARPD,
4190 IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
4191 IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_BLENDPD256,
4192 IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
4193 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DPPS256,
4194 IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
4195 IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
4196 IX86_BUILTIN_CMPPS,
4197 IX86_BUILTIN_CMPPD256,IX86_BUILTIN_CMPPS256,
4198 IX86_BUILTIN_EXTRACTF128PD256, IX86_BUILTIN_EXTRACTF128PS256,
4199 IX86_BUILTIN_EXTRACTF128SI256, IX86_BUILTIN_CVTDQ2PD256,
4200 IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
4201 IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
4202 IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
4203 IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_VPERM2F128PD256,
4204 IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
4205 IX86_BUILTIN_VPERMILPD, IX86_BUILTIN_VPERMILPS,
4206 IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
4207 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMILPS,
4208 IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
4209 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
4210 IX86_BUILTIN_VPERMIL2PD256, IX86_BUILTIN_VPERMIL2PS256,
4211 IX86_BUILTIN_VINSERTF128PD256, IX86_BUILTIN_VINSERTF128PS256,
4212 IX86_BUILTIN_VINSERTF128SI256, IX86_BUILTIN_MOVSHDUP256,
4213 IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
4214 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
4215 IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
4216 IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
4217 IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
4218 IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
4219 IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
4220 IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
4221 IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
4222 IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
4223 IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
4224 IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
4225 IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
4226 IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
4227 IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
4228 IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
4229 IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
4230 IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256 and
4231 IX86_BUILTIN_MOVMSKPS256.
4232 (ix86_init_mmx_sse_builtins): Support AVX builtins.
4233 (ix86_expand_args_builtin): Likewise.
4234 (ix86_expand_special_args_builtin): Likewise.
4235 (ix86_hard_regno_mode_ok): Handle AVX modes.
4236 (ix86_expand_vector_init_duplicate): Likewise.
4237 (ix86_expand_vector_init_one_nonzero): Likewise.
4238 (ix86_expand_vector_init_one_var): Likewise.
4239 (ix86_expand_vector_init_concat): Likewise.
4240 (ix86_expand_vector_init_general): Likewise.
4241 (ix86_expand_vector_set): Likewise.
4242 (ix86_vector_mode_supported_p): Likewise.
4243 (x86_extended_reg_mentioned_p): Check INSN_P before using
4244 PATTERN.
4245
4246 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
4247 OPTION_MASK_ISA_AVX and OPTION_MASK_ISA_FMA.
4248
4249 * config/i386/i386.h (TARGET_AVX): New.
4250 (TARGET_FMA): Likewise.
4251 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AVX and TARGET_FMA.
4252 (BIGGEST_ALIGNMENT): Set to 256 for TARGET_AVX.
4253 (VALID_AVX256_REG_MODE): New.
4254 (AVX256_VEC_FLOAT_MODE_P): Likewise.
4255 (AVX_FLOAT_MODE_P): Likewise.
4256 (AVX128_VEC_FLOAT_MODE_P): Likewise.
4257 (AVX256_VEC_FLOAT_MODE_P): Likewise.
4258 (AVX_VEC_FLOAT_MODE_P): Likewise.
4259 (ASM_OUTPUT_AVX_PREFIX): Likewise.
4260 (ASM_OUTPUT_OPCODE): Likewise.
4261 (UNITS_PER_SIMD_WORD): Add a FIXME for 32byte vectorizer
4262 support.
4263 (SSE_REG_MODE_P): Allow 256bit vector modes.
4264 (ix86_args): Add a warn_avx field.
4265
4266 * config/i386/i386.md (UNSPEC_PCMP): New.
4267 (UNSPEC_VPERMIL): Likewise.
4268 (UNSPEC_VPERMIL2): Likewise.
4269 (UNSPEC_VPERMIL2F128): Likewise.
4270 (UNSPEC_MASKLOAD): Likewise.
4271 (UNSPEC_MASKSTORE): Likewise.
4272 (UNSPEC_CAST): Likewise.
4273 (UNSPEC_VTESTP): Likewise.
4274 (UNSPECV_VZEROALL): Likewise.
4275 (UNSPECV_VZEROUPPER): Likewise.
4276 (XMM0_REG): Likewise.
4277 (XMM1_REG): Likewise.
4278 (XMM2_REG): Likewise.
4279 (XMM3_REG): Likewise.
4280 (XMM4_REG): Likewise.
4281 (XMM5_REG): Likewise.
4282 (XMM6_REG): Likewise.
4283 (XMM8_REG): Likewise.
4284 (XMM9_REG): Likewise.
4285 (XMM10_REG): Likewise.
4286 (XMM11_REG): Likewise.
4287 (XMM12_REG): Likewise.
4288 (XMM13_REG): Likewise.
4289 (XMM14_REG): Likewise.
4290 (XMM15_REG): Likewise.
4291 (prefix): Likewise.
4292 (prefix_vex_imm8): Likewise.
4293 (prefix_vex_w): Likewise.
4294 (length_vex): Likewise.
4295 (maxmin): Likewise.
4296 (movoi): Likewise.
4297 (*avx_ashlti3): Likewise.
4298 (*avx_lshrti3): Likewise.
4299 (*avx_setcc<mode>): Likewise.
4300 (*fop_<mode>_comm_mixed_avx): Likewise.
4301 (*fop_<mode>_comm_avx): Likewise.
4302 (*fop_<mode>_1_mixed_avx): Likewise.
4303 (*fop_<mode>_1_avx): Likewise.
4304 (*avx_<code><mode>3): Likewise.
4305 (*avx_ieee_smin<mode>3): Likewise.
4306 (*avx_ieee_smax<mode>3): Likewise.
4307 (mode): Add OI, V8SF and V4DF.
4308 (length): Support VEX prefix.
4309 (*cmpfp_i_mixed): Set prefix attribute.
4310 (*cmpfp_i_sse): Likewise.
4311 (*cmpfp_iu_mixed): Likewise.
4312 (*cmpfp_iu_sse): Likewise.
4313 (*movsi_1): Support AVX.
4314 (*movdi_2): Likewise.
4315 (*movdi_1_rex64): Likewise.
4316 (*movti_internal): Likewise.
4317 (*movti_rex64): Likewise.
4318 (*movsf_1): Likewise.
4319 (*movdf_nointeger): Likewise.
4320 (*movdf_integer_rex64): Likewise.
4321 (*movtf_internal): Likewise.
4322 (zero_extendsidi2_32): Likewise.
4323 (zero_extendsidi2_rex64): Likewise.
4324 (*extendsfdf2_mixed): Likewise.
4325 (*extendsfdf2_sse): Likewise.
4326 (*truncdfsf_fast_mixed): Likewise.
4327 (*truncdfsf_fast_sse): Likewise.
4328 (*truncdfsf_mixed): Likewise.
4329 (fix_trunc<mode>di_sse): Likewise.
4330 (fix_trunc<mode>si_sse): Likewise.
4331 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
4332 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
4333 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
4334 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
4335 (*rcpsf2_sse): Likewise.
4336 (*rsqrtsf2_sse): Likewise.
4337 (*sqrt<mode>2_sse): Likewise.
4338 (sse4_1_round<mode>2): Likewise.
4339 (*sse_prologue_save_insn): Disallow REX prefix for AVX.
4340 Support AVX. Set length attribute properly for AVX.
4341
4342 * config/i386/i386-modes.def (VECTOR_MODES (INT, 32)): New.
4343 (VECTOR_MODES (FLOAT, 32)): Likewise.
4344 (VECTOR_MODE (INT, DI, 8)): Likewise.
4345 (VECTOR_MODE (INT, HI, 32)): Likewise.
4346 (VECTOR_MODE (INT, QI, 64)): Likewise.
4347 (VECTOR_MODE (FLOAT, DF, 8)): Likewise.
4348 (VECTOR_MODE (FLOAT, SF, 16)): Likewise.
4349 (VECTOR_MODE (INT, DI, 4)): Removed.
4350 (VECTOR_MODE (INT, SI, 8)): Likewise.
4351 (VECTOR_MODE (INT, HI, 16)): Likewise.
4352 (VECTOR_MODE (INT, QI, 32)): Likewise.
4353 (VECTOR_MODE (FLOAT, SF, 8)): Likewise.
4354 (INT_MODE (OI, 32)): Likewise.
4355
4356 * config/i386/i386.opt (mavx): New.
4357 (mfma): Likewise.
4358
4359 * config/i386/i386-protos.h (ix86_attr_length_vex_default): New.
4360
4361 * config/i386/mmx.md (*mov<mode>_internal_rex64): Support AVX.
4362 (*mov<mode>_internal_avx): New.
4363 (*movv2sf_internal_rex64_avx): Likewise.
4364 (*movv2sf_internal_avx): Likewise.
4365
4366 * config/i386/predicates.md (const_4_to_5_operand): New.
4367 (const_6_to_7_operand): Likewise.
4368 (const_8_to_11_operand): Likewise.
4369 (const_12_to_15_operand): Likewise.
4370 (avx_comparison_float_operator): Likewise.
4371
4372 * config/i386/sse.md (AVX256MODEI): New.
4373 (AVX256MODE): Likewise.
4374 (AVXMODEQI): Likewise.
4375 (AVXMODE): Likewise.
4376 (AVX256MODEF2P): Likewise.
4377 (AVX256MODE2P): Likewise.
4378 (AVX256MODE4P): Likewise.
4379 (AVX256MODE8P): Likewise.
4380 (AVXMODEF2P): Likewise.
4381 (AVXMODEF4P): Likewise.
4382 (AVXMODEDCVTDQ2PS): Likewise.
4383 (AVXMODEDCVTPS2DQ): Likewise.
4384 (avxvecmode): Likewise.
4385 (avxvecpsmode): Likewise.
4386 (avxhalfvecmode): Likewise.
4387 (avxscalarmode): Likewise.
4388 (avxcvtvecmode): Likewise.
4389 (avxpermvecmode): Likewise.
4390 (avxmodesuffixf2c): Likewise.
4391 (avxmodesuffixp): Likewise.
4392 (avxmodesuffixs): Likewise.
4393 (avxmodesuffix): Likewise.
4394 (vpermilbits): Likewise.
4395 (pinsrbits): Likewise.
4396 (mov<mode>): Likewise.
4397 (*mov<mode>_internal): Likewise.
4398 (push<mode>1): Likewise.
4399 (movmisalign<mode>): Likewise.
4400 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Likewise.
4401 (avx_movdqu<avxmodesuffix>): Likewise.
4402 (avx_lddqu<avxmodesuffix>): Likewise.
4403 (<plusminus_insn><mode>3): Likewise.
4404 (*avx_<plusminus_insn><mode>3): Likewise.
4405 (*avx_vm<plusminus_insn><mode>3): Likewise.
4406 (mul<mode>3): Likewise.
4407 (*avx_mul<mode>3): Likewise.
4408 (*avx_vmmul<mode>3): Likewise.
4409 (divv8sf3): Likewise.
4410 (divv4df3): Likewise.
4411 (avx_div<mode>3): Likewise.
4412 (*avx_div<mode>3): Likewise.
4413 (*avx_vmdiv<mode>3): Likewise.
4414 (avx_rcpv8sf2): Likewise.
4415 (*avx_vmrcpv4sf2): Likewise.
4416 (sqrtv8sf2): Likewise.
4417 (avx_sqrtv8sf2): Likewise.
4418 (*avx_vmsqrt<mode>2): Likewise.
4419 (rsqrtv8sf2): Likewise.
4420 (avx_rsqrtv8sf2): Likewise.
4421 (*avx_vmrsqrtv4sf2): Likewise.
4422 (<code><mode>3): Likewise.
4423 (*avx_<code><mode>3_finite): Likewise.
4424 (*avx_<code><mode>3): Likewise.
4425 (*avx_vm<code><mode>3): Likewise.
4426 (*avx_ieee_smin<mode>3): Likewise.
4427 (*avx_ieee_smax<mode>3): Likewise.
4428 (avx_addsubv8sf3): Likewise.
4429 (avx_addsubv4df3): Likewise.
4430 (*avx_addsubv4sf3): Likewise.
4431 (*avx_addsubv2df3): Likewise.
4432 (avx_h<plusminus_insn>v4df3): Likewise.
4433 (avx_h<plusminus_insn>v8sf3): Likewise.
4434 (*avx_h<plusminus_insn>v4sf3): Likewise.
4435 (*avx_h<plusminus_insn>v2df3): Likewise.
4436 (avx_cmpp<avxmodesuffixf2c><mode>3): Likewise.
4437 (avx_cmps<ssemodesuffixf2c><mode>3): Likewise.
4438 (*avx_maskcmp<mode>3): Likewise.
4439 (avx_nand<mode>3): Likewise.
4440 (*avx_<code><mode>3): Likewise.
4441 (*avx_nand<mode>3): Likewise.
4442 (*avx_<code><mode>3): Likewise.
4443 (*avx_cvtsi2ss): Likewise.
4444 (*avx_cvtsi2ssq): Likewise.
4445 (*avx_cvtsi2sd): Likewise.
4446 (*avx_cvtsi2sdq): Likewise.
4447 (*avx_cvtsd2ss): Likewise.
4448 (avx_cvtss2sd): Likewise.
4449 (avx_cvtdq2ps<avxmodesuffix>): Likewise.
4450 (avx_cvtps2dq<avxmodesuffix>): Likewise.
4451 (avx_cvttps2dq<avxmodesuffix>): Likewise.
4452 (*avx_cvtsi2sd): Likewise.
4453 (*avx_cvtsi2sdq): Likewise.
4454 (avx_cvtdq2pd256): Likewise.
4455 (avx_cvtpd2dq256): Likewise.
4456 (avx_cvttpd2dq256): Likewise.
4457 (*avx_cvtsd2ss): Likewise.
4458 (*avx_cvtss2sd): Likewise.
4459 (avx_cvtpd2ps256): Likewise.
4460 (avx_cvtps2pd256): Likewise.
4461 (*avx_movhlps): Likewise.
4462 (*avx_movlhps): Likewise.
4463 (avx_unpckhps256): Likewise.
4464 (*avx_unpckhps): Likewise.
4465 (avx_unpcklps256): Likewise.
4466 (*avx_unpcklps): Likewise.
4467 (avx_movshdup256): Likewise.
4468 (avx_movsldup256): Likewise.
4469 (avx_shufps256): Likewise.
4470 (avx_shufps256_1): Likewise.
4471 (*avx_shufps_<mode>): Likewise.
4472 (*avx_loadhps): Likewise.
4473 (*avx_storelps): Likewise.
4474 (*avx_loadlps): Likewise.
4475 (*avx_movss): Likewise.
4476 (*vec_dupv4sf_avx): Likewise.
4477 (*vec_concatv2sf_avx): Likewise.
4478 (*vec_concatv4sf_avx): Likewise.
4479 (*vec_setv4sf_0_avx): Likewise.
4480 (*vec_setv4sf_avx): Likewise.
4481 (*avx_insertps): Likewise.
4482 (avx_vextractf128<mode>): Likewise.
4483 (vec_extract_lo_<mode>): Likewise.
4484 (vec_extract_hi_<mode>): Likewise.
4485 (vec_extract_lo_<mode>): Likewise.
4486 (vec_extract_hi_<mode>): Likewise.
4487 (vec_extract_lo_v16hi): Likewise.
4488 (vec_extract_hi_v16hi): Likewise.
4489 (vec_extract_lo_v32qi): Likewise.
4490 (vec_extract_hi_v32qi): Likewise.
4491 (avx_unpckhpd256): Likewise.
4492 (*avx_unpckhpd): Likewise.
4493 (avx_movddup256): Likewise.
4494 (*avx_movddup): Likewise.
4495 (avx_unpcklpd256): Likewise.
4496 (*avx_unpcklpd): Likewise.
4497 (avx_shufpd256): Likewise.
4498 (avx_shufpd256_1): Likewise.
4499 (*avx_punpckhqdq): Likewise.
4500 (*avx_punpcklqdq): Likewise.
4501 (*avx_shufpd_<mode>): Likewise.
4502 (*avx_storehpd): Likewise.
4503 (*avx_loadhpd): Likewise.
4504 (*avx_loadlpd): Likewise.
4505 (*avx_movsd): Likewise.
4506 (*vec_concatv2df_avx): Likewise.
4507 (*avx_<plusminus_insn><mode>3): Likewise.
4508 (*avx_<plusminus_insn><mode>3): Likewise.
4509 (*avx_mulv8hi3): Likewise.
4510 (*avxv8hi3_highpart): Likewise.
4511 (*avx_umulv8hi3_highpart): Likewise.
4512 (*avx_umulv2siv2di3): Likewise.
4513 (*avx_mulv2siv2di3): Likewise.
4514 (*avx_pmaddwd): Likewise.
4515 (*avx_mulv4si3): Likewise.
4516 (*avx_ashr<mode>3): Likewise.
4517 (*avx_lshr<mode>3): Likewise.
4518 (*avx_ashl<mode>3): Likewise.
4519 (*avx_<code><mode>3): Likewise.
4520 (*avx_eq<mode>3): Likewise.
4521 (*avx_gt<mode>3): Likewise.
4522 (*avx_nand<mode>3): Likewise.
4523 (*avx_nand<mode>3): Likewise.
4524 (*avx_<code><mode>3): Likewise.
4525 (*avx_<code><mode>3): Likewise.
4526 (*avx_packsswb): Likewise.
4527 (*avx_packssdw): Likewise.
4528 (*avx_packuswb): Likewise.
4529 (*avx_punpckhbw): Likewise.
4530 (*avx_punpcklbw): Likewise.
4531 (*avx_punpckhwd): Likewise.
4532 (*avx_punpcklwd): Likewise.
4533 (*avx_punpckhdq): Likewise.
4534 (*avx_punpckldq): Likewise.
4535 (*avx_pinsr<avxmodesuffixs>): Likewise.
4536 (*avx_pinsrq): Likewise.
4537 (*avx_loadld): Likewise.
4538 (*vec_extractv2di_1_rex64_avx): Likewise.
4539 (*vec_extractv2di_1_avx): Likewise.
4540 (*vec_dupv2di_avx): Likewise.
4541 (*vec_concatv2si_avx): Likewise.
4542 (*vec_concatv4si_1_avx): Likewise.
4543 (*vec_concatv2di_avx): Likewise.
4544 (*vec_concatv2di_rex64_avx): Likewise.
4545 (*avx_uavgv16qi3): Likewise.
4546 (*avx_uavgv8hi3): Likewise.
4547 (*avx_psadbw): Likewise.
4548 (avx_movmskp<avxmodesuffixf2c>256): Likewise.
4549 (*avx_phaddwv8hi3): Likewise.
4550 (*avx_phadddv4si3): Likewise.
4551 (*avx_phaddswv8hi3): Likewise.
4552 (*avx_phsubwv8hi3): Likewise.
4553 (*avx_phsubdv4si3): Likewise.
4554 (*avx_phsubswv8hi3): Likewise.
4555 (*avx_pmaddubsw128): Likewise.
4556 (*avx_pmulhrswv8hi3): Likewise.
4557 (*avx_pshufbv16qi3): Likewise.
4558 (*avx_psign<mode>3): Likewise.
4559 (*avx_palignrti): Likewise.
4560 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
4561 (avx_blendvp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
4562 (avx_dpp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
4563 (*avx_mpsadbw): Likewise.
4564 (*avx_packusdw): Likewise.
4565 (*avx_pblendvb): Likewise.
4566 (*avx_pblendw): Likewise.
4567 (avx_vtestp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
4568 (avx_ptest256): Likewise.
4569 (avx_roundp<avxmodesuffixf2c>256): Likewise.
4570 (*avx_rounds<ssemodesuffixf2c>): Likewise.
4571 (*avx_aesenc): Likewise.
4572 (*avx_aesenclast): Likewise.
4573 (*avx_aesdec): Likewise.
4574 (*avx_aesdeclast): Likewise.
4575 (avx_vzeroupper): Likewise.
4576 (avx_vzeroupper_rex64): Likewise.
4577 (avx_vpermil<mode>): Likewise.
4578 (avx_vpermilvar<mode>3): Likewise.
4579 (avx_vpermil2<mode>3): Likewise.
4580 (avx_vperm2f128<mode>3): Likewise.
4581 (avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>): Likewise.
4582 (avx_vbroadcastss256): Likewise.
4583 (avx_vbroadcastf128_p<avxmodesuffixf2c>256): Likewise.
4584 (avx_vinsertf128<mode>): Likewise.
4585 (vec_set_lo_<mode>): Likewise.
4586 (vec_set_hi_<mode>): Likewise.
4587 (vec_set_lo_<mode>): Likewise.
4588 (vec_set_hi_<mode>): Likewise.
4589 (vec_set_lo_v16hi): Likewise.
4590 (vec_set_hi_v16hi): Likewise.
4591 (vec_set_lo_v32qi): Likewise.
4592 (vec_set_hi_v32qi): Likewise.
4593 (avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
4594 (avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>): Likewise.
4595 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
4596 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Likewise.
4597 (vec_init<mode>): Likewise.
4598 (*vec_concat<mode>_avx): Likewise.
4599 (blendbits): Support V8SF and V4DF.
4600 (sse2_movq128): Support AVX.
4601 (<sse>_movnt<mode>): Likewise.
4602 (sse2_movntv2di): Likewise.
4603 (sse_rcpv4sf2): Likewise.
4604 (sse_sqrtv4sf2): Likewise.
4605 (sse_rsqrtv4sf2): Likewise.
4606 (<sse>_comi): Likewise.
4607 (<sse>_ucomi): Likewise.
4608 (sse_cvtss2si): Likewise.
4609 (sse_cvtss2si_2): Likewise.
4610 (sse_cvtss2siq): Likewise.
4611 (sse_cvtss2siq_2): Likewise.
4612 (sse_cvttss2si): Likewise.
4613 (sse_cvttss2siq): Likewise.
4614 (sse2_cvtsd2si): Likewise.
4615 (sse2_cvtsd2si_2): Likewise.
4616 (sse2_cvtsd2siq): Likewise.
4617 (sse2_cvtsd2siq_2): Likewise.
4618 (sse2_cvttsd2si): Likewise.
4619 (sse2_cvttsd2siq): Likewise.
4620 (sse2_cvtdq2pd): Likewise.
4621 (*sse2_cvtpd2dq): Likewise.
4622 (*sse2_cvttpd2dq): Likewise.
4623 (*sse2_cvtpd2ps): Likewise.
4624 (sse2_cvtps2pd): Likewise.
4625 (sse3_movshdup): Likewise.
4626 (sse3_movsldup): Likewise.
4627 (sse_storehps): Likewise.
4628 (*sse4_1_extractps): Likewise.
4629 (sse2_storelpd): Likewise.
4630 (vec_dupv2df_sse3): Likewise.
4631 (*vec_concatv2df_sse3): Likewise.
4632 (*sse4_1_pextrb): Likewise.
4633 (*sse4_1_pextrb_memory): Likewise.
4634 (*sse2_pextrw): Likewise.
4635 (*sse4_1_pextrw_memory): Likewise.
4636 (*sse4_1_pextrd): Likewise.
4637 (*sse4_1_pextrq): Likewise.
4638 (sse2_pshufd_1): Likewise.
4639 (sse2_pshuflw_1): Likewise.
4640 (sse2_pshufhw_1): Likewise.
4641 (*sse2_storeq_rex64): Likewise.
4642 (*vec_dupv4si): Likewise.
4643 (<sse>_movmskp<ssemodesuffixf2c>): Likewise.
4644 (sse2_pmovmskb): Likewise.
4645 (*sse2_maskmovdqu): Likewise.
4646 (*sse2_maskmovdqu_rex64): Likewise.
4647 (sse_ldmxcsr): Likewise.
4648 (sse_stmxcsr): Likewise.
4649 (abs<mode>2): Likewise.
4650 (sse4_1_movntdqa): Likewise.
4651 (sse4_1_phminposuw): Likewise.
4652 (sse4_1_extendv8qiv8hi2): Likewise.
4653 (*sse4_1_extendv8qiv8hi2): Likewise.
4654 (sse4_1_extendv4qiv4si2): Likewise.
4655 (*sse4_1_extendv4qiv4si2): Likewise.
4656 (sse4_1_extendv2qiv2di2): Likewise.
4657 (*sse4_1_extendv2qiv2di2): Likewise.
4658 (sse4_1_extendv4hiv4si2): Likewise.
4659 (*sse4_1_extendv4hiv4si2): Likewise.
4660 (sse4_1_extendv2hiv2di2): Likewise.
4661 (*sse4_1_extendv2hiv2di2): Likewise.
4662 (sse4_1_extendv2siv2di2): Likewise.
4663 (*sse4_1_extendv2siv2di2): Likewise.
4664 (sse4_1_zero_extendv8qiv8hi2): Likewise.
4665 (*sse4_1_zero_extendv8qiv8hi2): Likewise.
4666 (sse4_1_zero_extendv4qiv4si2): Likewise.
4667 (*sse4_1_zero_extendv4qiv4si2): Likewise.
4668 (sse4_1_zero_extendv2qiv2di2): Likewise.
4669 (*sse4_1_zero_extendv2qiv2di2): Likewise.
4670 (sse4_1_zero_extendv4hiv4si2): Likewise.
4671 (*sse4_1_zero_extendv4hiv4si2): Likewise.
4672 (sse4_1_zero_extendv2hiv2di2): Likewise.
4673 (*sse4_1_zero_extendv2hiv2di2): Likewise.
4674 (sse4_1_zero_extendv2siv2di2): Likewise.
4675 (*sse4_1_zero_extendv2siv2di2): Likewise.
4676 (sse4_1_ptest): Likewise.
4677 (sse4_1_roundp<ssemodesuffixf2c>): Likewise.
4678 (sse4_2_pcmpestri): Likewise.
4679 (sse4_2_pcmpestrm): Likewise.
4680 (sse4_2_pcmpistri): Likewise.
4681 (sse4_2_pcmpistrm): Likewise.
4682 (aesimc): Likewise.
4683 (aeskeygenassist): Likewise.
4684
4685 2008-08-28 Uros Bizjak <ubizjak@gmail.com>
4686
4687 * config/i386/predicates.md (vzeroall_operation): New.
4688
4689 * config/i386/sse.md (avx_vzeroall): New.
4690 (*avx_vzeroall): Likewise.
4691
4692 2008-08-28 Paul Brook <paul@codesourcery.com>
4693 Mark Shinwell <shinwell@codesourcery.com>
4694 Richard Earnshaw <richard.earnshaw@arm.com>
4695
4696 * config/arm/arm.c (TARGET_MAX_ANCHOR_OFFSET): New.
4697 (TARGET_MIN_ANCHOR_OFFSET): New.
4698 (arm_override_options): Set correct anchor ranges for Thumb-1
4699 and Thumb-2 if required.
4700 (legitimize_pic_address): Handle case involving a TLS symbol
4701 reference with an addend.
4702 (arm_optimization_options): Enable section anchors at -O1 and
4703 above.
4704 * config/arm/arm.h (OPTIMIZATION_OPTIONS): New.
4705 * config/arm/arm-protos.h (arm_optimization_options): New.
4706
4707 2008-08-28 Nick Clifton <nickc@redhat.com>
4708
4709 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Define.
4710 * config/stormy16/stormy16.md (zero_extendqihi2): Fix length
4711 attribute.
4712
4713 * config/v850/v850.h (IRA_COVER_CLASSES): Define.
4714 * config/v850/v850.md (return): Remove frame size restriction.
4715
4716 * config/mcore/mcore.h (IRA_COVER_CLASSES): Define.
4717
4718 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Define.
4719
4720 * config/fr30/fr30.h (IRA_COVER_CLASSES): Define.
4721
4722 * config/m32r/m32r.h (IRA_COVER_CLASSES): Define.
4723
4724 2008-08-28 Paul Brook <paul@codesourcery.com>
4725
4726 * config/arm/vfp11.md: Update license notice.
4727 * config/arm/cortex-r4.md: Ditto.
4728
4729 2008-08-28 Richard Guenther <rguenther@suse.de>
4730
4731 PR tree-optimization/37207
4732 * tree-ssa-ifcombine.c (recognize_single_bit_test): Fix
4733 tuplification bug.
4734
4735 2008-08-28 Dodji Seketeli <dodji@redhat.com>
4736
4737 PR c++/36741
4738 * tree.c (int_fits_type_p): Don't forget unsigned integers
4739 of type sizetype which higher end word equals -1.
4740
4741 2008-08-28 Ira Rosen <irar@il.ibm.com>
4742
4743 * target.h (struct vectorize): Add new target builtin.
4744 * tree-vectorizer.c (destroy_loop_vec_info): Call
4745 vect_free_slp_instance instead of vect_free_slp_node.
4746 * tree-vectorizer.h (enum slp_load_perm_type): New.
4747 (struct _slp_instance): Add new fields.
4748 (SLP_INSTANCE_LOAD_PERMUTATION): New.
4749 (SLP_INSTANCE_LOADS): New.
4750 (vect_free_slp_tree): Remove.
4751 (vect_free_slp_instance): Declare.
4752 (SLP_TREE_LOADS_PERM_TYPE, TARG_VEC_PERMUTE_COST): New.
4753 (vectorizable_load): Add argument.
4754 (vect_transform_slp_perm_load): New.
4755 * tree-vect-analyze.c (vect_analyze_operations): Add an argument to
4756 vectorizable_load.
4757 (vect_get_place_in_interleaving_chain): New function.
4758 (vect_free_slp_tree): Make static.
4759 (vect_free_slp_instance): New function.
4760 (vect_build_slp_tree): Add new arguments. Allow load permutations and
4761 collect the load location in the interleaving chain.
4762 (vect_supported_slp_permutation_p): New function.
4763 (vect_supported_load_permutation_p): Likewise.
4764 (vect_analyze_slp_instance): In case of loads permutation, call
4765 vect_supported_load_permutation_p to check that the permutation is
4766 supported.
4767 * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM): New.
4768 * tree-vect-transform.c (vect_transform_stmt): Add new argument.
4769 (vect_create_mask_and_perm): New function.
4770 (vect_get_mask_element, vect_transform_slp_perm_load): Likewise.
4771 (vectorizable_load): Add an argument. Don't keep the created vectors
4772 statements in the node if permutation is required. Call
4773 vect_transform_slp_perm_load to generate the permutation.
4774 (vect_transform_stmt): Add new argument. Call vectorizable_load with
4775 additional argument.
4776 (vect_schedule_slp_instance): In case of loads permutation, allocate
4777 vectorized statements structure for all the related SLP nodes. Call
4778 vect_transform_stmt with addditional argument.
4779 (vect_transform_loop): Call vect_transform_stmt with correct arguments.
4780 * config/spu/spu.c (spu_builtin_vec_perm): New.
4781 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
4782 * config/spu/spu.h (TARG_VEC_PERMUTE_COS): Define.
4783 * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): New.
4784 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
4785
4786 2008-08-28 Chris Fairles <chris.fairles@gmail.com>
4787
4788 * gthr-posix.h (__gthread_create, __gthread_join, __gthread_detach,
4789 __gthread_mutex_timed_lock, __gthread_recursive_mutex_timed_lock,
4790 __gthread_cond_signal, __gthread_cond_timedwait,
4791 __gthread_cond_timedwait_recursive): New functions.
4792 * gthr-posix.c (pthread_mutex_timedlock, pthread_cond_timedwait):
4793 Likewise.
4794 * gthr.h: Comment on defining __GTHREADS_CXX0X macro in conforming
4795 thread interfaces.
4796
4797 2008-08-28 Richard Guenther <rguenther@suse.de>
4798
4799 PR middle-end/37005
4800 * fold-const.c (maybe_canonicalize_comparison_1): Require
4801 undefined overflow only for canonicalizing A +- CST cmp CST.
4802 Make sure to not generate new constants that are not inside
4803 their TYPE_MIN/MAX_VALUE range.
4804 (maybe_canonicalize_comparison): Remove undefined overflow
4805 checking from here.
4806 (fold_binary): Remove now duplicate folding.
4807
4808 2008-08-27 Paolo Carlini <paolo.carlini@oracle.com>
4809
4810 * c-typeck.c (convert_for_assignment): Adjust WARN_FOR_ASSIGNMENT
4811 use not updated in the last change.
4812
4813 2008-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
4814
4815 * config/sh/sh.h (REG_CLASS_CONTENTS): Drop fr32 from FPUL_REGS.
4816 (IRA_COVER_CLASSES): Add FPUL_REGS.
4817
4818 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4819
4820 PR 37217
4821 * c-common.c (conversion_warning): Check for null operands.
4822
4823 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4824
4825 PR c/31673
4826 * c-decl.c (check_for_loop_decls): Improve error message. Give
4827 hint.
4828
4829 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4830
4831 PR c/37186
4832 * c-typeck.c (WARN_FOR_ASSIGNMENT): Add OPT parameter.
4833 (convert_for_assignment): Pass corrent OPT_W* parameter to
4834 WARN_FOR_ASSIGNMENT.
4835
4836 2008-08-27 Paolo Carlini <paolo.carlini@oracle.com>
4837
4838 PR c++/35321
4839 * c-common.c (fold_offsetof_1): Handle TARGET_EXPR like CALL_EXPR.
4840
4841 2008-08-27 Paul Brook <paul@codesourcery.com>
4842
4843 * config.gcc: Loosen checks for arm uclinux eabi targets.
4844
4845 2008-08-27 Paul Brook <paul@codesourcery.com>
4846
4847 * config/arm/t-arm-coff (LIB1ASMFUNCS): Add missing undescrore on
4848 _clzsi2.
4849 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
4850
4851 2008-08-26 Douglas Gregor <doug.gregor@gmail.com>
4852
4853 * c-common.c (do_switch_warnings): Look through the CONST_DECLs in
4854 the enumerators of an ENUMERAL_TYPE.
4855 * dbxout.c (dbxout_type): Ditto.
4856
4857 2008-08-26 Andrew Pinski <andrew_pinski@playstation.sony.com>
4858
4859 PR rtl-opt/37219
4860 * fwprop.c (fwprop): Check that the loop_father is the outer loop.
4861 (fwprop_addr): Check that the loop_father is not the outer loop.
4862
4863 2008-08-26 Paul Brook <paul@codesourcery.com>
4864
4865 * config/arm/vfp.md: Document fmul{s,d} and fmac{s,d} types.
4866 Remove documentation entry for fmul type.
4867 Use fmuls to annotate single-precision multiplication patterns,
4868 fmuld to annotate double-precision multiplication patterns,
4869 fmacs to annotate single-precision multiply-accumulate patterns
4870 and fmacd to annotate double-precision multiply-accumulate patterns.
4871 * config/arm/vfp11.md: Update reservations accordingly.
4872 * config/arm/arm.md: Note that certain values of the "type"
4873 attribute are documented in vfp.md.
4874 * config/arm/arm1020e.md: Remove out of date duplicate comment.
4875 (v10_cvt): Use new fmul types.
4876
4877 2008-08-26 Paul Brook <paul@codesourcery.com>
4878
4879 * config/arm/vfp.md: Move pipeline description for VFP11 to...
4880 * config/arm/vfp11.md: ...here. New.
4881 * config/arm/arm.md: Include vfp11.md.
4882
4883 2008-08-26 Hans-Peter Nilsson <hp@axis.com>
4884
4885 * opts.c (decode_options) [!IRA_COVER_CLASSES]: Add missing
4886 parameter to inform call.
4887
4888 2008-08-26 Jeff Law <law@redhat.com>
4889
4890 * mn10300.md (movqi, movhi): Split i->d*a case into two cases to
4891 avoid the possibility of getting DATA_OR_ADDRESS_REGS as the
4892 preferred class when copying a constant into a partial word register.
4893
4894 2008-08-26 Ben Elliston <bje@au.ibm.com>
4895
4896 * rtlanal.c: Fix uses of "it's" with "its" where appropriate.
4897 * cp/typeck.c: Likewise.
4898 * cp/tree.c: Likewise.
4899 * gimple-low.c: Likewise.
4900 * jump.c: Likewise.
4901
4902 2008-08-26 Vladimir Makarov <vmakarov@redhat.com>
4903
4904 * ira-build.c, ira-color.c, ira-costs.c, ira.h, ira-lives.c,
4905 ira.c, ira-conflicts.c, ira-emit.c, ira-int.h: New files.
4906
4907 * doc/passes.texi: Describe IRA.
4908
4909 * doc/tm.texi (IRA_COVER_CLASSES,
4910 IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Describe the new macros.
4911
4912 * doc/invoke.texi (ira-max-loops-num): Describe the new parameter.
4913 (-fira, -fira-algorithm, -fira-coalesce, -fno-ira-move-spills,
4914 -fira-propagate-cost, -fno-ira-share-save-slots,
4915 -fno-ira-share-spill-slots, -fira-verbose): Describe new options.
4916
4917 * flags.h (ira_algorithm): New enumeration.
4918 (flag_ira_algorithm, flag_ira_verbose): New external variable
4919 declarations.
4920
4921 * postreload.c (gate_handle_postreload): Don't do post reload
4922 optimizations unless the reload is completed.
4923
4924 * reload.c (push_reload, find_dummy_reload): Use DF_LR_OUT for
4925 IRA.
4926
4927 * tree-pass.h (pass_ira): New external variable declaration.
4928
4929 * reload.h: Add 2008 to the Copyright.
4930
4931 * cfgloopanal.c: Include params.h.
4932 (estimate_reg_pressure_cost): Decrease cost for IRA optimization
4933 mode.
4934
4935 * params.h (IRA_MAX_LOOPS_NUM): New macro.
4936
4937 * toplev.c (ira.h): New include.
4938 (flag_ira_algorithm, flag_ira_verbose): New external variables.
4939 (backend_init_target): Call ira_init.
4940 (backend_init): Call ira_init_once.
4941 (finalize): Call finish_ira_once.
4942
4943 * toplev.h (flag_ira, flag_ira_coalesce, flag_ira_move_spills,
4944 flag_ira_share_save_slots, flag_ira_share_spill_slots): New
4945 external variables.
4946
4947 * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
4948 may_move_out_cost): New external variable declarations.
4949 (move_table): New typedef.
4950
4951 * caller-save.c: Include headers output.h and ira.h.
4952 (no_caller_save_reg_set): New global variable.
4953 (save_slots_num, save_slots): New variables.
4954 (reg_save_code, reg_restore_code, add_stored_regs): Add
4955 prototypes.
4956 (init_caller_save): Set up no_caller_save_reg_set.
4957 (init_save_areas): Reset save_slots_num.
4958 (saved_hard_reg): New structure.
4959 (hard_reg_map, saved_regs_num, all_saved_regs): New variables.
4960 (initiate_saved_hard_regs, new_saved_hard_reg,
4961 finish_saved_hard_regs, saved_hard_reg_compare_func): New
4962 functions.
4963 (setup_save_areas): Add code for sharing stack slots.
4964 (all_blocks): New variable.
4965 (save_call_clobbered_regs): Process pseudo-register too.
4966 (mark_set_regs): Process pseudo-register too.
4967 (insert_one_insn): Put the insn after bb note in a empty basic
4968 block. Add insn check.
4969
4970 * global.c (eliminable_regset): Make it external.
4971 (mark_elimination): Use DF_LR_IN for IRA.
4972 (pseudo_for_reload_consideration_p): New.
4973 (build_insn_chain): Make it external. Don't ignore spilled
4974 pseudos for IRA. Use pseudo_for_reload_consideration_p.
4975 (gate_handle_global_alloc): New function.
4976 (pass_global_alloc): Add the gate function.
4977
4978 * opts.c (decode_options): Set up flag_ira. Print the warning for
4979 -fira.
4980 (common_handle_option): Process -fira-algorithm and -fira-verbose.
4981
4982 * timevar.def (TV_IRA, TV_RELOAD): New passes.
4983
4984 * regmove.c (regmove_optimize): Don't do replacement of output for
4985 IRA.
4986
4987 * hard-reg-set.h (no_caller_save_reg_set, reg_class_subclasses):
4988 New external variable declarations.
4989
4990 * local-alloc.c (update_equiv_regs): Make it external. Return
4991 true if jump label rebuilding should be done. Rescan new_insn for
4992 notes.
4993 (gate_handle_local_alloc): New function.
4994 (pass_local_alloc): Add the gate function.
4995
4996 * alias.c (value_addr_p, stack_addr_p): New functions.
4997 (nonoverlapping_memrefs_p): Use them for IRA.
4998
4999 * common.opt (fira, fira-algorithm, fira-coalesce,
5000 fira-move-spills, fira-share-save-slots, fira-share-spill-slots,
5001 fira-verbose): New options.
5002
5003 * regclass.c (reg_class_subclasses, contains_reg_of_mode,
5004 move_cost, may_move_in_cost, may_move_out_cost): Make the
5005 variables external.
5006 (move_table): Remove typedef.
5007 (init_move_cost): Make it external.
5008 (allocate_reg_info, resize_reg_info, setup_reg_classes): New
5009 functions.
5010
5011 * rtl.h (init_move_cost, allocate_reg_info, resize_reg_info,
5012 setup_reg_classes): New function prototypes.
5013 (eliminable_regset): New external variable declaration.
5014 (build_insn_chain, update_equiv_regs): New function prototypes.
5015
5016 * Makefile.in (IRA_INT_H): New definition.
5017 (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
5018 ira-conflicts.o, ira-color.o, ira-emit.o, and ira-lives.o.
5019 (reload1.o, toplev.o): Add dependence on ira.h.
5020 (cfgloopanal.o): Add PARAMS_H.
5021 (caller-save.o): Add dependence on output.h and ira.h.
5022 (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
5023 ira-emit.o, ira-lives.o): New entries.
5024
5025 * passes.c (pass_ira): New pass.
5026
5027 * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
5028
5029 * reload1.c (ira.h): Include the header.
5030 (changed_allocation_pseudos): New bitmap.
5031 (init_reload): Initiate the bitmap.
5032 (compute_use_by_pseudos): Permits spilled registers in FROM.
5033 (temp_pseudo_reg_arr): New variable.
5034 (reload): Allocate and free temp_pseudo_reg_arr. Sort pseudos for
5035 IRA. Call alter_reg with the additional parameter. Don't clear
5036 spilled_pseudos for IRA. Restore original insn chain for IRA.
5037 Clear changed_allocation_pseudos at the end of reload.
5038 (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
5039 (hard_regno_to_pseudo_regno): New variable.
5040 (count_pseudo): Check spilled pseudos. Set up
5041 hard_regno_to_pseudo_regno.
5042 (count_spilled_pseudo): Check spilled pseudos. Update
5043 hard_regno_to_pseudo_regno.
5044 (find_reg): Use better_spill_reload_regno_p. Check
5045 hard_regno_to_pseudo_regno.
5046 (alter_reg): Set up spilled_pseudos. Add a new parameter. Add
5047 code for IRA.
5048 (eliminate_regs_1): Use additional parameter for alter_reg.
5049 (finish_spills): Set up pseudo_previous_regs only for spilled
5050 pseudos. Call reassign_pseudos once for all spilled pseudos, pass
5051 more arguments. Don't clear live_throughout and dead_or_set for
5052 spilled pseudos. Use additional parameter for alter_reg. Call
5053 mark_allocation_change. Set up changed_allocation_pseudos.
5054 Remove sanity check.
5055 (emit_input_reload_insns, delete_output_reload): Use additional
5056 parameter for alter_reg. Call mark_allocation_change.
5057 (substitute, gen_reload_chain_without_interm_reg_p): New
5058 functions.
5059 (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
5060
5061 * testsuite/gcc.dg/20080410-1.c: New file.
5062
5063 * config/s390/s390.h (IRA_COVER_CLASSES,
5064 IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Define.
5065
5066 * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
5067
5068 * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
5069
5070 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
5071
5072 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
5073
5074 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
5075
5076 * config/alpha/alpha.h (IRA_COVER_CLASSES): Ditto.
5077
5078 2008-08-24 Jeff Law <law@redhat.com>
5079 * ira.c (setup_reg_class_intersect_union): Prefer smallest class
5080 when ignoring unavailable registers.
5081
5082 2008-08-24 Jeff Law <law@redhat.com>
5083 * ira-color.c (coalesced_pseudo_reg_slot_compare): Check
5084 FRAME_GROWS_DOWNWARD and STACK_GROWS_DOWNWARD.
5085 * ira.c (setup_eliminable_regset): Check stack_realign_needed.
5086 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): New macro.
5087
5088 2008-06-03 Steve Chamberlain <steve.chamberlain@gmail.com>
5089 * ira-build.c (allocno_range_compare_func): Stabilize sort.
5090
5091 2008-05-29 Andy Hutchinson <hutchinsonandy@aim.com>
5092 * config/avr/avr.h (IRA_COVER_CLASSES): New macro.
5093 * reload1.c (find_reg): Process registers in register allocation order.
5094
5095 2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
5096 * toplev.c (backend_init_target): Move ira_init call from
5097 here...
5098 (lang_dependent_init_target): ...to here.
5099
5100 2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
5101 * ira.c (setup_class_subset_and_memory_move_costs): Don't
5102 calculate memory move costs for NO_REGS.
5103
5104 2008-05-05 Kaz Kojima <kkojima@gcc.gnu.org>
5105 * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
5106 STACK_REGS is defined.
5107
5108 2008-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
5109 * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
5110
5111 2008-04-04 Bernd Schmidt <bernd.schmidt@analog.com>
5112 * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
5113
5114 2008-04-04 Kaz Kojima <kkojima@gcc.gnu.org>
5115 * config/sh/sh.h (IRA_COVER_CLASSES): Define.
5116 * config/sh/sh.md (movsicc_true+3): Check if emit returns a
5117 barrier.
5118
5119 2008-08-26 Victor Kaplansky <victork@il.ibm.com>
5120 Dorit Nuzman <dorit@il.ibm.com>
5121
5122 * gcc/config/spu/spu.md (vec_extract_evenv4si,
5123 vec_extract_evenv4sf, vec_extract_evenv8hi,
5124 vec_extract_evenv16qi, vec_extract_oddv4si,
5125 vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
5126 vec_interleave_highv4sf, vec_interleave_lowv4sf,
5127 vec_interleave_highv4si, vec_interleave_lowv4si,
5128 vec_interleave_highv8hi, vec_interleave_lowv8hi,
5129 vec_interleave_highv16qi, vec_interleave_lowv16qi,
5130 vec_pack_trunc_v8hi, vec_pack_trunc_v4si): Implement.S
5131
5132 2008-08-25 Janis Johnson <janis187@us.ibm.com>
5133
5134 PR target/36756
5135 * config/rs6000/rs6000.c (optimization_options): Don't default to
5136 section anchors without toplevel reorder.
5137
5138 2008-08-25 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5139
5140 * config/spu/spu_mfcio.h (mfc_begin_critical_section): New function.
5141 (mfc_end_critical_section): Likewise.
5142
5143 2008-08-25 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5144
5145 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Propagate
5146 all type qualifiers from element type to vector type.
5147
5148 2008-08-25 David Daney <ddaney@avtrex.com>
5149
5150 * config/mips/mips.md (immediate_insn): Move up in file, fix
5151 comment typo, reformat.
5152 (fetchop_bit, atomic_hiqi_op memory_barrier,
5153 sync_compare_and_swap<mode>, compare_and_swap_12, sync_add<mode>,
5154 sync_<optab><mode>, sync_<optab>_12, sync_old_<optab><mode>,
5155 sync_old_<optab>_12, sync_new_<optab><mode>, sync_new_<optab>_12,
5156 sync_nand<mode>, sync_nand_12, sync_old_nand<mode>,
5157 sync_old_nand_12, sync_new_nand<mode>, sync_new_nand_12,
5158 sync_sub<mode>, sync_old_add<mode>, sync_old_sub<mode>,
5159 sync_new_add<mode>, sync_new_sub<mode>, sync_<optab><mode>,
5160 sync_old_<optab><mode>, sync_new_<optab><mode>, sync_nand<mode>,
5161 sync_old_nand<mode>, sync_new_nand<mode>,
5162 sync_lock_test_and_set<mode>, sync_lock_test_and_set<mode>,
5163 test_and_set_12): Moved to sync.md.
5164 (sync.md): Include.
5165 * config/mips/sync.md: New file.
5166
5167 2008-08-25 Richard Henderson <rth@redhat.com>
5168
5169 * dwarf2out.c (def_cfa_1): Don't scale by DWARF_CIE_DATA_ALIGNMENT.
5170 (regsave): Likewise.
5171 (lookup_cfa_1): Don't rescale by DWARF_CIE_DATA_ALIGNMENT.
5172 (output_cfi_directive): Likewise.
5173 (div_data_align): New.
5174 (output_cfi): Use it.
5175
5176 2008-08-24 Adam Nemet <anemet@caviumnetworks.com>
5177
5178 * config.gcc (mips64*-*-linux*): Handle mips64octeon*-*-linux*.
5179 * config/mips/mips.h (enum processor_type): Add PROCESSOR_OCTEON.
5180 (TARGET_OCTEON): New macro.
5181 (TARGET_CPU_CPP_BUILTINS): Define __OCTEON__ for Octeon.
5182 (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC): Handle -march=octeon.
5183 (ISA_HAS_POP): New macro.
5184 * config/mips/driver-native.c (host_detect_local_cpu): Handle
5185 Octeon.
5186 * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
5187 Handle Octeon.
5188 * config/mips/mips.md (cpu): Add octeon.
5189 (type): Add pop attribute value.
5190 (popcount<mode>2): New pattern.
5191 * doc/invoke.texi (-march=@var{arch}): Add octeon.
5192
5193 2008-08-24 Jan Hubicka <jh@suse.cz>
5194
5195 * doc/invoke.texi (-fipa-cp-clone): New option.
5196 (-fipa-cp): Update docs.
5197 (--param ipcp-unit-growth):New.
5198 * ipa-cp.c: Include fibheap.h, params.h
5199 (ipcp_initialize_node_lattices): When not cloning, all externally
5200 visible functions are bottom.
5201 (ipcp_need_redirect_p): Accept clones.
5202 (ipcp_insert_stage): Use cost driven heuristics.
5203 (max_count, dead_nodes): New static vars.
5204 (ipcp_need_original_clone_p, ipcp_estimate_cloning_cost,
5205 ipcp_const_param_count): New functions.
5206 * common.opt (ipa-cp-clone): New command line option.
5207 * params.def (ipcp-unit-growth): New.
5208
5209 2008-08-24 Jan Hubicka <jh@suse.cz>
5210
5211 * tree-inline.c (tree_function_versioning): Look harder
5212 for referenced vars.
5213
5214 2008-08-24 Razya Ladelsky <razya@il.ibm.com>
5215
5216 PR tree-optimization/37185
5217 * matrix-reorg.c (transform_access_sites): Update changed stmt.
5218
5219 2008-08-23 Jan Hubicka <jh@suse.cz>
5220
5221 * ipa-cp.c (ipcp_analyze_node): New function.
5222 (ipcp_update_cloned_node): Use it.
5223 (ipcp_init_stage): Likewise.
5224 * ipa-inline.c (function_insertion_hook_holder): New static var.
5225 (analyze_function): Break out from ....
5226 (inline_generate_summary): Here; register insertion hook.
5227 (cgraph_decide_inlining): Remove hook.
5228 (add_new_function): New function.
5229
5230 2008-08-23 Jan Hubicka <jh@suse.cz>
5231
5232 * opts.c (decode_options): Revert accidental change enabling ipa-cp.
5233
5234 2008-08-23 Jan Hubicka <jh@suse.cz>
5235
5236 * ipa-cp.c (constant_val_insert): Remove.
5237 (ipcp_propagate_one_const): Remove.
5238 (ipcp_create_replace_map): Always insert replacements to the map.
5239 (ipcp_insert_stage): Do not try to insert statements by hand.
5240 * tree-inline.c (insert_init_stmt): Break out from ...
5241 (setup_one_parameter): ... here; allow NULL BB pointer.
5242 (tree_function_versioning): Use setup_one_parameter to process
5243 replacement map.
5244
5245 2008-08-23 Jan Hubicka <jh@suse.cz>
5246
5247 * tree.c (decl_address_ip_invariant_p): New function.
5248 * tree.h (decl_address_ip_invariant_p): Declare.
5249 * gimple.c (strip_invariant_refs): Break out from ...
5250 (is_gimple_invariant_address): ... here
5251 (is_gimple_ip_invariant_address): New function.
5252 (is_gimple_ip_invariant): New function.
5253 * gimple.h (is_gimple_ip_invariant_address, is_gimple_ip_invariant):
5254 Declare.
5255
5256 * ipa-cp.c (ipcp_lat_is_const): Remove handling of IPA_CONST_VALUE_REF.
5257 (ipcp_lat_is_insertable): All constants are insertable.
5258 (ipcp_lattice_from_jfunc, ipcp_print_all_lattices): Remove handling of
5259 IPA_CONST_VALUE_REF.
5260 (ipcp_initialize_node_lattices): Propagate all types of operands.
5261 (build_const_val): Do not handle IPA_CONST_VALUE_REF.
5262 (ipcp_create_replace_map): Reformat.
5263 (ipcp_need_redirect_p): Simplify.
5264 (ipcp_insert_stage): Check that argument is used before clonning.
5265 * ipa-prop.c (ipa_print_node_jump_functions): Do not handle
5266 IPA_CONST_REF.
5267 (compute_scalar_jump_functions): Simplify using is_gimple_ip_invariat.
5268 (determine_cst_member_ptr): Keep wrapping ADDR_EXPR of members.
5269 (update_call_notes_after_inlining): Expect ADDR_EXPR in operand.
5270 * ipa-prop.h (jump_func_type): Remove IPA_CONST_REF.
5271 (jump_func_type): Remove IPA_CONST_VALUE_REF.
5272 * tree-inline.c (tree_function_versioning): Add variables referenced
5273 by replacing trees.
5274
5275 2008-08-23 Jan Hubicka <jh@suse.cz>
5276
5277 PR target/37094
5278 * i386.c (standard_80387_constant_p): Use optimize_size.
5279
5280 2008-08-23 Ira Rosen <irar@il.ibm.com>
5281
5282 PR tree-optimization/37161
5283 * tree-vectorizer.h (vect_get_smallest_scalar_type): Declare.
5284 * tree-vect-analyze.c (vect_get_smallest_scalar_type): New function.
5285 (vect_determine_vectorization_factor): Move the scalar type
5286 retrieval to vect_get_smallest_scalar_type.
5287 (vect_build_slp_tree): Call vect_get_smallest_scalar_type to get
5288 scalar type. Remove redundant computation.
5289 * tree-vect-transform.c (vect_get_constant_vectors): Add argument.
5290 (vect_get_slp_defs): Take the type of RHS into account if
5291 necessary by calling vect_get_smallest_scalar_type. Call
5292 vect_get_constant_vectors with additional argument.
5293
5294 2008-08-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5295
5296 PR 35648
5297 * doc/invoke.texi (Wwrite-strings): Clarify description.
5298
5299 2008-08-23 Ira Rosen <irar@il.ibm.com>
5300
5301 PR tree-optimization/37174
5302 * tree-vect-analyze.c (vect_get_and_check_slp_defs): Check that the
5303 def stmt is a part of the loop before accessing its stmt_vec_info.
5304
5305 2008-08-22 Anatoly Sokolov <aesok@post.ru>
5306
5307 PR target/11259
5308 * config/avr/avr.md (UNSPEC_SWAP): New constants.
5309 (*swap): New insn pattern.
5310 (*ashlqi3): Rename from ashlqi3 insn pattern.
5311 (ashlqi3): New expanders.
5312 (*lshrqi3): Rename from lshrqi3 insn pattern.
5313 (lshrqi3): New expanders.
5314 (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, lshrqi3_const4,
5315 lshrqi3_const5, lshrqi3_const6): New splitters.
5316 (andi, ashlqi3_l_const4, ashlqi3_l_const5, ashlqi3_l_const6,
5317 lshrqi3_l_const4, lshrqi3_l_const5, lshrqi3_l_const6): Define
5318 peephole2 patterns.
5319
5320 2008-08-22 Richard Guenther <rguenther@suse.de>
5321
5322 PR tree-optimization/37078
5323 * tree-vrp.c (extract_range_from_unary_expr): Avoid generating
5324 [+INF, +INF] ranges.
5325
5326 2008-08-22 Richard Guenther <rguenther@suse.de>
5327
5328 PR tree-optimization/37143
5329 * tree-vect-transform.c (vect_create_cond_for_align_checks): Build
5330 a conversion statement instead of a copy.
5331
5332 2008-08-22 Uros Bizjak <ubizjak@gmail.com>
5333
5334 PR target/37184
5335 * config/i386/i386.c (ix86_match_ccmode): Handle CCAmode,
5336 CCCmode, CCOmode and CCSmode destination modes.
5337
5338 PR target/37191
5339 * config/i386/mmx.md (*vec_extractv2sf_0): Avoid combining registers
5340 from different units in a single alternative.
5341 (*vec_extractv2sf_1): Ditto.
5342 (*vec_extractv2si_0): Ditto.
5343 (*vec_extractv2si_1): Ditto.
5344 * config/i386/sse.md (sse2_storehpd): Ditto.
5345 (sse2_storelpd): Ditto.
5346 (sse2_loadhpd): Ditto.
5347 (sse2_loadlpd): Ditto.
5348
5349 PR target/37197
5350 * config/i386/i386.md (clzsi2_abm): Fix operand 1 constraints.
5351 (popcountsi2): Ditto.
5352 (clzdi2_abm): Ditto.
5353 (popcountdi2): Ditto.
5354 (clzhi2_abm): Ditto.
5355 (popcounthi2): Ditto.
5356
5357 2008-08-22 Richard Guenther <rguenther@suse.de>
5358
5359 PR middle-end/36548
5360 PR middle-end/37125
5361 * fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only
5362 if the multiplication does not overflow.
5363
5364 2008-08-21 Nathan Sidwell <nathan@codesourcery.com>
5365
5366 * c-ppoutput.c (init_pp_output): Initialize src_line to 1.
5367
5368 2008-08-21 Richard Henderson <rth@redhat.com>
5369
5370 * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove
5371 spurrious comma from test.
5372 * configure: Rebuild.
5373
5374 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5375
5376 PR 30457
5377 * builtins.c (fold_builtin_next_arg): Add warning about undefined
5378 behaviour.
5379
5380 2008-08-21 Aldy Hernandez <aldyh@redhat.com>
5381
5382 * c-tree.h (grokfield): New argument.
5383 * c-decl.c (grokfield): Handle new location argument.
5384 * c-parser.c (c_parser_struct_declaration): Pass location to grokfield.
5385
5386 2008-08-21 Richard Guenther <rguenther@suse.de>
5387
5388 * tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants.
5389
5390 2008-08-21 Jan Hubicka <jh@suse.cz>
5391
5392 * cgraph.c (first_cgraph_function_insertion_hook): New variable.
5393 (cgraph_add_function_insertion_hook,
5394 cgraph_remove_function_insertion_hook,
5395 cgraph_call_function_insertion_hooks): New functions.
5396 * cgraph.h (cgraph_add_function_insertion_hook,
5397 cgraph_remove_function_insertion_hook,
5398 cgraph_call_function_insertion_hooks): Declare.
5399 * ipa-reference.c (function_insertion_hook_holder): New variable.
5400 (check_operand, look_for_address_of): When checking late, do not care
5401 about module bitmaps.
5402 (add_new_function): New function.
5403 (generate_summary): Register hooks; zero module bitmaps.
5404 (propagate): Unregister hooks.
5405 * ipa-pure-const.c (function_insertion_hook_holder): New variable.
5406 (add_new_function): New function.
5407 (generate_summary): Register hook.
5408 (propagate): Remove hook.
5409
5410 * ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
5411
5412 * tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
5413 * ipa-cp.c (ipcp_update_cloned_node): New function.
5414 (build_const_val): Handle functions correctly; bring type logic
5415 into sync with tree-inline.c
5416 (ipcp_init_stage): Take care of computing stuff needed by
5417 indirect inlining; update clones.
5418 (ipcp_generate_summary): Break out of ipcp_driver.
5419 (ipcp_driver): Do only execution and transformation.
5420 (pass_ipa_cp): Make IPA_PASS.
5421 * tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
5422 offset to address.
5423 * ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
5424 ipcp, some info is already available.
5425 * ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
5426 * tree-inline.c (remap_ssa_name): Unshare expression.
5427
5428 2008-08-21 Richard Guenther <rguenther@suse.de>
5429
5430 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
5431 a PHI ask VN if it is already available.
5432 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
5433 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
5434
5435 2008-08-21 Richard Guenther <rguenther@suse.de>
5436
5437 PR middle-end/36817
5438 * tree-chrec.c (chrec_apply): Always call chrec_fold_plus which
5439 makes sure to produce a result of the correct type.
5440
5441 2008-08-21 Jan Hubicka <jh@suse.cz>
5442 Backport from LTO branch:
5443
5444 2008-05-05 Kenneth Zadeck <zadeck@naturalbridge.com>
5445 Jan Hubicka <jh@suse.cz>
5446
5447 * ipa-pure-const.c
5448 (init_state, finish_state, set_function_state, generate_summary):
5449 New functions.
5450 (scan_stmt): Renamed from scan_function. Changed to keep state in
5451 local static vars rather than cgraph aux field.
5452 (propagate): Renamed from static_execute. Changed to keep state in
5453 local static vars rather than cgraph aux field.
5454 (pass_ipa_pure_const): Changed from SIMPLE_IPA_PASS to IPA_PASS.
5455 * tree-pass.h (pass_ipa_pure_const): Turn into IPA_PASS.
5456
5457 2008-07-15 Kenneth Zadeck <zadeck@naturalbridge.com>
5458
5459 * tree-pass.h (pass_ipa_reference): Make into ipa_opt_pass.
5460 * ipa-reference.c (init_function_info, generate_summary,
5461 propagate): New functions.
5462 (analyze_function): Call init_function_info.
5463 (static_execute): Stripped into generate_summary and propagate.
5464 (pass_ipa_reference): Made into ipa_opt_pass.
5465
5466 2008-08-21 Richard Guenther <rguenther@suse.de>
5467
5468 PR tree-optimization/37181
5469 * tree-vrp.c (extract_range_from_binary_expr): Check for NULL
5470 folding result.
5471 (extract_range_from_unary_expr): Likewise.
5472
5473 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5474
5475 * diagnostic.c (pedwarn_at): Rename as pedwarn.
5476 (pedwarn): Delete.
5477 * toplev.h (pedwarn_at): Likewise.
5478 * builtins.c: Update all calls to pedwarn.
5479 * c-lex.c: Likewise.
5480 * toplev.c: Likewise.
5481 * c-tree.h: Likewise.
5482 * c-decl.c: Likewise.
5483 * c-errors.c: Likewise.
5484 * c-typeck.c: Likewise.
5485 * c-common.c: Likewise.
5486 * c-parser.c: Likewise.
5487
5488 2008-08-20 Joseph Myers <joseph@codesourcery.com>
5489
5490 PR target/31070
5491 * config/sparc/sparc.c (function_arg_slotno): Handle structure
5492 with MODE_VECTOR_INT mode.
5493
5494 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5495
5496 PR middle-end/179
5497 * tree-ssa.c (warn_uninit): Do not warn for variables that can be
5498 initialized outside the current module.
5499 (warn_uninitialized_var): Ignore left-hand side when walking the
5500 trees. Ignore address expressions. Examine VUSE operands in gimple
5501 statements with a variable declaration on the right-hand side.
5502
5503 2008-08-20 Richard Sandiford <rdsandiford@googlemail.com>
5504
5505 PR bootstrap/37155
5506 * rtlanal.c (subreg_offset_representable_p): Revert last change.
5507
5508 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5509
5510 PR 35701
5511 * c-common.c (conversion_warning): Do not warn if applying bit-and
5512 operator to unsigned constant that fits in the target type.
5513
5514 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5515
5516 PR c++/35602
5517 * c-common.c (conversion_warning): Do not warn for artificial
5518 expressions.
5519
5520 2008-08-20 Richard Guenther <rguenther@suse.de>
5521
5522 * tree-vrp.c (op_with_constant_singleton_value_range): New function.
5523 (extract_range_from_binary_expr): Fall back to constant propagation.
5524 (extract_range_from_unary_expr): Likewise.
5525
5526 2008-08-20 Richard Guenther <rguenther@suse.de>
5527
5528 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Do not mess
5529 with TREE_THIS_VOLATILE on shared nodes.
5530 (fold_stmt_r): Likewise.
5531
5532 2008-08-20 Jakub Jelinek <jakub@redhat.com>
5533
5534 PR c/37171
5535 * c-parser.c (c_parser_attributes): For keywords use canonical
5536 spelling for attr_name.
5537
5538 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5539
5540 * value-prof.c (check_counter): Revert wrong call to error.
5541
5542 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5543
5544 * profile.c: Update calls to inform.
5545 * value-prof.c: Update calls to inform.
5546
5547 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5548
5549 * diagnostic.c (inform): Add an explicit location_t parameter.
5550 * toplev.h (inform): Update declaration.
5551 * builtins.c: Update all calls to inform.
5552 * c-common.c: Likewise.
5553 * c-decl.c: Likewise.
5554 * c-opts.c: Likewise.
5555 * c-pch.c: Likewise.
5556 * c-pragma.c: Likewise.
5557 * c-typeck.c: Likewise.
5558 * coverage.c: Likewise.
5559 * opts.c: Likewise.
5560 * toplev.c: Likewise.
5561 * tree-cfg.c: Likewise.
5562 * tree-ssa.c: Likewise.
5563
5564 2008-08-20 H.J. Lu <hongjiu.lu@intel.com>
5565
5566 PR target/37169
5567 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): In
5568 V2DI mode, for SSE4.1, use movq instead of vector set if the
5569 second element is zero and inter-unit moves are OK.
5570
5571 2008-08-20 Richard Guenther <rguenther@suse.de>
5572
5573 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): More
5574 properly handle conversion/copy chains after tuplification.
5575
5576 2008-08-20 Richard Guenther <rguenther@suse.de>
5577
5578 * passes.c (init_optimization_passes): Move the second
5579 forwprop pass before alias computation. Remove the second
5580 DCE pass. Remove the first dominator and phi copy/const
5581 prop passes.
5582
5583 2008-08-20 Nick Clifton <nickc@redhat.com>
5584
5585 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler
5586 support of this feature. Do not assume that a sufficiently new
5587 assembler will support the feature regardless of the target type.
5588 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
5589 * configure: Regenerate.
5590
5591 2008-08-20 Richard Guenther <rguenther@suse.de>
5592
5593 * tree-vrp.c (found_in_subgraph): Remove.
5594 (live): New global static.
5595 (live_on_edge): New function.
5596 (blocks_visited): Remove.
5597 (register_edge_assert_for_2): Use live_on_edge.
5598 (find_conditional_asserts): Remove code dealing with
5599 found_in_subgraph. Do not walk the CFG.
5600 (find_switch_asserts): Likewise.
5601 (find_assert_locations_1): Renamed from find_assert_locations.
5602 Move finding assert locations for conditional and switch
5603 statements first. Update live bitmap. Do not walk the CFG.
5604 (find_assert_locations): New function.
5605 (insert_range_assertions): Remove entry of CFG walk.
5606 Adjust call to find_assert_locations.
5607 * tree-ssa-pre.c (do_regular_insertion): Ignore critical edges
5608 that only can appear because of fake exit edges but assert we
5609 never try to insert on those.
5610 (fini_pre): Do not remove fake exit edges here...
5611 (execute_pre): ...but here, before committing edge inserts.
5612
5613 2008-08-19 Richard Guenther <rguenther@suse.de>
5614
5615 * passes.c (init_optimization_passes): Exchange store-ccp
5616 with a ccp pass.
5617
5618 2008-08-19 Rafael Espíndola <espindola@google.com>
5619
5620 * varasm.c (weak_decls): Move earlier in the file.
5621 (assemble_external): Add weak decls to the weak_decls list.
5622 (declare_weak): Don't add decls to the weak_decls list.
5623
5624 2008-08-19 H.J. Lu <hongjiu.lu@intel.com>
5625
5626 PR target/37157
5627 * config/i386/sse.md (sse2_punpckhqdq, sse2_punpcklqdq): Moved
5628 before (sse2_shufpd_<mode>).
5629
5630 2008-08-19 Jakub Jelinek <jakub@redhat.com>
5631
5632 PR debug/37156
5633 * pretty-print.c (pp_base_format): Deal with recursive BLOCK trees.
5634 * tree.c (block_nonartificial_location): Likewise.
5635
5636 2008-08-19 Richard Guenther <rguenther@suse.de>
5637
5638 PR tree-optimization/35972
5639 PR tree-optimization/23094
5640 * tree-ssa-sccvn.h (vn_reference_lookup_pieces): Add maywalk
5641 parameter.
5642 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
5643 handle MISALIGNED_INDIRECT_REF.
5644 (get_ref_from_reference_ops): New helper.
5645 (vn_reference_lookup_pieces): Walk the use-def chain using the
5646 alias-oracle if requested.
5647 * tree-ssa-pre.c (phi_translate_1): Do reference lookup with
5648 walking the use-def chain.
5649 (compute_avail): But not here.
5650 (create_component_ref_by_pieces_1): Properly handle
5651 MISALIGNED_INDIRECT_REF.
5652 (do_regular_insertion): Handle fully redundant
5653 expressions after PHI-translation also for SSA_NAME values, not
5654 only constants. Correctly use edoubleprime for that.
5655
5656 2008-08-19 Ira Rosen <irar@il.ibm.com>
5657
5658 * tree-vectorizer.c (supportable_widening_operation): Support
5659 multi-step conversion, return the number of steps in such conversion
5660 and the required intermediate types.
5661 (supportable_narrowing_operation): Likewise.
5662 * tree-vectorizer.h (vect_pow2): New function.
5663 (supportable_widening_operation): Change argument types.
5664 (supportable_narrowing_operation): Likewise.
5665 (vectorizable_type_promotion): Add an argument.
5666 (vectorizable_type_demotion): Likewise.
5667 * tree-vect-analyze.c (vect_analyze_operations): Call
5668 vectorizable_type_promotion and vectorizable_type_demotion with
5669 additional argument.
5670 (vect_get_and_check_slp_defs): Detect patterns.
5671 (vect_build_slp_tree): Add an argument, don't fail in case of multiple
5672 types.
5673 (vect_analyze_slp_instance): Don't fail in case of multiple types.
5674 Call vect_build_slp_tree with correct arguments. Calculate unrolling
5675 factor according to the smallest type in the loop.
5676 (vect_detect_hybrid_slp_stmts): Include statements from patterns.
5677 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Call
5678 supportable_widening_operation with correct arguments.
5679 * tree-vect-transform.c (vect_get_slp_defs): Allocate output vector
5680 operands lists according to the number of vector statements in left
5681 or right node, if exists.
5682 (vect_gen_widened_results_half): Remove unused argument.
5683 (vectorizable_conversion): Call supportable_widening_operation,
5684 supportable_narrowing_operation, and vect_gen_widened_results_half
5685 with correct arguments.
5686 (vectorizable_assignment): Change documentation, support multiple
5687 types in SLP.
5688 (vectorizable_operation): Likewise.
5689 (vect_get_loop_based_defs): New function.
5690 (vect_create_vectorized_demotion_stmts): Likewise.
5691 (vectorizable_type_demotion): Support loop-aware SLP and general
5692 multi-step conversion. Call vect_get_loop_based_defs and
5693 vect_create_vectorized_demotion_stmts for transformation.
5694 (vect_create_vectorized_promotion_stmts): New function.
5695 (vectorizable_type_promotion): Support loop-aware SLP and general
5696 multi-step conversion. Call vect_create_vectorized_promotion_stmts
5697 for transformation.
5698 (vectorizable_store): Change documentation, support multiple
5699 types in SLP.
5700 (vectorizable_load): Likewise.
5701 (vect_transform_stmt): Pass SLP_NODE to
5702 vectorizable_type_promotion and vectorizable_type_demotion.
5703 (vect_schedule_slp_instance): Move here the calculation of number
5704 of vectorized statements for each node from...
5705 (vect_schedule_slp): ... here.
5706 (vect_transform_loop): Call vect_schedule_slp without the last
5707 argument.
5708
5709 2008-08-19 Dorit Nuzman <dorit@il.ibm.com>
5710
5711 PR bootstrap/37152
5712 * tree-vect-transform.c (vect_create_epilog_for_reduction): Change =
5713 to == in assert statement.
5714 (vectorizable_reduction): Fix typo.
5715
5716 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
5717
5718 PR bootstrap/37153
5719 * value-prof.c (check_counter): Dereference pointer to overall
5720 count when printing it.
5721
5722 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
5723
5724 * profile.h: Really add it.
5725
5726 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
5727
5728 * mcf.c: Really add it.
5729
5730 2008-08-18 Paul Yuan <yingbo.com@gmail.com>
5731 Vinodha Ramasamy <vinodha@google.com>
5732
5733 * cgraph.c (cgraph_edge): Handle inconsistent counts when setting
5734 count_scale.
5735 * value-prof.c (check_counter): Fix the counter if
5736 flag_profile_correction is true.
5737 (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
5738 tree_mod_subtract_transform):
5739 Follow check_counter parameter change.
5740 * common.opt (fprofile-correction): New option.
5741 * mcf.c: New file.
5742 * profile.h: Likewise.
5743 * profile.c (edge_info, EDGE_INFO): Moved to new file profile.h.
5744 (sum_edge_counts, is_edge_inconsistent, correct_negative_edge_counts,
5745 is_inconsistent, set_bb_counts, read_profile_edge_counts): New
5746 functions.
5747 (compute_branch_probabilities): Refactored. Invokes mcf_smooth_cfg if
5748 flag_profile_correction is set.
5749
5750 2008-08-18 Richard Sandiford <rdsandiford@googlemail.com>
5751
5752 * rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.
5753
5754 2008-08-18 Tomas Bily <tbily@suse.cz>
5755
5756 * tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P.
5757 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Use
5758 CONVERT_EXPR_P.
5759 * tree-data-ref.c (split_constant_offset_1): Likewise.
5760 * tree-inline.c (estimate_operator_cost): Use CASE_CONVERT.
5761 * tree-sra.c (sra_walk_expr): Likewise.
5762 * matrix-reorg.c (ssa_accessed_in_assign_rhs): Likewise.
5763 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
5764 * gimple.h (gimple_assign_cast_p): Use CONVERT_EXPR_CODE_P.
5765 * tree-ssa-structalias.c (find_func_aliases, find_func_aliases):
5766 Likewise.
5767 * gimple.c (gimple_assign_unary_nop_p): Likewise.
5768 * tree-vect-transform.c (vectorizable_type_demotion)
5769 (vectorizable_type_promotion): Likewise.
5770 * tree-inline.c (expand_call_inline):
5771 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
5772 (forward_propagate_addr_expr_1, forward_propagate_comparison)
5773 (tree_ssa_forward_propagate_single_use_vars): Likewise.
5774 * expr.c (expand_expr_real_1): Likewise.
5775 * tree-ssa-dom.c (hashable_expr_equal_p, iterative_hash_hashable_expr)
5776 (gimple_assign_unary_useless_conversion_p): Likewise.
5777 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
5778 * tree-ssa-ccp.c (ccp_fold, fold_gimple_assign): Likewise.
5779 * fold-const.c (fold_unary): Likewise.
5780 * tree.h (CONVERT_EXPR_P): Likewise.
5781 * tree.c (simple_cst_equal, iterative_hash_expr): Likewise.
5782 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
5783 * tree-vrp.c:
5784 (register_edge_assert_for_2, extract_range_from_unary_expr)
5785 (register_edge_assert_for_1): Likewise.
5786
5787 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5788
5789 * real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
5790 dconst_third_ptr, dconst_sqrt2_ptr): Declare.
5791 (enum real_value_const): Delete.
5792 (get_real_const): Delete.
5793 * real.c (get_real_const): Delete.
5794 (dconst_e_ptr): Define.
5795 (dconst_third_ptr): Define.
5796 (dconst_sqrt2_ptr): Define.
5797 * builtins.c: Update all callers.
5798
5799 2008-08-18 Richard Guenther <rguenther@suse.de>
5800
5801 * tree-ssa-reassoc.c (reassociate_bb): Properly reset the
5802 statement iterator after statement removal.
5803
5804 2008-08-18 Andreas Tobler <a.tobler@schweiz.org>
5805
5806 * config/rs6000/driver-rs6000.c (detect_caches_freebsd): New function.
5807 (detect_processor_freebsd): Likewise.
5808 (host_detect_local_cpu): Call newly added functions for FreeBSD.
5809
5810 2008-08-18 Richard Guenther <rguenther@suse.de>
5811
5812 * tree-cfg.c (verify_types_in_gimple_assign): Verify copies
5813 and loads have the correct types.
5814
5815 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5816
5817 PR cpp/7263
5818 * c-opts.c (cpp_opts): Remove static.
5819 * c-parser.c (cpp_opts): Declare it extern.
5820 (disable_extension_diagnostics): Handle cpp options.
5821 (enable_extension_diagnostics): Likewise.
5822
5823 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5824
5825 * diagnostics.c (permerror_at): Rename as permerror.
5826 (permerror): Delete.
5827 * toplev.h: Likewise.
5828
5829 2008-08-18 Richard Guenther <rguenther@suse.de>
5830
5831 * passes.c (init_optimization_passes): Remove cleanup_cfg1,
5832 sdse1 and addressables2 passes. Replace dce1 with cddce1.
5833 Move call_cdce before build_alias. Move copyrename2,
5834 cunrolli and ccp2 beafore build_alias. Re-add addressable2
5835 right after final inlining.
5836 * tree-cfg.c (build_gimple_cfg): Do not dump function here.
5837 (pass_build_cfg): But instead via TODO_dump_func.
5838
5839 2008-08-18 Richard Guenther <rguenther@suse.de>
5840
5841 * tree-sra.c (generate_element_init_1): Deal with NULL constructor
5842 element index.
5843 (scalarize_init): If we failed to generate some initializers
5844 do not generate zeros for not instantiated members. Instead
5845 rely on the copy out.
5846 * tree-ssa-operands.c (get_addr_dereference_operands): Warn
5847 about missing flow-sensitive alias info only if we have
5848 aliases computed.
5849
5850 2008-08-17 Nick Clifton <nickc@redhat.com>
5851
5852 * doc/extend.texi (Function Attributes): Fix typo in description
5853 if hot function attribute.
5854
5855 2008-08-17 Daniel Jacobowitz <dan@codesourcery.com>
5856 Richard Sandiford <rdsandiford@googlemail.com>
5857
5858 * doc/install.texi (--with-mips-plt): Document.
5859 * doc/invoke.texi (-mplt, -mno-plt): Document.
5860 * config.gcc (mips*-*-*): Add mips-plt to supported_defaults
5861 and handle ${with_mips_plt}.
5862 * config/mips/mips.opt (mplt): New option.
5863 * config/mips/mips.h (TARGET_ABICALLS_PIC0): New macro.
5864 (TARGET_ABICALLS_PIC2): Likewise.
5865 (TARGET_GPWORD): Return false for TARGET_ABSOLUTE_ABICALLS.
5866 (OPTION_DEFAULT_SPECS): Add a mips-plt entry.
5867 (ASM_SPEC): Use !mabi=* instead of !mabi*.
5868 (MIPS_CALL): Use TARGET_ABICALLS_PIC2 instead of TARGET_ABICALLS
5869 to decide whether to output ".option picX" directives.
5870 * config/mips/linux.h (SUBTARGET_ASM_SPEC): Remove -mabi=64 handling.
5871 Pass -call_nonpic rather than -KPIC for -mplt.
5872 (BASE_DRIVER_SELF_SPECS): Remove -mplt if -mno-shared is not present
5873 on the command line. Also remove it when -mabi=64 is used without
5874 -msym32.
5875 * config/mips/linux64.h (SUBTARGET_ASM_SPEC): Delete.
5876 * config/mips/mips.c (mips_use_pic_fn_addr_reg_p): Handle
5877 TARGET_ABICALLS_PIC0.
5878 (mips_classify_symbol): Use TARGET_ABICALLS_PIC2 instead of
5879 TARGET_ABICALLS.
5880 (mips16_build_function_stub): Only output ".option pic" directives
5881 and PIC stubs if TARGET_ABICALLS_PIC2. Call through $25 instead of $1.
5882 (mips16_build_call_stub): Fix comment and remove redundant
5883 ".set at"/"set .noat" directives.
5884 (mips_function_rodata_section): Use the default behaviour for
5885 TARGET_ABSOLUTE_ABICALLS.
5886 (mips_file_start): Emit ".option pic0" for TARGET_ABICALLS_PIC0.
5887 (mips_global_pointer): Handle TARGET_ABICALLS_PIC0.
5888 (mips_restore_gp): Do nothing if the current function doesn't use
5889 a global pointer.
5890 (mips_expand_prologue): Only save $gp if the current function uses it.
5891 Use a normal move for TARGET_ABICALLS_PIC0.
5892 (mips_override_options): Only set flag_pic if TARGET_ABICALLS_PIC2.
5893
5894 2008-08-17 Richard Sandiford <rdsandiford@googlemail.com>
5895
5896 * config/mips/mips.c (mips_save_reg_p): Don't short-circuit rest
5897 of function when handling GLOBAL_POINTER_REGNUM.
5898
5899 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
5900
5901 PR ada/20548
5902 * common.opt (-fstack-check): Do not declare the variable here.
5903 (-fstack-check=): New option variant.
5904 * doc/invoke.texi (Code Gen Options): Document it.
5905 * expr.h (STACK_OLD_CHECK_PROTECT): New macro.
5906 (STACK_CHECK_PROTECT): Bump to 3 pages if DWARF-2 EH is used.
5907 (STACK_CHECK_STATIC_BUILTIN): New macro.
5908 * doc/tm.texi (Stack Checking): Document STACK_CHECK_STATIC_BUILTIN.
5909 * opts.c: Include expr.h.
5910 (common_handle_option) <OPT_fold_stack_check_>: New case.
5911 <OPT_fstack_check>: Likewise.
5912 * calls.c (initialize_argument_information): Use TYPE_SIZE_UNIT
5913 consistently in the test for variable-sized types. Adjust for
5914 new behaviour of flag_stack_check.
5915 * explow.c: Include except.h.
5916 (allocate_dynamic_stack_space): Do not take into account
5917 STACK_CHECK_MAX_FRAME_SIZE for static builtin stack checking.
5918 * function.c (gimplify_parameters): Use DECL_SIZE_UNIT in the test
5919 for variable-sized parameters. Treat all parameters whose size is
5920 greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized if generic
5921 stack checking is enabled.
5922 * gimplify.c (gimplify_decl_expr): Treat non-static objects whose
5923 size is greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized
5924 if generic stack checking is enabled.
5925 (expand_function_end): Adjust for new behaviour of flag_stack_check.
5926 * reload1.c (reload): Likewise.
5927 * stmt.c (expand_decl): Assert that all automatic variables have
5928 fixed size at this point and remove dead code.
5929 * flags.h (stack_check_type): New enumeration type.
5930 (flag_stack_check): Declare.
5931 * toplev.c (flag_stack_check): New global variable.
5932 * Makefile.in (opts.o): Add dependency on EXPR_H.
5933 (explow.o): Add dependency on except.h.
5934
5935 2008-08-16 Andy Hutchinson <hutchinsonandy@aim.com>
5936
5937 * config/avr/avr.c (avr_override_options): Reduce value of
5938 PARAM_INLINE_CALL_COST.
5939
5940 2008-08-15 Eric Botcazou <ebotcazou@adacore.com>
5941
5942 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: When converting
5943 to BLKmode, try to fetch an inner memory reference. Use 'mode' in
5944 lieu of TYPE_MODE (type) throughout.
5945
5946 2008-08-15 Joseph Myers <joseph@codesourcery.com>
5947
5948 * config/arm/arm.c (add_minipool_backward_ref): Check for
5949 8-byte-aligned entries in second case of forcing insertion after a
5950 particular entry. Change third case to avoid inserting
5951 non-8-byte-aligned entries before 8-byte-aligned ones.
5952
5953 2008-08-15 Richard Guenther <rguenther@suse.de>
5954
5955 * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not
5956 strip components for unknown size accesses.
5957
5958 2008-08-15 Wolfgang Gellerich <gellerich@de.ibm.com>
5959
5960 * config/s390/2097.md New file.
5961 * config/s390/s390.md ("z10prop" attribute): Define none,
5962 z10_super, z10_super_E1, z10_super_A1, z10_super_c,
5963 z10_super_c_E1, z10_fwd, z10_fwd_A1, z10_fwd_A3, z10_fwd_E1,
5964 z10_rec, z10_fr, z10_fr_A3, z10_fr_E1, z10_c, and z10_cobra as
5965 possible values and apply them to insns as appropriate.
5966 ("type" attribute): Removed itof and added ftrunctf,ftruncdf,
5967 ftruncsd, ftruncdd, itoftf, itofdf, itofsf, itofdd, itoftd,
5968 fdivdd, fdivtd, floaddd, floadsd, fmuldd, fmultd, fsimpdd,
5969 fsimpsd, fsimptd, fstoredd, fstoresd, ftoidfp as possible values.
5970 ("bfp" mode attribute): Removed. Every occurence replaced
5971 with <mode>.
5972 * config/s390/s390.c (struct "z10_cost"): Updated entries.
5973 * config/s390/2084.md (insn_reservation "x_itof"): Updated
5974 type attribute.
5975
5976 2008-08-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5977
5978 PR c/28152
5979 * c-parser.c (c_lex_one_token): Do not store the canonical spelling
5980 for keywords.
5981
5982 2008-08-14 Dorit Nuzman <dorit@il.ibm.com>
5983
5984 * tree-vect-transform.c (vect_create_epilog_for_reduction): Takes an
5985 additional argument. Support reduction when duplication is needed due
5986 to data-types of different sizes in the loop.
5987 (get_initial_def_for_induction): Fix printout.
5988 (vect_get_vec_def_for_stmt_copy): Support case where the
5989 vec_stmt_for_operand is a phi node.
5990 (vectorizable_reduction): Support reduction when duplication is needed
5991 due to data-types of different sizes in the loop.
5992 (vectorizable_call): Remove restriction to not vectorize in case we
5993 have data-types of different sizes in the loop.
5994 (vectorizable_conversion): Likewise.
5995 (vectorizable_operation): Likewise.
5996 (vectorizable_type_demotion): Likewise.
5997 (vectorizable_type_promotion): Likewise.
5998 (vectorizable_induction): Add restriction to not vectorize in case
5999 we have data-types of different sizes in the loop.
6000
6001 2008-08-14 Christophe Saout <christophe@saout.de>
6002 Uros Bizjak <ubizjak@gmail.com>
6003
6004 PR target/37101
6005 * config/i386/sse.md (vec_concatv2di): Remove movlps alternative.
6006 (*vec_concatv2di_rex64_sse4_1): Ditto.
6007 (*vec_concatv2di_rex64_sse): Ditto.
6008
6009 2008-08-14 Jakub Jelinek <jakub@redhat.com>
6010
6011 PR middle-end/37103
6012 * fold-const.c (fold_widened_comparison): Do not allow
6013 sign changes that change the result even if shorter type
6014 is wider than arg1_unw's type.
6015
6016 2008-08-13 Kazu Hirata <kazu@codesourcery.com>
6017
6018 * gcc.dg/arm-g2.c, gcc.dg/arm-mmx-1.c, gcc.dg/arm-scd42-2.c:
6019 Skip if the multilib testing specifies -march that does not
6020 agree with the one specified in the testcase.
6021
6022 2008-08-13 Joseph Myers <joseph@codesourcery.com>
6023
6024 * config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
6025 zero extend SImode values being converted to TFmode before passing
6026 to libcalls.
6027
6028 2008-08-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6029
6030 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
6031 __PPU__ when targeting the Cell/B.E. PPU processor.
6032
6033 2008-08-13 Eric Botcazou <ebotcazou@adacore.com>
6034
6035 * gimple.h (gimple_call_set_chain): Accept SSA variables.
6036 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <CALL_EXPR>:
6037 Rematerialize the static chain, if any.
6038 * tree-ssa-sccvn.c (copy_reference_ops_from_call): Also copy the
6039 static chain.
6040
6041 2008-08-13 H.J. Lu <hongjiu.lu@intel.com>
6042
6043 * dwarf2out.c (dwarf_stack_op_name): Remove prototype.
6044 (new_loc_descr): Likewise.
6045 (add_loc_descr): Likewise.
6046 (size_of_loc_descr): Likewise.
6047 (size_of_locs): Likewise.
6048 (output_loc_operands): Likewise.
6049 (output_loc_sequence): Likewise.
6050 (new_reg_loc_descr): New.
6051 (build_cfa_loc): Use it.
6052 (build_cfa_aligned_loc): Likewise.
6053 (one_reg_loc_descriptor): Likewise.
6054 (based_loc_descr): Likewise.
6055
6056 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6057
6058 PR 30551
6059 * doc/invoke.texi (Wmain): Update.
6060 * c-decl.c (start_decl): warn_main is only 0 or 1.
6061 (start_function): Likewise. Fix formatting.
6062 (finish_function): Delete redundant warning.
6063 * c.opt (Wmain): Add Var(warn_main) and Init(-1).
6064 * c-opts (c_common_handle_option): -Wall only has effect if
6065 warn_main is uninitialized. OPT_Wmain is automatically
6066 handled. -pedantic also enables Wmain.
6067 (c_common_post_options): Handle all logic for Wmain here.
6068 * c-common.c (warn_main): Delete.
6069 (check_main_parameter_types): Make pedwarns conditional on OPT_Wmain.
6070 * c-common.h (warn_main): Delete.
6071
6072 2008-08-13 H.J. Lu <hongjiu.lu@intel.com>
6073
6074 PR middle-end/36701
6075 * expr.c (emit_group_store): Allocate stack temp with the
6076 largest alignment when copying from register to stack.
6077
6078 2008-08-13 Richard Guenther <rguenther@suse.de>
6079
6080 * tree.h (maybe_fold_offset_to_address): Declare.
6081 * tree-ssa-ccp.c (surely_varying_stmt_p): Fix typo in last commit.
6082 (ccp_fold): Handle pointer conversions the same as fold_stmt.
6083 Likewise for POINTER_PLUS_EXPR.
6084 (maybe_fold_offset_to_reference): Enable disabled code.
6085 (maybe_fold_offset_to_address): New function.
6086 (fold_stmt_r): Use it.
6087 (fold_gimple_assign): Likewise.
6088 * gimplify.c (gimplify_conversion): Use maybe_fold_offset_to_address.
6089 (gimplify_expr): Likewise.
6090
6091 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6092
6093 * toplev.h (pedwarn_at): Fix declaration.
6094
6095 2008-08-13 Joseph Myers <joseph@codesourcery.com>
6096
6097 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
6098 LINK_SPEC): Use %R in -Y P argument.
6099
6100 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6101
6102 PR c/15236
6103 * diagnostic.c (pedwarn_at): New.
6104 * toplev.h (pedwarn_at): Declare.
6105 * c-tree.h (build_enumerator): Update declaration.
6106 * c-decl.c (finish_enum): Update comment.
6107 (build_enumerator): Take a location parameter. Give a pedwarn but do
6108 not perform any conversion.
6109 * c-parser.c (c_parser_enum_specifier): Set correct location for
6110 enumerator.
6111
6112 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6113
6114 PR 35635
6115 * c-common.c (conversion_warning): Use a switch. Ignore boolean
6116 expressions except for conversions to signed:1 bitfields. Handle
6117 COND_EXPR with constant operands.
6118
6119 2008-08-13 Richard Guenther <rguenther@suse.de>
6120
6121 PR tree-optimization/15255
6122 * tree-ssa-reassoc.c (linearize_expr_tree): Declare.
6123 (struct oecount_s): New struct and VEC types.
6124 (cvec): New global.
6125 (oecount_hash): New function.
6126 (oecount_eq): Likewise.
6127 (oecount_cmp): Likewise.
6128 (zero_one_operation): New function.
6129 (build_and_add_sum): Likewise.
6130 (undistribute_ops_list): Perform un-distribution of multiplication
6131 and division on the chain of summands.
6132 (should_break_up_subtract): Also break up subtracts for factors.
6133 (reassociate_bb): Delete dead visited statements.
6134 Call undistribute_ops_list. Re-sort and optimize if it did something.
6135 * passes.c (init_optimization_passes): Move DSE before
6136 reassociation.
6137 * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Correctly handle
6138 PHI nodes.
6139
6140 2008-08-12 Janis Johnson <janis187@us.ibm.com>
6141
6142 * doc/invoke.texi (-fipa-pta): Say the option is experimental.
6143
6144 * doc/invoke.texi: Revert unintended checkin.
6145
6146 2008-08-12 Nathan Froyd <froydnj@codesourcery.com>
6147
6148 PR libgomp/26165
6149 * gcc.c (include_spec_function): Tweak call to find_a_file.
6150
6151 2008-08-12 Jakub Jelinek <jakub@redhat.com>
6152
6153 PR middle-end/37014
6154 * expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
6155 and TRUTH_ORIF_EXPR.
6156 * dojump.c (do_jump): Likewise.
6157
6158 PR tree-optimization/37084
6159 * tree-inline.c (copy_bb): Call gimple_regimplify_operands
6160 if id->regimplify, don't assume stmt is a cast assignment.
6161
6162 2008-08-12 Anatoly Sokolov <aesok@post.ru>
6163
6164 * final.c (final_scan_insn): Use app_enable/app_disable functions.
6165
6166 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6167
6168 PR bootstrap/37097
6169 * builtins.c (do_mpfr_bessel_n): Fix copy-and-paste bug introduced
6170 by last change.
6171
6172 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6173
6174 * defaults.h (TARGET_FLOAT_FORMAT): Remove.
6175 (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT): Remove.
6176
6177 * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Remove.
6178 * config/iq2000/iq2000.h (TARGET_FLOAT_FORMAT): Remove.
6179 * config/pdp11/pdp11.h (TARGET_FLOAT_FORMAT): Remove.
6180 * config/score/score.h (TARGET_FLOAT_FORMAT): Remove.
6181 * config/vax/vax.h (TARGET_FLOAT_FORMAT): Remove.
6182
6183 * doc/tm.texi (Storage Layout): Remove documentation for
6184 TARGET_FLOAT_FORMAT.
6185
6186 * simplify-rtx.c (simplify_binary_operation_1): Replace
6187 TARGET_FLOAT_FORMAT check by appropriate HONOR_... checks.
6188
6189 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6190
6191 * real.h (struct real_format): New member has_sign_dependent_rounding.
6192 * real.c (ieee_single_format, mips_single_format, motorola_single_format,
6193 spu_single_format, ieee_double_format, mips_double_format,
6194 motorola_double_format, ieee_extended_motorola_format,
6195 ieee_extended_intel_96_format, ieee_extended_intel_128_format,
6196 ieee_extended_intel_96_round_53_format, ibm_extended_format,
6197 mips_extended_format, ieee_quad_format, mips_quad_format,
6198 vax_f_format, vax_d_format, vax_g_format): Initialize it.
6199 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
6200
6201 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
6202 MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
6203 * config/spu/spu.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
6204 MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
6205 (ROUND_TOWARDS_ZERO): Likewise.
6206
6207 * real.h (REAL_MODE_FORMAT): Protect MODE against macro expansion.
6208 (FLOAT_MODE_FORMAT): New macro.
6209 (REAL_MODE_FORMAT_COMPOSITE_P): Remove, replace by ...
6210 (MODE_COMPOSITE_P): ... this new macro.
6211 (MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
6212 MODE_HAS_SIGN_DEPENDENT_ROUNDING): New macros.
6213 * machmode.h (GET_MODE_INNER): Cast result to enum machine_mode.
6214
6215 * flags.h: Include "real.h".
6216
6217 * fold-const.c (const_binop): Use MODE_COMPOSITE_P instead of
6218 REAL_MODE_FORMAT_COMPOSITE_P.
6219 * simplify-rtx.c (simplify_const_binary_operation): Likewise.
6220
6221 * doc/tm.texi (Storage Layout): Remove documentation of
6222 MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
6223 MODE_HAS_SIGN_DEPENDENT_ROUNDING. Update documentation of
6224 ROUND_TOWARDS_ZERO and LARGEST_EXPONENT_IS_NORMAL to clarify
6225 they only apply to libgcc2.a.
6226
6227 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6228
6229 * config/spu/float_disf.c: New file.
6230 * config/spu/float_unsdisf.c: New file.
6231 * config/spu/t-elf (LIB2FUNCS_STATIC_EXTRA): Add them.
6232 (LIB2FUNCS_EXCLUDE): Define.
6233
6234 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6235 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
6236
6237 * real.h (struct real_format): New member round_towards_zero.
6238 * real.c (round_for_format): Respect fmt->round_towards_zero.
6239 (ieee_single_format, mips_single_format, motorola_single_format,
6240 spu_single_format, ieee_double_format, mips_double_format,
6241 motorola_double_format, ieee_extended_motorola_format,
6242 ieee_extended_intel_96_format, ieee_extended_intel_128_format,
6243 ieee_extended_intel_96_round_53_format, ibm_extended_format,
6244 mips_extended_format, ieee_quad_format, mips_quad_format,
6245 vax_f_format, vax_d_format, vax_g_format): Initialize it.
6246 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
6247
6248 * builtins.s (do_mpfr_arg1): Consider round_towards_zero member of
6249 real_format to choose rounding mode when calling MPFR functions.
6250 (do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Likewise.
6251 (do_mpfr_bessel_n, do_mpfr_remquo, do_mpfr_lgamma_r): Likewise.
6252
6253 * real.h (real_to_decimal_for_mode): Add prototype.
6254 * real.c (real_to_decimal_for_mode): Renames old real_to_decimal.
6255 Respect target rounding mode when generating decimal representation.
6256 (real_to_decimal): New stub for backwards compatibility.
6257 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Use
6258 real_to_decimal_for_mode instead of real_to_decimal.
6259
6260 * config/spu/spu.md ("floatdisf2", "floatunsdisf2"): New.
6261
6262 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6263 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
6264
6265 * real.c (spu_single_format): New variable.
6266 * real.h (spu_single_format): Declare.
6267
6268 * config/spu/spu.c (spu_override_options): Install SFmode format.
6269 (spu_split_immediate): Use integer mode to operate on pieces of
6270 floating-point values in all cases.
6271
6272 * config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
6273 ("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
6274 ("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.
6275
6276 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6277
6278 * config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
6279
6280 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6281
6282 * config/spu/spu.h (DWARF_FRAME_RETURN_COLUMN): Define.
6283
6284 2008-08-12 Jakub Jelinek <jakub@redhat.com>
6285
6286 PR c++/36688
6287 * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
6288 on the VAR_DECL instead of TYPE_READONLY on its type.
6289
6290 2008-08-12 Ira Rosen <irar@il.ibm.com>
6291
6292 * tree-vectorizer.c: Depend on langhooks.h.
6293 (supportable_widening_operation): Add two arguments. Support double
6294 type conversions.
6295 (supportable_narrowing_operation): Likewise.
6296 * tree-vectorizer.h (supportable_widening_operation): Add two
6297 arguments.
6298 (supportable_narrowing_operation): Likewise.
6299 * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call
6300 supportable_widening_operation with correct arguments.
6301 * tree-vect-transform.c (vectorizable_conversion): Likewise.
6302 (vectorizable_type_demotion): Support double type conversions.
6303 (vectorizable_type_promotion): Likewise.
6304 * Makefile.in (tree-vectorizer.o): Depend on langhooks.h.
6305
6306 2008-08-11 Michael Matz <matz@suse.de>
6307
6308 * i386/i386.c (override_options): Move initialisation from
6309 flag_schedule_insns_after_reload to here from ...
6310 (optimization_options): ... here.
6311
6312 2008-08-11 Jakub Jelinek <jakub@redhat.com>
6313
6314 PR rtl-optimization/36998
6315 * dwarf2out.c (compute_barrier_args_size_1,
6316 compute_barrier_args_size): Temporarily remove assertions.
6317
6318 2008-08-10 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6319
6320 PR middle-end/20644
6321 * tree-ssa.c (struct walk_data): Add new flag
6322 warn_possibly_uninitialized.
6323 (warn_uninitialized_var): Use it.
6324 (warn_uninitialized_vars): New.
6325 (execute_early_warn_uninitialized): Call it.
6326 (execute_late_warn_uninitialized): Likewise.
6327
6328 2008-08-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
6329
6330 PR middle-end/36238
6331 * reload1.c (gen_reload): Guard calls to get_secondary_mem
6332 for memory subregs.
6333
6334 2008-08-09 Jan Hubicka <jh@suse.cz>
6335
6336 PR target/37055
6337 * optabs.c (maybe_emit_unop_insn): Remove produced code if
6338 expansion failed.
6339 (expand_fix): Be prepared for expansion to fail.
6340 (expand_sfix_optab): Remove instructions if expansion failed.
6341
6342 2008-08-09 Anatoly Sokolov <aesok@post.ru>
6343
6344 * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
6345 avr31 architecture.
6346 * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
6347 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
6348
6349 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
6350
6351 * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
6352 mips/t-libgcc-mips16 to tmake_file.
6353 * config/mips/mips-protos.h (mips_call_type): New enum.
6354 (mips_pic_base_register, mips_got_load): Declare.
6355 (mips_restore_gp): Take an rtx argument.
6356 (mips_use_pic_fn_addr_reg_p): Declare.
6357 (mips_expand_call): Replace the sibcall_p argument with
6358 a mips_call_type argument. Add a lazy_p parameter.
6359 (mips_split_call): Declare.
6360 * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
6361 (MIPS16_PIC_TEMP): Likewise.
6362 (reg_class): Delete M16_NA_REGS.
6363 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
6364 (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
6365 (mips_split_hi_p): Declare.
6366 * config/mips/mips.c (mips_split_hi_p): New array.
6367 (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
6368 (mips_got_symbol_type_p): New function.
6369 (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
6370 (mips16_stub_function_p): New function.
6371 (mips16_local_function_p): Likewise.
6372 (mips_use_pic_fn_addr_reg_p): Likewise.
6373 (mips_cannot_force_const_mem): Return false for HIGHs.
6374 Extend CONST_INT and symbolic handling to MIPS16, using
6375 mips_symbol_insns to check that the base symbol type is a
6376 legitimate constant. Reject GOT-based constants if
6377 TARGET_MIPS16_PCREL_LOADS.
6378 (mips_const_insns): Check targetm.cannot_force_const_mem when
6379 decomposing a symbolic base and a large offset.
6380 (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
6381 When calling a function that needs $25 from MIPS16 code,
6382 move the target address into $25 separately and add a USE
6383 to the call insn.
6384 (mips16_gp_pseudo_reg): Insert the initializer immediately
6385 before the first real insn.
6386 (mips_pic_base_register, mips_got_load): New functions.
6387 (mips_split_symbol): Generalize the name of the LO_SUM_OUT
6388 parameter to LOW_OUT. Say that it can be any valid SET_SRC
6389 when splitting a load-address operation. Split SYMBOL_GOT_DISP
6390 constants and highs of SYMBOL_GOT_PAGE_OFST constants.
6391 (mips_call_tls_get_addr): Update the call to mips_expand_call,
6392 also passing NULL_RTX rather than const0_rtx as the aux argument.
6393 (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
6394 instead of TARGET_EXPLICIT_RELOCS.
6395 (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
6396 (mips_load_call_address): Replace the sibcall_p argument with
6397 a mips_call_type argument. Use mips_got_load.
6398 (mips16_local_alias): New structure.
6399 (mips16_local_aliases): New variable.
6400 (mips16_local_aliases_hash): New function.
6401 (mips16_local_aliases_eq): Likewise.
6402 (mips16_local_alias): Likewise.
6403 (mips16_stub_function): Likewise.
6404 (mips16_build_function_stub): Create a local alias for the target
6405 function. Handle TARGET_ABICALLS. For PIC abicalls, emit a
6406 .cpload directive and an R_MIPS_NONE relocation for the target
6407 function, then load the alias rather than the function itself.
6408 Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
6409 (mips16_copy_fpr_return_value): Use mips16_stub_function and
6410 mips_expand_call. Set SYMBOL_REF_BIND_NOW on the symbol.
6411 (mips16_build_call_stub): Replace the FN parameter with an
6412 FN_PTR parameter. Force the address into a register if it
6413 isn't a call_insn_operand; don't rely on the caller to do this.
6414 If a call to a locally-defined and locally-binding MIPS16
6415 function must be made indirectly, redirect the call to the
6416 function's local alias. Use mips16_stub_function_p,
6417 mips16_stub_function, mips_expand_call and use_reg.
6418 Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
6419 Use explicit %hi and %lo accesses where possible.
6420 Use MIPS_CALL to generate the correct code form of a
6421 jal instruction. Add clobbers of $18 instead of uses.
6422 Update the call to mips_emit_call_insn.
6423 (mips_expand_call): Replace the SIBCALL_P argument with a
6424 mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
6425 Take a LAZY_P parameter. Call mips16_build_call_stub first,
6426 allowing it to modify the call address. Update the calls to
6427 mips_load_call_address and mips_emit_call_insn.
6428 (mips_split_call): New function.
6429 (mips_init_relocs): Clear mips_split_hi_p. Only use %gp_rel if
6430 !TARGET_MIPS16. Split SYMBOL_GOT_DISP, and the high parts of
6431 SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
6432 (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
6433 (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
6434 if TARGET_MIPS16.
6435 (mips_cprestore_slot): New function.
6436 (mips_restore_gp): Take a TEMP parameter. Handle TARGET_MIPS16
6437 and use mips_cprestore_slot.
6438 (mips_output_function_prologue): Handle TARGET_MIPS16 for
6439 LOADGP_OLDABI.
6440 (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
6441 then use a copygp_mips16 instruction to set up $28.
6442 (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
6443 (mips16_lay_out_constants): Call split_all_insns_noflow.
6444 (mips_reorg_process_insns): Explicitly set all_noreorder_p to
6445 false if TARGET_MIPS16.
6446 (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
6447 (mips_output_mi_thunk): Use mips_got_symbol_type_p. Use the
6448 mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
6449 (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
6450 MIPS16 code. Allow MIPS16 o32 PIC.
6451 (mips_override_options): Allow MIPS16 o32 PIC.
6452 * config/mips/mips.md: Lower CONST_GP_P moves into register moves
6453 after reload if TARGET_USE_GOT.
6454 (UNSPEC_COPYGP): New constant.
6455 (length): Use a default length of 8 for MIPS16 GOT loads.
6456 (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
6457 (*got_page<mode>): Check mips_split_hi_p.
6458 (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
6459 (unspec_got<mode>, unspec_call<mode>): New expanders.
6460 (load_got<mode>, load_call<mode>): Remove the length attributes.
6461 Use a got attribute instead of a type attribute.
6462 (copygp_mips16): New insn.
6463 (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
6464 (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
6465 (sibcall, sibcall_value, call, call_value): Update the calls
6466 to mips_expand_call.
6467 (call_internal, call_value_internal): Use mips_split_call.
6468 (call_value_multiple_internal): Likewise.
6469 (call_split): Move after call_internal (the insn it is split from).
6470 (call_internal_direct, call_value_internal_direct): Turn into
6471 define_insn_and_splits. Split if TARGET_SPLIT_CALLS.
6472 (call_direct_split, call_value_direct_split): New patterns.
6473 * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
6474 and use M16_REGS instead of M16_NA_REGS.
6475 * config/mips/predicates.md (const_call_insn_operand): Replace
6476 the TARGET_ABSOLUTE_ABICALLS-based check with a more general
6477 mips_use_pic_fn_addr_reg_p check.
6478 (move_operand): Reject HIGHs if mips_split_hi_p.
6479 * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
6480 (__mips16_floatunsisf): Inline __mips16_floatsisf.
6481 (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
6482 * config/mips/libgcc-mips16.ver: New file.
6483 * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
6484 $(srcdir)/config/mips/libgcc-mips16.ver.
6485
6486 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
6487
6488 * config/mips/mips.c (mips_unspec_address_offset): Move earlier
6489 in file.
6490 (mips_unspec_address, mips_unspec_offset_high): Likewise.
6491 (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
6492 (mips16_cfun_returns_in_fpr_p): Likewise.
6493
6494 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
6495
6496 * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
6497 * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
6498 rather than 4 to PC.
6499
6500 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
6501
6502 * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
6503 (FUNCTION_PROFILER): Save the static chain pointer into $2
6504 beforehand and restore it aftewards.
6505 (TRAMPOLINE_TEMPLATE): Adjust accordingly. Load the target
6506 address directly into $25 and call the function through $25;
6507 do not clobber $3. Pad the DImode version to cover the space
6508 left by the deleted $25 <- $3 move.
6509 (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
6510 the removal of the $25 <- $3 move.
6511 (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
6512 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
6513
6514 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
6515 Daniel Jacobowitz <dan@codesourcery.com>
6516
6517 * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
6518 * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
6519 (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
6520 * config/mips/mips.c (mips_start_function_definition): New function.
6521 (mips_end_function_definition): Likewise.
6522 (mips_output_function_prologue): Use mips_start_function_definition.
6523 (mips_output_function_epilogue): Use mips_end_function_definition.
6524 (build_mips16_function_stub): Use mips_start_function_definition
6525 and mips_end_function_definition.
6526 (build_mips16_call_stub): Likewise.
6527
6528 2008-08-09 Richard Guenther <rguenther@suse.de>
6529
6530 * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
6531 * gimple.h (gimple_call_fn): Adjust comment.
6532 (gimple_call_set_fndecl): New function.
6533 (gimple_call_fndecl): Adjust for GIMPLE_CALL no
6534 longer having bare FUNCTION_DECL operand.
6535 (gimple_call_return_type): Likewise.
6536 * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
6537
6538 * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
6539 (gimple_mod_pow2): Likewise.
6540 (gimple_mod_subtract): Likewise.
6541 (gimple_ic): Likewise.
6542 (gimple_stringop_fixed_value): Likewise.
6543 (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
6544 longer having bare FUNCTION_DECL operand.
6545 * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
6546 * omp-low.c (optimize_omp_library_calls): Likewise.
6547 * cgraphunit.c (update_call_expr): Likewise.
6548 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
6549 (execute_convert_to_rsqrt): Likewise.
6550 * cfgexpand.c (gimple_to_tree): Simplify.
6551 (release_stmt_tree): Fix for GIMPLE_CALL no longer having
6552 bare FUNCTION_DECL operand.
6553 * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
6554 (convert_gimple_call): Use gimple_call_fndecl.
6555 * c-common.c (c_warn_unused_result): Likewise.
6556
6557 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6558
6559 PR c/17880
6560 * c-typeck.c (digest_init): Call verify_sequence_points from here.
6561 (c_finish_return): Likewise.
6562 (c_start_case): Likewise.
6563 * c-common.c (warn_for_collisions_1): Use explicit location in warning.
6564 * c-parser.c (c_parser_condition): New. Call
6565 verify_sequence_points.
6566 (c_parser_paren_condition): Call c_parser_condition.
6567 (c_parser_for_statement): Call c_parser_condition.
6568
6569 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6570
6571 PR 36901
6572 * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.
6573 * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
6574 Moved from diagnostic.h
6575 (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
6576 DK_PERMERROR.
6577 (emit_diagnostic): New.
6578 (warning0, pedwarn0): Delete.
6579 (warning, warning_at, pedwarn, permerror): Return bool.
6580 * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
6581 Moved to diagnostic.c.
6582 (struct diagnostic_context): Use correct type for
6583 classify_diagnostic.
6584 (diagnostic_report_diagnostic): Update declaration.
6585 (emit_diagnostic): Declare.
6586 * errors.c (warning): Return bool.
6587 * errors.h (warning): Update declaration.
6588 * toplev.h (warning0, pedwarn0): Delete.
6589 (warning, warning_at, pedwarn, permerror): Return bool.
6590 * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
6591 * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
6592 inform. Update all calls.
6593 (diagnose_mismatched_decls): Check return value of warning/pedwarn
6594 before giving informative note.
6595 (implicit_decl_warning): Likewise.
6596 * c-typeck.c (build_function_call): Likewise.
6597 * tree-sssa.c (warn_uninit): Likewise.
6598 * builtins.c (gimplify_va_arg_expr): Likewise.
6599
6600 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6601
6602 PR 7651
6603 * doc/invoke.texi (-Wextra): Move warning from here...
6604 (-Wuninitialized): ... to here.
6605
6606 2008-08-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6607
6608 PR 28875
6609 * flags.h (set_Wunused): Delete
6610 * toplev.c (process_options): Handle Wunused flags here.
6611 * opts.c (maybe_warn_unused_parameter): Delete.
6612 (common_handle_option): Replace set_Wunused by warn_unused.
6613 (set_Wextra): Do not handle Wunused-parameter here.
6614 (set_Wunused): Delete.
6615 * c-opts.c (c_common_handle_option): Replace set_Wunused by
6616 warn_unused.
6617 * common.opt (Wunused): Add Var and Init.
6618 (Wunused-function): Likewise.
6619 (Wunused-label): Likewise.
6620 (Wunused-parameter): Likewise.
6621 (Wunused-value): Likewise.
6622 (Wunused-variable): Likewise.
6623
6624 2008-08-08 Peter Bergner <bergner@vnet.ibm.com>
6625
6626 * doc/invoke.texi: Add cpu_type power7.
6627 * config.in (HAVE_AS_VSX): New.
6628 * config.gcc: Add cpu_type power7.
6629 * configure.ac (HAVE_AS_VSX): Check for assembler support of the
6630 VSX instructions.
6631 * configure: Regenerate.
6632 * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
6633 power5.
6634 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
6635 (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
6636 (EXTRA_SPECS): Add asm_cpu_power7 spec string.
6637
6638 2008-08-08 Dorit Nuzman <dorit@il.ibm.com>
6639
6640 * tree-vect-transform.c (vectorizable_conversion): Pass the integral
6641 type to vectorize.builtin_conversion.
6642 (vectorizable_conversion): Likewise.
6643 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
6644 integral type as input.
6645 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
6646 FIX_TRUNC_EXPR.
6647 (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
6648 and ALTIVEC_BUILTIN_VCTSXS.
6649 (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
6650 formatting.
6651
6652 2008-08-08 Richard Guenther <rguenther@suse.de>
6653
6654 * tree-ssa-ccp.c (likely_value): Calls are not all varying.
6655 (surely_varying_stmt_p): Calls are varying only if they are
6656 non-builtin and not indirect or have no result.
6657 (ccp_fold): Re-instantiate code before the tuples merge.
6658
6659 2008-08-08 Richard Guenther <rguenther@suse.de>
6660
6661 PR tree-optimization/37056
6662 * gimple.h (gimple_assign_rhs_class): New helper function.
6663 * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
6664 unary operations properly.
6665
6666 2008-08-07 Jan Hubicka <jh@suse.cz>
6667
6668 * i386.h (ix86_size_cost): Declare.
6669 (ix86_cur_cost): New function macro.
6670 * i386.md (peepholes expanding size and splitters): Predicate by
6671 optimize_insn_for_speed_p.
6672 (peepholes reduce size and splitters): Predicate by
6673 optimize_insn_for_size_p.
6674 * i386.c (ix86_size_cost): Rename from ...
6675 (size_cost): This one.
6676 (override_options): Update.
6677 (decide_alg): Likewise.
6678 (ix86_expand_clear): Use RTL profile.
6679 (ix86_pad_returns): Use RTL profile.
6680
6681 2008-08-07 Jan Hubicka <jh@suse.cz>
6682
6683 * recog.c (split_all_insns): Set RTL profile
6684 (peephole2_optimize): Likewise.
6685 * function.c (thread_prologue_and_epilogue_insns): Likewise.
6686 * combine.c (combine_instructions): Likewise.
6687
6688 2008-08-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6689
6690 * c-common.c (c_common_reswords): Also warn about keyword "bool".
6691
6692 2008-08-07 Bob Wilson <bob.wilson@acm.org>
6693
6694 * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming
6695 value in a6 after the set_frame_ptr insn.
6696
6697 2008-08-07 Richard Henderson <rth@redhat.com>
6698
6699 PR debug/37033
6700 * gcc.c (cpp_options): Pass along -g*.
6701
6702 2008-08-07 Joseph Myers <joseph@codesourcery.com>
6703
6704 * config/arm/arm.c (output_move_neon): Update comment describing
6705 big-endian vector layout.
6706 (arm_assemble_integer): Do not handle big-endian NEON vectors
6707 specially.
6708 * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
6709 neon_vget_lane<mode>_sext_internal,
6710 neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
6711 element indices for big-endian.
6712
6713 2008-08-07 Richard Henderson <rth@redhat.com>
6714
6715 * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
6716 * configure, config.in: Rebuild.
6717 * debug.h (dwarf2out_do_cfi_asm): Declare.
6718 * c-cppbuiltin.c (c_cpp_builtins): Use it.
6719 * dwarf2out.c (dwarf2out_do_cfi_asm): New.
6720 (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
6721 dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
6722
6723 2008-08-07 Joseph Myers <joseph@codesourcery.com>
6724
6725 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
6726 movv2si_internal): Combine into mov<mode>_internal.
6727 (movv2si_internal_2): Remove.
6728
6729 2008-08-07 Jan Hubicka <jh@suse.cz>
6730
6731 PR target/37048
6732 * i386.md (single stringop patterns): Enable unconditionally.
6733
6734 2008-08-07 H.J. Lu <hongjiu.lu@intel.com>
6735
6736 PR target/36992
6737 * config/i386/emmintrin.h (_mm_move_epi64): Use __builtin_ia32_movq128.
6738
6739 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
6740 (bdesc_args): Add IX86_BUILTIN_MOVQ128.
6741
6742 * config/i386/sse.md (sse2_movq128): New.
6743
6744 * doc/extend.texi: Document __builtin_ia32_movq128.
6745
6746 2008-08-07 Richard Guenther <rguenther@suse.de>
6747
6748 PR middle-end/37042
6749 * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
6750 pointers can access anything.
6751
6752 2008-08-06 Jan Hubicka <jh@suse.cz>
6753
6754 * optabs.c (emit_unop_insn): Break out to ...
6755 (maybe_emit_unop_insn): ... this one.
6756 (expand_sfix_optab): Use maybe variant.
6757 * optabs.h (maybe_emit_unop_insn): Declare.
6758
6759 * i386.md (mov0 patterns): Enable by default.
6760 (FP conversion expanders): Disable expansion of code expanding
6761 sequences when instruction should be optimized for size.
6762 (single strinop patterns): Enable when optimizing for size.
6763 (string expanders): Disable expanding of code expanding sequences
6764 when optimizning instruction for size.
6765 * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
6766 per BB basis.
6767 (ix86_fp_comparison_sahf_cost): Likewise.
6768 (ix86_expand_branch): Likewise.
6769 (ix86_expand_ashl_const): Likewise.
6770 (ix86_split_ashl): Likewise.
6771 (ix86_expand_strlen): Likewise.
6772 (ix86_emit_fp_unordered_jump): Likewie.
6773
6774 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6775
6776 * c-common.c: Fix typo.
6777 (c_common_reswords): Activate more C++ keyword warnings.
6778
6779 * matrix-reorg.c (compute_offset): Avoid C++ keywords.
6780
6781 2008-08-06 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6782
6783 PR 26785
6784 * diagnostic.c (permerror_at): New.
6785 * toplev.h (permerror_at): Declare.
6786
6787 2008-08-06 Victor Kaplansky <victork@il.ibm.com>
6788 Ira Rosen <irar@il.ibm.com>
6789
6790 * tree-vect-transform.c (vect_model_simple_cost): Return
6791 immediately if stmt is pure SLP.
6792 (vect_model_store_cost): Ditto.
6793 (vect_model_load_cost): Ditto.
6794 (vectorizable_store): Remove PURE_SLP check before call
6795 to vect_model_store_cost.
6796 (vect_model_store_cost): When checking whether stmt describe
6797 strided access, add a check that it is not slp_node.
6798
6799 2008-08-06 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6800
6801 PR 8715
6802 * c-common.c (warn_for_sign_compare): New. Handle separately the
6803 case that 'constant' is zero.
6804 * c-typeck.c (build_binary_op): Move code to c-common.c
6805
6806 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6807
6808 * config/alpha/alpha.c (alpha_preferred_reload_class,
6809 alpha_secondary_reload, alpha_emit_set_const_1, function_value,
6810 alpha_output_mi_thunk_osf): Avoid C++ keywords.
6811 * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
6812 * config/arm/arm.md: Likewise.
6813 * config/avr/avr-protos.h (preferred_reload_class,
6814 test_hard_reg_class, avr_simplify_comparison_p,
6815 out_shift_with_cnt, class_max_nregs): Likewise.
6816 * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
6817 output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
6818 preferred_reload_class, test_hard_reg_class): Likewise.
6819 * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
6820 bfin_memory_move_cost, bfin_secondary_reload,
6821 bfin_output_mi_thunk): Likewise.
6822 * config/crx/crx.c (crx_secondary_reload_class,
6823 crx_memory_move_cost): Likewise.
6824 * config/frv/frv-protos.h (frv_secondary_reload_class,
6825 frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
6826 * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
6827 frv_secondary_reload_class, frv_class_likely_spilled_p,
6828 frv_class_max_nregs): Likewise.
6829 * config/h8300/h8300.c (h8300_classify_operand,
6830 h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
6831 Likewise.
6832 * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
6833 * config/ia64/ia64.c (ia64_preferred_reload_class,
6834 ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
6835 * config/iq2000/iq2000.c (gen_int_relational): Likewise.
6836 * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
6837 Likewise.
6838 * config/m68hc11/m68hc11.c (preferred_reload_class,
6839 m68hc11_memory_move_cost): Likewise.
6840 * config/mcore/mcore.c (mcore_secondary_reload_class,
6841 mcore_reload_class): Likewise.
6842 * config/mips/mips.c (mips_hard_regno_mode_ok_p,
6843 mips_class_max_nregs, mips_cannot_change_mode_class,
6844 mips_preferred_reload_class, mips_secondary_reload_class,
6845 mips_output_mi_thunk): Likewise.
6846 * config/mmix/mmix.c (mmix_preferred_reload_class,
6847 mmix_preferred_output_reload_class, mmix_secondary_reload_class):
6848 Likewise.
6849 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
6850 Likewise.
6851 * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
6852 pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
6853 * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
6854 * config/rs6000/rs6000.c (paired_expand_vector_init,
6855 rs6000_secondary_reload_class, rs6000_output_mi_thunk,
6856 compare_section_name, rs6000_memory_move_cost): Likewise.
6857 * config/s390/s390.c (s390_emit_compare_and_swap,
6858 s390_preferred_reload_class, s390_secondary_reload,
6859 legitimize_pic_address, legitimize_tls_address,
6860 legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
6861 s390_class_max_nregs): Likewise.
6862 * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
6863 * config/s390/s390.md: Likewise.
6864 * config/score/score-protos.h (score_secondary_reload_class,
6865 score_preferred_reload_class): Likewise.
6866 * config/score/score.c (score_preferred_reload_class,
6867 score_secondary_reload_class): Likewise.
6868 * config/score/score3.c (score3_output_mi_thunk,
6869 score3_preferred_reload_class, score3_secondary_reload_class,
6870 score3_hard_regno_mode_ok): Likewise.
6871 * config/score/score3.h (score3_preferred_reload_class,
6872 score3_secondary_reload_class): Likewise.
6873 * config/score/score7.c (score7_output_mi_thunk,
6874 score7_preferred_reload_class, score7_secondary_reload_class,
6875 score7_hard_regno_mode_ok): Likewise.
6876 * config/score/score7.h (score7_preferred_reload_class,
6877 score7_secondary_reload_class): Likewise.
6878 * config/sh/sh.c (prepare_move_operands, output_far_jump,
6879 output_branchy_insn, add_constant, gen_block_redirect,
6880 sh_insn_length_adjustment, sh_cannot_change_mode_class,
6881 sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload): Likewise.
6882 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
6883 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
6884 xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
6885 xstormy16_preferred_reload_class): Likewise.
6886 * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
6887 xtensa_expand_atomic, override_options,
6888 xtensa_preferred_reload_class, xtensa_secondary_reload_class):
6889 Likewise.
6890 * reorg.c (try_merge_delay_insns): Likewise.
6891 * tree.c (merge_dllimport_decl_attributes): Likewise.
6892
6893 * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
6894
6895 2008-08-06 Michael Matz <matz@suse.de>
6896
6897 * Makefile.in (write_entries_to_file): Quote words.
6898 * gengtype.c: (read_input_line): Skip over leading white-space.
6899
6900 2008-08-06 Marc Gauthier <marc@tensilica.com>
6901
6902 * config.gcc: Match more processor names for Xtensa.
6903 * configure.ac: Likewise.
6904 * doc/install.texi (Specific): Likewise.
6905 * configure: Regenerate.
6906
6907 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6908
6909 * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
6910 * calls.c (avoid_likely_spilled_reg): Likewise.
6911 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
6912 * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
6913 * config/i386/i386.c (ix86_expand_special_args_builtin,
6914 ix86_secondary_reload): Likewise.
6915 * except.c (struct eh_region, gen_eh_region_catch,
6916 remove_unreachable_regions, duplicate_eh_regions,
6917 assign_filter_values, build_post_landing_pads,
6918 sjlj_find_directly_reachable_regions, remove_eh_handler,
6919 reachable_next_level, foreach_reachable_handler,
6920 can_throw_internal_1, can_throw_external_1,
6921 collect_one_action_chain): Likewise.
6922 * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
6923 * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
6924 * function.c (update_temp_slot_address, instantiate_new_reg,
6925 instantiate_virtual_regs_in_rtx,
6926 instantiate_virtual_regs_in_insn): Likewise.
6927 * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
6928 * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
6929 gimplify_cleanup_point_expr): Likewise.
6930 * ipa-cp.c (ipcp_lattice_changed): Likewise.
6931 * passes.c (next_pass_1): Likewise.
6932 * print-tree.c (print_node_brief, print_node): Likewise.
6933 * profile.c (branch_prob): Likewise.
6934 * tree-dump.c (dump_register): Likewise.
6935 * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
6936 Likewise.
6937 * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
6938 copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
6939 copy_edges_for_bb, copy_cfg_body, copy_tree_r,
6940 copy_arguments_for_versioning, copy_static_chain): Likewise.
6941 * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
6942 add_new_name_mapping, register_new_name_mapping): Likewise.
6943 * tree-mudflap.c (mf_xform_derefs): Likewise.
6944 * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
6945 get_init_expr, combine_chains): Likewise.
6946 * tree-pretty-print.c (dump_generic_node): Likewise.
6947 * tree-ssa-structalias.c (create_variable_info_for): Likewise.
6948 * tree-vrp.c (simplify_cond_using_ranges): Likewise.
6949 * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
6950 * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
6951
6952 2008-08-06 H.J. Lu <hongjiu.lu@intel.com>
6953
6954 PR middle-end/37010
6955 * calls.c (expand_call): Use the biggest preferred stack
6956 boundary.
6957
6958 2008-08-06 Michael Matz <matz@suse.de>
6959
6960 PR target/36613
6961 * reload.c (push_reload): Merge in,out,in_reg,out_reg members
6962 for reused reload, instead of overwriting them.
6963
6964 2008-08-06 H.J. Lu <hongjiu.lu@intel.com>
6965
6966 PR middle-end/37009
6967 * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
6968 for incoming stack boundary.
6969
6970 * function.c (assign_parm_find_entry_rtl): Update
6971 parm_stack_boundary.
6972
6973 * function.h (rtl_data): Add parm_stack_boundary.
6974
6975 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
6976 parm_stack_boundary for incoming stack boundary.
6977
6978 2008-08-06 Joseph Myers <joseph@codesourcery.com>
6979
6980 * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
6981 for unrepresentable subregs or treat them as equal to other regs
6982 or subregs with the same register number.
6983
6984 2008-08-06 Aldy Hernandez <aldyh@redhat.com>
6985
6986 PR middle-end/35432
6987 * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
6988 if want_value.
6989
6990 2008-08-06 Jan Hubicka <jh@suse.cz>
6991
6992 * predict.c (maybe_hot_frequency_p): When profile is absent, all
6993 frequencies might be hot.
6994
6995 2008-08-06 Andreas Krebbel <krebbel1@de.ibm.com>
6996
6997 * reload.c (find_reloads): Force constants into literal pool
6998 also if they are wrapped in a SUBREG.
6999
7000 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
7001
7002 PR target/35659
7003 * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
7004 * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
7005 Don't allow predicated instructions for data speculation.
7006 * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
7007 declaration.
7008
7009 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
7010
7011 * haifa-sched.c (extend_global): Split to extend_global_data and
7012 extend_region_data. Update all uses.
7013 (extend_all): Rename to extend_block_data.
7014
7015 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
7016
7017 * sched-rgn.c (new_ready): Check if instruction can be
7018 speculatively scheduled before attempting speculation.
7019 (debug_rgn_dependencies): Remove wrongful assert.
7020
7021 2008-08-05 Bob Wilson <bob.wilson@acm.org>
7022
7023 * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
7024
7025 2008-08-05 Bob Wilson <bob.wilson@acm.org>
7026
7027 * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
7028 (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
7029 va_size, and type_size.
7030
7031 2008-08-04 Jason Merrill <jason@redhat.com>
7032
7033 PR c++/37016
7034 * tree-ssa.c (useless_type_conversion_p_1): Call langhook
7035 if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
7036
7037 2008-08-05 Richard Henderson <rth@redhat.com>
7038
7039 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
7040 * configure: Rebuild.
7041
7042 2008-08-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
7043
7044 PR tree-opt/37024
7045 * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
7046 instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
7047 is a conversion.
7048
7049 2008-08-05 Richard Henderson <rth@redhat.com>
7050
7051 * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
7052 * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
7053 * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
7054 * common.opt (fdwarf2-cfi-asm): New.
7055 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
7056 * config.in, configure: Rebuild.
7057 * dwarf2asm.c (dw2_asm_output_data_raw): New.
7058 (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw):
7059 New.
7060 (dw2_force_const_mem): Externalize.
7061 * dwarf2asm.h: Update.
7062 * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
7063 generate a real label.
7064 (output_cfi_directive): New.
7065 (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
7066 (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
7067 (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
7068 and .cfi_lsda.
7069 (dwarf2out_end_epilogue): Emit .cfi_endproc.
7070 (output_loc_operands_raw, output_loc_sequence_raw): New.
7071 (output_cfa_loc_raw): New.
7072
7073 2008-08-05 Paul Brook <paul@codesourcery.com>
7074
7075 * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
7076 * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
7077 (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
7078 (arm_file_start): Add FPUTYPE_VFP3D16. Rename vfp3 to vfpv3.
7079 * config/arm/arm.h (TARGET_VFPD32): Define.
7080 (TARGET_VFP3): Use TARGET_VFPD32.
7081 (fputype): Add FPUTYPE_VFP3D16.
7082 (LAST_VFP_REGNUM): Use TARGET_VFPD32.
7083 * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
7084 * config/arm/arm-cores.def: Add cortex-r4f.
7085 * config/arm/arm-tune.md: Regenerate.
7086
7087 2008-08-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7088
7089 * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
7090 Reword some comments throughout the file.
7091
7092 (MFC_MIN_DMA_LIST_ELEMENTS): New define.
7093 (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
7094 (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of
7095 MFC_MIN_DMA_LIST_ELEMENTS.
7096 (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of
7097 MFC_MAX_DMA_LIST_ELEMENTS.
7098
7099 (MFC_START_ENABLE): Remove PPU-only define.
7100 (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
7101 (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
7102
7103 (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
7104 (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
7105 (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
7106 (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
7107 (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
7108 (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
7109 (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
7110
7111 (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
7112 (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
7113 (mfc_sdcrt, mfc_sdcrtst): Likewise.
7114 (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
7115
7116 (spu_read_machine_status): Fix typo.
7117
7118 2008-08-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7119
7120 * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
7121 SUBREG of multi-word hard register.
7122 * config/spu/spu.c (valid_subreg): Likewise.
7123 (adjust_operand): Handle SUBREGs of multi-word hard registers.
7124
7125 2008-08-04 Richard Guenther <rguenther@suse.de>
7126
7127 * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
7128 the candidate with the stripped base if that base is different
7129 from the original base even for offset zero.
7130
7131 2008-08-04 Richard Guenther <rguenther@suse.de>
7132
7133 PR middle-end/36691
7134 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
7135 check for no_overflow.
7136
7137 2008-08-04 Richard Guenther <rguenther@suse.de>
7138
7139 * tree-vect-transform.c (vectorizable_call): Fix tuplification.
7140
7141 2008-08-04 Paul Brook <paul@codesourcery.com>
7142
7143 * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
7144 (arm_order_regs_for_local_alloc): New function.
7145 * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
7146 prototype.
7147 * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
7148
7149 2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
7150
7151 PR target/37012
7152 * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
7153 instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
7154 (ix86_expand_epilogue): Likewise.
7155
7156 2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
7157
7158 * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
7159 in comments.
7160
7161 2008-08-03 Uros Bizjak <ubizjak@gmail.com>
7162
7163 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
7164 to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
7165 (*movv2sf_internal_rex64): Ditto.
7166
7167 2008-08-03 Jan Hubicka <jh@suse.cz>
7168
7169 * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
7170 expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
7171 * expmed.c (expand_smod_pow2): Likewise.
7172
7173 2008-08-03 Uros Bizjak <ubizjak@gmail.com>
7174
7175 PR target/36992
7176 * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
7177 alternative 0 of operand 1.
7178 (*vec_concatv2di_rex64_sse): Ditto.
7179 (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
7180 of operand 1.
7181 (*sse2_storeq_rex64): Penalize allocation of "r" registers.
7182 * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
7183 of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
7184 (*movv2sf_internal_rex64): Ditto.
7185
7186 2008-08-02 Richard Guenther <rguenther@suse.de>
7187
7188 PR target/35252
7189 * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
7190 (ssedoublesizemode): New mode attribute.
7191 (sse_shufps): Call gen_sse_shufps_v4sf.
7192 (sse_shufps_1): Macroize.
7193 (sse2_shufpd): Call gen_Sse_shufpd_v2df.
7194 (sse2_shufpd_1): Macroize.
7195 (vec_extract_odd, vec_extract_even): New expanders.
7196 (vec_interleave_highv4sf, vec_interleave_lowv4sf,
7197 vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
7198 * i386.c (ix86_expand_vector_init_one_nonzero): Call
7199 gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
7200 (ix86_expand_vector_set): Likewise.
7201 (ix86_expand_reduc_v4sf): Likewise.
7202
7203 2008-08-01 Doug Kwan <dougkwan@google.com>
7204
7205 * matrix-reorg.c: Re-enable all code.
7206 (struct malloc_call_data): Change CALL_STMT to gimple type.
7207 (collect_data_for_malloc_call): Tuplify.
7208 (struct access_site_info): Change STMT to gimple type.
7209 (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
7210 and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
7211 (struct free_info): Change STMT to gimple type.
7212 (struct matrix_access_phi_node): Change PHI to gimple type.
7213 (get_inner_of_cast_expr): Remove.
7214 (may_flatten_matrices_1): Tuplify.
7215 (may_flatten_matrices): Ditto.
7216 (mark_min_matrix_escape_level): Ditto.
7217 (ssa_accessed_in_tree): Refactor statement RHS related code into ...
7218 (ssa_accessed_in_call_rhs): New
7219 (ssa_accessed_in_assign_rhs): New
7220 (record_access_alloc_site_info): Tuplify.
7221 (add_allocation_site): Ditto.
7222 (analyze_matrix_allocation_site): Ditto.
7223 (analyze_transpose): Ditto.
7224 (get_index_from_offset): Ditto.
7225 (update_type_size): Ditto.
7226 (analyze_accesses_for_call_expr): Tuplify and renamed into ...
7227 (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
7228 (analyze_accesses_for_phi_node): Tuplify.
7229 (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
7230 (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
7231 (analyze_matrix_accesses): Tuplify.
7232 (check_var_data): New call-back type for check_var_notmodified_p.
7233 (check_var_notmodified_p): Tuplify and use call-back struct to
7234 return statement found.
7235 (can_calculate_expr_before_stmt): Factor out statement related code
7236 into ...
7237 (can_calculate_stmt_before_stmt): New.
7238 (check_allocation_function): Tuplify.
7239 (find_sites_in_func): Ditto.
7240 (record_all_accesses_in_func): Ditto.
7241 (transform_access_sites): Ditto.
7242 (transform_allocation_sites): Ditto.
7243 (matrix_reorg): Re-enable.
7244 (gate_matrix_reorg): Re-enable.
7245
7246 2008-08-01 Jakub Jelinek <jakub@redhat.com>
7247
7248 * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
7249 for labels for which it hasn't been set yet. If it has been set,
7250 stop walking insns and continue with next worklist item.
7251 (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
7252 if the only BARRIER is at the very end of a function.
7253
7254 2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
7255
7256 * cfgexpand.c (expand_stack_alignment): Assert that
7257 stack_realign_drap and drap_rtx must match.
7258
7259 * function.c (instantiate_new_reg): If DRAP is used to realign
7260 stack, replace virtual_incoming_args_rtx with internal arg
7261 pointer.
7262
7263 2008-08-01 Richard Guenther <rguenther@suse.de>
7264
7265 * tree-ssa-pre.c (fini_pre): Take in_fre parameter. Free
7266 loop information only if we initialized it.
7267 (execute_pre): Call fini_pre with in_fre.
7268 * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
7269 if we do not unroll because we hit max-completely-peeled-insns.
7270 Use our estimation for consistency, do allow shrinking.
7271
7272 2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
7273
7274 * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
7275 with MIN_STACK_BOUNDARY.
7276 (ix86_update_stack_boundary): Likewise.
7277 (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
7278 STACK_BOUNDARY.
7279
7280 * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
7281 (MIN_STACK_BOUNDARY): This.
7282
7283 2008-08-01 Richard Guenther <rguenther@suse.de>
7284
7285 PR middle-end/36997
7286 * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
7287
7288 2008-08-01 Richard Guenther <rguenther@suse.de>
7289
7290 PR tree-optimization/36988
7291 * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
7292 do not matter if that doesn't change volatile qualification.
7293
7294 2008-08-01 Paolo Bonzini <bonzini@gnu.org>
7295
7296 * configure.ac: Do not generate libada-mk. Do not subst
7297 host_cc_for_libada.
7298 * libada-mk.in: Remove.
7299 * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
7300 * configure: Regenerate.
7301
7302 2008-08-01 Basile Starynkevitch <basile@starynkevitch.net>
7303
7304 * tree-pass.h: Added comment about not dumping passes with name
7305 starting with star in struct opt_pass.
7306 * passes.c (register_dump_files_1): Don't do dump for a pass with
7307 name starting with star.
7308 * doc/passes.texi (Pass manager): Mention pass names and special
7309 meaning of star prefix to avoid dump.
7310
7311 2008-07-31 Adam Nemet <anemet@caviumnetworks.com>
7312
7313 * config.gcc (mipsisa64r2*-*-linux*): New configuration. Set ISA
7314 to MIPS64r2.
7315 * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
7316 (ISA_MIPS64R2): New macro.
7317 (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
7318 (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
7319 ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
7320 ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
7321 ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
7322 ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
7323 ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
7324 (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
7325 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
7326 Move up to keep list alphabetically sorted.
7327 (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
7328 * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
7329 processor.
7330 * doc/invoke.texi (MIPS Options): Add -mips64r2.
7331 (-march=@var{arch}): Add mips64r2.
7332
7333 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
7334
7335 * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
7336
7337 2008-07-31 Steve Ellcey <sje@cup.hp.com>
7338
7339 * expr.c (expand_assignment): Check for complete type.
7340
7341 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
7342
7343 PR debug/36977
7344 * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
7345
7346 * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
7347 for stack alignment.
7348
7349 * function.h (rtl_data): Add stack_realign_tried. Update comments.
7350
7351 2008-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
7352
7353 * config/sh/sh.c (sh_canonical_va_list_type): Remove.
7354 (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
7355
7356 2008-07-31 Jakub Jelinek <jakub@redhat.com>
7357
7358 PR rtl-optimization/36419
7359 * dwarf2out.c (barrier_args_size): New variable.
7360 (compute_barrier_args_size, compute_barrier_args_size_1): New
7361 functions.
7362 (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
7363 if not called yet in the current function, use barrier_args_size
7364 array to find the new args_size value.
7365 (dwarf2out_frame_debug): Free and clear barrier_args_size.
7366
7367 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
7368
7369 PR debug/36980
7370 * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
7371 rule 19.
7372
7373 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
7374
7375 PR debug/36976
7376 * dwarf2out.c (dwarf2out_args_size_adjust): New.
7377 (dwarf2out_stack_adjust): Use it.
7378 (dwarf2out_frame_debug_expr): Likewise.
7379
7380 2008-07-31 Richard Guenther <rguenther@suse.de>
7381
7382 PR tree-optimization/36978
7383 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
7384 the generated condition.
7385
7386 2008-07-31 Richard Guenther <rguenther@suse.de>
7387
7388 * passes.c (init_optimization_passes): Always call
7389 pass_early_warn_uninitialized.
7390 * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
7391 * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
7392 * doc/passes.texi (Warn for uninitialized variables): Adjust.
7393
7394 2008-07-31 Jakub Jelinek <jakub@redhat.com>
7395
7396 PR c/36970
7397 * builtins.c (maybe_emit_free_warning): New function.
7398 (expand_builtin): Process BUILT_IN_FREE even at -O0. Call
7399 maybe_emit_free_warning for BUILT_IN_FREE.
7400
7401 PR debug/36278
7402 * dwarf2out.c (get_context_die): New function.
7403 (force_decl_die, force_type_die): Use it.
7404 (dwarf2out_imported_module_or_decl): Likewise. If base_type_die
7405 returns NULL, force generation of DW_TAG_typedef and put that into
7406 DW_AT_import.
7407
7408 PR preprocessor/36649
7409 * c-pch.c (c_common_read_pch): Save and restore
7410 line_table->trace_includes across PCH restore.
7411
7412 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
7413
7414 PR ada/36554
7415 * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
7416
7417 2008-07-30 Rafael Ãvila de Espíndola <espindola@google.com>
7418
7419 PR 36974
7420 * final.c (call_from_call_insn): Handle COND_EXEC.
7421
7422 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
7423
7424 * builtins.c (std_gimplify_va_arg_expr): Replace
7425 PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
7426 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
7427
7428 2008-07-30 Joey Ye <joey.ye@intel.com>
7429 H.J. Lu <hongjiu.lu@intel.com>
7430
7431 * builtins.c (expand_builtin_setjmp_receiver): Replace
7432 virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
7433 (expand_builtin_apply_args_1): Likewise.
7434 (expand_builtin_longjmp): Need DRAP for stack alignment.
7435 (expand_builtin_apply): Likewise.
7436
7437 * caller-save.c (setup_save_areas): Call assign_stack_local_1
7438 instead of assign_stack_local to allow alignment reduction.
7439
7440 * calls.c (emit_call_1): Need DRAP for stack alignment if
7441 return pops.
7442 (expand_call): Replace virtual_incoming_args_rtx with
7443 crtl->args.internal_arg_pointer.
7444 * stmt.c (expand_nl_goto_receiver): Likewise.
7445
7446 * cfgexpand.c (get_decl_align_unit): Estimate stack variable
7447 alignment and store to stack_alignment_estimated and
7448 max_used_stack_slot_alignment.
7449 (expand_one_var): Likewise.
7450 (expand_stack_alignment): New function.
7451 (tree_expand_cfg): Initialize max_used_stack_slot_alignment
7452 and stack_alignment_estimated fields in rtl_data. Call
7453 expand_stack_alignment at end.
7454
7455 * defaults.h (INCOMING_STACK_BOUNDARY): New.
7456 (MAX_STACK_ALIGNMENT): Likewise.
7457 (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
7458 (SUPPORTS_STACK_ALIGNMENT): Likewise.
7459
7460 * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
7461 stack alignment when generating virtual registers.
7462
7463 * function.c (assign_stack_local): Renamed to ...
7464 (assign_stack_local_1): This. Add a parameter to indicate
7465 if it is OK to reduce alignment.
7466 (assign_stack_local): Use it.
7467 (instantiate_new_reg): Instantiate virtual incoming args rtx
7468 to vDRAP if stack realignment and DRAP is needed.
7469 (assign_parms): Collect parameter/return type alignment and
7470 contribute to stack_alignment_estimated.
7471 (locate_and_pad_parm): Likewise.
7472 (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
7473 with crtl->args.internal_arg_pointer.
7474
7475 * function.h (rtl_data): Add new field drap_reg,
7476 max_used_stack_slot_alignment, stack_alignment_estimated,
7477 stack_realign_needed, need_drap, stack_realign_processed and
7478 stack_realign_finalized.
7479 (stack_realign_fp): New macro.
7480 (stack_realign_drap): Likewise.
7481
7482 * global.c (compute_regsets): Frame pointer is needed when
7483 stack is realigned. Can eliminate frame pointer when stack is
7484 realigned and dynamic realigned argument pointer isn't used.
7485
7486 * reload1.c (update_eliminables): Frame pointer is needed
7487 when stack is realigned.
7488 (init_elim_table): Can eliminate frame pointer when stack is
7489 realigned and dynamic realigned argument pointer isn't used.
7490
7491 * rtl.h (assign_stack_local_1): Declare new funtion.
7492
7493 * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
7494 (TARGET_GET_DRAP_RTX): Likewise.
7495 (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
7496 TARGET_GET_DRAP_RTX.
7497
7498 * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
7499
7500 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
7501 STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
7502
7503 2008-07-30 Xuepeng Guo <xuepeng.guo@intel.com>
7504 H.J. Lu <hongjiu.lu@intel.com>
7505
7506 * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
7507 vdrap_reg, stack_realign and drap_reg_saved.
7508 (add_cfi): Don't allow redefining CFA when DRAP is used.
7509 (reg_save): Handle stack alignment.
7510 (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
7511 alignment. Don't generate DWARF information for (set fp sp)
7512 when DRAP is used.
7513 (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
7514 to INVALID_REGNUM.
7515 (int_loc_descriptor): Move prototype forward. Also define if
7516 DWARF2_UNWIND_INFO is true.
7517 (output_cfa_loc): Handle DW_CFA_expression.
7518 (build_cfa_aligned_loc): New.
7519 (based_loc_descr): Update assert for stack realign. For local
7520 variables, use sp+offset when stack is aligned without drap and
7521 fp+offset when stack is aligned with drap. For arguments, use
7522 cfa+offset when drap is used to align stack.
7523
7524 2008-07-30 Joey Ye <joey.ye@intel.com>
7525 H.J. Lu <hongjiu.lu@intel.com>
7526
7527 * config/i386/i386.c (ix86_force_align_arg_pointer_string):
7528 Break long line.
7529 (ix86_gen_andsp): New.
7530 (ix86_user_incoming_stack_boundary): Likewise.
7531 (ix86_default_incoming_stack_boundary): Likewise.
7532 (ix86_incoming_stack_boundary): Likewise.
7533 (ix86_can_eliminate): Likewise.
7534 (find_drap_reg): Likewise.
7535 (ix86_update_stack_boundary): Likewise.
7536 (ix86_get_drap_rtx): Likewise.
7537 (ix86_finalize_stack_realign_flags): Likewise.
7538 (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
7539 (TARGET_GET_DRAP_RTX): Likewise.
7540 (override_options): Overide option value for new options.
7541 (ix86_function_ok_for_sibcall): Remove check for
7542 force_align_arg_pointer.
7543 (ix86_handle_cconv_attribute): Likewise.
7544 (ix86_function_regparm): Likewise.
7545 (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
7546 (ix86_va_start): Replace virtual_incoming_args_rtx with
7547 crtl->args.internal_arg_pointer.
7548 (ix86_select_alt_pic_regnum): Check DRAP register.
7549 (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
7550 (ix86_compute_frame_layout): Compute frame layout wrt stack
7551 realignment.
7552 (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
7553 (ix86_expand_prologue): Decide if stack realignment is needed
7554 and generate prologue code accordingly.
7555 (ix86_expand_epilogue): Generate epilogue code wrt stack
7556 realignment is really needed or not.
7557
7558 * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
7559 (ABI_STACK_BOUNDARY): Likewise.
7560 (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
7561 (STACK_REALIGN_DEFAULT): Likewise.
7562 (INCOMING_STACK_BOUNDARY): Likewise.
7563 (MAX_STACK_ALIGNMENT): Likewise.
7564 (ix86_incoming_stack_boundary): Likewise.
7565 (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
7566 (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
7567 (CAN_ELIMINATE): Defined with ix86_can_eliminate.
7568 (machine_function): Remove force_align_arg_pointer.
7569
7570 * config/i386/i386.md (BX_REG): New.
7571 (R13_REG): Likewise.
7572
7573 * config/i386/i386.opt (mforce_drap): New.
7574 (mincoming-stack-boundary): Likewise.
7575 (mstackrealign): Add Init(-1).
7576
7577 * config/i386/i386-protos.h (ix86_can_eliminate): New
7578
7579 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
7580
7581 * doc/extend.texi: Update force_align_arg_pointer.
7582
7583 * doc/invoke.texi: Document -mincoming-stack-boundary. Update
7584 -mstackrealign.
7585
7586 * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
7587 (INCOMING_STACK_BOUNDARY): Likewise.
7588 (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
7589 (TARGET_GET_DRAP_RTX): Likewise.
7590
7591 2008-07-30 Andreas Schwab <schwab@suse.de>
7592
7593 PR rtl-optimization/36929
7594 * dse.c (replace_inc_dec): Use emit_insn_before instead of
7595 add_insn_before and fix argument order.
7596 (replace_inc_dec_mem): Handle NULL rtx.
7597
7598 2008-07-30 Andrew Jenner <andrew@codesourcery.com>
7599
7600 * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
7601 function.
7602 (arm_compute_initial_elimination_offset): Use it.
7603 (arm_compute_save_reg_mask): Include static chain save slot when
7604 calculating alignment.
7605 (arm_get_frame_offsets): Ditto.
7606 (thumb1_compute_save_reg_mask): Ensure we have a low register saved
7607 that we can use to decrement the stack when the stack decrement
7608 could be too big for an immediate value in a single insn.
7609 (thumb1_expand_prologue): Avoid using r12 for stack decrement.
7610
7611 2008-07-30 Richard Guenther <rguenther@suse.de>
7612
7613 PR tree-optimization/36967
7614 * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
7615 Release defs of statements we remove.
7616
7617 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
7618
7619 * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
7620 instead of NULL_RTVEC.
7621
7622 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
7623
7624 PR target/35866
7625
7626 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
7627 vector modes.
7628
7629 2008-07-30 Rafael Ãvila de Espíndola <espindola@google.com>
7630
7631 * final.c (call_from_call_insn): New.
7632 (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
7633
7634 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
7635
7636 * configure.ac: Substitute ADA_CFLAGS.
7637 * configure: Regenerate.
7638 * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
7639 * Makefile.in: Remove mention of X_* variables.
7640 * config/pa/x-ada-hpux10: Remove.
7641 * config/pa/x-ada: Remove.
7642
7643 * doc/fragments.texi: Update.
7644
7645 2008-07-30 Olivier Hainque <hainque@adacore.com>
7646
7647 * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
7648 * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
7649 __dso_handle explicitly here.
7650
7651 2008-07-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7652
7653 PR 34389
7654 * c-typeck.c (build_binary_op): Encapsulate code into...
7655 * c-common.c (shorten_binary_op): ...this new function.
7656 (conversion_warning): Use the new function. Handle non-negative
7657 constant in bitwise-and.
7658 * c-common.h (shorten_binary_op): Declare.
7659
7660 2008-07-30 Olivier Hainque <hainque@adacore.com>
7661
7662 * scan.c (make_sstring_space): Add explicit conversions of
7663 allocator's return value.
7664 * fix-header.c (recognized_function): Likewise.
7665
7666 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7667
7668 * doc/cpp.texi: Update to GFDL 1.2.
7669 * doc/gcc.texi: Do not list GPL as Invariant Section.
7670 * doc/gccint.texi: Likewise. Update copyright years.
7671 * doc/install.texi: Update copyright years.
7672
7673 2008-07-30 Alan Modra <amodra@bigpond.net.au>
7674
7675 PR target/36955
7676 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
7677 a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
7678
7679 2008-07-29 Jan Hubicka <jh@suse.cz>
7680
7681 * c-decl.c (merge_decls): Do not handle DECL_INLINE.
7682 (grokdeclarator): Likewise.
7683 * langhooks.c (lhd_warn_unused_global_decl): Use
7684 DECL_DECLARED_INLINE_P.
7685 * print-tree.c (print_node): Remove DECL_INLINE check.
7686
7687 2008-07-29 Richard Guenther <rguenther@suse.de>
7688
7689 PR tree-optimization/36945
7690 * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
7691 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
7692 Record invariant addresses un-decomposed.
7693 (copy_reference_ops_from_call): Record reference call
7694 arguments properly. Simplify.
7695 * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
7696 helper split out from ...
7697 (create_component_ref_by_pieces): ... here. Simplify.
7698 Prepare for recursive invocation for call arguments.
7699 (create_expression_by_pieces): Adjust call to
7700 create_component_ref_by_pieces.
7701 (compute_avail): Process operand 2 of reference ops.
7702
7703 2008-07-29 Richard Guenther <rguenther@suse.de>
7704
7705 * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
7706
7707 2008-07-29 Jakub Jelinek <jakub@redhat.com>
7708
7709 * c-format.c (check_format_types): Revert unwanted checkin.
7710
7711 2008-07-29 Jan Hubicka <jh@suse.cz>
7712
7713 * flags.h (flag_really_no_inline): Remove.
7714 * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
7715 * toplev.c (flag_really_no_inline): Remove.
7716 * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
7717 * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
7718 (cgraph_decide_inlining_incrementally): Likewise.
7719 (compute_inline_parameters): Likewise.
7720 * opts.c (decode_options): Simplify.
7721 * c-opts.c (c_common_post_options): Do not set flag_no_inline.
7722 * common.opt (finline): Initialize to 1.
7723 * tree-inline.c (inlinable_function_p): Check flag_no_inline.
7724
7725 2008-07-29 Jan Hubicka <jh@suse.cz>
7726
7727 * predict.c (always_optimize_for_size_p): New function.
7728 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
7729 optimize_edge_for_size_p, optimize_edge_for_speed_p,
7730 optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
7731 functions.
7732 (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
7733 * function.c (prepare_function_start): Set default profile.
7734 * function.h (rtl_data): Add maybe_hot_insn_p.
7735 * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
7736 (construct_exit_block): Likewise.
7737 (tree_expand_cfg): Likewise.
7738 * basic-block.h
7739 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
7740 optimize_edge_for_size_p, optimize_edge_for_speed_p,
7741 optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
7742 (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
7743 Declare.
7744
7745 2008-07-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7746
7747 PR 34985
7748 * c-decl.c (merge_decls): Merge USED flags.
7749
7750 2008-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
7751
7752 * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
7753 valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
7754 next_stack, lab_false and lab_over trees.
7755
7756 2008-07-28 Richard Guenther <rguenther@suse.de>
7757
7758 PR tree-optimization/36957
7759 * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
7760 (useless_type_conversion_p): Remove.
7761 (types_compatible_p): Remove.
7762 * gimple.h (tree_ssa_useless_type_conversion): Declare.
7763 (useless_type_conversion_p): Declare.
7764 (types_compatible_p): Declare.
7765 (gimple_expr_type): Return the base type only if it is
7766 trivially convertible to the subtype.
7767
7768 2008-07-28 Andreas Tobler <a.tobler@schweiz.org>
7769
7770 * configure.ac: Use the m4_do macro to concatenate the warnings into
7771 one string in ACX_PROG_CC_WARNING_OPTS,
7772 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and
7773 ACX_PROG_CC_WARNINGS_ARE_ERRORS.
7774 * configure: Regenerate.
7775
7776 2008-07-28 Richard Guenther <rguenther@suse.de>
7777
7778 * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
7779 (insert_fake_stores): Remove.
7780 (realify_fake_stores): Likewise.
7781 (execute_pre): Remove dead code.
7782 * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
7783 (find_func_aliases): Deal with it here instead.
7784 Re-enable gcc_unreachable call.
7785
7786 2008-07-28 Richard Guenther <rguenther@suse.de>
7787
7788 Merge from gimple-tuples-branch.
7789
7790 * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
7791 * gimple.def: New file.
7792 * gsstruct.def: Likewise.
7793 * gimple-iterator.c: Likewise.
7794 * gimple-pretty-print.c: Likewise.
7795 * tree-gimple.c: Removed. Merged into ...
7796 * gimple.c: ... here. New file.
7797 * tree-gimple.h: Removed. Merged into ...
7798 * gimple.h: ... here. New file.
7799
7800 * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
7801 * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
7802 --enable-checking=gimple flag.
7803 * config.in: Likewise.
7804 * configure: Regenerated.
7805
7806 * tree-ssa-operands.h: Tuplified.
7807 * tree-vrp.c: Likewise.
7808 * tree-loop-linear.c: Likewise.
7809 * tree-into-ssa.c: Likewise.
7810 * tree-ssa-loop-im.c: Likewise.
7811 * tree-dump.c: Likewise.
7812 * tree-complex.c: Likewise.
7813 * cgraphbuild.c: Likewise.
7814 * tree-ssa-threadupdate.c: Likewise.
7815 * tree-ssa-loop-niter.c: Likewise.
7816 * tree-pretty-print.c: Likewise.
7817 * tracer.c: Likewise.
7818 * gengtype.c: Likewise.
7819 * tree-loop-distribution.c: Likewise.
7820 * tree-ssa-loop-unswitch.c: Likewise.
7821 * cgraph.c: Likewise.
7822 * cgraph.h: Likewise.
7823 * tree-ssa-loop-manip.c: Likewise.
7824 * value-prof.c: Likewise.
7825 * tree-ssa-loop-ch.c: Likewise.
7826 * tree-tailcall.c: Likewise.
7827 * value-prof.h: Likewise.
7828 * tree.c: Likewise.
7829 * tree.h: Likewise.
7830 * tree-pass.h: Likewise.
7831 * ipa-cp.c: Likewise.
7832 * tree-scalar-evolution.c: Likewise.
7833 * tree-scalar-evolution.h: Likewise.
7834 * target.h: Likewise.
7835 * lambda-mat.c: Likewise.
7836 * tree-phinodes.c: Likewise.
7837 * diagnostic.h: Likewise.
7838 * builtins.c: Likewise.
7839 * tree-ssa-alias-warnings.c: Likewise.
7840 * cfghooks.c: Likewise.
7841 * fold-const.c: Likewise.
7842 * cfghooks.h: Likewise.
7843 * omp-low.c: Likewise.
7844 * tree-ssa-dse.c: Likewise.
7845 * ipa-reference.c: Likewise.
7846 * tree-ssa-uncprop.c: Likewise.
7847 * toplev.c: Likewise.
7848 * tree-gimple.c: Likewise.
7849 * tree-gimple.h: Likewise.
7850 * tree-chrec.c: Likewise.
7851 * tree-chrec.h: Likewise.
7852 * tree-ssa-sccvn.c: Likewise.
7853 * tree-ssa-sccvn.h: Likewise.
7854 * cgraphunit.c: Likewise.
7855 * tree-ssa-copyrename.c: Likewise.
7856 * tree-ssa-ccp.c: Likewise.
7857 * tree-ssa-loop-ivopts.c: Likewise.
7858 * tree-nomudflap.c: Likewise.
7859 * tree-call-cdce.c: Likewise.
7860 * ipa-pure-const.c: Likewise.
7861 * c-format.c: Likewise.
7862 * tree-stdarg.c: Likewise.
7863 * tree-ssa-math-opts.c: Likewise.
7864 * tree-ssa-dom.c: Likewise.
7865 * tree-nrv.c: Likewise.
7866 * tree-ssa-propagate.c: Likewise.
7867 * ipa-utils.c: Likewise.
7868 * tree-ssa-propagate.h: Likewise.
7869 * tree-ssa-alias.c: Likewise.
7870 * gimple-low.c: Likewise.
7871 * tree-ssa-sink.c: Likewise.
7872 * ipa-inline.c: Likewise.
7873 * c-semantics.c: Likewise.
7874 * dwarf2out.c: Likewise.
7875 * expr.c: Likewise.
7876 * tree-ssa-loop-ivcanon.c: Likewise.
7877 * predict.c: Likewise.
7878 * tree-ssa-loop.c: Likewise.
7879 * tree-parloops.c: Likewise.
7880 * tree-ssa-address.c: Likewise.
7881 * tree-ssa-ifcombine.c: Likewise.
7882 * matrix-reorg.c: Likewise.
7883 * c-decl.c: Likewise.
7884 * tree-eh.c: Likewise.
7885 * c-pretty-print.c: Likewise.
7886 * lambda-trans.c: Likewise.
7887 * function.c: Likewise.
7888 * langhooks.c: Likewise.
7889 * ebitmap.h: Likewise.
7890 * tree-vectorizer.c: Likewise.
7891 * function.h: Likewise.
7892 * langhooks.h: Likewise.
7893 * tree-vectorizer.h: Likewise.
7894 * ipa-type-escape.c: Likewise.
7895 * ipa-type-escape.h: Likewise.
7896 * domwalk.c: Likewise.
7897 * tree-if-conv.c: Likewise.
7898 * profile.c: Likewise.
7899 * domwalk.h: Likewise.
7900 * tree-data-ref.c: Likewise.
7901 * tree-data-ref.h: Likewise.
7902 * tree-flow-inline.h: Likewise.
7903 * tree-affine.c: Likewise.
7904 * tree-vect-analyze.c: Likewise.
7905 * c-typeck.c: Likewise.
7906 * gimplify.c: Likewise.
7907 * coretypes.h: Likewise.
7908 * tree-ssa-phiopt.c: Likewise.
7909 * calls.c: Likewise.
7910 * tree-ssa-coalesce.c: Likewise.
7911 * tree.def: Likewise.
7912 * tree-dfa.c: Likewise.
7913 * except.c: Likewise.
7914 * except.h: Likewise.
7915 * cfgexpand.c: Likewise.
7916 * tree-cfgcleanup.c: Likewise.
7917 * tree-ssa-pre.c: Likewise.
7918 * tree-ssa-live.c: Likewise.
7919 * tree-sra.c: Likewise.
7920 * tree-ssa-live.h: Likewise.
7921 * tree-predcom.c: Likewise.
7922 * lambda.h: Likewise.
7923 * tree-mudflap.c: Likewise.
7924 * ipa-prop.c: Likewise.
7925 * print-tree.c: Likewise.
7926 * tree-ssa-copy.c: Likewise.
7927 * ipa-prop.h: Likewise.
7928 * tree-ssa-forwprop.c: Likewise.
7929 * ggc-page.c: Likewise.
7930 * c-omp.c: Likewise.
7931 * tree-ssa-dce.c: Likewise.
7932 * tree-vect-patterns.c: Likewise.
7933 * tree-ssa-ter.c: Likewise.
7934 * tree-nested.c: Likewise.
7935 * tree-ssa.c: Likewise.
7936 * lambda-code.c: Likewise.
7937 * tree-ssa-loop-prefetch.c: Likewise.
7938 * tree-inline.c: Likewise.
7939 * tree-inline.h: Likewise.
7940 * tree-iterator.c: Likewise.
7941 * tree-optimize.c: Likewise.
7942 * tree-ssa-phiprop.c: Likewise.
7943 * tree-vect-transform.c: Likewise.
7944 * tree-object-size.c: Likewise.
7945 * tree-outof-ssa.c: Likewise.
7946 * cfgloop.c: Likewise.
7947 * system.h: Likewise.
7948 * tree-profile.c: Likewise.
7949 * cfgloop.h: Likewise.
7950 * c-gimplify.c: Likewise.
7951 * c-common.c: Likewise.
7952 * tree-vect-generic.c: Likewise.
7953 * tree-flow.h: Likewise.
7954 * c-common.h: Likewise.
7955 * basic-block.h: Likewise.
7956 * tree-ssa-structalias.c: Likewise.
7957 * tree-switch-conversion.c: Likewise.
7958 * tree-ssa-structalias.h: Likewise.
7959 * tree-cfg.c: Likewise.
7960 * passes.c: Likewise.
7961 * ipa-struct-reorg.c: Likewise.
7962 * ipa-struct-reorg.h: Likewise.
7963 * tree-ssa-reassoc.c: Likewise.
7964 * cfgrtl.c: Likewise.
7965 * varpool.c: Likewise.
7966 * stmt.c: Likewise.
7967 * tree-ssanames.c: Likewise.
7968 * tree-ssa-threadedge.c: Likewise.
7969 * langhooks-def.h: Likewise.
7970 * tree-ssa-operands.c: Likewise.
7971 * config/alpha/alpha.c: Likewise.
7972 * config/frv/frv.c: Likewise.
7973 * config/s390/s390.c: Likewise.
7974 * config/m32c/m32c.c: Likewise.
7975 * config/m32c/m32c-protos.h: Likewise.
7976 * config/spu/spu.c: Likewise.
7977 * config/sparc/sparc.c: Likewise.
7978 * config/i386/i386.c: Likewise.
7979 * config/sh/sh.c: Likewise.
7980 * config/xtensa/xtensa.c: Likewise.
7981 * config/stormy16/stormy16.c: Likewise.
7982 * config/ia64/ia64.c: Likewise.
7983 * config/rs6000/rs6000.c: Likewise.
7984 * config/pa/pa.c: Likewise.
7985 * config/mips/mips.c: Likewise.
7986
7987 2008-07-28 Simon Baldwin <simonb@google.com>
7988
7989 * c-pragma.c (handle_pragma_message): New function.
7990 (init_pragma): Register handle_pragma_message.
7991 * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
7992 documentation.
7993
7994 2008-07-27 Victor Kaplansky <victork@il.ibm.com>
7995
7996 PR tree-optimization/35252
7997 * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
7998 REALPART_EXPR to be considered as same load operation.
7999
8000 2008-07-27 Eric Botcazou <ebotcazou@adacore.com>
8001
8002 PR tree-optimization/36830
8003 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
8004 (expressions_equal_p): Return false if only one operand is null.
8005
8006 2008-07-26 Gerald Pfeifer <gerald@pfeifer.com>
8007
8008 * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
8009 version requirements.
8010
8011 2008-07-26 Olivier Hainque <hainque@adacore.com>
8012
8013 * collect2.c (symkind): New enum. Symbol kinds we care about.
8014 (is_ctor_dtor): Return symkind instead of int. Adjust prototype,
8015 code and head comment accordingly.
8016 (scan_prog_file): Use symkind names instead of bare integers.
8017
8018 2008-07-25 Jan Hubicka <jh@suse.cz>
8019
8020 * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
8021 DECL_INLINE.
8022 * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
8023 (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
8024 * dojump.c (clear_pending_stack_adjust): Likewise.
8025 * print-tree.c (print_node): Ignore DECL_INLINE.
8026 * tree-inline.c (inlinable_function_p): Likewise.
8027
8028 2008-07-25 Michael Meissner <gnu@the-meissners.org>
8029
8030 * doc/extend.texi (hot attribute): Document that the hot attribute
8031 turns on -O3 for some ports.
8032 (cold attribute): Document that the cold attribute turns on -Os
8033 for some ports
8034
8035 * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
8036 reflect function specific option support.
8037
8038 * target.h (struct target_option_hooks): Add fields to say whether
8039 the cold attribute implies -Os and the hot attribute implies -O3.
8040
8041 * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
8042 By default, do not turn on -Os for cold functions.
8043 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
8044 not turn on -O3 for hot functions.
8045
8046 * c-common.c (handle_hot_attribute): Use target hook to determine
8047 if hot functions should enable -O3.
8048 (handle_cold_attribute): Use target hook to determine if cold
8049 functions should enable -Os.
8050
8051 * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
8052 (override_options): Move disable scheduling to
8053 optimization_options.
8054 (optimization_options): Disable scheduling here, not
8055 override_options.
8056 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
8057 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
8058
8059 * config/ia64/ia64.c (ia64_override_options): Move setting
8060 scheduling flags to ia64_optimization_options.
8061 (ia64_optimization_options): Disable scheduling options here, and
8062 not in ia64_override_options.
8063 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
8064 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
8065
8066 2008-07-25 H.J. Lu <hongjiu.lu@intel.com>
8067
8068 PR target/36936
8069 * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
8070
8071 2008-07-25 Martin Jambor <mjambor@suse.cz>
8072
8073 PR tree-optimization/36926
8074 * ipa-prop.c (ipa_analyze_call_uses): Call
8075 ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
8076
8077 2008-07-25 Joseph Myers <joseph@codesourcery.com>
8078
8079 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
8080 movv2si_internal): Add mem = reg alternative.
8081
8082 2008-07-25 Andreas Tobler <a.tobler@schweiz.org>
8083
8084 PR bootstrap/36918
8085 * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
8086 DEFAULT_PCC_STRUCT_RETURN to 127.
8087
8088 2008-07-24 Jan Hubicka <jh@suse.cz>
8089
8090 * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
8091 (build_cgraph_edges): Likewise.
8092 * cgraph.c (cgraph_node): Do not update assembler hash.
8093 (cgraph_remove_node): Drop non-unit-at-a-time code.
8094 * tree-pass.h (pass_O0_always_inline): Remove.
8095 * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
8096 * toplev.c (process_options): Flag unit-at-a-time does not imply
8097 no section anchors.
8098 * cgraphunit.c: Update comments.
8099 (decide_is_function_needed): Drop non-unit-at-a-time mode.
8100 (cgraph_assemble_pending_functions): Remove.
8101 (cgraph_reset_node): Drop non-unit-at-a-time code.
8102 (cgraph_finalize_function): Likewise.
8103 (cgraph_analyze_function): Likewise.
8104 (cgraph_finalize_compilation_unit): Likewise.
8105 (cgraph_expand_function): Likewise.
8106 (cgraph_optimize): Likesise.
8107 (save_inline_function_body): Likewise.
8108 * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
8109 * tree-ssa-alias.c (maybe_be_aliased): Likewise.
8110 * ipa-inline.c: Update comments.
8111 (enum inlining_mode): remove INLINE_SPEED.
8112 (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
8113 (cgraph_mark_inline_edge): Likewise.
8114 (try_inline): Likewise.
8115 (cgraph_decide_inlining_incrementally): Likewise.
8116 (cgraph_gate_inlining): Remove.
8117 (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
8118 (cgraph_gate_early_inlining): Likewise.
8119 (gate_inline_passes): Remove.
8120 (pass_inline_parameters, pass_ipa_inline): Remove gates.
8121 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
8122 pass_O0_always_inline): Remove.
8123 * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
8124 * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
8125 * opts.c (no_unit_at_a_time_default): Remove.
8126 (decode_options): Remove flag_unit_at_a_time reset and warning.
8127 * opts.h (no_unit_at_a_time_default): Remove.
8128 * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
8129 early in GNU dialect.
8130 (merge_decls): Update comment; drop unit-at-a-time check.
8131 (finish_decl): Likewise.
8132 (grok_declaration): Remove flag_inline_trees code.
8133 (finish_functions): Return on function returning non-void on all
8134 statics.
8135 * ipa-tye-escape.c (gate_type_escape_vars): Remove.
8136 * cfgexpand.c (expand_one_static_var): Remove.
8137 (expand_one_var): Remove expand_one_static_var call.
8138 (expand_used_vars_for_block): Remove flag_unit_a_time check.
8139 * c-opts.c (c_common_post_options): Remove flag_inline_trees code
8140 and flag_unit_at_a-time compatibility checks.
8141 * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
8142 * tree-inline.c (flag_inline_trees): Remove.
8143 (inlinable_function_p): Don't check it.
8144 (expand_call_inline): Remove non-unit-at-a-time code.
8145 * tree-inline.h (flag_inline_trees): Remove.
8146 * tree-optimize.c (execute_early_local_optimizations): Remove
8147 unit-at-a-time checks.
8148 (tree_rest_of_compilation): Likewise.
8149 * combine.c (setup_incoming_promotions): Likewise.
8150 * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
8151 * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
8152 * passes.c (pass_inline_parameters): Update comments; remove
8153 O0_alwaysinline pass.
8154 (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
8155 (execute_one_pass): Likewise.
8156 * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
8157 (ix86_function_sseregparm): Likewise.
8158 * arm.c (arm_function_in_section_p): Likewise.
8159 * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
8160 * varpool.c: Update comments.
8161 (decide_is_variable_needed): Remove unit-at-a-time checks.
8162 (varpool_finalize_decl): Likewise.
8163
8164 2008-07-24 Kaz Kojima <kkojima@gcc.gnu.org>
8165
8166 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
8167 to 2 instead of -1.
8168 (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
8169
8170 2008-07-24 Kai Tietz <kai.tietz@onevision.com>
8171
8172 * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
8173 imp symbol extension.
8174
8175 2008-07-23 Ian Lance Taylor <iant@google.com>
8176
8177 * tree-vrp.c (infer_value_range): Ignore asm statements when
8178 looking for memory accesses for -fdelete-null-pointer-checks.
8179
8180 2008-07-24 Ben Elliston <bje@au.ibm.com>
8181
8182 * config/spu/spu-c.c (__vector_keyword): New variable.
8183 (vector_keyword): Likewise.
8184 (spu_categorize_keyword): New function.
8185 (spu_macro_to_expand): Likewise.
8186 (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
8187 compiling an ISO C dialect.
8188
8189 2008-07-24 Ben Elliston <bje@au.ibm.com>
8190
8191 * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
8192 conventional usage.
8193
8194 2008-07-23 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
8195
8196 * configure: Regenerate.
8197 * configure.ac: Require texinfo 4.7.
8198 * doc/install.texi: Document texinfo 4.7 requirement.
8199
8200 2008-07-23 Martin Jambor <mjambor@suse.cz>
8201
8202 * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
8203 rather than for DECL_SAVED_TREE.
8204 * ipa-prop.c: Include diagnostic.h.
8205 (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
8206 thoroughly.
8207 (ipa_detect_param_modifications): Function rewritten from scratch.
8208 (ipa_compute_jump_functions): Changed accesses to modification flags.
8209 (ipa_free_node_params_substructures): Update flags destruction.
8210 (ipa_node_duplication_hook): Update flags duplication.
8211 (ipa_print_all_params_modified): Updated flag access.
8212 * ipa-prop.h (struct ipa_param_flags): New structure.
8213 (struct ipa_node_params): New field modification_analysis_done,
8214 modified_flags changed into param_flags.
8215 (ipa_is_ith_param_modified): Changed to use new flags.
8216 * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
8217
8218 * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
8219 ipa-cp.c and split into two functions.
8220 (ipa_print_node_jump_functions): New function.
8221 (compute_scalar_jump_functions): New function.
8222 (type_like_member_ptr_p): New function.
8223 (compute_pass_through_member_ptrs): New function.
8224 (fill_member_ptr_cst_jump_function): New function.
8225 (determine_cst_member_ptr): New function.
8226 (compute_cst_member_ptr_arguments): New function.
8227 (ipa_compute_jump_functions): Complete rewrite.
8228 * ipa-prop.h (enum jump_func_type): Make explicit that we depend
8229 on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
8230 (struct ipa_member_ptr_cst): New structure.
8231 (union jump_func_value): New field member_cst.
8232 * ipa-cp.c (ipcp_lat_is_insertable): New function.
8233 (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
8234 jump function types.
8235 (ipcp_print_all_lattices): Slight fprintf rearrangement.
8236 (ipcp_print_all_structures): Call ipa_print_all_jump_functions
8237 instead of ipcp_print_all_jump_functions.
8238 (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
8239 only for replacable scalars.
8240
8241 * doc/invoke.texi (Optimize options): Add description of
8242 -findirect-inlining.
8243 * common.opt (flag_indirect_inlining): New flag.
8244 * opts.c (decode_options): Set flag_indirect_inlining when
8245 optimize >= 3.
8246
8247 * ipa-inline.c: Include ipa-prop.h.
8248 (inline_indirect_intraprocedural_analysis): New function.
8249 (inline_generate_summary): Allocate parameter and argument info
8250 structures, call inline_indirect_intraprocedural_analysis on each
8251 node when doing indirect inlining and deallocate indirect inlining
8252 data structures in the end.
8253 * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
8254 (free_all_ipa_structures_after_iinln): New function.
8255 (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
8256 done.
8257 * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
8258
8259 * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
8260 (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
8261 of computing the frequency separately.
8262 (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
8263 of computing the frequency separately.
8264 * ipa-cp.c (ipcp_print_all_structures): Replace a call to
8265 ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
8266 * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
8267 (ipa_get_stmt_member_ptr_load_param): New function.
8268 (ipa_is_ssa_with_stmt_def): New function.
8269 (ipa_note_param_call): New function.
8270 (ipa_analyze_call_uses): New function.
8271 (ipa_analyze_stmt_uses): New function.
8272 (ipa_analyze_params_uses): New function.
8273 (ipa_free_node_params_substructures): Also free the param_calls linked
8274 list.
8275 (ipa_node_duplication_hook): Also duplicate the param_calls
8276 linked list.
8277 (ipa_print_node_param_flags): New function.
8278 (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
8279 (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
8280 * ipa-prop.h (struct ipa_param_flags): New field called.
8281 (struct ipa_param_call_note): New structure.
8282 (struct ipa_node_params): New fields param_calls and
8283 uses_analysis_done.
8284 (ipa_is_ith_param_called): New function.
8285 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
8286 ipa_analyze_params_uses and dump parameter flags.
8287
8288 * ipa-inline.c (cgraph_decide_recursive_inlining): Call
8289 ipa_propagate_indirect_call_infos if performing indirect inlining,
8290 pass a new parameter new_edges to it.
8291 (add_new_edges_to_heap): New fucntion.
8292 (cgraph_decide_inlining_of_small_functions): New vector
8293 new_indirect_edges for newly found indirect edges , call
8294 ipa_propagate_indirect_call_infos after inlining.
8295 (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
8296 inlining if performing indirect inlining. Call
8297 free_all_ipa_structures_after_iinln when doing so too.
8298 (inline_generate_summary): Do not call
8299 free_all_ipa_structures_after_iinln here.
8300 * ipa-prop.c (update_jump_functions_after_inlining): New function.
8301 (print_edge_addition_message): New function.
8302 (update_call_notes_after_inlining): New function.
8303 (propagate_info_to_inlined_callees): New function.
8304 (ipa_propagate_indirect_call_infos): New function.
8305 * ipa-prop.h: Include cgraph.h
8306 (struct ipa_param_call_note): Fields reordered, new field processed.
8307 * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
8308 flag indirect_call.
8309 * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
8310 rediscovered call statements.
8311 * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
8312 (dump_cgraph_node): Dump also the indirect_call flag.
8313 (cgraph_clone_edge): Copy also the indirect_call flag.
8314 * tree-inline.c (copy_bb): Do not check for fndecls from call
8315 expressions, check for edge availability when moving clones.
8316 (get_indirect_callee_fndecl): New function.
8317 (expand_call_inline): If callee declaration is not apprent from
8318 the statement, try calling get_indirect_callee_fndecl. Do not
8319 issue warnings or call sorry when not inlinings an indirect edge.
8320 * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
8321
8322 * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
8323 bit more frandly to matching.
8324 * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
8325 * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
8326 * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
8327
8328 2008-07-23 Michael Meissner <gnu@the-meissners.org>
8329
8330 PR 36907
8331 * opth-gen.awk: Suppress function specific features when building
8332 target libraries.
8333 * optc-gen.awk: Ditto.
8334
8335 2008-07-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8336
8337 PR 35058
8338 * diagnostic.c (pedwarn): Add opt parameter.
8339 (pedwarn0): New.
8340 * c-tree.h (pedwarn_init): Add opt parameter.
8341 (pedwarn_c90): Likewise.
8342 (pedwarn_c99): Likewise.
8343 * c-errors.c (pedwarn_c99): Likewise.
8344 (pedwarn_c90): Likewise.
8345 * toplev.h (pedwarn): Update declaration.
8346 (pedwarn0): Declare.
8347 * c-lex.c: All calls to pedwarn changed.
8348 * builtins.c: All calls to pedwarn changed.
8349 * toplev.c: All calls to pedwarn changed.
8350 * c-decl.c: All calls to pedwarn changed.
8351 * c-typeck.c: All calls to pedwarn changed.
8352 * c-common.c: All calls to pedwarn changed.
8353 * c-parser.c: All calls to pedwarn changed.
8354
8355 2008-07-23 Michael Meissner <gnu@the-meissners.org>
8356 Karthik Kumar <karthikkumar@gmail.com>
8357
8358 * attribs.c (file scope): Include c-common.h.
8359 (decl_attributes): Add support for #pragma GCC optimize and
8360 #pragma GCC option.
8361
8362 * targhooks.c (default_can_inline_p): New function that is the
8363 default for the TARGET_CAN_INLINE_P target hook.
8364
8365 * targhooks.h (default_can_inline_p): Add declaration.
8366
8367 * tree.c (cl_optimization_node): New static tree for building
8368 OPTIMIZATION_NODE tree.
8369 (cl_target_option_node): New static tree for building
8370 TARGET_OPTION_NODE tree.
8371 (cl_option_hash_table): New hash table for hashing
8372 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
8373 (cl_option_hash_hash): New function to provide the hash value for
8374 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
8375 (cl_option_hash_eq): New function to provide an equality test for
8376 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
8377 (tree_code_size): Add support for OPTIMIZATION_NODE and
8378 TARGET_OPTION_NODE trees.
8379 (tree_code_structure): Add support for OPTIMIZATION_NODE and
8380 TARGET_OPTION_NODE trees.
8381 (build_optimization_node): Build a tree that has all of the
8382 current optimization options.
8383 (build_target_option_node): Build a tree that has the target
8384 options that might be changed on a per function basis.
8385
8386 * tree.h (file scope): Include options.h.
8387 (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
8388 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
8389 (TREE_OPTIMIZATION): Ditto.
8390 (TREE_TARGET_SPECIFIC): Ditto.
8391 (struct tree_function_decl): Add fields for remembering the
8392 current optimization options and target specific options.
8393 (struct tree_optimization_option): New tree variant that remembers
8394 the optimization options.
8395 (struct tree_target_option): New tree variant that remembers the
8396 target specific flags that might change for compiling a particular
8397 function.
8398 (union tree_node): Include tree_optimization_option and
8399 tree_target_option fields.
8400 (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
8401 TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
8402 TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
8403 TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
8404 TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
8405 optimization and target options.
8406 (optimization_default_node): New macro to refer to global_trees
8407 field.
8408 (optimization_current_node): Ditto.
8409 (optimization_cold_node): Ditto.
8410 (optimization_hot_node): Ditto.
8411 (target_option_default_node): Ditto.
8412 (target_option_current_node): Ditto.
8413 (current_option_pragma): Ditto.
8414 (current_optimize_pragma): Ditto.
8415
8416 * target.h (struct gcc_target): Add valid_option_attribute_p,
8417 target_option_save, target_option_restore, target_option_print,
8418 target_option_pragma_parse, and can_inline_p hooks.
8419
8420 * toplev.h (parse_optimize_options): Add declaration.
8421 (fast_math_flags_struct_set_p): Ditto.
8422
8423 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
8424 adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
8425 optimize is used.
8426
8427 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
8428 tree_can_inline_p hook to see if one function can inline another.
8429 (cgraph_decide_inlining): Ditto.
8430 (cgraph_decide_inlining_incrementally): Ditto.
8431
8432 * opts.c (decode_options): Add support for running multiple times
8433 to allow functions with different target or optimization options
8434 than was specified on the command line.
8435 (fast_math_flags_struct_set_p): New function that is similar to
8436 fast_math_flags_set_p, except it uses the values in the
8437 cl_optimization structure instead of global variables.
8438
8439 * optc-gen.awk: Add support for TargetSave to allow a back end to
8440 declare new fields that need to be saved when using function
8441 specific options. Include flags.h and target.h in the options.c
8442 source. Add support for Save to indicate which options can be set
8443 for individual functions. Generate cl_optimize_save,
8444 cl_optimize_restore, cl_optimize_print, cl_target_option_save,
8445 cl_target_option_restore, cl_target_option_print functions to
8446 allow functions to use different optimization or target options.
8447
8448 * opt-functions.awk (var_type_struct): Return the type used for
8449 storing the field in a structure.
8450
8451 * opth-gen.awk: Add support for TargetSave to allow a back end to
8452 declare new fields that need to be saved when using function
8453 specific options. Add support for Save to indicate which options
8454 can be set for individual functions. Only generate one extern for
8455 Mask fields. Generate cl_optimization and cl_target_option
8456 structures to remember optimization and target options.
8457
8458 * treestruct.def (TS_OPTIMIZATION): Add support for garbage
8459 collecting new tree nodes.
8460 (TS_TARGET_OPTION): Ditto.
8461
8462 * c-decl.c (merge_decls): Merge function specific target and
8463 optimization options.
8464
8465 * function.c (invoke_set_current_function_hook): If the function
8466 uses different optimization options, change the global variables
8467 to reflect this.
8468
8469 * coretypes.h (struct cl_optimization): Add forward reference.
8470 (struct cl_target_option): Ditto.
8471
8472 * c-pragma.c (option_stack): New static vector to remember the
8473 current #pragma GCC option stack.
8474 (handle_pragma_option): New function to support #pragma GCC option
8475 to change target options.
8476 (optimize_stack): New static vector to remember the current
8477 #pragma GCC optimize stack.
8478 (handle_pragma_optimize): New function to support #pragma GCC
8479 optimize to change optimization options.
8480 (init_pragma): Add support for #pragma GCC optimize and #pragma
8481 GCC option.
8482
8483 * tree.def (OPTIMIZATION_NODE): New tree code for remembering
8484 optimization options.
8485 (TARGET_OPTION_NODE): New tree code for remembering certain target
8486 options.
8487
8488 * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
8489 TARGET_OPTION_NODE trees.
8490
8491 * common.opt (-O): Add Optimization flag.
8492 (-Os): Ditto.
8493 (-fmath-errno): Ditto.
8494 (-falign-functions): Add UInteger flag to make sure flag gets full
8495 int in cl_optimization structure.
8496 (-falign-jumps): Ditto.
8497 (-falign-labels): Ditto.
8498 (-falign-loops): Ditto.
8499 (-fsched-stalled-insns): Ditto.
8500 (-fsched-stalled-insns-dep): Ditto.
8501
8502 * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
8503 definition.
8504 (TARGET_OPTION_SAVE): Ditto.
8505 (TARGET_OPTION_RESTORE): Ditto.
8506 (TARGET_OPTION_PRINT): Ditto.
8507 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
8508 (TARGET_CAN_INLINE_P): Ditto.
8509 (TARGET_INITIALIZER): Add new hooks.
8510
8511 * tree-inline.c (tree_can_inline_p): New function to determine
8512 whether one function can inline another. Check if the functions
8513 use compatible optimization options, and also call the backend
8514 can_inline_p hook.
8515
8516 * tree-inline.h (tree_can_inline_p): Add declaration.
8517
8518 * c-common.c (c_common_attribute): Add support for option and
8519 optimize attributes.
8520 (handle_option_attribute): Add support for the option attribute to
8521 allow the user to specify different target options for compiling a
8522 specific function.
8523 (handle_optimize_attribute): Add support for the optimize
8524 attribute to allow the user to specify different optimization
8525 options for compiling a specific function.
8526 (handle_hot_attribute): Turn on -O3 optimization for this one
8527 function if it isn't the default optimization level.
8528 (handle_cold_attribute): Turn on -Os optimization for this one
8529 function if it insn't the default optimization.
8530 (const_char_p): New const char * typedef.
8531 (optimize_args): New static vector to remember the optimization
8532 arguments.
8533 (parse_optimize_options): New function to set up the optimization
8534 arguments from either the optimize attribute or #pragma GCC optimize.
8535
8536 * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
8537 (builtin_define_std): Ditto.
8538
8539 * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
8540 Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
8541 (x86_64-*-*): Ditto.
8542
8543 * Makefile.in (TREE_H): Add options.h.
8544 (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
8545
8546 * doc/extend.texi (option attribute): Document new attribute.
8547 (optimize attribute): Ditto.
8548 (hot attribute): Document hot attribute sets -O3.
8549 (cold attribute): Document cold attribute sets -Os.
8550 (#pragma GCC option): Document new pragma.
8551 (#pragma GCC optimize): Ditto.
8552
8553 * doc/options.texi (TargetSave): Document TargetSave syntax.
8554 (UInteger): Document UInteger must be used for certain flags.
8555 (Save): Document Save option to create target specific options
8556 that can be saved/restored on a function specific context.
8557
8558 * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
8559 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
8560
8561 * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
8562 (TARGET_OPTION_SAVE): Ditto.
8563 (TARGET_OPTION_RESTORE): Ditto.
8564 (TARGET_OPTION_PRINT): Ditto.
8565 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
8566 (TARGET_CAN_INLINE_P): Ditto.
8567
8568 * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
8569 -mfpmath=sse,387.
8570 (-mfpmath=both): Ditto.
8571
8572 2008-07-23 Michael Meissner <gnu@the-meissners.org>
8573 Karthik Kumar <karthikkumar@gmail.com>
8574
8575 * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
8576 (TARGET_POPCNT): Ditto.
8577 (TARGET_SAHF): Ditto.
8578 (TARGET_AES): Ditto.
8579 (TARGET_PCLMUL): Ditto.
8580 (TARGET_CMPXCHG16B): Ditto.
8581 (TARGET_RECIP): Move switch into target_flags.
8582 (TARGET_FUSED_MADD): Ditto.
8583 (ix86_arch_features): Make an unsigned char type.
8584 (ix86_tune_features): Ditto.
8585 (OVERRIDE_OPTIONS): Add bool argument to override_options call.
8586 (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
8587 (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
8588
8589 * config/i386/i386.opt (arch): New TargetSave field to define
8590 fields that need to be saved for function specific option support.
8591 (tune): Ditto.
8592 (fpmath): Ditto.
8593 (branch_cost): Ditto.
8594 (ix86_isa_flags_explicit): Ditto.
8595 (tune_defaulted): Ditto.
8596 (arch_specified): Ditto.
8597 (-m128-long-double): Add Save flag to save option for target
8598 specific option support.
8599 (-m80387): Ditto.
8600 (-maccumulate-outgoing-args): Ditto.
8601 (-malign-double): Ditto.
8602 (-malign-stringops): Ditto.
8603 (-mfancy-math-387): Ditto.
8604 (-mhard-float): Ditto.
8605 (-mieee-fp): Ditto.
8606 (-minline-all-stringops): Ditto.
8607 (-minline-stringops-dynamically): Ditto.
8608 (-mms-bitfields): Ditto.
8609 (-mno-align-stringops): Ditto.
8610 (-mno-fancy-math-387): Ditto.
8611 (-mno-push-args): Ditto.
8612 (-mno-red-zone): Ditto.
8613 (-mpush-args): Ditto.
8614 (-mred-zone): Ditto.
8615 (-mrtd): Ditto.
8616 (-msseregparm): Ditto.
8617 (-mstack-arg-probe): Ditto.
8618 (-m32): Ditto.
8619 (-m64): Ditto.
8620 (-mmmx): Ditto.
8621 (-m3dnow): Ditto.
8622 (-m3dnowa): Ditto.
8623 (-msse): Ditto.
8624 (-msse2): Ditto.
8625 (-msse3): Ditto.
8626 (-msse4.1): Ditto.
8627 (-msse4.2): Ditto.
8628 (-msse4): Ditto.
8629 (-mno-sse4): Ditto.
8630 (-msse4a): Ditto.
8631 (-msse5): Ditto.
8632 (-mrecip): Move flag into target_flags.
8633 (-mcld): Ditto.
8634 (-mno-fused-madd): Ditto.
8635 (-mfused-madd): Ditto.
8636 (-mabm): Move flag into ix86_isa_flags.
8637 (-mcx16): Ditto.
8638 (-mpopcnt): Ditto.
8639 (-msahf): Ditto.
8640 (-maes): Ditto.
8641 (-mpclmul): Ditto.
8642
8643 * config/i386/i386-c.c: New file for #pragma support.
8644 (ix86_target_macros_internal): New function to #define or #undef
8645 target macros based when the user uses the #pragma GCC option to
8646 change target options.
8647 (ix86_pragma_option_parse): New function to add #pragma GCC option
8648 support.
8649 (ix86_target_macros): Move defining the target macros here from
8650 TARGET_CPU_CPP_BUILTINS in i386.h.
8651 (ix86_register_pragmas): Register the #pragma GCC option hook. If
8652 defined, initialize any subtarget #pragmas.
8653
8654 * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
8655 REGISTER_TARGET_PRAGMAS.
8656
8657 * config/i386/t-i386: New file for x86 dependencies.
8658 (i386.o): Make dependencies mirror the include files used.
8659 (i386-c.o): New file, add dependencies.
8660
8661 * config/i386/i386-protos.h (override_options): Add bool argument.
8662 (ix86_valid_option_attribute_tree): Add declaration.
8663 (ix86_target_macros): Ditto.
8664 (ix86_register_macros): Ditto.
8665
8666 * config/i386/i386.c (ix86_tune_features): Move initialization of
8667 the target masks to initial_ix86_tune_features to allow functions
8668 to have different target options. Make type unsigned char,
8669 instead of unsigned int.
8670 (initial_ix86_tune_features): New static vector to hold processor
8671 masks for the tune variables.
8672 (ix86_arch_features): Move initialization of the target masks to
8673 initial_ix86_arch_features to allow functions to have different
8674 target options. Make type unsigned char, instead of unsigned int.
8675 (initial_ix86_arch_features): New static vector to hold processor
8676 masks for the arch variables.
8677 (enum ix86_function_specific_strings): New enum to describe the
8678 string options used for attribute((option(...))).
8679 (ix86_target_string): New function to return a string that
8680 describes the target options.
8681 (ix86_debug_options): New function to print the current options in
8682 the debugger.
8683 (ix86_function_specific_save): New function hook to save the
8684 function specific global variables in the cl_target_option structure.
8685 (ix86_function_specific_restore): New function hook to restore the
8686 function specific variables from the cl_target_option structure to
8687 the global variables.
8688 (ix86_function_specific_print): New function hook to print the
8689 target specific options in the cl_target_option structure.
8690 (ix86_valid_option_attribute_p): New function hook to validate
8691 attribute((option(...))) arguments.
8692 (ix86_valid_option_attribute_tree): New function that is common
8693 code between attribute((option(...))) and #pragma GCC option
8694 support that parses the options and returns a tree holding the options.
8695 (ix86_valid_option_attribute_inner_p): New helper function for
8696 ix86_valid_option_attribute_tree.
8697 (ix86_can_inline_p): New function hook to decide if one function
8698 can inline another on a target specific basis.
8699 (ix86_set_current_function); New function hook to switch target
8700 options if the user used attribute((option(...))) or #pragma GCC
8701 option.
8702 (ix86_tune_defaulted): Move to static file scope from
8703 override_options.
8704 (ix86_arch_specified): Ditto.
8705 (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
8706 ix86_isa_flags.
8707 (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
8708 (OPTION_MASK_ISA_ABM_SET): Ditto.
8709 (OPTION_MASK_ISA_POPCNT_SET): Ditto.
8710 (OPTION_MASK_ISA_CX16_SET): Ditto.
8711 (OPTION_MASK_ISA_SAHF_SET): Ditto.
8712 (OPTION_MASK_ISA_AES_UNSET): Ditto.
8713 (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
8714 (OPTION_MASK_ISA_ABM_UNSET): Ditto.
8715 (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
8716 (OPTION_MASK_ISA_CX16_UNSET): Ditto.
8717 (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
8718 (struct ptt): Move to static file scope from override_options.
8719 (processor_target_table): Ditto.
8720 (cpu_names): Ditto.
8721 (ix86_handle_option): Add support for options that are now isa options.
8722 (override_options): Add support for declaring functions that
8723 support different target options than were specified on the
8724 command line. Move struct ptt, processor_target_table, cpu_names,
8725 ix86_tune_defaulted, ix86_arch_specified to static file scope.
8726 Add bool argument. Fix up error messages so the appropriate error
8727 is given for either command line or attribute.
8728 (ix86_previous_fndecl): New static to remember previous function
8729 declaration to see if we need to change target options.
8730 (ix86_builtins_isa): New array to record the ISA of each builtin
8731 function.
8732 (def_builtin): Always create the builtin function, even if the
8733 current ISA doesn't support it.
8734 (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
8735 tests for those builtins.
8736 (ix86_init_builtins): Remove TARGET_MMX test for calling
8737 ix86_init_mmx_sse_builtins.
8738 (ix86_expand_builtin): If the current ISA doesn't support a given
8739 builtin, signal an error.
8740 (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
8741 (TARGET_SET_CURRENT_FUNCTION): Ditto.
8742 (TARGET_OPTION_SAVE): Ditto.
8743 (TARGET_OPTION_RESTORE): Ditto.
8744 (TARGET_OPTION_PRINT): Ditto.
8745 (TARGET_CAN_INLINE_P): Ditto.
8746
8747 2008-07-22 Rafael Ãvila de Espíndola <espindola@google.com>
8748
8749 * c-typeck.c (build_external_ref): Don't call assemble_external.
8750 * final.c (output_operand): Call assemble_external.
8751
8752 2008-07-21 DJ Delorie <dj@redhat.com>
8753
8754 * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
8755 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
8756
8757 2008-07-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8758
8759 * config/spu/spu.md ("div<mode>3"): Convert into expander, move
8760 original insn and splitter contents into ...
8761 ("*div<mode>3_fast"): ... this new pattern. Enable only if
8762 flag_unsafe_math_optimizations. Add dummy scratch register.
8763 ("*div<mode>3_adjusted"): New insn and splitter. Enable only if
8764 !flag_unsafe_math_optimizations. Returns number with next
8765 highest magnitude if this is still less or equal to the true
8766 quotient in magnitude.
8767
8768 2008-07-21 Rafael Ãvila de Espíndola <espindola@google.com>
8769
8770 * Makefile.in: Replace toplev.h with TOPLEV_H.
8771 * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
8772 * c-lex.c (fe_file_change): Don't set in_system_header.
8773 * c-parser.c (c_token): Remove in_system_header.
8774 (c_lex_one_token): Don't set in_system_header.
8775 (c_parser_set_source_position_from_token): Don't set in_system_header.
8776 * diagnostic.c (diagnostic_report_diagnostic): Use location from
8777 diagnostic_info.
8778 (warning_at): New.
8779 * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
8780 * flags.h (in_system_header): Remove.
8781 * function.c (saved_in_system_header): Remove.
8782 (push_cfun): Don't set in_system_header.
8783 (pop_cfun): Don't set in_system_header.
8784 (push_struct_function): Don't set in_system_header.
8785 * input.h (expanded_location): Add sysp.
8786 (in_system_header_at): New.
8787 (in_system_header): New.
8788 * toplev.c (in_system_header): Remove.
8789 * toplev.h: Include input.h
8790 (warning_at): New.
8791 * tree-cfg.c (execute_warn_function_return): Call warning_at.
8792 * tree-ssa.c (warn_uninit): Call warning_at.
8793 (warn_uninitialized_var): Update calls to warn_uninit.
8794 (warn_uninitialized_phi): Update calls to warn_uninit.
8795 * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
8796 (expand_location): Initialize xloc.sysp.
8797 * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
8798 (tree_decl_with_vis): Remove in_system_header_flag.
8799
8800 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
8801
8802 PR target/36822
8803 * recog.c (asm_operand_ok): Change the order of the extra
8804 memory constraint checks.
8805
8806 2008-07-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
8807
8808 PR tree-opt/36879
8809 * tree-switch-conversion.c (build_one_array): Call
8810 varpool_mark_needed_node and varpool_finalize_decl
8811 instead of assemble_variable.
8812
8813 2008-07-19 Jan Hubicka <jh@suse.cz>
8814
8815 * cgraph.c (cgraph_add_new_function): Do early local passes.
8816 * tree-nrv.c (gate_pass_return_slot): New gate.
8817 (pass_nrv): Add the gate.
8818 * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
8819 functions.
8820 (coalesce_ssa_name): Coalesce SSA names.
8821 * tree-ssa-live.c (remove_unused_locals): Be more conservative when
8822 not optimizing so unused user vars remains visible.
8823 * common.opt (flag_tree_ter): Always enable by default.
8824 * tree-ssa-ter.c: Include flags.h
8825 (is_replaceable_p): Check that locations match; when aliasing
8826 is missing be conservative about loads.
8827 * tree-optimize.c (gate_init_datastructures): Remove.
8828 (pass_init_datastructures): New.
8829 * passes.c: Reorder passes so we always go into SSA.
8830
8831 2008-07-19 Jan Hubicka <jh@suse.cz>
8832
8833 * doc/extend.texi (flatten attribute): Remove note about
8834 unit-at-a-time.
8835 * doc/invoke.texi (--combine): Likewise.
8836 (-finline-functions-called-once): Update levels when enabled.
8837 (-funit-at-a-time): Document new behaviour.
8838 (-ftoplevel-reorder): Document that it is enabled -O0 and imply
8839 -fno-section-anchors when disabled explicitly.
8840 (inline params): They are not ignored now.
8841 (precompiled headers): Remove unit-at-a-time as being incompatible.
8842 * opts.c (decode_options): Handle unit-at-a-time as alias;
8843 imply -fno-section-anchors when toplevel reorder is disabled
8844 explicitly.
8845 * common.opt (ftoplevel-reorder): Set default value to 2.
8846 (funit-at-a-time): Set default value to 1.
8847 * config/rs6000/rs6000.c (optimization_options): Set section anchors
8848 to 2.
8849
8850 2008-07-19 Jan Hubicka <jh@suse.cz>
8851
8852 * builtins.c (expand_builtin_int_roundingfn,
8853 expand_builtin_int_roundingfn_2): Do not take subtarget argument;
8854 it is not useful.
8855
8856 2008-07-19 Richard Guenther <rguenther@suse.de>
8857
8858 PR bootstrap/36864
8859 * tree-ssa-sccvn.h (get_constant_value_id): Declare.
8860 * tree-ssa-sccvn.c (get_constant_value_id): New function.
8861 * tree-ssa-pre.c (get_expr_value_id): For newly created
8862 constant value-ids make sure to add the expression to its
8863 expression-set.
8864
8865 2008-07-19 Jakub Jelinek <jakub@redhat.com>
8866
8867 PR middle-end/36877
8868 * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
8869 return value of the builtin is ignored.
8870
8871 2008-07-19 Olivier Hainque <hainque@adacore.com>
8872
8873 * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
8874 bits, a C conformant malloc implementation has to provide.
8875 * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
8876
8877 2008-07-19 Joseph Myers <joseph@codesourcery.com>
8878
8879 PR target/36780
8880 PR target/36827
8881 * reload.c (find_reloads_subreg_address): Only reload address if
8882 reloaded == 0, not for reloaded != 1.
8883
8884 Revert:
8885 2008-07-16 Joseph Myers <joseph@codesourcery.com>
8886 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
8887 (m32c_legitimate_address_p): Handle "++rii" addresses created by
8888 m32c_legitimize_reload_address.
8889
8890 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
8891 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
8892 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
8893
8894 2008-07-19 Olivier Hainque <hainque@adacore.com>
8895
8896 * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
8897 argument, saying whether nested array are to be collapsed
8898 into a single array type DIE with multiple subscripts.
8899 (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
8900 issues, centralize the nested array types collapsing control and
8901 disable the transformation for Ada.
8902
8903 2008-07-18 Uros Bizjak <ubizjak@gmail.com>
8904
8905 PR target/36786
8906 * config/i386/i386.md (x86_64_shift_adj_1): Rename from
8907 x86_64_shift_adj.
8908 (x86_64_shift_adj_2): New expander.
8909 (x86_64_shift_adj_3): Ditto.
8910 * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
8911 to split TImode operands.
8912 (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
8913 (ix86_split_lshr): Ditto.
8914
8915 2008-07-18 Kris Van Hees <kris.van.hees@oracle.com>
8916
8917 * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
8918 and __CHAR32_TYPE__.
8919 * c-typeck.c (digest_init): Support char16_t and char32_t.
8920 (set_nonincremental_init_from_string): Idem.
8921
8922 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
8923
8924 PR middle-end/36859
8925 * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
8926 PREFERRED_STACK_BOUNDARY.
8927 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
8928
8929 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
8930
8931 PR middle-end/36858
8932 * function.c (locate_and_pad_parm): Cap boundary earlier.
8933
8934 2008-07-17 Julian Brown <julian@codesourcery.com>
8935
8936 * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
8937 no-op for targets which don't use DLLs.
8938
8939 2008-07-17 Martin Jambor <mjambor@suse.cz>
8940
8941 * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
8942 that nodes are relevant by examining the node->analyzed flag.
8943 (ipcp_init_stage): Check which nodes are relevant, assert that the
8944 relevant ones are also required.
8945 (ipcp_propagate_stage): Check on the side arrays are properly
8946 allocated.
8947 (ipcp_print_all_jump_functions): Make sure not to touch any node
8948 that is not analyzed or an edge that does not have a corresponding
8949 entry in the on-the-side vectors.
8950 (ipcp_function_scale_print): Likewise.
8951 (ipcp_update_callgraph): Check that the node is relevant.
8952 (ipcp_insert_stage): Check that the node is relevant. Check there is
8953 an info for every node and edge.
8954 * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
8955 (ipa_print_all_tree_maps): Likewise and a new variable info.
8956 (ipa_print_all_params_modified): Likewise.
8957 * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
8958
8959 2008-07-17 Roman Zippel <zippel@linux-m68k.org>
8960
8961 PR target/25343
8962 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
8963
8964 2008-07-17 Paolo Bonzini <bonzini@gnu.org>
8965
8966 PR rtl-optimization/36753
8967 * fwprop.c (use_killed_between): Don't shortcut
8968 single-definition global registers.
8969
8970 2008-07-16 Jan Hubicka <jh@suse.cz>
8971
8972 * cgraph.h (varpool_empty_needed_queue): Declare.
8973 * cgraphunit.c (output_in_order): Mark all variables as needed;
8974 empty the queue.
8975 * varpool.c (varpool_assemble_node): Update debug queue.
8976 (varpool_assemble_pending_decls): Don't do it here.
8977 (varpool_empty_needed_queue): New function.
8978
8979 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8980
8981 * recog.c (peephole2_optimize): Fix formatting.
8982
8983 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8984
8985 * c-pch.c (get_ident): Avoid C++ keywords.
8986 * combine-stack-adj.c (single_set_for_csa): Likewise.
8987 * final.c (asm_insn_count, final_scan_insn, alter_subreg,
8988 output_asm_insn): Likewise.
8989 * reload.c (push_secondary_reload, find_reusable_reload,
8990 push_reload, combine_reloads, find_reloads,
8991 debug_reload_to_stream): Likewise.
8992 * reload.h (struct reload): Likewise.
8993 * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
8994 allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
8995 emit_output_reload_insns): Likewise.
8996 * targhooks.c (default_secondary_reload): Likewise.
8997 * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
8998
8999 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9000
9001 * recog.c (validate_change_1, validate_change,
9002 validate_unshare_change, validate_replace_rtx_1, struct
9003 funny_match, constrain_operands, peephole2_optimize): Avoid C++
9004 keywords.
9005 * reload.c (push_secondary_reload, secondary_reload_class,
9006 scratch_reload_class, find_valid_class, find_reusable_reload,
9007 push_reload, find_dummy_reload, find_reloads_address_1,
9008 find_reloads_address_part, find_equiv_reg): Likewise.
9009 * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
9010 choose_reload_regs): Likewise.
9011 * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
9012 Likewise.
9013 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
9014 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
9015 * sched-rgn.c (concat_INSN_LIST): Likewise.
9016 * stor-layout.c (mode_for_size, mode_for_size_tree,
9017 smallest_mode_for_size): Likewise.
9018
9019 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9020
9021 * cfg.c (dump_reg_info): Avoid C++ keywords.
9022 * dwarf2asm.c (dw2_force_const_mem,
9023 dw2_asm_output_encoded_addr_rtx): Likewise.
9024 * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
9025 * expmed.c (expand_shift): Likewise.
9026 * global.c (find_reg): Likewise.
9027 * graph.c (draw_edge): Likewise.
9028 * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
9029 * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
9030 widen_clz, widen_bswap, expand_parity, expand_unop,
9031 emit_cmp_and_jump_insn_1): Likewise.
9032 * postreload.c (reload_cse_simplify_operands): Likewise.
9033 * ra.h (add_neighbor): Likewise.
9034 * reg-stack.c (remove_regno_note, change_stack): Likewise.
9035 * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
9036 record_reg_classes, copy_cost, record_address_regs,
9037 invalid_mode_change_p): Likewise.
9038 * regrename.c (regrename_optimize, scan_rtx_reg,
9039 dump_def_use_chain, find_oldest_value_reg,
9040 replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
9041
9042 2008-07-16 David Edelsohn <edelsohn@gnu.org>
9043
9044 * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
9045 MASK_POWERPC64 for power4 in previous commit.
9046
9047 2008-07-16 Olivier Hainque <hainque@adacore.com>
9048
9049 * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
9050 instead of bare conversion to cast const-ness away.
9051
9052 2008-07-16 Anatoly Sokolov <aesok@post.ru>
9053
9054 * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
9055 XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
9056 * config/xtensa/xtensa.c (xtensa_function_value): New function.
9057 (TARGET_FUNCTION_VALUE): Define.
9058
9059 2008-07-16 David Edelsohn <edelsohn@gnu.org>
9060
9061 * config/rs6000/rs6000.c (processor_target_table): Add
9062 MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
9063
9064 2008-07-16 Joseph Myers <joseph@codesourcery.com>
9065
9066 PR target/36827
9067 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
9068 (m32c_legitimate_address_p): Handle "++rii" addresses created by
9069 m32c_legitimize_reload_address.
9070
9071 2007-07-16 Rafael Ãvila de Espíndola <espindola@google.com>
9072
9073 * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
9074 DECL_IN_SYSTEM_HEADER in sync.
9075
9076 2008-07-15 Daniel Berlin <dberlin@dberlin.org>
9077
9078 * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
9079 * tree-ssa-pre.c (pre_expr_eq): Ditto
9080 (get_constant_for_value_id): Take a type as an argument.
9081 (fully_constant_expression): Pass in type.
9082 (find_or_generate_expression): Short circuit constant case.
9083 (create_expression_by_pieces): Remove special casing of
9084 pointer_plus.
9085 (do_regular_insertion): Short circuit constant case.
9086 (do_partial_partial_insertion): Ditto.
9087
9088 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
9089
9090 PR target/36782
9091 * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
9092
9093 2008-07-15 Bob Wilson <bob.wilson@acm.org>
9094
9095 * config/xtensa/libgcc-xtensa.ver: New file.
9096 * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
9097
9098 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9099
9100 * df-problems.c (df_set_note): Avoid C++ keywords.
9101 * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
9102 * dse.c (record_store, remove_useless_values): Likewise.
9103 * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
9104 gen_reg_rtx_offset, operand_subword, change_address_1,
9105 change_address, adjust_address_1, offset_address,
9106 widen_memory_access, emit_copy_of_insn_after): Likewise.
9107 * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
9108 * fwprop.c (should_replace_address, propagate_rtx_1,
9109 propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
9110 Likewise.
9111 * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
9112 gcse_emit_move_after, update_ld_motion_stores): Likewise.
9113 * lcm.c (compute_insert_delete, pre_edge_lcm,
9114 compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
9115 * lower-subreg.c (resolve_reg_notes): Likewise.
9116 * mode-switching.c (optimize_mode_switching): Likewise.
9117
9118 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9119
9120 * bt-load.c (add_btr_def, migrate_btr_def,
9121 branch_target_load_optimize): Avoid C++ keywords.
9122 * caller-save.c (insert_restore, insert_save, insert_one_insn):
9123 Likewise.
9124 * combine.c (subst, simplify_set, make_extraction,
9125 make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
9126 * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
9127 fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
9128
9129 2008-07-15 Richard Guenther <rguenther@suse.de>
9130
9131 PR middle-end/36369
9132 * c-common.c (strict_aliasing_warning): Do not warn for
9133 TYPE_REF_CAN_ALIAS_ALL pointers.
9134 (c_common_get_alias_set): may_alias types are not special.
9135 * tree.c (build_pointer_type_for_mode): Look up the may_alias
9136 attribute and set can_ref_all accordingly.
9137 (build_reference_type_for_mode): Likewise.
9138 * doc/extend.texi (may_alias): Clarify.
9139
9140 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
9141
9142 PR target/36780
9143 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
9144 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
9145
9146 2008-07-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
9147
9148 PR target/31568
9149 * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
9150 gcc_assert, instead call output_operand_lossage.
9151
9152 2008-07-15 Kai Tietz <kai.tietz@onevision.com>
9153
9154 * builtins.c (std_canonical_va_list): Treat structure based
9155 va_list types.
9156
9157 2008-07-15 Ben Elliston <bje@au.ibm.com>
9158
9159 * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
9160
9161 2007-07-14 Rafael Ãvila de Espíndola <espindola@google.com>
9162
9163 * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
9164 is set.
9165
9166 2008-07-14 Jan Hubicka <jh@suse.cz>
9167
9168 * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
9169 * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
9170 fix predicates and constraints.
9171 * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
9172 * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
9173
9174 2008-07-14 Doug Kwan <dougkwan@google.com>
9175
9176 * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
9177 additional option file arm/eabi.opt.
9178 * config/arm/eabi.h (File): New configuration file for EABI targets.
9179 * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
9180 SUBSUBTARGET_EXTRA_SPECS.
9181 (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
9182 * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
9183 from STARTFILE_SPEC so that it can be referenced in an override.
9184 (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
9185 (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
9186 can be referenced in an override.
9187 (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
9188 * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
9189 so that it can be referenced in an override.
9190 (LINK_SPEC): Use BPABI_LINK_SPEC.
9191 * config/arm/eabi.opt (File): New.
9192
9193 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9194
9195 * Makefile.in (TARGET_DEF_H): Add targhooks.h.
9196 (FIXED_VALUE_H): New variable.
9197 (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
9198 input.h, fixed-value.h.
9199 (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
9200 (BASIC_BLOCK_H): Use $(BITMAP_H).
9201 (FUNCTION_H): Add varray.h.
9202 (IPA_REFERENCE_H): Use $(BITMAP_H).
9203 (CGRAPH_H): Add $(BASIC_BLOCK_H).
9204 (DF_H): Use $(BITMAP_H).
9205 (GGC_H): Add statistics.h.
9206 (INSN_ADDR_H): New.
9207 (INSN_ATTR_H): Use it.
9208 (SYSTEM_H): Add safe-ctype.h, filenames.h.
9209 (INPUT_H): New.
9210 (SYMTAB_H): Add $(OBSTACK_H).
9211 (CPP_INTERNAL_H): New.
9212 (TREE_DUMP_H): Add tree-pass.h.
9213 (TREE_FLOW_H): Use $(BITMAP_H)
9214 (PRETTY_PRINT_H): Use $(INPUT_H).
9215 (EBITMAP_H): Rename from typo-ed EBIMAP_H.
9216 (GSTAB_H): New.
9217 (BITMAP_H): New.
9218 (many object files): Fix lots of header dependencies throughout.
9219
9220 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9221
9222 * Makefile.in (write_entries_to_file, write_entries_to_file_split):
9223 New macros.
9224 (s-gtyp-input): Use them to write tmp-gi.list.
9225 (echo_to_gi.list): Remove.
9226
9227 2008-07-14 Richard Guenther <rguenther@suse.de>
9228
9229 * tree-ssa-sccvn.c (pre_info): Remove.
9230 (switch_to_PRE_table): Likewise.
9231 (free_scc_vn): Do not clear SSA_NAME_VALUE. Do not free pre_info.
9232 (set_hashtable_value_ids): Do not create value-ids for the
9233 optimistic tables.
9234 (run_scc_vn): Remove double test. Remove bogus special-case
9235 in value-number printing.
9236 * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
9237 * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
9238 SSA_NAME_VALUE.
9239 * tree-flow-inline.h (get_value_handle): Remove.
9240 * tree-flow.h (get_value_handle): Remove.
9241
9242 2008-07-14 Martin Jambor <mjambor@suse.cz>
9243
9244 * tree-switch-conversion.c (gen_inbound_check): Make sure the type
9245 in which we generate arithmetics is not a subrange.
9246
9247 2008-07-14 Martin Jambor <mjambor@suse.cz>
9248
9249 * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
9250
9251 2008-07-14 Richard Guenther <rguenther@suse.de>
9252
9253 * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
9254
9255 2008-07-14 Andreas Krebbel <krebbel1@de.ibm.com>
9256
9257 PR target/36745
9258 * config/s390/s390.c: (s390_secondary_reload): Add a secondary
9259 reload for symbol refs moved to r0 with -fPIC.
9260 (legitimize_pic_address): Use the target register as temporary
9261 reg if possible.
9262 (emit_symbolic_move): Adjust comment.
9263 * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
9264 New expanders.
9265
9266 2008-07-14 Ben Elliston <bje@au.ibm.com>
9267
9268 * c-common.h (C_CPP_HASHNODE): New macro.
9269 * coretypes.h (struct cpp_token): Forward declare.
9270 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
9271 the context-sensitive keyword method.
9272 * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
9273 __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
9274 expand_bool_pixel): New.
9275 (altivec_categorize_keyword): New function.
9276 (init_vector_keywords): New function.
9277 (rs6000_macro_to_expand): Likewise.
9278 (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
9279 compiling an ISO C dialect.
9280
9281 2008-07-13 Daniel Berlin <dberlin@dberlin.org>
9282
9283 * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
9284 (create_expression_by_pieces): Fix typo.
9285 (do_regular_insertion): Use debug counter here too.
9286
9287 2008-07-14 Hans-Peter Nilsson <hp@axis.com>
9288
9289 PR target/35492.
9290 * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
9291 CONST_OK_FOR_LETTER_P. All port-local users changed.
9292 (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
9293 implement Kp matching power-of-two.
9294 (CONSTRAINT_LEN): Define to match.
9295 * config/cris/cris.md: Replace all use of constraint K with Kc.
9296 ("*btst*): Use Kp for operand 0 of last alternative.
9297
9298 2008-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9299
9300 PR testsuite/36440
9301 * tree-call-cdce.c (check_target_format): Accept MIPS single, double
9302 and quad formats.
9303
9304 2008-07-13 Jan Hubicka <jh@suse.cz>
9305
9306 * tree.c (decl_assembler_name_equal): Expect assembler name of decl
9307 to be mangled too.
9308
9309 2008-07-13 Richard Guenther <rguenther@suse.de>
9310
9311 PR middle-end/36811
9312 * langhooks.c (lhd_print_error_function): Deal with recursive
9313 BLOCK trees.
9314
9315 2008-07-12 Jan Hubicka <jh@suse.cz>
9316
9317 * cgraph.c (assembler_name_hash): New static var.
9318 (hash_node_by_assembler_name, eq_assembler_name): New.
9319 (cgraph_node_for_asm): Use hashtable.
9320 (cgraph_remove_node): Maintain hashtable.
9321 (change_decl_assembler_name): Sanity check that names are not changing
9322 after aliasing was processed.
9323 * cgraph.h (varpoon_node): Add next GGC marker.
9324 * tree.c (decl_assembler_name_equal): Constify.
9325 (decl_assembler_name_hash): New.
9326 * tree.h (decl_assembler_name_equal): Constify.
9327 (decl_assembler_name_hash): Update.
9328
9329 2008-07-12 David Daney <ddaney@avtrex.com>
9330
9331 * config/mips/driver-native.c (host_detect_local_cpu): Handle
9332 sb1 and r5000 cpus.
9333
9334 2008-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9335
9336 * doc/md.texi: Document the MIPS "v" constraint.
9337 * config/mips/mips.h (reg_class): Revert last change.
9338 (REG_CLASS_NAMES): Likewise.
9339 (REG_CLASS_CONTENTS): Likewise.
9340 * config/mips/mips.c (mips_regno_to_class): Likewise.
9341 * config/mips/constraints.md (v): Likewise, but add documentation.
9342 Add a comment to say that this constraint should not be used in
9343 gcc code.
9344
9345 2008-07-11 DJ Delorie <dj@redhat.com>
9346
9347 * config/h8300/h8300.md (length): Fix branch offset limit.
9348
9349 2008-07-11 Anatoly Sokolov <aesok@post.ru>
9350
9351 * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
9352 * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
9353 (avr_hard_regno_scratch_ok): New function.
9354 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
9355 * config/avr/avr.md (all peepholes that request a scratch register):
9356 Remove avr_peep2_scratch_safe use.
9357
9358 2008-07-11 Tom Tromey <tromey@redhat.com>
9359 Ian Lance Taylor <iant@google.com>
9360
9361 * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
9362 (struct c_common_resword): Define.
9363 (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
9364 (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
9365 (c_common_reswords, num_c_common_reswords): Declare.
9366 * c-common.c (c_common_reswords): New global const array.
9367 (num_c_common_reswords): New const int.
9368 * c-parser.c (struct resword, reswords): Don't define.
9369 (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
9370 (c_parse_init): Clarify mask code. Use c_common_reswords rather
9371 than reswords. If warning about C++ keywords, give them a special
9372 RID code.
9373 (c_lex_one_token): Warn about C++ keywords. Call
9374 objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
9375 (c_parser_external_declaration): Look for RID_xxx rather than
9376 RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
9377 (c_parser_statement_after_labels): Likewise.
9378 (c_parser_objc_class_instance_variables): Likewise.
9379 (c_parser_objc_class_declaration): Likewise.
9380 (c_parser_objc_try_catch_statement): Likewise.
9381 * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
9382 (declspecs_add_type): Likewise.
9383
9384 2008-07-11 Angelo Graziosi <angelo.graziosi@alice.it>
9385
9386 * ggc-page.c (alloc_page):
9387 Substituting xmalloc, xcalloc with
9388 XNEWVEC and XCNEWVAR macros which add the
9389 needed casts.
9390
9391 2008-07-11 Richard Guenther <rguenther@suse.de>
9392
9393 PR tree-optimization/36765
9394 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
9395 aliases from HEAP vars to SMTs.
9396
9397 2008-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9398
9399 * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
9400 * configure.ac (loose_warn): Move -Wc++-compat from here...
9401 (strict_warn): ...to here.
9402 * configure: Regenerate.
9403
9404 2008-07-10 Joseph Myers <joseph@codesourcery.com>
9405
9406 * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
9407 i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
9408 m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
9409 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
9410 excluding more specific h8300-*-* and sh-*-* targets.
9411
9412 2008-07-10 Daniel Berlin <dberlin@dberlin.org>
9413
9414 * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
9415 (eliminate): Ditto.
9416 (execute_pre): Call loop_optimizer_finalize in early exit.
9417
9418 2008-07-10 Jakub Jelinek <jakub@redhat.com>
9419
9420 PR middle-end/36790
9421 * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
9422 uids in the bitmap, not just VAR_DECL uids.
9423
9424 PR rtl-optimization/36419
9425 * combine-stack-adj.c (adjust_frame_related_expr): New function.
9426 (combine_stack_adjustments_for_block): Call it if needed. Delete
9427 correct insn.
9428 * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
9429 DW_CFA_GNU_args_size if CSA pass merged some adjustments into
9430 prologue sp adjustment.
9431
9432 2008-07-10 Peter Maydell <pmaydell@chiark.greenend.org.uk>
9433
9434 PR other/28322
9435 * opts.c (print_ignored_options): Report postponed diagnostics for
9436 unknown -Wno-* options as warnings, not errors.
9437 (postpone_unknown_option_error): Renamed to...
9438 (postpone_unknown_option_warning): ... this.
9439
9440 2008-07-09 Doug Kwan <dougkwan@google.com>
9441
9442 Revert:
9443 2008-07-08 Doug Kwan <dougkwan@google.com>
9444
9445 * config/arm/arm.opt (mandroid): New option.
9446 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
9447 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
9448 (CC1_SPEC): Same.
9449 (CC1PLUS_SPEC): Same.
9450 (LIB_SPEC): Same.
9451 (STARTFILE_SPEC): Same.
9452 (ENDFILE_SPEC): Same.
9453 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
9454 used.
9455
9456 2008-07-09 Richard Sandiford <rdsandiford@googlemail.com>
9457
9458 PR target/35802
9459 * config/mips/mips.h (reg_class): Remove V1_REG.
9460 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
9461 * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
9462 instead of V1_REGS.
9463 (mips_get_tp): New function.
9464 (mips_legitimize_tls_address): Use it.
9465 * config/mips/constraints.md (v): Delete.
9466 * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
9467 (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
9468 After reload, split into a move and ...
9469 (*tls_get_tp_<mode>_split): ...this new instruction.
9470
9471 2008-07-09 David Daney <ddaney@avtrex.com>
9472
9473 * config/mips/driver-native.c: Include coretypes.h and tm.h.
9474
9475 2008-07-09 Jakub Jelinek <jakub@redhat.com>
9476
9477 * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
9478 (push_gimplify_context): Don't allocate temp_htab nor c itself here.
9479 Add c argument.
9480 (pop_gimplify_context): Check c->temp_htab instead of optimize whether
9481 htab_delete should be called. Don't free c.
9482 (lookup_tmp_var): Create temp_htab lazily.
9483 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
9484 gimplify_body, force_gimple_operand): Adjust push_gimplify_context
9485 callers.
9486 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
9487 lower_omp_ordered, lower_omp_critical, lower_omp_for,
9488 create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
9489 * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
9490 * tree-sra.c (generate_element_init): Likewise.
9491 * tree-mudflap.c (execute_mudflap_function_ops,
9492 execute_mudflap_function_decls): Likewise.
9493 * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
9494 * tree-gimple.h (struct gimplify_ctx): New type.
9495 (push_gimplify_context): Adjust prototype.
9496
9497 2008-07-09 Daniel Berlin <dberlin@dberlin.org>
9498
9499 * tree-ssa-pre.c (phi_translate_1): Update placement of
9500 add_to_value calls.
9501
9502 2008-07-09 Anatoly Sokolov <aesok@post.ru>
9503
9504 * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
9505 * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
9506 (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
9507 * targhooks.c (default_hard_regno_scratch_ok): New function.
9508 * targhooks.h (default_hard_regno_scratch_ok): Declare function.
9509 * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
9510 * recog.c: Include "target.h".
9511 (peep2_find_free_register): Add check for global regs. Add target
9512 specific check.
9513 * Makefile.in (recog.o): Depend on target.h.
9514
9515 2008-07-09 Kaz Kojima <kkojima@gcc.gnu.org>
9516
9517 * config/sh/sh.c (sh_canonical_va_list_type): New.
9518 (TARGET_CANONICAL_VA_LIST_TYPE): Define.
9519
9520 2008-07-09 Raksit Ashok <raksit@google.com>
9521
9522 * doc/invoke.texi (Option Summary): Mention new option
9523 -Wdisallowed-function-list=...
9524 (Warning Options): Document -Wdisallowed-function-list=...
9525 * common.opt (Wdisallowed-function-list=): New flag.
9526 * flags.h (warn_disallowed_functions): External definition of new
9527 boolean warning flag.
9528 (warn_if_disallowed_function_p): Declare new function.
9529 * opts.c (warning_disallowed_functions): New static variable.
9530 (warn_disallowed_functions): New boolean warning flag.
9531 (warn_if_disallowed_function_p): New function.
9532 (add_comma_separated_to_vector): Rename
9533 add_instrument_functions_exclude_list to this.
9534 (common_handle_option): Handle new option. Rename calls to
9535 add_instrument_functions_exclude_list into calls to
9536 add_comma_separated_to_vector.
9537 * c-parser.c (c_parser_postfix_expression_after_primary): New warning
9538 based on flag warn_disallowed_functions.
9539
9540 2008-07-09 Christian Bruel <christian.bruel@st.com>
9541
9542 * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
9543 instead of get_attr_length.
9544
9545 2008-07-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9546
9547 * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
9548 keywords.
9549 * genemit.c (gen_insn): Likewise.
9550 * gengtype.c (note_def_vec): Likewise.
9551 * gengtype.h (note_def_vec): Likewise.
9552 * genoutput.c (struct data, output_insn_data, process_template,
9553 gen_expand, gen_split, note_constraint): Likewise.
9554 * genrecog.c (new_decision, add_to_sequence, factor_tests,
9555 make_insn_sequence): Likewise.
9556 * gensupport.c (record_insn_name): Likewise.
9557
9558 2008-07-08 Doug Kwan <dougkwan@google.com>
9559
9560 * config/arm/arm.opt (mandroid): New option.
9561 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
9562 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
9563 (CC1_SPEC): Same.
9564 (CC1PLUS_SPEC): Same.
9565 (LIB_SPEC): Same.
9566 (STARTFILE_SPEC): Same.
9567 (ENDFILE_SPEC): Same.
9568 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
9569 used.
9570
9571 2008-07-08 Raksit Ashok <raksit@google.com>
9572
9573 * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
9574 (set_storage_via_setmem): Fix expected_align parameter.
9575 * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
9576 missing from the list.
9577 * doc/md.texi (movmem): Explicitly state that expected alignment is
9578 to be expressed in bytes.
9579 (setmem): Explicitly state that expected alignment is to be expressed
9580 in bytes.
9581
9582 2008-07-08 Joseph Myers <joseph@codesourcery.com>
9583
9584 * reload.c (find_reloads_subreg_address): Do not require validity
9585 of address in original mode before reloading address.
9586
9587 2008-07-07 Tianwei Sheng <tianweis@google.com>
9588
9589 * df-core.c (df_remove_problem): Adjust the access to avoid out of
9590 bounds array access.
9591
9592 2008-07-08 Jakub Jelinek <jakub@redhat.com>
9593
9594 * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
9595
9596 2008-07-05 Daniel Berlin <dberlin@dberlin.org>
9597
9598 Fix PR tree-optimization/23455
9599 Fix PR tree-optimization/35286
9600 Fix PR tree-optimization/35287
9601 * Makefile.in (OBJS-common): Remove tree-vn.o.
9602 (tree-vn.o): Remove.
9603 * dbgcnt.def: Add treepre_insert debug counter.
9604 * gcc/tree-flow.h (add_to_value): Updated for other changes.
9605 (debug_value_expressions): Ditto.
9606 (print_value_expressions): Ditto.
9607 * tree-pretty-print.c (dump_generic_node): Updated for
9608 VALUE_HANDLE removal.
9609 * tree-ssa-dom.c (record_equality): Ditto.
9610 (cprop_operand): Ditto.
9611 (lookup_avail_expr): Ditto.
9612 * tree-ssa-threadedge.c
9613 (record_temporary_equivalences_from_stmts_at_dest): Ditto.
9614 (simplify_control_stmt_condition): Ditto.
9615 * tree.c (tree_code_size): Ditto.
9616 (tree_node_structure): Ditto.
9617 (iterative_hash_expr): Ditto.
9618 * tree.def: Ditto.
9619 * tree.h (VALUE_HANDLE_ID): Ditto.
9620 (VALUE_HANDLE_EXPR_SET): Ditto.
9621 (struct tree_value_handle): Ditto.
9622 (union tree_node): Ditto.
9623 * treestruct.def: Ditto.
9624 * tree-vn.c: Removed.
9625 * tree-ssa-pre.c: Rewritten entirely.
9626 * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
9627 (constant_value_ids): Ditto.
9628 (vn_nary_op_t): Moved to header.
9629 (vn_phi_t): Ditto.
9630 (vn_reference_op_t): Ditto
9631 (vn_reference_t): Ditto.
9632 (next_value_id): New variable.
9633 (VN_INFO): Add an assert.
9634 (vn_constant_eq): New function.
9635 (vn_constant_hash): Ditto.
9636 (get_or_alloc_constant_value_id): Ditto.
9637 (value_id_constant_p): Ditto.
9638 (vn_reference_compute_hash): De-staticify.
9639 (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
9640 Disable some code with a FIXME. Remove VALUE_HANDLE use.
9641 (valueize_refs): Update opcode if it changes from ssa name to constant.
9642 (vn_reference_lookup_1): Add new argument.
9643 (vn_reference_lookup): Ditto.
9644 (vn_reference_lookup_pieces): New function.
9645 (vn_reference_insert): Add return type. Modify to deal with value ids.
9646 (vn_reference_insert_pieces): New function.
9647 (vn_nary_op_compute_hash): De-staticify.
9648 (vn_nary_op_eq): Ditto.
9649 (vn_nary_op_lookup_pieces): New function.
9650 (vn_nary_op_lookup): Add new argument.
9651 (vn_nary_op_insert_pieces): New function.
9652 (vn_nary_op_insert): Add return type. Modify to deal with value ids.
9653 (vn_phi_insert): Ditto.
9654 (visit_unary_op): Update for callee changes.
9655 (visit_binary_op): Ditto.
9656 (visit_reference_op_load): Ditto.
9657 (visit_reference_op_store): Ditto.
9658 (init_scc_vn): Init next_value_id, constant_to_value_id and
9659 constant_value_ids.
9660 (free_scc_vn): Free them.
9661 (set_hashtable_value_ids): New function.
9662 (run_scc_vn): Use it.
9663 (get_max_value_id): New function.
9664 (get_next_value_id): Ditto.
9665 (expressions_equal_p): Moved from tree-vn.c
9666 (sort_vuses): Ditto.
9667 (sort_vuses_heap): Ditto.
9668 * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
9669 above).
9670 * tree.c (iterative_hash_hashval_t): Made non-static
9671 * tree.h (iterative_hash_hashval_t): Declare it.
9672
9673 2008-07-08 Martin Jambor <mjambor@suse.cz>
9674
9675 * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
9676 instead of ipa_create_node_params.
9677 (ipcp_driver): Allocate infos with ipa_check_create_node_params and
9678 ipa_check_create_edge_args, free them with
9679 free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
9680
9681 * ipa-prop.c: Include flags.h and tree-inline.h.
9682 (ipa_node_params_vector): New variable.
9683 (ipa_edge_args_vector): New variable.
9684 (edge_removal_hook_holder): New variable.
9685 (node_removal_hook_holder): New variable.
9686 (edge_duplication_hook_holder): New variable.
9687 (node_duplication_hook_holder): New variable.
9688 (ipa_detect_param_modifications): Check for presence of modified flags.
9689 (ipa_compute_jump_functions): Check for presence of jump functions.
9690 (ipa_free_edge_args_substructures): New function.
9691 (ipa_create_node_params): Removed.
9692 (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
9693 (ipa_free_node_params_substructures): New function.
9694 (ipa_free_all_node_params): Changed to deallocate the on-the-side
9695 vector.
9696 (ipa_edge_removal_hook): New function.
9697 (ipa_node_removal_hook): New function.
9698 (duplicate_array): New function.
9699 (ipa_edge_duplication_hook): New function.
9700 (ipa_node_duplication_hook): New function.
9701 (ipa_register_cgraph_hooks): New function.
9702 (ipa_unregister_cgraph_hooks): New function.
9703 (free_all_ipa_structures_after_ipa_cp): New function.
9704
9705 * ipa-prop.h: Include vec.h.
9706 (ipa_node_params_t): New typedef with vector types for it.
9707 (ipa_edge_args_t): New typedef with vector types for it.
9708 (IPA_NODE_REF): Changed to access an on-the-side vector.
9709 (IPA_EDGE_REF): Changed to access an on-the-side vector.
9710 (ipa_check_create_node_params): New function.
9711 (ipa_check_create_edge_args): New function.
9712
9713 * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h. Converted
9714 all users.
9715
9716 2008-07-07 Tom Tromey <tromey@redhat.com>
9717
9718 * configure, config.in: Rebuilt.
9719 * configure.ac: Don't check for scandir or alphasort.
9720
9721 2008-07-07 Joseph Myers <joseph@codesourcery.com>
9722
9723 * config/arm/arm.c (arm_init_neon_builtins): Register built-in
9724 types immediately after creating them.
9725
9726 2008-07-07 Joseph Myers <joseph@codesourcery.com>
9727
9728 * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
9729
9730 2008-07-07 Fernando Pereira <fernando@cs.ucla.edu>
9731
9732 * tree-ssa-structalias.c (compute_points_to_sets): Add call to
9733 dump_constraint_graph.
9734 (dump_constraint_edge): New function.
9735 (dump_constraint_graph): New function.
9736 (debug_constraint_graph): New function.
9737 (dump_constraint): Removed useless comparison.
9738 * tree-ssa-structalias.h (dump_constraint_edge): Declare.
9739 (dump_constraint_graph): Declare.
9740 (debug_constraint_graph): Declare.
9741 * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
9742
9743 2008-07-07 Kai Tietz <kai.tietz@onevision.com>
9744
9745 * config/i386/i386.c (is_va_list_char_pointer): New.
9746 (ix86_va_start): Replace compare with ms_va_list_type_node
9747 by is_va_list_char_pointer.
9748 (ix86_gimplify_va_arg): Likewise.
9749
9750 2008-07-07 Martin Jambor <mjambor@suse.cz>
9751
9752 * cgraph.c (cgraph_edge_max_uid): New variable.
9753 (struct cgraph_edge_hook_list): New type.
9754 (struct cgraph_node_hook_list): New type.
9755 (struct cgraph_2edge_hook_list): New type.
9756 (struct cgraph_2node_hook_list): New type.
9757 (first_cgraph_edge_removal_hook): New variable.
9758 (first_cgraph_node_removal_hook): New variable.
9759 (first_cgraph_edge_duplicated_hook): New variable.
9760 (first_cgraph_node_duplicated_hook): New variable.
9761 (cgraph_add_edge_removal_hook): New function.
9762 (cgraph_remove_edge_removal_hook): New function.
9763 (cgraph_call_edge_removal_hooks): New function.
9764 (cgraph_add_node_removal_hook): New function.
9765 (cgraph_remove_node_removal_hook): New function.
9766 (cgraph_call_node_removal_hooks): New function.
9767 (cgraph_add_edge_duplication_hook): New function.
9768 (cgraph_remove_edge_duplication_hook): New function.
9769 (cgraph_call_edge_duplication_hooks): New function.
9770 (cgraph_add_node_duplication_hook): New function.
9771 (cgraph_remove_node_duplication_hook): New function.
9772 (cgraph_call_node_duplication_hooks): New function.
9773 (cgraph_create_edge): Assign to edge uid.
9774 (cgraph_remove_edge): Call edge removal hooks.
9775 (cgraph_node_remove_callees): Call edge removal hooks.
9776 (cgraph_node_remove_callers): Call edge removal hooks.
9777 (cgraph_remove_node): Call node removal hooks.
9778 (cgraph_clone_edge): Call edge duplication hooks.
9779 (cgraph_clone_node): Call node duplication hooks.
9780
9781 * cgraph.h (cgraph_edge): New field uid.
9782 (cgraph_edge_hook): New type.
9783 (cgraph_node_hook): New type.
9784 (cgraph_2edge_hook): New type.
9785 (cgraph_2node_hook): New type.
9786
9787 2008-07-07 Andreas Tobler <a.tobler@schweiz.org>
9788
9789 * config.in: Regenerate.
9790
9791 2008-07-07 Vladimir Prus <vladimir@codesourcery.com>
9792
9793 * gcc.c (print_sysroot): New.
9794 (option_map, display_help, process_command): Handle the
9795 -print-sysroot option.
9796 (main): Print the sysroot if requested.
9797 * doc/invoke.texi (Debugging Options): Document -print-sysroot.
9798
9799 2008-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9800
9801 PR target/34780
9802 * unwind-pe.h (size_of_encoded_value): add attribute unused.
9803
9804 2008-07-07 Daniel Jacobowitz <dan@codesourcery.com>
9805
9806 * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
9807 (assign_parm_setup_block_p): Also check mode of entry_parm.
9808
9809 2008-07-07 Richard Guenther <rguenther@suse.de>
9810
9811 * tree-ssa-structalias.h (set_used_smts): Remove.
9812 * tree-ssa-structalias.c (used_smts): Likewise.
9813 (set_used_smts): Likewise.
9814 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
9815 call to set_used_smts.
9816
9817 2008-07-07 Richard Guenther <rguenther@suse.de>
9818
9819 * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
9820 (new_var_info): Set it to false.
9821 (solution_set_add): Correctly handle pointers outside a var and
9822 inside a field.
9823 (type_safe): Treat variables with is_full_var properly.
9824 (do_sd_constraint): Likewise.
9825 (do_ds_constraint): Likewise.
9826 (process_constraint): Remove zeroing offset for !use_field_sensitive.
9827 (get_constraint_for_ptr_offset): New function.
9828 (get_constraint_for_component_ref): For addresses at least include
9829 the last field of the variable. Handle is_full_vars properly.
9830 (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
9831 (handle_ptr_arith): Remove.
9832 (find_func_aliases): Simplify assignment handling.
9833 (create_function_info_for): For parameter and result varinfos set
9834 is_full_var flag.
9835 (create_variable_info_for): Set is_full_var flag whenever we
9836 just created a single varinfo for a decl.
9837 (init_alias_vars): Initialize use_field_sensitive from
9838 max-fields-for-field-sensitive parameter.
9839
9840 2008-07-07 Richard Guenther <rguenther@suse.de>
9841
9842 PR tree-optimization/36713
9843 * tree-flow-inline.h (is_call_used): New function.
9844 * tree-nrv.c (dest_safe_for_nrv_p): Use it.
9845 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
9846 * tree-outof-ssa.c (create_temp): Set call-used flag if required.
9847
9848 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
9849
9850 * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
9851
9852 2008-07-07 Mark Shinwell <shinwell@codesourcery.com>
9853
9854 * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
9855
9856 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
9857 Nathan Sidwell <nathan@codesourcery.com>
9858
9859 * config.gcc (m68k-*-linux*): Add with_arch. Add sysroot-suffix.h
9860 to tm_file. Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
9861 tmake_file.
9862 * config/m68k/t-linux: New.
9863 * doc/install.texi: Document m68k-*-linux is now multilibbed by
9864 default.
9865
9866 2008-07-07 Nathan Sidwell <nathan@codesourcery.com>
9867
9868 * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
9869 * config/m68k/m68k-devices.def: Remove multilibs that only differ
9870 by MAC/EMAC.
9871
9872 2008-07-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9873
9874 * gcc.c (execute): Fix -Wc++-compat warning.
9875
9876 2008-07-06 H.J. Lu <hongjiu.lu@intel.com>
9877
9878 PR target/36720
9879 * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
9880 constant for little endian.
9881
9882 2008-07-06 Richard Sandiford <rdsandiford@googlemail.com>
9883
9884 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
9885 mips_base_mips16 instead of TARGET_MIPS16.
9886 (mips_base_mips16): Declare.
9887 * config/mips/mips.c (mips_base_mips16): Make global.
9888 (was_mips16_p): Remove GTY marker.
9889 (was_mips16_pch_p): New variable.
9890 (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
9891 (mips_override_options): Force to non-MIPS16 mode initially.
9892 Do not complain about MIPS16 PIC incompatibilities here.
9893 Only allow -mgpopt if -mexplicit-relocs is in force for
9894 non-MIPS16 code.
9895
9896 2008-07-06 Andreas Tobler <a.tobler@schweiz.org>
9897
9898 * configure.ac: Check for caddr_t, define to char * if not defined.
9899 * configure: Regenerate.
9900 * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
9901 (mmap_gt_pch_use_address): Likewise.
9902 * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
9903
9904 2008-07-06 Richard Guenther <rguenther@suse.de>
9905
9906 * tree-ssa-structalias.c (struct variable_info): Remove has_union.
9907 (new_var_info): Deal with it.
9908 (solution_set_add): Likewise.
9909 (bitpos_of_field): Make signed, fix.
9910 (struct fieldoff): Remove type and decl fields. Make size field
9911 unsigned HOST_WIDE_INT. Add has_unknown_size and may_have_pointers
9912 flags.
9913 (fieldoff_compare): Deal with it.
9914 (push_fields_onto_fieldstack): Remove has_union argument, glob
9915 adjacent non-pointer fields together.
9916 (create_function_info_for): Do not set has_union.
9917 (create_variable_info_for): Simplify.
9918
9919 2008-07-06 Kai Tietz <kai.tietz@onevision.com>
9920
9921 * config.gcc (extra_headers): Add cross-stdarg.h for target
9922 x86_64-*-* and i?86-*-*.
9923 * config/i386/cross-stdarg.h: New.
9924 * builtins.c (std_fn_abi_va_list): New.
9925 (std_canonical_va_list_type): New.
9926 (stabilize_va_list): Replace va_list_type_node use by
9927 mtarget.canonical_va_list_type.
9928 (gimplify_va_arg_expr): Likewise.
9929 (expand_builtin_va_copy): Replace va_list_type_node use by
9930 mtarget.fn_abi_va_list.
9931 * tree-sra.c (is_va_list_type): New helper.
9932 (decl_can_be_decomposed_p): Replace
9933 va_list_type_node use by is_va_list_type.
9934 * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
9935 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
9936 * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
9937 * config/i386/i386-protos.h (ix86_get_valist_type): New.
9938 (ix86_enum_va_list): New.
9939 * config/i386/i386.c (sysv_va_list_type_node): New.
9940 (ms_va_list_type_node): New.
9941 (ix86_function_type_abi): Remove sorry.
9942 (ix86_build_builtin_va_list_abi): New.
9943 (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
9944 for 64-bit targets.
9945 (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
9946 (ix86_init_builtins_va_builtins_abi): New.
9947 (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
9948 for 64-bit targets.
9949 (ix86_handle_abi_attribute): New.
9950 (attribute_spec): Add sysv_abi and ms_abi.
9951 (ix86_fn_abi_va_list): New.
9952 (ix86_canonical_va_list_type): New.
9953 (ix86_enum_va_list): New.
9954 (TARGET_FN_ABI_VA_LIST): New.
9955 (TARGET_CANONICAL_VA_LIST_TYPE): New.
9956 * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
9957 * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
9958 (TARGET_CANONICAL_VA_LIST_TYPE): New.
9959 (TARGET_ENUM_VA_LIST): New.
9960 * expr.h (std_fn_abi_va_list): New.
9961 (std_canonical_va_list_type): New.
9962 * target-def.h (TARGET_FN_ABI_VA_LIST): New.
9963 (TARGET_CANONICAL_VA_LIST_TYPE): New.
9964 (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
9965 TARGET_CANONICAL_VA_LIST_TYPE.
9966 * target.h (struct gcc_target): Add fn_abi_va_list hook
9967 and canonical_va_list_type hook.
9968
9969 2008-07-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
9970
9971 * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
9972 integral and pointer types.
9973
9974 2008-07-04 Roger Sayle <roger@eyesopen.com>
9975
9976 * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
9977 the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
9978
9979 2008-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
9980
9981 PR target/36684
9982 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
9983
9984 2008-07-04 Jakub Jelinek <jakub@redhat.com>
9985
9986 * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
9987 build_gimple_modify_stmt.
9988 (build_arrays, gen_inbound_check): Likewise. Force RHS to be
9989 gimple operand. Use fold_build* instead of build*.
9990
9991 2008-07-04 Richard Guenther <rguenther@suse.de>
9992
9993 * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
9994 (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
9995 properly to compute the reachability set if we do field-sensitive PTA.
9996 * invoke.texi (max-fields-for-field-sensitive): Document default.
9997 * opts.c (decode_options): Set max-fields-for-field-sensitive to
9998 100 for optimize >= 2.
9999
10000 2008-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10001
10002 * ggc-zone.c (lookup_page_table_if_allocated,
10003 set_page_table_entry, zone_find_object_size, alloc_small_page,
10004 alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
10005 new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
10006 -Wc++-compat and/or -Wcast-qual warnings.
10007
10008 2008-07-04 Alan Modra <amodra@bigpond.net.au>
10009
10010 PR target/36634
10011 * config/rs6000/rs6000.md (call, call_value): Don't arrange for
10012 pic_offset_table_rtx to be marked as used here.
10013 (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
10014 TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
10015 (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
10016 (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
10017 !TARGET_SECURE_PLT.
10018
10019 2008-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10020
10021 * alloc-pool.c (hash_descriptor, eq_descriptor,
10022 alloc_pool_descriptor): Fix -Wc++-compat warnings.
10023 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
10024 Likewise.
10025 * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
10026 loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
10027 final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
10028 * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
10029 Likewise.
10030
10031 2008-07-03 Eric Botcazou <ebotcazou@adacore.com>
10032
10033 * tree-flow.h (loop_only_exit_p): Declare.
10034 * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
10035 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
10036 the number of iterations if it is constant. Otherwise, if this is the
10037 only possible exit of the loop, use the conservative estimate on the
10038 number of iterations of the entire loop if available.
10039
10040 2008-07-03 Richard Sandiford <rdsandiford@googlemail.com>
10041
10042 * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
10043 * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
10044 Add synchronization functions.
10045 * config/sync.c: New file.
10046 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
10047 (LIBGCC_SYNC_CFLAGS): Likewise.
10048
10049 2008-07-03 Uros Bizjak <ubizjak@gmail.com>
10050
10051 PR target/36710
10052 * config/i386/i386.md (mode): Add TF to "mode" attribute.
10053 (*pushtf_sse): New insn pattern.
10054 (pushtf splitters): New splitters.
10055
10056 2008-07-03 Michael Meissner <gnu@the-meissners.org>
10057
10058 PR middle-end/35736
10059 * predict.c (build_predict_expr): Use void_type_node for the tree
10060 type, instead of NULL_TREE.
10061
10062 2008-07-03 H.J. Lu <hongjiu.lu@intel.com>
10063
10064 * config/i386/i386.c (contains_aligned_value_p): Return true
10065 for TCmode.
10066 (ix86_data_alignment): Align TCmode to 128bits.
10067 (ix86_local_alignment): Likewise.
10068
10069 2008-07-03 Andrew Haley <aph@redhat.com>
10070
10071 PR bootstrap/33304
10072 * vec.h (VEC_TA): New.
10073 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
10074 DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
10075 * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
10076 (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
10077 (C_COMMON_FIXED_TYPES): Remove first arg.
10078 (C_COMMON_FIXED_MODE_TYPES): Likewise.
10079 * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
10080 MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
10081 not to use empty macro arguments.
10082
10083 2008-07-02 Joseph Myers <joseph@codesourcery.com>
10084
10085 * config/alpha/vms_tramp.asm, config/arm/crti.asm,
10086 config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
10087 config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
10088 config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
10089 config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
10090 config/i386/sol2-gc1.asm, config/ia64/crti.asm,
10091 config/ia64/crtn.asm, config/m68hc11/larith.asm,
10092 config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
10093 config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
10094 config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
10095 config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
10096 config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
10097 config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
10098 config/rs6000/e500crtres64gpr.asm,
10099 config/rs6000/e500crtres64gprctr.asm,
10100 config/rs6000/e500crtrest32gpr.asm,
10101 config/rs6000/e500crtrest64gpr.asm,
10102 config/rs6000/e500crtresx32gpr.asm,
10103 config/rs6000/e500crtresx64gpr.asm,
10104 config/rs6000/e500crtsav32gpr.asm,
10105 config/rs6000/e500crtsav64gpr.asm,
10106 config/rs6000/e500crtsav64gprctr.asm,
10107 config/rs6000/e500crtsavg32gpr.asm,
10108 config/rs6000/e500crtsavg64gpr.asm,
10109 config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
10110 config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
10111 config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
10112 config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
10113 config/sparc/sol2-cn.asm: Remove .file directives.
10114
10115 2008-07-02 Richard Sandiford <rdsandiford@googlemail.com>
10116
10117 * resource.c (mark_referenced_resources): Look inside
10118 UNSPEC_VOLATILEs and ASM_INPUTs.
10119
10120 2008-07-02 Ian Lance Taylor <iant@google.com>
10121
10122 * rtlanal.c (add_reg_note): New function.
10123 * rtl.h (add_reg_note): Declare.
10124 * auto-inc-dec.c (attempt_change): Use add_reg_note.
10125 * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
10126 * builtins.c (expand_builtin_longjmp): Likewise.
10127 (expand_builtin_nonlocal_goto): Likewise.
10128 * calls.c (emit_call_1, expand_call): Likewise.
10129 * cfgexpand.c (add_reg_br_prob_note): Likewise.
10130 * cfglayout.c (fixup_reorder_chain): Likewise.
10131 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
10132 (commit_one_edge_insertion): Likewise.
10133 * combine.c (move_deaths, distribute_notes): Likewise.
10134 * df-problems.c (df_set_note): Likewise.
10135 * emit-rtl.c (link_cc0_insns, try_split): Likewise.
10136 (set_unique_reg_note): Likewise.
10137 (emit_copy_of_insn_after): Likewise.
10138 * expr.c (expand_expr_real): Likewise.
10139 * gcse.c (add_label_notes): Likewise.
10140 * haifa-sched.c (create_check_block_twin): Likewise.
10141 * jump.c (mark_jump_label_1): Likewise.
10142 * loop-doloop.c (add_test, doloop_modify): Likewise.
10143 * loop-unswitch.c (compare_and_jump_seq): Likewise.
10144 * lower-subreg.c (move_eh_region_note): Likewise.
10145 * optabs.c (emit_libcall_block): Likewise.
10146 * predict.c (predict_insn): Likewise.
10147 (combine_predictions_for_insn): Likewise.
10148 * recog.c (peephole2_optimize): Likewise.
10149 * regmove.c (try_auto_increment): Likewise.
10150 * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
10151 * reload.c (find_reloads): Likewise.
10152 * reload1.c (fixup_eh_region_note): Likewise.
10153 (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
10154 * reorg.c (delete_prior_computation): Likewise.
10155 (delete_computation, dbr_schedule): Likewise.
10156 * config/pa/pa.c (legitimize_pic_address): Likewise.
10157 * config/sh/sh.c (sh_reorg): Likewise.
10158
10159 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
10160
10161 PR target/36669
10162 * config/libgcc-glibc.ver: Add %exclude.
10163 * config/m32r/libgcc-glibc.ver: Likwise.
10164 * config/s390/libgcc-glibc.ver: Likwise.
10165 * config/sh/libgcc-glibc.ver: Likwise.
10166 * config/sparc/libgcc-sparc-glibc.ver: Likwise.
10167
10168 * config/i386/libgcc-glibc.ver: New.
10169
10170 * config/i386/libgcc-x86_64-glibc.ver: Removed.
10171
10172 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
10173
10174 * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
10175 from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
10176 i[34567]86-*-linux*, x86_64-*-linux*. Add
10177 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
10178 i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
10179 x86_64-*-linux*. Add i386/t-linux to tmake_file for
10180 i[34567]86-*-linux*, x86_64-*-linux*.
10181
10182 * libgcc-std.ver: Add empty GCC_4.4.0.
10183
10184 * mkmap-symver.awk: Support multiple versions per symbol.
10185
10186 * config/i386/i386.c (ix86_init_builtins): Always define
10187 __builtin_fabsq and __builtin_copysignq with fallbacks.
10188 (ix86_expand_builtin): Emit normal call for __builtin_fabsq
10189 and __builtin_copysignq if SSE2 isn't available.
10190
10191 * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
10192 (LIBGCC2_TF_CEXT): Likwise.
10193 (TF_SIZE): Likwise.
10194
10195 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
10196
10197 * config/i386/sfp-machine.h: Moved to libgcc.
10198
10199 * config/i386/sfp-machine.h: New.
10200 * config/i386/t-linux: Likwise.
10201
10202 * config/i386/t-darwin: Remove softfp_wrap_start and
10203 softfp_wrap_end.
10204 * config/i386/t-darwin64: Likewise.
10205
10206 * config/i386/t-fprules-softfp64: Renamed to ...
10207 * config/i386/t-fprules-softfp: This.
10208
10209 * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
10210 and softfp_wrap_end.
10211
10212 2008-07-02 Jason Merrill <jason@redhat.com>
10213
10214 * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
10215
10216 * tree.c (ctor_to_list): New fn.
10217 * tree.h: Declare it.
10218 (CONSTRUCTOR_ELT): New macro.
10219 (CONSTRUCTOR_NELTS): New macro.
10220
10221 2008-07-02 Richard Guenther <rguenther@suse.de>
10222
10223 * tree-ssa-structalias.c (struct variable_info): Reorder
10224 to fill padding on 64bit hosts. Make collapsed_to an int.
10225 (get_varinfo_fc): Deal with that.
10226 (new_var_info): Likewise.
10227 (collapse_rest_of_var): Likewise.
10228
10229 2008-07-02 Joshua Sumali <jsumali@redhat.com>
10230
10231 * doc/install.texi (--enable-java-home): Document.
10232 (--enable-aot-compile-rpm): Likewise.
10233 (--with-arch-directory): Likewise.
10234 (--with-os-directory): Likewise.
10235 (--with-origin-name): Likewise.
10236 (--with-arch-suffix): Likewise.
10237 (--with-jvm-root-dir): Likewise.
10238 (--with-jvm-jar-dir): Likewise.
10239 (--with-python-dir): Likewise.
10240
10241 2008-07-02 Richard Guenther <rguenther@suse.de>
10242
10243 * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
10244 from decls explicitly. Merge operand checking from tuples.
10245
10246 2008-07-02 Martin Jambor <mjambor@suse.cz>
10247
10248 * tree-switch-conversion.c: Included timevar.h which I forgot before.
10249
10250 2008-07-02 Martin Jambor <mjambor@suse.cz>
10251
10252 * tree-switch-conversion.c: Included timevar.h
10253 (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
10254
10255 * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
10256
10257 2008-07-02 Martin Jambor <mjambor@suse.cz>
10258
10259 * tree-switch-conversion.c: Corrected various comments and
10260 whitespace issues
10261 (build_constructors): Fixed minor formatting mistakes.
10262
10263 * invoke.texi (Optimize Options): Corrected the
10264 switch-conversion-max-branch-ratio parameter.
10265
10266 2008-07-02 Mark Shinwell <shinwell@codesourcery.com>
10267
10268 * final.c (asm_insn_count): Return zero for an empty asm body.
10269
10270 2008-07-02 Richard Guenther <rguenther@suse.de>
10271
10272 * bitmap.h (bitmap_set_bit): Return bool.
10273 (bitmap_clear_bit): Likewise.
10274 * bitmap.c (bitmap_set_bit): Return if the bit changed. Only
10275 write to the bitmap if it would.
10276 (bitmap_clear_bit): Likewise.
10277 * tree-ssa-structalias.c (add_implicit_graph_edge): Use
10278 bitmap_set_bit return value.
10279 (add_pred_graph_edge): Likewise.
10280 (add_graph_edge): Likewise.
10281 (do_sd_constraint): Likewise.
10282 (do_ds_constraint): Likewise.
10283
10284 2008-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10285
10286 * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
10287 Fix -Wc++-compat and/or -Wcast-qual warnings.
10288 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
10289 gen_regparm_prefix): Likewise.
10290 * vmsdbgout.c (write_modbeg, lookup_filename,
10291 vmsdbgout_source_line, vmsdbgout_init): Likewise.
10292
10293 2008-07-02 Danny Smith <dannysmith@users.sourceforge.net>
10294
10295 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
10296 defaults.h definition apply.
10297
10298 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
10299
10300 * function.c (assign_parm_remove_parallels): New.
10301 (assign_parm_setup_block_p): Do not return true for non-BLKmode
10302 PARALLELs.
10303 (assign_parm_setup_block): Do not handle them.
10304 (assign_parm_setup_reg, assign_parm_setup_stack): Call
10305 assign_parm_remove_parallels.
10306
10307 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
10308
10309 * c-typeck.c (convert_for_assignment): Use
10310 vector_targets_convertible_p.
10311 * c-common.c (vector_targets_convertible_p): New.
10312 * c-common.h (vector_targets_convertible_p): New prototype.
10313 * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
10314 opaque_p_V2SI_type_node.
10315
10316 2008-07-01 Steve Ellcey <sje@cup.hp.com>
10317
10318 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
10319 RFmode constants.
10320
10321 2008-07-01 Uros Bizjak <ubizjak@gmail.com>
10322
10323 * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
10324 TFmode constants via two element DImode vector for hosts with
10325 HOST_BITS_PER_WIDE_INT < 64.
10326 (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
10327 also for HOST_BITS_PER_WIDE_INT < 64.
10328
10329 2008-07-01 Richard Guenther <rguenther@suse.de>
10330
10331 PR tree-optimization/36666
10332 * tree-ssa-structalias.c (get_constraint_for_1): Declare.
10333 (get_constraint_exp_from_ssa_var): Split into ...
10334 (get_constraint_exp_for_temp): ... this ...
10335 (get_constraint_for_ssa_var): ... and that.
10336 Return constraint expressions for all touched sub-fields
10337 if the results address is not taken.
10338 (process_constraint): Remove assertion that aggregate
10339 assignments do not happen at this place.
10340 (get_constraint_for_component_ref): Add address_p argument.
10341 Return constraint expressions for all touched sub-fields
10342 if the results address is not taken.
10343 (do_deref): Use get_constraint_exp_for_temp.
10344 (get_constraint_for_1): Rename from ...
10345 (get_constraint_for): ... this. Add the old function as wrapper.
10346 (do_structure_copy): Use get_constraint_for_1.
10347
10348 2008-07-01 Martin Jambor <mjambor@suse.cz>
10349
10350 * Makefile.in (tree-switch-conversion.o): Add.
10351 (OBJS-common): Add tree-swtch-conversion.o.
10352 * passes.c (init_optimization_passes): Add pass_convert_switch.
10353 * tree-pass.h: (pass_convert_switch): Add.
10354 * tree-switch-conversion.c: New file.
10355 * gcc.dg/tree-ssa/cswtch.c: New testcase.
10356 * common.opt (ftree-cswtch): New option.
10357 * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
10358 * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
10359 * opts.c (decode_options): Set flag_tree_switch_conversion when
10360 optimization level is >= 2.
10361 * doc/invoke.texi (Optimize Options): Added description of
10362 -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
10363
10364 2008-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10365
10366 * config/darwin-driver.c (darwin_default_min_version): Fix
10367 -Wc++-compat warnings.
10368
10369 2008-06-30 Uros Bizjak <ubizjak@gmail.com>
10370
10371 * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
10372 of operand 0.
10373
10374 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
10375
10376 * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
10377
10378 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
10379
10380 PR rtl-optimization/34744
10381 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
10382 (df_scan_free_internal): Free data structures not
10383 allocated in storage pools.
10384 (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
10385 (df_refs_add_to_chains): Use df_scan_free_ref_vec and
10386 df_scan_free_mws_vec.
10387 * dse.c (dse_step6): Free offset_map_p and offset_map_n
10388 unconditionally.
10389
10390 2008-06-30 H.J. Lu <hongjiu.lu@intel.com>
10391
10392 * config/i386/i386.c (contains_aligned_value_p): Return true
10393 for __float128.
10394 (ix86_function_arg_boundary): Return its natural boundary
10395 for __float128.
10396 (return_in_memory_32): Don't check TDmode.
10397 (ix86_split_to_parts): Support splitting into 4 parts and
10398 support TFmode for 32bit target.
10399 (ix86_split_long_move): Support splitting into 4 parts.
10400 (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
10401 for SSE2.
10402 (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
10403 (ix86_init_builtins): Here.
10404 (ix86_scalar_mode_supported_p): Always return true for TFmode.
10405 (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
10406 'q' and 'w', respectively.
10407
10408 * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
10409 TARGET_64BIT.
10410 (movtf_internal): Likewise.
10411 (<code>tf2): Likewise.
10412 (*absnegtf2_sse): Likewise.
10413 (copysign<mode>3): Likewise.
10414 (copysign<mode>3_const): Likewise.
10415 (copysign<mode>3_var): Likewise.
10416 (define_split UNSPEC_COPYSIGN): Likewise.
10417 * config/i386/sse.md (*nandtf3): Likewise.
10418 (<code>tf3): Likewise.
10419 (*<code>tf3): Likewise.
10420
10421 2008-06-30 Joey Ye <joey.ye@intel.com>
10422 H.J. Lu <hongjiu.lu@intel.com>
10423
10424 * global.c (compute_regsets): Set frame_pointer_needed here.
10425 * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
10426
10427 2008-06-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
10428
10429 * doc/install.texi (specific): Expand Windows build notes.
10430
10431 2008-06-30 Ira Rosen <irar@il.ibm.com>
10432
10433 PR tree-optimization/36648
10434 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
10435 number of prolog iterations by step. Fix the comment.
10436
10437 2008-06-30 Richard Guenther <rguenther@suse.de>
10438
10439 PR middle-end/36671
10440 * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
10441 handle calls from ECF_MALLOC functions.
10442 (handle_pure_call): ECF_MALLOC functions do not return
10443 call-used memory.
10444 (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
10445
10446 2008-06-29 Andreas Schwab <schwab@suse.de>
10447
10448 * config/m68k/m68k.c (print_operand): Always print a float
10449 constant in hex.
10450 * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
10451 (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
10452 Remove macros.
10453
10454 * config/rs6000/x-linux64: Remove never used file.
10455
10456 2008-06-29 Richard Guenther <rguenther@suse.de>
10457
10458 * tree-ssa-structalias.h (compute_points_to_sets): Adjust
10459 prototype.
10460 (struct alias_info): Move ...
10461 * tree-ssa-alias.c: ... here.
10462 (update_alias_info): Declare.
10463 (compute_may_aliases): Call it.
10464 (update_alias_info): New function.
10465 * tree-ssa-structalias.c (update_alias_info): Move ...
10466 * tree-ssa-alias.c (update_alias_info_1): ... here.
10467 * tree-ssa-structalias.c (process_constraint_1): Remove
10468 unused from_call argument. Rename to ...
10469 (process_constraint): ... this. Delete old wrapper.
10470 (make_constraint_to): Adjust callers.
10471 (handle_const_call): Likewise.
10472 (handle_pure_call): Likewise.
10473 (init_base_vars): Likewise.
10474 (handle_lhs_call): Likewise. Remove unnecessary constraint.
10475 (find_func_aliases): We don't need structure copies for
10476 complex types.
10477 (make_constraint_from_anything): Remove.
10478 (create_variable_info_for): For globals make constraints
10479 from escaped, not from anything.
10480 (compute_points_to_sets): Do not call update_alias_info.
10481 (ipa_pta_execute): Use make_constraint_from.
10482
10483 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10484
10485 * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
10486 (bitmap.o-warn, dominance.o-warn): New.
10487 * configure.ac (cxx_compat_warn): Delete.
10488 (loose_warn): Add -Wcast-qual and -Wc++-compat.
10489 * system.h: Remove #pragma diagnostic for -Wcast-qual and
10490 -Wc++-compat.
10491 * configure: Regenerate.
10492
10493 * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
10494 warnings.
10495
10496 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10497
10498 * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
10499 * df-scan.c (df_notes_rescan): Likewise.
10500 * ggc-page.c (set_page_table_entry): Likewise.
10501 * intl.c (gcc_gettext_width): Likewise.
10502 * varasm.c (get_unnamed_section, get_noswitch_section,
10503 get_section): Likewise.
10504
10505 2008-06-28 Andrew Jenner <andrew@codesourcery.com>
10506
10507 * regrename.c (build_def_use): Don't copy RTX.
10508
10509 2008-06-28 Sandra Loosemore <sandra@codesourcery.com>
10510
10511 * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
10512 (Type Attributes): Fix nesting of @table and @subsection. Adjust
10513 punctuation. Use @ref instead of @xref.
10514 (Function Names): Remove stray @display/@end display.
10515 (C++ Attributes): Use @ref instead of @xref.
10516 (Deprecated Features): Fix punctuation around @xref.
10517 (Backwards Compatibility): Likewise.
10518 * doc/rtl.texi (Incdec): Remove stray @table/@end table.
10519
10520 2008-06-28 Joseph Myers <joseph@codesourcery.com>
10521
10522 * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
10523 constants for E500 double.
10524
10525 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10526
10527 * doc/rtl.texi (const_vector): Document const_fixed as legitimate
10528 element type of const_vector.
10529
10530 2008-06-28 Uros Bizjak <ubizjak@gmail.com>
10531
10532 * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
10533 Remove FLAGS_REG clobber from expander pattern.
10534 (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
10535 (anddi3, andsi3, andhi3, andqi3): Ditto.
10536 (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
10537 (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
10538 (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
10539 (ashlsi3, ashlhi3, ashlqi3): Ditto.
10540 (ashrsi3, ashrhi3, ashrqi3): Ditto.
10541 (lshrsi3, lshrhi3, lshrqi3): Ditto.
10542 (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
10543 (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
10544
10545 2008-06-28 Richard Guenther <rguenther@suse.de>
10546
10547 * tree-ssa-structalias.c (callused_id, var_callused,
10548 callused_tree): Add.
10549 (handle_pure_call): New function.
10550 (find_func_aliases): Call it.
10551 (find_what_p_points_to): Handle the call-used set.
10552 (clobber_what_escaped): Likewise.
10553 (compute_call_used_vars): New function.
10554 (init_base_vars): Init the call-used variable.
10555 (do_sd_constraint): Do not propagate the solution from CALLUSED
10556 but use CALLUSED as a placeholder.
10557 (solve_graph): Likewise.
10558 * tree-flow-inline.h (gimple_call_used_vars): New function.
10559 * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
10560 (compute_call_used_vars): Declare.
10561 * tree-ssa-alias.c (set_initial_properties): Call
10562 compute_call_used_vars.
10563 (reset_alias_info): Clear call-used variables.
10564 (add_call_clobber_ops): Assert we are not called for const/pure
10565 functions. Remove handling of them.
10566 (add_call_read_ops): Handle pure functions by adding the
10567 call-used set of variables as VUSEs.
10568 * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
10569 (delete_tree_ssa): Free it.
10570 * tree-dfa.c (remove_referenced_var): Clear the var from the
10571 call-used bitmap.
10572
10573 2008-06-28 Kai Tietz <kai.tietz@onevision.com>
10574
10575 * tree.c (build_varargs_function_type_list): New.
10576 (build_function_type_list_1): New.
10577 (build_function_type_list): Use build_function_type_list_1.
10578 * tree.h (build_varargs_function_type_list): New.
10579
10580 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10581
10582 PR target/34856
10583 * config/spu/spu.c (spu_builtin_splats): Do not generate
10584 invalid CONST_VECTOR expressions.
10585 (spu_expand_vector_init): Likewise.
10586
10587 2008-06-28 Richard Sandiford <rdsandiford@googlemail.com>
10588
10589 * optabs.c (libfunc_decls): New variable.
10590 (libfunc_decl_hash, libfunc_decl_eq): New functions.
10591 (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
10592 for the same function twice.
10593
10594 2008-06-27 Uros Bizjak <ubizjak@gmail.com>
10595
10596 * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
10597 ix86_expand_binary_operator directly.
10598 (*ashlti3_1): Rename from ashlti3_1. Use nonmemory_operand predicate
10599 for operand 2.
10600 (*ashrti3_1): Ditto.
10601 (*lshrti3_1): Ditto.
10602 (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
10603 (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
10604 using only one splitter. Conditionaly execute splitter before or
10605 after peephole2 pass.
10606 (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
10607 (x86_shld): Rename from x86_shld_1. Compress operand 2 constraints.
10608 Use only one alternative in asm template.
10609 (x86_64_shld): Compress operand 2 constraints. Use only one alternative
10610 in asm template.
10611 (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
10612 "J" operand constraint for operand 2.
10613 (*ashldi3_cconly_rex64): Ditto.
10614 (*ashrdi3_cmp_rex64): Ditto.
10615 (*ashrdi3_cconly_rex64): Ditto.
10616 (*lshrdi3_cmp_rex64): Ditto.
10617 (*lshrdi3_cconly_rex64): Ditto.
10618 * config/i386/predicates.md (const_1_to_63_operand): New predicate.
10619 * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
10620 (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
10621 gen_x86_shrd_1.
10622
10623 2008-06-27 Jakub Jelinek <jakub@redhat.com>
10624
10625 * gimplify.c (omp_is_private): Don't return true if decl is not
10626 already private on #pragma omp for or #pragma omp parallel for.
10627
10628 PR debug/36617
10629 * tree-cfg.c (struct move_stmt_d): Replace block field with
10630 orig_block and new_block fields.
10631 (move_stmt_r): Only set TREE_BLOCK to p->new_block if
10632 if it used to be NULL, p->orig_block or if p->orig_block is NULL.
10633 (move_block_to_fn): Replace vars_map and new_label_map arguments
10634 with struct move_stmt_d pointer.
10635 (replace_block_vars_by_duplicates): New function.
10636 (move_sese_region_to_fn): Add ORIG_BLOCK argument. Adjust
10637 move_block_to_fn caller. If ORIG_BLOCK is non-NULL, move over
10638 all subblocks of ORIG_BLOCK to the new function. Call
10639 replace_block_vars_by_duplicates.
10640 * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
10641 * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
10642 BLOCK of the new function. Adjust move_sese_region_to_fn caller.
10643 Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
10644 (expand_omp): Temporarily set input_location to the location of
10645 region's controlling stmt.
10646 (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
10647 BIND_EXPR, push ctx->block_vars and gimplification vars into
10648 the BIND_EXPR and its block's BLOCK_VARS instead of directly
10649 into dest function.
10650 (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
10651 there are any BLOCK_VARS.
10652 (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
10653 OMP_PARALLEL or OMP_TASK stmt.
10654 (lower_omp): Save and restore input_location around the lower_omp_1
10655 call.
10656
10657 2008-06-27 Richard Guenther <rguenther@suse.de>
10658
10659 PR tree-optimization/36400
10660 PR tree-optimization/36373
10661 PR tree-optimization/36344
10662 * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
10663 var_nonlocal, nonlocal_tree, nonlocal_id): New globals
10664 (update_alias_info): Remove call clobbering code.
10665 (make_constraint_to): New helper function.
10666 (make_escape_constraint): Likewise.
10667 (handle_rhs_call): Use it on all pointer containing arguments.
10668 Also mark the static chain escaped.
10669 (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
10670 instead of ANYTHING.
10671 (make_constraint_from): New helper split out from ...
10672 (make_constraint_from_anything): ... here.
10673 (find_func_aliases): Add constraints for escape sites.
10674 (intra_create_variable_infos): Make constraints from NONLOCAL
10675 for parameters.
10676 (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
10677 as ANYTHING.
10678 (clobber_what_p_points_to): Remove.
10679 (clobber_what_escaped): New function.
10680 (init_base_vars): Init NONLOCAL and ESCAPED.
10681 (do_sd_constraint): Do not propagate the solution from ESCAPED
10682 but use ESCAPED as a placeholder.
10683 (solve_graph): Likewise.
10684 * tree-flow.h (clobber_what_p_points_to): Remove.
10685 (clobber_what_escaped): Declare.
10686 * tree-ssa-alias.c (set_initial_properties): Call it.
10687 Remove code clobbering escaped pointers.
10688
10689 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
10690
10691 * function.c (allocate_struct_function): Only allocate a unique
10692 funcdef_no if the decl is nonzero.
10693
10694 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
10695
10696 * config/mips/mips-protos.h (mips_split_const_insns): Declare.
10697 * config/mips/mips.c (mips_split_const_insns): New function.
10698 * config/mips/mips.md (move_type): New attribute.
10699 (mode): Move attribute definition earlier in file. Add "TI" and "TF".
10700 (dword_mode): New attribute.
10701 (type): Avoid long line. Map "move_type"s to "type"s,
10702 choosing "multi" for doubleword moves if appropriate.
10703 Swap MTC/MFC comments to match their declaration order.
10704 (extended_mips16): Default to "yes" if "move_type" is "sll0",
10705 "type" is "branch" or "jal" is "direct".
10706 (length): Handle "extended_mips16" first. Make the default
10707 "0" for "ghost" instructions. Set the length from "move_type".
10708 (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
10709 of "type", with "sll0" for the register alternative. Remove the
10710 "extended_mips16" attribute.
10711 (zero_extendsidi2, *clear_upper32): Use "move_type" instead
10712 of "type", with "shift_shift" for the register alternative.
10713 Remove the "length" attribute.
10714 (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
10715 (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
10716 of "type", with "andi" for the register alternative.
10717 (*zero_extendqihi2): Likewise.
10718 (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
10719 of "andi" instead of a "type" of "arith".
10720 (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
10721 instead of "type".
10722 (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
10723 (mov_<store>r, *mov<mode>_ra): Likewise.
10724 (extendsidi2): Use "move_type" instead of "type", with "move"
10725 for the register alternative.
10726 (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
10727 of "type", with "signext" for the register alternative.
10728 (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
10729 (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
10730 (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
10731 (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
10732 (floatdisf2, *branch_equality<mode>_mips16): Likewise.
10733 (unnamed branch insn): Likewise.
10734 (*movdi_gp32_fp64): Fold into...
10735 (*movdi_32bit): ...here.
10736 (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
10737 (*movdf_hardfloat): ...this new pattern.
10738 (*movdf_softfloat): Remove redundant FPR alternatives.
10739 (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
10740 (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
10741 (*movv2sf): ...this new pattern. Use "DF" rather than "SF" for
10742 the "move" attribute.
10743 (*movdi_32bit): Use "move_type" instead of "type" and remove the
10744 "length" attribute. Use "fpload" and "fpstore" instead of "load"
10745 and "store" for COP loads and stores.
10746 (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
10747 (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
10748 (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
10749 (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
10750 (*movtf_mips16, *movv2sf): Likewise.
10751 (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
10752 (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
10753 (mfhc1<mode>): Use "move_type" instead of "move".
10754 (*low<mode>_mips16): Use "extended_mips16" instead of "length".
10755 (loadgp_blockage): Remove the "length" attribute.
10756 (blockage, set_got_version, update_got_version): Likewise.
10757 (call_internal): Remove the "extended_mips16" attribute.
10758 (call_value_internal, call_value_multiple_internal): Likewise.
10759 * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
10760 instead of "move".
10761 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
10762 the "length" attribute.
10763
10764 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10765
10766 * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
10767 -Wcast-qual warnings.
10768 * c-pragma.c (dpm_eq, handle_pragma_push_macro,
10769 handle_pragma_pop_macro): Likewise.
10770 * collect2.c (resolve_lib_name): Likewise.
10771 * config/arc/arc.c (arc_init): Likewise.
10772 * config/arm/arm.c (neon_builtin_compare,
10773 locate_neon_builtin_icode): Likewise.
10774 * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
10775 * config/bfin/bfin.c (bfin_init_machine_status,
10776 bfin_optimize_loop): Likewise.
10777 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
10778 * config/cris/cris.c (cris_init_expanders): Likewise.
10779 * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
10780 * config/darwin.c (machopic_indirection_eq,
10781 machopic_indirection_name, machopic_output_indirection): Likewise.
10782 * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
10783 frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
10784 frv_optimize_membar): Likewise.
10785 * config/i386/cygwin.h (mingw_scan,
10786 GCC_DRIVER_HOST_INITIALIZATION): Likewise.
10787 * config/i386/cygwin1.c (mingw_scan): Likewise.
10788 * config/i386/i386.c (machopic_output_stub): Likewise.
10789 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
10790 i386_pe_unique_section): Likewise.
10791 * config/ia64/ia64.c (ia64_init_machine_status,
10792 ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
10793 Likewise.
10794 * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
10795 * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
10796 * config/m68k/m68k.c (m68k_handle_option,
10797 m68k_sched_md_init_global): Likewise.
10798 * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
10799 mcore_unique_section): Likewise.
10800 * config/mips/mips.c (mips_block_move_straight,
10801 mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
10802 Likewise.
10803 * config/mmix/mmix.c (mmix_init_machine_status,
10804 mmix_encode_section_info): Likewise.
10805 * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
10806 * config/rs6000/rs6000.c (rs6000_init_machine_status,
10807 print_operand_address, output_toc, redefine_groups,
10808 rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
10809 * config/s390/s390.c (s390_init_machine_status): Likewise.
10810 * config/score/score.c (score_block_move_straight,
10811 score_block_move_loop_body): Likewise.
10812 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
10813 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
10814 * emit-rtl.c (find_auto_inc): Likewise.
10815 * gcc.c (translate_options, process_command): Likewise.
10816 * reorg.c (dbr_schedule): Likewise.
10817 * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
10818 * xcoffout.c (xcoffout_declare_function): Likewise.
10819
10820 2008-06-27 Daniel Berlin <dberlin@dberlin.org>
10821
10822 * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
10823 ipa-pta working again.
10824
10825 2008-06-27 David Edelsohn <edelsohn@gnu.org>
10826
10827 * config/rs6000/t-aix52: Append large data option to LDFLAGS for
10828 genautomata.
10829
10830 2008-06-27 Edmar Wienskoski <edmar@freescale.com>
10831
10832 * config.gcc (powerpc*-*-*): Add new core e500mc.
10833 * config/rs6000/e500mc.md: New file.
10834 * config/rs6000/rs6000.c (processor_costs): Add new costs for
10835 e500mc.
10836 (rs6000_override_options): Add e500mc case to
10837 processor_target_table. Altivec and Spe options not allowed
10838 with e500mc. Add isel instruction to e500mc by
10839 default. Initialize rs6000_cost for e500mc.
10840 (rs6000_issue_rate): Set issue rate for e500mc.
10841 * config/rs6000/rs6000.h (processor_type): Add
10842 PROCESSOR_PPCE500MC.
10843 (ASM_CPU_SPEC): Add e500mc.
10844 Set TARGET_ISEL to rs6000_isel.
10845 * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
10846 (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
10847 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
10848 Include e500mc.md.
10849 * doc/invoke.texi: Add e500mc to list of cpus.
10850
10851 2008-06-27 Laurynas Biveinis <laurynas.biveinis@gmail.com>
10852
10853 PR c/34867
10854 * c-lex.c (lex_charconst): Initialize unsignedp.
10855
10856 2008-06-27 Olivier Hainque <hainque@adacore.com>
10857
10858 * gimplify.c (gimplify_modify_expr_to_memset): Assert our
10859 documented assumptions.
10860
10861 2008-06-26 H.J. Lu <hongjiu.lu@intel.com>
10862
10863 * dwarf2out.c: Remove trailing white spaces. Break long line
10864 in comments.
10865
10866 2008-06-26 Richard Sandiford <rdsandiford@googlemail.com>
10867
10868 * libfuncs.h (LTI_synchronize): New libfunc_index.
10869 (synchronize_libfunc): Declare.
10870 * builtins.c (expand_builtin_synchronize): Consider using
10871 synchronize_libfunc before falling back on an asm blockage.
10872 * config/mips/mips.c: Include libfuncs.h
10873 (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
10874
10875 2008-06-26 Nathan Froyd <froydnj@codesourcery.com>
10876
10877 * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
10878 parameter. Copy stack_reg to r11 where appropriate.
10879 (no_global_regs_above): Add gpr parameter.
10880 (rs6000_stack_info): Only add padding for SPE save area if we
10881 are saving SPE GPRs and CR.
10882 (saveres_routine_syms): New variable.
10883 (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
10884 Define.
10885 (rs6000_savres_routine_sym): New function.
10886 (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
10887 split out of...
10888 (rs6000_emit_epilogue): ...here. Use rs6000_use_multiple_p and
10889 rs6000_savres_strategy. Restore GPRs out-of-line if appropriate.
10890 Tweak FPR out-of-line saving.
10891 (rs6000_make_savres_rtx): New function.
10892 (rs6000_use_multiple_p): New function.
10893 (rs6000_savres_strategy): New function.
10894 (rs6000_emit_prologue): Use rs6000_savres_strategy. Save GPRs
10895 out-of-line if appropriate.
10896 * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
10897 if we are optimizing for size.
10898 (GP_SAVE_INLINE): Define.
10899 (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
10900 * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
10901 * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
10902 * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
10903 (*save_fpregs_<mode>): Add use of r11.
10904 (*restore_gpregs_<mode>): New insn.
10905 (*return_and_restore_gpregs_<mode>): New insn.
10906 (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
10907 use r11.
10908 * config/rs6000/spe.md (*save_gpregs_spe): New insn.
10909 (*restore_gpregs_spe): New insn.
10910 (*return_and_restore_gpregs_spe): New insn.
10911 * config/rs6000/predicates.md (save_world_operation): Fix check.
10912
10913 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
10914
10915 * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
10916 this point, so assert that.
10917
10918 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
10919
10920 * cfganal.c: Include vec.h and vecprim.h.
10921 (compute_idf): Import from...
10922 * tree-into-ssa (compute_idf): ...here.
10923 * basic-block.h (compute_idf): Export.
10924
10925 2008-06-26 Joseph Myers <joseph@codesourcery.com>
10926
10927 * c-decl.c (merge_decls): Use !current_function_decl to check for
10928 extern declaration of C99 inline function being at file scope.
10929
10930 2008-06-25 John David Anglin <dave.anglin@gcc-cnrc.gc.ca>
10931
10932 * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
10933
10934 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10935
10936 * alias.c (record_alias_subset, init_alias_analysis): Fix
10937 -Wc++-compat and/or -Wcast-qual warnings.
10938 * attribs.c (lookup_attribute_spec): Likewise.
10939 * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
10940 copy_bb, connect_traces,
10941 find_rarely_executed_basic_blocks_and_cr): Likewise.
10942 * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
10943 note_btr_set, migrate_btr_defs): Likewise.
10944 * builtins.c (result_vector, expand_builtin_memcpy,
10945 expand_builtin_mempcpy_args, expand_builtin_strncpy,
10946 builtin_memset_read_str, expand_builtin_printf,
10947 fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
10948 Likewise.
10949 * caller-save.c (mark_set_regs): Likewise.
10950 * calls.c (expand_call, emit_library_call_value_1): Likewise.
10951 * cgraph.c (cgraph_edge): Likewise.
10952 * combine.c (likely_spilled_retval_1): Likewise.
10953 * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
10954 htab_counts_entry_del, get_coverage_counts): Likewise.
10955 * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
10956 new_cselib_val): Likewise.
10957 * dbgcnt.c (dbg_cnt_process_opt): Likewise.
10958 * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
10959 Likewise.
10960 * df-core.c (df_compact_blocks): Likewise.
10961 * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
10962 * df-scan.c (df_grow_reg_info, df_ref_create,
10963 df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
10964 df_ref_compare, df_ref_create_structure, df_bb_refs_record,
10965 df_record_entry_block_defs, df_record_exit_block_uses,
10966 df_bb_verify): Likewise.
10967 * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
10968 DF_REF_EXTRACT_MODE_CONST): New.
10969 * dominance.c (get_immediate_dominator, get_dominated_by,
10970 nearest_common_dominator, root_of_dom_tree,
10971 iterate_fix_dominators, first_dom_son, next_dom_son): Fix
10972 -Wc++-compat and/or -Wcast-qual warnings.
10973 * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
10974 record_store, replace_read, check_mem_read_rtx, scan_insn,
10975 dse_step1, dse_record_singleton_alias_set): Likewise.
10976 * dwarf2asm.c (dw2_force_const_mem): Likewise.
10977
10978 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10979
10980 * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
10981 dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
10982 lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
10983 assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
10984 build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
10985 add_ranges_num, add_ranges_by_labels, file_info_cmp,
10986 file_name_acquire, output_file_names, add_const_value_attribute,
10987 premark_used_types_helper, file_table_eq, file_table_hash,
10988 lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
10989 dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
10990 -Wcast-qual warnings.
10991 * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
10992 ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
10993 * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
10994 gen_reg_rtx, start_sequence, init_emit): Likewise.
10995 * et-forest.c (et_new_occ, et_new_tree): Likewise.
10996 * except.c (init_eh_for_function, gen_eh_region,
10997 remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
10998 arh_to_landing_pad, arh_to_label, add_action_record,
10999 add_call_site, switch_to_exception_section): Likewise.
11000 * expmed.c (synth_mult): Likewise.
11001 * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
11002 store_expr): Likewise.
11003 * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
11004 Likewise.
11005 * function.c (assign_stack_temp_for_type,
11006 allocate_struct_function, match_asm_constraints_1): Likewise.
11007 * gcov-io.c (gcov_allocate): Likewise.
11008 * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
11009 GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
11010 (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
11011 record_one_set, insert_expr_in_table, insert_set_in_table,
11012 dump_hash_table, compute_hash_table_work, alloc_hash_table,
11013 pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
11014 reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
11015 -Wcast-qual warnings.
11016
11017 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11018
11019 * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
11020 -Wcast-qual warnings.
11021 * gcc.c (process_command): Likewise.
11022 * genattrtab.c (oballoc): Use XOBNEW.
11023 (oballocvec): Define.
11024 (attr_hash_add_rtx, attr_hash_add_string, attr_string,
11025 get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
11026 gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
11027 -Wc++-compat and/or -Wcast-qual warnings.
11028 * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
11029 XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
11030 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
11031 gen_presence_absence_set, gen_automaton, gen_regexp_el,
11032 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
11033 gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
11034 add_excls, process_presence_absence_names,
11035 process_presence_absence_patterns, add_presence_absence,
11036 process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
11037 get_free_state, add_arc, get_free_automata_list_el,
11038 form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
11039 transform_3, cache_presence, create_ainsns, create_automata,
11040 create_state_ainsn_table, dfa_insn_code_enlarge,
11041 output_trans_func, output_min_issue_delay_func,
11042 output_dead_lock_func, output_reset_func,
11043 output_get_cpu_unit_code_func, output_dfa_start_func,
11044 expand_automata): Likewise.
11045 * genextract.c (gen_insn): Likewise.
11046 * gengtype-lex.l: Likewise.
11047 * gengtype.c (read_input_list, adjust_field_type,
11048 process_gc_options): Likewise.
11049 * genoutput.c (note_constraint): Likewise.
11050 * genpreds.c (mangle, add_constraint): Likewise.
11051 * genrecog.c (process_define_predicate, new_decision,
11052 add_to_sequence): Likewise.
11053 * gensupport.c (record_insn_name): Likewise.
11054
11055 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11056
11057 * config/i386/driver-i386.c (detect_caches_amd,
11058 detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
11059 and/or -Wcast-qual warnings.
11060 *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
11061 gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
11062 gt_pch_save): Likewise.
11063 * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
11064 gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
11065 * global.c (compute_regsets): Likewise.
11066 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
11067 finish_graph_dump_file): Likewise.
11068 * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
11069 unlink_bb_notes): Likewise.
11070 * integrate.c (get_hard_reg_initial_val): Likewise.
11071 * ipa-prop.c (ipa_push_func_to_list): Likewise.
11072 * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
11073 * local-alloc.c (update_equiv_regs): Likewise.
11074 * loop-invariant.c (check_invariant_table_size,
11075 hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
11076 Likewise.
11077 * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
11078 altered_reg_used, mark_altered): Likewise.
11079 * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
11080 insert_var_expansion_initialization,
11081 combine_var_copies_in_loop_exit, apply_opt_in_copies,
11082 release_var_copies): Likewise.
11083 * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
11084 analyze_matrix_decl, add_allocation_site, analyze_transpose,
11085 analyze_accesses_for_phi_node, check_var_notmodified_p,
11086 check_allocation_function, find_sites_in_func,
11087 record_all_accesses_in_func, transform_access_sites,
11088 transform_allocation_sites): Likewise.
11089 * omp-low.c (new_omp_region, create_omp_child_function_name,
11090 check_omp_nesting_restrictions, check_combined_parallel,
11091 lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
11092 * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
11093 gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
11094 gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
11095 Likewise.
11096 * opts-common.c (prune_options): Likewise.
11097 * opts.c (add_input_filename, print_filtered_help,
11098 get_option_state): Likewise.
11099 * params.c (add_params): Likewise.
11100 * passes.c (set_pass_for_id, next_pass_1,
11101 do_per_function_toporder, pass_fini_dump_file): Likewise.
11102 * postreload.c (reload_cse_simplify_operands): Likewise.
11103 * predict.c (tree_predicted_by_p, tree_predict_edge,
11104 clear_bb_predictions, combine_predictions_for_bb): Likewise.
11105
11106 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11107
11108 * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
11109 warnings.
11110 * recog.c (check_asm_operands, validate_change_1): Likewise.
11111 * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
11112 subst_asm_stack_regs): Likewise.
11113 * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
11114 cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
11115 * regmove.c (reg_is_remote_constant_p): Likewise.
11116 * regrename.c (regrename_optimize, scan_rtx_reg,
11117 kill_clobbered_value, kill_set_value, kill_autoinc_value):
11118 Likewise.
11119 * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
11120 regstat_compute_calls_crossed): Likewise.
11121 * reload1.c (init_reload, new_insn_chain,
11122 has_nonexceptional_receiver, reload, copy_reloads,
11123 calculate_needs_all_insns, init_elim_table): Likewise.
11124 * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
11125 * rtl.c (shallow_copy_rtx_stat): Likewise.
11126 * rtlanal.c (parms_set): Likewise.
11127 * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
11128 sbitmap_resize, sbitmap_vector_alloc): Likewise.
11129 * sched-ebb.c (earliest_block_with_similiar_load,
11130 add_deps_for_risky_insns): Likewise.
11131 * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
11132 schedule_region): Likewise.
11133 * see.c (eq_descriptor_pre_extension,
11134 hash_descriptor_pre_extension, hash_del_pre_extension,
11135 eq_descriptor_properties, hash_descriptor_properties,
11136 hash_del_properties, see_seek_pre_extension_expr,
11137 see_initialize_data_structures, see_print_register_properties,
11138 see_print_pre_extension_expr, see_delete_merged_def_extension,
11139 see_delete_unmerged_def_extension, see_emit_use_extension,
11140 see_pre_delete_extension, see_map_extension, see_commit_changes,
11141 see_analyze_merged_def_local_prop,
11142 see_analyze_merged_def_local_prop,
11143 see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
11144 see_set_prop_merged_def, see_set_prop_unmerged_def,
11145 see_set_prop_unmerged_use, see_print_one_extension,
11146 see_merge_one_use_extension, see_merge_one_def_extension,
11147 see_store_reference_and_extension, see_update_uses_relevancy,
11148 see_update_defs_relevancy): Likewise.
11149 * statistics.c (hash_statistics_hash, hash_statistics_eq,
11150 hash_statistics_free, curr_statistics_hash): Likewise.
11151 * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
11152 expand_asm_operands, expand_return, case_bit_test_cmp,
11153 expand_case): Likewise.
11154 * stor-layout.c (start_record_layout): Likewise.
11155 * stringpool.c (ggc_alloc_string, gt_pch_n_S,
11156 gt_pch_save_stringpool): Likewise.
11157 * tree-data-ref.c (hash_stmt_vertex_info,
11158 have_similar_memory_accesses_1, ref_base_address_1): Likewise.
11159 * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
11160
11161 2008-06-25 Uros Bizjak <ubizjak@gmail.com>
11162
11163 PR target/36627
11164 * config/i386/i386.md : Change constraints of HImode and QImode
11165 immediate operands from "i" to "n". Change SImode "ni" constraint to
11166 "i" and SImode "rmi" constraint to "g". Remove all constraints
11167 from const0_operand and const1_operand predicated operands.
11168 (i): Change QImode and HImode attribute from "i" to "n".
11169 (*subqi_2): Change HImode operands to QImode.
11170 (*subqi_3): Ditto.
11171
11172 2008-06-25 Olivier Hainque <hainque@adacore.com>
11173
11174 * Makefile.in (GTFILES_H): Use | instead of ; as separator in
11175 sed substitutions.
11176
11177 2008-06-25 Richard Guenther <rguenther@suse.de>
11178
11179 * tree-ssa-structalias.c (fieldoff_compare): Make sure to
11180 not overflow the result type.
11181
11182 2008-06-25 Richard Guenther <rguenther@suse.de>
11183
11184 * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
11185 (vn_lookup): Likewise.
11186
11187 2008-06-25 Richard Guenther <rguenther@suse.de>
11188
11189 PR tree-optimization/35518
11190 * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
11191 * tree-sra.c (instantiate_element): Use fold_build3 to build
11192 BIT_FIELD_REFs.
11193 (try_instantiate_multiple_fields): Likewise.
11194
11195 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
11196
11197 * config/rs6000/rs6000.md: Change all string instruction's clobber to
11198 be early clobbers.
11199
11200 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
11201
11202 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
11203 use_backchain_to_restore_sp to true
11204 if the offset of the link register save area would go over the 32k - 1
11205 offset limit of the load
11206 instructions.
11207
11208 2008-06-25 Hans-Peter Nilsson <hp@axis.com>
11209
11210 * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
11211 anchor for the type-punning blurb. Cross-reference "Structures
11212 unions enumerations and bit-fields implementation". Provide a
11213 cast-through-pointer example. Make final sentence self-contained.
11214 * doc/implement-c.texi (Structures unions enumerations and
11215 bit-fields implementation): Cross-reference the type-punning blurb
11216 in the -fstrict-aliasing documentation.
11217
11218 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
11219
11220 PR middle-end/36594
11221 * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
11222 the memory instead of the memory itself for the save area.
11223
11224 2008-06-24 Olivier Hainque <hainque@adacore.com>
11225 Nicolas Roche <roche@adacore.com>
11226
11227 * gengtype.c (srcdir_len): size_t instead of int.
11228 (get_file_realbasename): New function. For F a filename, the real
11229 basename of F, with all the path components stripped.
11230 (get_file_srcdir_relative_path): New function. For F a filename, the
11231 relative path to F from $(srcdir).
11232 (get_file_basename): Rewrite using get_file_srcdir_relative_path and
11233 get_file_realbasename. Adjust the head comment.
11234 (get_prefix_langdir_index): New function. For F a filename, return the
11235 lang_dir_names[] relative index of the language directory that is
11236 a prefix in F.
11237 (get_file_langdir): For F a filename, return the name of the language
11238 directory where F is located.
11239 (get_file_gtfilename): New function. The gt- output file name for an
11240 input filename F.
11241 (get_output_file_with_visibility): Replace in-line computations with
11242 uses of get_file_gtfilename and get_prefix_langdir_index.
11243 * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
11244
11245 2008-06-24 Jakub Jelinek <jakub@redhat.com>
11246
11247 PR tree-optimization/36504
11248 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
11249 references without base address.
11250
11251 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
11252
11253 PR middle-end/36584
11254 * calls.c (expand_call): Increase alignment for recursive functions.
11255
11256 2008-06-23 Anatoly Sokolov <aesok@post.ru>
11257
11258 * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
11259 (TARGET_FUNCTION_VALUE): New define.
11260 * config/avr/avr-protos.h (avr_function_value): Remove declaration.
11261 * config/avr/avr.h (FUNCTION_VALUE): Remove.
11262
11263 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
11264
11265 * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
11266 (fmod<mode>3): Ditto.
11267 (remainderxf3): Ditto.
11268 (remainder<mode>3): Ditto.
11269
11270 2008-06-23 Jakub Jelinek <jakub@redhat.com>
11271
11272 PR target/36533
11273 * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
11274 REG is a hard register.
11275
11276 PR tree-optimization/36508
11277 * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
11278 499, don't check it at all in release compilers.
11279
11280 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
11281
11282 * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
11283 together with SSE_TARGET_MATH to disable insn pattern.
11284 (*fop_<MODEF:mode>_2_i387): Ditto.
11285 (*fop_<MODEF:mode>_3_i387): Ditto.
11286
11287 2008-06-22 Andy Hutchinson <hutchinsonandy@aim.com>
11288
11289 * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
11290
11291 2008-06-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11292
11293 PR middle-end/34906
11294 * gimplify.c (gimplify_asm_expr): Check the return code of
11295 parse_output_constraint call, set function return and is_inout
11296 value if it failed.
11297
11298 2008-06-22 Ian Lance Taylor <iant@google.com>
11299
11300 * c-lex.c (narrowest_unsigned_type): Change itk to int.
11301 (narrowest_signed_type): Likewise.
11302 * c-typeck.c (c_common_type): Change local variable mclass to enum
11303 mode_class, twice.
11304 (parser_build_binary_op): Compare the TREE_CODE_CLASS with
11305 tcc_comparison, not the tree code itself.
11306 * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
11307 (c_expand_expr): Cast modifier to enum expand_modifier.
11308 * c-common.h (C_RID_CODE): Add casts.
11309 (C_SET_RID_CODE): Define.
11310 * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
11311 (c_lex_one_token): Add cast to avoid warning.
11312 (c_parser_objc_type_name): Rename local typename to type_name.
11313 (check_no_duplicate_clause): Change code parameter to enum
11314 omp_clause_code.
11315 (c_parser_omp_var_list_parens): Change kind parameter to enum
11316 omp_clause_code.
11317 (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
11318 c_parser_omp_list_var_parens.
11319 (c_parser_omp_threadprivate): Likewise.
11320 * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
11321 * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
11322 * c-format.c (NO_FMT): Define.
11323 (printf_length_specs): Use NO_FMT.
11324 (asm_fprintf_length_specs): Likewise.
11325 (gcc_diag_length_specs): Likewise.
11326 (scanf_length_specs): Likewise.
11327 (strfmon_length_specs): Likewise.
11328 (gcc_gfc_length_specs): Likewise.
11329 (printf_flag_specs): Change 0 to STD_C89.
11330 (asm_fprintf_flag_specs): Likewise.
11331 (gcc_diag_flag_specs): Likewise.
11332 (gcc_cxxdiag_flag_specs): Likewise.
11333 (scanf_flag_specs): Likewise.
11334 (strftime_flag_specs): Likewise.
11335 (strfmon_flag_specs): Likewise.
11336 (print_char_table): Likewise.
11337 (asm_fprintf_char_table): Likewise.
11338 (gcc_diag_char_table): Likewise.
11339 (gcc_tdiag_char_table): Likewise.
11340 (gcc_cdiag_char_table): Likewise.
11341 (gcc_cxxdiag_char_table): Likewise.
11342 (gcc_gfc_char_table): Likewise.
11343 (scan_char_table): Likewise.
11344 (time_char_table): Likewis.
11345 (monetary_char_table): Likewise.
11346 * c-format.h (BADLEN): Likewise.
11347
11348 2008-06-21 Ian Lance Taylor <iant@google.com>
11349
11350 * tree.h (enum tree_code): Include all-tree.def, not tree.def.
11351 Define END_OF_BASE_TREE_CODES around inclusion.
11352 * tree.c (tree_code_type): New global array.
11353 (tree_code_length, tree_code_name): Likewise.
11354 * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
11355 $(lang_tree_files).
11356 (all-tree.def, s-alltree): New targets.
11357 (gencheck.h, s-gencheck): Remove.
11358 (tree.o): Depend upon all-tree.def.
11359 (build/gencheck.o): Remove gencheck.h dependency.
11360 (mostlyclean): Don't remove gencheck.h.
11361 * c-common.h (enum c_tree_code): Remove.
11362 * c-lang.c (tree_code_type): Remove.
11363 (tree_code_length, tree_code_name): Remove.
11364 * gencheck.c (tree_codes): Include all-tree.def, rather than
11365 tree.def, c-common.def, and gencheck.h. Undefined DEFTREECODE
11366 after it is used.
11367 * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
11368 than tree.def.
11369 * cp/cp-tree.h (enum cplus_tree_code): Remove.
11370 (operator_name_info): Size to MAX_TREE_CODES.
11371 (assignment_operator_name_info): Likewise.
11372 * cp/cp-lang.c (tree_code_type): Remove.
11373 (tree_code_length, tree_code_name): Remove.
11374 * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
11375 (assignment_operator_name_info): Likewise.
11376 * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
11377 MAX_TREE_CODES.
11378 * cp/mangle.c (write_expression): Likewise.
11379 * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
11380 * fortran/f95-lang.c (tree_code_type): Remove.
11381 (tree_code_length, tree_code_name): Remove.
11382 * java/java-tree.h (enum java_tree_code): Remove.
11383 * java/lang.c (tree_code_type): Remove.
11384 (tree_code_length, tree_code_name): Remove.
11385 * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
11386 * objc/objc-act.h (enum objc_tree_code): Remove.
11387 * objc/objc-lang.c (tree_code_type): Remove.
11388 (tree_code_length, tree_code_name): Remove.
11389 * objcp/objcp-lang.c (tree_code_type): Remove.
11390 (tree_code_length, tree_code_name): Remove.
11391 * ada/ada-tree.h (enum gnat_tree_code): Remove.
11392 * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
11393 * ada/misc.c (tree_code_type): Remove.
11394 (tree_code_length, tree_code_name): Remove.
11395
11396 2008-06-21 Bernhard Fischer <aldot@gcc.gnu.org>
11397
11398 * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
11399 the grand_bitmap_obstack.
11400
11401 2008-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11402
11403 * ggc.h (GGC_RESIZEVAR): New, reorder macros.
11404 * tracer.c (tail_duplicate): Fix for -Wc++-compat.
11405 * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
11406 * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
11407 move_stmt_r, new_label_mapper): Likewise.
11408 * tree-complex.c (cvc_lookup): Likewise.
11409 * tree-dfa.c (create_function_ann): Likewise.
11410 * tree-dump.c (dump_register): Likewise.
11411 * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
11412 find_phi_replacement_condition): Likewise.
11413 * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
11414 tree_function_versioning): Likewise.
11415 * tree-into-ssa.c (cmp_dfsnum): Likewise.
11416 * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
11417 * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
11418 get_nonlocal_debug_decl, convert_nonlocal_reference,
11419 convert_nonlocal_omp_clauses, get_local_debug_decl,
11420 convert_local_reference, convert_local_omp_clauses,
11421 convert_nl_goto_reference, convert_nl_goto_receiver,
11422 convert_tramp_reference, convert_call_expr): Likewise.
11423 * tree-outof-ssa.c (contains_tree_r): Likewise.
11424 * tree-parloops.c (reduction_phi, initialize_reductions,
11425 eliminate_local_variables_1, add_field_for_reduction,
11426 add_field_for_name, create_phi_for_local_result,
11427 create_call_for_reduction_1, create_loads_for_reductions,
11428 create_stores_for_reduction, create_loads_and_stores_for_name):
11429 Likewise.
11430 * tree-phinodes.c (allocate_phi_node): Likewise.
11431 * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
11432 * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
11433 * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
11434 * tree-ssa-coalesce.c (compare_pairs): Likewise.
11435 * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
11436 memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
11437 record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
11438 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
11439 * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
11440 vn_nary_op_insert): Likewise.
11441 * tree-ssa.c (redirect_edge_var_map_add,
11442 redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
11443 * tree-vectorizer.c (vectorize_loops): Likewise.
11444 * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
11445 build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
11446 tree_cons_stat, build1_stat, build_variant_type_copy,
11447 decl_init_priority_lookup, decl_fini_priority_lookup,
11448 decl_priority_info, decl_restrict_base_lookup,
11449 decl_restrict_base_insert, decl_debug_expr_lookup,
11450 decl_debug_expr_insert, decl_value_expr_lookup,
11451 decl_value_expr_insert, type_hash_eq, type_hash_lookup,
11452 type_hash_add, get_file_function_name, tree_check_failed,
11453 tree_not_check_failed, tree_range_check_failed,
11454 omp_clause_range_check_failed, build_omp_clause,
11455 build_vl_exp_stat): Likewise.
11456 * value-prof.c (gimple_histogram_value,
11457 gimple_duplicate_stmt_histograms): Likewise.
11458 * var-tracking.c (attrs_list_insert, attrs_list_copy,
11459 unshare_variable, variable_union_info_cmp_pos, variable_union,
11460 dataflow_set_different_1, dataflow_set_different_2,
11461 vt_find_locations, variable_was_changed, set_variable_part,
11462 emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
11463 * varasm.c (prefix_name, emutls_decl, section_entry_eq,
11464 section_entry_hash, object_block_entry_eq,
11465 object_block_entry_hash, create_block_symbol,
11466 initialize_cold_section_name, default_function_rodata_section,
11467 strip_reg_name, set_user_assembler_name, const_desc_eq,
11468 build_constant_desc, output_constant_def, lookup_constant_def,
11469 const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
11470 create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
11471 default_internal_label): Likewise.
11472 * varray.c (varray_init, varray_grow): Likewise.
11473 * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
11474
11475 2008-06-20 Uros Bizjak <ubizjak@gmail.com>
11476
11477 * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
11478 operators for "test" insn. Macroize insn using SWI mode macro.
11479 (*jcc_fused_2): Ditto.
11480 (*jcc_fused_3): Macroize insn using SWI mode macro.
11481 (*jcc_fused_4): Ditto.
11482
11483 2008-06-20 Bernhard Fischer <aldot@gcc.gnu.org>
11484
11485 * tree-ssa-pre.c: Fix typo in comment.
11486 (init_antic, fini_antic): Add explicit funtions for
11487 initializing and deinitializing ANTIC and AVAIL sets.
11488 (create_expression_by_pieces): Fix typo in comment.
11489 Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
11490 (execute_pre): Eventually dump details about ANTIC_IN.
11491
11492 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11493
11494 * collect2.c (main, add_to_list): Fix for -Wc++-compat.
11495 * gcc.c (translate_options, init_spec, store_arg, read_specs,
11496 add_to_obstack, file_at_path, find_a_file, execute,
11497 add_preprocessor_option, add_assembler_option, add_linker_option,
11498 process_command, insert_wrapper, do_option_spec, do_self_spec,
11499 spec_path, do_spec_1, is_directory, main, used_arg,
11500 getenv_spec_function): Likewise.
11501 * tlink.c (symbol_hash_lookup, file_hash_lookup,
11502 demangled_hash_lookup, symbol_push, file_push, frob_extension):
11503 Likewise.
11504
11505 2008-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
11506
11507 * doc/rtl.texi: Updated subreg section.
11508
11509 2008-06-19 Jakub Jelinek <jakub@redhat.com>
11510
11511 PR c++/36523
11512 * cgraphunit.c (cgraph_process_new_functions): Don't clear
11513 node->needed and node->reachable.
11514 * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
11515 * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
11516 (expand_task_call): Don't call expand_task_copyfn.
11517 (expand_task_copyfn): Renamed to...
11518 (finalize_task_copyfn): ... this.
11519
11520 2008-06-19 Jan Hubicka <jh@suse.cz>
11521
11522 * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
11523 clobbering framepointer.
11524
11525 2008-06-19 Jan Hubicka <jh@suse.cz>
11526
11527 * tree-optimize.c (execute_early_local_optimizations): Set
11528 cgraph_state only at first invocation.
11529
11530 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11531
11532 * system.h (-Wc++-compat): Activate as a warning, no an error.
11533
11534 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
11535
11536 * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
11537 instead of "#" in insn asm template.
11538 (*jcc_fused_2): Ditto.
11539
11540 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
11541
11542 * config/i386/i386.h (ix86_tune_indices)
11543 [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
11544 (TARGET_FUSE_CMP_AND_BRANCH): New define.
11545 * config/i386/i386.md (*jcc_fused_1): New insn pattern
11546 (*jcc_fused_2): Ditto.
11547 * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
11548 X86_TUNE_FUSE_CMP_AND_BRANCH targets.
11549 (print operand): Handle 'E' and 'e' code.
11550
11551 2008-06-19 Anatoly Sokolov <aesok@post.ru>
11552
11553 * config/avr/avr.c (avr_mcu_t): Add attiny13a.
11554 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
11555 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
11556
11557 2008-06-19 Bernhard Fischer <aldot@gcc.gnu.org>
11558
11559 * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
11560 node->decl.
11561 (cgraph_expand_function): Use local copy of decl.
11562 (cgraph_expand_all_functions): Remove redundant initialization of
11563 order_pos.
11564 (cgraph_optimize): Reword internal_error message.
11565
11566 2008-06-19 Chung-Lin Tang <ctang@marvell.com>
11567
11568 * arm-protos.h (arm_return_in_memory): Remove public
11569 arm_return_in_memory() prototype.
11570 * arm.c (arm_return_in_memory): Add static prototype, add target
11571 hook macro, change definition and comments.
11572 * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
11573
11574 2008-06-19 Ben Elliston <bje@au.ibm.com>
11575
11576 * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
11577 real.c: Remove references to IEEE 754R.
11578 * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
11579 * doc/libgcc.texi (Decimal float library routines): Likewise.
11580
11581 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11582
11583 * targhooks.h (struct gcc_target): New member unwind_word_mode.
11584 (default_unwind_word_mode): Add prototype.
11585 * targhooks.c (default_unwind_word_mode): New function.
11586 (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
11587 instead of word_mode.
11588 * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
11589 (TARGET_INITIALIZER): Use it.
11590
11591 * c-common.c (handle_mode_attribute): Support "unwind_word"
11592 mode attribute.
11593 * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
11594
11595 * except.c (init_eh): Use targetm.unwind_word_mode () instead of
11596 word_mode to access SjLj_Function_Context member "data".
11597 (sjlj_emit_dispatch_table): Likewise. Also, perform type
11598 conversion from targetm.eh_return_filter_mode () to
11599 targetm.unwind_word_mode () if they differ.
11600
11601 * builtin-types.def (BT_UNWINDWORD): New primitive type.
11602 (BT_FN_UNWINDWORD_PTR): New function type.
11603 (BT_FN_WORD_PTR): Remove.
11604 * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
11605 * except.c (expand_builtin_extend_pointer): Convert pointer to
11606 targetm.unwind_word_mode () instead of word_mode.
11607
11608 * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
11609 * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
11610 (spu_unwind_word_mode): New function.
11611 (TARGET_EH_RETURN_FILTER_MODE): Do not define.
11612 (TARGET_UNWIND_WORD_MODE): Define.
11613 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
11614
11615 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11616
11617 * config/spu/spu.c (reg_align): Remove.
11618 (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
11619 (spu_split_load): Use regno_aligned_for_load instead of reg_align.
11620 (spu_split_store): Likewise.
11621
11622 2008-06-18 Bernhard Fischer <aldot@gcc.gnu.org>
11623
11624 * gcc/tree-vn.c: Fix typo in comment.
11625
11626 2008-06-18 Jan Hubicka <jh@suse.cz>
11627
11628 * cgraphunit.c (cgraph_optimize): Output debug info when doing
11629 toplevel reorder too.
11630
11631 2008-06-18 Jan Hubicka <jh@suse.cz>
11632
11633 * c-opts.c (c_common_post_options): PCH is not compatible with
11634 no-unit-at-a-time.
11635 * opts.c (handle_options): Enable unit-at-a-time at O0 along with
11636 -fno-toplevel-reorder by default now.
11637
11638 2008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11639
11640 PR documentation/30739
11641 * doc/install.texi (Prerequisites): Document dependency on awk.
11642
11643 2008-06-18 Uros Bizjak <ubizjak@gmail.com>
11644 Ian Lance Taylor <iant@google.com>
11645
11646 PR rtl-optimization/35604
11647 * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
11648 only want to change jump destinations, not eventual label comparisons.
11649
11650 2008-06-16 Jan Hubicka <jh@suse.cz>
11651
11652 * cgraphunit.c (cgraph_expand_pending_functions): Give up at
11653 syntax errors.
11654 (cgraph_analyze_function): Likewise.
11655
11656 2008-06-16 Jan Hubicka <jh@suse.cz>
11657
11658 * cgraph.h (cgraph_mark_if_needed): New function.
11659 * cgraphunit.c (cgraph_mark_if_needed): New function.
11660 * c-decl.c (duplicate_decl): Use it.
11661
11662 2008-06-16 Jan Hubicka <jh@suse.cz>
11663
11664 * cgraph.c (cgraph_add_new_function): When in expansion state, do
11665 lowering.
11666
11667 2008-06-16 Jan Hubicka <jh@suse.cz>
11668
11669 * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
11670
11671 2008-06-16 Daniel Jacobowitz <dan@codesourcery.com>
11672 Kazu Hirata <kazu@codesourcery.com>
11673 Maxim Kuvyrkov <maxim@codesourcery.com
11674
11675 * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
11676 * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
11677 * config/mips/linux.h (host_detect_local_cpu): Declare, add to
11678 EXTRA_SPEC_FUNCTIONS.
11679 (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
11680 (DRIVER_SELF_SPECS): Adjust.
11681 * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
11682 * config/mips/st.h, config/mips/t-st: New.
11683 * config/mips/driver-native.c, config/mips/x-native: New.
11684 * doc/invoke.texi (MIPS): Document 'native' value for -march and
11685 -mtune options.
11686
11687 2008-06-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11688
11689 * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
11690 from it.
11691 (ISA_HAS_FP_CONDMOVE): New macro.
11692 (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
11693 (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
11694 (ISA_HAS_NMADD3_NMSUB3): New macro.
11695 * config/mips/mips.c (mips_rtx_costs): Update.
11696 * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
11697 compiling for ST Loongson 2E/2F.
11698 (madd<mode>): Rename to madd4<mode>. Update.
11699 (madd3<mode>): New pattern.
11700 (msub<mode>): Rename to msub4<mode>. Update.
11701 (msub3<mode>): New pattern.
11702 (nmadd<mode>): Rename to nmadd4<mode>. Update.
11703 (nmadd3<mode>): New pattern.
11704 (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath. Update.
11705 (nmadd3<mode>_fastmath): New pattern.
11706 (nmsub<mode>): Rename to nmsub4<mode>. Update.
11707 (nmsub3<mode>): New pattern.
11708 (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath. Update.
11709 (nmsub3<mode>_fastmath): New pattern.
11710 (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
11711
11712 2008-06-18 Steven Bosscher <steven@gcc.gnu.org>
11713
11714 * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
11715 (DF_REF_INSN_INFO): New.
11716 (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
11717 (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
11718 with a NULL DF_REF_INSN_INFO.
11719 (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
11720 DF_INSN_SET.
11721 (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
11722 DF_INSN_INFO_EQ_USES): New.
11723 (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
11724 DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
11725 DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
11726 * df-core.c: Update comment for above changes.
11727 (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
11728 DF_INSN_UID_* macros.
11729 (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
11730 * df-scan.c (df_ref_record): Take a df_insn_info instead of an
11731 insn rtx. Update all callers.
11732 (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
11733 df_ref_create_structure, df_insn_refs_collect): Likewise.
11734 (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
11735 * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
11736 (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
11737 macros to access the insn refs.
11738 (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
11739 * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
11740 (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
11741 for accessing the refs.
11742 (try_fwprop_subst): Likewise.
11743 * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
11744 * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
11745 for accessing the refs.
11746 * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
11747 (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
11748 to look at the insn refs.
11749 (record_uses): Likewise.
11750 * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
11751 function anymore.
11752 (mark_artificial_uses): Don't mark_insn for artificial refs.
11753 (mark_reg_rependencies): Likewise.
11754
11755 * doc/rtl.texi: Remove documentation of ADDRESSOF.
11756
11757 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11758
11759 * configure: Regenerate.
11760
11761 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
11762
11763 * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
11764 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
11765 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11766
11767 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
11768
11769 * config/avr/avr.c (avr_mcu_t): Add attiny167.
11770 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
11771 * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11772
11773 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
11774
11775 * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
11776 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
11777 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11778
11779 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
11780
11781 * tree-ssa-sccvn.c: Fix format of comments.
11782
11783 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
11784
11785 * cgraph.c: Remove unneeded forward declarations of eq_node()
11786 and hash_node().
11787
11788 2008-06-17 Steven Bosscher <steven@gcc.gnu.org>
11789
11790 * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
11791 REG_RETVAL notes.
11792 (see_update_relevancy): Likewise.
11793 * fwprop.c (try_fwprop_subst): Likewise.
11794 * rtlanal.c (noop_move_p): Likewise.
11795 * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
11796 notes to non-existing libcall blocks.
11797 * cse.c (cse_insn): Change prototype. Don't update libcall notes.
11798 Remove orig_set.
11799 (cse_extended_basic_block): Don't track libcall and no-conflict notes.
11800 (dead_libcall_p): Remove.
11801 (delete_trivially_dead_insns): Don't use it.
11802 * web.c (union_defs): Remove comment about keeping nops.
11803 * gcse.c (hash_scan_insn): Don't take libcall pointers.
11804 (compute_hash_table_work): Don't track libcall notes.
11805 (do_local_cprop): Don't take libcall pointers. Don't update
11806 libcall notes.
11807 (adjust_libcall_notes): Deleted.
11808 (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
11809 ever have existed in the first place).
11810 (replace_store_insn): Don't try to remove libcall notes.
11811 * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
11812 (resolve_reg_notes): Don't call them.
11813 (resolve_simple_move): Likewise.
11814 (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
11815 Don't remove REG_RETVAL notes.
11816 * emit-rtl.c (try_split): Don't update libcall notes.
11817 (emit_copy_of_insn_after): Dito.
11818 * cselib.c (cselib_current_insn_in_libcall): Remove.
11819 (cselib_process_insn): Don't set/clear it.
11820 (new_elt_loc_list): Don't record it.
11821 (cselib_init): Don't initialize it.
11822 * cselib.c (struct elt_loc_list): Remove in_libcall field.
11823 * loop-invariant.c (find_invariant_insn): Don't look for libcall
11824 notes.
11825 * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
11826 (sched_analyze): Don't set up deps->libcall_block_tail_insn.
11827 (init_deps): Don't initialize it.
11828 * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
11829 * combine.c (delete_noop_moves): Don't update libcall notes.
11830 (can_combine_p): Remove now pointless #if 0 block.
11831 (try_combine): Remove another obsolete #if 0 block.
11832 (distribute_notes): Don't distribute libcall notes.
11833 * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
11834 * dce.c (libcall_dead_p): Remove.
11835 (delete_unmarked_insns): Don't handle libcall blocks.
11836 (preserve_libcall_for_dce): Remove.
11837 (prescan_insns_for_dce): Don't special-case libcall block insns.
11838 * reload1 (reload): Don't handle libcall notes.
11839 * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
11840 documentation.
11841
11842 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
11843
11844 * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
11845 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
11846 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11847
11848 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
11849
11850 * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
11851 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
11852 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11853
11854 2008-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11855
11856 * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
11857
11858 2008-06-16 Ira Rosen <irar@il.ibm.com>
11859
11860 PR tree-optimization/36493
11861 * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
11862 the arguments list. Use VECTYPE to create vector pointer.
11863 (vectorizable_store): Fail if accesses through a pointer to vectype
11864 do not alias the original memory reference operands.
11865 Call vect_create_data_ref_ptr without the removed argument.
11866 (vectorizable_load): Likewise.
11867 (vect_setup_realignment): Call vect_create_data_ref_ptr without the
11868 removed argument.
11869
11870 2008-06-015 Andy Hutchinson <hutchinsonandy@aim.com>
11871
11872 PR target/36336
11873 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
11874 reg_equiv_constant.
11875
11876 2008-06-15 Maxim Kuvyrkov <maxim@codesourcery.com>
11877
11878 * config/mips/loongson2ef.md: New file.
11879 * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
11880 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
11881 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
11882 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
11883 (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
11884 and loongson_2f.
11885 (loongson2ef.md): New include.
11886 * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
11887 (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
11888 (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
11889 (loongson_gt_<mode>, loongson_extract_halfword)
11890 (loongson_insert_halfword_0, loongson_insert_halfword_2)
11891 (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
11892 (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
11893 (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
11894 (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
11895 (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
11896 (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
11897 (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
11898 (vec_interleave_low<mode>): Define type attribute.
11899 * config/mips/mips.c (mips_ls2): New static variable.
11900 (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
11901 (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
11902 (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
11903 Implement target scheduling hooks.
11904 (mips_multipass_dfa_lookahead): Update to handle tuning for
11905 Loongson 2E/2F.
11906 (mips_sched_init): Initialize data for Loongson scheduling.
11907 (mips_ls2_variable_issue): New static function.
11908 (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
11909 Add sanity check.
11910 (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
11911 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
11912 * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
11913 (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
11914 Handle ST Loongson 2E/2F cores.
11915 (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
11916
11917 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11918
11919 * omp-low.c (extract_omp_for_data): Fix comment typo.
11920 * c.opt: Fix typo.
11921
11922 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11923
11924 * doc/sourcebuild.texi (Config Fragments): Remove obsolete
11925 FIXME note about gcc/config.guess.
11926 * doc/options.texi (Option file format): Remove non-ASCII bytes.
11927 * doc/cpp.texi: Expand TABs, drop indentation outside examples.
11928 * doc/cppopts.texi: Likewise.
11929 * doc/extend.texi: Likewise.
11930 * doc/gcc.texi: Likewise.
11931 * doc/gccint.texi: Likewise.
11932 * doc/gcov.texi: Likewise.
11933 * doc/gty.texi: Likewise.
11934 * doc/hostconfig.texi: Likewise.
11935 * doc/install.texi: Likewise.
11936 * doc/invoke.texi: Likewise.
11937 * doc/loop.texi: Likewise.
11938 * doc/makefile.texi: Likewise.
11939 * doc/md.texi: Likewise.
11940 * doc/passes.texi: Likewise.
11941 * doc/tm.texi: Likewise.
11942 * doc/tree-ssa.texi: Likewise.
11943 * doc/trouble.texi: Likewise.
11944
11945 2008-06-15 Mark Shinwell <shinwell@codesourcery.com>
11946 Nathan Sidwell <nathan@codesourcery.com>
11947 Maxim Kuvyrkov <maxim@codesourcery.com>
11948 Richard Sandiford <rdsandiford@googlemail.com>
11949
11950 * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
11951 * config/mips/mips-protos.h (mips_expand_vector_init): New.
11952 * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
11953 builtins.
11954 * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
11955 (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
11956 (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
11957 V8QImode cases.
11958 (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
11959 (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
11960 (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
11961 (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
11962 (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
11963 (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
11964 (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
11965 (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
11966 (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
11967 (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
11968 (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
11969 (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
11970 (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
11971 (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
11972 (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
11973 (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
11974 (mips_builtins): Add Loongson builtins.
11975 (mips_loongson_2ef_bdesc): New.
11976 (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
11977 (mips_builtin_vector_type): Handle unsigned versions of vector modes.
11978 (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
11979 (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
11980 New.
11981 (mips_expand_vector_init): New.
11982 * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
11983 (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
11984 if appropriate.
11985 * config/mips/mips.md: Add unspec numbers for Loongson
11986 builtins. Include loongson.md.
11987 (MOVE64): Include Loongson vector modes.
11988 (SPLITF): Include Loongson vector modes.
11989 (HALFMODE): Handle Loongson vector modes.
11990 * config/mips/loongson.md: New.
11991 * config/mips/loongson.h: New.
11992 * config.gcc: Add loongson.h header for mips*-*-* targets.
11993 * doc/extend.texi (MIPS Loongson Built-in Functions): New.
11994
11995 2008-06-14 Joseph Myers <joseph@codesourcery.com>
11996
11997 * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
11998 h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
11999 i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
12000 iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
12001 m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
12002 m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
12003 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
12004 mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
12005 mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
12006 mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
12007 powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
12008 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
12009 sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
12010 sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
12011 sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
12012 v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
12013 Remove use_fixproto=yes.
12014 (ia64*-*-hpux*): Remove comment about using fixproto.
12015 (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
12016
12017 2008-06-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12018
12019 * configure.ac: Update gthr-default.h lazily, to avoid unneeded
12020 library rebuilds.
12021 * configure: Regenerate.
12022
12023 2008-06-13 Eric Botcazou <ebotcazou@adacore.com>
12024
12025 PR middle-end/36520
12026 * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
12027 before evaluating it.
12028
12029 2008-06-13 Jakub Jelinek <jakub@redhat.com>
12030
12031 PR c/36507
12032 * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
12033 nested inline functions.
12034 (start_decl, start_function): Don't invert DECL_EXTERNAL
12035 for nested inline functions.
12036
12037 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
12038
12039 * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
12040 splits that must be made for correctness.
12041
12042 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
12043
12044 * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
12045 (AVAIL_NON_MIPS16): Likewise.
12046 (mips_builtin_description): Replace target_flags with a predicate.
12047 (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
12048 (dspr2_32): New availability predicates.
12049 (MIPS_BUILTIN): New macro.
12050 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
12051 (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
12052 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
12053 Replace the TARGET_FLAGS parameters with AVAIL parameters.
12054 (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
12055 (mips_dsp_32only_bdesc): Merge into...
12056 (mips_builtins): ...this new array.
12057 (mips_bdesc_map, mips_bdesc_arrays): Delete.
12058 (mips_init_builtins): Update after above changes.
12059 (mips_expand_builtin_1): Merge into...
12060 (mips_expand_builtin): ...here and update after above changes.
12061
12062 2008-06-12 Paul Brook <paul@codesourcery.com>
12063
12064 * longlong.h (__arm__): Define count_leading_zeros.
12065 * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
12066 (clzsi2, clzdi2): New functions.
12067 * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
12068 * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
12069 * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
12070 * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
12071 * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
12072 * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
12073 * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
12074 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
12075 * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
12076 * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
12077
12078 2008-06-12 Kazu Hirata <kazu@codesourcery.com>
12079
12080 * config/m68k/m68k.c (m68k_tune_flags): New.
12081 (override_options): Compute m68k_tune_flags.
12082 (MULL_COST, MULW_COST): Update for various variants of CFV2.
12083 * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
12084
12085 2008-06-12 Jakub Jelinek <jakub@redhat.com>
12086
12087 PR middle-end/36506
12088 * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
12089
12090 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
12091
12092 * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
12093 TREE_THIS_VOLATILE on INDIRECT_REF nodes.
12094
12095 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
12096
12097 * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
12098 (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
12099
12100 2008-06-12 Jakub Jelinek <jakub@redhat.com>
12101
12102 PR middle-end/36506
12103 * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
12104 reductions.
12105
12106 2008-06-12 Richard Guenther <rguenther@suse.de>
12107
12108 PR tree-optimization/36345
12109 * tree-flow.h (struct ptr_info_def): Align escape_mask,
12110 add memory_tag_needed flag.
12111 (may_alias_p): Declare.
12112 * tree-ssa-alias.c (may_alias_p): Export.
12113 (set_initial_properties): Use memory_tag_needed flag.
12114 (update_reference_counts): Likewise.
12115 (reset_alias_info): Reset memory_tag_needed flag.
12116 (create_name_tags): Check memory_tag_needed flag.
12117 (dump_points_to_info_for): Dump it.
12118 * tree-ssa-structalias.c (struct variable_info): Remove
12119 directly_dereferenced flag.
12120 (new_var_info): Do not initialize it.
12121 (process_constraint_1): Do not set it.
12122 (update_alias_info): Set is_dereferenced flag.
12123 (set_uids_in_ptset): Use may_alias_p.
12124 (set_used_smts): Check memory_tag_needed flag.
12125 (find_what_p_points_to): Likewise. Pass is_dereferenced flag.
12126 * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
12127 memory_tag_needed flag.
12128 * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
12129 from broken design.
12130
12131 2008-06-12 Kai Tietz <kai.tietz@onevision.com>
12132
12133 * config/i386/i386.c (ix86_compute_frame_layout): Disable
12134 red zone for w64 abi.
12135 (ix86_expand_prologue): Likewise.
12136 (ix86_force_to_memory): Likewise.
12137 (ix86_free_from_memory): Likewise.
12138
12139 2008-06-11 Edmar Wienskoski <edmar@freescale.com>
12140
12141 PR target/36425
12142 * config/rs6000/rs6000.c (rs6000_override_options): Set
12143 rs6000_isel conditionally to the absence of comand line override.
12144 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
12145 Remove duplicate rs6000_isel setting.
12146 * config/rs6000/eabispe.h: Ditto.
12147
12148 2008-06-11 Richard Guenther <rguenther@suse.de>
12149
12150 * alias.c (get_alias_set): Use the element alias-set for arrays.
12151 (record_component_aliases): For arrays and vectors do nothing.
12152 * c-common.c (strict_aliasing_warning): Handle the cases
12153 of alias set zero explicitly.
12154 * Makefile.in (dfp.o-warn): Add -Wno-error.
12155
12156 2008-06-11 Joseph Myers <joseph@codesourcery.com>
12157
12158 * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
12159 tune_32 tune_64.
12160 (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
12161 tune_32 tune_64 to supported_defaults. Allow values not
12162 supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
12163 x86_64. Do not override cpu_32 or cpu_64 values from target name.
12164 (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
12165 with_cpu_64 to generic for 64-bit-supporting configurations, not
12166 with_cpu. Remove FIXMEs.
12167 * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
12168 --with-arch-64, --with-tune-32, --with-tune-64): Document.
12169 * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
12170 (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
12171 arch_32 and arch_64.
12172
12173 2008-06-11 Eric Botcazou <ebotcazou@adacore.com>
12174 Olivier Hainque <hainque@adacore.com>
12175
12176 * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
12177 Use DECL_SIZE_UNIT to retrieve the size of the field.
12178
12179 2008-06-11 Joseph Myers <joseph@codesourcery.com>
12180
12181 * config/arm/arm.c (arm_init_neon_builtins): Move initialization
12182 with function calls after declarations. Lay out
12183 neon_float_type_node before further use.
12184
12185 2008-06-11 Richard Guenther <rguenther@suse.de>
12186
12187 * tree-flow.h (may_point_to_global_var): Declare.
12188 * tree-ssa-alias.c (may_point_to_global_var): New function.
12189 * tree-ssa-sink.c (is_hidden_global_store): Use it.
12190
12191 2008-06-10 Kazu Hirata <kazu@codesourcery.com>
12192
12193 * configure.ac: Teach that fido supports .debug_line.
12194 * configure: Regenerate.
12195
12196 2008-06-10 Tom Tromey <tromey@redhat.com>
12197
12198 * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
12199 debug hook.
12200
12201 2008-06-10 Joseph Myers <joseph@codesourcery.com>
12202
12203 * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
12204 (encode_decimal64, decode_decimal64, encode_decimal128,
12205 decode_decimal128): Reverse order of 32-bit parts of value if host
12206 and target endianness differ.
12207
12208 2008-06-10 Vinodha Ramasamy <vinodha@google.com>
12209
12210 * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
12211 Avoid division by 0.
12212 (tree_mod_pow2_value_transform): Likewise.
12213 (tree_ic_transform): Likewise.
12214 (tree_stringops_transform): Likewise.
12215 (tree_mod_subtract_transform): Likewise.
12216 * tree-inline-c (copy_bb): Corrected int type to gcov_type.
12217 (copy_edges_for_bb): Likewise.
12218 (initialize_cfun): Likewise.
12219
12220 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
12221
12222 * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
12223 nonmemory_operand. Add "N" operand constraint.
12224 (*btsi): Ditto.
12225 (*jcc_btdi_mask_rex64): New instruction and split pattern.
12226 (*jcc_btsi_mask): Ditto.
12227 (*jcc_btsi_mask_1): Ditto.
12228
12229 2008-06-10 Joseph Myers <joseph@codesourcery.com>
12230
12231 * config/rs6000/rs6000.c (build_opaque_vector_type): Set
12232 TYPE_CANONICAL for copied element type.
12233
12234 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
12235
12236 PR target/36473
12237 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
12238 Add m_CORE2 and m_GENERIC.
12239 * config/i386/predicates.md (bt_comparison_operator): New predicate.
12240 * config/i386/i386.md (*btdi_rex64): New instruction pattern.
12241 (*btsi): Ditto.
12242 (*jcc_btdi_rex64): New instruction and split pattern.
12243 (*jcc_btsi): Ditto.
12244 (*jcc_btsi_1): Ditto.
12245 (*btsq): Fix Intel asm dialect operand order.
12246 (*btrq): Ditto.
12247 (*btcq): Ditto.
12248
12249 2008-06-09 Andy Hutchinson <hutchinsonandy@aim.com>
12250
12251 PR middle-end/36447
12252 * simplify-rtx.c (simplify_subreg): Add check for shift count
12253 greater than size.
12254
12255 2008-06-09 Richard Sandiford <rdsandiford@googlemail.com>
12256
12257 * doc/md.texi: Synchronize with later constraints.md change.
12258 * longlong.h (umul_ppmm): Replace the MIPS asm implementation
12259 with a C implementation.
12260 * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
12261 MFLO handling.
12262 (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
12263 (mips_split_doubleword_move): Use special MTHI and MFHI instructions
12264 when moving to and from MD_REGNUM.
12265 (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
12266 Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
12267 Handle byte and halfword moves.
12268 (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
12269 separately.
12270 * config/mips/constraints.md (h): Turn into NO_REGS.
12271 (l, x): Update documentation.
12272 * config/mips/mips.md (UNSPEC_MFHILO): Delete.
12273 (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
12274 (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
12275 (HILO): New mode iterator.
12276 (MOVE128): Add TI.
12277 (any_div): New code iterator.
12278 (u): Extend code attribute to div and udiv.
12279 (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
12280 d_operand in the splitters. Remove redundant CONST_INT checks.
12281 (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
12282 (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
12283 (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits
12284 accordingly, using normal moves instead of unspecs to move LO into
12285 a GPR. Use d_operand and lo_operand instead of *_REG_P checks.
12286 (<u>mulsidi3): Handle expansion in C code.
12287 (<u>mulsidi3_32bit_internal): Rename to...
12288 (<u>mulsidi3_32bit): ...this.
12289 (<u>mulsidi3_32bit_r4000): Fix insn separator.
12290 (*<u>mulsidi3_64bit): Rename to...
12291 (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers
12292 into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO
12293 to set LO and HI to the multiplication result. Use a normal move
12294 for MFLO and an unspec for MFHI.
12295 (*<u>mulsidi3_64bit_parts): Replace with...
12296 (<u>mulsidi3_64bit_hilo): ...this new instruction.
12297 (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
12298 (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
12299 and extend it to TARGET_FIX_R4000. Store the destination in a GPR
12300 instead of HI. Split the instruction into a separate multiplication
12301 and MFHI if !TARGET_FIX_R4000.
12302 (<su>muldi3_highpart): Likewise.
12303 (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
12304 and the "=h" clobber.
12305 (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
12306 (<u>mulditi3): New expander.
12307 (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
12308 (madsi): Remove "=h" clobber.
12309 (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
12310 Force the modulus result to be a GPR and split the instruction into
12311 a division followed by an MFHI after reload.
12312 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
12313 (*lea_high64): Use d_operand in the define_peephole2. Likewise
12314 the MIPS16 HIGH define_split.
12315 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
12316 of acc<->gpr moves to "multi".
12317 (*movdi_64bit): Replace the single "x" alternative with
12318 alternatives for moving into and out of "a".
12319 (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move.
12320 (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
12321 (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
12322 Use d_operand in the splitters. Remove redundant CONST_INT checks.
12323 (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move.
12324 (movti): New expander.
12325 (*movti, *movti_mips16): New insns.
12326 (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
12327 (mfhi<GPR:mode>_<HILO:mode>): New pattern.
12328 (mthi<GPR:mode>_<HILO:mode>): Likewise.
12329 * config/mips/predicates.md (fpr_operand): Delete.
12330 (d_operand): New predicate.
12331
12332 2008-06-09 Michael Meissner <michael.meissner@amd.com>
12333
12334 * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
12335 failure on some Bourne shells.
12336 (x86_64-*-*): Ditto.
12337
12338 2008-06-09 Kai Tietz <kai.tietz@onevision.com>
12339
12340 * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
12341
12342 2008-06-09 Eric Botcazou <ebotcazou@libertysurf.fr>
12343
12344 * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
12345 (sparc-sun-solaris2*): Likewise.
12346
12347 2008-06-09 Arnaud Charlet <charlet@adacore.com
12348
12349 * doc/install.texi: Update requirements to build the Ada compiler.
12350
12351 2008-06-08 Steven Bosscher <stevenb.gcc@gmail.com>
12352
12353 * df-scan.c (struct df_scan_problem_data): Remove the
12354 mw_link_pool alloc pool.
12355 (df_scan_free_internal): Don't free it.
12356 (df_scan_alloc): Don't allocate it.
12357 * df.h (struct df_link): Update comment.
12358
12359 2008-06-08 Nathan Sidwell <nathan@codesourcery.com>
12360
12361 * except.h: Correct checks for when SJLJ exceptions must be used.
12362
12363 2008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12364
12365 * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
12366 default.
12367
12368 2008-06-08 Joseph Myers <joseph@codesourcery.com>
12369
12370 PR tree-optimization/36218
12371 * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
12372 configure for the build system.
12373 (BUILD_LDFLAGS): Define.
12374 * configure: Regenerate.
12375 * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
12376
12377 2008-07-08 Anatoly Sokolov <aesok@post.ru>
12378
12379 PR target/36424
12380 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
12381 * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
12382 * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
12383
12384 2008-06-07 Danny Smith <dannysmith@users.sourceforge.net>
12385
12386 * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
12387
12388 2008-06-07 Joseph Myers <joseph@codesourcery.com>
12389
12390 * config.gcc (Obsolete configurations): Remove list of
12391 configurations.
12392 (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
12393 *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
12394 targets matched by those patterns.
12395 (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
12396 m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
12397 alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
12398 arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
12399 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
12400 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
12401 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
12402 i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
12403 i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
12404 mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
12405 powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
12406 powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
12407 strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
12408 vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
12409 i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
12410 Make code for Solaris 7 and greater unconditional for Solaris.
12411 (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
12412 Remove --with-* handling.
12413 * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
12414 (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
12415 ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
12416 LINK_OS_WINDISS_SPEC): Remove.
12417 * config/rs6000/sysv4.opt (mwindiss): Remove.
12418 * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
12419 * configure: Regenerate.
12420 * doc/cpp.texi: Don't mention BeOS.
12421 * doc/extend.texi (interrupt): Don't mention MS1.
12422 * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
12423 m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
12424 alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
12425 i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
12426 powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
12427 Remove.
12428 * doc/invoke.texi (MT Options): Remove.
12429 (-mwindiss): Remove.
12430 (CRIS Options): Remove cris-axis-aout references.
12431 (HPPA Options): Don't mention hppa1.1-*-pro.
12432 * doc/md.texi: (MorphoTech family): Remove.
12433 * libgcc2.c: Don't handle UWIN.
12434 * config/alpha/t-unicosmk: Remove.
12435 * config/alpha/unicosmk.h: Remove.
12436 * config/arm/kaos-arm.h: Remove.
12437 * config/arm/kaos-strongarm.h: Remove.
12438 * config/arm/strongarm-coff.h: Remove.
12439 * config/arm/strongarm-elf.h: Remove.
12440 * config/arm/strongarm-pe.h: Remove.
12441 * config/arm/t-strongarm-pe: Remove.
12442 * config/arm/t-xscale-coff: Remove.
12443 * config/arm/t-xscale-elf: Remove.
12444 * config/arm/xscale-coff.h: Remove.
12445 * config/arm/xscale-elf.h: Remove.
12446 * config/chorus.h: Remove.
12447 * config/cris/aout.h: Remove.
12448 * config/cris/aout.opt: Remove.
12449 * config/cris/t-aout: Remove.
12450 * config/i386/beos-elf.h: Remove.
12451 * config/i386/kaos-i386.h: Remove.
12452 * config/i386/ptx4-i.h: Remove.
12453 * config/i386/sco5.h: Remove.
12454 * config/i386/sco5.opt: Remove.
12455 * config/i386/sysv4-cpp.h: Remove.
12456 * config/i386/sysv5.h: Remove.
12457 * config/i386/t-beos: Remove.
12458 * config/i386/t-sco5: Remove.
12459 * config/i386/t-uwin: Remove.
12460 * config/i386/uwin.asm: Remove.
12461 * config/i386/uwin.h: Remove.
12462 * config/kaos.h: Remove.
12463 * config/mips/windiss.h: Remove.
12464 * config/mt: Remove directory.
12465 * config/pa/pa-osf.h: Remove.
12466 * config/pa/pa-pro-end.h: Remove.
12467 * config/pa/t-pro: Remove.
12468 * config/ptx4.h: Remove.
12469 * config/rs6000/beos.h: Remove.
12470 * config/rs6000/kaos-ppc.h: Remove.
12471 * config/rs6000/t-beos: Remove.
12472 * config/rs6000/windiss.h: Remove.
12473 * config/sh/kaos-sh.h: Remove.
12474 * config/sol2-6.h: Remove.
12475 * config/sparc/sol26-sld.h: Remove.
12476 * config/sparc/sysv4-only.h: Remove.
12477 * config/vax/bsd.h: Remove.
12478 * config/vax/t-memfuncs: Remove.
12479 * config/vax/ultrix.h: Remove.
12480 * config/vax/vaxv.h: Remove.
12481 * config/windiss.h: Remove.
12482
12483 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
12484
12485 PR rtl-optimization/36438
12486 * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
12487 for vector shifts with constant scalar shift operands.
12488
12489 2008-06-06 Sandip Matte <sandip@rmicorp.com>
12490
12491 * doc/invoke.texi: Document -march=xlr.
12492 * config/mips/xlr.md: New file.
12493 * config/mips/mips.md: Include it.
12494 (cpu): Add "xlr".
12495 * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
12496 * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
12497 (mips_rtx_cost_data): Likewise.
12498
12499 2008-06-06 Nathan Froyd <froydnj@codesourcery.com>
12500
12501 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
12502 PRE_INC and PRE_DEC cases.
12503
12504 2008-06-06 Jakub Jelinek <jakub@redhat.com>
12505
12506 PR rtl-optimization/36419
12507 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
12508 the emitting jump insn.
12509
12510 PR target/36362
12511 * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
12512 is not bool, boolify the whole *expr_p and convert to the desired type.
12513
12514 2008-06-06 Jakub Jelinek <jakub@redhat.com>
12515
12516 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
12517 * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
12518 Add omp_private_outer_ref hook, add another argument to
12519 omp_clause_default_ctor hook.
12520 * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
12521 (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
12522 (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
12523 hook_tree_tree_tree_tree_null.
12524 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
12525 LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
12526 * hooks.c (hook_tree_tree_tree_tree_null): New function.
12527 * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
12528 * tree.def (OMP_TASK): New tree code.
12529 * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
12530 OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
12531 OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
12532 OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
12533 OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
12534 OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
12535 OMP_CLAUSE_COLLAPSE_EXPR): Define.
12536 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
12537 (OMP_DIRECTIVE_P): Add OMP_TASK.
12538 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
12539 (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
12540 * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
12541 and OMP_CLAUSE_UNTIED entries.
12542 (omp_clause_num_ops): Likewise. Increase OMP_CLAUSE_LASTPRIVATE
12543 num_ops to 2.
12544 (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
12545 Walk OMP_CLAUSE_LASTPRIVATE_STMT.
12546 * tree-pretty-print.c (dump_omp_clause): Handle
12547 OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
12548 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
12549 (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
12550 * c-omp.c (c_finish_omp_for): Allow pointer iterators. Remove
12551 warning about unsigned iterators. Change decl/init/cond/incr
12552 arguments to TREE_VECs, check arguments for all collapsed loops.
12553 (c_finish_omp_taskwait): New function.
12554 (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
12555 ws_clauses.
12556 * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops. Call
12557 default_function_array_conversion on init. Add par_clauses argument.
12558 If decl is present in parallel's lastprivate clause, change it to
12559 shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
12560 Add clauses argument, on success set OMP_FOR_CLAUSES to it. Look up
12561 collapse count in clauses.
12562 (c_parser_omp_for, c_parser_omp_parallel): Adjust
12563 c_parser_omp_for_loop callers.
12564 (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
12565 (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
12566 (c_parser_omp_clause_name): Handle collapse and untied clauses.
12567 (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
12568 functions.
12569 (c_parser_omp_clause_schedule): Handle schedule(auto).
12570 Include correct location in the error message.
12571 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
12572 and PRAGMA_OMP_CLAUSE_UNTIED.
12573 (OMP_TASK_CLAUSE_MASK): Define.
12574 (c_parser_omp_task, c_parser_omp_taskwait): New functions.
12575 (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
12576 * tree-nested.c (convert_nonlocal_omp_clauses,
12577 convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
12578 OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
12579 OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
12580 Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
12581 OMP_CLAUSE_DECL.
12582 (conver_nonlocal_reference, convert_local_reference,
12583 convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL. Use
12584 OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
12585 (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
12586 * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
12587 * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
12588 * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
12589 (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
12590 * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
12591 (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
12592 OMP_CLAUSE_UNTIED.
12593 * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
12594 * c-common.h (c_finish_omp_taskwait): New prototype.
12595 * gimple-low.c (lower_stmt): Handle OMP_TASK.
12596 * tree-parloops.c (create_parallel_loop): Create 1 entry
12597 vectors for OMP_FOR_{INIT,COND,INCR}.
12598 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
12599 (make_edges): Handle OMP_TASK.
12600 * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
12601 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
12602 * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
12603 * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
12604 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
12605 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
12606 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
12607 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
12608 * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
12609 BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
12610 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
12611 BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
12612 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
12613 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
12614 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
12615 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
12616 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
12617 BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
12618 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
12619 BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
12620 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
12621 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
12622 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
12623 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
12624 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
12625 * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
12626 handle POINTER_PLUS_EXPR. If loop counter has been replaced and
12627 original iterator is present in lastprivate clause or if
12628 collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT. Handle collapsed
12629 OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
12630 (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
12631 (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
12632 (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
12633 if it is set, lookup var in outer contexts too. Handle
12634 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE. Handle vars that are supposed
12635 to be implicitly determined firstprivate for task regions.
12636 (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
12637 if it is set, lookup var in outer contexts too. Set
12638 OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
12639 Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
12640 OMP_CLAUSE_UNTIED. Take region_type as last argument
12641 instead of in_parallel and in_combined_parallel.
12642 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
12643 Adjust callers.
12644 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
12645 GOVD_PRIVATE_OUTER_REF is set. Call omp_finish_clause langhook.
12646 (new_omp_context): Set default_kind to
12647 OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
12648 (omp_region_type): New enum.
12649 (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
12650 fields, add region_type.
12651 (new_omp_context): Take region_type as argument instead of is_parallel
12652 and is_combined_parallel.
12653 (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
12654 omp_is_private, omp_check_private): Adjust ctx->is_parallel and
12655 ctx->is_combined_parallel checks.
12656 (gimplify_omp_task): New function.
12657 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
12658 OMP_CLAUSE_UNTIED.
12659 * omp-low.c (extract_omp_for_data): Use schedule(static)
12660 for schedule(auto). Handle pointer and unsigned iterators.
12661 Compute fd->iter_type. Handle POINTER_PLUS_EXPR increments.
12662 Add loops argument. Extract data for collapsed OMP_FOR loops.
12663 (expand_parallel_call): Assert sched_kind isn't auto,
12664 map runtime schedule to index 3.
12665 (struct omp_for_data_loop): New type.
12666 (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
12667 Add loop, loops, collapse and iter_type fields.
12668 (workshare_safe_to_combine_p): Disallow combined for if
12669 iter_type is unsigned long long. Don't combine collapse > 1 loops
12670 unless all bounds and steps are constant. Adjust extract_omp_for_data
12671 caller.
12672 (expand_omp_for_generic): Handle pointer, unsigned and long long
12673 iterators. Handle collapsed OMP_FOR loops. Adjust
12674 for struct omp_for_data changes. If libgomp function doesn't return
12675 boolean_type_node, add comparison of the return value with 0.
12676 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
12677 pointer, unsigned and long long iterators. Adjust for struct
12678 omp_for_data changes.
12679 (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
12680 to index 3. Use GOMP_loop_ull*{start,next} if iter_type is
12681 unsigned long long. Allocate loops array, pass it to
12682 extract_omp_for_data. For collapse > 1 loops use always
12683 expand_omp_for_generic.
12684 (omp_context): Add sfield_map and srecord_type fields.
12685 (is_task_ctx, lookup_sfield): New functions.
12686 (use_pointer_for_field): Use is_task_ctx helper. Change first
12687 argument's type from const_tree to tree. Clarify comment.
12688 In OMP_TASK disallow copy-in/out sharing.
12689 (build_sender_ref): Call lookup_sfield instead of lookup_field.
12690 (install_var_field): Add mask argument. Populate both record_type
12691 and srecord_type if needed.
12692 (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
12693 in srecord_type.
12694 (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
12695 and DECL_FIELD_OFFSET.
12696 (scan_sharing_clauses): Adjust install_var_field callers. For
12697 firstprivate clauses on explicit tasks allocate the var by value in
12698 record_type unconditionally, rather than by reference.
12699 Handle OMP_CLAUSE_PRIVATE_OUTER_REF. Scan OMP_CLAUSE_LASTPRIVATE_STMT.
12700 Use is_taskreg_ctx instead of is_parallel_ctx.
12701 Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
12702 (create_omp_child_function_name): Add task_copy argument, use
12703 *_omp_cpyfn* names if it is true.
12704 (create_omp_child_function): Add task_copy argument, if true create
12705 *_omp_cpyfn* helper function.
12706 (scan_omp_parallel): Adjust create_omp_child_function callers.
12707 Rename parallel_nesting_level to taskreg_nesting_level.
12708 (scan_omp_task): New function.
12709 (lower_rec_input_clauses): Don't run constructors for firstprivate
12710 explicit task vars which are initialized by *_omp_cpyfn*.
12711 Pass outer var ref to omp_clause_default_ctor hook if
12712 OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
12713 Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
12714 OMP_CLAUSE_REDUCTION_INIT.
12715 (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
12716 avoid duplicate setting of fields. Handle
12717 OMP_CLAUSE_PRIVATE_OUTER_REF.
12718 (lower_send_shared_vars): Use srecord_type if non-NULL. Don't
12719 copy-out if TREE_READONLY, only copy-in.
12720 (expand_task_copyfn): New function.
12721 (expand_task_call): New function.
12722 (struct omp_taskcopy_context): New type.
12723 (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
12724 New functions.
12725 (lower_omp_parallel): Rename to...
12726 (lower_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
12727 Call create_task_copyfn if srecord_type is needed. Adjust
12728 sender_decl type.
12729 (task_shared_vars): New variable.
12730 (check_omp_nesting_restrictions): Warn if work-sharing,
12731 barrier, master or ordered region is closely nested inside OMP_TASK.
12732 Add warnings for barrier if closely nested inside of work-sharing,
12733 ordered, or master region.
12734 (scan_omp_1): Call check_omp_nesting_restrictions even for
12735 GOMP_barrier calls. Rename parallel_nesting_level to
12736 taskreg_nesting_level. Handle OMP_TASK.
12737 (lower_lastprivate_clauses): Even if some lastprivate is found on a
12738 work-sharing construct, continue looking for them on parent parallel
12739 construct.
12740 (lower_omp_for_lastprivate): Add lastprivate clauses
12741 to the beginning of dlist rather than end. Adjust for struct
12742 omp_for_data changes.
12743 (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
12744 not after it. Handle collapsed OMP_FOR loops, adjust for
12745 OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
12746 (get_ws_args_for): Adjust extract_omp_for_data caller.
12747 (scan_omp_for): Handle collapsed OMP_FOR
12748 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
12749 (lower_omp_single_simple): If libgomp function doesn't return
12750 boolean_type_node, add comparison of the return value with 0.
12751 (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
12752 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes. Handle OMP_TASK.
12753 (parallel_nesting_level): Rename to...
12754 (taskreg_nesting_level): ... this.
12755 (is_taskreg_ctx): New function.
12756 (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
12757 of is_parallel_ctx.
12758 (execute_lower_omp): Rename parallel_nesting_level to
12759 taskreg_nesting_level.
12760 (expand_omp_parallel): Rename to...
12761 (expand_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
12762 Call omp_task_call for OMP_TASK regions.
12763 (expand_omp): Adjust caller, handle OMP_TASK.
12764 (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
12765
12766 * bitmap.c (bitmap_default_obstack_depth): New variable.
12767 (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
12768 if argument is NULL and bitmap_default_obstack is already initialized.
12769 * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
12770 at the end.
12771 * matrix-reorg.c (matrix_reorg): Likewise.
12772
12773 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
12774
12775 * config/i386/i386.md (*indirect_jump): Macroize using P
12776 mode iterator. Remove !TARGET_64BIT from insn constraints.
12777 (*tablejump_1): Ditto.
12778 (*indirect_jump_rex64): Remove insn pattern.
12779 (*tablejump_1_rex64): Ditto.
12780 (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
12781 and eh_return_si insn patterns.
12782
12783 2008-06-06 Richard Guenther <rguenther@suse.de>
12784
12785 * tree-ssa-structalias.c (merge_smts_into): Remove.
12786 (find_what_p_points_to): Do not bother to compute the
12787 points-to set for pt_anything pointers.
12788 * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
12789 for pt_anything pointers is ok.
12790
12791 2008-06-06 Jan Hubicka <jh@suse.cz>
12792
12793 * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
12794
12795 2008-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12796
12797 * cgraph.c: Fix typos in comments.
12798 (cgraph_availability_names): Fix string typo.
12799 * fold-const.c: Fix typos in comments.
12800 (fold_binary): Fix typo in warning.
12801 * genautomata.c: Fix typos in comments.
12802 (check_presence_pattern_sets): Fix typo in local variable.
12803 (output_description): Fix typo in output.
12804 * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
12805 * hwint.h: Likewise.
12806 * matrix-reorg.c (check_allocation_function): Likewise.
12807 * omega.c (smooth_weird_equations): Likewise.
12808 * auto-inc-dec.c: Fix typos in comments.
12809 * bb-reorder.c: Likewise.
12810 * builtins.c: Likewise.
12811 * c-common.c: Likewise.
12812 * c-cppbuiltin.c: Likewise.
12813 * c-parser.c: Likewise.
12814 * c-pretty-print.c: Likewise.
12815 * cfgcleanup.c: Likewise.
12816 * cfgexpand.c: Likewise.
12817 * cfghooks.c: Likewise.
12818 * cfglayout.c: Likewise.
12819 * cfgloopmanip.c: Likewise.
12820 * cgraphunit.c: Likewise.
12821 * coverage.c: Likewise.
12822 * dbxout.c: Likewise.
12823 * df-byte-scan.c: Likewise.
12824 * df-core.c: Likewise.
12825 * df-problems.c: Likewise.
12826 * df-scan.c: Likewise.
12827 * dfp.c: Likewise.
12828 * dominance.c: Likewise.
12829 * domwalk.c: Likewise.
12830 * dse.c: Likewise.
12831 * dwarf2out.c: Likewise.
12832 * emit-rtl.c: Likewise.
12833 * et-forest.c: Likewise.
12834 * function.c: Likewise.
12835 * function.h: Likewise.
12836 * gcc.c: Likewise.
12837 * gcov-io.c: Likewise.
12838 * gcov.c: Likewise.
12839 * gcse.c: Likewise.
12840 * genattrtab.c: Likewise.
12841 * ggc-page.c: Likewise.
12842 * gimplify.c: Likewise.
12843 * gthr-lynx.h: Likewise.
12844 * haifa-sched.c: Likewise.
12845 * ipa-cp.c: Likewise.
12846 * ipa-inline.c: Likewise.
12847 * ipa-prop.h: Likewise.
12848 * ipa-pure-const.c: Likewise.
12849 * ipa-struct-reorg.c: Likewise.
12850 * ipa-struct-reorg.h: Likewise.
12851 * ipa-type-escape.c: Likewise.
12852 * ipa.c: Likewise.
12853 * loop-doloop.c: Likewise.
12854 * mips-tfile.c: Likewise.
12855 * mkmap-flat.awk: Likewise.
12856 * mkmap-symver.awk: Likewise.
12857 * modulo-sched.c: Likewise.
12858 * omp-low.c: Likewise.
12859 * optabs.c: Likewise.
12860 * optabs.h: Likewise.
12861 * opts.c: Likewise.
12862 * passes.c: Likewise.
12863 * postreload-gcse.c: Likewise.
12864 * postreload.c: Likewise.
12865 * predict.c: Likewise.
12866 * pretty-print.h: Likewise.
12867 * profile.c: Likewise.
12868 * protoize.c: Likewise.
12869 * ra-conflict.c: Likewise.
12870 * real.c: Likewise.
12871 * recog.c: Likewise.
12872 * regclass.c: Likewise.
12873 * regs.h: Likewise.
12874 * reload.c: Likewise.
12875 * rtl-error.c: Likewise.
12876 * rtlanal.c: Likewise.
12877 * scan.h: Likewise.
12878 * sched-rgn.c: Likewise.
12879 * see.c: Likewise.
12880 * stmt.c: Likewise.
12881 * target.h: Likewise.
12882 * tree-dfa.c: Likewise.
12883 * tree-eh.c: Likewise.
12884 * tree-flow-inline.h: Likewise.
12885 * tree-inline.c: Likewise.
12886 * tree-into-ssa.c: Likewise.
12887 * tree-loop-distribution.c: Likewise.
12888 * tree-nested.c: Likewise.
12889 * tree-parloops.c: Likewise.
12890 * tree-pass.h: Likewise.
12891 * tree-pretty-print.c: Likewise.
12892 * tree-profile.c: Likewise.
12893 * tree-scalar-evolution.c: Likewise.
12894 * tree-sra.c: Likewise.
12895 * tree-ssa-alias-warnings.c: Likewise.
12896 * tree-ssa-ccp.c: Likewise.
12897 * tree-ssa-coalesce.c: Likewise.
12898 * tree-ssa-dom.c: Likewise.
12899 * tree-ssa-dse.c: Likewise.
12900 * tree-ssa-forwprop.c: Likewise.
12901 * tree-ssa-live.c: Likewise.
12902 * tree-ssa-live.h: Likewise.
12903 * tree-ssa-loop-im.c: Likewise.
12904 * tree-ssa-loop-ivopts.c: Likewise.
12905 * tree-ssa-loop-niter.c: Likewise.
12906 * tree-ssa-loop-prefetch.c: Likewise.
12907 * tree-ssa-phiopt.c: Likewise.
12908 * tree-ssa-phiprop.c: Likewise.
12909 * tree-ssa-sccvn.c: Likewise.
12910 * tree-ssa-ter.c: Likewise.
12911 * tree-ssa-threadupdate.c: Likewise.
12912 * tree-ssa.c: Likewise.
12913 * tree-vect-analyze.c: Likewise.
12914 * tree-vect-transform.c: Likewise.
12915 * tree-vectorizer.c: Likewise.
12916 * tree-vn.c: Likewise.
12917 * tree-vrp.c: Likewise.
12918 * tree.c: Likewise.
12919 * tree.def: Likewise.
12920 * tree.h: Likewise.
12921 * unwind-dw2-fde.c: Likewise.
12922 * unwind.inc: Likewise.
12923 * value-prof.c: Likewise.
12924 * vmsdbgout.c: Likewise.
12925
12926 2008-06-05 David Edelsohn <edelsohn@gnu.org>
12927
12928 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
12929 always place FP constants in the TOC for TARGET_POWERPC64.
12930 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
12931
12932 2008-06-05 Joseph Myers <joseph@codesourcery.com>
12933
12934 * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
12935 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
12936 enable for TARGET_E500_DOUBLE.
12937 (*movdd_softfloat32): Also enable for !TARGET_FPRS.
12938 * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
12939 floating-point modes like integer modes for E500 double.
12940 (rs6000_legitimate_offset_address_p): Likewise.
12941 (rs6000_legitimize_address): Likewise. Do not allow REG+REG
12942 addressing for DDmode for E500 double.
12943 (rs6000_hard_regno_nregs): Do not treat decimal floating-point
12944 modes as using 64-bits of registers for E500 double.
12945 (spe_build_register_parallel): Do not handle DDmode or TDmode.
12946 (rs6000_spe_function_arg): Do not handle DDmode or TDmode
12947 specially for E500 double.
12948 (function_arg): Do not call rs6000_spe_function_arg for DDmode or
12949 TDmode for E500 double.
12950 (rs6000_gimplify_va_arg): Only handle SDmode in registers
12951 specially if TARGET_HARD_FLOAT && TARGET_FPRS.
12952 (rs6000_split_multireg_move): Do not handle TDmode specially for
12953 E500 double.
12954 (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
12955 using 64-bit registers for E500 double.
12956 (emit_frame_save): Do not handle DDmode specially for E500 double.
12957 (gen_frame_mem_offset): Likewise.
12958 (rs6000_function_value): Do not call spe_build_register_parallel
12959 for DDmode or TDmode.
12960 (rs6000_libcall_value): Likewise.
12961 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
12962 DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
12963 for E500 double.
12964
12965 2008-06-04 H.J. Lu <hongjiu.lu@intel.com>
12966
12967 * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
12968 in comments.
12969
12970 2008-06-04 Junjie Gu <jgu@tensilica.com>
12971
12972 * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
12973 comparison for frame pointers.
12974
12975 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
12976
12977 PR target/27386
12978 * config/avr/avr.h (PUSH_ROUNDING): Remove.
12979
12980 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
12981
12982 PR target/30243
12983 * builtins.c (expand_builtin_signbit): Don't take lowpart when
12984 register is already smaller or equal to required mode.
12985
12986 2008-06-04 Xinliang David Li <davidxl@google.com>
12987
12988 * tree-call-cdce.c: New file.
12989 (cond_dead_built_in_calls): New static variable.
12990 (input_domain): New struct.
12991 (check_pow): New function.
12992 (check_builtin_call): Ditto.
12993 (check_target_format): Ditto.
12994 (is_call_dce_candidate): Ditto.
12995 (gen_one_condition): Ditto.
12996 (gen_conditions_for_domain): Ditto.
12997 (get_domain): Ditto.
12998 (gen_conditions_for_pow_cst_base): Ditto.
12999 (gen_conditions_for_pow_int_base): Ditto.
13000 (gen_conditions_for_pow): Ditto.
13001 (get_no_error_domain): Ditto.
13002 (gen_shrink_wrap_conditions): Ditto.
13003 (shrink_wrap_one_built_in_call): Ditto.
13004 (shink_wrap_conditional_dead_built_in_calls): Ditto.
13005 (tree_call_cdce): Ditto.
13006 (gate_call_cdce): Ditto.
13007 (pass_call_cdce): New gimple pass.
13008 * passes.c: (init_optimization_passes): New pass.
13009 * tree-pass.h: New pass declaration.
13010 * opts.c (decode_options): New flag setting.
13011 * common.opt: Add -ftree-builtin-call-dce flag.
13012 * Makefile.in: Add new source file.
13013 * tempvar.def: New tv_id.
13014 * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
13015
13016 2008-06-04 Richard Guenther <rguenther@suse.de>
13017
13018 * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
13019 (is_call_clobbered): Always check var_ann->call_clobbered.
13020 (mark_call_clobbered): Always set var_ann->call_clobbered.
13021 (clear_call_clobbered): Always clear var_ann->call_clobbered.
13022 * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
13023 (reset_alias_info): Clear call clobbering info on MTAGs and
13024 globals as well.
13025 (set_pt_anything): Set pt_global_mem.
13026 (create_tag_raw): Adjust comment.
13027 (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
13028
13029 2008-06-04 Joseph Myers <joseph@codesourcery.com>
13030 Maxim Kuvyrkov <maxim@codesourcery.com>
13031
13032 * config/m68k/m68k.opt (mxgot): New option.
13033 * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
13034 (m68k_output_addr_const_extra): New.
13035 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
13036 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
13037 * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
13038 * doc/invoke.texi (M680x0 Options): Document -mxgot.
13039
13040 2008-06-04 Richard Guenther <rguenther@suse.de>
13041
13042 * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
13043 negative or non-representable offsets.
13044
13045 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
13046
13047 * config/i386/i386.c (ix86_gen_leave): New.
13048 (ix86_gen_pop1): Likewise.
13049 (ix86_gen_add3): Likewise.
13050 (ix86_gen_sub3): Likewise.
13051 (ix86_gen_sub3_carry): Likewise.
13052 (ix86_gen_one_cmpl2): Likewise.
13053 (ix86_gen_monitor): Likewise.
13054 (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
13055 ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
13056 ix86_gen_one_cmpl2 and ix86_gen_monitor.
13057 (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
13058 (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
13059 mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
13060 (ix86_expand_epilogue): Updated.
13061 (print_operand): Handle integer register operand for 'z'.
13062 (ix86_expand_strlensi_unroll_1): Likewise.
13063 (ix86_expand_strlen): Likewise.
13064 (ix86_expand_builtin): Likewise.
13065 (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
13066 mov{q}/mov{l} and add{q}/add{l}.
13067
13068 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
13069
13070 * config/i386/i386.md (P): New mode iterator.
13071 (SFmode push_operand splitter): Macroize DImode and SImode pushes
13072 using P mode iterator.
13073 (DFmode push_operand splitter): Ditto.
13074 (XFmode push_operand splitter): Ditto.
13075 (DFmode float_extend SFmode push_operand splitter): Ditto.
13076 (XFmode float_extend SFmode push_operand splitter): Do not generate
13077 SImode pushes for 64bit target. Macroize Dimode and SImode
13078 pushes using P mode iterator.
13079 (XFmode float_extend DFmode push_operand splitter): Ditto.
13080
13081 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
13082
13083 * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
13084 * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
13085 * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
13086 return type to int.
13087 (ix86_call_abi_override): Remove check for call_used_regs.
13088
13089 2008-06-03 Richard Guenther <rguenther@suse.de>
13090
13091 * tree-ssa-structalias.c (find_func_aliases): Add constraints
13092 for the lhs of calls if the return type contains pointers.
13093
13094 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
13095
13096 * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
13097 * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
13098 * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
13099 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
13100 of cfun and DEFAULT_ABI to deceide abi mode.
13101 (DEFAULT_ABI): New.
13102 (REG_PARM_STACK_SPACE): Removed.
13103 (OUTGOING_REG_PARM_STACK_SPACE): Removed.
13104 (STACK_BOUNDARY): Use default target to deceide stack boundary.
13105 * config/i386/i386-protos.h (ix86_cfun_abi): New.
13106 (ix86_function_abi): Likewise.
13107 (ix86_function_type_abi): Likewise.
13108 (ix86_call_abi_override): Likewise.
13109 * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
13110 specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
13111 * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
13112 (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
13113 specific defines.
13114 (X86_64_REGPARM_MAX): New.
13115 (X86_64_SSE_REGPARM_MAX): New.
13116 (X64_REGPARM_MAX): New.
13117 (X64_SSE_REGPARM_MAX): New.
13118 (X86_32_REGPARM_MAX): New.
13119 (X86_32_SSE_REGPARM_MAX): New.
13120 (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
13121 (ix86_function_regparm): Handle user calling abi.
13122 (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
13123 by DEFAULT_ABI versus SYSV_ABI check.
13124 (ix86_reg_parm_stack_space): New.
13125 (ix86_function_type_abi): New.
13126 (ix86_call_abi_override): New.
13127 (ix86_function_abi): New.
13128 (ix86_cfun_abi): New.
13129 (init_cumulative_args): Call abi specific initialization.
13130 (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
13131 (function_arg_64): Extend SSE_REGPARM_MAX check.
13132 (function_arg (): Remove TARGET_64BIT_MS_ABI.
13133 (ix86_pass_by_reference): Likewise.
13134 (ix86_function_value_regno_p): Likewise.
13135 (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
13136 (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
13137 (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
13138 (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
13139 (setup_incoming_varargs_64): Adjust regparm for call abi.
13140 (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
13141 (ix86_va_start): Likewise.
13142 (ix86_gimplify_va_arg): Likewise.
13143 (ix86_expand_prologue): Likewise.
13144 (output_pic_addr_const): Likewise.
13145 (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
13146 (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
13147 (x86_output_mi_thunk): Likewise.
13148 (x86_function_profiler): Likewise.
13149 * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
13150 (SYSV_ABI, MS_ABI): New constants.
13151 (DEFAULT_ABI): New.
13152 (init_regs): Add prototype of function in regclass.c file.
13153 (OVERRIDE_ABI_FORMAT): New.
13154 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
13155 (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
13156 (OUTGOING_REG_PARM_STACK_SPACE): New.
13157 (ix86_reg_parm_stack_space): New prototype.
13158 (CUMULATIVE_ARGS): Add call_abi member.
13159 (machine_function): Add call_abi member.
13160 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
13161 TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
13162
13163 2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
13164
13165 PR target/34879
13166 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
13167 (avr_builtin_setjmp_frame_value): New function.
13168 * config/avr/avr.md (nonlocal_goto_receiver): Define.
13169 (nonlocal_goto): Define.
13170
13171 2008-06-02 Richard Sandiford <rdsandiford@googlemail.com>
13172
13173 * config/mips/mips.c (mips_emit_loadgp): Return early if
13174 there is nothing do to, otherwise emit a blockage if
13175 !TARGET_EXPLICIT_RELOCS || crtl->profile.
13176 * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
13177
13178 2008-06-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13179
13180 * configure.ac: Drop unneeded backslash ending up in config.in.
13181 * acinclude.m4: Likewise.
13182 * config.in: Regenerate.
13183
13184 2008-05-26 Jan Hubicka <jh@suse.cz>
13185
13186 * predict.c (maybe_hot_frequency_p): Break out of...
13187 (maybe_hot_bb_p): ... here.
13188 (maybe_hot_edge_p): New.
13189 * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
13190 * basic-block.h (maybe_hot_edge_p): Declare.
13191
13192 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
13193
13194 * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
13195 (*cmpfp_<mode>_cc): Ditto.
13196 (*fp_jcc_8<mode>_387): Ditto.
13197 (*fop_<MODEF:mode>_2_i387): Ditto.
13198 (*fop_<MODEF:mode>_3_i387): Ditto.
13199 (*fop_xf_2_i387): Ditto.
13200 (*fop_xf_3_i387): Ditto.
13201
13202 2008-06-02 Tomas Bily <tbily@suse.cz>
13203
13204 * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
13205
13206 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
13207
13208 * config/mips/mips.c (mips_valid_offset_p): New function.
13209 (mips_valid_lo_sum_p): Likewise.
13210 (mips_classify_address): Use them.
13211 (mips_force_address): New function.
13212 (mips_legitimize_address): Use it.
13213 * config/mips/mips.md (MOVE128): New mode iterator.
13214 (movtf): Require TARGET_64BIT. Remove empty strings.
13215 (*movtf_internal): Rename to...
13216 (*movtf): ...this and require !TARGET_MIPS16. Use "m" instead
13217 of "R" and use {,fp}{load,store} attributes instead of "multi".
13218 Use a separate define_split.
13219 (*movtf_mips16): New pattern.
13220
13221 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
13222
13223 * config/mips/mips-protos.h (mips_expand_before_return): Declare.
13224 * config/mips/mips.c (mips_expand_before_return): New function.
13225 (mips_expand_epilogue): Call it.
13226 * config/mips/mips.md (return): Turn into a define_expand.
13227 (*return): New insn.
13228
13229 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
13230
13231 * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
13232 * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
13233 functions. Do not emit uses and clobbers of CONCATs; individually
13234 use and clobber their operands.
13235 * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
13236 gen_clobber, emit_use and gen_use.
13237 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
13238 (expand_builtin_return): Likewise.
13239 * cfgbuild.c (count_basic_blocks): Likewise.
13240 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
13241 * explow.c (emit_stack_restore): Likewise.
13242 * expmed.c (extract_bit_field_1): Likewise.
13243 * expr.c (convert_move, emit_move_complex_parts): Likewise.
13244 (emit_move_multi_word, store_constructor): Likewise.
13245 * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
13246 (thread_prologue_and_epilogue_insns): Likewise.
13247 * lower-subreg.c (resolve_simple_move): Likewise.
13248 * optabs.c (widen_operand, expand_binop): Likewise.
13249 (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
13250 * reload.c (find_reloads): Likewise.
13251 * reload1.c (eliminate_regs_in_insn): Likewise.
13252 * stmt.c (expand_nl_goto_receiver): Likewise.
13253 * config/alpha/alpha.md (builtin_longjmp): Likewise.
13254 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
13255 * config/arm/arm.c (arm_load_pic_register): Likewise.
13256 (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
13257 * config/arm/arm.md (untyped_return): Likewise.
13258 * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
13259 * config/avr/avr.c (expand_prologue): Likewise.
13260 * config/bfin/bfin.c (do_unlink): Likewise.
13261 * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
13262 * config/cris/cris.c (cris_expand_prologue): Likewise.
13263 * config/darwin.c (machopic_indirect_data_reference): Likewise.
13264 (machopic_legitimize_pic_address): Likewise.
13265 * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
13266 (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
13267 * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
13268 (ix86_expand_convert_uns_didf_sse): Likewise.
13269 (ix86_expand_vector_init_general): Likewise.
13270 * config/ia64/ia64.md (eh_epilogue): Likewise.
13271 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
13272 * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
13273 * config/m32r/m32r.c (m32r_reload_lr): Likewise.
13274 (config/iq2000/iq2000.c): Likewise.
13275 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
13276 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
13277 (builtin_longjmp): Likewise.
13278 * config/mn10300/mn10300.md (call, call_value): Likewise.
13279 * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
13280 * config/pdp11/pdp11.md (abshi2): Likewise.
13281 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
13282 * config/s390/s390.c (s390_emit_prologue): Likewise.
13283 * config/s390/s390.md (movmem_long, setmem_long): Likewise.
13284 (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
13285 (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
13286 * config/sh/sh.c (prepare_move_operands): Likewise.
13287 (output_stack_adjust, sh_expand_epilogue): Likewise.
13288 (sh_set_return_address, sh_expand_t_scc): Likewise.
13289 * config/sparc/sparc.c (load_pic_register): Likewise.
13290 * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
13291 * config/spu/spu.c (spu_expand_epilogue): Likewise.
13292 * config/v850/v850.c (expand_epilogue): Likewise.
13293
13294 2008-05-31 Anatoly Sokolov <aesok@post.ru>
13295
13296 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
13297 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
13298 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
13299 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
13300 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
13301 stack pointer register.
13302 (output_movhi): Remove code for interrupt specific writing to the
13303 stack pointer register.
13304
13305 2008-05-31 Richard Guenther <rguenther@suse.de>
13306
13307 PR tree-optimization/34244
13308 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
13309 (tree_expr_nonzero_warnv_p): Likewise.
13310 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
13311 ssa_name_nonnegative_p.
13312 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
13313 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
13314 not tree_expr_nonzero_warnv_p.
13315
13316 PR tree-optimization/36262
13317 Revert
13318 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
13319
13320 PR tree-optimization/34244
13321 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
13322 (record_numbers_of_iterations): New function.
13323 (execute_vrp): Cache the numbers of iterations of loops.
13324 * tree-scalar-evolution.c (scev_reset_except_niters):
13325 New function.
13326 (scev_reset): Use scev_reset_except_niters.
13327 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
13328
13329 2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
13330
13331 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
13332 __WORKAROUND_RETS when appropriate.
13333
13334 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
13335
13336 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
13337 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
13338 mode iterator.
13339 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
13340 *fop_df_comm_sse insn patterns using MODEF mode iterator.
13341 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
13342 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
13343 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
13344 *fop_df_1_mixed insn patterns using MODEF mode iterator.
13345 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
13346 *fop_df_1_sse insn patterns using MODEF mode iterator.
13347 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
13348 *fop_df_1_i387 insn patterns using MODEF mode iterator.
13349 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
13350 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
13351 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
13352 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
13353 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
13354 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
13355 (*fop_xf_4_i387): Use <MODE> for mode attribute.
13356 (*fop_xf_5_i387): Ditto.
13357 (*fop_xf_6_i387): Ditto.
13358
13359 2008-05-30 Richard Guenther <rguenther@suse.de>
13360
13361 * builtins.c (build_string_literal): Avoid generating
13362 a non-gimple_val result.
13363
13364 2008-05-30 DJ Delorie <dj@redhat.com>
13365
13366 * exec-tool.in: Use an environment variable (private) instead of a
13367 file (shared) as a semaphore, so as to not break parallel builds.
13368
13369 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
13370
13371 * optabs.c (maybe_encapsulate_block): Remove.
13372 (emit_libcall_block): Adjust accordingly.
13373 * optabs.h (maybe_encapsulate_block): Remove prototype.
13374
13375 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
13376 Don't use maybe_encapsulate_block.
13377
13378 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
13379
13380 * config/rs6000/rs6000.c (rs6000_legitimize_address,
13381 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
13382 rtx is a SYMBOL_REF before calling get_pool_constant.
13383
13384 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
13385
13386 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
13387
13388 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
13389
13390 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
13391 rather than OS names to choose INO_T_EQ definition.
13392 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
13393 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
13394
13395 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
13396
13397 PR target/36348
13398 * config/darwin-f.c: New.
13399 * config/t-darwin: Added rule to build darwin-f.o.
13400 * config.gcc: Defined new variable, fortran_target_objs.
13401 (*-*-darwin*): Set fortran_target_objs.
13402 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
13403 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
13404 * configure: Regenerated.
13405
13406 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
13407
13408 PR target/35771
13409 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
13410 canonical type if needed.
13411
13412 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
13413
13414 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
13415
13416 2008-05-29 Richard Guenther <rguenther@suse.de>
13417
13418 PR tree-optimization/36343
13419 PR tree-optimization/36346
13420 PR tree-optimization/36347
13421 * tree-flow.h (clobber_what_p_points_to): Declare.
13422 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
13423 pointed-to variable is dereferenced is irrelevant to whether
13424 the pointer can access the pointed-to variable.
13425 (clobber_what_p_points_to): New function.
13426 * tree-ssa-alias.c (set_initial_properties): Use it.
13427 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
13428 call clobber check for NMTs.
13429
13430 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
13431
13432 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
13433 for printing gcov_type.
13434
13435 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
13436
13437 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
13438 and the eh region information.
13439 * value-prof.c (gimple_move_stmt_histograms): New function.
13440 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
13441
13442 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
13443
13444 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
13445
13446 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
13447
13448 * value-prof.c (tree_ic_transform): Print counts.
13449 * tree-profile.c (tree_gen_ic_func_profiler):
13450 Clear __gcov_indreict_call_callee variable to avoid misattribution
13451 of the profile.
13452
13453 2008-05-28 Rafael Espíndola <espindola@google.com>
13454
13455 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
13456 invalid sharing.
13457
13458 2008-05-28 Richard Guenther <rguenther@suse.de>
13459
13460 PR tree-optimization/36339
13461 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
13462 and clobbering code out of the loop.
13463
13464 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
13465
13466 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
13467 letters defined.
13468
13469 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
13470 s390_contiguous_bitmask_p, s390_symref_operand_p,
13471 s390_check_symref_alignment, s390_reload_larl_operand,
13472 s390_reload_symref_address): New functions.
13473 (s390_branch_condition_mnemonic): Support compare and branch
13474 instructions.
13475 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
13476 and 'W' constraints.
13477 (s390_secondary_reload): Add secondary reloads for unaligned
13478 symbol refs or symbol refs to floating point or QI/TI mode
13479 integer values.
13480 (legitimate_address_p): Accept symbol references as addresses.
13481 (s390_expand_insv): Use rotate and insert selected bits
13482 instruction for insv when building for z10.
13483 (print_operand_address): Handle symbol ref addresses.
13484 (print_operand): Output modifier 'c' added for signed byte values.
13485 (s390_encode_section_info): Mark symbol refs with
13486 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
13487
13488 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
13489 (length attribute): RRF, RRR have 4 byte length.
13490 (FPALL, INTALL): New mode iterators added.
13491 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
13492 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
13493 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
13494 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
13495 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
13496 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
13497 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
13498 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
13499 instructions.
13500 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
13501 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
13502 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
13503 reload<INTALL:mode><P:mode>_toreg_z10,
13504 reload<FPALL:mode><P:mode>_tomem_z10,
13505 reload<FPALL:mode><P:mode>_toreg_z10,
13506 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
13507 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
13508 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
13509 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
13510 definition.
13511 (movmem, clrmem, cmpmem): New splitters added.
13512
13513 * config/s390/predicates.md (larl_operand): Use
13514 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
13515 SYMBOL_REF_ALIGN1_P.
13516 (s390_signed_integer_comparison,
13517 s390_unsigned_integer_comparison): New predicates.
13518
13519 * config/s390/s390-protos.h (s390_check_symref_alignment,
13520 s390_contiguous_bitmask_p, s390_reload_larl_operand,
13521 s390_reload_symref_address,
13522 s390_compare_and_branch_condition_mask): Prototypes added.
13523
13524 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
13525 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
13526 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
13527
13528 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
13529
13530 * config/s390/s390.c (z10_cost): New cost function for z10.
13531 (s390_handle_arch_option, override_options): Support -march=z10 switch.
13532 (s390_issue_rate): Adjust issue rate for z10.
13533 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
13534 (processor_flags): Add PF_Z10.
13535 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
13536 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
13537 * gcc/config.gcc: Add z10.
13538
13539 2008-05-28 Richard Guenther <rguenther@suse.de>
13540
13541 PR tree-optimization/36291
13542 * tree-flow. h (struct gimple_df): Remove var_anns member.
13543 * tree-flow-inline.h (gimple_var_anns): Remove.
13544 (var_ann): Simplify.
13545 * tree-dfa.c (create_var_ann): Simplify.
13546 (remove_referenced_var): Clear alias info from var_anns of globals.
13547 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
13548 (delete_tree_ssa): Clear alias info from var_anns of globals.
13549 Do not free var_anns.
13550 (var_ann_eq): Remove.
13551 (var_ann_hash): Likewise.
13552
13553 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
13554
13555 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
13556 and loongson2f entries.
13557 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
13558 * config/mips/mips.h (processor_type): Add Loongson-2E
13559 and Loongson-2F entries.
13560 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
13561 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
13562 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
13563 * doc/invoke.texi (MIPS Options): Document loongson2e
13564 and loongson2f processor names.
13565
13566 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
13567
13568 PR target/35767
13569 PR target/35771
13570 * config/i386/i386.c (ix86_function_arg_boundary): Use
13571 alignment of canonical type.
13572 (ix86_expand_vector_move): Check unaligned memory access for
13573 all SSE modes.
13574
13575 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
13576
13577 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
13578 Moved to the front of file.
13579
13580 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
13581 H.J. Lu <hongjiu.lu@intel.com>
13582
13583 * dwarf2out.c (current_fde): New.
13584 (add_cfi): Use it.
13585 (lookup_cfa:): Likewise.
13586 (dwarf2out_end_epilogue): Likewise.
13587 (dwarf2out_note_section_used): Likewise.
13588
13589 2008-05-27 Michael Matz <matz@suse.de>
13590
13591 PR c++/27975
13592 * c.opt (Wenum-compare): New warning option.
13593 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
13594
13595 2008-05-27 Michael Matz <matz@suse.de>
13596
13597 PR middle-end/36326
13598 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
13599 non-BLKmode types.
13600 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
13601 into memory as tail calls.
13602
13603 2008-05-27 Richard Guenther <rguenther@suse.de>
13604
13605 PR tree-optimization/36339
13606 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
13607 pointers cause all addressable variables to be call clobbered.
13608
13609 2008-05-27 Richard Guenther <rguenther@suse.de>
13610
13611 PR tree-optimization/36245
13612 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
13613
13614 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
13615
13616 * config/s390/s390.md: Replace all occurences of the 'm'
13617 constraint with 'RT'.
13618
13619 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
13620
13621 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
13622 definitions added.
13623 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
13624 "*movdi_64".
13625 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
13626 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
13627 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
13628
13629 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
13630
13631 * reload.c: (find_reloads): Skip alternatives according to the
13632 "enabled" attribute. Constify the constraint variable.
13633 * recog.c (get_attr_enabled): Add default implementation.
13634 (extract_insn): Set the alternative_enabled_p array
13635 in the recog_data struct.
13636 (preprocess_constraints, constrain_operands): Skip
13637 alternatives according to the "enabled" attribute
13638 * recog.h (struct recog_data): New field alternative_enabled_p.
13639 (skip_alternative): New inline function.
13640 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
13641 (record_reg_classes): Skip alternative according to the
13642 "enabled" attribute.
13643
13644 * doc/md.texi: Add documention for the "enabled" attribute.
13645
13646 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
13647
13648 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
13649 * postreload.c (reload_cse_simplify_operands): Replace 'm'
13650 constraint with TARGET_MEM_CONSTRAINT.
13651 * recog.c (asm_operand_ok, preprocess_constraints,
13652 constrain_operands): Likewise.
13653 * regclass.c (record_reg_classes): Likewise.
13654 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
13655 * reload1.c (maybe_fix_stack_asms): Likewise.
13656 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
13657 * recog.h: Adjust comment.
13658 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
13659 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
13660 * doc/md.texi: Add a note to description of 'm' constraint.
13661 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
13662
13663 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
13664
13665 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
13666 that the bitfield is of integral type before testing its precision.
13667
13668 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
13669 Sa Liu <saliu@de.ibm.com>
13670
13671 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
13672 __modti3, __udivti3, __umodti3 and __udivmodti4.
13673 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
13674 that implement TImode mul and div functions.
13675 * config/spu/multi3.c: New. Implement __multi3.
13676 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
13677 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
13678 functions on SPU.
13679
13680 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
13681
13682 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
13683 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
13684 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
13685 tls_sysv_suffix): New mode and mode attribute iterators.
13686 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
13687 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
13688 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
13689 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
13690 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
13691 iterators.
13692
13693 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
13694
13695 PR tree-optimization/36329
13696 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
13697 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
13698 * cgraphbuild.c (initialize_inline_failed): Use the latter
13699 macro in lieu of the former.
13700 * ipa-inline.c (cgraph_mark_inline): Likewise.
13701 (cgraph_decide_inlining_of_small_function): Likewise.
13702 (cgraph_decide_inlining): Likewise.
13703 (cgraph_decide_inlining_incrementally): Likewise.
13704
13705 2008-05-26 Tristan Gingold <gingold@adacore.com>
13706 Anatoly Sokolov <aesok@post.ru>
13707
13708 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
13709 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
13710 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
13711 optimization for 'avr6' architecture.
13712
13713 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
13714
13715 PR target/34932
13716 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
13717
13718 2008-05-26 Richard Guenther <rguenther@suse.de>
13719
13720 * tree-ssa-sccvn.c (expr_has_constants): Declare.
13721 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
13722
13723 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
13724
13725 PR middle-end/36253
13726 * caller-save.c (insert_restore): Verify alignment of spill space.
13727 (insert_save): Likewise.
13728 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
13729 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
13730 (STACK_SLOT_ALIGNMENT): Likewise.
13731 * function.c (LOCAL_ALIGNMENT): Removed.
13732 (get_stack_local_alignment): New.
13733 (assign_stack_local): Use it. Set alignment on stack slot.
13734 (assign_stack_temp_for_type): Use get_stack_local_alignment.
13735 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
13736 (STACK_SLOT_ALIGNMENT): New.
13737 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
13738 stack slot in XFmode.
13739
13740 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
13741
13742 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
13743
13744 PR/36321
13745 * config/i386/i386.md (allocate_stack_worker_64): Make sure
13746 argument operand in rax isn't removed.
13747
13748 2008-05-26 Richard Guenther <rguenther@suse.de>
13749
13750 PR middle-end/36300
13751 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
13752 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
13753
13754 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
13755
13756 PR bootstrap/36331
13757 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
13758
13759 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
13760
13761 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
13762 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
13763
13764 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
13765
13766 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
13767 build a trampoline if we don't want one.
13768 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
13769 return zero for nested functions if we don't want a trampoline.
13770
13771 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
13772
13773 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
13774
13775 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
13776
13777 PR fortran/18428
13778 * c.opt: Removed undocumented option '-lang-fortran'.
13779 * c-common.h: Removed global variable 'lang_fortran'.
13780 * c-opts.c (c_common_handle_option): Removed code to handle
13781 option '-lang-fortran'. Updated includes.
13782 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
13783 definition of '__GFORTRAN__'.
13784 (define__GNUC__): Reimplemented to use BASEVER and
13785 cpp_define_formatted.
13786 (builtin_define_with_value_n): Removed.
13787 * c-incpath.h: Renamed to ...
13788 * incpath.h: ... this.
13789 * c-incpath.c: Renamed to ...
13790 * incpath.c: ... this. Updated includes.
13791 * fix-header.c: Updated includes.
13792 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
13793 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
13794 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
13795
13796 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
13797
13798 * tree.h: Update the table of flags used on tree nodes.
13799 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
13800 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
13801 (FORCED_LABEL): Add access check.
13802 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
13803 (ASM_INPUT_P): Likewise.
13804 (ASM_VOLATILE_P): Likewise.
13805 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
13806 (OMP_SECTION_LAST): Access private_flag directly.
13807 (OMP_RETURN_NOWAIT): Likewise.
13808 (OMP_PARALLEL_COMBINED): Likewise.
13809 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
13810 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
13811 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
13812 deprecated_flag directly.
13813
13814 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
13815
13816 * final.c (frame_pointer_needed): Removed.
13817 * flags.h (frame_pointer_needed): Likewise.
13818
13819 * function.h (rtl_data): Add frame_pointer_needed.
13820 (frame_pointer_needed): New.
13821
13822 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
13823
13824 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
13825
13826 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
13827
13828 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
13829 SRC is a REG.
13830
13831 2008-05-25 Alan Modra <amodra@bigpond.net.au>
13832
13833 * c-common.c (strip_array_types): Move function to..
13834 * tree.c: ..here.
13835 (get_inner_array_type): Delete.
13836 * c-common.h (strip_array_types): Move declaration to..
13837 * tree.h: ..here.
13838 (get_inner_array_type): Delete.
13839 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
13840 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
13841 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
13842 * config/pa/pa.c (emit_move_sequence): Likewise.
13843
13844 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
13845
13846 * config/i386/i386.md (*sse_prologue_save_insn): Set length
13847 attribute to 34.
13848
13849 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
13850
13851 * function.c: Include target hook for nonlocal_goto frame value.
13852
13853 2008-05-24 Richard Guenther <rguenther@suse.de>
13854
13855 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
13856 variable can be only accessed through a pointer or a union.
13857
13858 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13859
13860 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
13861 * doc/extend.texi: Likewise.
13862
13863 2008-05-23 DJ Delorie <dj@redhat.com>
13864
13865 * config/m32c/jump.md (untyped_call): Add.
13866
13867 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
13868 for A24 to PSImode.
13869 (m32c_address_cost): Detail costs for indirect offsets.
13870
13871 2008-05-23 Rafael Espíndola <espindola@google.com>
13872
13873 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
13874 if a node is a SUBREG.
13875 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
13876 is a SUBREG.
13877
13878 2008-05-23 Paul Brook <paul@codesourcery.com>
13879 Carlos O'Donell <carlos@codesourcery.com>
13880
13881 * doc/extend.texi: Clarify use of __attribute__((naked)).
13882 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
13883 * target.h (gcc_target): Add allocate_stack_slots_for_args.
13884 * function.c (use_register_for_decl): Use
13885 targetm.calls.allocate_stack_slots_for_args.
13886 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
13887 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
13888 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
13889
13890 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
13891
13892 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
13893
13894 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
13895
13896 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
13897 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
13898 is only rounded once.
13899
13900 2008-05-23 Richard Guenther <rguenther@suse.de>
13901
13902 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
13903
13904 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
13905 Jakub Jelinek <jakub@redhat.com>
13906
13907 PR target/36079
13908 * configure.ac: Handle --enable-cld.
13909 * configure: Regenerated.
13910 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
13911 * config/i386/i386.h (struct machine_function): Add needs_cld field.
13912 (ix86_current_function_needs_cld): New define.
13913 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
13914 (cld): New isns pattern.
13915 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
13916 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
13917 * config/i386/i386.opt (mcld): New option.
13918 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
13919 TARGET_CLD and ix86_current_function_needs_cld.
13920 (override_options): Use -mcld by default for 32-bit code if
13921 USE_IX86_CLD.
13922
13923 * doc/install.texi (Options specification): Document --enable-cld.
13924 * doc/invoke.texi (Machine Dependent Options)
13925 [i386 and x86-64 Options]: Add -mcld option.
13926 (Intel 386 and AMD x86-64 Options): Document -mcld option.
13927
13928 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
13929 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
13930 (return_in_memory_64): Likewise.
13931 (return_in_memory_ms_64): Likewise.
13932
13933 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13934
13935 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
13936 * builtins.c (fold_builtin_fpclassify): New.
13937 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
13938 * builtins.def (BUILT_IN_FPCLASSIFY): New.
13939 * c-common.c (handle_type_generic_attribute): Adjust to accept
13940 fixed arguments before an elipsis.
13941 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
13942 * doc/extend.texi: Document __builtin_fpclassify.
13943
13944 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
13945
13946 * omp-low.c (gate_expand_omp_ssa): Remove.
13947 (pass_expand_omp_ssa): Remove.
13948 (gate_expand_omp): Do not check for flag_openmp_ssa.
13949 * common.opt (-fopenmp-ssa): Remove.
13950 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
13951
13952 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
13953
13954 * config/sh/sh.opt (mfixed-range): New option.
13955 * config/sh/sh-protos.h (sh_fix_range): Declare.
13956 * config/sh/sh.c (sh_fix_range): New function.
13957 * config/sh/sh.h (sh_fixed_range_str): Declare.
13958 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
13959 is not empty.
13960 * doc/invoke.texi (SH Options): Document -mfixed-range.
13961
13962 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
13963
13964 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
13965 it before the redeclaration.
13966
13967 2008-05-22 Anatoly Sokolov <aesok@post.ru>
13968
13969 * config/avr/avr.c (get_sequence_length): Add new function.
13970 (expand_prologue, expand_epilogue): Remove duplicate code.
13971
13972 2008-05-22 Rafael Espíndola <espindola@google.com>
13973
13974 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
13975 sharing.
13976
13977 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
13978
13979 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
13980 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
13981
13982 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
13983 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
13984 (vect_update_misalignment_for_peel): Likewise.
13985 (vector_alignment_reachable_p): Likewise.
13986 * tree-vect-transform.c (vectorizable_load): Likewise.
13987 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
13988 (get_vectype_for_scalar_type): Pass mode of scalar_type
13989 to UNITS_PER_SIMD_WORD.
13990
13991 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
13992 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
13993 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
13994 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
13995 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
13996
13997 2008-05-22 Ira Rosen <irar@il.ibm.com>
13998
13999 PR tree-optimization/36293
14000 * tree-vect-transform.c (vect_transform_strided_load): Don't check
14001 if the first load must be skipped because of a gap.
14002
14003 2008-05-22 Richard Guenther <rguenther@suse.de>
14004
14005 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
14006 more cases of offset disambiguation that is possible if
14007 strict-aliasing rules apply.
14008 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
14009 for basic offset and type-based disambiguation.
14010
14011 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
14012
14013 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
14014 ix86_expand_vector_set on V16QImode for SSE4.1.
14015
14016 2008-05-21 Tom Tromey <tromey@redhat.com>
14017
14018 * c.opt (Wimport): Mark as undocumented.
14019 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
14020 -Wno-import.
14021 (Warning Options): Likewise.
14022 * doc/cppopts.texi: Don't mention -Wimport.
14023
14024 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
14025
14026 PR tree-optimization/36287
14027 PR tree-optimization/36286
14028 * lambda-code.c (build_access_matrix): Do not use the loop->num
14029 for computing the number of induction variables: use the loop depth
14030 instead.
14031
14032 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
14033
14034 PR/36280
14035 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
14036 option -f(no-)leading-underscore.
14037
14038 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
14039
14040 * config/i386/i386.c (ix86_expand_vector_init_general): Use
14041 GET_MODE_NUNITS (mode).
14042
14043 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
14044
14045 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
14046 (-mmulhw): Add 464 to description.
14047 (-mdlmzb): Likewise.
14048 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
14049 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
14050 464fp entries.
14051 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
14052 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
14053 * config/rs6000/rs6000.md: Update comments for 464.
14054
14055 2008-05-21 Janis Johnson <janis187@us.ibm.com>
14056
14057 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
14058
14059 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
14060
14061 * config/i386/sse.md (vec_extractv4sf): Removed.
14062 (vec_extractv2df): Likewise.
14063 (vec_extractv2di): Likewise.
14064 (vec_extractv4si): Likewise.
14065 (vec_extractv8hi): Likewise.
14066 (vec_extractv16qi): Likewise.
14067 (vec_extract<mode>): New.
14068
14069 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
14070
14071 * config/i386/sse.md (vec_setv4sf): Removed.
14072 (vec_setv2df): Likewise.
14073 (vec_setv2di): Likewise.
14074 (vec_setv4si): Likewise.
14075 (vec_setv8hi): Likewise.
14076 (vec_setv16qi): Likewise.
14077 (vec_set<mode>): New.
14078
14079 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
14080
14081 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
14082 goto for vec_concat and vec_interleave.
14083
14084 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
14085
14086 * config/i386/sse.md (vec_initv4sf): Removed.
14087 (vec_initv2df): Likewise.
14088 (vec_initv2di): Likewise.
14089 (vec_initv4si): Likewise.
14090 (vec_initv8hi): Likewise.
14091 (vec_initv16qi): Likewise.
14092 (vec_init<mode>): New.
14093
14094 2008-05-21 Joseph Myers <joseph@codesourcery.com>
14095
14096 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
14097
14098 2008-05-21 Tom Tromey <tromey@redhat.com>
14099
14100 * ggc-zone.c (lookup_page_table_if_allocated): New function.
14101 (zone_find_object_offset): Likewise.
14102 (gt_ggc_m_S): Likewise.
14103 (highest_bit): Likewise.
14104 * ggc-page.c (gt_ggc_m_S): New function.
14105 * stringpool.c (string_stack): Remove.
14106 (init_stringpool): Update.
14107 (ggc_alloc_string): Use ggc_alloc.
14108 (maybe_delete_ident): New function.
14109 (ggc_purge_stringpool): Likewise.
14110 (gt_ggc_m_S): Remove.
14111 * ggc-common.c (ggc_protect_identifiers): New global.
14112 (ggc_mark_roots): Call ggc_purge_stringpool. Use
14113 ggc_protect_identifiers.
14114 * ggc.h (ggc_protect_identifiers): Declare.
14115 (gt_ggc_m_S): Update.
14116 (ggc_purge_stringpool): Declare.
14117 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
14118 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
14119 special case.
14120 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
14121
14122 2008-05-21 David S. Miller <davem@davemloft.net>
14123
14124 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
14125 tmake_file.
14126
14127 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
14128
14129 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
14130 once finished.
14131
14132 2008-05-20 David Daney <ddaney@avtrex.com>
14133
14134 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
14135 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
14136 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
14137 UNSPEC_UPDATE_GOT_VERSION): Renumber.
14138 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
14139 (atomic_hiqi_op): New define_code_iterator.
14140 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
14141 mips_expand_compare_and_swap_12.
14142 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
14143 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
14144 (sync_<optab><mode>, sync_old_<optab><mode>,
14145 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
14146 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
14147 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
14148 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
14149 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
14150 (test_and_set_12): New insn.
14151 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
14152 sync_new_<optab><mode>, sync_old_nand<mode>,
14153 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
14154 clobber to operand 0 for SI and DI mode insns.
14155 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
14156 mips_gen_fn_4): New typedefs.
14157 (mips_gen_fn_ptrs): Define new union type.
14158 (mips_expand_compare_and_swap_12): Remove declaration.
14159 (mips_expand_atomic_qihi): Declare function.
14160 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
14161 (mips_expand_atomic_qihi): ... this. Use new generator function
14162 parameter.
14163 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
14164 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
14165 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
14166 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
14167 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
14168 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
14169 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
14170 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
14171 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
14172 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
14173 New macros.
14174
14175 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
14176
14177 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
14178 the missing break.
14179
14180 2008-05-20 Anatoly Sokolov <aesok@post.ru>
14181
14182 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
14183 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
14184 (avr_attribute_table): Add 'OS_main' function attribute.
14185 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
14186 functions with 'OS_main' attribute.
14187
14188 2008-05-20 Richard Guenther <rguenther@suse.de>
14189
14190 PR tree-optimization/35204
14191 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
14192 helper, split out from ...
14193 (DFS): ... here. Make the DFS walk non-recursive.
14194
14195 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
14196 Jan Sjodin <jan.sjodin@amd.com>
14197
14198 PR tree-optimization/36181
14199 * tree-parloops.c (loop_has_vector_phi_nodes): New.
14200 (parallelize_loops): Don't parallelize when the loop has vector
14201 phi nodes.
14202
14203 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
14204 Sebastian Pop <sebastian.pop@amd.com>
14205
14206 * tree-loop-linear.c (gather_interchange_stats): Look in the access
14207 matrix, and never look at the tree representation of the memory
14208 accesses.
14209 (linear_transform_loops): Computes parameters and access matrices.
14210 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
14211 when fails.
14212 (access_matrix_get_index_for_parameter): New.
14213 * tree-data-ref.h (struct access_matrix): New.
14214 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
14215 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
14216 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
14217 am_vector_index_for_loop): New.
14218 (struct data_reference): Add field access_matrix.
14219 (DR_ACCESS_MATRIX): New.
14220 (compute_data_dependences_for_loop): Update declaration.
14221 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
14222 * lambda.h (lambda_vector_vec_p): Declared.
14223 * lambda-code.c: Depend on pointer-set.h.
14224 (lambda_collect_parameters_from_af, lambda_collect_parameters,
14225 av_for_af_base, av_for_af, build_access_matrix,
14226 lambda_compute_access_matrices): New.
14227 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
14228
14229 2008-05-20 Joseph Myers <joseph@codesourcery.com>
14230
14231 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
14232 $SOURCEDIR/include.
14233
14234 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
14235 Sebastian Pop <sebastian.pop@amd.com>
14236
14237 PR tree-optimization/36206
14238 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
14239 FOLD_CONVERSIONS.
14240 (instantiate_scev_1): Rename flags to fold_conversions.
14241 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
14242 outeside instantiation_loop.
14243 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
14244 (evolution_function_is_affine_or_constant_p): Removed.
14245 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
14246 instantiate_scev.
14247 (analyze_siv_subscript): Pass in the loop nest number.
14248 Call evolution_function_is_affine_in_loop instead of
14249 evolution_function_is_affine_p.
14250 (analyze_overlapping_iterations): Pass in the loop nest number.
14251
14252 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
14253 Sebastian Pop <sebastian.pop@amd.com>
14254
14255 PR tree-optimization/36206
14256 * tree-chrec.h (chrec_fold_op): New.
14257 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
14258 and other trees.
14259
14260 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
14261
14262 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
14263 (DIRS_EQ): New.
14264 (remove_duplicates): Do not set inode on non-inode systems.
14265 Use DIRS_EQ.
14266
14267 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
14268
14269 * config.gcc (tm_file): Update comments about relative pathnames.
14270
14271 2008-05-20 Richard Guenther <rguenther@suse.de>
14272
14273 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
14274 * tree-ssa-sccvn.c (process_scc): Likewise.
14275 * tree-ssa-sink.c (execute_sink_code): Likewise.
14276 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
14277 * tree-vrp.c (process_assert_insertions): Likewise.
14278 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
14279 (perform_tree_ssa_dce): Likewise.
14280 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
14281 (dump_dominator_optimization_stats): Likewise.
14282 * tree-vectorizer.c (vectorize_loops): Likewise.
14283
14284 2008-05-20 Richard Guenther <rguenther@suse.de>
14285
14286 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
14287
14288 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
14289
14290 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
14291 (ix86_i386elf_return_in_memory): Likewise.
14292 (ix86_i386interix_return_in_memory): Likewise.
14293 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
14294 (SUBTARGET_RETURN_IN_MEMORY): New.
14295 * config/i386/i386elf.h: Likewise.
14296 * config/i386/ptx4-i.h: Likewise.
14297 * config/i386/sol2-10.h: Likewise.
14298 * config/i386/sysv4.h: Likewise.
14299 * config/i386/vx-common.h: Likewise.
14300 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
14301 * config/i386/i386.c (ix86_return_in_memory): Made static and
14302 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
14303 (ix86_i386elf_return_in_memory): Removed.
14304 (ix86_i386interix_return_in_memory): Removed.
14305 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
14306 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
14307
14308 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
14309
14310 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
14311
14312 2008-05-19 Xinliang David Li <davidxl@google.com>
14313
14314 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
14315 * opts.c: Ditto.
14316 * common.opt: Ditto.
14317 * doc/invoke.texi: Ditto.
14318
14319 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
14320
14321 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
14322 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
14323
14324 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
14325
14326 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
14327 sizes of operand array from 8/4 to 4/2.
14328 (ix86_expand_vector_init_general): Change size of operand array
14329 from 32 to 16. Remove op0, op1 and half_mode.
14330
14331 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
14332
14333 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
14334 (ix86_expand_vector_init_interleave): Likewise.
14335 (ix86_expand_vector_init_general): Use them. Assert
14336 word_mode == SImode when n_words == 4.
14337
14338 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
14339
14340 * config/i386/i386.c (ix86_secondary_reload): New static function.
14341 (TARGET_SECONDARY_RELOAD): New define.
14342 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
14343 * config/i386/i386.md (reload_outqi): Remove.
14344
14345 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14346
14347 PR middle-end/35509
14348 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
14349 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
14350 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
14351 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
14352 (fold_builtin_1): Likewise.
14353 * builtins.def (BUILT_IN_ISINF_SIGN): New.
14354 c-common.c (check_builtin_function_arguments): Handle
14355 BUILT_IN_ISINF_SIGN.
14356 * doc/extend.texi: Document __builtin_isinf_sign.
14357 * fold-const.c (operand_equal_p): Handle COND_EXPR.
14358
14359 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
14360
14361 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
14362 EH cleanup at the end of the pass, search for those that have been
14363 turned into forwarder blocks and do the cleanup on their successor.
14364
14365 2008-05-18 Richard Guenther <rguenther@suse.de>
14366
14367 * tree-cfg.c (verify_gimple_expr): Allow conversions from
14368 pointers to sizetype and vice versa.
14369
14370 2008-05-18 Xinliang David Li <davidxl@google.com>
14371
14372 * gcc/tree-ssa-dce.c: Coding style fix.
14373 (check_pow): Documentation comment.
14374 (check_log): Documenation comment. Coding style fix.
14375 (is_unnecessary_except_errno_call): Ditto.
14376 (gen_conditions_for_pow): Ditto.
14377 (gen_conditions_for_log): Ditto.
14378 (gen_shrink_wrap_conditions): Ditto.
14379 (shrink_wrap_one_built_in_calls): Ditto.
14380 * gcc/doc/invoke.texi: Better documentation string.
14381 * ChangeLog: Fix wrong change log entries from
14382 May 17 checkin on function call DCE.
14383
14384 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
14385
14386 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
14387
14388 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
14389
14390 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
14391 * df-problems.c (simulation routines): Fixed block comment to
14392 properly say how to add forwards scanning functions.
14393
14394 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
14395
14396 * tree-inline.c (setup_one_parameter): Remove dead code.
14397
14398 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
14399
14400 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
14401 a BIT_AND_EXPR only for an INTEGER_TYPE.
14402
14403 2008-05-17 Xinliang David Li <davidxl@google.com>
14404
14405 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
14406 (check_pow, check_log, is_unnecessary_except_errno_call): New
14407 functions to check for eliminating math functions that are pure
14408 except for setting errno.
14409 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
14410 general condition expressions for shrink-wrapping pow/log calls.
14411 (gen_shrink_wrap_conditions): Ditto.
14412 (shrink_wrap_one_built_in_call): Ditto.
14413 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
14414 (mark_operand_necessary): If debugging, output if OP is necessary.
14415 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
14416 unnecessary.
14417 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
14418 opt level >= 2.
14419 * gcc/common.opt: New user flag -ftree-builtin-dce.
14420 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
14421
14422 2008-05-16 David S. Miller <davem@davemloft.net>
14423
14424 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
14425 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
14426
14427 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
14428
14429 PR target/36246
14430 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
14431
14432 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
14433
14434 * ifcvt.c (dead_or_predicable): Rename
14435 df_simulate_one_insn_backwards to df_simulate_one_insn.
14436 * recog.c (peephole2_optimize): Ditto.
14437 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
14438 Ditto.
14439 * df.h: Rename df_simulate_one_insn_backwards to
14440 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
14441 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
14442 scanning of defs and uses.
14443 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
14444 (df_simulate_one_insn_forwards): Removed.
14445
14446 2008-05-16 Doug Kwan <dougkwan@google.com>
14447
14448 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
14449 QNaN & SNaN.
14450 (real_from_string): Handle NaNs and Inf as approriate.
14451
14452 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
14453
14454 * doc/gty.texi (Source Files Containing Type Information): Note
14455 that headers should appear first in the gtfiles list.
14456
14457 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
14458
14459 * tree.def (COND_EXEC): Properly documented this code.
14460
14461 2008-05-16 Diego Novillo <dnovillo@google.com>
14462
14463 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
14464 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
14465 the new field.
14466
14467 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
14468
14469 * tree-ssa-dse (max_stmt_uid): Removed.
14470 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
14471 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
14472 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
14473 * function.h (cfun.last_stmt_uid): New field.
14474 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
14475 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
14476 New functions.
14477 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
14478 (create_stmt_ann): Initialize the ann->uid field.
14479 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
14480 with new calls.
14481 * tree-flow.h (renumber_gimple_stmt_uids): New function.
14482
14483 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
14484
14485 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
14486 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
14487 (init_empty_tree_cfg): Call it.
14488
14489 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
14490
14491 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
14492 Update all users.
14493
14494 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
14495
14496 * doc/invoke.text (-fdump-tree-*-verbose): New option.
14497 * tree-dump.c (dump_options): New verbose option.
14498 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
14499 Add verbose dump.
14500 * tree-pass.h (TDF_VERBOSE): New dump flag.
14501 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
14502 (tree-flow.h): Added include.
14503 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
14504
14505 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
14506
14507 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
14508
14509 From Jie Zhang <jie.zhang@analog.com>
14510 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
14511 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
14512 mcpu=bf561-none and mcpu=bf561-0.2.
14513 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
14514 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
14515 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
14516 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
14517 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
14518 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
14519 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
14520 option.
14521 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
14522 (cputype_selected): Remove.
14523 (bfin_handle_option): Don't use cputype_selected.
14524 (override_options): When no mcpu option, enable all workarounds.
14525 Don't use bfin_workarounds.
14526 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
14527 processor type.
14528 (DEFAULT_CPU_TYPE): Don't define.
14529
14530 2008-05-16 Richard Guenther <rguenther@suse.de>
14531
14532 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
14533 on deletion of the last stmt.
14534
14535 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
14536
14537 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
14538 V8HImode for SSE2 and V16QImode for SSE4.1.
14539
14540 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
14541
14542 * cgraph.h (compute_inline_parameters): Made public.
14543 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
14544 variable_generate_summary, function_write_summary,
14545 variable_write_summary, variable_read_summary. Added generate_summary,
14546 write_summary, read_summary.
14547 * cgraphunit.c (cgraph_process_new_functions): Changed call from
14548 pass_ipa_inline.function_generate_summary, to
14549 compute_inline_parameters.
14550 * ipa-inline.c (compute_inline_parameters): Made public and added
14551 node parameter.
14552 (compute_inline_parameters_for_current): New function.
14553 (pass_inline_param): Now calls compute_inline_parameters_for_current.
14554 (inline_generate_summary): Removed parameter and made to loop over
14555 all cgraph nodes.
14556 (pass_ipa_inline): Updated for new IPA_PASS structure.
14557 * passes.c (execute_ipa_summary_passes): Now is called once per
14558 pass rather than once per node*pass.
14559
14560 2008-05-15 Anatoly Sokolov <aesok@post.ru>
14561
14562 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
14563 avr_have_mul_p, avr_asm_only_p): Remove variables.
14564 (avr_override_options): Remove initialization of removed variables.
14565 (avr_file_start): Convert removed variables to fields of
14566 'struct base_arch_s *avr_current_arch'.
14567 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
14568 (AVR_HAVE_MUL): (Ditto.).
14569 (AVR_HAVE_MOVW): (Ditto.).
14570 (AVR_HAVE_LPMX): (Ditto.).
14571 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
14572 avr_asm_only_p): Remove declaration.
14573
14574 2008-05-15 Diego Novillo <dnovillo@google.com>
14575
14576 * config/arm/arm.c (arm_return_in_memory): Fix return type.
14577 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
14578
14579 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
14580
14581 PR middle-end/36194
14582 * combine.c (check_conversion): Rename back to check_promoted_subreg.
14583 Don't call record_truncated_value from here.
14584 (record_truncated_value): Turn it into a for_each_rtx callback.
14585 (record_truncated_values): New function.
14586 (combine_instructions): Call note_uses with record_truncated_values.
14587 Change name of check_conversion to check_promoted_subreg.
14588
14589 2008-05-15 Janis Johnson <janis187@us.ibm.com>
14590
14591 * doc/sourcebuild.texi: Document support for torture tests.
14592
14593 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
14594
14595 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
14596 to alternative 4 of operand 2.
14597
14598 2008-05-15 Richard Guenther <rguenther@suse.de>
14599
14600 * tree-pass.h (current_pass): Declare.
14601 (get_pass_for_id): Likewise.
14602 * passes.c (passes_by_id, passes_by_id_size): New globals.
14603 (set_pass_for_id): New function.
14604 (get_pass_for_id): Likewise.
14605 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
14606 (execute_function_todo): Flush per function statistics.
14607 * toplev.c (compile_file): Init statistics.
14608 (general_init): Do early statistics initialization.
14609 (finalize): Finish statistics.
14610 * statistics.h (statistics_early_init): Declare.
14611 (statistics_init): Likewise.
14612 (statistics_fini): Likewise.
14613 (statistics_fini_pass): Likewise.
14614 (statistics_counter_event): Likewise.
14615 (statistics_histogram_event): Likewise.
14616 * statistics.c: New file.
14617 * Makefile.in (OBJS-common): Add statistics.o.
14618 (statistics.o): Add dependencies.
14619 * doc/invoke.texi (-fdump-statistics): Document.
14620
14621 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
14622 (insert): Likewise.
14623 (execute_pre): Use statistics_counter_event.
14624 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
14625 (substitute_and_fold): Increment it. Use statistics_counter_event.
14626
14627 2008-05-15 Diego Novillo <dnovillo@google.com>
14628
14629 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
14630
14631 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
14632 * tree-ssa-alias.c (new_type_alias): Remove references to
14633 sub-variables from comment.
14634 * tree-ssa-operands.c (swap_tree_operands): Likewise.
14635
14636 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
14637
14638 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
14639 attribute to 1 only for insertps alternative.
14640
14641 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
14642
14643 * config/bfin/bfin.md (loadbytes): New pattern.
14644 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
14645 (bfin_init_builtins): Initialize it.
14646 (bdesc_1arg): Add it.
14647
14648 2008-05-15 Sa Liu <saliu@de.ibm.com>
14649
14650 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
14651 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
14652 * testsuite/lib/target-supports.exp: Add
14653 check_effective_target_fortran_integer_16.
14654
14655 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
14656
14657 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
14658 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
14659 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
14660 (TARGET_RETURN_IN_MEMORY): Define.
14661
14662 2008-05-15 Richard Guenther <rguenther@suse.de>
14663
14664 PR middle-end/36244
14665 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
14666 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
14667 represent unmodifiable vars.
14668
14669 2008-05-15 Richard Guenther <rguenther@suse.de>
14670
14671 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
14672 INDIRECT_REF and TARGET_MEM_REF.
14673 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
14674 TARGET_MEM_REF.
14675
14676 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
14677 H.J. Lu <hongjiu.lu@intel.com>
14678
14679 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
14680 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
14681 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
14682 insn alternatives. Add missing alternatives.
14683 (*vec_concatv2di_rex64_sse4_1): Likewise.
14684 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
14685 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
14686 Require TARGET_SSE.
14687
14688 2008-05-15 Richard Guenther <rguenther@suse.de>
14689
14690 PR tree-optimization/36009
14691 PR tree-optimization/36204
14692 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
14693 (determine_invariantness_stmt): Record the loop a store is
14694 always executed in.
14695 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
14696 dependency.
14697
14698 2008-05-15 Richard Guenther <rguenther@suse.de>
14699
14700 PR tree-optimization/34330
14701 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
14702 through the pointer will alias the SMT.
14703
14704 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
14705
14706 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
14707
14708 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
14709
14710 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
14711
14712 2008-05-14 Michael Meissner <michael.meissner@amd.com>
14713 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
14714
14715 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
14716 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
14717 (vashl_optab): New optab for vector/vector shifts.
14718 (vashr_optab): Ditto.
14719 (vlshr_optab): Ditto.
14720 (vrotl_optab): Ditto.
14721 (vrotr_optab): Ditto.
14722 (optab_subtype): New enum for optab_for_tree_code call.
14723 (optab_for_tree_code): Add enum optab_subtype argument.
14724
14725 * optabs.c (optab_for_tree_code): Take an additional argument to
14726 distinguish between a vector shift by a scalar and vector shift by
14727 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
14728 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
14729 vector shift by a vector.
14730 (expand_widen_pattern_expr): Pass additional argument to
14731 optab_for_tree_code.
14732
14733 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
14734 vrotl_optab, vrotr_optab.
14735
14736 * expr.c (expand_expr_real_1): Update calls to
14737 optab_for_tree_code to distinguish between vector shifted by a
14738 scalar and vector shifted by a vector.
14739 * tree-vectorizer.c (supportable_widening_operation): Ditto.
14740 (supportable_narrowing_operation): Ditto.
14741 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
14742 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
14743 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
14744 (vect_create_epilog_for_reduction): Ditto.
14745 (vectorizable_reduction): Ditto.
14746 (vectorizable_operation): Ditto.
14747 (vect_strided_store_supported): Ditto.
14748 (vect_strided_load_supported): Ditto.
14749 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
14750 * expmed.c (expand_shift): Ditto.
14751
14752 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
14753 scalar type.
14754 (ashr@var{m}3): Ditto.
14755 (vashl@var{m}3): Document new vector/vector shift standard name.
14756 (vashr@var{m}3): Ditto.
14757 (vlshr@var{m}3): Ditto.
14758 (vrotl@var{m}3): Ditto.
14759 (vrotr@var{m}3): Ditto.
14760
14761 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
14762 (PPERM_INVERT): Ditto.
14763 (PPERM_REVERSE): Ditto.
14764 (PPERM_REV_INV): Ditto.
14765 (PPERM_ZERO): Ditto.
14766 (PPERM_ONES): Ditto.
14767 (PPERM_SIGN): Ditto.
14768 (PPERM_INV_SIGN): Ditto.
14769 (PPERM_SRC1): Ditto.
14770 (PPERM_SRC2): Ditto.
14771
14772 * config/i386/sse.md (mulv2di3): Add SSE5 support.
14773 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
14774 allows a memory operand to be the value being added, and split it
14775 to improve vectorization.
14776 (sse5_pmacsdqh_mem): Ditto.
14777 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
14778 (sse5_mulv2div2di3_high): Ditto.
14779 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
14780 (vec_pack_trunc_v4si): Ditto.
14781 (vec_pack_trunc_v2di): Ditto.
14782 (sse5_pcmov_<mode>): Remove code that tried to use use
14783 andps/andnps instead of pcmov.
14784 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
14785 pmacsdqh instructions.
14786 (vec_widen_smult_lo_v4si): Ditto.
14787
14788 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
14789 (PPERM_INVERT): Ditto.
14790 (PPERM_REVERSE): Ditto.
14791 (PPERM_REV_INV): Ditto.
14792 (PPERM_ZERO): Ditto.
14793 (PPERM_ONES): Ditto.
14794 (PPERM_SIGN): Ditto.
14795 (PPERM_INV_SIGN): Ditto.
14796 (PPERM_SRC1): Ditto.
14797 (PPERM_SRC2): Ditto.
14798 (ix86_expand_sse_movcc): Move the SSE5 test after the if
14799 true/false tests.
14800 (ix86_expand_int_vcond): If SSE5 generate all possible integer
14801 comparisons.
14802 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
14803 says ignore whether the last reference is a memory operand.
14804
14805 2008-05-14 Michael Meissner <michael.meissner@amd.com>
14806 Paolo Bonzini <bonzini at gnu dot org>
14807
14808 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
14809 shift patterns.
14810
14811 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
14812 (vlshr<mode>3): Rename from vlshr<mode>3.
14813 (vashr<mode>3): Rename from vashr<mode>3.
14814 (mulv4sf3): Change the names of vector shift patterns.
14815 (mulv4si3): Ditto.
14816 (negv4sf2): Ditt.
14817
14818 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
14819 shift insns.
14820
14821 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
14822 (SI_SHLHI): Ditto.
14823 (SI_SHL): Ditto.
14824 (SI_SHLI): Ditto.
14825 (SI_ROTH): Ditto.
14826 (SI_ROTHI): Ditto.
14827 (SI_ROT): Ditto.
14828 (SI_ROTI): Ditto.
14829 (SPU_RL_0): Ditto.
14830 (SPU_RL_1): Ditto.
14831 (SPU_RL_2): Ditto.
14832 (SPU_RL_3): Ditto.
14833 (SPU_RL_4): Ditto.
14834 (SPU_RL_5): Ditto.
14835 (SPU_RL_6): Ditto.
14836 (SPU_RL_7): Ditto.
14837 (SPU_SL_0): Ditto.
14838 (SPU_SL_1): Ditto.
14839 (SPU_SL_2): Ditto.
14840 (SPU_SL_3): Ditto.
14841 (SPU_SL_4): Ditto.
14842 (SPU_SL_5): Ditto.
14843 (SPU_SL_6): Ditto.
14844 (SPU_SL_7): Ditto.
14845
14846 * config/spu/spu.md (v): New iterator macro to add v for vector types.
14847 (floatunssidf2_internal): Change vector/vector shift names.
14848 (floatunsdidf2_internal): Ditto.
14849 (mulv8hi3): Ditto.
14850 (ashrdi3): Ditto.
14851 (ashrti3): Ditto.
14852 (cgt_df): Ditto.
14853 (cgt_v2df): Ditto.
14854 (dftsv): Ditto.
14855 (vashl<mode>3): Rename from ashl<mode>3.
14856 (vashr<mode>3): Rename from ashr<mode>3.
14857 (vlshr<mode>3): Rename from lshr<mode>3.
14858 (vrotl<mode>3): Rename from rotl<mode>3.
14859
14860 2008-05-14 Michael Meissner <michael.meissner@amd.com>
14861
14862 PR target/36224
14863 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
14864 multiply gives the wrong value when doing widening multiplies.
14865 (vec_widen_smult_lo_v4si): Ditto.
14866
14867 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
14868
14869 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
14870 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
14871 emit_library_call_value.
14872 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
14873 * tree.h (ECF_LIBCALL_BLOCK): Removed.
14874 * calls.c (initialize_argument_information, precompute_arguments,
14875 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
14876 (precompute_arguments): Removed flags parameter.
14877 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
14878
14879 2008-05-14 Richard Guenther <rguenther@suse.de>
14880
14881 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
14882 Make sure to register the store if the use is a PHI_NODE.
14883
14884 2008-05-14 Olivier Hainque <hainque@adacore.com>
14885
14886 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
14887 memory if the component is to be referenced in BLKmode according
14888 to get_inner_reference.
14889
14890 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
14891
14892 * calls.c (emit_library_call_value_1): Restore code clearing
14893 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
14894
14895 2008-05-14 Olivier Hainque <hainque@adacore.com>
14896 Nicolas Roche <roche@adacore.com>
14897
14898 * configure.ac: Add support for a "gcc_subdir" variable in
14899 config-lang.in, to denote a subdirectory where the language/GCC
14900 integration files are to be found.
14901 * configure: Regenerate.
14902
14903 2008-05-14 Ira Rosen <irar@il.ibm.com>
14904
14905 PR tree-optimization/36098
14906 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
14907 value for the first load in the group in case of a gap.
14908 (vect_build_slp_tree): Check that there are no gaps in loads.
14909
14910 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
14911
14912 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
14913 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
14914 expand_copysign_bit, ): Change call to emit_no_conflict_block to
14915 emit_insn and remove unneeded code to construct extra args.
14916 (emit_no_conflict_block): Removed.
14917 * optabls.h: (emit_no_conflict_block): Removed.
14918 * cse.c (cse_extended_basic_block): Remove search for
14919 REG_NO_CONFLICT note.
14920 * global.c: Removed incorrect comment added in revision 117.
14921 * expr.c (convert_move): Change call to emit_no_conflict_block to
14922 emit_insn.
14923 * recog.c: Change comments so that they do not mention
14924 REG_NO_CONFLICT.
14925 * local_alloc.c (combine_regs): Removed last parameter.
14926 (no_conflict_p): Removed.
14927 (block_alloc): Removed note, no_conflict_combined_regno and set
14928 local vars. Removed all code to process REG_NO_CONFLICT blocks.
14929 (combine_regs): Removed already_dead and code to look for
14930 REG_NO_CONFLICT notes.
14931 * lower_subreg (remove_retval_note): Removed code to look for
14932 REG_NO_CONFLICT block.
14933 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
14934 (resolve_clobber): Remove code to process libcalls that have
14935 REG_NO_CONFLICT notes.
14936 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
14937 case.
14938 * combine.c (can_combine_p, distribute_notes): Removed
14939 REG_NO_CONFLICT case.
14940 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
14941 to emit_insns.
14942 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
14943 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
14944 Ditto.
14945 * reg-notes.def (NO_CONFLICT): Removed.
14946
14947 2008-05-14 David S. Miller <davem@davemloft.net>
14948
14949 * config/sparc/sparc.c (sparc_profile_hook): If
14950 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
14951 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
14952 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
14953
14954 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
14955
14956 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
14957
14958 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
14959
14960 PR target/36222
14961 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
14962 and op1 expansion before vector concat to have less live pseudos.
14963
14964 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
14965
14966 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
14967 ix86_expand_vector_set if supported.
14968
14969 2008-05-13 Diego Novillo <dnovillo@google.com>
14970 Kenneth Zadeck <zadeck@naturalbridge.com>
14971
14972 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
14973
14974 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
14975 phinodes_print_statistics, init_ssanames, fini_ssanames,
14976 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
14977 release_ssa_name, release_defs, replace_ssa_name_symbol,
14978 ssanames_print_statistics): Move ...
14979 * tree-flow.h: ... here.
14980 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
14981 Use FN instead of cfun.
14982 (make_ssa_name_fn): Rename from make_ssa_name.
14983 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
14984 * tree-flow-inline.h (make_ssa_name): Move from
14985 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
14986 * omp-low.c (expand_omp_parallel):
14987 * tree-flow-inline.h (redirect_edge_var_map_result):
14988 * tree-ssa.c (init_tree_ssa): Add argument FN.
14989 Use it instead of cfun. Update all users.
14990
14991 2008-05-13 Tom Tromey <tromey@redhat.com>
14992
14993 PR preprocessor/22168:
14994 * doc/cpp.texi (Top): Update menu.
14995 (Alternatives to Wrapper #ifndef): New node.
14996 (Other Directives): Document deprecation.
14997 (Obsolete Features): Remove menu.
14998 (Assertions): Merge node into Obsolete Features.
14999 (Obsolete once-only headers): Move earlier; rename to Alternatives
15000 to Wrapper #ifndef.
15001 * doc/cppopts.texi: Update.
15002 * c.opt (Wdeprecated): Enable for C and ObjC.
15003 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
15004 (C++ Dialect Options): Move -Wno-deprecated from here to...
15005 (Warning Options): ... here.
15006
15007 2008-05-13 Richard Guenther <rguenther@suse.de>
15008
15009 PR middle-end/36227
15010 * fold-const.c (fold_sign_changed_comparison): Do not allow
15011 changes in pointer-ness.
15012
15013 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
15014
15015 PR target/24713
15016 * config/sh/sh.c (sh_expand_prologue): Don't clear
15017 RTX_FRAME_RELATED_P for push insns.
15018
15019 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
15020
15021 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
15022
15023 2008-05-12 Anatoly Sokolov <aesok@post.ru>
15024
15025 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
15026 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
15027 Use 'machine->is_leaf' instead of 'leaf_func_p'.
15028
15029 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
15030
15031 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
15032 (*vec_concatv4sf_sse): This.
15033 (*sse2_concatv2si): Renamed to ...
15034 (*vec_concatv2si_sse2): This.
15035 (*sse1_concatv2si): Renamed to ...
15036 (*vec_concatv2si_sse): This.
15037 (*vec_concatv2di_rex): Renamed to ...
15038 (*vec_concatv2di_rex64): This.
15039 (*vec_concatv2si_sse4_1): New.
15040 (*vec_concatv2di_rex64_sse4_1): Likewise.
15041
15042 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
15043
15044 PR rtl-optimization/36111
15045 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
15046 that was created for swappable operands.
15047
15048 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
15049
15050 PR ada/36001
15051 * Makefile.in: Substitute GNATMAKE and GNATBIND.
15052 * configure.ac: Add call to ACX_PROG_GNAT.
15053
15054 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
15055
15056 * optc-gen.awk: Fix comment typo.
15057
15058 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
15059
15060 * pretty-print.c (pp_integer_with_precision): Use
15061 HOST_LONG_LONG_FORMAT.
15062
15063 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
15064
15065 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
15066
15067 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
15068
15069 * config/i386/i386.c (bdesc_ptest): Removed.
15070 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
15071 (bdesc_args): Add __builtin_ia32_ptestz128,
15072 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
15073 (ix86_init_mmx_sse_builtins): Updated.
15074 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
15075 (ix86_expand_builtin): Updated.
15076
15077 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
15078
15079 * tree-cfg.c (valid_fixed_convert_types_p): New function.
15080 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
15081
15082 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
15083
15084 * value-prof.c (interesting_stringop_to_profile): Do not
15085 return early for BUILT_IN_MEMPCPY.
15086
15087 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
15088
15089 * calls.c (expand_call): Don't use callgraph to increase
15090 preferred_stack_boundary.
15091
15092 * cgraph.h (cgraph_rtl_info): Use unsigned on
15093 preferred_incoming_stack_boundary.
15094
15095 * final.c (rest_of_clean_state): Use unsigned on
15096 preferred_stack_boundary.
15097
15098 2008-05-09 Tom Tromey <tromey@redhat.com>
15099
15100 PR preprocessor/22231:
15101 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
15102 proceeding.
15103
15104 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
15105
15106 PR tree-optimization/36129
15107 * tree-ssa-ccp.c: Include value-prof.h.
15108 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
15109 built-in function was folded to a constant.
15110 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
15111
15112 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
15113 Sebastian Pop <sebastian.pop@amd.com>
15114
15115 * tree-scalar-evolution.c: Document instantiate_scev.
15116 (instantiate_parameters_1): Renamed instantiate_scev_1.
15117 Don't use the same loop for instantiation_loop and evolution_loop.
15118 (instantiate_scev): New.
15119 (instantiate_parameters): Moved...
15120 (resolve_mixers): Update call to instantiate_scev_1 to pass the
15121 same loop twice. Maintains the semantics for this function.
15122 * tree-scalar-evolution.h (instantiate_scev): Declare.
15123 (instantiate_parameters): ...here. Now static inline.
15124 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
15125 instead of resolve_mixers.
15126
15127 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
15128
15129 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
15130
15131 2008-05-09 Tomas Bily <tbily@suse.cz>
15132
15133 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
15134 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
15135 * tree-ssa-structalias.c (get_constraint_for): Likewise.
15136 * c-common.c (c_common_truthvalue_conversion): Likewise.
15137 * tree-object-size.c (compute_object_offset): Likewise.
15138 * tree-inline.c (estimate_num_insns_1): Likewise.
15139 * varasm.c (const_hash_1, compare_constant, copy_constant)
15140 (compute_reloc_for_constant, output_addressed_constants)
15141 (initializer_constant_valid_p): Likewise.
15142 * c-omp.c (check_omp_for_incr_expr): Likewise.
15143 * gimplify.c (gimplify_expr): Likewise.
15144 * c-typeck.c (c_finish_return): Likewise.
15145 * tree-vectorizer.c (supportable_widening_operation)
15146 (supportable_narrowing_operation): Likewise.
15147 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
15148 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
15149 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
15150 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
15151 (descr_info_loc): Likewise.
15152 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
15153 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
15154 (fold_unary): Likewise.
15155 * builtins.c (get_pointer_alignment): Likewise.
15156 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
15157 (instantiate_parameters_1): Likewise.
15158 * tree.c (expr_align, stabilize_reference): Likewise.
15159 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
15160 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
15161 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
15162 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
15163 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
15164 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
15165 Likewise.
15166 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
15167 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
15168 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
15169 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
15170 (forward_propagate_comparison)
15171 (tree_ssa_forward_propagate_single_use_vars): Likewise.
15172 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
15173 * emit-rtl.c (component_ref_for_mem_expr)
15174 (set_mem_attributes_minus_bitpos): Likewise.
15175 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
15176 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
15177 Likewise.
15178 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
15179 (build_function_call, pointer_diff, build_compound_expr)
15180 (c_finish_return): Likewise.
15181 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
15182 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
15183 Likewise.
15184 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
15185 * expr.c (is_aligning_offset): Likewise.
15186 * tree-ssa-alias.c (is_escape_site): Likewise.
15187 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
15188 (check_all_va_list_escapes): Likewise.
15189 * tree-ssa-loop-ivopts.c (determine_base_object)
15190 (determine_common_wider_type): Likewise.
15191 * dojump.c (do_jump): Likewise.
15192 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
15193 * tree-gimple.c (is_gimple_cast): Likewise.
15194 * fold-const.c (decode_field_reference, )
15195 (fold_sign_changed_comparison, fold_unary, fold_comparison)
15196 (fold_binary): Likewise.
15197 * tree-ssa-alias-warnings.c (find_alias_site_helper)
15198 (already_warned_in_frontend_p): Likewise.
15199 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
15200 * tree.c (really_constant_p, get_unwidened): Likewise.
15201 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
15202 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
15203 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
15204 Likewise.
15205 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
15206 CONVERT_EXPR_P.
15207 (CONVERT_EXPR_P): Define.
15208 (CASE_CONVERT): Define.
15209
15210 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
15211
15212 PR middle-end/36117
15213 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
15214 (delete_unmarked_insns): When deleting a call, call
15215 delete_unreachable_blocks.
15216 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
15217 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
15218
15219 2008-05-08 Richard Guenther <rguenther@suse.de>
15220
15221 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
15222 (-ftree-salias): Likewise.
15223 (salias-max-implicit-fields): Remove param documentation.
15224 (salias-max-array-elements): Likewise.
15225 * tree-pass.h (pass_create_structure_vars): Remove.
15226 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
15227 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
15228 * tree-ssa-alias.c (create_structure_vars): Remove.
15229 (gate_structure_vars): Likewise.
15230 (pass_create_structure_vars): Likewise.
15231 (gate_build_alias): Likewise.
15232 (pass_build_alias): Adjust to run always and dump the function.
15233 * common.opt (ftree-salias): Hide.
15234 * passes.c (init_optimization_passes): Remove
15235 pass_create_structure_vars, adjust comment.
15236 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
15237 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
15238 * opts.c (decode_options): Do not set flag_tree_salias.
15239 (common_handle_option): Add OPT_ftree_salias to the backward
15240 compatibility section.
15241
15242 2008-05-08 Richard Guenther <rguenther@suse.de>
15243
15244 * tree-flow-inline.h (var_can_have_subvars): Move ...
15245 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
15246 * tree-flow.h (var_can_have_subvars): Remove.
15247 (push_fields_onto_fieldstack): Remove.
15248 (sort_fieldstack): Likewise.
15249 (struct fieldoff): Move ...
15250 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
15251 alias_set and base_for_components fields.
15252 (sort_fieldstack): Make static.
15253 (push_fields_onto_fieldstack): Likewise. Remove code that
15254 handles anything but RECORD_TYPEs. Remove alias_set and
15255 base_for_components handling.
15256 (create_variable_info_for): Adjust.
15257
15258 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
15259
15260 * common.opt (Wframe-larger-than=): Shorten the help message
15261 to one line.
15262 * doc/invoke.texi (Wframe-larger-than=): Add more description.
15263
15264 2008-05-08 Rafael Espíndola <espindola@google.com>
15265
15266 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
15267 trap.
15268 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
15269 trap and that both operands are gimple values.
15270 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
15271 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
15272 is a fp operation.
15273
15274 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
15275
15276 * read-rtl.c (join_c_conditions): Return the first string if the
15277 two strings are equal.
15278
15279 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
15280
15281 * gensupport.h (pred_data): Add a "num_codes" field.
15282 (add_predicate_code): Declare.
15283 * gensupport.c (add_predicate_code): New function.
15284 (std_pred_table): Add an "allows_const_p" field.
15285 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
15286 Remove the (incomplete) list of such codes from the codes field.
15287 (init_predicate_table): Use add_predicate_code. Add all
15288 RTX_CONST_OBJs if allows_const_p is true.
15289 * genrecog.c (process_define_predicate): Use add_predicate_code.
15290
15291 2008-05-08 David Daney <ddaney@avtrex.com>
15292 Richard Sandiford <rsandifo@nildram.co.uk>
15293
15294 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
15295 special case of constant zero operands.
15296 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
15297 old and new values. Special case constant zero values.
15298 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
15299 fails.
15300 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
15301 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
15302
15303 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
15304
15305 PR target/36090
15306 * simplify-rtx.c (simplify_plus_minus): Create CONST of
15307 similar RTX_CONST_OBJ before CONST_INT.
15308
15309 2008-05-08 Steve Ellcey <sje@cup.hp.com>
15310
15311 * stmt.c (expand_stack_restore): Change sa mode if needed.
15312
15313 2008-05-08 Richard Guenther <rguenther@suse.de>
15314
15315 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
15316 return type to bool.
15317 (ix86_sol10_return_in_memory): Likewise.
15318 (ix86_i386elf_return_in_memory): Likewise.
15319 (ix86_i386interix_return_in_memory): Likewise.
15320 * config/i386/i386.c (ix86_return_in_memory): Likewise.
15321 (ix86_sol10_return_in_memory): Likewise.
15322 (ix86_i386elf_return_in_memory): Likewise.
15323 (ix86_i386interix_return_in_memory): Likewise.
15324
15325 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
15326
15327 PR bootstrap/36180
15328 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
15329 fndecl argument.
15330 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
15331 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
15332 declared in front.
15333
15334 2008-05-08 Richard Guenther <rguenther@suse.de>
15335
15336 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
15337 * tree-data-ref.h (struct dr_alias): Remove subvars field.
15338 (DR_SUBVARS): Remove.
15339 * tree-dfa.c (dump_subvars_for): Remove.
15340 (debug_subvars_for): Likewise.
15341 (dump_variable): Do not dump subvars.
15342 (remove_referenced_var): Do not remove subvars.
15343 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
15344 (lookup_subvars_for_var): Remove.
15345 (get_subvars_for_var): Likewise.
15346 (get_subvars_at): Likewise.
15347 (get_first_overlapping_subvar): Likewise.
15348 (overlap_subvar): Likewise.
15349 * tree-flow.h (subvar_t): Remove.
15350 (struct var_ann_d): Remove subvars field.
15351 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
15352 argument. Remove special handling of SFTs.
15353 (compute_tag_properties): Likewise.
15354 (set_initial_properties): Likewise.
15355 (compute_call_clobbered): Likewise.
15356 (count_mem_refs): Likewise.
15357 (compute_memory_partitions): Likewise.
15358 (compute_flow_insensitive_aliasing): Likewise.
15359 (setup_pointers_and_addressables): Likewise.
15360 (new_type_alias): Likewise.
15361 (struct used_part): Remove.
15362 (used_portions): Likewise.
15363 (struct used_part_map): Likewise.
15364 (used_part_map_eq): Likewise.
15365 (used_part_map_hash): Likewise.
15366 (free_used_part_map): Likewise.
15367 (up_lookup): Likewise.
15368 (up_insert): Likewise.
15369 (get_or_create_used_part_for): Likewise.
15370 (create_sft): Likewise.
15371 (create_overlap_variables_for): Likewise.
15372 (find_used_portions): Likewise.
15373 (create_structure_vars): Likewise.
15374 * tree.def (STRUCT_FIELD_TAG): Remove.
15375 * tree.h (MTAG_P): Adjust.
15376 (struct tree_memory_tag): Remove base_for_components and
15377 unpartitionable flags.
15378 (struct tree_struct_field_tag): Remove.
15379 (SFT_PARENT_VAR): Likewise.
15380 (SFT_OFFSET): Likewise.
15381 (SFT_SIZE): Likewise.
15382 (SFT_NONADDRESSABLE_P): Likewise.
15383 (SFT_ALIAS_SET): Likewise.
15384 (SFT_UNPARTITIONABLE_P): Likewise.
15385 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
15386 (union tree_node): Remove sft field.
15387 * alias.c (get_alias_set): Remove special handling of SFTs.
15388 * print-tree.c (print_node): Remove handling of SFTs.
15389 * tree-dump.c (dequeue_and_dump): Likewise.
15390 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
15391 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
15392 * tree-predcom.c (set_alias_info): Do not set subvars.
15393 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
15394 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
15395 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
15396 (add_vars_for_offset): Remove.
15397 (add_virtual_operand): Remove special handling of SFTs.
15398 (add_call_clobber_ops): Likewise.
15399 (add_call_read_ops): Likewise.
15400 (get_asm_expr_operands): Likewise.
15401 (get_modify_stmt_operands): Likewise.
15402 (get_expr_operands): Likewise.
15403 (add_to_addressable_set): Likewise.
15404 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
15405 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
15406 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
15407 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
15408 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
15409 (tree_node_structure): Likewise.
15410 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
15411 handling of SFTs.
15412 (find_what_p_points_to): Likewise.
15413
15414 2008-05-08 Sa Liu <saliu@de.ibm.com>
15415
15416 * config/spu/spu.md: Fixed subti3 pattern.
15417
15418 2008-05-08 Richard Guenther <rguenther@suse.de>
15419
15420 PR middle-end/36154
15421 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
15422 sure to create a representative for trailing arrays for PTA.
15423
15424 2008-05-08 Richard Guenther <rguenther@suse.de>
15425
15426 PR middle-end/36172
15427 * fold-const.c (operand_equal_p): Two objects which types
15428 differ in pointerness are not equal.
15429
15430 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
15431
15432 * calls.c (compute_argument_block_size): Add argument tree fndecl.
15433 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
15434 (emit_library_call_value_1): Add new variable fndecl initialized by
15435 NULL_TREE. It should be the decl type of orgfun, but this information
15436 seems not to be available here, so it uses the default calling abi.
15437 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
15438 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
15439 by TARGET_RETURN_IN_MEMORY.
15440 * config/i386/i386-interix.h: Likewise.
15441 * config/i386/i386.h: Likewise.
15442 * config/i386/i386elf.h: Likewise.
15443 * config/i386/ptx4-i.h: Likewise.
15444 * config/i386/sol2-10.h: Likewise.
15445 * config/i386/sysv4.h: Likewise.
15446 * config/i386/vx-common.h: Likewise.
15447 * config/cris/cris.h: Removed #if 0 clause.
15448 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
15449 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
15450 argument.
15451 (ix86_sol10_return_in_memory): Likewise.
15452 (ix86_i386elf_return_in_memory): New.
15453 (ix86_i386interix_return_in_memory): New.
15454 * config/mt/mt-protos.h (mt_return_in_memory): New.
15455 * config/mt/mt.c: Likewise.
15456 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
15457 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
15458 * config/bfin/bfin.h: Likewise.
15459 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
15460 argument.
15461 * config/bfin/bfin.c: Likewise.
15462 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
15463 * config/alpha/unicosmk.h: Likewise.
15464 * config/i386/cygming.h: Likewise.
15465 * config/iq2000/iq2000.h: Likewise.
15466 * config/mips/mips.h: Likewise.
15467 * config/mn10300/mn10300.h: Likewise.
15468 * config/rs6000/rs6000.h: Likewise.
15469 * config/score/score.h: Likewise.
15470 * config/spu/spu.h: Likewise.
15471 * config/v850/v850.h: Likewise.
15472 * defaults.h: Likewise.
15473 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
15474 * expr.c (emit_block_move): Adjust use of
15475 OUTGOING_REG_PARM_STACK_SPACE.
15476 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
15477 OUTGOING_REG_PARM_STACK_SPACE.
15478 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
15479
15480 2008-05-08 Jakub Jelinek <jakub@redhat.com>
15481
15482 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
15483 on OMP_RETURN for OMP_FOR.
15484
15485 PR debug/35896
15486 * dwarf2out.c (dw_expand_expr, common_check): Removed.
15487 (fortran_common): New function.
15488 (gen_variable_die): Call fortran_common instead of common_check,
15489 adjust for it returning tree instead of rtx. Formatting.
15490
15491 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
15492
15493 PR rtl/7335
15494 PR rtl/33826
15495 * see.c (see_copy_insn): Copy new pure const attributes for new call.
15496 * c-decl.c (merge_decls): Ditto.
15497 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
15498 to RTL_CONST_OR_PURE_CALL_P.
15499 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
15500 Initialized DECL_LOOPING_CONST_PURE.
15501 (process_call_operands): Set tree_side_effects properly.
15502 * tree.h (TREE_READONLY_DECL_P): Removed.
15503 (DECL_IS_PURE): Renamed to DECL_PURE_P.
15504 (DECL_LOOPING_OR_CONST_P): New macro.
15505 (struct tree_function_decl): Added looping_const_or_pure_p.
15506 (ECF_*) Renumbered.
15507 (ECF_LOOPING_OR_CONST_P): New macro.
15508 * rtlanal.c (pure_const_p): Removed.
15509 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
15510 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
15511 to RTL_CONST_CALL_P.
15512 * ipa-pure-const.c (pure_const_state_e): Added looping field.
15513 (check_decl, check_tree, check_call, scan_function): Initialize
15514 looping.
15515 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
15516 (static_execute): Set looping true for recursive functions.
15517 Undo setting state to IPA_NEITHER for recursive functions.
15518 * cse.c (cse_insn):
15519 * ifcvt.c (noce_can_store_speculate_p): Changed
15520 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
15521 RTL_CONST_OR_PURE_CALL_P.
15522 * dse.c (scan_insn): Ditto.
15523 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
15524 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
15525 RTL_CONST_OR_PURE_CALL_P.
15526 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
15527 pure_call_p to RTL_CONST_CALL_P.
15528 * gimplify.c (gimplify_call_expr): Clear side effects for
15529 non-looping pure and constant calls.
15530 * calls.c (emit_call_1): Set rtl flags from ecf flags.
15531 (flags_from_decl_or_type): Set ecf flags from decl flags.
15532 (initialize_argument_information): Turn off
15533 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
15534 Change const to pure if callee_copies is true rather than just
15535 turning off const.
15536 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
15537 way of marking pure calls.
15538 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
15539 Remove hack that was supposed to fix pr7335 and remove old
15540 way of marking pure calls.
15541 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
15542 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
15543 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
15544 RTL_CONST_OR_PURE_CALL_P.
15545 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
15546 * loop-invariant.c (find_exits, find_invariant_bb): Changed
15547 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
15548 * sched-deps.c (schedule_analyze): Ditto.
15549 * rtl.h (struct rtx_def): Use call field, unchanging field, and
15550 return_val field of calls to represent pure and const function info.
15551 (CONST_OR_PURE_CALL_P): Deleted macro.
15552 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
15553 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
15554 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
15555 TREE_READONLY.
15556 * tree-optimize.c (execute_fixup_cfg): Added test for
15557 ECF_LOOPING_CONST_OR_PURE.
15558 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
15559 DECL_PURE_P.
15560 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
15561 effects for looping pure or const calls.
15562 (verify_gimple_expr): Added verification code.
15563 * config/alpha/alpha.c (alpha_legitimize_address,
15564 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
15565 RTL_CONST_CALL_P.
15566 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
15567 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
15568 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
15569 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
15570 RTL_CONST_OR_PURE_CALL_P.
15571 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
15572 and const calls to be deleted.
15573
15574 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
15575
15576 PR target/35714
15577 * config/i386/mmx.md (mmx_subv2sf3): New expander.
15578 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
15579 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
15580 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
15581 to handle nonimmediate operands.
15582 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
15583 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
15584 to handle nonimmediate operands.
15585 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
15586 (mmx_pmulhrwv4hi3): New expander. Use
15587 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15588 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
15589 (sse2_umulv1siv1di3): New expander. Use
15590 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15591 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
15592 (mmx_eq<mode>3): New expander. Use
15593 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15594 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
15595 (mmx_uavgv8qi3): New expander. Use
15596 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15597 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
15598 (mmx_uavgv4hi3): New expander. Use
15599 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15600
15601 * config/i386/sse.md
15602 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
15603 to handle nonimmediate operands.
15604 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
15605 to handle nonimmediate operands.
15606 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
15607 to handle nonimmediate operands.
15608 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
15609 to handle nonimmediate operands.
15610 (sse2_unpckhpd_exp): New expander. Use
15611 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15612 (sse2_unpcklpd_exp): New expander. Use
15613 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15614 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
15615 to handle nonimmediate operands.
15616 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
15617 to handle nonimmediate operands.
15618 (*sse2_<plusminus_insn><mode>3): Rename from
15619 sse2_<plusminus_insn><mode>3 insn pattern.
15620 (sse2_<plusminus_insn><mode>3): New expander. Use
15621 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15622 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
15623 (sse2_umulv2siv2di3): New expander. Use
15624 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15625 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
15626 (sse4_1_mulv2siv2di3): New expander. Use
15627 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15628 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
15629 (sse2_pmaddwd): New expander. Use
15630 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15631 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
15632 (sse2_eq<mode>3): New expander. Use
15633 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15634 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
15635 (sse4_1_eqv2di3): New expander. Use
15636 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15637 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
15638 (sse2_uavgv16qi3): New expander. Use
15639 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15640 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
15641 (sse2_uavgv16qi3): New expander. Use
15642 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15643 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
15644 (sse2_uavgv8hi3): New expander. Use
15645 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15646 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
15647 (ssse3_pmulhrswv8hi3): New expander. Use
15648 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15649 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
15650 (ssse3_pmulhrswv4hi3): New expander. Use
15651 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15652
15653 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
15654 (<sse>_vmmul<mode>3): Ditto.
15655 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
15656 (divv2df3): Ditto.
15657 (ssse3_pmaddubsw128): Use register_operand for operand 1.
15658 (ssse3_pmaddubsw): Ditto.
15659
15660 * config/i386/i386.c (struct_builtin_description)
15661 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
15662 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
15663 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
15664 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
15665 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
15666 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
15667 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
15668 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
15669 (ix86_fixup_binary_operands): Assert that src1
15670 and src2 must have the same mode when swapped.
15671 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
15672 and ix86_binary_operator_ok. Do not force operands in registers
15673 when optimizing.
15674
15675 2008-05-07 Jan Hubicka <jh@suse.cz>
15676
15677 * cgraph.c (dump_cgraph_node): Update.
15678 * cgraph.h (cgraph_local_info): Break out inline summary.
15679 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
15680 hook.
15681 * ipa-inline (inline_summary): New accestor function.
15682 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
15683 cgraph_decide_inlining, compute_inline_parameters): Update.
15684 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
15685
15686 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
15687
15688 Cleanup ColdFire scheduling support and add V4 pipeline model.
15689
15690 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
15691 (define_attr cpu): Add cfv4 value.
15692 (define_attr type, define_attr type1): Merge into a single 'type'
15693 attribute. Update all uses.
15694 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
15695 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
15696 Update all uses.
15697 (define_attr opx_mem, define_attr opy_mem): Remove.
15698 (define_attr op_mem): Clean up, update comment.
15699 (define_attr size): Use specific values instead of general int.
15700 (define_attr guess, define_attr split): Remove. Update all uses.
15701 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
15702 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
15703 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
15704 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
15705 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
15706 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
15707 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
15708 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
15709 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
15710 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
15711 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
15712 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
15713 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
15714 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
15715 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
15716 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
15717 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
15718 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
15719 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
15720 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
15721 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
15722 Update or set attributes.
15723 (stack_tie): New fake instruction.
15724
15725 * config/m68k/m68k.h (TUNE_CFV4): New macro.
15726 (m68k_sched_attr_size): Update declaration.
15727 (m68k_sched_attr_type2): Remove.
15728 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
15729 Declare new bypass predicates.
15730
15731 * config/m68k/m68k.c (m68k_sched_issue_rate,
15732 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
15733 implementations.
15734 (TARGET_SCHED_ISSUE_RATE,
15735 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
15736 (override_options): Handle scheduling for ColdFire V4 core.
15737 (m68k_expand_prologue): Emit stack_tie.
15738 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
15739 'OP_TYPE_FPN'. Update all uses.
15740 (sched_guess_p): Remove.
15741 (sched_address_type): Handle symbolic addresses.
15742 (sched_get_operand): New static function.
15743 (sched_operand_type): Merge into sched_attr_op_type.
15744 (sched_attr_op_type): Handle FP registers, handle quick constants,
15745 update.
15746 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
15747 (m68k_sched_attr_size): Update. Move logic to ...
15748 (sched_get_attr_size_int): New static function.
15749 (sched_get_opxy_mem_type): New static function.
15750 (m68k_sched_attr_op_mem): Update.
15751 (m68k_sched_attr_type2): Remove.
15752 (sched_cfv4_bypass_data): New static variable.
15753 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
15754 (m68k_sched_issue_rate): Implement scheduler hook.
15755 (struct _sched_ib: enabled_p): New field.
15756 (m68k_sched_variable_issue): Update. Handle V4.
15757 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
15758 sched_dump_class_func_t, sched_dump_split_class,
15759 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
15760 sched_dump_dfa_class, m68k_sched_dump): Remove.
15761 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
15762 hook.
15763 (m68k_sched_init_global): Remove statisctics dumping, introduce
15764 sanity check that all instructions have pipeline reservations. Handle
15765 ColdFire V4 core.
15766 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
15767 Handle ColdFire V4 core.
15768 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
15769 New static functions.
15770 (m68k_sched_address_bypass_p): New bypass predicate.
15771 (sched_get_indexed_address_scale): New static function.
15772 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
15773
15774 * cf.md: Update comments.
15775 (define_attr type2): Remove. Use 'type' attribute instead.
15776 Update all uses.
15777 (cf_ib): Rename to cfv123_ib. Update all uses.
15778 (cf_oep): Rename to cfv123_oep. Update all uses.
15779 (cf_chr): Rename to cfv123_chr. Update all uses.
15780 (cf_mem): Rename to cfv123_mem. Update all uses.
15781 (cf_mac): Move to more appropriate place.
15782 (cfv123_guess): New automaton and cpu_unit.
15783 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
15784 Update uses of 'size' attribute. Handle before reload scheduling.
15785 (cfv123_guess): New dummy reservation for unhandled instructions.
15786 (cfv4_*): Pipeline description of ColdFire V4 core.
15787 (ignore): New reservation to handle 'ignore' type.
15788
15789 2008-05-07 Ian Lance Taylor <iant@google.com>
15790
15791 PR middle-end/36013
15792 * gimplify.c (find_single_pointer_decl_1): Don't look through
15793 indirections.
15794 (find_single_pointer_decl): Adjust comments.
15795
15796 2008-05-07 Jakub Jelinek <jakub@redhat.com>
15797
15798 PR middle-end/36137
15799 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
15800 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
15801
15802 PR middle-end/36106
15803 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
15804 integral type rather than floating point, then VIEW_CONVERT_EXPR
15805 to the floating point type.
15806
15807 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
15808
15809 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
15810 TFmode op0 to register.
15811
15812 2008-05-07 Alan Modra <amodra@bigpond.net.au>
15813
15814 * c-decl.c (grokdeclarator): Comment typo.
15815
15816 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
15817
15818 * tree-flow.h: Remove prototype for computed_goto_p.
15819 * tree-cfg.c (computed_goto_p): Make static.
15820
15821 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
15822
15823 PR target/35657
15824 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
15825 (contains_aligned_value_p): This. Handle _Decimal128.
15826 (ix86_function_arg_boundary): Only align _Decimal128 to its
15827 natural boundary and handle it properly.
15828
15829 2008-05-06 Martin Jambor <mjambor@suse.cz>
15830
15831 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
15832 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
15833 (ipcp_method_set_orig_node): Removed.
15834 (ipcp_cval_get_cvalue_type): Removed.
15835 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
15836 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
15837 (ipcp_cval_set_cvalue_type): Removed.
15838 (ipcp_cval_get_cvalue): Removed.
15839 (ipcp_cval_set_cvalue): Removed.
15840 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
15841 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
15842 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
15843 (ipcp_cval_meet): Renamed to ipa_lattice_meet
15844 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
15845 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
15846 (ipcp_get_ith_lattice): Changed parameters.
15847 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
15848 (ipcp_lattice_from_jfunc): Changed parameters.
15849 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
15850 (ipcp_method_cval_print): Added temporary variable info.
15851 (ipcp_redirect): Removed already unused local variable caller.
15852 (ipcp_redirect): New temporary variable orig_callee_info
15853 (ipcp_redirect): Removed newly unused local variable callee.
15854 (ipcp_redirect): Removed (a bit confusing) local variable type.
15855 (ipcp_insert_stage): Added local variable info.
15856 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
15857 renamed too
15858 (ipcp_formal_create): Removed.
15859 (ipcp_method_cval_set): Removed.
15860 (ipcp_propagate_stage): Renamed lattice variables.
15861 (ipcp_method_cval_set_cvalue_type): Removed.
15862 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
15863 (ipcp_print_all_lattices): Changed printed strings to refer to
15864 lattices rather than cvals.
15865 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
15866 (ipcp_propagate_const): Changed formal parameters.
15867 (build_const_val): Changed formal parameters.
15868 (ipcp_insert_stage): Removed useless variable cvalue
15869 (build_const_val): Changed formal parameters.
15870 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
15871 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
15872 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
15873 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
15874 (ipcp_print_func_profile_counts): Changed string from "method" to
15875 "function"
15876 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
15877 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
15878 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
15879 (ipcp_structures_print): Renamed to ipcp_print_all_structures
15880 (ipcp_profile_print): Renamed to ipcp_print_profile_data
15881 (ipcp_lat_is_const): Changed parameters and made inline.
15882 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
15883 (ipcp_redirect): Renamed to ipcp_need_redirect_p
15884 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
15885 the predicate condition directly
15886 (ipcp_propagate_stage): Added local variable args. Removed local
15887 variable callee. (Both are mere code simplifications.)
15888 (ipcp_method_dont_insert_const): Renamed to
15889 ipcp_node_not_modifiable_p.
15890 (ipcp_node_not_modifiable_p): Made inline.
15891 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
15892 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
15893 (ipcp_print_all_lattices): Removed variable cvalue
15894 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
15895 Updated comments.
15896
15897 2008-05-06 Olivier Hainque <hainque@adacore.com>
15898
15899 * tree-sra.c (try_instantiate_multiple_fields): Early return
15900 if field has POINTER_TYPE.
15901
15902 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
15903
15904 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
15905 by using 'q' specifier for instruction.
15906 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
15907
15908 2008-05-06 Anatoly Sokolov <aesok@post.ru>
15909
15910 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
15911 Change mode of zero_extract from QImode to HImode.
15912 (sign bit tests peepholes): (Ditto.).
15913
15914 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
15915
15916 * config/i386/mmx.md: Remove double backslashes from asm templates.
15917 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
15918 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
15919 to handle nonimmediate operands.
15920 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
15921 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
15922 to handle nonimmediate operands.
15923 (*mmx_<code>v2sf3_finite): New insn pattern.
15924 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
15925 (mmx_<code>v2sf3): New expander. Use
15926 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15927 (mmx_<plusminus_insn><mode>3): New expander. Use
15928 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15929 (*mmx_<plusminus_insn><mode>3): New insn pattern.
15930 (mmx_add<mode>3): Removed.
15931 (mmx_ssadd<mode>3): Ditto.
15932 (mmx_usadd<mode>3): Ditto.
15933 (mmx_sub<mode>3): Ditto.
15934 (mmx_sssub<mode>3): Ditto.
15935 (mmx_ussub<mode>3): Ditto.
15936 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
15937 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
15938 to handle nonimmediate operands.
15939 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
15940 insn pattern.
15941 (mmx_smulv4hi3_highpart): New expander. Use
15942 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15943 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
15944 insn pattern.
15945 (mmx_umulv4hi3_highpart): New expander. Use
15946 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15947 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
15948 (mmx_<code>v4hi3): New expander. Use
15949 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15950 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
15951 (mmx_<code>v8qi3): New expander. Use
15952 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15953 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
15954 (mmx_<code><mode>3): New expander. Use
15955 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15956
15957 2008-05-05 Jan Hubicka <jh@suse.cz>
15958
15959 PR tree-optimization/36118
15960 * passes.c (pass_init_dump_file): Fix dump header.
15961
15962 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
15963
15964 PR middle-end/36141
15965 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
15966 VCE for function decls.
15967
15968 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
15969
15970 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
15971
15972 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
15973
15974 * config/i386/i386.md (sat_plusminus): New.
15975 (plusminus_insn): Likewise.
15976 (plusminus_mnemonic): Likewise.
15977 (addsub): Removed.
15978 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
15979 (*<addsub><mode>3_cc_overflow): Renamed to ...
15980 (*<plusminus_insn><mode>3_cc_overflow): This.
15981 (*<addsub>si3_zext_cc_overflow): Renamed to ...
15982 (*<plusminus_insn>si3_zext_cc_overflow): This.
15983
15984 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
15985 (<plusminus_insn><mode>3): This.
15986 (*<addsub><mode>3): Renamed to ...
15987 (*<plusminus_insn><mode>3): This.
15988 (<sse>_vm<addsub><mode>3): Renamed to ...
15989 (<sse>_vm<plusminus_insn><mode>3): This.
15990 (sse3_h<addsub>v4sf3): Renamed to ...
15991 (sse3_h<plusminus_insn>v4sf3): This.
15992 (sse3_h<addsub>v2df3): Renamed to ...
15993 (sse3_h<plusminus_insn>v2df3): This.
15994 (<plusminus_insn><mode>3): New.
15995 (*<plusminus_insn><mode>3): Likewise.
15996 (sse2_<plusminus_insn><mode>3): Likewise.
15997 (add<mode>): Removed.
15998 (*add<mode>3): Likewise.
15999 (sse2_ssadd<mode>3): Likewise.
16000 (sse2_usadd<mode>3): Likewise.
16001 (sub<mode>3): Likewise.
16002 (*sub<mode>3): Likewise.
16003 (sse2_sssub<mode>3): Likewise.
16004 (sse2_ussub<mode>3): Likewise.
16005
16006 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
16007
16008 * gthr-single.h: Add in required interface elements as per gthr.h.
16009 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
16010 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
16011 Generalize UNUSED macro.
16012 (__gthread_once): Add.
16013 (__gthread_key_create): Add.
16014 (__gthread_key_delete): Add.
16015 (__gthread_getspecific): Add.
16016 (__gthread_setspecific): Add.
16017
16018 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
16019
16020 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
16021 the same size types for the indirect reference on the rhs, then
16022 create a VCE.
16023
16024 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
16025
16026 * config/i386/i386.md
16027 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
16028 one insn template instead of template series.
16029 (*xordi_1_rex64): Ditto.
16030 (*xordi_2_rex64): Ditto.
16031
16032 2008-05-05 Ira Rosen <irar@il.ibm.com>
16033
16034 PR tree-optimization/36119
16035 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
16036 in case of SLP.
16037
16038 2008-06-04 Jan Hubicka <jh@suse.cz>
16039
16040 tree-optimization/36100
16041 * tree-pass.h (pass_O0_always_inline): Declare.
16042 * ipa-inline.c (inline_transform): Remove dead code.
16043 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
16044 pass_O0_always_inline): New.
16045 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
16046
16047 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
16048
16049 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
16050 mnemonic in this_param move for TARGET_64BIT.
16051
16052 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
16053
16054 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
16055 (*strmovsi_rex_1): Ditto.
16056 (*strsetsi_1): Ditto.
16057 (*strsetsi_rex_1): Ditto.
16058
16059 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
16060 adddicc expanders using SWI mode iterator.
16061
16062 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
16063
16064 PR target/36121
16065 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
16066 argument handling.
16067
16068 2008-05-04 David S. Miller <davem@davemloft.net>
16069
16070 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
16071 (sparc*-*-linux*): Use linux.h in tm_file.
16072 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
16073 compiler defaulting to 32-bit.
16074 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
16075 no longer needed.
16076 * config/sparc/linux.h: Remove definitions now obtained
16077 properly from linux.h
16078 * config/sparc/linux64.h: Likewise.
16079 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
16080 don't want this setting for 32-bit builds in a biarch compiler.
16081 * doc/install.texi: Add sparc-linux to list of targets
16082 supporting --enable-targets=all.
16083
16084 2008-05-03 Andrew Pinski <pinskia@gmail.com>
16085
16086 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
16087
16088 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
16089
16090 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
16091 after V4SI_FTYPE_V8HI.
16092 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
16093 case V4SI_FTYPE_V2DF.
16094
16095 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
16096
16097 * doc/invoke.texi (max-flow-memory-locations): Removed.
16098 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
16099
16100 2008-05-03 Richard Guenther <rguenther@suse.de>
16101
16102 PR middle-end/34973
16103 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
16104
16105 2008-05-02 David S. Miller <davem@davemloft.net>
16106
16107 * config.gcc (need_64bit_hwint): Document libcpp dependency.
16108
16109 2008-05-02 Simon Baldwin <simonb@google.com>
16110
16111 PR bootstrap/36108
16112 * c-common.h (warn_array_subscript_range): Removed.
16113 * c-common.c (warn_array_subscript_range): Ditto.
16114 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
16115 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
16116
16117 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
16118
16119 * config/i386/i386.c (ix86_special_builtin_type): New.
16120 (bdesc_special_args): Likewise.
16121 (ix86_expand_special_args_builtin): Likewise.
16122 (ix86_init_mmx_sse_builtins): Updated.
16123 (ix86_expand_builtin): Updated.
16124 (ix86_expand_store_builtin): Removed.
16125 (ix86_expand_unop_builtin): Likewise.
16126
16127 * config/i386/mm3dnow.h (__v2sf): Moved to ...
16128 * config/i386/mmintrin.h (__v2sf): Here.
16129
16130 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
16131 const __v2sf.
16132 (_mm_loadl_pi): Likewise.
16133 (_mm_storeh_pi): Replace __v2si with __v2sf.
16134 (_mm_storel_pi): Likewise.
16135
16136 * doc/extend.texi: Correct __builtin_ia32_loadhps,
16137 __builtin_ia32_loadlps, __builtin_ia32_storehps,
16138 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
16139 __builtin_ia32_loadlpd.
16140
16141 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
16142
16143 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
16144 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
16145 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
16146 (ix86_init_mmx_sse_builtins): Updated.
16147 (ix86_expand_args_builtin): Likewise.
16148 (ix86_expand_builtin): Likewise.
16149 (ix86_expand_unop1_builtin): Renamed to ...
16150 (ix86_expand_unop_vec_merge_builtin): This.
16151
16152 2008-05-01 Jan Hubicka <jh@suse.cz>
16153
16154 PR bootstrap/36100
16155 * ipa-inline.c (inline_generate_summary): Make static.
16156 (inline_transform): Do not call inlining at -O0; make static.
16157 * passes.c (execute_todo): Add sanity check.
16158 (execute_one_ipa_transform_pass): Execute proper flags.
16159
16160 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
16161
16162 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
16163 (DECL_NONADDRESSABLE_P): Likewise.
16164 * alias.c (record_component_aliases): Fix comment.
16165
16166 2008-05-01 Simon Baldwin <simonb@google.com>
16167
16168 * c-common.h (warn_array_subscript_range): New function.
16169 * c-common.c (warn_array_subscript_range): Ditto.
16170 * tree-vrp.c (check_array_ref): Corrected code to agree with
16171 comment, ignoring only arrays of size 0 or size 1.
16172 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
16173
16174 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
16175
16176 * config/i386/i386.c (ix86_builtin_type): Replace
16177 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
16178 (bdesc_args): Updated.
16179 (ix86_init_mmx_sse_builtins): Likewise.
16180 (ix86_expand_args_builtin): Likewise.
16181
16182 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
16183 with __v1di.
16184
16185 * doc/extend.texi: Correct __builtin_ia32_palignr.
16186
16187 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
16188
16189 PR target/36095
16190 * config/i386/i386.c (bdesc_crc32): Removed.
16191 (ix86_expand_crc32): Likewise.
16192 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
16193 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
16194 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
16195 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
16196 UINT_FTYPE_UINT_UCHAR.
16197 (bdesc_args): Updated. Add crc32 builtins.
16198 (ix86_init_mmx_sse_builtins): Updated.
16199 (ix86_expand_args_builtin): Updated to support subreg.
16200
16201 * doc/extend.texi: Correct __builtin_ia32_crc32di.
16202
16203 2008-05-01 Jan Hubicka <jh@suse.cz>
16204
16205 * tree-pass.h (opt_pass): Add IPA_PASS.
16206 (varpool_node, cgraph_node): Forward declare.
16207 (ipa_opt_pass): Define.
16208 (pass_ipa_inline): Turn into ipa_opt_pass.
16209 (pass_apply_inline): Remove.
16210 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
16211 (apply_inline): Turn into ....
16212 (inline_transform): ... this one.
16213 (inline_generate_summary): New function.
16214 (pass_apply_inline): Remove.
16215 * function.h (ipa_opt_pass): Forward declare structure; typedef;
16216 vector.
16217 (struct function): Add ipa_transforms_to_apply.
16218 * passes.c (register_one_dump_file): Work on IPA_PASS.
16219 (init_optimization_passes): Remove pass_inline_parameters and
16220 pass_apply_inline.
16221 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
16222 (execute_one_pass) ... here; apply transforms when possible.
16223 (add_ipa_transform_pass, execute_ipa_summary_asses,
16224 execute_one_ipa_transform_pass): New.
16225 (execute_ipa_pass_list): Update for IPA_PASS type.
16226
16227 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
16228
16229 * config/i386/i386.c (ix86_builtin_type): Add
16230 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
16231 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
16232 (bdesc_args): Add SSE4a builtins.
16233 (ix86_init_mmx_sse_builtins): Updated.
16234 (ix86_expand_args_builtin): Likewise.
16235 (ix86_expand_builtin): Likewise.
16236
16237 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
16238
16239 * config/i386/i386.c (ix86_builtin_type): Add
16240 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
16241 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
16242 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
16243 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
16244 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
16245 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
16246 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
16247 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
16248 and DI_FTYPE_DI_DI_INT.
16249 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
16250 (ix86_init_mmx_sse_builtins): Updated.
16251 (ix86_expand_args_builtin): Likewise.
16252 (ix86_expand_builtin): Likewise.
16253 (ix86_expand_binop_imm_builtin): Removed.
16254
16255 * doc/extend.texi: Correct __builtin_ia32_palignr128.
16256
16257 2008-04-30 Richard Guenther <rguenther@suse.de>
16258
16259 PR tree-optimization/32921
16260 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
16261
16262 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
16263
16264 * config/arm/arm.c (arm_unwind_emit): Use
16265 crtl->all_throwers_are_sibcalls instead of
16266 cfun->all_throwers_are_sibcalls.
16267 (arm_output_fn_unwind): Likewise.
16268 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
16269 instead of cfun->uses_pic_offset_table.
16270 (frv_expand_prologue): Likewise.
16271 (frv_frame_pointer_required): Likewise.
16272 (frv_expand_fdpic_call): Likewise.
16273 (frv_emit_movsi): Likewise.
16274 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
16275 cfun->returns_pcc_struct instead of
16276 current_function_returns_pcc_struct.
16277 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
16278 instead of cfun->calls_eh_return.
16279 (m32c_pushm_popm): Likewise.
16280 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
16281 "extern" declaration.
16282
16283 2008-04-30 Richard Guenther <rguenther@suse.de>
16284
16285 PR tree-optimization/21636
16286 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
16287 constant address.
16288 (evaluate_stmt): Print the likely value.
16289 (ccp_visit_stmt): Avoid excessive vertical spacing.
16290
16291 2008-04-30 Rafael Espíndola <espindola@google.com>
16292
16293 * builtins.c (fold_call_expr): Return realret.
16294 * tree-ssa-threadedge.c
16295 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
16296 __builtin_object_size.
16297
16298 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
16299
16300 * gcc.c (wrapper_string): New variable.
16301 (insert_wrapper): New function.
16302 (execute): New option -wrapper.
16303 * doc/invoke.texi (Overall Options): New driver option -wrapper.
16304
16305 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
16306
16307 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
16308 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
16309 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
16310 from...
16311 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
16312 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
16313 config/rs6000/e500crtres64gprctr.asm,
16314 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
16315 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
16316 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
16317 config/rs6000/e500crtsav64gprctr.asm,
16318 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
16319 config/rs6000/e500crtsavg64gprctr.asm: New files.
16320 * config/rs6000/t-ppccomm: Add build rules for new files.
16321 (LIB2FUNCS_STATIC_EXTRA): Add new files.
16322 * config/rs6000/t-netbsd: Add build rules for new files.
16323 (LIB2FUNCS_STATIC_EXTRA): New variable.
16324 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
16325 (CRTSAVRES_DEFAULT_SPEC): Likewise.
16326 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
16327
16328 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
16329
16330 * config/i386/i386.c (ix86_builtin_type): Add
16331 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
16332 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
16333 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
16334 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
16335 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
16336 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
16337 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
16338 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
16339 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
16340 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
16341 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
16342 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
16343 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
16344 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
16345 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
16346 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
16347 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
16348 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
16349 V1DI_FTYPE_V2SI_V2SI.
16350 (bdesc_2arg): Moved to ...
16351 (bdesc_args): Here.
16352 (ix86_init_mmx_sse_builtins): Updated.
16353 (ix86_expand_args_builtin): Updated. Take a pointer
16354 to const struct builtin_description. Handle comparison
16355 builtin functions.
16356 (ix86_expand_sse_compare): Take a new argument for swapping operands.
16357 (ix86_expand_builtin): Updated.
16358
16359 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
16360 (ssse3_pmaddubsw128): This.
16361 (ssse3_pmaddubswv4hi3): Renamed to ...
16362 (ssse3_pmaddubsw): This.
16363
16364 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
16365 (__builtin_ia32_packssdw128): Likewise.
16366 (__builtin_ia32_packuswb128): Likewise.
16367 (__builtin_ia32_pmaddubsw): Likewise.
16368 (__builtin_ia32_pmaddubsw128): Likewise.
16369
16370 2008-04-30 Richard Guenther <rguenther@suse.de>
16371
16372 PR tree-optimization/14847
16373 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
16374 (recognize_bits_test): Use it.
16375 (recognize_single_bit_test): Likewise.
16376
16377 2008-04-30 Martin Jambor <mjambor@suse.cz>
16378
16379 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
16380 instead of setting number of formal parameters to zero.
16381 (ipcp_init_stage): Do not set the number of actual parameters to zero
16382 either.
16383 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
16384 which are called with variable number of arguments.
16385 (ipcp_insert_stage): Explicitely skipping all nodes which are
16386 called with variable number of arguments.
16387 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
16388 number of parameters.
16389
16390 * ipa-prop.h (struct ipa_node_params): Added flag
16391 called_with_var_arguments
16392 (ipa_set_param_count): Added. Changed sole setter to use it.
16393 (ipa_get_param_count): Added. All readers of param_count
16394 converted to use it instead.
16395 (ipa_set_called_with_variable_arg): Added.
16396 (ipa_is_called_with_var_arguments): Added.
16397 (ipa_get_ith_param): Added. All readers of param_decls converted
16398 to use it instead.
16399 (ipa_set_cs_argument_count): Added, sole writer to argument_count
16400 changed to use it.
16401 (ipa_get_cs_argument_count): Added, all readers of argument_count
16402 changed to cal it.
16403 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
16404 to use it.
16405
16406 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
16407 (struct ipcp_lattice): Renamed cval_type to type
16408 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
16409
16410 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
16411 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
16412 (ipcp_insert_stage): Changed the type of variable cvalue to tree
16413 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
16414 (build_const_val): Changed the type of parameter cvalue to tree
16415 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
16416 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
16417
16418 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
16419 constant
16420
16421 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
16422 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
16423 (ipa_add_method): Renamed to ipa_push_func_to_list
16424 (ipa_remove_method): Renamed to ipa_pop_func_from_list
16425 (ipa_callsite_param_count): Removed.
16426 (ipa_callsite_param_count_set): Removed.
16427 (ipa_callsite_param): Removed.
16428 (ipa_callsite_callee): Removed.
16429 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
16430 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
16431 (ipa_method_formal_count): Removed.
16432 (ipa_method_formal_count_set): Removed.
16433 (ipa_method_get_tree): Removed.
16434 (ipa_method_tree_map_create): Removed.
16435 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
16436 (ipa_create_param_decls_array): Creates the array itself
16437 (ipa_create_param_decls_array): Temporary variable info instead of
16438 a few dereferences.
16439 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
16440 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
16441 (get_type): Removed.
16442 (ipa_jf_get_info_type): Removed.
16443 (ipa_node_create): Renamed to ipa_create_node_params
16444 (ipa_free): Renamed to ipa_free_all_node_params
16445 (ipa_nodes_create): Renamed to ipa_create_all_node_params
16446 (ipa_edges_create): Renamed to ipa_create_all_edge_args
16447 (ipa_edges_free): Renamed to ipa_free_all_edge_args
16448 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
16449 (ipa_free_all_node_params): Deallocation to jump_functions moved to
16450 ipa_free_all_edge_args
16451 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
16452 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
16453 (ipa_create_methodlist_node): Removed.
16454 (ipa_methodlist_method): Removed.
16455 (ipa_methodlist_method_set): Removed.
16456 (ipa_methodlist_next_method): Removed.
16457 (ipa_methodlist_next_method_set): Removed.
16458 (ipa_method_is_modified): Removed.
16459 (ipa_method_modify_create): Removed.
16460 (ipa_method_modify_init): Temporary variable info instead of a few
16461 dereferences.
16462 (ipa_detect_param_modifications): Temporary variable info instead of
16463 a few dereferences.
16464 (ipa_compute_jump_functions): Temporary variable info instead of
16465 a few dereferences.
16466 (ipa_method_modify_set): Removed.
16467 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
16468 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
16469 than craph_node as the first parameter.
16470 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
16471 (ipa_method_modify_init): Removed.
16472 (ipa_compute_jump_functions): Added a temp variable instead of
16473 repeatadly dereferencing the cgraph_edge.aux pointer
16474 (ipa_callsite_param_set_type): Removed.
16475 (ipa_compute_jump_functions): i renamed to index and moved to
16476 an inner block
16477 (ipa_callsite_param_set_info_type_formal): Removed.
16478 (ipa_callsite_param_set_info_type): Removed.
16479 (ipa_callsite_param_map_create): Removed.
16480 (ipa_callsite_tree): Removed.
16481 (ipa_callsite_caller): Removed.
16482 (ipa_pop_func_from_list): return_method removed to return_func
16483
16484 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
16485 prefixed all values with IPA_. Changed all users.
16486 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
16487 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
16488 and FORMAL_IPATYPE IPA_PASS_THROUGH.
16489 (union parameter_info): Renamed to jump_func_value.
16490 (union jump_func_value): Renamed value to constant
16491 (struct ipa_jump_func): Renamed info_type to value
16492 (struct ipa_node): Renamed to ipa_node_params
16493 (struct ipa_node_params): Renamed ipa_arg_num to param_count
16494 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
16495 (struct ipa_node_params): Renamed ipa_mod to modified_flags
16496 (struct ipa_edge): Renamed to ipa_edge_args
16497 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
16498 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
16499 (struct ipa_methodlist): Renamed to ipa_func_list
16500 (struct ipa_func_list): method_p renamed to node, next_method
16501 renamed to next
16502 (ipa_methodlist_p): Removed, switched all users to struct pointer
16503 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
16504
16505 2008-04-30 Alan Modra <amodra@bigpond.net.au>
16506
16507 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
16508 (rs6000_emit_epilogue): Use backchain to restore only when we
16509 have a large frame. Make use of frame pointer to restore if we
16510 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
16511
16512 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
16513
16514 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
16515 Add mode to zero_extract.
16516 (sign bit tests peepholes): (Ditto.).
16517
16518 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
16519
16520 * config/i386/i386.c (ix86_builtins): Replace Prescott New
16521 Instructions in comments with SSE3.
16522 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
16523 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
16524 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
16525 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
16526 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
16527 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
16528 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
16529 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
16530 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
16531 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
16532 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
16533 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
16534 (bdesc_sse_args): Renamed to ...
16535 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
16536 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
16537 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
16538 IX86_BUILTIN_FABSQ.
16539 (bdesc_1arg): Moved to ...
16540 (bdesc_args): Here.
16541 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
16542 Instructions in comments with SSE3.
16543 (ix86_expand_sse_operands_builtin): Renamed to ...
16544 (ix86_expand_args_builtin): This. Updated.
16545 (ix86_expand_unop1_builtin): Update comments.
16546 (ix86_expand_builtin): Updated.
16547
16548 2008-04-29 Richard Guenther <rguenther@suse.de>
16549
16550 PR tree-optimization/36078
16551 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
16552 Update virtual SSA form after cleaning up the CFG.
16553
16554 2008-04-29 Richard Guenther <rguenther@suse.de>
16555
16556 PR middle-end/15255
16557 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
16558
16559 2008-04-29 Richard Guenther <rguenther@suse.de>
16560
16561 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
16562 (compute_may_aliases): Do not call finalize_ref_all_pointers.
16563 (compute_flow_insensitive_aliasing): Do not treat
16564 PTR_IS_REF_ALL pointers special.
16565 (get_smt_for): Likewise.
16566 (may_alias_p): Re-structure.
16567 (is_escape_site): A ref-all pointer conversion is not an escape site.
16568 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
16569 PTR_IS_REF_ALL pointers special.
16570 * tree-ssa-structalias.h (struct alias_info): Remove
16571 ref_all_symbol_mem_tag field.
16572 (PTR_IS_REF_ALL): Remove.
16573
16574 2008-04-29 Richard Guenther <rguenther@suse.de>
16575
16576 PR middle-end/36077
16577 * fold-const.c (extract_muldiv_1): In combining division constants
16578 make sure to never overflow.
16579
16580 2008-04-29 Nick Clifton <nickc@redhat.com>
16581
16582 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
16583
16584 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16585
16586 PR bootstrap/35169
16587 * optc-gen.awk: Work around HP-UX/IA awk bug.
16588
16589 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
16590
16591 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
16592 2008-04-25 commit.
16593
16594 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
16595
16596 PR target/36073
16597 * config/i386/i386.md
16598 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
16599 Change operand 1 predicate to nonimmediate_operand.
16600
16601 2008-04-28 Jakub Jelinek <jakub@redhat.com>
16602
16603 PR debug/36060
16604 * dwarf2out.c (struct die_struct): Mark as chain_circular through
16605 die_sub field.
16606 * gengtype.c (walk_type, write_func_for_structure): Handle
16607 chain_circular.
16608 * doc/gty.texi: Document chain_circular.
16609
16610 2008-04-28 Richard Guenther <rguenther@suse.de>
16611
16612 PR tree-optimization/36066
16613 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
16614 SCEV and loop.
16615
16616 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
16617
16618 PR target/36064
16619 * config/i386/i386.md
16620 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
16621 Use match_scratch instead of match_operand for operands 3 and 4.
16622
16623 2008-04-27 Richard Guenther <rguenther@suse.de>
16624
16625 PR tree-optimization/18754
16626 PR tree-optimization/34223
16627 * tree-pass.h (pass_complete_unrolli): Declare.
16628 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
16629 loop size before and after unconditionally of UL_NO_GROWTH in effect.
16630 Rewrite loop into loop closed SSA form if it is not already.
16631 (tree_unroll_loops_completely): Re-structure to iterate over
16632 innermost loops with intermediate CFG cleanups.
16633 Unroll outermost loops only if requested or the code does not grow
16634 doing so.
16635 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
16636 loops are available.
16637 (tree_vectorize): Instead do so here.
16638 (tree_complete_unroll): Also unroll outermost loops.
16639 (tree_complete_unroll_inner): New function.
16640 (gate_tree_complete_unroll_inner): Likewise.
16641 (pass_complete_unrolli): New pass.
16642 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
16643 uses outside of the loop.
16644 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
16645 form if it is available.
16646 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
16647 * passes.c (init_optimization_passes): Schedule complete inner
16648 loop unrolling pass before the first CCP pass after final inlining.
16649
16650 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
16651
16652 * targhooks.h (default_emutls_var_fields,
16653 default_emutls_var_init): Declare.
16654 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
16655 * target.h (struct gcc_target): Add struct emutls member.
16656 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
16657 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
16658 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
16659 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
16660 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
16661 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
16662 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
16663 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
16664 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
16665 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
16666 emit debug information.
16667 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
16668 * varasm.c: Include targhooks.h.
16669 (emutls_object_section, emutls_tmpl_section): New.
16670 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
16671 (EMUTLS_SEPARATOR): New.
16672 (prefix_name): New.
16673 (get_emutls_object_name): New.
16674 (default_emutls_var_fields): New, broken out of ...
16675 (get_emutls_object_type): ... here. Adjust to use target hooks.
16676 (get_emutls_init_templ_addr): Adjust to use target hooks.
16677 (emutls_decl): Adjust to use target hooks.
16678 (emutls_finish): Likewise.
16679 (default_emutls_var_init): New, broken out of ...
16680 (assemble_variable): ... here. Adjust to use target hooks.
16681 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
16682 SECCAT_EMUTLS_TMPL.
16683 * c-common.c (handle_section_attribute): Prevent overriding
16684 sections for emulated tls with special sections.
16685 * config/i386/i386.c (x86_64_elf_select_section): Add
16686 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
16687 (x86_64_elf_unique_section): Likewise.
16688 * config/vxworks.c: Include tree.h.
16689 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
16690 (vxworks_override_options): Set TLS scheme.
16691 * doc/tm.texi (Emulated TLS): New node.
16692
16693 2008-04-26 Simon Baldwin <simonb@google.com>
16694
16695 PR c/35652
16696 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
16697 with propagated string constants.
16698
16699 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
16700
16701 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
16702 constraint for operand 2 when operand 0 is memory operand.
16703 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
16704 operand 0 is memory operand.
16705 (fix_trunc<mode>_i387_with_temp): Ditto.
16706 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
16707 operand 2 when operand 1 is memory operand.
16708 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
16709 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
16710 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
16711 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
16712 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
16713 operands 2,3 and 4 when operand 1 is memory operand.
16714 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
16715 is memory operand.
16716 (fistdi2_floor_with_temp): Ditto.
16717 (fist<mode>2_floor_with_temp): Ditto.
16718 (fistdi2_ceil_with_temp): Ditto.
16719 (fist<mode>2_ceil_with_temp): Ditto.
16720 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
16721
16722 2008-04-26 David Daney <ddaney@avtrex.com>
16723
16724 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
16725 unspec_volitile.
16726 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
16727 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
16728 UNSPEC_UPDATE_GOT_VERSION): Renumber.
16729 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
16730 (compare_and_swap_12): New insn.
16731 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
16732 * config/mips/mips.c (mips_force_binary): New function.
16733 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
16734 (mips_expand_compare_and_swap_12): New function.
16735 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
16736
16737 2008-04-25 Jan Hubicka <jh@suse.cz>
16738
16739 PR testsuite/35843
16740 * cfgexpand.c (pass_expand): Turn into RTL pass.
16741 * passes.c (execute_one_pass): Do pass typechecking after execution.
16742 * tree-pass.h (pass_expand): Turn into RTL pass.
16743
16744 * function.h (struct rtl_data): Move here fields
16745 accesses_prior_frames, calls_eh_return, saves_all_registers,
16746 has_nonlocal_goto, has_asm_statement, is_thunk,
16747 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
16748 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
16749 arg_pointer_save_area_init from struct function; turn into bool.
16750 (struct function): Move
16751 calls_eh_return, saves_all_registers, has_nonlocal_goto,
16752 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
16753 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
16754 tail_call_emit, arg_pointer_save_area_init
16755 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
16756 (current_function_returns_struct, current_function_returns_pcc_struct,
16757 current_function_calls_setjmp, current_function_calls_alloca,
16758 current_function_accesses_prior_frames,
16759 current_function_calls_eh_return, current_function_is_thunk,
16760 current_function_stdarg, current_function_profile,
16761 current_function_limit_stack, current_function_uses_pic_offset_table,
16762 current_function_uses_const_pool, current_function_has_nonlocal_label,
16763 current_function_saves_all_registers,
16764 current_function_has_nonlocal_goto,
16765 current_function_has_asm_statement): Remove accesor macros.
16766 * ra-conflict.c (global_conflicts): Update.
16767 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
16768 (suitable_for_tail_call_opt_p): Update.
16769 * builtins.c (expand_builtin_return_addr): Update.
16770 (expand_builtin_setjmp_setup): Update.
16771 (expand_builtin_nonlocal_goto): Update.
16772 * final.c (final_start_function): Update.
16773 (profile_function): Update.
16774 (leaf_function_p): Update.
16775 (only_leaf_regs_used): Update.
16776 * df-scan.c (df_get_exit_block_use_set): Update.
16777 * dojump.c (clear_pending_stack_adjust): Update.
16778 * tree-stdarg.c (gate_optimize_stdarg): Update.
16779 * gimple-low.c (lower_function_body): Update.
16780 * global.c (compute_regsets): Update.
16781 (global_alloc): Update.
16782 * dwarf2out.c (dwarf2out_begin_prologue): Update.
16783 * expr.c (expand_assignment): Update.
16784 * dse.c (dse_step0): Update.
16785 (dse_step1): Update.
16786 * c-decl.c (store_parm_decls): Update.
16787 * local-alloc.c (combine_regs): Update.
16788 (find_free_reg): Update.
16789 * function.c (assign_parms_augmented_arg_list): Update.
16790 (assign_parm_find_data_types): Update.
16791 (assign_parms): Update.
16792 (allocate_struct_function): Update.
16793 (expand_function_start): Update.
16794 (expand_function_end): Update.
16795 (get_arg_pointer_save_area): Update.
16796 (thread_prologue_and_epilogue_insns): Update.
16797 (rest_of_match_asm_constraints): Update.
16798 * stor-layout.c (variable_size): Update.
16799 * gcse.c (gcse_main): Update.
16800 (bypass_jumps): Update.
16801 * gimplify.c (gimplify_function_tree): Update.
16802 * calls.c (emit_call_1): Update.
16803 (expand_call): Update.
16804 * bt-load.c (compute_defs_uses_and_gen): Update.
16805 * except.c (sjlj_assign_call_site_values): Update.
16806 (sjlj_emit_function_enter): Update.
16807 (can_throw_external): Update.
16808 (set_nothrow_function_flags): Update.
16809 (expand_builtin_unwind_init): Update.
16810 (expand_eh_return): Update.
16811 (convert_to_eh_region_ranges): Update.
16812 (output_function_exception_table): Update.
16813 * emit-rtl.c (gen_tmp_stack_mem): Update.
16814 * cfgexpand.c (expand_used_vars): Update.
16815 (tree_expand_cfg): Update.
16816 * cfgcleanup.c (rest_of_handle_jump): Update.
16817 * explow.c (allocate_dynamic_stack_space): Update.
16818 * varasm.c (assemble_start_function): Update.
16819 (force_const_mem): Update.
16820 (mark_constant_pool): Update.
16821 * tree-optimize.c (tree_rest_of_compilation): Update.
16822 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
16823 * tree-cfg.c (notice_special_calls): Update.
16824 (is_ctrl_altering_stmt): Update.
16825 (tree_can_make_abnormal_goto): Update.
16826 (tree_purge_dead_abnormal_call_edges): Update.
16827 * config/alpha/predicates.md: Update.
16828 * config/alpha/alpha.c (alpha_sa_mask): Update.
16829 (alpha_sa_size): Update.
16830 (alpha_does_function_need_gp): Update.
16831 (alpha_expand_prologue): Update.
16832 (alpha_start_function): Update.
16833 (alpha_output_function_end_prologue): Update.
16834 (alpha_expand_epilogue): Update.
16835 * config/frv/frv.c (frv_stack_info): Update.
16836 (frv_expand_epilogue): Update.
16837 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
16838 (s390_register_info): Update.
16839 (s390_frame_info): Update.
16840 (s390_init_frame_layout): Update.
16841 (s390_can_eliminate): Update.
16842 (save_gprs): Update.
16843 * config/spu/spu.c (spu_split_immediate): Update.
16844 (need_to_save_reg): Update.
16845 (spu_expand_prologue): Update.
16846 (spu_expand_epilogue): Update.
16847 * config/sparc/sparc.md: Update.
16848 * config/sparc/sparc.c (eligible_for_return_delay): Update.
16849 (sparc_tls_got): Update.
16850 (legitimize_pic_address): Update.
16851 (sparc_emit_call_insn): Update.
16852 (sparc_expand_prologue): Update.
16853 (output_return): Update.
16854 (print_operand): Update.
16855 (sparc_function_ok_for_sibcall): Update.
16856 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
16857 * config/m32r/m32r.md: Update.
16858 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
16859 (m32r_compute_frame_size): Update.
16860 (m32r_expand_prologue): Update.
16861 (m32r_expand_epilogue): Update.
16862 (m32r_legitimize_pic_address): Update.
16863 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
16864 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
16865 * config/i386/i386.c (ix86_frame_pointer_required): Update.
16866 (gen_push): Update.
16867 (ix86_save_reg): Update.
16868 (ix86_compute_frame_layout): Update.
16869 (ix86_expand_prologue): Update.
16870 (ix86_expand_epilogue): Update.
16871 * config/sh/sh.c (output_stack_adjust): Update.
16872 (calc_live_regs): Update.
16873 (sh5_schedule_saves): Update.
16874 (sh_expand_prologue): Update.
16875 (sh_expand_epilogue): Update.
16876 (sh_setup_incoming_varargs): Update.
16877 (sh_allocate_initial_value): Update.
16878 (sh_get_pr_initial_val): Update.
16879 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
16880 * config/sh/sh.md (label:): Update.
16881 * config/avr/avr.c (out_movhi_mr_r): Update.
16882 * config/crx/crx.h (enum): Update.
16883 * config/xtensa/xtensa.h (along): Update.
16884 * config/stormy16/stormy16.c Update.
16885 (xstormy16_compute_stack_layout): Update.
16886 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
16887 (fr30_expand_prologue): Update.
16888 * config/cris/cris.c (cris_conditional_register_usage): Update.
16889 (cris_reg_saved_in_regsave_area): Update.
16890 (cris_initial_frame_pointer_offset): Update.
16891 (cris_simple_epilogue): Update.
16892 (cris_expand_prologue): Update.
16893 (cris_expand_epilogue): Update.
16894 (cris_expand_pic_call_address): Update.
16895 (cris_asm_output_symbol_ref): Update.
16896 (cris_asm_output_label_ref): Update.
16897 * config/cris/cris.md Update.
16898 * config/iq2000/iq2000.c (compute_frame_size): Update.
16899 (iq2000_expand_epilogue): Update.
16900 * config/mt/mt.h (save_direction): Update.
16901 * config/mn10300/mn10300.c (mn10300_function_value): Update.
16902 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
16903 (ia64_secondary_reload_class): Update.
16904 * config/m68k/m68k.c (m68k_save_reg): Update.
16905 (m68k_expand_prologue): Update.
16906 (m68k_expand_epilogue): Update.
16907 (legitimize_pic_address): Update.
16908 * config/rs6000/rs6000.c (rs6000_got_register): Update.
16909 (first_reg_to_save): Update.
16910 (first_altivec_reg_to_save): Update.
16911 (compute_vrsave_mask): Update.
16912 (compute_save_world_info): Update.
16913 (rs6000_stack_info): Update.
16914 (spe_func_has_64bit_regs_p): Update.
16915 (rs6000_ra_ever_killed): Update.
16916 (rs6000_emit_eh_reg_restore): Update.
16917 (rs6000_emit_allocate_stack): Update.
16918 (rs6000_emit_prologue): Update.
16919 (rs6000_emit_epilogue): Update.
16920 (rs6000_output_function_epilogue): Update.
16921 (output_profile_hook): Update.
16922 (rs6000_elf_declare_function_name): Update.
16923 * config/rs6000/rs6000.h (rs6000_args): Update.
16924 * config/rs6000/rs6000.md: Update.
16925 * config/mcore/mcore.c (mcore_expand_prolog): Update.
16926 * config/arc/arc.c (arc_output_function_epilogue): Update.
16927 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
16928 * config/darwin.c (machopic_function_base_name): Update.
16929 * config/score/score3.c (score3_compute_frame_size): Update.
16930 (rpush): Update.
16931 (rpop): Update.
16932 (score3_epilogue): Update.
16933 * config/score/score7.c (score7_compute_frame_size): Update.
16934 (score7_prologue): Update.
16935 (score7_epilogue): Update.
16936 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
16937 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
16938 * config/arm/arm.c (use_return_insn): Update.
16939 (require_pic_register): Update.
16940 (arm_load_pic_register): Update.
16941 (arm_compute_save_reg0_reg12_mask): Update.
16942 (arm_compute_save_reg_mask): Update.
16943 (thumb1_compute_save_reg_mask): Update.
16944 (output_return_instruction): Update.
16945 (arm_output_function_prologue): Update.
16946 (arm_output_epilogue): Update.
16947 (arm_get_frame_offsets): Update.
16948 (arm_expand_prologue): Update.
16949 (thumb_pushpop): Update.
16950 (thumb_exit): Update.
16951 (thumb1_expand_prologue): Update.
16952 (thumb1_expand_epilogue): Update.
16953 (arm_unwind_emit): Update.
16954 (arm_output_fn_unwind): Update.
16955 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
16956 * config/arm/arm.md: Update.
16957 * config/pa/pa.md: Update.
16958 * config/pa/pa.c (legitimize_pic_address): Update.
16959 (compute_frame_size): Update.
16960 (hppa_expand_prologue): Update.
16961 (hppa_expand_epilogue): Update.
16962 (borx_reg_operand): Update.
16963 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
16964 (HARD_REGNO_RENAME_OK): Update.
16965 * config/mips/mips.c (mips_global_pointer): Update.
16966 (mips_save_reg_p): Update.
16967 (mips_compute_frame_info): Update.
16968 (mips_frame_pointer_required): Update.
16969 (mips_expand_prologue): Update.
16970 (mips_expand_epilogue): Update.
16971 (mips_can_use_return_insn): Update.
16972 (mips_reorg_process_insns): Update.
16973 * config/v850/v850.c (compute_register_save_size): Update.
16974 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
16975 * config/mmix/mmix.c (along): Update.
16976 (mmix_expand_epilogue): Update.
16977 * config/bfin/bfin.c (legitimize_pic_address): Update.
16978 (must_save_p): Update.
16979 (stack_frame_needed_p): Update.
16980 (add_to_reg): Update.
16981 (bfin_expand_prologue): Update.
16982 * stmt.c (expand_asm_operands): Update.
16983 * reload1.c (reload): Update.
16984 (init_elim_table): Update.
16985
16986 2008-04-25 Bob Wilson <bob.wilson@acm.org>
16987
16988 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
16989
16990 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
16991
16992 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
16993 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
16994 (mov<mode>): Removed.
16995 (*movv4sf_internal): Likewise.
16996 (*movv2df_internal): Likewise.
16997
16998 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
16999
17000 * config.gcc (crx-*-elf): Remove deprecation.
17001
17002 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
17003
17004 * config/i386/cygming-crtend.c (register_frame_ctor): Register
17005 __gcc_deregister_frame with atexit.
17006 (deregister_frame_dtor): Remove.
17007
17008 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
17009 Nathan Sidwell <nathan@codesourcery.com>
17010
17011 * config/rs6000/rs6000.opt (mspe): Remove Var property.
17012 (misel): Likewise.
17013 * config/rs6000/rs6000.h (rs6000_spe): Declare.
17014 (rs6000_isel): Likewise.
17015 * config/rs6000/rs6000.c (rs6000_spe): New variable.
17016 (rs6000_isel): New variable.
17017 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
17018
17019 2008-04-24 Jakub Jelinek <jakub@redhat.com>
17020
17021 PR c++/35758
17022 * c-common.c (handle_vector_size_attribute): Call
17023 lang_hooks.types.reconstruct_complex_type instead of
17024 reconstruct_complex_type.
17025 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
17026 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
17027 * langhooks.h (struct lang_hooks_for_types): Add
17028 reconstruct_complex_type hook.
17029 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
17030 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
17031
17032 2008-04-24 Richard Guenther <rguenther@suse.de>
17033
17034 * c-common.h (check_builtin_function_arguments): Declare.
17035 * c-common.c (validate_nargs): New function.
17036 (check_builtin_function_arguments): Likewise.
17037 * c-typeck.c (build_function_call): Call
17038 check_builtin_function_arguments.
17039 * builtins.c (fold_builtin_classify): Remove error reporting code.
17040 (fold_builtin_unordered_cmp): Likewise.
17041 (fold_builtin_1): Likewise.
17042 (fold_builtin_n): Likewise.
17043
17044 2008-04-24 Jakub Jelinek <jakub@redhat.com>
17045
17046 PR tree-optimization/36008
17047 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
17048 the original op1, rather than delta by step.
17049
17050 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
17051 Sebastian Pop <sebastian.pop@amd.com>
17052
17053 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
17054 eliminate_local_variables_stmt, eliminate_local_variables,
17055 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
17056 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
17057 of code delimited by two edges in the CFG.
17058 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
17059 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
17060 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
17061 the case of parallelisation of reductions.
17062 (expr_invariant_in_region_p): New.
17063
17064 * tree-flow.h (gather_blocks_in_sese_region): Declared.
17065 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
17066
17067 2008-04-24 Ira Rosen <irar@il.ibm.com>
17068 Richard Guenther <rguenther@suse.de>
17069
17070 PR tree-optimization/36034
17071 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
17072 incapable of dealing with loads with gaps.
17073
17074 2008-04-24 Rafael Espíndola <espindola@google.com>
17075
17076 * tree-flow.h (vrp_evaluate_conditional): Change signature.
17077 * tree-ssa-propagate.c (fold_predicate_in): Update call to
17078 vrp_evaluate_conditional.
17079 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
17080 (vrp_evaluate_conditional): Split the cond argument.
17081 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
17082 (simplify_stmt_for_jump_threading): Update call to
17083 vrp_evaluate_conditional.
17084
17085 2008-04-24 Ira Rosen <irar@il.ibm.com>
17086
17087 PR tree-optimization/35982
17088 * tree-vect-analyze.c (vect_check_interleaving): Check that the
17089 interleaved data-refs are of the same type.
17090
17091 2008-04-24 Danny Smith <dannysmith@users.net>
17092
17093 * c-format.c (check_format_info_main): Use strncmp rather than a
17094 magic prefix to handle multichar length specs.
17095 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
17096 Don't prefix "I64" and "I32" with '\0'.
17097
17098 2008-04-24 Jakub Jelinek <jakub@redhat.com>
17099
17100 PR target/36015
17101 * config/i386/i386.c (init_cumulative_args): Don't pass anything
17102 in registers for -m32 only if stdarg_p (fntype).
17103
17104 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
17105
17106 PR rtl-optimization/36006
17107 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
17108 temp to op0 in order to avoid invalid rtx sharing.
17109
17110 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
17111
17112 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
17113 check TREE_INVARIANT.
17114 * tree-gimple.c (is_gimple_address): New.
17115 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
17116 * tree-gimple.h (is_gimple_address): New.
17117 * tree.h (decl_address_invariant_p): New.
17118 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
17119 (build_string): Likewise.
17120 (decl_address_invariant_p): New, from is_gimple_invariant_address.
17121 (tree_invariant_p_1): Likewise.
17122 (save_expr): Use it.
17123 (tree_invariant_p): New.
17124 (skip_simple_arithmetic): Use it.
17125 (stabilize_reference_1): Use it.
17126 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
17127 simplify.
17128 (build1_stat): Drop code to compute TREE_INVARIANT.
17129 (build2_stat): Drop code to compute TREE_INVARIANT.
17130 (build3_stat): Drop code to compute TREE_INVARIANT.
17131 (build4_stat): Drop code to compute TREE_INVARIANT.
17132 (build5_stat): Drop code to compute TREE_INVARIANT.
17133 (build7_stat): Drop code to compute TREE_INVARIANT.
17134 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
17135 * tree.h (struct tree_base): Remove invariant_flag.
17136 (TREE_INVARIANT): Remove.
17137 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
17138 (fold_builtin_expect): Check TREE_CONSTANT.
17139 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
17140 * c-tree.h (c_expr_to_decl): Drop third parameter.
17141 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
17142 (build_c_cast): Don't set TREE_INVARIANT.
17143 (pop_init_level): Don't set TREE_INVARIANT.
17144 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
17145 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
17146 TREE_CONSTANT.
17147 (gimplify_init_constructor): Don't set TREE_INVARIANT.
17148 (gimplify_addr_expr): Adjust comment.
17149 * tree-mudflap.c (mf_build_string):
17150 * print-tree.c (print_node): Don't print TREE_INVARIANT.
17151 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
17152 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
17153 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
17154 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
17155 * langhooks.h (struct lang_hooks): Drop third parameter from
17156 expr_to_decl.
17157
17158 2008-04-23 Richard Guenther <rguenther@suse.de>
17159
17160 PR tree-optimization/27799
17161 PR tree-optimization/32921
17162 PR tree-optimization/32624
17163 * tree-ssa-structalias.c (merge_smts_into): Only merge the
17164 SMTs aliases and the tag itself into the solution.
17165 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
17166 merge the points-to solution back into the SMT aliases.
17167 (may_alias_p): Use alias_set_subset_of instead of
17168 aliases_conflict_p. A pointer which points to
17169 memory with alias set zero may access any variable.
17170
17171 2008-04-23 Richard Guenther <rguenther@suse.de>
17172
17173 * alias.c (alias_set_subset_of): Correctly handle asking
17174 if zero is a subset of an alias set with zero child.
17175 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
17176 (compute_flow_insensitive_aliasing): Correctly walk all
17177 pointers. Do not unnecessarily union sets.
17178
17179 2008-04-23 Richard Guenther <rguenther@suse.de>
17180
17181 PR middle-end/36021
17182 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
17183
17184 2008-04-22 Tomas Bily <tbily@suse.cz>
17185
17186 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
17187 unreachable case.
17188 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
17189 NON_LVALUE_EXPR.
17190 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
17191 * tree-ssa-structalias.c (get_constraint_for): Likewise.
17192 * tree-inline.c (estimate_num_insns_1): Likewise.
17193 * varasm.c (const_hash_1, compare_constant, copy_constant)
17194 (compute_reloc_for_constant, output_addressed_constants): Likewise.
17195 * emit-rtl.c (component_ref_for_mem_expr)
17196 (set_mem_attributes_minus_bitpos): Likewise.
17197 * expr.c (highest_pow2_factor, expand_expr_real_1, )
17198 (is_aligning_offset): Likewise.
17199 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
17200 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
17201 * dojump.c (do_jump): Likewise.
17202 * builtins.c (get_pointer_alignment, get_memory_rtx)
17203 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
17204 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
17205
17206 2008-04-23 Jakub Jelinek <jakub@redhat.com>
17207
17208 PR rtl-optimization/36017
17209 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
17210 expanding the library call.
17211
17212 2008-04-22 Ian Lance Taylor <iant@google.com>
17213
17214 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
17215 than size_in_bytes.
17216
17217 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
17218
17219 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
17220 of LR/CTR moves for Power6.
17221
17222 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
17223
17224 PR middle-end/36003
17225 * passes.c (init_optimization_passes): Remove
17226 pass_fast_rtl_byte_dce.
17227
17228 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
17229
17230 PR target/29096
17231 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
17232 builtin functions to generate faster code.
17233 (_mm_cvtpu16_ps): Ditto.
17234 (_mm_cvtpi32x2_ps): Ditto.
17235
17236 2008-04-22 Nick Clifton <nickc@redhat.com>
17237
17238 * common.opt (ftree-loop-distribution): Add Optimization
17239 attribute.
17240
17241 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
17242 (frv_expand_builtin_va_start): Likewise.
17243
17244 * config/arm/arm.c (thumb_find_work_register): Fix location of
17245 argument register count.
17246
17247 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
17248
17249 Support scheduling for ColdFire V1 and V3 microarchitecture.
17250 Improve scheduling of multiplication instructions.
17251
17252 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
17253 (mac): New instruction attribute.
17254 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
17255 (m68k_sched_mac): New variable.
17256 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
17257 Handle cfv1 and cfv3.
17258 (max_insn_size): New static variable.
17259 (struct _sched_ib): New type.
17260 (sched_ib): New static variable.
17261 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
17262 to fields of 'struct _sched_ib sched_ib'. Update all uses.
17263 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
17264 Update.
17265 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
17266 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
17267 new variables. Update.
17268 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
17269 Add modeling of cfv3 instruction buffer. Update.
17270 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
17271 * config/m68k/m68k.h (TUNE_CFV3): New macro.
17272 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
17273 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
17274 a particular reservation applies to.
17275 (type2): Reorganize attribute values. Rename alu to alu_reg,
17276 alu_l to alu, move_l to omove. Join move to alu. Split mul
17277 to mul_l and mul_w.
17278 (cf_ib_*): Simplify description of instruction buffer.
17279 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
17280 (cf_mem): Split into cf_mem1 and cf_mem2.
17281 (cf_v2_move_??): Rename to cfv12_alu_??.
17282 (cf_v2_move_l_??): Rename to cfv12_omove_??.
17283 (cf_v2_mul_??): Remove reservations.
17284 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
17285 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
17286 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
17287 appropriate place.
17288 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
17289 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
17290 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
17291 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
17292 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
17293 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
17294 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
17295 expansions of the above reservations for instructions of sizes
17296 1, 2 and 3 words.
17297
17298 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
17299
17300 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
17301
17302 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
17303
17304 * coverage.c: Include tree-pass.h.
17305 (coverage_counter_alloc): Print da_file_name to the dump file.
17306
17307 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
17308
17309 * sbitmap.c (sbitmap_range_empty_p): New function.
17310 * sbitmap.h (sbitmap_range_empty_p): New function.
17311 * bitmap.h: Now includes obstack.h.
17312
17313 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
17314 Kenneth Zadeck <zadeck@naturalbridge.com>
17315
17316 * dbgcnt.def (ra_byte_scan): Added.
17317 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
17318 when the last hit happens for a counter.
17319 * timevar.def (TV_DF_BYTE_LR): New variable.
17320 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
17321 * passes.c (pass_fast_rtl_byte_dce): New pass.
17322 * fwprop.c (update_df): Added mode to call df_ref_create.
17323 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
17324 DF_REF_EXTRACT_OFFSET.
17325 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
17326 DF_BYTE_LR_OUT, df_byte_lr): New macro.
17327 (df_mm): New enum.
17328 (df_ref_extract): Added mode field.
17329 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
17330 DF_REF_EXTRACT_OFFSET.
17331 (DF_REF_EXTRACT_MODE): New macro.
17332 (df_byte_lr_bb_info): New structure.
17333 (df_print_byte_regset, df_compute_accessed_bytes,
17334 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
17335 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
17336 df_byte_lr_simulate_uses,
17337 df_byte_lr_simulate_artificial_refs_at_top,
17338 df_byte_lr_simulate_artificial_refs_at_end,
17339 df_compute_accessed_bytes): New function.
17340 (df_ref_create): Add parameter.
17341 (df_byte_lr_get_bb_info): New inline function.
17342 * df-scan.c (df_ref_record, df_uses_record,
17343 df_ref_create_structure): Added mode parameter.
17344 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
17345 df_defs_record, df_uses_record, df_get_conditional_uses,
17346 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
17347 df_entry_block_defs_collect, df_exit_block_uses_collect):
17348 Added mode parameter to calls to df_ref_record, df_uses_record,
17349 df_ref_create_structure.
17350 (df_ref_equal_p, df_ref_compare): Added test for modes.
17351 (df_ref_create_structure): Added code to set mode. Renamed
17352 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
17353 DF_REF_EXTRACT_OFFSET.
17354 * df-core.c (df_print_byte_regset): New function.
17355 * df-byte-scan.c: New file.
17356 * df-problems.c (df_rd_transfer_function): Removed unnecessary
17357 calls to BITMAP_FREE.
17358 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
17359 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
17360 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
17361 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
17362 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
17363 df_byte_lr_local_compute, df_byte_lr_init,
17364 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
17365 df_byte_lr_transfer_function, df_byte_lr_free,
17366 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
17367 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
17368 df_byte_lr_simulate_uses,
17369 df_byte_lr_simulate_artificial_refs_at_top,
17370 df_byte_lr_simulate_artificial_refs_at_end): New function.
17371 * dce.c (byte_dce_process_block): New function.
17372 (dce_process_block): au is now passed in rather than computed
17373 locally. Changed loops that look at artificial defs to not look
17374 for conditional or partial ones, because there never are any.
17375 (fast_dce): Now is able to drive byte_dce_process_block or
17376 dce_process_block depending on the kind of dce being done.
17377 (rest_of_handle_fast_dce): Add parameter to fast_dce.
17378 (rest_of_handle_fast_byte_dce): New function.
17379 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
17380 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
17381
17382 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
17383
17384 PR fortran/35019
17385 * gcc.h: Added fortran options that take arguments to
17386 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
17387 macros.
17388
17389 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
17390
17391 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
17392 scalarization if on the LHS and not a full access.
17393
17394 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17395
17396 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
17397
17398 2008-04-18 Rafael Espíndola <espindola@google.com>
17399
17400 * tree-vrp.c (find_case_label_index): Fix the binary search.
17401 (find_case_label_range): New.
17402 (vrp_visit_switch_stmt): Use find_case_label_range.
17403 (simplify_switch_using_ranges): Use find_case_label_range.
17404
17405 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
17406
17407 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
17408 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
17409
17410 2008-04-18 Tom Tromey <tromey@redhat.com>
17411
17412 PR libcpp/15500:
17413 * doc/cpp.texi (Implementation-defined behavior): Mention
17414 -finput-charset.
17415
17416 2008-04-18 Ian Lance Taylor <iant@google.com>
17417
17418 * fold-const.c (pointer_may_wrap_p): New static function.
17419 (fold_comparison): Add another test for pointer overflow. Use
17420 pointer_may_wrap_p to disable some false positives.
17421
17422 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
17423
17424 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
17425 (fname_as_string): Match updated cpp_interpret_string prototype.
17426 (fix_string_type): Support char16_t* and char32_t*.
17427 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
17428 derivative) nodes. Register as builtin if C++0x.
17429 (c_parse_error): Support CPP_CHAR{16,32}.
17430 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
17431 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
17432 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
17433 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
17434 CTI_CHAR32_ARRAY_TYPE>: New elements.
17435 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
17436 char32_type_node, signed_char32_type_node, char16_array_type_node,
17437 char32_array_type_node): New defines.
17438 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
17439 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
17440 (lex_string): Support CPP_STRING{16,32}, match updated
17441 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
17442 (lex_charconst): Support CPP_CHAR{16,32}.
17443 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
17444 and CPP_STRING{16,32}.
17445
17446 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
17447
17448 PR bootstrap/35457
17449 * aclocal.m4: Regenerate.
17450 * configure: Regenerate.
17451
17452 2008-04-18 Jan Hubicka <jh@suse.cz>
17453
17454 * except.c (dw2_size_of_call_site_table,
17455 sjlj_size_of_call_site_table): Use vector API for call_site_record.
17456
17457 * cgraphbuild.c (build_cgraph_edges): Update.
17458 * tree-pass.h: Update comment.
17459 * final.c (leaf_function_p): Update.
17460 (leaf_renumber_regs): Update.
17461 (rest_of_clean_state): Update.
17462 * omp-low.c (expand_omp_parallel): Update.
17463 * ipa-reference.c (analyze_function): Update.
17464 * reorg.c (find_end_label): Update.
17465 (optimize_skip): Update.
17466 (fill_simple_delay_slots): Update.
17467 (fill_simple_delay_slots): Update.
17468 (make_return_insns): Update.
17469 (dbr_schedule): Update.
17470 * gimple-low.c (record_vars_into): Update.
17471 * cfgbuild.c (make_edges): Update.
17472 * function.c (assign_stack_local): Update.
17473 (assign_parm_adjust_stack_rtl): Update.
17474 (locate_and_pad_parm): Update.
17475 (allocate_struct_function): Do not initialize stack_alignment_needed
17476 and preferred_stack_boundary here.
17477 (stack_protect_prologue): Update.
17478 (stack_protect_epilogue): Update.
17479 (expand_function_start): Initialize stack_alignment_needed,
17480 preferred_stack_boundary and max_jumptable_ents.
17481 (expand_function_end): Update.
17482 (free_after_compilation): Do not NULLify epilogue_delay_list.
17483 * function.h (struct rtl_data): Add stack_protect_guard,
17484 stack_alignment_needed,
17485 preferred_stack_boundary, epilogue_delay_list.
17486 (struct function): Remove value_histograms, stack_alignment_needed,
17487 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
17488 last_label_uid,
17489 unexpanded_var_list, stack_protect_guard.
17490 (current_function_epilogue_delay_list): Remove.
17491 * ipa-type-escape.c (analyze_function): Update.
17492 * gimplify.c (pop_gimplify_context): Update comment.
17493 * calls.c (expand_call): Update.
17494 (emit_library_call_value_1): Update.
17495 * except.c (set_nothrow_function_flags): Update.
17496 * cfgexpand.c (get_decl_align_unit): Update.
17497 (create_stack_guard): Update.
17498 (estimated_stack_frame_size): Update.
17499 (expand_used_vars): Update.
17500 (tree_expand_cfg): Free histogram earliers, init expansion variables.
17501 * explow.c (allocate_dynamic_stack_space): Update.
17502 * tree-ssa-live.c (remove_unused_locals): Update.
17503 * varasm.c (mark_constant_pool): Update.
17504 * tree-inline.c (remap_decls): Update.
17505 (initialize_cfun): Update.
17506 (declare_return_variable): Update.
17507 (inline_forbidden_p): Update.
17508 (expand_call_inline): Update.
17509 (declare_inline_vars): Update.
17510 (tree_function_versioning): Update.
17511 * tree-flow.h (value_histograms): New.
17512 (VALUE_HISTOGRAMS): New macro.
17513 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
17514 last_label_uid.
17515 * tree-cfg.c (set_bb_for_stmt): Update.
17516 (replace_by_duplicate_decl): Update.
17517 (move_block_to_fn): Update.
17518 (new_label_mapper): Update.
17519 (dump_function_to_file): Update.
17520 * ipa-struct-reorg.c (build_data_structure): Update.
17521 * cfgrtl.c (print_rtl_with_bb): Update.
17522 * reload1.c (reload): Update.
17523 (reload): Update.
17524 * config/i386/i386.c (setup_incoming_varargs_64,
17525 ix86_compute_frame_layout): Update.
17526 * config/arc/arc.c (arc_output_function_epilogue): Update.
17527
17528 2008-04-18 Marius Strobl <marius@FreeBSD.org>
17529
17530 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
17531 for FreeBSD as well.
17532 * gthr-posix95.h: Likewise.
17533
17534 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
17535
17536 PR rtl-optimization/35838
17537 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
17538 out the byte offset of the first subreg.
17539
17540 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
17541
17542 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
17543 to split_ti instead of three separate calls with single member arrays.
17544 (subti3 splitter): Ditto.
17545 (adddi3 splitter): Ditto with split_di.
17546 (subdi3 splitter): Ditto.
17547 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
17548 two separate calls with single member arrays. Swap match_dup
17549 operands 1 and 2 to better fit into the array.
17550 (negdi2 splitter): Ditto with split_di.
17551 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
17552 two separate calls with single member arrays. Swap match_dup operands
17553 6 and 7 to better fit into the array.
17554
17555 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
17556
17557 * config/i386/i386.c (sse_builtin_type): New.
17558 (bdesc_sse_args): Likewise.
17559 (bdesc_sse_3arg): Removed.
17560 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
17561 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
17562 IX86_BUILTIN_ROUNDPS.
17563 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
17564 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
17565 IX86_BUILTIN_ROUNDPS.
17566 (ix86_expand_sse_4_operands_builtin): Removed.
17567 (ix86_expand_sse_operands_builtin): New.
17568 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
17569 and CODE_FOR_sse4_1_roundps.
17570 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
17571 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
17572
17573 2008-04-17 Alan Modra <amodra@bigpond.net.au>
17574
17575 PR target/35907
17576 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
17577 regs before frame pop when needed. If use_backchain_to_restore_sp
17578 then load backchain into a temp reg to restore vr and vrsave. Add
17579 code to restore vr after frame pop if possible.
17580
17581 2008-04-17 Richard Guenther <rguenther@suse.de>
17582
17583 * tree-vn.c (expressions_equal_p): Do not check type
17584 equality or compatibility before calling operand_equal_p.
17585 * fold-const.c (operand_equal_p): Check equivalence of
17586 integer constants before bailing out due to signedness or
17587 precision differences.
17588 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
17589 spurious differences in type qualification. Ignore types
17590 for COMPONENT_REFs at all.
17591
17592 2008-04-17 Christian Bruel <christian.bruel@st.com>
17593
17594 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
17595 msw_skip comparison.
17596
17597 2008-04-16 Jakub Jelinek <jakub@redhat.com>
17598
17599 PR c/35739
17600 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
17601 reg type.
17602
17603 PR tree-optimization/35899
17604 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
17605 rather than TREE_OPERAND.
17606
17607 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
17608
17609 PR target/35944
17610 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
17611 temporary registers. Change operand predicate to general_operand.
17612 (remainderxf3): Ditto.
17613
17614 2008-04-16 Richard Guenther <rguenther@suse.de>
17615
17616 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
17617 * tree-affine.c (aff_combination_expand): Look through some
17618 conversions.
17619
17620 2008-04-15 Doug Kwan <dougkwan@google.com>
17621
17622 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
17623 for hex printing.
17624 * tree-pretty-print.c (dump_generic_node): Ditto.
17625 * final.c (output_addr_const): Ditto.
17626 * dwarf2out.c (output_cfi): Ditto.
17627 * c-pretty-print.c (pp_c_integer_constant): Ditto.
17628 * print-rtl.c (print_rtx): Ditto.
17629 * print-tree.c (print_node_brief, print_node): Ditto.
17630 * c-common.c (match_case_to_enum_1): Ditto.
17631 * sched-vis.c (print_value): Ditto.
17632 * config/i386/i386.c (print_operand): Cast to long unsigned int
17633 for hex printing.
17634
17635 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
17636 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
17637 MS Windows VirtualProtect function.
17638
17639 2008-04-15 Jan Hubicka <jh@suse.cz>
17640
17641 * gengtype.c (write_root): Param_is argument is OK.
17642 * expr.c (expand_expr_real_1): Update call of get_exception_*.
17643 * function.h: Include varray.h
17644 (rtl_eh): New stucture based on except.c one.
17645 (call_site_record): New forward declaration and vector type.
17646 * calls.c (emit_call_1): Do not call
17647 note_current_region_may_contain_throw.
17648 * except.c (eh_status): Remove cur_region, try_region since they are
17649 unused.
17650 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
17651 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
17652 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
17653 Remove call_site_data_used, call_site_data_size.
17654 Turn call_site_record into vector in function.h.
17655 (note_current_region_may_contain_throw): Remove.
17656 (get_exception_pointer, get_exception_filter): Do not take struct
17657 function argument; update.
17658 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
17659 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
17660 build_post_landing_pads, dw2_build_landing_pads,
17661 sjlj_assign_call_site_values, sjlj_mark_call_sites,
17662 sjlj_emit_function_enter, sjlj_emit_function_enter,
17663 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
17664 sjlj_build_landing_pads, finish_eh_generation,
17665 remove_exception_handler_label, remove_eh_handler,
17666 maybe_remove_eh_handler, add_reachable_handler,
17667 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
17668 add_action_record, collect_one_action_chain, add_call_site,
17669 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
17670 sjlj_output_call_site_table, output_function_exception_table,
17671 * except.h (note_current_region_may_contain_throw): Remove
17672 (get_exception_pointer, get_exception_filter): Do not take struct
17673 function argument.
17674 * Makefile.in (GTFILES): Put varargs before struct function.
17675
17676 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
17677
17678 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
17679 punt for STRING_CST.
17680 (get_constraint_for): Deal with STRING_CST here instead.
17681
17682 2008-04-15 Richard Guenther <rguenther@suse.de>
17683
17684 * tree-ssa-propagate.c (substitute_and_fold): Substitute
17685 statements in a basic-block with a backward walk. Do not
17686 substitute into dead statements but instead remove those.
17687
17688 2008-04-15 Richard Guenther <rguenther@suse.de>
17689
17690 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
17691 to zero, thus disable creation of SFTs.
17692
17693 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
17694
17695 * tree-predcom.c (suitable_reference_p): Return false if the
17696 reference can throw.
17697
17698 2008-04-15 Jakub Jelinek <jakub@redhat.com>
17699
17700 PR c/35751
17701 * c-decl.c (finish_decl): If extern or static var has variable
17702 size, set TREE_TYPE (decl) to error_mark_node.
17703
17704 2008-04-15 Rafael Espíndola <espindola@google.com>
17705
17706 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
17707 variable arg1.
17708
17709 2008-04-15 Richard Guenther <rguenther@suse.de>
17710
17711 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
17712 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
17713 (visit_reference_op_load): Do walk vuse-vdef chains on
17714 vn_reference_lookup.
17715 (visit_reference_op_store): But do not here.
17716 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
17717 vn_reference_lookup.
17718 (vn_lookup_with_vuses): But do so here.
17719
17720 2008-04-14 Ian Lance Taylor <iant@google.com>
17721
17722 * fold-const.c (fold_overflow_warning): Remove assertion.
17723
17724 2008-04-15 Ben Elliston <bje@au.ibm.com>
17725
17726 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
17727 temp1 local variables.
17728
17729 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
17730
17731 PR target/35661
17732 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
17733 ".text.unlikely" section as executable.
17734
17735 2008-04-14 James E. Wilson <wilson@tuliptree.org>
17736
17737 * config/ia64/ia64.c (rtx_needs_barrier): Handle
17738 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
17739 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
17740 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
17741 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
17742 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
17743 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
17744
17745 2008-04-14 Ian Lance Taylor <iant@google.com>
17746
17747 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
17748 * fold-const.c (fold_comparison): If appropriate, test
17749 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
17750 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
17751 reassociating a pointer type.
17752 * doc/invoke.texi (Optimize Options): Document that
17753 -fstrict-overflow applies to pointer wraparound.
17754
17755 2008-04-13 Jan Hubicka <jh@suse.cz>
17756
17757 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
17758
17759 2008-04-12 Andrew Pinski <pinskia@gmail.com>
17760
17761 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
17762 we are going to "save the world".
17763
17764 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
17765
17766 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
17767 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
17768 operand 0 constraint, not "=".
17769
17770 2008-04-11 James E. Wilson <wilson@tuliptree.org>
17771
17772 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
17773
17774 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
17775
17776 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
17777 of size of positions_needed * CHAR_BIT.
17778
17779 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
17780
17781 PR middle-end/35897
17782 * dse.c (store_info): Change positions_needed to unsigned
17783 HOST_WIDE_INT.
17784 (lowpart_bitmask): New.
17785 (record_store): Cast to unsigned HOST_WIDE_INT for
17786 positions_needed. Assert width <= size of positions_needed *
17787 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
17788 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
17789 lowpart_bitmask to set mask.
17790
17791 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
17792
17793 * config/bfin/constraints.md: New file.
17794 * config/bfin/bfin.md: Include it.
17795 (adddi3): Use satisfies_constraint functions instead of the old macros.
17796 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
17797 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
17798 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
17799 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
17800 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
17801 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
17802 EXTRA_CONSTRAINT): Delete.
17803 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
17804 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
17805 of the old macros.
17806 * config/bfin/bfin.c: Include "tm-constrs.h".
17807 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
17808 Use satisfies_constraint functions instead of the old macros.
17809 * doc/md.texi (Blackfin Constraints): Update file name reference.
17810
17811 2008-04-11 Richard Guenther <rguenther@suse.de>
17812
17813 PR tree-optimization/35869
17814 * tree-vrp.c (execute_vrp): Move switch statement update after
17815 jump threading. Schedule another cfg cleanup run.
17816
17817 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
17818
17819 PR c/35744
17820 * attribs.c (decl_attributes): Return early on errorneous node.
17821
17822 2008-04-10 Oleg Ryjkov <olegr@google.com>
17823
17824 * tree.h (struct tree_base): Added a new flag default_def_flag.
17825 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
17826
17827 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
17828
17829 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
17830
17831 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17832
17833 PR target/35768
17834 * pa.md: Define mode iterator P. Define mode attribute dwc.
17835 (dcacheflush): Update pattern to use iterator P and attribute dwc.
17836 (icacheflush): Likewise.
17837 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
17838 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
17839
17840 2008-04-11 Ben Elliston <bje@au.ibm.com>
17841
17842 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
17843
17844 2008-04-10 Rafael Espíndola <espindola@google.com>
17845
17846 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
17847 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
17848 (extract_range_from_expr): The same.
17849
17850 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
17851
17852 * config/mips/mips.md (GPR2): New mode iterator.
17853 (seq): Add comment.
17854 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
17855 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
17856 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
17857 Rewrite these to take two modes, the mode of comparison and the
17858 mode of the destination.
17859 * config/mips/mips.c (mips_expand_scc): Instead of having
17860 paradoxical subreg as destination, expand "narrowing" scc if mode
17861 of comparison is SI and target is requested in DI mode.
17862 (mips_emit_int_order_test): Update comment. Make mode of
17863 comparison match CMP0 rather than TARGET. When creating inverse
17864 target use mode of TARGET.
17865
17866 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
17867
17868 * gcov-dump.c (tag_summary): Only print summaries for the first
17869 GCOV_COUNTERS_SUMMABLE counters.
17870
17871 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
17872
17873 * config/i386/i386.md (absneg): New code iterator.
17874 (absnegprefix): New code attribute.
17875 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
17876 patterns using absneg code iterator.
17877 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
17878 using absneg code iterator.
17879 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
17880 *neg<mode>2 patterns using absneg code iterator.
17881 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
17882 *negextendsfdf2 patterns using absneg code iterator.
17883 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
17884 *negextendsfxf2 patterns using absneg code iterator.
17885 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
17886 *negextendsfdf2 patterns using absneg code iterator.
17887 * config/i386/sse.md (<code><mode>2): Macroize expander from
17888 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
17889
17890 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
17891
17892 * config/s390/s390.h: Remove the remains of the recent search
17893 & replace action of current_function_outgoing_args_size.
17894
17895 2008-04-10 Ira Rosen <irar@il.ibm.com>
17896
17897 PR tree-optimization/35821
17898 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
17899 NEW_STMT_LIST is not NULL.
17900
17901 2008-04-09 David Edelsohn <edelsohn@gnu.org>
17902
17903 PR libstdc++/35597
17904 * toplev.c (process_options): Remove -ffunction-sections debugging
17905 warning.
17906
17907 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
17908
17909 PR middle-end/PR28690
17910 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
17911 than gen_rtx_fmt_ee to perform more canonicalizations.
17912
17913 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17914
17915 PR driver/35665
17916 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
17917
17918 2008-04-09 Richard Guenther <rguenther@suse.de>
17919
17920 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
17921 (dump_function_to_file): Dump function arguments with types.
17922
17923 2008-04-08 Richard Guenther <rguenther@suse.de>
17924
17925 * fold-const.c (fold_widened_comparison): Do not allow
17926 sign-changes that change the result.
17927
17928 2008-04-08 Janis Johnson <janis187@us.ibm.com>
17929
17930 PR target/35839
17931 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
17932 kinds of indirect references.
17933
17934 2008-04-08 David Edelsohn <edelsohn@gnu.org>
17935
17936 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
17937 GNU Fortran language string.
17938
17939 2008-04-08 Rafael Espíndola <espindola@google.com>
17940
17941 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
17942 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
17943 * tree.h (tree_call_nonnegative_warnv_p): New.
17944
17945 2008-04-08 Jan Hubicka <jh@suse.cz>
17946
17947 * function.c (free_after_compilation): Clear out regno_reg_rtx
17948 pointer.
17949
17950 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
17951
17952 Revert
17953 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
17954
17955 PR middle-end/PR28690
17956 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
17957 same precedence as REG_POINTER and MEM_POINTER operands.
17958
17959 2008-04-08 Richard Guenther <rguenther@suse.de>
17960
17961 PR middle-end/35834
17962 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
17963 for adding index to base.
17964
17965 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
17966
17967 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
17968 (MINGW_ENABLE_EXECUTE_STACK): New.
17969 (IN_LIBGCC2): For libgcc include windows.h file for
17970 function declarations.
17971
17972 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
17973
17974 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
17975 and tem2 if tem1 is not a REG or MULT.
17976
17977 2008-04-08 Jan Hubicka <jh@suse.cz>
17978
17979 * function.h (incomming_args): Break out of struct function.
17980 (function_subsections): Break out of struct function.
17981 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
17982 return_rtx and hard_reg_initial_vals from struct function.
17983 Kill inl_max_label_num.
17984 (current_function_pops_args, current_function_args_info,
17985 current_function_args_size, current_function_args_size,
17986 current_function_pretend_args_size,
17987 current_function_outgoing_args_size,
17988 current_function_internal_arg_pointer, current_function_return_rtx):
17989 Kill compatibility accestor macros.
17990 * builtins.c (expand_builtin_apply_args_1): Update.
17991 (expand_builtin_next_arg): Update.
17992 * df-scan.c (df_get_call_refs): Update.
17993 * dbxout.c (dbxout_function_end): Update.
17994 * dwarf2out.c (dwarf2out_switch_text_section): Update.
17995 (output_line_info): Update.
17996 (secname_for_decl): Update.
17997 (dwarf2out_var_location): Update.
17998 * function.c (free_after_compilation): Update.
17999 (assign_parm_find_stack_rtl): Update.
18000 (assign_parms): Update.
18001 (expand_dummy_function_end): Update.
18002 (expand_function_end): Update.
18003 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
18004 (expand_call): Update.
18005 (emit_library_call_value_1): Update.
18006 (store_one_arg): Update.
18007 * varasm.c (initialize_cold_section_name): Update.
18008 (unlikely_text_section): Update.
18009 (unlikely_text_section_p): Update.
18010 (assemble_start_function): Update.
18011 (assemble_end_function): Update.
18012 (default_section_type_flags): Update.
18013 (switch_to_section): Update.
18014 * integrate.c (set_decl_abstract_flags): Update.
18015 (get_hard_reg_initial_val): Update.
18016 (has_hard_reg_initial_val): Update.
18017 (allocate_initial_values): Update.
18018 * resource.c (init_resource_info): Update.
18019 * config/alpha/alpha.c (NUM_ARGS): Update.
18020 (direct_return): Update.
18021 (alpha_va_start): Update.
18022 (alpha_sa_size): Update.
18023 (alpha_initial_elimination_offset): Update.
18024 (alpha_expand_prologue): Update.
18025 (alpha_start_function): Update.
18026 (alpha_expand_epilogue): Update.
18027 (unicosmk_initial_elimination_offset):
18028 * config/alpha/alpha.md (call expander): Update.
18029 * config/s390/s390.c (s390_register_info): Update.
18030 (s390_register_info): Update.
18031 (s390_frame_info): Update.
18032 (s390_initial_elimination_offset): Update.
18033 (s390_build_builtin_va_list): Update.
18034 (s390_va_start): Update.
18035 * config/spu/spu.c (direct_return): Update.
18036 (spu_expand_prologue): Update.
18037 (spu_initial_elimination_offset): Update.
18038 (spu_build_builtin_va_list): Update.
18039 (spu_va_start): Update.
18040 * config/sparc/sparc.c (sparc_init_modes): Update.
18041 (sparc_compute_frame_size): Update.
18042 (function_value): Update.
18043 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
18044 * config/i386/i386.md (return expander): Update.
18045 * config/i386/i386.c (ix86_va_start): Update.
18046 (ix86_can_use_return_insn_p): Update.
18047 (ix86_compute_frame_layout): Update.
18048 (ix86_expand_epilogue): Update.
18049 * config/sh/sh.c (output_stack_adjust): Update.
18050 (calc_live_regs): Update.
18051 (sh_expand_prologue): Update.
18052 (sh_builtin_saveregs): Update.
18053 (sh_va_start): Update.
18054 (initial_elimination_offset): Update.
18055 (sh_allocate_initial_value): Update.
18056 (sh_function_ok_for_sibcall): Update.
18057 (sh_get_pr_initial_val): Update.
18058 * config/sh/sh.md (return expander): Update.
18059 * config/avr/avr.c (frame_pointer_required_p): UPdate.
18060 * config/crx/crx.c (crx_compute_frame): UPdate.
18061 (crx_initial_elimination_offset): UPdate.
18062 * config/xtensa/xtensa.c (compute_frame_size): Update
18063 (xtensa_builtin_saveregs): Update.
18064 (xtensa_va_start): Update.
18065 (order_regs_for_local_alloc): Update.
18066 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
18067 (xstormy16_expand_builtin_va_start): Update.
18068 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
18069 * config/m68hc11/m68hc11.md (return expanders): Update.
18070 * config/m68hc11/m68hc11.c (expand_prologue): Update.
18071 (expand_epilogue): Update.
18072 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
18073 (cris_simple_epilogue): Update.
18074 (cris_expand_prologue): Update.
18075 (cris_expand_epilogue): Update.
18076 * config/iq2000/iq2000.c (iq2000_va_start): Update.
18077 (compute_frame_size): Update.
18078 * config/mt/mt.c (mt_compute_frame_size): Update.
18079 * config/mn10300/mn10300.c (expand_prologue): Update.
18080 (expand_epilogue): Update.
18081 (initial_offset): Update.
18082 (mn10300_builtin_saveregs):
18083 * config/mn10300/mn10300.md (return expander): Update.
18084 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
18085 (ia64_initial_elimination_offset): Update.
18086 (ia64_initial_elimination_offset): Update.
18087 (ia64_expand_prologue): Update.
18088 * config/m68k/m68k.md (return expander): Update.
18089 * config/rs6000/rs6000.c (rs6000_va_start): Update.
18090 (rs6000_stack_info): Update.
18091 * config/mcore/mcore.c (layout_mcore_frame): Update.
18092 (mcore_expand_prolog): Update.
18093 * config/arc/arc.c (arc_compute_frame_size): Update.
18094 * config/score/score3.c (score3_compute_frame_size): Update.
18095 * config/score/score7.c (score7_compute_frame_size): Update.
18096 * config/arm/arm.c (use_return_insn): Update.
18097 (thumb_find_work_register): Update.
18098 (arm_compute_save_reg_mask): Update.
18099 (arm_output_function_prologue): Update.
18100 (arm_output_epilogue): Update.
18101 (arm_size_return_regs): Update.
18102 (arm_get_frame_offsets): Update.
18103 (arm_expand_prologue): Update.
18104 (thumb_exit): Update.
18105 (thumb_unexpanded_epilogue): Update.
18106 (thumb1_output_function_prologue): Update.
18107 * config/pa/pa.md (return expander): Update.
18108 * config/pa/pa.c (compute_frame_size): Update.
18109 (hppa_builtin_saveregs): Update.
18110 * config/mips/mips.c (mips_va_start): Update.
18111 (mips16_build_function_stub): Update.
18112 (mips_compute_frame_info): Update.
18113 (mips_restore_gp): Update.
18114 (mips_output_function_prologue): Update.
18115 (mips_expand_prologue): Update.
18116 * config/v850/v850.c (compute_frame_size): Update.
18117 (expand_prologue): * config/mmix/mmix.c (along): update.
18118 (mmix_initial_elimination_offset): update.
18119 (mmix_reorg): update.
18120 (mmix_use_simple_return): update.
18121 (mmix_expand_prologue): update.
18122 (mmix_expand_epilogue): Update.
18123 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
18124 (emit_link_insn): Update.
18125
18126 2008-04-08 Anatoly Sokolov <aesok@post.ru>
18127
18128 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
18129 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
18130 instructions.
18131 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
18132 atmega103 device.
18133
18134 2008-04-07 Jan Hubicka <jh@suse.cz>
18135
18136 * function.h (rtl): Rename to x_rtl.
18137 (crtl): New define.
18138 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
18139 frame_offset, stack_check_probe_note, arg_pointer_save_area,
18140 used_temp_slots avail_temp_slots, temp_slot_level,
18141 nonlocal_goto_handler_labels): Update accesstors.
18142 (rtl): New global variable.
18143 (struct function): Move some fileds to rtl_data.
18144 (get_arg_pointer_save_area): Update prototype.
18145 * builtins.c (expand_builtin_setjmp_receiver): Update call of
18146 get_arg_pointer_save_area.
18147 * expr.c (init_expr): Update
18148 * function.c (get_frame_size): Update
18149 (assign_stack_local): Update
18150 (expand_function_end): Update.
18151 (get_art_pointer_save_area): Update
18152 * function.h
18153 * emit-rtl.c (rtl): Declare.
18154 (regno_reg_rtx): Declare.
18155 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
18156 Update.
18157 (gen_reg_rtx): Update.
18158 * varasm.c (n_deferred_constatns): Update accestor.
18159 (init_varasm_status): Do not allocate varasm_status.
18160 (force_const_mem, get_pool_size, output_constant_pool): Update.
18161 * stmt.c (force_label_rtx): Do not use x_ prefixes.
18162 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
18163 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
18164 * sparc/sparc.h (INIT_EXPANDERS): Update.
18165 * ia64/ia64.h (INIT_EXPANDERS): Update.
18166
18167 2008-04-07 James E. Wilson <wilson@tuliptree.org>
18168
18169 * reload.c (push_secondary_reload): Add missing break to for loop.
18170
18171 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
18172
18173 PR middle-end/PR28690
18174 * rtlanal.c: Update copyright years.
18175 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
18176 as REG_POINTER and MEM_POINTER operands.
18177 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
18178 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
18179 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
18180 * gcse.c: Update copyright years.
18181 (pre_delete): Call gen_reg_rtx_and_attrs.
18182 (hoist_code): Likewise.
18183 (build_store_vectors): Likewise.
18184 (delete_store): Likewise.
18185 * loop-invariant.c (move_invariant_reg): Likewise.
18186 Update copyright years.
18187
18188 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
18189
18190 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
18191 control string instead of quoted.
18192
18193 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
18194
18195 * doc/rtl.texi: Rewrite of subreg section.
18196
18197 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
18198
18199 PR/35842
18200 * config/i386/i386.c (legitimize_pic_address): Add treating
18201 of dllimport SYM_REF's.
18202 (legitimize_dllimport_symbol): Add prototype.
18203
18204 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
18205
18206 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
18207 reference in constructor with non self-referential type.
18208
18209 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
18210
18211 Removal of Return with Depressed Stack Pointer support
18212 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
18213 (ECF_SP_DEPRESSED): Likewise.
18214 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
18215 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
18216 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
18217 (expand_call): Do not test ECF_SP_DEPRESSED.
18218 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
18219 * function.c (keep_stack_depressed): Delete.
18220 (handle_epilogue_set): Likewise.
18221 (update_epilogue_consts): Likewise.
18222 (emit_equiv_load): Likewise.
18223 (thread_prologue_and_epilogue_insns): Remove support for Return with
18224 Depressed Stack Pointer.
18225 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
18226
18227 2008-04-06 Richard Guenther <rguenther@suse.de>
18228
18229 PR tree-optimization/35400
18230 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
18231 information from SSA_NAMEs.
18232
18233 2008-04-06 Anatoly Sokolov <aesok@post.ru>
18234
18235 * config/avr/avr.h (avr_mega_p): Remove declaration.
18236 (AVR_MEGA): Remove macro.
18237 * config/avr/avr.c (avr_mega_p): Remove variable.
18238 (avr_override_options): Remove inicializion of avr_mega_p.
18239 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
18240 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
18241 (avr_jump_mode): (Ditto.).
18242 (avr_output_progmem_section_asm_op): (Ditto.).
18243 (avr_asm_init_sections): (Ditto.).
18244 (avr_asm_init_sections): (Ditto.).
18245 (avr_rtx_costs): (Ditto.).
18246 * config/avr/avr.md: (Ditto.).
18247 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
18248 '__AVR_MEGA__'.
18249
18250 2008-04-06 Richard Guenther <rguenther@suse.de>
18251
18252 PR tree-optimization/35842
18253 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
18254 is_gimple_invariant_address.
18255
18256 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18257
18258 * gcc.c (default_compilers): Sync Fortran extensions list with
18259 that in fortran/lang-specs.h.
18260 * doc/invoke.texi: Likewise.
18261 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
18262 * dwarf2out.c (gen_compile_unit_die): Likewise.
18263
18264 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
18265
18266 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
18267
18268 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
18269
18270 PR target/12329
18271 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
18272 attribute is used for nested functions.
18273
18274 2008-04-05 Jan Hubicka <jh@suse.cz>
18275
18276 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
18277
18278 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
18279 letter argument.
18280 (dump_files): Update.
18281 (enable_rtl_dump_file): Do not accept letter argument.
18282 * tree-pass.h (dump_file_info): Remove letter argument.
18283 * toplev.c (decode_d_option): Update -da handling.
18284 * toplev.h (enable_rtl_dump_file): Update prototype.
18285 * passes.c (register_one_dump_file): Do not accept IPA argument; work
18286 it out based on pass type.
18287 (register_dump_files_1): Likewise.
18288 (init_optimization_passes): Update register_one_dump_file calls.
18289 (execute_one_pass): Sanity check that IPA passes are called at IPA
18290 level and RTL passes at RTL level.
18291 (execute_pass_list): IPA pass can not be after or subpass of
18292 GIMPLE/RTL pass.
18293 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
18294 disallov RTL subpasses of IPA subpasses.
18295
18296 2008-04-05 Ben Elliston <bje@au.ibm.com>
18297
18298 * tree-cfg.c (need_fake_edge_p): Return false for calls to
18299 builtins that return exactly once and do not throw. Cache call to
18300 call_expr_flags.
18301
18302 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
18303
18304 PR rtl-optimization/34916
18305 PR middle-end/35519
18306 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
18307 between instruction pairs.
18308
18309 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
18310
18311 * doc/invoke.texi: Document -mbitops for SH.
18312 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
18313 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
18314 * config/sh/sh.c (print_operand): Add %t operand code.
18315 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
18316 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
18317 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
18318 (extendqihi2): Likewise.
18319 (movqi_i): Likewise.
18320 (insv): Use bset, bclr and bst instructions for SH2A if possible.
18321 (extv): Use bld instruction for SH2A if possible.
18322 (extzv): Likewise.
18323 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
18324 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
18325 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
18326 (bset.b, bclr.b): Define peepholes.
18327 * config/sh/sh.opt (mbitops): New option.
18328
18329 2008-04-04 Janis Johnson <janis187@us.ibm.com>
18330
18331 PR target/35620
18332 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
18333 and view convert expression.
18334
18335 2008-04-04 Jakub Jelinek <jakub@redhat.com>
18336
18337 PR target/35364
18338 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
18339
18340 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
18341
18342 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
18343
18344 * config/i386/cpuid.h (bit_AES): New.
18345 (bit_PCLMUL): Likewise.
18346
18347 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
18348 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
18349 SSE2 if AES or PCLMUL is enabled.
18350 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
18351 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
18352 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
18353 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
18354 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
18355 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
18356 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
18357 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
18358 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
18359 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
18360 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
18361 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
18362 __builtin_ia32_aeskeygenassist128 and
18363 __builtin_ia32_pclmulqdq128.
18364 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
18365 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
18366 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
18367
18368 * config/i386/i386.h (TARGET_AES): New.
18369 (TARGET_PCLMUL): Likewise.
18370 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
18371
18372 * config/i386/i386.md (UNSPEC_AESENC): New.
18373 (UNSPEC_AESENCLAST): Likewise.
18374 (UNSPEC_AESDEC): Likewise.
18375 (UNSPEC_AESDECLAST): Likewise.
18376 (UNSPEC_AESIMC): Likewise.
18377 (UNSPEC_AESKEYGENASSIST): Likewise.
18378 (UNSPEC_PCLMUL): Likewise.
18379
18380 * config/i386/i386.opt (maes): New.
18381 (mpclmul): Likewise.
18382
18383 * config/i386/sse.md (aesenc): New pattern.
18384 (aesenclast): Likewise.
18385 (aesdec): Likewise.
18386 (aesdeclast): Likewise.
18387 (aesimc): Likewise.
18388 (aeskeygenassist): Likewise.
18389 (pclmulqdq): Likewise.
18390
18391 * config/i386/wmmintrin.h: New.
18392
18393 * doc/extend.texi: Document AES and PCLMUL built-in function.
18394
18395 * doc/invoke.texi: Document -maes and -mpclmul.
18396
18397 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
18398
18399 * function.c (free_after_parsing): Replace with
18400 cxx_push_function_context from C++ front-end.
18401 (allocate_struct_function): Don't call langhook.
18402 * langhooks.h (struct lang_hooks_for_functions): Delete.
18403 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
18404 member "function".
18405 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
18406 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
18407 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
18408 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
18409 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
18410 remove LANG_HOOKS_FUNCTION_INITIALIZER.
18411 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
18412
18413 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
18414 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
18415
18416 2008-04-04 Jakub Jelinek <jakub@redhat.com>
18417
18418 PR c/35440
18419 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
18420 for all types.
18421
18422 2008-04-04 Richard Guenther <rguenther@suse.de>
18423
18424 PR middle-end/35823
18425 * fold-const.c (optimize_minmax_comparison): Use the correct
18426 type for the constant in the simplified comparison.
18427
18428 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
18429
18430 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
18431 Pass L2 size as "--param l2-cache-size" to the compiler.
18432 (decode_l2_cache): New function to decode L2 cache parameters using
18433 0x8000006 extended cpuid function.
18434 (detect_caches_amd): Determine parameters of L2 cache using
18435 decode_l2_caches function.
18436 (decode_caches_intel): Decode L2 cache parameters.
18437 (detect_caches_intel): Determine L2 cache parameters using
18438 decode_caches_intel and decode_l2_caches functions.
18439
18440 2008-04-03 Bob Wilson <bob.wilson@acm.org>
18441
18442 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
18443 secondary input reload for subword loads from the constant pool.
18444
18445 2008-04-03 Janis Johnson <janis187@us.ibm.com>
18446
18447 PR target/35713
18448 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
18449 constants of the appropriate size for runtime calculations.
18450
18451 PR c/35712
18452 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
18453 decimal-float literal constant zero.
18454
18455 2008-04-03 Jakub Jelinek <jakub@redhat.com>
18456
18457 PR c/35738
18458 * c-parser.c (c_parser_omp_atomic): Call
18459 default_function_array_conversion on the RHS.
18460
18461 PR middle-end/35818
18462 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
18463 call is_variable_sized if decl has incomplete type.
18464
18465 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
18466
18467 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
18468
18469 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
18470
18471 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
18472 iterators.
18473 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
18474 (sgt<u>): Merge sgt and sgtu into new expander.
18475 (sgt, sgtu): Remove expanders.
18476 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
18477 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
18478 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
18479 *sgtu_<mode>_mips16 into new pattern.
18480 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
18481 (sge<u>): Merge sge and sgeu into new expander.
18482 (sge, sgeu): Remove expanders.
18483 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
18484 new pattern.
18485 (*sge_<mode>, second *sge_<mode>): Remove patterns.
18486 (slt<u>): Merge slt and sltu into new expander.
18487 (slt, sltu): Remove expanders.
18488 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
18489 (*slt_<mode>, *sltu_<mode>): Remove patterns.
18490 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
18491 *sltu_<mode>_mips16 into new pattern.
18492 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
18493 (sle<u>): Merge sle and sleu into new expander.
18494 (sle, sleu): Remove expanders.
18495 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
18496 (*sle_<mode>, *sleu_<mode>): Remove patterns.
18497 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
18498 *sleu_<mode>_mips16 into new pattern.
18499 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
18500
18501 2008-04-03 Jan Hubicka <jh@suse.cz>
18502
18503 PR tree-optimization/35795
18504 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
18505 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
18506 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
18507 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
18508 * score/score3.c (score3_output_mi_thunk): Likewise.
18509 * score/score7.c (score7_output_mi_thunk): Likewise.
18510 * mips/mips.c (mips_output_mi_thunk): Likewise.
18511
18512 2008-04-03 Richard Guenther <rguenther@suse.de>
18513
18514 * tree-vrp.c (extract_range_from_unary_expr): Handle all
18515 conversions. Simplify code.
18516
18517 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
18518
18519 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
18520
18521 2008-04-03 Tom Tromey <tromey@redhat.com>
18522 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18523
18524 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
18525 * config/bfin/t-bfin-linux (generated_files): Add
18526 linux-sysroot-suffix.h.
18527 * doc/install.texi (Prerequisites): Require make 3.80.
18528 * doc/sourcebuild.texi (Front End Directory): Document new
18529 variable.
18530 * Makefile.in (generated_files): New variable.
18531 (ALL_HOST_OBJS): New variable.
18532 ($(ALL_HOST_OBJS)): New target.
18533
18534 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
18535
18536 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
18537 (remap_block): Call id->transform_lang_insert_block instead
18538 of langhook.
18539 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
18540 Set id.transform_lang_insert_block to NULL.
18541 (clone_body): Move to cp/optimize.c
18542 * tree-inline.h (struct copy_body_data): Change
18543 transform_lang_insert_block to function pointer.
18544 (copy_generic_body, copy_decl_no_change): Export.
18545 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
18546 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
18547 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
18548
18549 * c-tree.h (insert_block): Kill.
18550 * c-decl.c (insert_block): Kill.
18551
18552 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
18553
18554 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
18555 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
18556 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
18557 argument.
18558 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
18559 argument, call {push,pop}_function_context from here.
18560 * c-parser.c: Use c_{push,pop}_function_context.
18561
18562 * function.c (push_function_context_to): Move meat ...
18563 (push_function_context): ... here. Simplify.
18564 * function.c (pop_function_context_from): Move meat ...
18565 (pop_function_context): ... here. Simplify.
18566 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
18567 leave_nested).
18568 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
18569 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
18570 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
18571 * tree.h (push_function_context_to, pop_function_context_from): Remove.
18572
18573 2008-04-03 Ben Elliston <bje@au.ibm.com>
18574
18575 * expmed.c (extract_force_align_mem_bit_field): Remove.
18576
18577 2008-04-03 Richard Guenther <rguenther@suse.de>
18578
18579 PR middle-end/35800
18580 * expr.h (try_casesi): Adjust prototype.
18581 * expr.c (try_casesi): Take fallback label as extra parameter.
18582 Use that for gen_casesi if default_label is NULL.
18583 * stmt.c (expand_case): Pass fallback label to try_casesi,
18584 make sure to fill gaps with a fallback label if default_label
18585 is not present.
18586
18587 2008-04-03 Dominique d'Humières <dominiq@lps.ens.fr>
18588
18589 PR target/35801
18590 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
18591
18592 2008-04-03 Ben Elliston <bje@au.ibm.com>
18593
18594 * expmed.c (extract_split_bit_field): Remove if (0) code.
18595 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
18596 (do_ds_constraint): Likewise.
18597
18598 2008-04-02 Joseph Myers <joseph@codesourcery.com>
18599
18600 * doc/cppopts.texi (-dU): Document.
18601 * c-common.h (flag_dump_macros): Update comment.
18602 * c-opts.c (handle_OPT_d): Handle -dU.
18603 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
18604 dump_queued_macros, cb_used_define, cb_used_undef): New.
18605 (init_pp_output): Handle -dU.
18606 (cb_line_change): Call dump_queued_macros.
18607 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
18608
18609 2008-04-02 Anatoly Sokolov <aesok@post.ru>
18610
18611 * config/avr/predicates.md (io_address_operand): New predicate.
18612 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
18613 * config/avr/avr.c (avr_io_address_p): Remove function.
18614 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
18615 'avr_io_address_p' function.
18616 (out_movhi_r_mr): (Ditto.).
18617 (out_movqi_mr_r): (Ditto.).
18618 (out_movhi_mr_r): (Ditto.).
18619 (avr_address_cost): (Ditto.).
18620
18621 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
18622
18623 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
18624 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
18625 in 32bit mode when XMM registers are available to avoid store
18626 forwarding stalls.
18627 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
18628 corresponding post-reload splitters.
18629
18630 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
18631
18632 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
18633 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
18634 __builtin_ia32_roundss.
18635 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
18636 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
18637 __builtin_ia32_roundss.
18638 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
18639 IX86_BUILTIN_SHUFPD here.
18640
18641 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
18642
18643 * config/i386/i386.md (plogic): New.
18644 (plogicprefix): Likewise.
18645
18646 * config/i386/mmx.md (mmx_<code><mode>3): New.
18647 (mmx_and<mode>3): Removed.
18648 (mmx_ior<mode>3): Likewise.
18649 (mmx_xor<mode>3): Likewise.
18650
18651 * config/i386/sse.md (<code><mode>3): New.
18652 (*<code><mode>3): Likewise.
18653 (*<code><mode>3): Likewise.
18654 (<code><mode>3): Likewise.
18655 (*sse_<code><mode>3): Likewise.
18656 (*sse2_<code><mode>3): Likewise.
18657 (<code>tf3): Likewise.
18658 (*<code>tf3): Likewise.
18659 (and<mode>3): Likewise.
18660 (*and<mode>3): Likewise.
18661 (ior<mode>3): Removed.
18662 (*ior<mode>3): Likewise.
18663 (xor<mode>3): Likewise.
18664 (*xor<mode>3): Likewise.
18665 (*and<mode>3): Likewise.
18666 (*ior<mode>3): Likewise.
18667 (*xor<mode>3): Likewise.
18668 (and<mode>3): Likewise.
18669 (*sse_and<mode>3): Likewise.
18670 (*sse2_and<mode>3): Likewise.
18671 (andtf3): Likewise.
18672 (*andtf3): Likewise.
18673 (ior<mode>3): Likewise.
18674 (*sse_ior<mode>3): Likewise.
18675 (*sse2_ior<mode>3): Likewise.
18676 (iortf3): Likewise.
18677 (*iortf3): Likewise.
18678 (xor<mode>3): Likewise.
18679 (*sse_xor<mode>3): Likewise.
18680 (*sse2_xor<mode>3): Likewise.
18681 (xortf3): Likewise.
18682 (*xortf3): Likewise.
18683
18684 2008-04-02 Richard Guenther <rguenther@suse.de>
18685
18686 PR tree-optimization/14495
18687 PR tree-optimization/34793
18688 * tree-vrp.c (struct switch_update): New structure.
18689 (to_remove_edges, to_update_switch_stmts): New VECs.
18690 (simplify_switch_using_ranges): New function. Remove not taken
18691 case labels and edges.
18692 (simplify_stmt_using_ranges): Call it.
18693 (identify_jump_threads): Mark edges we have queued for removal
18694 so we don't thread them.
18695 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
18696 case label vector.
18697 * tree-cfg.c (group_case_labels): Deal with missing default label.
18698 (tree_verify_flow_info): Allow missing default label.
18699 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
18700 (emit_case_nodes): Likewise.
18701 (expand_case): Do not rely on the default label to be present.
18702 * expr.c (try_casesi): Deal with NULL default_label.
18703 (do_tablejump): Likewise.
18704
18705 2008-04-02 Richard Guenther <rguenther@suse.de>
18706
18707 PR tree-optimization/14495
18708 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
18709 SWITCH_EXPR here ...
18710 (vrp_visit_switch_stmt): ... but here (new function).
18711 (find_case_label_index): New helper function.
18712 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
18713
18714 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
18715
18716 * fwprop.c: Fix ISO-C99ism.
18717
18718 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
18719
18720 PR bootstrap/35752
18721 * Makefile.in (objdir): Set it here.
18722 * configure.ac: Not here. Find dynamic linker characteristics.
18723 * exec-tool.in: Use them.
18724 * aclocal.m4: Regenerate.
18725 * configure: Regenerate.
18726
18727 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
18728
18729 * expr.c (expand_var): Delete it.
18730 * expr.h (expand_var): Delete prototype.
18731 * function.c (expand_function_start): Use expand_decl instead.
18732 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
18733 langhook.
18734
18735 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
18736
18737 PR rtl-optimization/35542
18738 * fwprop.c (forward_propagate_and_simplify): Replace
18739 loc_reg_mentioned_in_p with reg_mentioned_p.
18740
18741 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
18742
18743 PR rtl-optimization/35281
18744 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
18745 (propagate_rtx_1): Handle PR_HANDLE_MEM.
18746 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
18747 (varying_mem_p): Move above propagate_rtx.
18748 (all_uses_available_at): Do not check MEMs.
18749
18750 2008-04-02 Rafael Espíndola <espindola@google.com>
18751
18752 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
18753 (register_edge_assert_for_2): Split the cond argument.
18754 (register_edge_assert_for_1): Adjust for the change in
18755 register_edge_assert_for_2.
18756 (register_edge_assert_for): Split the cond argument.
18757 (find_switch_asserts): Adjust for the change in
18758 register_edge_assert_for.
18759
18760 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
18761
18762 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
18763 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
18764 offsets for 64-bit mingw.
18765 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
18766 abi for x86_64-pc-mingw.
18767
18768 2008-04-02 Richard Guenther <rguenther@suse.de>
18769
18770 * tree-vrp.c (extract_range_from_assert): Make sure to not
18771 produce range min/max with TREE_OVERFOW set.
18772 If merging a anti-range and a range keep the anti-range if
18773 the range covers all values of the type.
18774 (register_edge_assert_for_2): Only allow sign-changing
18775 conversions in detecting canonical range checks. Also
18776 register an assert for the unsigned name if useful.
18777
18778 PR tree-optimization/35787
18779 * tree-vrp.c (vrp_val_max): New function.
18780 (vrp_val_min): Likewise.
18781 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
18782 (vrp_val_is_min): Likewise.
18783 (supports_overflow_infinity): Use vrp_val_{min,max}.
18784 (negative_overflow_infinity): Likewise.
18785 (positive_overflow_infinity): Likewise.
18786 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
18787 (is_positive_overflow_infinity): Likewise.
18788 (is_overflow_infinity): Likewise.
18789 (avoid_overflow_infinity): Use vrp_val_{min,max} and
18790 vrp_val_is_{min,max}.
18791 (set_and_canonicalize_value_range): Canonicalize anti-ranges
18792 to ranges if possible. Avoid empty ranges.
18793
18794 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18795
18796 PR middle-end/35705
18797 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
18798 the expression is a function address.
18799
18800 2008-04-01 George Helffrich <george@gcc.gnu.org>
18801
18802 PR fortran/35154, fortran/23057
18803 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
18804 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
18805 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
18806 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
18807 in common.
18808 (dbxout_syms): Check for COMMON-based symbol and wrap in
18809 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
18810 in bracket for efficiency.
18811
18812 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
18813 using DW_TAG_common_block + member offset.
18814 (add_pubname_string): New function.
18815 (dw_expand_expr): New function to find block name and offset for
18816 COMMON var.
18817 (common_check): New function to check whether symbol in Fortran COMMON.
18818 (gen_variable_die): If COMMON, use DW_TAG_common_block.
18819
18820 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
18821
18822 PR c/35436
18823 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
18824
18825 2008-04-02 Ben Elliston <bje@au.ibm.com>
18826
18827 * config/v850/v850.md (casesi): Remove if (0) code.
18828 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
18829 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
18830
18831 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
18832
18833 * config/i386/i386.md (rex64suffix): New mode attribute.
18834 (floathi<mode>2): Disable expander for SSE math.
18835 (*floathi<mode>2_1): New insn insn_and_split pattern.
18836 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
18837 corresponding post-reload splitters.
18838 (*floathi<mode>2_i387): New macroized insn pattern.
18839 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
18840 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
18841 insn_and_split pattern.
18842 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
18843 New macroized instruction patterns and corresponding post-reload
18844 splitters.
18845 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
18846 and corresponding post-reload splitters.
18847 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
18848 New macroized instruction patterns.
18849 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
18850 macroized instruction patterns and corresponding post-reload splitters.
18851 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
18852 corresponding post-reload splitters.
18853 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
18854 New macroized instruction patterns.
18855 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
18856 corresponding post-reload splitters.
18857 (*floatsi<mode>2_i387): New macroized instruction patterns.
18858
18859 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
18860
18861 * config/i386/i386.md (smaxmin): New.
18862 (umaxmin): Likewise.
18863 (maxminiprefix): Likewise.
18864 (maxminfprefix): Likewise.
18865 (<code><mode>3): Likewise.
18866 (smin<mode>3): Removed.
18867 (smax<mode>3): Likewise.
18868
18869 * config/i386/mmx.md (mmx_<code>v2sf3): New.
18870 (mmx_<code>v4hi3): Likewise.
18871 (mmx_<code>v8qi3): Likewise.
18872 (mmx_smaxv2sf3): Removed.
18873 (mmx_sminv2sf3): Likewise.
18874 (mmx_umaxv8qi3): Likewise.
18875 (mmx_smaxv4hi3): Likewise.
18876 (mmx_uminv8qi3): Likewise.
18877 (mmx_sminv4hi3): Likewise.
18878
18879 * config/i386/sse.md (<addsub><mode>3): New.
18880 (*<addsub><mode>3): Likewise.
18881 (<sse>_vm<addsub><mode>3): Likewise.
18882 (<maxmin><mode>3): Likewise.
18883 (*<maxmin><mode>3_finite): Likewise.
18884 (*<maxmin><mode>3): Likewise.
18885 (<sse>_vm<maxmin><mode>3): Likewise.
18886 (sse3_h<addsub>v4sf3): Likewise.
18887 (sse3_h<addsub>v2df3): Likewise.
18888 (<maxmin>v16qi3): Likewise.
18889 (*<maxmin>v16qi3): Likewise.
18890 (<maxmin>v8hi3): Likewise.
18891 (*<maxmin>v8hi3): Likewise.
18892 (*sse4_1_<maxmin><mode>3): Likewise.
18893 (*sse4_1_<maxmin><mode>3): Likewise.
18894 (add<mode>3): Removed.
18895 (*add<mode>3): Likewise.
18896 (<sse>_vmadd<mode>3): Likewise.
18897 (sub<mode>3): Likewise.
18898 (*sub<mode>3): Likewise.
18899 (<sse>_vmsub<mode>3): Likewise.
18900 (smin<mode>3): Likewise.
18901 (*smin<mode>3_finite): Likewise.
18902 (*smin<mode>3): Likewise.
18903 (<sse>_vmsmin<mode>3): Likewise.
18904 (smax<mode>3): Likewise.
18905 (*smax<mode>3_finite): Likewise.
18906 (*smax<mode>3): Likewise.
18907 (<sse>_vmsmax<mode>3): Likewise.
18908 (sse3_haddv4sf3): Likewise.
18909 (sse3_haddv2df3): Likewise.
18910 (sse3_hsubv4sf3): Likewise.
18911 (sse3_hsubv2df3): Likewise.
18912 (umaxv16qi3): Likewise.
18913 (*umaxv16qi3): Likewise.
18914 (smaxv8hi3): Likewise.
18915 (*smaxv8hi3): Likewise.
18916 (*sse4_1_smax<mode>3): Likewise.
18917 (*sse4_1_umax<mode>3): Likewise.
18918 (uminv16qi3): Likewise.
18919 (*uminv16qi3): Likewise.
18920 (sminv8hi3): Likewise.
18921 (*sminv8hi3): Likewise.
18922 (*sse4_1_smin<mode>3): Likewise.
18923 (*sse4_1_umin<mode>3): Likewise.
18924
18925 2008-04-01 Rafael Espíndola <espindola@google.com>
18926
18927 * tree-cfg.c (verify_expr): remove in_phi.
18928 (verify_stmt): Don't call walk_tree with verify_expr. Use
18929 is_gimple_min_invariant instead of is_gimple_val.
18930
18931 2008-04-01 Joseph Myers <joseph@codesourcery.com>
18932
18933 * doc/include/gpl_v3.texi: Update for manpage generation.
18934 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
18935 gpl.texi.
18936 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
18937 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
18938 gpl_v3.texi instead of gpl.texi.
18939 (gpl.pod): New.
18940
18941 2008-04-01 Jakub Jelinek <jakub@redhat.com>
18942
18943 PR pch/13675
18944 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
18945
18946 2008-04-01 Rafael Espíndola <espindola@google.com>
18947
18948 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
18949 (extract_code_and_val_from_cond): Use
18950 extract_code_and_val_from_cond_with_ops.
18951
18952 2008-04-01 Jan Hubicka <jh@suse.cz>
18953
18954 * function.c (free_after_compilation): Free epilogue_delay_list.
18955 (prepare_function_start): Assert that previous compilation was freed.
18956
18957 2008-04-01 Jan Hubicka <jh@suse.cz>
18958 Jim Wilson <wilson@tuliptree.org>
18959 Andreas Tobler <andreast@gcc.gnu.org>
18960
18961 PR middle-end/35781
18962 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
18963 rtl.emit instead cfun->emit.
18964 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
18965 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
18966
18967 2008-04-01 Ben Elliston <bje@au.ibm.com>
18968
18969 * doc/c-tree.texi (Function Basics): Fix grammatical error.
18970
18971 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
18972
18973 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
18974 New options
18975 (fprofile-use): Add var flag_profile_use
18976 * coverage.c (coverage_begin_output): Do not open a gcno file for
18977 output only if -ftest-coverage is set.
18978 Do not add getpwd() to gcda file path.
18979 (build_gcov_info): Check the new flag
18980 flag_profile_datafile_relative_path.
18981 (coverage_init): Use profile_data_prefix.
18982 Read profile counter only if flag_profile_use is set.
18983 * opts.c (common_handle_option): New option fprofile-use=,
18984 fprofile-dir=, fprofile-generate=.
18985 * toplev.c (profile_data_prefix): New variable definition.
18986 * toplev.h (profile_data_prefix): New declaration.
18987 * doc/invoke.tex (Option Summary, Optimization Options):
18988 Add new options.
18989
18990 2008-03-31 James E. Wilson <wilson@tuliptree.org>
18991
18992 * varasm.c (output_constant_pool_1): In LABEL_REF check,
18993 use tmp consistently.
18994
18995 PR target/35695
18996 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
18997 * config/ia64/ia64.c (rtx_needs_barrier): Handle
18998 UNSPEC_FR_RECIP_APPROX_RES.
18999 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
19000
19001 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
19002
19003 PR c/35750
19004 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
19005
19006 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
19007
19008 PR middle-end/30186
19009 * fold-const.c (fold_indirect_ref_1): Support accessing non first
19010 element of the vector via a pointer.
19011
19012 2008-03-31 Ian Lance Taylor <iant@google.com>
19013
19014 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
19015
19016 2008-03-31 Jan Hubicka <jh@suse.cz>
19017
19018 * builtins.c (expand_builtin_setjmp_receiver): Update call of
19019 get_arg_pointer_save_area.
19020 * expr.c (init_expr): Just clear out rtl.expr.
19021 * function.c (free_after_compilation): Clear out whole RTL structure.
19022 (get_func_frame_size): Merge into ...
19023 (get_frame_size): ... this one.
19024 (assign_stack_local_1): Merge into ...
19025 (assign_stack_local): ... this one.
19026 (expand_function_end): Update call of get_arg_pointer_save_area.
19027 (get_art_pointer_save_area): Remove cfun argument.
19028 * function.h (emit_status): regno_pointer_align does not need length
19029 attribute. Move x_regno_reg_rtx to ...
19030 (regno_reg_rtx): ... new global array.
19031 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
19032 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
19033 apply_args_value, forced_labels, stack_pointer_delta):
19034 Update accestors.
19035 (struct varasm_status): Move here from varasm.c
19036 (struct rtl_data): New. Move here some fields from struct function.
19037 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
19038 frame_offset, stack_check_probe_note, arg_pointer_save_area,
19039 used_temp_slots avail_temp_slots, temp_slot_level,
19040 nonlocal_goto_handler_labels): Update accesstors.
19041 (rtl): New global variable.
19042 (struct function): Move some fileds to rtl_data.
19043 (get_arg_pointer_save_area): Update prototype.
19044 * emit-rtl.c (rtl): Declare.
19045 (regno_reg_rtx): Declare.
19046 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
19047 Update.
19048 (gen_reg_rtx): Update.
19049 (init_virtual_regs): Do not tate emit_status argument.
19050 (init_emit): Do not allocate emit.
19051 * varasm.c (varasm_statuc): Move to function.h.
19052 (n_deferred_constatns): Update accestor.
19053 (init_varasm_status): Do not allocate varasm_status.
19054 (force_const_mem, get_pool_size, output_constant_pool): Update.
19055 * stmt.c (force_label_rtx): Do not use x_ prefixes.
19056 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
19057
19058 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
19059
19060 PR rtl-optimization/35729
19061 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
19062 references.
19063
19064 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
19065
19066 PR target/32000
19067 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
19068 load/store if memory is unaligned.
19069 (*movti_rex64): Likewise.
19070
19071 * config/i386/predicates.md (misaligned_operand): New.
19072
19073 2008-03-31 Andrew Pinski <pinskia@gmail.com>
19074
19075 PR tree-opt/35431
19076 * tree-ssa-phiopt.c (conditional_replacement): Return early for
19077 complex types.
19078
19079 2008-03-31 Jan Beulich <jbeulich@novell.com>
19080
19081 * config/ia64/constraints.md: Add 'j' constraint.
19082 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
19083 (movdi_internal): Likewise.
19084
19085 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
19086
19087 PR c/35748
19088 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
19089
19090 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
19091
19092 PR target/35757
19093 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
19094 proper error message for the third argument on blendpd and
19095 blendps.
19096
19097 * config/i386/sse.md (blendbits): New.
19098 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
19099
19100 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
19101
19102 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
19103
19104 2008-03-30 Richard Guenther <rguenther@suse.de>
19105
19106 PR middle-end/31023
19107 * fold-const.c (fold_sign_changed_comparison): Do leave
19108 conversions to base-types alone.
19109
19110 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
19111
19112 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
19113 the link register if one altivec register is be saved.
19114
19115 2008-03-30 Ben Elliston <bje@au.ibm.com>
19116
19117 * final.c (final_scan_insn): Remove if (0) code.
19118
19119 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
19120
19121 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
19122
19123 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
19124
19125 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
19126 of V4SFmode to ix86_binary_operator_ok.
19127
19128 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
19129
19130 * config/i386/i386.c (override_options): Initialize
19131 ix86_veclib_handler to ix86_veclibabi_svml when
19132 -mveclibabi=svml is used.
19133 (ix86_veclibabi_svml): New function for SVML ABI style
19134 vectorization support.
19135 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
19136
19137 2008-03-28 Rafael Espíndola <espindola@google.com>
19138
19139 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
19140 (tree_binary_nonnegative_warnv_p): Make it public.
19141 (tree_single_nonnegative_warnv_p): Make it public.
19142 (tree_invalid_nonnegative_warnv_p): Make it public.
19143 (tree_unary_nonzero_warnv_p): Make it public.
19144 (tree_binary_nonzero_warnv_p): Make it public
19145 (tree_single_nonzero_warnv_p): Make it public.
19146 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
19147 (extract_range_from_binary_expr): Split the expr argument.
19148 (extract_range_from_unary_expr): Split the expr argument.
19149 (extract_range_from_comparison): Split the expr argument.
19150 (extract_range_from_expr): Use the new aux functions.
19151 (vrp_evaluate_conditional_warnv): Use
19152 vrp_evaluate_conditional_warnv_with_ops.
19153 * tree.h (tree_unary_nonzero_warnv_p): Declare.
19154 (tree_binary_nonzero_warnv_p): Declare.
19155 (tree_single_nonzero_warnv_p): Declare.
19156 (tree_expr_nonzero_warnv_p): Declare.
19157 (tree_unary_nonnegative_warnv_p): Declare.
19158 (tree_binary_nonnegative_warnv_p): Declare.
19159 (tree_single_nonnegative_warnv_p): Declare.
19160 (tree_invalid_nonnegative_warnv_p): Declare.
19161
19162 2008-03-28 Richard Guenther <rguenther@suse.de>
19163
19164 PR tree-optimization/30317
19165 PR tree-optimization/30911
19166 PR tree-optimization/34793
19167 * tree-vrp.c (set_and_canonicalize_value_range): New function.
19168 (struct assert_locus_d): New member EXPR.
19169 (register_new_assert_for): Add EXPR parameter to support
19170 ASSERT_EXPR <name, expr OP limit>.
19171 (register_edge_assert_for_1): Adjust callers.
19172 (find_assert_locations): Likewise.
19173 (process_assert_insertions_for): Build condition from expression.
19174 (extract_range_from_assert): Handle ASSERT_EXPRs
19175 of the form ASSERT_EXPR <name, expr OP limit>.
19176 (register_edge_assert_for_2): New helper registering
19177 asserts for comparisons. Recognize range tests of the form
19178 (unsigned)i - CST1 OP CST2.
19179 (register_edge_assert_for_1): Use it.
19180 (register_edge_assert_for): Likewise.
19181 (needs_overflow_infinity): Integer sub-types
19182 do not need overflow infinities.
19183 (vrp_val_is_max): The extreme values of integer sub-types
19184 are those of the base type.
19185 (vrp_val_is_min): Likewise.
19186 * tree.def (ASSERT_EXPR): Document extra allowed conditional
19187 expressions.
19188
19189 2008-03-28 Nick Clifton <nickc@redhat.com>
19190
19191 PR target/31110
19192 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
19193 Return GENERAL_REGS for stack adjustment reloads.
19194
19195 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
19196
19197 PR target/31334
19198 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
19199 const_vector when all the vectors are constant.
19200
19201 2008-03-27 Bob Wilson <bob.wilson@acm.org>
19202
19203 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
19204 comparisons.
19205 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
19206 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
19207 (scc_sf): New.
19208 (s<code>_sf): Use new scc_sf attribute for opcode names.
19209
19210 2008-03-27 Tom Tromey <tromey@redhat.com>
19211
19212 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
19213 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
19214 config/spu/t-spu-elf, config/i386/t-interix,
19215 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
19216 config/i386/x-darwin, config/i386/x-mingw32,
19217 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
19218 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
19219 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
19220 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
19221 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
19222 config/rs6000/x-darwin, config/rs6000/t-rs6000,
19223 config/score/t-score-elf, config/arm/t-strongarm-pe,
19224 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
19225 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
19226 Revert automatic dependency patch.
19227
19228 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
19229
19230 PR target/35657
19231 * config/i386/i386.c (ix86_function_arg_boundary): Align
19232 decimal floating point to its natural boundary.
19233
19234 2008-03-27 Richard Guenther <rguenther@suse.de>
19235
19236 PR middle-end/35716
19237 * fold-const.c (fold_comparison): Restrict distinct decl
19238 comparison folding to VAR_DECLs and PARM_DECLs. Do not
19239 solely rely on operand_equal_p.
19240
19241 2008-03-27 Richard Guenther <rguenther@suse.de>
19242
19243 PR c/32511
19244 * c-common.c (handle_weak_attribute): Reject combination of
19245 weak and inline.
19246
19247 2008-03-27 Richard Guenther <rguenther@suse.de>
19248
19249 PR tree-optimization/32810
19250 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
19251 conversions from DECL_INITIAL.
19252 (fold_const_aggregate_ref): Likewise from constructor elements.
19253
19254 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
19255
19256 * tree-affine.h (aff_combination_expand): Declare.
19257 (get_inner_reference_aff): Likewise.
19258 * tree-affine.c (aff_combination_expand): Split out from
19259 tree_to_aff_combination_expand.
19260 (get_inner_reference_aff): New function.
19261 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
19262 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
19263 (struct lim_aux_data): sm_done field removed.
19264 (mem_ref_loc_p, mem_ref_locs_p): New types.
19265 (struct mem_ref): Added id, stored, accesses_in_loop,
19266 indep_loop, dep_loop, indep_ref, dep_ref fields.
19267 Removed is_stored, locs and next fields.
19268 (memory_accesses): New variable.
19269 (movement_possibility): Do not allow moving statements
19270 that store to memory.
19271 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
19272 New functions.
19273 (determine_max_movement): For statements with memory references,
19274 find the outermost loop in that the reference is independent.
19275 (move_computations_stmt): Mark the virtual operands for renaming.
19276 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
19277 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
19278 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
19279 add_vop_ref_mapping, create_vop_ref_mapping_loop,
19280 create_vop_ref_mapping, analyze_memory_references,
19281 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
19282 get_all_locs_in_loop, ref_always_accessed_p,
19283 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
19284 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
19285 store_motion_loop, store_motion): New functions.
19286 (struct vop_to_refs_elt): New type.
19287 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
19288 memref_hash, memref_eq, hoist_memory_references): Rewritten.
19289 (schedule_sm): Replaced by...
19290 (execute_sm): ... this.
19291 (determine_lsm_ref, hoist_memory_references,
19292 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
19293 find_more_ref_vops, free_mem_ref, free_mem_refs,
19294 determine_lsm_loop, determine_lsm): Removed.
19295 (tree_ssa_lim_finalize): Free data structures used by store motion.
19296 (tree_ssa_lim): Call analyze_memory_references. Use
19297 store_motion instead of determine_lsm.
19298
19299 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
19300
19301 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
19302 rename tmake_file to m68hc11/t-m68hc11.
19303 (mcore): Set inhibit_libc to true.
19304 * config.host (alpha*-dec-*vms*): Set extra_programs.
19305 (interix3*): Don't use host_xmake_file.
19306 * configure.ac: Let config.gcc override inhibit_libc.
19307 * configure: Regenerate.
19308
19309 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
19310 * config/t-openbsd-thread: Remove commented out lines.
19311
19312 * config/x-interix: Remove.
19313
19314 * config/m68hc11/t-m68hc11-gas: Rename to...
19315 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
19316
19317 * config/mcore/t-mcore: Remove T_CFLAGS.
19318 * config/mcore/t-mcore-pe: Likewise.
19319
19320 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
19321
19322 * configure.ac: Replace custom __GNU_SOURCE test with
19323 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
19324 * aclocal.m4: Regenerate.
19325 * configure: Regenerate.
19326 * config.in: Regenerate.
19327
19328 2008-03-27 Richard Guenther <rguenther@suse.de>
19329
19330 * fold-const.c (target.h): Include.
19331 (fold_comparison): Fold comparison of addresses of decls
19332 that bind locally or of constants. Consolidate address folding code.
19333 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
19334 results from fold_binary_to_constant.
19335 (compare_values_warnv): Likewise.
19336
19337 2008-03-27 Andrew Pinski <pinskia@gmail.com>
19338
19339 PR middle-end/35429
19340 * fold-const.c (fold_truthop): Check for integeral types when folding
19341 a == 0 && b == 0 and a != 0 || b != 0 .
19342
19343 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
19344
19345 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
19346
19347 2008-03-26 Andreas Schwab <schwab@suse.de>
19348
19349 * doc/invoke.texi: Fix use of @item vs. @itemx.
19350
19351 2008-03-26 Tom Tromey <tromey@redhat.com>
19352
19353 * Makefile.in (build/gensupport.o, build/print-rtl.o,
19354 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
19355 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
19356 build/gencodes.o, build/genconditions.o, build/genconfig.o,
19357 build/genconstants.o, build/genemit.o, build/genextract.o,
19358 build/genflags.o, build/genmddeps.o, build/genopinit.o,
19359 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
19360 options.h.
19361
19362 2008-03-26 Richard Guenther <rguenther@suse.de>
19363
19364 Revert
19365 2008-03-26 Richard Guenther <rguenther@suse.de>
19366
19367 * fold-const.c (target.h): Include.
19368 (fold_comparison): Fold comparison of addresses of two decls
19369 that bind locally. Consolidate address folding code.
19370
19371 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19372
19373 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
19374 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
19375 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
19376 dconstsqrt2, dconstthird, dconste and/or dconst10.
19377 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
19378 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
19379 dconstsqrt2, dconste): Delete.
19380 (init_emit_once): Likewise. Simplify initializing dconstm1.
19381 Constify variable.
19382 * real.c (get_real_const): New.
19383 * real.h (dconst3, dconst10, dconstm2, dconstthird,
19384 dconstsqrt2, dconste): Delete.
19385 (real_value_const, get_real_const): New.
19386
19387 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
19388
19389 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
19390
19391 * config/i386/i386.c (ix86_function_arg_boundary): Check
19392 BIGGEST_ALIGNMENT instead of 128.
19393 (setup_incoming_varargs_64): Likewise.
19394
19395 2008-03-26 Tom Tromey <tromey@redhat.com>
19396
19397 * Makefile.in (DEPFILES): Add missing '/'.
19398
19399 2008-03-26 Richard Guenther <rguenther@suse.de>
19400
19401 * fold-const.c (target.h): Include.
19402 (fold_comparison): Fold comparison of addresses of two decls
19403 that bind locally. Consolidate address folding code.
19404
19405 2008-03-26 Nick Clifton <nickc@redhat.com>
19406
19407 PR target/31232
19408 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
19409 not allow INT+INT as a legitimate addressing mode.
19410
19411 2008-03-26 Richard Guenther <rguenther@suse.de>
19412
19413 * tree-flow.h (widen_bitfield): Remove declaration.
19414 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
19415 (widen_bitfield): Remove function.
19416 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
19417 code.
19418
19419 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
19420
19421 PR target/31558
19422 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
19423 error_mark_node's.
19424
19425 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
19426
19427 PR rtl-optimization/35232
19428 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
19429 (forget_old_reloads_1, forget_marked_reloads): Don't clear
19430 reg_reloaded_call_part_clobbered here.
19431 (reload_regs_reach_end_p): New function.
19432 (reload_reg_rtx_for_input): New variable.
19433 (reload_reg_rtx_for_output): Likewise.
19434 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
19435 when reassigning a pseudo register. Load reloadreg from
19436 reload_reg_rtx_for_input, moving the mode and register
19437 calculation to...
19438 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
19439 instead of the original when deciding whether an input reload
19440 would be a no-op or whether an output reload can be deleted.
19441 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
19442 when setting up new_spill_reg_store. Load it from
19443 reload_reg_rtx_for_output, moving the mode and register
19444 calculation to...
19445 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
19446 instead of the original when deciding whether an output reload
19447 would be a no-op. Do the same when modifying insn notes.
19448 Use rtx_equal_p instead of == to compare the registers.
19449 (inherit_piecemeal_p): Take a mode and two register numbers
19450 as argument.
19451 (emit_reload_insns): Clear new_spill_reg_store for every hard
19452 register in the reload register. Remove spill registers
19453 from reg_reloaded_valid before considering whether to record
19454 inheritance information for them. Use reload_reg_rtx_for_output
19455 instead of reg_rtx when recording output reloads. Use
19456 reload_reg_rtx_for_input instead of reg_rtx when recording
19457 input reloads. Set or clear reg_reloaded_call_part_clobbered
19458 at the same time as setting reg_reloaded_valid.
19459 (delete_output_reload): Add a new_reload_reg parameter and use it
19460 instead of rld[j].reg_rtx.
19461 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
19462 calls accordingly.
19463
19464 2008-03-25 Tom Tromey <tromey@redhat.com>
19465
19466 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
19467 (build/genattr.o): Likewise.
19468 (build/genattrtab.o): Likewise.
19469 (build/gencodes.o): Likewise.
19470 (build/genconfig.o): Likewise.
19471 (build/genconstants.o): Likewise.
19472 (build/genemit.o): Likewise.
19473 (build/genextract.o): Likewise.
19474 (build/genflags.o): Likewise.
19475
19476 2008-03-25 Bob Wilson <bob.wilson@acm.org>
19477
19478 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
19479 instead of size_int for integer types.
19480 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
19481 to match type of MINUS_EXPR.
19482
19483 2008-03-25 Tom Tromey <tromey@redhat.com>
19484
19485 * configure: Rebuilt.
19486 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
19487 Makefile.
19488
19489 2008-03-25 Tom Tromey <tromey@redhat.com>
19490
19491 * config/x-solaris (host-solaris.o): Update.
19492 * config/x-linux (host-linux.o): Update.
19493 * config/x-hpux (host-hpux.o): Update.
19494 * config/x-darwin (host-darwin.o): Update.
19495 * config/v850/t-v850e (v850-c.o): Update.
19496 * config/v850/t-v850 (v850-c.o): Update.
19497 * config/t-vxworks (vxworks.o): Update.
19498 * config/t-sol2 (sol2-c.o, sol2.o): Update.
19499 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
19500 * config/spu/t-spu-elf (spu-c.o): Update.
19501 (spu.o): Remove.
19502 * config/sh/t-symbian (sh-c.o): Update.
19503 (symbian.o): Update.
19504 * config/sh/t-sh (sh-c.o): Update.
19505 * config/score/t-score-elf (score7.o, score3.o): Update.
19506 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
19507 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
19508 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
19509 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
19510 (rs6000.o): Remove.
19511 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
19512 * config/m32c/t-m32c (m32c-pragma.o): Update.
19513 * config/ia64/t-ia64 (ia64-c.o): Update.
19514 * config/i386/x-mingw32 (host-mingw32.o): Update.
19515 * config/i386/x-i386 (driver-i386.o): Update.
19516 * config/i386/x-darwin (host-i386-darwin.o): Update.
19517 * config/i386/x-cygwin (host-cygwin.o): Update.
19518 * config/i386/t-nwld (nwld.o): Update.
19519 * config/i386/t-netware (netware.o): Update.
19520 * config/i386/t-interix (winnt.o): Update.
19521 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
19522 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
19523 msformat-c.o): Update.
19524 * config/bfin/t-bfin-linux (generated_files): Add
19525 linux-sysroot-suffix.h.
19526 * config/arm/t-wince-pe (pe.o): Update.
19527 * config/arm/t-strongarm-pe (pe.o): Update.
19528 * config/arm/t-pe (pe.o): Update.
19529 * config/arm/t-arm (arm-c.o): Update.
19530 * doc/install.texi (Prerequisites): Require make 3.80.
19531 * Makefile.in: Remove .o targets.
19532 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
19533 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
19534 (simple_generated_h, simple_generated_c): Move earlier.
19535 (generated_files): New variable.
19536 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
19537 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
19538 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
19539 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
19540 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
19541 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
19542 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
19543 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
19544 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
19545 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
19546 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
19547 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
19548 (.c.o): Remove.
19549 (COMPILE.base, COMPILE): New variables.
19550 (%.o): New pattern rule.
19551 (ALL_HOST_OBJS): New variable.
19552 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
19553 (dummy-checksum.o, cc1-checksum.o): Remove.
19554 (DRIVER_SHLIB): New variable.
19555 (DRIVER_DEFINES): Use it.
19556 (gencondmd.c): Move out of build/.
19557 (s-conditions): Update.
19558 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
19559 (ALL_BUILD_OBJS): Likewise.
19560 (build/%.o): Use BUILDCOMPILE.
19561 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
19562 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
19563 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
19564 build/gencheck.o, build/gencodes.o, build/genconditions.o,
19565 build/genconfig.o, build/genconstants.o, build/genemit.o,
19566 build/genextract.o, build/genflags.o, build/genmddeps.o,
19567 build/genopinit.o, build/genoutput.o, build/genpeep.o,
19568 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
19569 build/gen-protos.o, build/scan.o, build/fix-header.o,
19570 build/scan-decls.o): Simplify.
19571 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
19572 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
19573 prefix.o, toplev.o): Reduce to variable setting.
19574 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
19575 ($(out_object_file), gcc-options.o): New targets.
19576 ($(ALL_HOST_OBJS)): New target. Include dependency files.
19577 * configure: Rebuilt.
19578 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
19579 * doc/sourcebuild.texi (Front End Directory): Document new variable.
19580
19581 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
19582
19583 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
19584 complain when we hit an error, return ERROR_MARK_NODE.
19585
19586 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
19587
19588 * config/sh/constraints.md (Pso, Psz): New constraints.
19589 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
19590 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
19591
19592 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
19593
19594 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
19595 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
19596
19597 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
19598
19599 * config/sh/sh.md (prefetch): Add condition for SH2A target.
19600 (prefetch_sh2a): New.
19601
19602 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
19603 Naveen.H.S <naveen.hs@kpitcummins.com>
19604
19605 * config/sh/constraints.md (I28): New constraint.
19606 * config/sh/sh.c (broken_move): Add support for movi20s.
19607 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
19608
19609 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
19610 Jayant Sonar <Jayant.sonar@kpitcummins.com>
19611 Naveen.H.S <naveen.hs@kpitcummins.com>
19612
19613 * config/sh/sh.c (SH_ATTRIBUTES): Define.
19614 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
19615 (print_operand): Handle resbank in %@ operand code.
19616 (sh_encode_section_info): New.
19617 (push_regs): Add conditions for resbank.
19618 (sh_expand_epilogue): Likewise.
19619 (sh_insert_attributes): Likewise.
19620 (sh_attribute_table): Likewise.
19621 (sh_handle_resbank_handler_attribute): New.
19622 (sh2a_handle_function_vector_handler_attribute): New.
19623 (sh2a_is_function_vector_call): New.
19624 (sh2a_get_function_vector_number): New.
19625 (sh2a_function_vector_p): New.
19626 (sh_cfun_resbank_handler_p): New.
19627 * config/sh/sh.md (calli): Emit jsr/n if possible.
19628 (calli_tbr_rel): New.
19629 (calli_pcrel): Emit jsr/n if possible.
19630 (return_i): Emit rts/n if possible.
19631 (call_valuei_tbr_rel): New.
19632 (call_valuei_pcrel): Add condition for SH2A target.
19633 (call_value): Likewise.
19634 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
19635 (sh2a_get_function_vector_number): Likewise.
19636 (sh2a_is_function_vector_call): Likewise.
19637 * doc/extend.texi: Document TBR relative addressing of SH2A.
19638 (resbank): Add description for SH2A.
19639
19640 2008-03-24 Richard Guenther <rguenther@suse.de>
19641
19642 PR c/22371
19643 * gimplify.c (gimplify_modify_expr): For frontend type-correct
19644 pointer assignments change conversions according to middle-end rules.
19645 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
19646 * configure.ac: Include type checking in yes.
19647 * configure: Regenerate.
19648
19649 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19650
19651 * diagnostic.c (diagnostic_count_diagnostic): Delete.
19652 (diagnostic_report_diagnostic): Update. Handle ICEs here.
19653
19654 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
19655
19656 * gthr-vxworks.h (UNUSED): Define.
19657
19658 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
19659
19660 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
19661
19662 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
19663
19664 * doc/extend.texi (Function Attributes): Add missing comma in the
19665 example of the "alloc_size" attribute.
19666
19667 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
19668
19669 Revert:
19670 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
19671
19672 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
19673 32bit host.
19674
19675 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
19676
19677 PR target/35496
19678 * stor-layout.c (update_alignment_for_field): Set minimum alignment
19679 of the underlying type of a MS bitfield layout to the natural
19680 alignment of the type.
19681
19682 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
19683
19684 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
19685 to their natural alignment to avoid store forwarding stalls.
19686
19687 2008-03-22 Richard Guenther <rguenther@suse.de>
19688
19689 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
19690 For PHI nodes verify the address is invariant.
19691 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
19692 (get_symbol_constant_value): Use is_gimple_min_invariant.
19693 (maybe_fold_stmt_indirect): Likewise.
19694
19695 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
19696
19697 PR rtl-optimization/33927
19698 * Makefile.in (dse.o): Depend on $(TM_P_H).
19699 * expr.h (extract_low_bits): Declare.
19700 * expmed.c (extract_low_bits): New function.
19701 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
19702 * dse.c: Include tm_p.h.
19703 (find_shift_sequence): Remove the read_reg argument and return the
19704 read value. Emit the instructions instead of returning them.
19705 Iterate on new_mode rather than calculating it each time.
19706 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
19707 source to NEW_MODE and extract_low_bits to convert the shifted
19708 value to READ_MODE.
19709 (replace_read): Allow the load and store to have different mode
19710 classes. Use extract_low_bits when SHIFT == 0. Create the shift
19711 or extraction instructions before trying the replacement. Update
19712 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
19713
19714 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
19715
19716 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
19717 to their natural alignment to avoid store forwarding stalls.
19718
19719 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
19720
19721 PR target/27946
19722 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
19723 encouraging but not allowing gprs for input;
19724 change the input constraint to !f#r.
19725 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
19726 gprs for output;
19727 change the output constraint to !f#r.
19728
19729 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
19730
19731 PR target/13958
19732 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
19733 corresponding post-reload splitters.
19734 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
19735 when x87 FP math is selected.
19736 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
19737 New function prototype.
19738 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
19739 unreachable function to ease macroization of insn patterns.
19740
19741 2008-03-21 Martin Jambor <mjambor@suse.cz>
19742
19743 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
19744 reference dumps if ddr is NULL or dependence is unknown.
19745
19746 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
19747
19748 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
19749 unsigned extension into account.
19750 (ATOMIC_COMPARE_AND_SWAP): Likewise.
19751 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
19752 Do computations on a scratch register.
19753
19754 2008-03-21 Richard Guenther <rguenther@suse.de>
19755
19756 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
19757 Use is_gimple_min_invariant instead of TREE_INVARIANT.
19758 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
19759 * tree-ssa-dom.c (record_equality): Likewise.
19760 * tree-inline.c (copy_body_r): Likewise.
19761 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
19762 TREE_INVARIANT.
19763
19764 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
19765
19766 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
19767 as 'delete_unused' argument.
19768
19769 2008-03-20 Richard Guenther <rguenther@suse.de>
19770
19771 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
19772 special casing of constant qualifiers.
19773 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
19774 care about them in general.
19775 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
19776 regardless of their type.
19777 (fold_stmt_r): Forcefully fold *& if we end up with that.
19778
19779 2008-03-20 Paul Brook <paul@codesourcery.com>
19780
19781 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
19782 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
19783 linker flags.
19784 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
19785 definition.
19786 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
19787 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
19788
19789 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
19790
19791 * common.opt (Wmudflap): New option.
19792 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
19793 (mx_register_decls): Likewise.
19794 (mudflap_finish_file): Likewise.
19795 * doc/invoke.texi: Document -Wno-mudflap.
19796
19797 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
19798
19799 * c-format.c (replace_format_name_to_system_name): New.
19800 (cmp_attribs): New.
19801 (convert_format_name_to_system_name): New.
19802 (decode_format_attr): Add use of convert_format_name_to_system_name.
19803 (format_types_orig): Add gnu_ prefix to names.
19804 (check_format_info_main): Special treating of \0 escaped names for
19805 supporting multi-character format specifiers as I32, I64.
19806 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
19807 (gnu_target_overrides_format_attributes): New.
19808 * c-format.h: Add structure target_ovr_attr to hold
19809 system specific formatter names.
19810 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
19811 msformat-c.o file to c_target_objs and cxx_target_objs.
19812 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
19813 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
19814 (TARGET_N_FORMAT_TYPES): New.
19815 * config/i386/msformat-c.c: New.
19816 * config/i386/t-cygming: Add build rule for msformat-c.o.
19817 * doc/extend.texi: Add new format names gnu_* and ms_* and
19818 further details.
19819 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
19820
19821 2008-03-20 Ira Rosen <irar@il.ibm.com>
19822
19823 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
19824 optimizations turned on under -O3.
19825 (ftree-vectorize): Add that the flag is turned on with -O3.
19826
19827 2008-03-20 Ben Elliston <bje@au.ibm.com>
19828
19829 * regmove.c (try_auto_increment): Fix spelling error in comment.
19830 * final.c (final_scan_insn): Likewise.
19831
19832 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
19833
19834 PR target/14552
19835 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
19836 allocator preferences for "y" and "r" class registers.
19837 ("*mov<mode>_internal"): Ditto.
19838 ("*movv2sf_internal_rex64"): Ditto.
19839 ("*movv2sf_internal"): Ditto.
19840
19841 2008-03-19 Michael Matz <matz@suse.de>
19842
19843 PR middle-end/35616
19844 * calls.c (expand_call): Check overlap of arguments with call
19845 address for sibcalls.
19846
19847 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
19848
19849 PR target/35496
19850 * stor-layout.c (update_alignment_for_field): Set minimum alignment
19851 of the underlying type of a MS bitfield layout to the natural
19852 alignment of the type.
19853
19854 2008-03-19 Jan Hubicka <jh@suse.cz>
19855
19856 PR other/35094
19857 * toplev.c (decode_d_option): Handle all CPP flags.
19858 * tree-vrp.c: Update tree_pass descriptors.
19859 * regrename.c: Update tree_pass descriptors.
19860 * fwprop.c: Update tree_pass descriptors.
19861 * doc/invoke.texi: Remove documentation of dropped -d? flags.
19862 * tree-into-ssa.c: Update tree_pass descriptors.
19863 * tree-dump.c: Update tree_pass descriptors.
19864 * tree-complex.c: Update tree_pass descriptors.
19865 * tree-dump.h: Update tree_pass descriptors.
19866 * see.c: Update tree_pass descriptors.
19867 * cgraphbuild.c: Update tree_pass descriptors.
19868 * tracer.c: Update tree_pass descriptors.
19869 * tree-loop-distribution.c: Update tree_pass descriptors.
19870 * cgraph.c: Update tree_pass descriptors.
19871 * postreload-gcse.c: Update tree_pass descriptors.
19872 * postreload.c: Update tree_pass descriptors.
19873 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
19874 * tree-tailcall.c: Update tree_pass descriptors.
19875 * tree-pass.h (tree_opt_pass): Rename to ...
19876 (opt_pass) ... this one; add "type" field and remove letter field.
19877 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
19878 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
19879 all_lowering_passes): Update declaration.
19880 * ipa-cp.c: Update tree_pass descriptors.
19881 * final.c: Update tree_pass descriptors.
19882 * omp-low.c: Update tree_pass descriptors.
19883 * tree-ssa-dse.c: Update tree_pass descriptors.
19884 * ipa-reference.c: Update tree_pass descriptors.
19885 * tree-ssa-uncprop.c: Update tree_pass descriptors.
19886 * auto-inc-dec.c: Update tree_pass descriptors.
19887 * reorg.c: Update tree_pass descriptors.
19888 * cgraphunit.c: Update tree_pass descriptors.
19889 * tree-ssa-copyrename.c: Update tree_pass descriptors.
19890 * tree-ssa-ccp.c: Update tree_pass descriptors.
19891 * df-core.c: Update tree_pass descriptors.
19892 * mode-switching.c: Update tree_pass descriptors.
19893 * tree-nomudflap.c: Update tree_pass descriptors.
19894 * modulo-sched.c: Update tree_pass descriptors.
19895 * ipa-pure-const.c: Update tree_pass descriptors.
19896 * cse.c: Update tree_pass descriptors.
19897 * web.c: Update tree_pass descriptors.
19898 * tree-stdarg.c: Update tree_pass descriptors.
19899 * tree-ssa-math-opts.c: Update tree_pass descriptors.
19900 * tree-ssa-dom.c: Update tree_pass descriptors.
19901 * tree-nrv.c: Update tree_pass descriptors.
19902 * tree-ssa-alias.c: Update tree_pass descriptors.
19903 * loop-init.c: Update tree_pass descriptors.
19904 * gimple-low.c: Update tree_pass descriptors.
19905 * ipa-inline.c: Update tree_pass descriptors.
19906 * tree-ssa-sink.c: Update tree_pass descriptors.
19907 * global.c: Update tree_pass descriptors.
19908 * ifcvt.c: Update tree_pass descriptors.
19909 * jump.c: Update tree_pass descriptors.
19910 * predict.c: Update tree_pass descriptors.
19911 * tree-ssa-loop.c: Update tree_pass descriptors.
19912 * recog.c: Update tree_pass descriptors.
19913 * dse.c: Update tree_pass descriptors.
19914 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
19915 * tree-eh.c: Update tree_pass descriptors.
19916 * regmove.c: Update tree_pass descriptors.
19917 * local-alloc.c
19918 * function.c: Update tree_pass descriptors.
19919 * tree-vectorizer.c: Update tree_pass descriptors.
19920 * gcse.c: Update tree_pass descriptors.
19921 * ipa-type-escape.c: Update tree_pass descriptors.
19922 * tree-if-conv.c: Update tree_pass descriptors.
19923 * init-regs.c: Update tree_pass descriptors.
19924 * ipa.c: Update tree_pass descriptors.
19925 * tree-ssa-phiopt.c: Update tree_pass descriptors.
19926 * rtl-factoring.c: Update tree_pass descriptors.
19927 * lower-subreg.c: Update tree_pass descriptors.
19928 * bt-load.c: Update tree_pass descriptors.
19929 * tree-dfa.c: Update tree_pass descriptors.
19930 * except.c: Update tree_pass descriptors.
19931 * emit-rtl.c: Update tree_pass descriptors.
19932 * cfgexpand.c: Update tree_pass descriptors.
19933 * tree-cfgcleanup.c: Update tree_pass descriptors.
19934 * cfgcleanup.c: Update tree_pass descriptors.
19935 * tree-ssa-pre.c: Update tree_pass descriptors.
19936 * tree-sra.c: Update tree_pass descriptors.
19937 * tree-mudflap.c: Update tree_pass descriptors.
19938 * tree-ssa-copy.c: Update tree_pass descriptors.
19939 * cfglayout.c: Update tree_pass descriptors.
19940 * tree-ssa-forwprop.c: Update tree_pass descriptors.
19941 * tree-ssa-dce.c: Update tree_pass descriptors.
19942 * tree-ssa.c: Update tree_pass descriptors.
19943 * regclass.c: Update tree_pass descriptors.
19944 * integrate.c: Update tree_pass descriptors.
19945 * tree-optimize.c: Update tree_pass descriptors.
19946 * tree-ssa-phiprop.c: Update tree_pass descriptors.
19947 * tree-object-size.c: Update tree_pass descriptors.
19948 * combine.c: Update tree_pass descriptors.
19949 * tree-outof-ssa.c: Update tree_pass descriptors.
19950 * bb-reorder.c: Update tree_pass descriptors.
19951 * stack-ptr-mod.c: Update tree_pass descriptors.
19952 * var-tracking.c: Update tree_pass descriptors.
19953 * tree-profile.c: Update tree_pass descriptors.
19954 * tree-vect-generic.c: Update tree_pass descriptors.
19955 * reg-stack.c: Update tree_pass descriptors.
19956 * sched-rgn.c: Update tree_pass descriptors.
19957 * tree-ssa-structalias.c: Update tree_pass descriptors.
19958 * tree-cfg.c: Update tree_pass descriptors.
19959 * passes.c (current_pass): Update declaration.
19960 (finish_optimization_passes): Update.
19961 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
19962 (register_one_dump_file, register_dump_files_1, next_pass_1):
19963 Update arguments.
19964 (init_optimization_passes): Update handling of new types.
19965 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
19966 * ipa-struct-reorg.c: Update tree_pass descriptors.
19967 * tree-ssa-reassoc.c: Update tree_pass descriptors.
19968 * combine-stack-adj.c: Update tree_pass descriptors.
19969 * cfgrtl.c: Update tree_pass descriptors.
19970 * dce.c: Update tree_pass descriptors.
19971 * tree-ssanames.c: Update tree_pass descriptors.
19972
19973 2008-03-19 Richard Guenther <rguenther@suse.de>
19974
19975 PR middle-end/35609
19976 * tree-ssa.c (walk_data): New structure.
19977 (warn_uninitialized_var): If not always_executed warn with "maybe"
19978 instead of "is".
19979 (execute_early_warn_uninitialized): Compute post-dominators.
19980 Initialize always_executed before processing each basic block.
19981
19982 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
19983
19984 PR target/35504
19985 * config/i386/i386.c (x86_this_parameter): Calculate correct location
19986 of "this" pointer when "regparm = N" or "fastcall" is in effect.
19987
19988 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19989
19990 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
19991
19992 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
19993
19994 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
19995 is true.
19996 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
19997 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
19998 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
19999 target after ignore has been set, and move there also the commputation
20000 of subtarget and original_target.
20001 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
20002 (LANG_HOOKS_INITIALIZER): Remove it.
20003 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
20004
20005 2008-03-18 Richard Guenther <rguenther@suse.de>
20006
20007 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
20008 found an expression with constants, note that in the VN for the lhs.
20009 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
20010 fold them to constants if possible. Run cleanup_cfg if done so.
20011 (execute_pre): Return todo.
20012 (do_pre): Likewise.
20013 (execute_fre): Likewise.
20014 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
20015 of constants.
20016 (get_prop_source_stmt): Look through pointer conversions.
20017
20018 2008-03-18 Jan Hubicka <jh@suse.cz>
20019
20020 * tree-pretty-print.c: Include predict.h.
20021 (dump_generic_node): Dump predictor.
20022 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
20023 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
20024 * gimple-low.c (lower_stmt): Likewise.
20025 * expr.c (expand_expr_real): Likewise.
20026 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
20027 them.
20028 (build_predict_expr, build_predict_expr): New.
20029 * predict.h (predictor_name, build_predict_expr): Update.
20030 * c-typeck.c (c_finish_bc_stmt): Add prediction.
20031 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
20032 * predict.def (PRED_CONTINUE): Update hitrate.
20033 * tree.def (PREDICT_EXPR): Define.
20034 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
20035 do not handle BIND_EXPR.
20036 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
20037 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
20038 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
20039 operands.
20040
20041 2008-03-18 Michael Matz <matz@suse.de>
20042
20043 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
20044
20045 2008-03-18 Richard Guenther <rguenther@suse.de>
20046
20047 * tree-gimple.h (is_gimple_invariant_address): Declare.
20048 (is_gimple_constant): Likewise.
20049 * tree-gimple.c (is_gimple_constant): New function.
20050 (is_gimple_invariant_address): Likewise.
20051 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
20052 and is_gimple_invariant_address.
20053 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
20054 previous change.
20055 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
20056 an addressable base.
20057
20058 2008-03-18 Jakub Jelinek <jakub@redhat.com>
20059
20060 PR middle-end/35611
20061 * gimplify.c (gimplify_expr): Gimplify second operand of
20062 OMP_ATOMIC_LOAD.
20063
20064 2008-03-17 Richard Guenther <rguenther@suse.de>
20065
20066 PR tree-optimization/19637
20067 * fold-const.c (fold_unary): Remove restrictions of removing
20068 intermediate pointer-conversions (P2)(P1)P0.
20069 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
20070 conversion to void pointer.
20071 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
20072
20073 2008-03-16 James E. Wilson <wilson@tuliptree.org>
20074
20075 PR debug/31510
20076 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
20077 emulated thread local variables.
20078
20079 2008-03-16 Richard Guenther <rguenther@suse.de>
20080
20081 PR middle-end/35607
20082 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
20083 expand TREE_INVARIANT operations that are not gimple invariant.
20084
20085 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
20086
20087 * doc/extend.texi (Alignment): Say that the ABI controls
20088 the __alignof__ for non-strict-alignment targets rather
20089 than being a recommendation.
20090
20091 2008-03-15 Paul Brook <paul@codesourcery.com>
20092
20093 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
20094 annotations.
20095 (arm_output_fn_unwind): Mark functions that can not be unwound.
20096
20097 2008-03-15 Paul Brook <paul@codesourcery.com>
20098
20099 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
20100 extension instructions.
20101
20102 2008-03-15 Richard Guenther <rguenther@suse.de>
20103
20104 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
20105 and fold constant aggregate refs.
20106 (fold_const_aggregate_ref): Handle string constants
20107 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
20108 (evaluate_stmt): Simplify now that ccp_fold folds constant
20109 aggregate refs.
20110
20111 2008-03-15 Paul Brook <paul@codesourcery.com>
20112
20113 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
20114 (extzv): Use gen_extzv_t2.
20115 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
20116
20117 2008-03-15 Richard Guenther <rguenther@suse.de>
20118
20119 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
20120 (fold_const_aggregate_ref): Likewise.
20121 (get_value): Return NULL if we don't have any values.
20122 (ccp_finalize): Set const_val to NULL after freeing it.
20123 * tree-flow.h (get_symbol_constant_value): Declare.
20124 (fold_const_aggregate_ref): Likewise.
20125 * tree-ssa-sccvn.c (try_to_simplify): Use them.
20126
20127 2008-03-15 Richard Guenther <rguenther@suse.de>
20128
20129 PR middle-end/35593
20130 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
20131 to not produce negative array indices if not allowed. Add
20132 parameter to indicate that.
20133 (maybe_fold_offset_to_component_ref): Allow negative array
20134 indices only for the first member of a structure.
20135 (maybe_fold_offset_to_reference): Allow negative array indices.
20136 (maybe_fold_stmt_addition): Likewise.
20137
20138 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
20139 Anatoly Sokolov <aesok@post.ru>
20140
20141 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
20142 (avr_arch): Add ARCH_AVR6.
20143 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
20144 (initial_elimination_offset): Initialize and use 'avr_pc_size'
20145 instead of fixed value 2.
20146 (print_operand_address): Use gs() asm specifier instead of pm().
20147 (avr_assemble_integer): (Ditto.).
20148 (avr_output_addr_vec_elt): (Ditto.).
20149 (print_operand): Handle "!" code.
20150 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
20151 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
20152 (AVR_HAVE_EIJMP_EICALL): Define.
20153 (AVR_3_BYTE_PC): Redefine.
20154 (AVR_2_BYTE_PC): (Ditto.).
20155 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
20156 (LINK_SPEC): Add atmega2560 and atmega2561.
20157 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
20158 (crtm2561.o).
20159 * config/avr/avr.md (call_insn): Use eicall instead of icall
20160 for 3 byte PC devices.
20161 (call_value_insn): (Ditto.).
20162 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
20163 (indirect_jump): Use only for for 2 byte PC devices.
20164 (*tablejump): (Ditto.).
20165 (*indirect_jump_avr6): Add insn.
20166 (*tablejump_rjmp): Don't use for 3 byte PC devices.
20167 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
20168 instead of ijmp for 3 byte PC devices.
20169 (__tablejump2__): (Ditto.).
20170 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
20171 (MULITLIB_DIRNAMES): (Ditto.).
20172 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
20173
20174 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
20175
20176 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
20177 "sse2_umulsidi3". Use V1DI mode for operand 0.
20178 ("mmx_psadbw"): Use V1DI mode for operand 0.
20179 * config/i386/i386-modes.def (V1SI): New vector mode.
20180 * config/i386/i386.c (struct builtin_description)
20181 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
20182 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
20183 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
20184 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
20185 v1di_ftype_v8qi_v8qi type.
20186 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
20187
20188 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
20189 __builtin_ia32_pmuludq]: Fix the mode of return value.
20190
20191 2008-03-15 Richard Guenther <rguenther@suse.de>
20192
20193 PR middle-end/35595
20194 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
20195 being a PHI_NODE.
20196
20197 2008-03-14 Bob Wilson <bob.wilson@acm.org>
20198
20199 * doc/invoke.texi (Option Summary, Xtensa Options): Document
20200 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
20201 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
20202 unless TARGET_SERIALIZE_VOLATILE is enabled.
20203 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
20204 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
20205 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
20206
20207 2008-03-14 Richard Guenther <rguenther@suse.de>
20208
20209 PR tree-optimization/34172
20210 * tree-flow.h (refs_may_alias_p): Declare.
20211 (get_single_def_stmt): Likewise.
20212 (get_single_def_stmt_from_phi): Likewise.
20213 (get_single_def_stmt_with_phi): Likewise.
20214 * tree-dfa.c (refs_may_alias_p): New function.
20215 (get_single_def_stmt): Likewise.
20216 (get_single_def_stmt_from_phi): Likewise.
20217 (get_single_def_stmt_with_phi): Likewise.
20218 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
20219 (vn_reference_lookup_1): New helper function.
20220 (vn_reference_lookup): Walk the virtual use-def chain to
20221 continue searching for a match if the def does not alias the
20222 reference we are looking for.
20223
20224 2008-03-14 David Edelsohn <edelsohn@gnu.org>
20225
20226 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
20227 archive and Perzl. Update The Written Word listing.
20228
20229 2008-03-14 Richard Guenther <rguenther@suse.de>
20230
20231 PR tree-optimization/34043
20232 PR tree-optimization/33989
20233 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
20234 when doing FRE.
20235 (bitmap_find_leader): Use extra argument to verify dominance
20236 relationship inside a basic-block.
20237 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
20238 (find_leader_in_sets): Adjust.
20239 (create_component_ref_by_pieces): Take extra argument for
20240 dominance check, handle lookup failures.
20241 (find_or_generate_expression): Likewise.
20242 (create_expression_by_pieces): Likewise.
20243 (insert_into_preds_of_block): Adjust.
20244 (create_value_expr_from): If asked for, verify all operands
20245 are in the blocks AVAIL_OUT set.
20246 (make_values_for_stmt): Check for SSA_NAMEs that are life
20247 over an abnormal edge.
20248 (compute_avail): Remove such check.
20249 (do_SCCVN_insertion): New function.
20250 (eliminate): If we do not find a leader suitable for replacement
20251 insert a replacement expression from SCCVN if available.
20252 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
20253 (struct vn_ssa_aux): Add needs_insertion flag.
20254 * tree-ssa-sccvn.c (may_insert): New global flag.
20255 (copy_reference_ops_from_ref): Value-number union member access
20256 based on its size, not type and member if insertion is allowed.
20257 (visit_reference_op_load): For a weak match from union type
20258 punning lookup a view-converted value and insert a SSA_NAME
20259 for that value if that is not found.
20260 (visit_use): Make dumps shorter. Do not disallow value numbering
20261 SSA_NAMEs that are life over an abnormal edge to constants.
20262 (free_scc_vn): Release inserted SSA_NAMEs.
20263 (run_scc_vn): New flag to specify whether insertion is allowed.
20264 Process SSA_NAMEs in forward order.
20265 * tree-ssa-loop-im.c (for_each_index): Handle invariant
20266 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
20267 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
20268 pointer type to/from integral types that do not change the
20269 precision to regular conversions.
20270
20271 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
20272
20273 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
20274 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
20275 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
20276 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
20277 input arguments and the mode of return value. Built-in functions
20278 that operate on whole 64-bit MMX register now use V1DI mode.
20279
20280 2008-03-13 Alon Dayan <alond@il.ibm.com>
20281 Olga Golovanevsky <olga@il.ibm.com>
20282
20283 PR tree-optimization/35041
20284 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
20285 to locate the right position in a statement.
20286
20287 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
20288
20289 PR target/34000
20290 PR target/35553
20291 * config/i386/xmmintrin.h: Change all static inline functions to
20292 extern inline and add __gnu_inline__ attribute.
20293 * config/i386/bmintrin.h: Ditto.
20294 * config/i386/smmintrin.h: Ditto.
20295 * config/i386/tmmintrin.h: Ditto.
20296 * config/i386/mmintrin-common.h: Ditto.
20297 * config/i386/ammintrin.h: Ditto.
20298 * config/i386/emmintrin.h: Ditto.
20299 * config/i386/pmmintrin.h: Ditto.
20300 * config/i386/mmintrin.h: Ditto.
20301 * config/i386/mm3dnow.h: Ditto.
20302
20303 2008-03-13 Jakub Jelinek <jakub@redhat.com>
20304
20305 PR middle-end/35185
20306 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
20307 (lower_omp_2): New function.
20308 (lower_omp_1, lower_omp): Rewritten.
20309
20310 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
20311
20312 PR 35054
20313 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
20314 with the phrase "Microsoft Windows compilers".
20315 (Push/Pop Macro Pragmas): New subsection. Document
20316 #pragma push_macro and pragma pop_macro.
20317
20318 2008-03-12 Paul Brook <paul@codesourcery.com>
20319
20320 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
20321
20322 2008-03-12 Paul Brook <paul@codesourcery.com>
20323
20324 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
20325 (thumb2_alusi3_short): Exclude PLUS and MINUS.
20326 (thumb2_addsi_shortim): Rename ...
20327 (thumb2_addsi_short): ... to this. Allow register operands.
20328 (thumb2_subsi_short): New pattern.
20329 (thumb2_one_cmplsi2_short,
20330 thumb2_negsi2_short): New patterns and peepholes.
20331
20332 2008-03-12 Paul Brook <paul@codesourcery.com>
20333
20334 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
20335
20336 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
20337
20338 * config/i386/i386.md (int_cond): New code iterator.
20339 (fp_cond): Ditto.
20340 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
20341 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
20342 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
20343 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
20344 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
20345 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
20346 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
20347 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
20348
20349 2008-03-12 Paul Brook <paul@codesourcery.com>
20350
20351 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
20352 instead of {arm,thumb}_compute_save_reg_mask.
20353 (output_return_instruction): Ditto.
20354 (thumb_unexpanded_epilogue): Ditto.
20355 (thumb1_expand_prologue): Ditto.
20356 (thumb1_output_function_prologue): Ditto.
20357 (arm_set_return_address): Ditto.
20358 (thumb_set_return_address): Ditto.
20359 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
20360 regs to achieve stack alignment.
20361 (thumb1_compute_save_reg_mask): Fix compiler warning.
20362 (arm_output_epilogue): Use offsets->saved_regs_mask.
20363 Adjust stack pointer by poping call clobered registers.
20364 (arm_expand_prologue): Use offsets->saved_regs_mask.
20365 Adjust stack pointer by pushing extra registers.
20366 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
20367
20368 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
20369
20370 PR tree-opt/35422
20371 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
20372 conversion to the operands of a multiplication.
20373
20374 2008-03-12 Richard Guenther <rguenther@suse.de>
20375
20376 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
20377 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
20378 * timevar.def (TV_TREE_PHIPROP): Add.
20379 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
20380 pass description. Use TV_TREE_PHIPROP.
20381 * tree-ssa-forwprop.c: Remove phiprop code.
20382
20383 2008-03-12 Jakub Jelinek <jakub@redhat.com>
20384
20385 PR middle-end/35549
20386 * omp-low.c (maybe_lookup_decl): Constify first argument.
20387 (use_pointer_for_field): Change last argument from bool to
20388 omp_context *. Disallow shared copy-in/out in nested
20389 parallel if decl is shared in outer parallel too.
20390 (build_outer_var_ref, scan_sharing_clauses,
20391 lower_rec_input_clauses, lower_copyprivate_clauses,
20392 lower_send_clauses, lower_send_shared_vars): Adjust callers.
20393
20394 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
20395 Ira Rosen <irar@il.ibm.com>
20396
20397 * tree-vectorizer.c (free_stmt_vec_info): New function.
20398 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
20399 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
20400 * tree-vectorizer.h (free_stmt_vec_info): Declare.
20401 * tree-vect-transform.c (vectorizable_conversion): Free
20402 vec_oprnds0 if it was allocated.
20403 (vect_permute_store_chain): Remove unused VECs.
20404 (vectorizable_store): Free VECs that are allocated in the..
20405 function.
20406 (vect_transform_strided_load, vectorizable_load): Likewise.
20407 (vect_remove_stores): Simplify the code.
20408 (vect_transform_loop): Move code to vect_remove_stores().
20409 Call vect_remove_stores() and free_stmt_vec_info().
20410
20411 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20412
20413 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
20414 TARGET_HPUX. Revise comment.
20415 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
20416 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
20417 Use sr4 variant of `be' instruction when not generating PIC code.
20418 (attr_length_call): Adjust for above change.
20419
20420 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
20421
20422 * ipa-reference.c (static_execute): Remove module_statics_const and
20423 associated setting code.
20424
20425 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
20426
20427 PR target/35540
20428 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
20429 predicate for operand 1.
20430 (paritysi2_cmp): Use register_operand predicate for operand 2.
20431 Use earlyclobber modifier for operand 1. Remove support for
20432 memory operands.
20433 (paritydi2_cmp): Use register_operand predicate for operand 3.
20434 Use earlyclobber modifier for operand 1. Remove support for
20435 memory operands.
20436
20437 2008-03-11 Paul Brook <paul@codesourcery.com>
20438 Vladimir Prus <vladimir@codesourcery.com>
20439
20440 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
20441 (arm_compute_save_reg0_reg12_mask): Always
20442 check if register 11 must be saved. Always safe hard frame pointer
20443 when frame_pointer_needeed.
20444 (arm_compute_save_reg_mask): Save IP and PC
20445 only with apcs frames.
20446 (arm_output_epilogue): Adjust Thumb2 codepath to
20447 be also invoked and work for ARM non-apcs frames.
20448 (arm_expand_prologue): Don't bother saving IP
20449 for non-apcs frame, since it's not clobbered by
20450 prologue code. Implement non-apcs frame
20451 layout.
20452
20453 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
20454
20455 PR rtl-optimization/35281
20456 * expr.c (convert_move): Use a new pseudo for the intermediate
20457 from_mode->word_mode result.
20458
20459 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
20460
20461 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
20462 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
20463 * toplev.c (compile_file): Don't call it.
20464
20465 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
20466
20467 PR middle-end/35526
20468 * expr.c (store_expr): Call emit_block_move if the mode
20469 of "temp" RTX is BLKmode.
20470
20471 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
20472 Richard Guenther <rguenther@suse.de>
20473
20474 PR tree-optimization/31358
20475 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
20476 the step with a NULL_TREE.
20477 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
20478 to sizetype if type is a pointer type.
20479 (add_candidate_1): Don't convert the base and step to
20480 the generic type if the orginal type is a pointer type.
20481 (add_iv_value_candidates): Use sizetype for the step
20482 if type is a pointer type.
20483 (cand_value_at): Likewise.
20484 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
20485 for pointer types.
20486 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
20487 Don't convert the tem affine to the type.
20488 (add_elt_to_tree): Use sizetype for the step if a pointer.
20489 Use POINTER_PLUS_EXPR for pointers.
20490 (aff_combination_to_tree): Use sizetype for the step if a
20491 pointer.
20492
20493 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
20494
20495 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
20496 Remove commutativity hint.
20497
20498 2008-03-10 Jakub Jelinek <jakub@redhat.com>
20499
20500 PR c/35438
20501 PR c/35439
20502 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
20503 errorneous type. Check that v is a VAR_DECL.
20504
20505 PR middle-end/35099
20506 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
20507
20508 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
20509
20510 PR tree-optimization/35494
20511 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
20512 may be overriden at link and run time.
20513
20514 2008-03-10 Richard Guenther <rguenther@suse.de>
20515
20516 PR tree-optimization/34677
20517 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
20518 (poolify_tree): Likewise.
20519 (modify_expr_template): Likewise.
20520 (poolify_modify_stmt): Likewise.
20521 (insert_fake_stores): Handle all component-ref style stores
20522 in addition to INDIRECT_REF. Also handle complex types.
20523 Do not poolify the inserted load.
20524 (realify_fake_stores): Do not rebuild the tree but only
20525 make it a SSA_NAME copy.
20526 (init_pre): Remove initialzation of modify_expr_template.
20527 Do not allocate modify_expr_node_pool.
20528 (fini_pre): Do not free modify_expr_node_pool.
20529
20530 2008-03-10 Paul Brook <paul@codesourcery.com>
20531
20532 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
20533 to avoid conflicts.
20534
20535 2008-03-10 Paul Brook <paul@codesourcery.com>
20536 Mark Shinwell <shinwell@codesourcery.com>
20537
20538 * config/arm/cortex-r4.md: New.
20539 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
20540 insn attributes.
20541 * config/arm/arm.md: Include cortex-r4.md.
20542 (insn): Add smmls, sdiv and udiv values.
20543 (generic_sched): Don't use generic scheduling for Cortex-R4.
20544 (arm_issue_rate): New function.
20545 (TARGET_SCHED_ISSUE_RATE): Define.
20546
20547 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
20548
20549 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
20550
20551 2008-03-10 Richard Guenther <rguenther@suse.de>
20552
20553 * tree-ssa-pre.c (get_sccvn_value): Simplify.
20554 (compute_avail): Do not add stmt uses to AVAIL_OUT.
20555
20556 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
20557
20558 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
20559 Set default to true.
20560
20561 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20562
20563 * c.opt (Wsynth): Deprecate.
20564 * doc/invoke.texi (Option Summary, Warning Options): Document
20565 -Wno-format-contains-nul.
20566
20567 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
20568
20569 PR target/35496
20570 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
20571 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
20572
20573 2008-03-09 Ira Rosen <irar@il.ibm.com>
20574
20575 * config/rs6000/rs6000.c (builtin_description): Rename vector
20576 left shift operations.
20577 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
20578 (altivec_vsl<VI_char>): Rename to ...
20579 (ashl<mode>3): ... new name.
20580 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
20581 gen_ashlv4si3.
20582 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
20583
20584 2008-03-08 Richard Guenther <rguenther@suse.de>
20585
20586 * coverage.h (tree_coverage_counter_addr): Declare.
20587 * coverage.c (tree_coverage_counter_addr): New function.
20588 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
20589 before using again.
20590 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
20591 (tree_gen_one_value_profiler): Likewise.
20592 (tree_gen_ic_profiler): Likewise.
20593 (tree_gen_average_profiler): Likewise.
20594 (tree_gen_ior_profiler): Likewise.
20595
20596 2008-03-08 Richard Guenther <rguenther@suse.de>
20597
20598 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
20599 (vn_binary_op_insert): Likewise.
20600 (vn_unary_op_lookup): Likewise.
20601 (vn_unary_op_insert): Likewise.
20602 (vn_nary_op_lookup): Declare.
20603 (vn_nary_op_insert): Likewise.
20604 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
20605 and binary hashes, use a single obstack for unary_op_pool
20606 and binary_op_pool.
20607 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
20608 a single struct vn_nary_op_s. Store tree code length and
20609 a variable number of operands.
20610 (struct vn_reference_op_struct): Remove unused op2.
20611 (vn_reference_op_eq): Do not compare op2.
20612 (vn_reference_op_compute_hash): Do not compute hash of op2.
20613 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
20614 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
20615 with vn_nary_op_compute_hash.
20616 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
20617 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
20618 vn_nary_op_lookup.
20619 (vn_unary_op_insert, vn_binary_op_insert): Replace with
20620 vn_nary_op_insert.
20621 (visit_unary_op): Call nary functions.
20622 (visit_binary_op): Likewise.
20623 (process_scc): Adjust for struct vn_tables_s changes.
20624 (allocate_vn_table): Likewise.
20625 (free_vn_table): Likewise.
20626 * tree-vn.c (vn_add): Call nary functions.
20627 (vn_lookup): Likewise.
20628
20629 2008-03-08 Jakub Jelinek <jakub@redhat.com>
20630
20631 PR target/35498
20632 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
20633 wdst back after sync_compare_and_swapqhi_internal.
20634
20635 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
20636
20637 PR target/22152
20638 * config/i386/i386-modes.def (V1DI): New vector mode.
20639 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
20640 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
20641 (MMXMODE248): Ditto.
20642 (MMXMODE): Add V1DI mode.
20643 (mmxvecsize): Change DI mode to V1DI mode.
20644 ("mov<mode>): Use MMXMODEI8 mode iterator.
20645 ("*mov<mode>_internal_rex64"): Ditto.
20646 ("*mov<mode>_internal"): Ditto.
20647 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
20648 ("mmx_sub<mode>3"): Ditto.
20649 ("mmx_adddi3"): Remove insn pattern.
20650 ("mmx_subdi3"): Ditto.
20651 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
20652 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
20653 ("mmx_ashl<mode>3"): Ditto.
20654 ("mmx_lshrdi3"): Remove insn pattern.
20655 ("mmx_ashldi3"): Ditto.
20656 * config/i386/i386.c (classify_argument): Handle V1DImode.
20657 (function_arg_advance_32): Ditto.
20658 (function_arg_32): Ditto.
20659 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
20660 mmx_addv1di3 insn pattern.
20661 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
20662 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
20663 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
20664 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
20665 Remove definitions of built-in functions.
20666 (V1DI_type_node): New node.
20667 (v1di_ftype_v1di_int): Ditto.
20668 (v1di_ftype_v1di_v1di): Ditto.
20669 (v2si_ftype_v2si_si): Ditto.
20670 (v4hi_ftype_v4hi_di): Remove node.
20671 (v2si_ftype_v2si_di): Ditto.
20672 (ix86_init_mmx_sse_builtins): Handle V1DImode.
20673 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
20674 Redefine builtins using def_builtin_const with *_ftype_*_int node.
20675 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
20676 Add new builtins using def_builtin_const.
20677 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
20678 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
20679 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
20680 * config/i386/mmintrin.h (__v1di): New typedef.
20681 (_mm_add_si64): Cast arguments to __v1di type.
20682 (_mm_sub_si64): Ditto.
20683 (_mm_sll_pi16): Cast __count to __v4hi type.
20684 (_mm_sll_pi32): Cast __count to __v2si type.
20685 (_mm_sll_si64): Cast arguments to __v1di type.
20686 (_mm_srl_pi16): Cast __count to __v4hi type.
20687 (_mm_srl_pi32): Cast __count to __v2si type.
20688 (_mm_srl_si64): Cast arguments to __v1di type.
20689 (_mm_sra_pi16): Cast __count to __v4hi type.
20690 (_mm_sra_pi32): Cast __count to __v2si type.
20691 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
20692 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
20693 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
20694 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
20695 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
20696 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
20697 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
20698 (_mm_srai_pi32): Use __builtin_ia32_psradi.
20699 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
20700 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
20701 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
20702 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
20703
20704 2008-03-07 Joseph Myers <joseph@codesourcery.com>
20705
20706 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
20707
20708 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
20709
20710 PR target/35373
20711 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
20712 reg+const addressing for Altivec modes. Don't generate reg+reg
20713 addressing for TFmode or TDmode quantities.
20714
20715 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
20716
20717 * c-common.c (vector_types_convertible_p): Call langhook
20718 instead of comptypes.
20719
20720 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
20721
20722 PR tree-opt/35402
20723 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
20724 integral and scalar float variables which have a
20725 NULL DECL_INITIAL.
20726
20727 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
20728
20729 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
20730 dwarf_register_span hook when emitting unwind information for
20731 register-to-memory saves.
20732 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
20733 (rs6000_frame_related): Remove call to spe_synthesize_frame.
20734
20735 2008-03-06 Jakub Jelinek <jakub@redhat.com>
20736
20737 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
20738 for the same VAR_DECL.
20739
20740 2008-03-06 Tom Tromey <tromey@redhat.com>
20741
20742 * treelang: Delete.
20743 * doc/standards.texi (Standards): Don't mention treelang.
20744 * doc/invoke.texi (Overall Options): Don't mention treelang.
20745 * doc/install.texi (Prerequisites): Don't mention bison or
20746 treelang.
20747 (Configuration): Don't mention treelang.
20748 (Building): Likewise.
20749 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
20750
20751 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
20752
20753 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
20754 word-extractions out of a multi-word object.
20755
20756 2008-03-06 Richard Guenther <rguenther@suse.de>
20757
20758 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
20759 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
20760 result type and precision.
20761 * expr.c (get_inner_reference): Set unsignedp based on the result
20762 type of BIT_FIELD_REF.
20763 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
20764 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
20765 (try_instantiate_multiple_fields): Likewise. Use the correct type
20766 for BIT_FIELD_REF.
20767 (sra_build_assignment): Likewise.
20768 (sra_build_elt_assignment): Likewise.
20769 (sra_explode_bitfield_assignment): Likewise.
20770 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
20771 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
20772 set BIT_FIELD_REF_UNSIGNED.
20773 (vectorizable_load): Likewise.
20774
20775 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
20776
20777 * cse.c (cse_extended_basic_block): Invalidate artificial defs
20778 at bb start.
20779
20780 2008-03-06 Richard Guenther <rguenther@suse.de>
20781
20782 * alias.c (struct alias_set_entry): Move has_zero_child field
20783 to pack with alias_set.
20784
20785 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
20786
20787 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
20788 32bit host.
20789
20790 2008-03-05 Ian Lance Taylor <iant@google.com>
20791
20792 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
20793
20794 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
20795
20796 * fwprop.c (update_df): Support width and offset parameters of
20797 df_ref_create.
20798 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
20799 global_conflicts): Change DF_REF_EXTRACT to either
20800 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
20801 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
20802 * df-scan.c (df_ref_record, df_defs_record,
20803 df_ref_create_structure, df_def_record_1, df_uses_record,
20804 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
20805 df_bb_refs_collect, df_entry_block_defs_collect,
20806 df_exit_block_uses_collect): Support new width and offset fields.
20807 (ref_extract_pool): New storage pool.
20808 (df_free_ref): New function.
20809 (df_reg_chain_unlink, df_free_collection_rec,
20810 df_sort_and_compress_refs): Call df_free_ref.
20811 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
20812 of df_ref_extract.
20813 (df_ref_create_structure): Allocate df_ref_extract if offset and
20814 width fields are used.
20815 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
20816 (df_uses_record): Get offset and width from ZERO_EXTRACT
20817 and SIGN_EXTRACT.
20818 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
20819 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
20820 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
20821 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
20822 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
20823 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
20824 (df_ref_extract): New structure.
20825 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
20826 (df_ref_create): Add width and offset parameters.
20827
20828 2008-03-05 Richard Guenther <rguenther@suse.de>
20829
20830 * tree-ssa-structalias.c (get_constraint_for_component_ref):
20831 Use ranges_overlap_p.
20832 (offset_overlaps_with_access): Rename
20833 to ranges_overlap_p and move ...
20834 * tree-flow-inline.h (ranges_overlap_p): ... here.
20835
20836 * tree.h (get_inner_reference, handled_component_p): Update
20837 comments.
20838
20839 * tree.h (record_component_aliases, get_alias_set,
20840 alias_sets_conflict_p, alias_sets_must_conflict_p,
20841 objects_must_conflict_p): Move declarations ...
20842 * alias.h (record_component_aliases, get_alias_set,
20843 alias_sets_conflict_p, alias_sets_must_conflict_p,
20844 objects_must_conflict_p): ... here.
20845 Include coretypes.h.
20846 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
20847
20848 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
20849
20850 * cfg.c: Include tree-flow.h.
20851 (remove_edge_raw): Call redirect_edge_var_map_clear.
20852 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
20853 * tree-flow-inline.h (redirect_edge_var_map_def): New.
20854 (redirect_edge_var_map_result): New.
20855 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
20856 PENDING_STMT use with redirect_edge_var_map_*.
20857 * tree-ssa.c (edge_var_maps): New definition.
20858 (redirect_edge_var_map_add): New.
20859 (redirect_edge_var_map_clear): New.
20860 (redirect_edge_var_map_dup): New.
20861 (redirect_edge_var_map_vector): New.
20862 (redirect_edge_var_map_destroy): New.
20863 (ssa_redirect_edge): Replace PENDING_STMT use with
20864 redirect_edge_var_map_*.
20865 (flush_pending_stmts): Same.
20866 (delete_tree_ssa): Destroy edge var map.
20867 * tree-flow.h (struct _edge_var_map): New.
20868 Define edge_var_map vector type.
20869 Declare redirect_edge_var_map_* prototypes.
20870 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
20871 * tree-cfg.c (reinstall_phi_args): Replace
20872 PENDING_STMT use with redirect_edge_var_map_*.
20873
20874 2008-03-05 Richard Guenther <rguenther@suse.de>
20875
20876 PR tree-optimization/35472
20877 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
20878 whose single use_stmt has a overlapping set of loaded and
20879 stored symbols as that use_stmt might be a noop assignment then.
20880
20881 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
20882
20883 * gthr-rtems.h: Implement __gthread_mutex_destroy.
20884
20885 2008-03-05 Richard Guenther <rguenther@suse.de>
20886
20887 PR c++/35336
20888 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
20889 should be constants.
20890 * tree-cfg.c (verify_expr): Verify it.
20891 * fold-const.c (fold_truthop): Remove code generating
20892 BIT_FIELD_REFs of structure bases.
20893 (fold_binary): Likewise.
20894 (fold_ternary): Position and size of BIT_FIELD_REFs are
20895 always host integers.
20896 (make_bit_field_ref): Remove.
20897 (optimize_bit_field_compare): Remove.
20898 (all_ones_mask_p): Remove.
20899
20900 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
20901
20902 PR gcc/33009
20903 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
20904 (split_block_and_df_analyze): New. Split basic block and rebuild
20905 dataflow.
20906 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
20907 SPLIT_BLOCK.
20908 (split_pattern_seq): Likewise.
20909 (erase_matching_seqs): Likewise.
20910 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
20911
20912 2008-03-04 Geoff Keating <geoffk@apple.com>
20913
20914 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
20915 declaration and code.
20916 (tree_invalid_nonnegative_warnv_p): Likewise.
20917
20918 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
20919
20920 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
20921 examples. Truncate option-names then causing overfull hbox.
20922
20923 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20924
20925 PR target/35222
20926 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
20927 on hpux10.
20928 * configure: Rebuilt.
20929
20930 2008-03-04 Rafael Espíndola <espindola@google.com>
20931
20932 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
20933 (tree_unary_nonnegative_warnv_p): New.
20934 (tree_binary_nonnegative_warnv_p): New.
20935 (tree_single_nonnegative_warnv_p): New.
20936 (tree_invalid_nonnegative_warnv_p): New.
20937 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
20938
20939 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20940
20941 PR 28322
20942 * opts.c (handle_option): Postpone 'unknown option' errors only for
20943 warning options.
20944
20945 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
20946
20947 PR target/35453
20948 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
20949 (_SIDD_XXX): This.
20950
20951 2008-03-04 Rafael Espíndola <espindola@google.com>
20952
20953 * fold-const.c (tree_unary_nonzero_warnv_p): New.
20954 (tree_binary_nonzero_warnv_p): New.
20955 (tree_single_nonzero_warnv_p): New.
20956 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
20957
20958 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
20959
20960 PR middle-end/35456
20961 * fold-const.c (fold_cond_expr_with_comparison): Prevent
20962 transformations for modes that have signed zeros.
20963 * ifcvt.c (noce_try_abs): Ditto.
20964
20965 2008-03-04 Joseph Myers <joseph@codesourcery.com>
20966
20967 * config/i386/i386.c (override_options): Force
20968 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
20969
20970 2008-03-04 Jan Hubicka <jh@suse.cz>
20971
20972 PR c++/35262
20973 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
20974 in last commit.
20975
20976 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
20977
20978 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
20979 label to probe the stack.
20980
20981 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
20982
20983 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
20984 (__gthr_win32_mutex_destroy): Declare.
20985 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
20986 __gthr_win32_mutex_destroy.
20987 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
20988
20989 2008-03-03 Jan Hubicka <jh@suse.cz>
20990
20991 PR c++/35262
20992 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
20993 aggressive on inlining cold calls.
20994
20995 2008-03-03 Richard Guenther <rguenther@suse.de>
20996
20997 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
20998 struct copies into the expression table.
20999 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
21000 (try_to_simplify): Likewise.
21001 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
21002 integral and pointer arguments which do not change the
21003 precision to NOP_EXPRs.
21004 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
21005 VIEW_CONVERT_EXPR case.
21006
21007 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
21008
21009 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
21010 defined in a loop at depth 0 is invariant.
21011 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
21012 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
21013 be called at loop depth 0.
21014
21015 2008-03-02 Jakub Jelinek <jakub@redhat.com>
21016
21017 PR driver/35420
21018 * gcc.c (process_command): Update copyright notice dates.
21019 * gcov.c (print_version): Likewise.
21020 * gcov-dump.c (print_version): Likewise.
21021 * mips-tfile.c (main): Likewise.
21022 * mips-tdump.c (main): Likewise.
21023
21024 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21025
21026 PR 24924
21027 * c-common.c (flag_permissive): Delete.
21028 (constant_expression_warnings): Check flags first.
21029 (constant_expression_error): New.
21030 * c-common.h (flag_permissive): Delete.
21031 (constant_expression_error): Declare.
21032 * flags.h (flag_permissive): Declare. Update description.
21033 * diagnostic.c (pedwarn): Update.
21034 (permerror): New.
21035 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
21036 (permissive_error_kind): New.
21037 * toplev.c (flag_permissive): Define. Update description.
21038 * toplev.h (permissive_error_kind): Declare.
21039 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
21040 (pedwarn_c90): Use pedantic_warning_kind.
21041 * c-opts.c (c_common_post_options): flag_permissive does not affect
21042 flag_pedantic_errors.
21043
21044 2008-03-02 Joseph Myers <joseph@codesourcery.com>
21045
21046 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
21047 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
21048 __absvsi2, __absvDI2): Use unsigned arithmetic.
21049
21050 2008-03-02 Andi Kleen <ak@suse.de>
21051 Richard Guenther <rguenther@suse.de>
21052
21053 * struct-equiv.c: Remove file.
21054 * cfg_cleanup.c (condjump_equiv_p): Remove.
21055 * Makefile.in (OBJS-common): Remove struct-equiv.o.
21056 (struct-equiv.o): Remove rule.
21057 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
21058 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
21059 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
21060
21061 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
21062
21063 * ifcvt.c (noce_process_if_block): Try to handle only the then
21064 block if the else block exists but isn't suitable.
21065
21066 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
21067
21068 PR gcc/35063
21069 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
21070 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
21071 regression from previous patch.
21072
21073 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
21074
21075 PR gcc/35063
21076 * gthr.h: Add __gthread_mutex_destroy as a function that must be
21077 implemented.
21078 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
21079 * gthr-single.h (__gthread_mutex_destroy): Likewise.
21080 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
21081 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
21082 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
21083 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
21084 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
21085 (__gthread_mutex_destroy_function): Rename to
21086 __gthread_mutex_destroy.
21087 * gthr-dce.h (__gthread_mutex_destroy): Call
21088 pthread_mutex_destroy.
21089 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
21090 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
21091 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
21092
21093 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
21094
21095 * df-scan.c (df_ref_chain_change_bb): Simplify.
21096 (df_insn_change_bb): Add new_bb argument. Simplify. Call
21097 set_block_for_insn if there's any change.
21098 * df.h ((df_insn_change_bb): Fix prototype.
21099 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
21100 df_insn_change_bb, don't call set_block_for_insn.
21101 * emit-rtl.c (reorder_insns): Likewise.
21102 * haifa-sched.c (move_insn): Likewise.
21103
21104 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
21105
21106 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
21107
21108 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
21109
21110 * tree-flow-inline.h (next_readonly_imm_use): Return
21111 NULL_USE_OPERAND_P after the end.
21112
21113 2008-03-01 Richard Guenther <rguenther@suse.de>
21114
21115 PR tree-optimization/35411
21116 * tree-sra.c (sra_build_assignment): Split conversion to
21117 final type to a separate statement if we are not assigning
21118 to a register.
21119
21120 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
21121
21122 * fold-const.c (fold_convertible_p): Correct the logic to follow
21123 that in fold_convert().
21124
21125 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
21126
21127 PR c++/35315
21128 * tree-inline.c (build_duplicate_type): When we make a
21129 duplicate type, make it unique in the canonical types system.
21130
21131 2008-02-29 Tom Tromey <tromey@redhat.com>
21132
21133 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
21134 input_file_stack_history, input_file_stack_restored): Remove.
21135 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
21136 * input.h (struct file_stack): Remove.
21137 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
21138 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
21139 Likewise.
21140 * diagnostic.h (struct diagnostic_context) <last_module>: Change
21141 type.
21142 (diagnostic_last_module_changed): Add 'map' argument.
21143 (diagnostic_set_last_function): Likewise.
21144 * diagnostic.c (undiagnostic_report_current_module): Iterate using
21145 line map, not input_file_stack.
21146 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
21147
21148 2008-02-29 Paul Brook <paul@codesourcery.com>
21149
21150 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
21151
21152 2008-02-29 Paul Brook <paul@codesourcery.com>
21153
21154 * config/arm/ieee754-df.S (muldf3): Use RET macros.
21155
21156 2008-02-29 Richard Guenther <rguenther@suse.de>
21157
21158 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
21159 vn_lookup_or_add.
21160 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
21161 value for comparing for a store match.
21162 (simplify_unary_expression): Do nothing for SSA_NAMEs.
21163 (try_to_simplify): Do not do a full-blown reference lookup.
21164
21165 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
21166
21167 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
21168 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
21169
21170 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
21171
21172 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
21173
21174 * tree-loop-linear.c (try_interchange_loops): Compare memory access
21175 strides against cache sizes.
21176
21177 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
21178
21179 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
21180 constant to fpul.
21181
21182 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
21183
21184 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
21185 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
21186 is smaller than the original promoted value.
21187 (simplify_subreg): If OP is a SUBREG, try to preserve its
21188 SUBREG_PROMOTED_VAR_P information.
21189
21190 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
21191
21192 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
21193 (VN_INFO_GET): Allocate new objects on the obstack.
21194 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
21195 for rpo_numbers_temp, for consistency.
21196 (free_scc_vn): Free the obstack.
21197
21198 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
21199
21200 * doc/invoke.texi: Document -ftree-loop-distribution.
21201 * tree-loop-distribution.c: New.
21202 * tree-pass.h (pass_loop_distribution): New.
21203 * graphds.h (struct graph): Add htab_t indices.
21204 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
21205 * tree-vectorizer.c (rename_variables_in_loop): Extern.
21206 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
21207 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
21208 * tree-data-ref.c (debug_data_dependence_relations): New.
21209 (dump_data_dependence_relation): Also print data references.
21210 (free_data_ref): Extern.
21211 (same_access_functions): Moved...
21212 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
21213 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
21214 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
21215 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
21216 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
21217 (stmts_from_loop): Skip LABEL_EXPR.
21218 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
21219 New.
21220 (build_rdg): Initialize rdg->indices htab.
21221 (free_rdg, stores_from_loop, ref_base_address,
21222 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
21223 have_similar_memory_accesses_1, ref_base_address_1,
21224 remove_similar_memory_refs): New.
21225 * tree-data-ref.h: Depend on tree-chrec.h.
21226 (debug_data_dependence_relations, free_data_ref): Declared.
21227 (same_access_functions): ... here.
21228 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
21229 New.
21230 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
21231 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
21232 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
21233 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
21234 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
21235 rdg_vertex_for_stmt): Declared.
21236 (struct rdg_edge): Add level.
21237 (RDGE_LEVEL): New.
21238 (free_rdg, stores_from_loop, remove_similar_memory_refs,
21239 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
21240 Declared.
21241 (rdg_has_similar_memory_accesses): New.
21242 * tree-vect-analyze.c: Remove unused static decls.
21243 * lambda.h (dependence_level): New.
21244 * common.opt (ftree-loop-distribution): New.
21245 * tree-flow.h (mark_virtual_ops_in_bb,
21246 slpeel_tree_duplicate_loop_to_edge_cfg,
21247 rename_variables_in_loop): Declared.
21248 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
21249 (OBJS-common): Add tree-loop-distribution.o.
21250 (tree-loop-distribution.o): New rule.
21251 * tree-cfg.c (mark_virtual_ops_in_bb): New.
21252 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
21253 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
21254
21255 2008-02-28 Joseph Myers <joseph@codesourcery.com>
21256
21257 PR target/33963
21258 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
21259 other than structures and unions.
21260
21261 2008-02-28 Richard Guenther <rguenther@suse.de>
21262
21263 Revert:
21264 2008-02-26 Richard Guenther <rguenther@suse.de>
21265
21266 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
21267 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
21268 (lookup_decl_from_uid): Declare.
21269 (remove_decl_from_map): Likewise.
21270 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
21271 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
21272 (decl_for_uid_map): New global hashtable mapping DECL_UID
21273 to the decl tree.
21274 (init_ttree): Allocate it.
21275 (insert_decl_to_uid_decl_map): New helper function.
21276 (make_node_stat): Insert new decls into the map.
21277 (copy_node_stat): Likewise.
21278 (lookup_decl_from_uid): New function.
21279 (remove_decl_from_map): Likewise.
21280 (print_decl_for_uid_map_statistics): New helper.
21281 (dump_tree_statistics): Call it.
21282
21283 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
21284 (referenced_var_iterator): Adjust.
21285 (FOR_EACH_REFERENCED_VAR): Adjust.
21286 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
21287 (num_referenced_vars): Adjust.
21288 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
21289 (first_referenced_var): Remove.
21290 (end_referenced_vars_p): Likewise.
21291 (next_referenced_var): Likewise.
21292 (referenced_var_iterator_set): New helper function.
21293 * tree-dfa.c (referenced_var_lookup): Adjust.
21294 (referenced_var_check_and_insert): Likewise.
21295 (remove_referenced_var): Likewise.
21296 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
21297 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21298 (verify_call_clobbering): Likewise.
21299 (verify_memory_partitions): Likewise.
21300 (init_tree_ssa): Allocate bitmap instead of hashtable for
21301 referenced_vars.
21302 (delete_tree_ssa): Adjust.
21303 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
21304 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21305 (compute_tag_properties): Likewise.
21306 (set_initial_properties): Likewise.
21307 (find_partition_for): Likewise.
21308 (update_reference_counts): Likewise.
21309 (dump_may_aliases_for): Likewise.
21310 * tree-ssa-operands.c (add_virtual_operand): Likewise.
21311 (add_call_clobber_ops): Likewise.
21312 (add_call_read_ops): Likewise.
21313 (get_asm_expr_operands): Likewise.
21314 * tree-into-ssa.c (dump_decl_set): Likewise.
21315 (update_ssa): Likewise.
21316 * tree-sra.c (scan_function): Likewise.
21317 (decide_instantiations): Likewise.
21318 (scalarize_parms): Likewise.
21319 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
21320 (dsa_named_for): Likewise.
21321 * tree-ssa-structalias.c (update_alias_info): Likewise.
21322 (merge_smts_into): Likewise.
21323
21324 2008-02-27 David Daney <ddaney@avtrex.com>
21325
21326 PR target/34409
21327 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
21328 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
21329 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
21330 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
21331 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
21332
21333 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
21334
21335 PR target/25477
21336 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
21337 (BUILT_IN_NEXTTOWARD): Remove.
21338 (BUILT_IN_NEXTTOWARDF): Ditto.
21339 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
21340 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
21341
21342 2008-02-27 Tom Tromey <tromey@redhat.com>
21343
21344 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
21345 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
21346
21347 2008-02-27 Jan Beulich <jbeulich@novell.com>
21348
21349 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
21350 update the respective field on newdecl.
21351
21352 2008-02-27 Revital Eres <eres@il.ibm.com>
21353
21354 PR rtl-optimization/34999
21355 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
21356 crossing edges that ends with a call insn.
21357 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
21358 call insn and clear the EDGE_CROSSING flag of the crossing edge
21359 when fixing fallthru edges.
21360
21361 2008-02-27 Richard Guenther <rguenther@suse.de>
21362
21363 PR middle-end/35390
21364 * fold-const.c (fold_unary): Return the correct argument,
21365 converted to the result type.
21366
21367 2008-02-27 Richard Guenther <rguenther@suse.de>
21368
21369 PR middle-end/34971
21370 * expr.c (expand_expr_real_1): Assert on rotates that operate
21371 on partial modes.
21372 * fold-const.c (fold_binary): Use the types precision, not the
21373 bitsize of the mode if folding rotate expressions. Build rotates
21374 only for full modes.
21375
21376 2008-02-27 Jakub Jelinek <jakub@redhat.com>
21377
21378 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
21379 and CPP_PRAGMA_EOL.
21380 * c-pragma.c (pragma_ns_name): New typedef.
21381 (registered_pp_pragmas): New variable.
21382 (c_pp_lookup_pragma): New function.
21383 (c_register_pragma_1): If flag_preprocess_only, do nothing
21384 for non-expanded pragmas, for expanded ones push pragma's
21385 namespace and name into registered_pp_pragmas vector.
21386 (c_invoke_pragma_handler): Register OpenMP pragmas even when
21387 flag_preprocess_only, don't register GCC pch_preprocess
21388 pragma if flag_preprocess_only.
21389 * c-opts.c (c_common_init): Call init_pragma even if
21390 flag_preprocess_only.
21391 * c-pragma.c (c_pp_lookup_pragma): New prototype.
21392 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
21393 cpp_register_pragma if flag_preprocess_only.
21394
21395 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21396
21397 PR c/28800
21398 * c-parser.c (c_parser_translation_unit): Warn for empty
21399 translation unit, not empty source file.
21400
21401 2008-02-26 Paul Brook <paul@codesourcery.com>
21402
21403 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
21404 operand for Thumb-2.
21405 * config/arm/arm.h (reg_class): Add CORE_REGS.
21406 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
21407 (BASE_REG_CLASS): Use CORE_REGS.
21408 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
21409 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
21410 (REGNO_OK_FOR_INDEX_P): Exclude SP.
21411 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
21412 ARM_REGNO_OK_FOR_INDEX_P.
21413 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
21414 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
21415 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
21416 (ldm/stm peepholes): Ditto.
21417 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
21418 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
21419 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
21420 * config/arm/constraints.md: Enable "k" constraint on ARM.
21421
21422 2008-02-27 Ben Elliston <bje@au.ibm.com>
21423
21424 * config/rs6000/rs6000.c: Annotate cache line size field in all
21425 instances of struct processor_costs.
21426
21427 2008-02-26 David Edelsohn <edelsohn@gnu.org>
21428
21429 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
21430 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
21431 jump_bypass): New counters.
21432 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
21433 * dce.c (gate_ud_dce): Same.
21434 (gate_fast_dce): Same.
21435 * dse.c (gate_dse1): New function.
21436 (gate_dse2): New function.
21437 (gate_dse): Merge results of new gate functions.
21438 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
21439 (gate_handle_jump_bypass): Add dbg_cnt.
21440 (gate_handle_gcse): Add dbg_cnt.
21441 * ifcvt.c (gate_handle_if_conversion): Same.
21442 (gate_handle_if_after_combine): Same.
21443 (gate_handle_if_after_reload): Same.
21444 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
21445
21446 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
21447
21448 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
21449 line sizes.
21450 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
21451
21452 2008-02-26 Jason Merrill <jason@redhat.com>
21453
21454 PR c++/35315
21455 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
21456 alone if it's the naming decl for the type's main variant.
21457
21458 2008-02-26 Tom Tromey <tromey@redhat.com>
21459
21460 * system.h (USE_MAPPED_LOCATION): Poison.
21461 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
21462 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
21463 (make_goto_expr_edges): Likewise.
21464 (remove_bb): Likewise.
21465 (execute_warn_function_return): Likewise.
21466 * basic-block.h (struct edge_def) <goto_locus>: Change type to
21467 location_t.
21468 * c-common.c (fname_decl): Remove old location code.
21469 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
21470 location code.
21471 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
21472 variant.
21473 (ASM_INPUT_SOURCE_LOCATION): Likewise.
21474 (gen_rtx_ASM_INPUT): Likewise.
21475 (gen_rtx_ASM_INPUT_loc): Likewise.
21476 (get_rtx_asm_OPERANDS): Remove.
21477 * cfglayout.c (insn_locators_alloc): Remove old location code.
21478 (set_curr_insn_source_location): Likewise.
21479 (curr_insn_locator): Likewise.
21480 * print-tree.c (print_node): Remove old location code.
21481 * tree-mudflap.c (mf_varname_tree): Remove old location code.
21482 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
21483 * cfgexpand.c (expand_gimple_cond_expr): Don't use
21484 location_from_locus.
21485 (construct_exit_block): Remove old location code.
21486 * emit-rtl.c (force_next_line_note): Remove old location code.
21487 * profile.c (branch_prob): Remove old location code.
21488 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
21489 LOC_LINE): Remove old-location variants.
21490 * langhooks.c (lhd_print_error_function): Remove old location
21491 code.
21492 * configure, config.in: Rebuilt.
21493 * configure.ac (--enable-mapped-location): Remove.
21494 * c-decl.c (c_init_decl_processing): Remove old location code.
21495 (finish_function): Likewise.
21496 * recog.c (decode_asm_operands): Remove old location code.
21497 * c-pch.c (c_common_read_pch): Remove old location code.
21498 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
21499 variants.
21500 * gimple-low.c (lower_function_body): Remove old location code.
21501 * toplev.c (unknown_location): Remove.
21502 (push_srcloc): Remove old-location variant.
21503 (process_options): Remove old location code.
21504 (lang_dependent_init): Likewise.
21505 * input.h (UNKNOWN_LOCATION): Move definition.
21506 (location_t): Undeprecate.
21507 (source_locus): Remove.
21508 (location_from_locus): Remove.
21509 (struct location_s): Remove.
21510 Remove all old-location code.
21511 (input_line, input_filename): Remove.
21512 * final.c (final_scan_insn): Remove old location code.
21513 * diagnostic.c (diagnostic_build_prefix): Remove
21514 USE_MAPPED_LOCATION test.
21515 * tree.h (gimple_stmt) <locus>: Now a location_t.
21516 (tree_exp) <locus>: Likewise.
21517 (DECL_IS_BUILTIN): Remove old-location variant.
21518 (annotate_with_file_line, annotate_with_locus): Likewise.
21519 (expr_locus, set_expr_locus): Update.
21520 * tree.c (build1_stat): Remove old location code.
21521 (last_annotated_node): Remove.
21522 (annotate_with_file_line): Remove old-location variant.
21523 (annotate_with_locus): Likewise.
21524 (expr_location): Remove old location code.
21525 (set_expr_location): Likewise.
21526 (expr_has_location): Likewise.
21527 (expr_locus): Likewise.
21528 (set_expr_locus): Likewise.
21529 (expr_filename): Don't use location_from_locus.
21530 (expr_lineno): Likewise.
21531 * rtl-error.c (location_for_asm): Remove old location code.
21532 * c-lex.c (cb_line_change): Remove old location code.
21533 (fe_file_change): Likewise.
21534 (cb_def_pragma): Likewise.
21535 (c_lex_with_flags): Likewise.
21536 * gengtype.c (do_typedef): Don't special-case location types.
21537 (define_location_structures): Remove.
21538 (main): Don't call define_location_structures.
21539 * tree-pretty-print.c (dump_implicit_edges): Remove old location
21540 code.
21541
21542 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21543
21544 PR 26264
21545 * builtins.def (BUILT_IN_STDARG_START): Remove.
21546 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
21547 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
21548 * tree-inline.c (inline_forbidden_p_1): Likewise.
21549
21550 2008-02-26 Richard Guenther <rguenther@suse.de>
21551
21552 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
21553 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
21554 (lookup_decl_from_uid): Declare.
21555 (remove_decl_from_map): Likewise.
21556 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
21557 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
21558 (decl_for_uid_map): New global hashtable mapping DECL_UID
21559 to the decl tree.
21560 (init_ttree): Allocate it.
21561 (insert_decl_to_uid_decl_map): New helper function.
21562 (make_node_stat): Insert new decls into the map.
21563 (copy_node_stat): Likewise.
21564 (lookup_decl_from_uid): New function.
21565 (remove_decl_from_map): Likewise.
21566 (print_decl_for_uid_map_statistics): New helper.
21567 (dump_tree_statistics): Call it.
21568
21569 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
21570 (referenced_var_iterator): Adjust.
21571 (FOR_EACH_REFERENCED_VAR): Adjust.
21572 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
21573 (num_referenced_vars): Adjust.
21574 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
21575 (first_referenced_var): Remove.
21576 (end_referenced_vars_p): Likewise.
21577 (next_referenced_var): Likewise.
21578 (referenced_var_iterator_set): New helper function.
21579 * tree-dfa.c (referenced_var_lookup): Adjust.
21580 (referenced_var_check_and_insert): Likewise.
21581 (remove_referenced_var): Likewise.
21582 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
21583 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21584 (verify_call_clobbering): Likewise.
21585 (verify_memory_partitions): Likewise.
21586 (init_tree_ssa): Allocate bitmap instead of hashtable for
21587 referenced_vars.
21588 (delete_tree_ssa): Adjust.
21589 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
21590 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21591 (compute_tag_properties): Likewise.
21592 (set_initial_properties): Likewise.
21593 (find_partition_for): Likewise.
21594 (update_reference_counts): Likewise.
21595 (dump_may_aliases_for): Likewise.
21596 * tree-ssa-operands.c (add_virtual_operand): Likewise.
21597 (add_call_clobber_ops): Likewise.
21598 (add_call_read_ops): Likewise.
21599 (get_asm_expr_operands): Likewise.
21600 * tree-into-ssa.c (dump_decl_set): Likewise.
21601 (update_ssa): Likewise.
21602 * tree-sra.c (scan_function): Likewise.
21603 (decide_instantiations): Likewise.
21604 (scalarize_parms): Likewise.
21605 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
21606 (dsa_named_for): Likewise.
21607 * tree-ssa-structalias.c (update_alias_info): Likewise.
21608 (merge_smts_into): Likewise.
21609
21610 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21611
21612 PR 34351
21613 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
21614 * c-opts.c (c_common_handle_option): Wall enables
21615 Wvolatile-register-var.
21616 * common.opt: Move Wvolatile-register-var to...
21617 * c.opt: ...here.
21618
21619 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21620
21621 * common.opt (Wlarger-than=): New.
21622 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
21623 -Wlarger-than=.
21624 * opts.c (common_handle_option): Handle -Wlarger-than=.
21625 * optc-gen.awk: Likewise.
21626 * opth-gen.awk: Likewise.
21627 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
21628 * tree-optimize.c (tree_rest_of_compilation): Likewise.
21629
21630 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21631
21632 * c-common.c (match_case_to_enum_1): Add appropriate
21633 OPT_W* parameter to warning.
21634 (c_do_switch_warnings): Likewise.
21635 * c-typeck.c (warning_init): Add one more parameter following
21636 'warning' function.
21637 (push_init_level): Update call to warning_init.
21638 (pop_init_level): Likewise.
21639 (add_pending_init): Likewise.
21640 (output_init_element: Likewise.
21641
21642 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21643
21644 PR 28322
21645 * toplev.c (toplev_main): If there are warnings or error, print
21646 errors for ignored options.
21647 * opts.c (ignored_options): New static variable.
21648 (postpone_unknown_option_error): New.
21649 (print_ignored_options): New.
21650 (handle_option): Postpone errors for unknown -Wno-* options.
21651 * opts.h (print_ignored_options): Declare.
21652
21653 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
21654
21655 * config/mips/mips.md (loadgp_blockage, blockage): Change type
21656 to "ghost".
21657
21658 2008-02-25 Richard Guenther <rguenther@suse.de>
21659
21660 Revert:
21661 2008-02-25 Richard Guenther <rguenther@suse.de>
21662
21663 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
21664 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
21665 (lookup_decl_from_uid): Declare.
21666 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
21667 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
21668 (decl_for_uid_map): New global hashtable mapping DECL_UID
21669 to the decl tree.
21670 (init_ttree): Allocate it.
21671 (insert_decl_to_uid_decl_map): New helper function.
21672 (make_node_stat): Insert new decls into the map.
21673 (copy_node_stat): Likewise.
21674 (lookup_decl_from_uid): New function.
21675 (print_decl_for_uid_map_statistics): New helper.
21676 (dump_tree_statistics): Call it.
21677
21678 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
21679 (referenced_var_iterator): Adjust.
21680 (FOR_EACH_REFERENCED_VAR): Adjust.
21681 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
21682 (num_referenced_vars): Adjust.
21683 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
21684 (first_referenced_var): Remove.
21685 (end_referenced_vars_p): Likewise.
21686 (next_referenced_var): Likewise.
21687 (referenced_var_iterator_set): New helper function.
21688 * tree-dfa.c (referenced_var_lookup): Adjust.
21689 (referenced_var_check_and_insert): Likewise.
21690 (remove_referenced_var): Likewise.
21691 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
21692 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21693 (verify_call_clobbering): Likewise.
21694 (verify_memory_partitions): Likewise.
21695 (init_tree_ssa): Allocate bitmap instead of hashtable for
21696 referenced_vars.
21697 (delete_tree_ssa): Adjust.
21698 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
21699 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21700 (compute_tag_properties): Likewise.
21701 (set_initial_properties): Likewise.
21702 (find_partition_for): Likewise.
21703 (update_reference_counts): Likewise.
21704 (dump_may_aliases_for): Likewise.
21705 * tree-ssa-operands.c (add_virtual_operand): Likewise.
21706 (add_call_clobber_ops): Likewise.
21707 (add_call_read_ops): Likewise.
21708 (get_asm_expr_operands): Likewise.
21709 * tree-into-ssa.c (dump_decl_set): Likewise.
21710 (update_ssa): Likewise.
21711 * tree-sra.c (scan_function): Likewise.
21712 (decide_instantiations): Likewise.
21713 (scalarize_parms): Likewise.
21714 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
21715 (dsa_named_for): Likewise.
21716 * tree-ssa-structalias.c (update_alias_info): Likewise.
21717 (merge_smts_into): Likewise.
21718
21719 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
21720
21721 PR fortran/29549
21722 * doc/invoke.texi (-fcx-limited-range): Document new option.
21723 * toplev.c (process_options): Handle -fcx-fortran-rules.
21724 * common.opt: Add documentation for -fcx-fortran-rules.
21725
21726 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
21727
21728 PR c/35162
21729 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
21730 actual behaviour and C99.
21731
21732 2008-02-26 Ben Elliston <bje@au.ibm.com>
21733
21734 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
21735 (ASM_CPU_POWER6_SPEC): Likewise.
21736 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
21737 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
21738 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
21739
21740 2008-02-25 Richard Guenther <rguenther@suse.de>
21741
21742 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
21743 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
21744 (lookup_decl_from_uid): Declare.
21745 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
21746 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
21747 (decl_for_uid_map): New global hashtable mapping DECL_UID
21748 to the decl tree.
21749 (init_ttree): Allocate it.
21750 (insert_decl_to_uid_decl_map): New helper function.
21751 (make_node_stat): Insert new decls into the map.
21752 (copy_node_stat): Likewise.
21753 (lookup_decl_from_uid): New function.
21754 (print_decl_for_uid_map_statistics): New helper.
21755 (dump_tree_statistics): Call it.
21756
21757 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
21758 (referenced_var_iterator): Adjust.
21759 (FOR_EACH_REFERENCED_VAR): Adjust.
21760 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
21761 (num_referenced_vars): Adjust.
21762 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
21763 (first_referenced_var): Remove.
21764 (end_referenced_vars_p): Likewise.
21765 (next_referenced_var): Likewise.
21766 (referenced_var_iterator_set): New helper function.
21767 * tree-dfa.c (referenced_var_lookup): Adjust.
21768 (referenced_var_check_and_insert): Likewise.
21769 (remove_referenced_var): Likewise.
21770 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
21771 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21772 (verify_call_clobbering): Likewise.
21773 (verify_memory_partitions): Likewise.
21774 (init_tree_ssa): Allocate bitmap instead of hashtable for
21775 referenced_vars.
21776 (delete_tree_ssa): Adjust.
21777 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
21778 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21779 (compute_tag_properties): Likewise.
21780 (set_initial_properties): Likewise.
21781 (find_partition_for): Likewise.
21782 (update_reference_counts): Likewise.
21783 (dump_may_aliases_for): Likewise.
21784 * tree-ssa-operands.c (add_virtual_operand): Likewise.
21785 (add_call_clobber_ops): Likewise.
21786 (add_call_read_ops): Likewise.
21787 (get_asm_expr_operands): Likewise.
21788 * tree-into-ssa.c (dump_decl_set): Likewise.
21789 (update_ssa): Likewise.
21790 * tree-sra.c (scan_function): Likewise.
21791 (decide_instantiations): Likewise.
21792 (scalarize_parms): Likewise.
21793 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
21794 (dsa_named_for): Likewise.
21795 * tree-ssa-structalias.c (update_alias_info): Likewise.
21796 (merge_smts_into): Likewise.
21797
21798 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
21799
21800 PR target/35258
21801 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
21802 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
21803 * alias.h (nonoverlapping_memrefs_p): Likewise.
21804
21805 2008-02-25 Jan Beulich <jbeulich@novell.com>
21806
21807 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
21808 * config/i386/netware-libgcc.exp: Add __bswap?i2,
21809 __emultls_get_address, __emultls_register_common,
21810 __floatundi?f, and _Unwind_GetIPInfo.
21811 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
21812 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
21813 (gen_regparm_prefix): Likewise.
21814 (i386_nlm_encode_section_info): Sync with
21815 config/i386/winnt.c:i386_pe_encode_section_info().
21816 (i386_nlm_maybe_mangle_decl_assembler_name): New.
21817 i386_nlm_mangle_decl_assembler_name): New.
21818 (netware_override_options): New.
21819 * config/i386/netware.h (netware_override_options): Declare.
21820 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
21821 (i386_nlm_mangle_decl_assembler_name): Declare.
21822 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
21823
21824 2008-02-25 Ben Elliston <bje@au.ibm.com>
21825
21826 PR other/32948
21827 * c-decl.c (grokdeclarator): Remove unused local variables
21828 `typedef_type' and `type_as_written'.
21829 * bb-reorder.c
21830 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
21831 unused local variable `has_hot_blocks'.
21832 (fix_crossing_conditional_branches): Remove unused local variable
21833 `prev_bb'.
21834
21835 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
21836
21837 PR middle-end/19984
21838 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
21839 using DEF_C99_BUILTIN.
21840 (BUILT_IN_NANF): Ditto.
21841 (BUILT_IN_NANL): Ditto.
21842
21843 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
21844 Revital Eres <eres@il.ibm.com>
21845
21846 * modulo-sched.c (calculate_must_precede_follow): Address TODO
21847 regarding the order of two dependent insns in the same row.
21848
21849 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
21850
21851 * stor-layout.c (layout_decl): Do not bump the alignment of a
21852 bit-field to more than byte alignment if it is packed.
21853
21854 2008-02-24 David Edelsohn <edelsohn@gnu.org>
21855
21856 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
21857 e300c2 and e300c3.
21858
21859 2008-02-24 Diego Novillo <dnovillo@google.com>
21860
21861 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
21862
21863 PR 33738
21864 * tree-vrp.c (vrp_evaluate_conditional): With
21865 -Wtype-limits, emit a warning when comparing against a
21866 constant outside the natural range of OP0's type.
21867 * c.opt (Wtype-limits): Move ...
21868 * common.opt (Wtype-limits): ... here.
21869
21870 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
21871
21872 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
21873 * config/rs6000/e300c2c3.md: New file.
21874 * config/rs6000/rs6000.c (processor_costs): Add new costs for
21875 e300c2 and e300c3.
21876 (rs6000_override_options): Add e300c2 and e300c3 cases to
21877 processor_target_table. Do not allow usage of Altivec or Spe
21878 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
21879 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
21880 * config/rs6000/rs6000.h (processor_type): Add
21881 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
21882 (ASM_CPU_SPEC): Add e300c2 and e300c3.
21883 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
21884 and ppce300c3. Include e300c2c3.md.
21885
21886 2008-02-23 David Edelsohn <edelsohn@gnu.org>
21887
21888 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
21889 instead of TARGET_STRICT_ALIGN.
21890
21891 2008-02-23 Joseph Myers <joseph@codesourcery.com>
21892
21893 * explow.c (memory_address): Assert that the generated address is
21894 valid.
21895
21896 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
21897
21898 PR target/25477
21899 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
21900 * config/darwin-ppc-ldouble-patch.def: New file.
21901 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
21902 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
21903 SUBTARGET_INIT_BUILTINS if defined.
21904 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
21905 New functions.
21906
21907 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
21908
21909 PR rtl-opt/33512
21910 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
21911 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
21912
21913 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
21914
21915 PR pch/35027
21916 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
21917 file" warning condtional on -Winvalid-PCH.
21918
21919 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
21920
21921 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
21922
21923 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
21924
21925 PR target/22076
21926 PR target/34256
21927 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
21928 prevent reload from using MMX registers.
21929 (*mov<mode>_internal): Ditto.
21930 (*movv2sf_internal_rex64): Ditto.
21931 (*movv2sf_internal): Ditto.
21932
21933 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21934
21935 PR documentation/31569
21936 * doc/install.texi2html: Use makeinfo --no-number-sections.
21937
21938 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
21939
21940 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
21941 ensure that we can address an entire entity > 8 bytes. Don't
21942 generate reg+reg addressing for such data.
21943
21944 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
21945
21946 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
21947 strings when optimizing for size, unless the target cares about
21948 alignment.
21949
21950 2008-02-22 Tom Tromey <tromey@redhat.com>
21951
21952 * regclass.c (current_pass): Remove declaration.
21953
21954 2008-02-22 Anatoly Sokolov <aesok@post.ru>
21955
21956 * config/avr/libgcc.S (__RAMPZ__): Define.
21957 (__do_copy_data): Add for devices with 128KB code memory.
21958
21959 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
21960
21961 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
21962 Use spe_abi.
21963 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
21964
21965 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
21966
21967 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
21968 GENNONACR_REGS.
21969
21970 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21971
21972 PR c/19999
21973 * c-typeck.c (build_binary_op): Warn about floating point
21974 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
21975
21976 2008-02-21 Janis Johnson <janis187@us.ibm.com>
21977
21978 PR target/34526
21979 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
21980 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
21981 add vrsave.
21982 (rs6000_override_options): Set altivec_abi as default, not override,
21983 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
21984 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
21985 is used; use new member spe_abi.
21986 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
21987 spe_abi and altivec_abi.
21988
21989 2008-02-22 Tomas Bily <tbily@suse.cz>
21990
21991 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
21992
21993 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21994
21995 PR bootstrap/35273
21996 * config.build (build_file_translate): Set to `CMD //c' only if
21997 it works.
21998 * Makefile.in (build_file_translate): Improve comment.
21999
22000 2008-02-21 Jan Hubicka <jh@suse.cz>
22001
22002 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
22003 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
22004 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
22005
22006 2008-02-21 Michael Matz <matz@suse.de>
22007
22008 PR target/35264
22009 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
22010
22011 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
22012
22013 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
22014 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
22015 as insn constraint.
22016 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
22017 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
22018 SSE_VEC_FLOAT_MODE_P as insn constraint.
22019 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
22020 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
22021 sse4a_movntdf using MODEF mode iterator.
22022 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
22023 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
22024 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
22025 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
22026 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
22027 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
22028 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
22029
22030 2008-02-21 Richard Guenther <rguenther@suse.de>
22031
22032 * tree.def (PAREN_EXPR): New tree code.
22033 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
22034 and PAREN_EXPR.
22035 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
22036 * expr.c (expand_expr_real_1): Likewise.
22037 * tree-inline.c (estimate_num_insns_1): Likewise.
22038 * tree-complex.c (expand_complex_move): Likewise.
22039 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
22040 as plain x.
22041
22042 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
22043
22044 PR target/35225
22045 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
22046
22047 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
22048
22049 PR target/35190
22050 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
22051
22052 * config/sh/sh.c (find_barrier): Don't go past
22053 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
22054
22055 2008-02-20 DJ Delorie <dj@redhat.com>
22056
22057 * config/h8300/h8300.md (insv): Force source operand to be a register.
22058
22059 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
22060 as a jump, not as a plain insn.
22061
22062 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
22063
22064 * doc/invoke.texi (Warning Options): Add new option
22065 -Wframe-larger-than=.
22066 (-Wframe-larger-than): Document.
22067
22068 * flags.h (warn_frame_larger_than, frame_larger_than_size):
22069 Add declarations for new option variables.
22070
22071 * final.c (final_start_function): Check the frame size
22072 before emission and issue a Wframe-larger-than warning.
22073
22074 * opts.c (warn_frame_larger_than, frame_larger_than_size):
22075 Add definitions for new option variables.
22076 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
22077
22078 * common.opt (Wframe-larger-than=): New option.
22079
22080 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
22081
22082 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
22083 (<sse>_div<mode>3): Ditto.
22084 (<sse>_vmdiv<mode>3): Ditto.
22085 (<sse>_vmsqrt<mode>2): Ditto.
22086 (*smax<mode>3): Ditto.
22087 (sse5_frcz<mode>2): Ditto.
22088 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
22089 as insn constraint.
22090
22091 2008-02-20 Richard Guenther <rguenther@suse.de>
22092
22093 PR middle-end/35265
22094 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
22095 be happy with INTEGRAL_TYPE_P.
22096
22097 2008-02-20 Richard Guenther <rguenther@suse.de>
22098
22099 * fold-const.c (split_tree): Associate floatig-point expressions
22100 if flag_associative_math is set.
22101
22102 2008-02-20 Richard Guenther <rguenther@suse.de>
22103
22104 * tree.h (fold_real_zero_addition_p): Declare.
22105 * fold-const.c (fold_real_zero_addition_p): Export.
22106 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
22107 floating-point operations with zero and one.
22108
22109 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
22110
22111 * doc/install.texi: Correct references to CFLAGS, replacing them
22112 with BOOT_CFLAGS. Document flags used during bootstrap for
22113 target libraries.
22114
22115 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
22116
22117 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
22118 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
22119 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
22120 insn constraint.
22121 (smin<mode>3): Ditto from similar patterns.
22122 (smax<mode>3): Ditto.
22123 (*ieee_smin<mode>3): Ditto.
22124 (*ieee_smax<mode>3): Ditto.
22125 * config/i386/sse.md (sse): New mode attribute.
22126 (mov<mode>): Macroize expander from movv4sf and movv2df using
22127 SSEMODEF2P mode iterator.
22128 (<sse>_movnt<mode>): Ditto from similar patterns. Use
22129 SSE_VEC_FLOAT_MODE_P as insn constraint.
22130 (storent<mode>): Ditto.
22131 (storent<mode>): Macroize expander from storentsf and storentdf using
22132 MODEF mode iterator.
22133 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
22134 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
22135 (abs<mode>2): Ditto from similar patterns.
22136 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
22137 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
22138 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
22139 (<sse>_vmsqrt<mode>2): Ditto.
22140 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
22141 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
22142 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
22143 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
22144 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
22145 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
22146 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
22147 insn constraint.
22148 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
22149 iterator and SSE_FLOAT_MODE_P as insn constraint.
22150 (<sse>_ucomi): Ditto from similar patterns.
22151 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
22152 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
22153 SSE_VEC_FLOAT_MODE_P as insn constraint.
22154 (vcond<mode>): Ditto from similar patterns.
22155 (and<mode>3, *and<mode>3): Ditto.
22156 (<sse>_nand<mode>3): Ditto.
22157 (ior<mode>3, *ior<mode>3): Ditto.
22158 (xor<mode>3, *xor<mode>3): Ditto.
22159 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
22160 iterator and SSE_FLOAT_MODE_P as insn constraint.
22161 (*nand<mode>3): Ditto from similar patterns.
22162 (*ior<mode>3): Ditto.
22163 (*xor<mode>3): Ditto.
22164
22165 2008-02-20 Ira Rosen <irar@il.ibm.com>
22166
22167 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
22168 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
22169 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
22170
22171 2008-02-19 Jan Hubicka <jh@suse.cz>
22172
22173 * predict.c (tree_bb_level_predictions): Remove variable next
22174 mistakely introduced by previous commit.
22175
22176 2008-02-19 Jan Hubicka <jh@suse.cz>
22177
22178 * predict.c (predict_paths_leading_to): Rewrite.
22179 (predict_paths_for_bb): New.
22180 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
22181
22182 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22183
22184 PR bootstrap/35218
22185 * Makefile.in (build_file_translate): New.
22186 (gcc-vers.texi): Use it for translating $(abs_srcdir).
22187 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
22188 * configure.ac (build_file_translate): Substitute it.
22189 * configure: Regenerate.
22190
22191 2008-02-19 Jan Hubicka <jh@suse.cz>
22192
22193 PR rtl-optimization/34408
22194 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
22195 invalid sharing.
22196
22197 2008-02-19 Jan Hubicka <jh@suse.cz>
22198
22199 PR middle-end/28779
22200 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
22201 call_expr.
22202
22203 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
22204
22205 PR Ada/35186
22206 * config/i386/i386-modes.def: Revert the last DI alignment
22207 change until Ada people can look into it.
22208
22209 2008-02-19 Nick Clifton <nickc@redhat.com>
22210
22211 * opts.c (print_specific_help): Fix typo in --help text.
22212
22213 2008-02-19 Jakub Jelinek <jakub@redhat.com>
22214
22215 PR target/35239
22216 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
22217 32-bit inline asm without asm alternatives for host GCC < 3.0.
22218
22219 2008-02-19 Richard Guenther <rguenther@suse.de>
22220
22221 PR tree-optimization/34989
22222 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
22223 Allow propagation to INDIRECT_REF if we can simplify only.
22224
22225 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22226
22227 * c-common.c (warn_for_collisions_1): Use appropriate option when
22228 warning.
22229
22230 2008-02-19 Nick Clifton <nickc@redhat.com>
22231
22232 PR other/31349
22233 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
22234 (handle_options): Fix indentation.
22235 (print_filtered_help): If no language-specific options were
22236 displayed tell the user how to list all the options supported by
22237 the language's front-end.
22238 (print_specific_help): Fix indentation and remove duplicate line.
22239 (common_handle_option): Handle the -v option.
22240 For --help enable the display of undocumented options if the -v
22241 switch has been included on the command line.
22242 For --help= check for overlaps in the arguments between the option
22243 classes and the language names and issue a warning when they
22244 cannot be disambiguated.
22245 * c.opt (v): Pass on to the common option handler.
22246
22247 2008-02-19 Revital Eres <eres@il.ibm.com>
22248
22249 * modulo-sched.c (sms_schedule): Change dump message when
22250 create_ddg function fails.
22251 (try_scheduling_node_in_cycle): Rename row to cycle.
22252 (print_partial_schedule): Rename CYCLE to ROW.
22253
22254 2008-02-19 Christian Bruel <christian.bruel@st.com>
22255 Zdenek Dvorak <ook@ucw.cz>
22256
22257 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
22258
22259 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
22260
22261 PR target/33555
22262 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
22263 (*x86_movdicc_0_m1_se): Ditto.
22264
22265 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
22266
22267 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
22268 (CMPtype): Define as __gcc_CMPtype.
22269 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
22270 (CMPtype): Define as __gcc_CMPtype.
22271
22272 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
22273
22274 Support valgrind 3.3 for --enable-checking=valgrind.
22275 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
22276 here.
22277 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
22278 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
22279 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
22280 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
22281 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
22282 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
22283 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
22284 respectively.
22285 * ggc-zone.c: Similar.
22286 * ggc-page.c: Similar.
22287
22288 2008-02-19 Paul Brook <paul@codesourcery.com>
22289
22290 PR target/35071
22291 * config/arm/ieee754-df.S: Fix do_it typo.
22292 * config/arm/ieee754-sf.S: Fix do_it typo.
22293
22294 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
22295
22296 PR target/35189
22297 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
22298 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
22299 (OPTION_MASK_ISA_SSE_SET): Likewise.
22300 (OPTION_MASK_ISA_SSE2_SET): Likewise.
22301 (OPTION_MASK_ISA_SSE3_SET): Likewise.
22302 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
22303 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
22304 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
22305 (OPTION_MASK_ISA_SSE4_SET): Likewise.
22306 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
22307 (OPTION_MASK_ISA_SSE5_SET): Likewise.
22308 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
22309 (OPTION_MASK_ISA_MMX_UNSET): Updated.
22310 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
22311 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
22312 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
22313 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
22314 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
22315 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
22316 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
22317 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
22318 (OPTION_MASK_ISA_SSE4): Removed.
22319 (ix86_handle_option): Turn on bits in ix86_isa_flags and
22320 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
22321 (override_options): Don't turn on implied SSE/MMX bits in
22322 ix86_isa_flags.
22323
22324 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
22325
22326 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
22327 32bit host.
22328
22329 2008-02-18 Joey Ye <joey.ye@intel.com>
22330
22331 PR middle-end/34921
22332 * tree-nested.c (insert_field_into_struct): Set type alignment
22333 to field alignment if the former is less than the latter.
22334
22335 2008-02-18 Jakub Jelinek <jakub@redhat.com>
22336
22337 * BASE-VER: Set to 4.4.0.
22338
22339 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22340
22341 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
22342 * doc/cfg.texi: Likewise.
22343 * doc/extend.texi: Likewise.
22344 * doc/gty.texi: Likewise.
22345 * doc/invoke.texi: Likewise.
22346 * doc/loop.texi: Likewise.
22347 * doc/md.texi: Likewise.
22348 * doc/passes.texi: Likewise.
22349 * doc/rtl.texi: Likewise.
22350 * doc/sourcebuild.texi: Likewise.
22351 * doc/tm.texi: Likewise.
22352 * doc/tree-ssa.texi: Likewise.
22353
22354 2008-02-17 Richard Guenther <rguenther@suse.de>
22355
22356 PR middle-end/35227
22357 * tree-complex.c (init_parameter_lattice_values): Handle parameters
22358 without default definition.
22359
22360 2008-02-17 Richard Guenther <rguenther@suse.de>
22361
22362 PR tree-optimization/35231
22363 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
22364 if A | B != 1.
22365
22366 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
22367
22368 Revert:
22369 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
22370 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
22371 libgcc_cmp_return mode.
22372
22373 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22374
22375 PR c/28368
22376 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
22377
22378 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
22379
22380 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
22381 multilibs.
22382
22383 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22384
22385 * doc/c-tree.texi: Use `@.' where appropriate.
22386 * doc/extend.texi: Likewise.
22387 * doc/install.texi: Likewise.
22388 * doc/invoke.texi: Likewise.
22389 * doc/loop.texi: Likewise.
22390 * doc/makefile.texi: Likewise.
22391 * doc/md.texi: Likewise.
22392 * doc/passes.texi: Likewise.
22393 * doc/standards.texi: Likewise.
22394 * doc/tm.texi: Likewise.
22395
22396 2008-02-15 Jakub Jelinek <jakub@redhat.com>
22397
22398 PR middle-end/35196
22399 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
22400 in entry_bb.
22401 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
22402 rather than in entry_bb.
22403
22404 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
22405
22406 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
22407 libgcc_cmp_return mode.
22408
22409 2008-02-15 Jakub Jelinek <jakub@redhat.com>
22410
22411 PR middle-end/35130
22412 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
22413 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
22414
22415 2008-02-15 Richard Guenther <rguenther@suse.de>
22416 Zdenek Dvorak <ook@ucw.cz>
22417
22418 PR tree-optimization/35164
22419 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
22420 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
22421 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
22422 Only propagate addresses which do not have abnormal SSA_NAMEs
22423 in their operands.
22424
22425 2008-02-15 Joseph Myers <joseph@codesourcery.com>
22426
22427 PR target/35088
22428 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
22429
22430 2008-02-15 Jan Hubicka <jh@suse.cz>
22431
22432 PR middle-end/35149
22433 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
22434
22435 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
22436
22437 PR middle-end/34621
22438 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
22439 when calculating alignment_pad.
22440
22441 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
22442
22443 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
22444 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
22445 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
22446 and STACK_BOUNDARY define.
22447
22448 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
22449
22450 PR preprocessor/35061
22451 * c-pragma.c (handle_pragma_pop_macro): Check that
22452 pushed_macro_table has been allocated.
22453
22454 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
22455
22456 PR middle-end/35136
22457 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
22458 (force_gimple_operand): Likewise.
22459 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
22460 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
22461 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
22462 (find_interesting_uses_address): Check addressability and alignment
22463 of the base expression only after substituting bases of IVs into it.
22464
22465 2008-02-14 Michael Matz <matz@suse.de>
22466
22467 PR target/34930
22468 * function.c (instantiate_virtual_regs_in_insn): Reload address
22469 before falling back to reloading the whole operand.
22470
22471 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
22472
22473 * config/s390/s390.c (s390_mainpool_start): Emit the pool
22474 before the first section switch note.
22475
22476 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22477
22478 * doc/bugreport.texi: Update copyright years.
22479 * doc/c-tree.texi: Likewise.
22480 * doc/cfg.texi: Likewise.
22481 * doc/cpp.texi: Likewise.
22482 * doc/cppinternals.texi: Likewise.
22483 * doc/fragments.texi: Likewise.
22484 * doc/frontends.texi: Likewise.
22485 * doc/gcc.texi: Likewise.
22486 * doc/gty.texi: Likewise.
22487 * doc/hostconfig.texi: Likewise.
22488 * doc/implement-c.texi: Likewise.
22489 * doc/libgcc.texi: Likewise.
22490 * doc/loop.texi: Likewise.
22491 * doc/makefile.texi: Likewise.
22492 * doc/options.texi: Likewise.
22493 * doc/passes.texi: Likewise.
22494 * doc/rtl.texi: Likewise.
22495 * doc/sourcebuild.texi: Likewise.
22496 * doc/standards.texi: Likewise.
22497 * doc/tree-ssa.texi: Likewise.
22498 * doc/trouble.texi: Likewise.
22499
22500 * doc/extend.texi: Use @: or add comma where appropriate.
22501 * doc/invoke.texi: Likewise.
22502 * doc/tm.texi: Likewise.
22503
22504 2008-02-14 Alan Modra <amodra@bigpond.net.au>
22505
22506 PR target/34393
22507 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
22508 to a reg.
22509
22510 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
22511
22512 * doc/md.texi (clz, ctz): Add reference.
22513 * doc/rtl.texi (clz, ctz): Likewise.
22514
22515 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22516
22517 PR other/35148
22518 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
22519 srcdir.
22520
22521 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
22522
22523 * config/s390/s390.c (struct constant_pool): New field
22524 emit_pool_after added.
22525 (s390_mainpool_start): Set the emit_pool_after flag according
22526 to the section switch notes.
22527 (s390_mainpool_finish): Consider emit_pool_after when emitting
22528 the literal pool at the end of the function.
22529 (s390_chunkify_start): Force literal pool splits at section
22530 switch notes.
22531
22532 2008-02-13 Michael Matz <matz@suse.de>
22533
22534 PR debug/35065
22535 * var-tracking.c (clobber_variable_part): Correctly traverse the
22536 list.
22537
22538 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22539
22540 PR 29673
22541 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
22542 Add -fdump-ipa-inline.
22543 * tree-dump.c (dump_files): Remove tree-inlined dump.
22544 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
22545
22546 2008-02-12 Richard Guenther <rguenther@suse.de>
22547
22548 PR tree-optimization/35171
22549 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
22550 default defs.
22551
22552 2008-02-12 Richard Guenther <rguenther@suse.de>
22553
22554 PR middle-end/35163
22555 * fold-const.c (fold_widened_comparison): Use get_unwidened in
22556 value-preserving mode. Disallow final truncation.
22557
22558 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
22559
22560 PR middle-end/35136
22561 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
22562 code from here to...
22563 (force_gimple_operand): ...here.
22564
22565 2008-02-12 Jakub Jelinek <jakub@redhat.com>
22566
22567 PR c++/35144
22568 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
22569 non-compatible pointers.
22570 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
22571 different FIELD_DECLs, try harder by comparing field offsets, sizes
22572 and types.
22573
22574 PR inline-asm/35160
22575 * function.c (match_asm_constraints_1): Don't replace the same input
22576 multiple times.
22577
22578 2008-02-12 Anatoly Sokolov <aesok@post.ru>
22579
22580 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
22581 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
22582 (expand_epilogue): Restore RAMPZ register.
22583 * config/avr/avr.md (RAMPZ_ADDR): New constant.
22584
22585 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
22586
22587 * config/i386/cygwin.asm: (__alloca): Correct calling
22588 convention and alignment.
22589 (__chkstk): Force 8 byte stack alignment.
22590
22591 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
22592 Richard Guenther <rguenther@suse.de>
22593
22594 PR tree-optimization/33992
22595 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
22596 the zero we compare against.
22597
22598 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
22599
22600 PR libfortran/35063
22601 * gthr-win32.h (__gthread_mutex_destroy_function): New function
22602 to CloseHandle after unlocking to prevent accumulation of handle
22603 count.
22604
22605 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22606
22607 PR middle_end/34150
22608 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
22609 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
22610 and update LABEL_NUSES during and after reload.
22611
22612 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
22613
22614 PR middle-end/34627
22615 * combine.c (simplify_if_then_else): Make sure the comparison is
22616 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
22617
22618 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
22619
22620 PR bootstrap/35051
22621 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
22622 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
22623 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
22624 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
22625 * tree.h (get_type_static_bounds): Likewise.
22626
22627 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22628
22629 * doc/invoke.texi (Option Summary, C++ Dialect Options)
22630 (Objective-C and Objective-C++ Dialect Options, Warning Options):
22631 Make -Wfoo language annotations match what the compiler outputs.
22632
22633 2008-02-08 Sa Liu <saliu@de.ibm.com>
22634
22635 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
22636 intrinsics spu_convts, spu_convtu, spu_convtf.
22637
22638 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
22639
22640 * doc/extend.texi (Function Attributes) <noinline>: Mention
22641 asm ("") as method to keep calls.
22642
22643 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22644
22645 PR other/32754
22646 * doc/options.texi (Options): Replace references to opts.sh with
22647 optc-gen.awk.
22648 * opts-common.c: Likewise.
22649 * optc-gen.awk: Likewise.
22650
22651 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
22652
22653 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
22654
22655 2008-02-07 Richard Henderson <rth@redhat.com>
22656
22657 PR rtl-opt/33410
22658 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
22659 EXPR_LIST for the REG_EQUAL instead of a comparison with a
22660 funny mode.
22661
22662 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
22663
22664 PR tree-optimization/35085
22665 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
22666 for operand entry oe2 in addition to operand entry oe3 in order to
22667 expose more opportunities for vectorizer sum reduction.
22668
22669 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22670
22671 PR other/35107
22672 * Makefile.in (LIBS): Remove $(GMPLIBS).
22673 (cc1-dummy, cc1): Add $(GMPLIBS).
22674
22675 2008-02-06 Jan Hubicka <jh@suse.cz>
22676
22677 PR target/23322
22678 * i386.md (moddf_integer): Do not produce partial memory stalls for
22679 targets where it hurts.
22680
22681 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
22682
22683 PR target/35083
22684 * optabs.c (expand_float): Do not check for decimal modes when
22685 expanding unsigned integer through signed conversion.
22686
22687 2008-02-06 Nick Clifton <nickc@redhat.com>
22688
22689 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
22690 inside the clobber with a match_operand and duplicated operand
22691 number in the constraint.
22692 (ineqbranchsi): Delete redundant comment.
22693
22694 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
22695
22696 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
22697 builtin_define ("__USE_INIT_FINI__").
22698 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
22699 -msx multilibs.
22700 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
22701
22702 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22703
22704 PR documentation/30330
22705 * doc/invoke.texi (C++ Dialect Options)
22706 (Objective-C and Objective-C++ Dialect Options, Warning Options):
22707 For each warning option -Wfoo that allows -Wno-foo, ensure both
22708 -Wfoo and -Wno-foo are listed in the option index. Fix index
22709 entry of -Wswitch-default, index -Wnormalized= including the
22710 `=', and -Wlarger-than-@var{len} including @var{len}.
22711
22712 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
22713
22714 * config/i386/i386.md (floatunssisf2): Use
22715 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
22716 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
22717 Macroize expander using MODEF mode iterator.
22718
22719 2008-02-05 Diego Novillo <dnovillo@google.com>
22720
22721 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
22722
22723 PR 33738
22724 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
22725
22726 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22727
22728 PR other/35070
22729 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
22730
22731 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
22732
22733 PR target/35084
22734 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
22735 to indicate if a message should be generated.
22736 (init_cumulative_args): Updated.
22737 (function_value_32): Likewise.
22738
22739 2008-02-05 Joseph Myers <joseph@codesourcery.com>
22740
22741 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
22742
22743 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
22744
22745 PR target/35083
22746 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
22747 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
22748
22749 2008-02-04 Diego Novillo <dnovillo@google.com>
22750
22751 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
22752
22753 PR 33738
22754 * tree-vrp.c (vrp_evaluate_conditional): With
22755 -Wtype-limits, emit a warning when comparing against a
22756 constant outside the natural range of OP0's type.
22757
22758 2008-02-04 Richard Guenther <rguenther@suse.de>
22759
22760 PR middle-end/33631
22761 * expr.c (count_type_elements): Give for unions instead of
22762 guessing.
22763
22764 2008-02-04 Richard Guenther <rguenther@suse.de>
22765
22766 PR middle-end/35043
22767 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
22768 to TYPE_DOMAINs base type instead of using bitsizetype here.
22769
22770 2008-02-03 Jason Merrill <jason@redhat.com>
22771
22772 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
22773
22774 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22775
22776 PR other/29972
22777 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
22778 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
22779 (RS/6000 and PowerPC Options): Fix typos and markup.
22780 * doc/passes.texi (Tree-SSA passes): Likewise.
22781
22782 2008-02-02 Michael Matz <matz@suse.de>
22783
22784 PR target/35045
22785 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
22786 from record_last_reg_set_info.
22787 (record_last_reg_set_info): Take an RTX argument, iterate over all
22788 constituent hardregs.
22789 (record_last_set_info, record_opr_changes): Change calls to
22790 new signature or to record_last_reg_set_info_regno.
22791
22792 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
22793
22794 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
22795
22796 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
22797
22798 PR rtl-optimization/34773
22799 * reg-notes.def (EQUAL): Mention significance of combination of
22800 REG_EQUAL and REG_RETVAL.
22801 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
22802 insn that has a REG_RETVAL.
22803
22804 2008-02-01 Roger Sayle <roger@eyesopen.com>
22805
22806 PR bootstrap/33781
22807 * configure.ac (--enable-fixed-point): Disable unless explicitly
22808 requested on IRIX.
22809 * configure: Regenerate.
22810
22811 2008-02-01 Richard Guenther <rguenther@suse.de>
22812
22813 PR other/35042
22814 * invoke.texi (-finline-limit): Remove no longer true parts
22815 of the documentation. Note that there is no default value.
22816
22817 2008-02-01 Andrew Pinski <pinskia@gmail.com>
22818 Mark Mitchell <mark@codesourcery.com>
22819 Ben Elliston <bje@au.ibm.com>
22820
22821 PR c/29326
22822 * doc/extend.texi (Other Builtins): Document.
22823
22824 2008-01-31 Tom Browder <tom.browder@gmail.com>
22825
22826 * doc/c-tree.texi (Types): Fix grammar.
22827 (Expression trees): Ditto.
22828 * doc/passes.texi (Tree-SSA passes): Ditto.
22829
22830 * doc/configterms.texi (Configure Terms): Fix typo.
22831 * doc/cpp.texi (Common Predefined Macros): Ditto.
22832 * doc/md.texi (Machine Constraints): Ditto.
22833
22834 * doc/makefile.texi (Makefile): Add comma.
22835
22836 2008-01-31 Tom Browder <tom.browder@gmail.com>
22837 Gerald Pfeifer <gerald@pfeifer.com>
22838
22839 * doc/sourcebuild.texi (Front End): Remove references to CVS
22840 and CVSROOT/modules.
22841 (Texinfo Manuals): Replace reference to CVS by one to SVN.
22842 (Back End): Remove reference to CVS.
22843
22844 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
22845
22846 PR target/34900
22847 * config/mips/mips.c (gen_load_const_gp): New function, taking a
22848 comment from...
22849 (mips16_gp_pseudo_reg): ...here.
22850 * config/mips/mips.md (load_const_gp): Replace with...
22851 (load_const_gp_<mode>): ...this :P-based insn.
22852
22853 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22854
22855 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
22856 options. Minor fixes.
22857 (-std): Move reference to standards closer to where language
22858 standards are first mentioned.
22859
22860 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
22861
22862 PR rtl-optimization/34995
22863 * reload.c (alternative_allows_const_pool_ref): Take an rtx
22864 parameter and return a bool. If the rtx parameter is nonnull,
22865 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
22866 (find_reloads): Update call accordingly. Pass the new operand
22867 if it needed no address reloads, otherwise pass null.
22868
22869 2008-01-30 Richard Henderson <rth@redhat.com>
22870
22871 PR c/34993
22872 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
22873 for unbounded arrays.
22874
22875 2008-01-30 Silvius Rus <rus@google.com>
22876
22877 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
22878
22879 2008-01-30 Jan Hubicka <jh@suse.cz>
22880
22881 PR target/34982
22882 * i386.c (init_cumulative_args): Use real function declaration when
22883 calling locally.
22884
22885 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
22886
22887 PR rtl-optimization/34998
22888 * global.c (build_insn_chain): Treat non-subreg_lowpart
22889 SUBREGs of pseudos as clobbering all the words covered by the
22890 SUBREG, not just all the bytes.
22891 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
22892 original df_ref rather than an extract parameter.
22893 (global_conflicts): Update call accordingly.
22894
22895 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
22896
22897 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
22898 the overflow check to make it easier to read.
22899 (__fixtfdi): Change the type of the ll member in union
22900 long_double to UDItype_x.
22901
22902 2008-01-30 Jakub Jelinek <jakub@redhat.com>
22903
22904 PR middle-end/34969
22905 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
22906 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
22907 * tree-inline.c (fold_marked_statements): Call
22908 cgraph_update_edges_for_call_stmt if folding a call statement.
22909 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
22910 debug_generic_stmt calls, reset it back afterwards.
22911
22912 PR c/35017
22913 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
22914 static decls.
22915 * c-typeck.c (build_external_ref): Don't pedwarn about
22916 static vars in current function's scope.
22917
22918 2008-01-29 Joseph Myers <joseph@codesourcery.com>
22919
22920 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
22921
22922 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
22923
22924 PR c/35002
22925 * ipa-struct-reorg.c: Fix spelling.
22926 * params.def: Ditto.
22927
22928 2008-01-29 Richard Guenther <rguenther@suse.de>
22929
22930 PR middle-end/35006
22931 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
22932 field.
22933 * tree-inline.c (remap_type): Increment remapping_type_depth
22934 around remapping types.
22935 (copy_body_r): Only add referenced variables if they are referenced
22936 from code, not types.
22937
22938 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
22939
22940 PR c++/34055
22941 PR c++/34103
22942 PR c++/34219
22943 PR c++/34606
22944 PR c++/34753
22945 PR c++/34754
22946 PR c++/34755
22947 PR c++/34919
22948 PR c++/34961
22949 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
22950 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
22951
22952 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
22953
22954 PR target/34412
22955 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
22956 pointer for tiny stack.
22957
22958 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
22959
22960 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
22961
22962 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
22963
22964 * config/vx-common.h: Fix typo in comment.
22965
22966 2008-01-28 Ian Lance Taylor <iant@google.com>
22967
22968 PR c++/34862
22969 PR c++/33407
22970 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
22971 coalesce pointers if they have different DECL_NO_TBAA_P values.
22972 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
22973 between variables with different DECL_NO_TBAA_P values.
22974
22975 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
22976
22977 PR 31535
22978 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
22979 are not legitimate small data references on SPE targets.
22980
22981 2008-01-28 David Daney <ddaney@avtrex.com>
22982
22983 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
22984
22985 2008-01-28 David Daney <ddaney@avtrex.com>
22986
22987 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
22988
22989 2008-01-27 Joseph Myers <joseph@codesourcery.com>
22990
22991 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
22992 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
22993 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
22994 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
22995 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
22996 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
22997 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
22998 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
22999
23000 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
23001
23002 * basic-block.h (condjump_equiv_p): Fix comment.
23003
23004 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
23005
23006 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
23007 print_generic_stmt_indented): Fix comment.
23008
23009 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
23010
23011 * configure.ac (__stack_chk_fail): Add detecion for availability
23012 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
23013 * configure: Regenerate.
23014
23015 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
23016
23017 PR middle-end/34688
23018 * final.c (output_addr_const): Handle TRUNCATE.
23019
23020 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
23021
23022 PR target/34711
23023 * tree-ssa-loop-ivopts.c (comp_cost): New type.
23024 (zero_cost, infinite_cost): New constants.
23025 (struct cost_pair): Change type of cost to comp_cost.
23026 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
23027 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
23028 New functions.
23029 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
23030 split_address_cost, ptr_difference_cost, difference_cost,
23031 get_computation_cost_at, get_computation_cost,
23032 determine_use_iv_cost_generic, determine_use_iv_cost_address,
23033 determine_use_iv_cost_condition, determine_use_iv_costs,
23034 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
23035 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
23036 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
23037 Change type of cost to comp_cost.
23038 (determine_iv_cost): Increase cost of non-original ivs, instead
23039 of decreasing the cost of original ones.
23040 (get_address_cost): Indicate the complexity of the addressing mode
23041 in comp_cost.
23042 (try_add_cand_for): Prefer using ivs not specific to some object.
23043 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
23044
23045 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
23046 Janis Johnson <janis187@us.ibm.com>
23047
23048 PR target/34814
23049 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
23050 (TARGET_INSTANTIATE_DECLS): Likewise.
23051 * target.h (expand_to_rtl_hook): New target hook.
23052 (instantiate_decls): Likewise.
23053 * function.c (instantiate_decl): Make non-static. Rename to...
23054 (instantiate_decl_rtl): ... this.
23055 (instantiate_expr): Use instantiate_decl_rtl.
23056 (instantiate_decls_1): Likewise.
23057 (instantiate_decls): Likewise.
23058 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
23059 * function.h (instantiate_decl_rtl): Add prototype.
23060 * cfgexpand.c (target.h): New include.
23061 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
23062 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
23063 (TARGET_INSTANTIATE_DECLS): Likewise.
23064 (TARGET_INITIALIZER): New target hooks added.
23065 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
23066 New prototype.
23067 * config/rs6000/rs6000.c (tree-flow.h): New include.
23068 (machine_function): Add sdmode_stack_slot field.
23069 (rs6000_alloc_sdmode_stack_slot): New function.
23070 (rs6000_instantiate_decls): Likewise.
23071 (rs6000_secondary_memory_needed_rtx): Likewise.
23072 (rs6000_check_sdmode): Likewise.
23073 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
23074 (TARGET_INSTANTIATE_DECLS): Likewise.
23075 (rs6000_hard_regno_mode_ok): Allow SDmode.
23076 (num_insns_constant): Likewise. Handle _Decimal32 constants.
23077 (rs6000_emit_move): Handle SDmode.
23078 (function_arg_advance): Likewise.
23079 (function_arg): Likewise.
23080 (rs6000_gimplify_va_arg): Likewise. Add special handling of
23081 SDmode var args for 32-bit compiles.
23082 (rs6000_secondary_reload_class): Handle SDmode.
23083 (rs6000_output_function_epilogue): Likewise.
23084 (rs6000_function_value): Simplify if statement.
23085 (rs6000_libcall_value): Likewise.
23086 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
23087 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
23088 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
23089 (movsd_hardfloat): New define_insn.
23090 (movsd_softfloat): Likewise.
23091 (movsd_store): Likewise.
23092 (movsd_load): Likewise.
23093 (extendsddd2): Likewise.
23094 (extendsdtd2): Likewise.
23095 (truncddsd2): Likewise.
23096 (movdd_hardfloat64): Fixup comment.
23097 (UNSPEC_MOVSD_LOAD): New constant.
23098 (UNSPEC_MOVSD_STORE): Likewise.
23099
23100 2008-01-26 Jakub Jelinek <jakub@redhat.com>
23101
23102 PR c++/34965
23103 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
23104 TRUTH_XOR_EXPR.
23105 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
23106 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
23107 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
23108 and TRUTH_XOR_EXPR.
23109
23110 2008-01-26 David Edelsohn <edelsohn@gnu.org>
23111
23112 PR target/34794
23113 * config.gcc: Separate AIX 5.3 from AIX 6.1.
23114 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
23115 __LONGDOUBLE128 too.
23116 * config/rs6000/aix61.h: New file.
23117
23118 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
23119
23120 PR rtl-optimization/34959
23121 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
23122 popcount and parity rtxes the same mode as their operand.
23123 Truncate or extend the result to the return value's mode
23124 if necessary.
23125
23126 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
23127
23128 PR target/34981
23129 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
23130 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
23131 to GOT_VERSION_REGNUM.
23132 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
23133 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
23134 * config/mips/mips.c (mips_emit_call_insn): New function.
23135 (mips_call_tls_get_addr): Call mips_expand_call directly.
23136 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
23137 emit_call_insn.
23138 (mips16_build_call_stub): Likewise. Return the call insn or null.
23139 (mips_expand_call): Update the call to mips16_build_call_stub
23140 accordingly and a remove redundant condition. Assert that MIPS16
23141 stubs do not use lazy binding. Use mips_emit_call_insn and return
23142 the call insn.
23143 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
23144 TARGET_USE_GOT.
23145 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
23146 (mips_avoid_hazard): Remove hazard_set handling.
23147 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
23148 (UNSPEC_RESTORE_GP): ...this.
23149 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
23150 (FAKE_CALL_REGNO): Rename to...
23151 (GOT_VERSION_REGNUM): ...this.
23152 (type): Add "ghost" value. Add an associated insn reservation.
23153 (hazard_set): Remove.
23154 (exception_receiver): Rename to...
23155 (restore_gp): ...this and update the unspec identifier accordingly.
23156 (exception_receiver, nonlocal_got_receiver): New expanders.
23157 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
23158 FAKE_CALL_REGNO. Remove hazard_set attribute.
23159 (set_got_version, update_got_version): New patterns.
23160
23161 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
23162
23163 PR target/34970
23164 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
23165
23166 2008-01-25 Joseph Myers <joseph@codesourcery.com>
23167
23168 PR other/31955
23169 * doc/install.texi2html: Generate gcc-vers.texi.
23170
23171 2008-01-25 DJ Delorie <dj@redhat.com>
23172
23173 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
23174
23175 2008-01-25 Joseph Myers <joseph@codesourcery.com>
23176
23177 * config/c4x: Remove directory.
23178 * config.gcc (crx-*, mt-*): Mark obsolete.
23179 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
23180 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
23181 sh-*-rtemscoff*): Remove cases.
23182 * defaults.h (C4X_FLOAT_FORMAT): Remove.
23183 * real.c (encode_c4x_single, decode_c4x_single,
23184 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
23185 c4x_extended_format): Remove.
23186 * real.h (c4x_single_format, c4x_extended_format): Remove.
23187 * doc/extend.texi (interrupt, naked): Remove mention of attributes
23188 on C4x.
23189 (Pragmas): Remove comment about c4x pragmas.
23190 * doc/install.texi (c4x): Remove target-specific instructions.
23191 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
23192 * doc/md.texi (Machine Constraints): Remove C4x documentation.
23193 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
23194 refer to C4x source files as examples.
23195 (C4X_FLOAT_FORMAT): Remove documentation.
23196
23197 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
23198
23199 * config/bfin/bfin.c (override_options): Reorder tests so that
23200 flag_pic gets enabled for -msep-data.
23201
23202 2008-01-25 Richard Guenther <rguenther@suse.de>
23203
23204 PR middle-end/32244
23205 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
23206 to its bitfield precision if required.
23207
23208 2008-01-25 Jakub Jelinek <jakub@redhat.com>
23209
23210 PR middle-end/33880
23211 * tree-nested.c (walk_omp_for): New function.
23212 (convert_nonlocal_reference, convert_local_reference): Call
23213 walk_omp_for on OMP_FOR.
23214 (convert_call_expr): Call walk_body on OMP_FOR's
23215 OMP_FOR_PRE_INIT_BODY.
23216
23217 2008-01-25 Richard Guenther <rguenther@suse.de>
23218
23219 PR tree-optimization/34966
23220 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
23221 default defs and PHI_NODEs we have to insert after the
23222 defining statement.
23223
23224 2008-01-24 Nick Clifton <nickc@redhat.com>
23225
23226 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
23227 Provide a default definition.
23228 (LIBGCC2_UNITS_PER_WORD): Likewise.
23229
23230 * config/stormy16/stormy16.c: Include df.h for the prototype
23231 for df_regs_ever_live_p.
23232 (xstormy16_expand_builtin_va_start): Convert the stack offset
23233 into a component_ref and then use POINTER_PLUS_EXPR to add it
23234 to the incoming_virtual_args_rtx.
23235 (xstormy16_gimplify_va_arg_expr): Rename to
23236 xstormy16_gimplify_va_arg_expr.
23237 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
23238 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
23239 xstormy16_gimplify_va_arg_expr.
23240 Fix up some formatting issues.
23241
23242 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
23243 Move to predicates.md.
23244 (xs_hi_general_operand): Likewise.
23245 (xs_hi_nonmemory_operand): Likewise.
23246 * config/stormy16/predicates.md:
23247 (xstormy16_carry_plus_operand): New predicate.
23248 (xs_hi_general_operand): New predicate.
23249 (xs_hi_nonmemory_operand): New predicate.
23250 * config/stormy16/stormy16-protos.h:
23251 (xstormy16_carry_plus_operand): Delete prototype.
23252 (xs_hi_general_operand): Likewise.
23253 (xs_hi_nonmemory_operand): Likewise.
23254
23255 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
23256 modifiers as they are no longer needed and they can trigger
23257 reload spill failures.
23258
23259 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
23260 with a match_operand in order to help reload.
23261
23262 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
23263 constraint with 'e' for the 8th alternative as this version of
23264 the mov.w instruction only accepts the lower 8 registers.
23265
23266 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
23267
23268 PR target/34856
23269 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
23270 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
23271 vector elements.
23272
23273 2008-01-25 Jakub Jelinek <jakub@redhat.com>
23274
23275 PR middle-end/33333
23276 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
23277
23278 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
23279
23280 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
23281 New functions.
23282 (remove_structure): Update allocations list before removing structure.
23283
23284 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
23285
23286 * ipa-struct-reorg.c (is_safe_cond_expr,
23287 create_new_stmts_for_cond_expr): Use integer_zerop function,
23288 that recognize not only zero-pointer, but zero-integer too.
23289
23290 2008-01-25 Ben Elliston <bje@au.ibm.com>
23291
23292 PR other/22232
23293 * fixproto: Escape "." in sed expression that strips leading "./".
23294
23295 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
23296
23297 PR driver/34904
23298 * gcc.c (SWITCH_OK): Removed.
23299 (SWITCH_LIVE): Changed to bit.
23300 (SWITCH_FALSE): Likewise.
23301 (SWITCH_IGNORE): Likewise.
23302 (switchstr): Change live_cond to unsigned int.
23303 (process_command): Replace SWITCH_OK with 0.
23304 (do_self_spec): Likewise.
23305 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
23306 (give_switch): Likewise.
23307 (used_arg): Likewise.
23308 (do_spec_1): Set the SWITCH_IGNORE bit.
23309 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
23310 bits. Set the SWITCH_LIVE bit.
23311
23312 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
23313
23314 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
23315
23316 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
23317
23318 PR tree-optimization/34472
23319 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
23320 parameter to a "bool *" and set *DATA to false if there is
23321 an unsafe access. Do not delete the structure here.
23322 (check_cond_exprs): Delete it here instead.
23323 (check_cond_exprs, exclude_cold_structs): Do not increase
23324 I when removing a structure.
23325
23326 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
23327
23328 PR target/34856
23329 * config/i386/i386.c (ix86_expand_vector_init): Consider only
23330 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
23331
23332 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
23333
23334 PR middle-end/34934
23335 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
23336 a fixed vector for stack.
23337
23338 2008-01-24 Ben Elliston <bje@au.ibm.com>
23339
23340 PR c++/25701
23341 * doc/gcc.texi (Software development): Add a direntry for g++.
23342
23343 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
23344
23345 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
23346 stale and straggling -fforce-addr comments above.
23347
23348 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
23349 define.
23350 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
23351 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
23352
23353 2008-01-23 Michael Matz <matz@suse.de>
23354
23355 PR debug/34895
23356 * dwarf2out.c (force_type_die): Use modified_type_die instead of
23357 gen_type_die.
23358
23359 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
23360
23361 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
23362 malloc result type.
23363
23364 2008-01-23 Anatoly Sokolov <aesok@post.ru>
23365
23366 * config/avr/avr.c (avr_current_arch): New variable.
23367 (avr_arch_types): Add 'avr31' and 'avr51' entries.
23368 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
23369 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
23370 (avr_override_options): Init 'avr_current_arch'.
23371 (base_arch_s): Move from here...
23372 * config/avr/avr.h (base_arch_s): ... here. Add new members
23373 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
23374 'mega' to 'have_jmp_call'.
23375 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
23376 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
23377 macros.
23378 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
23379 architectures.
23380 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
23381 MULTILIB_MATCHES): Ditto.
23382
23383 2008-01-23 Richard Guenther <rguenther@suse.de>
23384
23385 PR middle-end/31529
23386 * cgraphunit.c (cgraph_reset_node): Always mark the node
23387 not reachable if it is not queued already.
23388
23389 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
23390
23391 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
23392 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
23393 (cputype_selected): New static variable.
23394 (bfin_handle_option): Set it if -mcpu is used.
23395 (override_option): Select default set of workarounds if no cpu type
23396 selected on the command line.
23397 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
23398
23399 From Michael Frysinger <michael.frysinger@analog.com>
23400 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
23401 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
23402
23403 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
23404 for bf547, bf523, bf524, and bf526.
23405 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
23406 bf526.
23407 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
23408 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
23409 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
23410 __ADSPBF547__ and __ADSPBF54x__ for bf547.
23411 * doc/invoke.texi (Blackfin Options): Document that
23412 -mcpu now accept bf547, bf523, bf524, and bf526.
23413
23414 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
23415
23416 PR rtl-optimization/34628
23417 * combine.c (try_combine): Stop and undo after the first combination
23418 if an autoincrement side-effect on the first insn has effectively
23419 been lost.
23420
23421 2008-01-22 David Edelsohn <edelsohn@gnu.org>
23422
23423 PR target/34529
23424 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
23425 Offset addresses are not valid for Altivec or paired float modes.
23426
23427 2008-01-22 Jakub Jelinek <jakub@redhat.com>
23428
23429 PR c++/34607
23430 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
23431 if DECL_INITIAL (decl) is error_mark_node.
23432
23433 PR c++/34914
23434 * c-common.c (handle_vector_size_attribute): Only allow
23435 integral, scalar float and fixed point types. Handle OFFSET_TYPE
23436 the same way as pointer, array etc. types.
23437 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
23438
23439 PR c++/34917
23440 * tree.c (build_type_attribute_qual_variant): Call
23441 build_qualified_type if attributes are equal, but quals are not.
23442
23443 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
23444
23445 PR 32102
23446 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
23447 * flags.h (warn_strict_aliasing): Remove.
23448 (warn_strict_overflow): Remove.
23449 * opts.c (warn_strict_aliasing): Remove.
23450 (warn_strict_overflow): Remove.
23451 * c-opts.c (c_common_handle_option): -Wall only sets
23452 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
23453 (c_common_post_options): Give default values to -Wstrict-aliasing
23454 and -Wstrict-overflow if they are uninitialized.
23455 * common.opt (Wstrict-aliasing): Specify Var and Init.
23456 (Wstrict-overflow): Likewise.
23457
23458 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
23459
23460 PR rtl-optimization/26854
23461 PR rtl-optimization/34400
23462 PR rtl-optimization/34884
23463 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
23464 DF_RD->gen.
23465 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
23466 (df_rd_bb_info.expanded_lr_out): Deleted
23467 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
23468 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
23469 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
23470 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
23471 Removed code to allocate, initialize or free expanded_lr_out.
23472 (df_rd_bb_local_compute_process_def): Restructured to make more
23473 understandable.
23474 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
23475 sets if the sets are being trimmed.
23476
23477 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
23478
23479 PR bootstrap/32287
23480 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
23481 (as_vers): Likewise.
23482 * configure: Regenerated.
23483
23484 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
23485
23486 PR middle-end/33092
23487 * tree-pass.h (pass_build_alias): New pass.
23488 * tree-ssa-alias.c (gate_build_alias): New.
23489 (pass_build_alias): New.
23490 * passes.c (init_optimization_passes): Add pass_build_alias after
23491 pass_create_structure_vars.
23492
23493 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
23494
23495 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
23496 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
23497 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
23498 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
23499 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
23500 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
23501 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
23502 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
23503 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
23504 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
23505 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
23506 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
23507 * config/s390/s390.md (FP_ALL): New mode iterator.
23508 (_d): New mode attribute.
23509 ("*signbit<mode>2>"): Changed mode of first operand.
23510 ("isinf<mode>2"): Changed mode of first operand.
23511 ("*TDC_insn"): Adaptation for DFP modes.
23512
23513 2008-01-22 Ben Elliston <bje@au.ibm.com>
23514
23515 * tree.c (check_qualified_type): Improve function description.
23516
23517 2008-01-21 Jason Merrill <jason@redhat.com>
23518
23519 PR c++/34196
23520 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
23521 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
23522 if it is set.
23523
23524 2008-01-21 DJ Delorie <dj@redhat.com>
23525
23526 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
23527 return zero.
23528
23529 2008-01-21 Richard Guenther <rguenther@suse.de>
23530
23531 PR middle-end/34856
23532 * tree-cfg.c (verify_expr): Allow all invariant expressions
23533 instead of just constant class ones as reference argument.
23534 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
23535 like any other constant.
23536 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
23537
23538 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
23539
23540 * regmove.c (fixup_match_1): Update call crossed frequencies.
23541
23542 2008-01-21 Richard Guenther <rguenther@suse.de>
23543
23544 PR c/34885
23545 * tree-inline.c (setup_one_parameter): Deal with mismatched
23546 types using a VIEW_CONVERT_EXPR.
23547
23548 2008-01-21 Alon Dayan <alond@il.ibm.com>
23549 Olga Golovanevsky <olga@il.ibm.com>
23550
23551 PR tree-optimization/34701
23552 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
23553 when the structure size is not a power of 2.
23554
23555 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
23556
23557 * doc/install.texi: Add doc for --enable-checking=df.
23558
23559 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
23560
23561 PR rtl-optimization/34808
23562 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
23563
23564 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
23565
23566 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
23567 input.
23568
23569 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
23570
23571 PR rtl-optimization/26854
23572 PR rtl-optimization/34400
23573 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
23574 DF_RD->gen.
23575 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
23576 (df_rd_bb_info.expanded_lr_out): New.
23577 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
23578 * loop_iv.c (iv_analysis_loop_init): Ditto.
23579 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
23580 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
23581 Added code to allocate, initialize or free expanded_lr_out.
23582 (df_rd_bb_local_compute_process_def): Restructured to make
23583 more understandable.
23584 (df_rd_confluence_n): Add code to do nothing with fake edges and
23585 code to no apply invalidate_by_call sets if the sets are being trimmed.
23586 (df_lr_local_finalize): Renamed to df_lr_finalize.
23587 (df_live_local_finalize): Renamed to df_live_finalize.
23588
23589 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
23590
23591 PR target/34831
23592 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
23593 deciding whether to use reciprocal instructions.
23594
23595 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
23596
23597 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
23598 dwarf2out_note_section_used if cold_text_section is NULL.
23599
23600 2008-01-19 Jakub Jelinek <jakub@redhat.com>
23601
23602 PR gcov-profile/34610
23603 * tree-cfg.c (make_edges): Mark both outgoing edges from
23604 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
23605 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
23606 from OMP_FOR and OMP_CONTINUE outgoing edges.
23607
23608 * tree-profile.c (tree_profiling): Return early if
23609 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
23610 at the end.
23611 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
23612 from cfun to child_cfun.
23613 * function.h (struct function): Add after_tree_profile bit.
23614
23615 2008-01-19 Anatoly Sokolov <aesok@post.ru>
23616
23617 * config/avr/avr.S (_exit): Disable interrupt.
23618
23619 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
23620 Steven Bosscher <stevenb.gcc@gmail.com>
23621
23622 PR rtl-optimization/26854
23623 PR rtl-optimization/34400
23624 * df-problems.c (df_live_scratch): New scratch bitmap.
23625 (df_live_alloc): Allocate df_live_scratch when doing df_live.
23626 (df_live_reset): Clear the proper bitmaps.
23627 (df_live_bb_local_compute): Only process the artificial defs once
23628 since the order is not important.
23629 (df_live_init): Init the df_live sets only with the variables
23630 found live by df_lr.
23631 (df_live_transfer_function): Use the df_lr sets to prune the
23632 df_live sets as they are being computed.
23633 (df_live_free): Free df_live_scratch.
23634
23635 2008-01-18 Ian Lance Taylor <iant@google.com>
23636
23637 * common.opt: Add fmerge-debug-strings.
23638 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
23639 flag_merge_debug_strings rather than flag_merge_constants.
23640 * doc/invoke.texi (Option Summary): Mention
23641 -fmerge-debug-strings.
23642 (Debugging Options): Document -fmerge-debug-strings.
23643
23644 2008-01-18 Ian Lance Taylor <iant@google.com>
23645
23646 PR c++/33407
23647 * tree.h (DECL_IS_OPERATOR_NEW): Define.
23648 (struct tree_function_decl): Add new field operator_new_flag.
23649 * tree-inline.c (expand_call_inline): When inlining a call to
23650 operator new, force the return value to go into a variable, and
23651 set DECL_NO_TBAA_P on that variable.
23652 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
23653
23654 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
23655
23656 PR debug/34484
23657 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
23658 DWARF2_DEBUGGING_INFO.
23659 (dwarf2out_note_section_used): Ditto. Add prototype.
23660 (have_multiple_function_sections, text_section_used,
23661 cold_text_section_used, *cold_text_sections): Move declarations
23662 before their uses.
23663
23664 2008-01-17 Bob Wilson <bob.wilson@acm.org>
23665
23666 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
23667 field and add signal_ra.
23668 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
23669 assignments to frame state pc. Move end of stack check after
23670 MD_FALLBACK_FRAME_STATE_FOR.
23671 (uw_update_context_1): Use frame state signal_regs if set, instead
23672 of checking signal_frame flag.
23673 (uw_update_context): Use frame state signal_ra if set.
23674 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
23675 * config/xtensa/linux-unwind.h: New file.
23676
23677 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
23678
23679 * modulo-sched.c (get_sched_window): Fix comment typo.
23680
23681 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
23682
23683 PR tree-optimization/34648
23684 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
23685
23686 2008-01-17 Anatoly Sokolov <aesok@post.ru>
23687
23688 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
23689 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
23690
23691 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
23692
23693 PR rtl-optimization/34400
23694 * df-core.c (df_worklist_dataflow_overeager,
23695 df_worklist_dataflow_doublequeue): New functions.
23696 (df_worklist_dataflow): Two different worklist solvers.
23697 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
23698 New param.
23699
23700 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
23701
23702 PR testsuite/34821
23703 * doc/invoke.texi: Document the dependence on pthread for fopenmp
23704 and ftree-parallelize-loops.
23705
23706 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
23707
23708 PR rtl-optimization/34826
23709 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
23710
23711 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
23712
23713 * global.c (find_reg): Mark the eh regs as used if necessary.
23714 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
23715 * ra.h (struct allocno): no_eh_reg field added. Changed
23716 no_stack_reg type to bitfield.
23717
23718 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
23719
23720 * tree.c (substitute_in_expr): Add missing 'break'.
23721
23722 2008-01-17 Richard Guenther <rguenther@suse.de>
23723
23724 PR tree-optimization/34825
23725 * tree-ssa-math-opts.c (is_division_by): Do not recognize
23726 x / x as division to handle.
23727
23728 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23729
23730 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
23731 "-pthread" is specified.
23732 * pa-hpux11.h (LIB_SPEC): Likewise.
23733
23734 2008-01-16 Janis Johnson <janis187@us.ibm.com>
23735 Peter Bergner <bergner@vnet.ibm.com>
23736
23737 PR rtl-optimization/33796
23738 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
23739
23740 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23741
23742 PR libgfortran/34699
23743 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
23744 static links.
23745 * pa-hpux10.h (LINK_SPEC): Likewise.
23746 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
23747
23748 2008-01-16 Richard Guenther <rguenther@suse.de>
23749
23750 PR middle-end/32628
23751 * fold-const.c (fold_convert_const_int_from_int): Do not
23752 set overflow if that occured only because of a sign extension
23753 change when converting from/to a sizetype with the same
23754 precision and signedness.
23755
23756 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
23757
23758 PR debug/34249
23759 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
23760 location address to the correct place. Update copyright year.
23761
23762 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
23763
23764 * lambda-code.c (lambda_transform_legal_p): Handle the case of
23765 no dependences in the dependence_relations vector.
23766
23767 2008-01-16 Jan Hubicka <jh@suse.cz>
23768
23769 PR rtl-optimization/31396
23770 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
23771 * cfg.c (dump_reg_info): Print it.
23772 * regs.h (struct reg_info_t): add freq_calls_crossed.
23773 (REG_FREQ_CALLS_CROSSED): New macro.
23774 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
23775 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
23776 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
23777 regmove_optimize): Update call crossed frequencies.
23778 * local-alloc.c (struct qty): Add freq_calls_crossed.
23779 (alloc_qty): Copute freq_calls_crossed.
23780 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
23781 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
23782 * ra.h (struct allocno): Add freq_calls_crossed.
23783
23784 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
23785
23786 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
23787 libgomp when compiling with ftree-parallelize-loops.
23788 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
23789
23790 2008-01-16 Richard Guenther <rguenther@suse.de>
23791
23792 PR tree-optimization/34769
23793 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
23794 * tree.c (int_cst_value): Instead make this function more
23795 permissive in what it accepts as valid input. Document this
23796 function always sign-extends the value.
23797
23798 2008-01-16 Jakub Jelinek <jakub@redhat.com>
23799 Richard Guenther <rguenther@suse.de>
23800
23801 PR c/34668
23802 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
23803 (gimple_fold_indirect_ref_rhs): ... this.
23804 (gimple_fold_indirect_ref): New function with foldings
23805 that preserve lvalueness.
23806 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
23807 * tree-flow.h (gimple_fold_indirect_ref): Declare.
23808 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
23809 to fold an INDIRECT_REF, fall back to the old use of
23810 fold_indirect_ref_1.
23811
23812 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
23813
23814 * tree-data-ref.c (subscript_dependence_tester_1): Call
23815 free_conflict_function.
23816 (compute_self_dependence): Same.
23817
23818 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
23819
23820 PR debug/34249
23821 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
23822 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
23823 function global.
23824 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
23825 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
23826 for DWARF2_UNWIND_INFO targets.
23827
23828 2008-01-16 Richard Guenther <rguenther@suse.de>
23829
23830 PR c/34768
23831 * c-typeck.c (common_pointer_type): Do not merge inconsistent
23832 type qualifiers for function types.
23833
23834 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
23835
23836 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
23837 loop_iterator li from previous commit.
23838
23839 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
23840
23841 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
23842
23843 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
23844
23845 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
23846 (parallelize_loops): Don't parallelize irreducible components.
23847
23848 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
23849
23850 PR c++/24924
23851 * c-opts (c_common_post_options): Do not enable CPP
23852 flag_pedantic_errors by default.
23853
23854 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
23855
23856 PR rtl-optimization/31944
23857 * cse.c (remove_pseudo_from_table): New function.
23858 (merge_equiv_classes): Use above function to remove pseudo-registers.
23859 (invalidate): Likewise.
23860
23861 2008-01-13 Richard Guenther <rguenther@suse.de>
23862
23863 PR middle-end/34601
23864 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
23865 instead of TYPE_MODE to deal with calls from expand_one_error_var.
23866
23867 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
23868
23869 * gcse.c (cprop_jump): Call validate_unshare_change instead of
23870 validate_change to unshare the source of the PC set.
23871
23872 2008-01-12 Jan Hubicka <jh@suse.cz>
23873
23874 PR middle-end/32135
23875 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
23876 references above array bounds. This might trigger bounds checks for
23877 pointers to arrays.
23878
23879 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
23880
23881 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
23882 new_replaceable_dependencies.
23883
23884 2008-01-12 Doug Kwan <dougkwan@google.com>
23885
23886 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
23887 instead of OPT_Wreturn_type in warning due to ignored return type
23888 qualifiers.
23889 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
23890 options included in -Wextra.
23891 * c.opt: New option -Wignored_qualifiers.
23892 * doc/invoke.texi (Warning Options, -Wextra): Add new option
23893 -Wignore_qualifiers.
23894 (-Wignored-qualifiers): Document.
23895 (-Wreturn-type): Remove description of functionality now handled
23896 by -Wignored-qualifiers.
23897
23898 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
23899
23900 PR ada/33788
23901 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
23902 NOP_EXPR if it is between integral types with the same precision.
23903
23904 2008-01-12 Jan Hubicka <jh@suse.cz>
23905
23906 PR other/28023
23907 * invoke.texi (max-inline-recursive-depth): Fix default value.
23908
23909 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
23910
23911 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
23912 correct type.
23913
23914 2008-01-11 Bob Wilson <bob.wilson@acm.org>
23915
23916 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
23917
23918 2008-01-11 James E. Wilson <wilson@specifix.com>
23919
23920 PR target/26015
23921 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
23922
23923 2008-01-11 Anatoly Sokolov <aesok@post.ru>
23924
23925 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
23926 save/restore frame pointer register and don't use 'call-prologues'
23927 optimization in function with "OS_task" attribute.
23928
23929 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
23930
23931 PR middle-end/31309
23932 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
23933 when copying to memory.
23934
23935 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
23936
23937 PR rtl-optimization/30905
23938 * cfgcleanup.c: Include dce.h
23939 (crossjumps_occured): New global variable.
23940 (try_crossjump_bb): Exit loop after finding a fallthru edge.
23941 If something changed, set crossjumps_occured to true.
23942 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
23943 Don't add/remove fake edges to exit here...
23944 (cleanup_cfg): ...but do it here, when crossjumping.
23945 Run a fast DCE when successful crossjumps occured in the latest
23946 iteration of try_optimize_cfg.
23947
23948 2008-01-11 Richard Guenther <rguenther@suse.de>
23949
23950 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
23951 (struct vn_unary_op_s): Likewise.
23952 (vn_reference_insert): Free old reference on hash collision.
23953
23954 2008-01-10 Raksit Ashok <raksit@google.com>
23955
23956 PR rtl-optimization/27971
23957 * combine.c (find_split_point): Split PLUS expressions which are
23958 inside a MEM rtx, and whose first operand is complex.
23959
23960 2008-01-10 DJ Delorie <dj@redhat.com>
23961
23962 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
23963 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
23964 (m32c_hard_regno_ok): Call the underlying function.
23965
23966 2008-01-10 Richard Guenther <rguenther@suse.de>
23967
23968 PR middle-end/34683
23969 * tree-cfg.c (tree_merge_blocks): Do not go through the
23970 full-blown folding and stmt updating path if we just deal
23971 with virtual operands.
23972 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
23973 test for abnormal SSA_NAMEs.
23974
23975 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
23976
23977 PR middle-end/34641
23978 * reload.c (push_reload): Add assertions. All constants from
23979 reg_equiv_constant should have been used for replacing the respective
23980 pseudo earlier.
23981 (find_reloads_address): Invoke find_reloads_address_part for
23982 constant taken from the reg_equiv_constant array.
23983
23984 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
23985
23986 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
23987 field (valnum) the first in the struct. Replace bools with
23988 unit bit fields.
23989
23990 2008-01-10 Richard Guenther <rguenther@suse.de>
23991
23992 PR tree-optimization/34651
23993 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
23994 types and ordering for masking and converting.
23995
23996 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
23997
23998 PR tree-optimization/34017
23999 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
24000 also for PHI_NODE expressions.
24001
24002 2008-01-09 Jan Hubicka <jh@suse.cz>
24003
24004 PR tree-optimization/34708
24005 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
24006 based on number of case labels.
24007 (init_inline_once): Remove switch_cost.
24008 * tree-inline.h (eni_weights_d): Remove switch_cost.
24009
24010 2008-01-09 Richard Guenther <rguenther@suse.de>
24011 Andrew Pinski <andrew_pinski@playstation.sony.com>
24012
24013 PR middle-end/30132
24014 * gimplify.c (gimplify_cond_expr): Do not create an addressable
24015 temporary if an rvalue is ok or an lvalue is not required.
24016
24017 2008-01-09 Richard Guenther <rguenther@suse.de>
24018
24019 PR middle-end/34458
24020 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
24021 adjust return type.
24022
24023 2008-01-09 Richard Guenther <rguenther@suse.de>
24024
24025 PR middle-end/34679
24026 * tree.c (host_integerp): Check for sizetype only if the
24027 type is an integer type.
24028
24029 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
24030
24031 PR debug/26364
24032 * opts.c (decode_options): Disable inlining of functions called
24033 once if not in unit-at-a-time mode.
24034
24035 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
24036
24037 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
24038
24039 2008-01-08 Richard Guenther <rguenther@suse.de>
24040
24041 PR middle-end/31863
24042 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
24043 out early if the result will be unused.
24044
24045 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
24046
24047 PR target/34709
24048 Revert:
24049
24050 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
24051 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
24052 for TARGET_RECIP.
24053
24054 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
24055
24056 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
24057 for vectorization tuned.
24058
24059 2008-01-08 Richard Guenther <rguenther@suse.de>
24060
24061 PR tree-optimization/34683
24062 * tree-ssa-operands.c (operand_build_cmp): Export.
24063 * tree-ssa-operands.h (operand_build_cmp): Declare.
24064 * tree-vn.c (vuses_compare): Remove.
24065 (sort_vuses): Use operand_build_cmp.
24066 (sort_vuses_heap): Likewise.
24067 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
24068 to re-use old VEC if available. Do not sort already sorted VUSEs.
24069 (vdefs_to_vec): Do not sort already sorted VDEFs.
24070
24071 2008-01-08 Jakub Jelinek <jakub@redhat.com>
24072
24073 PR middle-end/34694
24074 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
24075
24076 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
24077
24078 PR target/34702
24079 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
24080 limitations of reciprocal sequences on x86 targets.
24081
24082 2008-01-08 Richard Guenther <rguenther@suse.de>
24083
24084 PR tree-optimization/34683
24085 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
24086
24087 2008-01-07 Jakub Jelinek <jakub@redhat.com>
24088
24089 PR target/34622
24090 * config/darwin.c (darwin_mergeable_string_section): Don't use
24091 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
24092
24093 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
24094
24095 PR target/34682
24096 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
24097 negxf2. Macroize expander using X87MODEF mode iterator. Change
24098 predicates of op0 and op1 to register_operand.
24099 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
24100 expander using X87MODEF mode iterator. Change predicates of
24101 op0 and op1 to register_operand.
24102 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
24103 corresponding patterns and macroize using MODEF macro. Change
24104 predicates of op0 and op1 to register_operand and remove
24105 "m" constraint. Disparage "r" alternative with "!".
24106 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
24107 macroize using X87MODEF macro. Change predicates of op0 and op1
24108 to register_operand and remove "m" constraint. Disparage "r"
24109 alternative with "!".
24110 (absneg splitter with memory operands): Remove.
24111 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
24112 patterns and macroize using X87MODEF mode iterator.
24113 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
24114 Change predicate of op1 to register_operand.
24115 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
24116 for memory operands.
24117
24118 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
24119
24120 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
24121
24122 2008-01-07 Richard Guenther <rguenther@suse.de>
24123
24124 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
24125 fields.
24126
24127 2008-01-07 Richard Guenther <rguenther@suse.de>
24128
24129 PR tree-optimization/34683
24130 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
24131 VOPs of the needed size to save memory. Use VEC_quick_push
24132 to save compile-time.
24133 (vdefs_to_vec): Likewise.
24134
24135 2008-01-07 Sa Liu <saliu@de.ibm.com>
24136
24137 * config/spu/spu.md (divdf3): Genetate inline code for double
24138 division. The implementation doesn't handle INF or NAN, therefore it
24139 only applies when -ffinite-math-only is given.
24140
24141 2008-01-06 Paolo Carlini <pcarlini@suse.de>
24142
24143 PR libstdc++/34680
24144 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
24145 * doc/cpp.texi ([Common Predefined Macros]): Document.
24146
24147 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
24148
24149 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
24150 order to use commutative addition instead of subtraction.
24151
24152 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
24153 Mircea Namolaru <namolaru@il.ibm.com>
24154 Vladimir Yanovsky <yanov@il.ibm.com>
24155 Revital Eres <eres@il.ibm.com>
24156
24157 PR tree-optimization/34263
24158 * tree-outof-ssa.c (process_single_block_loop_latch,
24159 contains_tree_r): New functions.
24160 (analyze_edges_for_bb): Call process_single_block_loop_latch
24161 function to empty single-basic-block latch block if possible.
24162
24163 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
24164
24165 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
24166 for TARGET_RECIP.
24167 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
24168
24169 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
24170
24171 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
24172
24173 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
24174
24175 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
24176
24177 2008-01-05 Jakub Jelinek <jakub@redhat.com>
24178
24179 PR tree-optimization/34618
24180 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
24181 flag from T.
24182
24183 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
24184
24185 PR target/34673
24186 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
24187 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
24188 Update copyright year.
24189
24190 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
24191 Update copyright year.
24192 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
24193 using NR fixup.
24194
24195 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
24196
24197 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
24198 edge does not point to current bb before changing need_assert.
24199
24200 2008-01-04 Richard Guenther <rguenther@suse.de>
24201
24202 PR middle-end/34029
24203 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
24204 for verifying purposes if they are is_gimple_min_invariant.
24205
24206 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
24207
24208 PR tree-optimization/34448
24209 PR tree-optimization/34465
24210 * gimplify.c (gimplify_init_constructor): Add new parameter
24211 notify_temp_creation. Use it.
24212 (gimplify_modify_expr_rhs): Take volatiles into account when
24213 optimizing constructors.
24214 Do not optimize constructors if gimplify_init_constructor will dump to
24215 memory.
24216 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
24217 * gcc.c-torture/compile/pr34448.c: New.
24218
24219 2008-01-04 Jakub Jelinek <jakub@redhat.com>
24220
24221 PR gcov-profile/34609
24222 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
24223 return_slot if result is TREE_ADDRESSABLE.
24224
24225 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
24226
24227 * config/mips/mips.md (sqrt_condition): Tweak comment.
24228 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
24229
24230 2008-01-03 Tom Tromey <tromey@redhat.com>
24231
24232 PR c/34457
24233 * c-common.c (c_type_hash): Handle VLAs.
24234
24235 2008-01-03 Jan Hubicka <jh@suse.cz>
24236
24237 PR tree-optimization/31081
24238 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
24239 0 when inlining and not inlining to first basic block.
24240 (remap_decl): When var is initialized to 0, don't set default_def.
24241 (expand_call_inline): Set entry_bb.
24242 * tree-inline.h (copy_body_data): Add entry_bb.
24243
24244 2008-01-03 Jakub Jelinek <jakub@redhat.com>
24245
24246 PR c++/34619
24247 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
24248 before returning.
24249
24250 PR tree-optimization/29484
24251 * tree-inline.c (inline_forbidden_p_2): New function.
24252 (inline_forbidden_p): Disallow inlining if some static var
24253 has an address of a local LABEL_DECL in its initializer.
24254 * doc/extend.texi (Labels as Values): Document &&foo behaviour
24255 vs. inlining.
24256
24257 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
24258
24259 PR tree-optimization/34635
24260 * tree-data-ref.c (add_other_self_distances): Make sure that the
24261 evolution step is constant.
24262
24263 2008-01-03 Jakub Jelinek <jakub@redhat.com>
24264
24265 PR middle-end/34608
24266 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
24267
24268 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
24269
24270 * tree-sra.c (scalarize_init): Insert the generate_element_init
24271 statements after the generate_element_zero statements.
24272
24273 2008-01-02 Richard Guenther <rguenther@suse.de>
24274
24275 PR middle-end/34093
24276 PR middle-end/31976
24277 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
24278 for very large number of operands instead of ICEing.
24279
24280 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
24281
24282 PR target/34013
24283 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
24284 while stack probing.
24285
24286 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
24287
24288 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
24289 in C++0x mode.
24290
24291 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
24292
24293 PR libmudflap/26442
24294 * tree-mudflap.c (mx_register_decls): Guard warning by
24295 !DECL_ARTIFICIAL check.
24296
24297 2008-01-01 Jakub Jelinek <jakub@redhat.com>
24298
24299 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
24300 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
24301 sse5_perm<mode>): Fix constraints.