rs6000.c (USE_FP_FOR_ARG_P): Revert TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
[gcc.git] / gcc / ChangeLog
1 2008-10-02 David Edelsohn <edelsohn@gnu.org>
2
3 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Revert
4 TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
5 (function_arg_advance): Condition on TARGET_DOUBLE_FLOAT,
6 TARGET_SINGLE_FLOAT.
7 Revert SCALAR_FLOAT_MODE_P condition.
8 (function_arg): Condition on TARGET_DOUBLE_FLOAT,
9 TARGET_SINGLE_FLOAT.
10 (rs6000_function_value): Revert TARGET_DOUBLE_FLOAT,
11 TARGET_SINGLE_FLOAT.
12
13 2008-10-02 Daniel Jacobowitz <dan@codesourcery.com>
14
15 * builtins.c (fold_builtin_pow): Check for 0 ** NEGATIVE.
16
17 2008-10-02 Richard Guenther <rguenther@suse.de>
18
19 PR middle-end/37713
20 * tree-ssa.c (useless_type_conversion_p_1): For COMPLEX_TYPE
21 and VECTOR_TYPE recurse with useless_type_conversion_p which
22 properly handles void pointer conversion.
23
24 2008-10-02 Danny Smith <dannysmith@users.sourceforge.net>
25
26 PR target/37528
27 * config/i386/mingw32.h (LIBGCC_SPEC) : Replace with ..
28 (REAL_LIBGCC_SPEC): New. Always include -lgcc.
29
30 2008-10-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
31
32 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
33 Handle ALTIVEC_BUILTIN_VEC_SPLATS, ALTIVEC_BUILTIN_VEC_PROMOTE,
34 ALTIVEC_BUILTIN_VEC_EXTRACT, and ALTIVEC_BUILTIN_VEC_INSERT specially,
35 they translate to non builtins.
36 * config/rs6000/rs6000.c (altivec_init_builtins): Add new variable
37 opaque_ftype_opaque. Define builtins __builtin_vec_splats,
38 __builtin_vec_promote, __builtin_vec_extract, and
39 __builtin_vec_insert.
40 * config/rs6000/rs6000.h (enum rs6000_builtins): Add
41 ALTIVEC_BUILTIN_VEC_EXTRACT, ALTIVEC_BUILTIN_VEC_PROMOTE,
42 ALTIVEC_BUILTIN_VEC_INSERT, and ALTIVEC_BUILTIN_VEC_SPLATS.
43 * config/rs6000/altivec.h (vec_extract): Define
44 (vec_insert): Define.
45 (vec_splats): Define.
46 (vec_promote): Define.
47
48 2008-10-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
49 Yukishige Shibata <shibata@rd.scei.sony.co.jp>
50 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
51
52 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add Cell
53 Altivec intrinsics.
54 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Delete
55 prototype. Add new parameter, blk.
56 Use BLKmode for the MEM if blk is true.
57 (altivec_expand_builtin): Handle ALTIVEC_BUILTIN_STVLX,
58 ALTIVEC_BUILTIN_STVLXL, ALTIVEC_BUILTIN_STVRX, and
59 ALTIVEC_BUILTIN_STVRXL.
60 Update usage of altivec_expand_lv_builtin.
61 Handle ALTIVEC_BUILTIN_LVLX, ALTIVEC_BUILTIN_LVLXL,
62 ALTIVEC_BUILTIN_LVRX, and ALTIVEC_BUILTIN_LVRXL.
63 (altivec_init_builtins): If compiling for the Cell, also define the
64 cell VMX builtins.
65 * config/rs6000/rs6000.h (rs6000_builtins): Define
66 ALTIVEC_BUILTIN_LVLX, ALTIVEC_BUILTIN_LVLXL, ALTIVEC_BUILTIN_LVRX,
67 ALTIVEC_BUILTIN_LVRXL, ALTIVEC_BUILTIN_STVLX, ALTIVEC_BUILTIN_STVLXL,
68 ALTIVEC_BUILTIN_STVRX, ALTIVEC_BUILTIN_STVRXL,
69 ALTIVEC_BUILTIN_VEC_LVLX, ALTIVEC_BUILTIN_VEC_LVLXL,
70 ALTIVEC_BUILTIN_VEC_LVRX, ALTIVEC_BUILTIN_VEC_LVRXL,
71 ALTIVEC_BUILTIN_VEC_STVLX, ALTIVEC_BUILTIN_VEC_STVLXL,
72 ALTIVEC_BUILTIN_VEC_STVRX, and ALTIVEC_BUILTIN_VEC_STVRXL.
73 * config/rs6000/altivec.md (define_constants): Define UNSPEC_LVLX,
74 UNSPEC_LVLXL, UNSPEC_LVRX, UNSPEC_LVRXL, UNSPEC_STVLX, UNSPEC_STVLXL,
75 UNSPEC_STVRX, and UNSPEC_STVRXL.
76 (altivec_lvlx): New pattern.
77 (altivec_lvlxl): New pattern.
78 (altivec_lvrx): New pattern.
79 (altivec_lvrxl): New pattern.
80 (altivec_stvlx): New pattern.
81 (altivec_stvlxl): New pattern.
82 (altivec_stvrx): New pattern.
83 (altivec_stvrxl): New pattern.
84 * config/rs6000/altivec.h (vec_lvlx): Define if PPU is defined.
85 (vec_lvlxl): Likewise.
86 (vec_lvrx): Define if PPU is defined.
87 (vec_lvrxl): Likewise.
88 (vec_stvlx): Define if PPU is defined.
89 (vec_stvlxl): Likewise.
90 (vec_stvrx): Define if PPU is defined.
91 (vec_stvrxl): Likewise.
92
93 2008-10-01 Geert Bosch <bosch@adacore.com>
94
95 * tree.c (contains_placeholder_p): Return 0 for a SAVE_EXPR.
96
97 2008-10-01 Richard Guenther <rguenther@suse.de>
98
99 PR tree-optimization/37617
100 * tree-ssa-pre.c (create_expression_by_pieces): During FRE
101 do not add to the NEW_SETS.
102
103 2008-10-01 Richard Guenther <rguenther@suse.de>
104
105 PR middle-end/37285
106 * tree-vrp.c (execute_vrp): If we optimized away the default
107 case make sure to promote the label that got in place of it
108 to a default case label.
109
110 2008-10-01 Richard Henderson <rth@redhat.com>
111
112 PR tree-opt/35737
113 * tree-complex.c (set_component_ssa_name): Don't optimize
114 is_gimple_min_invariant values with ssa_names in abnormal phis.
115
116 2008-09-30 Paolo Bonzini <bonzini@gnu.org>
117
118 PR tree-optimization/37662
119 * tree-ssa-ccp.c (fold_gimple_assign): Invert the operands of a
120 commutative binary operation if they are in the wrong order and
121 fold_build2 produces non-GIMPLE.
122
123 2008-09-30 Jakub Jelinek <jakub@redhat.com>
124
125 PR tree-optimization/37662
126 PR tree-optimization/37663
127 * tree-vrp.c (simplify_truth_ops_using_ranges): Don't call
128 get_value_range with non-SSA_NAME. Don't assert operands have been
129 folded, instead just bail out.
130
131 2008-09-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
132
133 * config/rs6000/rs6000.md (fnmadds combiner): Revert typo.
134
135 2008-09-30 Richard Guenther <rguenther@suse.de>
136
137 PR middle-end/37491
138 * tree-vect-transform.c (vect_create_data_ref_ptr): Properly
139 build restrict-qualified pointers.
140 (vectorizable_store): Move alias check later.
141 (vectorizable_load): Likewise.
142
143 2008-09-30 Paolo Bonzini <bonzini@gnu.org>
144
145 * c-common.c (empty_if_body_warning): Remove.
146 * c-common.h (empty_if_body_warning): Remove.
147 * c-parser.c (c_parser_if_body, c_parser_else_body): Implement
148 here the -Wempty-body warning for `if' and `else' statements.
149 * c-typeck.c (c_finish_if_stmt): Do not call empty_body_warning.
150
151 2008-09-29 H.J. Lu <hongjiu.lu@intel.com>
152
153 * config/i386/i386.opt: Add msse2avx.
154
155 * config/i386/linux.h (ASM_SPEC): New. Support -msse2avx.
156 * config/i386/linux64.h (ASM_SPEC): Likewise.
157
158 * doc/invoke.texi: Document -msse2avx.
159
160 2008-09-29 Eric Botcazou <ebotcazou@adacore.com>
161
162 * dwarf2out.c (constant_size): Use HOST_WIDE_INT in parameter type.
163
164 2008-09-29 Joseph Myers <joseph@codesourcery.com>
165
166 * ifcvt.c (noce_emit_store_flag): If using condition from original
167 jump, reverse it if if_info->cond was reversed.
168
169 2008-09-29 Eric Botcazou <ebotcazou@adacore.com>
170
171 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
172 non-constant memory if it cannot be forced to constant memory.
173 Overhaul surrounding code and factor out common condition.
174
175 2008-09-29 Jeff Law <law@redhat.com>
176
177 * reload1.c (alter_reg): Add missing curly braces.
178
179 2008-09-29 Michael J. Eager <eager@eagercon.com>
180
181 * config/rs6000/predicates.md (easy_fp_constant): Single FP consts
182 are easy.
183 * config/rs6000/rs6000.c (rs6000_override_options): Move
184 rs6000_init_hard_regno_mode_ok after all options changed.
185 Set rs6000_single_float, rs6000_double_float if TARGET_HARD_FLOAT.
186 (rs6000_handle_option): Process -msingle-float, -mdouble-float,
187 -msimple-fpu flags. Add warning messages if single FP not configured.
188 (rs6000_file_start): Output gnu_attribute for single-float.
189 (legitimate_lo_sum_address_p): Condition on TARGET_DOUBLE_FLOAT.
190 (rs6000_legitimize_address): Likewise.
191 (rs6000_legitimize_reload_address): Likewise.
192 (rs6000_emit_move): Condition on TARGET_DOUBLE_FLOAT,
193 TARGET_SINGLE_FLOAT.
194 (function_arg_advance): Likewise (partial conversion).
195 (setup_incoming_varargs): Condition on TARGET_DOUBLE_FLOAT.
196 (rs6000_gimplify_va_arg): Condition on TARGET_DOUBLE_FLOAT,
197 TARGET_SINGLE_FLOAT.
198 (rs6000_split_multireg_move): Condition on TARGET_DOUBLE_FLOAT.
199 (rs6000_emit_prologue): Likewise.
200 (rs6000_function_value): Condition on TARGET_DOUBLE_FLOAT,
201 TARGET_SINGLE_FLOAT.
202 (rs6000_libcall_value): Likewise.
203 * config/rs6000/rs6000.h (TARGET_SINGLE_FLOAT): New default to 1.
204 (TARGET_DOUBLE_FLOAT): New default to 1
205 (TARGET_SIMPLE_FPU): New default to 0
206 (TARGET_SINGLE_FPU): New default to 0
207 (TARGET_SINGLE_FLOAT_MODE): New.
208 (TARGET_DOUBLE_FLOAT_MODE): New.
209 * config/rs6000/singlefp.h: New; redefine TARGET_SINGLE_FLOAT,
210 TARGET_DOUBLE_FLOAT, TARGET_SIMPLE_FPU, TARGET_SINGLE_FPU,
211 UNITS_PER_FP_WORD
212 * config/rs6000/rs6000.md (define_mode_iterator): Condition on
213 TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
214 (extendsfdf2, extendsfdf2_fpr, truncdfsf2, truncdfsf2_fpr,
215 copysigndf3,fseldfsf4, negdf2, negdf2_fpr, absdf2, absdf2_fpr,
216 nabsdf2_fpr, adddf3, adddf3_fpr, subdf3, subdf3_fpr, muldf3,
217 muldf3_fpr, divdf3, divdf3_fpr, sqrtdf2, smaxdf3, smindf3,
218 movdfcc, *fseldfdf4, floatsidf2, *floatsidf2_internal,
219 floatunssidf2, *floatunssidf2_internal, fix_truncdfsi2,
220 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
221 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2,
222 rounddf2, floatdidf2, floatsidf_ppc64_mfpgpr, floatsidf_ppc64,
223 floatunssidf_ppc64, fix_truncdfdi2, movdf_hardfloat32,
224 movdf_hardfloat64_mfpgpr, movdf_hardfloat64, extenddftf2_fprs,
225 extenddftf2_internal, trunctfdf2_internal2, fix_trunc_helper,
226 abstf2_internal, movdf_update1, movdf_update2, cmpdf_internal1,
227 cmptf_internal1, *cmptf_internal2): Condition on
228 TARGET_DOUBLE_FLOAT.
229 (aux_truncdfsf2, negsf2, *negsf2, abssf2, *abssf2, addsf3, subsf3,
230 mulsf3, divsf3, sqrtsf2, copysignsf3, smaxsf3, sminsf3, movsfcc,
231 *fselsfsf4, fixuns_truncsfsi2, fix_truncsfsi2, floatunssisf2,
232 btruncsf2, ceilsf2, floorsf2, roundsf2, floatdisf2_internal1,
233 floatdisf2_internal2, *movsf_hardfloat, trunctfsf2_fprs,
234 *movsf_update1, *movsf_update2, *cmpsf_internal1): Condition on
235 TARGET_SINGLE_FLOAT.
236 (divsf3, sqrtsf2, divdf3, divdf3_fpr): Condition on TARGET_SIMPLE_FPU.
237 * config/rs6000/rs6000.opt (-msingle-float): New.
238 (-mdouble-float): New.
239 (-msimple-fpu): New.
240 * doc/invoke.texi (RS/6000 and PowerPC Options): Add
241 -msingle-float, -mdouble-float, -msimple-fpu options.
242 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Set
243 _SOFT_DOUBLE for -msingle-float.
244 * config.gcc: New config for target=powerpc-xilinx-eabi.
245
246 2008-09-29 Tobias Grosser <grosser@fim.uni-passau.de>
247
248 * graphite.c (dot_all_scops_1): Remove unused checks. SCoPs always
249 have exit and entry.
250 (new_scop): Take entry and exit edge to define new SCoP.
251 (sd_region_p): New structure used during SCoP detection.
252 (move_scops): Delete.
253 (move_sd_regions): New.
254 (scopdet_info): Change the definition from edges back to basic_blocks.
255 (scopdet_edge_info): Work on basic_blocks and rename to
256 scopdet_basic_block_info.
257 (split_difficult_bb): At the moment removed. We should later
258 add it at another place.
259 (build_scops_1): Work on basic_blocks.
260 (bb_in_sd_region): New.
261 (find_single_entry_edge): New.
262 (find_single_exit_edge): New.
263 (create_single_entry_edge): New.
264 (sd_region_without_exit): New.
265 (create_single_exit_edge): New.
266 (unmark_exit_edges): New.
267 (mark_exit_edges): New.
268 (create_sese_edges): New.
269 (build_graphite_scops): New.
270 (build_scops): Make SCoPs SESE.
271 (limit_scops): Use the new functions.
272
273 2008-09-29 Hans-Peter Nilsson <hp@axis.com>
274
275 * config/cris/cris.h (IRA_COVER_CLASSES): Define.
276
277 2008-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
278
279 PR target/37640
280 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Force
281 address to a register before taking the lower part.
282
283 2008-09-28 Kaz Kojima <kkojima@gcc.gnu.org>
284
285 * config/sh/sh.h (OVERRIDE_OPTIONS): Unset flag_dwarf2_cfi_asm
286 for SHmedia.
287
288 2008-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
289 Kaushal Kantawala <kaushal_kantawala@playstation.sony.com>
290
291 PR tree-opt/36891
292 * tree-ssa-loop-im.c (rewrite_reciprocal): Set DECL_GIMPLE_REG_P on
293 the newly created variable.
294 Create a VECTOR_CST of all 1s for vector types.
295
296 2008-09-28 Eric Botcazou <ebotcazou@adacore.com>
297
298 PR middle-end/36575
299 * fold-const.c (div_and_round_double) <ROUND_DIV_EXPR>: Fix typo.
300
301 2008-09-28 Eric Botcazou <ebotcazou@adacore.com>
302
303 * expmed.c (store_fixed_bit_field): Always use convert_to_mode in
304 order to convert between modes.
305 (extract_bit_field_1): Test TRULY_NOOP_TRUNCATION on the right mode.
306
307 2008-09-27 Kaz Kojima <kkojima@gcc.gnu.org>
308
309 * config/sh/sh.c (sh_gimplify_va_arg_expr): Use VIEW_CONVERT_EXPR
310 if needed.
311
312 2008-09-26 Vladimir Makarov <vmakarov@redhat.com>
313
314 Revert:
315 2008-09-25 Vladimir Makarov <vmakarov@redhat.com>
316 * ira-lives.c:...
317 * doc/rtl.texi:...
318
319 2008-09-26 Adam Nemet <anemet@caviumnetworks.com>
320
321 * config/mips/mips.h (ISA_HAS_DMUL3, ISA_HAS_BADDU, ISA_HAS_BBIT,
322 ISA_HAS_CINS, ISA_HAS_EXTS, ISA_HAS_SEQ_SNE, ISA_HAS_POP): Change
323 them to yield false with MIPS16.
324
325 2008-09-26 Jakub Jelinek <jakub@redhat.com>
326
327 PR middle-end/37275
328 * dwarf2out.c (tls_mem_loc_descriptor): New function.
329 (mem_loc_descriptor): Use it for MEM. For PLUS fail if second
330 mem_loc_descriptor failed. Accept UNSPEC.
331 (loc_descriptor): Use tls_mem_loc_descriptor for MEM. For PARALLEL
332 fail if one of the loc_descriptor calls for pieces failed.
333 (loc_descriptor_from_tree_1): Handle even DECL_EXTERNAL __thread vars,
334 as long as they bind locally. For COMPONENT_REF, ARRAY_REF etc. fail
335 if loc_descriptor_from_tree_1 on offset failed.
336
337 PR middle-end/37576
338 * opts.c (common_handle_option): Don't call print_specific_help with
339 CL_SAVE as first argument.
340
341 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
342 Steve Ellcey <sje@cup.hp.com>
343
344 * configure: Regenerate for new libtool.
345 * aclocal.m4: Ditto.
346
347 2008-09-26 Pat Haugen <pthaugen@us.ibm.com>
348
349 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Use correct
350 alias set on MEM when saving stack pointer.
351 * config/rs6000/rs6000.md (allocate_stack): Likewise
352
353 2008-09-26 Dorit Nuzman <dorit@il.ibm.com>
354
355 PR tree-optimization/37574
356 * tree-vectorizer.c (vect_is_simple_use): Fix indentation.
357 * tree-vect-transform.c (vect_get_constant_vectors): Use vectype
358 instead of vector_type for constants. Take computation out of loop.
359 (vect_get_vec_def_for_operand): Use only vectype for constant case,
360 and use only vector_type for invariant case.
361 (get_initial_def_for_reduction): Use vectype instead of vector_type.
362
363 2008-09-25 Jakub Jelinek <jakub@redhat.com>
364
365 PR c/37645
366 * c-common.c (handle_weakref_attribute): Ignore the attribute unless
367 the decl is a VAR_DECL or FUNCTION_DECL.
368
369 2008-09-25 Vladimir Makarov <vmakarov@redhat.com>
370
371 PR middle-end/37535
372 * ira-lives.c (mark_reg_live, mark_reg_dead): New functions.
373 (mark_ref_live, mark_ref_dead): Use them.
374 (def_conflicts_with_inputs_p): Remove.
375 (mark_early_clobbers): New function.
376 (process_bb_node_lives): Call preprocess_constraints and
377 mark_early_clobbers.
378
379 * doc/rtl.texi (clobber): Change how RA deals with clobbers.
380
381 2008-09-25 Vladimir Makarov <vmakarov@redhat.com>
382
383 PR middle-end/37448
384 * ira-int.h (IRA_ALLOCNO_TEMP): Rename to ALLOCNO_TEMP.
385 (ira_compress_allocno_live_ranges): New prototype.
386
387 * ira-color.c: Rename IRA_ALLOCNO_TEMP to ALLOCNO_TEMP.
388 (coalesced_allocnos_living_at_program_points): New.
389 (coalesced_allocnos_live_at_points_p,
390 set_coalesced_allocnos_live_points): New functions.
391 (coalesce_spill_slots): Rewrite.
392
393 * ira-lives.c (remove_some_program_points_and_update_live_ranges,
394 ira_compress_allocno_live_ranges): New functions.
395
396 * ira-build.c (ira_flattening): Call
397 ira_compress_allocno_live_ranges.
398 (ira_build): Ditto.
399
400 2008-09-25 H.J. Lu <hongjiu.lu@intel.com>
401
402 * config/i386/i386.md: Check cmp/branch fuse for cmp peephole
403 optimization.
404
405 2008-09-25 Richard Sandiford <rdsandiford@googlemail.com>
406
407 * combine.c (make_compound_operation): Handle the 'E' format.
408 (count_rtxs): Likewise.
409 (update_table_tick): Likewise.
410 (get_last_value_validate): Likewise.
411
412 2008-09-25 Eric Botcazou <ebotcazou@adacore.com>
413
414 * dbxout.c (dbxout_parms): Fetch the inner REG inside a PARALLEL.
415
416 2008-09-25 Sergei Dyshel <sergeid@il.ibm.com>
417
418 * matrix-reorg.c (transform_allocation_sites): Initializers
419 added to avoid the warning.
420
421 2008-09-25 Martin Jambor <mjambor@suse.cz>
422
423 * cgraph.c (free_nodes): New variable.
424 (NEXT_FREE_NODE): New macro.
425 (cgraph_create_node): Reuse nodes from the free list. Do not
426 update uid if doing so.
427 (cgraph_remove_node): Add the node to the free list.
428
429 2008-09-25 Gerald Pfeifer <gerald@pfeifer.com>
430
431 * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
432
433 2008-09-24 Richard Henderson <rth@redhat.com>
434
435 * dwarf2.h (DW_OP_GNU_encoded_addr): New.
436 * unwind-dw2.c (execute_stack_op): Handle it.
437
438 2008-09-24 David Edelsohn <edelsohn@gnu.org>
439
440 Revert:
441 2008-09-24 Michael J. Eager <eager@eagercon.com>
442
443 2008-09-24 Aldy Hernandez <aldyh@redhat.com>
444
445 * c-common.c (fname_decl): New location argument.
446 * c-common.h (fname_decl): Same.
447 * c-parser.c (c_lex_one_token): Use {warning,error}_at instead of
448 {warning,error}.
449 (c_parser_typeof_specifier): Same.
450 (c_parser_parms_list_declarator): Same.
451 (c_parser_asm_string_literal): Same.
452 (c_parser_compound_statement_nostart): Same.
453 (c_parser_label): Same.
454 (c_parser_do_statement): Same.
455 (c_parser_asm_statement): Same.
456 (c_parser_unary_expression): Same.
457 (c_parser_sizeof_expression): Same.
458 (c_parser_postfix_expression): Same.
459 (c_parser_pragma): Same.
460 (c_parser_omp_clause_collapse): Same.
461 (c_parser_omp_clause_num_threads): Same.
462 (c_parser_omp_clause_schedule): Same.
463 (c_parser_omp_all_clauses): Same.
464 (c_parser_omp_sections_scope): Same.
465 (c_parser_omp_for_loop): Same. Pass condition's location to
466 c_objc_common_truthvalue_conversion.
467 (c_parser_enum_specifier): Remove comment.
468
469 2008-09-24 Michael J. Eager <eager@eagercon.com>
470
471 * config/rs6000/predicates.md (easy_fp_constant): Single FP consts
472 are easy.
473 * config/rs6000/rs6000.c (rs6000_override_options): Move
474 rs6000_init_hard_regno_mode_ok after all options changed.
475 Set rs6000_single_float, rs6000_double_float if TARGET_HARD_FLOAT.
476 (rs6000_handle_option): Process -msingle-float, -mdouble-float,
477 -msimple-fpu flags. Add warning messages if single FP not configured.
478 (rs6000_file_start): Output gnu_attribute for single-float.
479 (legitimate_lo_sum_address_p): Condition on TARGET_DOUBLE_FLOAT.
480 (rs6000_legitimize_address): Likewise.
481 (rs6000_legitimize_reload_address): Likewise.
482 (rs6000_emit_move): Condition on TARGET_DOUBLE_FLOAT,
483 TARGET_SINGLE_FLOAT.
484 (function_arg_advance): Likewise.
485 (function_arg): Likewise.
486 (setup_incoming_varargs): Condition on TARGET_DOUBLE_FLOAT.
487 (rs6000_gimplify_va_arg): Condition on TARGET_DOUBLE_FLOAT,
488 TARGET_SINGLE_FLOAT.
489 (rs6000_split_multireg_move): Condition on TARGET_DOUBLE_FLOAT.
490 (rs6000_emit_prologue): Likewise.
491 (rs6000_function_value): Condition on TARGET_DOUBLE_FLOAT,
492 TARGET_SINGLE_FLOAT.
493 (rs6000_libcall_value): Likewise.
494 * config/rs6000/rs6000.h (TARGET_SINGLE_FLOAT): New default to 1.
495 (TARGET_DOUBLE_FLOAT): New default to 1
496 (TARGET_SIMPLE_FPU): New default to 0
497 (TARGET_SINGLE_FPU): New default to 0
498 (TARGET_SINGLE_FLOAT_MODE): New.
499 (TARGET_DOUBLE_FLOAT_MODE): New.
500 * config/rs6000/singlefp.h: New; redefine TARGET_SINGLE_FLOAT,
501 TARGET_DOUBLE_FLOAT, TARGET_SIMPLE_FPU, TARGET_SINGLE_FPU,
502 UNITS_PER_FP_WORD
503 * config/rs6000/rs6000.md (define_mode_iterator): Condition on
504 TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
505 (extendsfdf2, extendsfdf2_fpr, truncdfsf2, truncdfsf2_fpr,
506 copysigndf3,fseldfsf4, negdf2, negdf2_fpr, absdf2, absdf2_fpr,
507 nabsdf2_fpr, adddf3, adddf3_fpr, subdf3, subdf3_fpr, muldf3,
508 muldf3_fpr, divdf3, divdf3_fpr, sqrtdf2, smaxdf3, smindf3,
509 movdfcc, *fseldfdf4, floatsidf2, *floatsidf2_internal,
510 floatunssidf2, *floatunssidf2_internal, fix_truncdfsi2,
511 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
512 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2,
513 rounddf2, floatdidf2, floatsidf_ppc64_mfpgpr, floatsidf_ppc64,
514 floatunssidf_ppc64, fix_truncdfdi2, movdf_hardfloat32,
515 movdf_hardfloat64_mfpgpr, movdf_hardfloat64, extenddftf2_fprs,
516 extenddftf2_internal, trunctfdf2_internal2, fix_trunc_helper,
517 abstf2_internal, movdf_update1, movdf_update2, cmpdf_internal1,
518 cmptf_internal1, *cmptf_internal2): Condition on
519 TARGET_DOUBLE_FLOAT.
520 (aux_truncdfsf2, negsf2, *negsf2, abssf2, *abssf2, addsf3, subsf3,
521 mulsf3, divsf3, sqrtsf2, copysignsf3, smaxsf3, sminsf3, movsfcc,
522 *fselsfsf4, fixuns_truncsfsi2, fix_truncsfsi2, floatunssisf2,
523 btruncsf2, ceilsf2, floorsf2, roundsf2, floatdisf2_internal1,
524 floatdisf2_internal2, *movsf_hardfloat, trunctfsf2_fprs,
525 *movsf_update1, *movsf_update2, *cmpsf_internal1): Condition on
526 TARGET_SINGLE_FLOAT.
527 (divsf3, sqrtsf2, divdf3, divdf3_fpr): Condition on TARGET_SIMPLE_FPU.
528 * config/rs6000/rs6000.opt (-msingle-float): New.
529 (-mdouble-float): New.
530 (-msimple-fpu): New.
531 * doc/invoke.texi (RS/6000 and PowerPC Options): Add
532 -msingle-float, -mdouble-float, -msimple-fpu options.
533 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Set
534 _SOFT_DOUBLE for -msingle-float.
535 * config.gcc: New config for target=powerpc-xilinx-eabi.
536
537 2008-09-23 Eric Botcazou <ebotcazou@adacore.com>
538
539 * config/sparc/constraints.md: New file.
540 * config/sparc/sparc.md: Include it.
541 * config/sparc/sparc-protos.h (memory_ok_for_ldd): Declare.
542 (sparc_extra_constraint_check): Delete.
543 * config/sparc/sparc.c (register_ok_for_ldd): Minor tweaks.
544 (memory_ok_for_ldd): New predicate.
545 (sparc_extra_constraint_check): Delete.
546 * config/sparc/sparc.h (REG_CLASS_FROM_LETTER): Likewise.
547 (CONST_OK_FOR_LETTER_P): Likewise.
548 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
549 (EXTRA_CONSTRAINT): Likewise.
550
551 2008-08-23 Steve Ellcey <sje@cup.hp.com>
552
553 * regrename.c (do_replace): Copy REG_POINTER value to new reg.
554
555 2008-09-23 Richard Sandiford <rdsandiford@googlemail.com>
556
557 * alias.c (find_base_value): Use FIND_BASE_TERM.
558 * doc/tm.texi (FIND_BASE_TERM): Update documentation.
559
560 2008-09-23 Richard Sandiford <rdsandiford@googlemail.com>
561
562 * config/i386/i386.c: Include cselib.h.
563 (ix86_pic_register_p): New function.
564 (ix86_delegitimize_address): Use it to check for the PIC register.
565
566 2008-09-23 Richard Sandiford <rdsandiford@googlemail.com>
567
568 * doc/tm.texi (FIND_BASE_TERM): Expand documentation.
569 * config/i386/i386.c (ix86_find_base_term): Don't check for
570 SYMBOL_REF and LABEL_REF.
571
572 2008-09-23 Richard Sandiford <rdsandiford@googlemail.com>
573
574 * config/i386/i386.c (ix86_delegitimize_address): Wrap the
575 constant PLUS in a CONST.
576
577 2008-09-23 Kai Tietz <kai.tietz@onevision.com>
578
579 * config/i386/i386.c (ix86_function_ok_for_sibcall): Correct
580 check for sibcall support for w64.
581
582 2008-09-23 Eric Botcazou <ebotcazou@adacore.com>
583
584 * c-ppoutput.c (cb_used_define): Do nothing for a builtin node.
585
586 2008-09-23 Aldy Hernandez <aldyh@redhat.com>
587
588 * c-tree.h: Add argument to c_objc_common_truthvalue_conversion,
589 parser_build_binary_op.
590 * c-decl.c (build_enumerator): Pass location to build_binary_op.
591 * c-typeck.c (build_array_ref): Same.
592 (parser_build_unary_op): New location argument.
593 (pointer_diff): Pass location to build_binary_op,
594 c_objc_common_truthvalue_conversion.
595 (build_modify_expr): Same.
596 (build_unary_op): New location argument.
597 (build_binary_op): New location argument.
598 (c_objc_common_truthvalue_conversion): Pass location to
599 c_*common_truthvalue_conversion.
600 * c-convert.c (convert): Same.
601 * c-common.c (binary_op_error): New location argument.
602 (pointer_int_sum): Pass location to build_binary_op.
603 (c_common_truthvalue_conversion): New location argument.
604 (warn_for_sign_compare): Same.
605 * c-common.h: Add location argument to c_common_truthvalue_conversion,
606 binary_op_error, build_binary_op, warn_for_sign_compare.
607 * c-parser.c (c_parser_condition): Pass location to
608 c_*common_truthvalue_conversion.
609 (c_parser_conditional_expression): Save condition's location and pass
610 it on down.
611 (c_parser_binary_expression): Same, but for the binary operator's
612 location.
613 (c_parser_omp_for_loop): Pass location to
614 c_objc_common_truthvalue_conversion.
615
616 2008-09-23 Martin Jambor <mjambor@suse.cz>
617
618 * cgraph.c (cgraph_free_edge): Use sizeof(*e).
619 (cgraph_node_remove_callees): New temporary f. Hold the next item
620 in f when looping.
621 (cgraph_node_remove_callers): Likewise.
622
623 * ipa-prop.c (ipa_edge_removal_hook): Use ATTRIBUTE_UNUSED.
624 (ipa_node_removal_hook): Likewise.
625
626 * doc/gimple.texi (gimple_copy_call_skip_args): Changed to
627 gimple_call_copy_skip_args and moved to the gimple_call section.
628 * gimple.c (gimple_copy_call_skip_args): Renamed to
629 gimple_call_copy_skip_args. Changed al users.
630
631 2008-09-22 Vladimir Makarov <vmakarov@redhat.com>
632
633 * ira-color.c (start_allocno_priorities): Rename to
634 setup_allocno_priorities. Use costs and
635 ALLOCNO_EXCESS_PRESSURE_POINTS_NUM instead of frequencies and
636 range lengths. Get rid off doubles.
637 (ira_fast_allocations): Call start_allocno_priorities.
638
639 2008-09-22 David Daney <ddaney@avtrex.com>
640
641 PR target/37593
642 * config/mips/mips.h (FUNCTION_PROFILER): Call _mcount via a
643 register if TARGET_LONG_CALLS.
644
645 2008-09-22 Richard Guenther <rguenther@suse.de>
646
647 PR tree-optimization/37145
648 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Re-enable
649 value-numbering union accesses with their offset and size only.
650 (visit_reference_op_load): Fix simplification of inserted conversions.
651 * tree-ssa-pre.c (find_or_generate_expression): Do not
652 recursively generate expressions if running FRE.
653
654 2008-09-22 Adam Nemet <anemet@caviumnetworks.com>
655
656 * config/mips/mips.h (ISA_HAS_BADDU): New macro.
657 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el,
658 *baddu_di<mode>): New patterns.
659
660 2008-09-22 Richard Guenther <rguenther@suse.de>
661
662 PR tree-optimization/37145
663 * tree-ssa-pre.c (fully_constant_expression): Simplify builtin calls.
664 (phi_translate_1): Constant fold references.
665
666 2008-09-22 Ira Rosen <irar@il.ibm.com>
667
668 PR tree-optimization/37482
669 * tree-vectorizer.h (struct _slp_instance): Add new field.
670 (SLP_INSTANCE_FIRST_LOAD_STMT): New.
671 (get_earlier_stmt): New function.
672 * tree-vect-analyze.c (vect_find_first_load_in_slp_instance): New
673 function.
674 (vect_analyze_slp_instance): Set SLP_INSTANCE_FIRST_LOAD_STMT.
675 * tree-vect-transform.c (vect_finish_stmt_generation): Remove the
676 asserts that GSI points to the scalar statement being vectorized.
677 Set new statement location according to GSI.
678 (vect_schedule_slp_instance): Use GSI of
679 SLP_INSTANCE_FIRST_LOAD_STMT when vectorizing loads.
680
681 2008-09-21 Jan Hubicka <jh@suse.cz>
682
683 * ipa-cp.c (ipcp_estimate_growth): Check recursive calls.
684 (ipcp_insert_stage): Update dead_nodes bitmap.
685
686 2008-09-22 Danny Smith <dannysmith@users.sourceforge.net>
687
688 PR target/37528
689 * config/i386/t-cygming (SHLIB_LC): Remove.
690 (SHLIB_LINK): Don't add static objects to SHLIB_IMPLIB
691 * config/i386/t-cygwin (SHLIB_LC): Specify all required
692 libraries.
693
694 2008-09-22 Hans-Peter Nilsson <hp@axis.com>
695
696 PR middle-end/37170
697 PR middle-end/37280
698 * final.c (mark_symbol_ref_as_used): New helper function.
699 (output_operand): Instead of just looking inside MEMs for
700 SYMBOL_REFs, use new helper function and for_each_rtx.
701 * varasm.c (assemble_external): Move #ifndef ASM_OUTPUT_EXTERNAL
702 to after weak-handling. Don't mark decls with TREE_STATIC as weak.
703 Make head comment more general.
704 * config/darwin.c (machopic_output_indirection): Handle weak
705 references here, like in assemble_external.
706
707 2008-09-21 Eric Botcazou <ebotcazou@adacore.com>
708
709 * config/sparc/sparc-protos.h (gen_compare_operator): Declare.
710 (sparc_emit_float_lib_cmp): Change return type.
711 * config/sparc/sparc.c (gen_compare_reg): Add comment about TFmode.
712 (gen_compare_operator): New function.
713 (sparc_emit_float_lib_cmp): Return the new operator to be used in
714 the comparison sequence. Minor tweaks.
715 * config/sparc/sparc.md (seq, sne, sgt, slt, sge, sle): Assert
716 that the final operator and the result of sparc_emit_float_lib_cmp
717 match for software TFmode; use emit_insn in lieu of emit_jump_insn.
718 (beq, bne, bgt, blt, bge, ble, bunordered, bordered, bungt, bunlt,
719 buneq, bunge, bunle, bltgt): Assert that the final operator and the
720 result of sparc_emit_float_lib_cmp match for software TFmode.
721 (movqicc, movhicc, movsicc, movdicc): Merge into...
722 (mov<I:mode>cc): ...this.
723 (movsfcc, movdfcc, movtfcc): Merge into...
724 (mov<F:mode>cc): ...this.
725 (movqi_cc_sp64, movhi_cc_sp64, movsi_cc_sp64, movdi_cc_sp64): Merge
726 into...
727 (mov<I:mode>_cc_v9): ...this.
728 (movdi_cc_sp64_trunc): Delete.
729 (movqi_cc_reg_sp64, movhi_cc_reg_sp64, movsi_cc_reg_sp64,
730 movdi_cc_reg_sp64): Merge into...
731 (mov<I:mode>_cc_reg_sp64): ...this.
732 (movsf_cc_sp64): Rename into...
733 (movsf_cc_v9): ...this.
734 (movdf_cc_sp64): Rename into...
735 (movdf_cc_v9): ...this.
736 (movtf_cc_hq_sp64): Rename into...
737 (movtf_cc_hq_v9): ...this.
738 (movtf_cc_sp64): Rename into...
739 (movtf_cc_v9): ...this. Adjust for renaming of movdf_cc_sp64.
740
741 2008-09-21 Diego Novillo <dnovillo@google.com>
742
743 * doc/gccint.texi: Include generic.texi and gimple.texi.
744 Re-order index.
745 * doc/tree-ssa.texi (GENERIC): Move to generic.texi.
746 (GIMPLE): Move to gimple.texi.
747 (Annotations): Remove references to to stmt_ann_t and
748 ssa_name_ann_t.
749 (SSA Operands): Rename from 'Statement Operands'.
750 * doc/generic.texi: New.
751 * doc/gimple.texi: New.
752 * Makefile.in (TEXI_GCCINT_FILES): Add generic.texi and
753 gimple.texi.
754 * Makefile.in (TEXI_GCCINT_FILES):
755 * gimple.c (gimple_copy_call_skip_args): Rename from
756 giple_copy_call_skip_args. Update all users.
757 * doc/gimple.texi (gimple_copy_call_skip_args): Document.
758
759 2008-09-21 Ira Rosen <irar@il.ibm.com>
760
761 PR tree-optimization/37539
762 * tree-vect-transform.c (vect_transform_strided_load): Save vector
763 statement in related statement field only for the first load of the
764 group of loads with the same data reference.
765
766 2008-09-20 Adam Nemet <anemet@caviumnetworks.com>
767
768 * config/mips/mips.h (TUNE_OCTEON): New macro.
769 * config/mips/mips.c (mips_issue_rate): Return 2 for Octeon.
770 (mips_multipass_dfa_lookahead): Return 2 for Octeon.
771 * config/mips/octeon.md: New file.
772 * config/mips/mips.md: Include octeon.md. Restore
773 semi-alphabetical order of include files.
774
775 2008-09-20 H.J. Lu <hongjiu.lu@intel.com>
776
777 PR target/37571
778 * config/i386/i386.md (*jcc_fused_1): Removed.
779 (*jcc_fused_2): Likewise.
780 (*jcc_fused_3): Likewise.
781 (*jcc_fused_4): Likewise.
782
783 2008-09-20 Richard Sandiford <rdsandiford@googlemail.com>
784
785 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Define.
786 (IRA_COVER_CLASSES): Refer to TARGET_IRA_COVER_CLASSES.
787 * target.h (gcc_target): Add ira_cover_classes.
788 * ira.c: Remove IRA_COVER_CLASSES guards.
789 (setup_cover_and_important_classes): Use targetm.ira_cover_classes
790 instead of IRA_COVER_CLASSES.
791 (setup_cover_and_important_classes): Remove IRA_COVER_CLASSES guard.
792 (setup_class_translate): Likewise.
793 (setup_reg_class_intersect_union): Likewise.
794 (find_reg_class_closure): Replace IRA_COVER_CLASSES guard with a
795 test of targetm.ira_cover_classes.
796 * opts.c (decode_options): Use targetm.ira_cover_classes instead
797 of IRA_COVER_CLASSES.
798 * target-def.h (TARGET_IRA_COVER_CLASSES): Define.
799 (TARGET_INITIALIZER): Include it.
800 * targhooks.h (default_ira_cover_classes): Declare.
801 * targhooks.c (default_ira_cover_classes): New function.
802
803 2008-09-19 Bob Wilson <bob.wilson@acm.org>
804
805 * config/xtensa/xtensa.md (reload<mode>_literal): Handle MEM operands.
806
807 2008-09-19 Ian Lance Taylor <iant@google.com>
808
809 * varasm.c (narrowing_initializer_constant_valid_p): Return
810 NULL_TREE if ENDTYPE is not an integer.
811
812 2008-09-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
813
814 PR tree-opt/30930
815 * tree-ssa.c (execute_update_addresses_taken): Also update
816 DECL_GIMPLE_REG_P for vector and complex types.
817
818 2008-09-19 Andrew MacLeod <amacleod@redhat.com>
819 Jan Hubicka <jh@suse.cz>
820
821 PR middle-end/37567
822 * tree-ssa-ter.c (free_temp_expr_table): Make sure fields are actually
823 empty before freeing them.
824 (find_replaceable_exprs): Move asserts to free_temp_expr_table.
825
826 2008-09-18 Bob Wilson <bob.wilson@acm.org>
827
828 * configure.ac: Add HAVE_AS_TLS check for Xtensa.
829 * config/xtensa/predicates.md (tls_symbol_operand): New.
830 * config/xtensa/xtensa.c (TARGET_HAVE_TLS): Define.
831 (TARGET_CANNOT_FORCE_MEM): Define.
832 (xtensa_tls_symbol_p): New.
833 (xtensa_emit_move_sequence): Check for and legitimize TLS addresses.
834 (xtensa_legitimate_address_p): Disallow constant pool TLS references.
835 (xtensa_tls_module_base): New.
836 (xtensa_call_tls_desc): New.
837 (xtensa_legitimize_tls_address): New.
838 (xtensa_legitimize_address): Handle TLS symbols.
839 (xtensa_tls_referenced_p_1): New.
840 (xtensa_tls_referenced_p): New.
841 (xtensa_output_addr_const_extra): Handle UNSPEC_TPOFF and
842 UNSPEC_DTPOFF.
843 (XTENSA_BUILTIN_THREAD_POINTER): New.
844 (XTENSA_BUILTIN_SET_THREAD_POINTER): New.
845 (xtensa_init_builtins): Set NOTHROW and READONLY for umulsidi3
846 builtin. Add declarations for __builtin_thread_pointer and
847 __builtin_set_thread_pointer.
848 (xtensa_fold_builtin): Recognize new builtins.
849 (xtensa_expand_builtin): Expand new builtins.
850 * config/xtensa/xtensa.h (XCHAL_HAVE_THREADPTR): Define default value.
851 (TARGET_THREADPTR): Define.
852 (HAVE_AS_TLS): Define default value.
853 (LEGITIMATE_CONSTANT_P): Disallow TLS references.
854 * config/xtensa/xtensa.md (UNSPEC_TPOFF, UNSPEC_DTPOFF): New.
855 (UNSPEC_TLS_FUNC, UNSPEC_TLS_ARG, UNSPEC_TLS_CALL, UNSPEC_TP): New.
856 (UNSPECV_SET_TP): New.
857 (sym_TPOFF, sym_DTPOFF): New.
858 (load_tp, set_tp, tls_func, tls_arg, tls_call): New.
859 * config/xtensa/xtensa-protos.h (xtensa_tls_referenced_p): Declare.
860 * configure: Regenerated.
861
862 2008-09-18 H.J. Lu <hongjiu.lu@intel.com>
863
864 PR target/37394
865 * config/ia64/ia64.c (ia64_optimization_options): Move
866 checking and setting flag_schedule_insns_after_reload and
867 ia64_flag_schedule_insns2 back to ...
868 (ia64_override_options): Here.
869
870 2008-09-18 Andrew Pinski <andrew_pinski@playstation.sony.com>
871
872 PR rtl-opt/37451
873 * loop-doloop.c (doloop_modify): New argument zero_extend_p and
874 zero extend count after the correction to it is done.
875 (doloop_optimize): Update call to doloop_modify, don't zero extend
876 count before call.
877
878 2008-09-18 Martin Jambor <mjambor@suse.cz>
879
880 * ipa-cp.c (ipcp_estimate_growth): Return 0 instead of false.
881
882 * ipa-prop.c: Correct comments.
883 * ipa-prop.h: Likewise.
884
885 2008-09-18 Jan Hubicka <jh@suse.cz>
886
887 PR middle-end/37448
888 * ipa-reference.c (ipa_reference_local_vars_info_d,
889 ipa_reference_global_vars_info_d,
890 ipa_reference_local_vars_info_t, ipa_reference_global_vars_info_t,
891 ipa_reference_vars_info_t): Move here from ipa-reference.h
892 (node_duplication_hook_holder, node_removal_hook_holder): New.
893 (get_reference_vars_info_from_cgraph): Rename to ...
894 (get_reference_vars_info): ... this one, use cgraph uids.
895 (get_local_reference_vars_info, get_global_reference_vars_info):
896 Use cgraph instead of decl.
897 (ipa_reference_get_read_local, ipa_reference_get_written_local):
898 Remove.
899 (ipa_reference_get_read_global, ipa_reference_get_not_read_global
900 ipa_reference_get_written_global,
901 ipa_reference_get_not_written_global): Use cgraph argument.
902 (check_call): Simplify avail check.
903 (scan_stmt_for_static_refs): Update.
904 (propagate_bits): Update.
905 (merge_callee_local_info): Remove.
906 (init_function_info): Use cgraph nodes.
907 (clean_function_local_data): Break out from ...
908 (clean_function): ... here.
909 (copy_local_bitmap, copy_global_bitmap): New functions.
910 (duplicate_node_data, remove_node_data): New functions.
911 (generate_summary): Register hooks; use visibility instead of
912 master clones.
913 (propafate): Use cgraph nodes; copy bitmap to each node in cycle.
914 * ipa-reference.h (ipa_reference_local_vars_info_d,
915 ipa_reference_global_vars_info_d,
916 ipa_reference_local_vars_info_t, ipa_reference_global_vars_info_t,
917 ipa_reference_vars_info_t): Move to ipa-reference.c
918 (ipa_reference_get_read_local, ipa_reference_get_written_local):
919 Remove.
920 (ipa_reference_get_read_global, ipa_reference_get_written_global,
921 ipa_reference_get_not_read_global,
922 ipa_reference_get_not_written_global): Update prototype.
923 * ipa-pure-const.c (funct_state_vec): Turn into VECtor.
924 (init_state): Remove.
925 (node_duplication_hook_holder, node_removal_hook_holder): New.
926 (get_function_state, set_function_state): Use VECtor.
927 (analyze_function): Check body availability.
928 (add_new_function): Likewise.
929 (duplicate_node_data, remove_node_data): New.
930 (generate_summary): Register hooks; do not care about clones.
931 (propafate): Do not care about clones; recursive functions are
932 not looping.
933 * ipa-utils.c (searchc, ipa_utils_reduced_inorder): Do not skip clones.
934 * ipa-prop.c (edge_removal_hook_holder, node_removal_hook_holder,
935 * edge_duplication_hook_holder, node_duplication_hook_holder): Make
936 static.
937 * tree-flow.h (function_ann_d): Remove reference_vars_info.
938 * tree-ssa-opreands.c (add_call_clobber_ops, add_call_read_ops):
939 Update call of ipa-reference accesors.
940
941 2008-09-18 Simon Baldwin <simonb@google.com>
942
943 * c-opts.c (c_common_handle_option): Add handling for
944 -Wbuiltin-macro-redefined command line option.
945 * c.opt: Added builtin-macro-redefined option.
946 * doc/invoke.texi (Warning Options): Add -Wbuiltin-macro-redefined
947 documentation.
948
949 2008-09-18 Richard Guenther <rguenther@suse.de>
950
951 PR tree-optimization/37258
952 * tree-ssa-sccvn.c (vn_phi_compute_hash): Include the precision
953 and signedness for integral types.
954 (vn_phi_eq): Require compatible types.
955
956 2008-09-18 Jakub Jelinek <jakub@redhat.com>
957
958 PR debug/34037
959 * gimplify.c (gimplify_type_sizes): When not optimizing, ensure
960 TYPE_MIN_VALUE and TYPE_MAX_VALUE is not is not DECL_IGNORED_P
961 VAR_DECL.
962 * cfgexpand.c (expand_used_vars): Keep DECL_ARTIFICIAL
963 !DECL_IGNORED_P vars in local_decls list for instantiate_decls,
964 ggc_free other TREE_LIST nodes from that chain.
965 * function.c (instantiate_decls): Instantiate also DECL_RTL
966 of vars in cfun->local_decls, free that list afterwards.
967
968 2008-09-18 Eric Botcazou <ebotcazou@adacore.com>
969
970 * config/sparc/sol2.h (WIDEST_HARDWARE_FP_SIZE): Move to...
971 * config/sparc/sparc.h (WIDEST_HARDWARE_FP_SIZE): ...here.
972
973 2008-09-18 Andrew MacLeod <amacleod@redhat.com>
974
975 * tree-outof-ssa.c (eliminate_useless_phis): Fix formatting.
976 * tree-flow-.h (struct immediate_use_iterator_d): Fix comment.
977
978 2008-09-18 Andrew MacLeod <amacleod@redhat.com>
979
980 PR tree-optimization/37102
981 * tree-outof-ssa.c (remove_gimple_phi_args): Remove all the PHI args
982 from a node. Check to see if another PHI is dead.
983 (eliminate_useless_phis): Rename from eliminate_virtual_phis and
984 remove real PHIs which have no uses.
985 (rewrite_out_of_ssa): Call eliminate_useless_phis.
986
987 2008-09-18 Richard Guenther <rguenther@suse.de>
988
989 PR middle-end/37284
990 * tree-cfg.c (remove_useless_stmts_1): Remove
991 GIMPLE_CHANGE_DYNAMIC_TYPE if not optimizing.
992
993 2008-09-18 Nick Clifton <nickc@redhat.com>
994
995 * config/frv/frv.h (IRA_COVER_CLASSES): Define.
996 (SECONDARY_INPUT_RELOAD_CLASS): Omit unused argument in call
997 to frv_secondary_reload_class.
998 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
999 * config/frv/frv.c (TARGET_SECONDARY_RELOAD): Define.
1000 (frv_secondary_reload_class): Omit unused parameter.
1001 (frv_secondary_reload): New function. Handle the case when
1002 secondary_reload_class() is called before the reload_(in|out)
1003 _optabs have been initialised.
1004 * config/frv/frv-protos.h (frv_secondary_reload_class): Omit
1005 unused parameter.
1006 * config/frv/frv.md: Define an exclusion set between fr550_m0
1007 and fr550_f0.
1008
1009 2008-09-18 Richard Guenther <rguenther@suse.de>
1010
1011 PR tree-optimization/37456
1012 * tree-ssa-reassoc.c (build_and_add_sum): If the stmt we
1013 want to insert after ends a BB insert on the single fallthru
1014 outgoing edge.
1015
1016 2008-09-18 Andreas Krebbel <krebbel1@de.ibm.com>
1017
1018 * doc/invoke.texi: Document -mhard-dfp, -mno-hard-dfp.
1019 Mention -march=z9-109, z9-ec and z10.
1020
1021 2008-09-18 Uros Bizjak <ubizjak@gmail.com>
1022
1023 PR rtl-optimization/37544
1024 * regrename.c (maybe_mode_change): Exit early when copy_mode
1025 is narrower than orig_mode and narrower than new_mode.
1026
1027 2008-09-18 Alexander Monakov <amonakov@ispras.ru>
1028
1029 PR middle-end/37499
1030 * sched-int.h (struct _haifa_insn_data): Remove unused field
1031 ref_count.
1032
1033 * sched-rgn.c (ref_counts): Remove.
1034 (insn_referenced): New static variable.
1035 (INSN_REF_COUNT): Remove.
1036 (sched_run_compute_dependencies): Use insn_referenced instead of
1037 INSN_REF_COUNT.
1038 (add_branch_dependences): Likewise. Delete dead assignment.
1039
1040 2008-09-17 Adam Nemet <anemet@caviumnetworks.com>
1041
1042 * haifa-sched.c (dep_cost_1): Recognize the producer even if the
1043 consumer is an asm. Add comment why this is important.
1044 (choose_ready): Add comment to the "INSN_CODE (insn) >= 0 ||
1045 recog_memoized (insn) < 0" assert. Put ENABLE_CHECKING around
1046 it.
1047
1048 2008-09-17 Joseph Myers <joseph@codesourcery.com>
1049
1050 * expr.c (emit_group_store): Do not shift before moving via a
1051 stack slot.
1052
1053 2008-09-17 Eric Botcazou <ebotcazou@adacore.com>
1054
1055 * varasm.c (initializer_constant_valid_p): Forbid view-conversions
1056 from aggregate to non-aggregate type if the bit pattern is not fully
1057 preserved afterwards.
1058
1059 2008-09-17 Richard Guenther <rguenther@suse.de>
1060
1061 * tree-cfg.c (verify_types_in_gimple_assign): Rename to ...
1062 (verify_gimple_assign): ... this. Split into ...
1063 (verify_gimple_assign_unary): ... this,
1064 (verify_gimple_assign_binary): ... that,
1065 (verify_gimple_assign_single): ... and this.
1066 (verify_types_in_gimple_stmt): Call verify_gimple_assign.
1067 Fix GIMPLE_CHANGE_DYNAMIC_TYPE handling.
1068 (verify_types_in_gimple_min_lval): Handle TARGET_MEM_REF.
1069 (verify_types_in_gimple_reference): Be forgiving with
1070 VIEW_CONVERT_EXPRs.
1071 (verify_gimple_phi): Deal with virtual operands.
1072
1073 * tree.def (PREDICT_EXPR): Change to tcc_expression.
1074
1075 2008-09-17 Andrew Pinski <andrew_pinski@playstation.sony.com>
1076
1077 * tree.c (get_callee_fndecl): Don't call the language hook.
1078 * langhooks.h (lang_hooks): Remove lang_get_callee_fndecl.
1079 * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): Kill.
1080 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_GET_CALLEE_FNDECL.
1081
1082 2008-09-17 Jakub Jelinek <jakub@redhat.com>
1083
1084 * tree.c (protected_set_expr_location): Don't unnecessarily
1085 check for error_mark_node.
1086
1087 2008-09-17 Art Haas <ahaas@impactweather.com>
1088
1089 * ipa-reference.c (analyze_function): Declare step only if
1090 ENABLE_CHECKING is defined.
1091
1092 2008-09-17 Jan Hubicka <jh@suse.cz>
1093
1094 PR c++/18071
1095 * tree.h (DECL_INLINE): remove.
1096 (DECL_DECLARED_INLINE_P): Update docs.
1097 (DECL_NO_INLINE_WARNING_P): new.
1098 (tree_function_decl): Replace inline_flag by no_inline_warning_flag.
1099 * tree-inline.c (inlinable_function_p): Set DECL_NO_INLINE_WARNING_P.
1100
1101 2008-09-17 Jakub Jelinek <jakub@redhat.com>
1102 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1103
1104 PR bootstrap/37441
1105 * dwarf2out.c (dwarf2out_do_cfi_asm) [MIPS_DEBUGGING_INFO]: Return
1106 false.
1107
1108 2008-09-17 Jan Hubicka <jh@suse.cz>
1109
1110 * ipa-reference.c (ipa_obstack): Remove.
1111 (local_info_obstack, global_info_obstack): New.
1112 (add_static_var): We now handle variables only.
1113 (mark_address_taken, mark_load, mark_store): New functions based on ...
1114 (check_operand): ... remove.
1115 (get_asm_stmt_operands): Rename to ...
1116 (check_asm_memory_clobber): ... this. Look only for memory clobber.
1117 (scan_stmt_for_static_refs): Rewrite.
1118 (scan_op_for_static_refs): Rename to ...
1119 (scan_initializer_for_static_refs): do not look for VAR_DECL
1120 initializers; stop recursion on types and decls.
1121 (ipa_init): Use proper obstacks.
1122 (analyze_variable): Use scan_initializer_for_static_refs.
1123 (init_function_info): Use local obstack.
1124 (analyze_function): Simplify.
1125 (add_new_function): We don't need visited_nodes obstack.
1126 (generate_summary): Use proper obstacks; cleanup after propagation.
1127
1128 2008-09-17 Richard Guenther <rguenther@suse.de>
1129
1130 PR middle-end/37385
1131 PR tree-optimization/37491
1132 * alias.c (get_alias_set): Use the canonical type.
1133 * tree-vect-transform.c (vectorizable_store): Use the type of
1134 the lhs for the vector type. Adjust checking.
1135 (vectorizable_load): Adjust checking.
1136
1137 2008-09-16 Jakub Jelinek <jakub@redhat.com>
1138 Adam Nemet <anemet@caviumnetworks.com>
1139
1140 PR rtl-optimization/37483
1141 * ifcvt.c (noce_try_sign_mask): Use if_info->test_bb instead of
1142 if_info->insn_b's bb as argument to optimize_bb_for_speed_p.
1143 Rearrange code to better match the original comment. Check
1144 t_unconditional first. Improve comment.
1145
1146 2008-09-16 Jakub Jelinek <jakub@redhat.com>
1147
1148 PR c/37529
1149 * gimplify.c (gimplify_expr) <case GOTO_EXPR>: If gimplification of
1150 GOTO_DESTINATION failed, don't create GIMPLE_GOTO.
1151
1152 PR c++/37530
1153 * gimplify.c (gimplify_expr) <case TRY_CATCH_EXPR>: Don't create
1154 GIMPLE_TRY if cleanup sequence is empty.
1155
1156 2008-09-16 Andrew Pinski <andrew_pinski@playstation.sony.com>
1157
1158 PR middle-end/37263
1159 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Prefer the
1160 eliminate IV if the cost are the same.
1161
1162 2008-09-16 Richard Guenther <rguenther@suse.de>
1163
1164 PR middle-end/37380
1165 * tree-sra.c (sra_build_assignment): Do not call the gimplifier
1166 if not necessary.
1167
1168 2008-09-16 Richard Guenther <rguenther@suse.de>
1169
1170 PR tree-optimization/37508
1171 * tree-vrp.c (simplify_truth_ops_using_ranges): Also allow -1.
1172
1173 2008-09-15 Kaz Kojima <kkojima@gcc.gnu.org>
1174
1175 * config/sh/sh.md (movsf_ie): Fix length for TARGET_SH2A.
1176
1177 2008-09-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
1178
1179 * config/rs6000/rs6000.md (floatsidf2): Rewrite PowerPC64 case to
1180 use gen_floatdidf2 directly.
1181 (floatunssidf2): Likewise.
1182 (floatsidf_ppc64_mfpgpr): Remove.
1183 (floatsidf_ppc64): Remove.
1184 (floatunssidf_ppc64): Remove.
1185
1186 2008-09-15 Jakub Jelinek <jakub@redhat.com>
1187
1188 * ira-color.c (finish_cost_update): Free update_cost_queue_elems
1189 rather than update_cost_queue.
1190
1191 * tree-ssa-alias.c (init_alias_info): Call bitmap_obstack_release
1192 in every call starting with the second one, instead of only when
1193 alias_bitmap_obstack.elements != NULL.
1194
1195 * tree-predcom.c (filter_suitable_components): Free all refs in
1196 act->refs vector before calling release_component.
1197 (add_ref_to_chain): Free ref if not adding it to chain->refs.
1198
1199 * tree-data-ref.c (free_subscripts): Free all subscript objects.
1200
1201 * tree-loop-linear.c (linear_transform_loops): Initialize
1202 lambda_obstack only after calling perfect_loop_nest_depth.
1203 Goto free_and_continue instead of just continue for later failures.
1204
1205 PR middle-end/37479
1206 * doc/invoke.texi: Document -fno-dwarf2-cfi-asm.
1207
1208 PR libmudflap/36397
1209 * tree-mudflap.c (mf_xform_derefs_1): Handle VIEW_CONVERT_EXPR.
1210
1211 2008-09-14 Andreas Schwab <schwab@suse.de>
1212
1213 * tree-call-cdce.c (check_target_format): Accept Motorola formats.
1214
1215 2008-09-14 Jan Hubicka <jh@suse.cz>
1216
1217 * invoke.texi (-fconserve-stack): Document.
1218 * opts.c (decode_options): Handle conserve_stack.
1219 * common.opt (fconvserve_stack): New.
1220
1221 2008-09-14 David Edelsohn <edelsohn@gnu.org>
1222
1223 * config.host: Add x-aix to host_xmake_file.
1224 * config/rs6000/t-aix52: Do not override LDFLAGS.
1225 * config/rs6000/x-aix: New file.
1226
1227 2008-09-14 Andy Hutchinson <hutchinsonandy@aim.com>
1228
1229 PR target/19636
1230 PR target/24894
1231 PR target/31644
1232 PR target/31786
1233 * config/avr/avr.c (legitimate_address_p): Fix problem where subreg
1234 is not recognized as a valid register usage. Allow REG_X to be used
1235 as a base pointer.
1236 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Remove code that
1237 forces a reload when using a base register.
1238
1239 2008-09-14 Danny Smith <dannysmith@users.sourceforge.net>
1240
1241 * config/i386/cygming-crtend.c (register_frame_ctor): If
1242 DEFAULT_USE_CXA_ATEXIT, register __gcc_deregister_frame
1243 directly with atexit.
1244 (deregister_frame_ctor): Rename to ...
1245 (deregister_frame_dtor): Use to call __gcc_deregister_frame
1246 if !DEFAULT_USE_CXA_ATEXIT.
1247
1248 2008-09-13 Jan Hubicka <jh@suse.cz>
1249
1250 * cgraph.c: Include value-prof.h
1251 * Makefile.in (cgraph.o): Add value-prof.h dependency.
1252
1253 2008-09-13 Jan Hubicka <jh@suse.cz>
1254
1255 PR middle-end/32581
1256 * tree-profile.c (add_abnormal_goto_call_edges): New function.
1257 (tree_gen_interval_profiler, tree_gen_pow2_profiler,
1258 tree_gen_one_value_profiler, tree_gen_average_profiler,
1259 tree_gen_ic_func_profiler, tree_gen_ior_profiler): Use it.
1260
1261 2008-09-13 Jan Hubicka <jh@suse.cz>
1262
1263 * i386.c (ix86_expand_movmem, ix86_expand_movstr): Avoid processing
1264 too many bytes on misalligned blocks.
1265
1266 2008-09-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1267
1268 * doc/cfg.texi: Fix some typos.
1269 * doc/extend.texi: Likewise.
1270 * doc/install.texi: Likewise.
1271 * doc/invoke.texi: Likewise.
1272 * doc/rtl.texi: Likewise.
1273 * doc/tree-ssa.texi: Likewise.
1274
1275 2008-09-13 Richard Guenther <rguenther@suse.de>
1276
1277 PR middle-end/30141
1278 * tree-nested.c (finalize_nesting_tree_1): Generate valid
1279 gimple stores for memory rhs.
1280
1281 2008-09-13 H.J. Lu <hongjiu.lu@intel.com>
1282
1283 PR rtl-optimization/37489
1284 * cse.c (fold_rtx): Don't return const_true_rtx for float
1285 compare if FLOAT_STORE_FLAG_VALUE is undefined.
1286
1287 2008-09-13 Jan Hubicka <jh@suse.cz>
1288
1289 PR tree-optimization/37392
1290 * tree-inline.c (remap_gimple_stmt): Do not remap return value.
1291
1292 2008-09-13 Martin Jambor <mjambor@suse.cz>
1293 Jan Hubicka <jh@suse.cz>
1294
1295 * cgraph.c (free_edges): New variable.
1296 (NEXT_FREE_EDGE): New macro.
1297 (cgraph_free_edge): New function.
1298 (cgraph_remove_edge): Call cgraph_remove_edge_1.
1299 (cgraph_node_remove_callees): Likewise.
1300 (cgraph_node_remove_callers): Likewise.
1301 (cgraph_create_edge): Reuse edges from the free list. Do not
1302 update uid if doing so.
1303 (cgraph_remove_*_hook): Add free call.
1304
1305 2008-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1306
1307 * ira-color.c (conflict_allocno_vec): Delete.
1308 (update_cost_queue_elem): New structure.
1309 (update_cost_queue): New variable.
1310 (update_cost_queue_tail): Likewise.
1311 (update_cost_queue_elems): Likewise.
1312 (allocno_update_cost_check): Delete.
1313 (initiate_cost_update): Allocate update_cost_queue_elems
1314 instead of allocno_update_cost_check.
1315 (finish_cost_update): Update the free()s accordingly.
1316 (start_update_cost): New function.
1317 (queue_update_cost): Likewise.
1318 (get_next_update_cost): Likewise.
1319 (update_copy_costs_1): Inline into...
1320 (update_copy_costs): ...here. Use a queue instead of recursive calls.
1321 Use cover_class instead of ALLOCNO_COVER_CLASS (another_allocno),
1322 once we've established they are equal. Don't allocate update
1323 costs if there is nothing to add to them.
1324 (update_conflict_hard_regno_costs): Remove ALLOCNO and
1325 DIVISOR arguments. Use a queue instead of recursive calls;
1326 process all the allocnos in the initial queue, rather than
1327 a single allocno.
1328 (assign_hard_reg): Use queue_update_cost instead of
1329 conflict_allocno_vec. Queue coalesced allocnos instead
1330 of calling update_conflict_hard_regno_costs for each one.
1331 Just call update_conflict_hard_regno_costs once for the
1332 entire queue.
1333 (ira_color): Remove conflict_allocno_vec handling.
1334
1335 2008-09-12 Sebastian Pop <sebastian.pop@amd.com>
1336
1337 PR tree-optimization/37484
1338 * graphite.c (scop_record_loop): Use snprintf instead of sprintf.
1339 (save_var_name): Same.
1340 (initialize_cloog_names): Same.
1341 (initialize_cloog_names): Same.
1342
1343 2008-09-12 Sebastian Pop <sebastian.pop@amd.com>
1344
1345 * tree-scalar-evolution.c (set_instantiated_value): Set
1346 instantiated_below.
1347
1348 2008-09-12 Vladimir Makarov <vmakarov@redhat.com>
1349
1350 PR rtl-opt/37377
1351
1352 * ira-build.c (common_loop_tree_node_dominator): Remove.
1353 (copy_live_ranges_to_removed_store_destinations): New function.
1354 (regno_top_level_allocno_map): Move to top level from ...
1355 (ira_flattening): ... here. Use
1356 copy_live_ranges_to_removed_store_destinations.
1357
1358 * ira-emit.c (generate_edge_moves): Fix a comment.
1359
1360 2008-09-12 Anatoly Sokolov <aesok@post.ru>
1361
1362 PR target/37466
1363 * config/avr/avr.md (movsi_lreg_const peephole2): Add match_dup for
1364 scratch register after 'set' pattern.
1365
1366 2008-09-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1367
1368 * emit-rtl.c (set_reg_attrs_from_value): Fix invalid alignment
1369 information passed to mark_reg_pointer.
1370 * explow.c (force_reg): Likewise.
1371
1372 2008-09-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1373
1374 * config/spu/spu.c (spu_override_options): Default to -mno-safe-hints
1375 when building for the celledp architecture.
1376
1377 2008-09-12 Richard Guenther <rguenther@suse.de>
1378
1379 * tree-vrp.c (simplify_truth_ops_using_ranges): Fix types.
1380
1381 2008-09-12 Eric Botcazou <ebotcazou@adacore.com>
1382
1383 PR rtl-optimization/37424
1384 * ira-color.c (coalesced_pseudo_reg_slot_compare): Untie by comparing
1385 the regnos instead of the addresses.
1386
1387 2008-09-11 Janis Johnson <janis187@us.ibm.com>
1388
1389 * ginclude/float.h (DEC_EVAL_METHOD): Correct the macro name.
1390
1391 2008-09-11 Richard Guenther <rguenther@suse.de>
1392
1393 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Avoid
1394 entering the weaker equivalence recording.
1395
1396 * tree-ssa-phiprop.c (propagate_with_phi): Fix tuplification.
1397
1398 2008-09-11 Jeff Law <law@redhat.com>
1399
1400 * reload1.c (alter_reg): Undo the BYTE_BIG_ENDIAN correction performed
1401 by assign_stack_local on the IRA path for stack slot sharing
1402 as well as the non-IRA path.
1403
1404 2008-09-11 Uros Bizjak <ubizjak@gmail.com>
1405
1406 * config/i386/i386.h: Fix whitespace issues.
1407
1408 2008-09-11 Martin Jambor <mjambor@suse.cz>
1409
1410 * ipa-prop.h (struct ipa_param_flags): Removed.
1411 (struct ipa_param_descriptor): New structure.
1412 (struct ipa_node_params): ipcp_lattices, param_decls and
1413 param_flags moved to ipa_param_description.
1414 (ipa_get_ith_param): Renamed to ipa_get_param, changed to access
1415 descriptors. Renamed all users.
1416 (ipa_is_ith_param_modified): Renamed to ipa_is_param_modified,
1417 changed to access descriptors. Renamed all users.
1418 (ipa_is_ith_param_called): Renamed to ipa_is_param_called, changed
1419 to access descriptors. Renamed all users.
1420 * ipa-cp.c (ipcp_init_cloned_node): Call
1421 ipa_initialize_node_params instead of ipa_count_formal_params and
1422 ipa_create_param_decls_array.
1423 (ipcp_analyze_node): Likewise.
1424 (ipcp_get_ith_lattice): Renamed to ipcp_get_lattice, changed to access
1425 descriptors. Renamed all users.
1426 (ipcp_initialize_node_lattices): Remove allocation.
1427 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
1428 ipa_initialize_node_params instead of ipa_count_formal_params and
1429 ipa_create_param_decls_array.
1430 * ipa-prop.c (ipa_create_param_decls_array): Renamed to
1431 ipa_populate_param_decls, made static, added parameter info,
1432 renamed mt to node, removed allocation, changed to use
1433 descriptors.
1434 (ipa_count_formal_params): Made static, added parameter info,
1435 renamed mt to node.
1436 (ipa_initialize_node_params): New function.
1437 (ipa_check_stmt_modifications): Changed to use descriptors.
1438 (ipa_detect_param_modifications): Removed allocation, changed to
1439 use descriptors.
1440 (ipa_note_param_call): Changed to use descriptors.
1441 (ipa_analyze_params_uses): Removed allocation.
1442 (ipa_free_node_params_substructures): Changed to use descriptors.
1443 (ipa_edge_duplication_hook): Use the unused attribute.
1444 (ipa_node_duplication_hook): Use the unused attribute, changed to
1445 use descriptors, changed to duplicate descriptors.
1446
1447 * ipa-inline.c (cgraph_mark_inline_edge): New parameter new_edges,
1448 changed all callers. Call ipa_propagate_indirect_call_infos if doing
1449 indirect inlining. Made static.
1450 (cgraph_decide_inlining): Freeing ipa-prop structures after inlining
1451 functions called only once.
1452 (cgraph_decide_recursive_inlining): Don't call
1453 ipa_propagate_indirect_call_infos, pass new_edges to
1454 cgraph_mark_inline_edge instead.
1455 (cgraph_decide_inlining_of_small_functions): Don't call
1456 ipa_propagate_indirect_call_infos, pass new_edges to
1457 cgraph_mark_inline_edge instead.
1458 (cgraph_decide_inlining): Don't call
1459 ipa_propagate_indirect_call_infos.
1460 * ipa-prop.c: Check that vectors are allocated.
1461
1462 * ipa-inline.c (cgraph_mark_inline_edge): Returns boolean, true
1463 iff a new cgraph edges have been created.
1464 (cgraph_decide_inlining): New variable redo_always_inline.
1465 Flattening and always_inlining loop until callgraph stabilizes.
1466 * ipa-prop.c (update_call_notes_after_inlining): Returns boolean,
1467 true iff new cgraph edges have been created.
1468 (propagate_info_to_inlined_callees): Likewise.
1469 (ipa_propagate_indirect_call_infos): Likewise.
1470
1471 2008-09-11 Richard Guenther <rguenther@suse.de>
1472
1473 * tree-vectorizer.c (slpeel_add_loop_guard): Fix types.
1474 (set_prologue_iterations): Likewise.
1475 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref):
1476 Likewise.
1477 (vect_update_init_of_dr): Likewise.
1478 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Fix
1479 type verification.
1480 * fold-const.c (fold_unary): Do not generate calculations
1481 in sub-types.
1482
1483 2008-09-11 Paolo Bonzini <bonzini@gnu.org>
1484
1485 * dojump.c (do_jump) [BIT_AND_EXPR]: Move below. Fall through to
1486 TRUTH_AND_EXPR for boolean (1-bit precision) expressions.
1487 (do_jump) [BIT_IOR_EXPR]: Compile as TRUTH_OR_EXPR.
1488
1489 * tree-flow.h (simplify_stmt_using_ranges): Accept a GSI, return
1490 a bool.
1491 * tree-ssa-propagate.c (substitute_and_fold): Pass a GSI to
1492 VRP's simplify_stmt_using_ranges. Do simplify_stmt_using_ranges
1493 before finalizing the changes.
1494 * tree-vrp.c (extract_range_from_binary_expr): Add limited support
1495 for BIT_IOR_EXPR.
1496 (simplify_truth_ops_using_ranges): New.
1497 (simplify_div_or_mod_using_ranges, simplify_abs_using_ranges,
1498 simplify_cond_using_ranges, simplify_switch_using_ranges): Return
1499 whether a simplification was made.
1500 (simplify_stmt_using_ranges): Ditto, and accept a GSI. For GS_ASSIGN,
1501 use a switch statement and also call simplify_truth_ops_using_ranges.
1502
1503 2008-09-11 Jan Hubicka <jh@suse.cz>
1504
1505 * ggc-common.c (loc_array): Make static.
1506 * dce.c (rest_of_handle_ud_dce): Free worklist.
1507
1508 2008-09-11 Jan Hubicka <jh@suse.cz>
1509
1510 * cgraph.c (cgraph_release_function_body): Plug memory leak on
1511 ipa_transforms_to_apply and CFG; ggc_free gimple df and struct
1512 function so we are sure we do not dangle it forever.
1513 * function.c (outer_function_chain, find_function_data): Remove.
1514 (function_context_stack): New.
1515 (push_function_context, pop_function_context): Update.
1516 * function.h (struct function): Remove pointer outer.
1517 (outer_function_chain, find_function_data): Remove.
1518 * stmt.c (force_label_rtx): Remove dead call of find_function_data.
1519
1520 2008-09-11 Jan Hubicka <jh@suse.cz>
1521
1522 PR middle-end/37448
1523 * cgraph.c (cgraph_create_edge): Use !cgraph_edge for sanity check.
1524
1525 2008-09-11 Jan Hubicka <jh@suse.cz>
1526
1527 * tree-ssa-pre.c (phi_translate_1): Fix memory leak
1528
1529 2008-09-11 Jan Hubicka <jh@suse.cz>
1530
1531 * tree-ssa.c (redirect_edge_var_map_clear): Fix formatting.
1532 (free_var_map_entry): New function.
1533 (redirect_edge_var_map_destroy): Use it.
1534
1535 2008-09-11 Jan Hubicka <jh@suse.cz>
1536
1537 PR middle-end/37448
1538 * tree-inline.c (add_lexical_block): Replace with ...
1539 (prepend_lexical_block): ... prepend at begginig.
1540 (remap_blocks): Use it and reverse later.
1541 (expand_call_inline): Use prepend_lexical_block.
1542
1543 2008-09-11 Jan Hubicka <jh@suse.cz>
1544
1545 * gimplify.c (pop_gimplify_context): Free bind_expr_stack.
1546
1547 2008-09-11 Jan Hubicka <jh@suse.cz>
1548
1549 * function.c (free_after_compilation): Call insn_locators_free.
1550 * cfglayout.c (insn_locators_free): New function.
1551 * rtl.h (insn_locators_free): Declare.
1552
1553 2008-09-11 Jan Hubicka <jh@suse.cz>
1554
1555 * ifcvt.c (check_cond_move_block): Make regs argument pointer to
1556 vector pointer.
1557 (cond_move_process_if_block): Update call.
1558
1559 2008-09-11 Jan Hubicka <jh@suse.cz>
1560
1561 * toplev.c (dump_memory_report): Call dump_vec_loc_statistics.
1562 * vec.c: Include hashtab.h
1563 (vec_descriptor, ptr_hash_entry): New structures.
1564 (vec_desc_hash, vec_ptr_map): New static variables.
1565 (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr, vec_descriptor,
1566 register_overhead, free_overhead, vec_heap_free): New functions.
1567 (vec_gc_o_reserve_1): ggc_free when resizing to 0.
1568 (vec_heap_o_reserve_1): free when resizing to 0; add statistics.
1569 (cmp_statistic, add_statistics, dump_vec_loc_statistics):
1570 New functions.
1571
1572 2008-09-11 Ira Rosen <irar@il.ibm.com>
1573
1574 PR tree-optimization/37474
1575 * tree-vect-analyze.c (vect_supported_load_permutation_p): Check the
1576 length of load permutation.
1577
1578 2008-09-11 Andreas Schwab <schwab@suse.de>
1579
1580 * config/m68k/m68k.h (IRA_COVER_CLASSES): Define.
1581
1582 2008-09-11 Jakub Jelinek <jakub@redhat.com>
1583
1584 PR target/37382
1585 * expmed.c (extract_low_bits): Avoid creating invalid subregs.
1586 * dse.c (find_shift_sequence): Use extract_low_bits instead of
1587 simplify_gen_subreg.
1588
1589 2008-09-11 Ira Rosen <irar@il.ibm.com>
1590
1591 * tree-vect-transform.c (vectorizable_store): Use the rhs vector type
1592 for alias check.
1593
1594 2008-09-10 Jakub Jelinek <jakub@redhat.com>
1595
1596 PR middle-end/37338
1597 * gimplify.c (gimplify_body): Call default_rtl_profile.
1598
1599 PR target/36904
1600 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Return NULL
1601 instead of tok->val.node if not expanding to something else. Handle
1602 intervening CPP_PADDING tokens.
1603 (altivec_categorize_keyword): Remove unneeded comparisons.
1604
1605 2008-09-10 Richard Guenther <rguenther@suse.de>
1606
1607 * tree-ssa-pre.c (phi_translate_1): Fix memory leak.
1608
1609 2008-09-10 Richard Guenther <rguenther@suse.de>
1610
1611 PR middle-end/37432
1612 * tree-inline.c (insert_init_stmt): Make sure to not
1613 insert invalid gimple stores.
1614
1615 2008-09-10 Sebastian Pop <sebastian.pop@amd.com>
1616
1617 PR tree-optimization/37388
1618 * toplev.c (process_options): Fail and warn when graphite
1619 flags are used, but the compiler has not been configured
1620 with graphite libraries.
1621 * graphite.c (graphite_transform_loops): Remove printfs
1622 to dump_file for the case when graphite is not available.
1623
1624 2008-09-10 H.J. Lu <hongjiu.lu@intel.com>
1625
1626 PR target/37434:
1627 * config/i386/i386.c (ix86_expand_vector_init_interleave): Force
1628 the even element into register.
1629 (ix86_expand_vector_init_general): Don't use
1630 ix86_expand_vector_init_interleave on V16QImode and V8HImode
1631 if we can't move from GPR to SSE register directly.
1632
1633 2008-09-10 Bernd Schmidt <bernd.schmidt@analog.com>
1634
1635 * config/bfin/bfin.c (workaround_speculation): Correct algorithm to
1636 not lose track of the number of NOPs needed. Number of NOPs needed
1637 for sync vs. loads workaround was switched; corrected. Run second
1638 pass for all workarounds. No NOPs needed after call insns. Change
1639 second pass to use find_next_insn_start and find_load helpers in order
1640 to properly detect parallel insns.
1641 * config/bfin/bfin.md (cbranch_with_nops): Increase length.
1642
1643 2008-09-10 Jan Hubicka <jh@suse.cz>
1644
1645 * value-prof.c (gimple_ic): Fix tuplification bug.
1646 * sched-deps.c (sched_insns_conditions_mutex_p): Silence unitialized
1647 var warning.
1648
1649 2008-09-10 Jakub Jelinek <jakub@redhat.com>
1650
1651 PR tree-optimization/37353
1652 * tree-call-cdce.c (cond_dead_built_in_calls): Remove.
1653 (shrink_wrap_conditional_dead_built_in_calls): Add calls argument, use
1654 calls instead of cond_dead_built_in_calls.
1655 (tree_call_cdce): Add cond_dead_built_in_calls automatic variable,
1656 initalize the vector only before adding first entry. Use VEC_safe_push
1657 instead of VEC_quick_push. Pass cond_dead_built_in_calls to
1658 shrink_wrap_conditional_dead_built_in_calls call.
1659
1660 2008-09-10 Ira Rosen <irar@il.ibm.com>
1661
1662 PR tree-optimization/37385
1663 * tree-vect-transform.c (vect_create_data_ref_ptr): Add a new
1664 argument, and use it as a vector type if not NULL.
1665 (vectorizable_store): Call vect_create_data_ref_ptr with the type of
1666 vectorized rhs.
1667 (vect_setup_realignment): Call vect_create_data_ref_ptr with
1668 additional argument.
1669 (vectorizable_load): Likewise.
1670
1671 2008-09-10 Jakub Jelinek <jakub@redhat.com>
1672
1673 * config/i386/i386.md (SWI32): New mode iterator.
1674 (jcc_fused_1, jcc_fused_2, jcc_fused_3, jcc_fused_4): Use it instead
1675 of SWI.
1676
1677 2008-09-09 Vladimir Makarov <vmakarov@redhat.com>
1678
1679 PR rtl-optimization/37435
1680 * caller-save.c (insert_restore, insert_save): Check the mode by
1681 reg_save_code.
1682
1683 2008-09-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1684
1685 PR other/37265
1686 * dwarf2asm.c (dw2_force_const_mem): Use unstripped symbol name for
1687 splay tree lookup.
1688 (dw2_output_indirect_constant_1): Use unstripped name in symbol
1689 reference.
1690
1691 2008-09-09 Sandra Loosemore <sandra@codesourcery.com>
1692
1693 * doc/invoke.texi (ARM Options): Correct errors in discussion
1694 of -mfloat-abi, -mhard-float, and -msoft-float.
1695
1696 2008-09-09 Jakub Jelinek <jakub@redhat.com>
1697 Jan Hubicka <jh@suse.cz>
1698
1699 PR middle-end/37356
1700 * tree-inline.c (copy_bb): Insert stmt into copy_basic_block before
1701 calling gimple_regimplify_operands on it. Iterate over all newly
1702 added statements, not just the last one.
1703 (insert_init_stmt): Insert stmt into seq first, then call
1704 gimple_regimplify_operands on it. Don't create new gimplification
1705 context, nor find referenced vars.
1706
1707 2008-09-09 Jakub Jelinek <jakub@redhat.com>
1708
1709 PR other/37419
1710 * ipa-prop.h (ipa_propagate_indirect_call_infos): Change last argument
1711 to pointer to vector pointer.
1712 * ipa-prop.c (ipa_propagate_indirect_call_infos,
1713 propagate_info_to_inlined_callees): Likewise.
1714 (update_call_notes_after_inlining): Likewise. Push new indirect edge
1715 to *new_edges instead of new_edges. Reread IPA_EDGE_REF after
1716 ipa_check_create_edge_args.
1717 * ipa-inline.c (cgraph_decide_recursive_inlining): Change last
1718 argument to pointer to vector pointer.
1719 (cgraph_decide_inlining_of_small_function): Adjust
1720 cgraph_decide_recursive_inlining and ipa_propagate_indirect_call_infos
1721 calls.
1722
1723 PR target/37438
1724 * config/i386/i386.md (zero_extendqihi2_movzbl): Enable when
1725 optimizing for size, not speed.
1726
1727 PR rtl-optimization/37408
1728 * function.c (assign_parm_find_stack_rtl): Set correct MEM_SIZE
1729 if parm is promoted.
1730
1731 2008-09-09 Sebastian Pop <sebastian.pop@amd.com>
1732
1733 PR tree-optimization/37375
1734 * tree-scalar-evolution.c (scev_info_str): Add field
1735 instantiated_below.
1736 (new_scev_info_str, eq_scev_info, find_var_scev_info,
1737 set_scalar_evolution, get_scalar_evolution, get_instantiated_value,
1738 set_instantiated_value): Pass instantiated_below.
1739 (analyze_scalar_evolution_1, analyze_scalar_evolution): Update calls
1740 to above functions.
1741 (instantiate_scev_1, instantiate_scev): Pass a basic block above which
1742 the definitions are not instantiated.
1743
1744 * tree-scalar-evolution.h (instantiate_scev): Update declaration.
1745 (block_before_loop): New.
1746 * tree-data-ref.c (dr_analyze_indices): Update uses of
1747 instantiate_scev.
1748 * graphite.c (block_before_scop): New.
1749 (loop_affine_expr, stmt_simple_for_scop_p, harmful_stmt_in_bb): Pass a
1750 basic block, not a loop for determining the parameters.
1751 (scopdet_edge_info, build_scops_1): Do not pass outermost loop in the
1752 scop.
1753 (idx_record_params, find_params_in_bb, find_scop_parameters,
1754 build_loop_iteration_domains, add_conditions_to_domain): Update calls
1755 to instantiate_scev.
1756
1757 * Makefile.in (cfgloopmanip.o): Add missing dependency on TREE_FLOW_H.
1758
1759 2008-09-09 Vladimir Makarov <vmakarov@redhat.com>
1760
1761 PR rtl-opt/37333
1762
1763 * ira-build.c (ira_create_allocno): Setup frequency to 0.
1764
1765 * ira-color.c (update_conflict_hard_regno_costs): Remove assert.
1766 Check zero freq and increase if necessary.
1767
1768 2008-09-09 Vladimir Makarov <vmakarov@redhat.com>
1769
1770 * ira-conflicts.c (process_regs_for_copy): Check that the hard
1771 regno is in the right range. Add comments.
1772
1773 2008-09-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1774
1775 * Makefile.in (mips-tfile.o-warn): Don't error out on mips-tfile.c
1776 warnings.
1777 * mips-tfile.c (copy_object): Cast alloca result to int *.
1778 * mips-tdump.c (print_symbol): Cast xmalloc return values to
1779 proper types.
1780 Rename class to sclass.
1781 (read_tfile): Cast read_seek return values to proper types.
1782 Cast xcalloc return value to proper type.
1783
1784 2008-09-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1785
1786 * config/sol2.h (REGISTER_TARGET_PRAGMAS): Move ...
1787 * config/i386/sol2.h (REGISTER_SUBTARGET_PRAGMAS): ... here.
1788 * config/sparc/sol2.h (REGISTER_TARGET_PRAGMAS): ... and here.
1789
1790 2008-09-09 Jan Hubicka <jh@suse.cz>
1791
1792 * profile.c (is_edge_inconsistent): Add debug output; ignore
1793 negative count on fake edges.
1794 (is_inconsistent): Add debug output.
1795
1796 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
1797
1798 * haifa-sched.c (advance_one_cycle): Do not print '\n' before printing
1799 dump message.
1800 (choose_ready): When first insn is chosen from the ready list, also
1801 dump it.
1802
1803 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
1804
1805 PR rtl-optimization/37360
1806 * haifa-sched.c (max_issue): Do not assert that we never issue more
1807 insns than issue_rate. Add comment.
1808
1809 2008-09-09 Richard Guenther <rguenther@suse.de>
1810
1811 * tree-cfg.c (verify_types_in_gimple_op): Remove.
1812 (verify_types_in_gimple_call): Rename to ...
1813 (verify_gimple_call): ... this. Enhance.
1814 (verify_types_in_gimple_cond): Remove.
1815 (verify_gimple_comparison): New function ...
1816 (verify_types_in_gimple_assign): ... split out from here.
1817 (verify_types_in_gimple_return): Rename to ...
1818 (verify_gimple_return): ... this. Enhance.
1819 (verify_types_in_gimple_switch): Rename to ...
1820 (verify_gimple_switch): ... this. Enhance.
1821 (verify_gimple_goto): New function.
1822 (verify_types_in_gimple_phi): Rename to ...
1823 (verify_gimple_phi): ... this. Enhance.
1824 (verify_types_in_gimple_stmt): Adjust calls to helper functions.
1825 Fold in single-statement cases from verify_types_in_gimple_seq_2.
1826 (verify_types_in_gimple_seq_2): Remove cases handled in
1827 verify_types_in_gimple_stmt.
1828
1829 2008-09-09 Bernd Schmidt <bernd.schmidt@analog.com>
1830
1831 * config/bfin/bfin.c (n_regs_to_save): New static variable.
1832 (push_multiple_operation, pop_multiple_operation): Set it.
1833 (workaround_rts_anomaly): New function.
1834 (workaround_speculation): New function, broken out of bfin_reorg.
1835 (bfin_reorg): Call the new functions.
1836
1837 2008-09-09 Richard Guenther <rguenther@suse.de>
1838
1839 PR middle-end/37354
1840 PR middle-end/30165
1841 * gimplify.c (gimplify_conversion): Change conversions of
1842 non-register type to VIEW_CONVERT_EXPRs.
1843 (gimplify_addr_expr): If we need to make the operand
1844 addressable make sure to use a properly initialized
1845 temporary for that so it gets a valid gimple store.
1846
1847 2008-09-09 Aldy Hernandez <aldyh@redhat.com>
1848
1849 * function.h (struct function): Add function_start_locus.
1850 * cfgexpand.c (gimple_expand_cfg): Use it.
1851 * c-parser.c (c_parser_declaration_or_fndef): Set it.
1852
1853 2008-09-09 Richard Guenther <rguenther@suse.de>
1854
1855 PR tree-optimization/37433
1856 * tree-ssa-ccp.c (ccp_fold): Properly guard folding of
1857 function calls.
1858
1859 2008-09-09 Richard Guenther <rguenther@suse.de>
1860
1861 PR tree-optimization/37387
1862 * tree-ssa-ifcombine.c (ifcombine_iforif): Convert the name
1863 and bits to a common type.
1864
1865 2008-09-09 Nick Clifton <nickc@redhat.com>
1866
1867 * config/v850/v850.md (return): Restore frame size restriction.
1868
1869 2008-09-09 Paolo Bonzini <bonzini@gnu.org>
1870
1871 * c-common.c (c_expand_decl): Remove.
1872 * c-common.h (anon_aggr_type_p): Remove prototype.
1873 (DECL_ANON_UNION_ELEMS): Remove.
1874 * c-objc-common.h (LANG_HOOKS_EXPAND_DECL): Remove.
1875 * c-decl.c (anon_aggr_type_p): Remove.
1876 * langhooks-def.h (LANG_HOOKS_EXPAND_DECL): Remove.
1877 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_EXPAND_DECL.
1878 * langhooks.h (struct lang_hooks): Remove expand_decl.
1879 * langhooks.c (lhd_expand_decl): Remove.
1880 * stmt.c (expand_anon_union_decl): Remove.
1881 * tree.h (expand_anon_union_decl): Remove prototype.
1882
1883 2008-08-09 Andy Hutchinson <hutchinsonandy@aim.com>
1884
1885 PR target/36609
1886 * config/avr/avr.c (avr_reorg): Create RTL for reversed compare with
1887 zero.
1888 * config/avr/avr.md (QISI) : Define mode iterator.
1889 (negated_tst<mode>) : Redefine as split using mode macro.
1890 (reversed_tstqi): Define insn as reversed compare with zero.
1891 (reversed_tsthi): Ditto.
1892 (reversed_tstsi): Ditto.
1893
1894 2008-09-08 Jakub Jelinek <jakub@redhat.com>
1895
1896 PR middle-end/37393
1897 * tree-inline.c (copy_bb): When replacing a gimple_call_va_arg_pack_p
1898 call stmt by new_call, clear gimple_bb on stmt after gsi_replace.
1899
1900 PR middle-end/37414
1901 * predict.c (optimize_function_for_size_p): Don't segfault if
1902 FUN is NULL.
1903 * fold-const.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop,
1904 tree_swap_operands_p): Don't test cfun != NULL before calling
1905 optimize_function_for_s*_p.
1906
1907 2008-09-08 Eric Botcazou <ebotcazou@adacore.com>
1908
1909 * ira-color.c (ira_reuse_stack_slot): Set slot_num on success at the
1910 end of the search.
1911
1912 2008-09-08 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
1913
1914 * crx/crx.h (IRA_COVER_CLASSES): Define.
1915
1916 2008-09-08 Jakub Jelinek <jakub@redhat.com>
1917
1918 PR middle-end/37337
1919 * tree-ssa-dom.c (optimize_stmt): Call maybe_clean_or_replace_eh_stmt
1920 even when a stmt has been gimple_modified_p, but after fold_stmt is
1921 not any longer. Remove unneeded may_have_exposed_new_symbols
1922 initializations.
1923
1924 2008-09-08 Richard Guenther <rguenther@suse.de>
1925
1926 PR tree-optimization/37421
1927 * tree-ssa-sccvn.c (visit_copy): Make sure to fully
1928 valueize the RHS.
1929
1930 2008-09-08 Jakub Jelinek <jakub@redhat.com>
1931
1932 PR middle-end/37415
1933 * opts.c (common_handle_option): Handle OPT_ftree_store_ccp.
1934
1935 2008-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1936
1937 PR driver/37409
1938 * pa-hpux.h (LINK_SPEC): Strip -fwhole-program.
1939 * pa-hpux10.h (LINK_SPEC): Likewise.
1940 * pa-hpux11.h (LINK_SPEC): Likewise.
1941
1942 2008-09-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1943
1944 * pa32-regs.h (IRA_COVER_CLASSES): Define.
1945 * pa64-regs.h (IRA_COVER_CLASSES): Define.
1946
1947 2008-09-07 Helge Deller <deller@gmx.de>
1948
1949 * pa/linux-atomic.c: New file.
1950 * pa/t-linux (LIB2FUNCS_STATIC_EXTRA): Define.
1951 * pa/t-linux64 (LIB2FUNCS_STATIC_EXTRA): Define.
1952
1953 2008-09-07 Richard Guenther <rguenther@suse.de>
1954 Ira Rosen <irar@il.ibm.com>
1955
1956 PR tree-optimization/36630
1957 * tree-vect-transform.c (vect_update_ivs_after_vectorizer):
1958 Call STRIP_NOPS before calling evolution_part_in_loop_num.
1959
1960 2008-09-07 Dorit Nuzman <dorit@il.ibm.com>
1961 Ira Rosen <irar@il.ibm.com>
1962
1963 PR tree-optimization/35642
1964 * config/rs6000/altivec.md (mulv8hi3): Implement.
1965
1966 2008-09-06 Jeff Law <law@redhat.com>
1967
1968 * h8300/h8300.h (IRA_COVER_CLASSES): Define.
1969
1970 2008-09-06 Jan Hubicka <jh@suse.cz>
1971
1972 PR tree-optimization/14703
1973 * tree-ssa-live.c (remove_unused_scope_block_p): Remove ignored
1974 declarations.
1975 * passes.c (init_optimization_passes): Recompute inline parameters.
1976
1977 2008-09-06 Richard Sandiford <rdsandiford@googlemail.com>
1978
1979 * config/mips/mips.c (mips_function_ok_for_sibcall): Check for
1980 DECL being null.
1981
1982 2008-09-06 Richard Sandiford <rdsandiford@goolemail.com>
1983 Peter Fuerst <post@pfrst.de>
1984
1985 * doc/invoke.texi: Document -mr10k-cache-barrier=.
1986 * doc/extend.texi: Document __builtin_mips_cache.
1987 * config/mips/mips-ftypes.def: Add a (VOID, SI, CVPOINTER) entry.
1988 * config/mips/mips.opt (mr10k-cache-barrier=): New option.
1989 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
1990 __GCC_HAVE_BUILTIN_MIPS_CACHE.
1991 (TARGET_CACHE_BUILTIN, ISA_HAS_CACHE): New macros.
1992 * config/mips/mips.c (mips_r10k_cache_barrier_setting): New enum.
1993 (set_push_mips_isas): New variable.
1994 (mips_r10k_cache_barrier): New variable.
1995 (cache): New availability predicate.
1996 (mips_builtins): Add an entry for __builtin_mips_cache.
1997 (mips_build_cvpointer_type): New function.
1998 (MIPS_ATYPE_CVPOINTER): New macro.
1999 (mips_prepare_builtin_arg): Only use the insn's mode if the rtx's
2000 mode is VOIDmode.
2001 (r10k_simplified_address_p, r10k_simplify_address)
2002 (r10k_uncached_address_p, r10k_safe_address_p)
2003 (r10k_needs_protection_p_1, r10k_needs_protection_p_store)
2004 (r10k_needs_protection_p_call, r10k_needs_protection_p)
2005 (r10k_insert_cache_barriers): New functions.
2006 (mips_reorg_process_insns): Delete cache barriers after a
2007 branch-likely instruction.
2008 (mips_reorg): Call r10k_insert_cache_barriers.
2009 (mips_handle_option): Handle OPT_mr10k_cache_barrier_.
2010 * config/mips/mips.md (UNSPEC_MIPS_CACHE): New constant.
2011 (UNSPEC_R10K_CACHE_BARRIER): Likewise.
2012 (mips_cache, r10k_cache_barrier): New define_insns.
2013
2014 2008-09-06 Richard Sandiford <rdsandiford@googlemail.com>
2015
2016 * ira-int.h (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
2017 * ira-color.c (setup_allocno_left_conflicts_num): Use
2018 hard_reg_set_equal_p instead of a comparison with
2019 ira_zero_hard_reg_set.
2020 * ira.c (setup_reg_subclasses): Likewise.
2021 (setup_cover_and_important_classes): Likewise.
2022 (setup_class_translate): Likewise.
2023 (setup_reg_class_intersect_union): Likewise.
2024 (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
2025 (ira_init_once): Don't initialize them.
2026
2027 2008-09-05 Vladimir Makarov <vmakarov@redhat.com>
2028
2029 * doc/tm.texi (IRA_COVER_CLASSES): Fix a typo.
2030
2031 2008-09-05 Vladimir Makarov <vmakarov@redhat.com>
2032
2033 * ira-color.c (ira_fast_allocation): Permit global allocno allocation.
2034
2035 2008-09-05 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
2036
2037 Improved branch hints, safe hints, and scheduling.
2038
2039 * haifa-sched.c (sched_emit_insn) : Define.
2040 * sched-int.h (sched_emit_insn) : Add prototype.
2041 * doc/invoke.texi (-mdual-nops, -mhint-max-nops,
2042 -mhint-max-distance -msafe-hints) : Document.
2043 * config/spu/spu.c (spu_flag_var_tracking): New.
2044 (TARGET_SCHED_INIT_GLOBAL, TARGET_SCHED_INIT,
2045 TARGET_SCHED_REORDER, TARGET_SCHED_REORDER2,
2046 TARGET_ASM_FILE_START): Define.
2047 (TARGET_SCHED_ADJUST_PRIORITY): Remove.
2048 (STOP_HINT_P, HINTED_P, SCHED_ON_EVEN_P): Define.
2049 (spu_emit_branch_hint): Add blocks argument.
2050 (insert_branch_hints, insert_nops): Remove.
2051 (pad_bb, insert_hbrp_for_ilb_runout, insert_hbrp, in_spu_reorg,
2052 uses_ls_unit, spu_sched_init_global, spu_sched_init,
2053 spu_sched_reorder, asm_file_start): New functions.
2054 (clock_var, spu_sched_length, pipe0_clock,
2055 pipe1_clock, prev_clock_var, prev_priority,
2056 spu_ls_first, prev_ls_clock): New static variables.
2057 * config/spu/spu.h (TARGET_DEFAULT): Add MASK_SAFE_HINTS.
2058 * config/spu.md (iprefetch): Add operand, make it clobber MEM.
2059 (nopn_nv): Add a non-volatile version of nop.
2060 * config/spu/spu.opt (-mdual-nops, -mhint-max-nops,
2061 -mhint-max-distance, -msafe-hints): New options.
2062
2063 2008-09-05 Janis Johnson <janis187@us.ibm.com>
2064 Samuel Tardieu <sam@rfc1149.net>
2065
2066 * opts.c (decode_options): Combine nested if statements.
2067
2068 PR target/37283
2069 * opts.c (decode_options): Handle more relationships among
2070 unit-at-a-time, toplevel-reorder, and section-anchors.
2071
2072 2008-09-05 David Daney <ddaney@avtrex.com>
2073
2074 * doc/install.texi (--enable-reduced-reflection): Document new option.
2075
2076 2008-09-05 Bob Wilson <bob.wilson@acm.org>
2077
2078 * config/xtensa/predicates.md (nonimmed_operand, mem_operand): Use
2079 constantpool_mem_p.
2080 (constantpool_operand): New.
2081 (move_operand): Disallow sub-word modes for the constant pool.
2082 * config/xtensa/xtensa.c (TARGET_SECONDARY_RELOAD): Define.
2083 (xtensa_secondary_reload_class): Replace with....
2084 (xtensa_secondary_reload): this function. Remove SIGN_EXTEND check.
2085 Set icode for sub-word reloads from the constant pool.
2086 * config/xtensa/xtensa.h (SECONDARY_INPUT_RELOAD_CLASS): Delete.
2087 (SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
2088 * config/xtensa/xtensa.md (reload<mode>_literal): New.
2089 * config/xtensa/xtensa-protos.h: Update prototypes.
2090
2091 2008-09-05 Joseph Myers <joseph@codesourcery.com>
2092
2093 * config/mips/mips.h (enum reg_class): Add FRAME_REGS.
2094 (REG_CLASS_NAMES): Update.
2095 (REG_CLASS_CONTENTS): Update.
2096 * config/mips/mips.c (mips_regno_to_class): Use FRAME_REGS instead
2097 of ALL_REGS for regs 77 and 78.
2098 * function.c (instantiate_virtual_regs_in_insn): Assert that
2099 return value of simplify_gen_subreg is not NULL.
2100
2101 2008-09-05 Paolo Bonzini <bonzini@gnu.org>
2102
2103 * emit-rtl.c (gen_rtvec): Rewrite not using gen_rtvec_v.
2104 (gen_rtvec_v): Fix coding standards.
2105
2106 2008-09-04 Jan Hubicka <jh@suse.cz>
2107
2108 * i386.c (decide_alg): Be more conservative about optimizing for size.
2109
2110 2008-09-04 Ian Lance Taylor <iant@google.com>
2111
2112 * varasm.c (narrowing_initializer_constant_valid_p): New
2113 static function.
2114 (initializer_constant_valid_p): Call it.
2115
2116 2008-09-04 Jeff Law <law@redhat.com>
2117
2118 * fold-const.c (native_encode_real): Fix computation of WORDS.
2119 (native_interpret_real): Likewise.
2120
2121 2008-09-04 Janis Johnson <janis187@us.ibm.com>
2122
2123 * config/rs6000/t-rs6000: Remove target gt-rs6000.h.
2124
2125 2008-09-04 Vladimir Makarov <vmakarov@redhat.com>
2126
2127 * ira-conflicts.c (process_regs_for_copy): Check insn to check
2128 that the cost is already taken into account in ira-costs.c
2129
2130 * ira-int.h (ira_debug_copy, ira_debug_copies): New.
2131
2132 * ira-build.c (print_copy, print_copies, ira_debug_copy,
2133 ira_debug_copies): New.
2134 (ira_bulid): Call print_copies.
2135
2136 * doc/tm.texi (IRA_COVER_CLASSES): Fix the description.
2137
2138 2008-09-04 Samuel Tardieu <sam@rfc1149.net>
2139
2140 PR target/32783
2141 * config/rs6000/rs6000.c (optimization_options): Remove check of
2142 flag_toplevel_order.
2143
2144 2008-09-04 Adam Nemet <anemet@caviumnetworks.com>
2145
2146 * config/mips/mips.h (ISA_HAS_SEQ_SNE): New macro.
2147 * config/mips/mips.c (mips_expand_scc): Also expand seq and sne if
2148 second operand is a reg_imm10_operand.
2149 * config/mips/mips.md (*seq_<GPR:mode><GPR2:mode>_seq,
2150 *sne_<GPR:mode><GPR2:mode>_sne): New patterns.
2151 (*seq_<GPR:mode><GPR2:mode>): Rename to
2152 *seq_zero_<GPR:mode><GPR2:mode>. Don't match if
2153 ISA_HAS_SEQ_SNE.
2154 (*seq_<GPR:mode><GPR2:mode>_mips16): Rename to
2155 *seq_zero_<GPR:mode><GPR2:mode>_mip16. Don't match if
2156 ISA_HAS_SEQ_SNE.
2157 (*sne_<GPR:mode><GPR2:mode>): Rename to
2158 *sne_zero_<GPR:mode><GPR2:mode>. Don't match if
2159 ISA_HAS_SEQ_SNE.
2160
2161 2008-09-04 Adam Nemet <anemet@caviumnetworks.com>
2162
2163 * config/mips/mips.h (ISA_HAS_EXTS): New macro.
2164 * config/mips/mips.md (*ashr_trunc<mode>): Name the pattern
2165 combining an arithmetic right shift by more than 31 and a
2166 trunction. Don't match for out-of-range shift amounts. Set
2167 attribute mode to <MODE>.
2168 (*lshr32_trunc<mode>): Name the pattern combining a logical right
2169 shift by 32 and and a truncation. Set attribute mode to <MODE>.
2170 (*<optab>_trunc<mode>_exts): New pattern for truncated right
2171 shifts by less than 32.
2172 (extv): Change predicate on first operand to accept registers.
2173 Change predicate of the other operands from immediate_operand to
2174 const_int_operand. Expand exts when source is a register.
2175 (extzv): Change predicate of the constant operands from
2176 immediate_operand to const_int_operand.
2177 (extzv<mode>): Change predicate of the constant operands from
2178 immediate_operand to const_int_operand and no constraint. Also
2179 remove mode.
2180 (*extzv_trunc<mode>_exts): New pattern.
2181
2182 2008-09-04 Adam Nemet <anemet@caviumnetworks.com>
2183
2184 * config/mips/mips.h (ISA_HAS_CINS): New macro.
2185 * config/mips/mips-protos.h (mask_low_and_shift_p,
2186 mask_low_and_shift_len): Declare.
2187 * config/mips/mips.c (mask_low_and_shift_p,
2188 mask_low_and_shift_len): New functions.
2189 (mips_print_operand): Handle new operand prefix "m".
2190 * config/mips/mips.md (*cins<mode>): New pattern.
2191
2192 2008-09-04 Bernd Schmidt <bernd.schmidt@analog.com>
2193
2194 * config/bfin/bfin.c (gen_one_bundle): Don't create new nops when
2195 optimizing for size.
2196
2197 2008-09-04 Richard Sandiford <rdsandiford@googlemail.com>
2198
2199 * df-scan.c (df_get_entry_block_def_set): Add STACK_POINTER_REGNUM
2200 regardless of epilogue_completed.
2201
2202 2008-09-04 Vladimir Makarov <vmakarov@redhat.com>
2203
2204 PR middle-end/37359
2205 * ira-lives.c (process_bb_node_lives): Check setjmp.
2206
2207 2008-09-04 Richard Sandiford <rdsandiford@googlemail.com>
2208
2209 PR middle-end/37243
2210 * ira-build.c (form_loop_tree): Reverse BB walk.
2211 (create_bb_allocnos): Likewise.
2212 * ira-lives.c (make_regno_born_and_dead, regs_set): Delete.
2213 (mark_reg_store): Rename to...
2214 (mark_ref_live): ...this and take a df_ref argument instead of
2215 note_stores arguments. Assert that we have a register.
2216 (mark_reg_clobber): Delete.
2217 (def_conflicts_with_inputs_p): New function.
2218 (mark_reg_conflicts): Delete.
2219 (mark_reg_death): Rename to...
2220 (mark_ref_dead): ...this and take a df_ref argument instead of
2221 a register. Assert that we have a register.
2222 (process_bb_node_lives): Hoist frequency calculation out of
2223 instruction walk. Convert from a forwards scan to a backwards scan.
2224 Use DF_REF_USES and DF_REF_DEFS instead of register notes and
2225 note_stores. Remove EH_RETURN_DATA_REGNO and regs_set handling.
2226 (create_allocno_live_ranges): Don't create regs_set.
2227
2228 2008-09-04 Ian Lance Taylor <iant@google.com>
2229
2230 * rtl.h (LABEL_REF_NONLOCAL_P): Don't check for REG_LABEL_OPERAND
2231 or REG_LABEL_TARGET.
2232 * calls.c (emit_library_call_value_1): Use MEM_P rather than
2233 comparing MODE with MEM.
2234 * gimple.c (gimple_build_predict): Cast END_PREDICTORS before
2235 comparing with GF_PREDICT_TAKEN.
2236 (gimple_get_lhs): Change code to enum gimple_code.
2237 (gimple_set_lhs): Likewise.
2238 * ifcvt.c (noce_process_if_block): Correct GET_MODE to GET_CODE.
2239 * omp-low.c (find_omp_clause): Change kind parameter to enum
2240 omp_clause_code.
2241 * tree-flow.h (find_omp_clause): Update declaration.
2242 * regrename.c (clear_dead_regs): Change kind parameter to enum
2243 reg_note.
2244 * reload1.c (eliminate_regs_1): Use REG_NOTE_KIND rather than
2245 GET_MODE.
2246 * see.c (see_get_extension_data): Change return type to enum
2247 entry_type. Change UNKNOWN to NOT_RELEVANT, SIGN_EXTEND to
2248 SIGNED_EXTENDED_DEF, ZERO_EXTEND to ZERO_EXTENDED_DEF.
2249 (see_gen_normalized_extension): Change extension_code parameter to
2250 enum entry_type.
2251 (see_seek_pre_extension_expr): Change extension_code to enum
2252 entry_type.
2253 (see_merge_one_def_extension): Likewise.
2254 (see_handle_relevant_defs): Likewise.
2255 (see_handle_relevant_uses): Likewise.
2256 (see_analyze_one_def): Likewise.
2257 * tree-cfg.c (need_fake_edge_p): Compare gimple code with
2258 GIMPLE_ASM rather than ASM_EXPR.
2259 * tree-ssa-alias.c (is_escape_site): Compare gimple code with
2260 GIMPLE_RETURN rather than RETURN_EXPR.
2261 * tree-ssa-ccp.c (likely_value): Change code to enum gimple_code.
2262 (evaluate_stmt): Likewise.
2263 * tree-vect-analyze.c (vect_analyze_operations): Change relevance
2264 to enum vect_relevant.
2265 (vect_mark_stmts_to_be_vectorized): Change assertion to not
2266 compare gimple codes with tree codes.
2267
2268 2008-09-04 Paul Brook <paul@codesourcery.com>
2269
2270 * config/arm/arm.c (arm_size_rtx_costs): Call cost function.
2271
2272 2008-09-04 Bernd Schmidt <bernd.schmidt@analog.com>
2273
2274 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Restore a null
2275 pointer check lost in the recent no-unit-at-a-time patch.
2276
2277 2008-09-04 Jan Hubicka <jh@suse.cz>
2278
2279 PR middle-end/37343
2280 * tree-switch-conversion.c (check_final_bb): Accept only IP
2281 invariants.
2282
2283 2008-09-04 Jan Hubicka <jh@suse.cz>
2284
2285 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
2286 Break out from ...
2287 (vrp_evaluate_conditional_warnv_with_ops): ... this one. Add
2288 using_ranges argument.
2289 (vrp_evaluate_conditional): Avoid bogus warning for type range.
2290 (vrp_visit_cond_stmt): Update call of
2291 vrp_evaluate_conditional_warnv_with_ops
2292
2293 2008-09-04 Jan Hubicka <jh@suse.cz>
2294
2295 PR tree-optimization/37345
2296 PR tree-optimization/37358
2297 PR tree-optimization/37357
2298 * tree.c (build_function_type_skip_args): Build distinct type copy;
2299 set TYPE_CONTEXT.
2300 (build_function_decl_skip_args): Set type of new decl not orig decl;
2301 clear DECL_VINDEX for methods turned into functions.
2302
2303 2008-09-04 Nick Clifton <nickc@redhat.com>
2304
2305 * configure.ac (HAVE_GAS_LCOMM_WITH_ALIGNMENT): New assembler check.
2306 * configure: Regenerate.
2307 * config.in: Regenerate.
2308 * config/i386/bsd.h (ASM_OUTPUT_ALIGNED_LOCAL): Use .lcomm with an
2309 alignment field, if it is supported.
2310
2311 2008-09-04 Kai Tietz <kai.tietz@onevision.com>
2312
2313 * config/i386/t-mingw32 (SHLIB_LC): Change order of import
2314 libraries.
2315
2316 2008-09-03 David Edelsohn <edelsohn@gnu.org>
2317
2318 * config/rs6000/rs6000.c (processor_target_table): Do not
2319 enable VMX for POWER6.
2320
2321 2008-09-03 Anton Blanchard <anton@samba.org>
2322
2323 * config/rs6000/rs6000.c (rs6000_split_lock_test_and_set): Do not
2324 emit memory barrier before operation.
2325
2326 2008-09-03 John David Anglin <dave.anglin@nrc.cnrc.gc.ca>
2327
2328 PR testsuite/37325
2329 * config/pa/pa64-hpux.h (ASM_OUTPUT_EXTERNAL_REAL): Call
2330 default_elf_asm_output_external.
2331
2332 2008-09-03 Jeff Law <law@redhat.com>
2333
2334 * h8300.c (expand_a_shift): Avoid invalid RTL sharing.
2335
2336 2008-09-03 Richard Henderson <rth@redhat.com>
2337
2338 * config/alpha/alpha.c (alpha_split_lock_test_and_set): Move
2339 memory barrier to below the test-and-set.
2340 (alpha_split_lock_test_and_set_12): Likewise.
2341
2342 2008-09-03 Vladimir Makarov <vmakarov@redhat.com>
2343
2344 PR rtl-opt/37243
2345
2346 * ira-int.h (ira_loop_tree_node): Rename mentioned_allocnos to
2347 all_allocnos.
2348
2349 * ira-color.c (print_loop_title): Use all_allocnos.
2350 (color_pass): Ditto. Don't add border_allocnos. Check that
2351 subloop allocno in the correspdoning bitmap all_allocnos.
2352
2353 * ira-emit.c (change_loop): Use all_allocnos.
2354
2355 * ira-build.c (create_loop_tree_nodes, finish_loop_tree_node):
2356 Ditto.
2357 (ira_create_allocno): Set up all_allocnos bit for the created
2358 allocno.
2359 (create_cap_allocno): Remove setting mentioned_allocnos.
2360 (create_insn_allocnos): Ditto.
2361 (remove_unnecessary_allocnos): Use all_allocnos.
2362 (check_allocno_creation): Check that allocnos are in the
2363 corresponding bitmap all_allocnos.
2364
2365 2008-09-03 Vladimir Makarov <vmakarov@redhat.com>
2366
2367 PR rtl-opt/37243
2368
2369 * ira-conflicts.c (REG_SUBREG_P, go_through_subreg): New.
2370 (process_regs_for_copy): Process subregs. Refine check when cost
2371 is taken into account in ira-costs.c.
2372 (process_reg_shuffles): Use REG_SUBREG_P.
2373 (add_insn_allocno_copies): Ditto. Ignore modes.
2374
2375 * ira-color.c (conflict_allocno_vec): New.
2376 (COST_HOP_DIVISOR): New macro.
2377 (update_copy_costs_1): Use it.
2378 (update_conflict_hard_regno_costs): New function.
2379 (assign_hard_reg): Use it.
2380 (ira_color): Allocate and free conflict_allocno_vec.
2381
2382 2008-09-03 Vladimir Makarov <vmakarov@redhat.com>
2383
2384 PR rtl-opt/37296
2385
2386 * ira-int.h (ira_sort_insn_chain): Remove.
2387
2388 * ira.c (basic_block_order_nums, chain_insn_order,
2389 chain_freq_compare, chain_bb_compare, ira_sort_insn_chain): Remove.
2390 (ira): Don't call ira_sort_insn_chain.
2391
2392 * reload1.c (reload): Don't call ira_sort_insn_chain.
2393
2394 2008-09-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
2395
2396 PR middle-end/37293
2397 * cgraphunit.c (update_call_expr): Remove eh regions from statements
2398 which become non throw.
2399 (cgraph_function_versioning): Also clear DECL_WEAK. Call
2400 update_call_expr after updating the flags on the decl.
2401
2402 2008-09-03 Jan Hubicka <jh@suse.cz>
2403
2404 PR tree-optimization/37315
2405 * cgraph.c (cgraph_create_edge): Use gimple_has_body_p.
2406 * cgraphunit.c (verify_cgraph_node): drop gimple_body check.
2407 (cgraph_analyze_functions): Use node->analyzed
2408 (cgraph_mark_functions_to_output): Likewise.
2409 (cgraph_expand_function): All functions can be released after
2410 expanding.
2411 (cgraph_optimize): Use gimple_has_body_p.
2412 * ipa-inline.c (cgraph_clone_inlined_nodes): Use analyzed flag.
2413 (cgraph_decide_inlining_incrementally): Likewise.
2414 (inline_transform): Inline transform.
2415 * tree-inline.c (initialize_cfun): Do now shallow copy structure;
2416 copy fields needed.
2417 (inlinable_function_p): Drop gimple_body check.
2418 (expand_call_inline): Use gimple_has_body_p.
2419 * gimple.c (gimple_has_body_p): New.
2420 * gimple.h (gimple_has_body_p): Add prototype.
2421 * tree-cfg.c (execute_build_cfg): Remove gimple_body.
2422 (dump_function_to_file): Use gimple_has_body_p check.
2423
2424 2008-09-03 Jakub Jelinek <jakub@redhat.com>
2425
2426 PR c++/37346
2427 * gimple.h (gimple_has_substatements): GIMPLE_OMP_CRITICAL has
2428 substatements.
2429 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_CRITICAL.
2430
2431 2008-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
2432
2433 From Michael Frysinger <michael.frysinger@analog.com>
2434 * config/bfin/bfin.c (bfin_cpus[]): Add 0.1 for bf522, bf523, bf524,
2435 bf525, bf526, bf527, bf542, bf544, bf547, bf548, and bf549. Add 0.2
2436 for bf538.
2437
2438 2008-09-03 Hari Sandanagobalane <hariharan@picochip.com>
2439
2440 Add picoChip port.
2441 * doc/extend.texi: Document picoChip builtin functions.
2442 * doc/invoke.texi: Document picoChip options.
2443 * doc/contrib.texi: Add picoChip contribution.
2444 * doc/md.texi: Document picoChip constraints.
2445 * config.gcc: Add picochip-*-*.
2446 * config/picochip/: Add new port.
2447
2448 2008-09-03 Richard Guenther <rguenther@suse.de>
2449
2450 PR tree-optimization/37328
2451 * tree-sra.c (sra_build_assignment): Gimplify properly.
2452 (generate_copy_inout): Take the correct stmt as definition,
2453 remove bogus assert.
2454
2455 2008-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
2456
2457 * config/bfin/bfin.c (bfin_expand_prologue): Honour no_stack_limit
2458 attributes.
2459
2460 From Michael Frysinger <michael.frysinger@analog.com>
2461 * config/bfin/bfin.c (bfin_handle_option): Remove BF561 warning.
2462
2463 2008-09-03 Danny Smith <dannysmith@usrs.sourceforge.net>
2464
2465 * gthr-win32.h (CONST_CAST2): Really make sure CONST_CAST2 is defined.
2466 (__gthread_setspecific): Revert 2008-08-31 change to
2467 __GTHREAD_HIDE_W32API case. Apply it to !__GTHREAD_HIDE_W32API case.
2468
2469 2008-09-02 Aldy Hernandez <aldyh@redhat.com>
2470
2471 * diagnostic.c (error_at): New.
2472 * toplev.h (error_at): New prototype.
2473 * c-typeck.c (build_array_ref): Call error_at instead of error.
2474 Pass location to pedwarn.
2475
2476 2008-09-02 Adam Nemet <anemet@caviumnetworks.com>
2477
2478 * sel-sched.c (sel_hard_regno_rename_ok): Mark arguments unused.
2479
2480 2008-09-02 Jakub Jelinek <jakub@redhat.com>
2481
2482 * dwarf2out.c (tree_add_const_value_attribute): Only handle
2483 VAR_DECL and CONST_DECL.
2484
2485 2008-09-02 H.J. Lu <hongjiu.lu@intel.com>
2486 Jakub Jelinek <jakub@redhat.com>
2487
2488 * config/i386/i386.c (X86_64_VARARGS_SIZE): Removed.
2489 (setup_incoming_varargs_64): Assume cum != NULL. Set/check
2490 ix86_varargs_gpr_size and ix86_varargs_fpr_size. Use
2491 ix86_varargs_gpr_size instead of X86_64_REGPARM_MAX.
2492 Don't set ix86_save_varrargs_registers.
2493 (ix86_setup_incoming_varargs): Assume cum != NULL.
2494 (ix86_va_start): Check ix86_varargs_gpr_size and
2495 ix86_varargs_fpr_size instead of cfun->va_list_gpr_size and
2496 cfun->va_list_fpr_size, respectively. Subtract 8*X86_64_REGPARM_MAX
2497 from frame pointer if ix86_varargs_gpr_size == 0.
2498 (ix86_compute_frame_layout): Updated.
2499 * config/i386/i386.h (ix86_save_varrargs_registers): Removed.
2500 (ix86_varargs_gpr_size): Define.
2501 (ix86_varargs_fpr_size): Likewise.
2502 (machine_function): Remove save_varrargs_registers.
2503 Add varargs_gpr_size and varargs_fpr_size.
2504
2505 2008-09-02 Jakub Jelinek <jakub@redhat.com>
2506
2507 * config/alpha/alpha.c (va_list_skip_additions,
2508 alpha_stdarg_optimize_hook, alpha_gimplify_va_arg_1): Tuplify.
2509 (alpha_gimplify_va_arg): Call unshare_expr on second use of
2510 offset_field.
2511
2512 PR tree-optimization/36766
2513 * tree-cfg.c (gimple_purge_all_dead_eh_edges): Do nothing
2514 for already removed basic blocks.
2515
2516 PR target/36332
2517 * real.c (real_maxval): Clear a lower bit to make real_maxval
2518 match get_max_float for IBM long double format.
2519
2520 2008-09-02 Andreas Schwab <schwab@suse.de>
2521
2522 * configure.ac: Use m4_quote to quote the expansion of m4_do.
2523 * configure: Regenerate.
2524
2525 2008-09-02 Richard Sandiford <rdsandiford@googlemail.com>
2526
2527 * simplify-rtx.c (simplify_binary_operation_1): Check for CONST,
2528 SYMBOL_REF and LABEL_REF when applying plus_constant, instead of
2529 checking for a non-VOID CONSTANT_P.
2530
2531 2008-09-02 Jan Hubicka <jh@suse.cz>
2532
2533 * predict.c (pass_strip_predict_hints): Avoid bugs dump file.
2534 * expmed.c (expand_divmod): Fix test of smod_pow2_cheap and
2535 sdiv_pow2_cheap
2536
2537 2008-09-02 H.J. Lu <hongjiu.lu@intel.com>
2538
2539 * expr.c (emit_group_store): Don't assert stack temp mode size.
2540
2541 2008-09-02 Sebastian Pop <sebastian.pop@amd.com>
2542 Tobias Grosser <grosser@fim.uni-passau.de>
2543 Jan Sjodin <jan.sjodin@amd.com>
2544 Harsha Jagasia <harsha.jagasia@amd.com>
2545 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
2546 Konrad Trifunovic <konrad.trifunovic@inria.fr>
2547 Adrien Eliche <aeliche@isty.uvsq.fr>
2548
2549 Merge from graphite branch.
2550 * graphite.c: New.
2551 * graphite.h: New.
2552 * tree-loop-linear.c (perfect_loop_nest_depth): Export.
2553 * doc/invoke.texi (-floop-block, -floop-interchange,
2554 -floop-strip-mine): Document new flags.
2555 * tree-into-ssa.c (gimple_vec): Moved...
2556 * tree-loop-distribution.c (rdg_component): Moved...
2557 * cfgloopmanip.c: Include tree-flow.h.
2558 (update_dominators_in_loop): New.
2559 (create_empty_if_region_on_edge): New.
2560 (create_empty_loop_on_edge): New.
2561 (loopify): Use update_dominators_in_loop.
2562 * tree-pass.h (pass_graphite_transforms): Declared.
2563 * configure: Regenerate.
2564 * tree-phinodes.c (make_phi_node): Export.
2565 (add_phi_node_to_bb): New, split from create_phi_node.
2566 * tree-chrec.c (for_each_scev_op): New.
2567 * tree-chrec.h (for_each_scev_op): Declared.
2568 * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
2569 (remove_statement): Call get_phi_with_result.
2570 * config.in (HAVE_cloog): Undef.
2571 * gdbinit.in (pgg): New.
2572 * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
2573 * tree-ssa-loop.c (graphite_transforms): New.
2574 (gate_graphite_transforms): New.
2575 (pass_graphite_transforms): New.
2576 * configure.ac (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC,
2577 HAVE_cloog): Defined.
2578 * tree-vectorizer.c (rename_variables_in_bb): Export.
2579 * tree-data-ref.c (dr_may_alias_p): Export.
2580 (stmt_simple_memref_p): New.
2581 (find_data_references_in_stmt): Export.
2582 (find_data_references_in_loop): Export.
2583 (create_rdg_edge_for_ddr): Initialize RDGE_RELATION.
2584 (create_rdg_edges_for_scalar): Initialize RDGE_RELATION.
2585 (create_rdg_vertices): Export.
2586 (build_empty_rdg): New.
2587 (build_rdg): Call build_empty_rdg. Free dependence_relations.
2588 * tree-data-ref.h (rdg_component): ... here.
2589 (scop_p): New.
2590 (struct data_reference): Add a field scop.
2591 (DR_SCOP): New.
2592 (find_data_references_in_loop): Declared.
2593 (find_data_references_in_stmt): Declared.
2594 (create_rdg_vertices): Declared.
2595 (dr_may_alias_p): Declared.
2596 (stmt_simple_memref_p): Declared.
2597 (struct rdg_edge): Add a field ddr_p relation.
2598 (build_empty_rdg): Declared.
2599 * lambda.h (lambda_matrix): Declare a VEC of.
2600 (find_induction_var_from_exit_cond): Declared.
2601 (lambda_vector_compare): New.
2602 * common.opt (fgraphite, floop-strip-mine,
2603 floop-interchange, floop-block): New flags.
2604 * lambda-code.c (find_induction_var_from_exit_cond): Export.
2605 * cfgloop.c (is_loop_exit): New.
2606 * cfgloop.h (is_loop_exit): Declared.
2607 (create_empty_if_region_on_edge): Declared.
2608 (create_empty_loop_on_edge): Declared.
2609 * tree-flow.h (add_phi_node_to_bb): Declared.
2610 (make_phi_node): Declared.
2611 (rename_variables_in_bb): Declared.
2612 (perfect_loop_nest_depth): Declared.
2613 (graphite_transform_loops): Declared.
2614 * Makefile.in (cfgloopmanip.o): Depend on TREE_FLOW_H.
2615 (graphite.o-warn): Add -Wno-error.
2616 (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC): Declared.
2617 (LIBS): Add GMPLIBS, CLOOGLIBS, PPLLIBS.
2618 (INCLUDES): Add PPLINC, CLOOGINC.
2619 (OBJS-common): Add graphite.o.
2620 (graphite.o): Add rule.
2621 * gimple.h (gimple_vec): ... here.
2622 * tree-cfg.c (print_loops): Start printing at ENTRY_BLOCK_PTR.
2623 * passes.c (init_optimization_passes): Schedule
2624 pass_graphite_transforms.
2625
2626 2008-09-02 Samuel Tardieu <sam@rfc1149.net>
2627
2628 PR target/37283
2629 * opts.c (decode_options): Move processing of -fno-unit-at-a-time
2630 and -fno-toplevel-reorder after handle_options.
2631
2632 2008-09-02 Paul Brook <paul@codesourcery.com>
2633
2634 * config/arm/arm.c (arm_tune_cortex_a9): Define.
2635 (arm_override_options): Set arm_tune_cortex_a9.
2636 (arm_rtx_costs_1): Make register shifts more expensive on Cortex-A9.
2637 (arm_issue_rate): Handle cortexa9.
2638 * config/arm/arm.h (arm_tune_cortex_a9): Declare.
2639 * config/arm/arm-cores.def: Add cortex-a9.
2640 * config/arm/arm-tune.md: Regenerate.
2641 * config/arm/arm.md: Include cortex-a9.md.
2642 (generic_sched, generic_vfp): Add cortexa9.
2643 * config/arm/cortex-a9.md: New file.
2644
2645 2008-09-02 Richard Guenther <rguenther@suse.de>
2646
2647 PR tree-optimization/37327
2648 * tree-vrp.c (register_new_assert_for): Make sure to not have
2649 TREE_OVERFLOW set on the bound.
2650
2651 2008-09-02 Alexander Monakov <amonakov@ispras.ru>
2652
2653 Fixed typo in date of the 2008-09-01 MOVE_RATIO commit.
2654
2655 * config/ia64/ia64.opt (msched-ar-data-spec): Default to 1.
2656 * config/ia64/ia64.c (ia64_set_sched_flags): Always initialize
2657 spec_info->mask.
2658
2659 2008-09-02 Victor Kaplansky <victork@il.ibm.com>
2660
2661 * gcc/config/spu/spu.md (divdf3): Removed.
2662
2663 2008-09-02 Jakub Jelinek <jakub@redhat.com>
2664
2665 PR tree-optimization/37095
2666 * cgraph.c (cgraph_node): When creating new cgraph node after
2667 assembler_name_hash has been populated, record it in the hash
2668 table.
2669
2670 2008-09-01 Paul Brook <paul@codesourcery.com>
2671
2672 * doc/invoke.texi: Document -mword-relocations.
2673 * config/arm/uclinux-elf.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
2674 * config/arm/symbian.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
2675 * config/arm/vxworks.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
2676 * config/arm/arm.c (arm_split_constant): Use arm_emit_movpair.
2677 (arm_rtx_costs_1, arm_size_rtx_costs): Handle HIGH and LO_SUM.
2678 (arm_emit_movpair): New function.
2679 (arm_print_operand <c>): Handle sybolic addresses.
2680 * config/arm/arm.h (TARGET_USE_MOVT): Define.
2681 (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
2682 * config/arm/arm-protos.h (arm_emit_movpair): Add prototype.
2683 * config/arm/arm.opt: Add -mword-relocations.
2684 * config/arm/arm.md (movsi): Use arm_emit_movpair.
2685 (arm_movt, arm_movw): New.
2686
2687 2008-09-01 Paul Brook <paul@codesourcery.com>
2688
2689 * config/arm/arm.c (arm_override_options): Set arm_abi earlier.
2690 Allow Interworking on ARMv4 EABI based targets.
2691 * config/arm/bpabi.h (TARGET_FIX_V4BX_SPEC): Define.
2692 (SUBTARGET_EXTRA_ASM_SPEC, LINK_SPEC): Add TARGET_FIX_V4BX_SPEC.
2693
2694 2008-09-01 Paul Brook <paul@codesourcery.com>
2695
2696 * config/arm/thumb2.md (thumb2_negscc): Match the correct operand for
2697 optimized LT0 test. Remove optimization for GT.
2698
2699 2008-09-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2700
2701 * pa64-hpux.h (LIB_SPEC): Link against librt when building static
2702 openmp applications.
2703 * pa-hpux11.h (LIB_SPEC): Likewise.
2704
2705 * ira.c (setup_eliminable_regset): Only declare i if ELIMINABLE_REGS
2706 is defined.
2707
2708 2008-09-01 Jan Hubicka <jh@suse.cz>
2709
2710 * predict.c (maybe_hot_count_p, maybe_hot_edge_p): When profile is
2711 present, use only counts; when guessed use only frequencies.
2712 (estimate_bb_frequencies): Use function_frequency.
2713 * profile.c (compute_branch_probabilities): Exit early when
2714 profile reading failed. Set profile_status.
2715 (branch_prob): Do not set profile_status.
2716
2717 2008-09-01 Aldy Hernandez <aldyh@redhat.com>
2718
2719 * tree.c (protected_set_expr_location): New.
2720 * tree.h (protected_set_expr_location): New prototype.
2721 * c-tree.h (build_array_ref): Add argument.
2722 (parser_build_unary_op): Same.
2723 * c-typeck.c (build_indirect_ref): Handle new location argument.
2724 (build_array_ref): Same.
2725 (parser_build_unary_op): Same.
2726 * gimplify.c (gimplify_asm_expr): Set input_location before calling
2727 error.
2728 * c-omp.c (c_finish_omp_atomic): Pass location when calling
2729 build_indirect_ref.
2730 * c-common.c (finish_label_address_expr): Handle new location argument.
2731 * c-common.h (build_indirect_ref): Add argument.
2732 (finish_label_address_expr): Same.
2733 * c-parser.c (c_parser_unary_expression): Pass location to build
2734 functions.
2735 (c_parser_postfix_expression): Same.
2736
2737 2008-09-01 Paul Brook <paul@codesourcery.com>
2738
2739 * config/arm/arm.md: Include cortex-r4f.md.
2740 (attr fpu): Update type list.
2741 (attr type): Add fcpys, ffariths, ffarithd, fadds, faddd, fconsts,
2742 fconstd, fcmps and fcmpd.
2743 (attr tune_cortexr4): Define.
2744 (attr generic_sched, attr generic_vfp): Use tune_cortexr4.
2745 * config/arm/vfp.md: Document fcpys, ffariths, ffarithd, fadds, faddd,
2746 fconsts, fconstd, fcmps and fcmpd. Use them in insn patterns.
2747 * config/arm/arm.c (arm_issue_rate): Add cortexr4f.
2748 * config/arm/arm1020e.md (v10_ffarith, v10_farith): Use new insn types.
2749 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_add_sub,
2750 cortex_a8_vfp_farith: Ditto.
2751 * config/arm/vfp11.md (vfp_ffarith, vfp_farith): Ditto.
2752 * config/arm/cortex-r4.md: Use tune_cortexr4.
2753 * config/arm/cortex-r4f.md: New file.
2754
2755 2008-09-01 Richard Guenther <rguenther@suse.de>
2756
2757 PR tree-optimization/37305
2758 * tree-ssa-ccp.c (ccp_fold): Do not set TREE_OVERFLOW on
2759 the result of constant conversions.
2760 (fold_gimple_assign): Likewise.
2761
2762 2008-09-01 Andrey Belevantsev <abel@ispras.ru>
2763
2764 * sel-sched-ir.c (cmp_v_in_regset_pool): Surround with
2765 #ifdef ENABLE_CHECKING.
2766
2767 2008-09-01 Andrey Belevantsev <abel@ispras.ru>
2768
2769 * sel-sched-dump.c: Surround with #ifdef INSN_SCHEDULING.
2770 * sched-int.h (print_insn, print_pattern, print_value): Declare also
2771 when !INSN_SCHEDULING.
2772
2773 2008-09-01 Andreas Schwab <schwab@suse.de>
2774
2775 * config/ia64/ia64.c (TARGET_ADDRESS_COST): Update.
2776
2777 2008-09-01 Paul Brook <paul@codesourcery.com>
2778
2779 * config/arm/arm.c (arm_no_early_mul_dep): Handle multiply-subtract.
2780
2781 2008-09-01 Jan Hubicka <jh@suse.cz>
2782
2783 * config/spu/spu.c (spu_expand_block_move) Update call of MOVE_RATIO.
2784
2785 * expr.c (MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P, SET_BY_PIECES_P):
2786 Pass speed operand.
2787 * expr.h (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Update.
2788 * gimplify.c (gimplify_init_constructor): Add speed operand.
2789 * tree-sra.c (decide_block_copy): Likewise.
2790 * tree-inline.c (estimate_move_cost): Likewise.
2791 * config/alpha/alpha.h (MOVE_RATIO): Update.
2792 * config/frv/frv.c (MOVE_RATIO): Update.
2793 * config/spu/spu.h (MOVE_RATIO): Update.
2794 * config/sparc/sparc.h (MOVE_RATIO): Update.
2795 * config/i386/i386.h (MOVE_RATIO, CLEAR_RATIO): Update.
2796 * config/m68hc11/m68hc11.h (MOVE_RATIO): Update.
2797 * config/cris/cris.h (MOVE_RATIO): Update.
2798 * config/mn10300/mn10300.h (MOVE_RATIO): Update.
2799 * config/arm/arm.h (MOVE_RATIO): Update.
2800 * config/pa/pa.md: Update uses of MOVE_RATIO
2801 * config/pa/pa.h (MOVE_RATIO): Update.
2802 * config/mips/mips.h (MOVE_RATIO, MOVE_BY_PIECES,
2803 CLEAR_RATIO, SET_RATIO): Update.
2804 * config/h8300/h8300.h (MOVE_RATIO): Update.
2805 * config/v850/v850.h (MOVE_RATIO): Update.
2806 * config/bfin/bfin.h (MOVE_RATIO): Update.
2807
2808 2008-08-31 Andrey Belevantsev <abel@ispras.ru>
2809 Dmitry Melnik <dm@ispras.ru>
2810 Dmitry Zhurikhin <zhur@ispras.ru>
2811 Alexander Monakov <amonakov@ispras.ru>
2812 Maxim Kuvyrkov <maxim@codesourcery.com>
2813
2814 * sel-sched.h, sel-sched-dump.h, sel-sched-ir.h, sel-sched.c,
2815 sel-sched-dump.c, sel-sched-ir.c: New files.
2816 * Makefile.in (OBJS-common): Add selective scheduling object files.
2817 (sel-sched.o, sel-sched-dump.o, sel-sched-ir.o): New entries.
2818 (SEL_SCHED_IR_H, SEL_SCHED_DUMP_H): New entries.
2819 (sched-vis.o): Add dependency on $(INSN_ATTR_H).
2820 * cfghooks.h (get_cfg_hooks, set_cfg_hooks): New prototypes.
2821 * cfghooks.c (get_cfg_hooks, set_cfg_hooks): New functions.
2822 (make_forwarder_block): Update loop latch if we have redirected
2823 the loop latch edge.
2824 * cfgloop.c (get_loop_body_in_custom_order): New function.
2825 * cfgloop.h (LOOPS_HAVE_FALLTHRU_PREHEADERS): New enum field.
2826 (CP_FALLTHRU_PREHEADERS): Likewise.
2827 (get_loop_body_in_custom_order): Declare.
2828 * cfgloopmanip.c (has_preds_from_loop): New.
2829 (create_preheader): Honor CP_FALLTHRU_PREHEADERS.
2830 Assert that the preheader edge will be fall thru when it is set.
2831 * common.opt (fsel-sched-bookkeeping, fsel-sched-pipelining,
2832 fsel-sched-pipelining-outer-loops, fsel-sched-renaming,
2833 fsel-sched-substitution, fselective-scheduling): New flags.
2834 * cse.c (hash_rtx_cb): New.
2835 (hash_rtx): Use it.
2836 * dbgcnt.def (sel_sched_cnt, sel_sched_region_cnt,
2837 sel_sched_insn_cnt): New counters.
2838 * final.c (compute_alignments): Export. Free dominance
2839 info after loop_optimizer_finalize.
2840 * genattr.c (main): Output maximal_insn_latency prototype.
2841 * genautomata.c (output_default_latencies): New.
2842 Factor its code from ...
2843 (output_internal_insn_latency_func): ... here.
2844 (output_internal_maximal_insn_latency_func): New.
2845 (output_maximal_insn_latency_func): New.
2846 * hard-reg-set.h (UHOST_BITS_PER_WIDE_INT): Define unconditionally.
2847 (struct hard_reg_set_iterator): New.
2848 (hard_reg_set_iter_init, hard_reg_set_iter_set,
2849 hard_reg_set_iter_next): New functions.
2850 (EXECUTE_IF_SET_IN_HARD_REG_SET): New macro.
2851 * lists.c (remove_free_INSN_LIST_node,
2852 remove_free_EXPR_LIST_node): New functions.
2853 * loop-init.c (loop_optimizer_init): When
2854 LOOPS_HAVE_FALLTHRU_PREHEADERS, set CP_FALLTHRU_PREHEADERS when
2855 calling create_preheaders.
2856 (loop_optimizer_finalize): Do not verify flow info after reload.
2857 * recog.c (validate_replace_rtx_1): New parameter simplify.
2858 Default it to true. Update all uses. Factor out simplifying
2859 code to ...
2860 (simplify_while_replacing): ... this new function.
2861 (validate_replace_rtx_part,
2862 validate_replace_rtx_part_nosimplify): New.
2863 * recog.h (validate_replace_rtx_part,
2864 validate_replace_rtx_part_nosimplify): Declare.
2865 * rtl.c (rtx_equal_p_cb): New.
2866 (rtx_equal_p): Use it.
2867 * rtl.h (rtx_equal_p_cb, hash_rtx_cb): Declare.
2868 (remove_free_INSN_LIST_NODE, remove_free_EXPR_LIST_node,
2869 debug_bb_n_slim, debug_bb_slim, print_rtl_slim): Likewise.
2870 * vecprim.h: Add a vector type for unsigned int.
2871 * haifa-sched.c: Include vecprim.h and cfgloop.h.
2872 (issue_rate, sched_verbose_param, note_list, dfa_state_size,
2873 ready_try, cycle_issued_insns, spec_info): Make global.
2874 (readyp): Initialize.
2875 (dfa_lookahead): New global variable.
2876 (old_max_uid, old_last_basic_block): Remove.
2877 (h_i_d): Make it a vector.
2878 (INSN_TICK, INTER_TICK, QUEUE_INDEX, INSN_COST): Make them work
2879 through HID macro.
2880 (after_recovery, adding_bb_to_current_region_p):
2881 New variables to handle correct insertion of the recovery code.
2882 (struct ready_list): Move declaration to sched-int.h.
2883 (rgn_n_insns): Removed.
2884 (rtx_vec_t): Move to sched-int.h.
2885 (find_insn_reg_weight): Remove.
2886 (find_insn_reg_weight1): Rename to find_insn_reg_weight.
2887 (haifa_init_h_i_d, haifa_finish_h_i_d):
2888 New functions to initialize / finalize haifa instruction data.
2889 (extend_h_i_d, init_h_i_d): Rewrite.
2890 (unlink_other_notes): Move logic to add_to_note_list. Handle
2891 selective scheduler.
2892 (ready_lastpos, ready_element, ready_sort, reemit_notes,
2893 find_fallthru_edge): Make global, remove static prototypes.
2894 (max_issue): Make global. Add privileged_n and state parameters. Use
2895 them.
2896 (extend_global, extend_all): Removed.
2897 (init_before_recovery): Add new param. Fix the handling of the case
2898 when we insert a recovery code before the EXIT which has a predecessor
2899 with a fallthrough edge to it.
2900 (create_recovery_block): Make global. Rename to
2901 sched_create_recovery_block. Update.
2902 (change_pattern): Rename to sched_change_pattern. Make global.
2903 (speculate_insn): Rename to sched_speculate_insn. Make global.
2904 Split haifa-specific functionality into ...
2905 (haifa_change_pattern): New static function.
2906 (sched_extend_bb): New static function.
2907 (sched_init_bbs): New function.
2908 (current_sched_info): Change type to struct haifa_sched_info.
2909 (insn_cost): Adjust for selective scheduling.
2910 (dep_cost_1): New function. Move logic from ...
2911 (dep_cost): ... here.
2912 (dep_cost): Use dep_cost_1.
2913 (contributes_to_priority_p): Use sched_deps_info instead of
2914 current_sched_info.
2915 (priority): Adjust to work with selective scheduling. Process the
2916 corner case when all dependencies don't contribute to priority.
2917 (rank_for_schedule): Use ds_weak instead of dep_weak.
2918 (advance_state): New function. Move logic from ...
2919 (advance_one_cycle): ... here.
2920 (add_to_note_list, concat_note_lists): New functions.
2921 (rm_other_notes): Make static. Adjust for selective scheduling.
2922 (remove_notes, restore_other_notes): New functions.
2923 (move_insn): Add two arguments. Update assert. Don't call
2924 reemit_notes.
2925 (choose_ready): Remove lookahead variable, use dfa_lookahead.
2926 Remove more_issue, max_points. Move the code to initialize
2927 max_lookahead_tries to max_issue.
2928 (schedule_block): Remove rgn_n_insns1 parameter. Don't allocate
2929 ready. Adjust use of move_insn. Call restore_other_notes.
2930 (luid): Remove.
2931 (sched_init, sched_finish): Move Haifa-specific initialization/
2932 finalization to ...
2933 (haifa_sched_init, haifa_sched_finish): ... respectively.
2934 New functions.
2935 (setup_sched_dump): New function.
2936 (haifa_init_only_bb): New static function.
2937 (haifa_speculate_insn): New static function.
2938 (try_ready): Use haifa_* instead of speculate_insn and change_pattern.
2939 (extend_ready, extend_all): Remove.
2940 (sched_extend_ready_list, sched_finish_ready_list): New functions.
2941 (create_check_block_twin, add_to_speculative_block): Use
2942 haifa_insns_init instead of extend_global. Update to use new
2943 initialization functions. Change parameter. Factor out code from
2944 create_check_block_twin to ...
2945 (sched_create_recovery_edges) ... this new function.
2946 (add_block): Remove.
2947 (sched_scan_info): New.
2948 (extend_bb): Use sched_scan_info.
2949 (init_bb, extend_insn, init_insn, init_insns_in_bb, sched_scan): New
2950 static functions for walking through scheduling region.
2951 (sched_luids): New vector variable to replace uid_to_luid.
2952 (luids_extend_insn): New function.
2953 (sched_max_luid): New variable.
2954 (luids_init_insn): New function.
2955 (sched_init_luids, sched_finish_luids): New functions.
2956 (insn_luid): New debug function.
2957 (sched_extend_target): New function.
2958 (haifa_init_insn): New static function.
2959 (sched_init_only_bb): New hook.
2960 (sched_split_block): New hook.
2961 (sched_split_block_1): New function.
2962 (sched_create_empty_bb): New hook.
2963 (sched_create_empty_bb_1): New function.
2964 (common_sched_info, ready): New global variables.
2965 (current_sched_info_var): Remove.
2966 (move_block_after_check): Use common_sched_info.
2967 (haifa_luid_for_non_insn): New static function.
2968 (init_before_recovery): Use haifa_init_only_bb instead of add_block.
2969 (increase_insn_priority): New.
2970 * modulo-sched.c: (issue_rate): Remove static declaration.
2971 (sms_sched_info): Change type to haifa_sched_info.
2972 (sms_sched_deps_info, sms_common_sched_info): New variables.
2973 (setup_sched_infos): New.
2974 (sms_schedule): Initialize them. Call haifa_sched_init/finish.
2975 Do not call regstat_free_calls_crossed.
2976 (sms_print_insn): Use const_rtx.
2977 * params.def (PARAM_MAX_PIPELINE_REGION_BLOCKS,
2978 PARAM_MAX_PIPELINE_REGION_INSNS, PARAM_SELSCHED_MAX_LOOKAHEAD,
2979 PARAM_SELSCHED_MAX_SCHED_TIMES, PARAM_SELSCHED_INSNS_TO_RENAME,
2980 PARAM_SCHED_MEM_TRUE_DEP_COST): New.
2981 * sched-deps.c (sched_deps_info): New. Update all relevant uses of
2982 current_sched_info to use it.
2983 (enum reg_pending_barrier_mode): Move to sched-int.h.
2984 (h_d_i_d): New variable. Initialize to NULL.
2985 ({true, output, anti, spec, forward}_dependency_cache): Initialize
2986 to NULL.
2987 (estimate_dep_weak): Remove static declaration.
2988 (sched_has_condition_p): New function. Adjust users of
2989 sched_get_condition to use it instead.
2990 (conditions_mutex_p): Add arguments indicating which conditions are
2991 reversed. Use them.
2992 (sched_get_condition_with_rev): Rename from sched_get_condition. Add
2993 argument to indicate whether returned condition is reversed. Do not
2994 generate new rtx when condition should be reversed; indicate it by
2995 setting new argument instead.
2996 (add_dependence_list_and_free): Add deps parameter.
2997 Update all users. Do not free dependence list when
2998 deps context is readonly.
2999 (add_insn_mem_dependence, flush_pending_lists): Adjust for readonly
3000 contexts.
3001 (remove_from_dependence_list, remove_from_both_dependence_lists): New.
3002 (remove_from_deps): New. Use the above functions.
3003 (cur_insn, can_start_lhs_rhs_p): New static variables.
3004 (add_or_update_back_dep_1): Initialize present_dep_type.
3005 (haifa_start_insn, haifa_finish_insn, haifa_note_reg_set,
3006 haifa_note_reg_clobber, haifa_note_reg_use, haifa_note_mem_dep,
3007 haifa_note_dep): New functions implementing dependence hooks for
3008 the Haifa scheduler.
3009 (note_reg_use, note_reg_set, note_reg_clobber, note_mem_dep,
3010 note_dep): New functions.
3011 (ds_to_dt, extend_deps_reg_info, maybe_extend_reg_info_p): New
3012 functions.
3013 (init_deps): Initialize last_reg_pending_barrier and deps->readonly.
3014 (free_deps): Initialize deps->reg_last.
3015 (sched_analyze_reg, sched_analyze_1, sched_analyze_2,
3016 sched_analyze_insn): Update to use dependency hooks infrastructure
3017 and readonly contexts.
3018 (deps_analyze_insn): New function. Move part of logic from ...
3019 (sched_analyze): ... here. Also move some logic to ...
3020 (deps_start_bb): ... here. New function.
3021 (add_forw_dep, delete_forw_dep): Guard use of INSN_DEP_COUNT with
3022 sel_sched_p.
3023 (sched_deps_init): New function. Move code from ...
3024 (init_dependency_caches): ... here. Remove.
3025 (init_deps_data_vector): New.
3026 (sched_deps_finish): New function. Move code from ...
3027 (free_dependency_caches): ... here. Remove.
3028 (init_deps_global, finish_deps_global): Adjust for use with
3029 selective scheduling.
3030 (get_dep_weak): Move logic to ...
3031 (get_dep_weak_1): New function.
3032 (ds_merge): Move logic to ...
3033 (ds_merge_1): New static function.
3034 (ds_full_merge, ds_max_merge, ds_get_speculation_types): New functions.
3035 (ds_get_max_dep_weak): New function.
3036 * sched-ebb.c (sched_n_insns): Rename to sched_rgn_n_insns.
3037 (n_insns): Rename to rgn_n_insns.
3038 (debug_ebb_dependencies): New function.
3039 (init_ready_list): Use it.
3040 (begin_schedule_ready): Use sched_init_only_bb.
3041 (ebb_print_insn): Indicate when an insn starts a new cycle.
3042 (contributes_to_priority, compute_jump_reg_dependencies,
3043 add_remove_insn, fix_recovery_cfg): Add ebb_ prefix to function names.
3044 (add_block1): Remove to ebb_add_block.
3045 (ebb_sched_deps_info, ebb_common_sched_info): New variables.
3046 (schedule_ebb): Initialize them. Use remove_notes instead of
3047 rm_other_notes. Use haifa_local_init/finish.
3048 (schedule_ebbs): Use haifa_sched_init/finish.
3049 * sched-int.h: Include vecprim.h, remove rtl.h.
3050 (struct ready_list): Delete declaration.
3051 (sched_verbose_param, enum sched_pass_id_t,
3052 bb_vec_t, insn_vec_t, rtx_vec_t): New.
3053 (struct sched_scan_info_def): New structure.
3054 (sched_scan_info, sched_scan, sched_init_bbs,
3055 sched_init_luids, sched_finish_luids, sched_extend_target,
3056 haifa_init_h_i_d, haifa_finish_h_i_d): Declare.
3057 (struct common_sched_info_def): New.
3058 (common_sched_info, haifa_common_sched_info,
3059 sched_emulate_haifa_p): Declare.
3060 (sel_sched_p): New.
3061 (sched_luids): Declare.
3062 (INSN_LUID, LUID_BY_UID, SET_INSN_LUID): Declare.
3063 (sched_max_luid, insn_luid): Declare.
3064 (note_list, remove_notes, restore_other_notes, bb_note): Declare.
3065 (sched_insns_init, sched_insns_finish, xrecalloc, reemit_notes,
3066 print_insn, print_pattern, print_value, haifa_classify_insn,
3067 sel_find_rgns, sel_mark_hard_insn, dfa_state_size, advance_state,
3068 setup_sched_dump, sched_init, sched_finish,
3069 sel_insn_is_speculation_check): Export.
3070 (struct ready_list): Move from haifa-sched.c.
3071 (ready_try, ready, max_issue): Export.
3072 (ebb_compute_jump_reg_dependencies, find_fallthru_edge,
3073 sched_init_only_bb, sched_split_block, sched_split_block_1,
3074 sched_create_empty_bb, sched_create_empty_bb_1,
3075 sched_create_recovery_block, sched_create_recovery_edges): Export.
3076 (enum reg_pending_barrier_mode): Export.
3077 (struct deps): New fields `last_reg_pending_barrier' and `readonly'.
3078 (deps_t): New.
3079 (struct sched_info): Rename to haifa_sched_info. Use const_rtx for
3080 print_insn field. Move add_block and fix_recovery_cfg to
3081 common_sched_info_def. Move compute_jump_reg_dependencies,
3082 use_cselib ...
3083 (struct sched_deps_info_def): ... this new structure.
3084 (sched_deps_info): Declare.
3085 (struct spec_info_def): Remove weakness_cutoff, add
3086 data_weakness_cutoff and control_weakness_cutoff.
3087 (spec_info): Declare.
3088 (struct _haifa_deps_insn_data): Split from haifa_insn_data. Add
3089 dep_count field.
3090 (struct haifa_insn_data): Rename to struct _haifa_insn_data.
3091 (haifa_insn_data_def, haifa_insn_data_t): New typedefs.
3092 (current_sched_info): Change type to struct haifa_sched_info.
3093 (haifa_deps_insn_data_def, haifa_deps_insn_data_t): New typedefs.
3094 (h_d_i_d): New variable.
3095 (HDID): New accessor macro.
3096 (h_i_d): Change type to VEC (haifa_insn_data_def, heap) *.
3097 (HID): New accessor macro. Rewrite h_i_d accessor macros through HID
3098 and HDID.
3099 (IS_SPECULATION_CHECK_P): Update for selective scheduler.
3100 (enum SCHED_FLAGS): Update for selective scheduler.
3101 (enum SPEC_SCHED_FLAGS): New flag SEL_SCHED_SPEC_DONT_CHECK_CONTROL.
3102 (init_dependency_caches, free_dependency_caches): Delete declarations.
3103 (deps_analyze_insn, remove_from_deps, get_dep_weak_1,
3104 estimate_dep_weak, ds_full_merge, ds_max_merge, ds_weak,
3105 ds_get_speculation_types, ds_get_max_dep_weak, sched_deps_init,
3106 sched_deps_finish, haifa_note_reg_set, haifa_note_reg_use,
3107 haifa_note_reg_clobber, maybe_extend_reg_info_p, deps_start_bb,
3108 ds_to_dt): Export.
3109 (rm_other_notes): Delete declaration.
3110 (schedule_block): Remove one argument.
3111 (cycle_issued_insns, issue_rate, dfa_lookahead, ready_sort,
3112 ready_element, ready_lastpos, sched_extend_ready_list,
3113 sched_finish_ready_list, sched_change_pattern, sched_speculate_insn,
3114 concat_note_lists): Export.
3115 (struct region): Move from sched-rgn.h.
3116 (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
3117 RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
3118 BLOCK_TO_BB, CONTAINING_RGN): Export.
3119 (ebb_head, BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB, INSN_BB): Likewise.
3120 (current_nr_blocks, current_blocks, target_bb): Likewise.
3121 (dep_cost_1, sched_is_disabled_for_current_region_p, sched_rgn_init,
3122 sched_rgn_finish, rgn_setup_region, sched_rgn_compute_dependencies,
3123 sched_rgn_local_init, extend_regions,
3124 rgn_make_new_region_out_of_new_block, compute_priorities,
3125 debug_rgn_dependencies, free_rgn_deps, contributes_to_priority,
3126 extend_rgns, deps_join rgn_setup_common_sched_info,
3127 rgn_setup_sched_infos, debug_regions, debug_region, dump_region_dot,
3128 dump_region_dot_file, haifa_sched_init, haifa_sched_finish): Export.
3129 (get_rgn_sched_max_insns_priority, sel_add_to_insn_priority,
3130 increase_insn_priority): Likewise.
3131 * sched-rgn.c: Include sel-sched.h.
3132 (ref_counts): New static variable. Use it ...
3133 (INSN_REF_COUNT): ... here. Rewrite and move closer to uses.
3134 (FED_BY_SPEC_LOAD, IS_LOAD_INSN): Rewrite to use HID accessor macro.
3135 (sched_is_disabled_for_current_region_p): Delete static declaration.
3136 (struct region): Move to sched-int.h.
3137 (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
3138 ebb_head): Define and initialize.
3139 (RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
3140 BLOCK_TO_BB, CONTAINING_RGN, debug_regions, extend_regions,
3141 BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB): Move to
3142 sched-int.h.
3143 (find_single_block_region): Add new argument to indicate that EBB
3144 regions should be constructed.
3145 (debug_live): Delete declaration.
3146 (current_nr_blocks, current_blocks, target_bb):
3147 Remove static qualifiers.
3148 (compute_dom_prob_ps, check_live, update_live, set_spec_fed): Delete
3149 declaration.
3150 (init_regions): Delete declaration.
3151 (debug_region, bb_in_region_p, dump_region_dot_file, dump_region_dot,
3152 rgn_estimate_number_of_insns): New.
3153 (too_large): Use estimate_number_of_insns.
3154 (haifa_find_rgns): New. Move the code from ...
3155 (find_rgns): ... here. Call either sel_find_rgns or haifa_find_rgns.
3156 (free_trg_info): New.
3157 (compute_trg_info): Allocate candidate tables here instead of ...
3158 (init_ready_list): ... here.
3159 (rgn_print_insn): Use const_rtx.
3160 (contributes_to_priority, extend_regions): Delete static declaration.
3161 (add_remove_insn, fix_recovery_cfg): Add rgn_ to function names.
3162 (add_block1): Rename to rgn_add_block.
3163 (debug_rgn_dependencies): Delete static qualifier.
3164 (new_ready): Use sched_deps_info. Simplify.
3165 (rgn_common_sched_info, rgn_const_sched_deps_info,
3166 rgn_const_sel_sched_deps_info, rgn_sched_deps_info, rgn_sched_info):
3167 New.
3168 (region_sched_info): Rename to rgn_const_sched_info.
3169 (deps_join): New, extracted from ...
3170 (propagate_deps): ... here.
3171 (compute_block_dependences, debug_dependencies): Update for selective
3172 scheduling.
3173 (free_rgn_deps, compute_priorities): New functions.
3174 (sched_rgn_init, sched_rgn_finish, rgn_setup_region,
3175 sched_rgn_compute_dependencies): New functions.
3176 (schedule_region): Use them.
3177 (sched_rgn_local_init, sched_rgn_local_free, sched_rgn_local_finish,
3178 rgn_setup_common_sched_info, rgn_setup_sched_infos):
3179 New functions.
3180 (schedule_insns): Call new functions that were split out.
3181 (rgn_make_new_region_out_of_new_block): New.
3182 (get_rgn_sched_max_insns_priority): New.
3183 (rest_of_handle_sched, rest_of_handle_sched2): Call selective
3184 scheduling when appropriate.
3185 * sched-vis.c: Include insn-attr.h.
3186 (print_value, print_pattern): Make global.
3187 (print_rtl_slim, debug_bb_slim, debug_bb_n_slim): New functions.
3188 * target-def.h (TARGET_SCHED_ADJUST_COST_2,
3189 TARGET_SCHED_ALLOC_SCHED_CONTEXT, TARGET_SCHED_INIT_SCHED_CONTEXT,
3190 TARGET_SCHED_SET_SCHED_CONTEXT, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
3191 TARGET_SCHED_FREE_SCHED_CONTEXT, TARGET_SCHED_GET_INSN_CHECKED_DS,
3192 TARGET_SCHED_GET_INSN_SPEC_DS, TARGET_SCHED_SKIP_RTX_P): New target
3193 hooks. Initialize them to 0.
3194 (TARGET_SCHED_GEN_CHECK): Rename to TARGET_SCHED_GEN_SPEC_CHECK.
3195 * target.h (struct gcc_target): Add them. Rename gen_check field to
3196 gen_spec_check.
3197 * flags.h (sel_sched_switch_set): Declare.
3198 * opts.c (sel_sched_switch_set): New variable.
3199 (decode_options): Unset flag_sel_sched_pipelining_outer_loops if
3200 pipelining is disabled from command line.
3201 (common_handle_option): Record whether selective scheduling is
3202 requested from command line.
3203 * doc/invoke.texi: Document new flags and parameters.
3204 * doc/tm.texi: Document new target hooks.
3205 * config/ia64/ia64.c (TARGET_SCHED_GEN_SPEC_CHECK): Define to
3206 ia64_gen_check.
3207 (dfa_state_size): Do not declare locally.
3208 * config/ia64/ia64.opt (msched-ar-data-spec): Default to 0.
3209 * config/rs6000/rs6000.c (rs6000_init_sched_context,
3210 rs6000_alloc_sched_context, rs6000_set_sched_context,
3211 rs6000_free_sched_context): New functions.
3212 (struct _rs6000_sched_context): New.
3213 (rs6000_sched_reorder2): Do not modify INSN_PRIORITY for selective
3214 scheduling.
3215 (rs6000_sched_finish): Do not run for selective scheduling.
3216
3217 2008-08-31 Jan Hubicka <jh@suse.cz>
3218
3219 * frv.c (frv_rtx_costs): Update forward declaration.
3220 * spu.c (spu_rtx_costs): Likewise.
3221 * pdp11.c: Include df.h
3222 (pdp11_output_function_epilogue): Use df_set_regs_ever_live.
3223 * m68hc11.c (m68hc11_gen_highpart): Fix call of gen_rtx_SUBREG.
3224 (m68hc11_rtx_costs_1): Fix call of rtx_cost.
3225 * iq2000.c (iq2000_address_cost): Add speed argument.
3226 (iq2000_rtx_costs): Likewise.
3227 * mn10300.c (mn10300_address_cost_1): Remove speed argument;
3228 update call of mn10300_address_cost.
3229 * mcore.c: Include df.h
3230 (mcore_rtx_costs): Update prototype.
3231 * score3.c: Include df.h
3232 (score3_rtx_costs): Remove speed argument.
3233 * score7.c: Include df.h
3234 (score7_address_cost): Remove speed argument.
3235 * score-protos.h (score_address_cost): Update prototype.
3236 * score.c: Include df.h
3237 (score_rtx_costs): Update call of costs functions.
3238 * v850.c (v850_rtx_costs): Add bool argument.
3239
3240 2008-08-31 Hans-Peter Nilsson <hp@axis.com>
3241
3242 * config/cris/cris.c (cris_rtx_costs): Correct call to rtx_costs.
3243
3244 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3245
3246 * gthr-win32.h (__gthread_setspecific): Use CONST_CAST2.
3247 * config/i386/gthr-win32.c (__gthread_setspecific): Same.
3248
3249 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3250
3251 * mkmap-flat.awk: Add option pe_dll.
3252 * config/i386/t-cygming (SHLIB_LINK): Support building libgcc_s.
3253 * config/i386/t-cygwin (SHLIB_LC): Add.
3254 * config/i386/t-mingw32 (SHLIB_LC): Add.
3255 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): New.
3256 (SUBTARGET_EXTRA_SPECS): Use SHARED_LIBGCC_UNDEFS_SPEC.
3257 (LINK_SPEC): Support libgcc_s.
3258 (LIBGCC_SPEC): Support libgcc_s.
3259 (LIBGCC_SONAME): New.
3260
3261 2008-08-31 Jan Hubicka <jh@suse.cz>
3262
3263 * predict.c (maybe_hot_bb_p, maybe_hot_edge_p): Previous commit
3264 mistakely had old version of patch.
3265
3266 * ipa-cp.c (ipcp_need_original_clone_p): Remove.
3267 (ipcp_estimate_growth): New.
3268 (ipcp_insert_stage): Use ipcp_estimate_growth.
3269 * profile.c (branch_prob): When reading failed, do not consider
3270 profile as read.
3271
3272 2008-08-31 Jan Hubicka <jh@suse.cz>
3273
3274 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Check that
3275 loop is optimized for speed.
3276
3277 2008-08-31 Richard Guenther <rguenther@suse.de>
3278
3279 PR middle-end/37289
3280 * fold-const.c (fold_binary): Retain conversions in folding
3281 ~A + 1 to -A.
3282
3283 2008-08-31 Jan Hubicka <jh@suse.cz>
3284
3285 * postreload-gcse.c (eliminate_partially_redundant_loads):
3286 Use optimize_bb_for_size_p.
3287 * predict.c (maybe_hot_frequency_p): Make inline.
3288 (maybe_hot_count_p): Break out from ...
3289 (maybe_hot_bb_p): ... this one.
3290 (maybe_hot_edge_p): Simplify.
3291 * basic-block.h (probably_cold_bb_p): Remove.
3292
3293 2008-08-31 Jakub Jelinek <jakub@redhat.com>
3294
3295 PR target/37168
3296 * config/rs6000/rs6000-protos.h (const_vector_elt_as_int): Add
3297 prototype.
3298 * config/rs6000/rs6000.c (const_vector_elt_as_int): No longer static.
3299 * config/rs6000/altivec.md (easy_vector_constant_add_self splitter):
3300 Also split V4SFmode.
3301 * config/rs6000/predicates.md (easy_vector_constant_add_self): Handle
3302 vector float modes.
3303
3304 2008-08-31 Jan Hubicka <jh@suse.cz>
3305
3306 * predict.c (PROB_VERY_LIKELY): Make small enough so things
3307 become cold.
3308 * predict.def (PRED_NORETURN_CALL, PRED_COLD_CALL): Use it.
3309
3310 2008-08-31 Jakub Jelinek <jakub@redhat.com>
3311
3312 PR debug/37287
3313 * dwarf2out.c (gen_namespace_die): For DECL_EXTERNAL modules don't
3314 add source coords.
3315
3316 * dwarf2out.c (native_encode_initializer): Subtract min_index for
3317 non-range array index. Handle VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
3318
3319 2008-08-31 Jan Hubicka <jh@suse.cz>
3320
3321 * sparc.h (BRANCH_COST): Fix macro definition.
3322 * avr.c (avr_operand_rtx_cost): Add speed argument.
3323 (avr_rtx_costs): Update calls of avr_operand_rtx_cost.
3324
3325 2008-08-31 Richard Guenther <rguenther@suse.de>
3326
3327 * tree-cfg.c (verify_types_in_gimple_assign): Dump mismatched
3328 types instead of operands. Re-instantiate verifying of
3329 binary expression operands.
3330
3331 2008-08-30 Jan Hubicka <jh@suse.cz>
3332
3333 * fwprop.c (should_replace_address): Add speed attribute.
3334 (PR_OPTIMIZE_FOR_SPEED): New flag.
3335 (propagate_rtx_1): Use it.
3336 (propagate_rtx): Set it.
3337 (try_fwprop_subst): Update call of rtx_costs.
3338 (forward_propagate_and_simplify): LIkewise.
3339 * hooks.c (hook_int_rtx_bool_0): New
3340 (hook_bool_rtx_int_int_intp_false): Replace by ...
3341 (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
3342 * hooks.h (hook_int_rtx_bool_0): New
3343 (hook_bool_rtx_int_int_intp_false): Replace by ...
3344 (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
3345 * optabs.c (avoid_expensive_constant): UPdate call of rtx_cost.
3346 (prepare_cmp_insn): UPdate call of rtx_cost.
3347 * postreload.c (reload_cse_simplify_set): Update call of rtx_cost.
3348 (reload_cse_simplify_operands): Update call of rtx_cost.
3349 (reload_cse_move2add): call of rtx_cost.
3350 * target.h (struct gcc_target): Update rtx_costs and address_costs.
3351 * rtlanal.c (rtx_cost): Add speed argument.
3352 (address_cost): Add speed argument
3353 (default_address_cost): Likewise.
3354 (insn_rtx_cost): Likewise.
3355 * cfgloopanal.c (seq_cost): Add speed argument.
3356 (target_reg_cost, target_spill_cost): Turn to array.
3357 (init_set_costs): Update for speed.
3358 (estimate_reg_pressure_cost): Add speed argument.
3359 * auto-inc-dec.c (attempt_change): Update call of rtx_cost.
3360 * dojump.c (prefer_and_bit_test): UPdate call of rtx_cost.
3361 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field speed.
3362 (seq_cost): Add speed argument.
3363 (computation_cost): Add speed arugment.
3364 (add_cost, multiply_by_const, get_address_cost): add speed argument.
3365 (force_expr_to_var_cost): Update for profile info.
3366 (force_var_cost): Likewise.
3367 (split_address_cost): Likewise.
3368 (ptr_difference_cost): Likewise.
3369 (difference_cost): Likewise.
3370 (get_computation_cost_at): Likewise.
3371 (determine_iv_cost): Likewise.
3372 (ivopts_global_cost_for_size): Likewise.
3373 (rewrite_use_address): Likewise.
3374 (tree_ssa_iv_optimize_loop): Initialize speed field.
3375 * cse.c (optimize_this_for_speed_p): New static var.
3376 (notreg_cost): Update call of rtx_cost.
3377 (cse_extended_basic_block): set optimize_this_for_speed_p.
3378 * ifcvt.c (cheap_bb_rtx_cost_p): Update call of rtx_cost.
3379 (noce_try_cmove_arith): Likewise.
3380 (noce_try_sign_mask): LIkewise.
3381 * expr.c (compress_float_constant): Update rtx_cost calls.
3382 * tree-ssa-address.c (most_expensive_mult_to_index): Add speed
3383 argument.
3384 (addr_to_parts): Likewise.
3385 (create_mem_ref): Likewise.
3386 * dse.c (find_shift_sequence): Add speed argument.
3387 (replace_read): Update call.
3388 * calls.c (precompute_register_parameters): Update call of rtx_cost.
3389 * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost,
3390 * neg_cost, shift_cost, shiftadd_cost,
3391 shiftsub_cost, mul_cost, sdiv_cost, udiv_cost ,mul_widen_cost,
3392 mul_highpart_cost): Increase dimension.
3393 (init_expmed): Initialize for both size and speed.
3394 (expand_shift): Use profile.
3395 (synth_mult): Use profile.
3396 (choose_mult_variant): Use profile.
3397 (expand_mult): Use profile.
3398 (expand_mult_highpart_optab): Use profile.
3399 (expand_mult_highpart): Use profile.
3400 (expand_smod_pow2): Use profile.
3401 (expand_divmod): Use profile.
3402 * simplify-rtx.c (simplify_binary_operation_1): Update call of
3403 rtx_cost.
3404 * loop-invariant.c (create_new_invariant): Use profile.
3405 (gain_for_invariant): Add speed parameter.
3406 (best_gain_for_invariant): Likewise.
3407 (find_invariants_to_move): Likewise.
3408 (move_single_loop_invariants): Set it.
3409 * target-def.h (TARGET_RTX_COSTS): Use hook.
3410 * rtl.h (rtx_cost, address_cost, insn_rtx_cost): Update prototpe.
3411 (optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
3412 * output.h (default_address_cost): Update prototype.
3413 * combine.c (optimize_this_for_speed_p): New static var.
3414 (combine_validate_cost): Update call of rtx_cost.
3415 (combine_instructions): Set optimize_this_for_speed_p.
3416 (expand_compound_operation): Update call of rtx_cost.
3417 (make_extraction):Update call of rtx_cost.
3418 (force_to_mode):Update call of rtx_cost.
3419 (distribute_and_simplify_rtx):Update call of rtx_cost.
3420 * cfgloop.h (target_reg_cost, target_spill_cost): Turn to array.
3421 (estimate_reg_pressure_cost): Update prototype.
3422 * tree-flow.h (multiply_by_cost, create_mem_ref): Update prototype.
3423 * basic-block.h (optimize_insn_for_size_p, optimize_insn_for_speed_p):
3424 Remove.
3425 * config/alpha/alpha.c (alpha_rtx_costs): Update.
3426 (alpha_rtx_costs): Update.
3427 * config/frv/frv.c (frv_rtx_costs): Update.
3428 * config/s390/s390.c (s390_rtx_costs): Update.
3429 * config/m32c/m32c.c (m32c_memory_move_cost): Update.
3430 (m32c_rtx_costs): Update.
3431 * config/spu/spu.c (TARGET_ADDRESS_COST): Upate.
3432 (spu_rtx_costs): Update.
3433 * config/sparc/sparc.c (sparc_rtx_costs): Update.
3434 * config/m32r/m32r.c (m32r_rtx_costs): Update.
3435 * config/i386/i386.c (:ix86_address_cost): Update.
3436 (ix86_rtx_costs): Update.
3437 * config/sh/sh.c (sh_rtx_costs, sh_address_cost): Update.
3438 * config/pdp11/pdp11.c (pdp11_rtx_costs): Update.
3439 * config/avr/avr.c (avr_rtx_costs, avr_address_cost): Update.
3440 * config/crx/crx.c (crx_address_cost): Update.
3441 * config/xtensa/xtensa.c (xtensa_rtx_costs): Update.
3442 * config/stormy16/stormy16.c
3443 (xstormy16_address_cost, xstormy16_rtx_costs): Update.
3444 * config/m68hc11/m68hc11.c
3445 (m68hc11_address_cost, m68hc11_rtx_costs): Update.
3446 * config/cris/cris.c (cris_rtx_costs, cris_address_cost): Update.
3447 * config/iq2000/iq2000.c (iq2000_rtx_costs, iq2000_address_cost):
3448 Update.
3449 * config/mn10300/mn10300.c (mn10300_address_cost, mn10300_rtx_costs):
3450 Update
3451 * config/ia64/ia64.c (ia64_rtx_costs): Update.
3452 * config/m68k/m68k.c (m68k_rtx_costs): Update.
3453 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update.
3454 * config/arc/arc.c (arc_rtx_costs, arc_address_cost): Update.
3455 * config/mcore/mcore.c (TARGET_ADDRESS_COST): Update.
3456 (mcore_rtx_costs): update.
3457 * config/score/score3.c (score3_rtx_costs): Update.
3458 * config/score/score7.c (score7_rtx_costs): Update.
3459 * config/score/score3.h (score3_rtx_costs):Update.
3460 * config/score/score7.h (score7_rtx_costs): Update.
3461 * config/score/score.c (score_rtx_costs): Update.
3462 * config/arm/arm.c (arm_address_cost): Update.
3463 (arm_rtx_costs_1): Update.
3464 (arm_rtx_costs_1): Update.
3465 (arm_size_rtx_costs): Update.
3466 (arm_size_rtx_costs): Update.
3467 (arm_size_rtx_costs): Update.
3468 (arm_xscale_rtx_costs): Update.
3469 (arm_thumb_address_cost): Update.
3470 * config/pa/pa.c (hppa_address_cost): Update.
3471 * config/mips/mips.c (mips_rtx_costs): Update.
3472 * config/vax/vax.c (vax_address_cost): Update.
3473 * config/h8300/h8300.c (h8300_shift_costs): Update.
3474 (h8300_rtx_costs): Update.
3475 * config/v850/v850.c (TARGET_ADDRESS_COST): Update.
3476 (v850_rtx_costs): Update.
3477 * config/mmix/mmix.c (mmix_rtx_costs, mmix_rtx_costs): Update.
3478 * config/bfin/bfin.c
3479 (bfin_address_cost): Update.
3480 (bfin_rtx_costs): Update.
3481 * stmt.c (lshift_cheap_p): Update.
3482
3483 2008-08-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
3484
3485 PR middle-end/36444
3486 * expmed.c (extract_bit_field_1): Check the mode size to make
3487 sure the vector modes have the same size.
3488
3489 2008-08-29 Michael Meissner <gnu@the-meissners.org>
3490
3491 * dojump.c (top level): Include basic-block.h to declare
3492 optimize_insn_for_speed_p
3493
3494 * Makefile.in (dodump.h): Add $(BASIC_BLOCK_H) dependency.
3495
3496 * opts.h (CL_SAVE): New option class for marking options that are
3497 target specific options usable in the target attribute.
3498 (CL_MIN_OPTION_CLASS): CL_SAVE is now the minimum option.
3499
3500 * opt-functions.awk (switch_flags): Add CL_SAVE flag so backends
3501 can easily find the target specific options that are safe to use
3502 in the attribute or pragma.
3503
3504 * attribs.c (decl_attributes): Change #pragma GCC option to
3505 #pragma GCC target, and attribute((option(...))) to
3506 attribute((target(...))).
3507
3508 * doc/extend.texi (target attribute): Change from option
3509 attribute. Delete push/pop/reset.
3510 (#pragma GCC target): Change from #pragma GCC option. Delete
3511 push/pop/reset.
3512 (#pragma GCC push_options): Document new pragma.
3513 (#pragma GCC pop_options): Document new pragma.
3514 (#pragma GCC reset_options): Document new pragma.
3515
3516 * targhooks.c (default_target_option_valid_attribute_p): Add
3517 warning about port not supporting target attributes.
3518 (default_target_option_pragma_parse): New function, warn about
3519 #pragma GCC target not being supported.
3520
3521 * targhooks.h (default_target_option_pragma_parse): Add
3522 declaration.
3523
3524 * tree.h (TI_CURRENT_TARGET_PRAGMA): Rename from
3525 TI_CURRENT_OPTION_PRAGMA.
3526 (current_target_pragma): Rename from current_option_pragma.
3527
3528 * target.h: (struct target_option): Delete booleans for changing
3529 the optimization level on hot/cold functions. Change signature of
3530 pragma_parse hook to take a second tree.
3531
3532 * c-tree.h (c_builtin_function_ext_scope): Add declaration.
3533
3534 * c-decl.c (c_builtin_function_ext_scope): New function, guarantee
3535 that the declaration is done at global scope.
3536
3537 * langhooks.c (add_builtin_function_common): Move most of the code
3538 from add_builtin_function here, calling the hook passed in.
3539 (add_builtin_function): Call add_builtin_function_common with
3540 standard builtin hook.
3541 (add_builtin_function_ext_scope): New function to add builtins to
3542 global scope.
3543
3544 * langhooks.h (struct lang_hooks): Add builtin_function_ext_scope
3545 hook.
3546 (add_builtin_function_ext_scope): Add declaration.
3547
3548 * c-pragma.c (handle_pragma_target): Rename from
3549 handle_pragma_option, #pragma GCC option is now #pragma GCC
3550 target. Move warning about port not supporting target options to
3551 default pragma parse hook. Remove push/pop/reset from this
3552 pragma.
3553 (handle_pragma_optimize): Remove push/pop/reset from this pragma.
3554 (option_stack): Delete static variable.
3555 (optimize_stack): Ditto.
3556 (optons_stack): New stack of saved target and optimization
3557 options.
3558 (handle_pragma_push_options): New function to handle pushing both
3559 target and optimization options.
3560 (handle_pragma_pop_options): New function to handle popping both
3561 target and optimization options.
3562 (handle_pragma_reset_options): New function to handle resetting
3563 both target and optimization options to their initial state.
3564 (init_pragma): Rename handle_pragma_option to
3565 handle_pragma_target. Add support for push_options, pop_options,
3566 and reset_options pragmas.
3567
3568 * target-def.h (TARGET_OPTION_PRAGMA_PARSE): Change default to
3569 default_target_option_pragma_parse.
3570 (TARGET_OPTION_VALID_ATTRIBUTE_P): Change default to
3571 default_target_option_valid_attribute_p.
3572 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
3573 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
3574 (TARGET_OPTION_HOOKS): Delete the fields for whether to change
3575 optimization level on hot/cold functions.
3576
3577 * tree-inline.c (tree_can_inline_p): Disable suppressing inlining
3578 if the caller and callee have different optimization levels.
3579
3580 * c-common.c (handle_target_attribute): Rename from
3581 handle_option_attribute, attribute((option(...))) is now
3582 attribute((target(...))). Move warning if the port does not
3583 support target attributes to the default hook.
3584 (handle_hot_attribute): Delete code to change the optimization
3585 level of hot functions.
3586 (handle_cold_attribute): Ditto.
3587
3588 * config/i386/i386-c.c (ix86_pragma_target_parse): Take a second
3589 argument that is the binary tree options to use if there are no
3590 arguments. Call ix86_valid_target_attribute_tree instead of
3591 ix86_valid_option_attribute_tree.
3592 (ix86_pragma_target_parse): Rename from ix86_pragma_option_parse.
3593 (ix86_register_pragmas): Use ix86_pragma_target_parse instead of
3594 ix86_pragma_option_parse.
3595
3596 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
3597 Rename from ix86_valid_option_attribute_tree.
3598
3599 * config/i386/i386.c (ix86_add_new_builtins): New function to add
3600 new builtins when the ISA changes.
3601 (ix86_valid_target_attribute_tree): Rename from
3602 ix86_valid_option_attribute_tree. Change callers. If the
3603 function specified optimization options, use those as the starting
3604 point before setting up the target attributes. If the
3605 optimization options were changed in the course of setting the
3606 target attributes, record the new optimization options.
3607 (ix86_valid_target_attribute_tree_inner_p): Rename from
3608 ix86_valid_option_attribute_tree_inner_p. Change callers. Call
3609 ix86_add_new_builtins if the ISA changed.
3610 (ix86_valid_target_attribute_p): Rename from
3611 ix86_valid_option_attribute_p. Change callers.
3612 (enum ix86_builtins): Add IX86_BUILTIN_PCMOV to allow both
3613 __builtin_ia32_pcmov and __builtin_ia32_pcmov_v2di to be declared
3614 as delayed builtin functions.
3615 (struct builtin_isa): New structure to record builtin functions
3616 that should be delayed until the ISA for that function is used.
3617 (ix86_builtins_isa): Change from int to struct to track builtin
3618 functions we want to declare at some point.
3619 (def_builtin): If the front end can delay defining the builtin
3620 functions, don't create builtins for ISAs not part of the default
3621 options.
3622 (def_builtin_const): Ditto.
3623 (bdesc_multi_arg): Declare __builtin_ia32_pcmov and
3624 __builtin_ia32_pcmov_v2di to be different builtin functions.
3625 (ix86_expand_builtin): Changes due to ix86_builtins_isa now being
3626 a structure instead of an int.
3627 (TARGET_OPTION_VALID_ATTRIBUTE_P): Use
3628 ix86_valid_target_attribute_p, not ix86_valid_option_attribute_p.
3629 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
3630 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
3631
3632 * config/ia64/ia64.h
3633 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
3634 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
3635
3636 * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE): New
3637 hook, default to being the same as LANG_HOOKS_BUILTIN_FUNCTION.
3638 (LANG_HOOKS_INITIALIZER): Add
3639 LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE hook.
3640
3641 2008-08-30 Kaz Kojima <kkojima@gcc.gnu.org>
3642
3643 PR target/37270
3644 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Generate
3645 the reload address with the index register for SFmode
3646 access with a displacement.
3647
3648 2008-08-30 Jan Hubicka <jh@suse.cz>
3649
3650 * optabs.c (expand_abs_nojump): Update BRANCH_COST call.
3651 * fold-cost.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop): Likewise.
3652 * dojump.c (do_jump): Likewise.
3653 * ifcvt.c (MAX_CONDITIONAL_EXECUTE): Likewise.
3654 (note-if_info): Add BRANCH_COST.
3655 (noce_try_store_flag_constants, noce_try_addcc,
3656 noce_try_store_flag_mask, noce_try_cmove_arith, noce_try_cmove_arith,
3657 noce_try_cmove_arith, noce_find_if_block, find_if_case_1,
3658 find_if_case_2): Use computed branch cost.
3659 * expr.h (BRANCH_COST): Update default.
3660 * predict.c (predictable_edge_p): New function.
3661 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, emit_store_flag):
3662 Update BRANCH_COST call.
3663 * basic-block.h (predictable_edge_p): Declare.
3664 * config/alpha/alpha.h (BRANCH_COST): Update.
3665 * config/frv/frv.h (BRANCH_COST): Update.
3666 * config/s390/s390.h (BRANCH_COST): Update.
3667 * config/spu/spu.h (BRANCH_COST): Update.
3668 * config/sparc/sparc.h (BRANCH_COST): Update.
3669 * config/m32r/m32r.h (BRANCH_COST): Update.
3670 * config/i386/i386.h (BRANCH_COST): Update.
3671 * config/i386/i386.c (ix86_expand_int_movcc): Update use of
3672 BRANCH_COST.
3673 * config/sh/sh.h (BRANCH_COST): Update.
3674 * config/pdp11/pdp11.h (BRANCH_COST): Update.
3675 * config/avr/avr.h (BRANCH_COST): Update.
3676 * config/crx/crx.h (BRANCH_COST): Update.
3677 * config/xtensa/xtensa.h (BRANCH_COST): Update.
3678 * config/stormy16/stormy16.h (BRANCH_COST): Update.
3679 * config/m68hc11/m68hc11.h (BRANCH_COST): Update.
3680 * config/iq2000/iq2000.h (BRANCH_COST): Update.
3681 * config/ia64/ia64.h (BRANCH_COST): Update.
3682 * config/rs6000/rs6000.h (BRANCH_COST): Update.
3683 * config/arc/arc.h (BRANCH_COST): Update.
3684 * config/score/score.h (BRANCH_COST): Update.
3685 * config/arm/arm.h (BRANCH_COST): Update.
3686 * config/pa/pa.h (BRANCH_COST): Update.
3687 * config/mips/mips.h (BRANCH_COST): Update.
3688 * config/vax/vax.h (BRANCH_COST): Update.
3689 * config/h8300/h8300.h (BRANCH_COST): Update.
3690 * params.def (PARAM_PREDICTABLE_BRANCH_OUTCOME): New.
3691 * doc/invoke.texi (predictable-branch-cost-outcome): Document.
3692 * doc/tm.texi (BRANCH_COST): Update.
3693
3694 2008-08-30 Samuel Tardieu <sam@rfc1149.net>
3695
3696 PR target/37283
3697 * config/arm/arm.c (arm_optimization_options): Set
3698 flag_section_anchors to 2 instead of 1 to distinguish it from
3699 -fsection-anchors given explicitely on the command line.
3700
3701 2008-08-30 Richard Sandiford <rdsandiford@googlemail.com>
3702
3703 * recog.c (split_insn): Consider attaching a REG_EQUAL note to the
3704 final insn of a split.
3705
3706 2008-08-30 Jan Hubicka <jh@suse.cz>
3707
3708 * postreload-gcse.c (gate_handle_gcse2): Disable for functions
3709 optimized for speed.
3710 * final.c (compute_alignments): Use optimize_bb_for_size_p.
3711 * tree-call-cdce.c (gate_call_cdce): Use optimize_function_for_speed_p.
3712 * opts.c (flag_predictive_commoning_set, flag_unswitch_loops_set,
3713 flag_gcse_after_reload_set): New static vars.
3714 (common_handle_option): Enable those flags for profile-use.
3715 (decode_options): Remove optimize_size flags that are handled
3716 on higher granuality.
3717 * tree-vectorizer.c (vectorize_loops): Use
3718 optimize_loop_nest_for_speed_p.
3719 * tree-ssa-pre.c (do_pre): Use optimize_function_for_speed_p.
3720 * tree-predcom.c (tree_predictive_commoning): Use
3721 optimize_loop_for_speed_p.
3722 * varasm.c (assemble_start_function): Use
3723 optimize_function_for_speed_p.
3724 * bb-reorder.c (rest_of_handle_reorder_blocks): Likewise.
3725 * predict.c (optimize_loop_for_speed_p): Fix walk.
3726
3727 2008-08-30 Jan Hubicka <jh@suse.cz>
3728
3729 * ipa-inline.c (cgraph_estimate_growth): Discover self recursive
3730 functions.
3731 (cgraph_decide_inlining_of_small_function): Use edge->count to detect
3732 profile presence locally.
3733
3734 2008-08-29 Joseph Myers <joseph@codesourcery.com>
3735
3736 PR bootstrap/37086
3737 * tree-vrp.c (find_switch_asserts): Make idx volatile for GCC
3738 versions before 4.0.
3739
3740 2008-08-29 Jan Hubicka <jh@suse.cz>
3741
3742 * tree-inline.c (insert_init_stmt): Insert sequence even when
3743 not in SSA form.
3744
3745 2008-08-29 Jeff Law <law@redhat.com>
3746
3747 * mn10300.c (mn10300_secondary_reload_class): We need secondary
3748 reloads for AM33-2 if IN is a pseudo with an equivalent memory
3749 location and class is an FP register.
3750
3751 2008-08-29 Jan Hubicka <jh@suse.cz>
3752
3753 * see.c (see_merge_one_def_extension): Silence used uninitialized
3754 warning.
3755 * matrix-reorg.c (check_allocation_function): Likewise.
3756 * config/i386/driver-i386.c (detect_caches_amd): Likewise.
3757
3758 2008-08-29 Jakub Jelinek <jakub@redhat.com>
3759
3760 PR c/37261
3761 * fold-const.c (fold_binary): In (X | C1) & C2 canonicalization
3762 compute new & and | in type rather than TREE_TYPE (arg0).
3763
3764 * dwarf2out.c (fortran_common): Update comment.
3765 (gen_variable_die): Swap com_die and var_die variables in Fortran
3766 COMMON block handling code.
3767
3768 * dwarf2out.c (descr_info_loc): Handle VAR_DECL.
3769
3770 * dwarf2out.c (gen_const_die): New function.
3771 (size_of_die, value_format, output_die): Output larger
3772 dw_val_class_vec using DW_FORM_block2 or DW_FORM_block4.
3773 (native_encode_initializer): New function.
3774 (tree_add_const_value_attribute): Call it.
3775 (gen_decl_die, dwarf2out_decl): Handle CONST_DECLs if is_fortran ().
3776
3777 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): For
3778 DECL_BY_REFERENCE decls don't pass TREE_READONLY and
3779 TREE_THIS_VOLATILE to add_type_attribute.
3780
3781 * dwarf2out.c (add_subscript_info): Stop on Fortran TYPE_STRING_FLAG
3782 types.
3783 (gen_array_type_die): Emit DW_TAG_string_type for Fortran character
3784 types.
3785
3786 * dwarf2out.c (loc_by_reference): New function.
3787 (add_location_or_const_value_attribute): Use it.
3788
3789 PR fortran/23057
3790 * dwarf2out.c (gen_variable_die): Represent Fortran COMMON vars
3791 as DW_TAG_variable children of DW_TAG_common_block rather than
3792 DW_TAG_member children. Put DW_AT_external to individual
3793 DW_TAG_variable DIEs, not to DW_TAG_common_block.
3794
3795 * dwarf2out.c (add_bound_info): If lookup_decl_die failed, try
3796 loc_descriptor_from_tree_1.
3797
3798 PR fortran/29635
3799 PR fortran/23057
3800 * debug.h (struct gcc_debug_hooks): Add NAME and CHILD
3801 arguments to imported_module_or_decl.
3802 (debug_nothing_tree_tree): Removed.
3803 (debug_nothing_tree_tree_tree_bool): New prototype.
3804 * debug.c (do_nothing_debug_hooks): Adjust.
3805 (debug_nothing_tree_tree): Removed.
3806 (debug_nothing_tree_tree_tree_bool): New function.
3807 * dwarf2out.c (is_symbol_die): Handle DW_TAG_module.
3808 (gen_variable_die): Put all common vars for the
3809 same COMMON block under one DW_TAG_common_block.
3810 (declare_in_namespace): Return new context_die, for Fortran
3811 return the module DIE instead of adding extra declarations into
3812 the namespace.
3813 (gen_type_die_with_usage): Adjust declare_in_namespace caller.
3814 (gen_namespace_die): If is_fortran (), generate DW_TAG_module
3815 instead of DW_TAG_namespace. If DECL_EXTERNAL is set, add
3816 DW_AT_declaration.
3817 (dwarf2out_global_decl): Don't skip Fortran global vars.
3818 (gen_decl_die): Likewise. Adjust declare_in_namespace callers.
3819 (dwarf2out_imported_module_or_decl): Add NAME and CHILD arguments.
3820 If NAME is non-NULL, add DW_AT_name. If CHILD is non-NULL, put
3821 DW_TAG_imported_declaration as child of previous
3822 DW_TAG_imported_module.
3823 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Adjust.
3824 * sdbout.c (sdb_debug_hooks): Likewise.
3825 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3826
3827 2008-08-29 Jan Hubicka <jh@suse.cz>
3828
3829 * cgraph.c (cgraph_remove_node): Do not remove nested nodes.
3830
3831 * cgraph.h (cgraph_maybe_hot_edge_p): Declare.
3832 * ipa-cp.c (n_cloning_candidates): New static variable.
3833 (ipcp_print_profile_data, ipcp_function_scale_print): Forward declare.
3834 (ipcp_print_all_lattices): Improve debug output.
3835 (ipcp_cloning_candidate_p): New function.
3836 (ipcp_initialize_node_lattices): Use it.
3837 (ipcp_init_stage): Do only analyzis here; prettier debug output.
3838 (ipcp_propagate_stage): Prettier debug output.
3839 (ipcp_iterate_stage): Initialize latices here; prettier debug output.
3840 (ipcp_print_all_structures): Remove.
3841 (ipcp_need_redirect_p): Test !n_cloning_candidates.
3842 (ipcp_insert_stage): Prettier debug output; call
3843 cgraph_remove_unreachable_nodes before propagating.
3844 (pass_ipa_cp): Schedule function removal pass.
3845 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Better
3846 debug output.
3847 (cgraph_maybe_hot_edge_p): Move to ...
3848 * predict.c (cgraph_maybe_hot_edge_p) ... here.
3849 * opts.c (flag_ipa_cp_set, flag_ipa_cp_clone_set): New.
3850 (common_handle_option): Set them; enable ipa-cp when profiling.
3851 * ipa-prop.c (ipa_print_node_jump_functions): Prettier output.
3852 (ipa_print_all_jump_functions): Likewise.
3853 (ipa_print_all_tree_maps, ipa_print_node_param_flags): Remove.
3854 (ipa_print_node_params, ipa_print_all_params): New.
3855 * ipa-prop.h (ipa_print_all_tree_maps, ipa_print_node_param_flags,
3856 ipa_print_all_param_flags): Remove.
3857 (ipa_print_node_params, ipa_print_all_params): New.
3858
3859 2008-08-29 Bob Wilson <bob.wilson@acm.org>
3860
3861 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Revert
3862 change from 2008-04-03.
3863 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Define.
3864
3865 2008-08-29 Vladimir Makarov <vmakarov@redhat.com>
3866
3867 PR rtl-opt/37251
3868 * ira-color.c (push_allocnos_to_stack): Truncate
3869 removed_splay_allocno_vec.
3870
3871 2008-08-29 Vladimir Makarov <vmakarov@redhat.com>
3872
3873 PR rtl-opt/37243
3874 * ira-color (ira_fast_allocation): Don't assign hard registers to
3875 global allocnos.
3876
3877 2008-08-29 Jan Hubicka <jh@suse.cz>
3878
3879 PR middle-end/37278
3880 * predict.c (optimize_loop_nest_for_speed_p): Do not ICE
3881 for cold internal loops.
3882
3883 2008-08-29 Richard Guenther <rguenther@suse.de>
3884
3885 * tree-ssa-structalias.c (create_variable_info_for): Do not
3886 create fields for heap vars or vars with a noalias state.
3887 For NO_ALIAS_ANYTHING variables add a self-constraint, not one
3888 from ESCAPED.
3889
3890 2008-08-29 Richard Guenther <rguenther@suse.de>
3891
3892 * common.opt (ftree-store-ccp): Mark as preserved for
3893 backward compatibility.
3894 * doc/invoke.texi (-ftree-store-ccp): Remove documentation.
3895 * tree-pass.h (pass_store_ccp): Remove.
3896 * tree-ssa-propagate.h (struct prop_value_d): Remove mem_ref field.
3897 (first_vdef): Remove declaration.
3898 (get_value_loaded_by): Likewise.
3899 * tree-ssa-ccp.c (do_store_ccp): Remove.
3900 (get_default_value): Simplify as do_store_ccp is always false
3901 now. Do not initialize mem_ref.
3902 (set_value_varying): Likewise.
3903 (canonicalize_float_value): Likewise.
3904 (set_lattice_value): Likewise.
3905 (likely_value): Likewise.
3906 (surely_varying_stmt_p): Likewise.
3907 (ccp_initialize): Likewise.
3908 (ccp_lattice_meet): Likewise.
3909 (ccp_visit_phi_node): Likewise.
3910 (ccp_fold): Likewise.
3911 (evaluate_stmt): Likewise.
3912 (visit_assignment): Likewise.
3913 (ccp_visit_stmt): Likewise.
3914 (execute_ssa_ccp): Fold into ...
3915 (do_ssa_ccp): ... this.
3916 (do_ssa_store_ccp): Remove.
3917 (gate_store_ccp): Likewise.
3918 (pass_store_ccp): Likewise.
3919 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not
3920 initialize mem_ref.
3921 * tree-ssa-propagate.c (first_vdef): Remove.
3922 (get_value_loaded_by): Likewise.
3923 (replace_vuses_in): Likewise.
3924 (substitute_and_fold): Do not call replace_vuses_in.
3925 * opts.c (decode_options): Do not set flag_tree_store_ccp.
3926
3927 2008-08-29 Richard Guenther <rguenther@suse.de>
3928
3929 PR middle-end/37236
3930 * tree-ssa-structalias.c (intra_create_variable_infos): Mark
3931 PARAM_NOALIAS tags with is_heapvar.
3932 * tree-ssa-operands.c (access_can_touch_variable): Offset
3933 based tests do not apply for heapvars. Fix offset test.
3934
3935 2008-08-29 Jan Hubicka <jh@suse.cz>
3936
3937 * doc/invoke.texi (-fipa-cp): Enabled by default at -O2/-Os/-O3
3938 (-fipa-cp-clone): Enabled by default at -O3.
3939 * opts.c (decode_options): Enable ipa-cp at -O2, ipa-cp-clone at -O3;
3940 make ipa-cp-clone to imply ipa-cp; disable cloning at -Os.
3941
3942 2008-08-29 Jan Hubicka <jh@suse.cz>
3943
3944 * tree.c (build_function_type_skip_args,
3945 build_function_decl_skip_args): New functions.
3946 * tree.h (build_function_type_skip_args,
3947 build_function_decl_skip_args): Declare.
3948 * gimple.c (giple_copy_call_skip_args): New function.
3949 (giple_copy_call_skip_args): Declare.
3950
3951 * cgraph.h (cgraph_function_versioning): Add skip_args arugmnet
3952 * ipa-cp.c (ipcp_node_not_modifiable_p): Rename to ...
3953 (ipcp_node_modifiable_p): ... this one; use
3954 tree_versionable_function_p.
3955 (ipcp_create_replace_map): Improve debug output.
3956 (ipcp_need_redirect_p): Return false when not clonning.
3957 (ipcp_update_callgraph): Skip args.
3958 (ipcp_insert_stage): UPdate call of !ipcp_node_modifiable_p;
3959 skip args.
3960 * cgraphunit.c (cgraph_function_versioning): Add skip_args argument.
3961 (save_inline_function_body): Update call of tree_function_versioning.
3962 * ipa-prop.c (ipa_edge_removal_hook): Do not ICE on unanalyzed nodes.
3963 * tree-inline.c (copy_arguments_for_versioning): Add skip_args
3964 argument.
3965 (tree_function_versioning): Likewise.
3966 * tree-inline.h (tree_function_versioning): Update prototype.
3967
3968 2008-08-29 Jan Hubicka <jh@suse.cz>
3969
3970 * loop-unswitch.c (unswitch_single_loop): Use
3971 optimize_loop_for_speed_p.
3972 * tree-ssa-threadupdate.c (mark_threaded_blocks):
3973 Use optimize_function_for_size_p.
3974 * tracer.c (ignore_bb_p): Use optimize_bb_for_size_p.
3975 * postreload-gcse.c (eliminate_partially_redundant_load):
3976 Use optimize_bb_for_size_p.
3977 * value-prof.c (gimple_divmod_fixed_value_transform,
3978 gimple_mod_pow2_value_transform, gimple_mod_subtract_transform,
3979 gimple_stringops_transform): Use optimize_bb_for_size_p.
3980 * ipa-cp.c (ipcp_insert_stage): Use optimize_function_for_size_p.
3981 * final.c (compute_alignments): Use optimize_function_for_size_p.
3982 * builtins.c (fold_builtin_cabs): Use optimize_function_for_speed_p.
3983 (fold_builtin_strcpy, fold_builtin_fputs): Use
3984 optimize_function_for_size_p.
3985 * fold-const.c (tree_swap_operands_p): Use
3986 optimize_function_for_size_p.
3987 * recog.c (relax_delay_slots): Likewise.
3988 * tree-ssa-math-opts.c (replace_reciprocal):
3989 Use optimize_bb_for_speed_p.
3990 (execute_cse_reciprocals): Use optimize_bb_for_size_p.
3991 * ipa-inline.c (cgraph_decide_recursive_inlining): Use
3992 optimize_function_for_size_p.
3993 (cgraph_decide_inlining_of_small_function): Use
3994 optimize_function_for_size_p.
3995 * global.c (find_reg): Use optimize_function_for_size_p.
3996 * opts.c (decode_options): Do not clear flag_tree_ch,
3997 flag_inline_functions, flag_unswitch_loops, flag_unroll_loops,
3998 flag_unroll_all_loops and flag_prefetch_loop_arrays. Those can
3999 work it out from profile.
4000 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Use
4001 optimize_loop_for_speed_p.
4002 * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
4003 Constify argument.
4004 (optimize_loop_nest_for_size_p, optimize_loop_nest_for_speed_p): New.
4005 * tree-parloops.c (parallelize_loops): Use optimize_loop_for_size_p.
4006 * tree-eh.c (decide_copy_try_finally): Use
4007 optimize_function_for_size_p.
4008 * local-alloc.c (block_alloc): Pass BB pointer.
4009 (find_free_reg): Add BB pointer, use optimize_bb_for_size_p.
4010 * gcse.c (gcse_main): Use optimize_function_for_size_p.
4011 * loop-unroll.c (decide_unrolling_and_peeling):
4012 Use optimize_loop_for_size_p.
4013 (decide_peel_completely): Likewise.
4014 * tree-vect-analyze.c (vect_mark_for_runtime_alias_test): Use
4015 optimize_loop_for_size_p.
4016 (vect_enhance_data_refs_alignment): Likewise.
4017 * tree-ssa-coalesce.c (coalesce_cost): Add optimize_for_size argument.
4018 (coalesce_cost_bb, coalesce_cost_edge, create_outofssa_var_map):
4019 Update call.
4020 * cfgcleanup.c (outgoing_edges_match): Use optimize_bb_for_speed_p.
4021 (try_crossjump_bb): Use optimize_bb_for_size_p.
4022 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
4023 optimize_loop_for_speed_p.
4024 * bb-reorder.c (find_traces_1_round): Likewise.
4025 (copy_bb): Use optimize_bb_for_speed_p.
4026 (duplicate_computed_gotos): Likewise.
4027 * basic-block.h (optimize_loop_nest_for_size_p,
4028 optimize_loop_nest_for_speed_p): New.
4029 * stmt.c (expand_case): Use optimize_insn_for_size_p.
4030
4031 2008-08-29 Tristan Gingold <gingold@adacore.com>
4032
4033 * gcov.c (main): Call expandargv.
4034
4035 2008-08-29 Jan Hubicka <jh@suse.cz>
4036
4037 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Check that loop
4038 is not cold.
4039 * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
4040 Constify arguments.
4041 (optimize_loop_for_size_p, optimize_loop_for_speed_p): New functions.
4042 * basic-block.h (optimize_bb_for_size_p, optimize_bb_for_speed_p):
4043 Constify.
4044 (optimize_loop_for_size_p, optimize_loop_for_speed_p): Declare.
4045
4046 2008-08-29 Jan Hubicka <jh@suse.cz>
4047
4048 * tree-pass.h (pass_strip_predict_hints): Declare.
4049 * predict.c (strip_builtin_expect): Rename to ...
4050 (strip_predict_hints): ... this one; strip also GIMPLE_PREDICT.
4051 (tree_bb_level_predictions): Do not remove GIMPLE_PREDICT.
4052 (tree_estimate_probability): Do not strip builtin_expect.
4053 (pass_strip_predict_hints): New pass.
4054 * tree-inline.c (expand_call_inline): When inlining cold function,
4055 predict it as unlikely.
4056 * passes.c (init_optimization_passes): Add pass_strip_predict_hints.
4057
4058 2008-08-29 Richard Guenther <rguenther@suse.de>
4059
4060 PR tree-optimization/37207
4061 * tree-vrp.c (extract_range_from_binary_expr): Also try
4062 to constant fold if only one of the operands is a constant.
4063
4064 2008-08-29 Nick Clifton <nickc@redhat.com>
4065
4066 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Treat LABEL_REFs in
4067 the same way as SYMBOL_REFs.
4068
4069 2008-08-28 Bob Wilson <bob.wilson@acm.org>
4070
4071 * config/xtensa/xtensa.md (<u>mulsidi3): Use a temporary register.
4072
4073 2008-08-28 Adam Nemet <anemet@caviumnetworks.com>
4074
4075 * config/mips/mips.h (ISA_HAS_BBIT): New macro.
4076 * config/mips/mips.md (branch_likely): Remove const. Fix
4077 comment formatting.
4078 (define_delay for type "branch"): Change to only apply for branch
4079 with likely variant.
4080 (define_delay for type "branch" and "branch_likely" no). New delay
4081 definition.
4082 (equality_op): New code iterator.
4083 (bbv, bbinv): New code attributes.
4084 (*branch_bit<bbv><mode>, *branch_bit<bbv><mode>_inverted): New
4085 patterns.
4086
4087 2008-08-28 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4088 Andrew Pinski <pinskia@gcc.gnu.org>
4089
4090 PR 18050
4091 * c-common.c (verify_tree): Fix handling of ADDR_EXPR.
4092
4093 2008-08-28 Paolo Carlini <paolo.carlini@oracle.com>
4094
4095 * gtrh-posix.h: Fix uses of _POSIX_TIMEOUTS per the normal Posix
4096 rule that a symbolic constant must be defined and >= 0 for the
4097 corresponding facility to be present at compile-time.
4098 * gthr-posix.c: Likewise.
4099
4100 2008-08-28 Adam Nemet <anemet@caviumnetworks.com>
4101
4102 * config/mips/mips.h (ISA_HAS_DMUL3): New macro.
4103 * config/mips/mips.md (D): New mode attribute.
4104 (mulsi3, muldi3): Merge it into ...
4105 (mul<mode>3): ... new template. Use _mul3 ending for 3-op patterns.
4106 (muldi3_mul3): New pattern.
4107 (mulsi3_mult3): Rename to mulsi3_mul3.
4108
4109 2008-08-28 Jan Hubicka <jh@suse.cz>
4110
4111 * expmed.c (store_bit_field_1): Be prepared for movstrict expander
4112 to fail.
4113 * predict.c (always_optimize_for_size_p): Rename to ...
4114 (optimize_function_for_size): ... this one; make extern.
4115 (optimize_function_for_speed_p): New.
4116 (optimize_bb_for_size_p, optimize_bb_for_size_p,
4117 optimize_edge_for_size_p,optimize_edge_for_size_p,
4118 optimize_insn_for_size_p, optimize_insn_for_size_p): Update.
4119 * basic-block.h (optimize_function_for_size_p,
4120 optimize_function_for_speed_p): Declare.
4121 * i386.md (optimize_size checks): Replace them by appropriate
4122 predicate.
4123 (standard_80387_constant_p, ix86_compute_frame_layout,
4124 ix86_expand_epilogue, ix86_decompose_address,
4125 print_operand, emit_i387_cw_initialization,
4126 inline_memory_move_cost, ix86_pad_returns,
4127 ix86_reorg): Replace optimize_size checks.
4128
4129 2008-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4130
4131 * rtl.h (simplify_subreg_regno): Declare.
4132 * rtlanal.c (simplify_subreg_regno): New function, split out from...
4133 * simplify-rtx.c (simplify_subreg): ...here.
4134 * reload.c (find_reloads): Use simplify_subreg_regno instead of
4135 subreg_offset_representable_p.
4136
4137 2008-08-28 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4138
4139 PR c/30949
4140 * c-typeck.c (convert_for_assignment): Give a note describing what
4141 was passed and what was expected.
4142
4143 2008-08-28 Joey Ye <joey.ye@intel.com>
4144
4145 * doc/extend.texi: Document AVX built-in functions.
4146 * doc/invoke.texi: Document -mavx.
4147
4148 2008-08-28 H.J. Lu <hongjiu.lu@intel.com>
4149 Joey Ye <joey.ye@intel.com>
4150 Xuepeng Guo <xuepeng.guo@intel.com>
4151
4152 * config.gcc (extra_headers): Add gmmintrin.h for x86 and x86-64.
4153
4154 * config/i386/cpuid.h (bit_FMA): New.
4155 (bit_XSAVE): Likewise.
4156 (bit_OSXSAVE): Likewise.
4157 (bit_AVX): Likewise.
4158
4159 * config/i386/gas.h (ASM_OUTPUT_OPCODE): Undefine before
4160 define. Use ASM_OUTPUT_AVX_PREFIX.
4161
4162 * config/i386/gmmintrin.h: New.
4163
4164 * config/i386/i386.c (x86_64_reg_class): Add X86_64_AVX_CLASS.
4165 (OPTION_MASK_ISA_AVX_SET): New.
4166 (OPTION_MASK_ISA_FMA_SET): Likewise.
4167 (OPTION_MASK_ISA_AVX_UNSET): Likewise.
4168 (OPTION_MASK_ISA_FMA_SET): Likewise.
4169 (OPTION_MASK_ISA_SSE4_2_UNSET): Updated.
4170 (ix86_handle_option): Handle OPT_mavx and OPT_mfma.
4171 (pta_flags): Add PTA_AVX and PTA_FMA.
4172 (override_options): Handle PTA_AVX and PTA_FMA.
4173 (init_cumulative_args): Handle warn_avx.
4174 (classify_argument): Return 0 for COImode and OImode. Return
4175 1 and X86_64_AVX_CLASS for 256bit vector types.
4176 (examine_argument): Handle X86_64_AVX_CLASS.
4177 (construct_container): Likewise.
4178 (function_arg_advance_32): Pass OImode and 256bit vector types
4179 in AVX register.
4180 (function_arg_advance_64): Take a new argument to indicate if a
4181 parameter is named. Handle 256bit vector types. Return
4182 immediately for unnamed 256bit vector mode parameters.
4183 (function_arg_advance): Updated.
4184 (function_arg_32): Add comments for TImode. Handle OImode
4185 and 256bit vector types.
4186 (function_arg_64): Take a new argument to indicate if a
4187 parameter is named. Handle 256bit vector types. Return NULL
4188 for unnamed 256bit vector mode parameters.
4189 (function_arg): Updated.
4190 (setup_incoming_varargs_64): Support
4191 AVX encoding for *sse_prologue_save_insn.
4192 (ix86_gimplify_va_arg): Handle 256bit vector mode parameters.
4193 (standard_sse_constant_p): Return -2 for all 1s if SSE2 isn't
4194 enabled. For all 1s in 256bit vector modes, return 3 if AVX is
4195 enabled, otherwise return -3.
4196 (standard_sse_constant_opcode): Handle AVX and 256bit vector
4197 modes.
4198 (print_reg): Support AVX registers. Handle 'x' and 't'.
4199 Handle 'd' to duplicate the operand.
4200 (print_operand): Likewise. Also support AVX vector compare
4201 instructions.
4202 (output_387_binary_op): Support AVX.
4203 (output_fp_compare): Likewise.
4204 (ix86_expand_vector_move_misalign): Likewise.
4205 (ix86_attr_length_vex_default): New.
4206 (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
4207 IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
4208 IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
4209 IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
4210 IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_BLENDPD256,
4211 IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
4212 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DIVPD256,
4213 IX86_BUILTIN_DIVPS256, IX86_BUILTIN_DPPS256,
4214 IX86_BUILTIN_HADDPD256, IX86_BUILTIN_HADDPS256,
4215 IX86_BUILTIN_HSUBPD256, IX86_BUILTIN_HSUBPS256,
4216 IX86_BUILTIN_MAXPD256, IX86_BUILTIN_MAXPS256,
4217 IX86_BUILTIN_MINPD256, IX86_BUILTIN_MINPS256,
4218 IX86_BUILTIN_MULPD256, IX86_BUILTIN_MULPS256,
4219 IX86_BUILTIN_ORPD256, IX86_BUILTIN_ORPS256,
4220 IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
4221 IX86_BUILTIN_SUBPD256, IX86_BUILTIN_SUBPS256,
4222 IX86_BUILTIN_XORPD256, IX86_BUILTIN_XORPS256,
4223 IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
4224 IX86_BUILTIN_CMPPS, IX86_BUILTIN_CMPPD256,
4225 IX86_BUILTIN_CMPPS256, IX86_BUILTIN_CVTDQ2PD256,
4226 IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
4227 IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
4228 IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
4229 IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_EXTRACTF128PD256,
4230 IX86_BUILTIN_EXTRACTF128PS256, IX86_BUILTIN_EXTRACTF128SI256,
4231 IX86_BUILTIN_VZEROALL, IX86_BUILTIN_VZEROUPPER,
4232 IX86_BUILTIN_VZEROUPPER_REX64, IX86_BUILTIN_VPERMILVARPD,
4233 IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
4234 IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_VPERMILPD,
4235 IX86_BUILTIN_VPERMILPS, IX86_BUILTIN_VPERMILPD256,
4236 IX86_BUILTIN_VPERMILPS256, IX86_BUILTIN_VPERMIL2PD,
4237 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256,
4238 IX86_BUILTIN_VPERMIL2PS256, IX86_BUILTIN_VPERM2F128PD256,
4239 IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
4240 IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
4241 IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
4242 IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_VINSERTF128PD256,
4243 IX86_BUILTIN_VINSERTF128PS256, IX86_BUILTIN_VINSERTF128SI256,
4244 IX86_BUILTIN_LOADUPD256, IX86_BUILTIN_LOADUPS256,
4245 IX86_BUILTIN_STOREUPD256, IX86_BUILTIN_STOREUPS256,
4246 IX86_BUILTIN_LDDQU256, IX86_BUILTIN_LOADDQU256,
4247 IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_MASKLOADPD,
4248 IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKSTOREPD,
4249 IX86_BUILTIN_MASKSTOREPS, IX86_BUILTIN_MASKLOADPD256,
4250 IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKSTOREPD256,
4251 IX86_BUILTIN_MASKSTOREPS256, IX86_BUILTIN_MOVSHDUP256,
4252 IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
4253 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
4254 IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
4255 IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
4256 IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
4257 IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
4258 IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
4259 IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
4260 IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
4261 IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
4262 IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
4263 IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
4264 IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
4265 IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
4266 IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
4267 IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
4268 IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
4269 IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256
4270 and IX86_BUILTIN_MOVMSKPS256,
4271 (ix86_special_builtin_type): Add V32QI_FTYPE_PCCHAR,
4272 V8SF_FTYPE_PCV4SF, V8SF_FTYPE_PCFLOAT, V4DF_FTYPE_PCV2DF,
4273 V4DF_FTYPE_PCDOUBLE, V8SF_FTYPE_PCV8SF_V8SF,
4274 V4DF_FTYPE_PCV4DF_V4DF, V4SF_FTYPE_PCV4SF_V4SF,
4275 V2DF_FTYPE_PCV2DF_V2DF, VOID_FTYPE_PCHAR_V32QI,
4276 VOID_FTYPE_PFLOAT_V8SF, VOID_FTYPE_PDOUBLE_V4DF,
4277 VOID_FTYPE_PV8SF_V8SF_V8SF, VOID_FTYPE_PV4DF_V4DF_V4DF,
4278 VOID_FTYPE_PV4SF_V4SF_V4SF and VOID_FTYPE_PV2DF_V2DF_V2DF,
4279 (ix86_builtin_type): Add INT_FTYPE_V8SF_V8SF_PTEST,
4280 INT_FTYPE_V4DI_V4DI_PTEST, INT_FTYPE_V4DF_V4DF_PTEST,
4281 INT_FTYPE_V4SF_V4SF_PTEST, INT_FTYPE_V2DF_V2DF_PTEST,
4282 INT_FTYPE_V8SF, INT_FTYPE_V4DF, V8SI_FTYPE_V8SF, V8SI_FTYPE_V4SI,
4283 V8SF_FTYPE_V8SF, V8SF_FTYPE_V8SI, V8SF_FTYPE_V4SF,
4284 V4SI_FTYPE_V8SI, V4SI_FTYPE_V4DF, V4DF_FTYPE_V4DF,
4285 V4DF_FTYPE_V4SI, V4DF_FTYPE_V4SF, V4DF_FTYPE_V2DF,
4286 V4SF_FTYPE_V4DF, V4SF_FTYPE_V8SF, V2DF_FTYPE_V4DF,
4287 V8SF_FTYPE_V8SF_V8SF, V8SF_FTYPE_V8SF_V8SI,
4288 V4DF_FTYPE_V4DF_V4DF, V4DF_FTYPE_V4DF_V4DI,
4289 V4SF_FTYPE_V4SF_V4SI, V2DF_FTYPE_V2DF_V2DI,
4290 V8SF_FTYPE_V8SF_INT, V4SI_FTYPE_V8SI_INT, V4SF_FTYPE_V8SF_INT,
4291 V2DF_FTYPE_V4DF_INT, V4DF_FTYPE_V4DF_INT,
4292 V8SF_FTYPE_V8SF_V8SF_V8SF, V4DF_FTYPE_V4DF_V4DF_V4DF,
4293 V8SI_FTYPE_V8SI_V8SI_INT, V8SF_FTYPE_V8SF_V8SF_INT,
4294 V4DF_FTYPE_V4DF_V4DF_INT, V4DF_FTYPE_V4DF_V2DF_INT,
4295 V8SF_FTYPE_V8SF_V8SF_V8SI_INT, V4DF_FTYPE_V4DF_V4DF_V4DI_INT,
4296 V4SF_FTYPE_V4SF_V4SF_V4SI_INT and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
4297 (bdesc_special_args): Add IX86_BUILTIN_VZEROALL,
4298 IX86_BUILTIN_VZEROUPPER. IX86_BUILTIN_VZEROUPPER_REX64,
4299 IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
4300 IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
4301 IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_LOADUPD256,
4302 IX86_BUILTIN_LOADUPS256, IX86_BUILTIN_STOREUPD256,
4303 IX86_BUILTIN_STOREUPS256, IX86_BUILTIN_LOADDQU256,
4304 IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_LDDQU256,
4305 IX86_BUILTIN_MASKLOADPD, IX86_BUILTIN_MASKLOADPS,
4306 IX86_BUILTIN_MASKLOADPD256, IX86_BUILTIN_MASKLOADPS256,
4307 IX86_BUILTIN_MASKSTOREPD, IX86_BUILTIN_MASKSTOREPS,
4308 IX86_BUILTIN_MASKSTOREPD256 and IX86_BUILTIN_MASKSTOREPS256.
4309 (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
4310 IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
4311 IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
4312 IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
4313 IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_DIVPD256,
4314 IX86_BUILTIN_DIVPS256, IX86_BUILTIN_HADDPD256,
4315 IX86_BUILTIN_HSUBPS256, IX86_BUILTIN_HSUBPD256,
4316 IX86_BUILTIN_HADDPS256, IX86_BUILTIN_MAXPD256,
4317 IX86_BUILTIN_MAXPS256, IX86_BUILTIN_MINPD256,
4318 IX86_BUILTIN_MINPS256, IX86_BUILTIN_MULPD256,
4319 IX86_BUILTIN_MULPS256, IX86_BUILTIN_ORPD256,
4320 IX86_BUILTIN_ORPS256, IX86_BUILTIN_SUBPD256,
4321 IX86_BUILTIN_SUBPS256, IX86_BUILTIN_XORPD256,
4322 IX86_BUILTIN_XORPS256, IX86_BUILTIN_VPERMILVARPD,
4323 IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
4324 IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_BLENDPD256,
4325 IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
4326 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DPPS256,
4327 IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
4328 IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
4329 IX86_BUILTIN_CMPPS,
4330 IX86_BUILTIN_CMPPD256,IX86_BUILTIN_CMPPS256,
4331 IX86_BUILTIN_EXTRACTF128PD256, IX86_BUILTIN_EXTRACTF128PS256,
4332 IX86_BUILTIN_EXTRACTF128SI256, IX86_BUILTIN_CVTDQ2PD256,
4333 IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
4334 IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
4335 IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
4336 IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_VPERM2F128PD256,
4337 IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
4338 IX86_BUILTIN_VPERMILPD, IX86_BUILTIN_VPERMILPS,
4339 IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
4340 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMILPS,
4341 IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
4342 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
4343 IX86_BUILTIN_VPERMIL2PD256, IX86_BUILTIN_VPERMIL2PS256,
4344 IX86_BUILTIN_VINSERTF128PD256, IX86_BUILTIN_VINSERTF128PS256,
4345 IX86_BUILTIN_VINSERTF128SI256, IX86_BUILTIN_MOVSHDUP256,
4346 IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
4347 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
4348 IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
4349 IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
4350 IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
4351 IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
4352 IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
4353 IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
4354 IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
4355 IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
4356 IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
4357 IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
4358 IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
4359 IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
4360 IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
4361 IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
4362 IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
4363 IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256 and
4364 IX86_BUILTIN_MOVMSKPS256.
4365 (ix86_init_mmx_sse_builtins): Support AVX builtins.
4366 (ix86_expand_args_builtin): Likewise.
4367 (ix86_expand_special_args_builtin): Likewise.
4368 (ix86_hard_regno_mode_ok): Handle AVX modes.
4369 (ix86_expand_vector_init_duplicate): Likewise.
4370 (ix86_expand_vector_init_one_nonzero): Likewise.
4371 (ix86_expand_vector_init_one_var): Likewise.
4372 (ix86_expand_vector_init_concat): Likewise.
4373 (ix86_expand_vector_init_general): Likewise.
4374 (ix86_expand_vector_set): Likewise.
4375 (ix86_vector_mode_supported_p): Likewise.
4376 (x86_extended_reg_mentioned_p): Check INSN_P before using
4377 PATTERN.
4378
4379 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
4380 OPTION_MASK_ISA_AVX and OPTION_MASK_ISA_FMA.
4381
4382 * config/i386/i386.h (TARGET_AVX): New.
4383 (TARGET_FMA): Likewise.
4384 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AVX and TARGET_FMA.
4385 (BIGGEST_ALIGNMENT): Set to 256 for TARGET_AVX.
4386 (VALID_AVX256_REG_MODE): New.
4387 (AVX256_VEC_FLOAT_MODE_P): Likewise.
4388 (AVX_FLOAT_MODE_P): Likewise.
4389 (AVX128_VEC_FLOAT_MODE_P): Likewise.
4390 (AVX256_VEC_FLOAT_MODE_P): Likewise.
4391 (AVX_VEC_FLOAT_MODE_P): Likewise.
4392 (ASM_OUTPUT_AVX_PREFIX): Likewise.
4393 (ASM_OUTPUT_OPCODE): Likewise.
4394 (UNITS_PER_SIMD_WORD): Add a FIXME for 32byte vectorizer
4395 support.
4396 (SSE_REG_MODE_P): Allow 256bit vector modes.
4397 (ix86_args): Add a warn_avx field.
4398
4399 * config/i386/i386.md (UNSPEC_PCMP): New.
4400 (UNSPEC_VPERMIL): Likewise.
4401 (UNSPEC_VPERMIL2): Likewise.
4402 (UNSPEC_VPERMIL2F128): Likewise.
4403 (UNSPEC_MASKLOAD): Likewise.
4404 (UNSPEC_MASKSTORE): Likewise.
4405 (UNSPEC_CAST): Likewise.
4406 (UNSPEC_VTESTP): Likewise.
4407 (UNSPECV_VZEROALL): Likewise.
4408 (UNSPECV_VZEROUPPER): Likewise.
4409 (XMM0_REG): Likewise.
4410 (XMM1_REG): Likewise.
4411 (XMM2_REG): Likewise.
4412 (XMM3_REG): Likewise.
4413 (XMM4_REG): Likewise.
4414 (XMM5_REG): Likewise.
4415 (XMM6_REG): Likewise.
4416 (XMM8_REG): Likewise.
4417 (XMM9_REG): Likewise.
4418 (XMM10_REG): Likewise.
4419 (XMM11_REG): Likewise.
4420 (XMM12_REG): Likewise.
4421 (XMM13_REG): Likewise.
4422 (XMM14_REG): Likewise.
4423 (XMM15_REG): Likewise.
4424 (prefix): Likewise.
4425 (prefix_vex_imm8): Likewise.
4426 (prefix_vex_w): Likewise.
4427 (length_vex): Likewise.
4428 (maxmin): Likewise.
4429 (movoi): Likewise.
4430 (*avx_ashlti3): Likewise.
4431 (*avx_lshrti3): Likewise.
4432 (*avx_setcc<mode>): Likewise.
4433 (*fop_<mode>_comm_mixed_avx): Likewise.
4434 (*fop_<mode>_comm_avx): Likewise.
4435 (*fop_<mode>_1_mixed_avx): Likewise.
4436 (*fop_<mode>_1_avx): Likewise.
4437 (*avx_<code><mode>3): Likewise.
4438 (*avx_ieee_smin<mode>3): Likewise.
4439 (*avx_ieee_smax<mode>3): Likewise.
4440 (mode): Add OI, V8SF and V4DF.
4441 (length): Support VEX prefix.
4442 (*cmpfp_i_mixed): Set prefix attribute.
4443 (*cmpfp_i_sse): Likewise.
4444 (*cmpfp_iu_mixed): Likewise.
4445 (*cmpfp_iu_sse): Likewise.
4446 (*movsi_1): Support AVX.
4447 (*movdi_2): Likewise.
4448 (*movdi_1_rex64): Likewise.
4449 (*movti_internal): Likewise.
4450 (*movti_rex64): Likewise.
4451 (*movsf_1): Likewise.
4452 (*movdf_nointeger): Likewise.
4453 (*movdf_integer_rex64): Likewise.
4454 (*movtf_internal): Likewise.
4455 (zero_extendsidi2_32): Likewise.
4456 (zero_extendsidi2_rex64): Likewise.
4457 (*extendsfdf2_mixed): Likewise.
4458 (*extendsfdf2_sse): Likewise.
4459 (*truncdfsf_fast_mixed): Likewise.
4460 (*truncdfsf_fast_sse): Likewise.
4461 (*truncdfsf_mixed): Likewise.
4462 (fix_trunc<mode>di_sse): Likewise.
4463 (fix_trunc<mode>si_sse): Likewise.
4464 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
4465 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
4466 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
4467 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
4468 (*rcpsf2_sse): Likewise.
4469 (*rsqrtsf2_sse): Likewise.
4470 (*sqrt<mode>2_sse): Likewise.
4471 (sse4_1_round<mode>2): Likewise.
4472 (*sse_prologue_save_insn): Disallow REX prefix for AVX.
4473 Support AVX. Set length attribute properly for AVX.
4474
4475 * config/i386/i386-modes.def (VECTOR_MODES (INT, 32)): New.
4476 (VECTOR_MODES (FLOAT, 32)): Likewise.
4477 (VECTOR_MODE (INT, DI, 8)): Likewise.
4478 (VECTOR_MODE (INT, HI, 32)): Likewise.
4479 (VECTOR_MODE (INT, QI, 64)): Likewise.
4480 (VECTOR_MODE (FLOAT, DF, 8)): Likewise.
4481 (VECTOR_MODE (FLOAT, SF, 16)): Likewise.
4482 (VECTOR_MODE (INT, DI, 4)): Removed.
4483 (VECTOR_MODE (INT, SI, 8)): Likewise.
4484 (VECTOR_MODE (INT, HI, 16)): Likewise.
4485 (VECTOR_MODE (INT, QI, 32)): Likewise.
4486 (VECTOR_MODE (FLOAT, SF, 8)): Likewise.
4487 (INT_MODE (OI, 32)): Likewise.
4488
4489 * config/i386/i386.opt (mavx): New.
4490 (mfma): Likewise.
4491
4492 * config/i386/i386-protos.h (ix86_attr_length_vex_default): New.
4493
4494 * config/i386/mmx.md (*mov<mode>_internal_rex64): Support AVX.
4495 (*mov<mode>_internal_avx): New.
4496 (*movv2sf_internal_rex64_avx): Likewise.
4497 (*movv2sf_internal_avx): Likewise.
4498
4499 * config/i386/predicates.md (const_4_to_5_operand): New.
4500 (const_6_to_7_operand): Likewise.
4501 (const_8_to_11_operand): Likewise.
4502 (const_12_to_15_operand): Likewise.
4503 (avx_comparison_float_operator): Likewise.
4504
4505 * config/i386/sse.md (AVX256MODEI): New.
4506 (AVX256MODE): Likewise.
4507 (AVXMODEQI): Likewise.
4508 (AVXMODE): Likewise.
4509 (AVX256MODEF2P): Likewise.
4510 (AVX256MODE2P): Likewise.
4511 (AVX256MODE4P): Likewise.
4512 (AVX256MODE8P): Likewise.
4513 (AVXMODEF2P): Likewise.
4514 (AVXMODEF4P): Likewise.
4515 (AVXMODEDCVTDQ2PS): Likewise.
4516 (AVXMODEDCVTPS2DQ): Likewise.
4517 (avxvecmode): Likewise.
4518 (avxvecpsmode): Likewise.
4519 (avxhalfvecmode): Likewise.
4520 (avxscalarmode): Likewise.
4521 (avxcvtvecmode): Likewise.
4522 (avxpermvecmode): Likewise.
4523 (avxmodesuffixf2c): Likewise.
4524 (avxmodesuffixp): Likewise.
4525 (avxmodesuffixs): Likewise.
4526 (avxmodesuffix): Likewise.
4527 (vpermilbits): Likewise.
4528 (pinsrbits): Likewise.
4529 (mov<mode>): Likewise.
4530 (*mov<mode>_internal): Likewise.
4531 (push<mode>1): Likewise.
4532 (movmisalign<mode>): Likewise.
4533 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Likewise.
4534 (avx_movdqu<avxmodesuffix>): Likewise.
4535 (avx_lddqu<avxmodesuffix>): Likewise.
4536 (<plusminus_insn><mode>3): Likewise.
4537 (*avx_<plusminus_insn><mode>3): Likewise.
4538 (*avx_vm<plusminus_insn><mode>3): Likewise.
4539 (mul<mode>3): Likewise.
4540 (*avx_mul<mode>3): Likewise.
4541 (*avx_vmmul<mode>3): Likewise.
4542 (divv8sf3): Likewise.
4543 (divv4df3): Likewise.
4544 (avx_div<mode>3): Likewise.
4545 (*avx_div<mode>3): Likewise.
4546 (*avx_vmdiv<mode>3): Likewise.
4547 (avx_rcpv8sf2): Likewise.
4548 (*avx_vmrcpv4sf2): Likewise.
4549 (sqrtv8sf2): Likewise.
4550 (avx_sqrtv8sf2): Likewise.
4551 (*avx_vmsqrt<mode>2): Likewise.
4552 (rsqrtv8sf2): Likewise.
4553 (avx_rsqrtv8sf2): Likewise.
4554 (*avx_vmrsqrtv4sf2): Likewise.
4555 (<code><mode>3): Likewise.
4556 (*avx_<code><mode>3_finite): Likewise.
4557 (*avx_<code><mode>3): Likewise.
4558 (*avx_vm<code><mode>3): Likewise.
4559 (*avx_ieee_smin<mode>3): Likewise.
4560 (*avx_ieee_smax<mode>3): Likewise.
4561 (avx_addsubv8sf3): Likewise.
4562 (avx_addsubv4df3): Likewise.
4563 (*avx_addsubv4sf3): Likewise.
4564 (*avx_addsubv2df3): Likewise.
4565 (avx_h<plusminus_insn>v4df3): Likewise.
4566 (avx_h<plusminus_insn>v8sf3): Likewise.
4567 (*avx_h<plusminus_insn>v4sf3): Likewise.
4568 (*avx_h<plusminus_insn>v2df3): Likewise.
4569 (avx_cmpp<avxmodesuffixf2c><mode>3): Likewise.
4570 (avx_cmps<ssemodesuffixf2c><mode>3): Likewise.
4571 (*avx_maskcmp<mode>3): Likewise.
4572 (avx_nand<mode>3): Likewise.
4573 (*avx_<code><mode>3): Likewise.
4574 (*avx_nand<mode>3): Likewise.
4575 (*avx_<code><mode>3): Likewise.
4576 (*avx_cvtsi2ss): Likewise.
4577 (*avx_cvtsi2ssq): Likewise.
4578 (*avx_cvtsi2sd): Likewise.
4579 (*avx_cvtsi2sdq): Likewise.
4580 (*avx_cvtsd2ss): Likewise.
4581 (avx_cvtss2sd): Likewise.
4582 (avx_cvtdq2ps<avxmodesuffix>): Likewise.
4583 (avx_cvtps2dq<avxmodesuffix>): Likewise.
4584 (avx_cvttps2dq<avxmodesuffix>): Likewise.
4585 (*avx_cvtsi2sd): Likewise.
4586 (*avx_cvtsi2sdq): Likewise.
4587 (avx_cvtdq2pd256): Likewise.
4588 (avx_cvtpd2dq256): Likewise.
4589 (avx_cvttpd2dq256): Likewise.
4590 (*avx_cvtsd2ss): Likewise.
4591 (*avx_cvtss2sd): Likewise.
4592 (avx_cvtpd2ps256): Likewise.
4593 (avx_cvtps2pd256): Likewise.
4594 (*avx_movhlps): Likewise.
4595 (*avx_movlhps): Likewise.
4596 (avx_unpckhps256): Likewise.
4597 (*avx_unpckhps): Likewise.
4598 (avx_unpcklps256): Likewise.
4599 (*avx_unpcklps): Likewise.
4600 (avx_movshdup256): Likewise.
4601 (avx_movsldup256): Likewise.
4602 (avx_shufps256): Likewise.
4603 (avx_shufps256_1): Likewise.
4604 (*avx_shufps_<mode>): Likewise.
4605 (*avx_loadhps): Likewise.
4606 (*avx_storelps): Likewise.
4607 (*avx_loadlps): Likewise.
4608 (*avx_movss): Likewise.
4609 (*vec_dupv4sf_avx): Likewise.
4610 (*vec_concatv2sf_avx): Likewise.
4611 (*vec_concatv4sf_avx): Likewise.
4612 (*vec_setv4sf_0_avx): Likewise.
4613 (*vec_setv4sf_avx): Likewise.
4614 (*avx_insertps): Likewise.
4615 (avx_vextractf128<mode>): Likewise.
4616 (vec_extract_lo_<mode>): Likewise.
4617 (vec_extract_hi_<mode>): Likewise.
4618 (vec_extract_lo_<mode>): Likewise.
4619 (vec_extract_hi_<mode>): Likewise.
4620 (vec_extract_lo_v16hi): Likewise.
4621 (vec_extract_hi_v16hi): Likewise.
4622 (vec_extract_lo_v32qi): Likewise.
4623 (vec_extract_hi_v32qi): Likewise.
4624 (avx_unpckhpd256): Likewise.
4625 (*avx_unpckhpd): Likewise.
4626 (avx_movddup256): Likewise.
4627 (*avx_movddup): Likewise.
4628 (avx_unpcklpd256): Likewise.
4629 (*avx_unpcklpd): Likewise.
4630 (avx_shufpd256): Likewise.
4631 (avx_shufpd256_1): Likewise.
4632 (*avx_punpckhqdq): Likewise.
4633 (*avx_punpcklqdq): Likewise.
4634 (*avx_shufpd_<mode>): Likewise.
4635 (*avx_storehpd): Likewise.
4636 (*avx_loadhpd): Likewise.
4637 (*avx_loadlpd): Likewise.
4638 (*avx_movsd): Likewise.
4639 (*vec_concatv2df_avx): Likewise.
4640 (*avx_<plusminus_insn><mode>3): Likewise.
4641 (*avx_<plusminus_insn><mode>3): Likewise.
4642 (*avx_mulv8hi3): Likewise.
4643 (*avxv8hi3_highpart): Likewise.
4644 (*avx_umulv8hi3_highpart): Likewise.
4645 (*avx_umulv2siv2di3): Likewise.
4646 (*avx_mulv2siv2di3): Likewise.
4647 (*avx_pmaddwd): Likewise.
4648 (*avx_mulv4si3): Likewise.
4649 (*avx_ashr<mode>3): Likewise.
4650 (*avx_lshr<mode>3): Likewise.
4651 (*avx_ashl<mode>3): Likewise.
4652 (*avx_<code><mode>3): Likewise.
4653 (*avx_eq<mode>3): Likewise.
4654 (*avx_gt<mode>3): Likewise.
4655 (*avx_nand<mode>3): Likewise.
4656 (*avx_nand<mode>3): Likewise.
4657 (*avx_<code><mode>3): Likewise.
4658 (*avx_<code><mode>3): Likewise.
4659 (*avx_packsswb): Likewise.
4660 (*avx_packssdw): Likewise.
4661 (*avx_packuswb): Likewise.
4662 (*avx_punpckhbw): Likewise.
4663 (*avx_punpcklbw): Likewise.
4664 (*avx_punpckhwd): Likewise.
4665 (*avx_punpcklwd): Likewise.
4666 (*avx_punpckhdq): Likewise.
4667 (*avx_punpckldq): Likewise.
4668 (*avx_pinsr<avxmodesuffixs>): Likewise.
4669 (*avx_pinsrq): Likewise.
4670 (*avx_loadld): Likewise.
4671 (*vec_extractv2di_1_rex64_avx): Likewise.
4672 (*vec_extractv2di_1_avx): Likewise.
4673 (*vec_dupv2di_avx): Likewise.
4674 (*vec_concatv2si_avx): Likewise.
4675 (*vec_concatv4si_1_avx): Likewise.
4676 (*vec_concatv2di_avx): Likewise.
4677 (*vec_concatv2di_rex64_avx): Likewise.
4678 (*avx_uavgv16qi3): Likewise.
4679 (*avx_uavgv8hi3): Likewise.
4680 (*avx_psadbw): Likewise.
4681 (avx_movmskp<avxmodesuffixf2c>256): Likewise.
4682 (*avx_phaddwv8hi3): Likewise.
4683 (*avx_phadddv4si3): Likewise.
4684 (*avx_phaddswv8hi3): Likewise.
4685 (*avx_phsubwv8hi3): Likewise.
4686 (*avx_phsubdv4si3): Likewise.
4687 (*avx_phsubswv8hi3): Likewise.
4688 (*avx_pmaddubsw128): Likewise.
4689 (*avx_pmulhrswv8hi3): Likewise.
4690 (*avx_pshufbv16qi3): Likewise.
4691 (*avx_psign<mode>3): Likewise.
4692 (*avx_palignrti): Likewise.
4693 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
4694 (avx_blendvp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
4695 (avx_dpp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
4696 (*avx_mpsadbw): Likewise.
4697 (*avx_packusdw): Likewise.
4698 (*avx_pblendvb): Likewise.
4699 (*avx_pblendw): Likewise.
4700 (avx_vtestp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
4701 (avx_ptest256): Likewise.
4702 (avx_roundp<avxmodesuffixf2c>256): Likewise.
4703 (*avx_rounds<ssemodesuffixf2c>): Likewise.
4704 (*avx_aesenc): Likewise.
4705 (*avx_aesenclast): Likewise.
4706 (*avx_aesdec): Likewise.
4707 (*avx_aesdeclast): Likewise.
4708 (avx_vzeroupper): Likewise.
4709 (avx_vzeroupper_rex64): Likewise.
4710 (avx_vpermil<mode>): Likewise.
4711 (avx_vpermilvar<mode>3): Likewise.
4712 (avx_vpermil2<mode>3): Likewise.
4713 (avx_vperm2f128<mode>3): Likewise.
4714 (avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>): Likewise.
4715 (avx_vbroadcastss256): Likewise.
4716 (avx_vbroadcastf128_p<avxmodesuffixf2c>256): Likewise.
4717 (avx_vinsertf128<mode>): Likewise.
4718 (vec_set_lo_<mode>): Likewise.
4719 (vec_set_hi_<mode>): Likewise.
4720 (vec_set_lo_<mode>): Likewise.
4721 (vec_set_hi_<mode>): Likewise.
4722 (vec_set_lo_v16hi): Likewise.
4723 (vec_set_hi_v16hi): Likewise.
4724 (vec_set_lo_v32qi): Likewise.
4725 (vec_set_hi_v32qi): Likewise.
4726 (avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
4727 (avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>): Likewise.
4728 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
4729 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Likewise.
4730 (vec_init<mode>): Likewise.
4731 (*vec_concat<mode>_avx): Likewise.
4732 (blendbits): Support V8SF and V4DF.
4733 (sse2_movq128): Support AVX.
4734 (<sse>_movnt<mode>): Likewise.
4735 (sse2_movntv2di): Likewise.
4736 (sse_rcpv4sf2): Likewise.
4737 (sse_sqrtv4sf2): Likewise.
4738 (sse_rsqrtv4sf2): Likewise.
4739 (<sse>_comi): Likewise.
4740 (<sse>_ucomi): Likewise.
4741 (sse_cvtss2si): Likewise.
4742 (sse_cvtss2si_2): Likewise.
4743 (sse_cvtss2siq): Likewise.
4744 (sse_cvtss2siq_2): Likewise.
4745 (sse_cvttss2si): Likewise.
4746 (sse_cvttss2siq): Likewise.
4747 (sse2_cvtsd2si): Likewise.
4748 (sse2_cvtsd2si_2): Likewise.
4749 (sse2_cvtsd2siq): Likewise.
4750 (sse2_cvtsd2siq_2): Likewise.
4751 (sse2_cvttsd2si): Likewise.
4752 (sse2_cvttsd2siq): Likewise.
4753 (sse2_cvtdq2pd): Likewise.
4754 (*sse2_cvtpd2dq): Likewise.
4755 (*sse2_cvttpd2dq): Likewise.
4756 (*sse2_cvtpd2ps): Likewise.
4757 (sse2_cvtps2pd): Likewise.
4758 (sse3_movshdup): Likewise.
4759 (sse3_movsldup): Likewise.
4760 (sse_storehps): Likewise.
4761 (*sse4_1_extractps): Likewise.
4762 (sse2_storelpd): Likewise.
4763 (vec_dupv2df_sse3): Likewise.
4764 (*vec_concatv2df_sse3): Likewise.
4765 (*sse4_1_pextrb): Likewise.
4766 (*sse4_1_pextrb_memory): Likewise.
4767 (*sse2_pextrw): Likewise.
4768 (*sse4_1_pextrw_memory): Likewise.
4769 (*sse4_1_pextrd): Likewise.
4770 (*sse4_1_pextrq): Likewise.
4771 (sse2_pshufd_1): Likewise.
4772 (sse2_pshuflw_1): Likewise.
4773 (sse2_pshufhw_1): Likewise.
4774 (*sse2_storeq_rex64): Likewise.
4775 (*vec_dupv4si): Likewise.
4776 (<sse>_movmskp<ssemodesuffixf2c>): Likewise.
4777 (sse2_pmovmskb): Likewise.
4778 (*sse2_maskmovdqu): Likewise.
4779 (*sse2_maskmovdqu_rex64): Likewise.
4780 (sse_ldmxcsr): Likewise.
4781 (sse_stmxcsr): Likewise.
4782 (abs<mode>2): Likewise.
4783 (sse4_1_movntdqa): Likewise.
4784 (sse4_1_phminposuw): Likewise.
4785 (sse4_1_extendv8qiv8hi2): Likewise.
4786 (*sse4_1_extendv8qiv8hi2): Likewise.
4787 (sse4_1_extendv4qiv4si2): Likewise.
4788 (*sse4_1_extendv4qiv4si2): Likewise.
4789 (sse4_1_extendv2qiv2di2): Likewise.
4790 (*sse4_1_extendv2qiv2di2): Likewise.
4791 (sse4_1_extendv4hiv4si2): Likewise.
4792 (*sse4_1_extendv4hiv4si2): Likewise.
4793 (sse4_1_extendv2hiv2di2): Likewise.
4794 (*sse4_1_extendv2hiv2di2): Likewise.
4795 (sse4_1_extendv2siv2di2): Likewise.
4796 (*sse4_1_extendv2siv2di2): Likewise.
4797 (sse4_1_zero_extendv8qiv8hi2): Likewise.
4798 (*sse4_1_zero_extendv8qiv8hi2): Likewise.
4799 (sse4_1_zero_extendv4qiv4si2): Likewise.
4800 (*sse4_1_zero_extendv4qiv4si2): Likewise.
4801 (sse4_1_zero_extendv2qiv2di2): Likewise.
4802 (*sse4_1_zero_extendv2qiv2di2): Likewise.
4803 (sse4_1_zero_extendv4hiv4si2): Likewise.
4804 (*sse4_1_zero_extendv4hiv4si2): Likewise.
4805 (sse4_1_zero_extendv2hiv2di2): Likewise.
4806 (*sse4_1_zero_extendv2hiv2di2): Likewise.
4807 (sse4_1_zero_extendv2siv2di2): Likewise.
4808 (*sse4_1_zero_extendv2siv2di2): Likewise.
4809 (sse4_1_ptest): Likewise.
4810 (sse4_1_roundp<ssemodesuffixf2c>): Likewise.
4811 (sse4_2_pcmpestri): Likewise.
4812 (sse4_2_pcmpestrm): Likewise.
4813 (sse4_2_pcmpistri): Likewise.
4814 (sse4_2_pcmpistrm): Likewise.
4815 (aesimc): Likewise.
4816 (aeskeygenassist): Likewise.
4817
4818 2008-08-28 Uros Bizjak <ubizjak@gmail.com>
4819
4820 * config/i386/predicates.md (vzeroall_operation): New.
4821
4822 * config/i386/sse.md (avx_vzeroall): New.
4823 (*avx_vzeroall): Likewise.
4824
4825 2008-08-28 Paul Brook <paul@codesourcery.com>
4826 Mark Shinwell <shinwell@codesourcery.com>
4827 Richard Earnshaw <richard.earnshaw@arm.com>
4828
4829 * config/arm/arm.c (TARGET_MAX_ANCHOR_OFFSET): New.
4830 (TARGET_MIN_ANCHOR_OFFSET): New.
4831 (arm_override_options): Set correct anchor ranges for Thumb-1
4832 and Thumb-2 if required.
4833 (legitimize_pic_address): Handle case involving a TLS symbol
4834 reference with an addend.
4835 (arm_optimization_options): Enable section anchors at -O1 and
4836 above.
4837 * config/arm/arm.h (OPTIMIZATION_OPTIONS): New.
4838 * config/arm/arm-protos.h (arm_optimization_options): New.
4839
4840 2008-08-28 Nick Clifton <nickc@redhat.com>
4841
4842 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Define.
4843 * config/stormy16/stormy16.md (zero_extendqihi2): Fix length
4844 attribute.
4845
4846 * config/v850/v850.h (IRA_COVER_CLASSES): Define.
4847 * config/v850/v850.md (return): Remove frame size restriction.
4848
4849 * config/mcore/mcore.h (IRA_COVER_CLASSES): Define.
4850
4851 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Define.
4852
4853 * config/fr30/fr30.h (IRA_COVER_CLASSES): Define.
4854
4855 * config/m32r/m32r.h (IRA_COVER_CLASSES): Define.
4856
4857 2008-08-28 Paul Brook <paul@codesourcery.com>
4858
4859 * config/arm/vfp11.md: Update license notice.
4860 * config/arm/cortex-r4.md: Ditto.
4861
4862 2008-08-28 Richard Guenther <rguenther@suse.de>
4863
4864 PR tree-optimization/37207
4865 * tree-ssa-ifcombine.c (recognize_single_bit_test): Fix
4866 tuplification bug.
4867
4868 2008-08-28 Dodji Seketeli <dodji@redhat.com>
4869
4870 PR c++/36741
4871 * tree.c (int_fits_type_p): Don't forget unsigned integers
4872 of type sizetype which higher end word equals -1.
4873
4874 2008-08-28 Ira Rosen <irar@il.ibm.com>
4875
4876 * target.h (struct vectorize): Add new target builtin.
4877 * tree-vectorizer.c (destroy_loop_vec_info): Call
4878 vect_free_slp_instance instead of vect_free_slp_node.
4879 * tree-vectorizer.h (enum slp_load_perm_type): New.
4880 (struct _slp_instance): Add new fields.
4881 (SLP_INSTANCE_LOAD_PERMUTATION): New.
4882 (SLP_INSTANCE_LOADS): New.
4883 (vect_free_slp_tree): Remove.
4884 (vect_free_slp_instance): Declare.
4885 (SLP_TREE_LOADS_PERM_TYPE, TARG_VEC_PERMUTE_COST): New.
4886 (vectorizable_load): Add argument.
4887 (vect_transform_slp_perm_load): New.
4888 * tree-vect-analyze.c (vect_analyze_operations): Add an argument to
4889 vectorizable_load.
4890 (vect_get_place_in_interleaving_chain): New function.
4891 (vect_free_slp_tree): Make static.
4892 (vect_free_slp_instance): New function.
4893 (vect_build_slp_tree): Add new arguments. Allow load permutations and
4894 collect the load location in the interleaving chain.
4895 (vect_supported_slp_permutation_p): New function.
4896 (vect_supported_load_permutation_p): Likewise.
4897 (vect_analyze_slp_instance): In case of loads permutation, call
4898 vect_supported_load_permutation_p to check that the permutation is
4899 supported.
4900 * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM): New.
4901 * tree-vect-transform.c (vect_transform_stmt): Add new argument.
4902 (vect_create_mask_and_perm): New function.
4903 (vect_get_mask_element, vect_transform_slp_perm_load): Likewise.
4904 (vectorizable_load): Add an argument. Don't keep the created vectors
4905 statements in the node if permutation is required. Call
4906 vect_transform_slp_perm_load to generate the permutation.
4907 (vect_transform_stmt): Add new argument. Call vectorizable_load with
4908 additional argument.
4909 (vect_schedule_slp_instance): In case of loads permutation, allocate
4910 vectorized statements structure for all the related SLP nodes. Call
4911 vect_transform_stmt with addditional argument.
4912 (vect_transform_loop): Call vect_transform_stmt with correct arguments.
4913 * config/spu/spu.c (spu_builtin_vec_perm): New.
4914 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
4915 * config/spu/spu.h (TARG_VEC_PERMUTE_COS): Define.
4916 * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): New.
4917 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
4918
4919 2008-08-28 Chris Fairles <chris.fairles@gmail.com>
4920
4921 * gthr-posix.h (__gthread_create, __gthread_join, __gthread_detach,
4922 __gthread_mutex_timed_lock, __gthread_recursive_mutex_timed_lock,
4923 __gthread_cond_signal, __gthread_cond_timedwait,
4924 __gthread_cond_timedwait_recursive): New functions.
4925 * gthr-posix.c (pthread_mutex_timedlock, pthread_cond_timedwait):
4926 Likewise.
4927 * gthr.h: Comment on defining __GTHREADS_CXX0X macro in conforming
4928 thread interfaces.
4929
4930 2008-08-28 Richard Guenther <rguenther@suse.de>
4931
4932 PR middle-end/37005
4933 * fold-const.c (maybe_canonicalize_comparison_1): Require
4934 undefined overflow only for canonicalizing A +- CST cmp CST.
4935 Make sure to not generate new constants that are not inside
4936 their TYPE_MIN/MAX_VALUE range.
4937 (maybe_canonicalize_comparison): Remove undefined overflow
4938 checking from here.
4939 (fold_binary): Remove now duplicate folding.
4940
4941 2008-08-27 Paolo Carlini <paolo.carlini@oracle.com>
4942
4943 * c-typeck.c (convert_for_assignment): Adjust WARN_FOR_ASSIGNMENT
4944 use not updated in the last change.
4945
4946 2008-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
4947
4948 * config/sh/sh.h (REG_CLASS_CONTENTS): Drop fr32 from FPUL_REGS.
4949 (IRA_COVER_CLASSES): Add FPUL_REGS.
4950
4951 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4952
4953 PR 37217
4954 * c-common.c (conversion_warning): Check for null operands.
4955
4956 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4957
4958 PR c/31673
4959 * c-decl.c (check_for_loop_decls): Improve error message. Give
4960 hint.
4961
4962 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4963
4964 PR c/37186
4965 * c-typeck.c (WARN_FOR_ASSIGNMENT): Add OPT parameter.
4966 (convert_for_assignment): Pass corrent OPT_W* parameter to
4967 WARN_FOR_ASSIGNMENT.
4968
4969 2008-08-27 Paolo Carlini <paolo.carlini@oracle.com>
4970
4971 PR c++/35321
4972 * c-common.c (fold_offsetof_1): Handle TARGET_EXPR like CALL_EXPR.
4973
4974 2008-08-27 Paul Brook <paul@codesourcery.com>
4975
4976 * config.gcc: Loosen checks for arm uclinux eabi targets.
4977
4978 2008-08-27 Paul Brook <paul@codesourcery.com>
4979
4980 * config/arm/t-arm-coff (LIB1ASMFUNCS): Add missing undescrore on
4981 _clzsi2.
4982 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
4983
4984 2008-08-26 Douglas Gregor <doug.gregor@gmail.com>
4985
4986 * c-common.c (do_switch_warnings): Look through the CONST_DECLs in
4987 the enumerators of an ENUMERAL_TYPE.
4988 * dbxout.c (dbxout_type): Ditto.
4989
4990 2008-08-26 Andrew Pinski <andrew_pinski@playstation.sony.com>
4991
4992 PR rtl-opt/37219
4993 * fwprop.c (fwprop): Check that the loop_father is the outer loop.
4994 (fwprop_addr): Check that the loop_father is not the outer loop.
4995
4996 2008-08-26 Paul Brook <paul@codesourcery.com>
4997
4998 * config/arm/vfp.md: Document fmul{s,d} and fmac{s,d} types.
4999 Remove documentation entry for fmul type.
5000 Use fmuls to annotate single-precision multiplication patterns,
5001 fmuld to annotate double-precision multiplication patterns,
5002 fmacs to annotate single-precision multiply-accumulate patterns
5003 and fmacd to annotate double-precision multiply-accumulate patterns.
5004 * config/arm/vfp11.md: Update reservations accordingly.
5005 * config/arm/arm.md: Note that certain values of the "type"
5006 attribute are documented in vfp.md.
5007 * config/arm/arm1020e.md: Remove out of date duplicate comment.
5008 (v10_cvt): Use new fmul types.
5009
5010 2008-08-26 Paul Brook <paul@codesourcery.com>
5011
5012 * config/arm/vfp.md: Move pipeline description for VFP11 to...
5013 * config/arm/vfp11.md: ...here. New.
5014 * config/arm/arm.md: Include vfp11.md.
5015
5016 2008-08-26 Hans-Peter Nilsson <hp@axis.com>
5017
5018 * opts.c (decode_options) [!IRA_COVER_CLASSES]: Add missing
5019 parameter to inform call.
5020
5021 2008-08-26 Jeff Law <law@redhat.com>
5022
5023 * mn10300.md (movqi, movhi): Split i->d*a case into two cases to
5024 avoid the possibility of getting DATA_OR_ADDRESS_REGS as the
5025 preferred class when copying a constant into a partial word register.
5026
5027 2008-08-26 Ben Elliston <bje@au.ibm.com>
5028
5029 * rtlanal.c: Fix uses of "it's" with "its" where appropriate.
5030 * cp/typeck.c: Likewise.
5031 * cp/tree.c: Likewise.
5032 * gimple-low.c: Likewise.
5033 * jump.c: Likewise.
5034
5035 2008-08-26 Vladimir Makarov <vmakarov@redhat.com>
5036
5037 * ira-build.c, ira-color.c, ira-costs.c, ira.h, ira-lives.c,
5038 ira.c, ira-conflicts.c, ira-emit.c, ira-int.h: New files.
5039
5040 * doc/passes.texi: Describe IRA.
5041
5042 * doc/tm.texi (IRA_COVER_CLASSES,
5043 IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Describe the new macros.
5044
5045 * doc/invoke.texi (ira-max-loops-num): Describe the new parameter.
5046 (-fira, -fira-algorithm, -fira-coalesce, -fno-ira-move-spills,
5047 -fira-propagate-cost, -fno-ira-share-save-slots,
5048 -fno-ira-share-spill-slots, -fira-verbose): Describe new options.
5049
5050 * flags.h (ira_algorithm): New enumeration.
5051 (flag_ira_algorithm, flag_ira_verbose): New external variable
5052 declarations.
5053
5054 * postreload.c (gate_handle_postreload): Don't do post reload
5055 optimizations unless the reload is completed.
5056
5057 * reload.c (push_reload, find_dummy_reload): Use DF_LR_OUT for
5058 IRA.
5059
5060 * tree-pass.h (pass_ira): New external variable declaration.
5061
5062 * reload.h: Add 2008 to the Copyright.
5063
5064 * cfgloopanal.c: Include params.h.
5065 (estimate_reg_pressure_cost): Decrease cost for IRA optimization
5066 mode.
5067
5068 * params.h (IRA_MAX_LOOPS_NUM): New macro.
5069
5070 * toplev.c (ira.h): New include.
5071 (flag_ira_algorithm, flag_ira_verbose): New external variables.
5072 (backend_init_target): Call ira_init.
5073 (backend_init): Call ira_init_once.
5074 (finalize): Call finish_ira_once.
5075
5076 * toplev.h (flag_ira, flag_ira_coalesce, flag_ira_move_spills,
5077 flag_ira_share_save_slots, flag_ira_share_spill_slots): New
5078 external variables.
5079
5080 * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
5081 may_move_out_cost): New external variable declarations.
5082 (move_table): New typedef.
5083
5084 * caller-save.c: Include headers output.h and ira.h.
5085 (no_caller_save_reg_set): New global variable.
5086 (save_slots_num, save_slots): New variables.
5087 (reg_save_code, reg_restore_code, add_stored_regs): Add
5088 prototypes.
5089 (init_caller_save): Set up no_caller_save_reg_set.
5090 (init_save_areas): Reset save_slots_num.
5091 (saved_hard_reg): New structure.
5092 (hard_reg_map, saved_regs_num, all_saved_regs): New variables.
5093 (initiate_saved_hard_regs, new_saved_hard_reg,
5094 finish_saved_hard_regs, saved_hard_reg_compare_func): New
5095 functions.
5096 (setup_save_areas): Add code for sharing stack slots.
5097 (all_blocks): New variable.
5098 (save_call_clobbered_regs): Process pseudo-register too.
5099 (mark_set_regs): Process pseudo-register too.
5100 (insert_one_insn): Put the insn after bb note in a empty basic
5101 block. Add insn check.
5102
5103 * global.c (eliminable_regset): Make it external.
5104 (mark_elimination): Use DF_LR_IN for IRA.
5105 (pseudo_for_reload_consideration_p): New.
5106 (build_insn_chain): Make it external. Don't ignore spilled
5107 pseudos for IRA. Use pseudo_for_reload_consideration_p.
5108 (gate_handle_global_alloc): New function.
5109 (pass_global_alloc): Add the gate function.
5110
5111 * opts.c (decode_options): Set up flag_ira. Print the warning for
5112 -fira.
5113 (common_handle_option): Process -fira-algorithm and -fira-verbose.
5114
5115 * timevar.def (TV_IRA, TV_RELOAD): New passes.
5116
5117 * regmove.c (regmove_optimize): Don't do replacement of output for
5118 IRA.
5119
5120 * hard-reg-set.h (no_caller_save_reg_set, reg_class_subclasses):
5121 New external variable declarations.
5122
5123 * local-alloc.c (update_equiv_regs): Make it external. Return
5124 true if jump label rebuilding should be done. Rescan new_insn for
5125 notes.
5126 (gate_handle_local_alloc): New function.
5127 (pass_local_alloc): Add the gate function.
5128
5129 * alias.c (value_addr_p, stack_addr_p): New functions.
5130 (nonoverlapping_memrefs_p): Use them for IRA.
5131
5132 * common.opt (fira, fira-algorithm, fira-coalesce,
5133 fira-move-spills, fira-share-save-slots, fira-share-spill-slots,
5134 fira-verbose): New options.
5135
5136 * regclass.c (reg_class_subclasses, contains_reg_of_mode,
5137 move_cost, may_move_in_cost, may_move_out_cost): Make the
5138 variables external.
5139 (move_table): Remove typedef.
5140 (init_move_cost): Make it external.
5141 (allocate_reg_info, resize_reg_info, setup_reg_classes): New
5142 functions.
5143
5144 * rtl.h (init_move_cost, allocate_reg_info, resize_reg_info,
5145 setup_reg_classes): New function prototypes.
5146 (eliminable_regset): New external variable declaration.
5147 (build_insn_chain, update_equiv_regs): New function prototypes.
5148
5149 * Makefile.in (IRA_INT_H): New definition.
5150 (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
5151 ira-conflicts.o, ira-color.o, ira-emit.o, and ira-lives.o.
5152 (reload1.o, toplev.o): Add dependence on ira.h.
5153 (cfgloopanal.o): Add PARAMS_H.
5154 (caller-save.o): Add dependence on output.h and ira.h.
5155 (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
5156 ira-emit.o, ira-lives.o): New entries.
5157
5158 * passes.c (pass_ira): New pass.
5159
5160 * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
5161
5162 * reload1.c (ira.h): Include the header.
5163 (changed_allocation_pseudos): New bitmap.
5164 (init_reload): Initiate the bitmap.
5165 (compute_use_by_pseudos): Permits spilled registers in FROM.
5166 (temp_pseudo_reg_arr): New variable.
5167 (reload): Allocate and free temp_pseudo_reg_arr. Sort pseudos for
5168 IRA. Call alter_reg with the additional parameter. Don't clear
5169 spilled_pseudos for IRA. Restore original insn chain for IRA.
5170 Clear changed_allocation_pseudos at the end of reload.
5171 (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
5172 (hard_regno_to_pseudo_regno): New variable.
5173 (count_pseudo): Check spilled pseudos. Set up
5174 hard_regno_to_pseudo_regno.
5175 (count_spilled_pseudo): Check spilled pseudos. Update
5176 hard_regno_to_pseudo_regno.
5177 (find_reg): Use better_spill_reload_regno_p. Check
5178 hard_regno_to_pseudo_regno.
5179 (alter_reg): Set up spilled_pseudos. Add a new parameter. Add
5180 code for IRA.
5181 (eliminate_regs_1): Use additional parameter for alter_reg.
5182 (finish_spills): Set up pseudo_previous_regs only for spilled
5183 pseudos. Call reassign_pseudos once for all spilled pseudos, pass
5184 more arguments. Don't clear live_throughout and dead_or_set for
5185 spilled pseudos. Use additional parameter for alter_reg. Call
5186 mark_allocation_change. Set up changed_allocation_pseudos.
5187 Remove sanity check.
5188 (emit_input_reload_insns, delete_output_reload): Use additional
5189 parameter for alter_reg. Call mark_allocation_change.
5190 (substitute, gen_reload_chain_without_interm_reg_p): New
5191 functions.
5192 (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
5193
5194 * testsuite/gcc.dg/20080410-1.c: New file.
5195
5196 * config/s390/s390.h (IRA_COVER_CLASSES,
5197 IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Define.
5198
5199 * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
5200
5201 * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
5202
5203 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
5204
5205 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
5206
5207 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
5208
5209 * config/alpha/alpha.h (IRA_COVER_CLASSES): Ditto.
5210
5211 2008-08-24 Jeff Law <law@redhat.com>
5212 * ira.c (setup_reg_class_intersect_union): Prefer smallest class
5213 when ignoring unavailable registers.
5214
5215 2008-08-24 Jeff Law <law@redhat.com>
5216 * ira-color.c (coalesced_pseudo_reg_slot_compare): Check
5217 FRAME_GROWS_DOWNWARD and STACK_GROWS_DOWNWARD.
5218 * ira.c (setup_eliminable_regset): Check stack_realign_needed.
5219 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): New macro.
5220
5221 2008-06-03 Steve Chamberlain <steve.chamberlain@gmail.com>
5222 * ira-build.c (allocno_range_compare_func): Stabilize sort.
5223
5224 2008-05-29 Andy Hutchinson <hutchinsonandy@aim.com>
5225 * config/avr/avr.h (IRA_COVER_CLASSES): New macro.
5226 * reload1.c (find_reg): Process registers in register allocation order.
5227
5228 2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
5229 * toplev.c (backend_init_target): Move ira_init call from
5230 here...
5231 (lang_dependent_init_target): ...to here.
5232
5233 2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
5234 * ira.c (setup_class_subset_and_memory_move_costs): Don't
5235 calculate memory move costs for NO_REGS.
5236
5237 2008-05-05 Kaz Kojima <kkojima@gcc.gnu.org>
5238 * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
5239 STACK_REGS is defined.
5240
5241 2008-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
5242 * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
5243
5244 2008-04-04 Bernd Schmidt <bernd.schmidt@analog.com>
5245 * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
5246
5247 2008-04-04 Kaz Kojima <kkojima@gcc.gnu.org>
5248 * config/sh/sh.h (IRA_COVER_CLASSES): Define.
5249 * config/sh/sh.md (movsicc_true+3): Check if emit returns a
5250 barrier.
5251
5252 2008-08-26 Victor Kaplansky <victork@il.ibm.com>
5253 Dorit Nuzman <dorit@il.ibm.com>
5254
5255 * gcc/config/spu/spu.md (vec_extract_evenv4si,
5256 vec_extract_evenv4sf, vec_extract_evenv8hi,
5257 vec_extract_evenv16qi, vec_extract_oddv4si,
5258 vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
5259 vec_interleave_highv4sf, vec_interleave_lowv4sf,
5260 vec_interleave_highv4si, vec_interleave_lowv4si,
5261 vec_interleave_highv8hi, vec_interleave_lowv8hi,
5262 vec_interleave_highv16qi, vec_interleave_lowv16qi,
5263 vec_pack_trunc_v8hi, vec_pack_trunc_v4si): Implement.S
5264
5265 2008-08-25 Janis Johnson <janis187@us.ibm.com>
5266
5267 PR target/36756
5268 * config/rs6000/rs6000.c (optimization_options): Don't default to
5269 section anchors without toplevel reorder.
5270
5271 2008-08-25 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5272
5273 * config/spu/spu_mfcio.h (mfc_begin_critical_section): New function.
5274 (mfc_end_critical_section): Likewise.
5275
5276 2008-08-25 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5277
5278 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Propagate
5279 all type qualifiers from element type to vector type.
5280
5281 2008-08-25 David Daney <ddaney@avtrex.com>
5282
5283 * config/mips/mips.md (immediate_insn): Move up in file, fix
5284 comment typo, reformat.
5285 (fetchop_bit, atomic_hiqi_op memory_barrier,
5286 sync_compare_and_swap<mode>, compare_and_swap_12, sync_add<mode>,
5287 sync_<optab><mode>, sync_<optab>_12, sync_old_<optab><mode>,
5288 sync_old_<optab>_12, sync_new_<optab><mode>, sync_new_<optab>_12,
5289 sync_nand<mode>, sync_nand_12, sync_old_nand<mode>,
5290 sync_old_nand_12, sync_new_nand<mode>, sync_new_nand_12,
5291 sync_sub<mode>, sync_old_add<mode>, sync_old_sub<mode>,
5292 sync_new_add<mode>, sync_new_sub<mode>, sync_<optab><mode>,
5293 sync_old_<optab><mode>, sync_new_<optab><mode>, sync_nand<mode>,
5294 sync_old_nand<mode>, sync_new_nand<mode>,
5295 sync_lock_test_and_set<mode>, sync_lock_test_and_set<mode>,
5296 test_and_set_12): Moved to sync.md.
5297 (sync.md): Include.
5298 * config/mips/sync.md: New file.
5299
5300 2008-08-25 Richard Henderson <rth@redhat.com>
5301
5302 * dwarf2out.c (def_cfa_1): Don't scale by DWARF_CIE_DATA_ALIGNMENT.
5303 (regsave): Likewise.
5304 (lookup_cfa_1): Don't rescale by DWARF_CIE_DATA_ALIGNMENT.
5305 (output_cfi_directive): Likewise.
5306 (div_data_align): New.
5307 (output_cfi): Use it.
5308
5309 2008-08-24 Adam Nemet <anemet@caviumnetworks.com>
5310
5311 * config.gcc (mips64*-*-linux*): Handle mips64octeon*-*-linux*.
5312 * config/mips/mips.h (enum processor_type): Add PROCESSOR_OCTEON.
5313 (TARGET_OCTEON): New macro.
5314 (TARGET_CPU_CPP_BUILTINS): Define __OCTEON__ for Octeon.
5315 (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC): Handle -march=octeon.
5316 (ISA_HAS_POP): New macro.
5317 * config/mips/driver-native.c (host_detect_local_cpu): Handle
5318 Octeon.
5319 * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
5320 Handle Octeon.
5321 * config/mips/mips.md (cpu): Add octeon.
5322 (type): Add pop attribute value.
5323 (popcount<mode>2): New pattern.
5324 * doc/invoke.texi (-march=@var{arch}): Add octeon.
5325
5326 2008-08-24 Jan Hubicka <jh@suse.cz>
5327
5328 * doc/invoke.texi (-fipa-cp-clone): New option.
5329 (-fipa-cp): Update docs.
5330 (--param ipcp-unit-growth):New.
5331 * ipa-cp.c: Include fibheap.h, params.h
5332 (ipcp_initialize_node_lattices): When not cloning, all externally
5333 visible functions are bottom.
5334 (ipcp_need_redirect_p): Accept clones.
5335 (ipcp_insert_stage): Use cost driven heuristics.
5336 (max_count, dead_nodes): New static vars.
5337 (ipcp_need_original_clone_p, ipcp_estimate_cloning_cost,
5338 ipcp_const_param_count): New functions.
5339 * common.opt (ipa-cp-clone): New command line option.
5340 * params.def (ipcp-unit-growth): New.
5341
5342 2008-08-24 Jan Hubicka <jh@suse.cz>
5343
5344 * tree-inline.c (tree_function_versioning): Look harder
5345 for referenced vars.
5346
5347 2008-08-24 Razya Ladelsky <razya@il.ibm.com>
5348
5349 PR tree-optimization/37185
5350 * matrix-reorg.c (transform_access_sites): Update changed stmt.
5351
5352 2008-08-23 Jan Hubicka <jh@suse.cz>
5353
5354 * ipa-cp.c (ipcp_analyze_node): New function.
5355 (ipcp_update_cloned_node): Use it.
5356 (ipcp_init_stage): Likewise.
5357 * ipa-inline.c (function_insertion_hook_holder): New static var.
5358 (analyze_function): Break out from ....
5359 (inline_generate_summary): Here; register insertion hook.
5360 (cgraph_decide_inlining): Remove hook.
5361 (add_new_function): New function.
5362
5363 2008-08-23 Jan Hubicka <jh@suse.cz>
5364
5365 * opts.c (decode_options): Revert accidental change enabling ipa-cp.
5366
5367 2008-08-23 Jan Hubicka <jh@suse.cz>
5368
5369 * ipa-cp.c (constant_val_insert): Remove.
5370 (ipcp_propagate_one_const): Remove.
5371 (ipcp_create_replace_map): Always insert replacements to the map.
5372 (ipcp_insert_stage): Do not try to insert statements by hand.
5373 * tree-inline.c (insert_init_stmt): Break out from ...
5374 (setup_one_parameter): ... here; allow NULL BB pointer.
5375 (tree_function_versioning): Use setup_one_parameter to process
5376 replacement map.
5377
5378 2008-08-23 Jan Hubicka <jh@suse.cz>
5379
5380 * tree.c (decl_address_ip_invariant_p): New function.
5381 * tree.h (decl_address_ip_invariant_p): Declare.
5382 * gimple.c (strip_invariant_refs): Break out from ...
5383 (is_gimple_invariant_address): ... here
5384 (is_gimple_ip_invariant_address): New function.
5385 (is_gimple_ip_invariant): New function.
5386 * gimple.h (is_gimple_ip_invariant_address, is_gimple_ip_invariant):
5387 Declare.
5388
5389 * ipa-cp.c (ipcp_lat_is_const): Remove handling of IPA_CONST_VALUE_REF.
5390 (ipcp_lat_is_insertable): All constants are insertable.
5391 (ipcp_lattice_from_jfunc, ipcp_print_all_lattices): Remove handling of
5392 IPA_CONST_VALUE_REF.
5393 (ipcp_initialize_node_lattices): Propagate all types of operands.
5394 (build_const_val): Do not handle IPA_CONST_VALUE_REF.
5395 (ipcp_create_replace_map): Reformat.
5396 (ipcp_need_redirect_p): Simplify.
5397 (ipcp_insert_stage): Check that argument is used before clonning.
5398 * ipa-prop.c (ipa_print_node_jump_functions): Do not handle
5399 IPA_CONST_REF.
5400 (compute_scalar_jump_functions): Simplify using is_gimple_ip_invariat.
5401 (determine_cst_member_ptr): Keep wrapping ADDR_EXPR of members.
5402 (update_call_notes_after_inlining): Expect ADDR_EXPR in operand.
5403 * ipa-prop.h (jump_func_type): Remove IPA_CONST_REF.
5404 (jump_func_type): Remove IPA_CONST_VALUE_REF.
5405 * tree-inline.c (tree_function_versioning): Add variables referenced
5406 by replacing trees.
5407
5408 2008-08-23 Jan Hubicka <jh@suse.cz>
5409
5410 PR target/37094
5411 * i386.c (standard_80387_constant_p): Use optimize_size.
5412
5413 2008-08-23 Ira Rosen <irar@il.ibm.com>
5414
5415 PR tree-optimization/37161
5416 * tree-vectorizer.h (vect_get_smallest_scalar_type): Declare.
5417 * tree-vect-analyze.c (vect_get_smallest_scalar_type): New function.
5418 (vect_determine_vectorization_factor): Move the scalar type
5419 retrieval to vect_get_smallest_scalar_type.
5420 (vect_build_slp_tree): Call vect_get_smallest_scalar_type to get
5421 scalar type. Remove redundant computation.
5422 * tree-vect-transform.c (vect_get_constant_vectors): Add argument.
5423 (vect_get_slp_defs): Take the type of RHS into account if
5424 necessary by calling vect_get_smallest_scalar_type. Call
5425 vect_get_constant_vectors with additional argument.
5426
5427 2008-08-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5428
5429 PR 35648
5430 * doc/invoke.texi (Wwrite-strings): Clarify description.
5431
5432 2008-08-23 Ira Rosen <irar@il.ibm.com>
5433
5434 PR tree-optimization/37174
5435 * tree-vect-analyze.c (vect_get_and_check_slp_defs): Check that the
5436 def stmt is a part of the loop before accessing its stmt_vec_info.
5437
5438 2008-08-22 Anatoly Sokolov <aesok@post.ru>
5439
5440 PR target/11259
5441 * config/avr/avr.md (UNSPEC_SWAP): New constants.
5442 (*swap): New insn pattern.
5443 (*ashlqi3): Rename from ashlqi3 insn pattern.
5444 (ashlqi3): New expanders.
5445 (*lshrqi3): Rename from lshrqi3 insn pattern.
5446 (lshrqi3): New expanders.
5447 (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, lshrqi3_const4,
5448 lshrqi3_const5, lshrqi3_const6): New splitters.
5449 (andi, ashlqi3_l_const4, ashlqi3_l_const5, ashlqi3_l_const6,
5450 lshrqi3_l_const4, lshrqi3_l_const5, lshrqi3_l_const6): Define
5451 peephole2 patterns.
5452
5453 2008-08-22 Richard Guenther <rguenther@suse.de>
5454
5455 PR tree-optimization/37078
5456 * tree-vrp.c (extract_range_from_unary_expr): Avoid generating
5457 [+INF, +INF] ranges.
5458
5459 2008-08-22 Richard Guenther <rguenther@suse.de>
5460
5461 PR tree-optimization/37143
5462 * tree-vect-transform.c (vect_create_cond_for_align_checks): Build
5463 a conversion statement instead of a copy.
5464
5465 2008-08-22 Uros Bizjak <ubizjak@gmail.com>
5466
5467 PR target/37184
5468 * config/i386/i386.c (ix86_match_ccmode): Handle CCAmode,
5469 CCCmode, CCOmode and CCSmode destination modes.
5470
5471 PR target/37191
5472 * config/i386/mmx.md (*vec_extractv2sf_0): Avoid combining registers
5473 from different units in a single alternative.
5474 (*vec_extractv2sf_1): Ditto.
5475 (*vec_extractv2si_0): Ditto.
5476 (*vec_extractv2si_1): Ditto.
5477 * config/i386/sse.md (sse2_storehpd): Ditto.
5478 (sse2_storelpd): Ditto.
5479 (sse2_loadhpd): Ditto.
5480 (sse2_loadlpd): Ditto.
5481
5482 PR target/37197
5483 * config/i386/i386.md (clzsi2_abm): Fix operand 1 constraints.
5484 (popcountsi2): Ditto.
5485 (clzdi2_abm): Ditto.
5486 (popcountdi2): Ditto.
5487 (clzhi2_abm): Ditto.
5488 (popcounthi2): Ditto.
5489
5490 2008-08-22 Richard Guenther <rguenther@suse.de>
5491
5492 PR middle-end/36548
5493 PR middle-end/37125
5494 * fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only
5495 if the multiplication does not overflow.
5496
5497 2008-08-21 Nathan Sidwell <nathan@codesourcery.com>
5498
5499 * c-ppoutput.c (init_pp_output): Initialize src_line to 1.
5500
5501 2008-08-21 Richard Henderson <rth@redhat.com>
5502
5503 * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove
5504 spurrious comma from test.
5505 * configure: Rebuild.
5506
5507 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5508
5509 PR 30457
5510 * builtins.c (fold_builtin_next_arg): Add warning about undefined
5511 behaviour.
5512
5513 2008-08-21 Aldy Hernandez <aldyh@redhat.com>
5514
5515 * c-tree.h (grokfield): New argument.
5516 * c-decl.c (grokfield): Handle new location argument.
5517 * c-parser.c (c_parser_struct_declaration): Pass location to grokfield.
5518
5519 2008-08-21 Richard Guenther <rguenther@suse.de>
5520
5521 * tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants.
5522
5523 2008-08-21 Jan Hubicka <jh@suse.cz>
5524
5525 * cgraph.c (first_cgraph_function_insertion_hook): New variable.
5526 (cgraph_add_function_insertion_hook,
5527 cgraph_remove_function_insertion_hook,
5528 cgraph_call_function_insertion_hooks): New functions.
5529 * cgraph.h (cgraph_add_function_insertion_hook,
5530 cgraph_remove_function_insertion_hook,
5531 cgraph_call_function_insertion_hooks): Declare.
5532 * ipa-reference.c (function_insertion_hook_holder): New variable.
5533 (check_operand, look_for_address_of): When checking late, do not care
5534 about module bitmaps.
5535 (add_new_function): New function.
5536 (generate_summary): Register hooks; zero module bitmaps.
5537 (propagate): Unregister hooks.
5538 * ipa-pure-const.c (function_insertion_hook_holder): New variable.
5539 (add_new_function): New function.
5540 (generate_summary): Register hook.
5541 (propagate): Remove hook.
5542
5543 * ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
5544
5545 * tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
5546 * ipa-cp.c (ipcp_update_cloned_node): New function.
5547 (build_const_val): Handle functions correctly; bring type logic
5548 into sync with tree-inline.c
5549 (ipcp_init_stage): Take care of computing stuff needed by
5550 indirect inlining; update clones.
5551 (ipcp_generate_summary): Break out of ipcp_driver.
5552 (ipcp_driver): Do only execution and transformation.
5553 (pass_ipa_cp): Make IPA_PASS.
5554 * tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
5555 offset to address.
5556 * ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
5557 ipcp, some info is already available.
5558 * ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
5559 * tree-inline.c (remap_ssa_name): Unshare expression.
5560
5561 2008-08-21 Richard Guenther <rguenther@suse.de>
5562
5563 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
5564 a PHI ask VN if it is already available.
5565 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
5566 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
5567
5568 2008-08-21 Richard Guenther <rguenther@suse.de>
5569
5570 PR middle-end/36817
5571 * tree-chrec.c (chrec_apply): Always call chrec_fold_plus which
5572 makes sure to produce a result of the correct type.
5573
5574 2008-08-21 Jan Hubicka <jh@suse.cz>
5575 Backport from LTO branch:
5576
5577 2008-05-05 Kenneth Zadeck <zadeck@naturalbridge.com>
5578 Jan Hubicka <jh@suse.cz>
5579
5580 * ipa-pure-const.c
5581 (init_state, finish_state, set_function_state, generate_summary):
5582 New functions.
5583 (scan_stmt): Renamed from scan_function. Changed to keep state in
5584 local static vars rather than cgraph aux field.
5585 (propagate): Renamed from static_execute. Changed to keep state in
5586 local static vars rather than cgraph aux field.
5587 (pass_ipa_pure_const): Changed from SIMPLE_IPA_PASS to IPA_PASS.
5588 * tree-pass.h (pass_ipa_pure_const): Turn into IPA_PASS.
5589
5590 2008-07-15 Kenneth Zadeck <zadeck@naturalbridge.com>
5591
5592 * tree-pass.h (pass_ipa_reference): Make into ipa_opt_pass.
5593 * ipa-reference.c (init_function_info, generate_summary,
5594 propagate): New functions.
5595 (analyze_function): Call init_function_info.
5596 (static_execute): Stripped into generate_summary and propagate.
5597 (pass_ipa_reference): Made into ipa_opt_pass.
5598
5599 2008-08-21 Richard Guenther <rguenther@suse.de>
5600
5601 PR tree-optimization/37181
5602 * tree-vrp.c (extract_range_from_binary_expr): Check for NULL
5603 folding result.
5604 (extract_range_from_unary_expr): Likewise.
5605
5606 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5607
5608 * diagnostic.c (pedwarn_at): Rename as pedwarn.
5609 (pedwarn): Delete.
5610 * toplev.h (pedwarn_at): Likewise.
5611 * builtins.c: Update all calls to pedwarn.
5612 * c-lex.c: Likewise.
5613 * toplev.c: Likewise.
5614 * c-tree.h: Likewise.
5615 * c-decl.c: Likewise.
5616 * c-errors.c: Likewise.
5617 * c-typeck.c: Likewise.
5618 * c-common.c: Likewise.
5619 * c-parser.c: Likewise.
5620
5621 2008-08-20 Joseph Myers <joseph@codesourcery.com>
5622
5623 PR target/31070
5624 * config/sparc/sparc.c (function_arg_slotno): Handle structure
5625 with MODE_VECTOR_INT mode.
5626
5627 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5628
5629 PR middle-end/179
5630 * tree-ssa.c (warn_uninit): Do not warn for variables that can be
5631 initialized outside the current module.
5632 (warn_uninitialized_var): Ignore left-hand side when walking the
5633 trees. Ignore address expressions. Examine VUSE operands in gimple
5634 statements with a variable declaration on the right-hand side.
5635
5636 2008-08-20 Richard Sandiford <rdsandiford@googlemail.com>
5637
5638 PR bootstrap/37155
5639 * rtlanal.c (subreg_offset_representable_p): Revert last change.
5640
5641 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5642
5643 PR 35701
5644 * c-common.c (conversion_warning): Do not warn if applying bit-and
5645 operator to unsigned constant that fits in the target type.
5646
5647 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5648
5649 PR c++/35602
5650 * c-common.c (conversion_warning): Do not warn for artificial
5651 expressions.
5652
5653 2008-08-20 Richard Guenther <rguenther@suse.de>
5654
5655 * tree-vrp.c (op_with_constant_singleton_value_range): New function.
5656 (extract_range_from_binary_expr): Fall back to constant propagation.
5657 (extract_range_from_unary_expr): Likewise.
5658
5659 2008-08-20 Richard Guenther <rguenther@suse.de>
5660
5661 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Do not mess
5662 with TREE_THIS_VOLATILE on shared nodes.
5663 (fold_stmt_r): Likewise.
5664
5665 2008-08-20 Jakub Jelinek <jakub@redhat.com>
5666
5667 PR c/37171
5668 * c-parser.c (c_parser_attributes): For keywords use canonical
5669 spelling for attr_name.
5670
5671 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5672
5673 * value-prof.c (check_counter): Revert wrong call to error.
5674
5675 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5676
5677 * profile.c: Update calls to inform.
5678 * value-prof.c: Update calls to inform.
5679
5680 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5681
5682 * diagnostic.c (inform): Add an explicit location_t parameter.
5683 * toplev.h (inform): Update declaration.
5684 * builtins.c: Update all calls to inform.
5685 * c-common.c: Likewise.
5686 * c-decl.c: Likewise.
5687 * c-opts.c: Likewise.
5688 * c-pch.c: Likewise.
5689 * c-pragma.c: Likewise.
5690 * c-typeck.c: Likewise.
5691 * coverage.c: Likewise.
5692 * opts.c: Likewise.
5693 * toplev.c: Likewise.
5694 * tree-cfg.c: Likewise.
5695 * tree-ssa.c: Likewise.
5696
5697 2008-08-20 H.J. Lu <hongjiu.lu@intel.com>
5698
5699 PR target/37169
5700 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): In
5701 V2DI mode, for SSE4.1, use movq instead of vector set if the
5702 second element is zero and inter-unit moves are OK.
5703
5704 2008-08-20 Richard Guenther <rguenther@suse.de>
5705
5706 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): More
5707 properly handle conversion/copy chains after tuplification.
5708
5709 2008-08-20 Richard Guenther <rguenther@suse.de>
5710
5711 * passes.c (init_optimization_passes): Move the second
5712 forwprop pass before alias computation. Remove the second
5713 DCE pass. Remove the first dominator and phi copy/const
5714 prop passes.
5715
5716 2008-08-20 Nick Clifton <nickc@redhat.com>
5717
5718 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler
5719 support of this feature. Do not assume that a sufficiently new
5720 assembler will support the feature regardless of the target type.
5721 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
5722 * configure: Regenerate.
5723
5724 2008-08-20 Richard Guenther <rguenther@suse.de>
5725
5726 * tree-vrp.c (found_in_subgraph): Remove.
5727 (live): New global static.
5728 (live_on_edge): New function.
5729 (blocks_visited): Remove.
5730 (register_edge_assert_for_2): Use live_on_edge.
5731 (find_conditional_asserts): Remove code dealing with
5732 found_in_subgraph. Do not walk the CFG.
5733 (find_switch_asserts): Likewise.
5734 (find_assert_locations_1): Renamed from find_assert_locations.
5735 Move finding assert locations for conditional and switch
5736 statements first. Update live bitmap. Do not walk the CFG.
5737 (find_assert_locations): New function.
5738 (insert_range_assertions): Remove entry of CFG walk.
5739 Adjust call to find_assert_locations.
5740 * tree-ssa-pre.c (do_regular_insertion): Ignore critical edges
5741 that only can appear because of fake exit edges but assert we
5742 never try to insert on those.
5743 (fini_pre): Do not remove fake exit edges here...
5744 (execute_pre): ...but here, before committing edge inserts.
5745
5746 2008-08-19 Richard Guenther <rguenther@suse.de>
5747
5748 * passes.c (init_optimization_passes): Exchange store-ccp
5749 with a ccp pass.
5750
5751 2008-08-19 Rafael Espíndola <espindola@google.com>
5752
5753 * varasm.c (weak_decls): Move earlier in the file.
5754 (assemble_external): Add weak decls to the weak_decls list.
5755 (declare_weak): Don't add decls to the weak_decls list.
5756
5757 2008-08-19 H.J. Lu <hongjiu.lu@intel.com>
5758
5759 PR target/37157
5760 * config/i386/sse.md (sse2_punpckhqdq, sse2_punpcklqdq): Moved
5761 before (sse2_shufpd_<mode>).
5762
5763 2008-08-19 Jakub Jelinek <jakub@redhat.com>
5764
5765 PR debug/37156
5766 * pretty-print.c (pp_base_format): Deal with recursive BLOCK trees.
5767 * tree.c (block_nonartificial_location): Likewise.
5768
5769 2008-08-19 Richard Guenther <rguenther@suse.de>
5770
5771 PR tree-optimization/35972
5772 PR tree-optimization/23094
5773 * tree-ssa-sccvn.h (vn_reference_lookup_pieces): Add maywalk
5774 parameter.
5775 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
5776 handle MISALIGNED_INDIRECT_REF.
5777 (get_ref_from_reference_ops): New helper.
5778 (vn_reference_lookup_pieces): Walk the use-def chain using the
5779 alias-oracle if requested.
5780 * tree-ssa-pre.c (phi_translate_1): Do reference lookup with
5781 walking the use-def chain.
5782 (compute_avail): But not here.
5783 (create_component_ref_by_pieces_1): Properly handle
5784 MISALIGNED_INDIRECT_REF.
5785 (do_regular_insertion): Handle fully redundant
5786 expressions after PHI-translation also for SSA_NAME values, not
5787 only constants. Correctly use edoubleprime for that.
5788
5789 2008-08-19 Ira Rosen <irar@il.ibm.com>
5790
5791 * tree-vectorizer.c (supportable_widening_operation): Support
5792 multi-step conversion, return the number of steps in such conversion
5793 and the required intermediate types.
5794 (supportable_narrowing_operation): Likewise.
5795 * tree-vectorizer.h (vect_pow2): New function.
5796 (supportable_widening_operation): Change argument types.
5797 (supportable_narrowing_operation): Likewise.
5798 (vectorizable_type_promotion): Add an argument.
5799 (vectorizable_type_demotion): Likewise.
5800 * tree-vect-analyze.c (vect_analyze_operations): Call
5801 vectorizable_type_promotion and vectorizable_type_demotion with
5802 additional argument.
5803 (vect_get_and_check_slp_defs): Detect patterns.
5804 (vect_build_slp_tree): Add an argument, don't fail in case of multiple
5805 types.
5806 (vect_analyze_slp_instance): Don't fail in case of multiple types.
5807 Call vect_build_slp_tree with correct arguments. Calculate unrolling
5808 factor according to the smallest type in the loop.
5809 (vect_detect_hybrid_slp_stmts): Include statements from patterns.
5810 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Call
5811 supportable_widening_operation with correct arguments.
5812 * tree-vect-transform.c (vect_get_slp_defs): Allocate output vector
5813 operands lists according to the number of vector statements in left
5814 or right node, if exists.
5815 (vect_gen_widened_results_half): Remove unused argument.
5816 (vectorizable_conversion): Call supportable_widening_operation,
5817 supportable_narrowing_operation, and vect_gen_widened_results_half
5818 with correct arguments.
5819 (vectorizable_assignment): Change documentation, support multiple
5820 types in SLP.
5821 (vectorizable_operation): Likewise.
5822 (vect_get_loop_based_defs): New function.
5823 (vect_create_vectorized_demotion_stmts): Likewise.
5824 (vectorizable_type_demotion): Support loop-aware SLP and general
5825 multi-step conversion. Call vect_get_loop_based_defs and
5826 vect_create_vectorized_demotion_stmts for transformation.
5827 (vect_create_vectorized_promotion_stmts): New function.
5828 (vectorizable_type_promotion): Support loop-aware SLP and general
5829 multi-step conversion. Call vect_create_vectorized_promotion_stmts
5830 for transformation.
5831 (vectorizable_store): Change documentation, support multiple
5832 types in SLP.
5833 (vectorizable_load): Likewise.
5834 (vect_transform_stmt): Pass SLP_NODE to
5835 vectorizable_type_promotion and vectorizable_type_demotion.
5836 (vect_schedule_slp_instance): Move here the calculation of number
5837 of vectorized statements for each node from...
5838 (vect_schedule_slp): ... here.
5839 (vect_transform_loop): Call vect_schedule_slp without the last
5840 argument.
5841
5842 2008-08-19 Dorit Nuzman <dorit@il.ibm.com>
5843
5844 PR bootstrap/37152
5845 * tree-vect-transform.c (vect_create_epilog_for_reduction): Change =
5846 to == in assert statement.
5847 (vectorizable_reduction): Fix typo.
5848
5849 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
5850
5851 PR bootstrap/37153
5852 * value-prof.c (check_counter): Dereference pointer to overall
5853 count when printing it.
5854
5855 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
5856
5857 * profile.h: Really add it.
5858
5859 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
5860
5861 * mcf.c: Really add it.
5862
5863 2008-08-18 Paul Yuan <yingbo.com@gmail.com>
5864 Vinodha Ramasamy <vinodha@google.com>
5865
5866 * cgraph.c (cgraph_edge): Handle inconsistent counts when setting
5867 count_scale.
5868 * value-prof.c (check_counter): Fix the counter if
5869 flag_profile_correction is true.
5870 (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
5871 tree_mod_subtract_transform):
5872 Follow check_counter parameter change.
5873 * common.opt (fprofile-correction): New option.
5874 * mcf.c: New file.
5875 * profile.h: Likewise.
5876 * profile.c (edge_info, EDGE_INFO): Moved to new file profile.h.
5877 (sum_edge_counts, is_edge_inconsistent, correct_negative_edge_counts,
5878 is_inconsistent, set_bb_counts, read_profile_edge_counts): New
5879 functions.
5880 (compute_branch_probabilities): Refactored. Invokes mcf_smooth_cfg if
5881 flag_profile_correction is set.
5882
5883 2008-08-18 Richard Sandiford <rdsandiford@googlemail.com>
5884
5885 * rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.
5886
5887 2008-08-18 Tomas Bily <tbily@suse.cz>
5888
5889 * tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P.
5890 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Use
5891 CONVERT_EXPR_P.
5892 * tree-data-ref.c (split_constant_offset_1): Likewise.
5893 * tree-inline.c (estimate_operator_cost): Use CASE_CONVERT.
5894 * tree-sra.c (sra_walk_expr): Likewise.
5895 * matrix-reorg.c (ssa_accessed_in_assign_rhs): Likewise.
5896 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
5897 * gimple.h (gimple_assign_cast_p): Use CONVERT_EXPR_CODE_P.
5898 * tree-ssa-structalias.c (find_func_aliases, find_func_aliases):
5899 Likewise.
5900 * gimple.c (gimple_assign_unary_nop_p): Likewise.
5901 * tree-vect-transform.c (vectorizable_type_demotion)
5902 (vectorizable_type_promotion): Likewise.
5903 * tree-inline.c (expand_call_inline):
5904 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
5905 (forward_propagate_addr_expr_1, forward_propagate_comparison)
5906 (tree_ssa_forward_propagate_single_use_vars): Likewise.
5907 * expr.c (expand_expr_real_1): Likewise.
5908 * tree-ssa-dom.c (hashable_expr_equal_p, iterative_hash_hashable_expr)
5909 (gimple_assign_unary_useless_conversion_p): Likewise.
5910 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
5911 * tree-ssa-ccp.c (ccp_fold, fold_gimple_assign): Likewise.
5912 * fold-const.c (fold_unary): Likewise.
5913 * tree.h (CONVERT_EXPR_P): Likewise.
5914 * tree.c (simple_cst_equal, iterative_hash_expr): Likewise.
5915 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
5916 * tree-vrp.c:
5917 (register_edge_assert_for_2, extract_range_from_unary_expr)
5918 (register_edge_assert_for_1): Likewise.
5919
5920 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5921
5922 * real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
5923 dconst_third_ptr, dconst_sqrt2_ptr): Declare.
5924 (enum real_value_const): Delete.
5925 (get_real_const): Delete.
5926 * real.c (get_real_const): Delete.
5927 (dconst_e_ptr): Define.
5928 (dconst_third_ptr): Define.
5929 (dconst_sqrt2_ptr): Define.
5930 * builtins.c: Update all callers.
5931
5932 2008-08-18 Richard Guenther <rguenther@suse.de>
5933
5934 * tree-ssa-reassoc.c (reassociate_bb): Properly reset the
5935 statement iterator after statement removal.
5936
5937 2008-08-18 Andreas Tobler <a.tobler@schweiz.org>
5938
5939 * config/rs6000/driver-rs6000.c (detect_caches_freebsd): New function.
5940 (detect_processor_freebsd): Likewise.
5941 (host_detect_local_cpu): Call newly added functions for FreeBSD.
5942
5943 2008-08-18 Richard Guenther <rguenther@suse.de>
5944
5945 * tree-cfg.c (verify_types_in_gimple_assign): Verify copies
5946 and loads have the correct types.
5947
5948 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5949
5950 PR cpp/7263
5951 * c-opts.c (cpp_opts): Remove static.
5952 * c-parser.c (cpp_opts): Declare it extern.
5953 (disable_extension_diagnostics): Handle cpp options.
5954 (enable_extension_diagnostics): Likewise.
5955
5956 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5957
5958 * diagnostics.c (permerror_at): Rename as permerror.
5959 (permerror): Delete.
5960 * toplev.h: Likewise.
5961
5962 2008-08-18 Richard Guenther <rguenther@suse.de>
5963
5964 * passes.c (init_optimization_passes): Remove cleanup_cfg1,
5965 sdse1 and addressables2 passes. Replace dce1 with cddce1.
5966 Move call_cdce before build_alias. Move copyrename2,
5967 cunrolli and ccp2 beafore build_alias. Re-add addressable2
5968 right after final inlining.
5969 * tree-cfg.c (build_gimple_cfg): Do not dump function here.
5970 (pass_build_cfg): But instead via TODO_dump_func.
5971
5972 2008-08-18 Richard Guenther <rguenther@suse.de>
5973
5974 * tree-sra.c (generate_element_init_1): Deal with NULL constructor
5975 element index.
5976 (scalarize_init): If we failed to generate some initializers
5977 do not generate zeros for not instantiated members. Instead
5978 rely on the copy out.
5979 * tree-ssa-operands.c (get_addr_dereference_operands): Warn
5980 about missing flow-sensitive alias info only if we have
5981 aliases computed.
5982
5983 2008-08-17 Nick Clifton <nickc@redhat.com>
5984
5985 * doc/extend.texi (Function Attributes): Fix typo in description
5986 if hot function attribute.
5987
5988 2008-08-17 Daniel Jacobowitz <dan@codesourcery.com>
5989 Richard Sandiford <rdsandiford@googlemail.com>
5990
5991 * doc/install.texi (--with-mips-plt): Document.
5992 * doc/invoke.texi (-mplt, -mno-plt): Document.
5993 * config.gcc (mips*-*-*): Add mips-plt to supported_defaults
5994 and handle ${with_mips_plt}.
5995 * config/mips/mips.opt (mplt): New option.
5996 * config/mips/mips.h (TARGET_ABICALLS_PIC0): New macro.
5997 (TARGET_ABICALLS_PIC2): Likewise.
5998 (TARGET_GPWORD): Return false for TARGET_ABSOLUTE_ABICALLS.
5999 (OPTION_DEFAULT_SPECS): Add a mips-plt entry.
6000 (ASM_SPEC): Use !mabi=* instead of !mabi*.
6001 (MIPS_CALL): Use TARGET_ABICALLS_PIC2 instead of TARGET_ABICALLS
6002 to decide whether to output ".option picX" directives.
6003 * config/mips/linux.h (SUBTARGET_ASM_SPEC): Remove -mabi=64 handling.
6004 Pass -call_nonpic rather than -KPIC for -mplt.
6005 (BASE_DRIVER_SELF_SPECS): Remove -mplt if -mno-shared is not present
6006 on the command line. Also remove it when -mabi=64 is used without
6007 -msym32.
6008 * config/mips/linux64.h (SUBTARGET_ASM_SPEC): Delete.
6009 * config/mips/mips.c (mips_use_pic_fn_addr_reg_p): Handle
6010 TARGET_ABICALLS_PIC0.
6011 (mips_classify_symbol): Use TARGET_ABICALLS_PIC2 instead of
6012 TARGET_ABICALLS.
6013 (mips16_build_function_stub): Only output ".option pic" directives
6014 and PIC stubs if TARGET_ABICALLS_PIC2. Call through $25 instead of $1.
6015 (mips16_build_call_stub): Fix comment and remove redundant
6016 ".set at"/"set .noat" directives.
6017 (mips_function_rodata_section): Use the default behaviour for
6018 TARGET_ABSOLUTE_ABICALLS.
6019 (mips_file_start): Emit ".option pic0" for TARGET_ABICALLS_PIC0.
6020 (mips_global_pointer): Handle TARGET_ABICALLS_PIC0.
6021 (mips_restore_gp): Do nothing if the current function doesn't use
6022 a global pointer.
6023 (mips_expand_prologue): Only save $gp if the current function uses it.
6024 Use a normal move for TARGET_ABICALLS_PIC0.
6025 (mips_override_options): Only set flag_pic if TARGET_ABICALLS_PIC2.
6026
6027 2008-08-17 Richard Sandiford <rdsandiford@googlemail.com>
6028
6029 * config/mips/mips.c (mips_save_reg_p): Don't short-circuit rest
6030 of function when handling GLOBAL_POINTER_REGNUM.
6031
6032 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
6033
6034 PR ada/20548
6035 * common.opt (-fstack-check): Do not declare the variable here.
6036 (-fstack-check=): New option variant.
6037 * doc/invoke.texi (Code Gen Options): Document it.
6038 * expr.h (STACK_OLD_CHECK_PROTECT): New macro.
6039 (STACK_CHECK_PROTECT): Bump to 3 pages if DWARF-2 EH is used.
6040 (STACK_CHECK_STATIC_BUILTIN): New macro.
6041 * doc/tm.texi (Stack Checking): Document STACK_CHECK_STATIC_BUILTIN.
6042 * opts.c: Include expr.h.
6043 (common_handle_option) <OPT_fold_stack_check_>: New case.
6044 <OPT_fstack_check>: Likewise.
6045 * calls.c (initialize_argument_information): Use TYPE_SIZE_UNIT
6046 consistently in the test for variable-sized types. Adjust for
6047 new behaviour of flag_stack_check.
6048 * explow.c: Include except.h.
6049 (allocate_dynamic_stack_space): Do not take into account
6050 STACK_CHECK_MAX_FRAME_SIZE for static builtin stack checking.
6051 * function.c (gimplify_parameters): Use DECL_SIZE_UNIT in the test
6052 for variable-sized parameters. Treat all parameters whose size is
6053 greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized if generic
6054 stack checking is enabled.
6055 * gimplify.c (gimplify_decl_expr): Treat non-static objects whose
6056 size is greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized
6057 if generic stack checking is enabled.
6058 (expand_function_end): Adjust for new behaviour of flag_stack_check.
6059 * reload1.c (reload): Likewise.
6060 * stmt.c (expand_decl): Assert that all automatic variables have
6061 fixed size at this point and remove dead code.
6062 * flags.h (stack_check_type): New enumeration type.
6063 (flag_stack_check): Declare.
6064 * toplev.c (flag_stack_check): New global variable.
6065 * Makefile.in (opts.o): Add dependency on EXPR_H.
6066 (explow.o): Add dependency on except.h.
6067
6068 2008-08-16 Andy Hutchinson <hutchinsonandy@aim.com>
6069
6070 * config/avr/avr.c (avr_override_options): Reduce value of
6071 PARAM_INLINE_CALL_COST.
6072
6073 2008-08-15 Eric Botcazou <ebotcazou@adacore.com>
6074
6075 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: When converting
6076 to BLKmode, try to fetch an inner memory reference. Use 'mode' in
6077 lieu of TYPE_MODE (type) throughout.
6078
6079 2008-08-15 Joseph Myers <joseph@codesourcery.com>
6080
6081 * config/arm/arm.c (add_minipool_backward_ref): Check for
6082 8-byte-aligned entries in second case of forcing insertion after a
6083 particular entry. Change third case to avoid inserting
6084 non-8-byte-aligned entries before 8-byte-aligned ones.
6085
6086 2008-08-15 Richard Guenther <rguenther@suse.de>
6087
6088 * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not
6089 strip components for unknown size accesses.
6090
6091 2008-08-15 Wolfgang Gellerich <gellerich@de.ibm.com>
6092
6093 * config/s390/2097.md New file.
6094 * config/s390/s390.md ("z10prop" attribute): Define none,
6095 z10_super, z10_super_E1, z10_super_A1, z10_super_c,
6096 z10_super_c_E1, z10_fwd, z10_fwd_A1, z10_fwd_A3, z10_fwd_E1,
6097 z10_rec, z10_fr, z10_fr_A3, z10_fr_E1, z10_c, and z10_cobra as
6098 possible values and apply them to insns as appropriate.
6099 ("type" attribute): Removed itof and added ftrunctf,ftruncdf,
6100 ftruncsd, ftruncdd, itoftf, itofdf, itofsf, itofdd, itoftd,
6101 fdivdd, fdivtd, floaddd, floadsd, fmuldd, fmultd, fsimpdd,
6102 fsimpsd, fsimptd, fstoredd, fstoresd, ftoidfp as possible values.
6103 ("bfp" mode attribute): Removed. Every occurence replaced
6104 with <mode>.
6105 * config/s390/s390.c (struct "z10_cost"): Updated entries.
6106 * config/s390/2084.md (insn_reservation "x_itof"): Updated
6107 type attribute.
6108
6109 2008-08-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6110
6111 PR c/28152
6112 * c-parser.c (c_lex_one_token): Do not store the canonical spelling
6113 for keywords.
6114
6115 2008-08-14 Dorit Nuzman <dorit@il.ibm.com>
6116
6117 * tree-vect-transform.c (vect_create_epilog_for_reduction): Takes an
6118 additional argument. Support reduction when duplication is needed due
6119 to data-types of different sizes in the loop.
6120 (get_initial_def_for_induction): Fix printout.
6121 (vect_get_vec_def_for_stmt_copy): Support case where the
6122 vec_stmt_for_operand is a phi node.
6123 (vectorizable_reduction): Support reduction when duplication is needed
6124 due to data-types of different sizes in the loop.
6125 (vectorizable_call): Remove restriction to not vectorize in case we
6126 have data-types of different sizes in the loop.
6127 (vectorizable_conversion): Likewise.
6128 (vectorizable_operation): Likewise.
6129 (vectorizable_type_demotion): Likewise.
6130 (vectorizable_type_promotion): Likewise.
6131 (vectorizable_induction): Add restriction to not vectorize in case
6132 we have data-types of different sizes in the loop.
6133
6134 2008-08-14 Christophe Saout <christophe@saout.de>
6135 Uros Bizjak <ubizjak@gmail.com>
6136
6137 PR target/37101
6138 * config/i386/sse.md (vec_concatv2di): Remove movlps alternative.
6139 (*vec_concatv2di_rex64_sse4_1): Ditto.
6140 (*vec_concatv2di_rex64_sse): Ditto.
6141
6142 2008-08-14 Jakub Jelinek <jakub@redhat.com>
6143
6144 PR middle-end/37103
6145 * fold-const.c (fold_widened_comparison): Do not allow
6146 sign changes that change the result even if shorter type
6147 is wider than arg1_unw's type.
6148
6149 2008-08-13 Kazu Hirata <kazu@codesourcery.com>
6150
6151 * gcc.dg/arm-g2.c, gcc.dg/arm-mmx-1.c, gcc.dg/arm-scd42-2.c:
6152 Skip if the multilib testing specifies -march that does not
6153 agree with the one specified in the testcase.
6154
6155 2008-08-13 Joseph Myers <joseph@codesourcery.com>
6156
6157 * config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
6158 zero extend SImode values being converted to TFmode before passing
6159 to libcalls.
6160
6161 2008-08-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6162
6163 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
6164 __PPU__ when targeting the Cell/B.E. PPU processor.
6165
6166 2008-08-13 Eric Botcazou <ebotcazou@adacore.com>
6167
6168 * gimple.h (gimple_call_set_chain): Accept SSA variables.
6169 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <CALL_EXPR>:
6170 Rematerialize the static chain, if any.
6171 * tree-ssa-sccvn.c (copy_reference_ops_from_call): Also copy the
6172 static chain.
6173
6174 2008-08-13 H.J. Lu <hongjiu.lu@intel.com>
6175
6176 * dwarf2out.c (dwarf_stack_op_name): Remove prototype.
6177 (new_loc_descr): Likewise.
6178 (add_loc_descr): Likewise.
6179 (size_of_loc_descr): Likewise.
6180 (size_of_locs): Likewise.
6181 (output_loc_operands): Likewise.
6182 (output_loc_sequence): Likewise.
6183 (new_reg_loc_descr): New.
6184 (build_cfa_loc): Use it.
6185 (build_cfa_aligned_loc): Likewise.
6186 (one_reg_loc_descriptor): Likewise.
6187 (based_loc_descr): Likewise.
6188
6189 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6190
6191 PR 30551
6192 * doc/invoke.texi (Wmain): Update.
6193 * c-decl.c (start_decl): warn_main is only 0 or 1.
6194 (start_function): Likewise. Fix formatting.
6195 (finish_function): Delete redundant warning.
6196 * c.opt (Wmain): Add Var(warn_main) and Init(-1).
6197 * c-opts (c_common_handle_option): -Wall only has effect if
6198 warn_main is uninitialized. OPT_Wmain is automatically
6199 handled. -pedantic also enables Wmain.
6200 (c_common_post_options): Handle all logic for Wmain here.
6201 * c-common.c (warn_main): Delete.
6202 (check_main_parameter_types): Make pedwarns conditional on OPT_Wmain.
6203 * c-common.h (warn_main): Delete.
6204
6205 2008-08-13 H.J. Lu <hongjiu.lu@intel.com>
6206
6207 PR middle-end/36701
6208 * expr.c (emit_group_store): Allocate stack temp with the
6209 largest alignment when copying from register to stack.
6210
6211 2008-08-13 Richard Guenther <rguenther@suse.de>
6212
6213 * tree.h (maybe_fold_offset_to_address): Declare.
6214 * tree-ssa-ccp.c (surely_varying_stmt_p): Fix typo in last commit.
6215 (ccp_fold): Handle pointer conversions the same as fold_stmt.
6216 Likewise for POINTER_PLUS_EXPR.
6217 (maybe_fold_offset_to_reference): Enable disabled code.
6218 (maybe_fold_offset_to_address): New function.
6219 (fold_stmt_r): Use it.
6220 (fold_gimple_assign): Likewise.
6221 * gimplify.c (gimplify_conversion): Use maybe_fold_offset_to_address.
6222 (gimplify_expr): Likewise.
6223
6224 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6225
6226 * toplev.h (pedwarn_at): Fix declaration.
6227
6228 2008-08-13 Joseph Myers <joseph@codesourcery.com>
6229
6230 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
6231 LINK_SPEC): Use %R in -Y P argument.
6232
6233 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6234
6235 PR c/15236
6236 * diagnostic.c (pedwarn_at): New.
6237 * toplev.h (pedwarn_at): Declare.
6238 * c-tree.h (build_enumerator): Update declaration.
6239 * c-decl.c (finish_enum): Update comment.
6240 (build_enumerator): Take a location parameter. Give a pedwarn but do
6241 not perform any conversion.
6242 * c-parser.c (c_parser_enum_specifier): Set correct location for
6243 enumerator.
6244
6245 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6246
6247 PR 35635
6248 * c-common.c (conversion_warning): Use a switch. Ignore boolean
6249 expressions except for conversions to signed:1 bitfields. Handle
6250 COND_EXPR with constant operands.
6251
6252 2008-08-13 Richard Guenther <rguenther@suse.de>
6253
6254 PR tree-optimization/15255
6255 * tree-ssa-reassoc.c (linearize_expr_tree): Declare.
6256 (struct oecount_s): New struct and VEC types.
6257 (cvec): New global.
6258 (oecount_hash): New function.
6259 (oecount_eq): Likewise.
6260 (oecount_cmp): Likewise.
6261 (zero_one_operation): New function.
6262 (build_and_add_sum): Likewise.
6263 (undistribute_ops_list): Perform un-distribution of multiplication
6264 and division on the chain of summands.
6265 (should_break_up_subtract): Also break up subtracts for factors.
6266 (reassociate_bb): Delete dead visited statements.
6267 Call undistribute_ops_list. Re-sort and optimize if it did something.
6268 * passes.c (init_optimization_passes): Move DSE before
6269 reassociation.
6270 * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Correctly handle
6271 PHI nodes.
6272
6273 2008-08-12 Janis Johnson <janis187@us.ibm.com>
6274
6275 * doc/invoke.texi (-fipa-pta): Say the option is experimental.
6276
6277 * doc/invoke.texi: Revert unintended checkin.
6278
6279 2008-08-12 Nathan Froyd <froydnj@codesourcery.com>
6280
6281 PR libgomp/26165
6282 * gcc.c (include_spec_function): Tweak call to find_a_file.
6283
6284 2008-08-12 Jakub Jelinek <jakub@redhat.com>
6285
6286 PR middle-end/37014
6287 * expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
6288 and TRUTH_ORIF_EXPR.
6289 * dojump.c (do_jump): Likewise.
6290
6291 PR tree-optimization/37084
6292 * tree-inline.c (copy_bb): Call gimple_regimplify_operands
6293 if id->regimplify, don't assume stmt is a cast assignment.
6294
6295 2008-08-12 Anatoly Sokolov <aesok@post.ru>
6296
6297 * final.c (final_scan_insn): Use app_enable/app_disable functions.
6298
6299 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6300
6301 PR bootstrap/37097
6302 * builtins.c (do_mpfr_bessel_n): Fix copy-and-paste bug introduced
6303 by last change.
6304
6305 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6306
6307 * defaults.h (TARGET_FLOAT_FORMAT): Remove.
6308 (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT): Remove.
6309
6310 * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Remove.
6311 * config/iq2000/iq2000.h (TARGET_FLOAT_FORMAT): Remove.
6312 * config/pdp11/pdp11.h (TARGET_FLOAT_FORMAT): Remove.
6313 * config/score/score.h (TARGET_FLOAT_FORMAT): Remove.
6314 * config/vax/vax.h (TARGET_FLOAT_FORMAT): Remove.
6315
6316 * doc/tm.texi (Storage Layout): Remove documentation for
6317 TARGET_FLOAT_FORMAT.
6318
6319 * simplify-rtx.c (simplify_binary_operation_1): Replace
6320 TARGET_FLOAT_FORMAT check by appropriate HONOR_... checks.
6321
6322 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6323
6324 * real.h (struct real_format): New member has_sign_dependent_rounding.
6325 * real.c (ieee_single_format, mips_single_format, motorola_single_format,
6326 spu_single_format, ieee_double_format, mips_double_format,
6327 motorola_double_format, ieee_extended_motorola_format,
6328 ieee_extended_intel_96_format, ieee_extended_intel_128_format,
6329 ieee_extended_intel_96_round_53_format, ibm_extended_format,
6330 mips_extended_format, ieee_quad_format, mips_quad_format,
6331 vax_f_format, vax_d_format, vax_g_format): Initialize it.
6332 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
6333
6334 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
6335 MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
6336 * config/spu/spu.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
6337 MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
6338 (ROUND_TOWARDS_ZERO): Likewise.
6339
6340 * real.h (REAL_MODE_FORMAT): Protect MODE against macro expansion.
6341 (FLOAT_MODE_FORMAT): New macro.
6342 (REAL_MODE_FORMAT_COMPOSITE_P): Remove, replace by ...
6343 (MODE_COMPOSITE_P): ... this new macro.
6344 (MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
6345 MODE_HAS_SIGN_DEPENDENT_ROUNDING): New macros.
6346 * machmode.h (GET_MODE_INNER): Cast result to enum machine_mode.
6347
6348 * flags.h: Include "real.h".
6349
6350 * fold-const.c (const_binop): Use MODE_COMPOSITE_P instead of
6351 REAL_MODE_FORMAT_COMPOSITE_P.
6352 * simplify-rtx.c (simplify_const_binary_operation): Likewise.
6353
6354 * doc/tm.texi (Storage Layout): Remove documentation of
6355 MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
6356 MODE_HAS_SIGN_DEPENDENT_ROUNDING. Update documentation of
6357 ROUND_TOWARDS_ZERO and LARGEST_EXPONENT_IS_NORMAL to clarify
6358 they only apply to libgcc2.a.
6359
6360 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6361
6362 * config/spu/float_disf.c: New file.
6363 * config/spu/float_unsdisf.c: New file.
6364 * config/spu/t-elf (LIB2FUNCS_STATIC_EXTRA): Add them.
6365 (LIB2FUNCS_EXCLUDE): Define.
6366
6367 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6368 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
6369
6370 * real.h (struct real_format): New member round_towards_zero.
6371 * real.c (round_for_format): Respect fmt->round_towards_zero.
6372 (ieee_single_format, mips_single_format, motorola_single_format,
6373 spu_single_format, ieee_double_format, mips_double_format,
6374 motorola_double_format, ieee_extended_motorola_format,
6375 ieee_extended_intel_96_format, ieee_extended_intel_128_format,
6376 ieee_extended_intel_96_round_53_format, ibm_extended_format,
6377 mips_extended_format, ieee_quad_format, mips_quad_format,
6378 vax_f_format, vax_d_format, vax_g_format): Initialize it.
6379 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
6380
6381 * builtins.s (do_mpfr_arg1): Consider round_towards_zero member of
6382 real_format to choose rounding mode when calling MPFR functions.
6383 (do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Likewise.
6384 (do_mpfr_bessel_n, do_mpfr_remquo, do_mpfr_lgamma_r): Likewise.
6385
6386 * real.h (real_to_decimal_for_mode): Add prototype.
6387 * real.c (real_to_decimal_for_mode): Renames old real_to_decimal.
6388 Respect target rounding mode when generating decimal representation.
6389 (real_to_decimal): New stub for backwards compatibility.
6390 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Use
6391 real_to_decimal_for_mode instead of real_to_decimal.
6392
6393 * config/spu/spu.md ("floatdisf2", "floatunsdisf2"): New.
6394
6395 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6396 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
6397
6398 * real.c (spu_single_format): New variable.
6399 * real.h (spu_single_format): Declare.
6400
6401 * config/spu/spu.c (spu_override_options): Install SFmode format.
6402 (spu_split_immediate): Use integer mode to operate on pieces of
6403 floating-point values in all cases.
6404
6405 * config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
6406 ("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
6407 ("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.
6408
6409 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6410
6411 * config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
6412
6413 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6414
6415 * config/spu/spu.h (DWARF_FRAME_RETURN_COLUMN): Define.
6416
6417 2008-08-12 Jakub Jelinek <jakub@redhat.com>
6418
6419 PR c++/36688
6420 * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
6421 on the VAR_DECL instead of TYPE_READONLY on its type.
6422
6423 2008-08-12 Ira Rosen <irar@il.ibm.com>
6424
6425 * tree-vectorizer.c: Depend on langhooks.h.
6426 (supportable_widening_operation): Add two arguments. Support double
6427 type conversions.
6428 (supportable_narrowing_operation): Likewise.
6429 * tree-vectorizer.h (supportable_widening_operation): Add two
6430 arguments.
6431 (supportable_narrowing_operation): Likewise.
6432 * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call
6433 supportable_widening_operation with correct arguments.
6434 * tree-vect-transform.c (vectorizable_conversion): Likewise.
6435 (vectorizable_type_demotion): Support double type conversions.
6436 (vectorizable_type_promotion): Likewise.
6437 * Makefile.in (tree-vectorizer.o): Depend on langhooks.h.
6438
6439 2008-08-11 Michael Matz <matz@suse.de>
6440
6441 * i386/i386.c (override_options): Move initialisation from
6442 flag_schedule_insns_after_reload to here from ...
6443 (optimization_options): ... here.
6444
6445 2008-08-11 Jakub Jelinek <jakub@redhat.com>
6446
6447 PR rtl-optimization/36998
6448 * dwarf2out.c (compute_barrier_args_size_1,
6449 compute_barrier_args_size): Temporarily remove assertions.
6450
6451 2008-08-10 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6452
6453 PR middle-end/20644
6454 * tree-ssa.c (struct walk_data): Add new flag
6455 warn_possibly_uninitialized.
6456 (warn_uninitialized_var): Use it.
6457 (warn_uninitialized_vars): New.
6458 (execute_early_warn_uninitialized): Call it.
6459 (execute_late_warn_uninitialized): Likewise.
6460
6461 2008-08-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
6462
6463 PR middle-end/36238
6464 * reload1.c (gen_reload): Guard calls to get_secondary_mem
6465 for memory subregs.
6466
6467 2008-08-09 Jan Hubicka <jh@suse.cz>
6468
6469 PR target/37055
6470 * optabs.c (maybe_emit_unop_insn): Remove produced code if
6471 expansion failed.
6472 (expand_fix): Be prepared for expansion to fail.
6473 (expand_sfix_optab): Remove instructions if expansion failed.
6474
6475 2008-08-09 Anatoly Sokolov <aesok@post.ru>
6476
6477 * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
6478 avr31 architecture.
6479 * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
6480 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
6481
6482 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
6483
6484 * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
6485 mips/t-libgcc-mips16 to tmake_file.
6486 * config/mips/mips-protos.h (mips_call_type): New enum.
6487 (mips_pic_base_register, mips_got_load): Declare.
6488 (mips_restore_gp): Take an rtx argument.
6489 (mips_use_pic_fn_addr_reg_p): Declare.
6490 (mips_expand_call): Replace the sibcall_p argument with
6491 a mips_call_type argument. Add a lazy_p parameter.
6492 (mips_split_call): Declare.
6493 * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
6494 (MIPS16_PIC_TEMP): Likewise.
6495 (reg_class): Delete M16_NA_REGS.
6496 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
6497 (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
6498 (mips_split_hi_p): Declare.
6499 * config/mips/mips.c (mips_split_hi_p): New array.
6500 (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
6501 (mips_got_symbol_type_p): New function.
6502 (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
6503 (mips16_stub_function_p): New function.
6504 (mips16_local_function_p): Likewise.
6505 (mips_use_pic_fn_addr_reg_p): Likewise.
6506 (mips_cannot_force_const_mem): Return false for HIGHs.
6507 Extend CONST_INT and symbolic handling to MIPS16, using
6508 mips_symbol_insns to check that the base symbol type is a
6509 legitimate constant. Reject GOT-based constants if
6510 TARGET_MIPS16_PCREL_LOADS.
6511 (mips_const_insns): Check targetm.cannot_force_const_mem when
6512 decomposing a symbolic base and a large offset.
6513 (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
6514 When calling a function that needs $25 from MIPS16 code,
6515 move the target address into $25 separately and add a USE
6516 to the call insn.
6517 (mips16_gp_pseudo_reg): Insert the initializer immediately
6518 before the first real insn.
6519 (mips_pic_base_register, mips_got_load): New functions.
6520 (mips_split_symbol): Generalize the name of the LO_SUM_OUT
6521 parameter to LOW_OUT. Say that it can be any valid SET_SRC
6522 when splitting a load-address operation. Split SYMBOL_GOT_DISP
6523 constants and highs of SYMBOL_GOT_PAGE_OFST constants.
6524 (mips_call_tls_get_addr): Update the call to mips_expand_call,
6525 also passing NULL_RTX rather than const0_rtx as the aux argument.
6526 (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
6527 instead of TARGET_EXPLICIT_RELOCS.
6528 (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
6529 (mips_load_call_address): Replace the sibcall_p argument with
6530 a mips_call_type argument. Use mips_got_load.
6531 (mips16_local_alias): New structure.
6532 (mips16_local_aliases): New variable.
6533 (mips16_local_aliases_hash): New function.
6534 (mips16_local_aliases_eq): Likewise.
6535 (mips16_local_alias): Likewise.
6536 (mips16_stub_function): Likewise.
6537 (mips16_build_function_stub): Create a local alias for the target
6538 function. Handle TARGET_ABICALLS. For PIC abicalls, emit a
6539 .cpload directive and an R_MIPS_NONE relocation for the target
6540 function, then load the alias rather than the function itself.
6541 Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
6542 (mips16_copy_fpr_return_value): Use mips16_stub_function and
6543 mips_expand_call. Set SYMBOL_REF_BIND_NOW on the symbol.
6544 (mips16_build_call_stub): Replace the FN parameter with an
6545 FN_PTR parameter. Force the address into a register if it
6546 isn't a call_insn_operand; don't rely on the caller to do this.
6547 If a call to a locally-defined and locally-binding MIPS16
6548 function must be made indirectly, redirect the call to the
6549 function's local alias. Use mips16_stub_function_p,
6550 mips16_stub_function, mips_expand_call and use_reg.
6551 Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
6552 Use explicit %hi and %lo accesses where possible.
6553 Use MIPS_CALL to generate the correct code form of a
6554 jal instruction. Add clobbers of $18 instead of uses.
6555 Update the call to mips_emit_call_insn.
6556 (mips_expand_call): Replace the SIBCALL_P argument with a
6557 mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
6558 Take a LAZY_P parameter. Call mips16_build_call_stub first,
6559 allowing it to modify the call address. Update the calls to
6560 mips_load_call_address and mips_emit_call_insn.
6561 (mips_split_call): New function.
6562 (mips_init_relocs): Clear mips_split_hi_p. Only use %gp_rel if
6563 !TARGET_MIPS16. Split SYMBOL_GOT_DISP, and the high parts of
6564 SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
6565 (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
6566 (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
6567 if TARGET_MIPS16.
6568 (mips_cprestore_slot): New function.
6569 (mips_restore_gp): Take a TEMP parameter. Handle TARGET_MIPS16
6570 and use mips_cprestore_slot.
6571 (mips_output_function_prologue): Handle TARGET_MIPS16 for
6572 LOADGP_OLDABI.
6573 (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
6574 then use a copygp_mips16 instruction to set up $28.
6575 (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
6576 (mips16_lay_out_constants): Call split_all_insns_noflow.
6577 (mips_reorg_process_insns): Explicitly set all_noreorder_p to
6578 false if TARGET_MIPS16.
6579 (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
6580 (mips_output_mi_thunk): Use mips_got_symbol_type_p. Use the
6581 mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
6582 (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
6583 MIPS16 code. Allow MIPS16 o32 PIC.
6584 (mips_override_options): Allow MIPS16 o32 PIC.
6585 * config/mips/mips.md: Lower CONST_GP_P moves into register moves
6586 after reload if TARGET_USE_GOT.
6587 (UNSPEC_COPYGP): New constant.
6588 (length): Use a default length of 8 for MIPS16 GOT loads.
6589 (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
6590 (*got_page<mode>): Check mips_split_hi_p.
6591 (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
6592 (unspec_got<mode>, unspec_call<mode>): New expanders.
6593 (load_got<mode>, load_call<mode>): Remove the length attributes.
6594 Use a got attribute instead of a type attribute.
6595 (copygp_mips16): New insn.
6596 (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
6597 (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
6598 (sibcall, sibcall_value, call, call_value): Update the calls
6599 to mips_expand_call.
6600 (call_internal, call_value_internal): Use mips_split_call.
6601 (call_value_multiple_internal): Likewise.
6602 (call_split): Move after call_internal (the insn it is split from).
6603 (call_internal_direct, call_value_internal_direct): Turn into
6604 define_insn_and_splits. Split if TARGET_SPLIT_CALLS.
6605 (call_direct_split, call_value_direct_split): New patterns.
6606 * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
6607 and use M16_REGS instead of M16_NA_REGS.
6608 * config/mips/predicates.md (const_call_insn_operand): Replace
6609 the TARGET_ABSOLUTE_ABICALLS-based check with a more general
6610 mips_use_pic_fn_addr_reg_p check.
6611 (move_operand): Reject HIGHs if mips_split_hi_p.
6612 * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
6613 (__mips16_floatunsisf): Inline __mips16_floatsisf.
6614 (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
6615 * config/mips/libgcc-mips16.ver: New file.
6616 * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
6617 $(srcdir)/config/mips/libgcc-mips16.ver.
6618
6619 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
6620
6621 * config/mips/mips.c (mips_unspec_address_offset): Move earlier
6622 in file.
6623 (mips_unspec_address, mips_unspec_offset_high): Likewise.
6624 (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
6625 (mips16_cfun_returns_in_fpr_p): Likewise.
6626
6627 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
6628
6629 * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
6630 * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
6631 rather than 4 to PC.
6632
6633 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
6634
6635 * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
6636 (FUNCTION_PROFILER): Save the static chain pointer into $2
6637 beforehand and restore it aftewards.
6638 (TRAMPOLINE_TEMPLATE): Adjust accordingly. Load the target
6639 address directly into $25 and call the function through $25;
6640 do not clobber $3. Pad the DImode version to cover the space
6641 left by the deleted $25 <- $3 move.
6642 (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
6643 the removal of the $25 <- $3 move.
6644 (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
6645 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
6646
6647 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
6648 Daniel Jacobowitz <dan@codesourcery.com>
6649
6650 * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
6651 * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
6652 (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
6653 * config/mips/mips.c (mips_start_function_definition): New function.
6654 (mips_end_function_definition): Likewise.
6655 (mips_output_function_prologue): Use mips_start_function_definition.
6656 (mips_output_function_epilogue): Use mips_end_function_definition.
6657 (build_mips16_function_stub): Use mips_start_function_definition
6658 and mips_end_function_definition.
6659 (build_mips16_call_stub): Likewise.
6660
6661 2008-08-09 Richard Guenther <rguenther@suse.de>
6662
6663 * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
6664 * gimple.h (gimple_call_fn): Adjust comment.
6665 (gimple_call_set_fndecl): New function.
6666 (gimple_call_fndecl): Adjust for GIMPLE_CALL no
6667 longer having bare FUNCTION_DECL operand.
6668 (gimple_call_return_type): Likewise.
6669 * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
6670
6671 * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
6672 (gimple_mod_pow2): Likewise.
6673 (gimple_mod_subtract): Likewise.
6674 (gimple_ic): Likewise.
6675 (gimple_stringop_fixed_value): Likewise.
6676 (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
6677 longer having bare FUNCTION_DECL operand.
6678 * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
6679 * omp-low.c (optimize_omp_library_calls): Likewise.
6680 * cgraphunit.c (update_call_expr): Likewise.
6681 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
6682 (execute_convert_to_rsqrt): Likewise.
6683 * cfgexpand.c (gimple_to_tree): Simplify.
6684 (release_stmt_tree): Fix for GIMPLE_CALL no longer having
6685 bare FUNCTION_DECL operand.
6686 * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
6687 (convert_gimple_call): Use gimple_call_fndecl.
6688 * c-common.c (c_warn_unused_result): Likewise.
6689
6690 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6691
6692 PR c/17880
6693 * c-typeck.c (digest_init): Call verify_sequence_points from here.
6694 (c_finish_return): Likewise.
6695 (c_start_case): Likewise.
6696 * c-common.c (warn_for_collisions_1): Use explicit location in warning.
6697 * c-parser.c (c_parser_condition): New. Call
6698 verify_sequence_points.
6699 (c_parser_paren_condition): Call c_parser_condition.
6700 (c_parser_for_statement): Call c_parser_condition.
6701
6702 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6703
6704 PR 36901
6705 * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.
6706 * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
6707 Moved from diagnostic.h
6708 (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
6709 DK_PERMERROR.
6710 (emit_diagnostic): New.
6711 (warning0, pedwarn0): Delete.
6712 (warning, warning_at, pedwarn, permerror): Return bool.
6713 * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
6714 Moved to diagnostic.c.
6715 (struct diagnostic_context): Use correct type for
6716 classify_diagnostic.
6717 (diagnostic_report_diagnostic): Update declaration.
6718 (emit_diagnostic): Declare.
6719 * errors.c (warning): Return bool.
6720 * errors.h (warning): Update declaration.
6721 * toplev.h (warning0, pedwarn0): Delete.
6722 (warning, warning_at, pedwarn, permerror): Return bool.
6723 * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
6724 * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
6725 inform. Update all calls.
6726 (diagnose_mismatched_decls): Check return value of warning/pedwarn
6727 before giving informative note.
6728 (implicit_decl_warning): Likewise.
6729 * c-typeck.c (build_function_call): Likewise.
6730 * tree-sssa.c (warn_uninit): Likewise.
6731 * builtins.c (gimplify_va_arg_expr): Likewise.
6732
6733 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6734
6735 PR 7651
6736 * doc/invoke.texi (-Wextra): Move warning from here...
6737 (-Wuninitialized): ... to here.
6738
6739 2008-08-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6740
6741 PR 28875
6742 * flags.h (set_Wunused): Delete
6743 * toplev.c (process_options): Handle Wunused flags here.
6744 * opts.c (maybe_warn_unused_parameter): Delete.
6745 (common_handle_option): Replace set_Wunused by warn_unused.
6746 (set_Wextra): Do not handle Wunused-parameter here.
6747 (set_Wunused): Delete.
6748 * c-opts.c (c_common_handle_option): Replace set_Wunused by
6749 warn_unused.
6750 * common.opt (Wunused): Add Var and Init.
6751 (Wunused-function): Likewise.
6752 (Wunused-label): Likewise.
6753 (Wunused-parameter): Likewise.
6754 (Wunused-value): Likewise.
6755 (Wunused-variable): Likewise.
6756
6757 2008-08-08 Peter Bergner <bergner@vnet.ibm.com>
6758
6759 * doc/invoke.texi: Add cpu_type power7.
6760 * config.in (HAVE_AS_VSX): New.
6761 * config.gcc: Add cpu_type power7.
6762 * configure.ac (HAVE_AS_VSX): Check for assembler support of the
6763 VSX instructions.
6764 * configure: Regenerate.
6765 * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
6766 power5.
6767 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
6768 (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
6769 (EXTRA_SPECS): Add asm_cpu_power7 spec string.
6770
6771 2008-08-08 Dorit Nuzman <dorit@il.ibm.com>
6772
6773 * tree-vect-transform.c (vectorizable_conversion): Pass the integral
6774 type to vectorize.builtin_conversion.
6775 (vectorizable_conversion): Likewise.
6776 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
6777 integral type as input.
6778 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
6779 FIX_TRUNC_EXPR.
6780 (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
6781 and ALTIVEC_BUILTIN_VCTSXS.
6782 (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
6783 formatting.
6784
6785 2008-08-08 Richard Guenther <rguenther@suse.de>
6786
6787 * tree-ssa-ccp.c (likely_value): Calls are not all varying.
6788 (surely_varying_stmt_p): Calls are varying only if they are
6789 non-builtin and not indirect or have no result.
6790 (ccp_fold): Re-instantiate code before the tuples merge.
6791
6792 2008-08-08 Richard Guenther <rguenther@suse.de>
6793
6794 PR tree-optimization/37056
6795 * gimple.h (gimple_assign_rhs_class): New helper function.
6796 * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
6797 unary operations properly.
6798
6799 2008-08-07 Jan Hubicka <jh@suse.cz>
6800
6801 * i386.h (ix86_size_cost): Declare.
6802 (ix86_cur_cost): New function macro.
6803 * i386.md (peepholes expanding size and splitters): Predicate by
6804 optimize_insn_for_speed_p.
6805 (peepholes reduce size and splitters): Predicate by
6806 optimize_insn_for_size_p.
6807 * i386.c (ix86_size_cost): Rename from ...
6808 (size_cost): This one.
6809 (override_options): Update.
6810 (decide_alg): Likewise.
6811 (ix86_expand_clear): Use RTL profile.
6812 (ix86_pad_returns): Use RTL profile.
6813
6814 2008-08-07 Jan Hubicka <jh@suse.cz>
6815
6816 * recog.c (split_all_insns): Set RTL profile
6817 (peephole2_optimize): Likewise.
6818 * function.c (thread_prologue_and_epilogue_insns): Likewise.
6819 * combine.c (combine_instructions): Likewise.
6820
6821 2008-08-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6822
6823 * c-common.c (c_common_reswords): Also warn about keyword "bool".
6824
6825 2008-08-07 Bob Wilson <bob.wilson@acm.org>
6826
6827 * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming
6828 value in a6 after the set_frame_ptr insn.
6829
6830 2008-08-07 Richard Henderson <rth@redhat.com>
6831
6832 PR debug/37033
6833 * gcc.c (cpp_options): Pass along -g*.
6834
6835 2008-08-07 Joseph Myers <joseph@codesourcery.com>
6836
6837 * config/arm/arm.c (output_move_neon): Update comment describing
6838 big-endian vector layout.
6839 (arm_assemble_integer): Do not handle big-endian NEON vectors
6840 specially.
6841 * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
6842 neon_vget_lane<mode>_sext_internal,
6843 neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
6844 element indices for big-endian.
6845
6846 2008-08-07 Richard Henderson <rth@redhat.com>
6847
6848 * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
6849 * configure, config.in: Rebuild.
6850 * debug.h (dwarf2out_do_cfi_asm): Declare.
6851 * c-cppbuiltin.c (c_cpp_builtins): Use it.
6852 * dwarf2out.c (dwarf2out_do_cfi_asm): New.
6853 (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
6854 dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
6855
6856 2008-08-07 Joseph Myers <joseph@codesourcery.com>
6857
6858 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
6859 movv2si_internal): Combine into mov<mode>_internal.
6860 (movv2si_internal_2): Remove.
6861
6862 2008-08-07 Jan Hubicka <jh@suse.cz>
6863
6864 PR target/37048
6865 * i386.md (single stringop patterns): Enable unconditionally.
6866
6867 2008-08-07 H.J. Lu <hongjiu.lu@intel.com>
6868
6869 PR target/36992
6870 * config/i386/emmintrin.h (_mm_move_epi64): Use __builtin_ia32_movq128.
6871
6872 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
6873 (bdesc_args): Add IX86_BUILTIN_MOVQ128.
6874
6875 * config/i386/sse.md (sse2_movq128): New.
6876
6877 * doc/extend.texi: Document __builtin_ia32_movq128.
6878
6879 2008-08-07 Richard Guenther <rguenther@suse.de>
6880
6881 PR middle-end/37042
6882 * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
6883 pointers can access anything.
6884
6885 2008-08-06 Jan Hubicka <jh@suse.cz>
6886
6887 * optabs.c (emit_unop_insn): Break out to ...
6888 (maybe_emit_unop_insn): ... this one.
6889 (expand_sfix_optab): Use maybe variant.
6890 * optabs.h (maybe_emit_unop_insn): Declare.
6891
6892 * i386.md (mov0 patterns): Enable by default.
6893 (FP conversion expanders): Disable expansion of code expanding
6894 sequences when instruction should be optimized for size.
6895 (single strinop patterns): Enable when optimizing for size.
6896 (string expanders): Disable expanding of code expanding sequences
6897 when optimizning instruction for size.
6898 * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
6899 per BB basis.
6900 (ix86_fp_comparison_sahf_cost): Likewise.
6901 (ix86_expand_branch): Likewise.
6902 (ix86_expand_ashl_const): Likewise.
6903 (ix86_split_ashl): Likewise.
6904 (ix86_expand_strlen): Likewise.
6905 (ix86_emit_fp_unordered_jump): Likewie.
6906
6907 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6908
6909 * c-common.c: Fix typo.
6910 (c_common_reswords): Activate more C++ keyword warnings.
6911
6912 * matrix-reorg.c (compute_offset): Avoid C++ keywords.
6913
6914 2008-08-06 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6915
6916 PR 26785
6917 * diagnostic.c (permerror_at): New.
6918 * toplev.h (permerror_at): Declare.
6919
6920 2008-08-06 Victor Kaplansky <victork@il.ibm.com>
6921 Ira Rosen <irar@il.ibm.com>
6922
6923 * tree-vect-transform.c (vect_model_simple_cost): Return
6924 immediately if stmt is pure SLP.
6925 (vect_model_store_cost): Ditto.
6926 (vect_model_load_cost): Ditto.
6927 (vectorizable_store): Remove PURE_SLP check before call
6928 to vect_model_store_cost.
6929 (vect_model_store_cost): When checking whether stmt describe
6930 strided access, add a check that it is not slp_node.
6931
6932 2008-08-06 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6933
6934 PR 8715
6935 * c-common.c (warn_for_sign_compare): New. Handle separately the
6936 case that 'constant' is zero.
6937 * c-typeck.c (build_binary_op): Move code to c-common.c
6938
6939 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6940
6941 * config/alpha/alpha.c (alpha_preferred_reload_class,
6942 alpha_secondary_reload, alpha_emit_set_const_1, function_value,
6943 alpha_output_mi_thunk_osf): Avoid C++ keywords.
6944 * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
6945 * config/arm/arm.md: Likewise.
6946 * config/avr/avr-protos.h (preferred_reload_class,
6947 test_hard_reg_class, avr_simplify_comparison_p,
6948 out_shift_with_cnt, class_max_nregs): Likewise.
6949 * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
6950 output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
6951 preferred_reload_class, test_hard_reg_class): Likewise.
6952 * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
6953 bfin_memory_move_cost, bfin_secondary_reload,
6954 bfin_output_mi_thunk): Likewise.
6955 * config/crx/crx.c (crx_secondary_reload_class,
6956 crx_memory_move_cost): Likewise.
6957 * config/frv/frv-protos.h (frv_secondary_reload_class,
6958 frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
6959 * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
6960 frv_secondary_reload_class, frv_class_likely_spilled_p,
6961 frv_class_max_nregs): Likewise.
6962 * config/h8300/h8300.c (h8300_classify_operand,
6963 h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
6964 Likewise.
6965 * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
6966 * config/ia64/ia64.c (ia64_preferred_reload_class,
6967 ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
6968 * config/iq2000/iq2000.c (gen_int_relational): Likewise.
6969 * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
6970 Likewise.
6971 * config/m68hc11/m68hc11.c (preferred_reload_class,
6972 m68hc11_memory_move_cost): Likewise.
6973 * config/mcore/mcore.c (mcore_secondary_reload_class,
6974 mcore_reload_class): Likewise.
6975 * config/mips/mips.c (mips_hard_regno_mode_ok_p,
6976 mips_class_max_nregs, mips_cannot_change_mode_class,
6977 mips_preferred_reload_class, mips_secondary_reload_class,
6978 mips_output_mi_thunk): Likewise.
6979 * config/mmix/mmix.c (mmix_preferred_reload_class,
6980 mmix_preferred_output_reload_class, mmix_secondary_reload_class):
6981 Likewise.
6982 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
6983 Likewise.
6984 * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
6985 pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
6986 * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
6987 * config/rs6000/rs6000.c (paired_expand_vector_init,
6988 rs6000_secondary_reload_class, rs6000_output_mi_thunk,
6989 compare_section_name, rs6000_memory_move_cost): Likewise.
6990 * config/s390/s390.c (s390_emit_compare_and_swap,
6991 s390_preferred_reload_class, s390_secondary_reload,
6992 legitimize_pic_address, legitimize_tls_address,
6993 legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
6994 s390_class_max_nregs): Likewise.
6995 * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
6996 * config/s390/s390.md: Likewise.
6997 * config/score/score-protos.h (score_secondary_reload_class,
6998 score_preferred_reload_class): Likewise.
6999 * config/score/score.c (score_preferred_reload_class,
7000 score_secondary_reload_class): Likewise.
7001 * config/score/score3.c (score3_output_mi_thunk,
7002 score3_preferred_reload_class, score3_secondary_reload_class,
7003 score3_hard_regno_mode_ok): Likewise.
7004 * config/score/score3.h (score3_preferred_reload_class,
7005 score3_secondary_reload_class): Likewise.
7006 * config/score/score7.c (score7_output_mi_thunk,
7007 score7_preferred_reload_class, score7_secondary_reload_class,
7008 score7_hard_regno_mode_ok): Likewise.
7009 * config/score/score7.h (score7_preferred_reload_class,
7010 score7_secondary_reload_class): Likewise.
7011 * config/sh/sh.c (prepare_move_operands, output_far_jump,
7012 output_branchy_insn, add_constant, gen_block_redirect,
7013 sh_insn_length_adjustment, sh_cannot_change_mode_class,
7014 sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload): Likewise.
7015 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
7016 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
7017 xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
7018 xstormy16_preferred_reload_class): Likewise.
7019 * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
7020 xtensa_expand_atomic, override_options,
7021 xtensa_preferred_reload_class, xtensa_secondary_reload_class):
7022 Likewise.
7023 * reorg.c (try_merge_delay_insns): Likewise.
7024 * tree.c (merge_dllimport_decl_attributes): Likewise.
7025
7026 * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
7027
7028 2008-08-06 Michael Matz <matz@suse.de>
7029
7030 * Makefile.in (write_entries_to_file): Quote words.
7031 * gengtype.c: (read_input_line): Skip over leading white-space.
7032
7033 2008-08-06 Marc Gauthier <marc@tensilica.com>
7034
7035 * config.gcc: Match more processor names for Xtensa.
7036 * configure.ac: Likewise.
7037 * doc/install.texi (Specific): Likewise.
7038 * configure: Regenerate.
7039
7040 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7041
7042 * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
7043 * calls.c (avoid_likely_spilled_reg): Likewise.
7044 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
7045 * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
7046 * config/i386/i386.c (ix86_expand_special_args_builtin,
7047 ix86_secondary_reload): Likewise.
7048 * except.c (struct eh_region, gen_eh_region_catch,
7049 remove_unreachable_regions, duplicate_eh_regions,
7050 assign_filter_values, build_post_landing_pads,
7051 sjlj_find_directly_reachable_regions, remove_eh_handler,
7052 reachable_next_level, foreach_reachable_handler,
7053 can_throw_internal_1, can_throw_external_1,
7054 collect_one_action_chain): Likewise.
7055 * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
7056 * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
7057 * function.c (update_temp_slot_address, instantiate_new_reg,
7058 instantiate_virtual_regs_in_rtx,
7059 instantiate_virtual_regs_in_insn): Likewise.
7060 * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
7061 * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
7062 gimplify_cleanup_point_expr): Likewise.
7063 * ipa-cp.c (ipcp_lattice_changed): Likewise.
7064 * passes.c (next_pass_1): Likewise.
7065 * print-tree.c (print_node_brief, print_node): Likewise.
7066 * profile.c (branch_prob): Likewise.
7067 * tree-dump.c (dump_register): Likewise.
7068 * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
7069 Likewise.
7070 * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
7071 copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
7072 copy_edges_for_bb, copy_cfg_body, copy_tree_r,
7073 copy_arguments_for_versioning, copy_static_chain): Likewise.
7074 * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
7075 add_new_name_mapping, register_new_name_mapping): Likewise.
7076 * tree-mudflap.c (mf_xform_derefs): Likewise.
7077 * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
7078 get_init_expr, combine_chains): Likewise.
7079 * tree-pretty-print.c (dump_generic_node): Likewise.
7080 * tree-ssa-structalias.c (create_variable_info_for): Likewise.
7081 * tree-vrp.c (simplify_cond_using_ranges): Likewise.
7082 * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
7083 * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
7084
7085 2008-08-06 H.J. Lu <hongjiu.lu@intel.com>
7086
7087 PR middle-end/37010
7088 * calls.c (expand_call): Use the biggest preferred stack
7089 boundary.
7090
7091 2008-08-06 Michael Matz <matz@suse.de>
7092
7093 PR target/36613
7094 * reload.c (push_reload): Merge in,out,in_reg,out_reg members
7095 for reused reload, instead of overwriting them.
7096
7097 2008-08-06 H.J. Lu <hongjiu.lu@intel.com>
7098
7099 PR middle-end/37009
7100 * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
7101 for incoming stack boundary.
7102
7103 * function.c (assign_parm_find_entry_rtl): Update
7104 parm_stack_boundary.
7105
7106 * function.h (rtl_data): Add parm_stack_boundary.
7107
7108 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
7109 parm_stack_boundary for incoming stack boundary.
7110
7111 2008-08-06 Joseph Myers <joseph@codesourcery.com>
7112
7113 * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
7114 for unrepresentable subregs or treat them as equal to other regs
7115 or subregs with the same register number.
7116
7117 2008-08-06 Aldy Hernandez <aldyh@redhat.com>
7118
7119 PR middle-end/35432
7120 * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
7121 if want_value.
7122
7123 2008-08-06 Jan Hubicka <jh@suse.cz>
7124
7125 * predict.c (maybe_hot_frequency_p): When profile is absent, all
7126 frequencies might be hot.
7127
7128 2008-08-06 Andreas Krebbel <krebbel1@de.ibm.com>
7129
7130 * reload.c (find_reloads): Force constants into literal pool
7131 also if they are wrapped in a SUBREG.
7132
7133 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
7134
7135 PR target/35659
7136 * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
7137 * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
7138 Don't allow predicated instructions for data speculation.
7139 * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
7140 declaration.
7141
7142 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
7143
7144 * haifa-sched.c (extend_global): Split to extend_global_data and
7145 extend_region_data. Update all uses.
7146 (extend_all): Rename to extend_block_data.
7147
7148 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
7149
7150 * sched-rgn.c (new_ready): Check if instruction can be
7151 speculatively scheduled before attempting speculation.
7152 (debug_rgn_dependencies): Remove wrongful assert.
7153
7154 2008-08-05 Bob Wilson <bob.wilson@acm.org>
7155
7156 * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
7157
7158 2008-08-05 Bob Wilson <bob.wilson@acm.org>
7159
7160 * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
7161 (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
7162 va_size, and type_size.
7163
7164 2008-08-04 Jason Merrill <jason@redhat.com>
7165
7166 PR c++/37016
7167 * tree-ssa.c (useless_type_conversion_p_1): Call langhook
7168 if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
7169
7170 2008-08-05 Richard Henderson <rth@redhat.com>
7171
7172 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
7173 * configure: Rebuild.
7174
7175 2008-08-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
7176
7177 PR tree-opt/37024
7178 * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
7179 instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
7180 is a conversion.
7181
7182 2008-08-05 Richard Henderson <rth@redhat.com>
7183
7184 * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
7185 * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
7186 * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
7187 * common.opt (fdwarf2-cfi-asm): New.
7188 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
7189 * config.in, configure: Rebuild.
7190 * dwarf2asm.c (dw2_asm_output_data_raw): New.
7191 (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw):
7192 New.
7193 (dw2_force_const_mem): Externalize.
7194 * dwarf2asm.h: Update.
7195 * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
7196 generate a real label.
7197 (output_cfi_directive): New.
7198 (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
7199 (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
7200 (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
7201 and .cfi_lsda.
7202 (dwarf2out_end_epilogue): Emit .cfi_endproc.
7203 (output_loc_operands_raw, output_loc_sequence_raw): New.
7204 (output_cfa_loc_raw): New.
7205
7206 2008-08-05 Paul Brook <paul@codesourcery.com>
7207
7208 * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
7209 * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
7210 (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
7211 (arm_file_start): Add FPUTYPE_VFP3D16. Rename vfp3 to vfpv3.
7212 * config/arm/arm.h (TARGET_VFPD32): Define.
7213 (TARGET_VFP3): Use TARGET_VFPD32.
7214 (fputype): Add FPUTYPE_VFP3D16.
7215 (LAST_VFP_REGNUM): Use TARGET_VFPD32.
7216 * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
7217 * config/arm/arm-cores.def: Add cortex-r4f.
7218 * config/arm/arm-tune.md: Regenerate.
7219
7220 2008-08-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7221
7222 * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
7223 Reword some comments throughout the file.
7224
7225 (MFC_MIN_DMA_LIST_ELEMENTS): New define.
7226 (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
7227 (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of
7228 MFC_MIN_DMA_LIST_ELEMENTS.
7229 (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of
7230 MFC_MAX_DMA_LIST_ELEMENTS.
7231
7232 (MFC_START_ENABLE): Remove PPU-only define.
7233 (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
7234 (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
7235
7236 (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
7237 (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
7238 (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
7239 (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
7240 (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
7241 (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
7242 (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
7243
7244 (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
7245 (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
7246 (mfc_sdcrt, mfc_sdcrtst): Likewise.
7247 (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
7248
7249 (spu_read_machine_status): Fix typo.
7250
7251 2008-08-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7252
7253 * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
7254 SUBREG of multi-word hard register.
7255 * config/spu/spu.c (valid_subreg): Likewise.
7256 (adjust_operand): Handle SUBREGs of multi-word hard registers.
7257
7258 2008-08-04 Richard Guenther <rguenther@suse.de>
7259
7260 * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
7261 the candidate with the stripped base if that base is different
7262 from the original base even for offset zero.
7263
7264 2008-08-04 Richard Guenther <rguenther@suse.de>
7265
7266 PR middle-end/36691
7267 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
7268 check for no_overflow.
7269
7270 2008-08-04 Richard Guenther <rguenther@suse.de>
7271
7272 * tree-vect-transform.c (vectorizable_call): Fix tuplification.
7273
7274 2008-08-04 Paul Brook <paul@codesourcery.com>
7275
7276 * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
7277 (arm_order_regs_for_local_alloc): New function.
7278 * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
7279 prototype.
7280 * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
7281
7282 2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
7283
7284 PR target/37012
7285 * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
7286 instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
7287 (ix86_expand_epilogue): Likewise.
7288
7289 2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
7290
7291 * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
7292 in comments.
7293
7294 2008-08-03 Uros Bizjak <ubizjak@gmail.com>
7295
7296 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
7297 to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
7298 (*movv2sf_internal_rex64): Ditto.
7299
7300 2008-08-03 Jan Hubicka <jh@suse.cz>
7301
7302 * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
7303 expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
7304 * expmed.c (expand_smod_pow2): Likewise.
7305
7306 2008-08-03 Uros Bizjak <ubizjak@gmail.com>
7307
7308 PR target/36992
7309 * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
7310 alternative 0 of operand 1.
7311 (*vec_concatv2di_rex64_sse): Ditto.
7312 (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
7313 of operand 1.
7314 (*sse2_storeq_rex64): Penalize allocation of "r" registers.
7315 * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
7316 of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
7317 (*movv2sf_internal_rex64): Ditto.
7318
7319 2008-08-02 Richard Guenther <rguenther@suse.de>
7320
7321 PR target/35252
7322 * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
7323 (ssedoublesizemode): New mode attribute.
7324 (sse_shufps): Call gen_sse_shufps_v4sf.
7325 (sse_shufps_1): Macroize.
7326 (sse2_shufpd): Call gen_Sse_shufpd_v2df.
7327 (sse2_shufpd_1): Macroize.
7328 (vec_extract_odd, vec_extract_even): New expanders.
7329 (vec_interleave_highv4sf, vec_interleave_lowv4sf,
7330 vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
7331 * i386.c (ix86_expand_vector_init_one_nonzero): Call
7332 gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
7333 (ix86_expand_vector_set): Likewise.
7334 (ix86_expand_reduc_v4sf): Likewise.
7335
7336 2008-08-01 Doug Kwan <dougkwan@google.com>
7337
7338 * matrix-reorg.c: Re-enable all code.
7339 (struct malloc_call_data): Change CALL_STMT to gimple type.
7340 (collect_data_for_malloc_call): Tuplify.
7341 (struct access_site_info): Change STMT to gimple type.
7342 (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
7343 and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
7344 (struct free_info): Change STMT to gimple type.
7345 (struct matrix_access_phi_node): Change PHI to gimple type.
7346 (get_inner_of_cast_expr): Remove.
7347 (may_flatten_matrices_1): Tuplify.
7348 (may_flatten_matrices): Ditto.
7349 (mark_min_matrix_escape_level): Ditto.
7350 (ssa_accessed_in_tree): Refactor statement RHS related code into ...
7351 (ssa_accessed_in_call_rhs): New
7352 (ssa_accessed_in_assign_rhs): New
7353 (record_access_alloc_site_info): Tuplify.
7354 (add_allocation_site): Ditto.
7355 (analyze_matrix_allocation_site): Ditto.
7356 (analyze_transpose): Ditto.
7357 (get_index_from_offset): Ditto.
7358 (update_type_size): Ditto.
7359 (analyze_accesses_for_call_expr): Tuplify and renamed into ...
7360 (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
7361 (analyze_accesses_for_phi_node): Tuplify.
7362 (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
7363 (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
7364 (analyze_matrix_accesses): Tuplify.
7365 (check_var_data): New call-back type for check_var_notmodified_p.
7366 (check_var_notmodified_p): Tuplify and use call-back struct to
7367 return statement found.
7368 (can_calculate_expr_before_stmt): Factor out statement related code
7369 into ...
7370 (can_calculate_stmt_before_stmt): New.
7371 (check_allocation_function): Tuplify.
7372 (find_sites_in_func): Ditto.
7373 (record_all_accesses_in_func): Ditto.
7374 (transform_access_sites): Ditto.
7375 (transform_allocation_sites): Ditto.
7376 (matrix_reorg): Re-enable.
7377 (gate_matrix_reorg): Re-enable.
7378
7379 2008-08-01 Jakub Jelinek <jakub@redhat.com>
7380
7381 * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
7382 for labels for which it hasn't been set yet. If it has been set,
7383 stop walking insns and continue with next worklist item.
7384 (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
7385 if the only BARRIER is at the very end of a function.
7386
7387 2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
7388
7389 * cfgexpand.c (expand_stack_alignment): Assert that
7390 stack_realign_drap and drap_rtx must match.
7391
7392 * function.c (instantiate_new_reg): If DRAP is used to realign
7393 stack, replace virtual_incoming_args_rtx with internal arg
7394 pointer.
7395
7396 2008-08-01 Richard Guenther <rguenther@suse.de>
7397
7398 * tree-ssa-pre.c (fini_pre): Take in_fre parameter. Free
7399 loop information only if we initialized it.
7400 (execute_pre): Call fini_pre with in_fre.
7401 * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
7402 if we do not unroll because we hit max-completely-peeled-insns.
7403 Use our estimation for consistency, do allow shrinking.
7404
7405 2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
7406
7407 * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
7408 with MIN_STACK_BOUNDARY.
7409 (ix86_update_stack_boundary): Likewise.
7410 (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
7411 STACK_BOUNDARY.
7412
7413 * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
7414 (MIN_STACK_BOUNDARY): This.
7415
7416 2008-08-01 Richard Guenther <rguenther@suse.de>
7417
7418 PR middle-end/36997
7419 * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
7420
7421 2008-08-01 Richard Guenther <rguenther@suse.de>
7422
7423 PR tree-optimization/36988
7424 * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
7425 do not matter if that doesn't change volatile qualification.
7426
7427 2008-08-01 Paolo Bonzini <bonzini@gnu.org>
7428
7429 * configure.ac: Do not generate libada-mk. Do not subst
7430 host_cc_for_libada.
7431 * libada-mk.in: Remove.
7432 * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
7433 * configure: Regenerate.
7434
7435 2008-08-01 Basile Starynkevitch <basile@starynkevitch.net>
7436
7437 * tree-pass.h: Added comment about not dumping passes with name
7438 starting with star in struct opt_pass.
7439 * passes.c (register_dump_files_1): Don't do dump for a pass with
7440 name starting with star.
7441 * doc/passes.texi (Pass manager): Mention pass names and special
7442 meaning of star prefix to avoid dump.
7443
7444 2008-07-31 Adam Nemet <anemet@caviumnetworks.com>
7445
7446 * config.gcc (mipsisa64r2*-*-linux*): New configuration. Set ISA
7447 to MIPS64r2.
7448 * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
7449 (ISA_MIPS64R2): New macro.
7450 (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
7451 (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
7452 ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
7453 ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
7454 ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
7455 ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
7456 ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
7457 (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
7458 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
7459 Move up to keep list alphabetically sorted.
7460 (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
7461 * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
7462 processor.
7463 * doc/invoke.texi (MIPS Options): Add -mips64r2.
7464 (-march=@var{arch}): Add mips64r2.
7465
7466 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
7467
7468 * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
7469
7470 2008-07-31 Steve Ellcey <sje@cup.hp.com>
7471
7472 * expr.c (expand_assignment): Check for complete type.
7473
7474 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
7475
7476 PR debug/36977
7477 * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
7478
7479 * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
7480 for stack alignment.
7481
7482 * function.h (rtl_data): Add stack_realign_tried. Update comments.
7483
7484 2008-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
7485
7486 * config/sh/sh.c (sh_canonical_va_list_type): Remove.
7487 (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
7488
7489 2008-07-31 Jakub Jelinek <jakub@redhat.com>
7490
7491 PR rtl-optimization/36419
7492 * dwarf2out.c (barrier_args_size): New variable.
7493 (compute_barrier_args_size, compute_barrier_args_size_1): New
7494 functions.
7495 (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
7496 if not called yet in the current function, use barrier_args_size
7497 array to find the new args_size value.
7498 (dwarf2out_frame_debug): Free and clear barrier_args_size.
7499
7500 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
7501
7502 PR debug/36980
7503 * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
7504 rule 19.
7505
7506 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
7507
7508 PR debug/36976
7509 * dwarf2out.c (dwarf2out_args_size_adjust): New.
7510 (dwarf2out_stack_adjust): Use it.
7511 (dwarf2out_frame_debug_expr): Likewise.
7512
7513 2008-07-31 Richard Guenther <rguenther@suse.de>
7514
7515 PR tree-optimization/36978
7516 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
7517 the generated condition.
7518
7519 2008-07-31 Richard Guenther <rguenther@suse.de>
7520
7521 * passes.c (init_optimization_passes): Always call
7522 pass_early_warn_uninitialized.
7523 * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
7524 * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
7525 * doc/passes.texi (Warn for uninitialized variables): Adjust.
7526
7527 2008-07-31 Jakub Jelinek <jakub@redhat.com>
7528
7529 PR c/36970
7530 * builtins.c (maybe_emit_free_warning): New function.
7531 (expand_builtin): Process BUILT_IN_FREE even at -O0. Call
7532 maybe_emit_free_warning for BUILT_IN_FREE.
7533
7534 PR debug/36278
7535 * dwarf2out.c (get_context_die): New function.
7536 (force_decl_die, force_type_die): Use it.
7537 (dwarf2out_imported_module_or_decl): Likewise. If base_type_die
7538 returns NULL, force generation of DW_TAG_typedef and put that into
7539 DW_AT_import.
7540
7541 PR preprocessor/36649
7542 * c-pch.c (c_common_read_pch): Save and restore
7543 line_table->trace_includes across PCH restore.
7544
7545 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
7546
7547 PR ada/36554
7548 * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
7549
7550 2008-07-30 Rafael Ãvila de Espíndola <espindola@google.com>
7551
7552 PR 36974
7553 * final.c (call_from_call_insn): Handle COND_EXEC.
7554
7555 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
7556
7557 * builtins.c (std_gimplify_va_arg_expr): Replace
7558 PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
7559 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
7560
7561 2008-07-30 Joey Ye <joey.ye@intel.com>
7562 H.J. Lu <hongjiu.lu@intel.com>
7563
7564 * builtins.c (expand_builtin_setjmp_receiver): Replace
7565 virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
7566 (expand_builtin_apply_args_1): Likewise.
7567 (expand_builtin_longjmp): Need DRAP for stack alignment.
7568 (expand_builtin_apply): Likewise.
7569
7570 * caller-save.c (setup_save_areas): Call assign_stack_local_1
7571 instead of assign_stack_local to allow alignment reduction.
7572
7573 * calls.c (emit_call_1): Need DRAP for stack alignment if
7574 return pops.
7575 (expand_call): Replace virtual_incoming_args_rtx with
7576 crtl->args.internal_arg_pointer.
7577 * stmt.c (expand_nl_goto_receiver): Likewise.
7578
7579 * cfgexpand.c (get_decl_align_unit): Estimate stack variable
7580 alignment and store to stack_alignment_estimated and
7581 max_used_stack_slot_alignment.
7582 (expand_one_var): Likewise.
7583 (expand_stack_alignment): New function.
7584 (tree_expand_cfg): Initialize max_used_stack_slot_alignment
7585 and stack_alignment_estimated fields in rtl_data. Call
7586 expand_stack_alignment at end.
7587
7588 * defaults.h (INCOMING_STACK_BOUNDARY): New.
7589 (MAX_STACK_ALIGNMENT): Likewise.
7590 (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
7591 (SUPPORTS_STACK_ALIGNMENT): Likewise.
7592
7593 * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
7594 stack alignment when generating virtual registers.
7595
7596 * function.c (assign_stack_local): Renamed to ...
7597 (assign_stack_local_1): This. Add a parameter to indicate
7598 if it is OK to reduce alignment.
7599 (assign_stack_local): Use it.
7600 (instantiate_new_reg): Instantiate virtual incoming args rtx
7601 to vDRAP if stack realignment and DRAP is needed.
7602 (assign_parms): Collect parameter/return type alignment and
7603 contribute to stack_alignment_estimated.
7604 (locate_and_pad_parm): Likewise.
7605 (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
7606 with crtl->args.internal_arg_pointer.
7607
7608 * function.h (rtl_data): Add new field drap_reg,
7609 max_used_stack_slot_alignment, stack_alignment_estimated,
7610 stack_realign_needed, need_drap, stack_realign_processed and
7611 stack_realign_finalized.
7612 (stack_realign_fp): New macro.
7613 (stack_realign_drap): Likewise.
7614
7615 * global.c (compute_regsets): Frame pointer is needed when
7616 stack is realigned. Can eliminate frame pointer when stack is
7617 realigned and dynamic realigned argument pointer isn't used.
7618
7619 * reload1.c (update_eliminables): Frame pointer is needed
7620 when stack is realigned.
7621 (init_elim_table): Can eliminate frame pointer when stack is
7622 realigned and dynamic realigned argument pointer isn't used.
7623
7624 * rtl.h (assign_stack_local_1): Declare new funtion.
7625
7626 * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
7627 (TARGET_GET_DRAP_RTX): Likewise.
7628 (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
7629 TARGET_GET_DRAP_RTX.
7630
7631 * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
7632
7633 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
7634 STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
7635
7636 2008-07-30 Xuepeng Guo <xuepeng.guo@intel.com>
7637 H.J. Lu <hongjiu.lu@intel.com>
7638
7639 * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
7640 vdrap_reg, stack_realign and drap_reg_saved.
7641 (add_cfi): Don't allow redefining CFA when DRAP is used.
7642 (reg_save): Handle stack alignment.
7643 (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
7644 alignment. Don't generate DWARF information for (set fp sp)
7645 when DRAP is used.
7646 (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
7647 to INVALID_REGNUM.
7648 (int_loc_descriptor): Move prototype forward. Also define if
7649 DWARF2_UNWIND_INFO is true.
7650 (output_cfa_loc): Handle DW_CFA_expression.
7651 (build_cfa_aligned_loc): New.
7652 (based_loc_descr): Update assert for stack realign. For local
7653 variables, use sp+offset when stack is aligned without drap and
7654 fp+offset when stack is aligned with drap. For arguments, use
7655 cfa+offset when drap is used to align stack.
7656
7657 2008-07-30 Joey Ye <joey.ye@intel.com>
7658 H.J. Lu <hongjiu.lu@intel.com>
7659
7660 * config/i386/i386.c (ix86_force_align_arg_pointer_string):
7661 Break long line.
7662 (ix86_gen_andsp): New.
7663 (ix86_user_incoming_stack_boundary): Likewise.
7664 (ix86_default_incoming_stack_boundary): Likewise.
7665 (ix86_incoming_stack_boundary): Likewise.
7666 (ix86_can_eliminate): Likewise.
7667 (find_drap_reg): Likewise.
7668 (ix86_update_stack_boundary): Likewise.
7669 (ix86_get_drap_rtx): Likewise.
7670 (ix86_finalize_stack_realign_flags): Likewise.
7671 (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
7672 (TARGET_GET_DRAP_RTX): Likewise.
7673 (override_options): Overide option value for new options.
7674 (ix86_function_ok_for_sibcall): Remove check for
7675 force_align_arg_pointer.
7676 (ix86_handle_cconv_attribute): Likewise.
7677 (ix86_function_regparm): Likewise.
7678 (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
7679 (ix86_va_start): Replace virtual_incoming_args_rtx with
7680 crtl->args.internal_arg_pointer.
7681 (ix86_select_alt_pic_regnum): Check DRAP register.
7682 (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
7683 (ix86_compute_frame_layout): Compute frame layout wrt stack
7684 realignment.
7685 (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
7686 (ix86_expand_prologue): Decide if stack realignment is needed
7687 and generate prologue code accordingly.
7688 (ix86_expand_epilogue): Generate epilogue code wrt stack
7689 realignment is really needed or not.
7690
7691 * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
7692 (ABI_STACK_BOUNDARY): Likewise.
7693 (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
7694 (STACK_REALIGN_DEFAULT): Likewise.
7695 (INCOMING_STACK_BOUNDARY): Likewise.
7696 (MAX_STACK_ALIGNMENT): Likewise.
7697 (ix86_incoming_stack_boundary): Likewise.
7698 (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
7699 (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
7700 (CAN_ELIMINATE): Defined with ix86_can_eliminate.
7701 (machine_function): Remove force_align_arg_pointer.
7702
7703 * config/i386/i386.md (BX_REG): New.
7704 (R13_REG): Likewise.
7705
7706 * config/i386/i386.opt (mforce_drap): New.
7707 (mincoming-stack-boundary): Likewise.
7708 (mstackrealign): Add Init(-1).
7709
7710 * config/i386/i386-protos.h (ix86_can_eliminate): New
7711
7712 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
7713
7714 * doc/extend.texi: Update force_align_arg_pointer.
7715
7716 * doc/invoke.texi: Document -mincoming-stack-boundary. Update
7717 -mstackrealign.
7718
7719 * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
7720 (INCOMING_STACK_BOUNDARY): Likewise.
7721 (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
7722 (TARGET_GET_DRAP_RTX): Likewise.
7723
7724 2008-07-30 Andreas Schwab <schwab@suse.de>
7725
7726 PR rtl-optimization/36929
7727 * dse.c (replace_inc_dec): Use emit_insn_before instead of
7728 add_insn_before and fix argument order.
7729 (replace_inc_dec_mem): Handle NULL rtx.
7730
7731 2008-07-30 Andrew Jenner <andrew@codesourcery.com>
7732
7733 * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
7734 function.
7735 (arm_compute_initial_elimination_offset): Use it.
7736 (arm_compute_save_reg_mask): Include static chain save slot when
7737 calculating alignment.
7738 (arm_get_frame_offsets): Ditto.
7739 (thumb1_compute_save_reg_mask): Ensure we have a low register saved
7740 that we can use to decrement the stack when the stack decrement
7741 could be too big for an immediate value in a single insn.
7742 (thumb1_expand_prologue): Avoid using r12 for stack decrement.
7743
7744 2008-07-30 Richard Guenther <rguenther@suse.de>
7745
7746 PR tree-optimization/36967
7747 * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
7748 Release defs of statements we remove.
7749
7750 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
7751
7752 * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
7753 instead of NULL_RTVEC.
7754
7755 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
7756
7757 PR target/35866
7758
7759 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
7760 vector modes.
7761
7762 2008-07-30 Rafael Ãvila de Espíndola <espindola@google.com>
7763
7764 * final.c (call_from_call_insn): New.
7765 (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
7766
7767 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
7768
7769 * configure.ac: Substitute ADA_CFLAGS.
7770 * configure: Regenerate.
7771 * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
7772 * Makefile.in: Remove mention of X_* variables.
7773 * config/pa/x-ada-hpux10: Remove.
7774 * config/pa/x-ada: Remove.
7775
7776 * doc/fragments.texi: Update.
7777
7778 2008-07-30 Olivier Hainque <hainque@adacore.com>
7779
7780 * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
7781 * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
7782 __dso_handle explicitly here.
7783
7784 2008-07-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7785
7786 PR 34389
7787 * c-typeck.c (build_binary_op): Encapsulate code into...
7788 * c-common.c (shorten_binary_op): ...this new function.
7789 (conversion_warning): Use the new function. Handle non-negative
7790 constant in bitwise-and.
7791 * c-common.h (shorten_binary_op): Declare.
7792
7793 2008-07-30 Olivier Hainque <hainque@adacore.com>
7794
7795 * scan.c (make_sstring_space): Add explicit conversions of
7796 allocator's return value.
7797 * fix-header.c (recognized_function): Likewise.
7798
7799 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7800
7801 * doc/cpp.texi: Update to GFDL 1.2.
7802 * doc/gcc.texi: Do not list GPL as Invariant Section.
7803 * doc/gccint.texi: Likewise. Update copyright years.
7804 * doc/install.texi: Update copyright years.
7805
7806 2008-07-30 Alan Modra <amodra@bigpond.net.au>
7807
7808 PR target/36955
7809 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
7810 a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
7811
7812 2008-07-29 Jan Hubicka <jh@suse.cz>
7813
7814 * c-decl.c (merge_decls): Do not handle DECL_INLINE.
7815 (grokdeclarator): Likewise.
7816 * langhooks.c (lhd_warn_unused_global_decl): Use
7817 DECL_DECLARED_INLINE_P.
7818 * print-tree.c (print_node): Remove DECL_INLINE check.
7819
7820 2008-07-29 Richard Guenther <rguenther@suse.de>
7821
7822 PR tree-optimization/36945
7823 * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
7824 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
7825 Record invariant addresses un-decomposed.
7826 (copy_reference_ops_from_call): Record reference call
7827 arguments properly. Simplify.
7828 * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
7829 helper split out from ...
7830 (create_component_ref_by_pieces): ... here. Simplify.
7831 Prepare for recursive invocation for call arguments.
7832 (create_expression_by_pieces): Adjust call to
7833 create_component_ref_by_pieces.
7834 (compute_avail): Process operand 2 of reference ops.
7835
7836 2008-07-29 Richard Guenther <rguenther@suse.de>
7837
7838 * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
7839
7840 2008-07-29 Jakub Jelinek <jakub@redhat.com>
7841
7842 * c-format.c (check_format_types): Revert unwanted checkin.
7843
7844 2008-07-29 Jan Hubicka <jh@suse.cz>
7845
7846 * flags.h (flag_really_no_inline): Remove.
7847 * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
7848 * toplev.c (flag_really_no_inline): Remove.
7849 * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
7850 * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
7851 (cgraph_decide_inlining_incrementally): Likewise.
7852 (compute_inline_parameters): Likewise.
7853 * opts.c (decode_options): Simplify.
7854 * c-opts.c (c_common_post_options): Do not set flag_no_inline.
7855 * common.opt (finline): Initialize to 1.
7856 * tree-inline.c (inlinable_function_p): Check flag_no_inline.
7857
7858 2008-07-29 Jan Hubicka <jh@suse.cz>
7859
7860 * predict.c (always_optimize_for_size_p): New function.
7861 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
7862 optimize_edge_for_size_p, optimize_edge_for_speed_p,
7863 optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
7864 functions.
7865 (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
7866 * function.c (prepare_function_start): Set default profile.
7867 * function.h (rtl_data): Add maybe_hot_insn_p.
7868 * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
7869 (construct_exit_block): Likewise.
7870 (tree_expand_cfg): Likewise.
7871 * basic-block.h
7872 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
7873 optimize_edge_for_size_p, optimize_edge_for_speed_p,
7874 optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
7875 (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
7876 Declare.
7877
7878 2008-07-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7879
7880 PR 34985
7881 * c-decl.c (merge_decls): Merge USED flags.
7882
7883 2008-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
7884
7885 * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
7886 valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
7887 next_stack, lab_false and lab_over trees.
7888
7889 2008-07-28 Richard Guenther <rguenther@suse.de>
7890
7891 PR tree-optimization/36957
7892 * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
7893 (useless_type_conversion_p): Remove.
7894 (types_compatible_p): Remove.
7895 * gimple.h (tree_ssa_useless_type_conversion): Declare.
7896 (useless_type_conversion_p): Declare.
7897 (types_compatible_p): Declare.
7898 (gimple_expr_type): Return the base type only if it is
7899 trivially convertible to the subtype.
7900
7901 2008-07-28 Andreas Tobler <a.tobler@schweiz.org>
7902
7903 * configure.ac: Use the m4_do macro to concatenate the warnings into
7904 one string in ACX_PROG_CC_WARNING_OPTS,
7905 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and
7906 ACX_PROG_CC_WARNINGS_ARE_ERRORS.
7907 * configure: Regenerate.
7908
7909 2008-07-28 Richard Guenther <rguenther@suse.de>
7910
7911 * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
7912 (insert_fake_stores): Remove.
7913 (realify_fake_stores): Likewise.
7914 (execute_pre): Remove dead code.
7915 * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
7916 (find_func_aliases): Deal with it here instead.
7917 Re-enable gcc_unreachable call.
7918
7919 2008-07-28 Richard Guenther <rguenther@suse.de>
7920
7921 Merge from gimple-tuples-branch.
7922
7923 * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
7924 * gimple.def: New file.
7925 * gsstruct.def: Likewise.
7926 * gimple-iterator.c: Likewise.
7927 * gimple-pretty-print.c: Likewise.
7928 * tree-gimple.c: Removed. Merged into ...
7929 * gimple.c: ... here. New file.
7930 * tree-gimple.h: Removed. Merged into ...
7931 * gimple.h: ... here. New file.
7932
7933 * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
7934 * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
7935 --enable-checking=gimple flag.
7936 * config.in: Likewise.
7937 * configure: Regenerated.
7938
7939 * tree-ssa-operands.h: Tuplified.
7940 * tree-vrp.c: Likewise.
7941 * tree-loop-linear.c: Likewise.
7942 * tree-into-ssa.c: Likewise.
7943 * tree-ssa-loop-im.c: Likewise.
7944 * tree-dump.c: Likewise.
7945 * tree-complex.c: Likewise.
7946 * cgraphbuild.c: Likewise.
7947 * tree-ssa-threadupdate.c: Likewise.
7948 * tree-ssa-loop-niter.c: Likewise.
7949 * tree-pretty-print.c: Likewise.
7950 * tracer.c: Likewise.
7951 * gengtype.c: Likewise.
7952 * tree-loop-distribution.c: Likewise.
7953 * tree-ssa-loop-unswitch.c: Likewise.
7954 * cgraph.c: Likewise.
7955 * cgraph.h: Likewise.
7956 * tree-ssa-loop-manip.c: Likewise.
7957 * value-prof.c: Likewise.
7958 * tree-ssa-loop-ch.c: Likewise.
7959 * tree-tailcall.c: Likewise.
7960 * value-prof.h: Likewise.
7961 * tree.c: Likewise.
7962 * tree.h: Likewise.
7963 * tree-pass.h: Likewise.
7964 * ipa-cp.c: Likewise.
7965 * tree-scalar-evolution.c: Likewise.
7966 * tree-scalar-evolution.h: Likewise.
7967 * target.h: Likewise.
7968 * lambda-mat.c: Likewise.
7969 * tree-phinodes.c: Likewise.
7970 * diagnostic.h: Likewise.
7971 * builtins.c: Likewise.
7972 * tree-ssa-alias-warnings.c: Likewise.
7973 * cfghooks.c: Likewise.
7974 * fold-const.c: Likewise.
7975 * cfghooks.h: Likewise.
7976 * omp-low.c: Likewise.
7977 * tree-ssa-dse.c: Likewise.
7978 * ipa-reference.c: Likewise.
7979 * tree-ssa-uncprop.c: Likewise.
7980 * toplev.c: Likewise.
7981 * tree-gimple.c: Likewise.
7982 * tree-gimple.h: Likewise.
7983 * tree-chrec.c: Likewise.
7984 * tree-chrec.h: Likewise.
7985 * tree-ssa-sccvn.c: Likewise.
7986 * tree-ssa-sccvn.h: Likewise.
7987 * cgraphunit.c: Likewise.
7988 * tree-ssa-copyrename.c: Likewise.
7989 * tree-ssa-ccp.c: Likewise.
7990 * tree-ssa-loop-ivopts.c: Likewise.
7991 * tree-nomudflap.c: Likewise.
7992 * tree-call-cdce.c: Likewise.
7993 * ipa-pure-const.c: Likewise.
7994 * c-format.c: Likewise.
7995 * tree-stdarg.c: Likewise.
7996 * tree-ssa-math-opts.c: Likewise.
7997 * tree-ssa-dom.c: Likewise.
7998 * tree-nrv.c: Likewise.
7999 * tree-ssa-propagate.c: Likewise.
8000 * ipa-utils.c: Likewise.
8001 * tree-ssa-propagate.h: Likewise.
8002 * tree-ssa-alias.c: Likewise.
8003 * gimple-low.c: Likewise.
8004 * tree-ssa-sink.c: Likewise.
8005 * ipa-inline.c: Likewise.
8006 * c-semantics.c: Likewise.
8007 * dwarf2out.c: Likewise.
8008 * expr.c: Likewise.
8009 * tree-ssa-loop-ivcanon.c: Likewise.
8010 * predict.c: Likewise.
8011 * tree-ssa-loop.c: Likewise.
8012 * tree-parloops.c: Likewise.
8013 * tree-ssa-address.c: Likewise.
8014 * tree-ssa-ifcombine.c: Likewise.
8015 * matrix-reorg.c: Likewise.
8016 * c-decl.c: Likewise.
8017 * tree-eh.c: Likewise.
8018 * c-pretty-print.c: Likewise.
8019 * lambda-trans.c: Likewise.
8020 * function.c: Likewise.
8021 * langhooks.c: Likewise.
8022 * ebitmap.h: Likewise.
8023 * tree-vectorizer.c: Likewise.
8024 * function.h: Likewise.
8025 * langhooks.h: Likewise.
8026 * tree-vectorizer.h: Likewise.
8027 * ipa-type-escape.c: Likewise.
8028 * ipa-type-escape.h: Likewise.
8029 * domwalk.c: Likewise.
8030 * tree-if-conv.c: Likewise.
8031 * profile.c: Likewise.
8032 * domwalk.h: Likewise.
8033 * tree-data-ref.c: Likewise.
8034 * tree-data-ref.h: Likewise.
8035 * tree-flow-inline.h: Likewise.
8036 * tree-affine.c: Likewise.
8037 * tree-vect-analyze.c: Likewise.
8038 * c-typeck.c: Likewise.
8039 * gimplify.c: Likewise.
8040 * coretypes.h: Likewise.
8041 * tree-ssa-phiopt.c: Likewise.
8042 * calls.c: Likewise.
8043 * tree-ssa-coalesce.c: Likewise.
8044 * tree.def: Likewise.
8045 * tree-dfa.c: Likewise.
8046 * except.c: Likewise.
8047 * except.h: Likewise.
8048 * cfgexpand.c: Likewise.
8049 * tree-cfgcleanup.c: Likewise.
8050 * tree-ssa-pre.c: Likewise.
8051 * tree-ssa-live.c: Likewise.
8052 * tree-sra.c: Likewise.
8053 * tree-ssa-live.h: Likewise.
8054 * tree-predcom.c: Likewise.
8055 * lambda.h: Likewise.
8056 * tree-mudflap.c: Likewise.
8057 * ipa-prop.c: Likewise.
8058 * print-tree.c: Likewise.
8059 * tree-ssa-copy.c: Likewise.
8060 * ipa-prop.h: Likewise.
8061 * tree-ssa-forwprop.c: Likewise.
8062 * ggc-page.c: Likewise.
8063 * c-omp.c: Likewise.
8064 * tree-ssa-dce.c: Likewise.
8065 * tree-vect-patterns.c: Likewise.
8066 * tree-ssa-ter.c: Likewise.
8067 * tree-nested.c: Likewise.
8068 * tree-ssa.c: Likewise.
8069 * lambda-code.c: Likewise.
8070 * tree-ssa-loop-prefetch.c: Likewise.
8071 * tree-inline.c: Likewise.
8072 * tree-inline.h: Likewise.
8073 * tree-iterator.c: Likewise.
8074 * tree-optimize.c: Likewise.
8075 * tree-ssa-phiprop.c: Likewise.
8076 * tree-vect-transform.c: Likewise.
8077 * tree-object-size.c: Likewise.
8078 * tree-outof-ssa.c: Likewise.
8079 * cfgloop.c: Likewise.
8080 * system.h: Likewise.
8081 * tree-profile.c: Likewise.
8082 * cfgloop.h: Likewise.
8083 * c-gimplify.c: Likewise.
8084 * c-common.c: Likewise.
8085 * tree-vect-generic.c: Likewise.
8086 * tree-flow.h: Likewise.
8087 * c-common.h: Likewise.
8088 * basic-block.h: Likewise.
8089 * tree-ssa-structalias.c: Likewise.
8090 * tree-switch-conversion.c: Likewise.
8091 * tree-ssa-structalias.h: Likewise.
8092 * tree-cfg.c: Likewise.
8093 * passes.c: Likewise.
8094 * ipa-struct-reorg.c: Likewise.
8095 * ipa-struct-reorg.h: Likewise.
8096 * tree-ssa-reassoc.c: Likewise.
8097 * cfgrtl.c: Likewise.
8098 * varpool.c: Likewise.
8099 * stmt.c: Likewise.
8100 * tree-ssanames.c: Likewise.
8101 * tree-ssa-threadedge.c: Likewise.
8102 * langhooks-def.h: Likewise.
8103 * tree-ssa-operands.c: Likewise.
8104 * config/alpha/alpha.c: Likewise.
8105 * config/frv/frv.c: Likewise.
8106 * config/s390/s390.c: Likewise.
8107 * config/m32c/m32c.c: Likewise.
8108 * config/m32c/m32c-protos.h: Likewise.
8109 * config/spu/spu.c: Likewise.
8110 * config/sparc/sparc.c: Likewise.
8111 * config/i386/i386.c: Likewise.
8112 * config/sh/sh.c: Likewise.
8113 * config/xtensa/xtensa.c: Likewise.
8114 * config/stormy16/stormy16.c: Likewise.
8115 * config/ia64/ia64.c: Likewise.
8116 * config/rs6000/rs6000.c: Likewise.
8117 * config/pa/pa.c: Likewise.
8118 * config/mips/mips.c: Likewise.
8119
8120 2008-07-28 Simon Baldwin <simonb@google.com>
8121
8122 * c-pragma.c (handle_pragma_message): New function.
8123 (init_pragma): Register handle_pragma_message.
8124 * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
8125 documentation.
8126
8127 2008-07-27 Victor Kaplansky <victork@il.ibm.com>
8128
8129 PR tree-optimization/35252
8130 * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
8131 REALPART_EXPR to be considered as same load operation.
8132
8133 2008-07-27 Eric Botcazou <ebotcazou@adacore.com>
8134
8135 PR tree-optimization/36830
8136 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
8137 (expressions_equal_p): Return false if only one operand is null.
8138
8139 2008-07-26 Gerald Pfeifer <gerald@pfeifer.com>
8140
8141 * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
8142 version requirements.
8143
8144 2008-07-26 Olivier Hainque <hainque@adacore.com>
8145
8146 * collect2.c (symkind): New enum. Symbol kinds we care about.
8147 (is_ctor_dtor): Return symkind instead of int. Adjust prototype,
8148 code and head comment accordingly.
8149 (scan_prog_file): Use symkind names instead of bare integers.
8150
8151 2008-07-25 Jan Hubicka <jh@suse.cz>
8152
8153 * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
8154 DECL_INLINE.
8155 * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
8156 (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
8157 * dojump.c (clear_pending_stack_adjust): Likewise.
8158 * print-tree.c (print_node): Ignore DECL_INLINE.
8159 * tree-inline.c (inlinable_function_p): Likewise.
8160
8161 2008-07-25 Michael Meissner <gnu@the-meissners.org>
8162
8163 * doc/extend.texi (hot attribute): Document that the hot attribute
8164 turns on -O3 for some ports.
8165 (cold attribute): Document that the cold attribute turns on -Os
8166 for some ports
8167
8168 * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
8169 reflect function specific option support.
8170
8171 * target.h (struct target_option_hooks): Add fields to say whether
8172 the cold attribute implies -Os and the hot attribute implies -O3.
8173
8174 * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
8175 By default, do not turn on -Os for cold functions.
8176 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
8177 not turn on -O3 for hot functions.
8178
8179 * c-common.c (handle_hot_attribute): Use target hook to determine
8180 if hot functions should enable -O3.
8181 (handle_cold_attribute): Use target hook to determine if cold
8182 functions should enable -Os.
8183
8184 * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
8185 (override_options): Move disable scheduling to
8186 optimization_options.
8187 (optimization_options): Disable scheduling here, not
8188 override_options.
8189 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
8190 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
8191
8192 * config/ia64/ia64.c (ia64_override_options): Move setting
8193 scheduling flags to ia64_optimization_options.
8194 (ia64_optimization_options): Disable scheduling options here, and
8195 not in ia64_override_options.
8196 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
8197 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
8198
8199 2008-07-25 H.J. Lu <hongjiu.lu@intel.com>
8200
8201 PR target/36936
8202 * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
8203
8204 2008-07-25 Martin Jambor <mjambor@suse.cz>
8205
8206 PR tree-optimization/36926
8207 * ipa-prop.c (ipa_analyze_call_uses): Call
8208 ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
8209
8210 2008-07-25 Joseph Myers <joseph@codesourcery.com>
8211
8212 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
8213 movv2si_internal): Add mem = reg alternative.
8214
8215 2008-07-25 Andreas Tobler <a.tobler@schweiz.org>
8216
8217 PR bootstrap/36918
8218 * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
8219 DEFAULT_PCC_STRUCT_RETURN to 127.
8220
8221 2008-07-24 Jan Hubicka <jh@suse.cz>
8222
8223 * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
8224 (build_cgraph_edges): Likewise.
8225 * cgraph.c (cgraph_node): Do not update assembler hash.
8226 (cgraph_remove_node): Drop non-unit-at-a-time code.
8227 * tree-pass.h (pass_O0_always_inline): Remove.
8228 * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
8229 * toplev.c (process_options): Flag unit-at-a-time does not imply
8230 no section anchors.
8231 * cgraphunit.c: Update comments.
8232 (decide_is_function_needed): Drop non-unit-at-a-time mode.
8233 (cgraph_assemble_pending_functions): Remove.
8234 (cgraph_reset_node): Drop non-unit-at-a-time code.
8235 (cgraph_finalize_function): Likewise.
8236 (cgraph_analyze_function): Likewise.
8237 (cgraph_finalize_compilation_unit): Likewise.
8238 (cgraph_expand_function): Likewise.
8239 (cgraph_optimize): Likesise.
8240 (save_inline_function_body): Likewise.
8241 * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
8242 * tree-ssa-alias.c (maybe_be_aliased): Likewise.
8243 * ipa-inline.c: Update comments.
8244 (enum inlining_mode): remove INLINE_SPEED.
8245 (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
8246 (cgraph_mark_inline_edge): Likewise.
8247 (try_inline): Likewise.
8248 (cgraph_decide_inlining_incrementally): Likewise.
8249 (cgraph_gate_inlining): Remove.
8250 (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
8251 (cgraph_gate_early_inlining): Likewise.
8252 (gate_inline_passes): Remove.
8253 (pass_inline_parameters, pass_ipa_inline): Remove gates.
8254 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
8255 pass_O0_always_inline): Remove.
8256 * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
8257 * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
8258 * opts.c (no_unit_at_a_time_default): Remove.
8259 (decode_options): Remove flag_unit_at_a_time reset and warning.
8260 * opts.h (no_unit_at_a_time_default): Remove.
8261 * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
8262 early in GNU dialect.
8263 (merge_decls): Update comment; drop unit-at-a-time check.
8264 (finish_decl): Likewise.
8265 (grok_declaration): Remove flag_inline_trees code.
8266 (finish_functions): Return on function returning non-void on all
8267 statics.
8268 * ipa-tye-escape.c (gate_type_escape_vars): Remove.
8269 * cfgexpand.c (expand_one_static_var): Remove.
8270 (expand_one_var): Remove expand_one_static_var call.
8271 (expand_used_vars_for_block): Remove flag_unit_a_time check.
8272 * c-opts.c (c_common_post_options): Remove flag_inline_trees code
8273 and flag_unit_at_a-time compatibility checks.
8274 * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
8275 * tree-inline.c (flag_inline_trees): Remove.
8276 (inlinable_function_p): Don't check it.
8277 (expand_call_inline): Remove non-unit-at-a-time code.
8278 * tree-inline.h (flag_inline_trees): Remove.
8279 * tree-optimize.c (execute_early_local_optimizations): Remove
8280 unit-at-a-time checks.
8281 (tree_rest_of_compilation): Likewise.
8282 * combine.c (setup_incoming_promotions): Likewise.
8283 * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
8284 * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
8285 * passes.c (pass_inline_parameters): Update comments; remove
8286 O0_alwaysinline pass.
8287 (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
8288 (execute_one_pass): Likewise.
8289 * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
8290 (ix86_function_sseregparm): Likewise.
8291 * arm.c (arm_function_in_section_p): Likewise.
8292 * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
8293 * varpool.c: Update comments.
8294 (decide_is_variable_needed): Remove unit-at-a-time checks.
8295 (varpool_finalize_decl): Likewise.
8296
8297 2008-07-24 Kaz Kojima <kkojima@gcc.gnu.org>
8298
8299 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
8300 to 2 instead of -1.
8301 (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
8302
8303 2008-07-24 Kai Tietz <kai.tietz@onevision.com>
8304
8305 * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
8306 imp symbol extension.
8307
8308 2008-07-23 Ian Lance Taylor <iant@google.com>
8309
8310 * tree-vrp.c (infer_value_range): Ignore asm statements when
8311 looking for memory accesses for -fdelete-null-pointer-checks.
8312
8313 2008-07-24 Ben Elliston <bje@au.ibm.com>
8314
8315 * config/spu/spu-c.c (__vector_keyword): New variable.
8316 (vector_keyword): Likewise.
8317 (spu_categorize_keyword): New function.
8318 (spu_macro_to_expand): Likewise.
8319 (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
8320 compiling an ISO C dialect.
8321
8322 2008-07-24 Ben Elliston <bje@au.ibm.com>
8323
8324 * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
8325 conventional usage.
8326
8327 2008-07-23 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
8328
8329 * configure: Regenerate.
8330 * configure.ac: Require texinfo 4.7.
8331 * doc/install.texi: Document texinfo 4.7 requirement.
8332
8333 2008-07-23 Martin Jambor <mjambor@suse.cz>
8334
8335 * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
8336 rather than for DECL_SAVED_TREE.
8337 * ipa-prop.c: Include diagnostic.h.
8338 (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
8339 thoroughly.
8340 (ipa_detect_param_modifications): Function rewritten from scratch.
8341 (ipa_compute_jump_functions): Changed accesses to modification flags.
8342 (ipa_free_node_params_substructures): Update flags destruction.
8343 (ipa_node_duplication_hook): Update flags duplication.
8344 (ipa_print_all_params_modified): Updated flag access.
8345 * ipa-prop.h (struct ipa_param_flags): New structure.
8346 (struct ipa_node_params): New field modification_analysis_done,
8347 modified_flags changed into param_flags.
8348 (ipa_is_ith_param_modified): Changed to use new flags.
8349 * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
8350
8351 * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
8352 ipa-cp.c and split into two functions.
8353 (ipa_print_node_jump_functions): New function.
8354 (compute_scalar_jump_functions): New function.
8355 (type_like_member_ptr_p): New function.
8356 (compute_pass_through_member_ptrs): New function.
8357 (fill_member_ptr_cst_jump_function): New function.
8358 (determine_cst_member_ptr): New function.
8359 (compute_cst_member_ptr_arguments): New function.
8360 (ipa_compute_jump_functions): Complete rewrite.
8361 * ipa-prop.h (enum jump_func_type): Make explicit that we depend
8362 on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
8363 (struct ipa_member_ptr_cst): New structure.
8364 (union jump_func_value): New field member_cst.
8365 * ipa-cp.c (ipcp_lat_is_insertable): New function.
8366 (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
8367 jump function types.
8368 (ipcp_print_all_lattices): Slight fprintf rearrangement.
8369 (ipcp_print_all_structures): Call ipa_print_all_jump_functions
8370 instead of ipcp_print_all_jump_functions.
8371 (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
8372 only for replacable scalars.
8373
8374 * doc/invoke.texi (Optimize options): Add description of
8375 -findirect-inlining.
8376 * common.opt (flag_indirect_inlining): New flag.
8377 * opts.c (decode_options): Set flag_indirect_inlining when
8378 optimize >= 3.
8379
8380 * ipa-inline.c: Include ipa-prop.h.
8381 (inline_indirect_intraprocedural_analysis): New function.
8382 (inline_generate_summary): Allocate parameter and argument info
8383 structures, call inline_indirect_intraprocedural_analysis on each
8384 node when doing indirect inlining and deallocate indirect inlining
8385 data structures in the end.
8386 * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
8387 (free_all_ipa_structures_after_iinln): New function.
8388 (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
8389 done.
8390 * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
8391
8392 * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
8393 (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
8394 of computing the frequency separately.
8395 (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
8396 of computing the frequency separately.
8397 * ipa-cp.c (ipcp_print_all_structures): Replace a call to
8398 ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
8399 * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
8400 (ipa_get_stmt_member_ptr_load_param): New function.
8401 (ipa_is_ssa_with_stmt_def): New function.
8402 (ipa_note_param_call): New function.
8403 (ipa_analyze_call_uses): New function.
8404 (ipa_analyze_stmt_uses): New function.
8405 (ipa_analyze_params_uses): New function.
8406 (ipa_free_node_params_substructures): Also free the param_calls linked
8407 list.
8408 (ipa_node_duplication_hook): Also duplicate the param_calls
8409 linked list.
8410 (ipa_print_node_param_flags): New function.
8411 (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
8412 (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
8413 * ipa-prop.h (struct ipa_param_flags): New field called.
8414 (struct ipa_param_call_note): New structure.
8415 (struct ipa_node_params): New fields param_calls and
8416 uses_analysis_done.
8417 (ipa_is_ith_param_called): New function.
8418 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
8419 ipa_analyze_params_uses and dump parameter flags.
8420
8421 * ipa-inline.c (cgraph_decide_recursive_inlining): Call
8422 ipa_propagate_indirect_call_infos if performing indirect inlining,
8423 pass a new parameter new_edges to it.
8424 (add_new_edges_to_heap): New fucntion.
8425 (cgraph_decide_inlining_of_small_functions): New vector
8426 new_indirect_edges for newly found indirect edges , call
8427 ipa_propagate_indirect_call_infos after inlining.
8428 (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
8429 inlining if performing indirect inlining. Call
8430 free_all_ipa_structures_after_iinln when doing so too.
8431 (inline_generate_summary): Do not call
8432 free_all_ipa_structures_after_iinln here.
8433 * ipa-prop.c (update_jump_functions_after_inlining): New function.
8434 (print_edge_addition_message): New function.
8435 (update_call_notes_after_inlining): New function.
8436 (propagate_info_to_inlined_callees): New function.
8437 (ipa_propagate_indirect_call_infos): New function.
8438 * ipa-prop.h: Include cgraph.h
8439 (struct ipa_param_call_note): Fields reordered, new field processed.
8440 * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
8441 flag indirect_call.
8442 * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
8443 rediscovered call statements.
8444 * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
8445 (dump_cgraph_node): Dump also the indirect_call flag.
8446 (cgraph_clone_edge): Copy also the indirect_call flag.
8447 * tree-inline.c (copy_bb): Do not check for fndecls from call
8448 expressions, check for edge availability when moving clones.
8449 (get_indirect_callee_fndecl): New function.
8450 (expand_call_inline): If callee declaration is not apprent from
8451 the statement, try calling get_indirect_callee_fndecl. Do not
8452 issue warnings or call sorry when not inlinings an indirect edge.
8453 * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
8454
8455 * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
8456 bit more frandly to matching.
8457 * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
8458 * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
8459 * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
8460
8461 2008-07-23 Michael Meissner <gnu@the-meissners.org>
8462
8463 PR 36907
8464 * opth-gen.awk: Suppress function specific features when building
8465 target libraries.
8466 * optc-gen.awk: Ditto.
8467
8468 2008-07-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8469
8470 PR 35058
8471 * diagnostic.c (pedwarn): Add opt parameter.
8472 (pedwarn0): New.
8473 * c-tree.h (pedwarn_init): Add opt parameter.
8474 (pedwarn_c90): Likewise.
8475 (pedwarn_c99): Likewise.
8476 * c-errors.c (pedwarn_c99): Likewise.
8477 (pedwarn_c90): Likewise.
8478 * toplev.h (pedwarn): Update declaration.
8479 (pedwarn0): Declare.
8480 * c-lex.c: All calls to pedwarn changed.
8481 * builtins.c: All calls to pedwarn changed.
8482 * toplev.c: All calls to pedwarn changed.
8483 * c-decl.c: All calls to pedwarn changed.
8484 * c-typeck.c: All calls to pedwarn changed.
8485 * c-common.c: All calls to pedwarn changed.
8486 * c-parser.c: All calls to pedwarn changed.
8487
8488 2008-07-23 Michael Meissner <gnu@the-meissners.org>
8489 Karthik Kumar <karthikkumar@gmail.com>
8490
8491 * attribs.c (file scope): Include c-common.h.
8492 (decl_attributes): Add support for #pragma GCC optimize and
8493 #pragma GCC option.
8494
8495 * targhooks.c (default_can_inline_p): New function that is the
8496 default for the TARGET_CAN_INLINE_P target hook.
8497
8498 * targhooks.h (default_can_inline_p): Add declaration.
8499
8500 * tree.c (cl_optimization_node): New static tree for building
8501 OPTIMIZATION_NODE tree.
8502 (cl_target_option_node): New static tree for building
8503 TARGET_OPTION_NODE tree.
8504 (cl_option_hash_table): New hash table for hashing
8505 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
8506 (cl_option_hash_hash): New function to provide the hash value for
8507 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
8508 (cl_option_hash_eq): New function to provide an equality test for
8509 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
8510 (tree_code_size): Add support for OPTIMIZATION_NODE and
8511 TARGET_OPTION_NODE trees.
8512 (tree_code_structure): Add support for OPTIMIZATION_NODE and
8513 TARGET_OPTION_NODE trees.
8514 (build_optimization_node): Build a tree that has all of the
8515 current optimization options.
8516 (build_target_option_node): Build a tree that has the target
8517 options that might be changed on a per function basis.
8518
8519 * tree.h (file scope): Include options.h.
8520 (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
8521 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
8522 (TREE_OPTIMIZATION): Ditto.
8523 (TREE_TARGET_SPECIFIC): Ditto.
8524 (struct tree_function_decl): Add fields for remembering the
8525 current optimization options and target specific options.
8526 (struct tree_optimization_option): New tree variant that remembers
8527 the optimization options.
8528 (struct tree_target_option): New tree variant that remembers the
8529 target specific flags that might change for compiling a particular
8530 function.
8531 (union tree_node): Include tree_optimization_option and
8532 tree_target_option fields.
8533 (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
8534 TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
8535 TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
8536 TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
8537 TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
8538 optimization and target options.
8539 (optimization_default_node): New macro to refer to global_trees
8540 field.
8541 (optimization_current_node): Ditto.
8542 (optimization_cold_node): Ditto.
8543 (optimization_hot_node): Ditto.
8544 (target_option_default_node): Ditto.
8545 (target_option_current_node): Ditto.
8546 (current_option_pragma): Ditto.
8547 (current_optimize_pragma): Ditto.
8548
8549 * target.h (struct gcc_target): Add valid_option_attribute_p,
8550 target_option_save, target_option_restore, target_option_print,
8551 target_option_pragma_parse, and can_inline_p hooks.
8552
8553 * toplev.h (parse_optimize_options): Add declaration.
8554 (fast_math_flags_struct_set_p): Ditto.
8555
8556 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
8557 adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
8558 optimize is used.
8559
8560 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
8561 tree_can_inline_p hook to see if one function can inline another.
8562 (cgraph_decide_inlining): Ditto.
8563 (cgraph_decide_inlining_incrementally): Ditto.
8564
8565 * opts.c (decode_options): Add support for running multiple times
8566 to allow functions with different target or optimization options
8567 than was specified on the command line.
8568 (fast_math_flags_struct_set_p): New function that is similar to
8569 fast_math_flags_set_p, except it uses the values in the
8570 cl_optimization structure instead of global variables.
8571
8572 * optc-gen.awk: Add support for TargetSave to allow a back end to
8573 declare new fields that need to be saved when using function
8574 specific options. Include flags.h and target.h in the options.c
8575 source. Add support for Save to indicate which options can be set
8576 for individual functions. Generate cl_optimize_save,
8577 cl_optimize_restore, cl_optimize_print, cl_target_option_save,
8578 cl_target_option_restore, cl_target_option_print functions to
8579 allow functions to use different optimization or target options.
8580
8581 * opt-functions.awk (var_type_struct): Return the type used for
8582 storing the field in a structure.
8583
8584 * opth-gen.awk: Add support for TargetSave to allow a back end to
8585 declare new fields that need to be saved when using function
8586 specific options. Add support for Save to indicate which options
8587 can be set for individual functions. Only generate one extern for
8588 Mask fields. Generate cl_optimization and cl_target_option
8589 structures to remember optimization and target options.
8590
8591 * treestruct.def (TS_OPTIMIZATION): Add support for garbage
8592 collecting new tree nodes.
8593 (TS_TARGET_OPTION): Ditto.
8594
8595 * c-decl.c (merge_decls): Merge function specific target and
8596 optimization options.
8597
8598 * function.c (invoke_set_current_function_hook): If the function
8599 uses different optimization options, change the global variables
8600 to reflect this.
8601
8602 * coretypes.h (struct cl_optimization): Add forward reference.
8603 (struct cl_target_option): Ditto.
8604
8605 * c-pragma.c (option_stack): New static vector to remember the
8606 current #pragma GCC option stack.
8607 (handle_pragma_option): New function to support #pragma GCC option
8608 to change target options.
8609 (optimize_stack): New static vector to remember the current
8610 #pragma GCC optimize stack.
8611 (handle_pragma_optimize): New function to support #pragma GCC
8612 optimize to change optimization options.
8613 (init_pragma): Add support for #pragma GCC optimize and #pragma
8614 GCC option.
8615
8616 * tree.def (OPTIMIZATION_NODE): New tree code for remembering
8617 optimization options.
8618 (TARGET_OPTION_NODE): New tree code for remembering certain target
8619 options.
8620
8621 * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
8622 TARGET_OPTION_NODE trees.
8623
8624 * common.opt (-O): Add Optimization flag.
8625 (-Os): Ditto.
8626 (-fmath-errno): Ditto.
8627 (-falign-functions): Add UInteger flag to make sure flag gets full
8628 int in cl_optimization structure.
8629 (-falign-jumps): Ditto.
8630 (-falign-labels): Ditto.
8631 (-falign-loops): Ditto.
8632 (-fsched-stalled-insns): Ditto.
8633 (-fsched-stalled-insns-dep): Ditto.
8634
8635 * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
8636 definition.
8637 (TARGET_OPTION_SAVE): Ditto.
8638 (TARGET_OPTION_RESTORE): Ditto.
8639 (TARGET_OPTION_PRINT): Ditto.
8640 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
8641 (TARGET_CAN_INLINE_P): Ditto.
8642 (TARGET_INITIALIZER): Add new hooks.
8643
8644 * tree-inline.c (tree_can_inline_p): New function to determine
8645 whether one function can inline another. Check if the functions
8646 use compatible optimization options, and also call the backend
8647 can_inline_p hook.
8648
8649 * tree-inline.h (tree_can_inline_p): Add declaration.
8650
8651 * c-common.c (c_common_attribute): Add support for option and
8652 optimize attributes.
8653 (handle_option_attribute): Add support for the option attribute to
8654 allow the user to specify different target options for compiling a
8655 specific function.
8656 (handle_optimize_attribute): Add support for the optimize
8657 attribute to allow the user to specify different optimization
8658 options for compiling a specific function.
8659 (handle_hot_attribute): Turn on -O3 optimization for this one
8660 function if it isn't the default optimization level.
8661 (handle_cold_attribute): Turn on -Os optimization for this one
8662 function if it insn't the default optimization.
8663 (const_char_p): New const char * typedef.
8664 (optimize_args): New static vector to remember the optimization
8665 arguments.
8666 (parse_optimize_options): New function to set up the optimization
8667 arguments from either the optimize attribute or #pragma GCC optimize.
8668
8669 * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
8670 (builtin_define_std): Ditto.
8671
8672 * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
8673 Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
8674 (x86_64-*-*): Ditto.
8675
8676 * Makefile.in (TREE_H): Add options.h.
8677 (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
8678
8679 * doc/extend.texi (option attribute): Document new attribute.
8680 (optimize attribute): Ditto.
8681 (hot attribute): Document hot attribute sets -O3.
8682 (cold attribute): Document cold attribute sets -Os.
8683 (#pragma GCC option): Document new pragma.
8684 (#pragma GCC optimize): Ditto.
8685
8686 * doc/options.texi (TargetSave): Document TargetSave syntax.
8687 (UInteger): Document UInteger must be used for certain flags.
8688 (Save): Document Save option to create target specific options
8689 that can be saved/restored on a function specific context.
8690
8691 * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
8692 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
8693
8694 * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
8695 (TARGET_OPTION_SAVE): Ditto.
8696 (TARGET_OPTION_RESTORE): Ditto.
8697 (TARGET_OPTION_PRINT): Ditto.
8698 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
8699 (TARGET_CAN_INLINE_P): Ditto.
8700
8701 * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
8702 -mfpmath=sse,387.
8703 (-mfpmath=both): Ditto.
8704
8705 2008-07-23 Michael Meissner <gnu@the-meissners.org>
8706 Karthik Kumar <karthikkumar@gmail.com>
8707
8708 * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
8709 (TARGET_POPCNT): Ditto.
8710 (TARGET_SAHF): Ditto.
8711 (TARGET_AES): Ditto.
8712 (TARGET_PCLMUL): Ditto.
8713 (TARGET_CMPXCHG16B): Ditto.
8714 (TARGET_RECIP): Move switch into target_flags.
8715 (TARGET_FUSED_MADD): Ditto.
8716 (ix86_arch_features): Make an unsigned char type.
8717 (ix86_tune_features): Ditto.
8718 (OVERRIDE_OPTIONS): Add bool argument to override_options call.
8719 (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
8720 (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
8721
8722 * config/i386/i386.opt (arch): New TargetSave field to define
8723 fields that need to be saved for function specific option support.
8724 (tune): Ditto.
8725 (fpmath): Ditto.
8726 (branch_cost): Ditto.
8727 (ix86_isa_flags_explicit): Ditto.
8728 (tune_defaulted): Ditto.
8729 (arch_specified): Ditto.
8730 (-m128-long-double): Add Save flag to save option for target
8731 specific option support.
8732 (-m80387): Ditto.
8733 (-maccumulate-outgoing-args): Ditto.
8734 (-malign-double): Ditto.
8735 (-malign-stringops): Ditto.
8736 (-mfancy-math-387): Ditto.
8737 (-mhard-float): Ditto.
8738 (-mieee-fp): Ditto.
8739 (-minline-all-stringops): Ditto.
8740 (-minline-stringops-dynamically): Ditto.
8741 (-mms-bitfields): Ditto.
8742 (-mno-align-stringops): Ditto.
8743 (-mno-fancy-math-387): Ditto.
8744 (-mno-push-args): Ditto.
8745 (-mno-red-zone): Ditto.
8746 (-mpush-args): Ditto.
8747 (-mred-zone): Ditto.
8748 (-mrtd): Ditto.
8749 (-msseregparm): Ditto.
8750 (-mstack-arg-probe): Ditto.
8751 (-m32): Ditto.
8752 (-m64): Ditto.
8753 (-mmmx): Ditto.
8754 (-m3dnow): Ditto.
8755 (-m3dnowa): Ditto.
8756 (-msse): Ditto.
8757 (-msse2): Ditto.
8758 (-msse3): Ditto.
8759 (-msse4.1): Ditto.
8760 (-msse4.2): Ditto.
8761 (-msse4): Ditto.
8762 (-mno-sse4): Ditto.
8763 (-msse4a): Ditto.
8764 (-msse5): Ditto.
8765 (-mrecip): Move flag into target_flags.
8766 (-mcld): Ditto.
8767 (-mno-fused-madd): Ditto.
8768 (-mfused-madd): Ditto.
8769 (-mabm): Move flag into ix86_isa_flags.
8770 (-mcx16): Ditto.
8771 (-mpopcnt): Ditto.
8772 (-msahf): Ditto.
8773 (-maes): Ditto.
8774 (-mpclmul): Ditto.
8775
8776 * config/i386/i386-c.c: New file for #pragma support.
8777 (ix86_target_macros_internal): New function to #define or #undef
8778 target macros based when the user uses the #pragma GCC option to
8779 change target options.
8780 (ix86_pragma_option_parse): New function to add #pragma GCC option
8781 support.
8782 (ix86_target_macros): Move defining the target macros here from
8783 TARGET_CPU_CPP_BUILTINS in i386.h.
8784 (ix86_register_pragmas): Register the #pragma GCC option hook. If
8785 defined, initialize any subtarget #pragmas.
8786
8787 * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
8788 REGISTER_TARGET_PRAGMAS.
8789
8790 * config/i386/t-i386: New file for x86 dependencies.
8791 (i386.o): Make dependencies mirror the include files used.
8792 (i386-c.o): New file, add dependencies.
8793
8794 * config/i386/i386-protos.h (override_options): Add bool argument.
8795 (ix86_valid_option_attribute_tree): Add declaration.
8796 (ix86_target_macros): Ditto.
8797 (ix86_register_macros): Ditto.
8798
8799 * config/i386/i386.c (ix86_tune_features): Move initialization of
8800 the target masks to initial_ix86_tune_features to allow functions
8801 to have different target options. Make type unsigned char,
8802 instead of unsigned int.
8803 (initial_ix86_tune_features): New static vector to hold processor
8804 masks for the tune variables.
8805 (ix86_arch_features): Move initialization of the target masks to
8806 initial_ix86_arch_features to allow functions to have different
8807 target options. Make type unsigned char, instead of unsigned int.
8808 (initial_ix86_arch_features): New static vector to hold processor
8809 masks for the arch variables.
8810 (enum ix86_function_specific_strings): New enum to describe the
8811 string options used for attribute((option(...))).
8812 (ix86_target_string): New function to return a string that
8813 describes the target options.
8814 (ix86_debug_options): New function to print the current options in
8815 the debugger.
8816 (ix86_function_specific_save): New function hook to save the
8817 function specific global variables in the cl_target_option structure.
8818 (ix86_function_specific_restore): New function hook to restore the
8819 function specific variables from the cl_target_option structure to
8820 the global variables.
8821 (ix86_function_specific_print): New function hook to print the
8822 target specific options in the cl_target_option structure.
8823 (ix86_valid_option_attribute_p): New function hook to validate
8824 attribute((option(...))) arguments.
8825 (ix86_valid_option_attribute_tree): New function that is common
8826 code between attribute((option(...))) and #pragma GCC option
8827 support that parses the options and returns a tree holding the options.
8828 (ix86_valid_option_attribute_inner_p): New helper function for
8829 ix86_valid_option_attribute_tree.
8830 (ix86_can_inline_p): New function hook to decide if one function
8831 can inline another on a target specific basis.
8832 (ix86_set_current_function); New function hook to switch target
8833 options if the user used attribute((option(...))) or #pragma GCC
8834 option.
8835 (ix86_tune_defaulted): Move to static file scope from
8836 override_options.
8837 (ix86_arch_specified): Ditto.
8838 (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
8839 ix86_isa_flags.
8840 (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
8841 (OPTION_MASK_ISA_ABM_SET): Ditto.
8842 (OPTION_MASK_ISA_POPCNT_SET): Ditto.
8843 (OPTION_MASK_ISA_CX16_SET): Ditto.
8844 (OPTION_MASK_ISA_SAHF_SET): Ditto.
8845 (OPTION_MASK_ISA_AES_UNSET): Ditto.
8846 (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
8847 (OPTION_MASK_ISA_ABM_UNSET): Ditto.
8848 (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
8849 (OPTION_MASK_ISA_CX16_UNSET): Ditto.
8850 (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
8851 (struct ptt): Move to static file scope from override_options.
8852 (processor_target_table): Ditto.
8853 (cpu_names): Ditto.
8854 (ix86_handle_option): Add support for options that are now isa options.
8855 (override_options): Add support for declaring functions that
8856 support different target options than were specified on the
8857 command line. Move struct ptt, processor_target_table, cpu_names,
8858 ix86_tune_defaulted, ix86_arch_specified to static file scope.
8859 Add bool argument. Fix up error messages so the appropriate error
8860 is given for either command line or attribute.
8861 (ix86_previous_fndecl): New static to remember previous function
8862 declaration to see if we need to change target options.
8863 (ix86_builtins_isa): New array to record the ISA of each builtin
8864 function.
8865 (def_builtin): Always create the builtin function, even if the
8866 current ISA doesn't support it.
8867 (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
8868 tests for those builtins.
8869 (ix86_init_builtins): Remove TARGET_MMX test for calling
8870 ix86_init_mmx_sse_builtins.
8871 (ix86_expand_builtin): If the current ISA doesn't support a given
8872 builtin, signal an error.
8873 (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
8874 (TARGET_SET_CURRENT_FUNCTION): Ditto.
8875 (TARGET_OPTION_SAVE): Ditto.
8876 (TARGET_OPTION_RESTORE): Ditto.
8877 (TARGET_OPTION_PRINT): Ditto.
8878 (TARGET_CAN_INLINE_P): Ditto.
8879
8880 2008-07-22 Rafael Ãvila de Espíndola <espindola@google.com>
8881
8882 * c-typeck.c (build_external_ref): Don't call assemble_external.
8883 * final.c (output_operand): Call assemble_external.
8884
8885 2008-07-21 DJ Delorie <dj@redhat.com>
8886
8887 * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
8888 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
8889
8890 2008-07-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8891
8892 * config/spu/spu.md ("div<mode>3"): Convert into expander, move
8893 original insn and splitter contents into ...
8894 ("*div<mode>3_fast"): ... this new pattern. Enable only if
8895 flag_unsafe_math_optimizations. Add dummy scratch register.
8896 ("*div<mode>3_adjusted"): New insn and splitter. Enable only if
8897 !flag_unsafe_math_optimizations. Returns number with next
8898 highest magnitude if this is still less or equal to the true
8899 quotient in magnitude.
8900
8901 2008-07-21 Rafael Ãvila de Espíndola <espindola@google.com>
8902
8903 * Makefile.in: Replace toplev.h with TOPLEV_H.
8904 * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
8905 * c-lex.c (fe_file_change): Don't set in_system_header.
8906 * c-parser.c (c_token): Remove in_system_header.
8907 (c_lex_one_token): Don't set in_system_header.
8908 (c_parser_set_source_position_from_token): Don't set in_system_header.
8909 * diagnostic.c (diagnostic_report_diagnostic): Use location from
8910 diagnostic_info.
8911 (warning_at): New.
8912 * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
8913 * flags.h (in_system_header): Remove.
8914 * function.c (saved_in_system_header): Remove.
8915 (push_cfun): Don't set in_system_header.
8916 (pop_cfun): Don't set in_system_header.
8917 (push_struct_function): Don't set in_system_header.
8918 * input.h (expanded_location): Add sysp.
8919 (in_system_header_at): New.
8920 (in_system_header): New.
8921 * toplev.c (in_system_header): Remove.
8922 * toplev.h: Include input.h
8923 (warning_at): New.
8924 * tree-cfg.c (execute_warn_function_return): Call warning_at.
8925 * tree-ssa.c (warn_uninit): Call warning_at.
8926 (warn_uninitialized_var): Update calls to warn_uninit.
8927 (warn_uninitialized_phi): Update calls to warn_uninit.
8928 * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
8929 (expand_location): Initialize xloc.sysp.
8930 * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
8931 (tree_decl_with_vis): Remove in_system_header_flag.
8932
8933 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
8934
8935 PR target/36822
8936 * recog.c (asm_operand_ok): Change the order of the extra
8937 memory constraint checks.
8938
8939 2008-07-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
8940
8941 PR tree-opt/36879
8942 * tree-switch-conversion.c (build_one_array): Call
8943 varpool_mark_needed_node and varpool_finalize_decl
8944 instead of assemble_variable.
8945
8946 2008-07-19 Jan Hubicka <jh@suse.cz>
8947
8948 * cgraph.c (cgraph_add_new_function): Do early local passes.
8949 * tree-nrv.c (gate_pass_return_slot): New gate.
8950 (pass_nrv): Add the gate.
8951 * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
8952 functions.
8953 (coalesce_ssa_name): Coalesce SSA names.
8954 * tree-ssa-live.c (remove_unused_locals): Be more conservative when
8955 not optimizing so unused user vars remains visible.
8956 * common.opt (flag_tree_ter): Always enable by default.
8957 * tree-ssa-ter.c: Include flags.h
8958 (is_replaceable_p): Check that locations match; when aliasing
8959 is missing be conservative about loads.
8960 * tree-optimize.c (gate_init_datastructures): Remove.
8961 (pass_init_datastructures): New.
8962 * passes.c: Reorder passes so we always go into SSA.
8963
8964 2008-07-19 Jan Hubicka <jh@suse.cz>
8965
8966 * doc/extend.texi (flatten attribute): Remove note about
8967 unit-at-a-time.
8968 * doc/invoke.texi (--combine): Likewise.
8969 (-finline-functions-called-once): Update levels when enabled.
8970 (-funit-at-a-time): Document new behaviour.
8971 (-ftoplevel-reorder): Document that it is enabled -O0 and imply
8972 -fno-section-anchors when disabled explicitly.
8973 (inline params): They are not ignored now.
8974 (precompiled headers): Remove unit-at-a-time as being incompatible.
8975 * opts.c (decode_options): Handle unit-at-a-time as alias;
8976 imply -fno-section-anchors when toplevel reorder is disabled
8977 explicitly.
8978 * common.opt (ftoplevel-reorder): Set default value to 2.
8979 (funit-at-a-time): Set default value to 1.
8980 * config/rs6000/rs6000.c (optimization_options): Set section anchors
8981 to 2.
8982
8983 2008-07-19 Jan Hubicka <jh@suse.cz>
8984
8985 * builtins.c (expand_builtin_int_roundingfn,
8986 expand_builtin_int_roundingfn_2): Do not take subtarget argument;
8987 it is not useful.
8988
8989 2008-07-19 Richard Guenther <rguenther@suse.de>
8990
8991 PR bootstrap/36864
8992 * tree-ssa-sccvn.h (get_constant_value_id): Declare.
8993 * tree-ssa-sccvn.c (get_constant_value_id): New function.
8994 * tree-ssa-pre.c (get_expr_value_id): For newly created
8995 constant value-ids make sure to add the expression to its
8996 expression-set.
8997
8998 2008-07-19 Jakub Jelinek <jakub@redhat.com>
8999
9000 PR middle-end/36877
9001 * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
9002 return value of the builtin is ignored.
9003
9004 2008-07-19 Olivier Hainque <hainque@adacore.com>
9005
9006 * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
9007 bits, a C conformant malloc implementation has to provide.
9008 * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
9009
9010 2008-07-19 Joseph Myers <joseph@codesourcery.com>
9011
9012 PR target/36780
9013 PR target/36827
9014 * reload.c (find_reloads_subreg_address): Only reload address if
9015 reloaded == 0, not for reloaded != 1.
9016
9017 Revert:
9018 2008-07-16 Joseph Myers <joseph@codesourcery.com>
9019 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
9020 (m32c_legitimate_address_p): Handle "++rii" addresses created by
9021 m32c_legitimize_reload_address.
9022
9023 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
9024 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
9025 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
9026
9027 2008-07-19 Olivier Hainque <hainque@adacore.com>
9028
9029 * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
9030 argument, saying whether nested array are to be collapsed
9031 into a single array type DIE with multiple subscripts.
9032 (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
9033 issues, centralize the nested array types collapsing control and
9034 disable the transformation for Ada.
9035
9036 2008-07-18 Uros Bizjak <ubizjak@gmail.com>
9037
9038 PR target/36786
9039 * config/i386/i386.md (x86_64_shift_adj_1): Rename from
9040 x86_64_shift_adj.
9041 (x86_64_shift_adj_2): New expander.
9042 (x86_64_shift_adj_3): Ditto.
9043 * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
9044 to split TImode operands.
9045 (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
9046 (ix86_split_lshr): Ditto.
9047
9048 2008-07-18 Kris Van Hees <kris.van.hees@oracle.com>
9049
9050 * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
9051 and __CHAR32_TYPE__.
9052 * c-typeck.c (digest_init): Support char16_t and char32_t.
9053 (set_nonincremental_init_from_string): Idem.
9054
9055 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
9056
9057 PR middle-end/36859
9058 * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
9059 PREFERRED_STACK_BOUNDARY.
9060 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
9061
9062 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
9063
9064 PR middle-end/36858
9065 * function.c (locate_and_pad_parm): Cap boundary earlier.
9066
9067 2008-07-17 Julian Brown <julian@codesourcery.com>
9068
9069 * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
9070 no-op for targets which don't use DLLs.
9071
9072 2008-07-17 Martin Jambor <mjambor@suse.cz>
9073
9074 * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
9075 that nodes are relevant by examining the node->analyzed flag.
9076 (ipcp_init_stage): Check which nodes are relevant, assert that the
9077 relevant ones are also required.
9078 (ipcp_propagate_stage): Check on the side arrays are properly
9079 allocated.
9080 (ipcp_print_all_jump_functions): Make sure not to touch any node
9081 that is not analyzed or an edge that does not have a corresponding
9082 entry in the on-the-side vectors.
9083 (ipcp_function_scale_print): Likewise.
9084 (ipcp_update_callgraph): Check that the node is relevant.
9085 (ipcp_insert_stage): Check that the node is relevant. Check there is
9086 an info for every node and edge.
9087 * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
9088 (ipa_print_all_tree_maps): Likewise and a new variable info.
9089 (ipa_print_all_params_modified): Likewise.
9090 * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
9091
9092 2008-07-17 Roman Zippel <zippel@linux-m68k.org>
9093
9094 PR target/25343
9095 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
9096
9097 2008-07-17 Paolo Bonzini <bonzini@gnu.org>
9098
9099 PR rtl-optimization/36753
9100 * fwprop.c (use_killed_between): Don't shortcut
9101 single-definition global registers.
9102
9103 2008-07-16 Jan Hubicka <jh@suse.cz>
9104
9105 * cgraph.h (varpool_empty_needed_queue): Declare.
9106 * cgraphunit.c (output_in_order): Mark all variables as needed;
9107 empty the queue.
9108 * varpool.c (varpool_assemble_node): Update debug queue.
9109 (varpool_assemble_pending_decls): Don't do it here.
9110 (varpool_empty_needed_queue): New function.
9111
9112 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9113
9114 * recog.c (peephole2_optimize): Fix formatting.
9115
9116 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9117
9118 * c-pch.c (get_ident): Avoid C++ keywords.
9119 * combine-stack-adj.c (single_set_for_csa): Likewise.
9120 * final.c (asm_insn_count, final_scan_insn, alter_subreg,
9121 output_asm_insn): Likewise.
9122 * reload.c (push_secondary_reload, find_reusable_reload,
9123 push_reload, combine_reloads, find_reloads,
9124 debug_reload_to_stream): Likewise.
9125 * reload.h (struct reload): Likewise.
9126 * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
9127 allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
9128 emit_output_reload_insns): Likewise.
9129 * targhooks.c (default_secondary_reload): Likewise.
9130 * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
9131
9132 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9133
9134 * recog.c (validate_change_1, validate_change,
9135 validate_unshare_change, validate_replace_rtx_1, struct
9136 funny_match, constrain_operands, peephole2_optimize): Avoid C++
9137 keywords.
9138 * reload.c (push_secondary_reload, secondary_reload_class,
9139 scratch_reload_class, find_valid_class, find_reusable_reload,
9140 push_reload, find_dummy_reload, find_reloads_address_1,
9141 find_reloads_address_part, find_equiv_reg): Likewise.
9142 * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
9143 choose_reload_regs): Likewise.
9144 * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
9145 Likewise.
9146 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
9147 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
9148 * sched-rgn.c (concat_INSN_LIST): Likewise.
9149 * stor-layout.c (mode_for_size, mode_for_size_tree,
9150 smallest_mode_for_size): Likewise.
9151
9152 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9153
9154 * cfg.c (dump_reg_info): Avoid C++ keywords.
9155 * dwarf2asm.c (dw2_force_const_mem,
9156 dw2_asm_output_encoded_addr_rtx): Likewise.
9157 * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
9158 * expmed.c (expand_shift): Likewise.
9159 * global.c (find_reg): Likewise.
9160 * graph.c (draw_edge): Likewise.
9161 * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
9162 * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
9163 widen_clz, widen_bswap, expand_parity, expand_unop,
9164 emit_cmp_and_jump_insn_1): Likewise.
9165 * postreload.c (reload_cse_simplify_operands): Likewise.
9166 * ra.h (add_neighbor): Likewise.
9167 * reg-stack.c (remove_regno_note, change_stack): Likewise.
9168 * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
9169 record_reg_classes, copy_cost, record_address_regs,
9170 invalid_mode_change_p): Likewise.
9171 * regrename.c (regrename_optimize, scan_rtx_reg,
9172 dump_def_use_chain, find_oldest_value_reg,
9173 replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
9174
9175 2008-07-16 David Edelsohn <edelsohn@gnu.org>
9176
9177 * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
9178 MASK_POWERPC64 for power4 in previous commit.
9179
9180 2008-07-16 Olivier Hainque <hainque@adacore.com>
9181
9182 * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
9183 instead of bare conversion to cast const-ness away.
9184
9185 2008-07-16 Anatoly Sokolov <aesok@post.ru>
9186
9187 * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
9188 XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
9189 * config/xtensa/xtensa.c (xtensa_function_value): New function.
9190 (TARGET_FUNCTION_VALUE): Define.
9191
9192 2008-07-16 David Edelsohn <edelsohn@gnu.org>
9193
9194 * config/rs6000/rs6000.c (processor_target_table): Add
9195 MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
9196
9197 2008-07-16 Joseph Myers <joseph@codesourcery.com>
9198
9199 PR target/36827
9200 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
9201 (m32c_legitimate_address_p): Handle "++rii" addresses created by
9202 m32c_legitimize_reload_address.
9203
9204 2007-07-16 Rafael Ãvila de Espíndola <espindola@google.com>
9205
9206 * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
9207 DECL_IN_SYSTEM_HEADER in sync.
9208
9209 2008-07-15 Daniel Berlin <dberlin@dberlin.org>
9210
9211 * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
9212 * tree-ssa-pre.c (pre_expr_eq): Ditto
9213 (get_constant_for_value_id): Take a type as an argument.
9214 (fully_constant_expression): Pass in type.
9215 (find_or_generate_expression): Short circuit constant case.
9216 (create_expression_by_pieces): Remove special casing of
9217 pointer_plus.
9218 (do_regular_insertion): Short circuit constant case.
9219 (do_partial_partial_insertion): Ditto.
9220
9221 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
9222
9223 PR target/36782
9224 * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
9225
9226 2008-07-15 Bob Wilson <bob.wilson@acm.org>
9227
9228 * config/xtensa/libgcc-xtensa.ver: New file.
9229 * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
9230
9231 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9232
9233 * df-problems.c (df_set_note): Avoid C++ keywords.
9234 * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
9235 * dse.c (record_store, remove_useless_values): Likewise.
9236 * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
9237 gen_reg_rtx_offset, operand_subword, change_address_1,
9238 change_address, adjust_address_1, offset_address,
9239 widen_memory_access, emit_copy_of_insn_after): Likewise.
9240 * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
9241 * fwprop.c (should_replace_address, propagate_rtx_1,
9242 propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
9243 Likewise.
9244 * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
9245 gcse_emit_move_after, update_ld_motion_stores): Likewise.
9246 * lcm.c (compute_insert_delete, pre_edge_lcm,
9247 compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
9248 * lower-subreg.c (resolve_reg_notes): Likewise.
9249 * mode-switching.c (optimize_mode_switching): Likewise.
9250
9251 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9252
9253 * bt-load.c (add_btr_def, migrate_btr_def,
9254 branch_target_load_optimize): Avoid C++ keywords.
9255 * caller-save.c (insert_restore, insert_save, insert_one_insn):
9256 Likewise.
9257 * combine.c (subst, simplify_set, make_extraction,
9258 make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
9259 * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
9260 fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
9261
9262 2008-07-15 Richard Guenther <rguenther@suse.de>
9263
9264 PR middle-end/36369
9265 * c-common.c (strict_aliasing_warning): Do not warn for
9266 TYPE_REF_CAN_ALIAS_ALL pointers.
9267 (c_common_get_alias_set): may_alias types are not special.
9268 * tree.c (build_pointer_type_for_mode): Look up the may_alias
9269 attribute and set can_ref_all accordingly.
9270 (build_reference_type_for_mode): Likewise.
9271 * doc/extend.texi (may_alias): Clarify.
9272
9273 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
9274
9275 PR target/36780
9276 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
9277 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
9278
9279 2008-07-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
9280
9281 PR target/31568
9282 * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
9283 gcc_assert, instead call output_operand_lossage.
9284
9285 2008-07-15 Kai Tietz <kai.tietz@onevision.com>
9286
9287 * builtins.c (std_canonical_va_list): Treat structure based
9288 va_list types.
9289
9290 2008-07-15 Ben Elliston <bje@au.ibm.com>
9291
9292 * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
9293
9294 2007-07-14 Rafael Ãvila de Espíndola <espindola@google.com>
9295
9296 * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
9297 is set.
9298
9299 2008-07-14 Jan Hubicka <jh@suse.cz>
9300
9301 * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
9302 * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
9303 fix predicates and constraints.
9304 * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
9305 * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
9306
9307 2008-07-14 Doug Kwan <dougkwan@google.com>
9308
9309 * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
9310 additional option file arm/eabi.opt.
9311 * config/arm/eabi.h (File): New configuration file for EABI targets.
9312 * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
9313 SUBSUBTARGET_EXTRA_SPECS.
9314 (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
9315 * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
9316 from STARTFILE_SPEC so that it can be referenced in an override.
9317 (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
9318 (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
9319 can be referenced in an override.
9320 (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
9321 * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
9322 so that it can be referenced in an override.
9323 (LINK_SPEC): Use BPABI_LINK_SPEC.
9324 * config/arm/eabi.opt (File): New.
9325
9326 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9327
9328 * Makefile.in (TARGET_DEF_H): Add targhooks.h.
9329 (FIXED_VALUE_H): New variable.
9330 (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
9331 input.h, fixed-value.h.
9332 (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
9333 (BASIC_BLOCK_H): Use $(BITMAP_H).
9334 (FUNCTION_H): Add varray.h.
9335 (IPA_REFERENCE_H): Use $(BITMAP_H).
9336 (CGRAPH_H): Add $(BASIC_BLOCK_H).
9337 (DF_H): Use $(BITMAP_H).
9338 (GGC_H): Add statistics.h.
9339 (INSN_ADDR_H): New.
9340 (INSN_ATTR_H): Use it.
9341 (SYSTEM_H): Add safe-ctype.h, filenames.h.
9342 (INPUT_H): New.
9343 (SYMTAB_H): Add $(OBSTACK_H).
9344 (CPP_INTERNAL_H): New.
9345 (TREE_DUMP_H): Add tree-pass.h.
9346 (TREE_FLOW_H): Use $(BITMAP_H)
9347 (PRETTY_PRINT_H): Use $(INPUT_H).
9348 (EBITMAP_H): Rename from typo-ed EBIMAP_H.
9349 (GSTAB_H): New.
9350 (BITMAP_H): New.
9351 (many object files): Fix lots of header dependencies throughout.
9352
9353 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9354
9355 * Makefile.in (write_entries_to_file, write_entries_to_file_split):
9356 New macros.
9357 (s-gtyp-input): Use them to write tmp-gi.list.
9358 (echo_to_gi.list): Remove.
9359
9360 2008-07-14 Richard Guenther <rguenther@suse.de>
9361
9362 * tree-ssa-sccvn.c (pre_info): Remove.
9363 (switch_to_PRE_table): Likewise.
9364 (free_scc_vn): Do not clear SSA_NAME_VALUE. Do not free pre_info.
9365 (set_hashtable_value_ids): Do not create value-ids for the
9366 optimistic tables.
9367 (run_scc_vn): Remove double test. Remove bogus special-case
9368 in value-number printing.
9369 * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
9370 * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
9371 SSA_NAME_VALUE.
9372 * tree-flow-inline.h (get_value_handle): Remove.
9373 * tree-flow.h (get_value_handle): Remove.
9374
9375 2008-07-14 Martin Jambor <mjambor@suse.cz>
9376
9377 * tree-switch-conversion.c (gen_inbound_check): Make sure the type
9378 in which we generate arithmetics is not a subrange.
9379
9380 2008-07-14 Martin Jambor <mjambor@suse.cz>
9381
9382 * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
9383
9384 2008-07-14 Richard Guenther <rguenther@suse.de>
9385
9386 * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
9387
9388 2008-07-14 Andreas Krebbel <krebbel1@de.ibm.com>
9389
9390 PR target/36745
9391 * config/s390/s390.c: (s390_secondary_reload): Add a secondary
9392 reload for symbol refs moved to r0 with -fPIC.
9393 (legitimize_pic_address): Use the target register as temporary
9394 reg if possible.
9395 (emit_symbolic_move): Adjust comment.
9396 * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
9397 New expanders.
9398
9399 2008-07-14 Ben Elliston <bje@au.ibm.com>
9400
9401 * c-common.h (C_CPP_HASHNODE): New macro.
9402 * coretypes.h (struct cpp_token): Forward declare.
9403 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
9404 the context-sensitive keyword method.
9405 * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
9406 __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
9407 expand_bool_pixel): New.
9408 (altivec_categorize_keyword): New function.
9409 (init_vector_keywords): New function.
9410 (rs6000_macro_to_expand): Likewise.
9411 (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
9412 compiling an ISO C dialect.
9413
9414 2008-07-13 Daniel Berlin <dberlin@dberlin.org>
9415
9416 * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
9417 (create_expression_by_pieces): Fix typo.
9418 (do_regular_insertion): Use debug counter here too.
9419
9420 2008-07-14 Hans-Peter Nilsson <hp@axis.com>
9421
9422 PR target/35492.
9423 * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
9424 CONST_OK_FOR_LETTER_P. All port-local users changed.
9425 (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
9426 implement Kp matching power-of-two.
9427 (CONSTRAINT_LEN): Define to match.
9428 * config/cris/cris.md: Replace all use of constraint K with Kc.
9429 ("*btst*): Use Kp for operand 0 of last alternative.
9430
9431 2008-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9432
9433 PR testsuite/36440
9434 * tree-call-cdce.c (check_target_format): Accept MIPS single, double
9435 and quad formats.
9436
9437 2008-07-13 Jan Hubicka <jh@suse.cz>
9438
9439 * tree.c (decl_assembler_name_equal): Expect assembler name of decl
9440 to be mangled too.
9441
9442 2008-07-13 Richard Guenther <rguenther@suse.de>
9443
9444 PR middle-end/36811
9445 * langhooks.c (lhd_print_error_function): Deal with recursive
9446 BLOCK trees.
9447
9448 2008-07-12 Jan Hubicka <jh@suse.cz>
9449
9450 * cgraph.c (assembler_name_hash): New static var.
9451 (hash_node_by_assembler_name, eq_assembler_name): New.
9452 (cgraph_node_for_asm): Use hashtable.
9453 (cgraph_remove_node): Maintain hashtable.
9454 (change_decl_assembler_name): Sanity check that names are not changing
9455 after aliasing was processed.
9456 * cgraph.h (varpoon_node): Add next GGC marker.
9457 * tree.c (decl_assembler_name_equal): Constify.
9458 (decl_assembler_name_hash): New.
9459 * tree.h (decl_assembler_name_equal): Constify.
9460 (decl_assembler_name_hash): Update.
9461
9462 2008-07-12 David Daney <ddaney@avtrex.com>
9463
9464 * config/mips/driver-native.c (host_detect_local_cpu): Handle
9465 sb1 and r5000 cpus.
9466
9467 2008-07-12 Richard Sandiford <rdsandiford@googlemail.com>
9468
9469 * doc/md.texi: Document the MIPS "v" constraint.
9470 * config/mips/mips.h (reg_class): Revert last change.
9471 (REG_CLASS_NAMES): Likewise.
9472 (REG_CLASS_CONTENTS): Likewise.
9473 * config/mips/mips.c (mips_regno_to_class): Likewise.
9474 * config/mips/constraints.md (v): Likewise, but add documentation.
9475 Add a comment to say that this constraint should not be used in
9476 gcc code.
9477
9478 2008-07-11 DJ Delorie <dj@redhat.com>
9479
9480 * config/h8300/h8300.md (length): Fix branch offset limit.
9481
9482 2008-07-11 Anatoly Sokolov <aesok@post.ru>
9483
9484 * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
9485 * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
9486 (avr_hard_regno_scratch_ok): New function.
9487 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
9488 * config/avr/avr.md (all peepholes that request a scratch register):
9489 Remove avr_peep2_scratch_safe use.
9490
9491 2008-07-11 Tom Tromey <tromey@redhat.com>
9492 Ian Lance Taylor <iant@google.com>
9493
9494 * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
9495 (struct c_common_resword): Define.
9496 (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
9497 (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
9498 (c_common_reswords, num_c_common_reswords): Declare.
9499 * c-common.c (c_common_reswords): New global const array.
9500 (num_c_common_reswords): New const int.
9501 * c-parser.c (struct resword, reswords): Don't define.
9502 (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
9503 (c_parse_init): Clarify mask code. Use c_common_reswords rather
9504 than reswords. If warning about C++ keywords, give them a special
9505 RID code.
9506 (c_lex_one_token): Warn about C++ keywords. Call
9507 objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
9508 (c_parser_external_declaration): Look for RID_xxx rather than
9509 RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
9510 (c_parser_statement_after_labels): Likewise.
9511 (c_parser_objc_class_instance_variables): Likewise.
9512 (c_parser_objc_class_declaration): Likewise.
9513 (c_parser_objc_try_catch_statement): Likewise.
9514 * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
9515 (declspecs_add_type): Likewise.
9516
9517 2008-07-11 Angelo Graziosi <angelo.graziosi@alice.it>
9518
9519 * ggc-page.c (alloc_page):
9520 Substituting xmalloc, xcalloc with
9521 XNEWVEC and XCNEWVAR macros which add the
9522 needed casts.
9523
9524 2008-07-11 Richard Guenther <rguenther@suse.de>
9525
9526 PR tree-optimization/36765
9527 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
9528 aliases from HEAP vars to SMTs.
9529
9530 2008-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9531
9532 * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
9533 * configure.ac (loose_warn): Move -Wc++-compat from here...
9534 (strict_warn): ...to here.
9535 * configure: Regenerate.
9536
9537 2008-07-10 Joseph Myers <joseph@codesourcery.com>
9538
9539 * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
9540 i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
9541 m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
9542 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
9543 excluding more specific h8300-*-* and sh-*-* targets.
9544
9545 2008-07-10 Daniel Berlin <dberlin@dberlin.org>
9546
9547 * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
9548 (eliminate): Ditto.
9549 (execute_pre): Call loop_optimizer_finalize in early exit.
9550
9551 2008-07-10 Jakub Jelinek <jakub@redhat.com>
9552
9553 PR middle-end/36790
9554 * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
9555 uids in the bitmap, not just VAR_DECL uids.
9556
9557 PR rtl-optimization/36419
9558 * combine-stack-adj.c (adjust_frame_related_expr): New function.
9559 (combine_stack_adjustments_for_block): Call it if needed. Delete
9560 correct insn.
9561 * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
9562 DW_CFA_GNU_args_size if CSA pass merged some adjustments into
9563 prologue sp adjustment.
9564
9565 2008-07-10 Peter Maydell <pmaydell@chiark.greenend.org.uk>
9566
9567 PR other/28322
9568 * opts.c (print_ignored_options): Report postponed diagnostics for
9569 unknown -Wno-* options as warnings, not errors.
9570 (postpone_unknown_option_error): Renamed to...
9571 (postpone_unknown_option_warning): ... this.
9572
9573 2008-07-09 Doug Kwan <dougkwan@google.com>
9574
9575 Revert:
9576 2008-07-08 Doug Kwan <dougkwan@google.com>
9577
9578 * config/arm/arm.opt (mandroid): New option.
9579 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
9580 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
9581 (CC1_SPEC): Same.
9582 (CC1PLUS_SPEC): Same.
9583 (LIB_SPEC): Same.
9584 (STARTFILE_SPEC): Same.
9585 (ENDFILE_SPEC): Same.
9586 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
9587 used.
9588
9589 2008-07-09 Richard Sandiford <rdsandiford@googlemail.com>
9590
9591 PR target/35802
9592 * config/mips/mips.h (reg_class): Remove V1_REG.
9593 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
9594 * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
9595 instead of V1_REGS.
9596 (mips_get_tp): New function.
9597 (mips_legitimize_tls_address): Use it.
9598 * config/mips/constraints.md (v): Delete.
9599 * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
9600 (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
9601 After reload, split into a move and ...
9602 (*tls_get_tp_<mode>_split): ...this new instruction.
9603
9604 2008-07-09 David Daney <ddaney@avtrex.com>
9605
9606 * config/mips/driver-native.c: Include coretypes.h and tm.h.
9607
9608 2008-07-09 Jakub Jelinek <jakub@redhat.com>
9609
9610 * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
9611 (push_gimplify_context): Don't allocate temp_htab nor c itself here.
9612 Add c argument.
9613 (pop_gimplify_context): Check c->temp_htab instead of optimize whether
9614 htab_delete should be called. Don't free c.
9615 (lookup_tmp_var): Create temp_htab lazily.
9616 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
9617 gimplify_body, force_gimple_operand): Adjust push_gimplify_context
9618 callers.
9619 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
9620 lower_omp_ordered, lower_omp_critical, lower_omp_for,
9621 create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
9622 * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
9623 * tree-sra.c (generate_element_init): Likewise.
9624 * tree-mudflap.c (execute_mudflap_function_ops,
9625 execute_mudflap_function_decls): Likewise.
9626 * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
9627 * tree-gimple.h (struct gimplify_ctx): New type.
9628 (push_gimplify_context): Adjust prototype.
9629
9630 2008-07-09 Daniel Berlin <dberlin@dberlin.org>
9631
9632 * tree-ssa-pre.c (phi_translate_1): Update placement of
9633 add_to_value calls.
9634
9635 2008-07-09 Anatoly Sokolov <aesok@post.ru>
9636
9637 * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
9638 * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
9639 (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
9640 * targhooks.c (default_hard_regno_scratch_ok): New function.
9641 * targhooks.h (default_hard_regno_scratch_ok): Declare function.
9642 * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
9643 * recog.c: Include "target.h".
9644 (peep2_find_free_register): Add check for global regs. Add target
9645 specific check.
9646 * Makefile.in (recog.o): Depend on target.h.
9647
9648 2008-07-09 Kaz Kojima <kkojima@gcc.gnu.org>
9649
9650 * config/sh/sh.c (sh_canonical_va_list_type): New.
9651 (TARGET_CANONICAL_VA_LIST_TYPE): Define.
9652
9653 2008-07-09 Raksit Ashok <raksit@google.com>
9654
9655 * doc/invoke.texi (Option Summary): Mention new option
9656 -Wdisallowed-function-list=...
9657 (Warning Options): Document -Wdisallowed-function-list=...
9658 * common.opt (Wdisallowed-function-list=): New flag.
9659 * flags.h (warn_disallowed_functions): External definition of new
9660 boolean warning flag.
9661 (warn_if_disallowed_function_p): Declare new function.
9662 * opts.c (warning_disallowed_functions): New static variable.
9663 (warn_disallowed_functions): New boolean warning flag.
9664 (warn_if_disallowed_function_p): New function.
9665 (add_comma_separated_to_vector): Rename
9666 add_instrument_functions_exclude_list to this.
9667 (common_handle_option): Handle new option. Rename calls to
9668 add_instrument_functions_exclude_list into calls to
9669 add_comma_separated_to_vector.
9670 * c-parser.c (c_parser_postfix_expression_after_primary): New warning
9671 based on flag warn_disallowed_functions.
9672
9673 2008-07-09 Christian Bruel <christian.bruel@st.com>
9674
9675 * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
9676 instead of get_attr_length.
9677
9678 2008-07-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9679
9680 * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
9681 keywords.
9682 * genemit.c (gen_insn): Likewise.
9683 * gengtype.c (note_def_vec): Likewise.
9684 * gengtype.h (note_def_vec): Likewise.
9685 * genoutput.c (struct data, output_insn_data, process_template,
9686 gen_expand, gen_split, note_constraint): Likewise.
9687 * genrecog.c (new_decision, add_to_sequence, factor_tests,
9688 make_insn_sequence): Likewise.
9689 * gensupport.c (record_insn_name): Likewise.
9690
9691 2008-07-08 Doug Kwan <dougkwan@google.com>
9692
9693 * config/arm/arm.opt (mandroid): New option.
9694 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
9695 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
9696 (CC1_SPEC): Same.
9697 (CC1PLUS_SPEC): Same.
9698 (LIB_SPEC): Same.
9699 (STARTFILE_SPEC): Same.
9700 (ENDFILE_SPEC): Same.
9701 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
9702 used.
9703
9704 2008-07-08 Raksit Ashok <raksit@google.com>
9705
9706 * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
9707 (set_storage_via_setmem): Fix expected_align parameter.
9708 * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
9709 missing from the list.
9710 * doc/md.texi (movmem): Explicitly state that expected alignment is
9711 to be expressed in bytes.
9712 (setmem): Explicitly state that expected alignment is to be expressed
9713 in bytes.
9714
9715 2008-07-08 Joseph Myers <joseph@codesourcery.com>
9716
9717 * reload.c (find_reloads_subreg_address): Do not require validity
9718 of address in original mode before reloading address.
9719
9720 2008-07-07 Tianwei Sheng <tianweis@google.com>
9721
9722 * df-core.c (df_remove_problem): Adjust the access to avoid out of
9723 bounds array access.
9724
9725 2008-07-08 Jakub Jelinek <jakub@redhat.com>
9726
9727 * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
9728
9729 2008-07-05 Daniel Berlin <dberlin@dberlin.org>
9730
9731 Fix PR tree-optimization/23455
9732 Fix PR tree-optimization/35286
9733 Fix PR tree-optimization/35287
9734 * Makefile.in (OBJS-common): Remove tree-vn.o.
9735 (tree-vn.o): Remove.
9736 * dbgcnt.def: Add treepre_insert debug counter.
9737 * gcc/tree-flow.h (add_to_value): Updated for other changes.
9738 (debug_value_expressions): Ditto.
9739 (print_value_expressions): Ditto.
9740 * tree-pretty-print.c (dump_generic_node): Updated for
9741 VALUE_HANDLE removal.
9742 * tree-ssa-dom.c (record_equality): Ditto.
9743 (cprop_operand): Ditto.
9744 (lookup_avail_expr): Ditto.
9745 * tree-ssa-threadedge.c
9746 (record_temporary_equivalences_from_stmts_at_dest): Ditto.
9747 (simplify_control_stmt_condition): Ditto.
9748 * tree.c (tree_code_size): Ditto.
9749 (tree_node_structure): Ditto.
9750 (iterative_hash_expr): Ditto.
9751 * tree.def: Ditto.
9752 * tree.h (VALUE_HANDLE_ID): Ditto.
9753 (VALUE_HANDLE_EXPR_SET): Ditto.
9754 (struct tree_value_handle): Ditto.
9755 (union tree_node): Ditto.
9756 * treestruct.def: Ditto.
9757 * tree-vn.c: Removed.
9758 * tree-ssa-pre.c: Rewritten entirely.
9759 * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
9760 (constant_value_ids): Ditto.
9761 (vn_nary_op_t): Moved to header.
9762 (vn_phi_t): Ditto.
9763 (vn_reference_op_t): Ditto
9764 (vn_reference_t): Ditto.
9765 (next_value_id): New variable.
9766 (VN_INFO): Add an assert.
9767 (vn_constant_eq): New function.
9768 (vn_constant_hash): Ditto.
9769 (get_or_alloc_constant_value_id): Ditto.
9770 (value_id_constant_p): Ditto.
9771 (vn_reference_compute_hash): De-staticify.
9772 (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
9773 Disable some code with a FIXME. Remove VALUE_HANDLE use.
9774 (valueize_refs): Update opcode if it changes from ssa name to constant.
9775 (vn_reference_lookup_1): Add new argument.
9776 (vn_reference_lookup): Ditto.
9777 (vn_reference_lookup_pieces): New function.
9778 (vn_reference_insert): Add return type. Modify to deal with value ids.
9779 (vn_reference_insert_pieces): New function.
9780 (vn_nary_op_compute_hash): De-staticify.
9781 (vn_nary_op_eq): Ditto.
9782 (vn_nary_op_lookup_pieces): New function.
9783 (vn_nary_op_lookup): Add new argument.
9784 (vn_nary_op_insert_pieces): New function.
9785 (vn_nary_op_insert): Add return type. Modify to deal with value ids.
9786 (vn_phi_insert): Ditto.
9787 (visit_unary_op): Update for callee changes.
9788 (visit_binary_op): Ditto.
9789 (visit_reference_op_load): Ditto.
9790 (visit_reference_op_store): Ditto.
9791 (init_scc_vn): Init next_value_id, constant_to_value_id and
9792 constant_value_ids.
9793 (free_scc_vn): Free them.
9794 (set_hashtable_value_ids): New function.
9795 (run_scc_vn): Use it.
9796 (get_max_value_id): New function.
9797 (get_next_value_id): Ditto.
9798 (expressions_equal_p): Moved from tree-vn.c
9799 (sort_vuses): Ditto.
9800 (sort_vuses_heap): Ditto.
9801 * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
9802 above).
9803 * tree.c (iterative_hash_hashval_t): Made non-static
9804 * tree.h (iterative_hash_hashval_t): Declare it.
9805
9806 2008-07-08 Martin Jambor <mjambor@suse.cz>
9807
9808 * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
9809 instead of ipa_create_node_params.
9810 (ipcp_driver): Allocate infos with ipa_check_create_node_params and
9811 ipa_check_create_edge_args, free them with
9812 free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
9813
9814 * ipa-prop.c: Include flags.h and tree-inline.h.
9815 (ipa_node_params_vector): New variable.
9816 (ipa_edge_args_vector): New variable.
9817 (edge_removal_hook_holder): New variable.
9818 (node_removal_hook_holder): New variable.
9819 (edge_duplication_hook_holder): New variable.
9820 (node_duplication_hook_holder): New variable.
9821 (ipa_detect_param_modifications): Check for presence of modified flags.
9822 (ipa_compute_jump_functions): Check for presence of jump functions.
9823 (ipa_free_edge_args_substructures): New function.
9824 (ipa_create_node_params): Removed.
9825 (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
9826 (ipa_free_node_params_substructures): New function.
9827 (ipa_free_all_node_params): Changed to deallocate the on-the-side
9828 vector.
9829 (ipa_edge_removal_hook): New function.
9830 (ipa_node_removal_hook): New function.
9831 (duplicate_array): New function.
9832 (ipa_edge_duplication_hook): New function.
9833 (ipa_node_duplication_hook): New function.
9834 (ipa_register_cgraph_hooks): New function.
9835 (ipa_unregister_cgraph_hooks): New function.
9836 (free_all_ipa_structures_after_ipa_cp): New function.
9837
9838 * ipa-prop.h: Include vec.h.
9839 (ipa_node_params_t): New typedef with vector types for it.
9840 (ipa_edge_args_t): New typedef with vector types for it.
9841 (IPA_NODE_REF): Changed to access an on-the-side vector.
9842 (IPA_EDGE_REF): Changed to access an on-the-side vector.
9843 (ipa_check_create_node_params): New function.
9844 (ipa_check_create_edge_args): New function.
9845
9846 * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h. Converted
9847 all users.
9848
9849 2008-07-07 Tom Tromey <tromey@redhat.com>
9850
9851 * configure, config.in: Rebuilt.
9852 * configure.ac: Don't check for scandir or alphasort.
9853
9854 2008-07-07 Joseph Myers <joseph@codesourcery.com>
9855
9856 * config/arm/arm.c (arm_init_neon_builtins): Register built-in
9857 types immediately after creating them.
9858
9859 2008-07-07 Joseph Myers <joseph@codesourcery.com>
9860
9861 * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
9862
9863 2008-07-07 Fernando Pereira <fernando@cs.ucla.edu>
9864
9865 * tree-ssa-structalias.c (compute_points_to_sets): Add call to
9866 dump_constraint_graph.
9867 (dump_constraint_edge): New function.
9868 (dump_constraint_graph): New function.
9869 (debug_constraint_graph): New function.
9870 (dump_constraint): Removed useless comparison.
9871 * tree-ssa-structalias.h (dump_constraint_edge): Declare.
9872 (dump_constraint_graph): Declare.
9873 (debug_constraint_graph): Declare.
9874 * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
9875
9876 2008-07-07 Kai Tietz <kai.tietz@onevision.com>
9877
9878 * config/i386/i386.c (is_va_list_char_pointer): New.
9879 (ix86_va_start): Replace compare with ms_va_list_type_node
9880 by is_va_list_char_pointer.
9881 (ix86_gimplify_va_arg): Likewise.
9882
9883 2008-07-07 Martin Jambor <mjambor@suse.cz>
9884
9885 * cgraph.c (cgraph_edge_max_uid): New variable.
9886 (struct cgraph_edge_hook_list): New type.
9887 (struct cgraph_node_hook_list): New type.
9888 (struct cgraph_2edge_hook_list): New type.
9889 (struct cgraph_2node_hook_list): New type.
9890 (first_cgraph_edge_removal_hook): New variable.
9891 (first_cgraph_node_removal_hook): New variable.
9892 (first_cgraph_edge_duplicated_hook): New variable.
9893 (first_cgraph_node_duplicated_hook): New variable.
9894 (cgraph_add_edge_removal_hook): New function.
9895 (cgraph_remove_edge_removal_hook): New function.
9896 (cgraph_call_edge_removal_hooks): New function.
9897 (cgraph_add_node_removal_hook): New function.
9898 (cgraph_remove_node_removal_hook): New function.
9899 (cgraph_call_node_removal_hooks): New function.
9900 (cgraph_add_edge_duplication_hook): New function.
9901 (cgraph_remove_edge_duplication_hook): New function.
9902 (cgraph_call_edge_duplication_hooks): New function.
9903 (cgraph_add_node_duplication_hook): New function.
9904 (cgraph_remove_node_duplication_hook): New function.
9905 (cgraph_call_node_duplication_hooks): New function.
9906 (cgraph_create_edge): Assign to edge uid.
9907 (cgraph_remove_edge): Call edge removal hooks.
9908 (cgraph_node_remove_callees): Call edge removal hooks.
9909 (cgraph_node_remove_callers): Call edge removal hooks.
9910 (cgraph_remove_node): Call node removal hooks.
9911 (cgraph_clone_edge): Call edge duplication hooks.
9912 (cgraph_clone_node): Call node duplication hooks.
9913
9914 * cgraph.h (cgraph_edge): New field uid.
9915 (cgraph_edge_hook): New type.
9916 (cgraph_node_hook): New type.
9917 (cgraph_2edge_hook): New type.
9918 (cgraph_2node_hook): New type.
9919
9920 2008-07-07 Andreas Tobler <a.tobler@schweiz.org>
9921
9922 * config.in: Regenerate.
9923
9924 2008-07-07 Vladimir Prus <vladimir@codesourcery.com>
9925
9926 * gcc.c (print_sysroot): New.
9927 (option_map, display_help, process_command): Handle the
9928 -print-sysroot option.
9929 (main): Print the sysroot if requested.
9930 * doc/invoke.texi (Debugging Options): Document -print-sysroot.
9931
9932 2008-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9933
9934 PR target/34780
9935 * unwind-pe.h (size_of_encoded_value): add attribute unused.
9936
9937 2008-07-07 Daniel Jacobowitz <dan@codesourcery.com>
9938
9939 * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
9940 (assign_parm_setup_block_p): Also check mode of entry_parm.
9941
9942 2008-07-07 Richard Guenther <rguenther@suse.de>
9943
9944 * tree-ssa-structalias.h (set_used_smts): Remove.
9945 * tree-ssa-structalias.c (used_smts): Likewise.
9946 (set_used_smts): Likewise.
9947 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
9948 call to set_used_smts.
9949
9950 2008-07-07 Richard Guenther <rguenther@suse.de>
9951
9952 * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
9953 (new_var_info): Set it to false.
9954 (solution_set_add): Correctly handle pointers outside a var and
9955 inside a field.
9956 (type_safe): Treat variables with is_full_var properly.
9957 (do_sd_constraint): Likewise.
9958 (do_ds_constraint): Likewise.
9959 (process_constraint): Remove zeroing offset for !use_field_sensitive.
9960 (get_constraint_for_ptr_offset): New function.
9961 (get_constraint_for_component_ref): For addresses at least include
9962 the last field of the variable. Handle is_full_vars properly.
9963 (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
9964 (handle_ptr_arith): Remove.
9965 (find_func_aliases): Simplify assignment handling.
9966 (create_function_info_for): For parameter and result varinfos set
9967 is_full_var flag.
9968 (create_variable_info_for): Set is_full_var flag whenever we
9969 just created a single varinfo for a decl.
9970 (init_alias_vars): Initialize use_field_sensitive from
9971 max-fields-for-field-sensitive parameter.
9972
9973 2008-07-07 Richard Guenther <rguenther@suse.de>
9974
9975 PR tree-optimization/36713
9976 * tree-flow-inline.h (is_call_used): New function.
9977 * tree-nrv.c (dest_safe_for_nrv_p): Use it.
9978 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
9979 * tree-outof-ssa.c (create_temp): Set call-used flag if required.
9980
9981 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
9982
9983 * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
9984
9985 2008-07-07 Mark Shinwell <shinwell@codesourcery.com>
9986
9987 * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
9988
9989 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
9990 Nathan Sidwell <nathan@codesourcery.com>
9991
9992 * config.gcc (m68k-*-linux*): Add with_arch. Add sysroot-suffix.h
9993 to tm_file. Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
9994 tmake_file.
9995 * config/m68k/t-linux: New.
9996 * doc/install.texi: Document m68k-*-linux is now multilibbed by
9997 default.
9998
9999 2008-07-07 Nathan Sidwell <nathan@codesourcery.com>
10000
10001 * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
10002 * config/m68k/m68k-devices.def: Remove multilibs that only differ
10003 by MAC/EMAC.
10004
10005 2008-07-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10006
10007 * gcc.c (execute): Fix -Wc++-compat warning.
10008
10009 2008-07-06 H.J. Lu <hongjiu.lu@intel.com>
10010
10011 PR target/36720
10012 * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
10013 constant for little endian.
10014
10015 2008-07-06 Richard Sandiford <rdsandiford@googlemail.com>
10016
10017 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
10018 mips_base_mips16 instead of TARGET_MIPS16.
10019 (mips_base_mips16): Declare.
10020 * config/mips/mips.c (mips_base_mips16): Make global.
10021 (was_mips16_p): Remove GTY marker.
10022 (was_mips16_pch_p): New variable.
10023 (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
10024 (mips_override_options): Force to non-MIPS16 mode initially.
10025 Do not complain about MIPS16 PIC incompatibilities here.
10026 Only allow -mgpopt if -mexplicit-relocs is in force for
10027 non-MIPS16 code.
10028
10029 2008-07-06 Andreas Tobler <a.tobler@schweiz.org>
10030
10031 * configure.ac: Check for caddr_t, define to char * if not defined.
10032 * configure: Regenerate.
10033 * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
10034 (mmap_gt_pch_use_address): Likewise.
10035 * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
10036
10037 2008-07-06 Richard Guenther <rguenther@suse.de>
10038
10039 * tree-ssa-structalias.c (struct variable_info): Remove has_union.
10040 (new_var_info): Deal with it.
10041 (solution_set_add): Likewise.
10042 (bitpos_of_field): Make signed, fix.
10043 (struct fieldoff): Remove type and decl fields. Make size field
10044 unsigned HOST_WIDE_INT. Add has_unknown_size and may_have_pointers
10045 flags.
10046 (fieldoff_compare): Deal with it.
10047 (push_fields_onto_fieldstack): Remove has_union argument, glob
10048 adjacent non-pointer fields together.
10049 (create_function_info_for): Do not set has_union.
10050 (create_variable_info_for): Simplify.
10051
10052 2008-07-06 Kai Tietz <kai.tietz@onevision.com>
10053
10054 * config.gcc (extra_headers): Add cross-stdarg.h for target
10055 x86_64-*-* and i?86-*-*.
10056 * config/i386/cross-stdarg.h: New.
10057 * builtins.c (std_fn_abi_va_list): New.
10058 (std_canonical_va_list_type): New.
10059 (stabilize_va_list): Replace va_list_type_node use by
10060 mtarget.canonical_va_list_type.
10061 (gimplify_va_arg_expr): Likewise.
10062 (expand_builtin_va_copy): Replace va_list_type_node use by
10063 mtarget.fn_abi_va_list.
10064 * tree-sra.c (is_va_list_type): New helper.
10065 (decl_can_be_decomposed_p): Replace
10066 va_list_type_node use by is_va_list_type.
10067 * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
10068 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
10069 * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
10070 * config/i386/i386-protos.h (ix86_get_valist_type): New.
10071 (ix86_enum_va_list): New.
10072 * config/i386/i386.c (sysv_va_list_type_node): New.
10073 (ms_va_list_type_node): New.
10074 (ix86_function_type_abi): Remove sorry.
10075 (ix86_build_builtin_va_list_abi): New.
10076 (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
10077 for 64-bit targets.
10078 (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
10079 (ix86_init_builtins_va_builtins_abi): New.
10080 (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
10081 for 64-bit targets.
10082 (ix86_handle_abi_attribute): New.
10083 (attribute_spec): Add sysv_abi and ms_abi.
10084 (ix86_fn_abi_va_list): New.
10085 (ix86_canonical_va_list_type): New.
10086 (ix86_enum_va_list): New.
10087 (TARGET_FN_ABI_VA_LIST): New.
10088 (TARGET_CANONICAL_VA_LIST_TYPE): New.
10089 * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
10090 * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
10091 (TARGET_CANONICAL_VA_LIST_TYPE): New.
10092 (TARGET_ENUM_VA_LIST): New.
10093 * expr.h (std_fn_abi_va_list): New.
10094 (std_canonical_va_list_type): New.
10095 * target-def.h (TARGET_FN_ABI_VA_LIST): New.
10096 (TARGET_CANONICAL_VA_LIST_TYPE): New.
10097 (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
10098 TARGET_CANONICAL_VA_LIST_TYPE.
10099 * target.h (struct gcc_target): Add fn_abi_va_list hook
10100 and canonical_va_list_type hook.
10101
10102 2008-07-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
10103
10104 * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
10105 integral and pointer types.
10106
10107 2008-07-04 Roger Sayle <roger@eyesopen.com>
10108
10109 * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
10110 the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
10111
10112 2008-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
10113
10114 PR target/36684
10115 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
10116
10117 2008-07-04 Jakub Jelinek <jakub@redhat.com>
10118
10119 * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
10120 build_gimple_modify_stmt.
10121 (build_arrays, gen_inbound_check): Likewise. Force RHS to be
10122 gimple operand. Use fold_build* instead of build*.
10123
10124 2008-07-04 Richard Guenther <rguenther@suse.de>
10125
10126 * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
10127 (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
10128 properly to compute the reachability set if we do field-sensitive PTA.
10129 * invoke.texi (max-fields-for-field-sensitive): Document default.
10130 * opts.c (decode_options): Set max-fields-for-field-sensitive to
10131 100 for optimize >= 2.
10132
10133 2008-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10134
10135 * ggc-zone.c (lookup_page_table_if_allocated,
10136 set_page_table_entry, zone_find_object_size, alloc_small_page,
10137 alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
10138 new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
10139 -Wc++-compat and/or -Wcast-qual warnings.
10140
10141 2008-07-04 Alan Modra <amodra@bigpond.net.au>
10142
10143 PR target/36634
10144 * config/rs6000/rs6000.md (call, call_value): Don't arrange for
10145 pic_offset_table_rtx to be marked as used here.
10146 (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
10147 TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
10148 (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
10149 (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
10150 !TARGET_SECURE_PLT.
10151
10152 2008-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10153
10154 * alloc-pool.c (hash_descriptor, eq_descriptor,
10155 alloc_pool_descriptor): Fix -Wc++-compat warnings.
10156 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
10157 Likewise.
10158 * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
10159 loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
10160 final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
10161 * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
10162 Likewise.
10163
10164 2008-07-03 Eric Botcazou <ebotcazou@adacore.com>
10165
10166 * tree-flow.h (loop_only_exit_p): Declare.
10167 * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
10168 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
10169 the number of iterations if it is constant. Otherwise, if this is the
10170 only possible exit of the loop, use the conservative estimate on the
10171 number of iterations of the entire loop if available.
10172
10173 2008-07-03 Richard Sandiford <rdsandiford@googlemail.com>
10174
10175 * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
10176 * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
10177 Add synchronization functions.
10178 * config/sync.c: New file.
10179 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
10180 (LIBGCC_SYNC_CFLAGS): Likewise.
10181
10182 2008-07-03 Uros Bizjak <ubizjak@gmail.com>
10183
10184 PR target/36710
10185 * config/i386/i386.md (mode): Add TF to "mode" attribute.
10186 (*pushtf_sse): New insn pattern.
10187 (pushtf splitters): New splitters.
10188
10189 2008-07-03 Michael Meissner <gnu@the-meissners.org>
10190
10191 PR middle-end/35736
10192 * predict.c (build_predict_expr): Use void_type_node for the tree
10193 type, instead of NULL_TREE.
10194
10195 2008-07-03 H.J. Lu <hongjiu.lu@intel.com>
10196
10197 * config/i386/i386.c (contains_aligned_value_p): Return true
10198 for TCmode.
10199 (ix86_data_alignment): Align TCmode to 128bits.
10200 (ix86_local_alignment): Likewise.
10201
10202 2008-07-03 Andrew Haley <aph@redhat.com>
10203
10204 PR bootstrap/33304
10205 * vec.h (VEC_TA): New.
10206 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
10207 DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
10208 * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
10209 (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
10210 (C_COMMON_FIXED_TYPES): Remove first arg.
10211 (C_COMMON_FIXED_MODE_TYPES): Likewise.
10212 * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
10213 MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
10214 not to use empty macro arguments.
10215
10216 2008-07-02 Joseph Myers <joseph@codesourcery.com>
10217
10218 * config/alpha/vms_tramp.asm, config/arm/crti.asm,
10219 config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
10220 config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
10221 config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
10222 config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
10223 config/i386/sol2-gc1.asm, config/ia64/crti.asm,
10224 config/ia64/crtn.asm, config/m68hc11/larith.asm,
10225 config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
10226 config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
10227 config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
10228 config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
10229 config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
10230 config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
10231 config/rs6000/e500crtres64gpr.asm,
10232 config/rs6000/e500crtres64gprctr.asm,
10233 config/rs6000/e500crtrest32gpr.asm,
10234 config/rs6000/e500crtrest64gpr.asm,
10235 config/rs6000/e500crtresx32gpr.asm,
10236 config/rs6000/e500crtresx64gpr.asm,
10237 config/rs6000/e500crtsav32gpr.asm,
10238 config/rs6000/e500crtsav64gpr.asm,
10239 config/rs6000/e500crtsav64gprctr.asm,
10240 config/rs6000/e500crtsavg32gpr.asm,
10241 config/rs6000/e500crtsavg64gpr.asm,
10242 config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
10243 config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
10244 config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
10245 config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
10246 config/sparc/sol2-cn.asm: Remove .file directives.
10247
10248 2008-07-02 Richard Sandiford <rdsandiford@googlemail.com>
10249
10250 * resource.c (mark_referenced_resources): Look inside
10251 UNSPEC_VOLATILEs and ASM_INPUTs.
10252
10253 2008-07-02 Ian Lance Taylor <iant@google.com>
10254
10255 * rtlanal.c (add_reg_note): New function.
10256 * rtl.h (add_reg_note): Declare.
10257 * auto-inc-dec.c (attempt_change): Use add_reg_note.
10258 * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
10259 * builtins.c (expand_builtin_longjmp): Likewise.
10260 (expand_builtin_nonlocal_goto): Likewise.
10261 * calls.c (emit_call_1, expand_call): Likewise.
10262 * cfgexpand.c (add_reg_br_prob_note): Likewise.
10263 * cfglayout.c (fixup_reorder_chain): Likewise.
10264 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
10265 (commit_one_edge_insertion): Likewise.
10266 * combine.c (move_deaths, distribute_notes): Likewise.
10267 * df-problems.c (df_set_note): Likewise.
10268 * emit-rtl.c (link_cc0_insns, try_split): Likewise.
10269 (set_unique_reg_note): Likewise.
10270 (emit_copy_of_insn_after): Likewise.
10271 * expr.c (expand_expr_real): Likewise.
10272 * gcse.c (add_label_notes): Likewise.
10273 * haifa-sched.c (create_check_block_twin): Likewise.
10274 * jump.c (mark_jump_label_1): Likewise.
10275 * loop-doloop.c (add_test, doloop_modify): Likewise.
10276 * loop-unswitch.c (compare_and_jump_seq): Likewise.
10277 * lower-subreg.c (move_eh_region_note): Likewise.
10278 * optabs.c (emit_libcall_block): Likewise.
10279 * predict.c (predict_insn): Likewise.
10280 (combine_predictions_for_insn): Likewise.
10281 * recog.c (peephole2_optimize): Likewise.
10282 * regmove.c (try_auto_increment): Likewise.
10283 * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
10284 * reload.c (find_reloads): Likewise.
10285 * reload1.c (fixup_eh_region_note): Likewise.
10286 (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
10287 * reorg.c (delete_prior_computation): Likewise.
10288 (delete_computation, dbr_schedule): Likewise.
10289 * config/pa/pa.c (legitimize_pic_address): Likewise.
10290 * config/sh/sh.c (sh_reorg): Likewise.
10291
10292 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
10293
10294 PR target/36669
10295 * config/libgcc-glibc.ver: Add %exclude.
10296 * config/m32r/libgcc-glibc.ver: Likwise.
10297 * config/s390/libgcc-glibc.ver: Likwise.
10298 * config/sh/libgcc-glibc.ver: Likwise.
10299 * config/sparc/libgcc-sparc-glibc.ver: Likwise.
10300
10301 * config/i386/libgcc-glibc.ver: New.
10302
10303 * config/i386/libgcc-x86_64-glibc.ver: Removed.
10304
10305 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
10306
10307 * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
10308 from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
10309 i[34567]86-*-linux*, x86_64-*-linux*. Add
10310 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
10311 i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
10312 x86_64-*-linux*. Add i386/t-linux to tmake_file for
10313 i[34567]86-*-linux*, x86_64-*-linux*.
10314
10315 * libgcc-std.ver: Add empty GCC_4.4.0.
10316
10317 * mkmap-symver.awk: Support multiple versions per symbol.
10318
10319 * config/i386/i386.c (ix86_init_builtins): Always define
10320 __builtin_fabsq and __builtin_copysignq with fallbacks.
10321 (ix86_expand_builtin): Emit normal call for __builtin_fabsq
10322 and __builtin_copysignq if SSE2 isn't available.
10323
10324 * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
10325 (LIBGCC2_TF_CEXT): Likwise.
10326 (TF_SIZE): Likwise.
10327
10328 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
10329
10330 * config/i386/sfp-machine.h: Moved to libgcc.
10331
10332 * config/i386/sfp-machine.h: New.
10333 * config/i386/t-linux: Likwise.
10334
10335 * config/i386/t-darwin: Remove softfp_wrap_start and
10336 softfp_wrap_end.
10337 * config/i386/t-darwin64: Likewise.
10338
10339 * config/i386/t-fprules-softfp64: Renamed to ...
10340 * config/i386/t-fprules-softfp: This.
10341
10342 * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
10343 and softfp_wrap_end.
10344
10345 2008-07-02 Jason Merrill <jason@redhat.com>
10346
10347 * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
10348
10349 * tree.c (ctor_to_list): New fn.
10350 * tree.h: Declare it.
10351 (CONSTRUCTOR_ELT): New macro.
10352 (CONSTRUCTOR_NELTS): New macro.
10353
10354 2008-07-02 Richard Guenther <rguenther@suse.de>
10355
10356 * tree-ssa-structalias.c (struct variable_info): Reorder
10357 to fill padding on 64bit hosts. Make collapsed_to an int.
10358 (get_varinfo_fc): Deal with that.
10359 (new_var_info): Likewise.
10360 (collapse_rest_of_var): Likewise.
10361
10362 2008-07-02 Joshua Sumali <jsumali@redhat.com>
10363
10364 * doc/install.texi (--enable-java-home): Document.
10365 (--enable-aot-compile-rpm): Likewise.
10366 (--with-arch-directory): Likewise.
10367 (--with-os-directory): Likewise.
10368 (--with-origin-name): Likewise.
10369 (--with-arch-suffix): Likewise.
10370 (--with-jvm-root-dir): Likewise.
10371 (--with-jvm-jar-dir): Likewise.
10372 (--with-python-dir): Likewise.
10373
10374 2008-07-02 Richard Guenther <rguenther@suse.de>
10375
10376 * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
10377 from decls explicitly. Merge operand checking from tuples.
10378
10379 2008-07-02 Martin Jambor <mjambor@suse.cz>
10380
10381 * tree-switch-conversion.c: Included timevar.h which I forgot before.
10382
10383 2008-07-02 Martin Jambor <mjambor@suse.cz>
10384
10385 * tree-switch-conversion.c: Included timevar.h
10386 (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
10387
10388 * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
10389
10390 2008-07-02 Martin Jambor <mjambor@suse.cz>
10391
10392 * tree-switch-conversion.c: Corrected various comments and
10393 whitespace issues
10394 (build_constructors): Fixed minor formatting mistakes.
10395
10396 * invoke.texi (Optimize Options): Corrected the
10397 switch-conversion-max-branch-ratio parameter.
10398
10399 2008-07-02 Mark Shinwell <shinwell@codesourcery.com>
10400
10401 * final.c (asm_insn_count): Return zero for an empty asm body.
10402
10403 2008-07-02 Richard Guenther <rguenther@suse.de>
10404
10405 * bitmap.h (bitmap_set_bit): Return bool.
10406 (bitmap_clear_bit): Likewise.
10407 * bitmap.c (bitmap_set_bit): Return if the bit changed. Only
10408 write to the bitmap if it would.
10409 (bitmap_clear_bit): Likewise.
10410 * tree-ssa-structalias.c (add_implicit_graph_edge): Use
10411 bitmap_set_bit return value.
10412 (add_pred_graph_edge): Likewise.
10413 (add_graph_edge): Likewise.
10414 (do_sd_constraint): Likewise.
10415 (do_ds_constraint): Likewise.
10416
10417 2008-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10418
10419 * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
10420 Fix -Wc++-compat and/or -Wcast-qual warnings.
10421 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
10422 gen_regparm_prefix): Likewise.
10423 * vmsdbgout.c (write_modbeg, lookup_filename,
10424 vmsdbgout_source_line, vmsdbgout_init): Likewise.
10425
10426 2008-07-02 Danny Smith <dannysmith@users.sourceforge.net>
10427
10428 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
10429 defaults.h definition apply.
10430
10431 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
10432
10433 * function.c (assign_parm_remove_parallels): New.
10434 (assign_parm_setup_block_p): Do not return true for non-BLKmode
10435 PARALLELs.
10436 (assign_parm_setup_block): Do not handle them.
10437 (assign_parm_setup_reg, assign_parm_setup_stack): Call
10438 assign_parm_remove_parallels.
10439
10440 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
10441
10442 * c-typeck.c (convert_for_assignment): Use
10443 vector_targets_convertible_p.
10444 * c-common.c (vector_targets_convertible_p): New.
10445 * c-common.h (vector_targets_convertible_p): New prototype.
10446 * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
10447 opaque_p_V2SI_type_node.
10448
10449 2008-07-01 Steve Ellcey <sje@cup.hp.com>
10450
10451 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
10452 RFmode constants.
10453
10454 2008-07-01 Uros Bizjak <ubizjak@gmail.com>
10455
10456 * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
10457 TFmode constants via two element DImode vector for hosts with
10458 HOST_BITS_PER_WIDE_INT < 64.
10459 (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
10460 also for HOST_BITS_PER_WIDE_INT < 64.
10461
10462 2008-07-01 Richard Guenther <rguenther@suse.de>
10463
10464 PR tree-optimization/36666
10465 * tree-ssa-structalias.c (get_constraint_for_1): Declare.
10466 (get_constraint_exp_from_ssa_var): Split into ...
10467 (get_constraint_exp_for_temp): ... this ...
10468 (get_constraint_for_ssa_var): ... and that.
10469 Return constraint expressions for all touched sub-fields
10470 if the results address is not taken.
10471 (process_constraint): Remove assertion that aggregate
10472 assignments do not happen at this place.
10473 (get_constraint_for_component_ref): Add address_p argument.
10474 Return constraint expressions for all touched sub-fields
10475 if the results address is not taken.
10476 (do_deref): Use get_constraint_exp_for_temp.
10477 (get_constraint_for_1): Rename from ...
10478 (get_constraint_for): ... this. Add the old function as wrapper.
10479 (do_structure_copy): Use get_constraint_for_1.
10480
10481 2008-07-01 Martin Jambor <mjambor@suse.cz>
10482
10483 * Makefile.in (tree-switch-conversion.o): Add.
10484 (OBJS-common): Add tree-swtch-conversion.o.
10485 * passes.c (init_optimization_passes): Add pass_convert_switch.
10486 * tree-pass.h: (pass_convert_switch): Add.
10487 * tree-switch-conversion.c: New file.
10488 * gcc.dg/tree-ssa/cswtch.c: New testcase.
10489 * common.opt (ftree-cswtch): New option.
10490 * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
10491 * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
10492 * opts.c (decode_options): Set flag_tree_switch_conversion when
10493 optimization level is >= 2.
10494 * doc/invoke.texi (Optimize Options): Added description of
10495 -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
10496
10497 2008-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10498
10499 * config/darwin-driver.c (darwin_default_min_version): Fix
10500 -Wc++-compat warnings.
10501
10502 2008-06-30 Uros Bizjak <ubizjak@gmail.com>
10503
10504 * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
10505 of operand 0.
10506
10507 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
10508
10509 * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
10510
10511 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
10512
10513 PR rtl-optimization/34744
10514 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
10515 (df_scan_free_internal): Free data structures not
10516 allocated in storage pools.
10517 (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
10518 (df_refs_add_to_chains): Use df_scan_free_ref_vec and
10519 df_scan_free_mws_vec.
10520 * dse.c (dse_step6): Free offset_map_p and offset_map_n
10521 unconditionally.
10522
10523 2008-06-30 H.J. Lu <hongjiu.lu@intel.com>
10524
10525 * config/i386/i386.c (contains_aligned_value_p): Return true
10526 for __float128.
10527 (ix86_function_arg_boundary): Return its natural boundary
10528 for __float128.
10529 (return_in_memory_32): Don't check TDmode.
10530 (ix86_split_to_parts): Support splitting into 4 parts and
10531 support TFmode for 32bit target.
10532 (ix86_split_long_move): Support splitting into 4 parts.
10533 (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
10534 for SSE2.
10535 (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
10536 (ix86_init_builtins): Here.
10537 (ix86_scalar_mode_supported_p): Always return true for TFmode.
10538 (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
10539 'q' and 'w', respectively.
10540
10541 * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
10542 TARGET_64BIT.
10543 (movtf_internal): Likewise.
10544 (<code>tf2): Likewise.
10545 (*absnegtf2_sse): Likewise.
10546 (copysign<mode>3): Likewise.
10547 (copysign<mode>3_const): Likewise.
10548 (copysign<mode>3_var): Likewise.
10549 (define_split UNSPEC_COPYSIGN): Likewise.
10550 * config/i386/sse.md (*nandtf3): Likewise.
10551 (<code>tf3): Likewise.
10552 (*<code>tf3): Likewise.
10553
10554 2008-06-30 Joey Ye <joey.ye@intel.com>
10555 H.J. Lu <hongjiu.lu@intel.com>
10556
10557 * global.c (compute_regsets): Set frame_pointer_needed here.
10558 * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
10559
10560 2008-06-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
10561
10562 * doc/install.texi (specific): Expand Windows build notes.
10563
10564 2008-06-30 Ira Rosen <irar@il.ibm.com>
10565
10566 PR tree-optimization/36648
10567 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
10568 number of prolog iterations by step. Fix the comment.
10569
10570 2008-06-30 Richard Guenther <rguenther@suse.de>
10571
10572 PR middle-end/36671
10573 * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
10574 handle calls from ECF_MALLOC functions.
10575 (handle_pure_call): ECF_MALLOC functions do not return
10576 call-used memory.
10577 (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
10578
10579 2008-06-29 Andreas Schwab <schwab@suse.de>
10580
10581 * config/m68k/m68k.c (print_operand): Always print a float
10582 constant in hex.
10583 * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
10584 (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
10585 Remove macros.
10586
10587 * config/rs6000/x-linux64: Remove never used file.
10588
10589 2008-06-29 Richard Guenther <rguenther@suse.de>
10590
10591 * tree-ssa-structalias.h (compute_points_to_sets): Adjust
10592 prototype.
10593 (struct alias_info): Move ...
10594 * tree-ssa-alias.c: ... here.
10595 (update_alias_info): Declare.
10596 (compute_may_aliases): Call it.
10597 (update_alias_info): New function.
10598 * tree-ssa-structalias.c (update_alias_info): Move ...
10599 * tree-ssa-alias.c (update_alias_info_1): ... here.
10600 * tree-ssa-structalias.c (process_constraint_1): Remove
10601 unused from_call argument. Rename to ...
10602 (process_constraint): ... this. Delete old wrapper.
10603 (make_constraint_to): Adjust callers.
10604 (handle_const_call): Likewise.
10605 (handle_pure_call): Likewise.
10606 (init_base_vars): Likewise.
10607 (handle_lhs_call): Likewise. Remove unnecessary constraint.
10608 (find_func_aliases): We don't need structure copies for
10609 complex types.
10610 (make_constraint_from_anything): Remove.
10611 (create_variable_info_for): For globals make constraints
10612 from escaped, not from anything.
10613 (compute_points_to_sets): Do not call update_alias_info.
10614 (ipa_pta_execute): Use make_constraint_from.
10615
10616 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10617
10618 * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
10619 (bitmap.o-warn, dominance.o-warn): New.
10620 * configure.ac (cxx_compat_warn): Delete.
10621 (loose_warn): Add -Wcast-qual and -Wc++-compat.
10622 * system.h: Remove #pragma diagnostic for -Wcast-qual and
10623 -Wc++-compat.
10624 * configure: Regenerate.
10625
10626 * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
10627 warnings.
10628
10629 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10630
10631 * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
10632 * df-scan.c (df_notes_rescan): Likewise.
10633 * ggc-page.c (set_page_table_entry): Likewise.
10634 * intl.c (gcc_gettext_width): Likewise.
10635 * varasm.c (get_unnamed_section, get_noswitch_section,
10636 get_section): Likewise.
10637
10638 2008-06-28 Andrew Jenner <andrew@codesourcery.com>
10639
10640 * regrename.c (build_def_use): Don't copy RTX.
10641
10642 2008-06-28 Sandra Loosemore <sandra@codesourcery.com>
10643
10644 * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
10645 (Type Attributes): Fix nesting of @table and @subsection. Adjust
10646 punctuation. Use @ref instead of @xref.
10647 (Function Names): Remove stray @display/@end display.
10648 (C++ Attributes): Use @ref instead of @xref.
10649 (Deprecated Features): Fix punctuation around @xref.
10650 (Backwards Compatibility): Likewise.
10651 * doc/rtl.texi (Incdec): Remove stray @table/@end table.
10652
10653 2008-06-28 Joseph Myers <joseph@codesourcery.com>
10654
10655 * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
10656 constants for E500 double.
10657
10658 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10659
10660 * doc/rtl.texi (const_vector): Document const_fixed as legitimate
10661 element type of const_vector.
10662
10663 2008-06-28 Uros Bizjak <ubizjak@gmail.com>
10664
10665 * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
10666 Remove FLAGS_REG clobber from expander pattern.
10667 (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
10668 (anddi3, andsi3, andhi3, andqi3): Ditto.
10669 (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
10670 (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
10671 (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
10672 (ashlsi3, ashlhi3, ashlqi3): Ditto.
10673 (ashrsi3, ashrhi3, ashrqi3): Ditto.
10674 (lshrsi3, lshrhi3, lshrqi3): Ditto.
10675 (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
10676 (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
10677
10678 2008-06-28 Richard Guenther <rguenther@suse.de>
10679
10680 * tree-ssa-structalias.c (callused_id, var_callused,
10681 callused_tree): Add.
10682 (handle_pure_call): New function.
10683 (find_func_aliases): Call it.
10684 (find_what_p_points_to): Handle the call-used set.
10685 (clobber_what_escaped): Likewise.
10686 (compute_call_used_vars): New function.
10687 (init_base_vars): Init the call-used variable.
10688 (do_sd_constraint): Do not propagate the solution from CALLUSED
10689 but use CALLUSED as a placeholder.
10690 (solve_graph): Likewise.
10691 * tree-flow-inline.h (gimple_call_used_vars): New function.
10692 * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
10693 (compute_call_used_vars): Declare.
10694 * tree-ssa-alias.c (set_initial_properties): Call
10695 compute_call_used_vars.
10696 (reset_alias_info): Clear call-used variables.
10697 (add_call_clobber_ops): Assert we are not called for const/pure
10698 functions. Remove handling of them.
10699 (add_call_read_ops): Handle pure functions by adding the
10700 call-used set of variables as VUSEs.
10701 * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
10702 (delete_tree_ssa): Free it.
10703 * tree-dfa.c (remove_referenced_var): Clear the var from the
10704 call-used bitmap.
10705
10706 2008-06-28 Kai Tietz <kai.tietz@onevision.com>
10707
10708 * tree.c (build_varargs_function_type_list): New.
10709 (build_function_type_list_1): New.
10710 (build_function_type_list): Use build_function_type_list_1.
10711 * tree.h (build_varargs_function_type_list): New.
10712
10713 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10714
10715 PR target/34856
10716 * config/spu/spu.c (spu_builtin_splats): Do not generate
10717 invalid CONST_VECTOR expressions.
10718 (spu_expand_vector_init): Likewise.
10719
10720 2008-06-28 Richard Sandiford <rdsandiford@googlemail.com>
10721
10722 * optabs.c (libfunc_decls): New variable.
10723 (libfunc_decl_hash, libfunc_decl_eq): New functions.
10724 (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
10725 for the same function twice.
10726
10727 2008-06-27 Uros Bizjak <ubizjak@gmail.com>
10728
10729 * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
10730 ix86_expand_binary_operator directly.
10731 (*ashlti3_1): Rename from ashlti3_1. Use nonmemory_operand predicate
10732 for operand 2.
10733 (*ashrti3_1): Ditto.
10734 (*lshrti3_1): Ditto.
10735 (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
10736 (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
10737 using only one splitter. Conditionaly execute splitter before or
10738 after peephole2 pass.
10739 (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
10740 (x86_shld): Rename from x86_shld_1. Compress operand 2 constraints.
10741 Use only one alternative in asm template.
10742 (x86_64_shld): Compress operand 2 constraints. Use only one alternative
10743 in asm template.
10744 (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
10745 "J" operand constraint for operand 2.
10746 (*ashldi3_cconly_rex64): Ditto.
10747 (*ashrdi3_cmp_rex64): Ditto.
10748 (*ashrdi3_cconly_rex64): Ditto.
10749 (*lshrdi3_cmp_rex64): Ditto.
10750 (*lshrdi3_cconly_rex64): Ditto.
10751 * config/i386/predicates.md (const_1_to_63_operand): New predicate.
10752 * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
10753 (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
10754 gen_x86_shrd_1.
10755
10756 2008-06-27 Jakub Jelinek <jakub@redhat.com>
10757
10758 * gimplify.c (omp_is_private): Don't return true if decl is not
10759 already private on #pragma omp for or #pragma omp parallel for.
10760
10761 PR debug/36617
10762 * tree-cfg.c (struct move_stmt_d): Replace block field with
10763 orig_block and new_block fields.
10764 (move_stmt_r): Only set TREE_BLOCK to p->new_block if
10765 if it used to be NULL, p->orig_block or if p->orig_block is NULL.
10766 (move_block_to_fn): Replace vars_map and new_label_map arguments
10767 with struct move_stmt_d pointer.
10768 (replace_block_vars_by_duplicates): New function.
10769 (move_sese_region_to_fn): Add ORIG_BLOCK argument. Adjust
10770 move_block_to_fn caller. If ORIG_BLOCK is non-NULL, move over
10771 all subblocks of ORIG_BLOCK to the new function. Call
10772 replace_block_vars_by_duplicates.
10773 * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
10774 * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
10775 BLOCK of the new function. Adjust move_sese_region_to_fn caller.
10776 Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
10777 (expand_omp): Temporarily set input_location to the location of
10778 region's controlling stmt.
10779 (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
10780 BIND_EXPR, push ctx->block_vars and gimplification vars into
10781 the BIND_EXPR and its block's BLOCK_VARS instead of directly
10782 into dest function.
10783 (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
10784 there are any BLOCK_VARS.
10785 (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
10786 OMP_PARALLEL or OMP_TASK stmt.
10787 (lower_omp): Save and restore input_location around the lower_omp_1
10788 call.
10789
10790 2008-06-27 Richard Guenther <rguenther@suse.de>
10791
10792 PR tree-optimization/36400
10793 PR tree-optimization/36373
10794 PR tree-optimization/36344
10795 * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
10796 var_nonlocal, nonlocal_tree, nonlocal_id): New globals
10797 (update_alias_info): Remove call clobbering code.
10798 (make_constraint_to): New helper function.
10799 (make_escape_constraint): Likewise.
10800 (handle_rhs_call): Use it on all pointer containing arguments.
10801 Also mark the static chain escaped.
10802 (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
10803 instead of ANYTHING.
10804 (make_constraint_from): New helper split out from ...
10805 (make_constraint_from_anything): ... here.
10806 (find_func_aliases): Add constraints for escape sites.
10807 (intra_create_variable_infos): Make constraints from NONLOCAL
10808 for parameters.
10809 (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
10810 as ANYTHING.
10811 (clobber_what_p_points_to): Remove.
10812 (clobber_what_escaped): New function.
10813 (init_base_vars): Init NONLOCAL and ESCAPED.
10814 (do_sd_constraint): Do not propagate the solution from ESCAPED
10815 but use ESCAPED as a placeholder.
10816 (solve_graph): Likewise.
10817 * tree-flow.h (clobber_what_p_points_to): Remove.
10818 (clobber_what_escaped): Declare.
10819 * tree-ssa-alias.c (set_initial_properties): Call it.
10820 Remove code clobbering escaped pointers.
10821
10822 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
10823
10824 * function.c (allocate_struct_function): Only allocate a unique
10825 funcdef_no if the decl is nonzero.
10826
10827 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
10828
10829 * config/mips/mips-protos.h (mips_split_const_insns): Declare.
10830 * config/mips/mips.c (mips_split_const_insns): New function.
10831 * config/mips/mips.md (move_type): New attribute.
10832 (mode): Move attribute definition earlier in file. Add "TI" and "TF".
10833 (dword_mode): New attribute.
10834 (type): Avoid long line. Map "move_type"s to "type"s,
10835 choosing "multi" for doubleword moves if appropriate.
10836 Swap MTC/MFC comments to match their declaration order.
10837 (extended_mips16): Default to "yes" if "move_type" is "sll0",
10838 "type" is "branch" or "jal" is "direct".
10839 (length): Handle "extended_mips16" first. Make the default
10840 "0" for "ghost" instructions. Set the length from "move_type".
10841 (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
10842 of "type", with "sll0" for the register alternative. Remove the
10843 "extended_mips16" attribute.
10844 (zero_extendsidi2, *clear_upper32): Use "move_type" instead
10845 of "type", with "shift_shift" for the register alternative.
10846 Remove the "length" attribute.
10847 (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
10848 (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
10849 of "type", with "andi" for the register alternative.
10850 (*zero_extendqihi2): Likewise.
10851 (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
10852 of "andi" instead of a "type" of "arith".
10853 (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
10854 instead of "type".
10855 (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
10856 (mov_<store>r, *mov<mode>_ra): Likewise.
10857 (extendsidi2): Use "move_type" instead of "type", with "move"
10858 for the register alternative.
10859 (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
10860 of "type", with "signext" for the register alternative.
10861 (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
10862 (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
10863 (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
10864 (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
10865 (floatdisf2, *branch_equality<mode>_mips16): Likewise.
10866 (unnamed branch insn): Likewise.
10867 (*movdi_gp32_fp64): Fold into...
10868 (*movdi_32bit): ...here.
10869 (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
10870 (*movdf_hardfloat): ...this new pattern.
10871 (*movdf_softfloat): Remove redundant FPR alternatives.
10872 (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
10873 (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
10874 (*movv2sf): ...this new pattern. Use "DF" rather than "SF" for
10875 the "move" attribute.
10876 (*movdi_32bit): Use "move_type" instead of "type" and remove the
10877 "length" attribute. Use "fpload" and "fpstore" instead of "load"
10878 and "store" for COP loads and stores.
10879 (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
10880 (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
10881 (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
10882 (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
10883 (*movtf_mips16, *movv2sf): Likewise.
10884 (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
10885 (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
10886 (mfhc1<mode>): Use "move_type" instead of "move".
10887 (*low<mode>_mips16): Use "extended_mips16" instead of "length".
10888 (loadgp_blockage): Remove the "length" attribute.
10889 (blockage, set_got_version, update_got_version): Likewise.
10890 (call_internal): Remove the "extended_mips16" attribute.
10891 (call_value_internal, call_value_multiple_internal): Likewise.
10892 * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
10893 instead of "move".
10894 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
10895 the "length" attribute.
10896
10897 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10898
10899 * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
10900 -Wcast-qual warnings.
10901 * c-pragma.c (dpm_eq, handle_pragma_push_macro,
10902 handle_pragma_pop_macro): Likewise.
10903 * collect2.c (resolve_lib_name): Likewise.
10904 * config/arc/arc.c (arc_init): Likewise.
10905 * config/arm/arm.c (neon_builtin_compare,
10906 locate_neon_builtin_icode): Likewise.
10907 * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
10908 * config/bfin/bfin.c (bfin_init_machine_status,
10909 bfin_optimize_loop): Likewise.
10910 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
10911 * config/cris/cris.c (cris_init_expanders): Likewise.
10912 * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
10913 * config/darwin.c (machopic_indirection_eq,
10914 machopic_indirection_name, machopic_output_indirection): Likewise.
10915 * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
10916 frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
10917 frv_optimize_membar): Likewise.
10918 * config/i386/cygwin.h (mingw_scan,
10919 GCC_DRIVER_HOST_INITIALIZATION): Likewise.
10920 * config/i386/cygwin1.c (mingw_scan): Likewise.
10921 * config/i386/i386.c (machopic_output_stub): Likewise.
10922 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
10923 i386_pe_unique_section): Likewise.
10924 * config/ia64/ia64.c (ia64_init_machine_status,
10925 ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
10926 Likewise.
10927 * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
10928 * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
10929 * config/m68k/m68k.c (m68k_handle_option,
10930 m68k_sched_md_init_global): Likewise.
10931 * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
10932 mcore_unique_section): Likewise.
10933 * config/mips/mips.c (mips_block_move_straight,
10934 mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
10935 Likewise.
10936 * config/mmix/mmix.c (mmix_init_machine_status,
10937 mmix_encode_section_info): Likewise.
10938 * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
10939 * config/rs6000/rs6000.c (rs6000_init_machine_status,
10940 print_operand_address, output_toc, redefine_groups,
10941 rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
10942 * config/s390/s390.c (s390_init_machine_status): Likewise.
10943 * config/score/score.c (score_block_move_straight,
10944 score_block_move_loop_body): Likewise.
10945 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
10946 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
10947 * emit-rtl.c (find_auto_inc): Likewise.
10948 * gcc.c (translate_options, process_command): Likewise.
10949 * reorg.c (dbr_schedule): Likewise.
10950 * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
10951 * xcoffout.c (xcoffout_declare_function): Likewise.
10952
10953 2008-06-27 Daniel Berlin <dberlin@dberlin.org>
10954
10955 * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
10956 ipa-pta working again.
10957
10958 2008-06-27 David Edelsohn <edelsohn@gnu.org>
10959
10960 * config/rs6000/t-aix52: Append large data option to LDFLAGS for
10961 genautomata.
10962
10963 2008-06-27 Edmar Wienskoski <edmar@freescale.com>
10964
10965 * config.gcc (powerpc*-*-*): Add new core e500mc.
10966 * config/rs6000/e500mc.md: New file.
10967 * config/rs6000/rs6000.c (processor_costs): Add new costs for
10968 e500mc.
10969 (rs6000_override_options): Add e500mc case to
10970 processor_target_table. Altivec and Spe options not allowed
10971 with e500mc. Add isel instruction to e500mc by
10972 default. Initialize rs6000_cost for e500mc.
10973 (rs6000_issue_rate): Set issue rate for e500mc.
10974 * config/rs6000/rs6000.h (processor_type): Add
10975 PROCESSOR_PPCE500MC.
10976 (ASM_CPU_SPEC): Add e500mc.
10977 Set TARGET_ISEL to rs6000_isel.
10978 * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
10979 (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
10980 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
10981 Include e500mc.md.
10982 * doc/invoke.texi: Add e500mc to list of cpus.
10983
10984 2008-06-27 Laurynas Biveinis <laurynas.biveinis@gmail.com>
10985
10986 PR c/34867
10987 * c-lex.c (lex_charconst): Initialize unsignedp.
10988
10989 2008-06-27 Olivier Hainque <hainque@adacore.com>
10990
10991 * gimplify.c (gimplify_modify_expr_to_memset): Assert our
10992 documented assumptions.
10993
10994 2008-06-26 H.J. Lu <hongjiu.lu@intel.com>
10995
10996 * dwarf2out.c: Remove trailing white spaces. Break long line
10997 in comments.
10998
10999 2008-06-26 Richard Sandiford <rdsandiford@googlemail.com>
11000
11001 * libfuncs.h (LTI_synchronize): New libfunc_index.
11002 (synchronize_libfunc): Declare.
11003 * builtins.c (expand_builtin_synchronize): Consider using
11004 synchronize_libfunc before falling back on an asm blockage.
11005 * config/mips/mips.c: Include libfuncs.h
11006 (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
11007
11008 2008-06-26 Nathan Froyd <froydnj@codesourcery.com>
11009
11010 * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
11011 parameter. Copy stack_reg to r11 where appropriate.
11012 (no_global_regs_above): Add gpr parameter.
11013 (rs6000_stack_info): Only add padding for SPE save area if we
11014 are saving SPE GPRs and CR.
11015 (saveres_routine_syms): New variable.
11016 (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
11017 Define.
11018 (rs6000_savres_routine_sym): New function.
11019 (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
11020 split out of...
11021 (rs6000_emit_epilogue): ...here. Use rs6000_use_multiple_p and
11022 rs6000_savres_strategy. Restore GPRs out-of-line if appropriate.
11023 Tweak FPR out-of-line saving.
11024 (rs6000_make_savres_rtx): New function.
11025 (rs6000_use_multiple_p): New function.
11026 (rs6000_savres_strategy): New function.
11027 (rs6000_emit_prologue): Use rs6000_savres_strategy. Save GPRs
11028 out-of-line if appropriate.
11029 * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
11030 if we are optimizing for size.
11031 (GP_SAVE_INLINE): Define.
11032 (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
11033 * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
11034 * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
11035 * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
11036 (*save_fpregs_<mode>): Add use of r11.
11037 (*restore_gpregs_<mode>): New insn.
11038 (*return_and_restore_gpregs_<mode>): New insn.
11039 (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
11040 use r11.
11041 * config/rs6000/spe.md (*save_gpregs_spe): New insn.
11042 (*restore_gpregs_spe): New insn.
11043 (*return_and_restore_gpregs_spe): New insn.
11044 * config/rs6000/predicates.md (save_world_operation): Fix check.
11045
11046 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
11047
11048 * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
11049 this point, so assert that.
11050
11051 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
11052
11053 * cfganal.c: Include vec.h and vecprim.h.
11054 (compute_idf): Import from...
11055 * tree-into-ssa (compute_idf): ...here.
11056 * basic-block.h (compute_idf): Export.
11057
11058 2008-06-26 Joseph Myers <joseph@codesourcery.com>
11059
11060 * c-decl.c (merge_decls): Use !current_function_decl to check for
11061 extern declaration of C99 inline function being at file scope.
11062
11063 2008-06-25 John David Anglin <dave.anglin@gcc-cnrc.gc.ca>
11064
11065 * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
11066
11067 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11068
11069 * alias.c (record_alias_subset, init_alias_analysis): Fix
11070 -Wc++-compat and/or -Wcast-qual warnings.
11071 * attribs.c (lookup_attribute_spec): Likewise.
11072 * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
11073 copy_bb, connect_traces,
11074 find_rarely_executed_basic_blocks_and_cr): Likewise.
11075 * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
11076 note_btr_set, migrate_btr_defs): Likewise.
11077 * builtins.c (result_vector, expand_builtin_memcpy,
11078 expand_builtin_mempcpy_args, expand_builtin_strncpy,
11079 builtin_memset_read_str, expand_builtin_printf,
11080 fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
11081 Likewise.
11082 * caller-save.c (mark_set_regs): Likewise.
11083 * calls.c (expand_call, emit_library_call_value_1): Likewise.
11084 * cgraph.c (cgraph_edge): Likewise.
11085 * combine.c (likely_spilled_retval_1): Likewise.
11086 * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
11087 htab_counts_entry_del, get_coverage_counts): Likewise.
11088 * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
11089 new_cselib_val): Likewise.
11090 * dbgcnt.c (dbg_cnt_process_opt): Likewise.
11091 * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
11092 Likewise.
11093 * df-core.c (df_compact_blocks): Likewise.
11094 * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
11095 * df-scan.c (df_grow_reg_info, df_ref_create,
11096 df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
11097 df_ref_compare, df_ref_create_structure, df_bb_refs_record,
11098 df_record_entry_block_defs, df_record_exit_block_uses,
11099 df_bb_verify): Likewise.
11100 * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
11101 DF_REF_EXTRACT_MODE_CONST): New.
11102 * dominance.c (get_immediate_dominator, get_dominated_by,
11103 nearest_common_dominator, root_of_dom_tree,
11104 iterate_fix_dominators, first_dom_son, next_dom_son): Fix
11105 -Wc++-compat and/or -Wcast-qual warnings.
11106 * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
11107 record_store, replace_read, check_mem_read_rtx, scan_insn,
11108 dse_step1, dse_record_singleton_alias_set): Likewise.
11109 * dwarf2asm.c (dw2_force_const_mem): Likewise.
11110
11111 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11112
11113 * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
11114 dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
11115 lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
11116 assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
11117 build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
11118 add_ranges_num, add_ranges_by_labels, file_info_cmp,
11119 file_name_acquire, output_file_names, add_const_value_attribute,
11120 premark_used_types_helper, file_table_eq, file_table_hash,
11121 lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
11122 dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
11123 -Wcast-qual warnings.
11124 * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
11125 ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
11126 * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
11127 gen_reg_rtx, start_sequence, init_emit): Likewise.
11128 * et-forest.c (et_new_occ, et_new_tree): Likewise.
11129 * except.c (init_eh_for_function, gen_eh_region,
11130 remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
11131 arh_to_landing_pad, arh_to_label, add_action_record,
11132 add_call_site, switch_to_exception_section): Likewise.
11133 * expmed.c (synth_mult): Likewise.
11134 * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
11135 store_expr): Likewise.
11136 * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
11137 Likewise.
11138 * function.c (assign_stack_temp_for_type,
11139 allocate_struct_function, match_asm_constraints_1): Likewise.
11140 * gcov-io.c (gcov_allocate): Likewise.
11141 * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
11142 GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
11143 (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
11144 record_one_set, insert_expr_in_table, insert_set_in_table,
11145 dump_hash_table, compute_hash_table_work, alloc_hash_table,
11146 pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
11147 reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
11148 -Wcast-qual warnings.
11149
11150 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11151
11152 * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
11153 -Wcast-qual warnings.
11154 * gcc.c (process_command): Likewise.
11155 * genattrtab.c (oballoc): Use XOBNEW.
11156 (oballocvec): Define.
11157 (attr_hash_add_rtx, attr_hash_add_string, attr_string,
11158 get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
11159 gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
11160 -Wc++-compat and/or -Wcast-qual warnings.
11161 * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
11162 XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
11163 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
11164 gen_presence_absence_set, gen_automaton, gen_regexp_el,
11165 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
11166 gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
11167 add_excls, process_presence_absence_names,
11168 process_presence_absence_patterns, add_presence_absence,
11169 process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
11170 get_free_state, add_arc, get_free_automata_list_el,
11171 form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
11172 transform_3, cache_presence, create_ainsns, create_automata,
11173 create_state_ainsn_table, dfa_insn_code_enlarge,
11174 output_trans_func, output_min_issue_delay_func,
11175 output_dead_lock_func, output_reset_func,
11176 output_get_cpu_unit_code_func, output_dfa_start_func,
11177 expand_automata): Likewise.
11178 * genextract.c (gen_insn): Likewise.
11179 * gengtype-lex.l: Likewise.
11180 * gengtype.c (read_input_list, adjust_field_type,
11181 process_gc_options): Likewise.
11182 * genoutput.c (note_constraint): Likewise.
11183 * genpreds.c (mangle, add_constraint): Likewise.
11184 * genrecog.c (process_define_predicate, new_decision,
11185 add_to_sequence): Likewise.
11186 * gensupport.c (record_insn_name): Likewise.
11187
11188 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11189
11190 * config/i386/driver-i386.c (detect_caches_amd,
11191 detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
11192 and/or -Wcast-qual warnings.
11193 *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
11194 gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
11195 gt_pch_save): Likewise.
11196 * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
11197 gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
11198 * global.c (compute_regsets): Likewise.
11199 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
11200 finish_graph_dump_file): Likewise.
11201 * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
11202 unlink_bb_notes): Likewise.
11203 * integrate.c (get_hard_reg_initial_val): Likewise.
11204 * ipa-prop.c (ipa_push_func_to_list): Likewise.
11205 * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
11206 * local-alloc.c (update_equiv_regs): Likewise.
11207 * loop-invariant.c (check_invariant_table_size,
11208 hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
11209 Likewise.
11210 * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
11211 altered_reg_used, mark_altered): Likewise.
11212 * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
11213 insert_var_expansion_initialization,
11214 combine_var_copies_in_loop_exit, apply_opt_in_copies,
11215 release_var_copies): Likewise.
11216 * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
11217 analyze_matrix_decl, add_allocation_site, analyze_transpose,
11218 analyze_accesses_for_phi_node, check_var_notmodified_p,
11219 check_allocation_function, find_sites_in_func,
11220 record_all_accesses_in_func, transform_access_sites,
11221 transform_allocation_sites): Likewise.
11222 * omp-low.c (new_omp_region, create_omp_child_function_name,
11223 check_omp_nesting_restrictions, check_combined_parallel,
11224 lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
11225 * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
11226 gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
11227 gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
11228 Likewise.
11229 * opts-common.c (prune_options): Likewise.
11230 * opts.c (add_input_filename, print_filtered_help,
11231 get_option_state): Likewise.
11232 * params.c (add_params): Likewise.
11233 * passes.c (set_pass_for_id, next_pass_1,
11234 do_per_function_toporder, pass_fini_dump_file): Likewise.
11235 * postreload.c (reload_cse_simplify_operands): Likewise.
11236 * predict.c (tree_predicted_by_p, tree_predict_edge,
11237 clear_bb_predictions, combine_predictions_for_bb): Likewise.
11238
11239 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11240
11241 * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
11242 warnings.
11243 * recog.c (check_asm_operands, validate_change_1): Likewise.
11244 * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
11245 subst_asm_stack_regs): Likewise.
11246 * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
11247 cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
11248 * regmove.c (reg_is_remote_constant_p): Likewise.
11249 * regrename.c (regrename_optimize, scan_rtx_reg,
11250 kill_clobbered_value, kill_set_value, kill_autoinc_value):
11251 Likewise.
11252 * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
11253 regstat_compute_calls_crossed): Likewise.
11254 * reload1.c (init_reload, new_insn_chain,
11255 has_nonexceptional_receiver, reload, copy_reloads,
11256 calculate_needs_all_insns, init_elim_table): Likewise.
11257 * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
11258 * rtl.c (shallow_copy_rtx_stat): Likewise.
11259 * rtlanal.c (parms_set): Likewise.
11260 * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
11261 sbitmap_resize, sbitmap_vector_alloc): Likewise.
11262 * sched-ebb.c (earliest_block_with_similiar_load,
11263 add_deps_for_risky_insns): Likewise.
11264 * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
11265 schedule_region): Likewise.
11266 * see.c (eq_descriptor_pre_extension,
11267 hash_descriptor_pre_extension, hash_del_pre_extension,
11268 eq_descriptor_properties, hash_descriptor_properties,
11269 hash_del_properties, see_seek_pre_extension_expr,
11270 see_initialize_data_structures, see_print_register_properties,
11271 see_print_pre_extension_expr, see_delete_merged_def_extension,
11272 see_delete_unmerged_def_extension, see_emit_use_extension,
11273 see_pre_delete_extension, see_map_extension, see_commit_changes,
11274 see_analyze_merged_def_local_prop,
11275 see_analyze_merged_def_local_prop,
11276 see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
11277 see_set_prop_merged_def, see_set_prop_unmerged_def,
11278 see_set_prop_unmerged_use, see_print_one_extension,
11279 see_merge_one_use_extension, see_merge_one_def_extension,
11280 see_store_reference_and_extension, see_update_uses_relevancy,
11281 see_update_defs_relevancy): Likewise.
11282 * statistics.c (hash_statistics_hash, hash_statistics_eq,
11283 hash_statistics_free, curr_statistics_hash): Likewise.
11284 * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
11285 expand_asm_operands, expand_return, case_bit_test_cmp,
11286 expand_case): Likewise.
11287 * stor-layout.c (start_record_layout): Likewise.
11288 * stringpool.c (ggc_alloc_string, gt_pch_n_S,
11289 gt_pch_save_stringpool): Likewise.
11290 * tree-data-ref.c (hash_stmt_vertex_info,
11291 have_similar_memory_accesses_1, ref_base_address_1): Likewise.
11292 * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
11293
11294 2008-06-25 Uros Bizjak <ubizjak@gmail.com>
11295
11296 PR target/36627
11297 * config/i386/i386.md : Change constraints of HImode and QImode
11298 immediate operands from "i" to "n". Change SImode "ni" constraint to
11299 "i" and SImode "rmi" constraint to "g". Remove all constraints
11300 from const0_operand and const1_operand predicated operands.
11301 (i): Change QImode and HImode attribute from "i" to "n".
11302 (*subqi_2): Change HImode operands to QImode.
11303 (*subqi_3): Ditto.
11304
11305 2008-06-25 Olivier Hainque <hainque@adacore.com>
11306
11307 * Makefile.in (GTFILES_H): Use | instead of ; as separator in
11308 sed substitutions.
11309
11310 2008-06-25 Richard Guenther <rguenther@suse.de>
11311
11312 * tree-ssa-structalias.c (fieldoff_compare): Make sure to
11313 not overflow the result type.
11314
11315 2008-06-25 Richard Guenther <rguenther@suse.de>
11316
11317 * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
11318 (vn_lookup): Likewise.
11319
11320 2008-06-25 Richard Guenther <rguenther@suse.de>
11321
11322 PR tree-optimization/35518
11323 * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
11324 * tree-sra.c (instantiate_element): Use fold_build3 to build
11325 BIT_FIELD_REFs.
11326 (try_instantiate_multiple_fields): Likewise.
11327
11328 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
11329
11330 * config/rs6000/rs6000.md: Change all string instruction's clobber to
11331 be early clobbers.
11332
11333 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
11334
11335 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
11336 use_backchain_to_restore_sp to true
11337 if the offset of the link register save area would go over the 32k - 1
11338 offset limit of the load
11339 instructions.
11340
11341 2008-06-25 Hans-Peter Nilsson <hp@axis.com>
11342
11343 * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
11344 anchor for the type-punning blurb. Cross-reference "Structures
11345 unions enumerations and bit-fields implementation". Provide a
11346 cast-through-pointer example. Make final sentence self-contained.
11347 * doc/implement-c.texi (Structures unions enumerations and
11348 bit-fields implementation): Cross-reference the type-punning blurb
11349 in the -fstrict-aliasing documentation.
11350
11351 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
11352
11353 PR middle-end/36594
11354 * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
11355 the memory instead of the memory itself for the save area.
11356
11357 2008-06-24 Olivier Hainque <hainque@adacore.com>
11358 Nicolas Roche <roche@adacore.com>
11359
11360 * gengtype.c (srcdir_len): size_t instead of int.
11361 (get_file_realbasename): New function. For F a filename, the real
11362 basename of F, with all the path components stripped.
11363 (get_file_srcdir_relative_path): New function. For F a filename, the
11364 relative path to F from $(srcdir).
11365 (get_file_basename): Rewrite using get_file_srcdir_relative_path and
11366 get_file_realbasename. Adjust the head comment.
11367 (get_prefix_langdir_index): New function. For F a filename, return the
11368 lang_dir_names[] relative index of the language directory that is
11369 a prefix in F.
11370 (get_file_langdir): For F a filename, return the name of the language
11371 directory where F is located.
11372 (get_file_gtfilename): New function. The gt- output file name for an
11373 input filename F.
11374 (get_output_file_with_visibility): Replace in-line computations with
11375 uses of get_file_gtfilename and get_prefix_langdir_index.
11376 * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
11377
11378 2008-06-24 Jakub Jelinek <jakub@redhat.com>
11379
11380 PR tree-optimization/36504
11381 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
11382 references without base address.
11383
11384 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
11385
11386 PR middle-end/36584
11387 * calls.c (expand_call): Increase alignment for recursive functions.
11388
11389 2008-06-23 Anatoly Sokolov <aesok@post.ru>
11390
11391 * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
11392 (TARGET_FUNCTION_VALUE): New define.
11393 * config/avr/avr-protos.h (avr_function_value): Remove declaration.
11394 * config/avr/avr.h (FUNCTION_VALUE): Remove.
11395
11396 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
11397
11398 * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
11399 (fmod<mode>3): Ditto.
11400 (remainderxf3): Ditto.
11401 (remainder<mode>3): Ditto.
11402
11403 2008-06-23 Jakub Jelinek <jakub@redhat.com>
11404
11405 PR target/36533
11406 * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
11407 REG is a hard register.
11408
11409 PR tree-optimization/36508
11410 * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
11411 499, don't check it at all in release compilers.
11412
11413 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
11414
11415 * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
11416 together with SSE_TARGET_MATH to disable insn pattern.
11417 (*fop_<MODEF:mode>_2_i387): Ditto.
11418 (*fop_<MODEF:mode>_3_i387): Ditto.
11419
11420 2008-06-22 Andy Hutchinson <hutchinsonandy@aim.com>
11421
11422 * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
11423
11424 2008-06-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11425
11426 PR middle-end/34906
11427 * gimplify.c (gimplify_asm_expr): Check the return code of
11428 parse_output_constraint call, set function return and is_inout
11429 value if it failed.
11430
11431 2008-06-22 Ian Lance Taylor <iant@google.com>
11432
11433 * c-lex.c (narrowest_unsigned_type): Change itk to int.
11434 (narrowest_signed_type): Likewise.
11435 * c-typeck.c (c_common_type): Change local variable mclass to enum
11436 mode_class, twice.
11437 (parser_build_binary_op): Compare the TREE_CODE_CLASS with
11438 tcc_comparison, not the tree code itself.
11439 * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
11440 (c_expand_expr): Cast modifier to enum expand_modifier.
11441 * c-common.h (C_RID_CODE): Add casts.
11442 (C_SET_RID_CODE): Define.
11443 * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
11444 (c_lex_one_token): Add cast to avoid warning.
11445 (c_parser_objc_type_name): Rename local typename to type_name.
11446 (check_no_duplicate_clause): Change code parameter to enum
11447 omp_clause_code.
11448 (c_parser_omp_var_list_parens): Change kind parameter to enum
11449 omp_clause_code.
11450 (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
11451 c_parser_omp_list_var_parens.
11452 (c_parser_omp_threadprivate): Likewise.
11453 * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
11454 * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
11455 * c-format.c (NO_FMT): Define.
11456 (printf_length_specs): Use NO_FMT.
11457 (asm_fprintf_length_specs): Likewise.
11458 (gcc_diag_length_specs): Likewise.
11459 (scanf_length_specs): Likewise.
11460 (strfmon_length_specs): Likewise.
11461 (gcc_gfc_length_specs): Likewise.
11462 (printf_flag_specs): Change 0 to STD_C89.
11463 (asm_fprintf_flag_specs): Likewise.
11464 (gcc_diag_flag_specs): Likewise.
11465 (gcc_cxxdiag_flag_specs): Likewise.
11466 (scanf_flag_specs): Likewise.
11467 (strftime_flag_specs): Likewise.
11468 (strfmon_flag_specs): Likewise.
11469 (print_char_table): Likewise.
11470 (asm_fprintf_char_table): Likewise.
11471 (gcc_diag_char_table): Likewise.
11472 (gcc_tdiag_char_table): Likewise.
11473 (gcc_cdiag_char_table): Likewise.
11474 (gcc_cxxdiag_char_table): Likewise.
11475 (gcc_gfc_char_table): Likewise.
11476 (scan_char_table): Likewise.
11477 (time_char_table): Likewis.
11478 (monetary_char_table): Likewise.
11479 * c-format.h (BADLEN): Likewise.
11480
11481 2008-06-21 Ian Lance Taylor <iant@google.com>
11482
11483 * tree.h (enum tree_code): Include all-tree.def, not tree.def.
11484 Define END_OF_BASE_TREE_CODES around inclusion.
11485 * tree.c (tree_code_type): New global array.
11486 (tree_code_length, tree_code_name): Likewise.
11487 * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
11488 $(lang_tree_files).
11489 (all-tree.def, s-alltree): New targets.
11490 (gencheck.h, s-gencheck): Remove.
11491 (tree.o): Depend upon all-tree.def.
11492 (build/gencheck.o): Remove gencheck.h dependency.
11493 (mostlyclean): Don't remove gencheck.h.
11494 * c-common.h (enum c_tree_code): Remove.
11495 * c-lang.c (tree_code_type): Remove.
11496 (tree_code_length, tree_code_name): Remove.
11497 * gencheck.c (tree_codes): Include all-tree.def, rather than
11498 tree.def, c-common.def, and gencheck.h. Undefined DEFTREECODE
11499 after it is used.
11500 * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
11501 than tree.def.
11502 * cp/cp-tree.h (enum cplus_tree_code): Remove.
11503 (operator_name_info): Size to MAX_TREE_CODES.
11504 (assignment_operator_name_info): Likewise.
11505 * cp/cp-lang.c (tree_code_type): Remove.
11506 (tree_code_length, tree_code_name): Remove.
11507 * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
11508 (assignment_operator_name_info): Likewise.
11509 * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
11510 MAX_TREE_CODES.
11511 * cp/mangle.c (write_expression): Likewise.
11512 * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
11513 * fortran/f95-lang.c (tree_code_type): Remove.
11514 (tree_code_length, tree_code_name): Remove.
11515 * java/java-tree.h (enum java_tree_code): Remove.
11516 * java/lang.c (tree_code_type): Remove.
11517 (tree_code_length, tree_code_name): Remove.
11518 * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
11519 * objc/objc-act.h (enum objc_tree_code): Remove.
11520 * objc/objc-lang.c (tree_code_type): Remove.
11521 (tree_code_length, tree_code_name): Remove.
11522 * objcp/objcp-lang.c (tree_code_type): Remove.
11523 (tree_code_length, tree_code_name): Remove.
11524 * ada/ada-tree.h (enum gnat_tree_code): Remove.
11525 * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
11526 * ada/misc.c (tree_code_type): Remove.
11527 (tree_code_length, tree_code_name): Remove.
11528
11529 2008-06-21 Bernhard Fischer <aldot@gcc.gnu.org>
11530
11531 * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
11532 the grand_bitmap_obstack.
11533
11534 2008-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11535
11536 * ggc.h (GGC_RESIZEVAR): New, reorder macros.
11537 * tracer.c (tail_duplicate): Fix for -Wc++-compat.
11538 * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
11539 * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
11540 move_stmt_r, new_label_mapper): Likewise.
11541 * tree-complex.c (cvc_lookup): Likewise.
11542 * tree-dfa.c (create_function_ann): Likewise.
11543 * tree-dump.c (dump_register): Likewise.
11544 * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
11545 find_phi_replacement_condition): Likewise.
11546 * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
11547 tree_function_versioning): Likewise.
11548 * tree-into-ssa.c (cmp_dfsnum): Likewise.
11549 * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
11550 * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
11551 get_nonlocal_debug_decl, convert_nonlocal_reference,
11552 convert_nonlocal_omp_clauses, get_local_debug_decl,
11553 convert_local_reference, convert_local_omp_clauses,
11554 convert_nl_goto_reference, convert_nl_goto_receiver,
11555 convert_tramp_reference, convert_call_expr): Likewise.
11556 * tree-outof-ssa.c (contains_tree_r): Likewise.
11557 * tree-parloops.c (reduction_phi, initialize_reductions,
11558 eliminate_local_variables_1, add_field_for_reduction,
11559 add_field_for_name, create_phi_for_local_result,
11560 create_call_for_reduction_1, create_loads_for_reductions,
11561 create_stores_for_reduction, create_loads_and_stores_for_name):
11562 Likewise.
11563 * tree-phinodes.c (allocate_phi_node): Likewise.
11564 * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
11565 * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
11566 * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
11567 * tree-ssa-coalesce.c (compare_pairs): Likewise.
11568 * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
11569 memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
11570 record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
11571 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
11572 * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
11573 vn_nary_op_insert): Likewise.
11574 * tree-ssa.c (redirect_edge_var_map_add,
11575 redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
11576 * tree-vectorizer.c (vectorize_loops): Likewise.
11577 * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
11578 build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
11579 tree_cons_stat, build1_stat, build_variant_type_copy,
11580 decl_init_priority_lookup, decl_fini_priority_lookup,
11581 decl_priority_info, decl_restrict_base_lookup,
11582 decl_restrict_base_insert, decl_debug_expr_lookup,
11583 decl_debug_expr_insert, decl_value_expr_lookup,
11584 decl_value_expr_insert, type_hash_eq, type_hash_lookup,
11585 type_hash_add, get_file_function_name, tree_check_failed,
11586 tree_not_check_failed, tree_range_check_failed,
11587 omp_clause_range_check_failed, build_omp_clause,
11588 build_vl_exp_stat): Likewise.
11589 * value-prof.c (gimple_histogram_value,
11590 gimple_duplicate_stmt_histograms): Likewise.
11591 * var-tracking.c (attrs_list_insert, attrs_list_copy,
11592 unshare_variable, variable_union_info_cmp_pos, variable_union,
11593 dataflow_set_different_1, dataflow_set_different_2,
11594 vt_find_locations, variable_was_changed, set_variable_part,
11595 emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
11596 * varasm.c (prefix_name, emutls_decl, section_entry_eq,
11597 section_entry_hash, object_block_entry_eq,
11598 object_block_entry_hash, create_block_symbol,
11599 initialize_cold_section_name, default_function_rodata_section,
11600 strip_reg_name, set_user_assembler_name, const_desc_eq,
11601 build_constant_desc, output_constant_def, lookup_constant_def,
11602 const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
11603 create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
11604 default_internal_label): Likewise.
11605 * varray.c (varray_init, varray_grow): Likewise.
11606 * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
11607
11608 2008-06-20 Uros Bizjak <ubizjak@gmail.com>
11609
11610 * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
11611 operators for "test" insn. Macroize insn using SWI mode macro.
11612 (*jcc_fused_2): Ditto.
11613 (*jcc_fused_3): Macroize insn using SWI mode macro.
11614 (*jcc_fused_4): Ditto.
11615
11616 2008-06-20 Bernhard Fischer <aldot@gcc.gnu.org>
11617
11618 * tree-ssa-pre.c: Fix typo in comment.
11619 (init_antic, fini_antic): Add explicit funtions for
11620 initializing and deinitializing ANTIC and AVAIL sets.
11621 (create_expression_by_pieces): Fix typo in comment.
11622 Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
11623 (execute_pre): Eventually dump details about ANTIC_IN.
11624
11625 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11626
11627 * collect2.c (main, add_to_list): Fix for -Wc++-compat.
11628 * gcc.c (translate_options, init_spec, store_arg, read_specs,
11629 add_to_obstack, file_at_path, find_a_file, execute,
11630 add_preprocessor_option, add_assembler_option, add_linker_option,
11631 process_command, insert_wrapper, do_option_spec, do_self_spec,
11632 spec_path, do_spec_1, is_directory, main, used_arg,
11633 getenv_spec_function): Likewise.
11634 * tlink.c (symbol_hash_lookup, file_hash_lookup,
11635 demangled_hash_lookup, symbol_push, file_push, frob_extension):
11636 Likewise.
11637
11638 2008-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
11639
11640 * doc/rtl.texi: Updated subreg section.
11641
11642 2008-06-19 Jakub Jelinek <jakub@redhat.com>
11643
11644 PR c++/36523
11645 * cgraphunit.c (cgraph_process_new_functions): Don't clear
11646 node->needed and node->reachable.
11647 * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
11648 * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
11649 (expand_task_call): Don't call expand_task_copyfn.
11650 (expand_task_copyfn): Renamed to...
11651 (finalize_task_copyfn): ... this.
11652
11653 2008-06-19 Jan Hubicka <jh@suse.cz>
11654
11655 * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
11656 clobbering framepointer.
11657
11658 2008-06-19 Jan Hubicka <jh@suse.cz>
11659
11660 * tree-optimize.c (execute_early_local_optimizations): Set
11661 cgraph_state only at first invocation.
11662
11663 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11664
11665 * system.h (-Wc++-compat): Activate as a warning, no an error.
11666
11667 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
11668
11669 * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
11670 instead of "#" in insn asm template.
11671 (*jcc_fused_2): Ditto.
11672
11673 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
11674
11675 * config/i386/i386.h (ix86_tune_indices)
11676 [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
11677 (TARGET_FUSE_CMP_AND_BRANCH): New define.
11678 * config/i386/i386.md (*jcc_fused_1): New insn pattern
11679 (*jcc_fused_2): Ditto.
11680 * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
11681 X86_TUNE_FUSE_CMP_AND_BRANCH targets.
11682 (print operand): Handle 'E' and 'e' code.
11683
11684 2008-06-19 Anatoly Sokolov <aesok@post.ru>
11685
11686 * config/avr/avr.c (avr_mcu_t): Add attiny13a.
11687 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
11688 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
11689
11690 2008-06-19 Bernhard Fischer <aldot@gcc.gnu.org>
11691
11692 * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
11693 node->decl.
11694 (cgraph_expand_function): Use local copy of decl.
11695 (cgraph_expand_all_functions): Remove redundant initialization of
11696 order_pos.
11697 (cgraph_optimize): Reword internal_error message.
11698
11699 2008-06-19 Chung-Lin Tang <ctang@marvell.com>
11700
11701 * arm-protos.h (arm_return_in_memory): Remove public
11702 arm_return_in_memory() prototype.
11703 * arm.c (arm_return_in_memory): Add static prototype, add target
11704 hook macro, change definition and comments.
11705 * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
11706
11707 2008-06-19 Ben Elliston <bje@au.ibm.com>
11708
11709 * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
11710 real.c: Remove references to IEEE 754R.
11711 * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
11712 * doc/libgcc.texi (Decimal float library routines): Likewise.
11713
11714 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11715
11716 * targhooks.h (struct gcc_target): New member unwind_word_mode.
11717 (default_unwind_word_mode): Add prototype.
11718 * targhooks.c (default_unwind_word_mode): New function.
11719 (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
11720 instead of word_mode.
11721 * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
11722 (TARGET_INITIALIZER): Use it.
11723
11724 * c-common.c (handle_mode_attribute): Support "unwind_word"
11725 mode attribute.
11726 * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
11727
11728 * except.c (init_eh): Use targetm.unwind_word_mode () instead of
11729 word_mode to access SjLj_Function_Context member "data".
11730 (sjlj_emit_dispatch_table): Likewise. Also, perform type
11731 conversion from targetm.eh_return_filter_mode () to
11732 targetm.unwind_word_mode () if they differ.
11733
11734 * builtin-types.def (BT_UNWINDWORD): New primitive type.
11735 (BT_FN_UNWINDWORD_PTR): New function type.
11736 (BT_FN_WORD_PTR): Remove.
11737 * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
11738 * except.c (expand_builtin_extend_pointer): Convert pointer to
11739 targetm.unwind_word_mode () instead of word_mode.
11740
11741 * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
11742 * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
11743 (spu_unwind_word_mode): New function.
11744 (TARGET_EH_RETURN_FILTER_MODE): Do not define.
11745 (TARGET_UNWIND_WORD_MODE): Define.
11746 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
11747
11748 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11749
11750 * config/spu/spu.c (reg_align): Remove.
11751 (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
11752 (spu_split_load): Use regno_aligned_for_load instead of reg_align.
11753 (spu_split_store): Likewise.
11754
11755 2008-06-18 Bernhard Fischer <aldot@gcc.gnu.org>
11756
11757 * gcc/tree-vn.c: Fix typo in comment.
11758
11759 2008-06-18 Jan Hubicka <jh@suse.cz>
11760
11761 * cgraphunit.c (cgraph_optimize): Output debug info when doing
11762 toplevel reorder too.
11763
11764 2008-06-18 Jan Hubicka <jh@suse.cz>
11765
11766 * c-opts.c (c_common_post_options): PCH is not compatible with
11767 no-unit-at-a-time.
11768 * opts.c (handle_options): Enable unit-at-a-time at O0 along with
11769 -fno-toplevel-reorder by default now.
11770
11771 2008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11772
11773 PR documentation/30739
11774 * doc/install.texi (Prerequisites): Document dependency on awk.
11775
11776 2008-06-18 Uros Bizjak <ubizjak@gmail.com>
11777 Ian Lance Taylor <iant@google.com>
11778
11779 PR rtl-optimization/35604
11780 * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
11781 only want to change jump destinations, not eventual label comparisons.
11782
11783 2008-06-16 Jan Hubicka <jh@suse.cz>
11784
11785 * cgraphunit.c (cgraph_expand_pending_functions): Give up at
11786 syntax errors.
11787 (cgraph_analyze_function): Likewise.
11788
11789 2008-06-16 Jan Hubicka <jh@suse.cz>
11790
11791 * cgraph.h (cgraph_mark_if_needed): New function.
11792 * cgraphunit.c (cgraph_mark_if_needed): New function.
11793 * c-decl.c (duplicate_decl): Use it.
11794
11795 2008-06-16 Jan Hubicka <jh@suse.cz>
11796
11797 * cgraph.c (cgraph_add_new_function): When in expansion state, do
11798 lowering.
11799
11800 2008-06-16 Jan Hubicka <jh@suse.cz>
11801
11802 * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
11803
11804 2008-06-16 Daniel Jacobowitz <dan@codesourcery.com>
11805 Kazu Hirata <kazu@codesourcery.com>
11806 Maxim Kuvyrkov <maxim@codesourcery.com
11807
11808 * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
11809 * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
11810 * config/mips/linux.h (host_detect_local_cpu): Declare, add to
11811 EXTRA_SPEC_FUNCTIONS.
11812 (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
11813 (DRIVER_SELF_SPECS): Adjust.
11814 * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
11815 * config/mips/st.h, config/mips/t-st: New.
11816 * config/mips/driver-native.c, config/mips/x-native: New.
11817 * doc/invoke.texi (MIPS): Document 'native' value for -march and
11818 -mtune options.
11819
11820 2008-06-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11821
11822 * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
11823 from it.
11824 (ISA_HAS_FP_CONDMOVE): New macro.
11825 (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
11826 (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
11827 (ISA_HAS_NMADD3_NMSUB3): New macro.
11828 * config/mips/mips.c (mips_rtx_costs): Update.
11829 * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
11830 compiling for ST Loongson 2E/2F.
11831 (madd<mode>): Rename to madd4<mode>. Update.
11832 (madd3<mode>): New pattern.
11833 (msub<mode>): Rename to msub4<mode>. Update.
11834 (msub3<mode>): New pattern.
11835 (nmadd<mode>): Rename to nmadd4<mode>. Update.
11836 (nmadd3<mode>): New pattern.
11837 (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath. Update.
11838 (nmadd3<mode>_fastmath): New pattern.
11839 (nmsub<mode>): Rename to nmsub4<mode>. Update.
11840 (nmsub3<mode>): New pattern.
11841 (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath. Update.
11842 (nmsub3<mode>_fastmath): New pattern.
11843 (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
11844
11845 2008-06-18 Steven Bosscher <steven@gcc.gnu.org>
11846
11847 * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
11848 (DF_REF_INSN_INFO): New.
11849 (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
11850 (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
11851 with a NULL DF_REF_INSN_INFO.
11852 (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
11853 DF_INSN_SET.
11854 (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
11855 DF_INSN_INFO_EQ_USES): New.
11856 (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
11857 DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
11858 DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
11859 * df-core.c: Update comment for above changes.
11860 (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
11861 DF_INSN_UID_* macros.
11862 (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
11863 * df-scan.c (df_ref_record): Take a df_insn_info instead of an
11864 insn rtx. Update all callers.
11865 (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
11866 df_ref_create_structure, df_insn_refs_collect): Likewise.
11867 (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
11868 * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
11869 (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
11870 macros to access the insn refs.
11871 (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
11872 * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
11873 (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
11874 for accessing the refs.
11875 (try_fwprop_subst): Likewise.
11876 * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
11877 * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
11878 for accessing the refs.
11879 * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
11880 (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
11881 to look at the insn refs.
11882 (record_uses): Likewise.
11883 * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
11884 function anymore.
11885 (mark_artificial_uses): Don't mark_insn for artificial refs.
11886 (mark_reg_rependencies): Likewise.
11887
11888 * doc/rtl.texi: Remove documentation of ADDRESSOF.
11889
11890 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11891
11892 * configure: Regenerate.
11893
11894 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
11895
11896 * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
11897 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
11898 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11899
11900 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
11901
11902 * config/avr/avr.c (avr_mcu_t): Add attiny167.
11903 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
11904 * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11905
11906 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
11907
11908 * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
11909 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
11910 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11911
11912 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
11913
11914 * tree-ssa-sccvn.c: Fix format of comments.
11915
11916 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
11917
11918 * cgraph.c: Remove unneeded forward declarations of eq_node()
11919 and hash_node().
11920
11921 2008-06-17 Steven Bosscher <steven@gcc.gnu.org>
11922
11923 * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
11924 REG_RETVAL notes.
11925 (see_update_relevancy): Likewise.
11926 * fwprop.c (try_fwprop_subst): Likewise.
11927 * rtlanal.c (noop_move_p): Likewise.
11928 * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
11929 notes to non-existing libcall blocks.
11930 * cse.c (cse_insn): Change prototype. Don't update libcall notes.
11931 Remove orig_set.
11932 (cse_extended_basic_block): Don't track libcall and no-conflict notes.
11933 (dead_libcall_p): Remove.
11934 (delete_trivially_dead_insns): Don't use it.
11935 * web.c (union_defs): Remove comment about keeping nops.
11936 * gcse.c (hash_scan_insn): Don't take libcall pointers.
11937 (compute_hash_table_work): Don't track libcall notes.
11938 (do_local_cprop): Don't take libcall pointers. Don't update
11939 libcall notes.
11940 (adjust_libcall_notes): Deleted.
11941 (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
11942 ever have existed in the first place).
11943 (replace_store_insn): Don't try to remove libcall notes.
11944 * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
11945 (resolve_reg_notes): Don't call them.
11946 (resolve_simple_move): Likewise.
11947 (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
11948 Don't remove REG_RETVAL notes.
11949 * emit-rtl.c (try_split): Don't update libcall notes.
11950 (emit_copy_of_insn_after): Dito.
11951 * cselib.c (cselib_current_insn_in_libcall): Remove.
11952 (cselib_process_insn): Don't set/clear it.
11953 (new_elt_loc_list): Don't record it.
11954 (cselib_init): Don't initialize it.
11955 * cselib.c (struct elt_loc_list): Remove in_libcall field.
11956 * loop-invariant.c (find_invariant_insn): Don't look for libcall
11957 notes.
11958 * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
11959 (sched_analyze): Don't set up deps->libcall_block_tail_insn.
11960 (init_deps): Don't initialize it.
11961 * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
11962 * combine.c (delete_noop_moves): Don't update libcall notes.
11963 (can_combine_p): Remove now pointless #if 0 block.
11964 (try_combine): Remove another obsolete #if 0 block.
11965 (distribute_notes): Don't distribute libcall notes.
11966 * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
11967 * dce.c (libcall_dead_p): Remove.
11968 (delete_unmarked_insns): Don't handle libcall blocks.
11969 (preserve_libcall_for_dce): Remove.
11970 (prescan_insns_for_dce): Don't special-case libcall block insns.
11971 * reload1 (reload): Don't handle libcall notes.
11972 * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
11973 documentation.
11974
11975 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
11976
11977 * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
11978 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
11979 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11980
11981 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
11982
11983 * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
11984 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
11985 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11986
11987 2008-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11988
11989 * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
11990
11991 2008-06-16 Ira Rosen <irar@il.ibm.com>
11992
11993 PR tree-optimization/36493
11994 * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
11995 the arguments list. Use VECTYPE to create vector pointer.
11996 (vectorizable_store): Fail if accesses through a pointer to vectype
11997 do not alias the original memory reference operands.
11998 Call vect_create_data_ref_ptr without the removed argument.
11999 (vectorizable_load): Likewise.
12000 (vect_setup_realignment): Call vect_create_data_ref_ptr without the
12001 removed argument.
12002
12003 2008-06-015 Andy Hutchinson <hutchinsonandy@aim.com>
12004
12005 PR target/36336
12006 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
12007 reg_equiv_constant.
12008
12009 2008-06-15 Maxim Kuvyrkov <maxim@codesourcery.com>
12010
12011 * config/mips/loongson2ef.md: New file.
12012 * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
12013 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
12014 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
12015 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
12016 (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
12017 and loongson_2f.
12018 (loongson2ef.md): New include.
12019 * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
12020 (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
12021 (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
12022 (loongson_gt_<mode>, loongson_extract_halfword)
12023 (loongson_insert_halfword_0, loongson_insert_halfword_2)
12024 (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
12025 (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
12026 (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
12027 (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
12028 (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
12029 (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
12030 (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
12031 (vec_interleave_low<mode>): Define type attribute.
12032 * config/mips/mips.c (mips_ls2): New static variable.
12033 (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
12034 (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
12035 (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
12036 Implement target scheduling hooks.
12037 (mips_multipass_dfa_lookahead): Update to handle tuning for
12038 Loongson 2E/2F.
12039 (mips_sched_init): Initialize data for Loongson scheduling.
12040 (mips_ls2_variable_issue): New static function.
12041 (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
12042 Add sanity check.
12043 (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
12044 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
12045 * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
12046 (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
12047 Handle ST Loongson 2E/2F cores.
12048 (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
12049
12050 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12051
12052 * omp-low.c (extract_omp_for_data): Fix comment typo.
12053 * c.opt: Fix typo.
12054
12055 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12056
12057 * doc/sourcebuild.texi (Config Fragments): Remove obsolete
12058 FIXME note about gcc/config.guess.
12059 * doc/options.texi (Option file format): Remove non-ASCII bytes.
12060 * doc/cpp.texi: Expand TABs, drop indentation outside examples.
12061 * doc/cppopts.texi: Likewise.
12062 * doc/extend.texi: Likewise.
12063 * doc/gcc.texi: Likewise.
12064 * doc/gccint.texi: Likewise.
12065 * doc/gcov.texi: Likewise.
12066 * doc/gty.texi: Likewise.
12067 * doc/hostconfig.texi: Likewise.
12068 * doc/install.texi: Likewise.
12069 * doc/invoke.texi: Likewise.
12070 * doc/loop.texi: Likewise.
12071 * doc/makefile.texi: Likewise.
12072 * doc/md.texi: Likewise.
12073 * doc/passes.texi: Likewise.
12074 * doc/tm.texi: Likewise.
12075 * doc/tree-ssa.texi: Likewise.
12076 * doc/trouble.texi: Likewise.
12077
12078 2008-06-15 Mark Shinwell <shinwell@codesourcery.com>
12079 Nathan Sidwell <nathan@codesourcery.com>
12080 Maxim Kuvyrkov <maxim@codesourcery.com>
12081 Richard Sandiford <rdsandiford@googlemail.com>
12082
12083 * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
12084 * config/mips/mips-protos.h (mips_expand_vector_init): New.
12085 * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
12086 builtins.
12087 * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
12088 (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
12089 (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
12090 V8QImode cases.
12091 (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
12092 (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
12093 (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
12094 (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
12095 (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
12096 (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
12097 (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
12098 (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
12099 (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
12100 (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
12101 (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
12102 (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
12103 (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
12104 (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
12105 (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
12106 (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
12107 (mips_builtins): Add Loongson builtins.
12108 (mips_loongson_2ef_bdesc): New.
12109 (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
12110 (mips_builtin_vector_type): Handle unsigned versions of vector modes.
12111 (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
12112 (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
12113 New.
12114 (mips_expand_vector_init): New.
12115 * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
12116 (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
12117 if appropriate.
12118 * config/mips/mips.md: Add unspec numbers for Loongson
12119 builtins. Include loongson.md.
12120 (MOVE64): Include Loongson vector modes.
12121 (SPLITF): Include Loongson vector modes.
12122 (HALFMODE): Handle Loongson vector modes.
12123 * config/mips/loongson.md: New.
12124 * config/mips/loongson.h: New.
12125 * config.gcc: Add loongson.h header for mips*-*-* targets.
12126 * doc/extend.texi (MIPS Loongson Built-in Functions): New.
12127
12128 2008-06-14 Joseph Myers <joseph@codesourcery.com>
12129
12130 * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
12131 h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
12132 i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
12133 iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
12134 m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
12135 m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
12136 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
12137 mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
12138 mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
12139 mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
12140 powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
12141 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
12142 sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
12143 sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
12144 sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
12145 v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
12146 Remove use_fixproto=yes.
12147 (ia64*-*-hpux*): Remove comment about using fixproto.
12148 (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
12149
12150 2008-06-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12151
12152 * configure.ac: Update gthr-default.h lazily, to avoid unneeded
12153 library rebuilds.
12154 * configure: Regenerate.
12155
12156 2008-06-13 Eric Botcazou <ebotcazou@adacore.com>
12157
12158 PR middle-end/36520
12159 * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
12160 before evaluating it.
12161
12162 2008-06-13 Jakub Jelinek <jakub@redhat.com>
12163
12164 PR c/36507
12165 * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
12166 nested inline functions.
12167 (start_decl, start_function): Don't invert DECL_EXTERNAL
12168 for nested inline functions.
12169
12170 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
12171
12172 * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
12173 splits that must be made for correctness.
12174
12175 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
12176
12177 * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
12178 (AVAIL_NON_MIPS16): Likewise.
12179 (mips_builtin_description): Replace target_flags with a predicate.
12180 (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
12181 (dspr2_32): New availability predicates.
12182 (MIPS_BUILTIN): New macro.
12183 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
12184 (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
12185 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
12186 Replace the TARGET_FLAGS parameters with AVAIL parameters.
12187 (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
12188 (mips_dsp_32only_bdesc): Merge into...
12189 (mips_builtins): ...this new array.
12190 (mips_bdesc_map, mips_bdesc_arrays): Delete.
12191 (mips_init_builtins): Update after above changes.
12192 (mips_expand_builtin_1): Merge into...
12193 (mips_expand_builtin): ...here and update after above changes.
12194
12195 2008-06-12 Paul Brook <paul@codesourcery.com>
12196
12197 * longlong.h (__arm__): Define count_leading_zeros.
12198 * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
12199 (clzsi2, clzdi2): New functions.
12200 * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
12201 * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
12202 * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
12203 * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
12204 * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
12205 * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
12206 * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
12207 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
12208 * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
12209 * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
12210
12211 2008-06-12 Kazu Hirata <kazu@codesourcery.com>
12212
12213 * config/m68k/m68k.c (m68k_tune_flags): New.
12214 (override_options): Compute m68k_tune_flags.
12215 (MULL_COST, MULW_COST): Update for various variants of CFV2.
12216 * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
12217
12218 2008-06-12 Jakub Jelinek <jakub@redhat.com>
12219
12220 PR middle-end/36506
12221 * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
12222
12223 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
12224
12225 * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
12226 TREE_THIS_VOLATILE on INDIRECT_REF nodes.
12227
12228 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
12229
12230 * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
12231 (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
12232
12233 2008-06-12 Jakub Jelinek <jakub@redhat.com>
12234
12235 PR middle-end/36506
12236 * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
12237 reductions.
12238
12239 2008-06-12 Richard Guenther <rguenther@suse.de>
12240
12241 PR tree-optimization/36345
12242 * tree-flow.h (struct ptr_info_def): Align escape_mask,
12243 add memory_tag_needed flag.
12244 (may_alias_p): Declare.
12245 * tree-ssa-alias.c (may_alias_p): Export.
12246 (set_initial_properties): Use memory_tag_needed flag.
12247 (update_reference_counts): Likewise.
12248 (reset_alias_info): Reset memory_tag_needed flag.
12249 (create_name_tags): Check memory_tag_needed flag.
12250 (dump_points_to_info_for): Dump it.
12251 * tree-ssa-structalias.c (struct variable_info): Remove
12252 directly_dereferenced flag.
12253 (new_var_info): Do not initialize it.
12254 (process_constraint_1): Do not set it.
12255 (update_alias_info): Set is_dereferenced flag.
12256 (set_uids_in_ptset): Use may_alias_p.
12257 (set_used_smts): Check memory_tag_needed flag.
12258 (find_what_p_points_to): Likewise. Pass is_dereferenced flag.
12259 * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
12260 memory_tag_needed flag.
12261 * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
12262 from broken design.
12263
12264 2008-06-12 Kai Tietz <kai.tietz@onevision.com>
12265
12266 * config/i386/i386.c (ix86_compute_frame_layout): Disable
12267 red zone for w64 abi.
12268 (ix86_expand_prologue): Likewise.
12269 (ix86_force_to_memory): Likewise.
12270 (ix86_free_from_memory): Likewise.
12271
12272 2008-06-11 Edmar Wienskoski <edmar@freescale.com>
12273
12274 PR target/36425
12275 * config/rs6000/rs6000.c (rs6000_override_options): Set
12276 rs6000_isel conditionally to the absence of comand line override.
12277 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
12278 Remove duplicate rs6000_isel setting.
12279 * config/rs6000/eabispe.h: Ditto.
12280
12281 2008-06-11 Richard Guenther <rguenther@suse.de>
12282
12283 * alias.c (get_alias_set): Use the element alias-set for arrays.
12284 (record_component_aliases): For arrays and vectors do nothing.
12285 * c-common.c (strict_aliasing_warning): Handle the cases
12286 of alias set zero explicitly.
12287 * Makefile.in (dfp.o-warn): Add -Wno-error.
12288
12289 2008-06-11 Joseph Myers <joseph@codesourcery.com>
12290
12291 * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
12292 tune_32 tune_64.
12293 (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
12294 tune_32 tune_64 to supported_defaults. Allow values not
12295 supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
12296 x86_64. Do not override cpu_32 or cpu_64 values from target name.
12297 (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
12298 with_cpu_64 to generic for 64-bit-supporting configurations, not
12299 with_cpu. Remove FIXMEs.
12300 * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
12301 --with-arch-64, --with-tune-32, --with-tune-64): Document.
12302 * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
12303 (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
12304 arch_32 and arch_64.
12305
12306 2008-06-11 Eric Botcazou <ebotcazou@adacore.com>
12307 Olivier Hainque <hainque@adacore.com>
12308
12309 * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
12310 Use DECL_SIZE_UNIT to retrieve the size of the field.
12311
12312 2008-06-11 Joseph Myers <joseph@codesourcery.com>
12313
12314 * config/arm/arm.c (arm_init_neon_builtins): Move initialization
12315 with function calls after declarations. Lay out
12316 neon_float_type_node before further use.
12317
12318 2008-06-11 Richard Guenther <rguenther@suse.de>
12319
12320 * tree-flow.h (may_point_to_global_var): Declare.
12321 * tree-ssa-alias.c (may_point_to_global_var): New function.
12322 * tree-ssa-sink.c (is_hidden_global_store): Use it.
12323
12324 2008-06-10 Kazu Hirata <kazu@codesourcery.com>
12325
12326 * configure.ac: Teach that fido supports .debug_line.
12327 * configure: Regenerate.
12328
12329 2008-06-10 Tom Tromey <tromey@redhat.com>
12330
12331 * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
12332 debug hook.
12333
12334 2008-06-10 Joseph Myers <joseph@codesourcery.com>
12335
12336 * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
12337 (encode_decimal64, decode_decimal64, encode_decimal128,
12338 decode_decimal128): Reverse order of 32-bit parts of value if host
12339 and target endianness differ.
12340
12341 2008-06-10 Vinodha Ramasamy <vinodha@google.com>
12342
12343 * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
12344 Avoid division by 0.
12345 (tree_mod_pow2_value_transform): Likewise.
12346 (tree_ic_transform): Likewise.
12347 (tree_stringops_transform): Likewise.
12348 (tree_mod_subtract_transform): Likewise.
12349 * tree-inline-c (copy_bb): Corrected int type to gcov_type.
12350 (copy_edges_for_bb): Likewise.
12351 (initialize_cfun): Likewise.
12352
12353 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
12354
12355 * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
12356 nonmemory_operand. Add "N" operand constraint.
12357 (*btsi): Ditto.
12358 (*jcc_btdi_mask_rex64): New instruction and split pattern.
12359 (*jcc_btsi_mask): Ditto.
12360 (*jcc_btsi_mask_1): Ditto.
12361
12362 2008-06-10 Joseph Myers <joseph@codesourcery.com>
12363
12364 * config/rs6000/rs6000.c (build_opaque_vector_type): Set
12365 TYPE_CANONICAL for copied element type.
12366
12367 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
12368
12369 PR target/36473
12370 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
12371 Add m_CORE2 and m_GENERIC.
12372 * config/i386/predicates.md (bt_comparison_operator): New predicate.
12373 * config/i386/i386.md (*btdi_rex64): New instruction pattern.
12374 (*btsi): Ditto.
12375 (*jcc_btdi_rex64): New instruction and split pattern.
12376 (*jcc_btsi): Ditto.
12377 (*jcc_btsi_1): Ditto.
12378 (*btsq): Fix Intel asm dialect operand order.
12379 (*btrq): Ditto.
12380 (*btcq): Ditto.
12381
12382 2008-06-09 Andy Hutchinson <hutchinsonandy@aim.com>
12383
12384 PR middle-end/36447
12385 * simplify-rtx.c (simplify_subreg): Add check for shift count
12386 greater than size.
12387
12388 2008-06-09 Richard Sandiford <rdsandiford@googlemail.com>
12389
12390 * doc/md.texi: Synchronize with later constraints.md change.
12391 * longlong.h (umul_ppmm): Replace the MIPS asm implementation
12392 with a C implementation.
12393 * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
12394 MFLO handling.
12395 (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
12396 (mips_split_doubleword_move): Use special MTHI and MFHI instructions
12397 when moving to and from MD_REGNUM.
12398 (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
12399 Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
12400 Handle byte and halfword moves.
12401 (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
12402 separately.
12403 * config/mips/constraints.md (h): Turn into NO_REGS.
12404 (l, x): Update documentation.
12405 * config/mips/mips.md (UNSPEC_MFHILO): Delete.
12406 (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
12407 (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
12408 (HILO): New mode iterator.
12409 (MOVE128): Add TI.
12410 (any_div): New code iterator.
12411 (u): Extend code attribute to div and udiv.
12412 (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
12413 d_operand in the splitters. Remove redundant CONST_INT checks.
12414 (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
12415 (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
12416 (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits
12417 accordingly, using normal moves instead of unspecs to move LO into
12418 a GPR. Use d_operand and lo_operand instead of *_REG_P checks.
12419 (<u>mulsidi3): Handle expansion in C code.
12420 (<u>mulsidi3_32bit_internal): Rename to...
12421 (<u>mulsidi3_32bit): ...this.
12422 (<u>mulsidi3_32bit_r4000): Fix insn separator.
12423 (*<u>mulsidi3_64bit): Rename to...
12424 (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers
12425 into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO
12426 to set LO and HI to the multiplication result. Use a normal move
12427 for MFLO and an unspec for MFHI.
12428 (*<u>mulsidi3_64bit_parts): Replace with...
12429 (<u>mulsidi3_64bit_hilo): ...this new instruction.
12430 (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
12431 (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
12432 and extend it to TARGET_FIX_R4000. Store the destination in a GPR
12433 instead of HI. Split the instruction into a separate multiplication
12434 and MFHI if !TARGET_FIX_R4000.
12435 (<su>muldi3_highpart): Likewise.
12436 (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
12437 and the "=h" clobber.
12438 (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
12439 (<u>mulditi3): New expander.
12440 (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
12441 (madsi): Remove "=h" clobber.
12442 (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
12443 Force the modulus result to be a GPR and split the instruction into
12444 a division followed by an MFHI after reload.
12445 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
12446 (*lea_high64): Use d_operand in the define_peephole2. Likewise
12447 the MIPS16 HIGH define_split.
12448 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
12449 of acc<->gpr moves to "multi".
12450 (*movdi_64bit): Replace the single "x" alternative with
12451 alternatives for moving into and out of "a".
12452 (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move.
12453 (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
12454 (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
12455 Use d_operand in the splitters. Remove redundant CONST_INT checks.
12456 (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move.
12457 (movti): New expander.
12458 (*movti, *movti_mips16): New insns.
12459 (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
12460 (mfhi<GPR:mode>_<HILO:mode>): New pattern.
12461 (mthi<GPR:mode>_<HILO:mode>): Likewise.
12462 * config/mips/predicates.md (fpr_operand): Delete.
12463 (d_operand): New predicate.
12464
12465 2008-06-09 Michael Meissner <michael.meissner@amd.com>
12466
12467 * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
12468 failure on some Bourne shells.
12469 (x86_64-*-*): Ditto.
12470
12471 2008-06-09 Kai Tietz <kai.tietz@onevision.com>
12472
12473 * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
12474
12475 2008-06-09 Eric Botcazou <ebotcazou@libertysurf.fr>
12476
12477 * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
12478 (sparc-sun-solaris2*): Likewise.
12479
12480 2008-06-09 Arnaud Charlet <charlet@adacore.com
12481
12482 * doc/install.texi: Update requirements to build the Ada compiler.
12483
12484 2008-06-08 Steven Bosscher <stevenb.gcc@gmail.com>
12485
12486 * df-scan.c (struct df_scan_problem_data): Remove the
12487 mw_link_pool alloc pool.
12488 (df_scan_free_internal): Don't free it.
12489 (df_scan_alloc): Don't allocate it.
12490 * df.h (struct df_link): Update comment.
12491
12492 2008-06-08 Nathan Sidwell <nathan@codesourcery.com>
12493
12494 * except.h: Correct checks for when SJLJ exceptions must be used.
12495
12496 2008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12497
12498 * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
12499 default.
12500
12501 2008-06-08 Joseph Myers <joseph@codesourcery.com>
12502
12503 PR tree-optimization/36218
12504 * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
12505 configure for the build system.
12506 (BUILD_LDFLAGS): Define.
12507 * configure: Regenerate.
12508 * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
12509
12510 2008-07-08 Anatoly Sokolov <aesok@post.ru>
12511
12512 PR target/36424
12513 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
12514 * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
12515 * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
12516
12517 2008-06-07 Danny Smith <dannysmith@users.sourceforge.net>
12518
12519 * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
12520
12521 2008-06-07 Joseph Myers <joseph@codesourcery.com>
12522
12523 * config.gcc (Obsolete configurations): Remove list of
12524 configurations.
12525 (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
12526 *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
12527 targets matched by those patterns.
12528 (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
12529 m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
12530 alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
12531 arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
12532 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
12533 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
12534 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
12535 i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
12536 i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
12537 mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
12538 powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
12539 powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
12540 strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
12541 vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
12542 i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
12543 Make code for Solaris 7 and greater unconditional for Solaris.
12544 (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
12545 Remove --with-* handling.
12546 * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
12547 (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
12548 ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
12549 LINK_OS_WINDISS_SPEC): Remove.
12550 * config/rs6000/sysv4.opt (mwindiss): Remove.
12551 * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
12552 * configure: Regenerate.
12553 * doc/cpp.texi: Don't mention BeOS.
12554 * doc/extend.texi (interrupt): Don't mention MS1.
12555 * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
12556 m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
12557 alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
12558 i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
12559 powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
12560 Remove.
12561 * doc/invoke.texi (MT Options): Remove.
12562 (-mwindiss): Remove.
12563 (CRIS Options): Remove cris-axis-aout references.
12564 (HPPA Options): Don't mention hppa1.1-*-pro.
12565 * doc/md.texi: (MorphoTech family): Remove.
12566 * libgcc2.c: Don't handle UWIN.
12567 * config/alpha/t-unicosmk: Remove.
12568 * config/alpha/unicosmk.h: Remove.
12569 * config/arm/kaos-arm.h: Remove.
12570 * config/arm/kaos-strongarm.h: Remove.
12571 * config/arm/strongarm-coff.h: Remove.
12572 * config/arm/strongarm-elf.h: Remove.
12573 * config/arm/strongarm-pe.h: Remove.
12574 * config/arm/t-strongarm-pe: Remove.
12575 * config/arm/t-xscale-coff: Remove.
12576 * config/arm/t-xscale-elf: Remove.
12577 * config/arm/xscale-coff.h: Remove.
12578 * config/arm/xscale-elf.h: Remove.
12579 * config/chorus.h: Remove.
12580 * config/cris/aout.h: Remove.
12581 * config/cris/aout.opt: Remove.
12582 * config/cris/t-aout: Remove.
12583 * config/i386/beos-elf.h: Remove.
12584 * config/i386/kaos-i386.h: Remove.
12585 * config/i386/ptx4-i.h: Remove.
12586 * config/i386/sco5.h: Remove.
12587 * config/i386/sco5.opt: Remove.
12588 * config/i386/sysv4-cpp.h: Remove.
12589 * config/i386/sysv5.h: Remove.
12590 * config/i386/t-beos: Remove.
12591 * config/i386/t-sco5: Remove.
12592 * config/i386/t-uwin: Remove.
12593 * config/i386/uwin.asm: Remove.
12594 * config/i386/uwin.h: Remove.
12595 * config/kaos.h: Remove.
12596 * config/mips/windiss.h: Remove.
12597 * config/mt: Remove directory.
12598 * config/pa/pa-osf.h: Remove.
12599 * config/pa/pa-pro-end.h: Remove.
12600 * config/pa/t-pro: Remove.
12601 * config/ptx4.h: Remove.
12602 * config/rs6000/beos.h: Remove.
12603 * config/rs6000/kaos-ppc.h: Remove.
12604 * config/rs6000/t-beos: Remove.
12605 * config/rs6000/windiss.h: Remove.
12606 * config/sh/kaos-sh.h: Remove.
12607 * config/sol2-6.h: Remove.
12608 * config/sparc/sol26-sld.h: Remove.
12609 * config/sparc/sysv4-only.h: Remove.
12610 * config/vax/bsd.h: Remove.
12611 * config/vax/t-memfuncs: Remove.
12612 * config/vax/ultrix.h: Remove.
12613 * config/vax/vaxv.h: Remove.
12614 * config/windiss.h: Remove.
12615
12616 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
12617
12618 PR rtl-optimization/36438
12619 * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
12620 for vector shifts with constant scalar shift operands.
12621
12622 2008-06-06 Sandip Matte <sandip@rmicorp.com>
12623
12624 * doc/invoke.texi: Document -march=xlr.
12625 * config/mips/xlr.md: New file.
12626 * config/mips/mips.md: Include it.
12627 (cpu): Add "xlr".
12628 * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
12629 * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
12630 (mips_rtx_cost_data): Likewise.
12631
12632 2008-06-06 Nathan Froyd <froydnj@codesourcery.com>
12633
12634 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
12635 PRE_INC and PRE_DEC cases.
12636
12637 2008-06-06 Jakub Jelinek <jakub@redhat.com>
12638
12639 PR rtl-optimization/36419
12640 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
12641 the emitting jump insn.
12642
12643 PR target/36362
12644 * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
12645 is not bool, boolify the whole *expr_p and convert to the desired type.
12646
12647 2008-06-06 Jakub Jelinek <jakub@redhat.com>
12648
12649 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
12650 * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
12651 Add omp_private_outer_ref hook, add another argument to
12652 omp_clause_default_ctor hook.
12653 * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
12654 (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
12655 (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
12656 hook_tree_tree_tree_tree_null.
12657 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
12658 LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
12659 * hooks.c (hook_tree_tree_tree_tree_null): New function.
12660 * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
12661 * tree.def (OMP_TASK): New tree code.
12662 * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
12663 OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
12664 OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
12665 OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
12666 OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
12667 OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
12668 OMP_CLAUSE_COLLAPSE_EXPR): Define.
12669 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
12670 (OMP_DIRECTIVE_P): Add OMP_TASK.
12671 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
12672 (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
12673 * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
12674 and OMP_CLAUSE_UNTIED entries.
12675 (omp_clause_num_ops): Likewise. Increase OMP_CLAUSE_LASTPRIVATE
12676 num_ops to 2.
12677 (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
12678 Walk OMP_CLAUSE_LASTPRIVATE_STMT.
12679 * tree-pretty-print.c (dump_omp_clause): Handle
12680 OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
12681 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
12682 (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
12683 * c-omp.c (c_finish_omp_for): Allow pointer iterators. Remove
12684 warning about unsigned iterators. Change decl/init/cond/incr
12685 arguments to TREE_VECs, check arguments for all collapsed loops.
12686 (c_finish_omp_taskwait): New function.
12687 (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
12688 ws_clauses.
12689 * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops. Call
12690 default_function_array_conversion on init. Add par_clauses argument.
12691 If decl is present in parallel's lastprivate clause, change it to
12692 shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
12693 Add clauses argument, on success set OMP_FOR_CLAUSES to it. Look up
12694 collapse count in clauses.
12695 (c_parser_omp_for, c_parser_omp_parallel): Adjust
12696 c_parser_omp_for_loop callers.
12697 (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
12698 (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
12699 (c_parser_omp_clause_name): Handle collapse and untied clauses.
12700 (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
12701 functions.
12702 (c_parser_omp_clause_schedule): Handle schedule(auto).
12703 Include correct location in the error message.
12704 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
12705 and PRAGMA_OMP_CLAUSE_UNTIED.
12706 (OMP_TASK_CLAUSE_MASK): Define.
12707 (c_parser_omp_task, c_parser_omp_taskwait): New functions.
12708 (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
12709 * tree-nested.c (convert_nonlocal_omp_clauses,
12710 convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
12711 OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
12712 OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
12713 Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
12714 OMP_CLAUSE_DECL.
12715 (conver_nonlocal_reference, convert_local_reference,
12716 convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL. Use
12717 OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
12718 (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
12719 * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
12720 * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
12721 * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
12722 (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
12723 * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
12724 (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
12725 OMP_CLAUSE_UNTIED.
12726 * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
12727 * c-common.h (c_finish_omp_taskwait): New prototype.
12728 * gimple-low.c (lower_stmt): Handle OMP_TASK.
12729 * tree-parloops.c (create_parallel_loop): Create 1 entry
12730 vectors for OMP_FOR_{INIT,COND,INCR}.
12731 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
12732 (make_edges): Handle OMP_TASK.
12733 * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
12734 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
12735 * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
12736 * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
12737 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
12738 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
12739 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
12740 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
12741 * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
12742 BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
12743 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
12744 BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
12745 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
12746 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
12747 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
12748 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
12749 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
12750 BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
12751 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
12752 BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
12753 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
12754 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
12755 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
12756 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
12757 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
12758 * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
12759 handle POINTER_PLUS_EXPR. If loop counter has been replaced and
12760 original iterator is present in lastprivate clause or if
12761 collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT. Handle collapsed
12762 OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
12763 (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
12764 (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
12765 (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
12766 if it is set, lookup var in outer contexts too. Handle
12767 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE. Handle vars that are supposed
12768 to be implicitly determined firstprivate for task regions.
12769 (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
12770 if it is set, lookup var in outer contexts too. Set
12771 OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
12772 Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
12773 OMP_CLAUSE_UNTIED. Take region_type as last argument
12774 instead of in_parallel and in_combined_parallel.
12775 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
12776 Adjust callers.
12777 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
12778 GOVD_PRIVATE_OUTER_REF is set. Call omp_finish_clause langhook.
12779 (new_omp_context): Set default_kind to
12780 OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
12781 (omp_region_type): New enum.
12782 (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
12783 fields, add region_type.
12784 (new_omp_context): Take region_type as argument instead of is_parallel
12785 and is_combined_parallel.
12786 (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
12787 omp_is_private, omp_check_private): Adjust ctx->is_parallel and
12788 ctx->is_combined_parallel checks.
12789 (gimplify_omp_task): New function.
12790 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
12791 OMP_CLAUSE_UNTIED.
12792 * omp-low.c (extract_omp_for_data): Use schedule(static)
12793 for schedule(auto). Handle pointer and unsigned iterators.
12794 Compute fd->iter_type. Handle POINTER_PLUS_EXPR increments.
12795 Add loops argument. Extract data for collapsed OMP_FOR loops.
12796 (expand_parallel_call): Assert sched_kind isn't auto,
12797 map runtime schedule to index 3.
12798 (struct omp_for_data_loop): New type.
12799 (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
12800 Add loop, loops, collapse and iter_type fields.
12801 (workshare_safe_to_combine_p): Disallow combined for if
12802 iter_type is unsigned long long. Don't combine collapse > 1 loops
12803 unless all bounds and steps are constant. Adjust extract_omp_for_data
12804 caller.
12805 (expand_omp_for_generic): Handle pointer, unsigned and long long
12806 iterators. Handle collapsed OMP_FOR loops. Adjust
12807 for struct omp_for_data changes. If libgomp function doesn't return
12808 boolean_type_node, add comparison of the return value with 0.
12809 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
12810 pointer, unsigned and long long iterators. Adjust for struct
12811 omp_for_data changes.
12812 (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
12813 to index 3. Use GOMP_loop_ull*{start,next} if iter_type is
12814 unsigned long long. Allocate loops array, pass it to
12815 extract_omp_for_data. For collapse > 1 loops use always
12816 expand_omp_for_generic.
12817 (omp_context): Add sfield_map and srecord_type fields.
12818 (is_task_ctx, lookup_sfield): New functions.
12819 (use_pointer_for_field): Use is_task_ctx helper. Change first
12820 argument's type from const_tree to tree. Clarify comment.
12821 In OMP_TASK disallow copy-in/out sharing.
12822 (build_sender_ref): Call lookup_sfield instead of lookup_field.
12823 (install_var_field): Add mask argument. Populate both record_type
12824 and srecord_type if needed.
12825 (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
12826 in srecord_type.
12827 (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
12828 and DECL_FIELD_OFFSET.
12829 (scan_sharing_clauses): Adjust install_var_field callers. For
12830 firstprivate clauses on explicit tasks allocate the var by value in
12831 record_type unconditionally, rather than by reference.
12832 Handle OMP_CLAUSE_PRIVATE_OUTER_REF. Scan OMP_CLAUSE_LASTPRIVATE_STMT.
12833 Use is_taskreg_ctx instead of is_parallel_ctx.
12834 Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
12835 (create_omp_child_function_name): Add task_copy argument, use
12836 *_omp_cpyfn* names if it is true.
12837 (create_omp_child_function): Add task_copy argument, if true create
12838 *_omp_cpyfn* helper function.
12839 (scan_omp_parallel): Adjust create_omp_child_function callers.
12840 Rename parallel_nesting_level to taskreg_nesting_level.
12841 (scan_omp_task): New function.
12842 (lower_rec_input_clauses): Don't run constructors for firstprivate
12843 explicit task vars which are initialized by *_omp_cpyfn*.
12844 Pass outer var ref to omp_clause_default_ctor hook if
12845 OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
12846 Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
12847 OMP_CLAUSE_REDUCTION_INIT.
12848 (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
12849 avoid duplicate setting of fields. Handle
12850 OMP_CLAUSE_PRIVATE_OUTER_REF.
12851 (lower_send_shared_vars): Use srecord_type if non-NULL. Don't
12852 copy-out if TREE_READONLY, only copy-in.
12853 (expand_task_copyfn): New function.
12854 (expand_task_call): New function.
12855 (struct omp_taskcopy_context): New type.
12856 (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
12857 New functions.
12858 (lower_omp_parallel): Rename to...
12859 (lower_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
12860 Call create_task_copyfn if srecord_type is needed. Adjust
12861 sender_decl type.
12862 (task_shared_vars): New variable.
12863 (check_omp_nesting_restrictions): Warn if work-sharing,
12864 barrier, master or ordered region is closely nested inside OMP_TASK.
12865 Add warnings for barrier if closely nested inside of work-sharing,
12866 ordered, or master region.
12867 (scan_omp_1): Call check_omp_nesting_restrictions even for
12868 GOMP_barrier calls. Rename parallel_nesting_level to
12869 taskreg_nesting_level. Handle OMP_TASK.
12870 (lower_lastprivate_clauses): Even if some lastprivate is found on a
12871 work-sharing construct, continue looking for them on parent parallel
12872 construct.
12873 (lower_omp_for_lastprivate): Add lastprivate clauses
12874 to the beginning of dlist rather than end. Adjust for struct
12875 omp_for_data changes.
12876 (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
12877 not after it. Handle collapsed OMP_FOR loops, adjust for
12878 OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
12879 (get_ws_args_for): Adjust extract_omp_for_data caller.
12880 (scan_omp_for): Handle collapsed OMP_FOR
12881 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
12882 (lower_omp_single_simple): If libgomp function doesn't return
12883 boolean_type_node, add comparison of the return value with 0.
12884 (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
12885 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes. Handle OMP_TASK.
12886 (parallel_nesting_level): Rename to...
12887 (taskreg_nesting_level): ... this.
12888 (is_taskreg_ctx): New function.
12889 (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
12890 of is_parallel_ctx.
12891 (execute_lower_omp): Rename parallel_nesting_level to
12892 taskreg_nesting_level.
12893 (expand_omp_parallel): Rename to...
12894 (expand_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
12895 Call omp_task_call for OMP_TASK regions.
12896 (expand_omp): Adjust caller, handle OMP_TASK.
12897 (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
12898
12899 * bitmap.c (bitmap_default_obstack_depth): New variable.
12900 (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
12901 if argument is NULL and bitmap_default_obstack is already initialized.
12902 * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
12903 at the end.
12904 * matrix-reorg.c (matrix_reorg): Likewise.
12905
12906 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
12907
12908 * config/i386/i386.md (*indirect_jump): Macroize using P
12909 mode iterator. Remove !TARGET_64BIT from insn constraints.
12910 (*tablejump_1): Ditto.
12911 (*indirect_jump_rex64): Remove insn pattern.
12912 (*tablejump_1_rex64): Ditto.
12913 (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
12914 and eh_return_si insn patterns.
12915
12916 2008-06-06 Richard Guenther <rguenther@suse.de>
12917
12918 * tree-ssa-structalias.c (merge_smts_into): Remove.
12919 (find_what_p_points_to): Do not bother to compute the
12920 points-to set for pt_anything pointers.
12921 * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
12922 for pt_anything pointers is ok.
12923
12924 2008-06-06 Jan Hubicka <jh@suse.cz>
12925
12926 * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
12927
12928 2008-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12929
12930 * cgraph.c: Fix typos in comments.
12931 (cgraph_availability_names): Fix string typo.
12932 * fold-const.c: Fix typos in comments.
12933 (fold_binary): Fix typo in warning.
12934 * genautomata.c: Fix typos in comments.
12935 (check_presence_pattern_sets): Fix typo in local variable.
12936 (output_description): Fix typo in output.
12937 * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
12938 * hwint.h: Likewise.
12939 * matrix-reorg.c (check_allocation_function): Likewise.
12940 * omega.c (smooth_weird_equations): Likewise.
12941 * auto-inc-dec.c: Fix typos in comments.
12942 * bb-reorder.c: Likewise.
12943 * builtins.c: Likewise.
12944 * c-common.c: Likewise.
12945 * c-cppbuiltin.c: Likewise.
12946 * c-parser.c: Likewise.
12947 * c-pretty-print.c: Likewise.
12948 * cfgcleanup.c: Likewise.
12949 * cfgexpand.c: Likewise.
12950 * cfghooks.c: Likewise.
12951 * cfglayout.c: Likewise.
12952 * cfgloopmanip.c: Likewise.
12953 * cgraphunit.c: Likewise.
12954 * coverage.c: Likewise.
12955 * dbxout.c: Likewise.
12956 * df-byte-scan.c: Likewise.
12957 * df-core.c: Likewise.
12958 * df-problems.c: Likewise.
12959 * df-scan.c: Likewise.
12960 * dfp.c: Likewise.
12961 * dominance.c: Likewise.
12962 * domwalk.c: Likewise.
12963 * dse.c: Likewise.
12964 * dwarf2out.c: Likewise.
12965 * emit-rtl.c: Likewise.
12966 * et-forest.c: Likewise.
12967 * function.c: Likewise.
12968 * function.h: Likewise.
12969 * gcc.c: Likewise.
12970 * gcov-io.c: Likewise.
12971 * gcov.c: Likewise.
12972 * gcse.c: Likewise.
12973 * genattrtab.c: Likewise.
12974 * ggc-page.c: Likewise.
12975 * gimplify.c: Likewise.
12976 * gthr-lynx.h: Likewise.
12977 * haifa-sched.c: Likewise.
12978 * ipa-cp.c: Likewise.
12979 * ipa-inline.c: Likewise.
12980 * ipa-prop.h: Likewise.
12981 * ipa-pure-const.c: Likewise.
12982 * ipa-struct-reorg.c: Likewise.
12983 * ipa-struct-reorg.h: Likewise.
12984 * ipa-type-escape.c: Likewise.
12985 * ipa.c: Likewise.
12986 * loop-doloop.c: Likewise.
12987 * mips-tfile.c: Likewise.
12988 * mkmap-flat.awk: Likewise.
12989 * mkmap-symver.awk: Likewise.
12990 * modulo-sched.c: Likewise.
12991 * omp-low.c: Likewise.
12992 * optabs.c: Likewise.
12993 * optabs.h: Likewise.
12994 * opts.c: Likewise.
12995 * passes.c: Likewise.
12996 * postreload-gcse.c: Likewise.
12997 * postreload.c: Likewise.
12998 * predict.c: Likewise.
12999 * pretty-print.h: Likewise.
13000 * profile.c: Likewise.
13001 * protoize.c: Likewise.
13002 * ra-conflict.c: Likewise.
13003 * real.c: Likewise.
13004 * recog.c: Likewise.
13005 * regclass.c: Likewise.
13006 * regs.h: Likewise.
13007 * reload.c: Likewise.
13008 * rtl-error.c: Likewise.
13009 * rtlanal.c: Likewise.
13010 * scan.h: Likewise.
13011 * sched-rgn.c: Likewise.
13012 * see.c: Likewise.
13013 * stmt.c: Likewise.
13014 * target.h: Likewise.
13015 * tree-dfa.c: Likewise.
13016 * tree-eh.c: Likewise.
13017 * tree-flow-inline.h: Likewise.
13018 * tree-inline.c: Likewise.
13019 * tree-into-ssa.c: Likewise.
13020 * tree-loop-distribution.c: Likewise.
13021 * tree-nested.c: Likewise.
13022 * tree-parloops.c: Likewise.
13023 * tree-pass.h: Likewise.
13024 * tree-pretty-print.c: Likewise.
13025 * tree-profile.c: Likewise.
13026 * tree-scalar-evolution.c: Likewise.
13027 * tree-sra.c: Likewise.
13028 * tree-ssa-alias-warnings.c: Likewise.
13029 * tree-ssa-ccp.c: Likewise.
13030 * tree-ssa-coalesce.c: Likewise.
13031 * tree-ssa-dom.c: Likewise.
13032 * tree-ssa-dse.c: Likewise.
13033 * tree-ssa-forwprop.c: Likewise.
13034 * tree-ssa-live.c: Likewise.
13035 * tree-ssa-live.h: Likewise.
13036 * tree-ssa-loop-im.c: Likewise.
13037 * tree-ssa-loop-ivopts.c: Likewise.
13038 * tree-ssa-loop-niter.c: Likewise.
13039 * tree-ssa-loop-prefetch.c: Likewise.
13040 * tree-ssa-phiopt.c: Likewise.
13041 * tree-ssa-phiprop.c: Likewise.
13042 * tree-ssa-sccvn.c: Likewise.
13043 * tree-ssa-ter.c: Likewise.
13044 * tree-ssa-threadupdate.c: Likewise.
13045 * tree-ssa.c: Likewise.
13046 * tree-vect-analyze.c: Likewise.
13047 * tree-vect-transform.c: Likewise.
13048 * tree-vectorizer.c: Likewise.
13049 * tree-vn.c: Likewise.
13050 * tree-vrp.c: Likewise.
13051 * tree.c: Likewise.
13052 * tree.def: Likewise.
13053 * tree.h: Likewise.
13054 * unwind-dw2-fde.c: Likewise.
13055 * unwind.inc: Likewise.
13056 * value-prof.c: Likewise.
13057 * vmsdbgout.c: Likewise.
13058
13059 2008-06-05 David Edelsohn <edelsohn@gnu.org>
13060
13061 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
13062 always place FP constants in the TOC for TARGET_POWERPC64.
13063 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
13064
13065 2008-06-05 Joseph Myers <joseph@codesourcery.com>
13066
13067 * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
13068 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
13069 enable for TARGET_E500_DOUBLE.
13070 (*movdd_softfloat32): Also enable for !TARGET_FPRS.
13071 * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
13072 floating-point modes like integer modes for E500 double.
13073 (rs6000_legitimate_offset_address_p): Likewise.
13074 (rs6000_legitimize_address): Likewise. Do not allow REG+REG
13075 addressing for DDmode for E500 double.
13076 (rs6000_hard_regno_nregs): Do not treat decimal floating-point
13077 modes as using 64-bits of registers for E500 double.
13078 (spe_build_register_parallel): Do not handle DDmode or TDmode.
13079 (rs6000_spe_function_arg): Do not handle DDmode or TDmode
13080 specially for E500 double.
13081 (function_arg): Do not call rs6000_spe_function_arg for DDmode or
13082 TDmode for E500 double.
13083 (rs6000_gimplify_va_arg): Only handle SDmode in registers
13084 specially if TARGET_HARD_FLOAT && TARGET_FPRS.
13085 (rs6000_split_multireg_move): Do not handle TDmode specially for
13086 E500 double.
13087 (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
13088 using 64-bit registers for E500 double.
13089 (emit_frame_save): Do not handle DDmode specially for E500 double.
13090 (gen_frame_mem_offset): Likewise.
13091 (rs6000_function_value): Do not call spe_build_register_parallel
13092 for DDmode or TDmode.
13093 (rs6000_libcall_value): Likewise.
13094 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
13095 DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
13096 for E500 double.
13097
13098 2008-06-04 H.J. Lu <hongjiu.lu@intel.com>
13099
13100 * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
13101 in comments.
13102
13103 2008-06-04 Junjie Gu <jgu@tensilica.com>
13104
13105 * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
13106 comparison for frame pointers.
13107
13108 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
13109
13110 PR target/27386
13111 * config/avr/avr.h (PUSH_ROUNDING): Remove.
13112
13113 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
13114
13115 PR target/30243
13116 * builtins.c (expand_builtin_signbit): Don't take lowpart when
13117 register is already smaller or equal to required mode.
13118
13119 2008-06-04 Xinliang David Li <davidxl@google.com>
13120
13121 * tree-call-cdce.c: New file.
13122 (cond_dead_built_in_calls): New static variable.
13123 (input_domain): New struct.
13124 (check_pow): New function.
13125 (check_builtin_call): Ditto.
13126 (check_target_format): Ditto.
13127 (is_call_dce_candidate): Ditto.
13128 (gen_one_condition): Ditto.
13129 (gen_conditions_for_domain): Ditto.
13130 (get_domain): Ditto.
13131 (gen_conditions_for_pow_cst_base): Ditto.
13132 (gen_conditions_for_pow_int_base): Ditto.
13133 (gen_conditions_for_pow): Ditto.
13134 (get_no_error_domain): Ditto.
13135 (gen_shrink_wrap_conditions): Ditto.
13136 (shrink_wrap_one_built_in_call): Ditto.
13137 (shink_wrap_conditional_dead_built_in_calls): Ditto.
13138 (tree_call_cdce): Ditto.
13139 (gate_call_cdce): Ditto.
13140 (pass_call_cdce): New gimple pass.
13141 * passes.c: (init_optimization_passes): New pass.
13142 * tree-pass.h: New pass declaration.
13143 * opts.c (decode_options): New flag setting.
13144 * common.opt: Add -ftree-builtin-call-dce flag.
13145 * Makefile.in: Add new source file.
13146 * tempvar.def: New tv_id.
13147 * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
13148
13149 2008-06-04 Richard Guenther <rguenther@suse.de>
13150
13151 * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
13152 (is_call_clobbered): Always check var_ann->call_clobbered.
13153 (mark_call_clobbered): Always set var_ann->call_clobbered.
13154 (clear_call_clobbered): Always clear var_ann->call_clobbered.
13155 * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
13156 (reset_alias_info): Clear call clobbering info on MTAGs and
13157 globals as well.
13158 (set_pt_anything): Set pt_global_mem.
13159 (create_tag_raw): Adjust comment.
13160 (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
13161
13162 2008-06-04 Joseph Myers <joseph@codesourcery.com>
13163 Maxim Kuvyrkov <maxim@codesourcery.com>
13164
13165 * config/m68k/m68k.opt (mxgot): New option.
13166 * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
13167 (m68k_output_addr_const_extra): New.
13168 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
13169 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
13170 * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
13171 * doc/invoke.texi (M680x0 Options): Document -mxgot.
13172
13173 2008-06-04 Richard Guenther <rguenther@suse.de>
13174
13175 * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
13176 negative or non-representable offsets.
13177
13178 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
13179
13180 * config/i386/i386.c (ix86_gen_leave): New.
13181 (ix86_gen_pop1): Likewise.
13182 (ix86_gen_add3): Likewise.
13183 (ix86_gen_sub3): Likewise.
13184 (ix86_gen_sub3_carry): Likewise.
13185 (ix86_gen_one_cmpl2): Likewise.
13186 (ix86_gen_monitor): Likewise.
13187 (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
13188 ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
13189 ix86_gen_one_cmpl2 and ix86_gen_monitor.
13190 (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
13191 (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
13192 mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
13193 (ix86_expand_epilogue): Updated.
13194 (print_operand): Handle integer register operand for 'z'.
13195 (ix86_expand_strlensi_unroll_1): Likewise.
13196 (ix86_expand_strlen): Likewise.
13197 (ix86_expand_builtin): Likewise.
13198 (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
13199 mov{q}/mov{l} and add{q}/add{l}.
13200
13201 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
13202
13203 * config/i386/i386.md (P): New mode iterator.
13204 (SFmode push_operand splitter): Macroize DImode and SImode pushes
13205 using P mode iterator.
13206 (DFmode push_operand splitter): Ditto.
13207 (XFmode push_operand splitter): Ditto.
13208 (DFmode float_extend SFmode push_operand splitter): Ditto.
13209 (XFmode float_extend SFmode push_operand splitter): Do not generate
13210 SImode pushes for 64bit target. Macroize Dimode and SImode
13211 pushes using P mode iterator.
13212 (XFmode float_extend DFmode push_operand splitter): Ditto.
13213
13214 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
13215
13216 * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
13217 * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
13218 * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
13219 return type to int.
13220 (ix86_call_abi_override): Remove check for call_used_regs.
13221
13222 2008-06-03 Richard Guenther <rguenther@suse.de>
13223
13224 * tree-ssa-structalias.c (find_func_aliases): Add constraints
13225 for the lhs of calls if the return type contains pointers.
13226
13227 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
13228
13229 * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
13230 * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
13231 * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
13232 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
13233 of cfun and DEFAULT_ABI to deceide abi mode.
13234 (DEFAULT_ABI): New.
13235 (REG_PARM_STACK_SPACE): Removed.
13236 (OUTGOING_REG_PARM_STACK_SPACE): Removed.
13237 (STACK_BOUNDARY): Use default target to deceide stack boundary.
13238 * config/i386/i386-protos.h (ix86_cfun_abi): New.
13239 (ix86_function_abi): Likewise.
13240 (ix86_function_type_abi): Likewise.
13241 (ix86_call_abi_override): Likewise.
13242 * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
13243 specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
13244 * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
13245 (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
13246 specific defines.
13247 (X86_64_REGPARM_MAX): New.
13248 (X86_64_SSE_REGPARM_MAX): New.
13249 (X64_REGPARM_MAX): New.
13250 (X64_SSE_REGPARM_MAX): New.
13251 (X86_32_REGPARM_MAX): New.
13252 (X86_32_SSE_REGPARM_MAX): New.
13253 (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
13254 (ix86_function_regparm): Handle user calling abi.
13255 (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
13256 by DEFAULT_ABI versus SYSV_ABI check.
13257 (ix86_reg_parm_stack_space): New.
13258 (ix86_function_type_abi): New.
13259 (ix86_call_abi_override): New.
13260 (ix86_function_abi): New.
13261 (ix86_cfun_abi): New.
13262 (init_cumulative_args): Call abi specific initialization.
13263 (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
13264 (function_arg_64): Extend SSE_REGPARM_MAX check.
13265 (function_arg (): Remove TARGET_64BIT_MS_ABI.
13266 (ix86_pass_by_reference): Likewise.
13267 (ix86_function_value_regno_p): Likewise.
13268 (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
13269 (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
13270 (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
13271 (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
13272 (setup_incoming_varargs_64): Adjust regparm for call abi.
13273 (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
13274 (ix86_va_start): Likewise.
13275 (ix86_gimplify_va_arg): Likewise.
13276 (ix86_expand_prologue): Likewise.
13277 (output_pic_addr_const): Likewise.
13278 (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
13279 (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
13280 (x86_output_mi_thunk): Likewise.
13281 (x86_function_profiler): Likewise.
13282 * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
13283 (SYSV_ABI, MS_ABI): New constants.
13284 (DEFAULT_ABI): New.
13285 (init_regs): Add prototype of function in regclass.c file.
13286 (OVERRIDE_ABI_FORMAT): New.
13287 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
13288 (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
13289 (OUTGOING_REG_PARM_STACK_SPACE): New.
13290 (ix86_reg_parm_stack_space): New prototype.
13291 (CUMULATIVE_ARGS): Add call_abi member.
13292 (machine_function): Add call_abi member.
13293 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
13294 TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
13295
13296 2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
13297
13298 PR target/34879
13299 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
13300 (avr_builtin_setjmp_frame_value): New function.
13301 * config/avr/avr.md (nonlocal_goto_receiver): Define.
13302 (nonlocal_goto): Define.
13303
13304 2008-06-02 Richard Sandiford <rdsandiford@googlemail.com>
13305
13306 * config/mips/mips.c (mips_emit_loadgp): Return early if
13307 there is nothing do to, otherwise emit a blockage if
13308 !TARGET_EXPLICIT_RELOCS || crtl->profile.
13309 * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
13310
13311 2008-06-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13312
13313 * configure.ac: Drop unneeded backslash ending up in config.in.
13314 * acinclude.m4: Likewise.
13315 * config.in: Regenerate.
13316
13317 2008-05-26 Jan Hubicka <jh@suse.cz>
13318
13319 * predict.c (maybe_hot_frequency_p): Break out of...
13320 (maybe_hot_bb_p): ... here.
13321 (maybe_hot_edge_p): New.
13322 * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
13323 * basic-block.h (maybe_hot_edge_p): Declare.
13324
13325 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
13326
13327 * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
13328 (*cmpfp_<mode>_cc): Ditto.
13329 (*fp_jcc_8<mode>_387): Ditto.
13330 (*fop_<MODEF:mode>_2_i387): Ditto.
13331 (*fop_<MODEF:mode>_3_i387): Ditto.
13332 (*fop_xf_2_i387): Ditto.
13333 (*fop_xf_3_i387): Ditto.
13334
13335 2008-06-02 Tomas Bily <tbily@suse.cz>
13336
13337 * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
13338
13339 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
13340
13341 * config/mips/mips.c (mips_valid_offset_p): New function.
13342 (mips_valid_lo_sum_p): Likewise.
13343 (mips_classify_address): Use them.
13344 (mips_force_address): New function.
13345 (mips_legitimize_address): Use it.
13346 * config/mips/mips.md (MOVE128): New mode iterator.
13347 (movtf): Require TARGET_64BIT. Remove empty strings.
13348 (*movtf_internal): Rename to...
13349 (*movtf): ...this and require !TARGET_MIPS16. Use "m" instead
13350 of "R" and use {,fp}{load,store} attributes instead of "multi".
13351 Use a separate define_split.
13352 (*movtf_mips16): New pattern.
13353
13354 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
13355
13356 * config/mips/mips-protos.h (mips_expand_before_return): Declare.
13357 * config/mips/mips.c (mips_expand_before_return): New function.
13358 (mips_expand_epilogue): Call it.
13359 * config/mips/mips.md (return): Turn into a define_expand.
13360 (*return): New insn.
13361
13362 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
13363
13364 * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
13365 * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
13366 functions. Do not emit uses and clobbers of CONCATs; individually
13367 use and clobber their operands.
13368 * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
13369 gen_clobber, emit_use and gen_use.
13370 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
13371 (expand_builtin_return): Likewise.
13372 * cfgbuild.c (count_basic_blocks): Likewise.
13373 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
13374 * explow.c (emit_stack_restore): Likewise.
13375 * expmed.c (extract_bit_field_1): Likewise.
13376 * expr.c (convert_move, emit_move_complex_parts): Likewise.
13377 (emit_move_multi_word, store_constructor): Likewise.
13378 * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
13379 (thread_prologue_and_epilogue_insns): Likewise.
13380 * lower-subreg.c (resolve_simple_move): Likewise.
13381 * optabs.c (widen_operand, expand_binop): Likewise.
13382 (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
13383 * reload.c (find_reloads): Likewise.
13384 * reload1.c (eliminate_regs_in_insn): Likewise.
13385 * stmt.c (expand_nl_goto_receiver): Likewise.
13386 * config/alpha/alpha.md (builtin_longjmp): Likewise.
13387 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
13388 * config/arm/arm.c (arm_load_pic_register): Likewise.
13389 (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
13390 * config/arm/arm.md (untyped_return): Likewise.
13391 * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
13392 * config/avr/avr.c (expand_prologue): Likewise.
13393 * config/bfin/bfin.c (do_unlink): Likewise.
13394 * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
13395 * config/cris/cris.c (cris_expand_prologue): Likewise.
13396 * config/darwin.c (machopic_indirect_data_reference): Likewise.
13397 (machopic_legitimize_pic_address): Likewise.
13398 * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
13399 (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
13400 * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
13401 (ix86_expand_convert_uns_didf_sse): Likewise.
13402 (ix86_expand_vector_init_general): Likewise.
13403 * config/ia64/ia64.md (eh_epilogue): Likewise.
13404 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
13405 * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
13406 * config/m32r/m32r.c (m32r_reload_lr): Likewise.
13407 (config/iq2000/iq2000.c): Likewise.
13408 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
13409 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
13410 (builtin_longjmp): Likewise.
13411 * config/mn10300/mn10300.md (call, call_value): Likewise.
13412 * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
13413 * config/pdp11/pdp11.md (abshi2): Likewise.
13414 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
13415 * config/s390/s390.c (s390_emit_prologue): Likewise.
13416 * config/s390/s390.md (movmem_long, setmem_long): Likewise.
13417 (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
13418 (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
13419 * config/sh/sh.c (prepare_move_operands): Likewise.
13420 (output_stack_adjust, sh_expand_epilogue): Likewise.
13421 (sh_set_return_address, sh_expand_t_scc): Likewise.
13422 * config/sparc/sparc.c (load_pic_register): Likewise.
13423 * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
13424 * config/spu/spu.c (spu_expand_epilogue): Likewise.
13425 * config/v850/v850.c (expand_epilogue): Likewise.
13426
13427 2008-05-31 Anatoly Sokolov <aesok@post.ru>
13428
13429 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
13430 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
13431 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
13432 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
13433 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
13434 stack pointer register.
13435 (output_movhi): Remove code for interrupt specific writing to the
13436 stack pointer register.
13437
13438 2008-05-31 Richard Guenther <rguenther@suse.de>
13439
13440 PR tree-optimization/34244
13441 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
13442 (tree_expr_nonzero_warnv_p): Likewise.
13443 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
13444 ssa_name_nonnegative_p.
13445 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
13446 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
13447 not tree_expr_nonzero_warnv_p.
13448
13449 PR tree-optimization/36262
13450 Revert
13451 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
13452
13453 PR tree-optimization/34244
13454 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
13455 (record_numbers_of_iterations): New function.
13456 (execute_vrp): Cache the numbers of iterations of loops.
13457 * tree-scalar-evolution.c (scev_reset_except_niters):
13458 New function.
13459 (scev_reset): Use scev_reset_except_niters.
13460 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
13461
13462 2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
13463
13464 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
13465 __WORKAROUND_RETS when appropriate.
13466
13467 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
13468
13469 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
13470 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
13471 mode iterator.
13472 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
13473 *fop_df_comm_sse insn patterns using MODEF mode iterator.
13474 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
13475 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
13476 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
13477 *fop_df_1_mixed insn patterns using MODEF mode iterator.
13478 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
13479 *fop_df_1_sse insn patterns using MODEF mode iterator.
13480 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
13481 *fop_df_1_i387 insn patterns using MODEF mode iterator.
13482 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
13483 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
13484 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
13485 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
13486 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
13487 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
13488 (*fop_xf_4_i387): Use <MODE> for mode attribute.
13489 (*fop_xf_5_i387): Ditto.
13490 (*fop_xf_6_i387): Ditto.
13491
13492 2008-05-30 Richard Guenther <rguenther@suse.de>
13493
13494 * builtins.c (build_string_literal): Avoid generating
13495 a non-gimple_val result.
13496
13497 2008-05-30 DJ Delorie <dj@redhat.com>
13498
13499 * exec-tool.in: Use an environment variable (private) instead of a
13500 file (shared) as a semaphore, so as to not break parallel builds.
13501
13502 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
13503
13504 * optabs.c (maybe_encapsulate_block): Remove.
13505 (emit_libcall_block): Adjust accordingly.
13506 * optabs.h (maybe_encapsulate_block): Remove prototype.
13507
13508 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
13509 Don't use maybe_encapsulate_block.
13510
13511 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
13512
13513 * config/rs6000/rs6000.c (rs6000_legitimize_address,
13514 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
13515 rtx is a SYMBOL_REF before calling get_pool_constant.
13516
13517 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
13518
13519 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
13520
13521 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
13522
13523 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
13524 rather than OS names to choose INO_T_EQ definition.
13525 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
13526 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
13527
13528 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
13529
13530 PR target/36348
13531 * config/darwin-f.c: New.
13532 * config/t-darwin: Added rule to build darwin-f.o.
13533 * config.gcc: Defined new variable, fortran_target_objs.
13534 (*-*-darwin*): Set fortran_target_objs.
13535 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
13536 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
13537 * configure: Regenerated.
13538
13539 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
13540
13541 PR target/35771
13542 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
13543 canonical type if needed.
13544
13545 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
13546
13547 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
13548
13549 2008-05-29 Richard Guenther <rguenther@suse.de>
13550
13551 PR tree-optimization/36343
13552 PR tree-optimization/36346
13553 PR tree-optimization/36347
13554 * tree-flow.h (clobber_what_p_points_to): Declare.
13555 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
13556 pointed-to variable is dereferenced is irrelevant to whether
13557 the pointer can access the pointed-to variable.
13558 (clobber_what_p_points_to): New function.
13559 * tree-ssa-alias.c (set_initial_properties): Use it.
13560 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
13561 call clobber check for NMTs.
13562
13563 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
13564
13565 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
13566 for printing gcov_type.
13567
13568 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
13569
13570 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
13571 and the eh region information.
13572 * value-prof.c (gimple_move_stmt_histograms): New function.
13573 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
13574
13575 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
13576
13577 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
13578
13579 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
13580
13581 * value-prof.c (tree_ic_transform): Print counts.
13582 * tree-profile.c (tree_gen_ic_func_profiler):
13583 Clear __gcov_indreict_call_callee variable to avoid misattribution
13584 of the profile.
13585
13586 2008-05-28 Rafael Espíndola <espindola@google.com>
13587
13588 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
13589 invalid sharing.
13590
13591 2008-05-28 Richard Guenther <rguenther@suse.de>
13592
13593 PR tree-optimization/36339
13594 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
13595 and clobbering code out of the loop.
13596
13597 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
13598
13599 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
13600 letters defined.
13601
13602 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
13603 s390_contiguous_bitmask_p, s390_symref_operand_p,
13604 s390_check_symref_alignment, s390_reload_larl_operand,
13605 s390_reload_symref_address): New functions.
13606 (s390_branch_condition_mnemonic): Support compare and branch
13607 instructions.
13608 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
13609 and 'W' constraints.
13610 (s390_secondary_reload): Add secondary reloads for unaligned
13611 symbol refs or symbol refs to floating point or QI/TI mode
13612 integer values.
13613 (legitimate_address_p): Accept symbol references as addresses.
13614 (s390_expand_insv): Use rotate and insert selected bits
13615 instruction for insv when building for z10.
13616 (print_operand_address): Handle symbol ref addresses.
13617 (print_operand): Output modifier 'c' added for signed byte values.
13618 (s390_encode_section_info): Mark symbol refs with
13619 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
13620
13621 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
13622 (length attribute): RRF, RRR have 4 byte length.
13623 (FPALL, INTALL): New mode iterators added.
13624 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
13625 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
13626 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
13627 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
13628 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
13629 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
13630 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
13631 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
13632 instructions.
13633 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
13634 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
13635 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
13636 reload<INTALL:mode><P:mode>_toreg_z10,
13637 reload<FPALL:mode><P:mode>_tomem_z10,
13638 reload<FPALL:mode><P:mode>_toreg_z10,
13639 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
13640 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
13641 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
13642 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
13643 definition.
13644 (movmem, clrmem, cmpmem): New splitters added.
13645
13646 * config/s390/predicates.md (larl_operand): Use
13647 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
13648 SYMBOL_REF_ALIGN1_P.
13649 (s390_signed_integer_comparison,
13650 s390_unsigned_integer_comparison): New predicates.
13651
13652 * config/s390/s390-protos.h (s390_check_symref_alignment,
13653 s390_contiguous_bitmask_p, s390_reload_larl_operand,
13654 s390_reload_symref_address,
13655 s390_compare_and_branch_condition_mask): Prototypes added.
13656
13657 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
13658 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
13659 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
13660
13661 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
13662
13663 * config/s390/s390.c (z10_cost): New cost function for z10.
13664 (s390_handle_arch_option, override_options): Support -march=z10 switch.
13665 (s390_issue_rate): Adjust issue rate for z10.
13666 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
13667 (processor_flags): Add PF_Z10.
13668 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
13669 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
13670 * gcc/config.gcc: Add z10.
13671
13672 2008-05-28 Richard Guenther <rguenther@suse.de>
13673
13674 PR tree-optimization/36291
13675 * tree-flow. h (struct gimple_df): Remove var_anns member.
13676 * tree-flow-inline.h (gimple_var_anns): Remove.
13677 (var_ann): Simplify.
13678 * tree-dfa.c (create_var_ann): Simplify.
13679 (remove_referenced_var): Clear alias info from var_anns of globals.
13680 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
13681 (delete_tree_ssa): Clear alias info from var_anns of globals.
13682 Do not free var_anns.
13683 (var_ann_eq): Remove.
13684 (var_ann_hash): Likewise.
13685
13686 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
13687
13688 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
13689 and loongson2f entries.
13690 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
13691 * config/mips/mips.h (processor_type): Add Loongson-2E
13692 and Loongson-2F entries.
13693 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
13694 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
13695 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
13696 * doc/invoke.texi (MIPS Options): Document loongson2e
13697 and loongson2f processor names.
13698
13699 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
13700
13701 PR target/35767
13702 PR target/35771
13703 * config/i386/i386.c (ix86_function_arg_boundary): Use
13704 alignment of canonical type.
13705 (ix86_expand_vector_move): Check unaligned memory access for
13706 all SSE modes.
13707
13708 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
13709
13710 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
13711 Moved to the front of file.
13712
13713 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
13714 H.J. Lu <hongjiu.lu@intel.com>
13715
13716 * dwarf2out.c (current_fde): New.
13717 (add_cfi): Use it.
13718 (lookup_cfa:): Likewise.
13719 (dwarf2out_end_epilogue): Likewise.
13720 (dwarf2out_note_section_used): Likewise.
13721
13722 2008-05-27 Michael Matz <matz@suse.de>
13723
13724 PR c++/27975
13725 * c.opt (Wenum-compare): New warning option.
13726 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
13727
13728 2008-05-27 Michael Matz <matz@suse.de>
13729
13730 PR middle-end/36326
13731 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
13732 non-BLKmode types.
13733 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
13734 into memory as tail calls.
13735
13736 2008-05-27 Richard Guenther <rguenther@suse.de>
13737
13738 PR tree-optimization/36339
13739 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
13740 pointers cause all addressable variables to be call clobbered.
13741
13742 2008-05-27 Richard Guenther <rguenther@suse.de>
13743
13744 PR tree-optimization/36245
13745 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
13746
13747 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
13748
13749 * config/s390/s390.md: Replace all occurences of the 'm'
13750 constraint with 'RT'.
13751
13752 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
13753
13754 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
13755 definitions added.
13756 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
13757 "*movdi_64".
13758 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
13759 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
13760 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
13761
13762 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
13763
13764 * reload.c: (find_reloads): Skip alternatives according to the
13765 "enabled" attribute. Constify the constraint variable.
13766 * recog.c (get_attr_enabled): Add default implementation.
13767 (extract_insn): Set the alternative_enabled_p array
13768 in the recog_data struct.
13769 (preprocess_constraints, constrain_operands): Skip
13770 alternatives according to the "enabled" attribute
13771 * recog.h (struct recog_data): New field alternative_enabled_p.
13772 (skip_alternative): New inline function.
13773 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
13774 (record_reg_classes): Skip alternative according to the
13775 "enabled" attribute.
13776
13777 * doc/md.texi: Add documention for the "enabled" attribute.
13778
13779 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
13780
13781 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
13782 * postreload.c (reload_cse_simplify_operands): Replace 'm'
13783 constraint with TARGET_MEM_CONSTRAINT.
13784 * recog.c (asm_operand_ok, preprocess_constraints,
13785 constrain_operands): Likewise.
13786 * regclass.c (record_reg_classes): Likewise.
13787 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
13788 * reload1.c (maybe_fix_stack_asms): Likewise.
13789 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
13790 * recog.h: Adjust comment.
13791 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
13792 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
13793 * doc/md.texi: Add a note to description of 'm' constraint.
13794 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
13795
13796 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
13797
13798 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
13799 that the bitfield is of integral type before testing its precision.
13800
13801 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
13802 Sa Liu <saliu@de.ibm.com>
13803
13804 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
13805 __modti3, __udivti3, __umodti3 and __udivmodti4.
13806 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
13807 that implement TImode mul and div functions.
13808 * config/spu/multi3.c: New. Implement __multi3.
13809 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
13810 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
13811 functions on SPU.
13812
13813 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
13814
13815 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
13816 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
13817 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
13818 tls_sysv_suffix): New mode and mode attribute iterators.
13819 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
13820 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
13821 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
13822 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
13823 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
13824 iterators.
13825
13826 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
13827
13828 PR tree-optimization/36329
13829 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
13830 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
13831 * cgraphbuild.c (initialize_inline_failed): Use the latter
13832 macro in lieu of the former.
13833 * ipa-inline.c (cgraph_mark_inline): Likewise.
13834 (cgraph_decide_inlining_of_small_function): Likewise.
13835 (cgraph_decide_inlining): Likewise.
13836 (cgraph_decide_inlining_incrementally): Likewise.
13837
13838 2008-05-26 Tristan Gingold <gingold@adacore.com>
13839 Anatoly Sokolov <aesok@post.ru>
13840
13841 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
13842 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
13843 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
13844 optimization for 'avr6' architecture.
13845
13846 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
13847
13848 PR target/34932
13849 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
13850
13851 2008-05-26 Richard Guenther <rguenther@suse.de>
13852
13853 * tree-ssa-sccvn.c (expr_has_constants): Declare.
13854 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
13855
13856 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
13857
13858 PR middle-end/36253
13859 * caller-save.c (insert_restore): Verify alignment of spill space.
13860 (insert_save): Likewise.
13861 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
13862 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
13863 (STACK_SLOT_ALIGNMENT): Likewise.
13864 * function.c (LOCAL_ALIGNMENT): Removed.
13865 (get_stack_local_alignment): New.
13866 (assign_stack_local): Use it. Set alignment on stack slot.
13867 (assign_stack_temp_for_type): Use get_stack_local_alignment.
13868 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
13869 (STACK_SLOT_ALIGNMENT): New.
13870 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
13871 stack slot in XFmode.
13872
13873 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
13874
13875 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
13876
13877 PR/36321
13878 * config/i386/i386.md (allocate_stack_worker_64): Make sure
13879 argument operand in rax isn't removed.
13880
13881 2008-05-26 Richard Guenther <rguenther@suse.de>
13882
13883 PR middle-end/36300
13884 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
13885 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
13886
13887 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
13888
13889 PR bootstrap/36331
13890 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
13891
13892 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
13893
13894 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
13895 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
13896
13897 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
13898
13899 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
13900 build a trampoline if we don't want one.
13901 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
13902 return zero for nested functions if we don't want a trampoline.
13903
13904 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
13905
13906 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
13907
13908 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
13909
13910 PR fortran/18428
13911 * c.opt: Removed undocumented option '-lang-fortran'.
13912 * c-common.h: Removed global variable 'lang_fortran'.
13913 * c-opts.c (c_common_handle_option): Removed code to handle
13914 option '-lang-fortran'. Updated includes.
13915 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
13916 definition of '__GFORTRAN__'.
13917 (define__GNUC__): Reimplemented to use BASEVER and
13918 cpp_define_formatted.
13919 (builtin_define_with_value_n): Removed.
13920 * c-incpath.h: Renamed to ...
13921 * incpath.h: ... this.
13922 * c-incpath.c: Renamed to ...
13923 * incpath.c: ... this. Updated includes.
13924 * fix-header.c: Updated includes.
13925 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
13926 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
13927 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
13928
13929 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
13930
13931 * tree.h: Update the table of flags used on tree nodes.
13932 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
13933 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
13934 (FORCED_LABEL): Add access check.
13935 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
13936 (ASM_INPUT_P): Likewise.
13937 (ASM_VOLATILE_P): Likewise.
13938 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
13939 (OMP_SECTION_LAST): Access private_flag directly.
13940 (OMP_RETURN_NOWAIT): Likewise.
13941 (OMP_PARALLEL_COMBINED): Likewise.
13942 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
13943 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
13944 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
13945 deprecated_flag directly.
13946
13947 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
13948
13949 * final.c (frame_pointer_needed): Removed.
13950 * flags.h (frame_pointer_needed): Likewise.
13951
13952 * function.h (rtl_data): Add frame_pointer_needed.
13953 (frame_pointer_needed): New.
13954
13955 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
13956
13957 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
13958
13959 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
13960
13961 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
13962 SRC is a REG.
13963
13964 2008-05-25 Alan Modra <amodra@bigpond.net.au>
13965
13966 * c-common.c (strip_array_types): Move function to..
13967 * tree.c: ..here.
13968 (get_inner_array_type): Delete.
13969 * c-common.h (strip_array_types): Move declaration to..
13970 * tree.h: ..here.
13971 (get_inner_array_type): Delete.
13972 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
13973 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
13974 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
13975 * config/pa/pa.c (emit_move_sequence): Likewise.
13976
13977 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
13978
13979 * config/i386/i386.md (*sse_prologue_save_insn): Set length
13980 attribute to 34.
13981
13982 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
13983
13984 * function.c: Include target hook for nonlocal_goto frame value.
13985
13986 2008-05-24 Richard Guenther <rguenther@suse.de>
13987
13988 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
13989 variable can be only accessed through a pointer or a union.
13990
13991 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13992
13993 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
13994 * doc/extend.texi: Likewise.
13995
13996 2008-05-23 DJ Delorie <dj@redhat.com>
13997
13998 * config/m32c/jump.md (untyped_call): Add.
13999
14000 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
14001 for A24 to PSImode.
14002 (m32c_address_cost): Detail costs for indirect offsets.
14003
14004 2008-05-23 Rafael Espíndola <espindola@google.com>
14005
14006 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
14007 if a node is a SUBREG.
14008 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
14009 is a SUBREG.
14010
14011 2008-05-23 Paul Brook <paul@codesourcery.com>
14012 Carlos O'Donell <carlos@codesourcery.com>
14013
14014 * doc/extend.texi: Clarify use of __attribute__((naked)).
14015 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
14016 * target.h (gcc_target): Add allocate_stack_slots_for_args.
14017 * function.c (use_register_for_decl): Use
14018 targetm.calls.allocate_stack_slots_for_args.
14019 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
14020 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
14021 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
14022
14023 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
14024
14025 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
14026
14027 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
14028
14029 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
14030 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
14031 is only rounded once.
14032
14033 2008-05-23 Richard Guenther <rguenther@suse.de>
14034
14035 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
14036
14037 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
14038 Jakub Jelinek <jakub@redhat.com>
14039
14040 PR target/36079
14041 * configure.ac: Handle --enable-cld.
14042 * configure: Regenerated.
14043 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
14044 * config/i386/i386.h (struct machine_function): Add needs_cld field.
14045 (ix86_current_function_needs_cld): New define.
14046 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
14047 (cld): New isns pattern.
14048 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
14049 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
14050 * config/i386/i386.opt (mcld): New option.
14051 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
14052 TARGET_CLD and ix86_current_function_needs_cld.
14053 (override_options): Use -mcld by default for 32-bit code if
14054 USE_IX86_CLD.
14055
14056 * doc/install.texi (Options specification): Document --enable-cld.
14057 * doc/invoke.texi (Machine Dependent Options)
14058 [i386 and x86-64 Options]: Add -mcld option.
14059 (Intel 386 and AMD x86-64 Options): Document -mcld option.
14060
14061 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
14062 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
14063 (return_in_memory_64): Likewise.
14064 (return_in_memory_ms_64): Likewise.
14065
14066 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14067
14068 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
14069 * builtins.c (fold_builtin_fpclassify): New.
14070 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
14071 * builtins.def (BUILT_IN_FPCLASSIFY): New.
14072 * c-common.c (handle_type_generic_attribute): Adjust to accept
14073 fixed arguments before an elipsis.
14074 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
14075 * doc/extend.texi: Document __builtin_fpclassify.
14076
14077 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
14078
14079 * omp-low.c (gate_expand_omp_ssa): Remove.
14080 (pass_expand_omp_ssa): Remove.
14081 (gate_expand_omp): Do not check for flag_openmp_ssa.
14082 * common.opt (-fopenmp-ssa): Remove.
14083 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
14084
14085 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
14086
14087 * config/sh/sh.opt (mfixed-range): New option.
14088 * config/sh/sh-protos.h (sh_fix_range): Declare.
14089 * config/sh/sh.c (sh_fix_range): New function.
14090 * config/sh/sh.h (sh_fixed_range_str): Declare.
14091 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
14092 is not empty.
14093 * doc/invoke.texi (SH Options): Document -mfixed-range.
14094
14095 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
14096
14097 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
14098 it before the redeclaration.
14099
14100 2008-05-22 Anatoly Sokolov <aesok@post.ru>
14101
14102 * config/avr/avr.c (get_sequence_length): Add new function.
14103 (expand_prologue, expand_epilogue): Remove duplicate code.
14104
14105 2008-05-22 Rafael Espíndola <espindola@google.com>
14106
14107 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
14108 sharing.
14109
14110 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
14111
14112 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
14113 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
14114
14115 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
14116 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
14117 (vect_update_misalignment_for_peel): Likewise.
14118 (vector_alignment_reachable_p): Likewise.
14119 * tree-vect-transform.c (vectorizable_load): Likewise.
14120 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
14121 (get_vectype_for_scalar_type): Pass mode of scalar_type
14122 to UNITS_PER_SIMD_WORD.
14123
14124 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
14125 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
14126 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
14127 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
14128 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
14129
14130 2008-05-22 Ira Rosen <irar@il.ibm.com>
14131
14132 PR tree-optimization/36293
14133 * tree-vect-transform.c (vect_transform_strided_load): Don't check
14134 if the first load must be skipped because of a gap.
14135
14136 2008-05-22 Richard Guenther <rguenther@suse.de>
14137
14138 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
14139 more cases of offset disambiguation that is possible if
14140 strict-aliasing rules apply.
14141 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
14142 for basic offset and type-based disambiguation.
14143
14144 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
14145
14146 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
14147 ix86_expand_vector_set on V16QImode for SSE4.1.
14148
14149 2008-05-21 Tom Tromey <tromey@redhat.com>
14150
14151 * c.opt (Wimport): Mark as undocumented.
14152 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
14153 -Wno-import.
14154 (Warning Options): Likewise.
14155 * doc/cppopts.texi: Don't mention -Wimport.
14156
14157 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
14158
14159 PR tree-optimization/36287
14160 PR tree-optimization/36286
14161 * lambda-code.c (build_access_matrix): Do not use the loop->num
14162 for computing the number of induction variables: use the loop depth
14163 instead.
14164
14165 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
14166
14167 PR/36280
14168 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
14169 option -f(no-)leading-underscore.
14170
14171 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
14172
14173 * config/i386/i386.c (ix86_expand_vector_init_general): Use
14174 GET_MODE_NUNITS (mode).
14175
14176 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
14177
14178 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
14179 (-mmulhw): Add 464 to description.
14180 (-mdlmzb): Likewise.
14181 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
14182 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
14183 464fp entries.
14184 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
14185 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
14186 * config/rs6000/rs6000.md: Update comments for 464.
14187
14188 2008-05-21 Janis Johnson <janis187@us.ibm.com>
14189
14190 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
14191
14192 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
14193
14194 * config/i386/sse.md (vec_extractv4sf): Removed.
14195 (vec_extractv2df): Likewise.
14196 (vec_extractv2di): Likewise.
14197 (vec_extractv4si): Likewise.
14198 (vec_extractv8hi): Likewise.
14199 (vec_extractv16qi): Likewise.
14200 (vec_extract<mode>): New.
14201
14202 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
14203
14204 * config/i386/sse.md (vec_setv4sf): Removed.
14205 (vec_setv2df): Likewise.
14206 (vec_setv2di): Likewise.
14207 (vec_setv4si): Likewise.
14208 (vec_setv8hi): Likewise.
14209 (vec_setv16qi): Likewise.
14210 (vec_set<mode>): New.
14211
14212 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
14213
14214 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
14215 goto for vec_concat and vec_interleave.
14216
14217 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
14218
14219 * config/i386/sse.md (vec_initv4sf): Removed.
14220 (vec_initv2df): Likewise.
14221 (vec_initv2di): Likewise.
14222 (vec_initv4si): Likewise.
14223 (vec_initv8hi): Likewise.
14224 (vec_initv16qi): Likewise.
14225 (vec_init<mode>): New.
14226
14227 2008-05-21 Joseph Myers <joseph@codesourcery.com>
14228
14229 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
14230
14231 2008-05-21 Tom Tromey <tromey@redhat.com>
14232
14233 * ggc-zone.c (lookup_page_table_if_allocated): New function.
14234 (zone_find_object_offset): Likewise.
14235 (gt_ggc_m_S): Likewise.
14236 (highest_bit): Likewise.
14237 * ggc-page.c (gt_ggc_m_S): New function.
14238 * stringpool.c (string_stack): Remove.
14239 (init_stringpool): Update.
14240 (ggc_alloc_string): Use ggc_alloc.
14241 (maybe_delete_ident): New function.
14242 (ggc_purge_stringpool): Likewise.
14243 (gt_ggc_m_S): Remove.
14244 * ggc-common.c (ggc_protect_identifiers): New global.
14245 (ggc_mark_roots): Call ggc_purge_stringpool. Use
14246 ggc_protect_identifiers.
14247 * ggc.h (ggc_protect_identifiers): Declare.
14248 (gt_ggc_m_S): Update.
14249 (ggc_purge_stringpool): Declare.
14250 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
14251 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
14252 special case.
14253 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
14254
14255 2008-05-21 David S. Miller <davem@davemloft.net>
14256
14257 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
14258 tmake_file.
14259
14260 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
14261
14262 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
14263 once finished.
14264
14265 2008-05-20 David Daney <ddaney@avtrex.com>
14266
14267 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
14268 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
14269 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
14270 UNSPEC_UPDATE_GOT_VERSION): Renumber.
14271 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
14272 (atomic_hiqi_op): New define_code_iterator.
14273 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
14274 mips_expand_compare_and_swap_12.
14275 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
14276 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
14277 (sync_<optab><mode>, sync_old_<optab><mode>,
14278 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
14279 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
14280 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
14281 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
14282 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
14283 (test_and_set_12): New insn.
14284 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
14285 sync_new_<optab><mode>, sync_old_nand<mode>,
14286 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
14287 clobber to operand 0 for SI and DI mode insns.
14288 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
14289 mips_gen_fn_4): New typedefs.
14290 (mips_gen_fn_ptrs): Define new union type.
14291 (mips_expand_compare_and_swap_12): Remove declaration.
14292 (mips_expand_atomic_qihi): Declare function.
14293 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
14294 (mips_expand_atomic_qihi): ... this. Use new generator function
14295 parameter.
14296 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
14297 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
14298 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
14299 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
14300 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
14301 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
14302 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
14303 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
14304 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
14305 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
14306 New macros.
14307
14308 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
14309
14310 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
14311 the missing break.
14312
14313 2008-05-20 Anatoly Sokolov <aesok@post.ru>
14314
14315 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
14316 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
14317 (avr_attribute_table): Add 'OS_main' function attribute.
14318 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
14319 functions with 'OS_main' attribute.
14320
14321 2008-05-20 Richard Guenther <rguenther@suse.de>
14322
14323 PR tree-optimization/35204
14324 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
14325 helper, split out from ...
14326 (DFS): ... here. Make the DFS walk non-recursive.
14327
14328 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
14329 Jan Sjodin <jan.sjodin@amd.com>
14330
14331 PR tree-optimization/36181
14332 * tree-parloops.c (loop_has_vector_phi_nodes): New.
14333 (parallelize_loops): Don't parallelize when the loop has vector
14334 phi nodes.
14335
14336 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
14337 Sebastian Pop <sebastian.pop@amd.com>
14338
14339 * tree-loop-linear.c (gather_interchange_stats): Look in the access
14340 matrix, and never look at the tree representation of the memory
14341 accesses.
14342 (linear_transform_loops): Computes parameters and access matrices.
14343 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
14344 when fails.
14345 (access_matrix_get_index_for_parameter): New.
14346 * tree-data-ref.h (struct access_matrix): New.
14347 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
14348 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
14349 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
14350 am_vector_index_for_loop): New.
14351 (struct data_reference): Add field access_matrix.
14352 (DR_ACCESS_MATRIX): New.
14353 (compute_data_dependences_for_loop): Update declaration.
14354 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
14355 * lambda.h (lambda_vector_vec_p): Declared.
14356 * lambda-code.c: Depend on pointer-set.h.
14357 (lambda_collect_parameters_from_af, lambda_collect_parameters,
14358 av_for_af_base, av_for_af, build_access_matrix,
14359 lambda_compute_access_matrices): New.
14360 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
14361
14362 2008-05-20 Joseph Myers <joseph@codesourcery.com>
14363
14364 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
14365 $SOURCEDIR/include.
14366
14367 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
14368 Sebastian Pop <sebastian.pop@amd.com>
14369
14370 PR tree-optimization/36206
14371 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
14372 FOLD_CONVERSIONS.
14373 (instantiate_scev_1): Rename flags to fold_conversions.
14374 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
14375 outeside instantiation_loop.
14376 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
14377 (evolution_function_is_affine_or_constant_p): Removed.
14378 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
14379 instantiate_scev.
14380 (analyze_siv_subscript): Pass in the loop nest number.
14381 Call evolution_function_is_affine_in_loop instead of
14382 evolution_function_is_affine_p.
14383 (analyze_overlapping_iterations): Pass in the loop nest number.
14384
14385 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
14386 Sebastian Pop <sebastian.pop@amd.com>
14387
14388 PR tree-optimization/36206
14389 * tree-chrec.h (chrec_fold_op): New.
14390 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
14391 and other trees.
14392
14393 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
14394
14395 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
14396 (DIRS_EQ): New.
14397 (remove_duplicates): Do not set inode on non-inode systems.
14398 Use DIRS_EQ.
14399
14400 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
14401
14402 * config.gcc (tm_file): Update comments about relative pathnames.
14403
14404 2008-05-20 Richard Guenther <rguenther@suse.de>
14405
14406 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
14407 * tree-ssa-sccvn.c (process_scc): Likewise.
14408 * tree-ssa-sink.c (execute_sink_code): Likewise.
14409 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
14410 * tree-vrp.c (process_assert_insertions): Likewise.
14411 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
14412 (perform_tree_ssa_dce): Likewise.
14413 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
14414 (dump_dominator_optimization_stats): Likewise.
14415 * tree-vectorizer.c (vectorize_loops): Likewise.
14416
14417 2008-05-20 Richard Guenther <rguenther@suse.de>
14418
14419 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
14420
14421 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
14422
14423 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
14424 (ix86_i386elf_return_in_memory): Likewise.
14425 (ix86_i386interix_return_in_memory): Likewise.
14426 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
14427 (SUBTARGET_RETURN_IN_MEMORY): New.
14428 * config/i386/i386elf.h: Likewise.
14429 * config/i386/ptx4-i.h: Likewise.
14430 * config/i386/sol2-10.h: Likewise.
14431 * config/i386/sysv4.h: Likewise.
14432 * config/i386/vx-common.h: Likewise.
14433 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
14434 * config/i386/i386.c (ix86_return_in_memory): Made static and
14435 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
14436 (ix86_i386elf_return_in_memory): Removed.
14437 (ix86_i386interix_return_in_memory): Removed.
14438 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
14439 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
14440
14441 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
14442
14443 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
14444
14445 2008-05-19 Xinliang David Li <davidxl@google.com>
14446
14447 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
14448 * opts.c: Ditto.
14449 * common.opt: Ditto.
14450 * doc/invoke.texi: Ditto.
14451
14452 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
14453
14454 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
14455 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
14456
14457 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
14458
14459 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
14460 sizes of operand array from 8/4 to 4/2.
14461 (ix86_expand_vector_init_general): Change size of operand array
14462 from 32 to 16. Remove op0, op1 and half_mode.
14463
14464 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
14465
14466 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
14467 (ix86_expand_vector_init_interleave): Likewise.
14468 (ix86_expand_vector_init_general): Use them. Assert
14469 word_mode == SImode when n_words == 4.
14470
14471 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
14472
14473 * config/i386/i386.c (ix86_secondary_reload): New static function.
14474 (TARGET_SECONDARY_RELOAD): New define.
14475 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
14476 * config/i386/i386.md (reload_outqi): Remove.
14477
14478 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14479
14480 PR middle-end/35509
14481 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
14482 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
14483 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
14484 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
14485 (fold_builtin_1): Likewise.
14486 * builtins.def (BUILT_IN_ISINF_SIGN): New.
14487 c-common.c (check_builtin_function_arguments): Handle
14488 BUILT_IN_ISINF_SIGN.
14489 * doc/extend.texi: Document __builtin_isinf_sign.
14490 * fold-const.c (operand_equal_p): Handle COND_EXPR.
14491
14492 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
14493
14494 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
14495 EH cleanup at the end of the pass, search for those that have been
14496 turned into forwarder blocks and do the cleanup on their successor.
14497
14498 2008-05-18 Richard Guenther <rguenther@suse.de>
14499
14500 * tree-cfg.c (verify_gimple_expr): Allow conversions from
14501 pointers to sizetype and vice versa.
14502
14503 2008-05-18 Xinliang David Li <davidxl@google.com>
14504
14505 * gcc/tree-ssa-dce.c: Coding style fix.
14506 (check_pow): Documentation comment.
14507 (check_log): Documenation comment. Coding style fix.
14508 (is_unnecessary_except_errno_call): Ditto.
14509 (gen_conditions_for_pow): Ditto.
14510 (gen_conditions_for_log): Ditto.
14511 (gen_shrink_wrap_conditions): Ditto.
14512 (shrink_wrap_one_built_in_calls): Ditto.
14513 * gcc/doc/invoke.texi: Better documentation string.
14514 * ChangeLog: Fix wrong change log entries from
14515 May 17 checkin on function call DCE.
14516
14517 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
14518
14519 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
14520
14521 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
14522
14523 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
14524 * df-problems.c (simulation routines): Fixed block comment to
14525 properly say how to add forwards scanning functions.
14526
14527 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
14528
14529 * tree-inline.c (setup_one_parameter): Remove dead code.
14530
14531 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
14532
14533 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
14534 a BIT_AND_EXPR only for an INTEGER_TYPE.
14535
14536 2008-05-17 Xinliang David Li <davidxl@google.com>
14537
14538 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
14539 (check_pow, check_log, is_unnecessary_except_errno_call): New
14540 functions to check for eliminating math functions that are pure
14541 except for setting errno.
14542 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
14543 general condition expressions for shrink-wrapping pow/log calls.
14544 (gen_shrink_wrap_conditions): Ditto.
14545 (shrink_wrap_one_built_in_call): Ditto.
14546 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
14547 (mark_operand_necessary): If debugging, output if OP is necessary.
14548 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
14549 unnecessary.
14550 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
14551 opt level >= 2.
14552 * gcc/common.opt: New user flag -ftree-builtin-dce.
14553 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
14554
14555 2008-05-16 David S. Miller <davem@davemloft.net>
14556
14557 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
14558 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
14559
14560 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
14561
14562 PR target/36246
14563 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
14564
14565 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
14566
14567 * ifcvt.c (dead_or_predicable): Rename
14568 df_simulate_one_insn_backwards to df_simulate_one_insn.
14569 * recog.c (peephole2_optimize): Ditto.
14570 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
14571 Ditto.
14572 * df.h: Rename df_simulate_one_insn_backwards to
14573 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
14574 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
14575 scanning of defs and uses.
14576 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
14577 (df_simulate_one_insn_forwards): Removed.
14578
14579 2008-05-16 Doug Kwan <dougkwan@google.com>
14580
14581 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
14582 QNaN & SNaN.
14583 (real_from_string): Handle NaNs and Inf as approriate.
14584
14585 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
14586
14587 * doc/gty.texi (Source Files Containing Type Information): Note
14588 that headers should appear first in the gtfiles list.
14589
14590 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
14591
14592 * tree.def (COND_EXEC): Properly documented this code.
14593
14594 2008-05-16 Diego Novillo <dnovillo@google.com>
14595
14596 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
14597 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
14598 the new field.
14599
14600 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
14601
14602 * tree-ssa-dse (max_stmt_uid): Removed.
14603 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
14604 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
14605 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
14606 * function.h (cfun.last_stmt_uid): New field.
14607 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
14608 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
14609 New functions.
14610 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
14611 (create_stmt_ann): Initialize the ann->uid field.
14612 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
14613 with new calls.
14614 * tree-flow.h (renumber_gimple_stmt_uids): New function.
14615
14616 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
14617
14618 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
14619 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
14620 (init_empty_tree_cfg): Call it.
14621
14622 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
14623
14624 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
14625 Update all users.
14626
14627 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
14628
14629 * doc/invoke.text (-fdump-tree-*-verbose): New option.
14630 * tree-dump.c (dump_options): New verbose option.
14631 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
14632 Add verbose dump.
14633 * tree-pass.h (TDF_VERBOSE): New dump flag.
14634 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
14635 (tree-flow.h): Added include.
14636 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
14637
14638 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
14639
14640 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
14641
14642 From Jie Zhang <jie.zhang@analog.com>
14643 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
14644 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
14645 mcpu=bf561-none and mcpu=bf561-0.2.
14646 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
14647 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
14648 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
14649 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
14650 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
14651 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
14652 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
14653 option.
14654 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
14655 (cputype_selected): Remove.
14656 (bfin_handle_option): Don't use cputype_selected.
14657 (override_options): When no mcpu option, enable all workarounds.
14658 Don't use bfin_workarounds.
14659 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
14660 processor type.
14661 (DEFAULT_CPU_TYPE): Don't define.
14662
14663 2008-05-16 Richard Guenther <rguenther@suse.de>
14664
14665 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
14666 on deletion of the last stmt.
14667
14668 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
14669
14670 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
14671 V8HImode for SSE2 and V16QImode for SSE4.1.
14672
14673 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
14674
14675 * cgraph.h (compute_inline_parameters): Made public.
14676 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
14677 variable_generate_summary, function_write_summary,
14678 variable_write_summary, variable_read_summary. Added generate_summary,
14679 write_summary, read_summary.
14680 * cgraphunit.c (cgraph_process_new_functions): Changed call from
14681 pass_ipa_inline.function_generate_summary, to
14682 compute_inline_parameters.
14683 * ipa-inline.c (compute_inline_parameters): Made public and added
14684 node parameter.
14685 (compute_inline_parameters_for_current): New function.
14686 (pass_inline_param): Now calls compute_inline_parameters_for_current.
14687 (inline_generate_summary): Removed parameter and made to loop over
14688 all cgraph nodes.
14689 (pass_ipa_inline): Updated for new IPA_PASS structure.
14690 * passes.c (execute_ipa_summary_passes): Now is called once per
14691 pass rather than once per node*pass.
14692
14693 2008-05-15 Anatoly Sokolov <aesok@post.ru>
14694
14695 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
14696 avr_have_mul_p, avr_asm_only_p): Remove variables.
14697 (avr_override_options): Remove initialization of removed variables.
14698 (avr_file_start): Convert removed variables to fields of
14699 'struct base_arch_s *avr_current_arch'.
14700 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
14701 (AVR_HAVE_MUL): (Ditto.).
14702 (AVR_HAVE_MOVW): (Ditto.).
14703 (AVR_HAVE_LPMX): (Ditto.).
14704 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
14705 avr_asm_only_p): Remove declaration.
14706
14707 2008-05-15 Diego Novillo <dnovillo@google.com>
14708
14709 * config/arm/arm.c (arm_return_in_memory): Fix return type.
14710 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
14711
14712 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
14713
14714 PR middle-end/36194
14715 * combine.c (check_conversion): Rename back to check_promoted_subreg.
14716 Don't call record_truncated_value from here.
14717 (record_truncated_value): Turn it into a for_each_rtx callback.
14718 (record_truncated_values): New function.
14719 (combine_instructions): Call note_uses with record_truncated_values.
14720 Change name of check_conversion to check_promoted_subreg.
14721
14722 2008-05-15 Janis Johnson <janis187@us.ibm.com>
14723
14724 * doc/sourcebuild.texi: Document support for torture tests.
14725
14726 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
14727
14728 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
14729 to alternative 4 of operand 2.
14730
14731 2008-05-15 Richard Guenther <rguenther@suse.de>
14732
14733 * tree-pass.h (current_pass): Declare.
14734 (get_pass_for_id): Likewise.
14735 * passes.c (passes_by_id, passes_by_id_size): New globals.
14736 (set_pass_for_id): New function.
14737 (get_pass_for_id): Likewise.
14738 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
14739 (execute_function_todo): Flush per function statistics.
14740 * toplev.c (compile_file): Init statistics.
14741 (general_init): Do early statistics initialization.
14742 (finalize): Finish statistics.
14743 * statistics.h (statistics_early_init): Declare.
14744 (statistics_init): Likewise.
14745 (statistics_fini): Likewise.
14746 (statistics_fini_pass): Likewise.
14747 (statistics_counter_event): Likewise.
14748 (statistics_histogram_event): Likewise.
14749 * statistics.c: New file.
14750 * Makefile.in (OBJS-common): Add statistics.o.
14751 (statistics.o): Add dependencies.
14752 * doc/invoke.texi (-fdump-statistics): Document.
14753
14754 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
14755 (insert): Likewise.
14756 (execute_pre): Use statistics_counter_event.
14757 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
14758 (substitute_and_fold): Increment it. Use statistics_counter_event.
14759
14760 2008-05-15 Diego Novillo <dnovillo@google.com>
14761
14762 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
14763
14764 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
14765 * tree-ssa-alias.c (new_type_alias): Remove references to
14766 sub-variables from comment.
14767 * tree-ssa-operands.c (swap_tree_operands): Likewise.
14768
14769 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
14770
14771 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
14772 attribute to 1 only for insertps alternative.
14773
14774 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
14775
14776 * config/bfin/bfin.md (loadbytes): New pattern.
14777 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
14778 (bfin_init_builtins): Initialize it.
14779 (bdesc_1arg): Add it.
14780
14781 2008-05-15 Sa Liu <saliu@de.ibm.com>
14782
14783 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
14784 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
14785 * testsuite/lib/target-supports.exp: Add
14786 check_effective_target_fortran_integer_16.
14787
14788 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
14789
14790 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
14791 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
14792 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
14793 (TARGET_RETURN_IN_MEMORY): Define.
14794
14795 2008-05-15 Richard Guenther <rguenther@suse.de>
14796
14797 PR middle-end/36244
14798 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
14799 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
14800 represent unmodifiable vars.
14801
14802 2008-05-15 Richard Guenther <rguenther@suse.de>
14803
14804 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
14805 INDIRECT_REF and TARGET_MEM_REF.
14806 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
14807 TARGET_MEM_REF.
14808
14809 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
14810 H.J. Lu <hongjiu.lu@intel.com>
14811
14812 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
14813 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
14814 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
14815 insn alternatives. Add missing alternatives.
14816 (*vec_concatv2di_rex64_sse4_1): Likewise.
14817 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
14818 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
14819 Require TARGET_SSE.
14820
14821 2008-05-15 Richard Guenther <rguenther@suse.de>
14822
14823 PR tree-optimization/36009
14824 PR tree-optimization/36204
14825 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
14826 (determine_invariantness_stmt): Record the loop a store is
14827 always executed in.
14828 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
14829 dependency.
14830
14831 2008-05-15 Richard Guenther <rguenther@suse.de>
14832
14833 PR tree-optimization/34330
14834 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
14835 through the pointer will alias the SMT.
14836
14837 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
14838
14839 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
14840
14841 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
14842
14843 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
14844
14845 2008-05-14 Michael Meissner <michael.meissner@amd.com>
14846 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
14847
14848 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
14849 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
14850 (vashl_optab): New optab for vector/vector shifts.
14851 (vashr_optab): Ditto.
14852 (vlshr_optab): Ditto.
14853 (vrotl_optab): Ditto.
14854 (vrotr_optab): Ditto.
14855 (optab_subtype): New enum for optab_for_tree_code call.
14856 (optab_for_tree_code): Add enum optab_subtype argument.
14857
14858 * optabs.c (optab_for_tree_code): Take an additional argument to
14859 distinguish between a vector shift by a scalar and vector shift by
14860 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
14861 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
14862 vector shift by a vector.
14863 (expand_widen_pattern_expr): Pass additional argument to
14864 optab_for_tree_code.
14865
14866 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
14867 vrotl_optab, vrotr_optab.
14868
14869 * expr.c (expand_expr_real_1): Update calls to
14870 optab_for_tree_code to distinguish between vector shifted by a
14871 scalar and vector shifted by a vector.
14872 * tree-vectorizer.c (supportable_widening_operation): Ditto.
14873 (supportable_narrowing_operation): Ditto.
14874 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
14875 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
14876 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
14877 (vect_create_epilog_for_reduction): Ditto.
14878 (vectorizable_reduction): Ditto.
14879 (vectorizable_operation): Ditto.
14880 (vect_strided_store_supported): Ditto.
14881 (vect_strided_load_supported): Ditto.
14882 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
14883 * expmed.c (expand_shift): Ditto.
14884
14885 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
14886 scalar type.
14887 (ashr@var{m}3): Ditto.
14888 (vashl@var{m}3): Document new vector/vector shift standard name.
14889 (vashr@var{m}3): Ditto.
14890 (vlshr@var{m}3): Ditto.
14891 (vrotl@var{m}3): Ditto.
14892 (vrotr@var{m}3): Ditto.
14893
14894 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
14895 (PPERM_INVERT): Ditto.
14896 (PPERM_REVERSE): Ditto.
14897 (PPERM_REV_INV): Ditto.
14898 (PPERM_ZERO): Ditto.
14899 (PPERM_ONES): Ditto.
14900 (PPERM_SIGN): Ditto.
14901 (PPERM_INV_SIGN): Ditto.
14902 (PPERM_SRC1): Ditto.
14903 (PPERM_SRC2): Ditto.
14904
14905 * config/i386/sse.md (mulv2di3): Add SSE5 support.
14906 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
14907 allows a memory operand to be the value being added, and split it
14908 to improve vectorization.
14909 (sse5_pmacsdqh_mem): Ditto.
14910 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
14911 (sse5_mulv2div2di3_high): Ditto.
14912 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
14913 (vec_pack_trunc_v4si): Ditto.
14914 (vec_pack_trunc_v2di): Ditto.
14915 (sse5_pcmov_<mode>): Remove code that tried to use use
14916 andps/andnps instead of pcmov.
14917 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
14918 pmacsdqh instructions.
14919 (vec_widen_smult_lo_v4si): Ditto.
14920
14921 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
14922 (PPERM_INVERT): Ditto.
14923 (PPERM_REVERSE): Ditto.
14924 (PPERM_REV_INV): Ditto.
14925 (PPERM_ZERO): Ditto.
14926 (PPERM_ONES): Ditto.
14927 (PPERM_SIGN): Ditto.
14928 (PPERM_INV_SIGN): Ditto.
14929 (PPERM_SRC1): Ditto.
14930 (PPERM_SRC2): Ditto.
14931 (ix86_expand_sse_movcc): Move the SSE5 test after the if
14932 true/false tests.
14933 (ix86_expand_int_vcond): If SSE5 generate all possible integer
14934 comparisons.
14935 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
14936 says ignore whether the last reference is a memory operand.
14937
14938 2008-05-14 Michael Meissner <michael.meissner@amd.com>
14939 Paolo Bonzini <bonzini at gnu dot org>
14940
14941 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
14942 shift patterns.
14943
14944 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
14945 (vlshr<mode>3): Rename from vlshr<mode>3.
14946 (vashr<mode>3): Rename from vashr<mode>3.
14947 (mulv4sf3): Change the names of vector shift patterns.
14948 (mulv4si3): Ditto.
14949 (negv4sf2): Ditt.
14950
14951 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
14952 shift insns.
14953
14954 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
14955 (SI_SHLHI): Ditto.
14956 (SI_SHL): Ditto.
14957 (SI_SHLI): Ditto.
14958 (SI_ROTH): Ditto.
14959 (SI_ROTHI): Ditto.
14960 (SI_ROT): Ditto.
14961 (SI_ROTI): Ditto.
14962 (SPU_RL_0): Ditto.
14963 (SPU_RL_1): Ditto.
14964 (SPU_RL_2): Ditto.
14965 (SPU_RL_3): Ditto.
14966 (SPU_RL_4): Ditto.
14967 (SPU_RL_5): Ditto.
14968 (SPU_RL_6): Ditto.
14969 (SPU_RL_7): Ditto.
14970 (SPU_SL_0): Ditto.
14971 (SPU_SL_1): Ditto.
14972 (SPU_SL_2): Ditto.
14973 (SPU_SL_3): Ditto.
14974 (SPU_SL_4): Ditto.
14975 (SPU_SL_5): Ditto.
14976 (SPU_SL_6): Ditto.
14977 (SPU_SL_7): Ditto.
14978
14979 * config/spu/spu.md (v): New iterator macro to add v for vector types.
14980 (floatunssidf2_internal): Change vector/vector shift names.
14981 (floatunsdidf2_internal): Ditto.
14982 (mulv8hi3): Ditto.
14983 (ashrdi3): Ditto.
14984 (ashrti3): Ditto.
14985 (cgt_df): Ditto.
14986 (cgt_v2df): Ditto.
14987 (dftsv): Ditto.
14988 (vashl<mode>3): Rename from ashl<mode>3.
14989 (vashr<mode>3): Rename from ashr<mode>3.
14990 (vlshr<mode>3): Rename from lshr<mode>3.
14991 (vrotl<mode>3): Rename from rotl<mode>3.
14992
14993 2008-05-14 Michael Meissner <michael.meissner@amd.com>
14994
14995 PR target/36224
14996 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
14997 multiply gives the wrong value when doing widening multiplies.
14998 (vec_widen_smult_lo_v4si): Ditto.
14999
15000 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
15001
15002 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
15003 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
15004 emit_library_call_value.
15005 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
15006 * tree.h (ECF_LIBCALL_BLOCK): Removed.
15007 * calls.c (initialize_argument_information, precompute_arguments,
15008 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
15009 (precompute_arguments): Removed flags parameter.
15010 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
15011
15012 2008-05-14 Richard Guenther <rguenther@suse.de>
15013
15014 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
15015 Make sure to register the store if the use is a PHI_NODE.
15016
15017 2008-05-14 Olivier Hainque <hainque@adacore.com>
15018
15019 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
15020 memory if the component is to be referenced in BLKmode according
15021 to get_inner_reference.
15022
15023 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
15024
15025 * calls.c (emit_library_call_value_1): Restore code clearing
15026 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
15027
15028 2008-05-14 Olivier Hainque <hainque@adacore.com>
15029 Nicolas Roche <roche@adacore.com>
15030
15031 * configure.ac: Add support for a "gcc_subdir" variable in
15032 config-lang.in, to denote a subdirectory where the language/GCC
15033 integration files are to be found.
15034 * configure: Regenerate.
15035
15036 2008-05-14 Ira Rosen <irar@il.ibm.com>
15037
15038 PR tree-optimization/36098
15039 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
15040 value for the first load in the group in case of a gap.
15041 (vect_build_slp_tree): Check that there are no gaps in loads.
15042
15043 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
15044
15045 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
15046 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
15047 expand_copysign_bit, ): Change call to emit_no_conflict_block to
15048 emit_insn and remove unneeded code to construct extra args.
15049 (emit_no_conflict_block): Removed.
15050 * optabls.h: (emit_no_conflict_block): Removed.
15051 * cse.c (cse_extended_basic_block): Remove search for
15052 REG_NO_CONFLICT note.
15053 * global.c: Removed incorrect comment added in revision 117.
15054 * expr.c (convert_move): Change call to emit_no_conflict_block to
15055 emit_insn.
15056 * recog.c: Change comments so that they do not mention
15057 REG_NO_CONFLICT.
15058 * local_alloc.c (combine_regs): Removed last parameter.
15059 (no_conflict_p): Removed.
15060 (block_alloc): Removed note, no_conflict_combined_regno and set
15061 local vars. Removed all code to process REG_NO_CONFLICT blocks.
15062 (combine_regs): Removed already_dead and code to look for
15063 REG_NO_CONFLICT notes.
15064 * lower_subreg (remove_retval_note): Removed code to look for
15065 REG_NO_CONFLICT block.
15066 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
15067 (resolve_clobber): Remove code to process libcalls that have
15068 REG_NO_CONFLICT notes.
15069 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
15070 case.
15071 * combine.c (can_combine_p, distribute_notes): Removed
15072 REG_NO_CONFLICT case.
15073 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
15074 to emit_insns.
15075 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
15076 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
15077 Ditto.
15078 * reg-notes.def (NO_CONFLICT): Removed.
15079
15080 2008-05-14 David S. Miller <davem@davemloft.net>
15081
15082 * config/sparc/sparc.c (sparc_profile_hook): If
15083 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
15084 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
15085 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
15086
15087 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
15088
15089 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
15090
15091 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
15092
15093 PR target/36222
15094 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
15095 and op1 expansion before vector concat to have less live pseudos.
15096
15097 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
15098
15099 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
15100 ix86_expand_vector_set if supported.
15101
15102 2008-05-13 Diego Novillo <dnovillo@google.com>
15103 Kenneth Zadeck <zadeck@naturalbridge.com>
15104
15105 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
15106
15107 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
15108 phinodes_print_statistics, init_ssanames, fini_ssanames,
15109 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
15110 release_ssa_name, release_defs, replace_ssa_name_symbol,
15111 ssanames_print_statistics): Move ...
15112 * tree-flow.h: ... here.
15113 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
15114 Use FN instead of cfun.
15115 (make_ssa_name_fn): Rename from make_ssa_name.
15116 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
15117 * tree-flow-inline.h (make_ssa_name): Move from
15118 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
15119 * omp-low.c (expand_omp_parallel):
15120 * tree-flow-inline.h (redirect_edge_var_map_result):
15121 * tree-ssa.c (init_tree_ssa): Add argument FN.
15122 Use it instead of cfun. Update all users.
15123
15124 2008-05-13 Tom Tromey <tromey@redhat.com>
15125
15126 PR preprocessor/22168:
15127 * doc/cpp.texi (Top): Update menu.
15128 (Alternatives to Wrapper #ifndef): New node.
15129 (Other Directives): Document deprecation.
15130 (Obsolete Features): Remove menu.
15131 (Assertions): Merge node into Obsolete Features.
15132 (Obsolete once-only headers): Move earlier; rename to Alternatives
15133 to Wrapper #ifndef.
15134 * doc/cppopts.texi: Update.
15135 * c.opt (Wdeprecated): Enable for C and ObjC.
15136 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
15137 (C++ Dialect Options): Move -Wno-deprecated from here to...
15138 (Warning Options): ... here.
15139
15140 2008-05-13 Richard Guenther <rguenther@suse.de>
15141
15142 PR middle-end/36227
15143 * fold-const.c (fold_sign_changed_comparison): Do not allow
15144 changes in pointer-ness.
15145
15146 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
15147
15148 PR target/24713
15149 * config/sh/sh.c (sh_expand_prologue): Don't clear
15150 RTX_FRAME_RELATED_P for push insns.
15151
15152 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
15153
15154 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
15155
15156 2008-05-12 Anatoly Sokolov <aesok@post.ru>
15157
15158 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
15159 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
15160 Use 'machine->is_leaf' instead of 'leaf_func_p'.
15161
15162 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
15163
15164 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
15165 (*vec_concatv4sf_sse): This.
15166 (*sse2_concatv2si): Renamed to ...
15167 (*vec_concatv2si_sse2): This.
15168 (*sse1_concatv2si): Renamed to ...
15169 (*vec_concatv2si_sse): This.
15170 (*vec_concatv2di_rex): Renamed to ...
15171 (*vec_concatv2di_rex64): This.
15172 (*vec_concatv2si_sse4_1): New.
15173 (*vec_concatv2di_rex64_sse4_1): Likewise.
15174
15175 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
15176
15177 PR rtl-optimization/36111
15178 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
15179 that was created for swappable operands.
15180
15181 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
15182
15183 PR ada/36001
15184 * Makefile.in: Substitute GNATMAKE and GNATBIND.
15185 * configure.ac: Add call to ACX_PROG_GNAT.
15186
15187 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
15188
15189 * optc-gen.awk: Fix comment typo.
15190
15191 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
15192
15193 * pretty-print.c (pp_integer_with_precision): Use
15194 HOST_LONG_LONG_FORMAT.
15195
15196 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
15197
15198 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
15199
15200 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
15201
15202 * config/i386/i386.c (bdesc_ptest): Removed.
15203 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
15204 (bdesc_args): Add __builtin_ia32_ptestz128,
15205 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
15206 (ix86_init_mmx_sse_builtins): Updated.
15207 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
15208 (ix86_expand_builtin): Updated.
15209
15210 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
15211
15212 * tree-cfg.c (valid_fixed_convert_types_p): New function.
15213 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
15214
15215 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
15216
15217 * value-prof.c (interesting_stringop_to_profile): Do not
15218 return early for BUILT_IN_MEMPCPY.
15219
15220 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
15221
15222 * calls.c (expand_call): Don't use callgraph to increase
15223 preferred_stack_boundary.
15224
15225 * cgraph.h (cgraph_rtl_info): Use unsigned on
15226 preferred_incoming_stack_boundary.
15227
15228 * final.c (rest_of_clean_state): Use unsigned on
15229 preferred_stack_boundary.
15230
15231 2008-05-09 Tom Tromey <tromey@redhat.com>
15232
15233 PR preprocessor/22231:
15234 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
15235 proceeding.
15236
15237 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
15238
15239 PR tree-optimization/36129
15240 * tree-ssa-ccp.c: Include value-prof.h.
15241 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
15242 built-in function was folded to a constant.
15243 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
15244
15245 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
15246 Sebastian Pop <sebastian.pop@amd.com>
15247
15248 * tree-scalar-evolution.c: Document instantiate_scev.
15249 (instantiate_parameters_1): Renamed instantiate_scev_1.
15250 Don't use the same loop for instantiation_loop and evolution_loop.
15251 (instantiate_scev): New.
15252 (instantiate_parameters): Moved...
15253 (resolve_mixers): Update call to instantiate_scev_1 to pass the
15254 same loop twice. Maintains the semantics for this function.
15255 * tree-scalar-evolution.h (instantiate_scev): Declare.
15256 (instantiate_parameters): ...here. Now static inline.
15257 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
15258 instead of resolve_mixers.
15259
15260 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
15261
15262 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
15263
15264 2008-05-09 Tomas Bily <tbily@suse.cz>
15265
15266 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
15267 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
15268 * tree-ssa-structalias.c (get_constraint_for): Likewise.
15269 * c-common.c (c_common_truthvalue_conversion): Likewise.
15270 * tree-object-size.c (compute_object_offset): Likewise.
15271 * tree-inline.c (estimate_num_insns_1): Likewise.
15272 * varasm.c (const_hash_1, compare_constant, copy_constant)
15273 (compute_reloc_for_constant, output_addressed_constants)
15274 (initializer_constant_valid_p): Likewise.
15275 * c-omp.c (check_omp_for_incr_expr): Likewise.
15276 * gimplify.c (gimplify_expr): Likewise.
15277 * c-typeck.c (c_finish_return): Likewise.
15278 * tree-vectorizer.c (supportable_widening_operation)
15279 (supportable_narrowing_operation): Likewise.
15280 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
15281 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
15282 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
15283 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
15284 (descr_info_loc): Likewise.
15285 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
15286 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
15287 (fold_unary): Likewise.
15288 * builtins.c (get_pointer_alignment): Likewise.
15289 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
15290 (instantiate_parameters_1): Likewise.
15291 * tree.c (expr_align, stabilize_reference): Likewise.
15292 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
15293 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
15294 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
15295 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
15296 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
15297 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
15298 Likewise.
15299 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
15300 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
15301 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
15302 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
15303 (forward_propagate_comparison)
15304 (tree_ssa_forward_propagate_single_use_vars): Likewise.
15305 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
15306 * emit-rtl.c (component_ref_for_mem_expr)
15307 (set_mem_attributes_minus_bitpos): Likewise.
15308 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
15309 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
15310 Likewise.
15311 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
15312 (build_function_call, pointer_diff, build_compound_expr)
15313 (c_finish_return): Likewise.
15314 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
15315 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
15316 Likewise.
15317 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
15318 * expr.c (is_aligning_offset): Likewise.
15319 * tree-ssa-alias.c (is_escape_site): Likewise.
15320 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
15321 (check_all_va_list_escapes): Likewise.
15322 * tree-ssa-loop-ivopts.c (determine_base_object)
15323 (determine_common_wider_type): Likewise.
15324 * dojump.c (do_jump): Likewise.
15325 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
15326 * tree-gimple.c (is_gimple_cast): Likewise.
15327 * fold-const.c (decode_field_reference, )
15328 (fold_sign_changed_comparison, fold_unary, fold_comparison)
15329 (fold_binary): Likewise.
15330 * tree-ssa-alias-warnings.c (find_alias_site_helper)
15331 (already_warned_in_frontend_p): Likewise.
15332 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
15333 * tree.c (really_constant_p, get_unwidened): Likewise.
15334 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
15335 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
15336 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
15337 Likewise.
15338 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
15339 CONVERT_EXPR_P.
15340 (CONVERT_EXPR_P): Define.
15341 (CASE_CONVERT): Define.
15342
15343 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
15344
15345 PR middle-end/36117
15346 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
15347 (delete_unmarked_insns): When deleting a call, call
15348 delete_unreachable_blocks.
15349 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
15350 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
15351
15352 2008-05-08 Richard Guenther <rguenther@suse.de>
15353
15354 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
15355 (-ftree-salias): Likewise.
15356 (salias-max-implicit-fields): Remove param documentation.
15357 (salias-max-array-elements): Likewise.
15358 * tree-pass.h (pass_create_structure_vars): Remove.
15359 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
15360 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
15361 * tree-ssa-alias.c (create_structure_vars): Remove.
15362 (gate_structure_vars): Likewise.
15363 (pass_create_structure_vars): Likewise.
15364 (gate_build_alias): Likewise.
15365 (pass_build_alias): Adjust to run always and dump the function.
15366 * common.opt (ftree-salias): Hide.
15367 * passes.c (init_optimization_passes): Remove
15368 pass_create_structure_vars, adjust comment.
15369 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
15370 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
15371 * opts.c (decode_options): Do not set flag_tree_salias.
15372 (common_handle_option): Add OPT_ftree_salias to the backward
15373 compatibility section.
15374
15375 2008-05-08 Richard Guenther <rguenther@suse.de>
15376
15377 * tree-flow-inline.h (var_can_have_subvars): Move ...
15378 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
15379 * tree-flow.h (var_can_have_subvars): Remove.
15380 (push_fields_onto_fieldstack): Remove.
15381 (sort_fieldstack): Likewise.
15382 (struct fieldoff): Move ...
15383 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
15384 alias_set and base_for_components fields.
15385 (sort_fieldstack): Make static.
15386 (push_fields_onto_fieldstack): Likewise. Remove code that
15387 handles anything but RECORD_TYPEs. Remove alias_set and
15388 base_for_components handling.
15389 (create_variable_info_for): Adjust.
15390
15391 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
15392
15393 * common.opt (Wframe-larger-than=): Shorten the help message
15394 to one line.
15395 * doc/invoke.texi (Wframe-larger-than=): Add more description.
15396
15397 2008-05-08 Rafael Espíndola <espindola@google.com>
15398
15399 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
15400 trap.
15401 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
15402 trap and that both operands are gimple values.
15403 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
15404 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
15405 is a fp operation.
15406
15407 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
15408
15409 * read-rtl.c (join_c_conditions): Return the first string if the
15410 two strings are equal.
15411
15412 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
15413
15414 * gensupport.h (pred_data): Add a "num_codes" field.
15415 (add_predicate_code): Declare.
15416 * gensupport.c (add_predicate_code): New function.
15417 (std_pred_table): Add an "allows_const_p" field.
15418 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
15419 Remove the (incomplete) list of such codes from the codes field.
15420 (init_predicate_table): Use add_predicate_code. Add all
15421 RTX_CONST_OBJs if allows_const_p is true.
15422 * genrecog.c (process_define_predicate): Use add_predicate_code.
15423
15424 2008-05-08 David Daney <ddaney@avtrex.com>
15425 Richard Sandiford <rsandifo@nildram.co.uk>
15426
15427 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
15428 special case of constant zero operands.
15429 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
15430 old and new values. Special case constant zero values.
15431 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
15432 fails.
15433 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
15434 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
15435
15436 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
15437
15438 PR target/36090
15439 * simplify-rtx.c (simplify_plus_minus): Create CONST of
15440 similar RTX_CONST_OBJ before CONST_INT.
15441
15442 2008-05-08 Steve Ellcey <sje@cup.hp.com>
15443
15444 * stmt.c (expand_stack_restore): Change sa mode if needed.
15445
15446 2008-05-08 Richard Guenther <rguenther@suse.de>
15447
15448 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
15449 return type to bool.
15450 (ix86_sol10_return_in_memory): Likewise.
15451 (ix86_i386elf_return_in_memory): Likewise.
15452 (ix86_i386interix_return_in_memory): Likewise.
15453 * config/i386/i386.c (ix86_return_in_memory): Likewise.
15454 (ix86_sol10_return_in_memory): Likewise.
15455 (ix86_i386elf_return_in_memory): Likewise.
15456 (ix86_i386interix_return_in_memory): Likewise.
15457
15458 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
15459
15460 PR bootstrap/36180
15461 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
15462 fndecl argument.
15463 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
15464 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
15465 declared in front.
15466
15467 2008-05-08 Richard Guenther <rguenther@suse.de>
15468
15469 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
15470 * tree-data-ref.h (struct dr_alias): Remove subvars field.
15471 (DR_SUBVARS): Remove.
15472 * tree-dfa.c (dump_subvars_for): Remove.
15473 (debug_subvars_for): Likewise.
15474 (dump_variable): Do not dump subvars.
15475 (remove_referenced_var): Do not remove subvars.
15476 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
15477 (lookup_subvars_for_var): Remove.
15478 (get_subvars_for_var): Likewise.
15479 (get_subvars_at): Likewise.
15480 (get_first_overlapping_subvar): Likewise.
15481 (overlap_subvar): Likewise.
15482 * tree-flow.h (subvar_t): Remove.
15483 (struct var_ann_d): Remove subvars field.
15484 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
15485 argument. Remove special handling of SFTs.
15486 (compute_tag_properties): Likewise.
15487 (set_initial_properties): Likewise.
15488 (compute_call_clobbered): Likewise.
15489 (count_mem_refs): Likewise.
15490 (compute_memory_partitions): Likewise.
15491 (compute_flow_insensitive_aliasing): Likewise.
15492 (setup_pointers_and_addressables): Likewise.
15493 (new_type_alias): Likewise.
15494 (struct used_part): Remove.
15495 (used_portions): Likewise.
15496 (struct used_part_map): Likewise.
15497 (used_part_map_eq): Likewise.
15498 (used_part_map_hash): Likewise.
15499 (free_used_part_map): Likewise.
15500 (up_lookup): Likewise.
15501 (up_insert): Likewise.
15502 (get_or_create_used_part_for): Likewise.
15503 (create_sft): Likewise.
15504 (create_overlap_variables_for): Likewise.
15505 (find_used_portions): Likewise.
15506 (create_structure_vars): Likewise.
15507 * tree.def (STRUCT_FIELD_TAG): Remove.
15508 * tree.h (MTAG_P): Adjust.
15509 (struct tree_memory_tag): Remove base_for_components and
15510 unpartitionable flags.
15511 (struct tree_struct_field_tag): Remove.
15512 (SFT_PARENT_VAR): Likewise.
15513 (SFT_OFFSET): Likewise.
15514 (SFT_SIZE): Likewise.
15515 (SFT_NONADDRESSABLE_P): Likewise.
15516 (SFT_ALIAS_SET): Likewise.
15517 (SFT_UNPARTITIONABLE_P): Likewise.
15518 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
15519 (union tree_node): Remove sft field.
15520 * alias.c (get_alias_set): Remove special handling of SFTs.
15521 * print-tree.c (print_node): Remove handling of SFTs.
15522 * tree-dump.c (dequeue_and_dump): Likewise.
15523 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
15524 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
15525 * tree-predcom.c (set_alias_info): Do not set subvars.
15526 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
15527 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
15528 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
15529 (add_vars_for_offset): Remove.
15530 (add_virtual_operand): Remove special handling of SFTs.
15531 (add_call_clobber_ops): Likewise.
15532 (add_call_read_ops): Likewise.
15533 (get_asm_expr_operands): Likewise.
15534 (get_modify_stmt_operands): Likewise.
15535 (get_expr_operands): Likewise.
15536 (add_to_addressable_set): Likewise.
15537 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
15538 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
15539 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
15540 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
15541 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
15542 (tree_node_structure): Likewise.
15543 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
15544 handling of SFTs.
15545 (find_what_p_points_to): Likewise.
15546
15547 2008-05-08 Sa Liu <saliu@de.ibm.com>
15548
15549 * config/spu/spu.md: Fixed subti3 pattern.
15550
15551 2008-05-08 Richard Guenther <rguenther@suse.de>
15552
15553 PR middle-end/36154
15554 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
15555 sure to create a representative for trailing arrays for PTA.
15556
15557 2008-05-08 Richard Guenther <rguenther@suse.de>
15558
15559 PR middle-end/36172
15560 * fold-const.c (operand_equal_p): Two objects which types
15561 differ in pointerness are not equal.
15562
15563 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
15564
15565 * calls.c (compute_argument_block_size): Add argument tree fndecl.
15566 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
15567 (emit_library_call_value_1): Add new variable fndecl initialized by
15568 NULL_TREE. It should be the decl type of orgfun, but this information
15569 seems not to be available here, so it uses the default calling abi.
15570 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
15571 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
15572 by TARGET_RETURN_IN_MEMORY.
15573 * config/i386/i386-interix.h: Likewise.
15574 * config/i386/i386.h: Likewise.
15575 * config/i386/i386elf.h: Likewise.
15576 * config/i386/ptx4-i.h: Likewise.
15577 * config/i386/sol2-10.h: Likewise.
15578 * config/i386/sysv4.h: Likewise.
15579 * config/i386/vx-common.h: Likewise.
15580 * config/cris/cris.h: Removed #if 0 clause.
15581 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
15582 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
15583 argument.
15584 (ix86_sol10_return_in_memory): Likewise.
15585 (ix86_i386elf_return_in_memory): New.
15586 (ix86_i386interix_return_in_memory): New.
15587 * config/mt/mt-protos.h (mt_return_in_memory): New.
15588 * config/mt/mt.c: Likewise.
15589 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
15590 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
15591 * config/bfin/bfin.h: Likewise.
15592 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
15593 argument.
15594 * config/bfin/bfin.c: Likewise.
15595 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
15596 * config/alpha/unicosmk.h: Likewise.
15597 * config/i386/cygming.h: Likewise.
15598 * config/iq2000/iq2000.h: Likewise.
15599 * config/mips/mips.h: Likewise.
15600 * config/mn10300/mn10300.h: Likewise.
15601 * config/rs6000/rs6000.h: Likewise.
15602 * config/score/score.h: Likewise.
15603 * config/spu/spu.h: Likewise.
15604 * config/v850/v850.h: Likewise.
15605 * defaults.h: Likewise.
15606 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
15607 * expr.c (emit_block_move): Adjust use of
15608 OUTGOING_REG_PARM_STACK_SPACE.
15609 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
15610 OUTGOING_REG_PARM_STACK_SPACE.
15611 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
15612
15613 2008-05-08 Jakub Jelinek <jakub@redhat.com>
15614
15615 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
15616 on OMP_RETURN for OMP_FOR.
15617
15618 PR debug/35896
15619 * dwarf2out.c (dw_expand_expr, common_check): Removed.
15620 (fortran_common): New function.
15621 (gen_variable_die): Call fortran_common instead of common_check,
15622 adjust for it returning tree instead of rtx. Formatting.
15623
15624 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
15625
15626 PR rtl/7335
15627 PR rtl/33826
15628 * see.c (see_copy_insn): Copy new pure const attributes for new call.
15629 * c-decl.c (merge_decls): Ditto.
15630 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
15631 to RTL_CONST_OR_PURE_CALL_P.
15632 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
15633 Initialized DECL_LOOPING_CONST_PURE.
15634 (process_call_operands): Set tree_side_effects properly.
15635 * tree.h (TREE_READONLY_DECL_P): Removed.
15636 (DECL_IS_PURE): Renamed to DECL_PURE_P.
15637 (DECL_LOOPING_OR_CONST_P): New macro.
15638 (struct tree_function_decl): Added looping_const_or_pure_p.
15639 (ECF_*) Renumbered.
15640 (ECF_LOOPING_OR_CONST_P): New macro.
15641 * rtlanal.c (pure_const_p): Removed.
15642 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
15643 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
15644 to RTL_CONST_CALL_P.
15645 * ipa-pure-const.c (pure_const_state_e): Added looping field.
15646 (check_decl, check_tree, check_call, scan_function): Initialize
15647 looping.
15648 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
15649 (static_execute): Set looping true for recursive functions.
15650 Undo setting state to IPA_NEITHER for recursive functions.
15651 * cse.c (cse_insn):
15652 * ifcvt.c (noce_can_store_speculate_p): Changed
15653 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
15654 RTL_CONST_OR_PURE_CALL_P.
15655 * dse.c (scan_insn): Ditto.
15656 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
15657 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
15658 RTL_CONST_OR_PURE_CALL_P.
15659 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
15660 pure_call_p to RTL_CONST_CALL_P.
15661 * gimplify.c (gimplify_call_expr): Clear side effects for
15662 non-looping pure and constant calls.
15663 * calls.c (emit_call_1): Set rtl flags from ecf flags.
15664 (flags_from_decl_or_type): Set ecf flags from decl flags.
15665 (initialize_argument_information): Turn off
15666 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
15667 Change const to pure if callee_copies is true rather than just
15668 turning off const.
15669 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
15670 way of marking pure calls.
15671 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
15672 Remove hack that was supposed to fix pr7335 and remove old
15673 way of marking pure calls.
15674 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
15675 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
15676 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
15677 RTL_CONST_OR_PURE_CALL_P.
15678 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
15679 * loop-invariant.c (find_exits, find_invariant_bb): Changed
15680 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
15681 * sched-deps.c (schedule_analyze): Ditto.
15682 * rtl.h (struct rtx_def): Use call field, unchanging field, and
15683 return_val field of calls to represent pure and const function info.
15684 (CONST_OR_PURE_CALL_P): Deleted macro.
15685 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
15686 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
15687 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
15688 TREE_READONLY.
15689 * tree-optimize.c (execute_fixup_cfg): Added test for
15690 ECF_LOOPING_CONST_OR_PURE.
15691 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
15692 DECL_PURE_P.
15693 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
15694 effects for looping pure or const calls.
15695 (verify_gimple_expr): Added verification code.
15696 * config/alpha/alpha.c (alpha_legitimize_address,
15697 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
15698 RTL_CONST_CALL_P.
15699 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
15700 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
15701 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
15702 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
15703 RTL_CONST_OR_PURE_CALL_P.
15704 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
15705 and const calls to be deleted.
15706
15707 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
15708
15709 PR target/35714
15710 * config/i386/mmx.md (mmx_subv2sf3): New expander.
15711 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
15712 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
15713 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
15714 to handle nonimmediate operands.
15715 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
15716 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
15717 to handle nonimmediate operands.
15718 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
15719 (mmx_pmulhrwv4hi3): New expander. Use
15720 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15721 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
15722 (sse2_umulv1siv1di3): New expander. Use
15723 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15724 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
15725 (mmx_eq<mode>3): New expander. Use
15726 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15727 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
15728 (mmx_uavgv8qi3): New expander. Use
15729 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15730 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
15731 (mmx_uavgv4hi3): New expander. Use
15732 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15733
15734 * config/i386/sse.md
15735 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
15736 to handle nonimmediate operands.
15737 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
15738 to handle nonimmediate operands.
15739 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
15740 to handle nonimmediate operands.
15741 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
15742 to handle nonimmediate operands.
15743 (sse2_unpckhpd_exp): New expander. Use
15744 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15745 (sse2_unpcklpd_exp): New expander. Use
15746 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15747 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
15748 to handle nonimmediate operands.
15749 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
15750 to handle nonimmediate operands.
15751 (*sse2_<plusminus_insn><mode>3): Rename from
15752 sse2_<plusminus_insn><mode>3 insn pattern.
15753 (sse2_<plusminus_insn><mode>3): New expander. Use
15754 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15755 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
15756 (sse2_umulv2siv2di3): New expander. Use
15757 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15758 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
15759 (sse4_1_mulv2siv2di3): New expander. Use
15760 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15761 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
15762 (sse2_pmaddwd): New expander. Use
15763 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15764 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
15765 (sse2_eq<mode>3): New expander. Use
15766 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15767 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
15768 (sse4_1_eqv2di3): New expander. Use
15769 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15770 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
15771 (sse2_uavgv16qi3): New expander. Use
15772 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15773 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
15774 (sse2_uavgv16qi3): New expander. Use
15775 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15776 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
15777 (sse2_uavgv8hi3): New expander. Use
15778 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15779 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
15780 (ssse3_pmulhrswv8hi3): New expander. Use
15781 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15782 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
15783 (ssse3_pmulhrswv4hi3): New expander. Use
15784 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15785
15786 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
15787 (<sse>_vmmul<mode>3): Ditto.
15788 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
15789 (divv2df3): Ditto.
15790 (ssse3_pmaddubsw128): Use register_operand for operand 1.
15791 (ssse3_pmaddubsw): Ditto.
15792
15793 * config/i386/i386.c (struct_builtin_description)
15794 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
15795 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
15796 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
15797 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
15798 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
15799 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
15800 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
15801 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
15802 (ix86_fixup_binary_operands): Assert that src1
15803 and src2 must have the same mode when swapped.
15804 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
15805 and ix86_binary_operator_ok. Do not force operands in registers
15806 when optimizing.
15807
15808 2008-05-07 Jan Hubicka <jh@suse.cz>
15809
15810 * cgraph.c (dump_cgraph_node): Update.
15811 * cgraph.h (cgraph_local_info): Break out inline summary.
15812 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
15813 hook.
15814 * ipa-inline (inline_summary): New accestor function.
15815 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
15816 cgraph_decide_inlining, compute_inline_parameters): Update.
15817 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
15818
15819 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
15820
15821 Cleanup ColdFire scheduling support and add V4 pipeline model.
15822
15823 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
15824 (define_attr cpu): Add cfv4 value.
15825 (define_attr type, define_attr type1): Merge into a single 'type'
15826 attribute. Update all uses.
15827 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
15828 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
15829 Update all uses.
15830 (define_attr opx_mem, define_attr opy_mem): Remove.
15831 (define_attr op_mem): Clean up, update comment.
15832 (define_attr size): Use specific values instead of general int.
15833 (define_attr guess, define_attr split): Remove. Update all uses.
15834 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
15835 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
15836 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
15837 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
15838 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
15839 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
15840 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
15841 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
15842 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
15843 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
15844 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
15845 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
15846 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
15847 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
15848 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
15849 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
15850 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
15851 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
15852 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
15853 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
15854 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
15855 Update or set attributes.
15856 (stack_tie): New fake instruction.
15857
15858 * config/m68k/m68k.h (TUNE_CFV4): New macro.
15859 (m68k_sched_attr_size): Update declaration.
15860 (m68k_sched_attr_type2): Remove.
15861 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
15862 Declare new bypass predicates.
15863
15864 * config/m68k/m68k.c (m68k_sched_issue_rate,
15865 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
15866 implementations.
15867 (TARGET_SCHED_ISSUE_RATE,
15868 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
15869 (override_options): Handle scheduling for ColdFire V4 core.
15870 (m68k_expand_prologue): Emit stack_tie.
15871 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
15872 'OP_TYPE_FPN'. Update all uses.
15873 (sched_guess_p): Remove.
15874 (sched_address_type): Handle symbolic addresses.
15875 (sched_get_operand): New static function.
15876 (sched_operand_type): Merge into sched_attr_op_type.
15877 (sched_attr_op_type): Handle FP registers, handle quick constants,
15878 update.
15879 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
15880 (m68k_sched_attr_size): Update. Move logic to ...
15881 (sched_get_attr_size_int): New static function.
15882 (sched_get_opxy_mem_type): New static function.
15883 (m68k_sched_attr_op_mem): Update.
15884 (m68k_sched_attr_type2): Remove.
15885 (sched_cfv4_bypass_data): New static variable.
15886 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
15887 (m68k_sched_issue_rate): Implement scheduler hook.
15888 (struct _sched_ib: enabled_p): New field.
15889 (m68k_sched_variable_issue): Update. Handle V4.
15890 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
15891 sched_dump_class_func_t, sched_dump_split_class,
15892 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
15893 sched_dump_dfa_class, m68k_sched_dump): Remove.
15894 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
15895 hook.
15896 (m68k_sched_init_global): Remove statisctics dumping, introduce
15897 sanity check that all instructions have pipeline reservations. Handle
15898 ColdFire V4 core.
15899 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
15900 Handle ColdFire V4 core.
15901 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
15902 New static functions.
15903 (m68k_sched_address_bypass_p): New bypass predicate.
15904 (sched_get_indexed_address_scale): New static function.
15905 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
15906
15907 * cf.md: Update comments.
15908 (define_attr type2): Remove. Use 'type' attribute instead.
15909 Update all uses.
15910 (cf_ib): Rename to cfv123_ib. Update all uses.
15911 (cf_oep): Rename to cfv123_oep. Update all uses.
15912 (cf_chr): Rename to cfv123_chr. Update all uses.
15913 (cf_mem): Rename to cfv123_mem. Update all uses.
15914 (cf_mac): Move to more appropriate place.
15915 (cfv123_guess): New automaton and cpu_unit.
15916 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
15917 Update uses of 'size' attribute. Handle before reload scheduling.
15918 (cfv123_guess): New dummy reservation for unhandled instructions.
15919 (cfv4_*): Pipeline description of ColdFire V4 core.
15920 (ignore): New reservation to handle 'ignore' type.
15921
15922 2008-05-07 Ian Lance Taylor <iant@google.com>
15923
15924 PR middle-end/36013
15925 * gimplify.c (find_single_pointer_decl_1): Don't look through
15926 indirections.
15927 (find_single_pointer_decl): Adjust comments.
15928
15929 2008-05-07 Jakub Jelinek <jakub@redhat.com>
15930
15931 PR middle-end/36137
15932 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
15933 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
15934
15935 PR middle-end/36106
15936 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
15937 integral type rather than floating point, then VIEW_CONVERT_EXPR
15938 to the floating point type.
15939
15940 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
15941
15942 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
15943 TFmode op0 to register.
15944
15945 2008-05-07 Alan Modra <amodra@bigpond.net.au>
15946
15947 * c-decl.c (grokdeclarator): Comment typo.
15948
15949 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
15950
15951 * tree-flow.h: Remove prototype for computed_goto_p.
15952 * tree-cfg.c (computed_goto_p): Make static.
15953
15954 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
15955
15956 PR target/35657
15957 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
15958 (contains_aligned_value_p): This. Handle _Decimal128.
15959 (ix86_function_arg_boundary): Only align _Decimal128 to its
15960 natural boundary and handle it properly.
15961
15962 2008-05-06 Martin Jambor <mjambor@suse.cz>
15963
15964 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
15965 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
15966 (ipcp_method_set_orig_node): Removed.
15967 (ipcp_cval_get_cvalue_type): Removed.
15968 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
15969 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
15970 (ipcp_cval_set_cvalue_type): Removed.
15971 (ipcp_cval_get_cvalue): Removed.
15972 (ipcp_cval_set_cvalue): Removed.
15973 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
15974 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
15975 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
15976 (ipcp_cval_meet): Renamed to ipa_lattice_meet
15977 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
15978 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
15979 (ipcp_get_ith_lattice): Changed parameters.
15980 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
15981 (ipcp_lattice_from_jfunc): Changed parameters.
15982 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
15983 (ipcp_method_cval_print): Added temporary variable info.
15984 (ipcp_redirect): Removed already unused local variable caller.
15985 (ipcp_redirect): New temporary variable orig_callee_info
15986 (ipcp_redirect): Removed newly unused local variable callee.
15987 (ipcp_redirect): Removed (a bit confusing) local variable type.
15988 (ipcp_insert_stage): Added local variable info.
15989 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
15990 renamed too
15991 (ipcp_formal_create): Removed.
15992 (ipcp_method_cval_set): Removed.
15993 (ipcp_propagate_stage): Renamed lattice variables.
15994 (ipcp_method_cval_set_cvalue_type): Removed.
15995 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
15996 (ipcp_print_all_lattices): Changed printed strings to refer to
15997 lattices rather than cvals.
15998 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
15999 (ipcp_propagate_const): Changed formal parameters.
16000 (build_const_val): Changed formal parameters.
16001 (ipcp_insert_stage): Removed useless variable cvalue
16002 (build_const_val): Changed formal parameters.
16003 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
16004 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
16005 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
16006 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
16007 (ipcp_print_func_profile_counts): Changed string from "method" to
16008 "function"
16009 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
16010 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
16011 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
16012 (ipcp_structures_print): Renamed to ipcp_print_all_structures
16013 (ipcp_profile_print): Renamed to ipcp_print_profile_data
16014 (ipcp_lat_is_const): Changed parameters and made inline.
16015 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
16016 (ipcp_redirect): Renamed to ipcp_need_redirect_p
16017 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
16018 the predicate condition directly
16019 (ipcp_propagate_stage): Added local variable args. Removed local
16020 variable callee. (Both are mere code simplifications.)
16021 (ipcp_method_dont_insert_const): Renamed to
16022 ipcp_node_not_modifiable_p.
16023 (ipcp_node_not_modifiable_p): Made inline.
16024 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
16025 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
16026 (ipcp_print_all_lattices): Removed variable cvalue
16027 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
16028 Updated comments.
16029
16030 2008-05-06 Olivier Hainque <hainque@adacore.com>
16031
16032 * tree-sra.c (try_instantiate_multiple_fields): Early return
16033 if field has POINTER_TYPE.
16034
16035 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
16036
16037 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
16038 by using 'q' specifier for instruction.
16039 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
16040
16041 2008-05-06 Anatoly Sokolov <aesok@post.ru>
16042
16043 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
16044 Change mode of zero_extract from QImode to HImode.
16045 (sign bit tests peepholes): (Ditto.).
16046
16047 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
16048
16049 * config/i386/mmx.md: Remove double backslashes from asm templates.
16050 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
16051 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
16052 to handle nonimmediate operands.
16053 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
16054 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
16055 to handle nonimmediate operands.
16056 (*mmx_<code>v2sf3_finite): New insn pattern.
16057 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
16058 (mmx_<code>v2sf3): New expander. Use
16059 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16060 (mmx_<plusminus_insn><mode>3): New expander. Use
16061 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16062 (*mmx_<plusminus_insn><mode>3): New insn pattern.
16063 (mmx_add<mode>3): Removed.
16064 (mmx_ssadd<mode>3): Ditto.
16065 (mmx_usadd<mode>3): Ditto.
16066 (mmx_sub<mode>3): Ditto.
16067 (mmx_sssub<mode>3): Ditto.
16068 (mmx_ussub<mode>3): Ditto.
16069 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
16070 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
16071 to handle nonimmediate operands.
16072 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
16073 insn pattern.
16074 (mmx_smulv4hi3_highpart): New expander. Use
16075 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16076 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
16077 insn pattern.
16078 (mmx_umulv4hi3_highpart): New expander. Use
16079 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16080 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
16081 (mmx_<code>v4hi3): New expander. Use
16082 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16083 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
16084 (mmx_<code>v8qi3): New expander. Use
16085 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16086 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
16087 (mmx_<code><mode>3): New expander. Use
16088 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16089
16090 2008-05-05 Jan Hubicka <jh@suse.cz>
16091
16092 PR tree-optimization/36118
16093 * passes.c (pass_init_dump_file): Fix dump header.
16094
16095 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
16096
16097 PR middle-end/36141
16098 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
16099 VCE for function decls.
16100
16101 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
16102
16103 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
16104
16105 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
16106
16107 * config/i386/i386.md (sat_plusminus): New.
16108 (plusminus_insn): Likewise.
16109 (plusminus_mnemonic): Likewise.
16110 (addsub): Removed.
16111 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
16112 (*<addsub><mode>3_cc_overflow): Renamed to ...
16113 (*<plusminus_insn><mode>3_cc_overflow): This.
16114 (*<addsub>si3_zext_cc_overflow): Renamed to ...
16115 (*<plusminus_insn>si3_zext_cc_overflow): This.
16116
16117 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
16118 (<plusminus_insn><mode>3): This.
16119 (*<addsub><mode>3): Renamed to ...
16120 (*<plusminus_insn><mode>3): This.
16121 (<sse>_vm<addsub><mode>3): Renamed to ...
16122 (<sse>_vm<plusminus_insn><mode>3): This.
16123 (sse3_h<addsub>v4sf3): Renamed to ...
16124 (sse3_h<plusminus_insn>v4sf3): This.
16125 (sse3_h<addsub>v2df3): Renamed to ...
16126 (sse3_h<plusminus_insn>v2df3): This.
16127 (<plusminus_insn><mode>3): New.
16128 (*<plusminus_insn><mode>3): Likewise.
16129 (sse2_<plusminus_insn><mode>3): Likewise.
16130 (add<mode>): Removed.
16131 (*add<mode>3): Likewise.
16132 (sse2_ssadd<mode>3): Likewise.
16133 (sse2_usadd<mode>3): Likewise.
16134 (sub<mode>3): Likewise.
16135 (*sub<mode>3): Likewise.
16136 (sse2_sssub<mode>3): Likewise.
16137 (sse2_ussub<mode>3): Likewise.
16138
16139 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
16140
16141 * gthr-single.h: Add in required interface elements as per gthr.h.
16142 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
16143 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
16144 Generalize UNUSED macro.
16145 (__gthread_once): Add.
16146 (__gthread_key_create): Add.
16147 (__gthread_key_delete): Add.
16148 (__gthread_getspecific): Add.
16149 (__gthread_setspecific): Add.
16150
16151 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
16152
16153 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
16154 the same size types for the indirect reference on the rhs, then
16155 create a VCE.
16156
16157 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
16158
16159 * config/i386/i386.md
16160 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
16161 one insn template instead of template series.
16162 (*xordi_1_rex64): Ditto.
16163 (*xordi_2_rex64): Ditto.
16164
16165 2008-05-05 Ira Rosen <irar@il.ibm.com>
16166
16167 PR tree-optimization/36119
16168 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
16169 in case of SLP.
16170
16171 2008-06-04 Jan Hubicka <jh@suse.cz>
16172
16173 tree-optimization/36100
16174 * tree-pass.h (pass_O0_always_inline): Declare.
16175 * ipa-inline.c (inline_transform): Remove dead code.
16176 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
16177 pass_O0_always_inline): New.
16178 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
16179
16180 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
16181
16182 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
16183 mnemonic in this_param move for TARGET_64BIT.
16184
16185 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
16186
16187 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
16188 (*strmovsi_rex_1): Ditto.
16189 (*strsetsi_1): Ditto.
16190 (*strsetsi_rex_1): Ditto.
16191
16192 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
16193 adddicc expanders using SWI mode iterator.
16194
16195 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
16196
16197 PR target/36121
16198 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
16199 argument handling.
16200
16201 2008-05-04 David S. Miller <davem@davemloft.net>
16202
16203 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
16204 (sparc*-*-linux*): Use linux.h in tm_file.
16205 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
16206 compiler defaulting to 32-bit.
16207 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
16208 no longer needed.
16209 * config/sparc/linux.h: Remove definitions now obtained
16210 properly from linux.h
16211 * config/sparc/linux64.h: Likewise.
16212 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
16213 don't want this setting for 32-bit builds in a biarch compiler.
16214 * doc/install.texi: Add sparc-linux to list of targets
16215 supporting --enable-targets=all.
16216
16217 2008-05-03 Andrew Pinski <pinskia@gmail.com>
16218
16219 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
16220
16221 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
16222
16223 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
16224 after V4SI_FTYPE_V8HI.
16225 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
16226 case V4SI_FTYPE_V2DF.
16227
16228 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
16229
16230 * doc/invoke.texi (max-flow-memory-locations): Removed.
16231 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
16232
16233 2008-05-03 Richard Guenther <rguenther@suse.de>
16234
16235 PR middle-end/34973
16236 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
16237
16238 2008-05-02 David S. Miller <davem@davemloft.net>
16239
16240 * config.gcc (need_64bit_hwint): Document libcpp dependency.
16241
16242 2008-05-02 Simon Baldwin <simonb@google.com>
16243
16244 PR bootstrap/36108
16245 * c-common.h (warn_array_subscript_range): Removed.
16246 * c-common.c (warn_array_subscript_range): Ditto.
16247 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
16248 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
16249
16250 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
16251
16252 * config/i386/i386.c (ix86_special_builtin_type): New.
16253 (bdesc_special_args): Likewise.
16254 (ix86_expand_special_args_builtin): Likewise.
16255 (ix86_init_mmx_sse_builtins): Updated.
16256 (ix86_expand_builtin): Updated.
16257 (ix86_expand_store_builtin): Removed.
16258 (ix86_expand_unop_builtin): Likewise.
16259
16260 * config/i386/mm3dnow.h (__v2sf): Moved to ...
16261 * config/i386/mmintrin.h (__v2sf): Here.
16262
16263 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
16264 const __v2sf.
16265 (_mm_loadl_pi): Likewise.
16266 (_mm_storeh_pi): Replace __v2si with __v2sf.
16267 (_mm_storel_pi): Likewise.
16268
16269 * doc/extend.texi: Correct __builtin_ia32_loadhps,
16270 __builtin_ia32_loadlps, __builtin_ia32_storehps,
16271 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
16272 __builtin_ia32_loadlpd.
16273
16274 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
16275
16276 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
16277 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
16278 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
16279 (ix86_init_mmx_sse_builtins): Updated.
16280 (ix86_expand_args_builtin): Likewise.
16281 (ix86_expand_builtin): Likewise.
16282 (ix86_expand_unop1_builtin): Renamed to ...
16283 (ix86_expand_unop_vec_merge_builtin): This.
16284
16285 2008-05-01 Jan Hubicka <jh@suse.cz>
16286
16287 PR bootstrap/36100
16288 * ipa-inline.c (inline_generate_summary): Make static.
16289 (inline_transform): Do not call inlining at -O0; make static.
16290 * passes.c (execute_todo): Add sanity check.
16291 (execute_one_ipa_transform_pass): Execute proper flags.
16292
16293 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
16294
16295 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
16296 (DECL_NONADDRESSABLE_P): Likewise.
16297 * alias.c (record_component_aliases): Fix comment.
16298
16299 2008-05-01 Simon Baldwin <simonb@google.com>
16300
16301 * c-common.h (warn_array_subscript_range): New function.
16302 * c-common.c (warn_array_subscript_range): Ditto.
16303 * tree-vrp.c (check_array_ref): Corrected code to agree with
16304 comment, ignoring only arrays of size 0 or size 1.
16305 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
16306
16307 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
16308
16309 * config/i386/i386.c (ix86_builtin_type): Replace
16310 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
16311 (bdesc_args): Updated.
16312 (ix86_init_mmx_sse_builtins): Likewise.
16313 (ix86_expand_args_builtin): Likewise.
16314
16315 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
16316 with __v1di.
16317
16318 * doc/extend.texi: Correct __builtin_ia32_palignr.
16319
16320 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
16321
16322 PR target/36095
16323 * config/i386/i386.c (bdesc_crc32): Removed.
16324 (ix86_expand_crc32): Likewise.
16325 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
16326 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
16327 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
16328 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
16329 UINT_FTYPE_UINT_UCHAR.
16330 (bdesc_args): Updated. Add crc32 builtins.
16331 (ix86_init_mmx_sse_builtins): Updated.
16332 (ix86_expand_args_builtin): Updated to support subreg.
16333
16334 * doc/extend.texi: Correct __builtin_ia32_crc32di.
16335
16336 2008-05-01 Jan Hubicka <jh@suse.cz>
16337
16338 * tree-pass.h (opt_pass): Add IPA_PASS.
16339 (varpool_node, cgraph_node): Forward declare.
16340 (ipa_opt_pass): Define.
16341 (pass_ipa_inline): Turn into ipa_opt_pass.
16342 (pass_apply_inline): Remove.
16343 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
16344 (apply_inline): Turn into ....
16345 (inline_transform): ... this one.
16346 (inline_generate_summary): New function.
16347 (pass_apply_inline): Remove.
16348 * function.h (ipa_opt_pass): Forward declare structure; typedef;
16349 vector.
16350 (struct function): Add ipa_transforms_to_apply.
16351 * passes.c (register_one_dump_file): Work on IPA_PASS.
16352 (init_optimization_passes): Remove pass_inline_parameters and
16353 pass_apply_inline.
16354 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
16355 (execute_one_pass) ... here; apply transforms when possible.
16356 (add_ipa_transform_pass, execute_ipa_summary_asses,
16357 execute_one_ipa_transform_pass): New.
16358 (execute_ipa_pass_list): Update for IPA_PASS type.
16359
16360 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
16361
16362 * config/i386/i386.c (ix86_builtin_type): Add
16363 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
16364 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
16365 (bdesc_args): Add SSE4a builtins.
16366 (ix86_init_mmx_sse_builtins): Updated.
16367 (ix86_expand_args_builtin): Likewise.
16368 (ix86_expand_builtin): Likewise.
16369
16370 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
16371
16372 * config/i386/i386.c (ix86_builtin_type): Add
16373 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
16374 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
16375 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
16376 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
16377 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
16378 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
16379 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
16380 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
16381 and DI_FTYPE_DI_DI_INT.
16382 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
16383 (ix86_init_mmx_sse_builtins): Updated.
16384 (ix86_expand_args_builtin): Likewise.
16385 (ix86_expand_builtin): Likewise.
16386 (ix86_expand_binop_imm_builtin): Removed.
16387
16388 * doc/extend.texi: Correct __builtin_ia32_palignr128.
16389
16390 2008-04-30 Richard Guenther <rguenther@suse.de>
16391
16392 PR tree-optimization/32921
16393 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
16394
16395 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
16396
16397 * config/arm/arm.c (arm_unwind_emit): Use
16398 crtl->all_throwers_are_sibcalls instead of
16399 cfun->all_throwers_are_sibcalls.
16400 (arm_output_fn_unwind): Likewise.
16401 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
16402 instead of cfun->uses_pic_offset_table.
16403 (frv_expand_prologue): Likewise.
16404 (frv_frame_pointer_required): Likewise.
16405 (frv_expand_fdpic_call): Likewise.
16406 (frv_emit_movsi): Likewise.
16407 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
16408 cfun->returns_pcc_struct instead of
16409 current_function_returns_pcc_struct.
16410 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
16411 instead of cfun->calls_eh_return.
16412 (m32c_pushm_popm): Likewise.
16413 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
16414 "extern" declaration.
16415
16416 2008-04-30 Richard Guenther <rguenther@suse.de>
16417
16418 PR tree-optimization/21636
16419 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
16420 constant address.
16421 (evaluate_stmt): Print the likely value.
16422 (ccp_visit_stmt): Avoid excessive vertical spacing.
16423
16424 2008-04-30 Rafael Espíndola <espindola@google.com>
16425
16426 * builtins.c (fold_call_expr): Return realret.
16427 * tree-ssa-threadedge.c
16428 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
16429 __builtin_object_size.
16430
16431 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
16432
16433 * gcc.c (wrapper_string): New variable.
16434 (insert_wrapper): New function.
16435 (execute): New option -wrapper.
16436 * doc/invoke.texi (Overall Options): New driver option -wrapper.
16437
16438 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
16439
16440 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
16441 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
16442 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
16443 from...
16444 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
16445 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
16446 config/rs6000/e500crtres64gprctr.asm,
16447 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
16448 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
16449 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
16450 config/rs6000/e500crtsav64gprctr.asm,
16451 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
16452 config/rs6000/e500crtsavg64gprctr.asm: New files.
16453 * config/rs6000/t-ppccomm: Add build rules for new files.
16454 (LIB2FUNCS_STATIC_EXTRA): Add new files.
16455 * config/rs6000/t-netbsd: Add build rules for new files.
16456 (LIB2FUNCS_STATIC_EXTRA): New variable.
16457 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
16458 (CRTSAVRES_DEFAULT_SPEC): Likewise.
16459 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
16460
16461 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
16462
16463 * config/i386/i386.c (ix86_builtin_type): Add
16464 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
16465 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
16466 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
16467 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
16468 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
16469 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
16470 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
16471 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
16472 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
16473 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
16474 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
16475 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
16476 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
16477 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
16478 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
16479 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
16480 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
16481 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
16482 V1DI_FTYPE_V2SI_V2SI.
16483 (bdesc_2arg): Moved to ...
16484 (bdesc_args): Here.
16485 (ix86_init_mmx_sse_builtins): Updated.
16486 (ix86_expand_args_builtin): Updated. Take a pointer
16487 to const struct builtin_description. Handle comparison
16488 builtin functions.
16489 (ix86_expand_sse_compare): Take a new argument for swapping operands.
16490 (ix86_expand_builtin): Updated.
16491
16492 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
16493 (ssse3_pmaddubsw128): This.
16494 (ssse3_pmaddubswv4hi3): Renamed to ...
16495 (ssse3_pmaddubsw): This.
16496
16497 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
16498 (__builtin_ia32_packssdw128): Likewise.
16499 (__builtin_ia32_packuswb128): Likewise.
16500 (__builtin_ia32_pmaddubsw): Likewise.
16501 (__builtin_ia32_pmaddubsw128): Likewise.
16502
16503 2008-04-30 Richard Guenther <rguenther@suse.de>
16504
16505 PR tree-optimization/14847
16506 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
16507 (recognize_bits_test): Use it.
16508 (recognize_single_bit_test): Likewise.
16509
16510 2008-04-30 Martin Jambor <mjambor@suse.cz>
16511
16512 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
16513 instead of setting number of formal parameters to zero.
16514 (ipcp_init_stage): Do not set the number of actual parameters to zero
16515 either.
16516 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
16517 which are called with variable number of arguments.
16518 (ipcp_insert_stage): Explicitely skipping all nodes which are
16519 called with variable number of arguments.
16520 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
16521 number of parameters.
16522
16523 * ipa-prop.h (struct ipa_node_params): Added flag
16524 called_with_var_arguments
16525 (ipa_set_param_count): Added. Changed sole setter to use it.
16526 (ipa_get_param_count): Added. All readers of param_count
16527 converted to use it instead.
16528 (ipa_set_called_with_variable_arg): Added.
16529 (ipa_is_called_with_var_arguments): Added.
16530 (ipa_get_ith_param): Added. All readers of param_decls converted
16531 to use it instead.
16532 (ipa_set_cs_argument_count): Added, sole writer to argument_count
16533 changed to use it.
16534 (ipa_get_cs_argument_count): Added, all readers of argument_count
16535 changed to cal it.
16536 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
16537 to use it.
16538
16539 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
16540 (struct ipcp_lattice): Renamed cval_type to type
16541 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
16542
16543 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
16544 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
16545 (ipcp_insert_stage): Changed the type of variable cvalue to tree
16546 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
16547 (build_const_val): Changed the type of parameter cvalue to tree
16548 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
16549 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
16550
16551 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
16552 constant
16553
16554 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
16555 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
16556 (ipa_add_method): Renamed to ipa_push_func_to_list
16557 (ipa_remove_method): Renamed to ipa_pop_func_from_list
16558 (ipa_callsite_param_count): Removed.
16559 (ipa_callsite_param_count_set): Removed.
16560 (ipa_callsite_param): Removed.
16561 (ipa_callsite_callee): Removed.
16562 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
16563 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
16564 (ipa_method_formal_count): Removed.
16565 (ipa_method_formal_count_set): Removed.
16566 (ipa_method_get_tree): Removed.
16567 (ipa_method_tree_map_create): Removed.
16568 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
16569 (ipa_create_param_decls_array): Creates the array itself
16570 (ipa_create_param_decls_array): Temporary variable info instead of
16571 a few dereferences.
16572 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
16573 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
16574 (get_type): Removed.
16575 (ipa_jf_get_info_type): Removed.
16576 (ipa_node_create): Renamed to ipa_create_node_params
16577 (ipa_free): Renamed to ipa_free_all_node_params
16578 (ipa_nodes_create): Renamed to ipa_create_all_node_params
16579 (ipa_edges_create): Renamed to ipa_create_all_edge_args
16580 (ipa_edges_free): Renamed to ipa_free_all_edge_args
16581 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
16582 (ipa_free_all_node_params): Deallocation to jump_functions moved to
16583 ipa_free_all_edge_args
16584 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
16585 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
16586 (ipa_create_methodlist_node): Removed.
16587 (ipa_methodlist_method): Removed.
16588 (ipa_methodlist_method_set): Removed.
16589 (ipa_methodlist_next_method): Removed.
16590 (ipa_methodlist_next_method_set): Removed.
16591 (ipa_method_is_modified): Removed.
16592 (ipa_method_modify_create): Removed.
16593 (ipa_method_modify_init): Temporary variable info instead of a few
16594 dereferences.
16595 (ipa_detect_param_modifications): Temporary variable info instead of
16596 a few dereferences.
16597 (ipa_compute_jump_functions): Temporary variable info instead of
16598 a few dereferences.
16599 (ipa_method_modify_set): Removed.
16600 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
16601 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
16602 than craph_node as the first parameter.
16603 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
16604 (ipa_method_modify_init): Removed.
16605 (ipa_compute_jump_functions): Added a temp variable instead of
16606 repeatadly dereferencing the cgraph_edge.aux pointer
16607 (ipa_callsite_param_set_type): Removed.
16608 (ipa_compute_jump_functions): i renamed to index and moved to
16609 an inner block
16610 (ipa_callsite_param_set_info_type_formal): Removed.
16611 (ipa_callsite_param_set_info_type): Removed.
16612 (ipa_callsite_param_map_create): Removed.
16613 (ipa_callsite_tree): Removed.
16614 (ipa_callsite_caller): Removed.
16615 (ipa_pop_func_from_list): return_method removed to return_func
16616
16617 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
16618 prefixed all values with IPA_. Changed all users.
16619 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
16620 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
16621 and FORMAL_IPATYPE IPA_PASS_THROUGH.
16622 (union parameter_info): Renamed to jump_func_value.
16623 (union jump_func_value): Renamed value to constant
16624 (struct ipa_jump_func): Renamed info_type to value
16625 (struct ipa_node): Renamed to ipa_node_params
16626 (struct ipa_node_params): Renamed ipa_arg_num to param_count
16627 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
16628 (struct ipa_node_params): Renamed ipa_mod to modified_flags
16629 (struct ipa_edge): Renamed to ipa_edge_args
16630 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
16631 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
16632 (struct ipa_methodlist): Renamed to ipa_func_list
16633 (struct ipa_func_list): method_p renamed to node, next_method
16634 renamed to next
16635 (ipa_methodlist_p): Removed, switched all users to struct pointer
16636 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
16637
16638 2008-04-30 Alan Modra <amodra@bigpond.net.au>
16639
16640 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
16641 (rs6000_emit_epilogue): Use backchain to restore only when we
16642 have a large frame. Make use of frame pointer to restore if we
16643 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
16644
16645 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
16646
16647 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
16648 Add mode to zero_extract.
16649 (sign bit tests peepholes): (Ditto.).
16650
16651 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
16652
16653 * config/i386/i386.c (ix86_builtins): Replace Prescott New
16654 Instructions in comments with SSE3.
16655 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
16656 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
16657 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
16658 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
16659 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
16660 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
16661 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
16662 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
16663 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
16664 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
16665 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
16666 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
16667 (bdesc_sse_args): Renamed to ...
16668 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
16669 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
16670 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
16671 IX86_BUILTIN_FABSQ.
16672 (bdesc_1arg): Moved to ...
16673 (bdesc_args): Here.
16674 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
16675 Instructions in comments with SSE3.
16676 (ix86_expand_sse_operands_builtin): Renamed to ...
16677 (ix86_expand_args_builtin): This. Updated.
16678 (ix86_expand_unop1_builtin): Update comments.
16679 (ix86_expand_builtin): Updated.
16680
16681 2008-04-29 Richard Guenther <rguenther@suse.de>
16682
16683 PR tree-optimization/36078
16684 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
16685 Update virtual SSA form after cleaning up the CFG.
16686
16687 2008-04-29 Richard Guenther <rguenther@suse.de>
16688
16689 PR middle-end/15255
16690 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
16691
16692 2008-04-29 Richard Guenther <rguenther@suse.de>
16693
16694 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
16695 (compute_may_aliases): Do not call finalize_ref_all_pointers.
16696 (compute_flow_insensitive_aliasing): Do not treat
16697 PTR_IS_REF_ALL pointers special.
16698 (get_smt_for): Likewise.
16699 (may_alias_p): Re-structure.
16700 (is_escape_site): A ref-all pointer conversion is not an escape site.
16701 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
16702 PTR_IS_REF_ALL pointers special.
16703 * tree-ssa-structalias.h (struct alias_info): Remove
16704 ref_all_symbol_mem_tag field.
16705 (PTR_IS_REF_ALL): Remove.
16706
16707 2008-04-29 Richard Guenther <rguenther@suse.de>
16708
16709 PR middle-end/36077
16710 * fold-const.c (extract_muldiv_1): In combining division constants
16711 make sure to never overflow.
16712
16713 2008-04-29 Nick Clifton <nickc@redhat.com>
16714
16715 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
16716
16717 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16718
16719 PR bootstrap/35169
16720 * optc-gen.awk: Work around HP-UX/IA awk bug.
16721
16722 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
16723
16724 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
16725 2008-04-25 commit.
16726
16727 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
16728
16729 PR target/36073
16730 * config/i386/i386.md
16731 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
16732 Change operand 1 predicate to nonimmediate_operand.
16733
16734 2008-04-28 Jakub Jelinek <jakub@redhat.com>
16735
16736 PR debug/36060
16737 * dwarf2out.c (struct die_struct): Mark as chain_circular through
16738 die_sub field.
16739 * gengtype.c (walk_type, write_func_for_structure): Handle
16740 chain_circular.
16741 * doc/gty.texi: Document chain_circular.
16742
16743 2008-04-28 Richard Guenther <rguenther@suse.de>
16744
16745 PR tree-optimization/36066
16746 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
16747 SCEV and loop.
16748
16749 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
16750
16751 PR target/36064
16752 * config/i386/i386.md
16753 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
16754 Use match_scratch instead of match_operand for operands 3 and 4.
16755
16756 2008-04-27 Richard Guenther <rguenther@suse.de>
16757
16758 PR tree-optimization/18754
16759 PR tree-optimization/34223
16760 * tree-pass.h (pass_complete_unrolli): Declare.
16761 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
16762 loop size before and after unconditionally of UL_NO_GROWTH in effect.
16763 Rewrite loop into loop closed SSA form if it is not already.
16764 (tree_unroll_loops_completely): Re-structure to iterate over
16765 innermost loops with intermediate CFG cleanups.
16766 Unroll outermost loops only if requested or the code does not grow
16767 doing so.
16768 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
16769 loops are available.
16770 (tree_vectorize): Instead do so here.
16771 (tree_complete_unroll): Also unroll outermost loops.
16772 (tree_complete_unroll_inner): New function.
16773 (gate_tree_complete_unroll_inner): Likewise.
16774 (pass_complete_unrolli): New pass.
16775 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
16776 uses outside of the loop.
16777 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
16778 form if it is available.
16779 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
16780 * passes.c (init_optimization_passes): Schedule complete inner
16781 loop unrolling pass before the first CCP pass after final inlining.
16782
16783 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
16784
16785 * targhooks.h (default_emutls_var_fields,
16786 default_emutls_var_init): Declare.
16787 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
16788 * target.h (struct gcc_target): Add struct emutls member.
16789 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
16790 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
16791 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
16792 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
16793 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
16794 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
16795 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
16796 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
16797 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
16798 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
16799 emit debug information.
16800 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
16801 * varasm.c: Include targhooks.h.
16802 (emutls_object_section, emutls_tmpl_section): New.
16803 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
16804 (EMUTLS_SEPARATOR): New.
16805 (prefix_name): New.
16806 (get_emutls_object_name): New.
16807 (default_emutls_var_fields): New, broken out of ...
16808 (get_emutls_object_type): ... here. Adjust to use target hooks.
16809 (get_emutls_init_templ_addr): Adjust to use target hooks.
16810 (emutls_decl): Adjust to use target hooks.
16811 (emutls_finish): Likewise.
16812 (default_emutls_var_init): New, broken out of ...
16813 (assemble_variable): ... here. Adjust to use target hooks.
16814 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
16815 SECCAT_EMUTLS_TMPL.
16816 * c-common.c (handle_section_attribute): Prevent overriding
16817 sections for emulated tls with special sections.
16818 * config/i386/i386.c (x86_64_elf_select_section): Add
16819 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
16820 (x86_64_elf_unique_section): Likewise.
16821 * config/vxworks.c: Include tree.h.
16822 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
16823 (vxworks_override_options): Set TLS scheme.
16824 * doc/tm.texi (Emulated TLS): New node.
16825
16826 2008-04-26 Simon Baldwin <simonb@google.com>
16827
16828 PR c/35652
16829 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
16830 with propagated string constants.
16831
16832 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
16833
16834 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
16835 constraint for operand 2 when operand 0 is memory operand.
16836 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
16837 operand 0 is memory operand.
16838 (fix_trunc<mode>_i387_with_temp): Ditto.
16839 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
16840 operand 2 when operand 1 is memory operand.
16841 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
16842 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
16843 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
16844 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
16845 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
16846 operands 2,3 and 4 when operand 1 is memory operand.
16847 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
16848 is memory operand.
16849 (fistdi2_floor_with_temp): Ditto.
16850 (fist<mode>2_floor_with_temp): Ditto.
16851 (fistdi2_ceil_with_temp): Ditto.
16852 (fist<mode>2_ceil_with_temp): Ditto.
16853 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
16854
16855 2008-04-26 David Daney <ddaney@avtrex.com>
16856
16857 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
16858 unspec_volitile.
16859 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
16860 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
16861 UNSPEC_UPDATE_GOT_VERSION): Renumber.
16862 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
16863 (compare_and_swap_12): New insn.
16864 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
16865 * config/mips/mips.c (mips_force_binary): New function.
16866 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
16867 (mips_expand_compare_and_swap_12): New function.
16868 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
16869
16870 2008-04-25 Jan Hubicka <jh@suse.cz>
16871
16872 PR testsuite/35843
16873 * cfgexpand.c (pass_expand): Turn into RTL pass.
16874 * passes.c (execute_one_pass): Do pass typechecking after execution.
16875 * tree-pass.h (pass_expand): Turn into RTL pass.
16876
16877 * function.h (struct rtl_data): Move here fields
16878 accesses_prior_frames, calls_eh_return, saves_all_registers,
16879 has_nonlocal_goto, has_asm_statement, is_thunk,
16880 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
16881 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
16882 arg_pointer_save_area_init from struct function; turn into bool.
16883 (struct function): Move
16884 calls_eh_return, saves_all_registers, has_nonlocal_goto,
16885 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
16886 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
16887 tail_call_emit, arg_pointer_save_area_init
16888 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
16889 (current_function_returns_struct, current_function_returns_pcc_struct,
16890 current_function_calls_setjmp, current_function_calls_alloca,
16891 current_function_accesses_prior_frames,
16892 current_function_calls_eh_return, current_function_is_thunk,
16893 current_function_stdarg, current_function_profile,
16894 current_function_limit_stack, current_function_uses_pic_offset_table,
16895 current_function_uses_const_pool, current_function_has_nonlocal_label,
16896 current_function_saves_all_registers,
16897 current_function_has_nonlocal_goto,
16898 current_function_has_asm_statement): Remove accesor macros.
16899 * ra-conflict.c (global_conflicts): Update.
16900 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
16901 (suitable_for_tail_call_opt_p): Update.
16902 * builtins.c (expand_builtin_return_addr): Update.
16903 (expand_builtin_setjmp_setup): Update.
16904 (expand_builtin_nonlocal_goto): Update.
16905 * final.c (final_start_function): Update.
16906 (profile_function): Update.
16907 (leaf_function_p): Update.
16908 (only_leaf_regs_used): Update.
16909 * df-scan.c (df_get_exit_block_use_set): Update.
16910 * dojump.c (clear_pending_stack_adjust): Update.
16911 * tree-stdarg.c (gate_optimize_stdarg): Update.
16912 * gimple-low.c (lower_function_body): Update.
16913 * global.c (compute_regsets): Update.
16914 (global_alloc): Update.
16915 * dwarf2out.c (dwarf2out_begin_prologue): Update.
16916 * expr.c (expand_assignment): Update.
16917 * dse.c (dse_step0): Update.
16918 (dse_step1): Update.
16919 * c-decl.c (store_parm_decls): Update.
16920 * local-alloc.c (combine_regs): Update.
16921 (find_free_reg): Update.
16922 * function.c (assign_parms_augmented_arg_list): Update.
16923 (assign_parm_find_data_types): Update.
16924 (assign_parms): Update.
16925 (allocate_struct_function): Update.
16926 (expand_function_start): Update.
16927 (expand_function_end): Update.
16928 (get_arg_pointer_save_area): Update.
16929 (thread_prologue_and_epilogue_insns): Update.
16930 (rest_of_match_asm_constraints): Update.
16931 * stor-layout.c (variable_size): Update.
16932 * gcse.c (gcse_main): Update.
16933 (bypass_jumps): Update.
16934 * gimplify.c (gimplify_function_tree): Update.
16935 * calls.c (emit_call_1): Update.
16936 (expand_call): Update.
16937 * bt-load.c (compute_defs_uses_and_gen): Update.
16938 * except.c (sjlj_assign_call_site_values): Update.
16939 (sjlj_emit_function_enter): Update.
16940 (can_throw_external): Update.
16941 (set_nothrow_function_flags): Update.
16942 (expand_builtin_unwind_init): Update.
16943 (expand_eh_return): Update.
16944 (convert_to_eh_region_ranges): Update.
16945 (output_function_exception_table): Update.
16946 * emit-rtl.c (gen_tmp_stack_mem): Update.
16947 * cfgexpand.c (expand_used_vars): Update.
16948 (tree_expand_cfg): Update.
16949 * cfgcleanup.c (rest_of_handle_jump): Update.
16950 * explow.c (allocate_dynamic_stack_space): Update.
16951 * varasm.c (assemble_start_function): Update.
16952 (force_const_mem): Update.
16953 (mark_constant_pool): Update.
16954 * tree-optimize.c (tree_rest_of_compilation): Update.
16955 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
16956 * tree-cfg.c (notice_special_calls): Update.
16957 (is_ctrl_altering_stmt): Update.
16958 (tree_can_make_abnormal_goto): Update.
16959 (tree_purge_dead_abnormal_call_edges): Update.
16960 * config/alpha/predicates.md: Update.
16961 * config/alpha/alpha.c (alpha_sa_mask): Update.
16962 (alpha_sa_size): Update.
16963 (alpha_does_function_need_gp): Update.
16964 (alpha_expand_prologue): Update.
16965 (alpha_start_function): Update.
16966 (alpha_output_function_end_prologue): Update.
16967 (alpha_expand_epilogue): Update.
16968 * config/frv/frv.c (frv_stack_info): Update.
16969 (frv_expand_epilogue): Update.
16970 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
16971 (s390_register_info): Update.
16972 (s390_frame_info): Update.
16973 (s390_init_frame_layout): Update.
16974 (s390_can_eliminate): Update.
16975 (save_gprs): Update.
16976 * config/spu/spu.c (spu_split_immediate): Update.
16977 (need_to_save_reg): Update.
16978 (spu_expand_prologue): Update.
16979 (spu_expand_epilogue): Update.
16980 * config/sparc/sparc.md: Update.
16981 * config/sparc/sparc.c (eligible_for_return_delay): Update.
16982 (sparc_tls_got): Update.
16983 (legitimize_pic_address): Update.
16984 (sparc_emit_call_insn): Update.
16985 (sparc_expand_prologue): Update.
16986 (output_return): Update.
16987 (print_operand): Update.
16988 (sparc_function_ok_for_sibcall): Update.
16989 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
16990 * config/m32r/m32r.md: Update.
16991 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
16992 (m32r_compute_frame_size): Update.
16993 (m32r_expand_prologue): Update.
16994 (m32r_expand_epilogue): Update.
16995 (m32r_legitimize_pic_address): Update.
16996 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
16997 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
16998 * config/i386/i386.c (ix86_frame_pointer_required): Update.
16999 (gen_push): Update.
17000 (ix86_save_reg): Update.
17001 (ix86_compute_frame_layout): Update.
17002 (ix86_expand_prologue): Update.
17003 (ix86_expand_epilogue): Update.
17004 * config/sh/sh.c (output_stack_adjust): Update.
17005 (calc_live_regs): Update.
17006 (sh5_schedule_saves): Update.
17007 (sh_expand_prologue): Update.
17008 (sh_expand_epilogue): Update.
17009 (sh_setup_incoming_varargs): Update.
17010 (sh_allocate_initial_value): Update.
17011 (sh_get_pr_initial_val): Update.
17012 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
17013 * config/sh/sh.md (label:): Update.
17014 * config/avr/avr.c (out_movhi_mr_r): Update.
17015 * config/crx/crx.h (enum): Update.
17016 * config/xtensa/xtensa.h (along): Update.
17017 * config/stormy16/stormy16.c Update.
17018 (xstormy16_compute_stack_layout): Update.
17019 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
17020 (fr30_expand_prologue): Update.
17021 * config/cris/cris.c (cris_conditional_register_usage): Update.
17022 (cris_reg_saved_in_regsave_area): Update.
17023 (cris_initial_frame_pointer_offset): Update.
17024 (cris_simple_epilogue): Update.
17025 (cris_expand_prologue): Update.
17026 (cris_expand_epilogue): Update.
17027 (cris_expand_pic_call_address): Update.
17028 (cris_asm_output_symbol_ref): Update.
17029 (cris_asm_output_label_ref): Update.
17030 * config/cris/cris.md Update.
17031 * config/iq2000/iq2000.c (compute_frame_size): Update.
17032 (iq2000_expand_epilogue): Update.
17033 * config/mt/mt.h (save_direction): Update.
17034 * config/mn10300/mn10300.c (mn10300_function_value): Update.
17035 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
17036 (ia64_secondary_reload_class): Update.
17037 * config/m68k/m68k.c (m68k_save_reg): Update.
17038 (m68k_expand_prologue): Update.
17039 (m68k_expand_epilogue): Update.
17040 (legitimize_pic_address): Update.
17041 * config/rs6000/rs6000.c (rs6000_got_register): Update.
17042 (first_reg_to_save): Update.
17043 (first_altivec_reg_to_save): Update.
17044 (compute_vrsave_mask): Update.
17045 (compute_save_world_info): Update.
17046 (rs6000_stack_info): Update.
17047 (spe_func_has_64bit_regs_p): Update.
17048 (rs6000_ra_ever_killed): Update.
17049 (rs6000_emit_eh_reg_restore): Update.
17050 (rs6000_emit_allocate_stack): Update.
17051 (rs6000_emit_prologue): Update.
17052 (rs6000_emit_epilogue): Update.
17053 (rs6000_output_function_epilogue): Update.
17054 (output_profile_hook): Update.
17055 (rs6000_elf_declare_function_name): Update.
17056 * config/rs6000/rs6000.h (rs6000_args): Update.
17057 * config/rs6000/rs6000.md: Update.
17058 * config/mcore/mcore.c (mcore_expand_prolog): Update.
17059 * config/arc/arc.c (arc_output_function_epilogue): Update.
17060 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
17061 * config/darwin.c (machopic_function_base_name): Update.
17062 * config/score/score3.c (score3_compute_frame_size): Update.
17063 (rpush): Update.
17064 (rpop): Update.
17065 (score3_epilogue): Update.
17066 * config/score/score7.c (score7_compute_frame_size): Update.
17067 (score7_prologue): Update.
17068 (score7_epilogue): Update.
17069 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
17070 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
17071 * config/arm/arm.c (use_return_insn): Update.
17072 (require_pic_register): Update.
17073 (arm_load_pic_register): Update.
17074 (arm_compute_save_reg0_reg12_mask): Update.
17075 (arm_compute_save_reg_mask): Update.
17076 (thumb1_compute_save_reg_mask): Update.
17077 (output_return_instruction): Update.
17078 (arm_output_function_prologue): Update.
17079 (arm_output_epilogue): Update.
17080 (arm_get_frame_offsets): Update.
17081 (arm_expand_prologue): Update.
17082 (thumb_pushpop): Update.
17083 (thumb_exit): Update.
17084 (thumb1_expand_prologue): Update.
17085 (thumb1_expand_epilogue): Update.
17086 (arm_unwind_emit): Update.
17087 (arm_output_fn_unwind): Update.
17088 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
17089 * config/arm/arm.md: Update.
17090 * config/pa/pa.md: Update.
17091 * config/pa/pa.c (legitimize_pic_address): Update.
17092 (compute_frame_size): Update.
17093 (hppa_expand_prologue): Update.
17094 (hppa_expand_epilogue): Update.
17095 (borx_reg_operand): Update.
17096 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
17097 (HARD_REGNO_RENAME_OK): Update.
17098 * config/mips/mips.c (mips_global_pointer): Update.
17099 (mips_save_reg_p): Update.
17100 (mips_compute_frame_info): Update.
17101 (mips_frame_pointer_required): Update.
17102 (mips_expand_prologue): Update.
17103 (mips_expand_epilogue): Update.
17104 (mips_can_use_return_insn): Update.
17105 (mips_reorg_process_insns): Update.
17106 * config/v850/v850.c (compute_register_save_size): Update.
17107 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
17108 * config/mmix/mmix.c (along): Update.
17109 (mmix_expand_epilogue): Update.
17110 * config/bfin/bfin.c (legitimize_pic_address): Update.
17111 (must_save_p): Update.
17112 (stack_frame_needed_p): Update.
17113 (add_to_reg): Update.
17114 (bfin_expand_prologue): Update.
17115 * stmt.c (expand_asm_operands): Update.
17116 * reload1.c (reload): Update.
17117 (init_elim_table): Update.
17118
17119 2008-04-25 Bob Wilson <bob.wilson@acm.org>
17120
17121 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
17122
17123 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
17124
17125 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
17126 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
17127 (mov<mode>): Removed.
17128 (*movv4sf_internal): Likewise.
17129 (*movv2df_internal): Likewise.
17130
17131 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
17132
17133 * config.gcc (crx-*-elf): Remove deprecation.
17134
17135 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
17136
17137 * config/i386/cygming-crtend.c (register_frame_ctor): Register
17138 __gcc_deregister_frame with atexit.
17139 (deregister_frame_dtor): Remove.
17140
17141 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
17142 Nathan Sidwell <nathan@codesourcery.com>
17143
17144 * config/rs6000/rs6000.opt (mspe): Remove Var property.
17145 (misel): Likewise.
17146 * config/rs6000/rs6000.h (rs6000_spe): Declare.
17147 (rs6000_isel): Likewise.
17148 * config/rs6000/rs6000.c (rs6000_spe): New variable.
17149 (rs6000_isel): New variable.
17150 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
17151
17152 2008-04-24 Jakub Jelinek <jakub@redhat.com>
17153
17154 PR c++/35758
17155 * c-common.c (handle_vector_size_attribute): Call
17156 lang_hooks.types.reconstruct_complex_type instead of
17157 reconstruct_complex_type.
17158 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
17159 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
17160 * langhooks.h (struct lang_hooks_for_types): Add
17161 reconstruct_complex_type hook.
17162 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
17163 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
17164
17165 2008-04-24 Richard Guenther <rguenther@suse.de>
17166
17167 * c-common.h (check_builtin_function_arguments): Declare.
17168 * c-common.c (validate_nargs): New function.
17169 (check_builtin_function_arguments): Likewise.
17170 * c-typeck.c (build_function_call): Call
17171 check_builtin_function_arguments.
17172 * builtins.c (fold_builtin_classify): Remove error reporting code.
17173 (fold_builtin_unordered_cmp): Likewise.
17174 (fold_builtin_1): Likewise.
17175 (fold_builtin_n): Likewise.
17176
17177 2008-04-24 Jakub Jelinek <jakub@redhat.com>
17178
17179 PR tree-optimization/36008
17180 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
17181 the original op1, rather than delta by step.
17182
17183 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
17184 Sebastian Pop <sebastian.pop@amd.com>
17185
17186 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
17187 eliminate_local_variables_stmt, eliminate_local_variables,
17188 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
17189 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
17190 of code delimited by two edges in the CFG.
17191 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
17192 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
17193 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
17194 the case of parallelisation of reductions.
17195 (expr_invariant_in_region_p): New.
17196
17197 * tree-flow.h (gather_blocks_in_sese_region): Declared.
17198 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
17199
17200 2008-04-24 Ira Rosen <irar@il.ibm.com>
17201 Richard Guenther <rguenther@suse.de>
17202
17203 PR tree-optimization/36034
17204 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
17205 incapable of dealing with loads with gaps.
17206
17207 2008-04-24 Rafael Espíndola <espindola@google.com>
17208
17209 * tree-flow.h (vrp_evaluate_conditional): Change signature.
17210 * tree-ssa-propagate.c (fold_predicate_in): Update call to
17211 vrp_evaluate_conditional.
17212 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
17213 (vrp_evaluate_conditional): Split the cond argument.
17214 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
17215 (simplify_stmt_for_jump_threading): Update call to
17216 vrp_evaluate_conditional.
17217
17218 2008-04-24 Ira Rosen <irar@il.ibm.com>
17219
17220 PR tree-optimization/35982
17221 * tree-vect-analyze.c (vect_check_interleaving): Check that the
17222 interleaved data-refs are of the same type.
17223
17224 2008-04-24 Danny Smith <dannysmith@users.net>
17225
17226 * c-format.c (check_format_info_main): Use strncmp rather than a
17227 magic prefix to handle multichar length specs.
17228 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
17229 Don't prefix "I64" and "I32" with '\0'.
17230
17231 2008-04-24 Jakub Jelinek <jakub@redhat.com>
17232
17233 PR target/36015
17234 * config/i386/i386.c (init_cumulative_args): Don't pass anything
17235 in registers for -m32 only if stdarg_p (fntype).
17236
17237 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
17238
17239 PR rtl-optimization/36006
17240 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
17241 temp to op0 in order to avoid invalid rtx sharing.
17242
17243 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
17244
17245 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
17246 check TREE_INVARIANT.
17247 * tree-gimple.c (is_gimple_address): New.
17248 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
17249 * tree-gimple.h (is_gimple_address): New.
17250 * tree.h (decl_address_invariant_p): New.
17251 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
17252 (build_string): Likewise.
17253 (decl_address_invariant_p): New, from is_gimple_invariant_address.
17254 (tree_invariant_p_1): Likewise.
17255 (save_expr): Use it.
17256 (tree_invariant_p): New.
17257 (skip_simple_arithmetic): Use it.
17258 (stabilize_reference_1): Use it.
17259 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
17260 simplify.
17261 (build1_stat): Drop code to compute TREE_INVARIANT.
17262 (build2_stat): Drop code to compute TREE_INVARIANT.
17263 (build3_stat): Drop code to compute TREE_INVARIANT.
17264 (build4_stat): Drop code to compute TREE_INVARIANT.
17265 (build5_stat): Drop code to compute TREE_INVARIANT.
17266 (build7_stat): Drop code to compute TREE_INVARIANT.
17267 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
17268 * tree.h (struct tree_base): Remove invariant_flag.
17269 (TREE_INVARIANT): Remove.
17270 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
17271 (fold_builtin_expect): Check TREE_CONSTANT.
17272 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
17273 * c-tree.h (c_expr_to_decl): Drop third parameter.
17274 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
17275 (build_c_cast): Don't set TREE_INVARIANT.
17276 (pop_init_level): Don't set TREE_INVARIANT.
17277 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
17278 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
17279 TREE_CONSTANT.
17280 (gimplify_init_constructor): Don't set TREE_INVARIANT.
17281 (gimplify_addr_expr): Adjust comment.
17282 * tree-mudflap.c (mf_build_string):
17283 * print-tree.c (print_node): Don't print TREE_INVARIANT.
17284 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
17285 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
17286 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
17287 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
17288 * langhooks.h (struct lang_hooks): Drop third parameter from
17289 expr_to_decl.
17290
17291 2008-04-23 Richard Guenther <rguenther@suse.de>
17292
17293 PR tree-optimization/27799
17294 PR tree-optimization/32921
17295 PR tree-optimization/32624
17296 * tree-ssa-structalias.c (merge_smts_into): Only merge the
17297 SMTs aliases and the tag itself into the solution.
17298 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
17299 merge the points-to solution back into the SMT aliases.
17300 (may_alias_p): Use alias_set_subset_of instead of
17301 aliases_conflict_p. A pointer which points to
17302 memory with alias set zero may access any variable.
17303
17304 2008-04-23 Richard Guenther <rguenther@suse.de>
17305
17306 * alias.c (alias_set_subset_of): Correctly handle asking
17307 if zero is a subset of an alias set with zero child.
17308 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
17309 (compute_flow_insensitive_aliasing): Correctly walk all
17310 pointers. Do not unnecessarily union sets.
17311
17312 2008-04-23 Richard Guenther <rguenther@suse.de>
17313
17314 PR middle-end/36021
17315 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
17316
17317 2008-04-22 Tomas Bily <tbily@suse.cz>
17318
17319 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
17320 unreachable case.
17321 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
17322 NON_LVALUE_EXPR.
17323 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
17324 * tree-ssa-structalias.c (get_constraint_for): Likewise.
17325 * tree-inline.c (estimate_num_insns_1): Likewise.
17326 * varasm.c (const_hash_1, compare_constant, copy_constant)
17327 (compute_reloc_for_constant, output_addressed_constants): Likewise.
17328 * emit-rtl.c (component_ref_for_mem_expr)
17329 (set_mem_attributes_minus_bitpos): Likewise.
17330 * expr.c (highest_pow2_factor, expand_expr_real_1, )
17331 (is_aligning_offset): Likewise.
17332 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
17333 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
17334 * dojump.c (do_jump): Likewise.
17335 * builtins.c (get_pointer_alignment, get_memory_rtx)
17336 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
17337 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
17338
17339 2008-04-23 Jakub Jelinek <jakub@redhat.com>
17340
17341 PR rtl-optimization/36017
17342 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
17343 expanding the library call.
17344
17345 2008-04-22 Ian Lance Taylor <iant@google.com>
17346
17347 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
17348 than size_in_bytes.
17349
17350 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
17351
17352 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
17353 of LR/CTR moves for Power6.
17354
17355 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
17356
17357 PR middle-end/36003
17358 * passes.c (init_optimization_passes): Remove
17359 pass_fast_rtl_byte_dce.
17360
17361 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
17362
17363 PR target/29096
17364 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
17365 builtin functions to generate faster code.
17366 (_mm_cvtpu16_ps): Ditto.
17367 (_mm_cvtpi32x2_ps): Ditto.
17368
17369 2008-04-22 Nick Clifton <nickc@redhat.com>
17370
17371 * common.opt (ftree-loop-distribution): Add Optimization
17372 attribute.
17373
17374 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
17375 (frv_expand_builtin_va_start): Likewise.
17376
17377 * config/arm/arm.c (thumb_find_work_register): Fix location of
17378 argument register count.
17379
17380 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
17381
17382 Support scheduling for ColdFire V1 and V3 microarchitecture.
17383 Improve scheduling of multiplication instructions.
17384
17385 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
17386 (mac): New instruction attribute.
17387 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
17388 (m68k_sched_mac): New variable.
17389 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
17390 Handle cfv1 and cfv3.
17391 (max_insn_size): New static variable.
17392 (struct _sched_ib): New type.
17393 (sched_ib): New static variable.
17394 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
17395 to fields of 'struct _sched_ib sched_ib'. Update all uses.
17396 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
17397 Update.
17398 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
17399 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
17400 new variables. Update.
17401 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
17402 Add modeling of cfv3 instruction buffer. Update.
17403 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
17404 * config/m68k/m68k.h (TUNE_CFV3): New macro.
17405 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
17406 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
17407 a particular reservation applies to.
17408 (type2): Reorganize attribute values. Rename alu to alu_reg,
17409 alu_l to alu, move_l to omove. Join move to alu. Split mul
17410 to mul_l and mul_w.
17411 (cf_ib_*): Simplify description of instruction buffer.
17412 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
17413 (cf_mem): Split into cf_mem1 and cf_mem2.
17414 (cf_v2_move_??): Rename to cfv12_alu_??.
17415 (cf_v2_move_l_??): Rename to cfv12_omove_??.
17416 (cf_v2_mul_??): Remove reservations.
17417 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
17418 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
17419 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
17420 appropriate place.
17421 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
17422 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
17423 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
17424 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
17425 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
17426 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
17427 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
17428 expansions of the above reservations for instructions of sizes
17429 1, 2 and 3 words.
17430
17431 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
17432
17433 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
17434
17435 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
17436
17437 * coverage.c: Include tree-pass.h.
17438 (coverage_counter_alloc): Print da_file_name to the dump file.
17439
17440 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
17441
17442 * sbitmap.c (sbitmap_range_empty_p): New function.
17443 * sbitmap.h (sbitmap_range_empty_p): New function.
17444 * bitmap.h: Now includes obstack.h.
17445
17446 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
17447 Kenneth Zadeck <zadeck@naturalbridge.com>
17448
17449 * dbgcnt.def (ra_byte_scan): Added.
17450 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
17451 when the last hit happens for a counter.
17452 * timevar.def (TV_DF_BYTE_LR): New variable.
17453 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
17454 * passes.c (pass_fast_rtl_byte_dce): New pass.
17455 * fwprop.c (update_df): Added mode to call df_ref_create.
17456 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
17457 DF_REF_EXTRACT_OFFSET.
17458 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
17459 DF_BYTE_LR_OUT, df_byte_lr): New macro.
17460 (df_mm): New enum.
17461 (df_ref_extract): Added mode field.
17462 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
17463 DF_REF_EXTRACT_OFFSET.
17464 (DF_REF_EXTRACT_MODE): New macro.
17465 (df_byte_lr_bb_info): New structure.
17466 (df_print_byte_regset, df_compute_accessed_bytes,
17467 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
17468 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
17469 df_byte_lr_simulate_uses,
17470 df_byte_lr_simulate_artificial_refs_at_top,
17471 df_byte_lr_simulate_artificial_refs_at_end,
17472 df_compute_accessed_bytes): New function.
17473 (df_ref_create): Add parameter.
17474 (df_byte_lr_get_bb_info): New inline function.
17475 * df-scan.c (df_ref_record, df_uses_record,
17476 df_ref_create_structure): Added mode parameter.
17477 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
17478 df_defs_record, df_uses_record, df_get_conditional_uses,
17479 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
17480 df_entry_block_defs_collect, df_exit_block_uses_collect):
17481 Added mode parameter to calls to df_ref_record, df_uses_record,
17482 df_ref_create_structure.
17483 (df_ref_equal_p, df_ref_compare): Added test for modes.
17484 (df_ref_create_structure): Added code to set mode. Renamed
17485 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
17486 DF_REF_EXTRACT_OFFSET.
17487 * df-core.c (df_print_byte_regset): New function.
17488 * df-byte-scan.c: New file.
17489 * df-problems.c (df_rd_transfer_function): Removed unnecessary
17490 calls to BITMAP_FREE.
17491 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
17492 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
17493 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
17494 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
17495 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
17496 df_byte_lr_local_compute, df_byte_lr_init,
17497 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
17498 df_byte_lr_transfer_function, df_byte_lr_free,
17499 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
17500 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
17501 df_byte_lr_simulate_uses,
17502 df_byte_lr_simulate_artificial_refs_at_top,
17503 df_byte_lr_simulate_artificial_refs_at_end): New function.
17504 * dce.c (byte_dce_process_block): New function.
17505 (dce_process_block): au is now passed in rather than computed
17506 locally. Changed loops that look at artificial defs to not look
17507 for conditional or partial ones, because there never are any.
17508 (fast_dce): Now is able to drive byte_dce_process_block or
17509 dce_process_block depending on the kind of dce being done.
17510 (rest_of_handle_fast_dce): Add parameter to fast_dce.
17511 (rest_of_handle_fast_byte_dce): New function.
17512 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
17513 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
17514
17515 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
17516
17517 PR fortran/35019
17518 * gcc.h: Added fortran options that take arguments to
17519 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
17520 macros.
17521
17522 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
17523
17524 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
17525 scalarization if on the LHS and not a full access.
17526
17527 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17528
17529 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
17530
17531 2008-04-18 Rafael Espíndola <espindola@google.com>
17532
17533 * tree-vrp.c (find_case_label_index): Fix the binary search.
17534 (find_case_label_range): New.
17535 (vrp_visit_switch_stmt): Use find_case_label_range.
17536 (simplify_switch_using_ranges): Use find_case_label_range.
17537
17538 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
17539
17540 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
17541 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
17542
17543 2008-04-18 Tom Tromey <tromey@redhat.com>
17544
17545 PR libcpp/15500:
17546 * doc/cpp.texi (Implementation-defined behavior): Mention
17547 -finput-charset.
17548
17549 2008-04-18 Ian Lance Taylor <iant@google.com>
17550
17551 * fold-const.c (pointer_may_wrap_p): New static function.
17552 (fold_comparison): Add another test for pointer overflow. Use
17553 pointer_may_wrap_p to disable some false positives.
17554
17555 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
17556
17557 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
17558 (fname_as_string): Match updated cpp_interpret_string prototype.
17559 (fix_string_type): Support char16_t* and char32_t*.
17560 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
17561 derivative) nodes. Register as builtin if C++0x.
17562 (c_parse_error): Support CPP_CHAR{16,32}.
17563 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
17564 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
17565 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
17566 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
17567 CTI_CHAR32_ARRAY_TYPE>: New elements.
17568 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
17569 char32_type_node, signed_char32_type_node, char16_array_type_node,
17570 char32_array_type_node): New defines.
17571 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
17572 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
17573 (lex_string): Support CPP_STRING{16,32}, match updated
17574 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
17575 (lex_charconst): Support CPP_CHAR{16,32}.
17576 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
17577 and CPP_STRING{16,32}.
17578
17579 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
17580
17581 PR bootstrap/35457
17582 * aclocal.m4: Regenerate.
17583 * configure: Regenerate.
17584
17585 2008-04-18 Jan Hubicka <jh@suse.cz>
17586
17587 * except.c (dw2_size_of_call_site_table,
17588 sjlj_size_of_call_site_table): Use vector API for call_site_record.
17589
17590 * cgraphbuild.c (build_cgraph_edges): Update.
17591 * tree-pass.h: Update comment.
17592 * final.c (leaf_function_p): Update.
17593 (leaf_renumber_regs): Update.
17594 (rest_of_clean_state): Update.
17595 * omp-low.c (expand_omp_parallel): Update.
17596 * ipa-reference.c (analyze_function): Update.
17597 * reorg.c (find_end_label): Update.
17598 (optimize_skip): Update.
17599 (fill_simple_delay_slots): Update.
17600 (fill_simple_delay_slots): Update.
17601 (make_return_insns): Update.
17602 (dbr_schedule): Update.
17603 * gimple-low.c (record_vars_into): Update.
17604 * cfgbuild.c (make_edges): Update.
17605 * function.c (assign_stack_local): Update.
17606 (assign_parm_adjust_stack_rtl): Update.
17607 (locate_and_pad_parm): Update.
17608 (allocate_struct_function): Do not initialize stack_alignment_needed
17609 and preferred_stack_boundary here.
17610 (stack_protect_prologue): Update.
17611 (stack_protect_epilogue): Update.
17612 (expand_function_start): Initialize stack_alignment_needed,
17613 preferred_stack_boundary and max_jumptable_ents.
17614 (expand_function_end): Update.
17615 (free_after_compilation): Do not NULLify epilogue_delay_list.
17616 * function.h (struct rtl_data): Add stack_protect_guard,
17617 stack_alignment_needed,
17618 preferred_stack_boundary, epilogue_delay_list.
17619 (struct function): Remove value_histograms, stack_alignment_needed,
17620 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
17621 last_label_uid,
17622 unexpanded_var_list, stack_protect_guard.
17623 (current_function_epilogue_delay_list): Remove.
17624 * ipa-type-escape.c (analyze_function): Update.
17625 * gimplify.c (pop_gimplify_context): Update comment.
17626 * calls.c (expand_call): Update.
17627 (emit_library_call_value_1): Update.
17628 * except.c (set_nothrow_function_flags): Update.
17629 * cfgexpand.c (get_decl_align_unit): Update.
17630 (create_stack_guard): Update.
17631 (estimated_stack_frame_size): Update.
17632 (expand_used_vars): Update.
17633 (tree_expand_cfg): Free histogram earliers, init expansion variables.
17634 * explow.c (allocate_dynamic_stack_space): Update.
17635 * tree-ssa-live.c (remove_unused_locals): Update.
17636 * varasm.c (mark_constant_pool): Update.
17637 * tree-inline.c (remap_decls): Update.
17638 (initialize_cfun): Update.
17639 (declare_return_variable): Update.
17640 (inline_forbidden_p): Update.
17641 (expand_call_inline): Update.
17642 (declare_inline_vars): Update.
17643 (tree_function_versioning): Update.
17644 * tree-flow.h (value_histograms): New.
17645 (VALUE_HISTOGRAMS): New macro.
17646 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
17647 last_label_uid.
17648 * tree-cfg.c (set_bb_for_stmt): Update.
17649 (replace_by_duplicate_decl): Update.
17650 (move_block_to_fn): Update.
17651 (new_label_mapper): Update.
17652 (dump_function_to_file): Update.
17653 * ipa-struct-reorg.c (build_data_structure): Update.
17654 * cfgrtl.c (print_rtl_with_bb): Update.
17655 * reload1.c (reload): Update.
17656 (reload): Update.
17657 * config/i386/i386.c (setup_incoming_varargs_64,
17658 ix86_compute_frame_layout): Update.
17659 * config/arc/arc.c (arc_output_function_epilogue): Update.
17660
17661 2008-04-18 Marius Strobl <marius@FreeBSD.org>
17662
17663 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
17664 for FreeBSD as well.
17665 * gthr-posix95.h: Likewise.
17666
17667 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
17668
17669 PR rtl-optimization/35838
17670 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
17671 out the byte offset of the first subreg.
17672
17673 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
17674
17675 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
17676 to split_ti instead of three separate calls with single member arrays.
17677 (subti3 splitter): Ditto.
17678 (adddi3 splitter): Ditto with split_di.
17679 (subdi3 splitter): Ditto.
17680 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
17681 two separate calls with single member arrays. Swap match_dup
17682 operands 1 and 2 to better fit into the array.
17683 (negdi2 splitter): Ditto with split_di.
17684 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
17685 two separate calls with single member arrays. Swap match_dup operands
17686 6 and 7 to better fit into the array.
17687
17688 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
17689
17690 * config/i386/i386.c (sse_builtin_type): New.
17691 (bdesc_sse_args): Likewise.
17692 (bdesc_sse_3arg): Removed.
17693 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
17694 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
17695 IX86_BUILTIN_ROUNDPS.
17696 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
17697 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
17698 IX86_BUILTIN_ROUNDPS.
17699 (ix86_expand_sse_4_operands_builtin): Removed.
17700 (ix86_expand_sse_operands_builtin): New.
17701 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
17702 and CODE_FOR_sse4_1_roundps.
17703 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
17704 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
17705
17706 2008-04-17 Alan Modra <amodra@bigpond.net.au>
17707
17708 PR target/35907
17709 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
17710 regs before frame pop when needed. If use_backchain_to_restore_sp
17711 then load backchain into a temp reg to restore vr and vrsave. Add
17712 code to restore vr after frame pop if possible.
17713
17714 2008-04-17 Richard Guenther <rguenther@suse.de>
17715
17716 * tree-vn.c (expressions_equal_p): Do not check type
17717 equality or compatibility before calling operand_equal_p.
17718 * fold-const.c (operand_equal_p): Check equivalence of
17719 integer constants before bailing out due to signedness or
17720 precision differences.
17721 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
17722 spurious differences in type qualification. Ignore types
17723 for COMPONENT_REFs at all.
17724
17725 2008-04-17 Christian Bruel <christian.bruel@st.com>
17726
17727 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
17728 msw_skip comparison.
17729
17730 2008-04-16 Jakub Jelinek <jakub@redhat.com>
17731
17732 PR c/35739
17733 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
17734 reg type.
17735
17736 PR tree-optimization/35899
17737 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
17738 rather than TREE_OPERAND.
17739
17740 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
17741
17742 PR target/35944
17743 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
17744 temporary registers. Change operand predicate to general_operand.
17745 (remainderxf3): Ditto.
17746
17747 2008-04-16 Richard Guenther <rguenther@suse.de>
17748
17749 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
17750 * tree-affine.c (aff_combination_expand): Look through some
17751 conversions.
17752
17753 2008-04-15 Doug Kwan <dougkwan@google.com>
17754
17755 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
17756 for hex printing.
17757 * tree-pretty-print.c (dump_generic_node): Ditto.
17758 * final.c (output_addr_const): Ditto.
17759 * dwarf2out.c (output_cfi): Ditto.
17760 * c-pretty-print.c (pp_c_integer_constant): Ditto.
17761 * print-rtl.c (print_rtx): Ditto.
17762 * print-tree.c (print_node_brief, print_node): Ditto.
17763 * c-common.c (match_case_to_enum_1): Ditto.
17764 * sched-vis.c (print_value): Ditto.
17765 * config/i386/i386.c (print_operand): Cast to long unsigned int
17766 for hex printing.
17767
17768 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
17769 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
17770 MS Windows VirtualProtect function.
17771
17772 2008-04-15 Jan Hubicka <jh@suse.cz>
17773
17774 * gengtype.c (write_root): Param_is argument is OK.
17775 * expr.c (expand_expr_real_1): Update call of get_exception_*.
17776 * function.h: Include varray.h
17777 (rtl_eh): New stucture based on except.c one.
17778 (call_site_record): New forward declaration and vector type.
17779 * calls.c (emit_call_1): Do not call
17780 note_current_region_may_contain_throw.
17781 * except.c (eh_status): Remove cur_region, try_region since they are
17782 unused.
17783 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
17784 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
17785 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
17786 Remove call_site_data_used, call_site_data_size.
17787 Turn call_site_record into vector in function.h.
17788 (note_current_region_may_contain_throw): Remove.
17789 (get_exception_pointer, get_exception_filter): Do not take struct
17790 function argument; update.
17791 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
17792 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
17793 build_post_landing_pads, dw2_build_landing_pads,
17794 sjlj_assign_call_site_values, sjlj_mark_call_sites,
17795 sjlj_emit_function_enter, sjlj_emit_function_enter,
17796 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
17797 sjlj_build_landing_pads, finish_eh_generation,
17798 remove_exception_handler_label, remove_eh_handler,
17799 maybe_remove_eh_handler, add_reachable_handler,
17800 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
17801 add_action_record, collect_one_action_chain, add_call_site,
17802 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
17803 sjlj_output_call_site_table, output_function_exception_table,
17804 * except.h (note_current_region_may_contain_throw): Remove
17805 (get_exception_pointer, get_exception_filter): Do not take struct
17806 function argument.
17807 * Makefile.in (GTFILES): Put varargs before struct function.
17808
17809 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
17810
17811 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
17812 punt for STRING_CST.
17813 (get_constraint_for): Deal with STRING_CST here instead.
17814
17815 2008-04-15 Richard Guenther <rguenther@suse.de>
17816
17817 * tree-ssa-propagate.c (substitute_and_fold): Substitute
17818 statements in a basic-block with a backward walk. Do not
17819 substitute into dead statements but instead remove those.
17820
17821 2008-04-15 Richard Guenther <rguenther@suse.de>
17822
17823 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
17824 to zero, thus disable creation of SFTs.
17825
17826 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
17827
17828 * tree-predcom.c (suitable_reference_p): Return false if the
17829 reference can throw.
17830
17831 2008-04-15 Jakub Jelinek <jakub@redhat.com>
17832
17833 PR c/35751
17834 * c-decl.c (finish_decl): If extern or static var has variable
17835 size, set TREE_TYPE (decl) to error_mark_node.
17836
17837 2008-04-15 Rafael Espíndola <espindola@google.com>
17838
17839 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
17840 variable arg1.
17841
17842 2008-04-15 Richard Guenther <rguenther@suse.de>
17843
17844 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
17845 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
17846 (visit_reference_op_load): Do walk vuse-vdef chains on
17847 vn_reference_lookup.
17848 (visit_reference_op_store): But do not here.
17849 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
17850 vn_reference_lookup.
17851 (vn_lookup_with_vuses): But do so here.
17852
17853 2008-04-14 Ian Lance Taylor <iant@google.com>
17854
17855 * fold-const.c (fold_overflow_warning): Remove assertion.
17856
17857 2008-04-15 Ben Elliston <bje@au.ibm.com>
17858
17859 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
17860 temp1 local variables.
17861
17862 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
17863
17864 PR target/35661
17865 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
17866 ".text.unlikely" section as executable.
17867
17868 2008-04-14 James E. Wilson <wilson@tuliptree.org>
17869
17870 * config/ia64/ia64.c (rtx_needs_barrier): Handle
17871 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
17872 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
17873 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
17874 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
17875 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
17876 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
17877
17878 2008-04-14 Ian Lance Taylor <iant@google.com>
17879
17880 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
17881 * fold-const.c (fold_comparison): If appropriate, test
17882 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
17883 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
17884 reassociating a pointer type.
17885 * doc/invoke.texi (Optimize Options): Document that
17886 -fstrict-overflow applies to pointer wraparound.
17887
17888 2008-04-13 Jan Hubicka <jh@suse.cz>
17889
17890 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
17891
17892 2008-04-12 Andrew Pinski <pinskia@gmail.com>
17893
17894 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
17895 we are going to "save the world".
17896
17897 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
17898
17899 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
17900 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
17901 operand 0 constraint, not "=".
17902
17903 2008-04-11 James E. Wilson <wilson@tuliptree.org>
17904
17905 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
17906
17907 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
17908
17909 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
17910 of size of positions_needed * CHAR_BIT.
17911
17912 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
17913
17914 PR middle-end/35897
17915 * dse.c (store_info): Change positions_needed to unsigned
17916 HOST_WIDE_INT.
17917 (lowpart_bitmask): New.
17918 (record_store): Cast to unsigned HOST_WIDE_INT for
17919 positions_needed. Assert width <= size of positions_needed *
17920 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
17921 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
17922 lowpart_bitmask to set mask.
17923
17924 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
17925
17926 * config/bfin/constraints.md: New file.
17927 * config/bfin/bfin.md: Include it.
17928 (adddi3): Use satisfies_constraint functions instead of the old macros.
17929 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
17930 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
17931 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
17932 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
17933 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
17934 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
17935 EXTRA_CONSTRAINT): Delete.
17936 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
17937 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
17938 of the old macros.
17939 * config/bfin/bfin.c: Include "tm-constrs.h".
17940 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
17941 Use satisfies_constraint functions instead of the old macros.
17942 * doc/md.texi (Blackfin Constraints): Update file name reference.
17943
17944 2008-04-11 Richard Guenther <rguenther@suse.de>
17945
17946 PR tree-optimization/35869
17947 * tree-vrp.c (execute_vrp): Move switch statement update after
17948 jump threading. Schedule another cfg cleanup run.
17949
17950 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
17951
17952 PR c/35744
17953 * attribs.c (decl_attributes): Return early on errorneous node.
17954
17955 2008-04-10 Oleg Ryjkov <olegr@google.com>
17956
17957 * tree.h (struct tree_base): Added a new flag default_def_flag.
17958 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
17959
17960 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
17961
17962 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
17963
17964 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17965
17966 PR target/35768
17967 * pa.md: Define mode iterator P. Define mode attribute dwc.
17968 (dcacheflush): Update pattern to use iterator P and attribute dwc.
17969 (icacheflush): Likewise.
17970 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
17971 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
17972
17973 2008-04-11 Ben Elliston <bje@au.ibm.com>
17974
17975 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
17976
17977 2008-04-10 Rafael Espíndola <espindola@google.com>
17978
17979 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
17980 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
17981 (extract_range_from_expr): The same.
17982
17983 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
17984
17985 * config/mips/mips.md (GPR2): New mode iterator.
17986 (seq): Add comment.
17987 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
17988 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
17989 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
17990 Rewrite these to take two modes, the mode of comparison and the
17991 mode of the destination.
17992 * config/mips/mips.c (mips_expand_scc): Instead of having
17993 paradoxical subreg as destination, expand "narrowing" scc if mode
17994 of comparison is SI and target is requested in DI mode.
17995 (mips_emit_int_order_test): Update comment. Make mode of
17996 comparison match CMP0 rather than TARGET. When creating inverse
17997 target use mode of TARGET.
17998
17999 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
18000
18001 * gcov-dump.c (tag_summary): Only print summaries for the first
18002 GCOV_COUNTERS_SUMMABLE counters.
18003
18004 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
18005
18006 * config/i386/i386.md (absneg): New code iterator.
18007 (absnegprefix): New code attribute.
18008 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
18009 patterns using absneg code iterator.
18010 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
18011 using absneg code iterator.
18012 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
18013 *neg<mode>2 patterns using absneg code iterator.
18014 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
18015 *negextendsfdf2 patterns using absneg code iterator.
18016 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
18017 *negextendsfxf2 patterns using absneg code iterator.
18018 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
18019 *negextendsfdf2 patterns using absneg code iterator.
18020 * config/i386/sse.md (<code><mode>2): Macroize expander from
18021 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
18022
18023 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
18024
18025 * config/s390/s390.h: Remove the remains of the recent search
18026 & replace action of current_function_outgoing_args_size.
18027
18028 2008-04-10 Ira Rosen <irar@il.ibm.com>
18029
18030 PR tree-optimization/35821
18031 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
18032 NEW_STMT_LIST is not NULL.
18033
18034 2008-04-09 David Edelsohn <edelsohn@gnu.org>
18035
18036 PR libstdc++/35597
18037 * toplev.c (process_options): Remove -ffunction-sections debugging
18038 warning.
18039
18040 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
18041
18042 PR middle-end/PR28690
18043 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
18044 than gen_rtx_fmt_ee to perform more canonicalizations.
18045
18046 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18047
18048 PR driver/35665
18049 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
18050
18051 2008-04-09 Richard Guenther <rguenther@suse.de>
18052
18053 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
18054 (dump_function_to_file): Dump function arguments with types.
18055
18056 2008-04-08 Richard Guenther <rguenther@suse.de>
18057
18058 * fold-const.c (fold_widened_comparison): Do not allow
18059 sign-changes that change the result.
18060
18061 2008-04-08 Janis Johnson <janis187@us.ibm.com>
18062
18063 PR target/35839
18064 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
18065 kinds of indirect references.
18066
18067 2008-04-08 David Edelsohn <edelsohn@gnu.org>
18068
18069 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
18070 GNU Fortran language string.
18071
18072 2008-04-08 Rafael Espíndola <espindola@google.com>
18073
18074 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
18075 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
18076 * tree.h (tree_call_nonnegative_warnv_p): New.
18077
18078 2008-04-08 Jan Hubicka <jh@suse.cz>
18079
18080 * function.c (free_after_compilation): Clear out regno_reg_rtx
18081 pointer.
18082
18083 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
18084
18085 Revert
18086 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
18087
18088 PR middle-end/PR28690
18089 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
18090 same precedence as REG_POINTER and MEM_POINTER operands.
18091
18092 2008-04-08 Richard Guenther <rguenther@suse.de>
18093
18094 PR middle-end/35834
18095 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
18096 for adding index to base.
18097
18098 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
18099
18100 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
18101 (MINGW_ENABLE_EXECUTE_STACK): New.
18102 (IN_LIBGCC2): For libgcc include windows.h file for
18103 function declarations.
18104
18105 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
18106
18107 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
18108 and tem2 if tem1 is not a REG or MULT.
18109
18110 2008-04-08 Jan Hubicka <jh@suse.cz>
18111
18112 * function.h (incomming_args): Break out of struct function.
18113 (function_subsections): Break out of struct function.
18114 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
18115 return_rtx and hard_reg_initial_vals from struct function.
18116 Kill inl_max_label_num.
18117 (current_function_pops_args, current_function_args_info,
18118 current_function_args_size, current_function_args_size,
18119 current_function_pretend_args_size,
18120 current_function_outgoing_args_size,
18121 current_function_internal_arg_pointer, current_function_return_rtx):
18122 Kill compatibility accestor macros.
18123 * builtins.c (expand_builtin_apply_args_1): Update.
18124 (expand_builtin_next_arg): Update.
18125 * df-scan.c (df_get_call_refs): Update.
18126 * dbxout.c (dbxout_function_end): Update.
18127 * dwarf2out.c (dwarf2out_switch_text_section): Update.
18128 (output_line_info): Update.
18129 (secname_for_decl): Update.
18130 (dwarf2out_var_location): Update.
18131 * function.c (free_after_compilation): Update.
18132 (assign_parm_find_stack_rtl): Update.
18133 (assign_parms): Update.
18134 (expand_dummy_function_end): Update.
18135 (expand_function_end): Update.
18136 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
18137 (expand_call): Update.
18138 (emit_library_call_value_1): Update.
18139 (store_one_arg): Update.
18140 * varasm.c (initialize_cold_section_name): Update.
18141 (unlikely_text_section): Update.
18142 (unlikely_text_section_p): Update.
18143 (assemble_start_function): Update.
18144 (assemble_end_function): Update.
18145 (default_section_type_flags): Update.
18146 (switch_to_section): Update.
18147 * integrate.c (set_decl_abstract_flags): Update.
18148 (get_hard_reg_initial_val): Update.
18149 (has_hard_reg_initial_val): Update.
18150 (allocate_initial_values): Update.
18151 * resource.c (init_resource_info): Update.
18152 * config/alpha/alpha.c (NUM_ARGS): Update.
18153 (direct_return): Update.
18154 (alpha_va_start): Update.
18155 (alpha_sa_size): Update.
18156 (alpha_initial_elimination_offset): Update.
18157 (alpha_expand_prologue): Update.
18158 (alpha_start_function): Update.
18159 (alpha_expand_epilogue): Update.
18160 (unicosmk_initial_elimination_offset):
18161 * config/alpha/alpha.md (call expander): Update.
18162 * config/s390/s390.c (s390_register_info): Update.
18163 (s390_register_info): Update.
18164 (s390_frame_info): Update.
18165 (s390_initial_elimination_offset): Update.
18166 (s390_build_builtin_va_list): Update.
18167 (s390_va_start): Update.
18168 * config/spu/spu.c (direct_return): Update.
18169 (spu_expand_prologue): Update.
18170 (spu_initial_elimination_offset): Update.
18171 (spu_build_builtin_va_list): Update.
18172 (spu_va_start): Update.
18173 * config/sparc/sparc.c (sparc_init_modes): Update.
18174 (sparc_compute_frame_size): Update.
18175 (function_value): Update.
18176 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
18177 * config/i386/i386.md (return expander): Update.
18178 * config/i386/i386.c (ix86_va_start): Update.
18179 (ix86_can_use_return_insn_p): Update.
18180 (ix86_compute_frame_layout): Update.
18181 (ix86_expand_epilogue): Update.
18182 * config/sh/sh.c (output_stack_adjust): Update.
18183 (calc_live_regs): Update.
18184 (sh_expand_prologue): Update.
18185 (sh_builtin_saveregs): Update.
18186 (sh_va_start): Update.
18187 (initial_elimination_offset): Update.
18188 (sh_allocate_initial_value): Update.
18189 (sh_function_ok_for_sibcall): Update.
18190 (sh_get_pr_initial_val): Update.
18191 * config/sh/sh.md (return expander): Update.
18192 * config/avr/avr.c (frame_pointer_required_p): UPdate.
18193 * config/crx/crx.c (crx_compute_frame): UPdate.
18194 (crx_initial_elimination_offset): UPdate.
18195 * config/xtensa/xtensa.c (compute_frame_size): Update
18196 (xtensa_builtin_saveregs): Update.
18197 (xtensa_va_start): Update.
18198 (order_regs_for_local_alloc): Update.
18199 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
18200 (xstormy16_expand_builtin_va_start): Update.
18201 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
18202 * config/m68hc11/m68hc11.md (return expanders): Update.
18203 * config/m68hc11/m68hc11.c (expand_prologue): Update.
18204 (expand_epilogue): Update.
18205 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
18206 (cris_simple_epilogue): Update.
18207 (cris_expand_prologue): Update.
18208 (cris_expand_epilogue): Update.
18209 * config/iq2000/iq2000.c (iq2000_va_start): Update.
18210 (compute_frame_size): Update.
18211 * config/mt/mt.c (mt_compute_frame_size): Update.
18212 * config/mn10300/mn10300.c (expand_prologue): Update.
18213 (expand_epilogue): Update.
18214 (initial_offset): Update.
18215 (mn10300_builtin_saveregs):
18216 * config/mn10300/mn10300.md (return expander): Update.
18217 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
18218 (ia64_initial_elimination_offset): Update.
18219 (ia64_initial_elimination_offset): Update.
18220 (ia64_expand_prologue): Update.
18221 * config/m68k/m68k.md (return expander): Update.
18222 * config/rs6000/rs6000.c (rs6000_va_start): Update.
18223 (rs6000_stack_info): Update.
18224 * config/mcore/mcore.c (layout_mcore_frame): Update.
18225 (mcore_expand_prolog): Update.
18226 * config/arc/arc.c (arc_compute_frame_size): Update.
18227 * config/score/score3.c (score3_compute_frame_size): Update.
18228 * config/score/score7.c (score7_compute_frame_size): Update.
18229 * config/arm/arm.c (use_return_insn): Update.
18230 (thumb_find_work_register): Update.
18231 (arm_compute_save_reg_mask): Update.
18232 (arm_output_function_prologue): Update.
18233 (arm_output_epilogue): Update.
18234 (arm_size_return_regs): Update.
18235 (arm_get_frame_offsets): Update.
18236 (arm_expand_prologue): Update.
18237 (thumb_exit): Update.
18238 (thumb_unexpanded_epilogue): Update.
18239 (thumb1_output_function_prologue): Update.
18240 * config/pa/pa.md (return expander): Update.
18241 * config/pa/pa.c (compute_frame_size): Update.
18242 (hppa_builtin_saveregs): Update.
18243 * config/mips/mips.c (mips_va_start): Update.
18244 (mips16_build_function_stub): Update.
18245 (mips_compute_frame_info): Update.
18246 (mips_restore_gp): Update.
18247 (mips_output_function_prologue): Update.
18248 (mips_expand_prologue): Update.
18249 * config/v850/v850.c (compute_frame_size): Update.
18250 (expand_prologue): * config/mmix/mmix.c (along): update.
18251 (mmix_initial_elimination_offset): update.
18252 (mmix_reorg): update.
18253 (mmix_use_simple_return): update.
18254 (mmix_expand_prologue): update.
18255 (mmix_expand_epilogue): Update.
18256 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
18257 (emit_link_insn): Update.
18258
18259 2008-04-08 Anatoly Sokolov <aesok@post.ru>
18260
18261 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
18262 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
18263 instructions.
18264 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
18265 atmega103 device.
18266
18267 2008-04-07 Jan Hubicka <jh@suse.cz>
18268
18269 * function.h (rtl): Rename to x_rtl.
18270 (crtl): New define.
18271 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
18272 frame_offset, stack_check_probe_note, arg_pointer_save_area,
18273 used_temp_slots avail_temp_slots, temp_slot_level,
18274 nonlocal_goto_handler_labels): Update accesstors.
18275 (rtl): New global variable.
18276 (struct function): Move some fileds to rtl_data.
18277 (get_arg_pointer_save_area): Update prototype.
18278 * builtins.c (expand_builtin_setjmp_receiver): Update call of
18279 get_arg_pointer_save_area.
18280 * expr.c (init_expr): Update
18281 * function.c (get_frame_size): Update
18282 (assign_stack_local): Update
18283 (expand_function_end): Update.
18284 (get_art_pointer_save_area): Update
18285 * function.h
18286 * emit-rtl.c (rtl): Declare.
18287 (regno_reg_rtx): Declare.
18288 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
18289 Update.
18290 (gen_reg_rtx): Update.
18291 * varasm.c (n_deferred_constatns): Update accestor.
18292 (init_varasm_status): Do not allocate varasm_status.
18293 (force_const_mem, get_pool_size, output_constant_pool): Update.
18294 * stmt.c (force_label_rtx): Do not use x_ prefixes.
18295 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
18296 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
18297 * sparc/sparc.h (INIT_EXPANDERS): Update.
18298 * ia64/ia64.h (INIT_EXPANDERS): Update.
18299
18300 2008-04-07 James E. Wilson <wilson@tuliptree.org>
18301
18302 * reload.c (push_secondary_reload): Add missing break to for loop.
18303
18304 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
18305
18306 PR middle-end/PR28690
18307 * rtlanal.c: Update copyright years.
18308 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
18309 as REG_POINTER and MEM_POINTER operands.
18310 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
18311 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
18312 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
18313 * gcse.c: Update copyright years.
18314 (pre_delete): Call gen_reg_rtx_and_attrs.
18315 (hoist_code): Likewise.
18316 (build_store_vectors): Likewise.
18317 (delete_store): Likewise.
18318 * loop-invariant.c (move_invariant_reg): Likewise.
18319 Update copyright years.
18320
18321 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
18322
18323 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
18324 control string instead of quoted.
18325
18326 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
18327
18328 * doc/rtl.texi: Rewrite of subreg section.
18329
18330 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
18331
18332 PR/35842
18333 * config/i386/i386.c (legitimize_pic_address): Add treating
18334 of dllimport SYM_REF's.
18335 (legitimize_dllimport_symbol): Add prototype.
18336
18337 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
18338
18339 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
18340 reference in constructor with non self-referential type.
18341
18342 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
18343
18344 Removal of Return with Depressed Stack Pointer support
18345 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
18346 (ECF_SP_DEPRESSED): Likewise.
18347 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
18348 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
18349 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
18350 (expand_call): Do not test ECF_SP_DEPRESSED.
18351 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
18352 * function.c (keep_stack_depressed): Delete.
18353 (handle_epilogue_set): Likewise.
18354 (update_epilogue_consts): Likewise.
18355 (emit_equiv_load): Likewise.
18356 (thread_prologue_and_epilogue_insns): Remove support for Return with
18357 Depressed Stack Pointer.
18358 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
18359
18360 2008-04-06 Richard Guenther <rguenther@suse.de>
18361
18362 PR tree-optimization/35400
18363 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
18364 information from SSA_NAMEs.
18365
18366 2008-04-06 Anatoly Sokolov <aesok@post.ru>
18367
18368 * config/avr/avr.h (avr_mega_p): Remove declaration.
18369 (AVR_MEGA): Remove macro.
18370 * config/avr/avr.c (avr_mega_p): Remove variable.
18371 (avr_override_options): Remove inicializion of avr_mega_p.
18372 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
18373 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
18374 (avr_jump_mode): (Ditto.).
18375 (avr_output_progmem_section_asm_op): (Ditto.).
18376 (avr_asm_init_sections): (Ditto.).
18377 (avr_asm_init_sections): (Ditto.).
18378 (avr_rtx_costs): (Ditto.).
18379 * config/avr/avr.md: (Ditto.).
18380 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
18381 '__AVR_MEGA__'.
18382
18383 2008-04-06 Richard Guenther <rguenther@suse.de>
18384
18385 PR tree-optimization/35842
18386 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
18387 is_gimple_invariant_address.
18388
18389 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18390
18391 * gcc.c (default_compilers): Sync Fortran extensions list with
18392 that in fortran/lang-specs.h.
18393 * doc/invoke.texi: Likewise.
18394 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
18395 * dwarf2out.c (gen_compile_unit_die): Likewise.
18396
18397 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
18398
18399 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
18400
18401 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
18402
18403 PR target/12329
18404 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
18405 attribute is used for nested functions.
18406
18407 2008-04-05 Jan Hubicka <jh@suse.cz>
18408
18409 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
18410
18411 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
18412 letter argument.
18413 (dump_files): Update.
18414 (enable_rtl_dump_file): Do not accept letter argument.
18415 * tree-pass.h (dump_file_info): Remove letter argument.
18416 * toplev.c (decode_d_option): Update -da handling.
18417 * toplev.h (enable_rtl_dump_file): Update prototype.
18418 * passes.c (register_one_dump_file): Do not accept IPA argument; work
18419 it out based on pass type.
18420 (register_dump_files_1): Likewise.
18421 (init_optimization_passes): Update register_one_dump_file calls.
18422 (execute_one_pass): Sanity check that IPA passes are called at IPA
18423 level and RTL passes at RTL level.
18424 (execute_pass_list): IPA pass can not be after or subpass of
18425 GIMPLE/RTL pass.
18426 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
18427 disallov RTL subpasses of IPA subpasses.
18428
18429 2008-04-05 Ben Elliston <bje@au.ibm.com>
18430
18431 * tree-cfg.c (need_fake_edge_p): Return false for calls to
18432 builtins that return exactly once and do not throw. Cache call to
18433 call_expr_flags.
18434
18435 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
18436
18437 PR rtl-optimization/34916
18438 PR middle-end/35519
18439 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
18440 between instruction pairs.
18441
18442 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
18443
18444 * doc/invoke.texi: Document -mbitops for SH.
18445 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
18446 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
18447 * config/sh/sh.c (print_operand): Add %t operand code.
18448 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
18449 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
18450 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
18451 (extendqihi2): Likewise.
18452 (movqi_i): Likewise.
18453 (insv): Use bset, bclr and bst instructions for SH2A if possible.
18454 (extv): Use bld instruction for SH2A if possible.
18455 (extzv): Likewise.
18456 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
18457 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
18458 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
18459 (bset.b, bclr.b): Define peepholes.
18460 * config/sh/sh.opt (mbitops): New option.
18461
18462 2008-04-04 Janis Johnson <janis187@us.ibm.com>
18463
18464 PR target/35620
18465 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
18466 and view convert expression.
18467
18468 2008-04-04 Jakub Jelinek <jakub@redhat.com>
18469
18470 PR target/35364
18471 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
18472
18473 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
18474
18475 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
18476
18477 * config/i386/cpuid.h (bit_AES): New.
18478 (bit_PCLMUL): Likewise.
18479
18480 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
18481 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
18482 SSE2 if AES or PCLMUL is enabled.
18483 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
18484 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
18485 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
18486 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
18487 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
18488 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
18489 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
18490 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
18491 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
18492 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
18493 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
18494 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
18495 __builtin_ia32_aeskeygenassist128 and
18496 __builtin_ia32_pclmulqdq128.
18497 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
18498 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
18499 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
18500
18501 * config/i386/i386.h (TARGET_AES): New.
18502 (TARGET_PCLMUL): Likewise.
18503 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
18504
18505 * config/i386/i386.md (UNSPEC_AESENC): New.
18506 (UNSPEC_AESENCLAST): Likewise.
18507 (UNSPEC_AESDEC): Likewise.
18508 (UNSPEC_AESDECLAST): Likewise.
18509 (UNSPEC_AESIMC): Likewise.
18510 (UNSPEC_AESKEYGENASSIST): Likewise.
18511 (UNSPEC_PCLMUL): Likewise.
18512
18513 * config/i386/i386.opt (maes): New.
18514 (mpclmul): Likewise.
18515
18516 * config/i386/sse.md (aesenc): New pattern.
18517 (aesenclast): Likewise.
18518 (aesdec): Likewise.
18519 (aesdeclast): Likewise.
18520 (aesimc): Likewise.
18521 (aeskeygenassist): Likewise.
18522 (pclmulqdq): Likewise.
18523
18524 * config/i386/wmmintrin.h: New.
18525
18526 * doc/extend.texi: Document AES and PCLMUL built-in function.
18527
18528 * doc/invoke.texi: Document -maes and -mpclmul.
18529
18530 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
18531
18532 * function.c (free_after_parsing): Replace with
18533 cxx_push_function_context from C++ front-end.
18534 (allocate_struct_function): Don't call langhook.
18535 * langhooks.h (struct lang_hooks_for_functions): Delete.
18536 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
18537 member "function".
18538 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
18539 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
18540 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
18541 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
18542 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
18543 remove LANG_HOOKS_FUNCTION_INITIALIZER.
18544 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
18545
18546 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
18547 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
18548
18549 2008-04-04 Jakub Jelinek <jakub@redhat.com>
18550
18551 PR c/35440
18552 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
18553 for all types.
18554
18555 2008-04-04 Richard Guenther <rguenther@suse.de>
18556
18557 PR middle-end/35823
18558 * fold-const.c (optimize_minmax_comparison): Use the correct
18559 type for the constant in the simplified comparison.
18560
18561 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
18562
18563 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
18564 Pass L2 size as "--param l2-cache-size" to the compiler.
18565 (decode_l2_cache): New function to decode L2 cache parameters using
18566 0x8000006 extended cpuid function.
18567 (detect_caches_amd): Determine parameters of L2 cache using
18568 decode_l2_caches function.
18569 (decode_caches_intel): Decode L2 cache parameters.
18570 (detect_caches_intel): Determine L2 cache parameters using
18571 decode_caches_intel and decode_l2_caches functions.
18572
18573 2008-04-03 Bob Wilson <bob.wilson@acm.org>
18574
18575 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
18576 secondary input reload for subword loads from the constant pool.
18577
18578 2008-04-03 Janis Johnson <janis187@us.ibm.com>
18579
18580 PR target/35713
18581 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
18582 constants of the appropriate size for runtime calculations.
18583
18584 PR c/35712
18585 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
18586 decimal-float literal constant zero.
18587
18588 2008-04-03 Jakub Jelinek <jakub@redhat.com>
18589
18590 PR c/35738
18591 * c-parser.c (c_parser_omp_atomic): Call
18592 default_function_array_conversion on the RHS.
18593
18594 PR middle-end/35818
18595 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
18596 call is_variable_sized if decl has incomplete type.
18597
18598 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
18599
18600 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
18601
18602 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
18603
18604 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
18605 iterators.
18606 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
18607 (sgt<u>): Merge sgt and sgtu into new expander.
18608 (sgt, sgtu): Remove expanders.
18609 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
18610 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
18611 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
18612 *sgtu_<mode>_mips16 into new pattern.
18613 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
18614 (sge<u>): Merge sge and sgeu into new expander.
18615 (sge, sgeu): Remove expanders.
18616 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
18617 new pattern.
18618 (*sge_<mode>, second *sge_<mode>): Remove patterns.
18619 (slt<u>): Merge slt and sltu into new expander.
18620 (slt, sltu): Remove expanders.
18621 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
18622 (*slt_<mode>, *sltu_<mode>): Remove patterns.
18623 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
18624 *sltu_<mode>_mips16 into new pattern.
18625 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
18626 (sle<u>): Merge sle and sleu into new expander.
18627 (sle, sleu): Remove expanders.
18628 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
18629 (*sle_<mode>, *sleu_<mode>): Remove patterns.
18630 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
18631 *sleu_<mode>_mips16 into new pattern.
18632 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
18633
18634 2008-04-03 Jan Hubicka <jh@suse.cz>
18635
18636 PR tree-optimization/35795
18637 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
18638 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
18639 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
18640 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
18641 * score/score3.c (score3_output_mi_thunk): Likewise.
18642 * score/score7.c (score7_output_mi_thunk): Likewise.
18643 * mips/mips.c (mips_output_mi_thunk): Likewise.
18644
18645 2008-04-03 Richard Guenther <rguenther@suse.de>
18646
18647 * tree-vrp.c (extract_range_from_unary_expr): Handle all
18648 conversions. Simplify code.
18649
18650 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
18651
18652 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
18653
18654 2008-04-03 Tom Tromey <tromey@redhat.com>
18655 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18656
18657 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
18658 * config/bfin/t-bfin-linux (generated_files): Add
18659 linux-sysroot-suffix.h.
18660 * doc/install.texi (Prerequisites): Require make 3.80.
18661 * doc/sourcebuild.texi (Front End Directory): Document new
18662 variable.
18663 * Makefile.in (generated_files): New variable.
18664 (ALL_HOST_OBJS): New variable.
18665 ($(ALL_HOST_OBJS)): New target.
18666
18667 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
18668
18669 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
18670 (remap_block): Call id->transform_lang_insert_block instead
18671 of langhook.
18672 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
18673 Set id.transform_lang_insert_block to NULL.
18674 (clone_body): Move to cp/optimize.c
18675 * tree-inline.h (struct copy_body_data): Change
18676 transform_lang_insert_block to function pointer.
18677 (copy_generic_body, copy_decl_no_change): Export.
18678 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
18679 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
18680 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
18681
18682 * c-tree.h (insert_block): Kill.
18683 * c-decl.c (insert_block): Kill.
18684
18685 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
18686
18687 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
18688 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
18689 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
18690 argument.
18691 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
18692 argument, call {push,pop}_function_context from here.
18693 * c-parser.c: Use c_{push,pop}_function_context.
18694
18695 * function.c (push_function_context_to): Move meat ...
18696 (push_function_context): ... here. Simplify.
18697 * function.c (pop_function_context_from): Move meat ...
18698 (pop_function_context): ... here. Simplify.
18699 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
18700 leave_nested).
18701 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
18702 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
18703 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
18704 * tree.h (push_function_context_to, pop_function_context_from): Remove.
18705
18706 2008-04-03 Ben Elliston <bje@au.ibm.com>
18707
18708 * expmed.c (extract_force_align_mem_bit_field): Remove.
18709
18710 2008-04-03 Richard Guenther <rguenther@suse.de>
18711
18712 PR middle-end/35800
18713 * expr.h (try_casesi): Adjust prototype.
18714 * expr.c (try_casesi): Take fallback label as extra parameter.
18715 Use that for gen_casesi if default_label is NULL.
18716 * stmt.c (expand_case): Pass fallback label to try_casesi,
18717 make sure to fill gaps with a fallback label if default_label
18718 is not present.
18719
18720 2008-04-03 Dominique d'Humières <dominiq@lps.ens.fr>
18721
18722 PR target/35801
18723 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
18724
18725 2008-04-03 Ben Elliston <bje@au.ibm.com>
18726
18727 * expmed.c (extract_split_bit_field): Remove if (0) code.
18728 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
18729 (do_ds_constraint): Likewise.
18730
18731 2008-04-02 Joseph Myers <joseph@codesourcery.com>
18732
18733 * doc/cppopts.texi (-dU): Document.
18734 * c-common.h (flag_dump_macros): Update comment.
18735 * c-opts.c (handle_OPT_d): Handle -dU.
18736 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
18737 dump_queued_macros, cb_used_define, cb_used_undef): New.
18738 (init_pp_output): Handle -dU.
18739 (cb_line_change): Call dump_queued_macros.
18740 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
18741
18742 2008-04-02 Anatoly Sokolov <aesok@post.ru>
18743
18744 * config/avr/predicates.md (io_address_operand): New predicate.
18745 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
18746 * config/avr/avr.c (avr_io_address_p): Remove function.
18747 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
18748 'avr_io_address_p' function.
18749 (out_movhi_r_mr): (Ditto.).
18750 (out_movqi_mr_r): (Ditto.).
18751 (out_movhi_mr_r): (Ditto.).
18752 (avr_address_cost): (Ditto.).
18753
18754 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
18755
18756 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
18757 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
18758 in 32bit mode when XMM registers are available to avoid store
18759 forwarding stalls.
18760 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
18761 corresponding post-reload splitters.
18762
18763 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
18764
18765 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
18766 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
18767 __builtin_ia32_roundss.
18768 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
18769 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
18770 __builtin_ia32_roundss.
18771 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
18772 IX86_BUILTIN_SHUFPD here.
18773
18774 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
18775
18776 * config/i386/i386.md (plogic): New.
18777 (plogicprefix): Likewise.
18778
18779 * config/i386/mmx.md (mmx_<code><mode>3): New.
18780 (mmx_and<mode>3): Removed.
18781 (mmx_ior<mode>3): Likewise.
18782 (mmx_xor<mode>3): Likewise.
18783
18784 * config/i386/sse.md (<code><mode>3): New.
18785 (*<code><mode>3): Likewise.
18786 (*<code><mode>3): Likewise.
18787 (<code><mode>3): Likewise.
18788 (*sse_<code><mode>3): Likewise.
18789 (*sse2_<code><mode>3): Likewise.
18790 (<code>tf3): Likewise.
18791 (*<code>tf3): Likewise.
18792 (and<mode>3): Likewise.
18793 (*and<mode>3): Likewise.
18794 (ior<mode>3): Removed.
18795 (*ior<mode>3): Likewise.
18796 (xor<mode>3): Likewise.
18797 (*xor<mode>3): Likewise.
18798 (*and<mode>3): Likewise.
18799 (*ior<mode>3): Likewise.
18800 (*xor<mode>3): Likewise.
18801 (and<mode>3): Likewise.
18802 (*sse_and<mode>3): Likewise.
18803 (*sse2_and<mode>3): Likewise.
18804 (andtf3): Likewise.
18805 (*andtf3): Likewise.
18806 (ior<mode>3): Likewise.
18807 (*sse_ior<mode>3): Likewise.
18808 (*sse2_ior<mode>3): Likewise.
18809 (iortf3): Likewise.
18810 (*iortf3): Likewise.
18811 (xor<mode>3): Likewise.
18812 (*sse_xor<mode>3): Likewise.
18813 (*sse2_xor<mode>3): Likewise.
18814 (xortf3): Likewise.
18815 (*xortf3): Likewise.
18816
18817 2008-04-02 Richard Guenther <rguenther@suse.de>
18818
18819 PR tree-optimization/14495
18820 PR tree-optimization/34793
18821 * tree-vrp.c (struct switch_update): New structure.
18822 (to_remove_edges, to_update_switch_stmts): New VECs.
18823 (simplify_switch_using_ranges): New function. Remove not taken
18824 case labels and edges.
18825 (simplify_stmt_using_ranges): Call it.
18826 (identify_jump_threads): Mark edges we have queued for removal
18827 so we don't thread them.
18828 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
18829 case label vector.
18830 * tree-cfg.c (group_case_labels): Deal with missing default label.
18831 (tree_verify_flow_info): Allow missing default label.
18832 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
18833 (emit_case_nodes): Likewise.
18834 (expand_case): Do not rely on the default label to be present.
18835 * expr.c (try_casesi): Deal with NULL default_label.
18836 (do_tablejump): Likewise.
18837
18838 2008-04-02 Richard Guenther <rguenther@suse.de>
18839
18840 PR tree-optimization/14495
18841 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
18842 SWITCH_EXPR here ...
18843 (vrp_visit_switch_stmt): ... but here (new function).
18844 (find_case_label_index): New helper function.
18845 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
18846
18847 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
18848
18849 * fwprop.c: Fix ISO-C99ism.
18850
18851 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
18852
18853 PR bootstrap/35752
18854 * Makefile.in (objdir): Set it here.
18855 * configure.ac: Not here. Find dynamic linker characteristics.
18856 * exec-tool.in: Use them.
18857 * aclocal.m4: Regenerate.
18858 * configure: Regenerate.
18859
18860 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
18861
18862 * expr.c (expand_var): Delete it.
18863 * expr.h (expand_var): Delete prototype.
18864 * function.c (expand_function_start): Use expand_decl instead.
18865 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
18866 langhook.
18867
18868 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
18869
18870 PR rtl-optimization/35542
18871 * fwprop.c (forward_propagate_and_simplify): Replace
18872 loc_reg_mentioned_in_p with reg_mentioned_p.
18873
18874 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
18875
18876 PR rtl-optimization/35281
18877 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
18878 (propagate_rtx_1): Handle PR_HANDLE_MEM.
18879 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
18880 (varying_mem_p): Move above propagate_rtx.
18881 (all_uses_available_at): Do not check MEMs.
18882
18883 2008-04-02 Rafael Espíndola <espindola@google.com>
18884
18885 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
18886 (register_edge_assert_for_2): Split the cond argument.
18887 (register_edge_assert_for_1): Adjust for the change in
18888 register_edge_assert_for_2.
18889 (register_edge_assert_for): Split the cond argument.
18890 (find_switch_asserts): Adjust for the change in
18891 register_edge_assert_for.
18892
18893 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
18894
18895 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
18896 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
18897 offsets for 64-bit mingw.
18898 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
18899 abi for x86_64-pc-mingw.
18900
18901 2008-04-02 Richard Guenther <rguenther@suse.de>
18902
18903 * tree-vrp.c (extract_range_from_assert): Make sure to not
18904 produce range min/max with TREE_OVERFOW set.
18905 If merging a anti-range and a range keep the anti-range if
18906 the range covers all values of the type.
18907 (register_edge_assert_for_2): Only allow sign-changing
18908 conversions in detecting canonical range checks. Also
18909 register an assert for the unsigned name if useful.
18910
18911 PR tree-optimization/35787
18912 * tree-vrp.c (vrp_val_max): New function.
18913 (vrp_val_min): Likewise.
18914 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
18915 (vrp_val_is_min): Likewise.
18916 (supports_overflow_infinity): Use vrp_val_{min,max}.
18917 (negative_overflow_infinity): Likewise.
18918 (positive_overflow_infinity): Likewise.
18919 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
18920 (is_positive_overflow_infinity): Likewise.
18921 (is_overflow_infinity): Likewise.
18922 (avoid_overflow_infinity): Use vrp_val_{min,max} and
18923 vrp_val_is_{min,max}.
18924 (set_and_canonicalize_value_range): Canonicalize anti-ranges
18925 to ranges if possible. Avoid empty ranges.
18926
18927 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18928
18929 PR middle-end/35705
18930 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
18931 the expression is a function address.
18932
18933 2008-04-01 George Helffrich <george@gcc.gnu.org>
18934
18935 PR fortran/35154, fortran/23057
18936 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
18937 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
18938 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
18939 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
18940 in common.
18941 (dbxout_syms): Check for COMMON-based symbol and wrap in
18942 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
18943 in bracket for efficiency.
18944
18945 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
18946 using DW_TAG_common_block + member offset.
18947 (add_pubname_string): New function.
18948 (dw_expand_expr): New function to find block name and offset for
18949 COMMON var.
18950 (common_check): New function to check whether symbol in Fortran COMMON.
18951 (gen_variable_die): If COMMON, use DW_TAG_common_block.
18952
18953 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
18954
18955 PR c/35436
18956 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
18957
18958 2008-04-02 Ben Elliston <bje@au.ibm.com>
18959
18960 * config/v850/v850.md (casesi): Remove if (0) code.
18961 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
18962 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
18963
18964 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
18965
18966 * config/i386/i386.md (rex64suffix): New mode attribute.
18967 (floathi<mode>2): Disable expander for SSE math.
18968 (*floathi<mode>2_1): New insn insn_and_split pattern.
18969 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
18970 corresponding post-reload splitters.
18971 (*floathi<mode>2_i387): New macroized insn pattern.
18972 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
18973 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
18974 insn_and_split pattern.
18975 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
18976 New macroized instruction patterns and corresponding post-reload
18977 splitters.
18978 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
18979 and corresponding post-reload splitters.
18980 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
18981 New macroized instruction patterns.
18982 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
18983 macroized instruction patterns and corresponding post-reload splitters.
18984 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
18985 corresponding post-reload splitters.
18986 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
18987 New macroized instruction patterns.
18988 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
18989 corresponding post-reload splitters.
18990 (*floatsi<mode>2_i387): New macroized instruction patterns.
18991
18992 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
18993
18994 * config/i386/i386.md (smaxmin): New.
18995 (umaxmin): Likewise.
18996 (maxminiprefix): Likewise.
18997 (maxminfprefix): Likewise.
18998 (<code><mode>3): Likewise.
18999 (smin<mode>3): Removed.
19000 (smax<mode>3): Likewise.
19001
19002 * config/i386/mmx.md (mmx_<code>v2sf3): New.
19003 (mmx_<code>v4hi3): Likewise.
19004 (mmx_<code>v8qi3): Likewise.
19005 (mmx_smaxv2sf3): Removed.
19006 (mmx_sminv2sf3): Likewise.
19007 (mmx_umaxv8qi3): Likewise.
19008 (mmx_smaxv4hi3): Likewise.
19009 (mmx_uminv8qi3): Likewise.
19010 (mmx_sminv4hi3): Likewise.
19011
19012 * config/i386/sse.md (<addsub><mode>3): New.
19013 (*<addsub><mode>3): Likewise.
19014 (<sse>_vm<addsub><mode>3): Likewise.
19015 (<maxmin><mode>3): Likewise.
19016 (*<maxmin><mode>3_finite): Likewise.
19017 (*<maxmin><mode>3): Likewise.
19018 (<sse>_vm<maxmin><mode>3): Likewise.
19019 (sse3_h<addsub>v4sf3): Likewise.
19020 (sse3_h<addsub>v2df3): Likewise.
19021 (<maxmin>v16qi3): Likewise.
19022 (*<maxmin>v16qi3): Likewise.
19023 (<maxmin>v8hi3): Likewise.
19024 (*<maxmin>v8hi3): Likewise.
19025 (*sse4_1_<maxmin><mode>3): Likewise.
19026 (*sse4_1_<maxmin><mode>3): Likewise.
19027 (add<mode>3): Removed.
19028 (*add<mode>3): Likewise.
19029 (<sse>_vmadd<mode>3): Likewise.
19030 (sub<mode>3): Likewise.
19031 (*sub<mode>3): Likewise.
19032 (<sse>_vmsub<mode>3): Likewise.
19033 (smin<mode>3): Likewise.
19034 (*smin<mode>3_finite): Likewise.
19035 (*smin<mode>3): Likewise.
19036 (<sse>_vmsmin<mode>3): Likewise.
19037 (smax<mode>3): Likewise.
19038 (*smax<mode>3_finite): Likewise.
19039 (*smax<mode>3): Likewise.
19040 (<sse>_vmsmax<mode>3): Likewise.
19041 (sse3_haddv4sf3): Likewise.
19042 (sse3_haddv2df3): Likewise.
19043 (sse3_hsubv4sf3): Likewise.
19044 (sse3_hsubv2df3): Likewise.
19045 (umaxv16qi3): Likewise.
19046 (*umaxv16qi3): Likewise.
19047 (smaxv8hi3): Likewise.
19048 (*smaxv8hi3): Likewise.
19049 (*sse4_1_smax<mode>3): Likewise.
19050 (*sse4_1_umax<mode>3): Likewise.
19051 (uminv16qi3): Likewise.
19052 (*uminv16qi3): Likewise.
19053 (sminv8hi3): Likewise.
19054 (*sminv8hi3): Likewise.
19055 (*sse4_1_smin<mode>3): Likewise.
19056 (*sse4_1_umin<mode>3): Likewise.
19057
19058 2008-04-01 Rafael Espíndola <espindola@google.com>
19059
19060 * tree-cfg.c (verify_expr): remove in_phi.
19061 (verify_stmt): Don't call walk_tree with verify_expr. Use
19062 is_gimple_min_invariant instead of is_gimple_val.
19063
19064 2008-04-01 Joseph Myers <joseph@codesourcery.com>
19065
19066 * doc/include/gpl_v3.texi: Update for manpage generation.
19067 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
19068 gpl.texi.
19069 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
19070 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
19071 gpl_v3.texi instead of gpl.texi.
19072 (gpl.pod): New.
19073
19074 2008-04-01 Jakub Jelinek <jakub@redhat.com>
19075
19076 PR pch/13675
19077 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
19078
19079 2008-04-01 Rafael Espíndola <espindola@google.com>
19080
19081 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
19082 (extract_code_and_val_from_cond): Use
19083 extract_code_and_val_from_cond_with_ops.
19084
19085 2008-04-01 Jan Hubicka <jh@suse.cz>
19086
19087 * function.c (free_after_compilation): Free epilogue_delay_list.
19088 (prepare_function_start): Assert that previous compilation was freed.
19089
19090 2008-04-01 Jan Hubicka <jh@suse.cz>
19091 Jim Wilson <wilson@tuliptree.org>
19092 Andreas Tobler <andreast@gcc.gnu.org>
19093
19094 PR middle-end/35781
19095 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
19096 rtl.emit instead cfun->emit.
19097 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
19098 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
19099
19100 2008-04-01 Ben Elliston <bje@au.ibm.com>
19101
19102 * doc/c-tree.texi (Function Basics): Fix grammatical error.
19103
19104 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
19105
19106 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
19107 New options
19108 (fprofile-use): Add var flag_profile_use
19109 * coverage.c (coverage_begin_output): Do not open a gcno file for
19110 output only if -ftest-coverage is set.
19111 Do not add getpwd() to gcda file path.
19112 (build_gcov_info): Check the new flag
19113 flag_profile_datafile_relative_path.
19114 (coverage_init): Use profile_data_prefix.
19115 Read profile counter only if flag_profile_use is set.
19116 * opts.c (common_handle_option): New option fprofile-use=,
19117 fprofile-dir=, fprofile-generate=.
19118 * toplev.c (profile_data_prefix): New variable definition.
19119 * toplev.h (profile_data_prefix): New declaration.
19120 * doc/invoke.tex (Option Summary, Optimization Options):
19121 Add new options.
19122
19123 2008-03-31 James E. Wilson <wilson@tuliptree.org>
19124
19125 * varasm.c (output_constant_pool_1): In LABEL_REF check,
19126 use tmp consistently.
19127
19128 PR target/35695
19129 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
19130 * config/ia64/ia64.c (rtx_needs_barrier): Handle
19131 UNSPEC_FR_RECIP_APPROX_RES.
19132 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
19133
19134 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
19135
19136 PR c/35750
19137 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
19138
19139 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
19140
19141 PR middle-end/30186
19142 * fold-const.c (fold_indirect_ref_1): Support accessing non first
19143 element of the vector via a pointer.
19144
19145 2008-03-31 Ian Lance Taylor <iant@google.com>
19146
19147 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
19148
19149 2008-03-31 Jan Hubicka <jh@suse.cz>
19150
19151 * builtins.c (expand_builtin_setjmp_receiver): Update call of
19152 get_arg_pointer_save_area.
19153 * expr.c (init_expr): Just clear out rtl.expr.
19154 * function.c (free_after_compilation): Clear out whole RTL structure.
19155 (get_func_frame_size): Merge into ...
19156 (get_frame_size): ... this one.
19157 (assign_stack_local_1): Merge into ...
19158 (assign_stack_local): ... this one.
19159 (expand_function_end): Update call of get_arg_pointer_save_area.
19160 (get_art_pointer_save_area): Remove cfun argument.
19161 * function.h (emit_status): regno_pointer_align does not need length
19162 attribute. Move x_regno_reg_rtx to ...
19163 (regno_reg_rtx): ... new global array.
19164 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
19165 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
19166 apply_args_value, forced_labels, stack_pointer_delta):
19167 Update accestors.
19168 (struct varasm_status): Move here from varasm.c
19169 (struct rtl_data): New. Move here some fields from struct function.
19170 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
19171 frame_offset, stack_check_probe_note, arg_pointer_save_area,
19172 used_temp_slots avail_temp_slots, temp_slot_level,
19173 nonlocal_goto_handler_labels): Update accesstors.
19174 (rtl): New global variable.
19175 (struct function): Move some fileds to rtl_data.
19176 (get_arg_pointer_save_area): Update prototype.
19177 * emit-rtl.c (rtl): Declare.
19178 (regno_reg_rtx): Declare.
19179 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
19180 Update.
19181 (gen_reg_rtx): Update.
19182 (init_virtual_regs): Do not tate emit_status argument.
19183 (init_emit): Do not allocate emit.
19184 * varasm.c (varasm_statuc): Move to function.h.
19185 (n_deferred_constatns): Update accestor.
19186 (init_varasm_status): Do not allocate varasm_status.
19187 (force_const_mem, get_pool_size, output_constant_pool): Update.
19188 * stmt.c (force_label_rtx): Do not use x_ prefixes.
19189 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
19190
19191 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
19192
19193 PR rtl-optimization/35729
19194 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
19195 references.
19196
19197 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
19198
19199 PR target/32000
19200 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
19201 load/store if memory is unaligned.
19202 (*movti_rex64): Likewise.
19203
19204 * config/i386/predicates.md (misaligned_operand): New.
19205
19206 2008-03-31 Andrew Pinski <pinskia@gmail.com>
19207
19208 PR tree-opt/35431
19209 * tree-ssa-phiopt.c (conditional_replacement): Return early for
19210 complex types.
19211
19212 2008-03-31 Jan Beulich <jbeulich@novell.com>
19213
19214 * config/ia64/constraints.md: Add 'j' constraint.
19215 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
19216 (movdi_internal): Likewise.
19217
19218 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
19219
19220 PR c/35748
19221 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
19222
19223 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
19224
19225 PR target/35757
19226 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
19227 proper error message for the third argument on blendpd and
19228 blendps.
19229
19230 * config/i386/sse.md (blendbits): New.
19231 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
19232
19233 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
19234
19235 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
19236
19237 2008-03-30 Richard Guenther <rguenther@suse.de>
19238
19239 PR middle-end/31023
19240 * fold-const.c (fold_sign_changed_comparison): Do leave
19241 conversions to base-types alone.
19242
19243 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
19244
19245 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
19246 the link register if one altivec register is be saved.
19247
19248 2008-03-30 Ben Elliston <bje@au.ibm.com>
19249
19250 * final.c (final_scan_insn): Remove if (0) code.
19251
19252 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
19253
19254 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
19255
19256 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
19257
19258 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
19259 of V4SFmode to ix86_binary_operator_ok.
19260
19261 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
19262
19263 * config/i386/i386.c (override_options): Initialize
19264 ix86_veclib_handler to ix86_veclibabi_svml when
19265 -mveclibabi=svml is used.
19266 (ix86_veclibabi_svml): New function for SVML ABI style
19267 vectorization support.
19268 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
19269
19270 2008-03-28 Rafael Espíndola <espindola@google.com>
19271
19272 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
19273 (tree_binary_nonnegative_warnv_p): Make it public.
19274 (tree_single_nonnegative_warnv_p): Make it public.
19275 (tree_invalid_nonnegative_warnv_p): Make it public.
19276 (tree_unary_nonzero_warnv_p): Make it public.
19277 (tree_binary_nonzero_warnv_p): Make it public
19278 (tree_single_nonzero_warnv_p): Make it public.
19279 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
19280 (extract_range_from_binary_expr): Split the expr argument.
19281 (extract_range_from_unary_expr): Split the expr argument.
19282 (extract_range_from_comparison): Split the expr argument.
19283 (extract_range_from_expr): Use the new aux functions.
19284 (vrp_evaluate_conditional_warnv): Use
19285 vrp_evaluate_conditional_warnv_with_ops.
19286 * tree.h (tree_unary_nonzero_warnv_p): Declare.
19287 (tree_binary_nonzero_warnv_p): Declare.
19288 (tree_single_nonzero_warnv_p): Declare.
19289 (tree_expr_nonzero_warnv_p): Declare.
19290 (tree_unary_nonnegative_warnv_p): Declare.
19291 (tree_binary_nonnegative_warnv_p): Declare.
19292 (tree_single_nonnegative_warnv_p): Declare.
19293 (tree_invalid_nonnegative_warnv_p): Declare.
19294
19295 2008-03-28 Richard Guenther <rguenther@suse.de>
19296
19297 PR tree-optimization/30317
19298 PR tree-optimization/30911
19299 PR tree-optimization/34793
19300 * tree-vrp.c (set_and_canonicalize_value_range): New function.
19301 (struct assert_locus_d): New member EXPR.
19302 (register_new_assert_for): Add EXPR parameter to support
19303 ASSERT_EXPR <name, expr OP limit>.
19304 (register_edge_assert_for_1): Adjust callers.
19305 (find_assert_locations): Likewise.
19306 (process_assert_insertions_for): Build condition from expression.
19307 (extract_range_from_assert): Handle ASSERT_EXPRs
19308 of the form ASSERT_EXPR <name, expr OP limit>.
19309 (register_edge_assert_for_2): New helper registering
19310 asserts for comparisons. Recognize range tests of the form
19311 (unsigned)i - CST1 OP CST2.
19312 (register_edge_assert_for_1): Use it.
19313 (register_edge_assert_for): Likewise.
19314 (needs_overflow_infinity): Integer sub-types
19315 do not need overflow infinities.
19316 (vrp_val_is_max): The extreme values of integer sub-types
19317 are those of the base type.
19318 (vrp_val_is_min): Likewise.
19319 * tree.def (ASSERT_EXPR): Document extra allowed conditional
19320 expressions.
19321
19322 2008-03-28 Nick Clifton <nickc@redhat.com>
19323
19324 PR target/31110
19325 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
19326 Return GENERAL_REGS for stack adjustment reloads.
19327
19328 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
19329
19330 PR target/31334
19331 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
19332 const_vector when all the vectors are constant.
19333
19334 2008-03-27 Bob Wilson <bob.wilson@acm.org>
19335
19336 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
19337 comparisons.
19338 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
19339 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
19340 (scc_sf): New.
19341 (s<code>_sf): Use new scc_sf attribute for opcode names.
19342
19343 2008-03-27 Tom Tromey <tromey@redhat.com>
19344
19345 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
19346 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
19347 config/spu/t-spu-elf, config/i386/t-interix,
19348 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
19349 config/i386/x-darwin, config/i386/x-mingw32,
19350 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
19351 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
19352 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
19353 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
19354 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
19355 config/rs6000/x-darwin, config/rs6000/t-rs6000,
19356 config/score/t-score-elf, config/arm/t-strongarm-pe,
19357 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
19358 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
19359 Revert automatic dependency patch.
19360
19361 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
19362
19363 PR target/35657
19364 * config/i386/i386.c (ix86_function_arg_boundary): Align
19365 decimal floating point to its natural boundary.
19366
19367 2008-03-27 Richard Guenther <rguenther@suse.de>
19368
19369 PR middle-end/35716
19370 * fold-const.c (fold_comparison): Restrict distinct decl
19371 comparison folding to VAR_DECLs and PARM_DECLs. Do not
19372 solely rely on operand_equal_p.
19373
19374 2008-03-27 Richard Guenther <rguenther@suse.de>
19375
19376 PR c/32511
19377 * c-common.c (handle_weak_attribute): Reject combination of
19378 weak and inline.
19379
19380 2008-03-27 Richard Guenther <rguenther@suse.de>
19381
19382 PR tree-optimization/32810
19383 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
19384 conversions from DECL_INITIAL.
19385 (fold_const_aggregate_ref): Likewise from constructor elements.
19386
19387 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
19388
19389 * tree-affine.h (aff_combination_expand): Declare.
19390 (get_inner_reference_aff): Likewise.
19391 * tree-affine.c (aff_combination_expand): Split out from
19392 tree_to_aff_combination_expand.
19393 (get_inner_reference_aff): New function.
19394 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
19395 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
19396 (struct lim_aux_data): sm_done field removed.
19397 (mem_ref_loc_p, mem_ref_locs_p): New types.
19398 (struct mem_ref): Added id, stored, accesses_in_loop,
19399 indep_loop, dep_loop, indep_ref, dep_ref fields.
19400 Removed is_stored, locs and next fields.
19401 (memory_accesses): New variable.
19402 (movement_possibility): Do not allow moving statements
19403 that store to memory.
19404 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
19405 New functions.
19406 (determine_max_movement): For statements with memory references,
19407 find the outermost loop in that the reference is independent.
19408 (move_computations_stmt): Mark the virtual operands for renaming.
19409 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
19410 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
19411 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
19412 add_vop_ref_mapping, create_vop_ref_mapping_loop,
19413 create_vop_ref_mapping, analyze_memory_references,
19414 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
19415 get_all_locs_in_loop, ref_always_accessed_p,
19416 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
19417 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
19418 store_motion_loop, store_motion): New functions.
19419 (struct vop_to_refs_elt): New type.
19420 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
19421 memref_hash, memref_eq, hoist_memory_references): Rewritten.
19422 (schedule_sm): Replaced by...
19423 (execute_sm): ... this.
19424 (determine_lsm_ref, hoist_memory_references,
19425 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
19426 find_more_ref_vops, free_mem_ref, free_mem_refs,
19427 determine_lsm_loop, determine_lsm): Removed.
19428 (tree_ssa_lim_finalize): Free data structures used by store motion.
19429 (tree_ssa_lim): Call analyze_memory_references. Use
19430 store_motion instead of determine_lsm.
19431
19432 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
19433
19434 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
19435 rename tmake_file to m68hc11/t-m68hc11.
19436 (mcore): Set inhibit_libc to true.
19437 * config.host (alpha*-dec-*vms*): Set extra_programs.
19438 (interix3*): Don't use host_xmake_file.
19439 * configure.ac: Let config.gcc override inhibit_libc.
19440 * configure: Regenerate.
19441
19442 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
19443 * config/t-openbsd-thread: Remove commented out lines.
19444
19445 * config/x-interix: Remove.
19446
19447 * config/m68hc11/t-m68hc11-gas: Rename to...
19448 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
19449
19450 * config/mcore/t-mcore: Remove T_CFLAGS.
19451 * config/mcore/t-mcore-pe: Likewise.
19452
19453 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
19454
19455 * configure.ac: Replace custom __GNU_SOURCE test with
19456 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
19457 * aclocal.m4: Regenerate.
19458 * configure: Regenerate.
19459 * config.in: Regenerate.
19460
19461 2008-03-27 Richard Guenther <rguenther@suse.de>
19462
19463 * fold-const.c (target.h): Include.
19464 (fold_comparison): Fold comparison of addresses of decls
19465 that bind locally or of constants. Consolidate address folding code.
19466 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
19467 results from fold_binary_to_constant.
19468 (compare_values_warnv): Likewise.
19469
19470 2008-03-27 Andrew Pinski <pinskia@gmail.com>
19471
19472 PR middle-end/35429
19473 * fold-const.c (fold_truthop): Check for integeral types when folding
19474 a == 0 && b == 0 and a != 0 || b != 0 .
19475
19476 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
19477
19478 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
19479
19480 2008-03-26 Andreas Schwab <schwab@suse.de>
19481
19482 * doc/invoke.texi: Fix use of @item vs. @itemx.
19483
19484 2008-03-26 Tom Tromey <tromey@redhat.com>
19485
19486 * Makefile.in (build/gensupport.o, build/print-rtl.o,
19487 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
19488 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
19489 build/gencodes.o, build/genconditions.o, build/genconfig.o,
19490 build/genconstants.o, build/genemit.o, build/genextract.o,
19491 build/genflags.o, build/genmddeps.o, build/genopinit.o,
19492 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
19493 options.h.
19494
19495 2008-03-26 Richard Guenther <rguenther@suse.de>
19496
19497 Revert
19498 2008-03-26 Richard Guenther <rguenther@suse.de>
19499
19500 * fold-const.c (target.h): Include.
19501 (fold_comparison): Fold comparison of addresses of two decls
19502 that bind locally. Consolidate address folding code.
19503
19504 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19505
19506 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
19507 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
19508 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
19509 dconstsqrt2, dconstthird, dconste and/or dconst10.
19510 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
19511 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
19512 dconstsqrt2, dconste): Delete.
19513 (init_emit_once): Likewise. Simplify initializing dconstm1.
19514 Constify variable.
19515 * real.c (get_real_const): New.
19516 * real.h (dconst3, dconst10, dconstm2, dconstthird,
19517 dconstsqrt2, dconste): Delete.
19518 (real_value_const, get_real_const): New.
19519
19520 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
19521
19522 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
19523
19524 * config/i386/i386.c (ix86_function_arg_boundary): Check
19525 BIGGEST_ALIGNMENT instead of 128.
19526 (setup_incoming_varargs_64): Likewise.
19527
19528 2008-03-26 Tom Tromey <tromey@redhat.com>
19529
19530 * Makefile.in (DEPFILES): Add missing '/'.
19531
19532 2008-03-26 Richard Guenther <rguenther@suse.de>
19533
19534 * fold-const.c (target.h): Include.
19535 (fold_comparison): Fold comparison of addresses of two decls
19536 that bind locally. Consolidate address folding code.
19537
19538 2008-03-26 Nick Clifton <nickc@redhat.com>
19539
19540 PR target/31232
19541 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
19542 not allow INT+INT as a legitimate addressing mode.
19543
19544 2008-03-26 Richard Guenther <rguenther@suse.de>
19545
19546 * tree-flow.h (widen_bitfield): Remove declaration.
19547 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
19548 (widen_bitfield): Remove function.
19549 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
19550 code.
19551
19552 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
19553
19554 PR target/31558
19555 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
19556 error_mark_node's.
19557
19558 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
19559
19560 PR rtl-optimization/35232
19561 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
19562 (forget_old_reloads_1, forget_marked_reloads): Don't clear
19563 reg_reloaded_call_part_clobbered here.
19564 (reload_regs_reach_end_p): New function.
19565 (reload_reg_rtx_for_input): New variable.
19566 (reload_reg_rtx_for_output): Likewise.
19567 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
19568 when reassigning a pseudo register. Load reloadreg from
19569 reload_reg_rtx_for_input, moving the mode and register
19570 calculation to...
19571 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
19572 instead of the original when deciding whether an input reload
19573 would be a no-op or whether an output reload can be deleted.
19574 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
19575 when setting up new_spill_reg_store. Load it from
19576 reload_reg_rtx_for_output, moving the mode and register
19577 calculation to...
19578 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
19579 instead of the original when deciding whether an output reload
19580 would be a no-op. Do the same when modifying insn notes.
19581 Use rtx_equal_p instead of == to compare the registers.
19582 (inherit_piecemeal_p): Take a mode and two register numbers
19583 as argument.
19584 (emit_reload_insns): Clear new_spill_reg_store for every hard
19585 register in the reload register. Remove spill registers
19586 from reg_reloaded_valid before considering whether to record
19587 inheritance information for them. Use reload_reg_rtx_for_output
19588 instead of reg_rtx when recording output reloads. Use
19589 reload_reg_rtx_for_input instead of reg_rtx when recording
19590 input reloads. Set or clear reg_reloaded_call_part_clobbered
19591 at the same time as setting reg_reloaded_valid.
19592 (delete_output_reload): Add a new_reload_reg parameter and use it
19593 instead of rld[j].reg_rtx.
19594 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
19595 calls accordingly.
19596
19597 2008-03-25 Tom Tromey <tromey@redhat.com>
19598
19599 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
19600 (build/genattr.o): Likewise.
19601 (build/genattrtab.o): Likewise.
19602 (build/gencodes.o): Likewise.
19603 (build/genconfig.o): Likewise.
19604 (build/genconstants.o): Likewise.
19605 (build/genemit.o): Likewise.
19606 (build/genextract.o): Likewise.
19607 (build/genflags.o): Likewise.
19608
19609 2008-03-25 Bob Wilson <bob.wilson@acm.org>
19610
19611 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
19612 instead of size_int for integer types.
19613 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
19614 to match type of MINUS_EXPR.
19615
19616 2008-03-25 Tom Tromey <tromey@redhat.com>
19617
19618 * configure: Rebuilt.
19619 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
19620 Makefile.
19621
19622 2008-03-25 Tom Tromey <tromey@redhat.com>
19623
19624 * config/x-solaris (host-solaris.o): Update.
19625 * config/x-linux (host-linux.o): Update.
19626 * config/x-hpux (host-hpux.o): Update.
19627 * config/x-darwin (host-darwin.o): Update.
19628 * config/v850/t-v850e (v850-c.o): Update.
19629 * config/v850/t-v850 (v850-c.o): Update.
19630 * config/t-vxworks (vxworks.o): Update.
19631 * config/t-sol2 (sol2-c.o, sol2.o): Update.
19632 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
19633 * config/spu/t-spu-elf (spu-c.o): Update.
19634 (spu.o): Remove.
19635 * config/sh/t-symbian (sh-c.o): Update.
19636 (symbian.o): Update.
19637 * config/sh/t-sh (sh-c.o): Update.
19638 * config/score/t-score-elf (score7.o, score3.o): Update.
19639 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
19640 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
19641 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
19642 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
19643 (rs6000.o): Remove.
19644 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
19645 * config/m32c/t-m32c (m32c-pragma.o): Update.
19646 * config/ia64/t-ia64 (ia64-c.o): Update.
19647 * config/i386/x-mingw32 (host-mingw32.o): Update.
19648 * config/i386/x-i386 (driver-i386.o): Update.
19649 * config/i386/x-darwin (host-i386-darwin.o): Update.
19650 * config/i386/x-cygwin (host-cygwin.o): Update.
19651 * config/i386/t-nwld (nwld.o): Update.
19652 * config/i386/t-netware (netware.o): Update.
19653 * config/i386/t-interix (winnt.o): Update.
19654 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
19655 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
19656 msformat-c.o): Update.
19657 * config/bfin/t-bfin-linux (generated_files): Add
19658 linux-sysroot-suffix.h.
19659 * config/arm/t-wince-pe (pe.o): Update.
19660 * config/arm/t-strongarm-pe (pe.o): Update.
19661 * config/arm/t-pe (pe.o): Update.
19662 * config/arm/t-arm (arm-c.o): Update.
19663 * doc/install.texi (Prerequisites): Require make 3.80.
19664 * Makefile.in: Remove .o targets.
19665 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
19666 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
19667 (simple_generated_h, simple_generated_c): Move earlier.
19668 (generated_files): New variable.
19669 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
19670 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
19671 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
19672 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
19673 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
19674 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
19675 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
19676 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
19677 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
19678 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
19679 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
19680 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
19681 (.c.o): Remove.
19682 (COMPILE.base, COMPILE): New variables.
19683 (%.o): New pattern rule.
19684 (ALL_HOST_OBJS): New variable.
19685 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
19686 (dummy-checksum.o, cc1-checksum.o): Remove.
19687 (DRIVER_SHLIB): New variable.
19688 (DRIVER_DEFINES): Use it.
19689 (gencondmd.c): Move out of build/.
19690 (s-conditions): Update.
19691 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
19692 (ALL_BUILD_OBJS): Likewise.
19693 (build/%.o): Use BUILDCOMPILE.
19694 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
19695 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
19696 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
19697 build/gencheck.o, build/gencodes.o, build/genconditions.o,
19698 build/genconfig.o, build/genconstants.o, build/genemit.o,
19699 build/genextract.o, build/genflags.o, build/genmddeps.o,
19700 build/genopinit.o, build/genoutput.o, build/genpeep.o,
19701 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
19702 build/gen-protos.o, build/scan.o, build/fix-header.o,
19703 build/scan-decls.o): Simplify.
19704 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
19705 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
19706 prefix.o, toplev.o): Reduce to variable setting.
19707 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
19708 ($(out_object_file), gcc-options.o): New targets.
19709 ($(ALL_HOST_OBJS)): New target. Include dependency files.
19710 * configure: Rebuilt.
19711 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
19712 * doc/sourcebuild.texi (Front End Directory): Document new variable.
19713
19714 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
19715
19716 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
19717 complain when we hit an error, return ERROR_MARK_NODE.
19718
19719 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
19720
19721 * config/sh/constraints.md (Pso, Psz): New constraints.
19722 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
19723 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
19724
19725 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
19726
19727 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
19728 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
19729
19730 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
19731
19732 * config/sh/sh.md (prefetch): Add condition for SH2A target.
19733 (prefetch_sh2a): New.
19734
19735 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
19736 Naveen.H.S <naveen.hs@kpitcummins.com>
19737
19738 * config/sh/constraints.md (I28): New constraint.
19739 * config/sh/sh.c (broken_move): Add support for movi20s.
19740 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
19741
19742 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
19743 Jayant Sonar <Jayant.sonar@kpitcummins.com>
19744 Naveen.H.S <naveen.hs@kpitcummins.com>
19745
19746 * config/sh/sh.c (SH_ATTRIBUTES): Define.
19747 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
19748 (print_operand): Handle resbank in %@ operand code.
19749 (sh_encode_section_info): New.
19750 (push_regs): Add conditions for resbank.
19751 (sh_expand_epilogue): Likewise.
19752 (sh_insert_attributes): Likewise.
19753 (sh_attribute_table): Likewise.
19754 (sh_handle_resbank_handler_attribute): New.
19755 (sh2a_handle_function_vector_handler_attribute): New.
19756 (sh2a_is_function_vector_call): New.
19757 (sh2a_get_function_vector_number): New.
19758 (sh2a_function_vector_p): New.
19759 (sh_cfun_resbank_handler_p): New.
19760 * config/sh/sh.md (calli): Emit jsr/n if possible.
19761 (calli_tbr_rel): New.
19762 (calli_pcrel): Emit jsr/n if possible.
19763 (return_i): Emit rts/n if possible.
19764 (call_valuei_tbr_rel): New.
19765 (call_valuei_pcrel): Add condition for SH2A target.
19766 (call_value): Likewise.
19767 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
19768 (sh2a_get_function_vector_number): Likewise.
19769 (sh2a_is_function_vector_call): Likewise.
19770 * doc/extend.texi: Document TBR relative addressing of SH2A.
19771 (resbank): Add description for SH2A.
19772
19773 2008-03-24 Richard Guenther <rguenther@suse.de>
19774
19775 PR c/22371
19776 * gimplify.c (gimplify_modify_expr): For frontend type-correct
19777 pointer assignments change conversions according to middle-end rules.
19778 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
19779 * configure.ac: Include type checking in yes.
19780 * configure: Regenerate.
19781
19782 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19783
19784 * diagnostic.c (diagnostic_count_diagnostic): Delete.
19785 (diagnostic_report_diagnostic): Update. Handle ICEs here.
19786
19787 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
19788
19789 * gthr-vxworks.h (UNUSED): Define.
19790
19791 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
19792
19793 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
19794
19795 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
19796
19797 * doc/extend.texi (Function Attributes): Add missing comma in the
19798 example of the "alloc_size" attribute.
19799
19800 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
19801
19802 Revert:
19803 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
19804
19805 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
19806 32bit host.
19807
19808 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
19809
19810 PR target/35496
19811 * stor-layout.c (update_alignment_for_field): Set minimum alignment
19812 of the underlying type of a MS bitfield layout to the natural
19813 alignment of the type.
19814
19815 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
19816
19817 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
19818 to their natural alignment to avoid store forwarding stalls.
19819
19820 2008-03-22 Richard Guenther <rguenther@suse.de>
19821
19822 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
19823 For PHI nodes verify the address is invariant.
19824 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
19825 (get_symbol_constant_value): Use is_gimple_min_invariant.
19826 (maybe_fold_stmt_indirect): Likewise.
19827
19828 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
19829
19830 PR rtl-optimization/33927
19831 * Makefile.in (dse.o): Depend on $(TM_P_H).
19832 * expr.h (extract_low_bits): Declare.
19833 * expmed.c (extract_low_bits): New function.
19834 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
19835 * dse.c: Include tm_p.h.
19836 (find_shift_sequence): Remove the read_reg argument and return the
19837 read value. Emit the instructions instead of returning them.
19838 Iterate on new_mode rather than calculating it each time.
19839 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
19840 source to NEW_MODE and extract_low_bits to convert the shifted
19841 value to READ_MODE.
19842 (replace_read): Allow the load and store to have different mode
19843 classes. Use extract_low_bits when SHIFT == 0. Create the shift
19844 or extraction instructions before trying the replacement. Update
19845 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
19846
19847 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
19848
19849 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
19850 to their natural alignment to avoid store forwarding stalls.
19851
19852 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
19853
19854 PR target/27946
19855 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
19856 encouraging but not allowing gprs for input;
19857 change the input constraint to !f#r.
19858 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
19859 gprs for output;
19860 change the output constraint to !f#r.
19861
19862 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
19863
19864 PR target/13958
19865 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
19866 corresponding post-reload splitters.
19867 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
19868 when x87 FP math is selected.
19869 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
19870 New function prototype.
19871 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
19872 unreachable function to ease macroization of insn patterns.
19873
19874 2008-03-21 Martin Jambor <mjambor@suse.cz>
19875
19876 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
19877 reference dumps if ddr is NULL or dependence is unknown.
19878
19879 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
19880
19881 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
19882 unsigned extension into account.
19883 (ATOMIC_COMPARE_AND_SWAP): Likewise.
19884 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
19885 Do computations on a scratch register.
19886
19887 2008-03-21 Richard Guenther <rguenther@suse.de>
19888
19889 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
19890 Use is_gimple_min_invariant instead of TREE_INVARIANT.
19891 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
19892 * tree-ssa-dom.c (record_equality): Likewise.
19893 * tree-inline.c (copy_body_r): Likewise.
19894 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
19895 TREE_INVARIANT.
19896
19897 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
19898
19899 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
19900 as 'delete_unused' argument.
19901
19902 2008-03-20 Richard Guenther <rguenther@suse.de>
19903
19904 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
19905 special casing of constant qualifiers.
19906 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
19907 care about them in general.
19908 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
19909 regardless of their type.
19910 (fold_stmt_r): Forcefully fold *& if we end up with that.
19911
19912 2008-03-20 Paul Brook <paul@codesourcery.com>
19913
19914 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
19915 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
19916 linker flags.
19917 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
19918 definition.
19919 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
19920 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
19921
19922 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
19923
19924 * common.opt (Wmudflap): New option.
19925 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
19926 (mx_register_decls): Likewise.
19927 (mudflap_finish_file): Likewise.
19928 * doc/invoke.texi: Document -Wno-mudflap.
19929
19930 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
19931
19932 * c-format.c (replace_format_name_to_system_name): New.
19933 (cmp_attribs): New.
19934 (convert_format_name_to_system_name): New.
19935 (decode_format_attr): Add use of convert_format_name_to_system_name.
19936 (format_types_orig): Add gnu_ prefix to names.
19937 (check_format_info_main): Special treating of \0 escaped names for
19938 supporting multi-character format specifiers as I32, I64.
19939 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
19940 (gnu_target_overrides_format_attributes): New.
19941 * c-format.h: Add structure target_ovr_attr to hold
19942 system specific formatter names.
19943 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
19944 msformat-c.o file to c_target_objs and cxx_target_objs.
19945 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
19946 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
19947 (TARGET_N_FORMAT_TYPES): New.
19948 * config/i386/msformat-c.c: New.
19949 * config/i386/t-cygming: Add build rule for msformat-c.o.
19950 * doc/extend.texi: Add new format names gnu_* and ms_* and
19951 further details.
19952 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
19953
19954 2008-03-20 Ira Rosen <irar@il.ibm.com>
19955
19956 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
19957 optimizations turned on under -O3.
19958 (ftree-vectorize): Add that the flag is turned on with -O3.
19959
19960 2008-03-20 Ben Elliston <bje@au.ibm.com>
19961
19962 * regmove.c (try_auto_increment): Fix spelling error in comment.
19963 * final.c (final_scan_insn): Likewise.
19964
19965 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
19966
19967 PR target/14552
19968 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
19969 allocator preferences for "y" and "r" class registers.
19970 ("*mov<mode>_internal"): Ditto.
19971 ("*movv2sf_internal_rex64"): Ditto.
19972 ("*movv2sf_internal"): Ditto.
19973
19974 2008-03-19 Michael Matz <matz@suse.de>
19975
19976 PR middle-end/35616
19977 * calls.c (expand_call): Check overlap of arguments with call
19978 address for sibcalls.
19979
19980 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
19981
19982 PR target/35496
19983 * stor-layout.c (update_alignment_for_field): Set minimum alignment
19984 of the underlying type of a MS bitfield layout to the natural
19985 alignment of the type.
19986
19987 2008-03-19 Jan Hubicka <jh@suse.cz>
19988
19989 PR other/35094
19990 * toplev.c (decode_d_option): Handle all CPP flags.
19991 * tree-vrp.c: Update tree_pass descriptors.
19992 * regrename.c: Update tree_pass descriptors.
19993 * fwprop.c: Update tree_pass descriptors.
19994 * doc/invoke.texi: Remove documentation of dropped -d? flags.
19995 * tree-into-ssa.c: Update tree_pass descriptors.
19996 * tree-dump.c: Update tree_pass descriptors.
19997 * tree-complex.c: Update tree_pass descriptors.
19998 * tree-dump.h: Update tree_pass descriptors.
19999 * see.c: Update tree_pass descriptors.
20000 * cgraphbuild.c: Update tree_pass descriptors.
20001 * tracer.c: Update tree_pass descriptors.
20002 * tree-loop-distribution.c: Update tree_pass descriptors.
20003 * cgraph.c: Update tree_pass descriptors.
20004 * postreload-gcse.c: Update tree_pass descriptors.
20005 * postreload.c: Update tree_pass descriptors.
20006 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
20007 * tree-tailcall.c: Update tree_pass descriptors.
20008 * tree-pass.h (tree_opt_pass): Rename to ...
20009 (opt_pass) ... this one; add "type" field and remove letter field.
20010 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
20011 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
20012 all_lowering_passes): Update declaration.
20013 * ipa-cp.c: Update tree_pass descriptors.
20014 * final.c: Update tree_pass descriptors.
20015 * omp-low.c: Update tree_pass descriptors.
20016 * tree-ssa-dse.c: Update tree_pass descriptors.
20017 * ipa-reference.c: Update tree_pass descriptors.
20018 * tree-ssa-uncprop.c: Update tree_pass descriptors.
20019 * auto-inc-dec.c: Update tree_pass descriptors.
20020 * reorg.c: Update tree_pass descriptors.
20021 * cgraphunit.c: Update tree_pass descriptors.
20022 * tree-ssa-copyrename.c: Update tree_pass descriptors.
20023 * tree-ssa-ccp.c: Update tree_pass descriptors.
20024 * df-core.c: Update tree_pass descriptors.
20025 * mode-switching.c: Update tree_pass descriptors.
20026 * tree-nomudflap.c: Update tree_pass descriptors.
20027 * modulo-sched.c: Update tree_pass descriptors.
20028 * ipa-pure-const.c: Update tree_pass descriptors.
20029 * cse.c: Update tree_pass descriptors.
20030 * web.c: Update tree_pass descriptors.
20031 * tree-stdarg.c: Update tree_pass descriptors.
20032 * tree-ssa-math-opts.c: Update tree_pass descriptors.
20033 * tree-ssa-dom.c: Update tree_pass descriptors.
20034 * tree-nrv.c: Update tree_pass descriptors.
20035 * tree-ssa-alias.c: Update tree_pass descriptors.
20036 * loop-init.c: Update tree_pass descriptors.
20037 * gimple-low.c: Update tree_pass descriptors.
20038 * ipa-inline.c: Update tree_pass descriptors.
20039 * tree-ssa-sink.c: Update tree_pass descriptors.
20040 * global.c: Update tree_pass descriptors.
20041 * ifcvt.c: Update tree_pass descriptors.
20042 * jump.c: Update tree_pass descriptors.
20043 * predict.c: Update tree_pass descriptors.
20044 * tree-ssa-loop.c: Update tree_pass descriptors.
20045 * recog.c: Update tree_pass descriptors.
20046 * dse.c: Update tree_pass descriptors.
20047 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
20048 * tree-eh.c: Update tree_pass descriptors.
20049 * regmove.c: Update tree_pass descriptors.
20050 * local-alloc.c
20051 * function.c: Update tree_pass descriptors.
20052 * tree-vectorizer.c: Update tree_pass descriptors.
20053 * gcse.c: Update tree_pass descriptors.
20054 * ipa-type-escape.c: Update tree_pass descriptors.
20055 * tree-if-conv.c: Update tree_pass descriptors.
20056 * init-regs.c: Update tree_pass descriptors.
20057 * ipa.c: Update tree_pass descriptors.
20058 * tree-ssa-phiopt.c: Update tree_pass descriptors.
20059 * rtl-factoring.c: Update tree_pass descriptors.
20060 * lower-subreg.c: Update tree_pass descriptors.
20061 * bt-load.c: Update tree_pass descriptors.
20062 * tree-dfa.c: Update tree_pass descriptors.
20063 * except.c: Update tree_pass descriptors.
20064 * emit-rtl.c: Update tree_pass descriptors.
20065 * cfgexpand.c: Update tree_pass descriptors.
20066 * tree-cfgcleanup.c: Update tree_pass descriptors.
20067 * cfgcleanup.c: Update tree_pass descriptors.
20068 * tree-ssa-pre.c: Update tree_pass descriptors.
20069 * tree-sra.c: Update tree_pass descriptors.
20070 * tree-mudflap.c: Update tree_pass descriptors.
20071 * tree-ssa-copy.c: Update tree_pass descriptors.
20072 * cfglayout.c: Update tree_pass descriptors.
20073 * tree-ssa-forwprop.c: Update tree_pass descriptors.
20074 * tree-ssa-dce.c: Update tree_pass descriptors.
20075 * tree-ssa.c: Update tree_pass descriptors.
20076 * regclass.c: Update tree_pass descriptors.
20077 * integrate.c: Update tree_pass descriptors.
20078 * tree-optimize.c: Update tree_pass descriptors.
20079 * tree-ssa-phiprop.c: Update tree_pass descriptors.
20080 * tree-object-size.c: Update tree_pass descriptors.
20081 * combine.c: Update tree_pass descriptors.
20082 * tree-outof-ssa.c: Update tree_pass descriptors.
20083 * bb-reorder.c: Update tree_pass descriptors.
20084 * stack-ptr-mod.c: Update tree_pass descriptors.
20085 * var-tracking.c: Update tree_pass descriptors.
20086 * tree-profile.c: Update tree_pass descriptors.
20087 * tree-vect-generic.c: Update tree_pass descriptors.
20088 * reg-stack.c: Update tree_pass descriptors.
20089 * sched-rgn.c: Update tree_pass descriptors.
20090 * tree-ssa-structalias.c: Update tree_pass descriptors.
20091 * tree-cfg.c: Update tree_pass descriptors.
20092 * passes.c (current_pass): Update declaration.
20093 (finish_optimization_passes): Update.
20094 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
20095 (register_one_dump_file, register_dump_files_1, next_pass_1):
20096 Update arguments.
20097 (init_optimization_passes): Update handling of new types.
20098 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
20099 * ipa-struct-reorg.c: Update tree_pass descriptors.
20100 * tree-ssa-reassoc.c: Update tree_pass descriptors.
20101 * combine-stack-adj.c: Update tree_pass descriptors.
20102 * cfgrtl.c: Update tree_pass descriptors.
20103 * dce.c: Update tree_pass descriptors.
20104 * tree-ssanames.c: Update tree_pass descriptors.
20105
20106 2008-03-19 Richard Guenther <rguenther@suse.de>
20107
20108 PR middle-end/35609
20109 * tree-ssa.c (walk_data): New structure.
20110 (warn_uninitialized_var): If not always_executed warn with "maybe"
20111 instead of "is".
20112 (execute_early_warn_uninitialized): Compute post-dominators.
20113 Initialize always_executed before processing each basic block.
20114
20115 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
20116
20117 PR target/35504
20118 * config/i386/i386.c (x86_this_parameter): Calculate correct location
20119 of "this" pointer when "regparm = N" or "fastcall" is in effect.
20120
20121 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20122
20123 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
20124
20125 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
20126
20127 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
20128 is true.
20129 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
20130 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
20131 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
20132 target after ignore has been set, and move there also the commputation
20133 of subtarget and original_target.
20134 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
20135 (LANG_HOOKS_INITIALIZER): Remove it.
20136 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
20137
20138 2008-03-18 Richard Guenther <rguenther@suse.de>
20139
20140 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
20141 found an expression with constants, note that in the VN for the lhs.
20142 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
20143 fold them to constants if possible. Run cleanup_cfg if done so.
20144 (execute_pre): Return todo.
20145 (do_pre): Likewise.
20146 (execute_fre): Likewise.
20147 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
20148 of constants.
20149 (get_prop_source_stmt): Look through pointer conversions.
20150
20151 2008-03-18 Jan Hubicka <jh@suse.cz>
20152
20153 * tree-pretty-print.c: Include predict.h.
20154 (dump_generic_node): Dump predictor.
20155 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
20156 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
20157 * gimple-low.c (lower_stmt): Likewise.
20158 * expr.c (expand_expr_real): Likewise.
20159 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
20160 them.
20161 (build_predict_expr, build_predict_expr): New.
20162 * predict.h (predictor_name, build_predict_expr): Update.
20163 * c-typeck.c (c_finish_bc_stmt): Add prediction.
20164 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
20165 * predict.def (PRED_CONTINUE): Update hitrate.
20166 * tree.def (PREDICT_EXPR): Define.
20167 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
20168 do not handle BIND_EXPR.
20169 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
20170 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
20171 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
20172 operands.
20173
20174 2008-03-18 Michael Matz <matz@suse.de>
20175
20176 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
20177
20178 2008-03-18 Richard Guenther <rguenther@suse.de>
20179
20180 * tree-gimple.h (is_gimple_invariant_address): Declare.
20181 (is_gimple_constant): Likewise.
20182 * tree-gimple.c (is_gimple_constant): New function.
20183 (is_gimple_invariant_address): Likewise.
20184 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
20185 and is_gimple_invariant_address.
20186 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
20187 previous change.
20188 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
20189 an addressable base.
20190
20191 2008-03-18 Jakub Jelinek <jakub@redhat.com>
20192
20193 PR middle-end/35611
20194 * gimplify.c (gimplify_expr): Gimplify second operand of
20195 OMP_ATOMIC_LOAD.
20196
20197 2008-03-17 Richard Guenther <rguenther@suse.de>
20198
20199 PR tree-optimization/19637
20200 * fold-const.c (fold_unary): Remove restrictions of removing
20201 intermediate pointer-conversions (P2)(P1)P0.
20202 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
20203 conversion to void pointer.
20204 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
20205
20206 2008-03-16 James E. Wilson <wilson@tuliptree.org>
20207
20208 PR debug/31510
20209 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
20210 emulated thread local variables.
20211
20212 2008-03-16 Richard Guenther <rguenther@suse.de>
20213
20214 PR middle-end/35607
20215 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
20216 expand TREE_INVARIANT operations that are not gimple invariant.
20217
20218 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
20219
20220 * doc/extend.texi (Alignment): Say that the ABI controls
20221 the __alignof__ for non-strict-alignment targets rather
20222 than being a recommendation.
20223
20224 2008-03-15 Paul Brook <paul@codesourcery.com>
20225
20226 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
20227 annotations.
20228 (arm_output_fn_unwind): Mark functions that can not be unwound.
20229
20230 2008-03-15 Paul Brook <paul@codesourcery.com>
20231
20232 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
20233 extension instructions.
20234
20235 2008-03-15 Richard Guenther <rguenther@suse.de>
20236
20237 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
20238 and fold constant aggregate refs.
20239 (fold_const_aggregate_ref): Handle string constants
20240 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
20241 (evaluate_stmt): Simplify now that ccp_fold folds constant
20242 aggregate refs.
20243
20244 2008-03-15 Paul Brook <paul@codesourcery.com>
20245
20246 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
20247 (extzv): Use gen_extzv_t2.
20248 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
20249
20250 2008-03-15 Richard Guenther <rguenther@suse.de>
20251
20252 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
20253 (fold_const_aggregate_ref): Likewise.
20254 (get_value): Return NULL if we don't have any values.
20255 (ccp_finalize): Set const_val to NULL after freeing it.
20256 * tree-flow.h (get_symbol_constant_value): Declare.
20257 (fold_const_aggregate_ref): Likewise.
20258 * tree-ssa-sccvn.c (try_to_simplify): Use them.
20259
20260 2008-03-15 Richard Guenther <rguenther@suse.de>
20261
20262 PR middle-end/35593
20263 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
20264 to not produce negative array indices if not allowed. Add
20265 parameter to indicate that.
20266 (maybe_fold_offset_to_component_ref): Allow negative array
20267 indices only for the first member of a structure.
20268 (maybe_fold_offset_to_reference): Allow negative array indices.
20269 (maybe_fold_stmt_addition): Likewise.
20270
20271 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
20272 Anatoly Sokolov <aesok@post.ru>
20273
20274 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
20275 (avr_arch): Add ARCH_AVR6.
20276 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
20277 (initial_elimination_offset): Initialize and use 'avr_pc_size'
20278 instead of fixed value 2.
20279 (print_operand_address): Use gs() asm specifier instead of pm().
20280 (avr_assemble_integer): (Ditto.).
20281 (avr_output_addr_vec_elt): (Ditto.).
20282 (print_operand): Handle "!" code.
20283 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
20284 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
20285 (AVR_HAVE_EIJMP_EICALL): Define.
20286 (AVR_3_BYTE_PC): Redefine.
20287 (AVR_2_BYTE_PC): (Ditto.).
20288 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
20289 (LINK_SPEC): Add atmega2560 and atmega2561.
20290 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
20291 (crtm2561.o).
20292 * config/avr/avr.md (call_insn): Use eicall instead of icall
20293 for 3 byte PC devices.
20294 (call_value_insn): (Ditto.).
20295 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
20296 (indirect_jump): Use only for for 2 byte PC devices.
20297 (*tablejump): (Ditto.).
20298 (*indirect_jump_avr6): Add insn.
20299 (*tablejump_rjmp): Don't use for 3 byte PC devices.
20300 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
20301 instead of ijmp for 3 byte PC devices.
20302 (__tablejump2__): (Ditto.).
20303 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
20304 (MULITLIB_DIRNAMES): (Ditto.).
20305 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
20306
20307 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
20308
20309 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
20310 "sse2_umulsidi3". Use V1DI mode for operand 0.
20311 ("mmx_psadbw"): Use V1DI mode for operand 0.
20312 * config/i386/i386-modes.def (V1SI): New vector mode.
20313 * config/i386/i386.c (struct builtin_description)
20314 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
20315 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
20316 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
20317 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
20318 v1di_ftype_v8qi_v8qi type.
20319 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
20320
20321 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
20322 __builtin_ia32_pmuludq]: Fix the mode of return value.
20323
20324 2008-03-15 Richard Guenther <rguenther@suse.de>
20325
20326 PR middle-end/35595
20327 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
20328 being a PHI_NODE.
20329
20330 2008-03-14 Bob Wilson <bob.wilson@acm.org>
20331
20332 * doc/invoke.texi (Option Summary, Xtensa Options): Document
20333 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
20334 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
20335 unless TARGET_SERIALIZE_VOLATILE is enabled.
20336 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
20337 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
20338 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
20339
20340 2008-03-14 Richard Guenther <rguenther@suse.de>
20341
20342 PR tree-optimization/34172
20343 * tree-flow.h (refs_may_alias_p): Declare.
20344 (get_single_def_stmt): Likewise.
20345 (get_single_def_stmt_from_phi): Likewise.
20346 (get_single_def_stmt_with_phi): Likewise.
20347 * tree-dfa.c (refs_may_alias_p): New function.
20348 (get_single_def_stmt): Likewise.
20349 (get_single_def_stmt_from_phi): Likewise.
20350 (get_single_def_stmt_with_phi): Likewise.
20351 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
20352 (vn_reference_lookup_1): New helper function.
20353 (vn_reference_lookup): Walk the virtual use-def chain to
20354 continue searching for a match if the def does not alias the
20355 reference we are looking for.
20356
20357 2008-03-14 David Edelsohn <edelsohn@gnu.org>
20358
20359 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
20360 archive and Perzl. Update The Written Word listing.
20361
20362 2008-03-14 Richard Guenther <rguenther@suse.de>
20363
20364 PR tree-optimization/34043
20365 PR tree-optimization/33989
20366 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
20367 when doing FRE.
20368 (bitmap_find_leader): Use extra argument to verify dominance
20369 relationship inside a basic-block.
20370 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
20371 (find_leader_in_sets): Adjust.
20372 (create_component_ref_by_pieces): Take extra argument for
20373 dominance check, handle lookup failures.
20374 (find_or_generate_expression): Likewise.
20375 (create_expression_by_pieces): Likewise.
20376 (insert_into_preds_of_block): Adjust.
20377 (create_value_expr_from): If asked for, verify all operands
20378 are in the blocks AVAIL_OUT set.
20379 (make_values_for_stmt): Check for SSA_NAMEs that are life
20380 over an abnormal edge.
20381 (compute_avail): Remove such check.
20382 (do_SCCVN_insertion): New function.
20383 (eliminate): If we do not find a leader suitable for replacement
20384 insert a replacement expression from SCCVN if available.
20385 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
20386 (struct vn_ssa_aux): Add needs_insertion flag.
20387 * tree-ssa-sccvn.c (may_insert): New global flag.
20388 (copy_reference_ops_from_ref): Value-number union member access
20389 based on its size, not type and member if insertion is allowed.
20390 (visit_reference_op_load): For a weak match from union type
20391 punning lookup a view-converted value and insert a SSA_NAME
20392 for that value if that is not found.
20393 (visit_use): Make dumps shorter. Do not disallow value numbering
20394 SSA_NAMEs that are life over an abnormal edge to constants.
20395 (free_scc_vn): Release inserted SSA_NAMEs.
20396 (run_scc_vn): New flag to specify whether insertion is allowed.
20397 Process SSA_NAMEs in forward order.
20398 * tree-ssa-loop-im.c (for_each_index): Handle invariant
20399 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
20400 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
20401 pointer type to/from integral types that do not change the
20402 precision to regular conversions.
20403
20404 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
20405
20406 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
20407 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
20408 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
20409 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
20410 input arguments and the mode of return value. Built-in functions
20411 that operate on whole 64-bit MMX register now use V1DI mode.
20412
20413 2008-03-13 Alon Dayan <alond@il.ibm.com>
20414 Olga Golovanevsky <olga@il.ibm.com>
20415
20416 PR tree-optimization/35041
20417 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
20418 to locate the right position in a statement.
20419
20420 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
20421
20422 PR target/34000
20423 PR target/35553
20424 * config/i386/xmmintrin.h: Change all static inline functions to
20425 extern inline and add __gnu_inline__ attribute.
20426 * config/i386/bmintrin.h: Ditto.
20427 * config/i386/smmintrin.h: Ditto.
20428 * config/i386/tmmintrin.h: Ditto.
20429 * config/i386/mmintrin-common.h: Ditto.
20430 * config/i386/ammintrin.h: Ditto.
20431 * config/i386/emmintrin.h: Ditto.
20432 * config/i386/pmmintrin.h: Ditto.
20433 * config/i386/mmintrin.h: Ditto.
20434 * config/i386/mm3dnow.h: Ditto.
20435
20436 2008-03-13 Jakub Jelinek <jakub@redhat.com>
20437
20438 PR middle-end/35185
20439 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
20440 (lower_omp_2): New function.
20441 (lower_omp_1, lower_omp): Rewritten.
20442
20443 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
20444
20445 PR 35054
20446 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
20447 with the phrase "Microsoft Windows compilers".
20448 (Push/Pop Macro Pragmas): New subsection. Document
20449 #pragma push_macro and pragma pop_macro.
20450
20451 2008-03-12 Paul Brook <paul@codesourcery.com>
20452
20453 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
20454
20455 2008-03-12 Paul Brook <paul@codesourcery.com>
20456
20457 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
20458 (thumb2_alusi3_short): Exclude PLUS and MINUS.
20459 (thumb2_addsi_shortim): Rename ...
20460 (thumb2_addsi_short): ... to this. Allow register operands.
20461 (thumb2_subsi_short): New pattern.
20462 (thumb2_one_cmplsi2_short,
20463 thumb2_negsi2_short): New patterns and peepholes.
20464
20465 2008-03-12 Paul Brook <paul@codesourcery.com>
20466
20467 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
20468
20469 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
20470
20471 * config/i386/i386.md (int_cond): New code iterator.
20472 (fp_cond): Ditto.
20473 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
20474 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
20475 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
20476 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
20477 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
20478 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
20479 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
20480 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
20481
20482 2008-03-12 Paul Brook <paul@codesourcery.com>
20483
20484 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
20485 instead of {arm,thumb}_compute_save_reg_mask.
20486 (output_return_instruction): Ditto.
20487 (thumb_unexpanded_epilogue): Ditto.
20488 (thumb1_expand_prologue): Ditto.
20489 (thumb1_output_function_prologue): Ditto.
20490 (arm_set_return_address): Ditto.
20491 (thumb_set_return_address): Ditto.
20492 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
20493 regs to achieve stack alignment.
20494 (thumb1_compute_save_reg_mask): Fix compiler warning.
20495 (arm_output_epilogue): Use offsets->saved_regs_mask.
20496 Adjust stack pointer by poping call clobered registers.
20497 (arm_expand_prologue): Use offsets->saved_regs_mask.
20498 Adjust stack pointer by pushing extra registers.
20499 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
20500
20501 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
20502
20503 PR tree-opt/35422
20504 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
20505 conversion to the operands of a multiplication.
20506
20507 2008-03-12 Richard Guenther <rguenther@suse.de>
20508
20509 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
20510 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
20511 * timevar.def (TV_TREE_PHIPROP): Add.
20512 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
20513 pass description. Use TV_TREE_PHIPROP.
20514 * tree-ssa-forwprop.c: Remove phiprop code.
20515
20516 2008-03-12 Jakub Jelinek <jakub@redhat.com>
20517
20518 PR middle-end/35549
20519 * omp-low.c (maybe_lookup_decl): Constify first argument.
20520 (use_pointer_for_field): Change last argument from bool to
20521 omp_context *. Disallow shared copy-in/out in nested
20522 parallel if decl is shared in outer parallel too.
20523 (build_outer_var_ref, scan_sharing_clauses,
20524 lower_rec_input_clauses, lower_copyprivate_clauses,
20525 lower_send_clauses, lower_send_shared_vars): Adjust callers.
20526
20527 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
20528 Ira Rosen <irar@il.ibm.com>
20529
20530 * tree-vectorizer.c (free_stmt_vec_info): New function.
20531 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
20532 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
20533 * tree-vectorizer.h (free_stmt_vec_info): Declare.
20534 * tree-vect-transform.c (vectorizable_conversion): Free
20535 vec_oprnds0 if it was allocated.
20536 (vect_permute_store_chain): Remove unused VECs.
20537 (vectorizable_store): Free VECs that are allocated in the..
20538 function.
20539 (vect_transform_strided_load, vectorizable_load): Likewise.
20540 (vect_remove_stores): Simplify the code.
20541 (vect_transform_loop): Move code to vect_remove_stores().
20542 Call vect_remove_stores() and free_stmt_vec_info().
20543
20544 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20545
20546 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
20547 TARGET_HPUX. Revise comment.
20548 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
20549 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
20550 Use sr4 variant of `be' instruction when not generating PIC code.
20551 (attr_length_call): Adjust for above change.
20552
20553 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
20554
20555 * ipa-reference.c (static_execute): Remove module_statics_const and
20556 associated setting code.
20557
20558 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
20559
20560 PR target/35540
20561 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
20562 predicate for operand 1.
20563 (paritysi2_cmp): Use register_operand predicate for operand 2.
20564 Use earlyclobber modifier for operand 1. Remove support for
20565 memory operands.
20566 (paritydi2_cmp): Use register_operand predicate for operand 3.
20567 Use earlyclobber modifier for operand 1. Remove support for
20568 memory operands.
20569
20570 2008-03-11 Paul Brook <paul@codesourcery.com>
20571 Vladimir Prus <vladimir@codesourcery.com>
20572
20573 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
20574 (arm_compute_save_reg0_reg12_mask): Always
20575 check if register 11 must be saved. Always safe hard frame pointer
20576 when frame_pointer_needeed.
20577 (arm_compute_save_reg_mask): Save IP and PC
20578 only with apcs frames.
20579 (arm_output_epilogue): Adjust Thumb2 codepath to
20580 be also invoked and work for ARM non-apcs frames.
20581 (arm_expand_prologue): Don't bother saving IP
20582 for non-apcs frame, since it's not clobbered by
20583 prologue code. Implement non-apcs frame
20584 layout.
20585
20586 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
20587
20588 PR rtl-optimization/35281
20589 * expr.c (convert_move): Use a new pseudo for the intermediate
20590 from_mode->word_mode result.
20591
20592 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
20593
20594 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
20595 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
20596 * toplev.c (compile_file): Don't call it.
20597
20598 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
20599
20600 PR middle-end/35526
20601 * expr.c (store_expr): Call emit_block_move if the mode
20602 of "temp" RTX is BLKmode.
20603
20604 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
20605 Richard Guenther <rguenther@suse.de>
20606
20607 PR tree-optimization/31358
20608 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
20609 the step with a NULL_TREE.
20610 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
20611 to sizetype if type is a pointer type.
20612 (add_candidate_1): Don't convert the base and step to
20613 the generic type if the orginal type is a pointer type.
20614 (add_iv_value_candidates): Use sizetype for the step
20615 if type is a pointer type.
20616 (cand_value_at): Likewise.
20617 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
20618 for pointer types.
20619 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
20620 Don't convert the tem affine to the type.
20621 (add_elt_to_tree): Use sizetype for the step if a pointer.
20622 Use POINTER_PLUS_EXPR for pointers.
20623 (aff_combination_to_tree): Use sizetype for the step if a
20624 pointer.
20625
20626 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
20627
20628 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
20629 Remove commutativity hint.
20630
20631 2008-03-10 Jakub Jelinek <jakub@redhat.com>
20632
20633 PR c/35438
20634 PR c/35439
20635 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
20636 errorneous type. Check that v is a VAR_DECL.
20637
20638 PR middle-end/35099
20639 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
20640
20641 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
20642
20643 PR tree-optimization/35494
20644 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
20645 may be overriden at link and run time.
20646
20647 2008-03-10 Richard Guenther <rguenther@suse.de>
20648
20649 PR tree-optimization/34677
20650 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
20651 (poolify_tree): Likewise.
20652 (modify_expr_template): Likewise.
20653 (poolify_modify_stmt): Likewise.
20654 (insert_fake_stores): Handle all component-ref style stores
20655 in addition to INDIRECT_REF. Also handle complex types.
20656 Do not poolify the inserted load.
20657 (realify_fake_stores): Do not rebuild the tree but only
20658 make it a SSA_NAME copy.
20659 (init_pre): Remove initialzation of modify_expr_template.
20660 Do not allocate modify_expr_node_pool.
20661 (fini_pre): Do not free modify_expr_node_pool.
20662
20663 2008-03-10 Paul Brook <paul@codesourcery.com>
20664
20665 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
20666 to avoid conflicts.
20667
20668 2008-03-10 Paul Brook <paul@codesourcery.com>
20669 Mark Shinwell <shinwell@codesourcery.com>
20670
20671 * config/arm/cortex-r4.md: New.
20672 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
20673 insn attributes.
20674 * config/arm/arm.md: Include cortex-r4.md.
20675 (insn): Add smmls, sdiv and udiv values.
20676 (generic_sched): Don't use generic scheduling for Cortex-R4.
20677 (arm_issue_rate): New function.
20678 (TARGET_SCHED_ISSUE_RATE): Define.
20679
20680 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
20681
20682 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
20683
20684 2008-03-10 Richard Guenther <rguenther@suse.de>
20685
20686 * tree-ssa-pre.c (get_sccvn_value): Simplify.
20687 (compute_avail): Do not add stmt uses to AVAIL_OUT.
20688
20689 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
20690
20691 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
20692 Set default to true.
20693
20694 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20695
20696 * c.opt (Wsynth): Deprecate.
20697 * doc/invoke.texi (Option Summary, Warning Options): Document
20698 -Wno-format-contains-nul.
20699
20700 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
20701
20702 PR target/35496
20703 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
20704 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
20705
20706 2008-03-09 Ira Rosen <irar@il.ibm.com>
20707
20708 * config/rs6000/rs6000.c (builtin_description): Rename vector
20709 left shift operations.
20710 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
20711 (altivec_vsl<VI_char>): Rename to ...
20712 (ashl<mode>3): ... new name.
20713 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
20714 gen_ashlv4si3.
20715 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
20716
20717 2008-03-08 Richard Guenther <rguenther@suse.de>
20718
20719 * coverage.h (tree_coverage_counter_addr): Declare.
20720 * coverage.c (tree_coverage_counter_addr): New function.
20721 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
20722 before using again.
20723 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
20724 (tree_gen_one_value_profiler): Likewise.
20725 (tree_gen_ic_profiler): Likewise.
20726 (tree_gen_average_profiler): Likewise.
20727 (tree_gen_ior_profiler): Likewise.
20728
20729 2008-03-08 Richard Guenther <rguenther@suse.de>
20730
20731 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
20732 (vn_binary_op_insert): Likewise.
20733 (vn_unary_op_lookup): Likewise.
20734 (vn_unary_op_insert): Likewise.
20735 (vn_nary_op_lookup): Declare.
20736 (vn_nary_op_insert): Likewise.
20737 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
20738 and binary hashes, use a single obstack for unary_op_pool
20739 and binary_op_pool.
20740 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
20741 a single struct vn_nary_op_s. Store tree code length and
20742 a variable number of operands.
20743 (struct vn_reference_op_struct): Remove unused op2.
20744 (vn_reference_op_eq): Do not compare op2.
20745 (vn_reference_op_compute_hash): Do not compute hash of op2.
20746 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
20747 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
20748 with vn_nary_op_compute_hash.
20749 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
20750 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
20751 vn_nary_op_lookup.
20752 (vn_unary_op_insert, vn_binary_op_insert): Replace with
20753 vn_nary_op_insert.
20754 (visit_unary_op): Call nary functions.
20755 (visit_binary_op): Likewise.
20756 (process_scc): Adjust for struct vn_tables_s changes.
20757 (allocate_vn_table): Likewise.
20758 (free_vn_table): Likewise.
20759 * tree-vn.c (vn_add): Call nary functions.
20760 (vn_lookup): Likewise.
20761
20762 2008-03-08 Jakub Jelinek <jakub@redhat.com>
20763
20764 PR target/35498
20765 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
20766 wdst back after sync_compare_and_swapqhi_internal.
20767
20768 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
20769
20770 PR target/22152
20771 * config/i386/i386-modes.def (V1DI): New vector mode.
20772 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
20773 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
20774 (MMXMODE248): Ditto.
20775 (MMXMODE): Add V1DI mode.
20776 (mmxvecsize): Change DI mode to V1DI mode.
20777 ("mov<mode>): Use MMXMODEI8 mode iterator.
20778 ("*mov<mode>_internal_rex64"): Ditto.
20779 ("*mov<mode>_internal"): Ditto.
20780 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
20781 ("mmx_sub<mode>3"): Ditto.
20782 ("mmx_adddi3"): Remove insn pattern.
20783 ("mmx_subdi3"): Ditto.
20784 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
20785 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
20786 ("mmx_ashl<mode>3"): Ditto.
20787 ("mmx_lshrdi3"): Remove insn pattern.
20788 ("mmx_ashldi3"): Ditto.
20789 * config/i386/i386.c (classify_argument): Handle V1DImode.
20790 (function_arg_advance_32): Ditto.
20791 (function_arg_32): Ditto.
20792 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
20793 mmx_addv1di3 insn pattern.
20794 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
20795 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
20796 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
20797 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
20798 Remove definitions of built-in functions.
20799 (V1DI_type_node): New node.
20800 (v1di_ftype_v1di_int): Ditto.
20801 (v1di_ftype_v1di_v1di): Ditto.
20802 (v2si_ftype_v2si_si): Ditto.
20803 (v4hi_ftype_v4hi_di): Remove node.
20804 (v2si_ftype_v2si_di): Ditto.
20805 (ix86_init_mmx_sse_builtins): Handle V1DImode.
20806 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
20807 Redefine builtins using def_builtin_const with *_ftype_*_int node.
20808 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
20809 Add new builtins using def_builtin_const.
20810 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
20811 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
20812 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
20813 * config/i386/mmintrin.h (__v1di): New typedef.
20814 (_mm_add_si64): Cast arguments to __v1di type.
20815 (_mm_sub_si64): Ditto.
20816 (_mm_sll_pi16): Cast __count to __v4hi type.
20817 (_mm_sll_pi32): Cast __count to __v2si type.
20818 (_mm_sll_si64): Cast arguments to __v1di type.
20819 (_mm_srl_pi16): Cast __count to __v4hi type.
20820 (_mm_srl_pi32): Cast __count to __v2si type.
20821 (_mm_srl_si64): Cast arguments to __v1di type.
20822 (_mm_sra_pi16): Cast __count to __v4hi type.
20823 (_mm_sra_pi32): Cast __count to __v2si type.
20824 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
20825 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
20826 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
20827 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
20828 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
20829 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
20830 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
20831 (_mm_srai_pi32): Use __builtin_ia32_psradi.
20832 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
20833 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
20834 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
20835 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
20836
20837 2008-03-07 Joseph Myers <joseph@codesourcery.com>
20838
20839 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
20840
20841 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
20842
20843 PR target/35373
20844 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
20845 reg+const addressing for Altivec modes. Don't generate reg+reg
20846 addressing for TFmode or TDmode quantities.
20847
20848 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
20849
20850 * c-common.c (vector_types_convertible_p): Call langhook
20851 instead of comptypes.
20852
20853 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
20854
20855 PR tree-opt/35402
20856 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
20857 integral and scalar float variables which have a
20858 NULL DECL_INITIAL.
20859
20860 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
20861
20862 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
20863 dwarf_register_span hook when emitting unwind information for
20864 register-to-memory saves.
20865 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
20866 (rs6000_frame_related): Remove call to spe_synthesize_frame.
20867
20868 2008-03-06 Jakub Jelinek <jakub@redhat.com>
20869
20870 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
20871 for the same VAR_DECL.
20872
20873 2008-03-06 Tom Tromey <tromey@redhat.com>
20874
20875 * treelang: Delete.
20876 * doc/standards.texi (Standards): Don't mention treelang.
20877 * doc/invoke.texi (Overall Options): Don't mention treelang.
20878 * doc/install.texi (Prerequisites): Don't mention bison or
20879 treelang.
20880 (Configuration): Don't mention treelang.
20881 (Building): Likewise.
20882 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
20883
20884 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
20885
20886 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
20887 word-extractions out of a multi-word object.
20888
20889 2008-03-06 Richard Guenther <rguenther@suse.de>
20890
20891 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
20892 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
20893 result type and precision.
20894 * expr.c (get_inner_reference): Set unsignedp based on the result
20895 type of BIT_FIELD_REF.
20896 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
20897 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
20898 (try_instantiate_multiple_fields): Likewise. Use the correct type
20899 for BIT_FIELD_REF.
20900 (sra_build_assignment): Likewise.
20901 (sra_build_elt_assignment): Likewise.
20902 (sra_explode_bitfield_assignment): Likewise.
20903 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
20904 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
20905 set BIT_FIELD_REF_UNSIGNED.
20906 (vectorizable_load): Likewise.
20907
20908 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
20909
20910 * cse.c (cse_extended_basic_block): Invalidate artificial defs
20911 at bb start.
20912
20913 2008-03-06 Richard Guenther <rguenther@suse.de>
20914
20915 * alias.c (struct alias_set_entry): Move has_zero_child field
20916 to pack with alias_set.
20917
20918 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
20919
20920 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
20921 32bit host.
20922
20923 2008-03-05 Ian Lance Taylor <iant@google.com>
20924
20925 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
20926
20927 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
20928
20929 * fwprop.c (update_df): Support width and offset parameters of
20930 df_ref_create.
20931 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
20932 global_conflicts): Change DF_REF_EXTRACT to either
20933 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
20934 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
20935 * df-scan.c (df_ref_record, df_defs_record,
20936 df_ref_create_structure, df_def_record_1, df_uses_record,
20937 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
20938 df_bb_refs_collect, df_entry_block_defs_collect,
20939 df_exit_block_uses_collect): Support new width and offset fields.
20940 (ref_extract_pool): New storage pool.
20941 (df_free_ref): New function.
20942 (df_reg_chain_unlink, df_free_collection_rec,
20943 df_sort_and_compress_refs): Call df_free_ref.
20944 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
20945 of df_ref_extract.
20946 (df_ref_create_structure): Allocate df_ref_extract if offset and
20947 width fields are used.
20948 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
20949 (df_uses_record): Get offset and width from ZERO_EXTRACT
20950 and SIGN_EXTRACT.
20951 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
20952 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
20953 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
20954 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
20955 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
20956 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
20957 (df_ref_extract): New structure.
20958 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
20959 (df_ref_create): Add width and offset parameters.
20960
20961 2008-03-05 Richard Guenther <rguenther@suse.de>
20962
20963 * tree-ssa-structalias.c (get_constraint_for_component_ref):
20964 Use ranges_overlap_p.
20965 (offset_overlaps_with_access): Rename
20966 to ranges_overlap_p and move ...
20967 * tree-flow-inline.h (ranges_overlap_p): ... here.
20968
20969 * tree.h (get_inner_reference, handled_component_p): Update
20970 comments.
20971
20972 * tree.h (record_component_aliases, get_alias_set,
20973 alias_sets_conflict_p, alias_sets_must_conflict_p,
20974 objects_must_conflict_p): Move declarations ...
20975 * alias.h (record_component_aliases, get_alias_set,
20976 alias_sets_conflict_p, alias_sets_must_conflict_p,
20977 objects_must_conflict_p): ... here.
20978 Include coretypes.h.
20979 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
20980
20981 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
20982
20983 * cfg.c: Include tree-flow.h.
20984 (remove_edge_raw): Call redirect_edge_var_map_clear.
20985 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
20986 * tree-flow-inline.h (redirect_edge_var_map_def): New.
20987 (redirect_edge_var_map_result): New.
20988 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
20989 PENDING_STMT use with redirect_edge_var_map_*.
20990 * tree-ssa.c (edge_var_maps): New definition.
20991 (redirect_edge_var_map_add): New.
20992 (redirect_edge_var_map_clear): New.
20993 (redirect_edge_var_map_dup): New.
20994 (redirect_edge_var_map_vector): New.
20995 (redirect_edge_var_map_destroy): New.
20996 (ssa_redirect_edge): Replace PENDING_STMT use with
20997 redirect_edge_var_map_*.
20998 (flush_pending_stmts): Same.
20999 (delete_tree_ssa): Destroy edge var map.
21000 * tree-flow.h (struct _edge_var_map): New.
21001 Define edge_var_map vector type.
21002 Declare redirect_edge_var_map_* prototypes.
21003 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
21004 * tree-cfg.c (reinstall_phi_args): Replace
21005 PENDING_STMT use with redirect_edge_var_map_*.
21006
21007 2008-03-05 Richard Guenther <rguenther@suse.de>
21008
21009 PR tree-optimization/35472
21010 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
21011 whose single use_stmt has a overlapping set of loaded and
21012 stored symbols as that use_stmt might be a noop assignment then.
21013
21014 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
21015
21016 * gthr-rtems.h: Implement __gthread_mutex_destroy.
21017
21018 2008-03-05 Richard Guenther <rguenther@suse.de>
21019
21020 PR c++/35336
21021 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
21022 should be constants.
21023 * tree-cfg.c (verify_expr): Verify it.
21024 * fold-const.c (fold_truthop): Remove code generating
21025 BIT_FIELD_REFs of structure bases.
21026 (fold_binary): Likewise.
21027 (fold_ternary): Position and size of BIT_FIELD_REFs are
21028 always host integers.
21029 (make_bit_field_ref): Remove.
21030 (optimize_bit_field_compare): Remove.
21031 (all_ones_mask_p): Remove.
21032
21033 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
21034
21035 PR gcc/33009
21036 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
21037 (split_block_and_df_analyze): New. Split basic block and rebuild
21038 dataflow.
21039 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
21040 SPLIT_BLOCK.
21041 (split_pattern_seq): Likewise.
21042 (erase_matching_seqs): Likewise.
21043 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
21044
21045 2008-03-04 Geoff Keating <geoffk@apple.com>
21046
21047 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
21048 declaration and code.
21049 (tree_invalid_nonnegative_warnv_p): Likewise.
21050
21051 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
21052
21053 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
21054 examples. Truncate option-names then causing overfull hbox.
21055
21056 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21057
21058 PR target/35222
21059 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
21060 on hpux10.
21061 * configure: Rebuilt.
21062
21063 2008-03-04 Rafael Espíndola <espindola@google.com>
21064
21065 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
21066 (tree_unary_nonnegative_warnv_p): New.
21067 (tree_binary_nonnegative_warnv_p): New.
21068 (tree_single_nonnegative_warnv_p): New.
21069 (tree_invalid_nonnegative_warnv_p): New.
21070 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
21071
21072 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21073
21074 PR 28322
21075 * opts.c (handle_option): Postpone 'unknown option' errors only for
21076 warning options.
21077
21078 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
21079
21080 PR target/35453
21081 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
21082 (_SIDD_XXX): This.
21083
21084 2008-03-04 Rafael Espíndola <espindola@google.com>
21085
21086 * fold-const.c (tree_unary_nonzero_warnv_p): New.
21087 (tree_binary_nonzero_warnv_p): New.
21088 (tree_single_nonzero_warnv_p): New.
21089 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
21090
21091 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
21092
21093 PR middle-end/35456
21094 * fold-const.c (fold_cond_expr_with_comparison): Prevent
21095 transformations for modes that have signed zeros.
21096 * ifcvt.c (noce_try_abs): Ditto.
21097
21098 2008-03-04 Joseph Myers <joseph@codesourcery.com>
21099
21100 * config/i386/i386.c (override_options): Force
21101 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
21102
21103 2008-03-04 Jan Hubicka <jh@suse.cz>
21104
21105 PR c++/35262
21106 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
21107 in last commit.
21108
21109 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
21110
21111 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
21112 label to probe the stack.
21113
21114 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
21115
21116 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
21117 (__gthr_win32_mutex_destroy): Declare.
21118 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
21119 __gthr_win32_mutex_destroy.
21120 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
21121
21122 2008-03-03 Jan Hubicka <jh@suse.cz>
21123
21124 PR c++/35262
21125 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
21126 aggressive on inlining cold calls.
21127
21128 2008-03-03 Richard Guenther <rguenther@suse.de>
21129
21130 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
21131 struct copies into the expression table.
21132 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
21133 (try_to_simplify): Likewise.
21134 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
21135 integral and pointer arguments which do not change the
21136 precision to NOP_EXPRs.
21137 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
21138 VIEW_CONVERT_EXPR case.
21139
21140 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
21141
21142 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
21143 defined in a loop at depth 0 is invariant.
21144 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
21145 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
21146 be called at loop depth 0.
21147
21148 2008-03-02 Jakub Jelinek <jakub@redhat.com>
21149
21150 PR driver/35420
21151 * gcc.c (process_command): Update copyright notice dates.
21152 * gcov.c (print_version): Likewise.
21153 * gcov-dump.c (print_version): Likewise.
21154 * mips-tfile.c (main): Likewise.
21155 * mips-tdump.c (main): Likewise.
21156
21157 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21158
21159 PR 24924
21160 * c-common.c (flag_permissive): Delete.
21161 (constant_expression_warnings): Check flags first.
21162 (constant_expression_error): New.
21163 * c-common.h (flag_permissive): Delete.
21164 (constant_expression_error): Declare.
21165 * flags.h (flag_permissive): Declare. Update description.
21166 * diagnostic.c (pedwarn): Update.
21167 (permerror): New.
21168 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
21169 (permissive_error_kind): New.
21170 * toplev.c (flag_permissive): Define. Update description.
21171 * toplev.h (permissive_error_kind): Declare.
21172 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
21173 (pedwarn_c90): Use pedantic_warning_kind.
21174 * c-opts.c (c_common_post_options): flag_permissive does not affect
21175 flag_pedantic_errors.
21176
21177 2008-03-02 Joseph Myers <joseph@codesourcery.com>
21178
21179 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
21180 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
21181 __absvsi2, __absvDI2): Use unsigned arithmetic.
21182
21183 2008-03-02 Andi Kleen <ak@suse.de>
21184 Richard Guenther <rguenther@suse.de>
21185
21186 * struct-equiv.c: Remove file.
21187 * cfg_cleanup.c (condjump_equiv_p): Remove.
21188 * Makefile.in (OBJS-common): Remove struct-equiv.o.
21189 (struct-equiv.o): Remove rule.
21190 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
21191 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
21192 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
21193
21194 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
21195
21196 * ifcvt.c (noce_process_if_block): Try to handle only the then
21197 block if the else block exists but isn't suitable.
21198
21199 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
21200
21201 PR gcc/35063
21202 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
21203 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
21204 regression from previous patch.
21205
21206 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
21207
21208 PR gcc/35063
21209 * gthr.h: Add __gthread_mutex_destroy as a function that must be
21210 implemented.
21211 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
21212 * gthr-single.h (__gthread_mutex_destroy): Likewise.
21213 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
21214 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
21215 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
21216 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
21217 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
21218 (__gthread_mutex_destroy_function): Rename to
21219 __gthread_mutex_destroy.
21220 * gthr-dce.h (__gthread_mutex_destroy): Call
21221 pthread_mutex_destroy.
21222 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
21223 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
21224 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
21225
21226 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
21227
21228 * df-scan.c (df_ref_chain_change_bb): Simplify.
21229 (df_insn_change_bb): Add new_bb argument. Simplify. Call
21230 set_block_for_insn if there's any change.
21231 * df.h ((df_insn_change_bb): Fix prototype.
21232 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
21233 df_insn_change_bb, don't call set_block_for_insn.
21234 * emit-rtl.c (reorder_insns): Likewise.
21235 * haifa-sched.c (move_insn): Likewise.
21236
21237 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
21238
21239 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
21240
21241 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
21242
21243 * tree-flow-inline.h (next_readonly_imm_use): Return
21244 NULL_USE_OPERAND_P after the end.
21245
21246 2008-03-01 Richard Guenther <rguenther@suse.de>
21247
21248 PR tree-optimization/35411
21249 * tree-sra.c (sra_build_assignment): Split conversion to
21250 final type to a separate statement if we are not assigning
21251 to a register.
21252
21253 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
21254
21255 * fold-const.c (fold_convertible_p): Correct the logic to follow
21256 that in fold_convert().
21257
21258 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
21259
21260 PR c++/35315
21261 * tree-inline.c (build_duplicate_type): When we make a
21262 duplicate type, make it unique in the canonical types system.
21263
21264 2008-02-29 Tom Tromey <tromey@redhat.com>
21265
21266 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
21267 input_file_stack_history, input_file_stack_restored): Remove.
21268 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
21269 * input.h (struct file_stack): Remove.
21270 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
21271 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
21272 Likewise.
21273 * diagnostic.h (struct diagnostic_context) <last_module>: Change
21274 type.
21275 (diagnostic_last_module_changed): Add 'map' argument.
21276 (diagnostic_set_last_function): Likewise.
21277 * diagnostic.c (undiagnostic_report_current_module): Iterate using
21278 line map, not input_file_stack.
21279 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
21280
21281 2008-02-29 Paul Brook <paul@codesourcery.com>
21282
21283 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
21284
21285 2008-02-29 Paul Brook <paul@codesourcery.com>
21286
21287 * config/arm/ieee754-df.S (muldf3): Use RET macros.
21288
21289 2008-02-29 Richard Guenther <rguenther@suse.de>
21290
21291 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
21292 vn_lookup_or_add.
21293 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
21294 value for comparing for a store match.
21295 (simplify_unary_expression): Do nothing for SSA_NAMEs.
21296 (try_to_simplify): Do not do a full-blown reference lookup.
21297
21298 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
21299
21300 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
21301 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
21302
21303 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
21304
21305 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
21306
21307 * tree-loop-linear.c (try_interchange_loops): Compare memory access
21308 strides against cache sizes.
21309
21310 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
21311
21312 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
21313 constant to fpul.
21314
21315 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
21316
21317 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
21318 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
21319 is smaller than the original promoted value.
21320 (simplify_subreg): If OP is a SUBREG, try to preserve its
21321 SUBREG_PROMOTED_VAR_P information.
21322
21323 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
21324
21325 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
21326 (VN_INFO_GET): Allocate new objects on the obstack.
21327 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
21328 for rpo_numbers_temp, for consistency.
21329 (free_scc_vn): Free the obstack.
21330
21331 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
21332
21333 * doc/invoke.texi: Document -ftree-loop-distribution.
21334 * tree-loop-distribution.c: New.
21335 * tree-pass.h (pass_loop_distribution): New.
21336 * graphds.h (struct graph): Add htab_t indices.
21337 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
21338 * tree-vectorizer.c (rename_variables_in_loop): Extern.
21339 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
21340 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
21341 * tree-data-ref.c (debug_data_dependence_relations): New.
21342 (dump_data_dependence_relation): Also print data references.
21343 (free_data_ref): Extern.
21344 (same_access_functions): Moved...
21345 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
21346 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
21347 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
21348 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
21349 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
21350 (stmts_from_loop): Skip LABEL_EXPR.
21351 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
21352 New.
21353 (build_rdg): Initialize rdg->indices htab.
21354 (free_rdg, stores_from_loop, ref_base_address,
21355 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
21356 have_similar_memory_accesses_1, ref_base_address_1,
21357 remove_similar_memory_refs): New.
21358 * tree-data-ref.h: Depend on tree-chrec.h.
21359 (debug_data_dependence_relations, free_data_ref): Declared.
21360 (same_access_functions): ... here.
21361 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
21362 New.
21363 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
21364 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
21365 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
21366 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
21367 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
21368 rdg_vertex_for_stmt): Declared.
21369 (struct rdg_edge): Add level.
21370 (RDGE_LEVEL): New.
21371 (free_rdg, stores_from_loop, remove_similar_memory_refs,
21372 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
21373 Declared.
21374 (rdg_has_similar_memory_accesses): New.
21375 * tree-vect-analyze.c: Remove unused static decls.
21376 * lambda.h (dependence_level): New.
21377 * common.opt (ftree-loop-distribution): New.
21378 * tree-flow.h (mark_virtual_ops_in_bb,
21379 slpeel_tree_duplicate_loop_to_edge_cfg,
21380 rename_variables_in_loop): Declared.
21381 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
21382 (OBJS-common): Add tree-loop-distribution.o.
21383 (tree-loop-distribution.o): New rule.
21384 * tree-cfg.c (mark_virtual_ops_in_bb): New.
21385 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
21386 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
21387
21388 2008-02-28 Joseph Myers <joseph@codesourcery.com>
21389
21390 PR target/33963
21391 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
21392 other than structures and unions.
21393
21394 2008-02-28 Richard Guenther <rguenther@suse.de>
21395
21396 Revert:
21397 2008-02-26 Richard Guenther <rguenther@suse.de>
21398
21399 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
21400 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
21401 (lookup_decl_from_uid): Declare.
21402 (remove_decl_from_map): Likewise.
21403 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
21404 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
21405 (decl_for_uid_map): New global hashtable mapping DECL_UID
21406 to the decl tree.
21407 (init_ttree): Allocate it.
21408 (insert_decl_to_uid_decl_map): New helper function.
21409 (make_node_stat): Insert new decls into the map.
21410 (copy_node_stat): Likewise.
21411 (lookup_decl_from_uid): New function.
21412 (remove_decl_from_map): Likewise.
21413 (print_decl_for_uid_map_statistics): New helper.
21414 (dump_tree_statistics): Call it.
21415
21416 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
21417 (referenced_var_iterator): Adjust.
21418 (FOR_EACH_REFERENCED_VAR): Adjust.
21419 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
21420 (num_referenced_vars): Adjust.
21421 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
21422 (first_referenced_var): Remove.
21423 (end_referenced_vars_p): Likewise.
21424 (next_referenced_var): Likewise.
21425 (referenced_var_iterator_set): New helper function.
21426 * tree-dfa.c (referenced_var_lookup): Adjust.
21427 (referenced_var_check_and_insert): Likewise.
21428 (remove_referenced_var): Likewise.
21429 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
21430 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21431 (verify_call_clobbering): Likewise.
21432 (verify_memory_partitions): Likewise.
21433 (init_tree_ssa): Allocate bitmap instead of hashtable for
21434 referenced_vars.
21435 (delete_tree_ssa): Adjust.
21436 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
21437 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21438 (compute_tag_properties): Likewise.
21439 (set_initial_properties): Likewise.
21440 (find_partition_for): Likewise.
21441 (update_reference_counts): Likewise.
21442 (dump_may_aliases_for): Likewise.
21443 * tree-ssa-operands.c (add_virtual_operand): Likewise.
21444 (add_call_clobber_ops): Likewise.
21445 (add_call_read_ops): Likewise.
21446 (get_asm_expr_operands): Likewise.
21447 * tree-into-ssa.c (dump_decl_set): Likewise.
21448 (update_ssa): Likewise.
21449 * tree-sra.c (scan_function): Likewise.
21450 (decide_instantiations): Likewise.
21451 (scalarize_parms): Likewise.
21452 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
21453 (dsa_named_for): Likewise.
21454 * tree-ssa-structalias.c (update_alias_info): Likewise.
21455 (merge_smts_into): Likewise.
21456
21457 2008-02-27 David Daney <ddaney@avtrex.com>
21458
21459 PR target/34409
21460 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
21461 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
21462 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
21463 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
21464 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
21465
21466 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
21467
21468 PR target/25477
21469 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
21470 (BUILT_IN_NEXTTOWARD): Remove.
21471 (BUILT_IN_NEXTTOWARDF): Ditto.
21472 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
21473 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
21474
21475 2008-02-27 Tom Tromey <tromey@redhat.com>
21476
21477 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
21478 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
21479
21480 2008-02-27 Jan Beulich <jbeulich@novell.com>
21481
21482 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
21483 update the respective field on newdecl.
21484
21485 2008-02-27 Revital Eres <eres@il.ibm.com>
21486
21487 PR rtl-optimization/34999
21488 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
21489 crossing edges that ends with a call insn.
21490 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
21491 call insn and clear the EDGE_CROSSING flag of the crossing edge
21492 when fixing fallthru edges.
21493
21494 2008-02-27 Richard Guenther <rguenther@suse.de>
21495
21496 PR middle-end/35390
21497 * fold-const.c (fold_unary): Return the correct argument,
21498 converted to the result type.
21499
21500 2008-02-27 Richard Guenther <rguenther@suse.de>
21501
21502 PR middle-end/34971
21503 * expr.c (expand_expr_real_1): Assert on rotates that operate
21504 on partial modes.
21505 * fold-const.c (fold_binary): Use the types precision, not the
21506 bitsize of the mode if folding rotate expressions. Build rotates
21507 only for full modes.
21508
21509 2008-02-27 Jakub Jelinek <jakub@redhat.com>
21510
21511 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
21512 and CPP_PRAGMA_EOL.
21513 * c-pragma.c (pragma_ns_name): New typedef.
21514 (registered_pp_pragmas): New variable.
21515 (c_pp_lookup_pragma): New function.
21516 (c_register_pragma_1): If flag_preprocess_only, do nothing
21517 for non-expanded pragmas, for expanded ones push pragma's
21518 namespace and name into registered_pp_pragmas vector.
21519 (c_invoke_pragma_handler): Register OpenMP pragmas even when
21520 flag_preprocess_only, don't register GCC pch_preprocess
21521 pragma if flag_preprocess_only.
21522 * c-opts.c (c_common_init): Call init_pragma even if
21523 flag_preprocess_only.
21524 * c-pragma.c (c_pp_lookup_pragma): New prototype.
21525 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
21526 cpp_register_pragma if flag_preprocess_only.
21527
21528 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21529
21530 PR c/28800
21531 * c-parser.c (c_parser_translation_unit): Warn for empty
21532 translation unit, not empty source file.
21533
21534 2008-02-26 Paul Brook <paul@codesourcery.com>
21535
21536 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
21537 operand for Thumb-2.
21538 * config/arm/arm.h (reg_class): Add CORE_REGS.
21539 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
21540 (BASE_REG_CLASS): Use CORE_REGS.
21541 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
21542 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
21543 (REGNO_OK_FOR_INDEX_P): Exclude SP.
21544 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
21545 ARM_REGNO_OK_FOR_INDEX_P.
21546 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
21547 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
21548 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
21549 (ldm/stm peepholes): Ditto.
21550 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
21551 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
21552 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
21553 * config/arm/constraints.md: Enable "k" constraint on ARM.
21554
21555 2008-02-27 Ben Elliston <bje@au.ibm.com>
21556
21557 * config/rs6000/rs6000.c: Annotate cache line size field in all
21558 instances of struct processor_costs.
21559
21560 2008-02-26 David Edelsohn <edelsohn@gnu.org>
21561
21562 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
21563 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
21564 jump_bypass): New counters.
21565 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
21566 * dce.c (gate_ud_dce): Same.
21567 (gate_fast_dce): Same.
21568 * dse.c (gate_dse1): New function.
21569 (gate_dse2): New function.
21570 (gate_dse): Merge results of new gate functions.
21571 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
21572 (gate_handle_jump_bypass): Add dbg_cnt.
21573 (gate_handle_gcse): Add dbg_cnt.
21574 * ifcvt.c (gate_handle_if_conversion): Same.
21575 (gate_handle_if_after_combine): Same.
21576 (gate_handle_if_after_reload): Same.
21577 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
21578
21579 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
21580
21581 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
21582 line sizes.
21583 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
21584
21585 2008-02-26 Jason Merrill <jason@redhat.com>
21586
21587 PR c++/35315
21588 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
21589 alone if it's the naming decl for the type's main variant.
21590
21591 2008-02-26 Tom Tromey <tromey@redhat.com>
21592
21593 * system.h (USE_MAPPED_LOCATION): Poison.
21594 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
21595 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
21596 (make_goto_expr_edges): Likewise.
21597 (remove_bb): Likewise.
21598 (execute_warn_function_return): Likewise.
21599 * basic-block.h (struct edge_def) <goto_locus>: Change type to
21600 location_t.
21601 * c-common.c (fname_decl): Remove old location code.
21602 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
21603 location code.
21604 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
21605 variant.
21606 (ASM_INPUT_SOURCE_LOCATION): Likewise.
21607 (gen_rtx_ASM_INPUT): Likewise.
21608 (gen_rtx_ASM_INPUT_loc): Likewise.
21609 (get_rtx_asm_OPERANDS): Remove.
21610 * cfglayout.c (insn_locators_alloc): Remove old location code.
21611 (set_curr_insn_source_location): Likewise.
21612 (curr_insn_locator): Likewise.
21613 * print-tree.c (print_node): Remove old location code.
21614 * tree-mudflap.c (mf_varname_tree): Remove old location code.
21615 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
21616 * cfgexpand.c (expand_gimple_cond_expr): Don't use
21617 location_from_locus.
21618 (construct_exit_block): Remove old location code.
21619 * emit-rtl.c (force_next_line_note): Remove old location code.
21620 * profile.c (branch_prob): Remove old location code.
21621 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
21622 LOC_LINE): Remove old-location variants.
21623 * langhooks.c (lhd_print_error_function): Remove old location
21624 code.
21625 * configure, config.in: Rebuilt.
21626 * configure.ac (--enable-mapped-location): Remove.
21627 * c-decl.c (c_init_decl_processing): Remove old location code.
21628 (finish_function): Likewise.
21629 * recog.c (decode_asm_operands): Remove old location code.
21630 * c-pch.c (c_common_read_pch): Remove old location code.
21631 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
21632 variants.
21633 * gimple-low.c (lower_function_body): Remove old location code.
21634 * toplev.c (unknown_location): Remove.
21635 (push_srcloc): Remove old-location variant.
21636 (process_options): Remove old location code.
21637 (lang_dependent_init): Likewise.
21638 * input.h (UNKNOWN_LOCATION): Move definition.
21639 (location_t): Undeprecate.
21640 (source_locus): Remove.
21641 (location_from_locus): Remove.
21642 (struct location_s): Remove.
21643 Remove all old-location code.
21644 (input_line, input_filename): Remove.
21645 * final.c (final_scan_insn): Remove old location code.
21646 * diagnostic.c (diagnostic_build_prefix): Remove
21647 USE_MAPPED_LOCATION test.
21648 * tree.h (gimple_stmt) <locus>: Now a location_t.
21649 (tree_exp) <locus>: Likewise.
21650 (DECL_IS_BUILTIN): Remove old-location variant.
21651 (annotate_with_file_line, annotate_with_locus): Likewise.
21652 (expr_locus, set_expr_locus): Update.
21653 * tree.c (build1_stat): Remove old location code.
21654 (last_annotated_node): Remove.
21655 (annotate_with_file_line): Remove old-location variant.
21656 (annotate_with_locus): Likewise.
21657 (expr_location): Remove old location code.
21658 (set_expr_location): Likewise.
21659 (expr_has_location): Likewise.
21660 (expr_locus): Likewise.
21661 (set_expr_locus): Likewise.
21662 (expr_filename): Don't use location_from_locus.
21663 (expr_lineno): Likewise.
21664 * rtl-error.c (location_for_asm): Remove old location code.
21665 * c-lex.c (cb_line_change): Remove old location code.
21666 (fe_file_change): Likewise.
21667 (cb_def_pragma): Likewise.
21668 (c_lex_with_flags): Likewise.
21669 * gengtype.c (do_typedef): Don't special-case location types.
21670 (define_location_structures): Remove.
21671 (main): Don't call define_location_structures.
21672 * tree-pretty-print.c (dump_implicit_edges): Remove old location
21673 code.
21674
21675 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21676
21677 PR 26264
21678 * builtins.def (BUILT_IN_STDARG_START): Remove.
21679 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
21680 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
21681 * tree-inline.c (inline_forbidden_p_1): Likewise.
21682
21683 2008-02-26 Richard Guenther <rguenther@suse.de>
21684
21685 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
21686 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
21687 (lookup_decl_from_uid): Declare.
21688 (remove_decl_from_map): Likewise.
21689 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
21690 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
21691 (decl_for_uid_map): New global hashtable mapping DECL_UID
21692 to the decl tree.
21693 (init_ttree): Allocate it.
21694 (insert_decl_to_uid_decl_map): New helper function.
21695 (make_node_stat): Insert new decls into the map.
21696 (copy_node_stat): Likewise.
21697 (lookup_decl_from_uid): New function.
21698 (remove_decl_from_map): Likewise.
21699 (print_decl_for_uid_map_statistics): New helper.
21700 (dump_tree_statistics): Call it.
21701
21702 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
21703 (referenced_var_iterator): Adjust.
21704 (FOR_EACH_REFERENCED_VAR): Adjust.
21705 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
21706 (num_referenced_vars): Adjust.
21707 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
21708 (first_referenced_var): Remove.
21709 (end_referenced_vars_p): Likewise.
21710 (next_referenced_var): Likewise.
21711 (referenced_var_iterator_set): New helper function.
21712 * tree-dfa.c (referenced_var_lookup): Adjust.
21713 (referenced_var_check_and_insert): Likewise.
21714 (remove_referenced_var): Likewise.
21715 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
21716 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21717 (verify_call_clobbering): Likewise.
21718 (verify_memory_partitions): Likewise.
21719 (init_tree_ssa): Allocate bitmap instead of hashtable for
21720 referenced_vars.
21721 (delete_tree_ssa): Adjust.
21722 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
21723 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21724 (compute_tag_properties): Likewise.
21725 (set_initial_properties): Likewise.
21726 (find_partition_for): Likewise.
21727 (update_reference_counts): Likewise.
21728 (dump_may_aliases_for): Likewise.
21729 * tree-ssa-operands.c (add_virtual_operand): Likewise.
21730 (add_call_clobber_ops): Likewise.
21731 (add_call_read_ops): Likewise.
21732 (get_asm_expr_operands): Likewise.
21733 * tree-into-ssa.c (dump_decl_set): Likewise.
21734 (update_ssa): Likewise.
21735 * tree-sra.c (scan_function): Likewise.
21736 (decide_instantiations): Likewise.
21737 (scalarize_parms): Likewise.
21738 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
21739 (dsa_named_for): Likewise.
21740 * tree-ssa-structalias.c (update_alias_info): Likewise.
21741 (merge_smts_into): Likewise.
21742
21743 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21744
21745 PR 34351
21746 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
21747 * c-opts.c (c_common_handle_option): Wall enables
21748 Wvolatile-register-var.
21749 * common.opt: Move Wvolatile-register-var to...
21750 * c.opt: ...here.
21751
21752 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21753
21754 * common.opt (Wlarger-than=): New.
21755 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
21756 -Wlarger-than=.
21757 * opts.c (common_handle_option): Handle -Wlarger-than=.
21758 * optc-gen.awk: Likewise.
21759 * opth-gen.awk: Likewise.
21760 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
21761 * tree-optimize.c (tree_rest_of_compilation): Likewise.
21762
21763 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21764
21765 * c-common.c (match_case_to_enum_1): Add appropriate
21766 OPT_W* parameter to warning.
21767 (c_do_switch_warnings): Likewise.
21768 * c-typeck.c (warning_init): Add one more parameter following
21769 'warning' function.
21770 (push_init_level): Update call to warning_init.
21771 (pop_init_level): Likewise.
21772 (add_pending_init): Likewise.
21773 (output_init_element: Likewise.
21774
21775 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21776
21777 PR 28322
21778 * toplev.c (toplev_main): If there are warnings or error, print
21779 errors for ignored options.
21780 * opts.c (ignored_options): New static variable.
21781 (postpone_unknown_option_error): New.
21782 (print_ignored_options): New.
21783 (handle_option): Postpone errors for unknown -Wno-* options.
21784 * opts.h (print_ignored_options): Declare.
21785
21786 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
21787
21788 * config/mips/mips.md (loadgp_blockage, blockage): Change type
21789 to "ghost".
21790
21791 2008-02-25 Richard Guenther <rguenther@suse.de>
21792
21793 Revert:
21794 2008-02-25 Richard Guenther <rguenther@suse.de>
21795
21796 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
21797 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
21798 (lookup_decl_from_uid): Declare.
21799 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
21800 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
21801 (decl_for_uid_map): New global hashtable mapping DECL_UID
21802 to the decl tree.
21803 (init_ttree): Allocate it.
21804 (insert_decl_to_uid_decl_map): New helper function.
21805 (make_node_stat): Insert new decls into the map.
21806 (copy_node_stat): Likewise.
21807 (lookup_decl_from_uid): New function.
21808 (print_decl_for_uid_map_statistics): New helper.
21809 (dump_tree_statistics): Call it.
21810
21811 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
21812 (referenced_var_iterator): Adjust.
21813 (FOR_EACH_REFERENCED_VAR): Adjust.
21814 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
21815 (num_referenced_vars): Adjust.
21816 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
21817 (first_referenced_var): Remove.
21818 (end_referenced_vars_p): Likewise.
21819 (next_referenced_var): Likewise.
21820 (referenced_var_iterator_set): New helper function.
21821 * tree-dfa.c (referenced_var_lookup): Adjust.
21822 (referenced_var_check_and_insert): Likewise.
21823 (remove_referenced_var): Likewise.
21824 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
21825 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21826 (verify_call_clobbering): Likewise.
21827 (verify_memory_partitions): Likewise.
21828 (init_tree_ssa): Allocate bitmap instead of hashtable for
21829 referenced_vars.
21830 (delete_tree_ssa): Adjust.
21831 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
21832 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21833 (compute_tag_properties): Likewise.
21834 (set_initial_properties): Likewise.
21835 (find_partition_for): Likewise.
21836 (update_reference_counts): Likewise.
21837 (dump_may_aliases_for): Likewise.
21838 * tree-ssa-operands.c (add_virtual_operand): Likewise.
21839 (add_call_clobber_ops): Likewise.
21840 (add_call_read_ops): Likewise.
21841 (get_asm_expr_operands): Likewise.
21842 * tree-into-ssa.c (dump_decl_set): Likewise.
21843 (update_ssa): Likewise.
21844 * tree-sra.c (scan_function): Likewise.
21845 (decide_instantiations): Likewise.
21846 (scalarize_parms): Likewise.
21847 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
21848 (dsa_named_for): Likewise.
21849 * tree-ssa-structalias.c (update_alias_info): Likewise.
21850 (merge_smts_into): Likewise.
21851
21852 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
21853
21854 PR fortran/29549
21855 * doc/invoke.texi (-fcx-limited-range): Document new option.
21856 * toplev.c (process_options): Handle -fcx-fortran-rules.
21857 * common.opt: Add documentation for -fcx-fortran-rules.
21858
21859 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
21860
21861 PR c/35162
21862 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
21863 actual behaviour and C99.
21864
21865 2008-02-26 Ben Elliston <bje@au.ibm.com>
21866
21867 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
21868 (ASM_CPU_POWER6_SPEC): Likewise.
21869 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
21870 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
21871 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
21872
21873 2008-02-25 Richard Guenther <rguenther@suse.de>
21874
21875 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
21876 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
21877 (lookup_decl_from_uid): Declare.
21878 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
21879 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
21880 (decl_for_uid_map): New global hashtable mapping DECL_UID
21881 to the decl tree.
21882 (init_ttree): Allocate it.
21883 (insert_decl_to_uid_decl_map): New helper function.
21884 (make_node_stat): Insert new decls into the map.
21885 (copy_node_stat): Likewise.
21886 (lookup_decl_from_uid): New function.
21887 (print_decl_for_uid_map_statistics): New helper.
21888 (dump_tree_statistics): Call it.
21889
21890 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
21891 (referenced_var_iterator): Adjust.
21892 (FOR_EACH_REFERENCED_VAR): Adjust.
21893 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
21894 (num_referenced_vars): Adjust.
21895 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
21896 (first_referenced_var): Remove.
21897 (end_referenced_vars_p): Likewise.
21898 (next_referenced_var): Likewise.
21899 (referenced_var_iterator_set): New helper function.
21900 * tree-dfa.c (referenced_var_lookup): Adjust.
21901 (referenced_var_check_and_insert): Likewise.
21902 (remove_referenced_var): Likewise.
21903 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
21904 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21905 (verify_call_clobbering): Likewise.
21906 (verify_memory_partitions): Likewise.
21907 (init_tree_ssa): Allocate bitmap instead of hashtable for
21908 referenced_vars.
21909 (delete_tree_ssa): Adjust.
21910 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
21911 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21912 (compute_tag_properties): Likewise.
21913 (set_initial_properties): Likewise.
21914 (find_partition_for): Likewise.
21915 (update_reference_counts): Likewise.
21916 (dump_may_aliases_for): Likewise.
21917 * tree-ssa-operands.c (add_virtual_operand): Likewise.
21918 (add_call_clobber_ops): Likewise.
21919 (add_call_read_ops): Likewise.
21920 (get_asm_expr_operands): Likewise.
21921 * tree-into-ssa.c (dump_decl_set): Likewise.
21922 (update_ssa): Likewise.
21923 * tree-sra.c (scan_function): Likewise.
21924 (decide_instantiations): Likewise.
21925 (scalarize_parms): Likewise.
21926 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
21927 (dsa_named_for): Likewise.
21928 * tree-ssa-structalias.c (update_alias_info): Likewise.
21929 (merge_smts_into): Likewise.
21930
21931 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
21932
21933 PR target/35258
21934 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
21935 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
21936 * alias.h (nonoverlapping_memrefs_p): Likewise.
21937
21938 2008-02-25 Jan Beulich <jbeulich@novell.com>
21939
21940 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
21941 * config/i386/netware-libgcc.exp: Add __bswap?i2,
21942 __emultls_get_address, __emultls_register_common,
21943 __floatundi?f, and _Unwind_GetIPInfo.
21944 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
21945 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
21946 (gen_regparm_prefix): Likewise.
21947 (i386_nlm_encode_section_info): Sync with
21948 config/i386/winnt.c:i386_pe_encode_section_info().
21949 (i386_nlm_maybe_mangle_decl_assembler_name): New.
21950 i386_nlm_mangle_decl_assembler_name): New.
21951 (netware_override_options): New.
21952 * config/i386/netware.h (netware_override_options): Declare.
21953 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
21954 (i386_nlm_mangle_decl_assembler_name): Declare.
21955 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
21956
21957 2008-02-25 Ben Elliston <bje@au.ibm.com>
21958
21959 PR other/32948
21960 * c-decl.c (grokdeclarator): Remove unused local variables
21961 `typedef_type' and `type_as_written'.
21962 * bb-reorder.c
21963 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
21964 unused local variable `has_hot_blocks'.
21965 (fix_crossing_conditional_branches): Remove unused local variable
21966 `prev_bb'.
21967
21968 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
21969
21970 PR middle-end/19984
21971 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
21972 using DEF_C99_BUILTIN.
21973 (BUILT_IN_NANF): Ditto.
21974 (BUILT_IN_NANL): Ditto.
21975
21976 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
21977 Revital Eres <eres@il.ibm.com>
21978
21979 * modulo-sched.c (calculate_must_precede_follow): Address TODO
21980 regarding the order of two dependent insns in the same row.
21981
21982 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
21983
21984 * stor-layout.c (layout_decl): Do not bump the alignment of a
21985 bit-field to more than byte alignment if it is packed.
21986
21987 2008-02-24 David Edelsohn <edelsohn@gnu.org>
21988
21989 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
21990 e300c2 and e300c3.
21991
21992 2008-02-24 Diego Novillo <dnovillo@google.com>
21993
21994 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
21995
21996 PR 33738
21997 * tree-vrp.c (vrp_evaluate_conditional): With
21998 -Wtype-limits, emit a warning when comparing against a
21999 constant outside the natural range of OP0's type.
22000 * c.opt (Wtype-limits): Move ...
22001 * common.opt (Wtype-limits): ... here.
22002
22003 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
22004
22005 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
22006 * config/rs6000/e300c2c3.md: New file.
22007 * config/rs6000/rs6000.c (processor_costs): Add new costs for
22008 e300c2 and e300c3.
22009 (rs6000_override_options): Add e300c2 and e300c3 cases to
22010 processor_target_table. Do not allow usage of Altivec or Spe
22011 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
22012 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
22013 * config/rs6000/rs6000.h (processor_type): Add
22014 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
22015 (ASM_CPU_SPEC): Add e300c2 and e300c3.
22016 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
22017 and ppce300c3. Include e300c2c3.md.
22018
22019 2008-02-23 David Edelsohn <edelsohn@gnu.org>
22020
22021 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
22022 instead of TARGET_STRICT_ALIGN.
22023
22024 2008-02-23 Joseph Myers <joseph@codesourcery.com>
22025
22026 * explow.c (memory_address): Assert that the generated address is
22027 valid.
22028
22029 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
22030
22031 PR target/25477
22032 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
22033 * config/darwin-ppc-ldouble-patch.def: New file.
22034 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
22035 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
22036 SUBTARGET_INIT_BUILTINS if defined.
22037 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
22038 New functions.
22039
22040 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
22041
22042 PR rtl-opt/33512
22043 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
22044 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
22045
22046 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
22047
22048 PR pch/35027
22049 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
22050 file" warning condtional on -Winvalid-PCH.
22051
22052 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
22053
22054 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
22055
22056 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
22057
22058 PR target/22076
22059 PR target/34256
22060 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
22061 prevent reload from using MMX registers.
22062 (*mov<mode>_internal): Ditto.
22063 (*movv2sf_internal_rex64): Ditto.
22064 (*movv2sf_internal): Ditto.
22065
22066 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22067
22068 PR documentation/31569
22069 * doc/install.texi2html: Use makeinfo --no-number-sections.
22070
22071 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
22072
22073 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
22074 ensure that we can address an entire entity > 8 bytes. Don't
22075 generate reg+reg addressing for such data.
22076
22077 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
22078
22079 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
22080 strings when optimizing for size, unless the target cares about
22081 alignment.
22082
22083 2008-02-22 Tom Tromey <tromey@redhat.com>
22084
22085 * regclass.c (current_pass): Remove declaration.
22086
22087 2008-02-22 Anatoly Sokolov <aesok@post.ru>
22088
22089 * config/avr/libgcc.S (__RAMPZ__): Define.
22090 (__do_copy_data): Add for devices with 128KB code memory.
22091
22092 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
22093
22094 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
22095 Use spe_abi.
22096 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
22097
22098 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
22099
22100 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
22101 GENNONACR_REGS.
22102
22103 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22104
22105 PR c/19999
22106 * c-typeck.c (build_binary_op): Warn about floating point
22107 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
22108
22109 2008-02-21 Janis Johnson <janis187@us.ibm.com>
22110
22111 PR target/34526
22112 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
22113 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
22114 add vrsave.
22115 (rs6000_override_options): Set altivec_abi as default, not override,
22116 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
22117 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
22118 is used; use new member spe_abi.
22119 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
22120 spe_abi and altivec_abi.
22121
22122 2008-02-22 Tomas Bily <tbily@suse.cz>
22123
22124 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
22125
22126 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22127
22128 PR bootstrap/35273
22129 * config.build (build_file_translate): Set to `CMD //c' only if
22130 it works.
22131 * Makefile.in (build_file_translate): Improve comment.
22132
22133 2008-02-21 Jan Hubicka <jh@suse.cz>
22134
22135 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
22136 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
22137 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
22138
22139 2008-02-21 Michael Matz <matz@suse.de>
22140
22141 PR target/35264
22142 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
22143
22144 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
22145
22146 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
22147 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
22148 as insn constraint.
22149 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
22150 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
22151 SSE_VEC_FLOAT_MODE_P as insn constraint.
22152 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
22153 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
22154 sse4a_movntdf using MODEF mode iterator.
22155 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
22156 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
22157 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
22158 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
22159 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
22160 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
22161 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
22162
22163 2008-02-21 Richard Guenther <rguenther@suse.de>
22164
22165 * tree.def (PAREN_EXPR): New tree code.
22166 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
22167 and PAREN_EXPR.
22168 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
22169 * expr.c (expand_expr_real_1): Likewise.
22170 * tree-inline.c (estimate_num_insns_1): Likewise.
22171 * tree-complex.c (expand_complex_move): Likewise.
22172 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
22173 as plain x.
22174
22175 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
22176
22177 PR target/35225
22178 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
22179
22180 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
22181
22182 PR target/35190
22183 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
22184
22185 * config/sh/sh.c (find_barrier): Don't go past
22186 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
22187
22188 2008-02-20 DJ Delorie <dj@redhat.com>
22189
22190 * config/h8300/h8300.md (insv): Force source operand to be a register.
22191
22192 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
22193 as a jump, not as a plain insn.
22194
22195 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
22196
22197 * doc/invoke.texi (Warning Options): Add new option
22198 -Wframe-larger-than=.
22199 (-Wframe-larger-than): Document.
22200
22201 * flags.h (warn_frame_larger_than, frame_larger_than_size):
22202 Add declarations for new option variables.
22203
22204 * final.c (final_start_function): Check the frame size
22205 before emission and issue a Wframe-larger-than warning.
22206
22207 * opts.c (warn_frame_larger_than, frame_larger_than_size):
22208 Add definitions for new option variables.
22209 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
22210
22211 * common.opt (Wframe-larger-than=): New option.
22212
22213 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
22214
22215 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
22216 (<sse>_div<mode>3): Ditto.
22217 (<sse>_vmdiv<mode>3): Ditto.
22218 (<sse>_vmsqrt<mode>2): Ditto.
22219 (*smax<mode>3): Ditto.
22220 (sse5_frcz<mode>2): Ditto.
22221 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
22222 as insn constraint.
22223
22224 2008-02-20 Richard Guenther <rguenther@suse.de>
22225
22226 PR middle-end/35265
22227 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
22228 be happy with INTEGRAL_TYPE_P.
22229
22230 2008-02-20 Richard Guenther <rguenther@suse.de>
22231
22232 * fold-const.c (split_tree): Associate floatig-point expressions
22233 if flag_associative_math is set.
22234
22235 2008-02-20 Richard Guenther <rguenther@suse.de>
22236
22237 * tree.h (fold_real_zero_addition_p): Declare.
22238 * fold-const.c (fold_real_zero_addition_p): Export.
22239 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
22240 floating-point operations with zero and one.
22241
22242 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
22243
22244 * doc/install.texi: Correct references to CFLAGS, replacing them
22245 with BOOT_CFLAGS. Document flags used during bootstrap for
22246 target libraries.
22247
22248 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
22249
22250 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
22251 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
22252 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
22253 insn constraint.
22254 (smin<mode>3): Ditto from similar patterns.
22255 (smax<mode>3): Ditto.
22256 (*ieee_smin<mode>3): Ditto.
22257 (*ieee_smax<mode>3): Ditto.
22258 * config/i386/sse.md (sse): New mode attribute.
22259 (mov<mode>): Macroize expander from movv4sf and movv2df using
22260 SSEMODEF2P mode iterator.
22261 (<sse>_movnt<mode>): Ditto from similar patterns. Use
22262 SSE_VEC_FLOAT_MODE_P as insn constraint.
22263 (storent<mode>): Ditto.
22264 (storent<mode>): Macroize expander from storentsf and storentdf using
22265 MODEF mode iterator.
22266 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
22267 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
22268 (abs<mode>2): Ditto from similar patterns.
22269 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
22270 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
22271 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
22272 (<sse>_vmsqrt<mode>2): Ditto.
22273 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
22274 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
22275 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
22276 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
22277 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
22278 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
22279 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
22280 insn constraint.
22281 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
22282 iterator and SSE_FLOAT_MODE_P as insn constraint.
22283 (<sse>_ucomi): Ditto from similar patterns.
22284 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
22285 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
22286 SSE_VEC_FLOAT_MODE_P as insn constraint.
22287 (vcond<mode>): Ditto from similar patterns.
22288 (and<mode>3, *and<mode>3): Ditto.
22289 (<sse>_nand<mode>3): Ditto.
22290 (ior<mode>3, *ior<mode>3): Ditto.
22291 (xor<mode>3, *xor<mode>3): Ditto.
22292 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
22293 iterator and SSE_FLOAT_MODE_P as insn constraint.
22294 (*nand<mode>3): Ditto from similar patterns.
22295 (*ior<mode>3): Ditto.
22296 (*xor<mode>3): Ditto.
22297
22298 2008-02-20 Ira Rosen <irar@il.ibm.com>
22299
22300 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
22301 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
22302 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
22303
22304 2008-02-19 Jan Hubicka <jh@suse.cz>
22305
22306 * predict.c (tree_bb_level_predictions): Remove variable next
22307 mistakely introduced by previous commit.
22308
22309 2008-02-19 Jan Hubicka <jh@suse.cz>
22310
22311 * predict.c (predict_paths_leading_to): Rewrite.
22312 (predict_paths_for_bb): New.
22313 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
22314
22315 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22316
22317 PR bootstrap/35218
22318 * Makefile.in (build_file_translate): New.
22319 (gcc-vers.texi): Use it for translating $(abs_srcdir).
22320 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
22321 * configure.ac (build_file_translate): Substitute it.
22322 * configure: Regenerate.
22323
22324 2008-02-19 Jan Hubicka <jh@suse.cz>
22325
22326 PR rtl-optimization/34408
22327 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
22328 invalid sharing.
22329
22330 2008-02-19 Jan Hubicka <jh@suse.cz>
22331
22332 PR middle-end/28779
22333 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
22334 call_expr.
22335
22336 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
22337
22338 PR Ada/35186
22339 * config/i386/i386-modes.def: Revert the last DI alignment
22340 change until Ada people can look into it.
22341
22342 2008-02-19 Nick Clifton <nickc@redhat.com>
22343
22344 * opts.c (print_specific_help): Fix typo in --help text.
22345
22346 2008-02-19 Jakub Jelinek <jakub@redhat.com>
22347
22348 PR target/35239
22349 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
22350 32-bit inline asm without asm alternatives for host GCC < 3.0.
22351
22352 2008-02-19 Richard Guenther <rguenther@suse.de>
22353
22354 PR tree-optimization/34989
22355 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
22356 Allow propagation to INDIRECT_REF if we can simplify only.
22357
22358 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22359
22360 * c-common.c (warn_for_collisions_1): Use appropriate option when
22361 warning.
22362
22363 2008-02-19 Nick Clifton <nickc@redhat.com>
22364
22365 PR other/31349
22366 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
22367 (handle_options): Fix indentation.
22368 (print_filtered_help): If no language-specific options were
22369 displayed tell the user how to list all the options supported by
22370 the language's front-end.
22371 (print_specific_help): Fix indentation and remove duplicate line.
22372 (common_handle_option): Handle the -v option.
22373 For --help enable the display of undocumented options if the -v
22374 switch has been included on the command line.
22375 For --help= check for overlaps in the arguments between the option
22376 classes and the language names and issue a warning when they
22377 cannot be disambiguated.
22378 * c.opt (v): Pass on to the common option handler.
22379
22380 2008-02-19 Revital Eres <eres@il.ibm.com>
22381
22382 * modulo-sched.c (sms_schedule): Change dump message when
22383 create_ddg function fails.
22384 (try_scheduling_node_in_cycle): Rename row to cycle.
22385 (print_partial_schedule): Rename CYCLE to ROW.
22386
22387 2008-02-19 Christian Bruel <christian.bruel@st.com>
22388 Zdenek Dvorak <ook@ucw.cz>
22389
22390 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
22391
22392 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
22393
22394 PR target/33555
22395 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
22396 (*x86_movdicc_0_m1_se): Ditto.
22397
22398 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
22399
22400 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
22401 (CMPtype): Define as __gcc_CMPtype.
22402 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
22403 (CMPtype): Define as __gcc_CMPtype.
22404
22405 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
22406
22407 Support valgrind 3.3 for --enable-checking=valgrind.
22408 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
22409 here.
22410 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
22411 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
22412 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
22413 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
22414 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
22415 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
22416 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
22417 respectively.
22418 * ggc-zone.c: Similar.
22419 * ggc-page.c: Similar.
22420
22421 2008-02-19 Paul Brook <paul@codesourcery.com>
22422
22423 PR target/35071
22424 * config/arm/ieee754-df.S: Fix do_it typo.
22425 * config/arm/ieee754-sf.S: Fix do_it typo.
22426
22427 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
22428
22429 PR target/35189
22430 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
22431 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
22432 (OPTION_MASK_ISA_SSE_SET): Likewise.
22433 (OPTION_MASK_ISA_SSE2_SET): Likewise.
22434 (OPTION_MASK_ISA_SSE3_SET): Likewise.
22435 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
22436 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
22437 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
22438 (OPTION_MASK_ISA_SSE4_SET): Likewise.
22439 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
22440 (OPTION_MASK_ISA_SSE5_SET): Likewise.
22441 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
22442 (OPTION_MASK_ISA_MMX_UNSET): Updated.
22443 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
22444 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
22445 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
22446 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
22447 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
22448 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
22449 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
22450 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
22451 (OPTION_MASK_ISA_SSE4): Removed.
22452 (ix86_handle_option): Turn on bits in ix86_isa_flags and
22453 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
22454 (override_options): Don't turn on implied SSE/MMX bits in
22455 ix86_isa_flags.
22456
22457 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
22458
22459 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
22460 32bit host.
22461
22462 2008-02-18 Joey Ye <joey.ye@intel.com>
22463
22464 PR middle-end/34921
22465 * tree-nested.c (insert_field_into_struct): Set type alignment
22466 to field alignment if the former is less than the latter.
22467
22468 2008-02-18 Jakub Jelinek <jakub@redhat.com>
22469
22470 * BASE-VER: Set to 4.4.0.
22471
22472 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22473
22474 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
22475 * doc/cfg.texi: Likewise.
22476 * doc/extend.texi: Likewise.
22477 * doc/gty.texi: Likewise.
22478 * doc/invoke.texi: Likewise.
22479 * doc/loop.texi: Likewise.
22480 * doc/md.texi: Likewise.
22481 * doc/passes.texi: Likewise.
22482 * doc/rtl.texi: Likewise.
22483 * doc/sourcebuild.texi: Likewise.
22484 * doc/tm.texi: Likewise.
22485 * doc/tree-ssa.texi: Likewise.
22486
22487 2008-02-17 Richard Guenther <rguenther@suse.de>
22488
22489 PR middle-end/35227
22490 * tree-complex.c (init_parameter_lattice_values): Handle parameters
22491 without default definition.
22492
22493 2008-02-17 Richard Guenther <rguenther@suse.de>
22494
22495 PR tree-optimization/35231
22496 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
22497 if A | B != 1.
22498
22499 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
22500
22501 Revert:
22502 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
22503 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
22504 libgcc_cmp_return mode.
22505
22506 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22507
22508 PR c/28368
22509 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
22510
22511 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
22512
22513 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
22514 multilibs.
22515
22516 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22517
22518 * doc/c-tree.texi: Use `@.' where appropriate.
22519 * doc/extend.texi: Likewise.
22520 * doc/install.texi: Likewise.
22521 * doc/invoke.texi: Likewise.
22522 * doc/loop.texi: Likewise.
22523 * doc/makefile.texi: Likewise.
22524 * doc/md.texi: Likewise.
22525 * doc/passes.texi: Likewise.
22526 * doc/standards.texi: Likewise.
22527 * doc/tm.texi: Likewise.
22528
22529 2008-02-15 Jakub Jelinek <jakub@redhat.com>
22530
22531 PR middle-end/35196
22532 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
22533 in entry_bb.
22534 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
22535 rather than in entry_bb.
22536
22537 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
22538
22539 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
22540 libgcc_cmp_return mode.
22541
22542 2008-02-15 Jakub Jelinek <jakub@redhat.com>
22543
22544 PR middle-end/35130
22545 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
22546 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
22547
22548 2008-02-15 Richard Guenther <rguenther@suse.de>
22549 Zdenek Dvorak <ook@ucw.cz>
22550
22551 PR tree-optimization/35164
22552 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
22553 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
22554 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
22555 Only propagate addresses which do not have abnormal SSA_NAMEs
22556 in their operands.
22557
22558 2008-02-15 Joseph Myers <joseph@codesourcery.com>
22559
22560 PR target/35088
22561 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
22562
22563 2008-02-15 Jan Hubicka <jh@suse.cz>
22564
22565 PR middle-end/35149
22566 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
22567
22568 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
22569
22570 PR middle-end/34621
22571 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
22572 when calculating alignment_pad.
22573
22574 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
22575
22576 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
22577 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
22578 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
22579 and STACK_BOUNDARY define.
22580
22581 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
22582
22583 PR preprocessor/35061
22584 * c-pragma.c (handle_pragma_pop_macro): Check that
22585 pushed_macro_table has been allocated.
22586
22587 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
22588
22589 PR middle-end/35136
22590 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
22591 (force_gimple_operand): Likewise.
22592 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
22593 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
22594 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
22595 (find_interesting_uses_address): Check addressability and alignment
22596 of the base expression only after substituting bases of IVs into it.
22597
22598 2008-02-14 Michael Matz <matz@suse.de>
22599
22600 PR target/34930
22601 * function.c (instantiate_virtual_regs_in_insn): Reload address
22602 before falling back to reloading the whole operand.
22603
22604 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
22605
22606 * config/s390/s390.c (s390_mainpool_start): Emit the pool
22607 before the first section switch note.
22608
22609 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22610
22611 * doc/bugreport.texi: Update copyright years.
22612 * doc/c-tree.texi: Likewise.
22613 * doc/cfg.texi: Likewise.
22614 * doc/cpp.texi: Likewise.
22615 * doc/cppinternals.texi: Likewise.
22616 * doc/fragments.texi: Likewise.
22617 * doc/frontends.texi: Likewise.
22618 * doc/gcc.texi: Likewise.
22619 * doc/gty.texi: Likewise.
22620 * doc/hostconfig.texi: Likewise.
22621 * doc/implement-c.texi: Likewise.
22622 * doc/libgcc.texi: Likewise.
22623 * doc/loop.texi: Likewise.
22624 * doc/makefile.texi: Likewise.
22625 * doc/options.texi: Likewise.
22626 * doc/passes.texi: Likewise.
22627 * doc/rtl.texi: Likewise.
22628 * doc/sourcebuild.texi: Likewise.
22629 * doc/standards.texi: Likewise.
22630 * doc/tree-ssa.texi: Likewise.
22631 * doc/trouble.texi: Likewise.
22632
22633 * doc/extend.texi: Use @: or add comma where appropriate.
22634 * doc/invoke.texi: Likewise.
22635 * doc/tm.texi: Likewise.
22636
22637 2008-02-14 Alan Modra <amodra@bigpond.net.au>
22638
22639 PR target/34393
22640 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
22641 to a reg.
22642
22643 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
22644
22645 * doc/md.texi (clz, ctz): Add reference.
22646 * doc/rtl.texi (clz, ctz): Likewise.
22647
22648 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22649
22650 PR other/35148
22651 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
22652 srcdir.
22653
22654 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
22655
22656 * config/s390/s390.c (struct constant_pool): New field
22657 emit_pool_after added.
22658 (s390_mainpool_start): Set the emit_pool_after flag according
22659 to the section switch notes.
22660 (s390_mainpool_finish): Consider emit_pool_after when emitting
22661 the literal pool at the end of the function.
22662 (s390_chunkify_start): Force literal pool splits at section
22663 switch notes.
22664
22665 2008-02-13 Michael Matz <matz@suse.de>
22666
22667 PR debug/35065
22668 * var-tracking.c (clobber_variable_part): Correctly traverse the
22669 list.
22670
22671 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22672
22673 PR 29673
22674 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
22675 Add -fdump-ipa-inline.
22676 * tree-dump.c (dump_files): Remove tree-inlined dump.
22677 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
22678
22679 2008-02-12 Richard Guenther <rguenther@suse.de>
22680
22681 PR tree-optimization/35171
22682 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
22683 default defs.
22684
22685 2008-02-12 Richard Guenther <rguenther@suse.de>
22686
22687 PR middle-end/35163
22688 * fold-const.c (fold_widened_comparison): Use get_unwidened in
22689 value-preserving mode. Disallow final truncation.
22690
22691 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
22692
22693 PR middle-end/35136
22694 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
22695 code from here to...
22696 (force_gimple_operand): ...here.
22697
22698 2008-02-12 Jakub Jelinek <jakub@redhat.com>
22699
22700 PR c++/35144
22701 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
22702 non-compatible pointers.
22703 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
22704 different FIELD_DECLs, try harder by comparing field offsets, sizes
22705 and types.
22706
22707 PR inline-asm/35160
22708 * function.c (match_asm_constraints_1): Don't replace the same input
22709 multiple times.
22710
22711 2008-02-12 Anatoly Sokolov <aesok@post.ru>
22712
22713 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
22714 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
22715 (expand_epilogue): Restore RAMPZ register.
22716 * config/avr/avr.md (RAMPZ_ADDR): New constant.
22717
22718 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
22719
22720 * config/i386/cygwin.asm: (__alloca): Correct calling
22721 convention and alignment.
22722 (__chkstk): Force 8 byte stack alignment.
22723
22724 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
22725 Richard Guenther <rguenther@suse.de>
22726
22727 PR tree-optimization/33992
22728 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
22729 the zero we compare against.
22730
22731 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
22732
22733 PR libfortran/35063
22734 * gthr-win32.h (__gthread_mutex_destroy_function): New function
22735 to CloseHandle after unlocking to prevent accumulation of handle
22736 count.
22737
22738 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22739
22740 PR middle_end/34150
22741 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
22742 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
22743 and update LABEL_NUSES during and after reload.
22744
22745 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
22746
22747 PR middle-end/34627
22748 * combine.c (simplify_if_then_else): Make sure the comparison is
22749 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
22750
22751 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
22752
22753 PR bootstrap/35051
22754 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
22755 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
22756 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
22757 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
22758 * tree.h (get_type_static_bounds): Likewise.
22759
22760 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22761
22762 * doc/invoke.texi (Option Summary, C++ Dialect Options)
22763 (Objective-C and Objective-C++ Dialect Options, Warning Options):
22764 Make -Wfoo language annotations match what the compiler outputs.
22765
22766 2008-02-08 Sa Liu <saliu@de.ibm.com>
22767
22768 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
22769 intrinsics spu_convts, spu_convtu, spu_convtf.
22770
22771 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
22772
22773 * doc/extend.texi (Function Attributes) <noinline>: Mention
22774 asm ("") as method to keep calls.
22775
22776 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22777
22778 PR other/32754
22779 * doc/options.texi (Options): Replace references to opts.sh with
22780 optc-gen.awk.
22781 * opts-common.c: Likewise.
22782 * optc-gen.awk: Likewise.
22783
22784 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
22785
22786 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
22787
22788 2008-02-07 Richard Henderson <rth@redhat.com>
22789
22790 PR rtl-opt/33410
22791 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
22792 EXPR_LIST for the REG_EQUAL instead of a comparison with a
22793 funny mode.
22794
22795 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
22796
22797 PR tree-optimization/35085
22798 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
22799 for operand entry oe2 in addition to operand entry oe3 in order to
22800 expose more opportunities for vectorizer sum reduction.
22801
22802 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22803
22804 PR other/35107
22805 * Makefile.in (LIBS): Remove $(GMPLIBS).
22806 (cc1-dummy, cc1): Add $(GMPLIBS).
22807
22808 2008-02-06 Jan Hubicka <jh@suse.cz>
22809
22810 PR target/23322
22811 * i386.md (moddf_integer): Do not produce partial memory stalls for
22812 targets where it hurts.
22813
22814 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
22815
22816 PR target/35083
22817 * optabs.c (expand_float): Do not check for decimal modes when
22818 expanding unsigned integer through signed conversion.
22819
22820 2008-02-06 Nick Clifton <nickc@redhat.com>
22821
22822 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
22823 inside the clobber with a match_operand and duplicated operand
22824 number in the constraint.
22825 (ineqbranchsi): Delete redundant comment.
22826
22827 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
22828
22829 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
22830 builtin_define ("__USE_INIT_FINI__").
22831 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
22832 -msx multilibs.
22833 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
22834
22835 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22836
22837 PR documentation/30330
22838 * doc/invoke.texi (C++ Dialect Options)
22839 (Objective-C and Objective-C++ Dialect Options, Warning Options):
22840 For each warning option -Wfoo that allows -Wno-foo, ensure both
22841 -Wfoo and -Wno-foo are listed in the option index. Fix index
22842 entry of -Wswitch-default, index -Wnormalized= including the
22843 `=', and -Wlarger-than-@var{len} including @var{len}.
22844
22845 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
22846
22847 * config/i386/i386.md (floatunssisf2): Use
22848 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
22849 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
22850 Macroize expander using MODEF mode iterator.
22851
22852 2008-02-05 Diego Novillo <dnovillo@google.com>
22853
22854 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
22855
22856 PR 33738
22857 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
22858
22859 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22860
22861 PR other/35070
22862 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
22863
22864 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
22865
22866 PR target/35084
22867 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
22868 to indicate if a message should be generated.
22869 (init_cumulative_args): Updated.
22870 (function_value_32): Likewise.
22871
22872 2008-02-05 Joseph Myers <joseph@codesourcery.com>
22873
22874 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
22875
22876 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
22877
22878 PR target/35083
22879 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
22880 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
22881
22882 2008-02-04 Diego Novillo <dnovillo@google.com>
22883
22884 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
22885
22886 PR 33738
22887 * tree-vrp.c (vrp_evaluate_conditional): With
22888 -Wtype-limits, emit a warning when comparing against a
22889 constant outside the natural range of OP0's type.
22890
22891 2008-02-04 Richard Guenther <rguenther@suse.de>
22892
22893 PR middle-end/33631
22894 * expr.c (count_type_elements): Give for unions instead of
22895 guessing.
22896
22897 2008-02-04 Richard Guenther <rguenther@suse.de>
22898
22899 PR middle-end/35043
22900 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
22901 to TYPE_DOMAINs base type instead of using bitsizetype here.
22902
22903 2008-02-03 Jason Merrill <jason@redhat.com>
22904
22905 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
22906
22907 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22908
22909 PR other/29972
22910 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
22911 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
22912 (RS/6000 and PowerPC Options): Fix typos and markup.
22913 * doc/passes.texi (Tree-SSA passes): Likewise.
22914
22915 2008-02-02 Michael Matz <matz@suse.de>
22916
22917 PR target/35045
22918 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
22919 from record_last_reg_set_info.
22920 (record_last_reg_set_info): Take an RTX argument, iterate over all
22921 constituent hardregs.
22922 (record_last_set_info, record_opr_changes): Change calls to
22923 new signature or to record_last_reg_set_info_regno.
22924
22925 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
22926
22927 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
22928
22929 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
22930
22931 PR rtl-optimization/34773
22932 * reg-notes.def (EQUAL): Mention significance of combination of
22933 REG_EQUAL and REG_RETVAL.
22934 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
22935 insn that has a REG_RETVAL.
22936
22937 2008-02-01 Roger Sayle <roger@eyesopen.com>
22938
22939 PR bootstrap/33781
22940 * configure.ac (--enable-fixed-point): Disable unless explicitly
22941 requested on IRIX.
22942 * configure: Regenerate.
22943
22944 2008-02-01 Richard Guenther <rguenther@suse.de>
22945
22946 PR other/35042
22947 * invoke.texi (-finline-limit): Remove no longer true parts
22948 of the documentation. Note that there is no default value.
22949
22950 2008-02-01 Andrew Pinski <pinskia@gmail.com>
22951 Mark Mitchell <mark@codesourcery.com>
22952 Ben Elliston <bje@au.ibm.com>
22953
22954 PR c/29326
22955 * doc/extend.texi (Other Builtins): Document.
22956
22957 2008-01-31 Tom Browder <tom.browder@gmail.com>
22958
22959 * doc/c-tree.texi (Types): Fix grammar.
22960 (Expression trees): Ditto.
22961 * doc/passes.texi (Tree-SSA passes): Ditto.
22962
22963 * doc/configterms.texi (Configure Terms): Fix typo.
22964 * doc/cpp.texi (Common Predefined Macros): Ditto.
22965 * doc/md.texi (Machine Constraints): Ditto.
22966
22967 * doc/makefile.texi (Makefile): Add comma.
22968
22969 2008-01-31 Tom Browder <tom.browder@gmail.com>
22970 Gerald Pfeifer <gerald@pfeifer.com>
22971
22972 * doc/sourcebuild.texi (Front End): Remove references to CVS
22973 and CVSROOT/modules.
22974 (Texinfo Manuals): Replace reference to CVS by one to SVN.
22975 (Back End): Remove reference to CVS.
22976
22977 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
22978
22979 PR target/34900
22980 * config/mips/mips.c (gen_load_const_gp): New function, taking a
22981 comment from...
22982 (mips16_gp_pseudo_reg): ...here.
22983 * config/mips/mips.md (load_const_gp): Replace with...
22984 (load_const_gp_<mode>): ...this :P-based insn.
22985
22986 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22987
22988 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
22989 options. Minor fixes.
22990 (-std): Move reference to standards closer to where language
22991 standards are first mentioned.
22992
22993 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
22994
22995 PR rtl-optimization/34995
22996 * reload.c (alternative_allows_const_pool_ref): Take an rtx
22997 parameter and return a bool. If the rtx parameter is nonnull,
22998 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
22999 (find_reloads): Update call accordingly. Pass the new operand
23000 if it needed no address reloads, otherwise pass null.
23001
23002 2008-01-30 Richard Henderson <rth@redhat.com>
23003
23004 PR c/34993
23005 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
23006 for unbounded arrays.
23007
23008 2008-01-30 Silvius Rus <rus@google.com>
23009
23010 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
23011
23012 2008-01-30 Jan Hubicka <jh@suse.cz>
23013
23014 PR target/34982
23015 * i386.c (init_cumulative_args): Use real function declaration when
23016 calling locally.
23017
23018 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
23019
23020 PR rtl-optimization/34998
23021 * global.c (build_insn_chain): Treat non-subreg_lowpart
23022 SUBREGs of pseudos as clobbering all the words covered by the
23023 SUBREG, not just all the bytes.
23024 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
23025 original df_ref rather than an extract parameter.
23026 (global_conflicts): Update call accordingly.
23027
23028 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
23029
23030 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
23031 the overflow check to make it easier to read.
23032 (__fixtfdi): Change the type of the ll member in union
23033 long_double to UDItype_x.
23034
23035 2008-01-30 Jakub Jelinek <jakub@redhat.com>
23036
23037 PR middle-end/34969
23038 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
23039 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
23040 * tree-inline.c (fold_marked_statements): Call
23041 cgraph_update_edges_for_call_stmt if folding a call statement.
23042 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
23043 debug_generic_stmt calls, reset it back afterwards.
23044
23045 PR c/35017
23046 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
23047 static decls.
23048 * c-typeck.c (build_external_ref): Don't pedwarn about
23049 static vars in current function's scope.
23050
23051 2008-01-29 Joseph Myers <joseph@codesourcery.com>
23052
23053 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
23054
23055 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
23056
23057 PR c/35002
23058 * ipa-struct-reorg.c: Fix spelling.
23059 * params.def: Ditto.
23060
23061 2008-01-29 Richard Guenther <rguenther@suse.de>
23062
23063 PR middle-end/35006
23064 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
23065 field.
23066 * tree-inline.c (remap_type): Increment remapping_type_depth
23067 around remapping types.
23068 (copy_body_r): Only add referenced variables if they are referenced
23069 from code, not types.
23070
23071 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
23072
23073 PR c++/34055
23074 PR c++/34103
23075 PR c++/34219
23076 PR c++/34606
23077 PR c++/34753
23078 PR c++/34754
23079 PR c++/34755
23080 PR c++/34919
23081 PR c++/34961
23082 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
23083 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
23084
23085 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
23086
23087 PR target/34412
23088 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
23089 pointer for tiny stack.
23090
23091 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
23092
23093 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
23094
23095 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
23096
23097 * config/vx-common.h: Fix typo in comment.
23098
23099 2008-01-28 Ian Lance Taylor <iant@google.com>
23100
23101 PR c++/34862
23102 PR c++/33407
23103 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
23104 coalesce pointers if they have different DECL_NO_TBAA_P values.
23105 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
23106 between variables with different DECL_NO_TBAA_P values.
23107
23108 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
23109
23110 PR 31535
23111 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
23112 are not legitimate small data references on SPE targets.
23113
23114 2008-01-28 David Daney <ddaney@avtrex.com>
23115
23116 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
23117
23118 2008-01-28 David Daney <ddaney@avtrex.com>
23119
23120 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
23121
23122 2008-01-27 Joseph Myers <joseph@codesourcery.com>
23123
23124 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
23125 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
23126 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
23127 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
23128 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
23129 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
23130 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
23131 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
23132
23133 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
23134
23135 * basic-block.h (condjump_equiv_p): Fix comment.
23136
23137 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
23138
23139 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
23140 print_generic_stmt_indented): Fix comment.
23141
23142 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
23143
23144 * configure.ac (__stack_chk_fail): Add detecion for availability
23145 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
23146 * configure: Regenerate.
23147
23148 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
23149
23150 PR middle-end/34688
23151 * final.c (output_addr_const): Handle TRUNCATE.
23152
23153 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
23154
23155 PR target/34711
23156 * tree-ssa-loop-ivopts.c (comp_cost): New type.
23157 (zero_cost, infinite_cost): New constants.
23158 (struct cost_pair): Change type of cost to comp_cost.
23159 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
23160 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
23161 New functions.
23162 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
23163 split_address_cost, ptr_difference_cost, difference_cost,
23164 get_computation_cost_at, get_computation_cost,
23165 determine_use_iv_cost_generic, determine_use_iv_cost_address,
23166 determine_use_iv_cost_condition, determine_use_iv_costs,
23167 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
23168 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
23169 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
23170 Change type of cost to comp_cost.
23171 (determine_iv_cost): Increase cost of non-original ivs, instead
23172 of decreasing the cost of original ones.
23173 (get_address_cost): Indicate the complexity of the addressing mode
23174 in comp_cost.
23175 (try_add_cand_for): Prefer using ivs not specific to some object.
23176 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
23177
23178 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
23179 Janis Johnson <janis187@us.ibm.com>
23180
23181 PR target/34814
23182 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
23183 (TARGET_INSTANTIATE_DECLS): Likewise.
23184 * target.h (expand_to_rtl_hook): New target hook.
23185 (instantiate_decls): Likewise.
23186 * function.c (instantiate_decl): Make non-static. Rename to...
23187 (instantiate_decl_rtl): ... this.
23188 (instantiate_expr): Use instantiate_decl_rtl.
23189 (instantiate_decls_1): Likewise.
23190 (instantiate_decls): Likewise.
23191 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
23192 * function.h (instantiate_decl_rtl): Add prototype.
23193 * cfgexpand.c (target.h): New include.
23194 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
23195 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
23196 (TARGET_INSTANTIATE_DECLS): Likewise.
23197 (TARGET_INITIALIZER): New target hooks added.
23198 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
23199 New prototype.
23200 * config/rs6000/rs6000.c (tree-flow.h): New include.
23201 (machine_function): Add sdmode_stack_slot field.
23202 (rs6000_alloc_sdmode_stack_slot): New function.
23203 (rs6000_instantiate_decls): Likewise.
23204 (rs6000_secondary_memory_needed_rtx): Likewise.
23205 (rs6000_check_sdmode): Likewise.
23206 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
23207 (TARGET_INSTANTIATE_DECLS): Likewise.
23208 (rs6000_hard_regno_mode_ok): Allow SDmode.
23209 (num_insns_constant): Likewise. Handle _Decimal32 constants.
23210 (rs6000_emit_move): Handle SDmode.
23211 (function_arg_advance): Likewise.
23212 (function_arg): Likewise.
23213 (rs6000_gimplify_va_arg): Likewise. Add special handling of
23214 SDmode var args for 32-bit compiles.
23215 (rs6000_secondary_reload_class): Handle SDmode.
23216 (rs6000_output_function_epilogue): Likewise.
23217 (rs6000_function_value): Simplify if statement.
23218 (rs6000_libcall_value): Likewise.
23219 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
23220 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
23221 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
23222 (movsd_hardfloat): New define_insn.
23223 (movsd_softfloat): Likewise.
23224 (movsd_store): Likewise.
23225 (movsd_load): Likewise.
23226 (extendsddd2): Likewise.
23227 (extendsdtd2): Likewise.
23228 (truncddsd2): Likewise.
23229 (movdd_hardfloat64): Fixup comment.
23230 (UNSPEC_MOVSD_LOAD): New constant.
23231 (UNSPEC_MOVSD_STORE): Likewise.
23232
23233 2008-01-26 Jakub Jelinek <jakub@redhat.com>
23234
23235 PR c++/34965
23236 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
23237 TRUTH_XOR_EXPR.
23238 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
23239 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
23240 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
23241 and TRUTH_XOR_EXPR.
23242
23243 2008-01-26 David Edelsohn <edelsohn@gnu.org>
23244
23245 PR target/34794
23246 * config.gcc: Separate AIX 5.3 from AIX 6.1.
23247 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
23248 __LONGDOUBLE128 too.
23249 * config/rs6000/aix61.h: New file.
23250
23251 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
23252
23253 PR rtl-optimization/34959
23254 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
23255 popcount and parity rtxes the same mode as their operand.
23256 Truncate or extend the result to the return value's mode
23257 if necessary.
23258
23259 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
23260
23261 PR target/34981
23262 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
23263 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
23264 to GOT_VERSION_REGNUM.
23265 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
23266 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
23267 * config/mips/mips.c (mips_emit_call_insn): New function.
23268 (mips_call_tls_get_addr): Call mips_expand_call directly.
23269 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
23270 emit_call_insn.
23271 (mips16_build_call_stub): Likewise. Return the call insn or null.
23272 (mips_expand_call): Update the call to mips16_build_call_stub
23273 accordingly and a remove redundant condition. Assert that MIPS16
23274 stubs do not use lazy binding. Use mips_emit_call_insn and return
23275 the call insn.
23276 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
23277 TARGET_USE_GOT.
23278 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
23279 (mips_avoid_hazard): Remove hazard_set handling.
23280 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
23281 (UNSPEC_RESTORE_GP): ...this.
23282 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
23283 (FAKE_CALL_REGNO): Rename to...
23284 (GOT_VERSION_REGNUM): ...this.
23285 (type): Add "ghost" value. Add an associated insn reservation.
23286 (hazard_set): Remove.
23287 (exception_receiver): Rename to...
23288 (restore_gp): ...this and update the unspec identifier accordingly.
23289 (exception_receiver, nonlocal_got_receiver): New expanders.
23290 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
23291 FAKE_CALL_REGNO. Remove hazard_set attribute.
23292 (set_got_version, update_got_version): New patterns.
23293
23294 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
23295
23296 PR target/34970
23297 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
23298
23299 2008-01-25 Joseph Myers <joseph@codesourcery.com>
23300
23301 PR other/31955
23302 * doc/install.texi2html: Generate gcc-vers.texi.
23303
23304 2008-01-25 DJ Delorie <dj@redhat.com>
23305
23306 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
23307
23308 2008-01-25 Joseph Myers <joseph@codesourcery.com>
23309
23310 * config/c4x: Remove directory.
23311 * config.gcc (crx-*, mt-*): Mark obsolete.
23312 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
23313 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
23314 sh-*-rtemscoff*): Remove cases.
23315 * defaults.h (C4X_FLOAT_FORMAT): Remove.
23316 * real.c (encode_c4x_single, decode_c4x_single,
23317 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
23318 c4x_extended_format): Remove.
23319 * real.h (c4x_single_format, c4x_extended_format): Remove.
23320 * doc/extend.texi (interrupt, naked): Remove mention of attributes
23321 on C4x.
23322 (Pragmas): Remove comment about c4x pragmas.
23323 * doc/install.texi (c4x): Remove target-specific instructions.
23324 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
23325 * doc/md.texi (Machine Constraints): Remove C4x documentation.
23326 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
23327 refer to C4x source files as examples.
23328 (C4X_FLOAT_FORMAT): Remove documentation.
23329
23330 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
23331
23332 * config/bfin/bfin.c (override_options): Reorder tests so that
23333 flag_pic gets enabled for -msep-data.
23334
23335 2008-01-25 Richard Guenther <rguenther@suse.de>
23336
23337 PR middle-end/32244
23338 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
23339 to its bitfield precision if required.
23340
23341 2008-01-25 Jakub Jelinek <jakub@redhat.com>
23342
23343 PR middle-end/33880
23344 * tree-nested.c (walk_omp_for): New function.
23345 (convert_nonlocal_reference, convert_local_reference): Call
23346 walk_omp_for on OMP_FOR.
23347 (convert_call_expr): Call walk_body on OMP_FOR's
23348 OMP_FOR_PRE_INIT_BODY.
23349
23350 2008-01-25 Richard Guenther <rguenther@suse.de>
23351
23352 PR tree-optimization/34966
23353 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
23354 default defs and PHI_NODEs we have to insert after the
23355 defining statement.
23356
23357 2008-01-24 Nick Clifton <nickc@redhat.com>
23358
23359 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
23360 Provide a default definition.
23361 (LIBGCC2_UNITS_PER_WORD): Likewise.
23362
23363 * config/stormy16/stormy16.c: Include df.h for the prototype
23364 for df_regs_ever_live_p.
23365 (xstormy16_expand_builtin_va_start): Convert the stack offset
23366 into a component_ref and then use POINTER_PLUS_EXPR to add it
23367 to the incoming_virtual_args_rtx.
23368 (xstormy16_gimplify_va_arg_expr): Rename to
23369 xstormy16_gimplify_va_arg_expr.
23370 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
23371 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
23372 xstormy16_gimplify_va_arg_expr.
23373 Fix up some formatting issues.
23374
23375 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
23376 Move to predicates.md.
23377 (xs_hi_general_operand): Likewise.
23378 (xs_hi_nonmemory_operand): Likewise.
23379 * config/stormy16/predicates.md:
23380 (xstormy16_carry_plus_operand): New predicate.
23381 (xs_hi_general_operand): New predicate.
23382 (xs_hi_nonmemory_operand): New predicate.
23383 * config/stormy16/stormy16-protos.h:
23384 (xstormy16_carry_plus_operand): Delete prototype.
23385 (xs_hi_general_operand): Likewise.
23386 (xs_hi_nonmemory_operand): Likewise.
23387
23388 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
23389 modifiers as they are no longer needed and they can trigger
23390 reload spill failures.
23391
23392 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
23393 with a match_operand in order to help reload.
23394
23395 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
23396 constraint with 'e' for the 8th alternative as this version of
23397 the mov.w instruction only accepts the lower 8 registers.
23398
23399 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
23400
23401 PR target/34856
23402 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
23403 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
23404 vector elements.
23405
23406 2008-01-25 Jakub Jelinek <jakub@redhat.com>
23407
23408 PR middle-end/33333
23409 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
23410
23411 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
23412
23413 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
23414 New functions.
23415 (remove_structure): Update allocations list before removing structure.
23416
23417 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
23418
23419 * ipa-struct-reorg.c (is_safe_cond_expr,
23420 create_new_stmts_for_cond_expr): Use integer_zerop function,
23421 that recognize not only zero-pointer, but zero-integer too.
23422
23423 2008-01-25 Ben Elliston <bje@au.ibm.com>
23424
23425 PR other/22232
23426 * fixproto: Escape "." in sed expression that strips leading "./".
23427
23428 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
23429
23430 PR driver/34904
23431 * gcc.c (SWITCH_OK): Removed.
23432 (SWITCH_LIVE): Changed to bit.
23433 (SWITCH_FALSE): Likewise.
23434 (SWITCH_IGNORE): Likewise.
23435 (switchstr): Change live_cond to unsigned int.
23436 (process_command): Replace SWITCH_OK with 0.
23437 (do_self_spec): Likewise.
23438 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
23439 (give_switch): Likewise.
23440 (used_arg): Likewise.
23441 (do_spec_1): Set the SWITCH_IGNORE bit.
23442 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
23443 bits. Set the SWITCH_LIVE bit.
23444
23445 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
23446
23447 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
23448
23449 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
23450
23451 PR tree-optimization/34472
23452 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
23453 parameter to a "bool *" and set *DATA to false if there is
23454 an unsafe access. Do not delete the structure here.
23455 (check_cond_exprs): Delete it here instead.
23456 (check_cond_exprs, exclude_cold_structs): Do not increase
23457 I when removing a structure.
23458
23459 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
23460
23461 PR target/34856
23462 * config/i386/i386.c (ix86_expand_vector_init): Consider only
23463 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
23464
23465 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
23466
23467 PR middle-end/34934
23468 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
23469 a fixed vector for stack.
23470
23471 2008-01-24 Ben Elliston <bje@au.ibm.com>
23472
23473 PR c++/25701
23474 * doc/gcc.texi (Software development): Add a direntry for g++.
23475
23476 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
23477
23478 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
23479 stale and straggling -fforce-addr comments above.
23480
23481 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
23482 define.
23483 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
23484 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
23485
23486 2008-01-23 Michael Matz <matz@suse.de>
23487
23488 PR debug/34895
23489 * dwarf2out.c (force_type_die): Use modified_type_die instead of
23490 gen_type_die.
23491
23492 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
23493
23494 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
23495 malloc result type.
23496
23497 2008-01-23 Anatoly Sokolov <aesok@post.ru>
23498
23499 * config/avr/avr.c (avr_current_arch): New variable.
23500 (avr_arch_types): Add 'avr31' and 'avr51' entries.
23501 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
23502 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
23503 (avr_override_options): Init 'avr_current_arch'.
23504 (base_arch_s): Move from here...
23505 * config/avr/avr.h (base_arch_s): ... here. Add new members
23506 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
23507 'mega' to 'have_jmp_call'.
23508 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
23509 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
23510 macros.
23511 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
23512 architectures.
23513 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
23514 MULTILIB_MATCHES): Ditto.
23515
23516 2008-01-23 Richard Guenther <rguenther@suse.de>
23517
23518 PR middle-end/31529
23519 * cgraphunit.c (cgraph_reset_node): Always mark the node
23520 not reachable if it is not queued already.
23521
23522 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
23523
23524 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
23525 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
23526 (cputype_selected): New static variable.
23527 (bfin_handle_option): Set it if -mcpu is used.
23528 (override_option): Select default set of workarounds if no cpu type
23529 selected on the command line.
23530 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
23531
23532 From Michael Frysinger <michael.frysinger@analog.com>
23533 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
23534 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
23535
23536 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
23537 for bf547, bf523, bf524, and bf526.
23538 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
23539 bf526.
23540 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
23541 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
23542 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
23543 __ADSPBF547__ and __ADSPBF54x__ for bf547.
23544 * doc/invoke.texi (Blackfin Options): Document that
23545 -mcpu now accept bf547, bf523, bf524, and bf526.
23546
23547 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
23548
23549 PR rtl-optimization/34628
23550 * combine.c (try_combine): Stop and undo after the first combination
23551 if an autoincrement side-effect on the first insn has effectively
23552 been lost.
23553
23554 2008-01-22 David Edelsohn <edelsohn@gnu.org>
23555
23556 PR target/34529
23557 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
23558 Offset addresses are not valid for Altivec or paired float modes.
23559
23560 2008-01-22 Jakub Jelinek <jakub@redhat.com>
23561
23562 PR c++/34607
23563 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
23564 if DECL_INITIAL (decl) is error_mark_node.
23565
23566 PR c++/34914
23567 * c-common.c (handle_vector_size_attribute): Only allow
23568 integral, scalar float and fixed point types. Handle OFFSET_TYPE
23569 the same way as pointer, array etc. types.
23570 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
23571
23572 PR c++/34917
23573 * tree.c (build_type_attribute_qual_variant): Call
23574 build_qualified_type if attributes are equal, but quals are not.
23575
23576 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
23577
23578 PR 32102
23579 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
23580 * flags.h (warn_strict_aliasing): Remove.
23581 (warn_strict_overflow): Remove.
23582 * opts.c (warn_strict_aliasing): Remove.
23583 (warn_strict_overflow): Remove.
23584 * c-opts.c (c_common_handle_option): -Wall only sets
23585 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
23586 (c_common_post_options): Give default values to -Wstrict-aliasing
23587 and -Wstrict-overflow if they are uninitialized.
23588 * common.opt (Wstrict-aliasing): Specify Var and Init.
23589 (Wstrict-overflow): Likewise.
23590
23591 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
23592
23593 PR rtl-optimization/26854
23594 PR rtl-optimization/34400
23595 PR rtl-optimization/34884
23596 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
23597 DF_RD->gen.
23598 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
23599 (df_rd_bb_info.expanded_lr_out): Deleted
23600 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
23601 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
23602 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
23603 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
23604 Removed code to allocate, initialize or free expanded_lr_out.
23605 (df_rd_bb_local_compute_process_def): Restructured to make more
23606 understandable.
23607 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
23608 sets if the sets are being trimmed.
23609
23610 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
23611
23612 PR bootstrap/32287
23613 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
23614 (as_vers): Likewise.
23615 * configure: Regenerated.
23616
23617 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
23618
23619 PR middle-end/33092
23620 * tree-pass.h (pass_build_alias): New pass.
23621 * tree-ssa-alias.c (gate_build_alias): New.
23622 (pass_build_alias): New.
23623 * passes.c (init_optimization_passes): Add pass_build_alias after
23624 pass_create_structure_vars.
23625
23626 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
23627
23628 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
23629 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
23630 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
23631 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
23632 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
23633 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
23634 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
23635 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
23636 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
23637 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
23638 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
23639 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
23640 * config/s390/s390.md (FP_ALL): New mode iterator.
23641 (_d): New mode attribute.
23642 ("*signbit<mode>2>"): Changed mode of first operand.
23643 ("isinf<mode>2"): Changed mode of first operand.
23644 ("*TDC_insn"): Adaptation for DFP modes.
23645
23646 2008-01-22 Ben Elliston <bje@au.ibm.com>
23647
23648 * tree.c (check_qualified_type): Improve function description.
23649
23650 2008-01-21 Jason Merrill <jason@redhat.com>
23651
23652 PR c++/34196
23653 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
23654 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
23655 if it is set.
23656
23657 2008-01-21 DJ Delorie <dj@redhat.com>
23658
23659 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
23660 return zero.
23661
23662 2008-01-21 Richard Guenther <rguenther@suse.de>
23663
23664 PR middle-end/34856
23665 * tree-cfg.c (verify_expr): Allow all invariant expressions
23666 instead of just constant class ones as reference argument.
23667 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
23668 like any other constant.
23669 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
23670
23671 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
23672
23673 * regmove.c (fixup_match_1): Update call crossed frequencies.
23674
23675 2008-01-21 Richard Guenther <rguenther@suse.de>
23676
23677 PR c/34885
23678 * tree-inline.c (setup_one_parameter): Deal with mismatched
23679 types using a VIEW_CONVERT_EXPR.
23680
23681 2008-01-21 Alon Dayan <alond@il.ibm.com>
23682 Olga Golovanevsky <olga@il.ibm.com>
23683
23684 PR tree-optimization/34701
23685 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
23686 when the structure size is not a power of 2.
23687
23688 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
23689
23690 * doc/install.texi: Add doc for --enable-checking=df.
23691
23692 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
23693
23694 PR rtl-optimization/34808
23695 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
23696
23697 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
23698
23699 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
23700 input.
23701
23702 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
23703
23704 PR rtl-optimization/26854
23705 PR rtl-optimization/34400
23706 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
23707 DF_RD->gen.
23708 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
23709 (df_rd_bb_info.expanded_lr_out): New.
23710 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
23711 * loop_iv.c (iv_analysis_loop_init): Ditto.
23712 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
23713 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
23714 Added code to allocate, initialize or free expanded_lr_out.
23715 (df_rd_bb_local_compute_process_def): Restructured to make
23716 more understandable.
23717 (df_rd_confluence_n): Add code to do nothing with fake edges and
23718 code to no apply invalidate_by_call sets if the sets are being trimmed.
23719 (df_lr_local_finalize): Renamed to df_lr_finalize.
23720 (df_live_local_finalize): Renamed to df_live_finalize.
23721
23722 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
23723
23724 PR target/34831
23725 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
23726 deciding whether to use reciprocal instructions.
23727
23728 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
23729
23730 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
23731 dwarf2out_note_section_used if cold_text_section is NULL.
23732
23733 2008-01-19 Jakub Jelinek <jakub@redhat.com>
23734
23735 PR gcov-profile/34610
23736 * tree-cfg.c (make_edges): Mark both outgoing edges from
23737 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
23738 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
23739 from OMP_FOR and OMP_CONTINUE outgoing edges.
23740
23741 * tree-profile.c (tree_profiling): Return early if
23742 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
23743 at the end.
23744 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
23745 from cfun to child_cfun.
23746 * function.h (struct function): Add after_tree_profile bit.
23747
23748 2008-01-19 Anatoly Sokolov <aesok@post.ru>
23749
23750 * config/avr/avr.S (_exit): Disable interrupt.
23751
23752 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
23753 Steven Bosscher <stevenb.gcc@gmail.com>
23754
23755 PR rtl-optimization/26854
23756 PR rtl-optimization/34400
23757 * df-problems.c (df_live_scratch): New scratch bitmap.
23758 (df_live_alloc): Allocate df_live_scratch when doing df_live.
23759 (df_live_reset): Clear the proper bitmaps.
23760 (df_live_bb_local_compute): Only process the artificial defs once
23761 since the order is not important.
23762 (df_live_init): Init the df_live sets only with the variables
23763 found live by df_lr.
23764 (df_live_transfer_function): Use the df_lr sets to prune the
23765 df_live sets as they are being computed.
23766 (df_live_free): Free df_live_scratch.
23767
23768 2008-01-18 Ian Lance Taylor <iant@google.com>
23769
23770 * common.opt: Add fmerge-debug-strings.
23771 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
23772 flag_merge_debug_strings rather than flag_merge_constants.
23773 * doc/invoke.texi (Option Summary): Mention
23774 -fmerge-debug-strings.
23775 (Debugging Options): Document -fmerge-debug-strings.
23776
23777 2008-01-18 Ian Lance Taylor <iant@google.com>
23778
23779 PR c++/33407
23780 * tree.h (DECL_IS_OPERATOR_NEW): Define.
23781 (struct tree_function_decl): Add new field operator_new_flag.
23782 * tree-inline.c (expand_call_inline): When inlining a call to
23783 operator new, force the return value to go into a variable, and
23784 set DECL_NO_TBAA_P on that variable.
23785 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
23786
23787 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
23788
23789 PR debug/34484
23790 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
23791 DWARF2_DEBUGGING_INFO.
23792 (dwarf2out_note_section_used): Ditto. Add prototype.
23793 (have_multiple_function_sections, text_section_used,
23794 cold_text_section_used, *cold_text_sections): Move declarations
23795 before their uses.
23796
23797 2008-01-17 Bob Wilson <bob.wilson@acm.org>
23798
23799 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
23800 field and add signal_ra.
23801 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
23802 assignments to frame state pc. Move end of stack check after
23803 MD_FALLBACK_FRAME_STATE_FOR.
23804 (uw_update_context_1): Use frame state signal_regs if set, instead
23805 of checking signal_frame flag.
23806 (uw_update_context): Use frame state signal_ra if set.
23807 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
23808 * config/xtensa/linux-unwind.h: New file.
23809
23810 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
23811
23812 * modulo-sched.c (get_sched_window): Fix comment typo.
23813
23814 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
23815
23816 PR tree-optimization/34648
23817 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
23818
23819 2008-01-17 Anatoly Sokolov <aesok@post.ru>
23820
23821 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
23822 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
23823
23824 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
23825
23826 PR rtl-optimization/34400
23827 * df-core.c (df_worklist_dataflow_overeager,
23828 df_worklist_dataflow_doublequeue): New functions.
23829 (df_worklist_dataflow): Two different worklist solvers.
23830 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
23831 New param.
23832
23833 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
23834
23835 PR testsuite/34821
23836 * doc/invoke.texi: Document the dependence on pthread for fopenmp
23837 and ftree-parallelize-loops.
23838
23839 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
23840
23841 PR rtl-optimization/34826
23842 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
23843
23844 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
23845
23846 * global.c (find_reg): Mark the eh regs as used if necessary.
23847 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
23848 * ra.h (struct allocno): no_eh_reg field added. Changed
23849 no_stack_reg type to bitfield.
23850
23851 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
23852
23853 * tree.c (substitute_in_expr): Add missing 'break'.
23854
23855 2008-01-17 Richard Guenther <rguenther@suse.de>
23856
23857 PR tree-optimization/34825
23858 * tree-ssa-math-opts.c (is_division_by): Do not recognize
23859 x / x as division to handle.
23860
23861 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23862
23863 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
23864 "-pthread" is specified.
23865 * pa-hpux11.h (LIB_SPEC): Likewise.
23866
23867 2008-01-16 Janis Johnson <janis187@us.ibm.com>
23868 Peter Bergner <bergner@vnet.ibm.com>
23869
23870 PR rtl-optimization/33796
23871 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
23872
23873 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23874
23875 PR libgfortran/34699
23876 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
23877 static links.
23878 * pa-hpux10.h (LINK_SPEC): Likewise.
23879 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
23880
23881 2008-01-16 Richard Guenther <rguenther@suse.de>
23882
23883 PR middle-end/32628
23884 * fold-const.c (fold_convert_const_int_from_int): Do not
23885 set overflow if that occured only because of a sign extension
23886 change when converting from/to a sizetype with the same
23887 precision and signedness.
23888
23889 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
23890
23891 PR debug/34249
23892 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
23893 location address to the correct place. Update copyright year.
23894
23895 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
23896
23897 * lambda-code.c (lambda_transform_legal_p): Handle the case of
23898 no dependences in the dependence_relations vector.
23899
23900 2008-01-16 Jan Hubicka <jh@suse.cz>
23901
23902 PR rtl-optimization/31396
23903 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
23904 * cfg.c (dump_reg_info): Print it.
23905 * regs.h (struct reg_info_t): add freq_calls_crossed.
23906 (REG_FREQ_CALLS_CROSSED): New macro.
23907 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
23908 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
23909 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
23910 regmove_optimize): Update call crossed frequencies.
23911 * local-alloc.c (struct qty): Add freq_calls_crossed.
23912 (alloc_qty): Copute freq_calls_crossed.
23913 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
23914 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
23915 * ra.h (struct allocno): Add freq_calls_crossed.
23916
23917 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
23918
23919 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
23920 libgomp when compiling with ftree-parallelize-loops.
23921 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
23922
23923 2008-01-16 Richard Guenther <rguenther@suse.de>
23924
23925 PR tree-optimization/34769
23926 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
23927 * tree.c (int_cst_value): Instead make this function more
23928 permissive in what it accepts as valid input. Document this
23929 function always sign-extends the value.
23930
23931 2008-01-16 Jakub Jelinek <jakub@redhat.com>
23932 Richard Guenther <rguenther@suse.de>
23933
23934 PR c/34668
23935 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
23936 (gimple_fold_indirect_ref_rhs): ... this.
23937 (gimple_fold_indirect_ref): New function with foldings
23938 that preserve lvalueness.
23939 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
23940 * tree-flow.h (gimple_fold_indirect_ref): Declare.
23941 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
23942 to fold an INDIRECT_REF, fall back to the old use of
23943 fold_indirect_ref_1.
23944
23945 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
23946
23947 * tree-data-ref.c (subscript_dependence_tester_1): Call
23948 free_conflict_function.
23949 (compute_self_dependence): Same.
23950
23951 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
23952
23953 PR debug/34249
23954 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
23955 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
23956 function global.
23957 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
23958 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
23959 for DWARF2_UNWIND_INFO targets.
23960
23961 2008-01-16 Richard Guenther <rguenther@suse.de>
23962
23963 PR c/34768
23964 * c-typeck.c (common_pointer_type): Do not merge inconsistent
23965 type qualifiers for function types.
23966
23967 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
23968
23969 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
23970 loop_iterator li from previous commit.
23971
23972 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
23973
23974 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
23975
23976 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
23977
23978 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
23979 (parallelize_loops): Don't parallelize irreducible components.
23980
23981 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
23982
23983 PR c++/24924
23984 * c-opts (c_common_post_options): Do not enable CPP
23985 flag_pedantic_errors by default.
23986
23987 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
23988
23989 PR rtl-optimization/31944
23990 * cse.c (remove_pseudo_from_table): New function.
23991 (merge_equiv_classes): Use above function to remove pseudo-registers.
23992 (invalidate): Likewise.
23993
23994 2008-01-13 Richard Guenther <rguenther@suse.de>
23995
23996 PR middle-end/34601
23997 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
23998 instead of TYPE_MODE to deal with calls from expand_one_error_var.
23999
24000 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
24001
24002 * gcse.c (cprop_jump): Call validate_unshare_change instead of
24003 validate_change to unshare the source of the PC set.
24004
24005 2008-01-12 Jan Hubicka <jh@suse.cz>
24006
24007 PR middle-end/32135
24008 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
24009 references above array bounds. This might trigger bounds checks for
24010 pointers to arrays.
24011
24012 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
24013
24014 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
24015 new_replaceable_dependencies.
24016
24017 2008-01-12 Doug Kwan <dougkwan@google.com>
24018
24019 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
24020 instead of OPT_Wreturn_type in warning due to ignored return type
24021 qualifiers.
24022 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
24023 options included in -Wextra.
24024 * c.opt: New option -Wignored_qualifiers.
24025 * doc/invoke.texi (Warning Options, -Wextra): Add new option
24026 -Wignore_qualifiers.
24027 (-Wignored-qualifiers): Document.
24028 (-Wreturn-type): Remove description of functionality now handled
24029 by -Wignored-qualifiers.
24030
24031 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
24032
24033 PR ada/33788
24034 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
24035 NOP_EXPR if it is between integral types with the same precision.
24036
24037 2008-01-12 Jan Hubicka <jh@suse.cz>
24038
24039 PR other/28023
24040 * invoke.texi (max-inline-recursive-depth): Fix default value.
24041
24042 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
24043
24044 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
24045 correct type.
24046
24047 2008-01-11 Bob Wilson <bob.wilson@acm.org>
24048
24049 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
24050
24051 2008-01-11 James E. Wilson <wilson@specifix.com>
24052
24053 PR target/26015
24054 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
24055
24056 2008-01-11 Anatoly Sokolov <aesok@post.ru>
24057
24058 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
24059 save/restore frame pointer register and don't use 'call-prologues'
24060 optimization in function with "OS_task" attribute.
24061
24062 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
24063
24064 PR middle-end/31309
24065 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
24066 when copying to memory.
24067
24068 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
24069
24070 PR rtl-optimization/30905
24071 * cfgcleanup.c: Include dce.h
24072 (crossjumps_occured): New global variable.
24073 (try_crossjump_bb): Exit loop after finding a fallthru edge.
24074 If something changed, set crossjumps_occured to true.
24075 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
24076 Don't add/remove fake edges to exit here...
24077 (cleanup_cfg): ...but do it here, when crossjumping.
24078 Run a fast DCE when successful crossjumps occured in the latest
24079 iteration of try_optimize_cfg.
24080
24081 2008-01-11 Richard Guenther <rguenther@suse.de>
24082
24083 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
24084 (struct vn_unary_op_s): Likewise.
24085 (vn_reference_insert): Free old reference on hash collision.
24086
24087 2008-01-10 Raksit Ashok <raksit@google.com>
24088
24089 PR rtl-optimization/27971
24090 * combine.c (find_split_point): Split PLUS expressions which are
24091 inside a MEM rtx, and whose first operand is complex.
24092
24093 2008-01-10 DJ Delorie <dj@redhat.com>
24094
24095 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
24096 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
24097 (m32c_hard_regno_ok): Call the underlying function.
24098
24099 2008-01-10 Richard Guenther <rguenther@suse.de>
24100
24101 PR middle-end/34683
24102 * tree-cfg.c (tree_merge_blocks): Do not go through the
24103 full-blown folding and stmt updating path if we just deal
24104 with virtual operands.
24105 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
24106 test for abnormal SSA_NAMEs.
24107
24108 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
24109
24110 PR middle-end/34641
24111 * reload.c (push_reload): Add assertions. All constants from
24112 reg_equiv_constant should have been used for replacing the respective
24113 pseudo earlier.
24114 (find_reloads_address): Invoke find_reloads_address_part for
24115 constant taken from the reg_equiv_constant array.
24116
24117 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
24118
24119 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
24120 field (valnum) the first in the struct. Replace bools with
24121 unit bit fields.
24122
24123 2008-01-10 Richard Guenther <rguenther@suse.de>
24124
24125 PR tree-optimization/34651
24126 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
24127 types and ordering for masking and converting.
24128
24129 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
24130
24131 PR tree-optimization/34017
24132 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
24133 also for PHI_NODE expressions.
24134
24135 2008-01-09 Jan Hubicka <jh@suse.cz>
24136
24137 PR tree-optimization/34708
24138 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
24139 based on number of case labels.
24140 (init_inline_once): Remove switch_cost.
24141 * tree-inline.h (eni_weights_d): Remove switch_cost.
24142
24143 2008-01-09 Richard Guenther <rguenther@suse.de>
24144 Andrew Pinski <andrew_pinski@playstation.sony.com>
24145
24146 PR middle-end/30132
24147 * gimplify.c (gimplify_cond_expr): Do not create an addressable
24148 temporary if an rvalue is ok or an lvalue is not required.
24149
24150 2008-01-09 Richard Guenther <rguenther@suse.de>
24151
24152 PR middle-end/34458
24153 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
24154 adjust return type.
24155
24156 2008-01-09 Richard Guenther <rguenther@suse.de>
24157
24158 PR middle-end/34679
24159 * tree.c (host_integerp): Check for sizetype only if the
24160 type is an integer type.
24161
24162 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
24163
24164 PR debug/26364
24165 * opts.c (decode_options): Disable inlining of functions called
24166 once if not in unit-at-a-time mode.
24167
24168 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
24169
24170 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
24171
24172 2008-01-08 Richard Guenther <rguenther@suse.de>
24173
24174 PR middle-end/31863
24175 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
24176 out early if the result will be unused.
24177
24178 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
24179
24180 PR target/34709
24181 Revert:
24182
24183 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
24184 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
24185 for TARGET_RECIP.
24186
24187 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
24188
24189 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
24190 for vectorization tuned.
24191
24192 2008-01-08 Richard Guenther <rguenther@suse.de>
24193
24194 PR tree-optimization/34683
24195 * tree-ssa-operands.c (operand_build_cmp): Export.
24196 * tree-ssa-operands.h (operand_build_cmp): Declare.
24197 * tree-vn.c (vuses_compare): Remove.
24198 (sort_vuses): Use operand_build_cmp.
24199 (sort_vuses_heap): Likewise.
24200 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
24201 to re-use old VEC if available. Do not sort already sorted VUSEs.
24202 (vdefs_to_vec): Do not sort already sorted VDEFs.
24203
24204 2008-01-08 Jakub Jelinek <jakub@redhat.com>
24205
24206 PR middle-end/34694
24207 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
24208
24209 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
24210
24211 PR target/34702
24212 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
24213 limitations of reciprocal sequences on x86 targets.
24214
24215 2008-01-08 Richard Guenther <rguenther@suse.de>
24216
24217 PR tree-optimization/34683
24218 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
24219
24220 2008-01-07 Jakub Jelinek <jakub@redhat.com>
24221
24222 PR target/34622
24223 * config/darwin.c (darwin_mergeable_string_section): Don't use
24224 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
24225
24226 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
24227
24228 PR target/34682
24229 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
24230 negxf2. Macroize expander using X87MODEF mode iterator. Change
24231 predicates of op0 and op1 to register_operand.
24232 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
24233 expander using X87MODEF mode iterator. Change predicates of
24234 op0 and op1 to register_operand.
24235 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
24236 corresponding patterns and macroize using MODEF macro. Change
24237 predicates of op0 and op1 to register_operand and remove
24238 "m" constraint. Disparage "r" alternative with "!".
24239 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
24240 macroize using X87MODEF macro. Change predicates of op0 and op1
24241 to register_operand and remove "m" constraint. Disparage "r"
24242 alternative with "!".
24243 (absneg splitter with memory operands): Remove.
24244 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
24245 patterns and macroize using X87MODEF mode iterator.
24246 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
24247 Change predicate of op1 to register_operand.
24248 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
24249 for memory operands.
24250
24251 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
24252
24253 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
24254
24255 2008-01-07 Richard Guenther <rguenther@suse.de>
24256
24257 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
24258 fields.
24259
24260 2008-01-07 Richard Guenther <rguenther@suse.de>
24261
24262 PR tree-optimization/34683
24263 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
24264 VOPs of the needed size to save memory. Use VEC_quick_push
24265 to save compile-time.
24266 (vdefs_to_vec): Likewise.
24267
24268 2008-01-07 Sa Liu <saliu@de.ibm.com>
24269
24270 * config/spu/spu.md (divdf3): Genetate inline code for double
24271 division. The implementation doesn't handle INF or NAN, therefore it
24272 only applies when -ffinite-math-only is given.
24273
24274 2008-01-06 Paolo Carlini <pcarlini@suse.de>
24275
24276 PR libstdc++/34680
24277 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
24278 * doc/cpp.texi ([Common Predefined Macros]): Document.
24279
24280 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
24281
24282 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
24283 order to use commutative addition instead of subtraction.
24284
24285 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
24286 Mircea Namolaru <namolaru@il.ibm.com>
24287 Vladimir Yanovsky <yanov@il.ibm.com>
24288 Revital Eres <eres@il.ibm.com>
24289
24290 PR tree-optimization/34263
24291 * tree-outof-ssa.c (process_single_block_loop_latch,
24292 contains_tree_r): New functions.
24293 (analyze_edges_for_bb): Call process_single_block_loop_latch
24294 function to empty single-basic-block latch block if possible.
24295
24296 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
24297
24298 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
24299 for TARGET_RECIP.
24300 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
24301
24302 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
24303
24304 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
24305
24306 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
24307
24308 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
24309
24310 2008-01-05 Jakub Jelinek <jakub@redhat.com>
24311
24312 PR tree-optimization/34618
24313 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
24314 flag from T.
24315
24316 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
24317
24318 PR target/34673
24319 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
24320 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
24321 Update copyright year.
24322
24323 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
24324 Update copyright year.
24325 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
24326 using NR fixup.
24327
24328 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
24329
24330 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
24331 edge does not point to current bb before changing need_assert.
24332
24333 2008-01-04 Richard Guenther <rguenther@suse.de>
24334
24335 PR middle-end/34029
24336 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
24337 for verifying purposes if they are is_gimple_min_invariant.
24338
24339 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
24340
24341 PR tree-optimization/34448
24342 PR tree-optimization/34465
24343 * gimplify.c (gimplify_init_constructor): Add new parameter
24344 notify_temp_creation. Use it.
24345 (gimplify_modify_expr_rhs): Take volatiles into account when
24346 optimizing constructors.
24347 Do not optimize constructors if gimplify_init_constructor will dump to
24348 memory.
24349 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
24350 * gcc.c-torture/compile/pr34448.c: New.
24351
24352 2008-01-04 Jakub Jelinek <jakub@redhat.com>
24353
24354 PR gcov-profile/34609
24355 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
24356 return_slot if result is TREE_ADDRESSABLE.
24357
24358 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
24359
24360 * config/mips/mips.md (sqrt_condition): Tweak comment.
24361 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
24362
24363 2008-01-03 Tom Tromey <tromey@redhat.com>
24364
24365 PR c/34457
24366 * c-common.c (c_type_hash): Handle VLAs.
24367
24368 2008-01-03 Jan Hubicka <jh@suse.cz>
24369
24370 PR tree-optimization/31081
24371 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
24372 0 when inlining and not inlining to first basic block.
24373 (remap_decl): When var is initialized to 0, don't set default_def.
24374 (expand_call_inline): Set entry_bb.
24375 * tree-inline.h (copy_body_data): Add entry_bb.
24376
24377 2008-01-03 Jakub Jelinek <jakub@redhat.com>
24378
24379 PR c++/34619
24380 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
24381 before returning.
24382
24383 PR tree-optimization/29484
24384 * tree-inline.c (inline_forbidden_p_2): New function.
24385 (inline_forbidden_p): Disallow inlining if some static var
24386 has an address of a local LABEL_DECL in its initializer.
24387 * doc/extend.texi (Labels as Values): Document &&foo behaviour
24388 vs. inlining.
24389
24390 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
24391
24392 PR tree-optimization/34635
24393 * tree-data-ref.c (add_other_self_distances): Make sure that the
24394 evolution step is constant.
24395
24396 2008-01-03 Jakub Jelinek <jakub@redhat.com>
24397
24398 PR middle-end/34608
24399 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
24400
24401 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
24402
24403 * tree-sra.c (scalarize_init): Insert the generate_element_init
24404 statements after the generate_element_zero statements.
24405
24406 2008-01-02 Richard Guenther <rguenther@suse.de>
24407
24408 PR middle-end/34093
24409 PR middle-end/31976
24410 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
24411 for very large number of operands instead of ICEing.
24412
24413 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
24414
24415 PR target/34013
24416 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
24417 while stack probing.
24418
24419 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
24420
24421 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
24422 in C++0x mode.
24423
24424 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
24425
24426 PR libmudflap/26442
24427 * tree-mudflap.c (mx_register_decls): Guard warning by
24428 !DECL_ARTIFICIAL check.
24429
24430 2008-01-01 Jakub Jelinek <jakub@redhat.com>
24431
24432 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
24433 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
24434 sse5_perm<mode>): Fix constraints.