43420dd23cc9ff08ff38b45cfe5750d7a668a35b
[gcc.git] / gcc / ChangeLog
1 2008-09-12 Eric Botcazou <ebotcazou@adacore.com>
2
3 PR rtl-optimization/37424
4 * ira-color.c (coalesced_pseudo_reg_slot_compare): Untie by comparing
5 the regnos instead of the addresses.
6
7 2008-09-11 Janis Johnson <janis187@us.ibm.com>
8
9 * ginclude/float.h (DEC_EVAL_METHOD): Correct the macro name.
10
11 2008-09-11 Richard Guenther <rguenther@suse.de>
12
13 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Avoid
14 entering the weaker equivalence recording.
15
16 * tree-ssa-phiprop.c (propagate_with_phi): Fix tuplification.
17
18 2008-09-11 Jeff Law <law@redhat.com>
19
20 * reload1.c (alter_reg): Undo the BYTE_BIG_ENDIAN correction performed
21 by assign_stack_local on the IRA path for stack slot sharing
22 as well as the non-IRA path.
23
24 2008-09-11 Uros Bizjak <ubizjak@gmail.com>
25
26 * config/i386/i386.h: Fix whitespace issues.
27
28 2008-09-11 Martin Jambor <mjambor@suse.cz>
29
30 * ipa-prop.h (struct ipa_param_flags): Removed.
31 (struct ipa_param_descriptor): New structure.
32 (struct ipa_node_params): ipcp_lattices, param_decls and
33 param_flags moved to ipa_param_description.
34 (ipa_get_ith_param): Renamed to ipa_get_param, changed to access
35 descriptors. Renamed all users.
36 (ipa_is_ith_param_modified): Renamed to ipa_is_param_modified,
37 changed to access descriptors. Renamed all users.
38 (ipa_is_ith_param_called): Renamed to ipa_is_param_called, changed
39 to access descriptors. Renamed all users.
40 * ipa-cp.c (ipcp_init_cloned_node): Call
41 ipa_initialize_node_params instead of ipa_count_formal_params and
42 ipa_create_param_decls_array.
43 (ipcp_analyze_node): Likewise.
44 (ipcp_get_ith_lattice): Renamed to ipcp_get_lattice, changed to access
45 descriptors. Renamed all users.
46 (ipcp_initialize_node_lattices): Remove allocation.
47 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
48 ipa_initialize_node_params instead of ipa_count_formal_params and
49 ipa_create_param_decls_array.
50 * ipa-prop.c (ipa_create_param_decls_array): Renamed to
51 ipa_populate_param_decls, made static, added parameter info,
52 renamed mt to node, removed allocation, changed to use
53 descriptors.
54 (ipa_count_formal_params): Made static, added parameter info,
55 renamed mt to node.
56 (ipa_initialize_node_params): New function.
57 (ipa_check_stmt_modifications): Changed to use descriptors.
58 (ipa_detect_param_modifications): Removed allocation, changed to
59 use descriptors.
60 (ipa_note_param_call): Changed to use descriptors.
61 (ipa_analyze_params_uses): Removed allocation.
62 (ipa_free_node_params_substructures): Changed to use descriptors.
63 (ipa_edge_duplication_hook): Use the unused attribute.
64 (ipa_node_duplication_hook): Use the unused attribute, changed to
65 use descriptors, changed to duplicate descriptors.
66
67 * ipa-inline.c (cgraph_mark_inline_edge): New parameter new_edges,
68 changed all callers. Call ipa_propagate_indirect_call_infos if doing
69 indirect inlining. Made static.
70 (cgraph_decide_inlining): Freeing ipa-prop structures after inlining
71 functions called only once.
72 (cgraph_decide_recursive_inlining): Don't call
73 ipa_propagate_indirect_call_infos, pass new_edges to
74 cgraph_mark_inline_edge instead.
75 (cgraph_decide_inlining_of_small_functions): Don't call
76 ipa_propagate_indirect_call_infos, pass new_edges to
77 cgraph_mark_inline_edge instead.
78 (cgraph_decide_inlining): Don't call
79 ipa_propagate_indirect_call_infos.
80 * ipa-prop.c: Check that vectors are allocated.
81
82 * ipa-inline.c (cgraph_mark_inline_edge): Returns boolean, true
83 iff a new cgraph edges have been created.
84 (cgraph_decide_inlining): New variable redo_always_inline.
85 Flattening and always_inlining loop until callgraph stabilizes.
86 * ipa-prop.c (update_call_notes_after_inlining): Returns boolean,
87 true iff new cgraph edges have been created.
88 (propagate_info_to_inlined_callees): Likewise.
89 (ipa_propagate_indirect_call_infos): Likewise.
90
91 2008-09-11 Richard Guenther <rguenther@suse.de>
92
93 * tree-vectorizer.c (slpeel_add_loop_guard): Fix types.
94 (set_prologue_iterations): Likewise.
95 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref):
96 Likewise.
97 (vect_update_init_of_dr): Likewise.
98 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Fix
99 type verification.
100 * fold-const.c (fold_unary): Do not generate calculations
101 in sub-types.
102
103 2008-09-11 Paolo Bonzini <bonzini@gnu.org>
104
105 * dojump.c (do_jump) [BIT_AND_EXPR]: Move below. Fall through to
106 TRUTH_AND_EXPR for boolean (1-bit precision) expressions.
107 (do_jump) [BIT_IOR_EXPR]: Compile as TRUTH_OR_EXPR.
108
109 * tree-flow.h (simplify_stmt_using_ranges): Accept a GSI, return a bool.
110 * tree-ssa-propagate.c (substitute_and_fold): Pass a GSI to
111 VRP's simplify_stmt_using_ranges. Do simplify_stmt_using_ranges
112 before finalizing the changes.
113 * tree-vrp.c (extract_range_from_binary_expr): Add limited support
114 for BIT_IOR_EXPR.
115 (simplify_truth_ops_using_ranges): New.
116 (simplify_div_or_mod_using_ranges, simplify_abs_using_ranges,
117 simplify_cond_using_ranges, simplify_switch_using_ranges): Return
118 whether a simplification was made.
119 (simplify_stmt_using_ranges): Ditto, and accept a GSI. For GS_ASSIGN,
120 use a switch statement and also call simplify_truth_ops_using_ranges.
121
122 2008-09-11 Jan Hubicka <jh@suse.cz>
123
124 * ggc-common.c (loc_array): Make static.
125 * dce.c (rest_of_handle_ud_dce): Free worklist.
126
127 2008-09-11 Jan Hubicka <jh@suse.cz>
128
129 * cgraph.c (cgraph_release_function_body): Plug memory leak on
130 ipa_transforms_to_apply and CFG; ggc_free gimple df and struct function
131 so we are sure we do not dangle it forever.
132 * function.c (outer_function_chain, find_function_data): Remove.
133 (function_context_stack): New.
134 (push_function_context, pop_function_context): Update.
135 * function.h (struct function): Remove pointer outer.
136 (outer_function_chain, find_function_data): Remove.
137 * stmt.c (force_label_rtx): Remove dead call of find_function_data.
138
139 2008-09-11 Jan Hubicka <jh@suse.cz>
140
141 PR middle-end/37448
142 * cgraph.c (cgraph_create_edge): Use !cgraph_edge for sanity check.
143
144 2008-09-11 Jan Hubicka <jh@suse.cz>
145
146 * tree-ssa-pre.c (phi_translate_1): Fix memory leak
147
148 2008-09-11 Jan Hubicka <jh@suse.cz>
149
150 * tree-ssa.c (redirect_edge_var_map_clear): Fix formatting.
151 (free_var_map_entry): New function.
152 (redirect_edge_var_map_destroy): Use it.
153
154 2008-09-11 Jan Hubicka <jh@suse.cz>
155
156 PR middle-end/37448
157 * tree-inline.c (add_lexical_block): Replace with ...
158 (prepend_lexical_block): ... prepend at begginig.
159 (remap_blocks): Use it and reverse later.
160 (expand_call_inline): Use prepend_lexical_block.
161
162 2008-09-11 Jan Hubicka <jh@suse.cz>
163
164 * gimplify.c (pop_gimplify_context): Free bind_expr_stack.
165
166 2008-09-11 Jan Hubicka <jh@suse.cz>
167
168 * function.c (free_after_compilation): Call insn_locators_free.
169 * cfglayout.c (insn_locators_free): New function.
170 * rtl.h (insn_locators_free): Declare.
171
172 2008-09-11 Jan Hubicka <jh@suse.cz>
173
174 * ifcvt.c (check_cond_move_block): Make regs argument pointer to
175 vector pointer.
176 (cond_move_process_if_block): Update call.
177
178 2008-09-11 Jan Hubicka <jh@suse.cz>
179
180 * toplev.c (dump_memory_report): Call dump_vec_loc_statistics.
181 * vec.c: Include hashtab.h
182 (vec_descriptor, ptr_hash_entry): New structures.
183 (vec_desc_hash, vec_ptr_map): New static variables.
184 (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr, vec_descriptor,
185 register_overhead, free_overhead, vec_heap_free): New functions.
186 (vec_gc_o_reserve_1): ggc_free when resizing to 0.
187 (vec_heap_o_reserve_1): free when resizing to 0; add statistics.
188 (cmp_statistic, add_statistics, dump_vec_loc_statistics): New functions.
189
190 2008-09-11 Ira Rosen <irar@il.ibm.com>
191
192 PR tree-optimization/37474
193 * tree-vect-analyze.c (vect_supported_load_permutation_p): Check the
194 length of load permutation.
195
196 2008-09-11 Andreas Schwab <schwab@suse.de>
197
198 * config/m68k/m68k.h (IRA_COVER_CLASSES): Define.
199
200 2008-09-11 Jakub Jelinek <jakub@redhat.com>
201
202 PR target/37382
203 * expmed.c (extract_low_bits): Avoid creating invalid subregs.
204 * dse.c (find_shift_sequence): Use extract_low_bits instead of
205 simplify_gen_subreg.
206
207 2008-09-11 Ira Rosen <irar@il.ibm.com>
208
209 * tree-vect-transform.c (vectorizable_store): Use the rhs vector type
210 for alias check.
211
212 2008-09-10 Jakub Jelinek <jakub@redhat.com>
213
214 PR middle-end/37338
215 * gimplify.c (gimplify_body): Call default_rtl_profile.
216
217 PR target/36904
218 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Return NULL
219 instead of tok->val.node if not expanding to something else. Handle
220 intervening CPP_PADDING tokens.
221 (altivec_categorize_keyword): Remove unneeded comparisons.
222
223 2008-09-10 Richard Guenther <rguenther@suse.de>
224
225 * tree-ssa-pre.c (phi_translate_1): Fix memory leak.
226
227 2008-09-10 Richard Guenther <rguenther@suse.de>
228
229 PR middle-end/37432
230 * tree-inline.c (insert_init_stmt): Make sure to not
231 insert invalid gimple stores.
232
233 2008-09-10 Sebastian Pop <sebastian.pop@amd.com>
234
235 PR tree-optimization/37388
236 * toplev.c (process_options): Fail and warn when graphite
237 flags are used, but the compiler has not been configured
238 with graphite libraries.
239 * graphite.c (graphite_transform_loops): Remove printfs
240 to dump_file for the case when graphite is not available.
241
242 2008-09-10 H.J. Lu <hongjiu.lu@intel.com>
243
244 PR target/37434:
245 * config/i386/i386.c (ix86_expand_vector_init_interleave): Force
246 the even element into register.
247 (ix86_expand_vector_init_general): Don't use
248 ix86_expand_vector_init_interleave on V16QImode and V8HImode
249 if we can't move from GPR to SSE register directly.
250
251 2008-09-10 Bernd Schmidt <bernd.schmidt@analog.com>
252
253 * config/bfin/bfin.c (workaround_speculation): Correct algorithm to
254 not lose track of the number of NOPs needed. Number of NOPs needed
255 for sync vs. loads workaround was switched; corrected. Run second
256 pass for all workarounds. No NOPs needed after call insns. Change
257 second pass to use find_next_insn_start and find_load helpers in order
258 to properly detect parallel insns.
259 * config/bfin/bfin.md (cbranch_with_nops): Increase length.
260
261 2008-09-10 Jan Hubicka <jh@suse.cz>
262
263 * value-prof.c (gimple_ic): Fix tuplification bug.
264 * sched-deps.c (sched_insns_conditions_mutex_p): Silence unitialized
265 var warning.
266
267 2008-09-10 Jakub Jelinek <jakub@redhat.com>
268
269 PR tree-optimization/37353
270 * tree-call-cdce.c (cond_dead_built_in_calls): Remove.
271 (shrink_wrap_conditional_dead_built_in_calls): Add calls argument, use
272 calls instead of cond_dead_built_in_calls.
273 (tree_call_cdce): Add cond_dead_built_in_calls automatic variable,
274 initalize the vector only before adding first entry. Use VEC_safe_push
275 instead of VEC_quick_push. Pass cond_dead_built_in_calls to
276 shrink_wrap_conditional_dead_built_in_calls call.
277
278 2008-09-10 Ira Rosen <irar@il.ibm.com>
279
280 PR tree-optimization/37385
281 * tree-vect-transform.c (vect_create_data_ref_ptr): Add a new argument,
282 and use it as a vector type if not NULL.
283 (vectorizable_store): Call vect_create_data_ref_ptr with the type of
284 vectorized rhs.
285 (vect_setup_realignment): Call vect_create_data_ref_ptr with additional
286 argument.
287 (vectorizable_load): Likewise.
288
289 2008-09-10 Jakub Jelinek <jakub@redhat.com>
290
291 * config/i386/i386.md (SWI32): New mode iterator.
292 (jcc_fused_1, jcc_fused_2, jcc_fused_3, jcc_fused_4): Use it instead
293 of SWI.
294
295 2008-09-09 Vladimir Makarov <vmakarov@redhat.com>
296
297 PR rtl-optimization/37435
298 * caller-save.c (insert_restore, insert_save): Check the mode by
299 reg_save_code.
300
301 2008-09-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
302
303 PR other/37265
304 * dwarf2asm.c (dw2_force_const_mem): Use unstripped symbol name for
305 splay tree lookup.
306 (dw2_output_indirect_constant_1): Use unstripped name in symbol
307 reference.
308
309 2008-09-09 Sandra Loosemore <sandra@codesourcery.com>
310
311 * doc/invoke.texi (ARM Options): Correct errors in discussion
312 of -mfloat-abi, -mhard-float, and -msoft-float.
313
314 2008-09-09 Jakub Jelinek <jakub@redhat.com>
315 Jan Hubicka <jh@suse.cz>
316
317 PR middle-end/37356
318 * tree-inline.c (copy_bb): Insert stmt into copy_basic_block before
319 calling gimple_regimplify_operands on it. Iterate over all newly
320 added statements, not just the last one.
321 (insert_init_stmt): Insert stmt into seq first, then call
322 gimple_regimplify_operands on it. Don't create new gimplification
323 context, nor find referenced vars.
324
325 2008-09-09 Jakub Jelinek <jakub@redhat.com>
326
327 PR other/37419
328 * ipa-prop.h (ipa_propagate_indirect_call_infos): Change last argument
329 to pointer to vector pointer.
330 * ipa-prop.c (ipa_propagate_indirect_call_infos,
331 propagate_info_to_inlined_callees): Likewise.
332 (update_call_notes_after_inlining): Likewise. Push new indirect edge
333 to *new_edges instead of new_edges. Reread IPA_EDGE_REF after
334 ipa_check_create_edge_args.
335 * ipa-inline.c (cgraph_decide_recursive_inlining): Change last argument
336 to pointer to vector pointer.
337 (cgraph_decide_inlining_of_small_function): Adjust
338 cgraph_decide_recursive_inlining and ipa_propagate_indirect_call_infos
339 calls.
340
341 PR target/37438
342 * config/i386/i386.md (zero_extendqihi2_movzbl): Enable when optimizing
343 for size, not speed.
344
345 PR rtl-optimization/37408
346 * function.c (assign_parm_find_stack_rtl): Set correct MEM_SIZE
347 if parm is promoted.
348
349 2008-09-09 Sebastian Pop <sebastian.pop@amd.com>
350
351 PR tree-optimization/37375
352 * tree-scalar-evolution.c (scev_info_str): Add field instantiated_below.
353 (new_scev_info_str, eq_scev_info, find_var_scev_info,
354 set_scalar_evolution, get_scalar_evolution, get_instantiated_value,
355 set_instantiated_value): Pass instantiated_below.
356 (analyze_scalar_evolution_1, analyze_scalar_evolution): Update calls to
357 above functions.
358 (instantiate_scev_1, instantiate_scev): Pass a basic block above which
359 the definitions are not instantiated.
360
361 * tree-scalar-evolution.h (instantiate_scev): Update declaration.
362 (block_before_loop): New.
363 * tree-data-ref.c (dr_analyze_indices): Update uses of instantiate_scev.
364 * graphite.c (block_before_scop): New.
365 (loop_affine_expr, stmt_simple_for_scop_p, harmful_stmt_in_bb): Pass a
366 basic block, not a loop for determining the parameters.
367 (scopdet_edge_info, build_scops_1): Do not pass outermost loop in the
368 scop.
369 (idx_record_params, find_params_in_bb, find_scop_parameters,
370 build_loop_iteration_domains, add_conditions_to_domain): Update calls
371 to instantiate_scev.
372
373 * Makefile.in (cfgloopmanip.o): Add missing dependency on TREE_FLOW_H.
374
375 2008-09-09 Vladimir Makarov <vmakarov@redhat.com>
376
377 PR rtl-opt/37333
378
379 * ira-build.c (ira_create_allocno): Setup frequency to 0.
380
381 * ira-color.c (update_conflict_hard_regno_costs): Remove assert.
382 Check zero freq and increase if necessary.
383
384 2008-09-09 Vladimir Makarov <vmakarov@redhat.com>
385
386 * ira-conflicts.c (process_regs_for_copy): Check that the hard
387 regno is in the right range. Add comments.
388
389 2008-09-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
390
391 * Makefile.in (mips-tfile.o-warn): Don't error out on mips-tfile.c
392 warnings.
393 * mips-tfile.c (copy_object): Cast alloca result to int *.
394 * mips-tdump.c (print_symbol): Cast xmalloc return values to
395 proper types.
396 Rename class to sclass.
397 (read_tfile): Cast read_seek return values to proper types.
398 Cast xcalloc return value to proper type.
399
400 2008-09-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
401
402 * config/sol2.h (REGISTER_TARGET_PRAGMAS): Move ...
403 * config/i386/sol2.h (REGISTER_SUBTARGET_PRAGMAS): ... here.
404 * config/sparc/sol2.h (REGISTER_TARGET_PRAGMAS): ... and here.
405
406 2008-09-09 Jan Hubicka <jh@suse.cz>
407
408 * profile.c (is_edge_inconsistent): Add debug output; ignore
409 negative count on fake edges.
410 (is_inconsistent): Add debug output.
411
412 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
413
414 * haifa-sched.c (advance_one_cycle): Do not print '\n' before printing
415 dump message.
416 (choose_ready): When first insn is chosen from the ready list, also
417 dump it.
418
419 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
420
421 PR rtl-optimization/37360
422 * haifa-sched.c (max_issue): Do not assert that we never issue more
423 insns than issue_rate. Add comment.
424
425 2008-09-09 Richard Guenther <rguenther@suse.de>
426
427 * tree-cfg.c (verify_types_in_gimple_op): Remove.
428 (verify_types_in_gimple_call): Rename to ...
429 (verify_gimple_call): ... this. Enhance.
430 (verify_types_in_gimple_cond): Remove.
431 (verify_gimple_comparison): New function ...
432 (verify_types_in_gimple_assign): ... split out from here.
433 (verify_types_in_gimple_return): Rename to ...
434 (verify_gimple_return): ... this. Enhance.
435 (verify_types_in_gimple_switch): Rename to ...
436 (verify_gimple_switch): ... this. Enhance.
437 (verify_gimple_goto): New function.
438 (verify_types_in_gimple_phi): Rename to ...
439 (verify_gimple_phi): ... this. Enhance.
440 (verify_types_in_gimple_stmt): Adjust calls to helper functions.
441 Fold in single-statement cases from verify_types_in_gimple_seq_2.
442 (verify_types_in_gimple_seq_2): Remove cases handled in
443 verify_types_in_gimple_stmt.
444
445 2008-09-09 Bernd Schmidt <bernd.schmidt@analog.com>
446
447 * config/bfin/bfin.c (n_regs_to_save): New static variable.
448 (push_multiple_operation, pop_multiple_operation): Set it.
449 (workaround_rts_anomaly): New function.
450 (workaround_speculation): New function, broken out of bfin_reorg.
451 (bfin_reorg): Call the new functions.
452
453 2008-09-09 Richard Guenther <rguenther@suse.de>
454
455 PR middle-end/37354
456 PR middle-end/30165
457 * gimplify.c (gimplify_conversion): Change conversions of
458 non-register type to VIEW_CONVERT_EXPRs.
459 (gimplify_addr_expr): If we need to make the operand
460 addressable make sure to use a properly initialized
461 temporary for that so it gets a valid gimple store.
462
463 2008-09-09 Aldy Hernandez <aldyh@redhat.com>
464
465 * function.h (struct function): Add function_start_locus.
466 * cfgexpand.c (gimple_expand_cfg): Use it.
467 * c-parser.c (c_parser_declaration_or_fndef): Set it.
468
469 2008-09-09 Richard Guenther <rguenther@suse.de>
470
471 PR tree-optimization/37433
472 * tree-ssa-ccp.c (ccp_fold): Properly guard folding of
473 function calls.
474
475 2008-09-09 Richard Guenther <rguenther@suse.de>
476
477 PR tree-optimization/37387
478 * tree-ssa-ifcombine.c (ifcombine_iforif): Convert the name
479 and bits to a common type.
480
481 2008-09-09 Nick Clifton <nickc@redhat.com>
482
483 * config/v850/v850.md (return): Restore frame size restriction.
484
485 2008-09-09 Paolo Bonzini <bonzini@gnu.org>
486
487 * c-common.c (c_expand_decl): Remove.
488 * c-common.h (anon_aggr_type_p): Remove prototype.
489 (DECL_ANON_UNION_ELEMS): Remove.
490 * c-objc-common.h (LANG_HOOKS_EXPAND_DECL): Remove.
491 * c-decl.c (anon_aggr_type_p): Remove.
492 * langhooks-def.h (LANG_HOOKS_EXPAND_DECL): Remove.
493 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_EXPAND_DECL.
494 * langhooks.h (struct lang_hooks): Remove expand_decl.
495 * langhooks.c (lhd_expand_decl): Remove.
496 * stmt.c (expand_anon_union_decl): Remove.
497 * tree.h (expand_anon_union_decl): Remove prototype.
498
499 2008-08-09 Andy Hutchinson <hutchinsonandy@aim.com>
500
501 PR target/36609
502 * config/avr/avr.c (avr_reorg): Create RTL for reversed compare with
503 zero.
504 * config/avr/avr.md (QISI) : Define mode iterator.
505 (negated_tst<mode>) : Redefine as split using mode macro.
506 (reversed_tstqi): Define insn as reversed compare with zero.
507 (reversed_tsthi): Ditto.
508 (reversed_tstsi): Ditto.
509
510 2008-09-08 Jakub Jelinek <jakub@redhat.com>
511
512 PR middle-end/37393
513 * tree-inline.c (copy_bb): When replacing a gimple_call_va_arg_pack_p
514 call stmt by new_call, clear gimple_bb on stmt after gsi_replace.
515
516 PR middle-end/37414
517 * predict.c (optimize_function_for_size_p): Don't segfault if
518 FUN is NULL.
519 * fold-const.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop,
520 tree_swap_operands_p): Don't test cfun != NULL before calling
521 optimize_function_for_s*_p.
522
523 2008-09-08 Eric Botcazou <ebotcazou@adacore.com>
524
525 * ira-color.c (ira_reuse_stack_slot): Set slot_num on success at the
526 end of the search.
527
528 2008-09-08 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
529
530 * crx/crx.h (IRA_COVER_CLASSES): Define.
531
532 2008-09-08 Jakub Jelinek <jakub@redhat.com>
533
534 PR middle-end/37337
535 * tree-ssa-dom.c (optimize_stmt): Call maybe_clean_or_replace_eh_stmt
536 even when a stmt has been gimple_modified_p, but after fold_stmt is
537 not any longer. Remove unneeded may_have_exposed_new_symbols
538 initializations.
539
540 2008-09-08 Richard Guenther <rguenther@suse.de>
541
542 PR tree-optimization/37421
543 * tree-ssa-sccvn.c (visit_copy): Make sure to fully
544 valueize the RHS.
545
546 2008-09-08 Jakub Jelinek <jakub@redhat.com>
547
548 PR middle-end/37415
549 * opts.c (common_handle_option): Handle OPT_ftree_store_ccp.
550
551 2008-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
552
553 PR driver/37409
554 * pa-hpux.h (LINK_SPEC): Strip -fwhole-program.
555 * pa-hpux10.h (LINK_SPEC): Likewise.
556 * pa-hpux11.h (LINK_SPEC): Likewise.
557
558 2008-09-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
559
560 * pa32-regs.h (IRA_COVER_CLASSES): Define.
561 * pa64-regs.h (IRA_COVER_CLASSES): Define.
562
563 2008-09-07 Helge Deller <deller@gmx.de>
564
565 * pa/linux-atomic.c: New file.
566 * pa/t-linux (LIB2FUNCS_STATIC_EXTRA): Define.
567 * pa/t-linux64 (LIB2FUNCS_STATIC_EXTRA): Define.
568
569 2008-09-07 Richard Guenther <rguenther@suse.de>
570 Ira Rosen <irar@il.ibm.com>
571
572 PR tree-optimization/36630
573 * tree-vect-transform.c (vect_update_ivs_after_vectorizer):
574 Call STRIP_NOPS before calling evolution_part_in_loop_num.
575
576 2008-09-07 Dorit Nuzman <dorit@il.ibm.com>
577 Ira Rosen <irar@il.ibm.com>
578
579 PR tree-optimization/35642
580 * config/rs6000/altivec.md (mulv8hi3): Implement.
581
582 2008-09-06 Jeff Law <law@redhat.com>
583
584 * h8300/h8300.h (IRA_COVER_CLASSES): Define.
585
586 2008-09-06 Jan Hubicka <jh@suse.cz>
587
588 PR tree-optimization/14703
589 * tree-ssa-live.c (remove_unused_scope_block_p): Remove ignored
590 declarations.
591 * passes.c (init_optimization_passes): Recompute inline parameters.
592
593 2008-09-06 Richard Sandiford <rdsandiford@googlemail.com>
594
595 * config/mips/mips.c (mips_function_ok_for_sibcall): Check for
596 DECL being null.
597
598 2008-09-06 Richard Sandiford <rdsandiford@goolemail.com>
599 Peter Fuerst <post@pfrst.de>
600
601 * doc/invoke.texi: Document -mr10k-cache-barrier=.
602 * doc/extend.texi: Document __builtin_mips_cache.
603 * config/mips/mips-ftypes.def: Add a (VOID, SI, CVPOINTER) entry.
604 * config/mips/mips.opt (mr10k-cache-barrier=): New option.
605 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
606 __GCC_HAVE_BUILTIN_MIPS_CACHE.
607 (TARGET_CACHE_BUILTIN, ISA_HAS_CACHE): New macros.
608 * config/mips/mips.c (mips_r10k_cache_barrier_setting): New enum.
609 (set_push_mips_isas): New variable.
610 (mips_r10k_cache_barrier): New variable.
611 (cache): New availability predicate.
612 (mips_builtins): Add an entry for __builtin_mips_cache.
613 (mips_build_cvpointer_type): New function.
614 (MIPS_ATYPE_CVPOINTER): New macro.
615 (mips_prepare_builtin_arg): Only use the insn's mode if the rtx's
616 mode is VOIDmode.
617 (r10k_simplified_address_p, r10k_simplify_address)
618 (r10k_uncached_address_p, r10k_safe_address_p)
619 (r10k_needs_protection_p_1, r10k_needs_protection_p_store)
620 (r10k_needs_protection_p_call, r10k_needs_protection_p)
621 (r10k_insert_cache_barriers): New functions.
622 (mips_reorg_process_insns): Delete cache barriers after a
623 branch-likely instruction.
624 (mips_reorg): Call r10k_insert_cache_barriers.
625 (mips_handle_option): Handle OPT_mr10k_cache_barrier_.
626 * config/mips/mips.md (UNSPEC_MIPS_CACHE): New constant.
627 (UNSPEC_R10K_CACHE_BARRIER): Likewise.
628 (mips_cache, r10k_cache_barrier): New define_insns.
629
630 2008-09-06 Richard Sandiford <rdsandiford@googlemail.com>
631
632 * ira-int.h (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
633 * ira-color.c (setup_allocno_left_conflicts_num): Use
634 hard_reg_set_equal_p instead of a comparison with
635 ira_zero_hard_reg_set.
636 * ira.c (setup_reg_subclasses): Likewise.
637 (setup_cover_and_important_classes): Likewise.
638 (setup_class_translate): Likewise.
639 (setup_reg_class_intersect_union): Likewise.
640 (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
641 (ira_init_once): Don't initialize them.
642
643 2008-09-05 Vladimir Makarov <vmakarov@redhat.com>
644
645 * doc/tm.texi (IRA_COVER_CLASSES): Fix a typo.
646
647 2008-09-05 Vladimir Makarov <vmakarov@redhat.com>
648
649 * ira-color.c (ira_fast_allocation): Permit global allocno allocation.
650
651 2008-09-05 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
652
653 Improved branch hints, safe hints, and scheduling.
654
655 * haifa-sched.c (sched_emit_insn) : Define.
656 * sched-int.h (sched_emit_insn) : Add prototype.
657 * doc/invoke.texi (-mdual-nops, -mhint-max-nops,
658 -mhint-max-distance -msafe-hints) : Document.
659 * config/spu/spu.c (spu_flag_var_tracking): New.
660 (TARGET_SCHED_INIT_GLOBAL, TARGET_SCHED_INIT,
661 TARGET_SCHED_REORDER, TARGET_SCHED_REORDER2,
662 TARGET_ASM_FILE_START): Define.
663 (TARGET_SCHED_ADJUST_PRIORITY): Remove.
664 (STOP_HINT_P, HINTED_P, SCHED_ON_EVEN_P): Define.
665 (spu_emit_branch_hint): Add blocks argument.
666 (insert_branch_hints, insert_nops): Remove.
667 (pad_bb, insert_hbrp_for_ilb_runout, insert_hbrp, in_spu_reorg,
668 uses_ls_unit, spu_sched_init_global, spu_sched_init,
669 spu_sched_reorder, asm_file_start): New functions.
670 (clock_var, spu_sched_length, pipe0_clock,
671 pipe1_clock, prev_clock_var, prev_priority,
672 spu_ls_first, prev_ls_clock): New static variables.
673 * config/spu/spu.h (TARGET_DEFAULT): Add MASK_SAFE_HINTS.
674 * config/spu.md (iprefetch): Add operand, make it clobber MEM.
675 (nopn_nv): Add a non-volatile version of nop.
676 * config/spu/spu.opt (-mdual-nops, -mhint-max-nops,
677 -mhint-max-distance, -msafe-hints): New options.
678
679 2008-09-05 Janis Johnson <janis187@us.ibm.com>
680 Samuel Tardieu <sam@rfc1149.net>
681
682 * opts.c (decode_options): Combine nested if statements.
683
684 PR target/37283
685 * opts.c (decode_options): Handle more relationships among
686 unit-at-a-time, toplevel-reorder, and section-anchors.
687
688 2008-09-05 David Daney <ddaney@avtrex.com>
689
690 * doc/install.texi (--enable-reduced-reflection): Document new option.
691
692 2008-09-05 Bob Wilson <bob.wilson@acm.org>
693
694 * config/xtensa/predicates.md (nonimmed_operand, mem_operand): Use
695 constantpool_mem_p.
696 (constantpool_operand): New.
697 (move_operand): Disallow sub-word modes for the constant pool.
698 * config/xtensa/xtensa.c (TARGET_SECONDARY_RELOAD): Define.
699 (xtensa_secondary_reload_class): Replace with....
700 (xtensa_secondary_reload): this function. Remove SIGN_EXTEND check.
701 Set icode for sub-word reloads from the constant pool.
702 * config/xtensa/xtensa.h (SECONDARY_INPUT_RELOAD_CLASS): Delete.
703 (SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
704 * config/xtensa/xtensa.md (reload<mode>_literal): New.
705 * config/xtensa/xtensa-protos.h: Update prototypes.
706
707 2008-09-05 Joseph Myers <joseph@codesourcery.com>
708
709 * config/mips/mips.h (enum reg_class): Add FRAME_REGS.
710 (REG_CLASS_NAMES): Update.
711 (REG_CLASS_CONTENTS): Update.
712 * config/mips/mips.c (mips_regno_to_class): Use FRAME_REGS instead
713 of ALL_REGS for regs 77 and 78.
714 * function.c (instantiate_virtual_regs_in_insn): Assert that
715 return value of simplify_gen_subreg is not NULL.
716
717 2008-09-05 Paolo Bonzini <bonzini@gnu.org>
718
719 * emit-rtl.c (gen_rtvec): Rewrite not using gen_rtvec_v.
720 (gen_rtvec_v): Fix coding standards.
721
722 2008-09-04 Jan Hubicka <jh@suse.cz>
723
724 * i386.c (decide_alg): Be more conservative about optimizing for size.
725
726 2008-09-04 Ian Lance Taylor <iant@google.com>
727
728 * varasm.c (narrowing_initializer_constant_valid_p): New
729 static function.
730 (initializer_constant_valid_p): Call it.
731
732 2008-09-04 Jeff Law <law@redhat.com>
733
734 * fold-const.c (native_encode_real): Fix computation of WORDS.
735 (native_interpret_real): Likewise.
736
737 2008-09-04 Janis Johnson <janis187@us.ibm.com>
738
739 * config/rs6000/t-rs6000: Remove target gt-rs6000.h.
740
741 2008-09-04 Vladimir Makarov <vmakarov@redhat.com>
742
743 * ira-conflicts.c (process_regs_for_copy): Check insn to check
744 that the cost is already taken into account in ira-costs.c
745
746 * ira-int.h (ira_debug_copy, ira_debug_copies): New.
747
748 * ira-build.c (print_copy, print_copies, ira_debug_copy,
749 ira_debug_copies): New.
750 (ira_bulid): Call print_copies.
751
752 * doc/tm.texi (IRA_COVER_CLASSES): Fix the description.
753
754 2008-09-04 Samuel Tardieu <sam@rfc1149.net>
755
756 PR target/32783
757 * config/rs6000/rs6000.c (optimization_options): Remove check of
758 flag_toplevel_order.
759
760 2008-09-04 Adam Nemet <anemet@caviumnetworks.com>
761
762 * config/mips/mips.h (ISA_HAS_SEQ_SNE): New macro.
763 * config/mips/mips.c (mips_expand_scc): Also expand seq and sne if
764 second operand is a reg_imm10_operand.
765 * config/mips/mips.md (*seq_<GPR:mode><GPR2:mode>_seq,
766 *sne_<GPR:mode><GPR2:mode>_sne): New patterns.
767 (*seq_<GPR:mode><GPR2:mode>): Rename to
768 *seq_zero_<GPR:mode><GPR2:mode>. Don't match if
769 ISA_HAS_SEQ_SNE.
770 (*seq_<GPR:mode><GPR2:mode>_mips16): Rename to
771 *seq_zero_<GPR:mode><GPR2:mode>_mip16. Don't match if
772 ISA_HAS_SEQ_SNE.
773 (*sne_<GPR:mode><GPR2:mode>): Rename to
774 *sne_zero_<GPR:mode><GPR2:mode>. Don't match if
775 ISA_HAS_SEQ_SNE.
776
777 2008-09-04 Adam Nemet <anemet@caviumnetworks.com>
778
779 * config/mips/mips.h (ISA_HAS_EXTS): New macro.
780 * config/mips/mips.md (*ashr_trunc<mode>): Name the pattern
781 combining an arithmetic right shift by more than 31 and a
782 trunction. Don't match for out-of-range shift amounts. Set
783 attribute mode to <MODE>.
784 (*lshr32_trunc<mode>): Name the pattern combining a logical right
785 shift by 32 and and a truncation. Set attribute mode to <MODE>.
786 (*<optab>_trunc<mode>_exts): New pattern for truncated right
787 shifts by less than 32.
788 (extv): Change predicate on first operand to accept registers.
789 Change predicate of the other operands from immediate_operand to
790 const_int_operand. Expand exts when source is a register.
791 (extzv): Change predicate of the constant operands from
792 immediate_operand to const_int_operand.
793 (extzv<mode>): Change predicate of the constant operands from
794 immediate_operand to const_int_operand and no constraint. Also
795 remove mode.
796 (*extzv_trunc<mode>_exts): New pattern.
797
798 2008-09-04 Adam Nemet <anemet@caviumnetworks.com>
799
800 * config/mips/mips.h (ISA_HAS_CINS): New macro.
801 * config/mips/mips-protos.h (mask_low_and_shift_p,
802 mask_low_and_shift_len): Declare.
803 * config/mips/mips.c (mask_low_and_shift_p,
804 mask_low_and_shift_len): New functions.
805 (mips_print_operand): Handle new operand prefix "m".
806 * config/mips/mips.md (*cins<mode>): New pattern.
807
808 2008-09-04 Bernd Schmidt <bernd.schmidt@analog.com>
809
810 * config/bfin/bfin.c (gen_one_bundle): Don't create new nops when
811 optimizing for size.
812
813 2008-09-04 Richard Sandiford <rdsandiford@googlemail.com>
814
815 * df-scan.c (df_get_entry_block_def_set): Add STACK_POINTER_REGNUM
816 regardless of epilogue_completed.
817
818 2008-09-04 Vladimir Makarov <vmakarov@redhat.com>
819
820 PR middle-end/37359
821 * ira-lives.c (process_bb_node_lives): Check setjmp.
822
823 2008-09-04 Richard Sandiford <rdsandiford@googlemail.com>
824
825 PR middle-end/37243
826 * ira-build.c (form_loop_tree): Reverse BB walk.
827 (create_bb_allocnos): Likewise.
828 * ira-lives.c (make_regno_born_and_dead, regs_set): Delete.
829 (mark_reg_store): Rename to...
830 (mark_ref_live): ...this and take a df_ref argument instead of
831 note_stores arguments. Assert that we have a register.
832 (mark_reg_clobber): Delete.
833 (def_conflicts_with_inputs_p): New function.
834 (mark_reg_conflicts): Delete.
835 (mark_reg_death): Rename to...
836 (mark_ref_dead): ...this and take a df_ref argument instead of
837 a register. Assert that we have a register.
838 (process_bb_node_lives): Hoist frequency calculation out of
839 instruction walk. Convert from a forwards scan to a backwards scan.
840 Use DF_REF_USES and DF_REF_DEFS instead of register notes and
841 note_stores. Remove EH_RETURN_DATA_REGNO and regs_set handling.
842 (create_allocno_live_ranges): Don't create regs_set.
843
844 2008-09-04 Ian Lance Taylor <iant@google.com>
845
846 * rtl.h (LABEL_REF_NONLOCAL_P): Don't check for REG_LABEL_OPERAND
847 or REG_LABEL_TARGET.
848 * calls.c (emit_library_call_value_1): Use MEM_P rather than
849 comparing MODE with MEM.
850 * gimple.c (gimple_build_predict): Cast END_PREDICTORS before
851 comparing with GF_PREDICT_TAKEN.
852 (gimple_get_lhs): Change code to enum gimple_code.
853 (gimple_set_lhs): Likewise.
854 * ifcvt.c (noce_process_if_block): Correct GET_MODE to GET_CODE.
855 * omp-low.c (find_omp_clause): Change kind parameter to enum
856 omp_clause_code.
857 * tree-flow.h (find_omp_clause): Update declaration.
858 * regrename.c (clear_dead_regs): Change kind parameter to enum
859 reg_note.
860 * reload1.c (eliminate_regs_1): Use REG_NOTE_KIND rather than
861 GET_MODE.
862 * see.c (see_get_extension_data): Change return type to enum
863 entry_type. Change UNKNOWN to NOT_RELEVANT, SIGN_EXTEND to
864 SIGNED_EXTENDED_DEF, ZERO_EXTEND to ZERO_EXTENDED_DEF.
865 (see_gen_normalized_extension): Change extension_code parameter to
866 enum entry_type.
867 (see_seek_pre_extension_expr): Change extension_code to enum
868 entry_type.
869 (see_merge_one_def_extension): Likewise.
870 (see_handle_relevant_defs): Likewise.
871 (see_handle_relevant_uses): Likewise.
872 (see_analyze_one_def): Likewise.
873 * tree-cfg.c (need_fake_edge_p): Compare gimple code with
874 GIMPLE_ASM rather than ASM_EXPR.
875 * tree-ssa-alias.c (is_escape_site): Compare gimple code with
876 GIMPLE_RETURN rather than RETURN_EXPR.
877 * tree-ssa-ccp.c (likely_value): Change code to enum gimple_code.
878 (evaluate_stmt): Likewise.
879 * tree-vect-analyze.c (vect_analyze_operations): Change relevance
880 to enum vect_relevant.
881 (vect_mark_stmts_to_be_vectorized): Change assertion to not
882 compare gimple codes with tree codes.
883
884 2008-09-04 Paul Brook <paul@codesourcery.com>
885
886 * config/arm/arm.c (arm_size_rtx_costs): Call cost function.
887
888 2008-09-04 Bernd Schmidt <bernd.schmidt@analog.com>
889
890 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Restore a null
891 pointer check lost in the recent no-unit-at-a-time patch.
892
893 2008-09-04 Jan Hubicka <jh@suse.cz>
894
895 PR middle-end/37343
896 * tree-switch-conversion.c (check_final_bb): Accept only IP
897 invariants.
898
899 2008-09-04 Jan Hubicka <jh@suse.cz>
900
901 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
902 Break out from ...
903 (vrp_evaluate_conditional_warnv_with_ops): ... this one. Add
904 using_ranges argument.
905 (vrp_evaluate_conditional): Avoid bogus warning for type range.
906 (vrp_visit_cond_stmt): Update call of
907 vrp_evaluate_conditional_warnv_with_ops
908
909 2008-09-04 Jan Hubicka <jh@suse.cz>
910
911 PR tree-optimization/37345
912 PR tree-optimization/37358
913 PR tree-optimization/37357
914 * tree.c (build_function_type_skip_args): Build distinct type copy;
915 set TYPE_CONTEXT.
916 (build_function_decl_skip_args): Set type of new decl not orig decl;
917 clear DECL_VINDEX for methods turned into functions.
918
919 2008-09-04 Nick Clifton <nickc@redhat.com>
920
921 * configure.ac (HAVE_GAS_LCOMM_WITH_ALIGNMENT): New assembler check.
922 * configure: Regenerate.
923 * config.in: Regenerate.
924 * config/i386/bsd.h (ASM_OUTPUT_ALIGNED_LOCAL): Use .lcomm with an
925 alignment field, if it is supported.
926
927 2008-09-04 Kai Tietz <kai.tietz@onevision.com>
928
929 * config/i386/t-mingw32 (SHLIB_LC): Change order of import
930 libraries.
931
932 2008-09-03 David Edelsohn <edelsohn@gnu.org>
933
934 * config/rs6000/rs6000.c (processor_target_table): Do not
935 enable VMX for POWER6.
936
937 2008-09-03 Anton Blanchard <anton@samba.org>
938
939 * config/rs6000/rs6000.c (rs6000_split_lock_test_and_set): Do not
940 emit memory barrier before operation.
941
942 2008-09-03 John David Anglin <dave.anglin@nrc.cnrc.gc.ca>
943
944 PR testsuite/37325
945 * config/pa/pa64-hpux.h (ASM_OUTPUT_EXTERNAL_REAL): Call
946 default_elf_asm_output_external.
947
948 2008-09-03 Jeff Law <law@redhat.com>
949
950 * h8300.c (expand_a_shift): Avoid invalid RTL sharing.
951
952 2008-09-03 Richard Henderson <rth@redhat.com>
953
954 * config/alpha/alpha.c (alpha_split_lock_test_and_set): Move
955 memory barrier to below the test-and-set.
956 (alpha_split_lock_test_and_set_12): Likewise.
957
958 2008-09-03 Vladimir Makarov <vmakarov@redhat.com>
959
960 PR rtl-opt/37243
961
962 * ira-int.h (ira_loop_tree_node): Rename mentioned_allocnos to
963 all_allocnos.
964
965 * ira-color.c (print_loop_title): Use all_allocnos.
966 (color_pass): Ditto. Don't add border_allocnos. Check that
967 subloop allocno in the correspdoning bitmap all_allocnos.
968
969 * ira-emit.c (change_loop): Use all_allocnos.
970
971 * ira-build.c (create_loop_tree_nodes, finish_loop_tree_node):
972 Ditto.
973 (ira_create_allocno): Set up all_allocnos bit for the created
974 allocno.
975 (create_cap_allocno): Remove setting mentioned_allocnos.
976 (create_insn_allocnos): Ditto.
977 (remove_unnecessary_allocnos): Use all_allocnos.
978 (check_allocno_creation): Check that allocnos are in the
979 corresponding bitmap all_allocnos.
980
981 2008-09-03 Vladimir Makarov <vmakarov@redhat.com>
982
983 PR rtl-opt/37243
984
985 * ira-conflicts.c (REG_SUBREG_P, go_through_subreg): New.
986 (process_regs_for_copy): Process subregs. Refine check when cost
987 is taken into account in ira-costs.c.
988 (process_reg_shuffles): Use REG_SUBREG_P.
989 (add_insn_allocno_copies): Ditto. Ignore modes.
990
991 * ira-color.c (conflict_allocno_vec): New.
992 (COST_HOP_DIVISOR): New macro.
993 (update_copy_costs_1): Use it.
994 (update_conflict_hard_regno_costs): New function.
995 (assign_hard_reg): Use it.
996 (ira_color): Allocate and free conflict_allocno_vec.
997
998 2008-09-03 Vladimir Makarov <vmakarov@redhat.com>
999
1000 PR rtl-opt/37296
1001
1002 * ira-int.h (ira_sort_insn_chain): Remove.
1003
1004 * ira.c (basic_block_order_nums, chain_insn_order,
1005 chain_freq_compare, chain_bb_compare, ira_sort_insn_chain): Remove.
1006 (ira): Don't call ira_sort_insn_chain.
1007
1008 * reload1.c (reload): Don't call ira_sort_insn_chain.
1009
1010 2008-09-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
1011
1012 PR middle-end/37293
1013 * cgraphunit.c (update_call_expr): Remove eh regions from statements
1014 which become non throw.
1015 (cgraph_function_versioning): Also clear DECL_WEAK. Call
1016 update_call_expr after updating the flags on the decl.
1017
1018 2008-09-03 Jan Hubicka <jh@suse.cz>
1019
1020 PR tree-optimization/37315
1021 * cgraph.c (cgraph_create_edge): Use gimple_has_body_p.
1022 * cgraphunit.c (verify_cgraph_node): drop gimple_body check.
1023 (cgraph_analyze_functions): Use node->analyzed
1024 (cgraph_mark_functions_to_output): Likewise.
1025 (cgraph_expand_function): All functions can be released after
1026 expanding.
1027 (cgraph_optimize): Use gimple_has_body_p.
1028 * ipa-inline.c (cgraph_clone_inlined_nodes): Use analyzed flag.
1029 (cgraph_decide_inlining_incrementally): Likewise.
1030 (inline_transform): Inline transform.
1031 * tree-inline.c (initialize_cfun): Do now shallow copy structure;
1032 copy fields needed.
1033 (inlinable_function_p): Drop gimple_body check.
1034 (expand_call_inline): Use gimple_has_body_p.
1035 * gimple.c (gimple_has_body_p): New.
1036 * gimple.h (gimple_has_body_p): Add prototype.
1037 * tree-cfg.c (execute_build_cfg): Remove gimple_body.
1038 (dump_function_to_file): Use gimple_has_body_p check.
1039
1040 2008-09-03 Jakub Jelinek <jakub@redhat.com>
1041
1042 PR c++/37346
1043 * gimple.h (gimple_has_substatements): GIMPLE_OMP_CRITICAL has
1044 substatements.
1045 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_CRITICAL.
1046
1047 2008-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
1048
1049 From Michael Frysinger <michael.frysinger@analog.com>
1050 * config/bfin/bfin.c (bfin_cpus[]): Add 0.1 for bf522, bf523, bf524,
1051 bf525, bf526, bf527, bf542, bf544, bf547, bf548, and bf549. Add 0.2
1052 for bf538.
1053
1054 2008-09-03 Hari Sandanagobalane <hariharan@picochip.com>
1055
1056 Add picoChip port.
1057 * doc/extend.texi: Document picoChip builtin functions.
1058 * doc/invoke.texi: Document picoChip options.
1059 * doc/contrib.texi: Add picoChip contribution.
1060 * doc/md.texi: Document picoChip constraints.
1061 * config.gcc: Add picochip-*-*.
1062 * config/picochip/: Add new port.
1063
1064 2008-09-03 Richard Guenther <rguenther@suse.de>
1065
1066 PR tree-optimization/37328
1067 * tree-sra.c (sra_build_assignment): Gimplify properly.
1068 (generate_copy_inout): Take the correct stmt as definition,
1069 remove bogus assert.
1070
1071 2008-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
1072
1073 * config/bfin/bfin.c (bfin_expand_prologue): Honour no_stack_limit
1074 attributes.
1075
1076 From Michael Frysinger <michael.frysinger@analog.com>
1077 * config/bfin/bfin.c (bfin_handle_option): Remove BF561 warning.
1078
1079 2008-09-03 Danny Smith <dannysmith@usrs.sourceforge.net>
1080
1081 * gthr-win32.h (CONST_CAST2): Really make sure CONST_CAST2 is defined.
1082 (__gthread_setspecific): Revert 2008-08-31 change to
1083 __GTHREAD_HIDE_W32API case. Apply it to !__GTHREAD_HIDE_W32API case.
1084
1085 2008-09-02 Aldy Hernandez <aldyh@redhat.com>
1086
1087 * diagnostic.c (error_at): New.
1088 * toplev.h (error_at): New prototype.
1089 * c-typeck.c (build_array_ref): Call error_at instead of error.
1090 Pass location to pedwarn.
1091
1092 2008-09-02 Adam Nemet <anemet@caviumnetworks.com>
1093
1094 * sel-sched.c (sel_hard_regno_rename_ok): Mark arguments unused.
1095
1096 2008-09-02 Jakub Jelinek <jakub@redhat.com>
1097
1098 * dwarf2out.c (tree_add_const_value_attribute): Only handle
1099 VAR_DECL and CONST_DECL.
1100
1101 2008-09-02 H.J. Lu <hongjiu.lu@intel.com>
1102 Jakub Jelinek <jakub@redhat.com>
1103
1104 * config/i386/i386.c (X86_64_VARARGS_SIZE): Removed.
1105 (setup_incoming_varargs_64): Assume cum != NULL. Set/check
1106 ix86_varargs_gpr_size and ix86_varargs_fpr_size. Use
1107 ix86_varargs_gpr_size instead of X86_64_REGPARM_MAX.
1108 Don't set ix86_save_varrargs_registers.
1109 (ix86_setup_incoming_varargs): Assume cum != NULL.
1110 (ix86_va_start): Check ix86_varargs_gpr_size and
1111 ix86_varargs_fpr_size instead of cfun->va_list_gpr_size and
1112 cfun->va_list_fpr_size, respectively. Subtract 8*X86_64_REGPARM_MAX
1113 from frame pointer if ix86_varargs_gpr_size == 0.
1114 (ix86_compute_frame_layout): Updated.
1115 * config/i386/i386.h (ix86_save_varrargs_registers): Removed.
1116 (ix86_varargs_gpr_size): Define.
1117 (ix86_varargs_fpr_size): Likewise.
1118 (machine_function): Remove save_varrargs_registers.
1119 Add varargs_gpr_size and varargs_fpr_size.
1120
1121 2008-09-02 Jakub Jelinek <jakub@redhat.com>
1122
1123 * config/alpha/alpha.c (va_list_skip_additions,
1124 alpha_stdarg_optimize_hook, alpha_gimplify_va_arg_1): Tuplify.
1125 (alpha_gimplify_va_arg): Call unshare_expr on second use of
1126 offset_field.
1127
1128 PR tree-optimization/36766
1129 * tree-cfg.c (gimple_purge_all_dead_eh_edges): Do nothing
1130 for already removed basic blocks.
1131
1132 PR target/36332
1133 * real.c (real_maxval): Clear a lower bit to make real_maxval
1134 match get_max_float for IBM long double format.
1135
1136 2008-09-02 Andreas Schwab <schwab@suse.de>
1137
1138 * configure.ac: Use m4_quote to quote the expansion of m4_do.
1139 * configure: Regenerate.
1140
1141 2008-09-02 Richard Sandiford <rdsandiford@googlemail.com>
1142
1143 * simplify-rtx.c (simplify_binary_operation_1): Check for CONST,
1144 SYMBOL_REF and LABEL_REF when applying plus_constant, instead of
1145 checking for a non-VOID CONSTANT_P.
1146
1147 2008-09-02 Jan Hubicka <jh@suse.cz>
1148
1149 * predict.c (pass_strip_predict_hints): Avoid bugs dump file.
1150 * expmed.c (expand_divmod): Fix test of smod_pow2_cheap and
1151 sdiv_pow2_cheap
1152
1153 2008-09-02 H.J. Lu <hongjiu.lu@intel.com>
1154
1155 * expr.c (emit_group_store): Don't assert stack temp mode size.
1156
1157 2008-09-02 Sebastian Pop <sebastian.pop@amd.com>
1158 Tobias Grosser <grosser@fim.uni-passau.de>
1159 Jan Sjodin <jan.sjodin@amd.com>
1160 Harsha Jagasia <harsha.jagasia@amd.com>
1161 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
1162 Konrad Trifunovic <konrad.trifunovic@inria.fr>
1163 Adrien Eliche <aeliche@isty.uvsq.fr>
1164
1165 Merge from graphite branch.
1166 * graphite.c: New.
1167 * graphite.h: New.
1168 * tree-loop-linear.c (perfect_loop_nest_depth): Export.
1169 * doc/invoke.texi (-floop-block, -floop-interchange,
1170 -floop-strip-mine): Document new flags.
1171 * tree-into-ssa.c (gimple_vec): Moved...
1172 * tree-loop-distribution.c (rdg_component): Moved...
1173 * cfgloopmanip.c: Include tree-flow.h.
1174 (update_dominators_in_loop): New.
1175 (create_empty_if_region_on_edge): New.
1176 (create_empty_loop_on_edge): New.
1177 (loopify): Use update_dominators_in_loop.
1178 * tree-pass.h (pass_graphite_transforms): Declared.
1179 * configure: Regenerate.
1180 * tree-phinodes.c (make_phi_node): Export.
1181 (add_phi_node_to_bb): New, split from create_phi_node.
1182 * tree-chrec.c (for_each_scev_op): New.
1183 * tree-chrec.h (for_each_scev_op): Declared.
1184 * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
1185 (remove_statement): Call get_phi_with_result.
1186 * config.in (HAVE_cloog): Undef.
1187 * gdbinit.in (pgg): New.
1188 * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
1189 * tree-ssa-loop.c (graphite_transforms): New.
1190 (gate_graphite_transforms): New.
1191 (pass_graphite_transforms): New.
1192 * configure.ac (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC,
1193 HAVE_cloog): Defined.
1194 * tree-vectorizer.c (rename_variables_in_bb): Export.
1195 * tree-data-ref.c (dr_may_alias_p): Export.
1196 (stmt_simple_memref_p): New.
1197 (find_data_references_in_stmt): Export.
1198 (find_data_references_in_loop): Export.
1199 (create_rdg_edge_for_ddr): Initialize RDGE_RELATION.
1200 (create_rdg_edges_for_scalar): Initialize RDGE_RELATION.
1201 (create_rdg_vertices): Export.
1202 (build_empty_rdg): New.
1203 (build_rdg): Call build_empty_rdg. Free dependence_relations.
1204 * tree-data-ref.h (rdg_component): ... here.
1205 (scop_p): New.
1206 (struct data_reference): Add a field scop.
1207 (DR_SCOP): New.
1208 (find_data_references_in_loop): Declared.
1209 (find_data_references_in_stmt): Declared.
1210 (create_rdg_vertices): Declared.
1211 (dr_may_alias_p): Declared.
1212 (stmt_simple_memref_p): Declared.
1213 (struct rdg_edge): Add a field ddr_p relation.
1214 (build_empty_rdg): Declared.
1215 * lambda.h (lambda_matrix): Declare a VEC of.
1216 (find_induction_var_from_exit_cond): Declared.
1217 (lambda_vector_compare): New.
1218 * common.opt (fgraphite, floop-strip-mine,
1219 floop-interchange, floop-block): New flags.
1220 * lambda-code.c (find_induction_var_from_exit_cond): Export.
1221 * cfgloop.c (is_loop_exit): New.
1222 * cfgloop.h (is_loop_exit): Declared.
1223 (create_empty_if_region_on_edge): Declared.
1224 (create_empty_loop_on_edge): Declared.
1225 * tree-flow.h (add_phi_node_to_bb): Declared.
1226 (make_phi_node): Declared.
1227 (rename_variables_in_bb): Declared.
1228 (perfect_loop_nest_depth): Declared.
1229 (graphite_transform_loops): Declared.
1230 * Makefile.in (cfgloopmanip.o): Depend on TREE_FLOW_H.
1231 (graphite.o-warn): Add -Wno-error.
1232 (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC): Declared.
1233 (LIBS): Add GMPLIBS, CLOOGLIBS, PPLLIBS.
1234 (INCLUDES): Add PPLINC, CLOOGINC.
1235 (OBJS-common): Add graphite.o.
1236 (graphite.o): Add rule.
1237 * gimple.h (gimple_vec): ... here.
1238 * tree-cfg.c (print_loops): Start printing at ENTRY_BLOCK_PTR.
1239 * passes.c (init_optimization_passes): Schedule
1240 pass_graphite_transforms.
1241
1242 2008-09-02 Samuel Tardieu <sam@rfc1149.net>
1243
1244 PR target/37283
1245 * opts.c (decode_options): Move processing of -fno-unit-at-a-time
1246 and -fno-toplevel-reorder after handle_options.
1247
1248 2008-09-02 Paul Brook <paul@codesourcery.com>
1249
1250 * config/arm/arm.c (arm_tune_cortex_a9): Define.
1251 (arm_override_options): Set arm_tune_cortex_a9.
1252 (arm_rtx_costs_1): Make register shifts more expensive on Cortex-A9.
1253 (arm_issue_rate): Handle cortexa9.
1254 * config/arm/arm.h (arm_tune_cortex_a9): Declare.
1255 * config/arm/arm-cores.def: Add cortex-a9.
1256 * config/arm/arm-tune.md: Regenerate.
1257 * config/arm/arm.md: Include cortex-a9.md.
1258 (generic_sched, generic_vfp): Add cortexa9.
1259 * config/arm/cortex-a9.md: New file.
1260
1261 2008-09-02 Richard Guenther <rguenther@suse.de>
1262
1263 PR tree-optimization/37327
1264 * tree-vrp.c (register_new_assert_for): Make sure to not have
1265 TREE_OVERFLOW set on the bound.
1266
1267 2008-09-02 Alexander Monakov <amonakov@ispras.ru>
1268
1269 Fixed typo in date of the 2008-09-01 MOVE_RATIO commit.
1270
1271 * config/ia64/ia64.opt (msched-ar-data-spec): Default to 1.
1272 * config/ia64/ia64.c (ia64_set_sched_flags): Always initialize
1273 spec_info->mask.
1274
1275 2008-09-02 Victor Kaplansky <victork@il.ibm.com>
1276
1277 * gcc/config/spu/spu.md (divdf3): Removed.
1278
1279 2008-09-02 Jakub Jelinek <jakub@redhat.com>
1280
1281 PR tree-optimization/37095
1282 * cgraph.c (cgraph_node): When creating new cgraph node after
1283 assembler_name_hash has been populated, record it in the hash
1284 table.
1285
1286 2008-09-01 Paul Brook <paul@codesourcery.com>
1287
1288 * doc/invoke.texi: Document -mword-relocations.
1289 * config/arm/uclinux-elf.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
1290 * config/arm/symbian.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
1291 * config/arm/vxworks.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
1292 * config/arm/arm.c (arm_split_constant): Use arm_emit_movpair.
1293 (arm_rtx_costs_1, arm_size_rtx_costs): Handle HIGH and LO_SUM.
1294 (arm_emit_movpair): New function.
1295 (arm_print_operand <c>): Handle sybolic addresses.
1296 * config/arm/arm.h (TARGET_USE_MOVT): Define.
1297 (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
1298 * config/arm/arm-protos.h (arm_emit_movpair): Add prototype.
1299 * config/arm/arm.opt: Add -mword-relocations.
1300 * config/arm/arm.md (movsi): Use arm_emit_movpair.
1301 (arm_movt, arm_movw): New.
1302
1303 2008-09-01 Paul Brook <paul@codesourcery.com>
1304
1305 * config/arm/arm.c (arm_override_options): Set arm_abi earlier.
1306 Allow Interworking on ARMv4 EABI based targets.
1307 * config/arm/bpabi.h (TARGET_FIX_V4BX_SPEC): Define.
1308 (SUBTARGET_EXTRA_ASM_SPEC, LINK_SPEC): Add TARGET_FIX_V4BX_SPEC.
1309
1310 2008-09-01 Paul Brook <paul@codesourcery.com>
1311
1312 * config/arm/thumb2.md (thumb2_negscc): Match the correct operand for
1313 optimized LT0 test. Remove optimization for GT.
1314
1315 2008-09-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1316
1317 * pa64-hpux.h (LIB_SPEC): Link against librt when building static
1318 openmp applications.
1319 * pa-hpux11.h (LIB_SPEC): Likewise.
1320
1321 * ira.c (setup_eliminable_regset): Only declare i if ELIMINABLE_REGS is
1322 defined.
1323
1324 2008-09-01 Jan Hubicka <jh@suse.cz>
1325
1326 * predict.c (maybe_hot_count_p, maybe_hot_edge_p): When profile is
1327 present, use only counts; when guessed use only frequencies.
1328 (estimate_bb_frequencies): Use function_frequency.
1329 * profile.c (compute_branch_probabilities): Exit early when
1330 profile reading failed. Set profile_status.
1331 (branch_prob): Do not set profile_status.
1332
1333 2008-09-01 Aldy Hernandez <aldyh@redhat.com>
1334
1335 * tree.c (protected_set_expr_location): New.
1336 * tree.h (protected_set_expr_location): New prototype.
1337 * c-tree.h (build_array_ref): Add argument.
1338 (parser_build_unary_op): Same.
1339 * c-typeck.c (build_indirect_ref): Handle new location argument.
1340 (build_array_ref): Same.
1341 (parser_build_unary_op): Same.
1342 * gimplify.c (gimplify_asm_expr): Set input_location before calling
1343 error.
1344 * c-omp.c (c_finish_omp_atomic): Pass location when calling
1345 build_indirect_ref.
1346 * c-common.c (finish_label_address_expr): Handle new location argument.
1347 * c-common.h (build_indirect_ref): Add argument.
1348 (finish_label_address_expr): Same.
1349 * c-parser.c (c_parser_unary_expression): Pass location to build
1350 functions.
1351 (c_parser_postfix_expression): Same.
1352
1353 2008-09-01 Paul Brook <paul@codesourcery.com>
1354
1355 * config/arm/arm.md: Include cortex-r4f.md.
1356 (attr fpu): Update type list.
1357 (attr type): Add fcpys, ffariths, ffarithd, fadds, faddd, fconsts,
1358 fconstd, fcmps and fcmpd.
1359 (attr tune_cortexr4): Define.
1360 (attr generic_sched, attr generic_vfp): Use tune_cortexr4.
1361 * config/arm/vfp.md: Document fcpys, ffariths, ffarithd, fadds, faddd,
1362 fconsts, fconstd, fcmps and fcmpd. Use them in insn patterns.
1363 * config/arm/arm.c (arm_issue_rate): Add cortexr4f.
1364 * config/arm/arm1020e.md (v10_ffarith, v10_farith): Use new insn types.
1365 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_add_sub,
1366 cortex_a8_vfp_farith: Ditto.
1367 * config/arm/vfp11.md (vfp_ffarith, vfp_farith): Ditto.
1368 * config/arm/cortex-r4.md: Use tune_cortexr4.
1369 * config/arm/cortex-r4f.md: New file.
1370
1371 2008-09-01 Richard Guenther <rguenther@suse.de>
1372
1373 PR tree-optimization/37305
1374 * tree-ssa-ccp.c (ccp_fold): Do not set TREE_OVERFLOW on
1375 the result of constant conversions.
1376 (fold_gimple_assign): Likewise.
1377
1378 2008-09-01 Andrey Belevantsev <abel@ispras.ru>
1379
1380 * sel-sched-ir.c (cmp_v_in_regset_pool): Surround with
1381 #ifdef ENABLE_CHECKING.
1382
1383 2008-09-01 Andrey Belevantsev <abel@ispras.ru>
1384
1385 * sel-sched-dump.c: Surround with #ifdef INSN_SCHEDULING.
1386 * sched-int.h (print_insn, print_pattern, print_value): Declare also
1387 when !INSN_SCHEDULING.
1388
1389 2008-09-01 Andreas Schwab <schwab@suse.de>
1390
1391 * config/ia64/ia64.c (TARGET_ADDRESS_COST): Update.
1392
1393 2008-09-01 Paul Brook <paul@codesourcery.com>
1394
1395 * config/arm/arm.c (arm_no_early_mul_dep): Handle multiply-subtract.
1396
1397 2008-09-01 Jan Hubicka <jh@suse.cz>
1398
1399 * config/spu/spu.c (spu_expand_block_move) Update call of MOVE_RATIO.
1400
1401 * expr.c (MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P, SET_BY_PIECES_P):
1402 Pass speed operand.
1403 * expr.h (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Update.
1404 * gimplify.c (gimplify_init_constructor): Add speed operand.
1405 * tree-sra.c (decide_block_copy): Likewise.
1406 * tree-inline.c (estimate_move_cost): Likewise.
1407 * config/alpha/alpha.h (MOVE_RATIO): Update.
1408 * config/frv/frv.c (MOVE_RATIO): Update.
1409 * config/spu/spu.h (MOVE_RATIO): Update.
1410 * config/sparc/sparc.h (MOVE_RATIO): Update.
1411 * config/i386/i386.h (MOVE_RATIO, CLEAR_RATIO): Update.
1412 * config/m68hc11/m68hc11.h (MOVE_RATIO): Update.
1413 * config/cris/cris.h (MOVE_RATIO): Update.
1414 * config/mn10300/mn10300.h (MOVE_RATIO): Update.
1415 * config/arm/arm.h (MOVE_RATIO): Update.
1416 * config/pa/pa.md: Update uses of MOVE_RATIO
1417 * config/pa/pa.h (MOVE_RATIO): Update.
1418 * config/mips/mips.h (MOVE_RATIO, MOVE_BY_PIECES,
1419 CLEAR_RATIO, SET_RATIO): Update.
1420 * config/h8300/h8300.h (MOVE_RATIO): Update.
1421 * config/v850/v850.h (MOVE_RATIO): Update.
1422 * config/bfin/bfin.h (MOVE_RATIO): Update.
1423
1424 2008-08-31 Andrey Belevantsev <abel@ispras.ru>
1425 Dmitry Melnik <dm@ispras.ru>
1426 Dmitry Zhurikhin <zhur@ispras.ru>
1427 Alexander Monakov <amonakov@ispras.ru>
1428 Maxim Kuvyrkov <maxim@codesourcery.com>
1429
1430 * sel-sched.h, sel-sched-dump.h, sel-sched-ir.h, sel-sched.c,
1431 sel-sched-dump.c, sel-sched-ir.c: New files.
1432 * Makefile.in (OBJS-common): Add selective scheduling object
1433 files.
1434 (sel-sched.o, sel-sched-dump.o, sel-sched-ir.o): New entries.
1435 (SEL_SCHED_IR_H, SEL_SCHED_DUMP_H): New entries.
1436 (sched-vis.o): Add dependency on $(INSN_ATTR_H).
1437 * cfghooks.h (get_cfg_hooks, set_cfg_hooks): New prototypes.
1438 * cfghooks.c (get_cfg_hooks, set_cfg_hooks): New functions.
1439 (make_forwarder_block): Update loop latch if we have redirected
1440 the loop latch edge.
1441 * cfgloop.c (get_loop_body_in_custom_order): New function.
1442 * cfgloop.h (LOOPS_HAVE_FALLTHRU_PREHEADERS): New enum field.
1443 (CP_FALLTHRU_PREHEADERS): Likewise.
1444 (get_loop_body_in_custom_order): Declare.
1445 * cfgloopmanip.c (has_preds_from_loop): New.
1446 (create_preheader): Honor CP_FALLTHRU_PREHEADERS.
1447 Assert that the preheader edge will be fall thru when it is set.
1448 * common.opt (fsel-sched-bookkeeping, fsel-sched-pipelining,
1449 fsel-sched-pipelining-outer-loops, fsel-sched-renaming,
1450 fsel-sched-substitution, fselective-scheduling): New flags.
1451 * cse.c (hash_rtx_cb): New.
1452 (hash_rtx): Use it.
1453 * dbgcnt.def (sel_sched_cnt, sel_sched_region_cnt,
1454 sel_sched_insn_cnt): New counters.
1455 * final.c (compute_alignments): Export. Free dominance
1456 info after loop_optimizer_finalize.
1457 * genattr.c (main): Output maximal_insn_latency prototype.
1458 * genautomata.c (output_default_latencies): New.
1459 Factor its code from ...
1460 (output_internal_insn_latency_func): ... here.
1461 (output_internal_maximal_insn_latency_func): New.
1462 (output_maximal_insn_latency_func): New.
1463 * hard-reg-set.h (UHOST_BITS_PER_WIDE_INT): Define unconditionally.
1464 (struct hard_reg_set_iterator): New.
1465 (hard_reg_set_iter_init, hard_reg_set_iter_set,
1466 hard_reg_set_iter_next): New functions.
1467 (EXECUTE_IF_SET_IN_HARD_REG_SET): New macro.
1468 * lists.c (remove_free_INSN_LIST_node,
1469 remove_free_EXPR_LIST_node): New functions.
1470 * loop-init.c (loop_optimizer_init): When
1471 LOOPS_HAVE_FALLTHRU_PREHEADERS, set CP_FALLTHRU_PREHEADERS when
1472 calling create_preheaders.
1473 (loop_optimizer_finalize): Do not verify flow info after reload.
1474 * recog.c (validate_replace_rtx_1): New parameter simplify.
1475 Default it to true. Update all uses. Factor out simplifying
1476 code to ...
1477 (simplify_while_replacing): ... this new function.
1478 (validate_replace_rtx_part,
1479 validate_replace_rtx_part_nosimplify): New.
1480 * recog.h (validate_replace_rtx_part,
1481 validate_replace_rtx_part_nosimplify): Declare.
1482 * rtl.c (rtx_equal_p_cb): New.
1483 (rtx_equal_p): Use it.
1484 * rtl.h (rtx_equal_p_cb, hash_rtx_cb): Declare.
1485 (remove_free_INSN_LIST_NODE, remove_free_EXPR_LIST_node,
1486 debug_bb_n_slim, debug_bb_slim, print_rtl_slim): Likewise.
1487 * vecprim.h: Add a vector type for unsigned int.
1488 * haifa-sched.c: Include vecprim.h and cfgloop.h.
1489 (issue_rate, sched_verbose_param, note_list, dfa_state_size,
1490 ready_try, cycle_issued_insns, spec_info): Make global.
1491 (readyp): Initialize.
1492 (dfa_lookahead): New global variable.
1493 (old_max_uid, old_last_basic_block): Remove.
1494 (h_i_d): Make it a vector.
1495 (INSN_TICK, INTER_TICK, QUEUE_INDEX, INSN_COST): Make them work
1496 through HID macro.
1497 (after_recovery, adding_bb_to_current_region_p):
1498 New variables to handle correct insertion of the recovery code.
1499 (struct ready_list): Move declaration to sched-int.h.
1500 (rgn_n_insns): Removed.
1501 (rtx_vec_t): Move to sched-int.h.
1502 (find_insn_reg_weight): Remove.
1503 (find_insn_reg_weight1): Rename to find_insn_reg_weight.
1504 (haifa_init_h_i_d, haifa_finish_h_i_d):
1505 New functions to initialize / finalize haifa instruction data.
1506 (extend_h_i_d, init_h_i_d): Rewrite.
1507 (unlink_other_notes): Move logic to add_to_note_list. Handle
1508 selective scheduler.
1509 (ready_lastpos, ready_element, ready_sort, reemit_notes,
1510 find_fallthru_edge): Make global, remove static prototypes.
1511 (max_issue): Make global. Add privileged_n and state parameters. Use
1512 them.
1513 (extend_global, extend_all): Removed.
1514 (init_before_recovery): Add new param. Fix the handling of the case
1515 when we insert a recovery code before the EXIT which has a predecessor
1516 with a fallthrough edge to it.
1517 (create_recovery_block): Make global. Rename to
1518 sched_create_recovery_block. Update.
1519 (change_pattern): Rename to sched_change_pattern. Make global.
1520 (speculate_insn): Rename to sched_speculate_insn. Make global.
1521 Split haifa-specific functionality into ...
1522 (haifa_change_pattern): New static function.
1523 (sched_extend_bb): New static function.
1524 (sched_init_bbs): New function.
1525 (current_sched_info): Change type to struct haifa_sched_info.
1526 (insn_cost): Adjust for selective scheduling.
1527 (dep_cost_1): New function. Move logic from ...
1528 (dep_cost): ... here.
1529 (dep_cost): Use dep_cost_1.
1530 (contributes_to_priority_p): Use sched_deps_info instead of
1531 current_sched_info.
1532 (priority): Adjust to work with selective scheduling. Process the
1533 corner case when all dependencies don't contribute to priority.
1534 (rank_for_schedule): Use ds_weak instead of dep_weak.
1535 (advance_state): New function. Move logic from ...
1536 (advance_one_cycle): ... here.
1537 (add_to_note_list, concat_note_lists): New functions.
1538 (rm_other_notes): Make static. Adjust for selective scheduling.
1539 (remove_notes, restore_other_notes): New functions.
1540 (move_insn): Add two arguments. Update assert. Don't call
1541 reemit_notes.
1542 (choose_ready): Remove lookahead variable, use dfa_lookahead.
1543 Remove more_issue, max_points. Move the code to initialize
1544 max_lookahead_tries to max_issue.
1545 (schedule_block): Remove rgn_n_insns1 parameter. Don't allocate
1546 ready. Adjust use of move_insn. Call restore_other_notes.
1547 (luid): Remove.
1548 (sched_init, sched_finish): Move Haifa-specific initialization/
1549 finalization to ...
1550 (haifa_sched_init, haifa_sched_finish): ... respectively.
1551 New functions.
1552 (setup_sched_dump): New function.
1553 (haifa_init_only_bb): New static function.
1554 (haifa_speculate_insn): New static function.
1555 (try_ready): Use haifa_* instead of speculate_insn and
1556 change_pattern.
1557 (extend_ready, extend_all): Remove.
1558 (sched_extend_ready_list, sched_finish_ready_list): New functions.
1559 (create_check_block_twin, add_to_speculative_block): Use
1560 haifa_insns_init instead of extend_global. Update to use new
1561 initialization functions. Change parameter. Factor out code from
1562 create_check_block_twin to ...
1563 (sched_create_recovery_edges) ... this new function.
1564 (add_block): Remove.
1565 (sched_scan_info): New.
1566 (extend_bb): Use sched_scan_info.
1567 (init_bb, extend_insn, init_insn, init_insns_in_bb, sched_scan): New
1568 static functions for walking through scheduling region.
1569 (sched_luids): New vector variable to replace uid_to_luid.
1570 (luids_extend_insn): New function.
1571 (sched_max_luid): New variable.
1572 (luids_init_insn): New function.
1573 (sched_init_luids, sched_finish_luids): New functions.
1574 (insn_luid): New debug function.
1575 (sched_extend_target): New function.
1576 (haifa_init_insn): New static function.
1577 (sched_init_only_bb): New hook.
1578 (sched_split_block): New hook.
1579 (sched_split_block_1): New function.
1580 (sched_create_empty_bb): New hook.
1581 (sched_create_empty_bb_1): New function.
1582 (common_sched_info, ready): New global variables.
1583 (current_sched_info_var): Remove.
1584 (move_block_after_check): Use common_sched_info.
1585 (haifa_luid_for_non_insn): New static function.
1586 (init_before_recovery): Use haifa_init_only_bb instead of
1587 add_block.
1588 (increase_insn_priority): New.
1589 * modulo-sched.c: (issue_rate): Remove static declaration.
1590 (sms_sched_info): Change type to haifa_sched_info.
1591 (sms_sched_deps_info, sms_common_sched_info): New variables.
1592 (setup_sched_infos): New.
1593 (sms_schedule): Initialize them. Call haifa_sched_init/finish.
1594 Do not call regstat_free_calls_crossed.
1595 (sms_print_insn): Use const_rtx.
1596 * params.def (PARAM_MAX_PIPELINE_REGION_BLOCKS,
1597 PARAM_MAX_PIPELINE_REGION_INSNS, PARAM_SELSCHED_MAX_LOOKAHEAD,
1598 PARAM_SELSCHED_MAX_SCHED_TIMES, PARAM_SELSCHED_INSNS_TO_RENAME,
1599 PARAM_SCHED_MEM_TRUE_DEP_COST): New.
1600 * sched-deps.c (sched_deps_info): New. Update all relevant uses of
1601 current_sched_info to use it.
1602 (enum reg_pending_barrier_mode): Move to sched-int.h.
1603 (h_d_i_d): New variable. Initialize to NULL.
1604 ({true, output, anti, spec, forward}_dependency_cache): Initialize
1605 to NULL.
1606 (estimate_dep_weak): Remove static declaration.
1607 (sched_has_condition_p): New function. Adjust users of
1608 sched_get_condition to use it instead.
1609 (conditions_mutex_p): Add arguments indicating which conditions are
1610 reversed. Use them.
1611 (sched_get_condition_with_rev): Rename from sched_get_condition. Add
1612 argument to indicate whether returned condition is reversed. Do not
1613 generate new rtx when condition should be reversed; indicate it by
1614 setting new argument instead.
1615 (add_dependence_list_and_free): Add deps parameter.
1616 Update all users. Do not free dependence list when
1617 deps context is readonly.
1618 (add_insn_mem_dependence, flush_pending_lists): Adjust for readonly
1619 contexts.
1620 (remove_from_dependence_list, remove_from_both_dependence_lists): New.
1621 (remove_from_deps): New. Use the above functions.
1622 (cur_insn, can_start_lhs_rhs_p): New static variables.
1623 (add_or_update_back_dep_1): Initialize present_dep_type.
1624 (haifa_start_insn, haifa_finish_insn, haifa_note_reg_set,
1625 haifa_note_reg_clobber, haifa_note_reg_use, haifa_note_mem_dep,
1626 haifa_note_dep): New functions implementing dependence hooks for
1627 the Haifa scheduler.
1628 (note_reg_use, note_reg_set, note_reg_clobber, note_mem_dep,
1629 note_dep): New functions.
1630 (ds_to_dt, extend_deps_reg_info, maybe_extend_reg_info_p): New
1631 functions.
1632 (init_deps): Initialize last_reg_pending_barrier and deps->readonly.
1633 (free_deps): Initialize deps->reg_last.
1634 (sched_analyze_reg, sched_analyze_1, sched_analyze_2,
1635 sched_analyze_insn): Update to use dependency hooks infrastructure
1636 and readonly contexts.
1637 (deps_analyze_insn): New function. Move part of logic from ...
1638 (sched_analyze): ... here. Also move some logic to ...
1639 (deps_start_bb): ... here. New function.
1640 (add_forw_dep, delete_forw_dep): Guard use of INSN_DEP_COUNT with
1641 sel_sched_p.
1642 (sched_deps_init): New function. Move code from ...
1643 (init_dependency_caches): ... here. Remove.
1644 (init_deps_data_vector): New.
1645 (sched_deps_finish): New function. Move code from ...
1646 (free_dependency_caches): ... here. Remove.
1647 (init_deps_global, finish_deps_global): Adjust for use with
1648 selective scheduling.
1649 (get_dep_weak): Move logic to ...
1650 (get_dep_weak_1): New function.
1651 (ds_merge): Move logic to ...
1652 (ds_merge_1): New static function.
1653 (ds_full_merge, ds_max_merge, ds_get_speculation_types): New functions.
1654 (ds_get_max_dep_weak): New function.
1655 * sched-ebb.c (sched_n_insns): Rename to sched_rgn_n_insns.
1656 (n_insns): Rename to rgn_n_insns.
1657 (debug_ebb_dependencies): New function.
1658 (init_ready_list): Use it.
1659 (begin_schedule_ready): Use sched_init_only_bb.
1660 (ebb_print_insn): Indicate when an insn starts a new cycle.
1661 (contributes_to_priority, compute_jump_reg_dependencies,
1662 add_remove_insn, fix_recovery_cfg): Add ebb_ prefix to function names.
1663 (add_block1): Remove to ebb_add_block.
1664 (ebb_sched_deps_info, ebb_common_sched_info): New variables.
1665 (schedule_ebb): Initialize them. Use remove_notes instead of
1666 rm_other_notes. Use haifa_local_init/finish.
1667 (schedule_ebbs): Use haifa_sched_init/finish.
1668 * sched-int.h: Include vecprim.h, remove rtl.h.
1669 (struct ready_list): Delete declaration.
1670 (sched_verbose_param, enum sched_pass_id_t,
1671 bb_vec_t, insn_vec_t, rtx_vec_t): New.
1672 (struct sched_scan_info_def): New structure.
1673 (sched_scan_info, sched_scan, sched_init_bbs,
1674 sched_init_luids, sched_finish_luids, sched_extend_target,
1675 haifa_init_h_i_d, haifa_finish_h_i_d): Declare.
1676 (struct common_sched_info_def): New.
1677 (common_sched_info, haifa_common_sched_info,
1678 sched_emulate_haifa_p): Declare.
1679 (sel_sched_p): New.
1680 (sched_luids): Declare.
1681 (INSN_LUID, LUID_BY_UID, SET_INSN_LUID): Declare.
1682 (sched_max_luid, insn_luid): Declare.
1683 (note_list, remove_notes, restore_other_notes, bb_note): Declare.
1684 (sched_insns_init, sched_insns_finish, xrecalloc, reemit_notes,
1685 print_insn, print_pattern, print_value, haifa_classify_insn,
1686 sel_find_rgns, sel_mark_hard_insn, dfa_state_size, advance_state,
1687 setup_sched_dump, sched_init, sched_finish,
1688 sel_insn_is_speculation_check): Export.
1689 (struct ready_list): Move from haifa-sched.c.
1690 (ready_try, ready, max_issue): Export.
1691 (ebb_compute_jump_reg_dependencies, find_fallthru_edge,
1692 sched_init_only_bb, sched_split_block, sched_split_block_1,
1693 sched_create_empty_bb, sched_create_empty_bb_1,
1694 sched_create_recovery_block, sched_create_recovery_edges): Export.
1695 (enum reg_pending_barrier_mode): Export.
1696 (struct deps): New fields `last_reg_pending_barrier' and `readonly'.
1697 (deps_t): New.
1698 (struct sched_info): Rename to haifa_sched_info. Use const_rtx for
1699 print_insn field. Move add_block and fix_recovery_cfg to
1700 common_sched_info_def. Move compute_jump_reg_dependencies,
1701 use_cselib ...
1702 (struct sched_deps_info_def): ... this new structure.
1703 (sched_deps_info): Declare.
1704 (struct spec_info_def): Remove weakness_cutoff, add
1705 data_weakness_cutoff and control_weakness_cutoff.
1706 (spec_info): Declare.
1707 (struct _haifa_deps_insn_data): Split from haifa_insn_data. Add
1708 dep_count field.
1709 (struct haifa_insn_data): Rename to struct _haifa_insn_data.
1710 (haifa_insn_data_def, haifa_insn_data_t): New typedefs.
1711 (current_sched_info): Change type to struct haifa_sched_info.
1712 (haifa_deps_insn_data_def, haifa_deps_insn_data_t): New typedefs.
1713 (h_d_i_d): New variable.
1714 (HDID): New accessor macro.
1715 (h_i_d): Change type to VEC (haifa_insn_data_def, heap) *.
1716 (HID): New accessor macro. Rewrite h_i_d accessor macros through HID
1717 and HDID.
1718 (IS_SPECULATION_CHECK_P): Update for selective scheduler.
1719 (enum SCHED_FLAGS): Update for selective scheduler.
1720 (enum SPEC_SCHED_FLAGS): New flag SEL_SCHED_SPEC_DONT_CHECK_CONTROL.
1721 (init_dependency_caches, free_dependency_caches): Delete declarations.
1722 (deps_analyze_insn, remove_from_deps, get_dep_weak_1,
1723 estimate_dep_weak, ds_full_merge, ds_max_merge, ds_weak,
1724 ds_get_speculation_types, ds_get_max_dep_weak, sched_deps_init,
1725 sched_deps_finish, haifa_note_reg_set, haifa_note_reg_use,
1726 haifa_note_reg_clobber, maybe_extend_reg_info_p, deps_start_bb,
1727 ds_to_dt): Export.
1728 (rm_other_notes): Delete declaration.
1729 (schedule_block): Remove one argument.
1730 (cycle_issued_insns, issue_rate, dfa_lookahead, ready_sort,
1731 ready_element, ready_lastpos, sched_extend_ready_list,
1732 sched_finish_ready_list, sched_change_pattern, sched_speculate_insn,
1733 concat_note_lists): Export.
1734 (struct region): Move from sched-rgn.h.
1735 (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
1736 RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
1737 BLOCK_TO_BB, CONTAINING_RGN): Export.
1738 (ebb_head, BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB, INSN_BB): Likewise.
1739 (current_nr_blocks, current_blocks, target_bb): Likewise.
1740 (dep_cost_1, sched_is_disabled_for_current_region_p, sched_rgn_init,
1741 sched_rgn_finish, rgn_setup_region, sched_rgn_compute_dependencies,
1742 sched_rgn_local_init, extend_regions,
1743 rgn_make_new_region_out_of_new_block, compute_priorities,
1744 debug_rgn_dependencies, free_rgn_deps, contributes_to_priority,
1745 extend_rgns, deps_join rgn_setup_common_sched_info,
1746 rgn_setup_sched_infos, debug_regions, debug_region, dump_region_dot,
1747 dump_region_dot_file, haifa_sched_init, haifa_sched_finish): Export.
1748 (get_rgn_sched_max_insns_priority, sel_add_to_insn_priority,
1749 increase_insn_priority): Likewise.
1750 * sched-rgn.c: Include sel-sched.h.
1751 (ref_counts): New static variable. Use it ...
1752 (INSN_REF_COUNT): ... here. Rewrite and move closer to uses.
1753 (FED_BY_SPEC_LOAD, IS_LOAD_INSN): Rewrite to use HID accessor macro.
1754 (sched_is_disabled_for_current_region_p): Delete static declaration.
1755 (struct region): Move to sched-int.h.
1756 (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
1757 ebb_head): Define and initialize.
1758 (RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
1759 BLOCK_TO_BB, CONTAINING_RGN, debug_regions, extend_regions,
1760 BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB): Move to
1761 sched-int.h.
1762 (find_single_block_region): Add new argument to indicate that EBB
1763 regions should be constructed.
1764 (debug_live): Delete declaration.
1765 (current_nr_blocks, current_blocks, target_bb):
1766 Remove static qualifiers.
1767 (compute_dom_prob_ps, check_live, update_live, set_spec_fed): Delete
1768 declaration.
1769 (init_regions): Delete declaration.
1770 (debug_region, bb_in_region_p, dump_region_dot_file, dump_region_dot,
1771 rgn_estimate_number_of_insns): New.
1772 (too_large): Use estimate_number_of_insns.
1773 (haifa_find_rgns): New. Move the code from ...
1774 (find_rgns): ... here. Call either sel_find_rgns or haifa_find_rgns.
1775 (free_trg_info): New.
1776 (compute_trg_info): Allocate candidate tables here instead of ...
1777 (init_ready_list): ... here.
1778 (rgn_print_insn): Use const_rtx.
1779 (contributes_to_priority, extend_regions): Delete static declaration.
1780 (add_remove_insn, fix_recovery_cfg): Add rgn_ to function names.
1781 (add_block1): Rename to rgn_add_block.
1782 (debug_rgn_dependencies): Delete static qualifier.
1783 (new_ready): Use sched_deps_info. Simplify.
1784 (rgn_common_sched_info, rgn_const_sched_deps_info,
1785 rgn_const_sel_sched_deps_info, rgn_sched_deps_info, rgn_sched_info):
1786 New.
1787 (region_sched_info): Rename to rgn_const_sched_info.
1788 (deps_join): New, extracted from ...
1789 (propagate_deps): ... here.
1790 (compute_block_dependences, debug_dependencies): Update for selective
1791 scheduling.
1792 (free_rgn_deps, compute_priorities): New functions.
1793 (sched_rgn_init, sched_rgn_finish, rgn_setup_region,
1794 sched_rgn_compute_dependencies): New functions.
1795 (schedule_region): Use them.
1796 (sched_rgn_local_init, sched_rgn_local_free, sched_rgn_local_finish,
1797 rgn_setup_common_sched_info, rgn_setup_sched_infos):
1798 New functions.
1799 (schedule_insns): Call new functions that were split out.
1800 (rgn_make_new_region_out_of_new_block): New.
1801 (get_rgn_sched_max_insns_priority): New.
1802 (rest_of_handle_sched, rest_of_handle_sched2): Call selective
1803 scheduling when appropriate.
1804 * sched-vis.c: Include insn-attr.h.
1805 (print_value, print_pattern): Make global.
1806 (print_rtl_slim, debug_bb_slim, debug_bb_n_slim): New functions.
1807 * target-def.h (TARGET_SCHED_ADJUST_COST_2,
1808 TARGET_SCHED_ALLOC_SCHED_CONTEXT, TARGET_SCHED_INIT_SCHED_CONTEXT,
1809 TARGET_SCHED_SET_SCHED_CONTEXT, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
1810 TARGET_SCHED_FREE_SCHED_CONTEXT, TARGET_SCHED_GET_INSN_CHECKED_DS,
1811 TARGET_SCHED_GET_INSN_SPEC_DS, TARGET_SCHED_SKIP_RTX_P): New target
1812 hooks. Initialize them to 0.
1813 (TARGET_SCHED_GEN_CHECK): Rename to TARGET_SCHED_GEN_SPEC_CHECK.
1814 * target.h (struct gcc_target): Add them. Rename gen_check field to
1815 gen_spec_check.
1816 * flags.h (sel_sched_switch_set): Declare.
1817 * opts.c (sel_sched_switch_set): New variable.
1818 (decode_options): Unset flag_sel_sched_pipelining_outer_loops if
1819 pipelining is disabled from command line.
1820 (common_handle_option): Record whether selective scheduling is
1821 requested from command line.
1822 * doc/invoke.texi: Document new flags and parameters.
1823 * doc/tm.texi: Document new target hooks.
1824 * config/ia64/ia64.c (TARGET_SCHED_GEN_SPEC_CHECK): Define to
1825 ia64_gen_check.
1826 (dfa_state_size): Do not declare locally.
1827 * config/ia64/ia64.opt (msched-ar-data-spec): Default to 0.
1828 * config/rs6000/rs6000.c (rs6000_init_sched_context,
1829 rs6000_alloc_sched_context, rs6000_set_sched_context,
1830 rs6000_free_sched_context): New functions.
1831 (struct _rs6000_sched_context): New.
1832 (rs6000_sched_reorder2): Do not modify INSN_PRIORITY for selective
1833 scheduling.
1834 (rs6000_sched_finish): Do not run for selective scheduling.
1835
1836 2008-08-31 Jan Hubicka <jh@suse.cz>
1837
1838 * frv.c (frv_rtx_costs): Update forward declaration.
1839 * spu.c (spu_rtx_costs): Likewise.
1840 * pdp11.c: Include df.h
1841 (pdp11_output_function_epilogue): Use df_set_regs_ever_live.
1842 * m68hc11.c (m68hc11_gen_highpart): Fix call of gen_rtx_SUBREG.
1843 (m68hc11_rtx_costs_1): Fix call of rtx_cost.
1844 * iq2000.c (iq2000_address_cost): Add speed argument.
1845 (iq2000_rtx_costs): Likewise.
1846 * mn10300.c (mn10300_address_cost_1): Remove speed argument;
1847 update call of mn10300_address_cost.
1848 * mcore.c: Include df.h
1849 (mcore_rtx_costs): Update prototype.
1850 * score3.c: Include df.h
1851 (score3_rtx_costs): Remove speed argument.
1852 * score7.c: Include df.h
1853 (score7_address_cost): Remove speed argument.
1854 * score-protos.h (score_address_cost): Update prototype.
1855 * score.c: Include df.h
1856 (score_rtx_costs): Update call of costs functions.
1857 * v850.c (v850_rtx_costs): Add bool argument.
1858
1859 2008-08-31 Hans-Peter Nilsson <hp@axis.com>
1860
1861 * config/cris/cris.c (cris_rtx_costs): Correct call to rtx_costs.
1862
1863 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1864
1865 * gthr-win32.h (__gthread_setspecific): Use CONST_CAST2.
1866 * config/i386/gthr-win32.c (__gthread_setspecific): Same.
1867
1868 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1869
1870 * mkmap-flat.awk: Add option pe_dll.
1871 * config/i386/t-cygming (SHLIB_LINK): Support building libgcc_s.
1872 * config/i386/t-cygwin (SHLIB_LC): Add.
1873 * config/i386/t-mingw32 (SHLIB_LC): Add.
1874 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): New.
1875 (SUBTARGET_EXTRA_SPECS): Use SHARED_LIBGCC_UNDEFS_SPEC.
1876 (LINK_SPEC): Support libgcc_s.
1877 (LIBGCC_SPEC): Support libgcc_s.
1878 (LIBGCC_SONAME): New.
1879
1880 2008-08-31 Jan Hubicka <jh@suse.cz>
1881
1882 * predict.c (maybe_hot_bb_p, maybe_hot_edge_p): Previous commit
1883 mistakely had old version of patch.
1884
1885 * ipa-cp.c (ipcp_need_original_clone_p): Remove.
1886 (ipcp_estimate_growth): New.
1887 (ipcp_insert_stage): Use ipcp_estimate_growth.
1888 * profile.c (branch_prob): When reading failed, do not consider
1889 profile as read.
1890
1891 2008-08-31 Jan Hubicka <jh@suse.cz>
1892
1893 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Check that
1894 loop is optimized for speed.
1895
1896 2008-08-31 Richard Guenther <rguenther@suse.de>
1897
1898 PR middle-end/37289
1899 * fold-const.c (fold_binary): Retain conversions in folding
1900 ~A + 1 to -A.
1901
1902 2008-08-31 Jan Hubicka <jh@suse.cz>
1903
1904 * postreload-gcse.c (eliminate_partially_redundant_loads):
1905 Use optimize_bb_for_size_p.
1906 * predict.c (maybe_hot_frequency_p): Make inline.
1907 (maybe_hot_count_p): Break out from ...
1908 (maybe_hot_bb_p): ... this one.
1909 (maybe_hot_edge_p): Simplify.
1910 * basic-block.h (probably_cold_bb_p): Remove.
1911
1912 2008-08-31 Jakub Jelinek <jakub@redhat.com>
1913
1914 PR target/37168
1915 * config/rs6000/rs6000-protos.h (const_vector_elt_as_int): Add
1916 prototype.
1917 * config/rs6000/rs6000.c (const_vector_elt_as_int): No longer static.
1918 * config/rs6000/altivec.md (easy_vector_constant_add_self splitter):
1919 Also split V4SFmode.
1920 * config/rs6000/predicates.md (easy_vector_constant_add_self): Handle
1921 vector float modes.
1922
1923 2008-08-31 Jan Hubicka <jh@suse.cz>
1924
1925 * predict.c (PROB_VERY_LIKELY): Make small enough so things
1926 become cold.
1927 * predict.def (PRED_NORETURN_CALL, PRED_COLD_CALL): Use it.
1928
1929 2008-08-31 Jakub Jelinek <jakub@redhat.com>
1930
1931 PR debug/37287
1932 * dwarf2out.c (gen_namespace_die): For DECL_EXTERNAL modules don't
1933 add source coords.
1934
1935 * dwarf2out.c (native_encode_initializer): Subtract min_index for
1936 non-range array index. Handle VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
1937
1938 2008-08-31 Jan Hubicka <jh@suse.cz>
1939
1940 * sparc.h (BRANCH_COST): Fix macro definition.
1941 * avr.c (avr_operand_rtx_cost): Add speed argument.
1942 (avr_rtx_costs): Update calls of avr_operand_rtx_cost.
1943
1944 2008-08-31 Richard Guenther <rguenther@suse.de>
1945
1946 * tree-cfg.c (verify_types_in_gimple_assign): Dump mismatched
1947 types instead of operands. Re-instantiate verifying of
1948 binary expression operands.
1949
1950 2008-08-30 Jan Hubicka <jh@suse.cz>
1951
1952 * fwprop.c (should_replace_address): Add speed attribute.
1953 (PR_OPTIMIZE_FOR_SPEED): New flag.
1954 (propagate_rtx_1): Use it.
1955 (propagate_rtx): Set it.
1956 (try_fwprop_subst): Update call of rtx_costs.
1957 (forward_propagate_and_simplify): LIkewise.
1958 * hooks.c (hook_int_rtx_bool_0): New
1959 (hook_bool_rtx_int_int_intp_false): Replace by ...
1960 (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
1961 * hooks.h (hook_int_rtx_bool_0): New
1962 (hook_bool_rtx_int_int_intp_false): Replace by ...
1963 (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
1964 * optabs.c (avoid_expensive_constant): UPdate call of rtx_cost.
1965 (prepare_cmp_insn): UPdate call of rtx_cost.
1966 * postreload.c (reload_cse_simplify_set): Update call of rtx_cost.
1967 (reload_cse_simplify_operands): Update call of rtx_cost.
1968 (reload_cse_move2add): call of rtx_cost.
1969 * target.h (struct gcc_target): Update rtx_costs and address_costs.
1970 * rtlanal.c (rtx_cost): Add speed argument.
1971 (address_cost): Add speed argument
1972 (default_address_cost): Likewise.
1973 (insn_rtx_cost): Likewise.
1974 * cfgloopanal.c (seq_cost): Add speed argument.
1975 (target_reg_cost, target_spill_cost): Turn to array.
1976 (init_set_costs): Update for speed.
1977 (estimate_reg_pressure_cost): Add speed argument.
1978 * auto-inc-dec.c (attempt_change): Update call of rtx_cost.
1979 * dojump.c (prefer_and_bit_test): UPdate call of rtx_cost.
1980 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field speed.
1981 (seq_cost): Add speed argument.
1982 (computation_cost): Add speed arugment.
1983 (add_cost, multiply_by_const, get_address_cost): add speed argument.
1984 (force_expr_to_var_cost): Update for profile info.
1985 (force_var_cost): Likewise.
1986 (split_address_cost): Likewise.
1987 (ptr_difference_cost): Likewise.
1988 (difference_cost): Likewise.
1989 (get_computation_cost_at): Likewise.
1990 (determine_iv_cost): Likewise.
1991 (ivopts_global_cost_for_size): Likewise.
1992 (rewrite_use_address): Likewise.
1993 (tree_ssa_iv_optimize_loop): Initialize speed field.
1994 * cse.c (optimize_this_for_speed_p): New static var.
1995 (notreg_cost): Update call of rtx_cost.
1996 (cse_extended_basic_block): set optimize_this_for_speed_p.
1997 * ifcvt.c (cheap_bb_rtx_cost_p): Update call of rtx_cost.
1998 (noce_try_cmove_arith): Likewise.
1999 (noce_try_sign_mask): LIkewise.
2000 * expr.c (compress_float_constant): Update rtx_cost calls.
2001 * tree-ssa-address.c (most_expensive_mult_to_index): Add speed argument.
2002 (addr_to_parts): Likewise.
2003 (create_mem_ref): Likewise.
2004 * dse.c (find_shift_sequence): Add speed argument.
2005 (replace_read): Update call.
2006 * calls.c (precompute_register_parameters): Update call of rtx_cost.
2007 * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost,
2008 * neg_cost, shift_cost, shiftadd_cost,
2009 shiftsub_cost, mul_cost, sdiv_cost, udiv_cost ,mul_widen_cost,
2010 mul_highpart_cost): Increase dimension.
2011 (init_expmed): Initialize for both size and speed.
2012 (expand_shift): Use profile.
2013 (synth_mult): Use profile.
2014 (choose_mult_variant): Use profile.
2015 (expand_mult): Use profile.
2016 (expand_mult_highpart_optab): Use profile.
2017 (expand_mult_highpart): Use profile.
2018 (expand_smod_pow2): Use profile.
2019 (expand_divmod): Use profile.
2020 * simplify-rtx.c (simplify_binary_operation_1): Update call of rtx_cost.
2021 * loop-invariant.c (create_new_invariant): Use profile.
2022 (gain_for_invariant): Add speed parameter.
2023 (best_gain_for_invariant): Likewise.
2024 (find_invariants_to_move): Likewise.
2025 (move_single_loop_invariants): Set it.
2026 * target-def.h (TARGET_RTX_COSTS): Use hook.
2027 * rtl.h (rtx_cost, address_cost, insn_rtx_cost): Update prototpe.
2028 (optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
2029 * output.h (default_address_cost): Update prototype.
2030 * combine.c (optimize_this_for_speed_p): New static var.
2031 (combine_validate_cost): Update call of rtx_cost.
2032 (combine_instructions): Set optimize_this_for_speed_p.
2033 (expand_compound_operation): Update call of rtx_cost.
2034 (make_extraction):Update call of rtx_cost.
2035 (force_to_mode):Update call of rtx_cost.
2036 (distribute_and_simplify_rtx):Update call of rtx_cost.
2037 * cfgloop.h (target_reg_cost, target_spill_cost): Turn to array.
2038 (estimate_reg_pressure_cost): Update prototype.
2039 * tree-flow.h (multiply_by_cost, create_mem_ref): Update prototype.
2040 * basic-block.h (optimize_insn_for_size_p, optimize_insn_for_speed_p):
2041 Remove.
2042 * config/alpha/alpha.c (alpha_rtx_costs): Update.
2043 (alpha_rtx_costs): Update.
2044 * config/frv/frv.c (frv_rtx_costs): Update.
2045 * config/s390/s390.c (s390_rtx_costs): Update.
2046 * config/m32c/m32c.c (m32c_memory_move_cost): Update.
2047 (m32c_rtx_costs): Update.
2048 * config/spu/spu.c (TARGET_ADDRESS_COST): Upate.
2049 (spu_rtx_costs): Update.
2050 * config/sparc/sparc.c (sparc_rtx_costs): Update.
2051 * config/m32r/m32r.c (m32r_rtx_costs): Update.
2052 * config/i386/i386.c (:ix86_address_cost): Update.
2053 (ix86_rtx_costs): Update.
2054 * config/sh/sh.c (sh_rtx_costs, sh_address_cost): Update.
2055 * config/pdp11/pdp11.c (pdp11_rtx_costs): Update.
2056 * config/avr/avr.c (avr_rtx_costs, avr_address_cost): Update.
2057 * config/crx/crx.c (crx_address_cost): Update.
2058 * config/xtensa/xtensa.c (xtensa_rtx_costs): Update.
2059 * config/stormy16/stormy16.c
2060 (xstormy16_address_cost, xstormy16_rtx_costs): Update.
2061 * config/m68hc11/m68hc11.c
2062 (m68hc11_address_cost, m68hc11_rtx_costs): Update.
2063 * config/cris/cris.c (cris_rtx_costs, cris_address_cost): Update.
2064 * config/iq2000/iq2000.c (iq2000_rtx_costs, iq2000_address_cost):
2065 Update.
2066 * config/mn10300/mn10300.c (mn10300_address_cost, mn10300_rtx_costs):
2067 Update
2068 * config/ia64/ia64.c (ia64_rtx_costs): Update.
2069 * config/m68k/m68k.c (m68k_rtx_costs): Update.
2070 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update.
2071 * config/arc/arc.c (arc_rtx_costs, arc_address_cost): Update.
2072 * config/mcore/mcore.c (TARGET_ADDRESS_COST): Update.
2073 (mcore_rtx_costs): update.
2074 * config/score/score3.c (score3_rtx_costs): Update.
2075 * config/score/score7.c (score7_rtx_costs): Update.
2076 * config/score/score3.h (score3_rtx_costs):Update.
2077 * config/score/score7.h (score7_rtx_costs): Update.
2078 * config/score/score.c (score_rtx_costs): Update.
2079 * config/arm/arm.c (arm_address_cost): Update.
2080 (arm_rtx_costs_1): Update.
2081 (arm_rtx_costs_1): Update.
2082 (arm_size_rtx_costs): Update.
2083 (arm_size_rtx_costs): Update.
2084 (arm_size_rtx_costs): Update.
2085 (arm_xscale_rtx_costs): Update.
2086 (arm_thumb_address_cost): Update.
2087 * config/pa/pa.c (hppa_address_cost): Update.
2088 * config/mips/mips.c (mips_rtx_costs): Update.
2089 * config/vax/vax.c (vax_address_cost): Update.
2090 * config/h8300/h8300.c (h8300_shift_costs): Update.
2091 (h8300_rtx_costs): Update.
2092 * config/v850/v850.c (TARGET_ADDRESS_COST): Update.
2093 (v850_rtx_costs): Update.
2094 * config/mmix/mmix.c (mmix_rtx_costs, mmix_rtx_costs): Update.
2095 * config/bfin/bfin.c
2096 (bfin_address_cost): Update.
2097 (bfin_rtx_costs): Update.
2098 * stmt.c (lshift_cheap_p): Update.
2099
2100 2008-08-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
2101
2102 PR middle-end/36444
2103 * expmed.c (extract_bit_field_1): Check the mode size to make
2104 sure the vector modes have the same size.
2105
2106 2008-08-29 Michael Meissner <gnu@the-meissners.org>
2107
2108 * dojump.c (top level): Include basic-block.h to declare
2109 optimize_insn_for_speed_p
2110
2111 * Makefile.in (dodump.h): Add $(BASIC_BLOCK_H) dependency.
2112
2113 * opts.h (CL_SAVE): New option class for marking options that are
2114 target specific options usable in the target attribute.
2115 (CL_MIN_OPTION_CLASS): CL_SAVE is now the minimum option.
2116
2117 * opt-functions.awk (switch_flags): Add CL_SAVE flag so backends
2118 can easily find the target specific options that are safe to use
2119 in the attribute or pragma.
2120
2121 * attribs.c (decl_attributes): Change #pragma GCC option to
2122 #pragma GCC target, and attribute((option(...))) to
2123 attribute((target(...))).
2124
2125 * doc/extend.texi (target attribute): Change from option
2126 attribute. Delete push/pop/reset.
2127 (#pragma GCC target): Change from #pragma GCC option. Delete
2128 push/pop/reset.
2129 (#pragma GCC push_options): Document new pragma.
2130 (#pragma GCC pop_options): Document new pragma.
2131 (#pragma GCC reset_options): Document new pragma.
2132
2133 * targhooks.c (default_target_option_valid_attribute_p): Add
2134 warning about port not supporting target attributes.
2135 (default_target_option_pragma_parse): New function, warn about
2136 #pragma GCC target not being supported.
2137
2138 * targhooks.h (default_target_option_pragma_parse): Add
2139 declaration.
2140
2141 * tree.h (TI_CURRENT_TARGET_PRAGMA): Rename from
2142 TI_CURRENT_OPTION_PRAGMA.
2143 (current_target_pragma): Rename from current_option_pragma.
2144
2145 * target.h: (struct target_option): Delete booleans for changing
2146 the optimization level on hot/cold functions. Change signature of
2147 pragma_parse hook to take a second tree.
2148
2149 * c-tree.h (c_builtin_function_ext_scope): Add declaration.
2150
2151 * c-decl.c (c_builtin_function_ext_scope): New function, guarantee
2152 that the declaration is done at global scope.
2153
2154 * langhooks.c (add_builtin_function_common): Move most of the code
2155 from add_builtin_function here, calling the hook passed in.
2156 (add_builtin_function): Call add_builtin_function_common with
2157 standard builtin hook.
2158 (add_builtin_function_ext_scope): New function to add builtins to
2159 global scope.
2160
2161 * langhooks.h (struct lang_hooks): Add builtin_function_ext_scope
2162 hook.
2163 (add_builtin_function_ext_scope): Add declaration.
2164
2165 * c-pragma.c (handle_pragma_target): Rename from
2166 handle_pragma_option, #pragma GCC option is now #pragma GCC
2167 target. Move warning about port not supporting target options to
2168 default pragma parse hook. Remove push/pop/reset from this
2169 pragma.
2170 (handle_pragma_optimize): Remove push/pop/reset from this pragma.
2171 (option_stack): Delete static variable.
2172 (optimize_stack): Ditto.
2173 (optons_stack): New stack of saved target and optimization
2174 options.
2175 (handle_pragma_push_options): New function to handle pushing both
2176 target and optimization options.
2177 (handle_pragma_pop_options): New function to handle popping both
2178 target and optimization options.
2179 (handle_pragma_reset_options): New function to handle resetting
2180 both target and optimization options to their initial state.
2181 (init_pragma): Rename handle_pragma_option to
2182 handle_pragma_target. Add support for push_options, pop_options,
2183 and reset_options pragmas.
2184
2185 * target-def.h (TARGET_OPTION_PRAGMA_PARSE): Change default to
2186 default_target_option_pragma_parse.
2187 (TARGET_OPTION_VALID_ATTRIBUTE_P): Change default to
2188 default_target_option_valid_attribute_p.
2189 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
2190 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
2191 (TARGET_OPTION_HOOKS): Delete the fields for whether to change
2192 optimization level on hot/cold functions.
2193
2194 * tree-inline.c (tree_can_inline_p): Disable suppressing inlining
2195 if the caller and callee have different optimization levels.
2196
2197 * c-common.c (handle_target_attribute): Rename from
2198 handle_option_attribute, attribute((option(...))) is now
2199 attribute((target(...))). Move warning if the port does not
2200 support target attributes to the default hook.
2201 (handle_hot_attribute): Delete code to change the optimization
2202 level of hot functions.
2203 (handle_cold_attribute): Ditto.
2204
2205 * config/i386/i386-c.c (ix86_pragma_target_parse): Take a second
2206 argument that is the binary tree options to use if there are no
2207 arguments. Call ix86_valid_target_attribute_tree instead of
2208 ix86_valid_option_attribute_tree.
2209 (ix86_pragma_target_parse): Rename from ix86_pragma_option_parse.
2210 (ix86_register_pragmas): Use ix86_pragma_target_parse instead of
2211 ix86_pragma_option_parse.
2212
2213 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
2214 Rename from ix86_valid_option_attribute_tree.
2215
2216 * config/i386/i386.c (ix86_add_new_builtins): New function to add
2217 new builtins when the ISA changes.
2218 (ix86_valid_target_attribute_tree): Rename from
2219 ix86_valid_option_attribute_tree. Change callers. If the
2220 function specified optimization options, use those as the starting
2221 point before setting up the target attributes. If the
2222 optimization options were changed in the course of setting the
2223 target attributes, record the new optimization options.
2224 (ix86_valid_target_attribute_tree_inner_p): Rename from
2225 ix86_valid_option_attribute_tree_inner_p. Change callers. Call
2226 ix86_add_new_builtins if the ISA changed.
2227 (ix86_valid_target_attribute_p): Rename from
2228 ix86_valid_option_attribute_p. Change callers.
2229 (enum ix86_builtins): Add IX86_BUILTIN_PCMOV to allow both
2230 __builtin_ia32_pcmov and __builtin_ia32_pcmov_v2di to be declared
2231 as delayed builtin functions.
2232 (struct builtin_isa): New structure to record builtin functions
2233 that should be delayed until the ISA for that function is used.
2234 (ix86_builtins_isa): Change from int to struct to track builtin
2235 functions we want to declare at some point.
2236 (def_builtin): If the front end can delay defining the builtin
2237 functions, don't create builtins for ISAs not part of the default
2238 options.
2239 (def_builtin_const): Ditto.
2240 (bdesc_multi_arg): Declare __builtin_ia32_pcmov and
2241 __builtin_ia32_pcmov_v2di to be different builtin functions.
2242 (ix86_expand_builtin): Changes due to ix86_builtins_isa now being
2243 a structure instead of an int.
2244 (TARGET_OPTION_VALID_ATTRIBUTE_P): Use
2245 ix86_valid_target_attribute_p, not ix86_valid_option_attribute_p.
2246 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
2247 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
2248
2249 * config/ia64/ia64.h
2250 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
2251 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
2252
2253 * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE): New
2254 hook, default to being the same as LANG_HOOKS_BUILTIN_FUNCTION.
2255 (LANG_HOOKS_INITIALIZER): Add
2256 LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE hook.
2257
2258 2008-08-30 Kaz Kojima <kkojima@gcc.gnu.org>
2259
2260 PR target/37270
2261 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Generate
2262 the reload address with the index register for SFmode
2263 access with a displacement.
2264
2265 2008-08-30 Jan Hubicka <jh@suse.cz>
2266
2267 * optabs.c (expand_abs_nojump): Update BRANCH_COST call.
2268 * fold-cost.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop): Likewise.
2269 * dojump.c (do_jump): Likewise.
2270 * ifcvt.c (MAX_CONDITIONAL_EXECUTE): Likewise.
2271 (note-if_info): Add BRANCH_COST.
2272 (noce_try_store_flag_constants, noce_try_addcc,
2273 noce_try_store_flag_mask, noce_try_cmove_arith, noce_try_cmove_arith,
2274 noce_try_cmove_arith, noce_find_if_block, find_if_case_1,
2275 find_if_case_2): Use computed branch cost.
2276 * expr.h (BRANCH_COST): Update default.
2277 * predict.c (predictable_edge_p): New function.
2278 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, emit_store_flag):
2279 Update BRANCH_COST call.
2280 * basic-block.h (predictable_edge_p): Declare.
2281 * config/alpha/alpha.h (BRANCH_COST): Update.
2282 * config/frv/frv.h (BRANCH_COST): Update.
2283 * config/s390/s390.h (BRANCH_COST): Update.
2284 * config/spu/spu.h (BRANCH_COST): Update.
2285 * config/sparc/sparc.h (BRANCH_COST): Update.
2286 * config/m32r/m32r.h (BRANCH_COST): Update.
2287 * config/i386/i386.h (BRANCH_COST): Update.
2288 * config/i386/i386.c (ix86_expand_int_movcc): Update use of BRANCH_COST.
2289 * config/sh/sh.h (BRANCH_COST): Update.
2290 * config/pdp11/pdp11.h (BRANCH_COST): Update.
2291 * config/avr/avr.h (BRANCH_COST): Update.
2292 * config/crx/crx.h (BRANCH_COST): Update.
2293 * config/xtensa/xtensa.h (BRANCH_COST): Update.
2294 * config/stormy16/stormy16.h (BRANCH_COST): Update.
2295 * config/m68hc11/m68hc11.h (BRANCH_COST): Update.
2296 * config/iq2000/iq2000.h (BRANCH_COST): Update.
2297 * config/ia64/ia64.h (BRANCH_COST): Update.
2298 * config/rs6000/rs6000.h (BRANCH_COST): Update.
2299 * config/arc/arc.h (BRANCH_COST): Update.
2300 * config/score/score.h (BRANCH_COST): Update.
2301 * config/arm/arm.h (BRANCH_COST): Update.
2302 * config/pa/pa.h (BRANCH_COST): Update.
2303 * config/mips/mips.h (BRANCH_COST): Update.
2304 * config/vax/vax.h (BRANCH_COST): Update.
2305 * config/h8300/h8300.h (BRANCH_COST): Update.
2306 * params.def (PARAM_PREDICTABLE_BRANCH_OUTCOME): New.
2307 * doc/invoke.texi (predictable-branch-cost-outcome): Document.
2308 * doc/tm.texi (BRANCH_COST): Update.
2309
2310 2008-08-30 Samuel Tardieu <sam@rfc1149.net>
2311
2312 PR target/37283
2313 * config/arm/arm.c (arm_optimization_options): Set
2314 flag_section_anchors to 2 instead of 1 to distinguish it from
2315 -fsection-anchors given explicitely on the command line.
2316
2317 2008-08-30 Richard Sandiford <rdsandiford@googlemail.com>
2318
2319 * recog.c (split_insn): Consider attaching a REG_EQUAL note to the
2320 final insn of a split.
2321
2322 2008-08-30 Jan Hubicka <jh@suse.cz>
2323
2324 * postreload-gcse.c (gate_handle_gcse2): Disable for functions
2325 optimized for speed.
2326 * final.c (compute_alignments): Use optimize_bb_for_size_p.
2327 * tree-call-cdce.c (gate_call_cdce): Use optimize_function_for_speed_p.
2328 * opts.c (flag_predictive_commoning_set, flag_unswitch_loops_set,
2329 flag_gcse_after_reload_set): New static vars.
2330 (common_handle_option): Enable those flags for profile-use.
2331 (decode_options): Remove optimize_size flags that are handled
2332 on higher granuality.
2333 * tree-vectorizer.c (vectorize_loops): Use
2334 optimize_loop_nest_for_speed_p.
2335 * tree-ssa-pre.c (do_pre): Use optimize_function_for_speed_p.
2336 * tree-predcom.c (tree_predictive_commoning): Use
2337 optimize_loop_for_speed_p.
2338 * varasm.c (assemble_start_function): Use optimize_function_for_speed_p.
2339 * bb-reorder.c (rest_of_handle_reorder_blocks): Likewise.
2340 * predict.c (optimize_loop_for_speed_p): Fix walk.
2341
2342 2008-08-30 Jan Hubicka <jh@suse.cz>
2343
2344 * ipa-inline.c (cgraph_estimate_growth): Discover self recursive
2345 functions.
2346 (cgraph_decide_inlining_of_small_function): Use edge->count to detect
2347 profile presence locally.
2348
2349 2008-08-29 Joseph Myers <joseph@codesourcery.com>
2350
2351 PR bootstrap/37086
2352 * tree-vrp.c (find_switch_asserts): Make idx volatile for GCC
2353 versions before 4.0.
2354
2355 2008-08-29 Jan Hubicka <jh@suse.cz>
2356
2357 * tree-inline.c (insert_init_stmt): Insert sequence even when
2358 not in SSA form.
2359
2360 2008-08-29 Jeff Law <law@redhat.com>
2361
2362 * mn10300.c (mn10300_secondary_reload_class): We need secondary
2363 reloads for AM33-2 if IN is a pseudo with an equivalent memory
2364 location and class is an FP register.
2365
2366 2008-08-29 Jan Hubicka <jh@suse.cz>
2367
2368 * see.c (see_merge_one_def_extension): Silence used uninitialized
2369 warning.
2370 * matrix-reorg.c (check_allocation_function): Likewise.
2371 * config/i386/driver-i386.c (detect_caches_amd): Likewise.
2372
2373 2008-08-29 Jakub Jelinek <jakub@redhat.com>
2374
2375 PR c/37261
2376 * fold-const.c (fold_binary): In (X | C1) & C2 canonicalization
2377 compute new & and | in type rather than TREE_TYPE (arg0).
2378
2379 * dwarf2out.c (fortran_common): Update comment.
2380 (gen_variable_die): Swap com_die and var_die variables in Fortran
2381 COMMON block handling code.
2382
2383 * dwarf2out.c (descr_info_loc): Handle VAR_DECL.
2384
2385 * dwarf2out.c (gen_const_die): New function.
2386 (size_of_die, value_format, output_die): Output larger
2387 dw_val_class_vec using DW_FORM_block2 or DW_FORM_block4.
2388 (native_encode_initializer): New function.
2389 (tree_add_const_value_attribute): Call it.
2390 (gen_decl_die, dwarf2out_decl): Handle CONST_DECLs if is_fortran ().
2391
2392 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): For
2393 DECL_BY_REFERENCE decls don't pass TREE_READONLY and
2394 TREE_THIS_VOLATILE to add_type_attribute.
2395
2396 * dwarf2out.c (add_subscript_info): Stop on Fortran TYPE_STRING_FLAG
2397 types.
2398 (gen_array_type_die): Emit DW_TAG_string_type for Fortran character
2399 types.
2400
2401 * dwarf2out.c (loc_by_reference): New function.
2402 (add_location_or_const_value_attribute): Use it.
2403
2404 PR fortran/23057
2405 * dwarf2out.c (gen_variable_die): Represent Fortran COMMON vars
2406 as DW_TAG_variable children of DW_TAG_common_block rather than
2407 DW_TAG_member children. Put DW_AT_external to individual
2408 DW_TAG_variable DIEs, not to DW_TAG_common_block.
2409
2410 * dwarf2out.c (add_bound_info): If lookup_decl_die failed, try
2411 loc_descriptor_from_tree_1.
2412
2413 PR fortran/29635
2414 PR fortran/23057
2415 * debug.h (struct gcc_debug_hooks): Add NAME and CHILD
2416 arguments to imported_module_or_decl.
2417 (debug_nothing_tree_tree): Removed.
2418 (debug_nothing_tree_tree_tree_bool): New prototype.
2419 * debug.c (do_nothing_debug_hooks): Adjust.
2420 (debug_nothing_tree_tree): Removed.
2421 (debug_nothing_tree_tree_tree_bool): New function.
2422 * dwarf2out.c (is_symbol_die): Handle DW_TAG_module.
2423 (gen_variable_die): Put all common vars for the
2424 same COMMON block under one DW_TAG_common_block.
2425 (declare_in_namespace): Return new context_die, for Fortran
2426 return the module DIE instead of adding extra declarations into
2427 the namespace.
2428 (gen_type_die_with_usage): Adjust declare_in_namespace caller.
2429 (gen_namespace_die): If is_fortran (), generate DW_TAG_module
2430 instead of DW_TAG_namespace. If DECL_EXTERNAL is set, add
2431 DW_AT_declaration.
2432 (dwarf2out_global_decl): Don't skip Fortran global vars.
2433 (gen_decl_die): Likewise. Adjust declare_in_namespace callers.
2434 (dwarf2out_imported_module_or_decl): Add NAME and CHILD arguments.
2435 If NAME is non-NULL, add DW_AT_name. If CHILD is non-NULL, put
2436 DW_TAG_imported_declaration as child of previous
2437 DW_TAG_imported_module.
2438 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Adjust.
2439 * sdbout.c (sdb_debug_hooks): Likewise.
2440 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2441
2442 2008-08-29 Jan Hubicka <jh@suse.cz>
2443
2444 * cgraph.c (cgraph_remove_node): Do not remove nested nodes.
2445
2446 * cgraph.h (cgraph_maybe_hot_edge_p): Declare.
2447 * ipa-cp.c (n_cloning_candidates): New static variable.
2448 (ipcp_print_profile_data, ipcp_function_scale_print): Forward declare.
2449 (ipcp_print_all_lattices): Improve debug output.
2450 (ipcp_cloning_candidate_p): New function.
2451 (ipcp_initialize_node_lattices): Use it.
2452 (ipcp_init_stage): Do only analyzis here; prettier debug output.
2453 (ipcp_propagate_stage): Prettier debug output.
2454 (ipcp_iterate_stage): Initialize latices here; prettier debug output.
2455 (ipcp_print_all_structures): Remove.
2456 (ipcp_need_redirect_p): Test !n_cloning_candidates.
2457 (ipcp_insert_stage): Prettier debug output; call
2458 cgraph_remove_unreachable_nodes before propagating.
2459 (pass_ipa_cp): Schedule function removal pass.
2460 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Better
2461 debug output.
2462 (cgraph_maybe_hot_edge_p): Move to ...
2463 * predict.c (cgraph_maybe_hot_edge_p) ... here.
2464 * opts.c (flag_ipa_cp_set, flag_ipa_cp_clone_set): New.
2465 (common_handle_option): Set them; enable ipa-cp when profiling.
2466 * ipa-prop.c (ipa_print_node_jump_functions): Prettier output.
2467 (ipa_print_all_jump_functions): Likewise.
2468 (ipa_print_all_tree_maps, ipa_print_node_param_flags): Remove.
2469 (ipa_print_node_params, ipa_print_all_params): New.
2470 * ipa-prop.h (ipa_print_all_tree_maps, ipa_print_node_param_flags,
2471 ipa_print_all_param_flags): Remove.
2472 (ipa_print_node_params, ipa_print_all_params): New.
2473
2474 2008-08-29 Bob Wilson <bob.wilson@acm.org>
2475
2476 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Revert
2477 change from 2008-04-03.
2478 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Define.
2479
2480 2008-08-29 Vladimir Makarov <vmakarov@redhat.com>
2481
2482 PR rtl-opt/37251
2483 * ira-color.c (push_allocnos_to_stack): Truncate
2484 removed_splay_allocno_vec.
2485
2486 2008-08-29 Vladimir Makarov <vmakarov@redhat.com>
2487
2488 PR rtl-opt/37243
2489 * ira-color (ira_fast_allocation): Don't assign hard registers to
2490 global allocnos.
2491
2492 2008-08-29 Jan Hubicka <jh@suse.cz>
2493
2494 PR middle-end/37278
2495 * predict.c (optimize_loop_nest_for_speed_p): Do not ICE
2496 for cold internal loops.
2497
2498 2008-08-29 Richard Guenther <rguenther@suse.de>
2499
2500 * tree-ssa-structalias.c (create_variable_info_for): Do not
2501 create fields for heap vars or vars with a noalias state.
2502 For NO_ALIAS_ANYTHING variables add a self-constraint, not one
2503 from ESCAPED.
2504
2505 2008-08-29 Richard Guenther <rguenther@suse.de>
2506
2507 * common.opt (ftree-store-ccp): Mark as preserved for
2508 backward compatibility.
2509 * doc/invoke.texi (-ftree-store-ccp): Remove documentation.
2510 * tree-pass.h (pass_store_ccp): Remove.
2511 * tree-ssa-propagate.h (struct prop_value_d): Remove mem_ref field.
2512 (first_vdef): Remove declaration.
2513 (get_value_loaded_by): Likewise.
2514 * tree-ssa-ccp.c (do_store_ccp): Remove.
2515 (get_default_value): Simplify as do_store_ccp is always false
2516 now. Do not initialize mem_ref.
2517 (set_value_varying): Likewise.
2518 (canonicalize_float_value): Likewise.
2519 (set_lattice_value): Likewise.
2520 (likely_value): Likewise.
2521 (surely_varying_stmt_p): Likewise.
2522 (ccp_initialize): Likewise.
2523 (ccp_lattice_meet): Likewise.
2524 (ccp_visit_phi_node): Likewise.
2525 (ccp_fold): Likewise.
2526 (evaluate_stmt): Likewise.
2527 (visit_assignment): Likewise.
2528 (ccp_visit_stmt): Likewise.
2529 (execute_ssa_ccp): Fold into ...
2530 (do_ssa_ccp): ... this.
2531 (do_ssa_store_ccp): Remove.
2532 (gate_store_ccp): Likewise.
2533 (pass_store_ccp): Likewise.
2534 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not
2535 initialize mem_ref.
2536 * tree-ssa-propagate.c (first_vdef): Remove.
2537 (get_value_loaded_by): Likewise.
2538 (replace_vuses_in): Likewise.
2539 (substitute_and_fold): Do not call replace_vuses_in.
2540 * opts.c (decode_options): Do not set flag_tree_store_ccp.
2541
2542 2008-08-29 Richard Guenther <rguenther@suse.de>
2543
2544 PR middle-end/37236
2545 * tree-ssa-structalias.c (intra_create_variable_infos): Mark
2546 PARAM_NOALIAS tags with is_heapvar.
2547 * tree-ssa-operands.c (access_can_touch_variable): Offset
2548 based tests do not apply for heapvars. Fix offset test.
2549
2550 2008-08-29 Jan Hubicka <jh@suse.cz>
2551
2552 * doc/invoke.texi (-fipa-cp): Enabled by default at -O2/-Os/-O3
2553 (-fipa-cp-clone): Enabled by default at -O3.
2554 * opts.c (decode_options): Enable ipa-cp at -O2, ipa-cp-clone at -O3;
2555 make ipa-cp-clone to imply ipa-cp; disable cloning at -Os.
2556
2557 2008-08-29 Jan Hubicka <jh@suse.cz>
2558
2559 * tree.c (build_function_type_skip_args, build_function_decl_skip_args):
2560 New functions.
2561 * tree.h (build_function_type_skip_args, build_function_decl_skip_args):
2562 Declare.
2563 * gimple.c (giple_copy_call_skip_args): New function.
2564 (giple_copy_call_skip_args): Declare.
2565
2566 * cgraph.h (cgraph_function_versioning): Add skip_args arugmnet
2567 * ipa-cp.c (ipcp_node_not_modifiable_p): Rename to ...
2568 (ipcp_node_modifiable_p): ... this one; use tree_versionable_function_p.
2569 (ipcp_create_replace_map): Improve debug output.
2570 (ipcp_need_redirect_p): Return false when not clonning.
2571 (ipcp_update_callgraph): Skip args.
2572 (ipcp_insert_stage): UPdate call of !ipcp_node_modifiable_p;
2573 skip args.
2574 * cgraphunit.c (cgraph_function_versioning): Add skip_args argument.
2575 (save_inline_function_body): Update call of tree_function_versioning.
2576 * ipa-prop.c (ipa_edge_removal_hook): Do not ICE on unanalyzed nodes.
2577 * tree-inline.c (copy_arguments_for_versioning): Add skip_args argument.
2578 (tree_function_versioning): Likewise.
2579 * tree-inline.h (tree_function_versioning): Update prototype.
2580
2581 2008-08-29 Jan Hubicka <jh@suse.cz>
2582
2583 * loop-unswitch.c (unswitch_single_loop): Use optimize_loop_for_speed_p.
2584 * tree-ssa-threadupdate.c (mark_threaded_blocks):
2585 Use optimize_function_for_size_p.
2586 * tracer.c (ignore_bb_p): Use optimize_bb_for_size_p.
2587 * postreload-gcse.c (eliminate_partially_redundant_load):
2588 Use optimize_bb_for_size_p.
2589 * value-prof.c (gimple_divmod_fixed_value_transform,
2590 gimple_mod_pow2_value_transform, gimple_mod_subtract_transform,
2591 gimple_stringops_transform): Use optimize_bb_for_size_p.
2592 * ipa-cp.c (ipcp_insert_stage): Use optimize_function_for_size_p.
2593 * final.c (compute_alignments): Use optimize_function_for_size_p.
2594 * builtins.c (fold_builtin_cabs): Use optimize_function_for_speed_p.
2595 (fold_builtin_strcpy, fold_builtin_fputs): Use
2596 optimize_function_for_size_p.
2597 * fold-const.c (tree_swap_operands_p): Use optimize_function_for_size_p.
2598 * recog.c (relax_delay_slots): Likewise.
2599 * tree-ssa-math-opts.c (replace_reciprocal):
2600 Use optimize_bb_for_speed_p.
2601 (execute_cse_reciprocals): Use optimize_bb_for_size_p.
2602 * ipa-inline.c (cgraph_decide_recursive_inlining): Use
2603 optimize_function_for_size_p.
2604 (cgraph_decide_inlining_of_small_function): Use
2605 optimize_function_for_size_p.
2606 * global.c (find_reg): Use optimize_function_for_size_p.
2607 * opts.c (decode_options): Do not clear flag_tree_ch,
2608 flag_inline_functions, flag_unswitch_loops, flag_unroll_loops,
2609 flag_unroll_all_loops and flag_prefetch_loop_arrays. Those can
2610 work it out from profile.
2611 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Use
2612 optimize_loop_for_speed_p.
2613 * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p): Constify
2614 argument.
2615 (optimize_loop_nest_for_size_p, optimize_loop_nest_for_speed_p): New.
2616 * tree-parloops.c (parallelize_loops): Use optimize_loop_for_size_p.
2617 * tree-eh.c (decide_copy_try_finally): Use optimize_function_for_size_p.
2618 * local-alloc.c (block_alloc): Pass BB pointer.
2619 (find_free_reg): Add BB pointer, use optimize_bb_for_size_p.
2620 * gcse.c (gcse_main): Use optimize_function_for_size_p.
2621 * loop-unroll.c (decide_unrolling_and_peeling):
2622 Use optimize_loop_for_size_p.
2623 (decide_peel_completely): Likewise.
2624 * tree-vect-analyze.c (vect_mark_for_runtime_alias_test): Use
2625 optimize_loop_for_size_p.
2626 (vect_enhance_data_refs_alignment): Likewise.
2627 * tree-ssa-coalesce.c (coalesce_cost): Add optimize_for_size argument.
2628 (coalesce_cost_bb, coalesce_cost_edge, create_outofssa_var_map):
2629 Update call.
2630 * cfgcleanup.c (outgoing_edges_match): Use optimize_bb_for_speed_p.
2631 (try_crossjump_bb): Use optimize_bb_for_size_p.
2632 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
2633 optimize_loop_for_speed_p.
2634 * bb-reorder.c (find_traces_1_round): Likewise.
2635 (copy_bb): Use optimize_bb_for_speed_p.
2636 (duplicate_computed_gotos): Likewise.
2637 * basic-block.h (optimize_loop_nest_for_size_p,
2638 optimize_loop_nest_for_speed_p): New.
2639 * stmt.c (expand_case): Use optimize_insn_for_size_p.
2640
2641 2008-08-29 Tristan Gingold <gingold@adacore.com>
2642
2643 * gcov.c (main): Call expandargv.
2644
2645 2008-08-29 Jan Hubicka <jh@suse.cz>
2646
2647 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Check that loop
2648 is not cold.
2649 * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
2650 Constify arguments.
2651 (optimize_loop_for_size_p, optimize_loop_for_speed_p): New functions.
2652 * basic-block.h (optimize_bb_for_size_p, optimize_bb_for_speed_p):
2653 Constify.
2654 (optimize_loop_for_size_p, optimize_loop_for_speed_p): Declare.
2655
2656 2008-08-29 Jan Hubicka <jh@suse.cz>
2657
2658 * tree-pass.h (pass_strip_predict_hints): Declare.
2659 * predict.c (strip_builtin_expect): Rename to ...
2660 (strip_predict_hints): ... this one; strip also GIMPLE_PREDICT.
2661 (tree_bb_level_predictions): Do not remove GIMPLE_PREDICT.
2662 (tree_estimate_probability): Do not strip builtin_expect.
2663 (pass_strip_predict_hints): New pass.
2664 * tree-inline.c (expand_call_inline): When inlining cold function,
2665 predict it as unlikely.
2666 * passes.c (init_optimization_passes): Add pass_strip_predict_hints.
2667
2668 2008-08-29 Richard Guenther <rguenther@suse.de>
2669
2670 PR tree-optimization/37207
2671 * tree-vrp.c (extract_range_from_binary_expr): Also try
2672 to constant fold if only one of the operands is a constant.
2673
2674 2008-08-29 Nick Clifton <nickc@redhat.com>
2675
2676 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Treat LABEL_REFs in
2677 the same way as SYMBOL_REFs.
2678
2679 2008-08-28 Bob Wilson <bob.wilson@acm.org>
2680
2681 * config/xtensa/xtensa.md (<u>mulsidi3): Use a temporary register.
2682
2683 2008-08-28 Adam Nemet <anemet@caviumnetworks.com>
2684
2685 * config/mips/mips.h (ISA_HAS_BBIT): New macro.
2686 * config/mips/mips.md (branch_likely): Remove const. Fix
2687 comment formatting.
2688 (define_delay for type "branch"): Change to only apply for branch
2689 with likely variant.
2690 (define_delay for type "branch" and "branch_likely" no). New delay
2691 definition.
2692 (equality_op): New code iterator.
2693 (bbv, bbinv): New code attributes.
2694 (*branch_bit<bbv><mode>, *branch_bit<bbv><mode>_inverted): New
2695 patterns.
2696
2697 2008-08-28 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2698 Andrew Pinski <pinskia@gcc.gnu.org>
2699
2700 PR 18050
2701 * c-common.c (verify_tree): Fix handling of ADDR_EXPR.
2702
2703 2008-08-28 Paolo Carlini <paolo.carlini@oracle.com>
2704
2705 * gtrh-posix.h: Fix uses of _POSIX_TIMEOUTS per the normal Posix
2706 rule that a symbolic constant must be defined and >= 0 for the
2707 corresponding facility to be present at compile-time.
2708 * gthr-posix.c: Likewise.
2709
2710 2008-08-28 Adam Nemet <anemet@caviumnetworks.com>
2711
2712 * config/mips/mips.h (ISA_HAS_DMUL3): New macro.
2713 * config/mips/mips.md (D): New mode attribute.
2714 (mulsi3, muldi3): Merge it into ...
2715 (mul<mode>3): ... new template. Use _mul3 ending for 3-op patterns.
2716 (muldi3_mul3): New pattern.
2717 (mulsi3_mult3): Rename to mulsi3_mul3.
2718
2719 2008-08-28 Jan Hubicka <jh@suse.cz>
2720
2721 * expmed.c (store_bit_field_1): Be prepared for movstrict expander
2722 to fail.
2723 * predict.c (always_optimize_for_size_p): Rename to ...
2724 (optimize_function_for_size): ... this one; make extern.
2725 (optimize_function_for_speed_p): New.
2726 (optimize_bb_for_size_p, optimize_bb_for_size_p,
2727 optimize_edge_for_size_p,optimize_edge_for_size_p,
2728 optimize_insn_for_size_p, optimize_insn_for_size_p): Update.
2729 * basic-block.h (optimize_function_for_size_p,
2730 optimize_function_for_speed_p): Declare.
2731 * i386.md (optimize_size checks): Replace them by appropriate
2732 predicate.
2733 (standard_80387_constant_p, ix86_compute_frame_layout,
2734 ix86_expand_epilogue, ix86_decompose_address,
2735 print_operand, emit_i387_cw_initialization,
2736 inline_memory_move_cost, ix86_pad_returns,
2737 ix86_reorg): Replace optimize_size checks.
2738
2739 2008-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2740
2741 * rtl.h (simplify_subreg_regno): Declare.
2742 * rtlanal.c (simplify_subreg_regno): New function, split out from...
2743 * simplify-rtx.c (simplify_subreg): ...here.
2744 * reload.c (find_reloads): Use simplify_subreg_regno instead of
2745 subreg_offset_representable_p.
2746
2747 2008-08-28 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2748
2749 PR c/30949
2750 * c-typeck.c (convert_for_assignment): Give a note describing what
2751 was passed and what was expected.
2752
2753 2008-08-28 Joey Ye <joey.ye@intel.com>
2754
2755 * doc/extend.texi: Document AVX built-in functions.
2756 * doc/invoke.texi: Document -mavx.
2757
2758 2008-08-28 H.J. Lu <hongjiu.lu@intel.com>
2759 Joey Ye <joey.ye@intel.com>
2760 Xuepeng Guo <xuepeng.guo@intel.com>
2761
2762 * config.gcc (extra_headers): Add gmmintrin.h for x86 and x86-64.
2763
2764 * config/i386/cpuid.h (bit_FMA): New.
2765 (bit_XSAVE): Likewise.
2766 (bit_OSXSAVE): Likewise.
2767 (bit_AVX): Likewise.
2768
2769 * config/i386/gas.h (ASM_OUTPUT_OPCODE): Undefine before
2770 define. Use ASM_OUTPUT_AVX_PREFIX.
2771
2772 * config/i386/gmmintrin.h: New.
2773
2774 * config/i386/i386.c (x86_64_reg_class): Add X86_64_AVX_CLASS.
2775 (OPTION_MASK_ISA_AVX_SET): New.
2776 (OPTION_MASK_ISA_FMA_SET): Likewise.
2777 (OPTION_MASK_ISA_AVX_UNSET): Likewise.
2778 (OPTION_MASK_ISA_FMA_SET): Likewise.
2779 (OPTION_MASK_ISA_SSE4_2_UNSET): Updated.
2780 (ix86_handle_option): Handle OPT_mavx and OPT_mfma.
2781 (pta_flags): Add PTA_AVX and PTA_FMA.
2782 (override_options): Handle PTA_AVX and PTA_FMA.
2783 (init_cumulative_args): Handle warn_avx.
2784 (classify_argument): Return 0 for COImode and OImode. Return
2785 1 and X86_64_AVX_CLASS for 256bit vector types.
2786 (examine_argument): Handle X86_64_AVX_CLASS.
2787 (construct_container): Likewise.
2788 (function_arg_advance_32): Pass OImode and 256bit vector types
2789 in AVX register.
2790 (function_arg_advance_64): Take a new argument to indicate if a
2791 parameter is named. Handle 256bit vector types. Return
2792 immediately for unnamed 256bit vector mode parameters.
2793 (function_arg_advance): Updated.
2794 (function_arg_32): Add comments for TImode. Handle OImode
2795 and 256bit vector types.
2796 (function_arg_64): Take a new argument to indicate if a
2797 parameter is named. Handle 256bit vector types. Return NULL
2798 for unnamed 256bit vector mode parameters.
2799 (function_arg): Updated.
2800 (setup_incoming_varargs_64): Support
2801 AVX encoding for *sse_prologue_save_insn.
2802 (ix86_gimplify_va_arg): Handle 256bit vector mode parameters.
2803 (standard_sse_constant_p): Return -2 for all 1s if SSE2 isn't
2804 enabled. For all 1s in 256bit vector modes, return 3 if AVX is
2805 enabled, otherwise return -3.
2806 (standard_sse_constant_opcode): Handle AVX and 256bit vector
2807 modes.
2808 (print_reg): Support AVX registers. Handle 'x' and 't'.
2809 Handle 'd' to duplicate the operand.
2810 (print_operand): Likewise. Also support AVX vector compare
2811 instructions.
2812 (output_387_binary_op): Support AVX.
2813 (output_fp_compare): Likewise.
2814 (ix86_expand_vector_move_misalign): Likewise.
2815 (ix86_attr_length_vex_default): New.
2816 (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
2817 IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
2818 IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
2819 IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
2820 IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_BLENDPD256,
2821 IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
2822 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DIVPD256,
2823 IX86_BUILTIN_DIVPS256, IX86_BUILTIN_DPPS256,
2824 IX86_BUILTIN_HADDPD256, IX86_BUILTIN_HADDPS256,
2825 IX86_BUILTIN_HSUBPD256, IX86_BUILTIN_HSUBPS256,
2826 IX86_BUILTIN_MAXPD256, IX86_BUILTIN_MAXPS256,
2827 IX86_BUILTIN_MINPD256, IX86_BUILTIN_MINPS256,
2828 IX86_BUILTIN_MULPD256, IX86_BUILTIN_MULPS256,
2829 IX86_BUILTIN_ORPD256, IX86_BUILTIN_ORPS256,
2830 IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
2831 IX86_BUILTIN_SUBPD256, IX86_BUILTIN_SUBPS256,
2832 IX86_BUILTIN_XORPD256, IX86_BUILTIN_XORPS256,
2833 IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
2834 IX86_BUILTIN_CMPPS, IX86_BUILTIN_CMPPD256,
2835 IX86_BUILTIN_CMPPS256, IX86_BUILTIN_CVTDQ2PD256,
2836 IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
2837 IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
2838 IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
2839 IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_EXTRACTF128PD256,
2840 IX86_BUILTIN_EXTRACTF128PS256, IX86_BUILTIN_EXTRACTF128SI256,
2841 IX86_BUILTIN_VZEROALL, IX86_BUILTIN_VZEROUPPER,
2842 IX86_BUILTIN_VZEROUPPER_REX64, IX86_BUILTIN_VPERMILVARPD,
2843 IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
2844 IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_VPERMILPD,
2845 IX86_BUILTIN_VPERMILPS, IX86_BUILTIN_VPERMILPD256,
2846 IX86_BUILTIN_VPERMILPS256, IX86_BUILTIN_VPERMIL2PD,
2847 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256,
2848 IX86_BUILTIN_VPERMIL2PS256, IX86_BUILTIN_VPERM2F128PD256,
2849 IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
2850 IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
2851 IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
2852 IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_VINSERTF128PD256,
2853 IX86_BUILTIN_VINSERTF128PS256, IX86_BUILTIN_VINSERTF128SI256,
2854 IX86_BUILTIN_LOADUPD256, IX86_BUILTIN_LOADUPS256,
2855 IX86_BUILTIN_STOREUPD256, IX86_BUILTIN_STOREUPS256,
2856 IX86_BUILTIN_LDDQU256, IX86_BUILTIN_LOADDQU256,
2857 IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_MASKLOADPD,
2858 IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKSTOREPD,
2859 IX86_BUILTIN_MASKSTOREPS, IX86_BUILTIN_MASKLOADPD256,
2860 IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKSTOREPD256,
2861 IX86_BUILTIN_MASKSTOREPS256, IX86_BUILTIN_MOVSHDUP256,
2862 IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
2863 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
2864 IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
2865 IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
2866 IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
2867 IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
2868 IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
2869 IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
2870 IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
2871 IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
2872 IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
2873 IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
2874 IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
2875 IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
2876 IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
2877 IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
2878 IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
2879 IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256
2880 and IX86_BUILTIN_MOVMSKPS256,
2881 (ix86_special_builtin_type): Add V32QI_FTYPE_PCCHAR,
2882 V8SF_FTYPE_PCV4SF, V8SF_FTYPE_PCFLOAT, V4DF_FTYPE_PCV2DF,
2883 V4DF_FTYPE_PCDOUBLE, V8SF_FTYPE_PCV8SF_V8SF,
2884 V4DF_FTYPE_PCV4DF_V4DF, V4SF_FTYPE_PCV4SF_V4SF,
2885 V2DF_FTYPE_PCV2DF_V2DF, VOID_FTYPE_PCHAR_V32QI,
2886 VOID_FTYPE_PFLOAT_V8SF, VOID_FTYPE_PDOUBLE_V4DF,
2887 VOID_FTYPE_PV8SF_V8SF_V8SF, VOID_FTYPE_PV4DF_V4DF_V4DF,
2888 VOID_FTYPE_PV4SF_V4SF_V4SF and VOID_FTYPE_PV2DF_V2DF_V2DF,
2889 (ix86_builtin_type): Add INT_FTYPE_V8SF_V8SF_PTEST,
2890 INT_FTYPE_V4DI_V4DI_PTEST, INT_FTYPE_V4DF_V4DF_PTEST,
2891 INT_FTYPE_V4SF_V4SF_PTEST, INT_FTYPE_V2DF_V2DF_PTEST,
2892 INT_FTYPE_V8SF, INT_FTYPE_V4DF, V8SI_FTYPE_V8SF, V8SI_FTYPE_V4SI,
2893 V8SF_FTYPE_V8SF, V8SF_FTYPE_V8SI, V8SF_FTYPE_V4SF,
2894 V4SI_FTYPE_V8SI, V4SI_FTYPE_V4DF, V4DF_FTYPE_V4DF,
2895 V4DF_FTYPE_V4SI, V4DF_FTYPE_V4SF, V4DF_FTYPE_V2DF,
2896 V4SF_FTYPE_V4DF, V4SF_FTYPE_V8SF, V2DF_FTYPE_V4DF,
2897 V8SF_FTYPE_V8SF_V8SF, V8SF_FTYPE_V8SF_V8SI,
2898 V4DF_FTYPE_V4DF_V4DF, V4DF_FTYPE_V4DF_V4DI,
2899 V4SF_FTYPE_V4SF_V4SI, V2DF_FTYPE_V2DF_V2DI,
2900 V8SF_FTYPE_V8SF_INT, V4SI_FTYPE_V8SI_INT, V4SF_FTYPE_V8SF_INT,
2901 V2DF_FTYPE_V4DF_INT, V4DF_FTYPE_V4DF_INT,
2902 V8SF_FTYPE_V8SF_V8SF_V8SF, V4DF_FTYPE_V4DF_V4DF_V4DF,
2903 V8SI_FTYPE_V8SI_V8SI_INT, V8SF_FTYPE_V8SF_V8SF_INT,
2904 V4DF_FTYPE_V4DF_V4DF_INT, V4DF_FTYPE_V4DF_V2DF_INT,
2905 V8SF_FTYPE_V8SF_V8SF_V8SI_INT, V4DF_FTYPE_V4DF_V4DF_V4DI_INT,
2906 V4SF_FTYPE_V4SF_V4SF_V4SI_INT and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
2907 (bdesc_special_args): Add IX86_BUILTIN_VZEROALL,
2908 IX86_BUILTIN_VZEROUPPER. IX86_BUILTIN_VZEROUPPER_REX64,
2909 IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
2910 IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
2911 IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_LOADUPD256,
2912 IX86_BUILTIN_LOADUPS256, IX86_BUILTIN_STOREUPD256,
2913 IX86_BUILTIN_STOREUPS256, IX86_BUILTIN_LOADDQU256,
2914 IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_LDDQU256,
2915 IX86_BUILTIN_MASKLOADPD, IX86_BUILTIN_MASKLOADPS,
2916 IX86_BUILTIN_MASKLOADPD256, IX86_BUILTIN_MASKLOADPS256,
2917 IX86_BUILTIN_MASKSTOREPD, IX86_BUILTIN_MASKSTOREPS,
2918 IX86_BUILTIN_MASKSTOREPD256 and IX86_BUILTIN_MASKSTOREPS256.
2919 (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
2920 IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
2921 IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
2922 IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
2923 IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_DIVPD256,
2924 IX86_BUILTIN_DIVPS256, IX86_BUILTIN_HADDPD256,
2925 IX86_BUILTIN_HSUBPS256, IX86_BUILTIN_HSUBPD256,
2926 IX86_BUILTIN_HADDPS256, IX86_BUILTIN_MAXPD256,
2927 IX86_BUILTIN_MAXPS256, IX86_BUILTIN_MINPD256,
2928 IX86_BUILTIN_MINPS256, IX86_BUILTIN_MULPD256,
2929 IX86_BUILTIN_MULPS256, IX86_BUILTIN_ORPD256,
2930 IX86_BUILTIN_ORPS256, IX86_BUILTIN_SUBPD256,
2931 IX86_BUILTIN_SUBPS256, IX86_BUILTIN_XORPD256,
2932 IX86_BUILTIN_XORPS256, IX86_BUILTIN_VPERMILVARPD,
2933 IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
2934 IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_BLENDPD256,
2935 IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
2936 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DPPS256,
2937 IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
2938 IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
2939 IX86_BUILTIN_CMPPS,
2940 IX86_BUILTIN_CMPPD256,IX86_BUILTIN_CMPPS256,
2941 IX86_BUILTIN_EXTRACTF128PD256, IX86_BUILTIN_EXTRACTF128PS256,
2942 IX86_BUILTIN_EXTRACTF128SI256, IX86_BUILTIN_CVTDQ2PD256,
2943 IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
2944 IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
2945 IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
2946 IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_VPERM2F128PD256,
2947 IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
2948 IX86_BUILTIN_VPERMILPD, IX86_BUILTIN_VPERMILPS,
2949 IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
2950 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMILPS,
2951 IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
2952 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
2953 IX86_BUILTIN_VPERMIL2PD256, IX86_BUILTIN_VPERMIL2PS256,
2954 IX86_BUILTIN_VINSERTF128PD256, IX86_BUILTIN_VINSERTF128PS256,
2955 IX86_BUILTIN_VINSERTF128SI256, IX86_BUILTIN_MOVSHDUP256,
2956 IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
2957 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
2958 IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
2959 IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
2960 IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
2961 IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
2962 IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
2963 IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
2964 IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
2965 IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
2966 IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
2967 IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
2968 IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
2969 IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
2970 IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
2971 IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
2972 IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
2973 IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256 and
2974 IX86_BUILTIN_MOVMSKPS256.
2975 (ix86_init_mmx_sse_builtins): Support AVX builtins.
2976 (ix86_expand_args_builtin): Likewise.
2977 (ix86_expand_special_args_builtin): Likewise.
2978 (ix86_hard_regno_mode_ok): Handle AVX modes.
2979 (ix86_expand_vector_init_duplicate): Likewise.
2980 (ix86_expand_vector_init_one_nonzero): Likewise.
2981 (ix86_expand_vector_init_one_var): Likewise.
2982 (ix86_expand_vector_init_concat): Likewise.
2983 (ix86_expand_vector_init_general): Likewise.
2984 (ix86_expand_vector_set): Likewise.
2985 (ix86_vector_mode_supported_p): Likewise.
2986 (x86_extended_reg_mentioned_p): Check INSN_P before using
2987 PATTERN.
2988
2989 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2990 OPTION_MASK_ISA_AVX and OPTION_MASK_ISA_FMA.
2991
2992 * config/i386/i386.h (TARGET_AVX): New.
2993 (TARGET_FMA): Likewise.
2994 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AVX and TARGET_FMA.
2995 (BIGGEST_ALIGNMENT): Set to 256 for TARGET_AVX.
2996 (VALID_AVX256_REG_MODE): New.
2997 (AVX256_VEC_FLOAT_MODE_P): Likewise.
2998 (AVX_FLOAT_MODE_P): Likewise.
2999 (AVX128_VEC_FLOAT_MODE_P): Likewise.
3000 (AVX256_VEC_FLOAT_MODE_P): Likewise.
3001 (AVX_VEC_FLOAT_MODE_P): Likewise.
3002 (ASM_OUTPUT_AVX_PREFIX): Likewise.
3003 (ASM_OUTPUT_OPCODE): Likewise.
3004 (UNITS_PER_SIMD_WORD): Add a FIXME for 32byte vectorizer
3005 support.
3006 (SSE_REG_MODE_P): Allow 256bit vector modes.
3007 (ix86_args): Add a warn_avx field.
3008
3009 * config/i386/i386.md (UNSPEC_PCMP): New.
3010 (UNSPEC_VPERMIL): Likewise.
3011 (UNSPEC_VPERMIL2): Likewise.
3012 (UNSPEC_VPERMIL2F128): Likewise.
3013 (UNSPEC_MASKLOAD): Likewise.
3014 (UNSPEC_MASKSTORE): Likewise.
3015 (UNSPEC_CAST): Likewise.
3016 (UNSPEC_VTESTP): Likewise.
3017 (UNSPECV_VZEROALL): Likewise.
3018 (UNSPECV_VZEROUPPER): Likewise.
3019 (XMM0_REG): Likewise.
3020 (XMM1_REG): Likewise.
3021 (XMM2_REG): Likewise.
3022 (XMM3_REG): Likewise.
3023 (XMM4_REG): Likewise.
3024 (XMM5_REG): Likewise.
3025 (XMM6_REG): Likewise.
3026 (XMM8_REG): Likewise.
3027 (XMM9_REG): Likewise.
3028 (XMM10_REG): Likewise.
3029 (XMM11_REG): Likewise.
3030 (XMM12_REG): Likewise.
3031 (XMM13_REG): Likewise.
3032 (XMM14_REG): Likewise.
3033 (XMM15_REG): Likewise.
3034 (prefix): Likewise.
3035 (prefix_vex_imm8): Likewise.
3036 (prefix_vex_w): Likewise.
3037 (length_vex): Likewise.
3038 (maxmin): Likewise.
3039 (movoi): Likewise.
3040 (*avx_ashlti3): Likewise.
3041 (*avx_lshrti3): Likewise.
3042 (*avx_setcc<mode>): Likewise.
3043 (*fop_<mode>_comm_mixed_avx): Likewise.
3044 (*fop_<mode>_comm_avx): Likewise.
3045 (*fop_<mode>_1_mixed_avx): Likewise.
3046 (*fop_<mode>_1_avx): Likewise.
3047 (*avx_<code><mode>3): Likewise.
3048 (*avx_ieee_smin<mode>3): Likewise.
3049 (*avx_ieee_smax<mode>3): Likewise.
3050 (mode): Add OI, V8SF and V4DF.
3051 (length): Support VEX prefix.
3052 (*cmpfp_i_mixed): Set prefix attribute.
3053 (*cmpfp_i_sse): Likewise.
3054 (*cmpfp_iu_mixed): Likewise.
3055 (*cmpfp_iu_sse): Likewise.
3056 (*movsi_1): Support AVX.
3057 (*movdi_2): Likewise.
3058 (*movdi_1_rex64): Likewise.
3059 (*movti_internal): Likewise.
3060 (*movti_rex64): Likewise.
3061 (*movsf_1): Likewise.
3062 (*movdf_nointeger): Likewise.
3063 (*movdf_integer_rex64): Likewise.
3064 (*movtf_internal): Likewise.
3065 (zero_extendsidi2_32): Likewise.
3066 (zero_extendsidi2_rex64): Likewise.
3067 (*extendsfdf2_mixed): Likewise.
3068 (*extendsfdf2_sse): Likewise.
3069 (*truncdfsf_fast_mixed): Likewise.
3070 (*truncdfsf_fast_sse): Likewise.
3071 (*truncdfsf_mixed): Likewise.
3072 (fix_trunc<mode>di_sse): Likewise.
3073 (fix_trunc<mode>si_sse): Likewise.
3074 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
3075 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
3076 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
3077 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
3078 (*rcpsf2_sse): Likewise.
3079 (*rsqrtsf2_sse): Likewise.
3080 (*sqrt<mode>2_sse): Likewise.
3081 (sse4_1_round<mode>2): Likewise.
3082 (*sse_prologue_save_insn): Disallow REX prefix for AVX.
3083 Support AVX. Set length attribute properly for AVX.
3084
3085 * config/i386/i386-modes.def (VECTOR_MODES (INT, 32)): New.
3086 (VECTOR_MODES (FLOAT, 32)): Likewise.
3087 (VECTOR_MODE (INT, DI, 8)): Likewise.
3088 (VECTOR_MODE (INT, HI, 32)): Likewise.
3089 (VECTOR_MODE (INT, QI, 64)): Likewise.
3090 (VECTOR_MODE (FLOAT, DF, 8)): Likewise.
3091 (VECTOR_MODE (FLOAT, SF, 16)): Likewise.
3092 (VECTOR_MODE (INT, DI, 4)): Removed.
3093 (VECTOR_MODE (INT, SI, 8)): Likewise.
3094 (VECTOR_MODE (INT, HI, 16)): Likewise.
3095 (VECTOR_MODE (INT, QI, 32)): Likewise.
3096 (VECTOR_MODE (FLOAT, SF, 8)): Likewise.
3097 (INT_MODE (OI, 32)): Likewise.
3098
3099 * config/i386/i386.opt (mavx): New.
3100 (mfma): Likewise.
3101
3102 * config/i386/i386-protos.h (ix86_attr_length_vex_default): New.
3103
3104 * config/i386/mmx.md (*mov<mode>_internal_rex64): Support AVX.
3105 (*mov<mode>_internal_avx): New.
3106 (*movv2sf_internal_rex64_avx): Likewise.
3107 (*movv2sf_internal_avx): Likewise.
3108
3109 * config/i386/predicates.md (const_4_to_5_operand): New.
3110 (const_6_to_7_operand): Likewise.
3111 (const_8_to_11_operand): Likewise.
3112 (const_12_to_15_operand): Likewise.
3113 (avx_comparison_float_operator): Likewise.
3114
3115 * config/i386/sse.md (AVX256MODEI): New.
3116 (AVX256MODE): Likewise.
3117 (AVXMODEQI): Likewise.
3118 (AVXMODE): Likewise.
3119 (AVX256MODEF2P): Likewise.
3120 (AVX256MODE2P): Likewise.
3121 (AVX256MODE4P): Likewise.
3122 (AVX256MODE8P): Likewise.
3123 (AVXMODEF2P): Likewise.
3124 (AVXMODEF4P): Likewise.
3125 (AVXMODEDCVTDQ2PS): Likewise.
3126 (AVXMODEDCVTPS2DQ): Likewise.
3127 (avxvecmode): Likewise.
3128 (avxvecpsmode): Likewise.
3129 (avxhalfvecmode): Likewise.
3130 (avxscalarmode): Likewise.
3131 (avxcvtvecmode): Likewise.
3132 (avxpermvecmode): Likewise.
3133 (avxmodesuffixf2c): Likewise.
3134 (avxmodesuffixp): Likewise.
3135 (avxmodesuffixs): Likewise.
3136 (avxmodesuffix): Likewise.
3137 (vpermilbits): Likewise.
3138 (pinsrbits): Likewise.
3139 (mov<mode>): Likewise.
3140 (*mov<mode>_internal): Likewise.
3141 (push<mode>1): Likewise.
3142 (movmisalign<mode>): Likewise.
3143 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3144 (avx_movdqu<avxmodesuffix>): Likewise.
3145 (avx_lddqu<avxmodesuffix>): Likewise.
3146 (<plusminus_insn><mode>3): Likewise.
3147 (*avx_<plusminus_insn><mode>3): Likewise.
3148 (*avx_vm<plusminus_insn><mode>3): Likewise.
3149 (mul<mode>3): Likewise.
3150 (*avx_mul<mode>3): Likewise.
3151 (*avx_vmmul<mode>3): Likewise.
3152 (divv8sf3): Likewise.
3153 (divv4df3): Likewise.
3154 (avx_div<mode>3): Likewise.
3155 (*avx_div<mode>3): Likewise.
3156 (*avx_vmdiv<mode>3): Likewise.
3157 (avx_rcpv8sf2): Likewise.
3158 (*avx_vmrcpv4sf2): Likewise.
3159 (sqrtv8sf2): Likewise.
3160 (avx_sqrtv8sf2): Likewise.
3161 (*avx_vmsqrt<mode>2): Likewise.
3162 (rsqrtv8sf2): Likewise.
3163 (avx_rsqrtv8sf2): Likewise.
3164 (*avx_vmrsqrtv4sf2): Likewise.
3165 (<code><mode>3): Likewise.
3166 (*avx_<code><mode>3_finite): Likewise.
3167 (*avx_<code><mode>3): Likewise.
3168 (*avx_vm<code><mode>3): Likewise.
3169 (*avx_ieee_smin<mode>3): Likewise.
3170 (*avx_ieee_smax<mode>3): Likewise.
3171 (avx_addsubv8sf3): Likewise.
3172 (avx_addsubv4df3): Likewise.
3173 (*avx_addsubv4sf3): Likewise.
3174 (*avx_addsubv2df3): Likewise.
3175 (avx_h<plusminus_insn>v4df3): Likewise.
3176 (avx_h<plusminus_insn>v8sf3): Likewise.
3177 (*avx_h<plusminus_insn>v4sf3): Likewise.
3178 (*avx_h<plusminus_insn>v2df3): Likewise.
3179 (avx_cmpp<avxmodesuffixf2c><mode>3): Likewise.
3180 (avx_cmps<ssemodesuffixf2c><mode>3): Likewise.
3181 (*avx_maskcmp<mode>3): Likewise.
3182 (avx_nand<mode>3): Likewise.
3183 (*avx_<code><mode>3): Likewise.
3184 (*avx_nand<mode>3): Likewise.
3185 (*avx_<code><mode>3): Likewise.
3186 (*avx_cvtsi2ss): Likewise.
3187 (*avx_cvtsi2ssq): Likewise.
3188 (*avx_cvtsi2sd): Likewise.
3189 (*avx_cvtsi2sdq): Likewise.
3190 (*avx_cvtsd2ss): Likewise.
3191 (avx_cvtss2sd): Likewise.
3192 (avx_cvtdq2ps<avxmodesuffix>): Likewise.
3193 (avx_cvtps2dq<avxmodesuffix>): Likewise.
3194 (avx_cvttps2dq<avxmodesuffix>): Likewise.
3195 (*avx_cvtsi2sd): Likewise.
3196 (*avx_cvtsi2sdq): Likewise.
3197 (avx_cvtdq2pd256): Likewise.
3198 (avx_cvtpd2dq256): Likewise.
3199 (avx_cvttpd2dq256): Likewise.
3200 (*avx_cvtsd2ss): Likewise.
3201 (*avx_cvtss2sd): Likewise.
3202 (avx_cvtpd2ps256): Likewise.
3203 (avx_cvtps2pd256): Likewise.
3204 (*avx_movhlps): Likewise.
3205 (*avx_movlhps): Likewise.
3206 (avx_unpckhps256): Likewise.
3207 (*avx_unpckhps): Likewise.
3208 (avx_unpcklps256): Likewise.
3209 (*avx_unpcklps): Likewise.
3210 (avx_movshdup256): Likewise.
3211 (avx_movsldup256): Likewise.
3212 (avx_shufps256): Likewise.
3213 (avx_shufps256_1): Likewise.
3214 (*avx_shufps_<mode>): Likewise.
3215 (*avx_loadhps): Likewise.
3216 (*avx_storelps): Likewise.
3217 (*avx_loadlps): Likewise.
3218 (*avx_movss): Likewise.
3219 (*vec_dupv4sf_avx): Likewise.
3220 (*vec_concatv2sf_avx): Likewise.
3221 (*vec_concatv4sf_avx): Likewise.
3222 (*vec_setv4sf_0_avx): Likewise.
3223 (*vec_setv4sf_avx): Likewise.
3224 (*avx_insertps): Likewise.
3225 (avx_vextractf128<mode>): Likewise.
3226 (vec_extract_lo_<mode>): Likewise.
3227 (vec_extract_hi_<mode>): Likewise.
3228 (vec_extract_lo_<mode>): Likewise.
3229 (vec_extract_hi_<mode>): Likewise.
3230 (vec_extract_lo_v16hi): Likewise.
3231 (vec_extract_hi_v16hi): Likewise.
3232 (vec_extract_lo_v32qi): Likewise.
3233 (vec_extract_hi_v32qi): Likewise.
3234 (avx_unpckhpd256): Likewise.
3235 (*avx_unpckhpd): Likewise.
3236 (avx_movddup256): Likewise.
3237 (*avx_movddup): Likewise.
3238 (avx_unpcklpd256): Likewise.
3239 (*avx_unpcklpd): Likewise.
3240 (avx_shufpd256): Likewise.
3241 (avx_shufpd256_1): Likewise.
3242 (*avx_punpckhqdq): Likewise.
3243 (*avx_punpcklqdq): Likewise.
3244 (*avx_shufpd_<mode>): Likewise.
3245 (*avx_storehpd): Likewise.
3246 (*avx_loadhpd): Likewise.
3247 (*avx_loadlpd): Likewise.
3248 (*avx_movsd): Likewise.
3249 (*vec_concatv2df_avx): Likewise.
3250 (*avx_<plusminus_insn><mode>3): Likewise.
3251 (*avx_<plusminus_insn><mode>3): Likewise.
3252 (*avx_mulv8hi3): Likewise.
3253 (*avxv8hi3_highpart): Likewise.
3254 (*avx_umulv8hi3_highpart): Likewise.
3255 (*avx_umulv2siv2di3): Likewise.
3256 (*avx_mulv2siv2di3): Likewise.
3257 (*avx_pmaddwd): Likewise.
3258 (*avx_mulv4si3): Likewise.
3259 (*avx_ashr<mode>3): Likewise.
3260 (*avx_lshr<mode>3): Likewise.
3261 (*avx_ashl<mode>3): Likewise.
3262 (*avx_<code><mode>3): Likewise.
3263 (*avx_eq<mode>3): Likewise.
3264 (*avx_gt<mode>3): Likewise.
3265 (*avx_nand<mode>3): Likewise.
3266 (*avx_nand<mode>3): Likewise.
3267 (*avx_<code><mode>3): Likewise.
3268 (*avx_<code><mode>3): Likewise.
3269 (*avx_packsswb): Likewise.
3270 (*avx_packssdw): Likewise.
3271 (*avx_packuswb): Likewise.
3272 (*avx_punpckhbw): Likewise.
3273 (*avx_punpcklbw): Likewise.
3274 (*avx_punpckhwd): Likewise.
3275 (*avx_punpcklwd): Likewise.
3276 (*avx_punpckhdq): Likewise.
3277 (*avx_punpckldq): Likewise.
3278 (*avx_pinsr<avxmodesuffixs>): Likewise.
3279 (*avx_pinsrq): Likewise.
3280 (*avx_loadld): Likewise.
3281 (*vec_extractv2di_1_rex64_avx): Likewise.
3282 (*vec_extractv2di_1_avx): Likewise.
3283 (*vec_dupv2di_avx): Likewise.
3284 (*vec_concatv2si_avx): Likewise.
3285 (*vec_concatv4si_1_avx): Likewise.
3286 (*vec_concatv2di_avx): Likewise.
3287 (*vec_concatv2di_rex64_avx): Likewise.
3288 (*avx_uavgv16qi3): Likewise.
3289 (*avx_uavgv8hi3): Likewise.
3290 (*avx_psadbw): Likewise.
3291 (avx_movmskp<avxmodesuffixf2c>256): Likewise.
3292 (*avx_phaddwv8hi3): Likewise.
3293 (*avx_phadddv4si3): Likewise.
3294 (*avx_phaddswv8hi3): Likewise.
3295 (*avx_phsubwv8hi3): Likewise.
3296 (*avx_phsubdv4si3): Likewise.
3297 (*avx_phsubswv8hi3): Likewise.
3298 (*avx_pmaddubsw128): Likewise.
3299 (*avx_pmulhrswv8hi3): Likewise.
3300 (*avx_pshufbv16qi3): Likewise.
3301 (*avx_psign<mode>3): Likewise.
3302 (*avx_palignrti): Likewise.
3303 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3304 (avx_blendvp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3305 (avx_dpp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3306 (*avx_mpsadbw): Likewise.
3307 (*avx_packusdw): Likewise.
3308 (*avx_pblendvb): Likewise.
3309 (*avx_pblendw): Likewise.
3310 (avx_vtestp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3311 (avx_ptest256): Likewise.
3312 (avx_roundp<avxmodesuffixf2c>256): Likewise.
3313 (*avx_rounds<ssemodesuffixf2c>): Likewise.
3314 (*avx_aesenc): Likewise.
3315 (*avx_aesenclast): Likewise.
3316 (*avx_aesdec): Likewise.
3317 (*avx_aesdeclast): Likewise.
3318 (avx_vzeroupper): Likewise.
3319 (avx_vzeroupper_rex64): Likewise.
3320 (avx_vpermil<mode>): Likewise.
3321 (avx_vpermilvar<mode>3): Likewise.
3322 (avx_vpermil2<mode>3): Likewise.
3323 (avx_vperm2f128<mode>3): Likewise.
3324 (avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3325 (avx_vbroadcastss256): Likewise.
3326 (avx_vbroadcastf128_p<avxmodesuffixf2c>256): Likewise.
3327 (avx_vinsertf128<mode>): Likewise.
3328 (vec_set_lo_<mode>): Likewise.
3329 (vec_set_hi_<mode>): Likewise.
3330 (vec_set_lo_<mode>): Likewise.
3331 (vec_set_hi_<mode>): Likewise.
3332 (vec_set_lo_v16hi): Likewise.
3333 (vec_set_hi_v16hi): Likewise.
3334 (vec_set_lo_v32qi): Likewise.
3335 (vec_set_hi_v32qi): Likewise.
3336 (avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3337 (avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3338 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
3339 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Likewise.
3340 (vec_init<mode>): Likewise.
3341 (*vec_concat<mode>_avx): Likewise.
3342 (blendbits): Support V8SF and V4DF.
3343 (sse2_movq128): Support AVX.
3344 (<sse>_movnt<mode>): Likewise.
3345 (sse2_movntv2di): Likewise.
3346 (sse_rcpv4sf2): Likewise.
3347 (sse_sqrtv4sf2): Likewise.
3348 (sse_rsqrtv4sf2): Likewise.
3349 (<sse>_comi): Likewise.
3350 (<sse>_ucomi): Likewise.
3351 (sse_cvtss2si): Likewise.
3352 (sse_cvtss2si_2): Likewise.
3353 (sse_cvtss2siq): Likewise.
3354 (sse_cvtss2siq_2): Likewise.
3355 (sse_cvttss2si): Likewise.
3356 (sse_cvttss2siq): Likewise.
3357 (sse2_cvtsd2si): Likewise.
3358 (sse2_cvtsd2si_2): Likewise.
3359 (sse2_cvtsd2siq): Likewise.
3360 (sse2_cvtsd2siq_2): Likewise.
3361 (sse2_cvttsd2si): Likewise.
3362 (sse2_cvttsd2siq): Likewise.
3363 (sse2_cvtdq2pd): Likewise.
3364 (*sse2_cvtpd2dq): Likewise.
3365 (*sse2_cvttpd2dq): Likewise.
3366 (*sse2_cvtpd2ps): Likewise.
3367 (sse2_cvtps2pd): Likewise.
3368 (sse3_movshdup): Likewise.
3369 (sse3_movsldup): Likewise.
3370 (sse_storehps): Likewise.
3371 (*sse4_1_extractps): Likewise.
3372 (sse2_storelpd): Likewise.
3373 (vec_dupv2df_sse3): Likewise.
3374 (*vec_concatv2df_sse3): Likewise.
3375 (*sse4_1_pextrb): Likewise.
3376 (*sse4_1_pextrb_memory): Likewise.
3377 (*sse2_pextrw): Likewise.
3378 (*sse4_1_pextrw_memory): Likewise.
3379 (*sse4_1_pextrd): Likewise.
3380 (*sse4_1_pextrq): Likewise.
3381 (sse2_pshufd_1): Likewise.
3382 (sse2_pshuflw_1): Likewise.
3383 (sse2_pshufhw_1): Likewise.
3384 (*sse2_storeq_rex64): Likewise.
3385 (*vec_dupv4si): Likewise.
3386 (<sse>_movmskp<ssemodesuffixf2c>): Likewise.
3387 (sse2_pmovmskb): Likewise.
3388 (*sse2_maskmovdqu): Likewise.
3389 (*sse2_maskmovdqu_rex64): Likewise.
3390 (sse_ldmxcsr): Likewise.
3391 (sse_stmxcsr): Likewise.
3392 (abs<mode>2): Likewise.
3393 (sse4_1_movntdqa): Likewise.
3394 (sse4_1_phminposuw): Likewise.
3395 (sse4_1_extendv8qiv8hi2): Likewise.
3396 (*sse4_1_extendv8qiv8hi2): Likewise.
3397 (sse4_1_extendv4qiv4si2): Likewise.
3398 (*sse4_1_extendv4qiv4si2): Likewise.
3399 (sse4_1_extendv2qiv2di2): Likewise.
3400 (*sse4_1_extendv2qiv2di2): Likewise.
3401 (sse4_1_extendv4hiv4si2): Likewise.
3402 (*sse4_1_extendv4hiv4si2): Likewise.
3403 (sse4_1_extendv2hiv2di2): Likewise.
3404 (*sse4_1_extendv2hiv2di2): Likewise.
3405 (sse4_1_extendv2siv2di2): Likewise.
3406 (*sse4_1_extendv2siv2di2): Likewise.
3407 (sse4_1_zero_extendv8qiv8hi2): Likewise.
3408 (*sse4_1_zero_extendv8qiv8hi2): Likewise.
3409 (sse4_1_zero_extendv4qiv4si2): Likewise.
3410 (*sse4_1_zero_extendv4qiv4si2): Likewise.
3411 (sse4_1_zero_extendv2qiv2di2): Likewise.
3412 (*sse4_1_zero_extendv2qiv2di2): Likewise.
3413 (sse4_1_zero_extendv4hiv4si2): Likewise.
3414 (*sse4_1_zero_extendv4hiv4si2): Likewise.
3415 (sse4_1_zero_extendv2hiv2di2): Likewise.
3416 (*sse4_1_zero_extendv2hiv2di2): Likewise.
3417 (sse4_1_zero_extendv2siv2di2): Likewise.
3418 (*sse4_1_zero_extendv2siv2di2): Likewise.
3419 (sse4_1_ptest): Likewise.
3420 (sse4_1_roundp<ssemodesuffixf2c>): Likewise.
3421 (sse4_2_pcmpestri): Likewise.
3422 (sse4_2_pcmpestrm): Likewise.
3423 (sse4_2_pcmpistri): Likewise.
3424 (sse4_2_pcmpistrm): Likewise.
3425 (aesimc): Likewise.
3426 (aeskeygenassist): Likewise.
3427
3428 2008-08-28 Uros Bizjak <ubizjak@gmail.com>
3429
3430 * config/i386/predicates.md (vzeroall_operation): New.
3431
3432 * config/i386/sse.md (avx_vzeroall): New.
3433 (*avx_vzeroall): Likewise.
3434
3435 2008-08-28 Paul Brook <paul@codesourcery.com>
3436 Mark Shinwell <shinwell@codesourcery.com>
3437 Richard Earnshaw <richard.earnshaw@arm.com>
3438
3439 * config/arm/arm.c (TARGET_MAX_ANCHOR_OFFSET): New.
3440 (TARGET_MIN_ANCHOR_OFFSET): New.
3441 (arm_override_options): Set correct anchor ranges for Thumb-1
3442 and Thumb-2 if required.
3443 (legitimize_pic_address): Handle case involving a TLS symbol
3444 reference with an addend.
3445 (arm_optimization_options): Enable section anchors at -O1 and
3446 above.
3447 * config/arm/arm.h (OPTIMIZATION_OPTIONS): New.
3448 * config/arm/arm-protos.h (arm_optimization_options): New.
3449
3450 2008-08-28 Nick Clifton <nickc@redhat.com>
3451
3452 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Define.
3453 * config/stormy16/stormy16.md (zero_extendqihi2): Fix length
3454 attribute.
3455
3456 * config/v850/v850.h (IRA_COVER_CLASSES): Define.
3457 * config/v850/v850.md (return): Remove frame size restriction.
3458
3459 * config/mcore/mcore.h (IRA_COVER_CLASSES): Define.
3460
3461 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Define.
3462
3463 * config/fr30/fr30.h (IRA_COVER_CLASSES): Define.
3464
3465 * config/m32r/m32r.h (IRA_COVER_CLASSES): Define.
3466
3467 2008-08-28 Paul Brook <paul@codesourcery.com>
3468
3469 * config/arm/vfp11.md: Update license notice.
3470 * config/arm/cortex-r4.md: Ditto.
3471
3472 2008-08-28 Richard Guenther <rguenther@suse.de>
3473
3474 PR tree-optimization/37207
3475 * tree-ssa-ifcombine.c (recognize_single_bit_test): Fix
3476 tuplification bug.
3477
3478 2008-08-28 Dodji Seketeli <dodji@redhat.com>
3479
3480 PR c++/36741
3481 * tree.c (int_fits_type_p): Don't forget unsigned integers
3482 of type sizetype which higher end word equals -1.
3483
3484 2008-08-28 Ira Rosen <irar@il.ibm.com>
3485
3486 * target.h (struct vectorize): Add new target builtin.
3487 * tree-vectorizer.c (destroy_loop_vec_info): Call
3488 vect_free_slp_instance instead of vect_free_slp_node.
3489 * tree-vectorizer.h (enum slp_load_perm_type): New.
3490 (struct _slp_instance): Add new fields.
3491 (SLP_INSTANCE_LOAD_PERMUTATION): New.
3492 (SLP_INSTANCE_LOADS): New.
3493 (vect_free_slp_tree): Remove.
3494 (vect_free_slp_instance): Declare.
3495 (SLP_TREE_LOADS_PERM_TYPE, TARG_VEC_PERMUTE_COST): New.
3496 (vectorizable_load): Add argument.
3497 (vect_transform_slp_perm_load): New.
3498 * tree-vect-analyze.c (vect_analyze_operations): Add an argument to
3499 vectorizable_load.
3500 (vect_get_place_in_interleaving_chain): New function.
3501 (vect_free_slp_tree): Make static.
3502 (vect_free_slp_instance): New function.
3503 (vect_build_slp_tree): Add new arguments. Allow load permutations and
3504 collect the load location in the interleaving chain.
3505 (vect_supported_slp_permutation_p): New function.
3506 (vect_supported_load_permutation_p): Likewise.
3507 (vect_analyze_slp_instance): In case of loads permutation, call
3508 vect_supported_load_permutation_p to check that the permutation is
3509 supported.
3510 * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM): New.
3511 * tree-vect-transform.c (vect_transform_stmt): Add new argument.
3512 (vect_create_mask_and_perm): New function.
3513 (vect_get_mask_element, vect_transform_slp_perm_load): Likewise.
3514 (vectorizable_load): Add an argument. Don't keep the created vectors
3515 statements in the node if permutation is required. Call
3516 vect_transform_slp_perm_load to generate the permutation.
3517 (vect_transform_stmt): Add new argument. Call vectorizable_load with
3518 additional argument.
3519 (vect_schedule_slp_instance): In case of loads permutation, allocate
3520 vectorized statements structure for all the related SLP nodes. Call
3521 vect_transform_stmt with addditional argument.
3522 (vect_transform_loop): Call vect_transform_stmt with correct arguments.
3523 * config/spu/spu.c (spu_builtin_vec_perm): New.
3524 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
3525 * config/spu/spu.h (TARG_VEC_PERMUTE_COS): Define.
3526 * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): New.
3527 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
3528
3529 2008-08-28 Chris Fairles <chris.fairles@gmail.com>
3530
3531 * gthr-posix.h (__gthread_create, __gthread_join, __gthread_detach,
3532 __gthread_mutex_timed_lock, __gthread_recursive_mutex_timed_lock,
3533 __gthread_cond_signal, __gthread_cond_timedwait,
3534 __gthread_cond_timedwait_recursive): New functions.
3535 * gthr-posix.c (pthread_mutex_timedlock, pthread_cond_timedwait):
3536 Likewise.
3537 * gthr.h: Comment on defining __GTHREADS_CXX0X macro in conforming
3538 thread interfaces.
3539
3540 2008-08-28 Richard Guenther <rguenther@suse.de>
3541
3542 PR middle-end/37005
3543 * fold-const.c (maybe_canonicalize_comparison_1): Require
3544 undefined overflow only for canonicalizing A +- CST cmp CST.
3545 Make sure to not generate new constants that are not inside
3546 their TYPE_MIN/MAX_VALUE range.
3547 (maybe_canonicalize_comparison): Remove undefined overflow
3548 checking from here.
3549 (fold_binary): Remove now duplicate folding.
3550
3551 2008-08-27 Paolo Carlini <paolo.carlini@oracle.com>
3552
3553 * c-typeck.c (convert_for_assignment): Adjust WARN_FOR_ASSIGNMENT
3554 use not updated in the last change.
3555
3556 2008-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
3557
3558 * config/sh/sh.h (REG_CLASS_CONTENTS): Drop fr32 from FPUL_REGS.
3559 (IRA_COVER_CLASSES): Add FPUL_REGS.
3560
3561 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3562
3563 PR 37217
3564 * c-common.c (conversion_warning): Check for null operands.
3565
3566 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3567
3568 PR c/31673
3569 * c-decl.c (check_for_loop_decls): Improve error message. Give
3570 hint.
3571
3572 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3573
3574 PR c/37186
3575 * c-typeck.c (WARN_FOR_ASSIGNMENT): Add OPT parameter.
3576 (convert_for_assignment): Pass corrent OPT_W* parameter to
3577 WARN_FOR_ASSIGNMENT.
3578
3579 2008-08-27 Paolo Carlini <paolo.carlini@oracle.com>
3580
3581 PR c++/35321
3582 * c-common.c (fold_offsetof_1): Handle TARGET_EXPR like CALL_EXPR.
3583
3584 2008-08-27 Paul Brook <paul@codesourcery.com>
3585
3586 * config.gcc: Loosen checks for arm uclinux eabi targets.
3587
3588 2008-08-27 Paul Brook <paul@codesourcery.com>
3589
3590 * config/arm/t-arm-coff (LIB1ASMFUNCS): Add missing undescrore on
3591 _clzsi2.
3592 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
3593
3594 2008-08-26 Douglas Gregor <doug.gregor@gmail.com>
3595
3596 * c-common.c (do_switch_warnings): Look through the CONST_DECLs in
3597 the enumerators of an ENUMERAL_TYPE.
3598 * dbxout.c (dbxout_type): Ditto.
3599
3600 2008-08-26 Andrew Pinski <andrew_pinski@playstation.sony.com>
3601
3602 PR rtl-opt/37219
3603 * fwprop.c (fwprop): Check that the loop_father is the outer loop.
3604 (fwprop_addr): Check that the loop_father is not the outer loop.
3605
3606 2008-08-26 Paul Brook <paul@codesourcery.com>
3607
3608 * config/arm/vfp.md: Document fmul{s,d} and fmac{s,d} types.
3609 Remove documentation entry for fmul type.
3610 Use fmuls to annotate single-precision multiplication patterns,
3611 fmuld to annotate double-precision multiplication patterns,
3612 fmacs to annotate single-precision multiply-accumulate patterns
3613 and fmacd to annotate double-precision multiply-accumulate patterns.
3614 * config/arm/vfp11.md: Update reservations accordingly.
3615 * config/arm/arm.md: Note that certain values of the "type"
3616 attribute are documented in vfp.md.
3617 * config/arm/arm1020e.md: Remove out of date duplicate comment.
3618 (v10_cvt): Use new fmul types.
3619
3620 2008-08-26 Paul Brook <paul@codesourcery.com>
3621
3622 * config/arm/vfp.md: Move pipeline description for VFP11 to...
3623 * config/arm/vfp11.md: ...here. New.
3624 * config/arm/arm.md: Include vfp11.md.
3625
3626 2008-08-26 Hans-Peter Nilsson <hp@axis.com>
3627
3628 * opts.c (decode_options) [!IRA_COVER_CLASSES]: Add missing
3629 parameter to inform call.
3630
3631 2008-08-26 Jeff Law <law@redhat.com>
3632
3633 * mn10300.md (movqi, movhi): Split i->d*a case into two cases to
3634 avoid the possibility of getting DATA_OR_ADDRESS_REGS as the
3635 preferred class when copying a constant into a partial word register.
3636
3637 2008-08-26 Ben Elliston <bje@au.ibm.com>
3638
3639 * rtlanal.c: Fix uses of "it's" with "its" where appropriate.
3640 * cp/typeck.c: Likewise.
3641 * cp/tree.c: Likewise.
3642 * gimple-low.c: Likewise.
3643 * jump.c: Likewise.
3644
3645 2008-08-26 Vladimir Makarov <vmakarov@redhat.com>
3646
3647 * ira-build.c, ira-color.c, ira-costs.c, ira.h, ira-lives.c,
3648 ira.c, ira-conflicts.c, ira-emit.c, ira-int.h: New files.
3649
3650 * doc/passes.texi: Describe IRA.
3651
3652 * doc/tm.texi (IRA_COVER_CLASSES,
3653 IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Describe the new macros.
3654
3655 * doc/invoke.texi (ira-max-loops-num): Describe the new parameter.
3656 (-fira, -fira-algorithm, -fira-coalesce, -fno-ira-move-spills,
3657 -fira-propagate-cost, -fno-ira-share-save-slots,
3658 -fno-ira-share-spill-slots, -fira-verbose): Describe new options.
3659
3660 * flags.h (ira_algorithm): New enumeration.
3661 (flag_ira_algorithm, flag_ira_verbose): New external variable
3662 declarations.
3663
3664 * postreload.c (gate_handle_postreload): Don't do post reload
3665 optimizations unless the reload is completed.
3666
3667 * reload.c (push_reload, find_dummy_reload): Use DF_LR_OUT for
3668 IRA.
3669
3670 * tree-pass.h (pass_ira): New external variable declaration.
3671
3672 * reload.h: Add 2008 to the Copyright.
3673
3674 * cfgloopanal.c: Include params.h.
3675 (estimate_reg_pressure_cost): Decrease cost for IRA optimization
3676 mode.
3677
3678 * params.h (IRA_MAX_LOOPS_NUM): New macro.
3679
3680 * toplev.c (ira.h): New include.
3681 (flag_ira_algorithm, flag_ira_verbose): New external variables.
3682 (backend_init_target): Call ira_init.
3683 (backend_init): Call ira_init_once.
3684 (finalize): Call finish_ira_once.
3685
3686 * toplev.h (flag_ira, flag_ira_coalesce, flag_ira_move_spills,
3687 flag_ira_share_save_slots, flag_ira_share_spill_slots): New
3688 external variables.
3689
3690 * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
3691 may_move_out_cost): New external variable declarations.
3692 (move_table): New typedef.
3693
3694 * caller-save.c: Include headers output.h and ira.h.
3695 (no_caller_save_reg_set): New global variable.
3696 (save_slots_num, save_slots): New variables.
3697 (reg_save_code, reg_restore_code, add_stored_regs): Add
3698 prototypes.
3699 (init_caller_save): Set up no_caller_save_reg_set.
3700 (init_save_areas): Reset save_slots_num.
3701 (saved_hard_reg): New structure.
3702 (hard_reg_map, saved_regs_num, all_saved_regs): New variables.
3703 (initiate_saved_hard_regs, new_saved_hard_reg,
3704 finish_saved_hard_regs, saved_hard_reg_compare_func): New
3705 functions.
3706 (setup_save_areas): Add code for sharing stack slots.
3707 (all_blocks): New variable.
3708 (save_call_clobbered_regs): Process pseudo-register too.
3709 (mark_set_regs): Process pseudo-register too.
3710 (insert_one_insn): Put the insn after bb note in a empty basic
3711 block. Add insn check.
3712
3713 * global.c (eliminable_regset): Make it external.
3714 (mark_elimination): Use DF_LR_IN for IRA.
3715 (pseudo_for_reload_consideration_p): New.
3716 (build_insn_chain): Make it external. Don't ignore spilled
3717 pseudos for IRA. Use pseudo_for_reload_consideration_p.
3718 (gate_handle_global_alloc): New function.
3719 (pass_global_alloc): Add the gate function.
3720
3721 * opts.c (decode_options): Set up flag_ira. Print the warning for
3722 -fira.
3723 (common_handle_option): Process -fira-algorithm and -fira-verbose.
3724
3725 * timevar.def (TV_IRA, TV_RELOAD): New passes.
3726
3727 * regmove.c (regmove_optimize): Don't do replacement of output for
3728 IRA.
3729
3730 * hard-reg-set.h (no_caller_save_reg_set, reg_class_subclasses):
3731 New external variable declarations.
3732
3733 * local-alloc.c (update_equiv_regs): Make it external. Return
3734 true if jump label rebuilding should be done. Rescan new_insn for
3735 notes.
3736 (gate_handle_local_alloc): New function.
3737 (pass_local_alloc): Add the gate function.
3738
3739 * alias.c (value_addr_p, stack_addr_p): New functions.
3740 (nonoverlapping_memrefs_p): Use them for IRA.
3741
3742 * common.opt (fira, fira-algorithm, fira-coalesce,
3743 fira-move-spills, fira-share-save-slots, fira-share-spill-slots,
3744 fira-verbose): New options.
3745
3746 * regclass.c (reg_class_subclasses, contains_reg_of_mode,
3747 move_cost, may_move_in_cost, may_move_out_cost): Make the
3748 variables external.
3749 (move_table): Remove typedef.
3750 (init_move_cost): Make it external.
3751 (allocate_reg_info, resize_reg_info, setup_reg_classes): New
3752 functions.
3753
3754 * rtl.h (init_move_cost, allocate_reg_info, resize_reg_info,
3755 setup_reg_classes): New function prototypes.
3756 (eliminable_regset): New external variable declaration.
3757 (build_insn_chain, update_equiv_regs): New function prototypes.
3758
3759 * Makefile.in (IRA_INT_H): New definition.
3760 (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
3761 ira-conflicts.o, ira-color.o, ira-emit.o, and ira-lives.o.
3762 (reload1.o, toplev.o): Add dependence on ira.h.
3763 (cfgloopanal.o): Add PARAMS_H.
3764 (caller-save.o): Add dependence on output.h and ira.h.
3765 (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
3766 ira-emit.o, ira-lives.o): New entries.
3767
3768 * passes.c (pass_ira): New pass.
3769
3770 * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
3771
3772 * reload1.c (ira.h): Include the header.
3773 (changed_allocation_pseudos): New bitmap.
3774 (init_reload): Initiate the bitmap.
3775 (compute_use_by_pseudos): Permits spilled registers in FROM.
3776 (temp_pseudo_reg_arr): New variable.
3777 (reload): Allocate and free temp_pseudo_reg_arr. Sort pseudos for
3778 IRA. Call alter_reg with the additional parameter. Don't clear
3779 spilled_pseudos for IRA. Restore original insn chain for IRA.
3780 Clear changed_allocation_pseudos at the end of reload.
3781 (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
3782 (hard_regno_to_pseudo_regno): New variable.
3783 (count_pseudo): Check spilled pseudos. Set up
3784 hard_regno_to_pseudo_regno.
3785 (count_spilled_pseudo): Check spilled pseudos. Update
3786 hard_regno_to_pseudo_regno.
3787 (find_reg): Use better_spill_reload_regno_p. Check
3788 hard_regno_to_pseudo_regno.
3789 (alter_reg): Set up spilled_pseudos. Add a new parameter. Add
3790 code for IRA.
3791 (eliminate_regs_1): Use additional parameter for alter_reg.
3792 (finish_spills): Set up pseudo_previous_regs only for spilled
3793 pseudos. Call reassign_pseudos once for all spilled pseudos, pass
3794 more arguments. Don't clear live_throughout and dead_or_set for
3795 spilled pseudos. Use additional parameter for alter_reg. Call
3796 mark_allocation_change. Set up changed_allocation_pseudos.
3797 Remove sanity check.
3798 (emit_input_reload_insns, delete_output_reload): Use additional
3799 parameter for alter_reg. Call mark_allocation_change.
3800 (substitute, gen_reload_chain_without_interm_reg_p): New
3801 functions.
3802 (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
3803
3804 * testsuite/gcc.dg/20080410-1.c: New file.
3805
3806 * config/s390/s390.h (IRA_COVER_CLASSES,
3807 IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Define.
3808
3809 * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
3810
3811 * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
3812
3813 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
3814
3815 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
3816
3817 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
3818
3819 * config/alpha/alpha.h (IRA_COVER_CLASSES): Ditto.
3820
3821 2008-08-24 Jeff Law <law@redhat.com>
3822 * ira.c (setup_reg_class_intersect_union): Prefer smallest class
3823 when ignoring unavailable registers.
3824
3825 2008-08-24 Jeff Law <law@redhat.com>
3826 * ira-color.c (coalesced_pseudo_reg_slot_compare): Check
3827 FRAME_GROWS_DOWNWARD and STACK_GROWS_DOWNWARD.
3828 * ira.c (setup_eliminable_regset): Check stack_realign_needed.
3829 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): New macro.
3830
3831 2008-06-03 Steve Chamberlain <steve.chamberlain@gmail.com>
3832 * ira-build.c (allocno_range_compare_func): Stabilize sort.
3833
3834 2008-05-29 Andy Hutchinson <hutchinsonandy@aim.com>
3835 * config/avr/avr.h (IRA_COVER_CLASSES): New macro.
3836 * reload1.c (find_reg): Process registers in register allocation order.
3837
3838 2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
3839 * toplev.c (backend_init_target): Move ira_init call from
3840 here...
3841 (lang_dependent_init_target): ...to here.
3842
3843 2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
3844 * ira.c (setup_class_subset_and_memory_move_costs): Don't
3845 calculate memory move costs for NO_REGS.
3846
3847 2008-05-05 Kaz Kojima <kkojima@gcc.gnu.org>
3848 * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
3849 STACK_REGS is defined.
3850
3851 2008-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
3852 * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
3853
3854 2008-04-04 Bernd Schmidt <bernd.schmidt@analog.com>
3855 * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
3856
3857 2008-04-04 Kaz Kojima <kkojima@gcc.gnu.org>
3858 * config/sh/sh.h (IRA_COVER_CLASSES): Define.
3859 * config/sh/sh.md (movsicc_true+3): Check if emit returns a
3860 barrier.
3861
3862 2008-08-26 Victor Kaplansky <victork@il.ibm.com>
3863 Dorit Nuzman <dorit@il.ibm.com>
3864
3865 * gcc/config/spu/spu.md (vec_extract_evenv4si,
3866 vec_extract_evenv4sf, vec_extract_evenv8hi,
3867 vec_extract_evenv16qi, vec_extract_oddv4si,
3868 vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
3869 vec_interleave_highv4sf, vec_interleave_lowv4sf,
3870 vec_interleave_highv4si, vec_interleave_lowv4si,
3871 vec_interleave_highv8hi, vec_interleave_lowv8hi,
3872 vec_interleave_highv16qi, vec_interleave_lowv16qi,
3873 vec_pack_trunc_v8hi, vec_pack_trunc_v4si): Implement.S
3874
3875 2008-08-25 Janis Johnson <janis187@us.ibm.com>
3876
3877 PR target/36756
3878 * config/rs6000/rs6000.c (optimization_options): Don't default to
3879 section anchors without toplevel reorder.
3880
3881 2008-08-25 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3882
3883 * config/spu/spu_mfcio.h (mfc_begin_critical_section): New function.
3884 (mfc_end_critical_section): Likewise.
3885
3886 2008-08-25 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3887
3888 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Propagate
3889 all type qualifiers from element type to vector type.
3890
3891 2008-08-25 David Daney <ddaney@avtrex.com>
3892
3893 * config/mips/mips.md (immediate_insn): Move up in file, fix
3894 comment typo, reformat.
3895 (fetchop_bit, atomic_hiqi_op memory_barrier,
3896 sync_compare_and_swap<mode>, compare_and_swap_12, sync_add<mode>,
3897 sync_<optab><mode>, sync_<optab>_12, sync_old_<optab><mode>,
3898 sync_old_<optab>_12, sync_new_<optab><mode>, sync_new_<optab>_12,
3899 sync_nand<mode>, sync_nand_12, sync_old_nand<mode>,
3900 sync_old_nand_12, sync_new_nand<mode>, sync_new_nand_12,
3901 sync_sub<mode>, sync_old_add<mode>, sync_old_sub<mode>,
3902 sync_new_add<mode>, sync_new_sub<mode>, sync_<optab><mode>,
3903 sync_old_<optab><mode>, sync_new_<optab><mode>, sync_nand<mode>,
3904 sync_old_nand<mode>, sync_new_nand<mode>,
3905 sync_lock_test_and_set<mode>, sync_lock_test_and_set<mode>,
3906 test_and_set_12): Moved to sync.md.
3907 (sync.md): Include.
3908 * config/mips/sync.md: New file.
3909
3910 2008-08-25 Richard Henderson <rth@redhat.com>
3911
3912 * dwarf2out.c (def_cfa_1): Don't scale by DWARF_CIE_DATA_ALIGNMENT.
3913 (regsave): Likewise.
3914 (lookup_cfa_1): Don't rescale by DWARF_CIE_DATA_ALIGNMENT.
3915 (output_cfi_directive): Likewise.
3916 (div_data_align): New.
3917 (output_cfi): Use it.
3918
3919 2008-08-24 Adam Nemet <anemet@caviumnetworks.com>
3920
3921 * config.gcc (mips64*-*-linux*): Handle mips64octeon*-*-linux*.
3922 * config/mips/mips.h (enum processor_type): Add PROCESSOR_OCTEON.
3923 (TARGET_OCTEON): New macro.
3924 (TARGET_CPU_CPP_BUILTINS): Define __OCTEON__ for Octeon.
3925 (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC): Handle -march=octeon.
3926 (ISA_HAS_POP): New macro.
3927 * config/mips/driver-native.c (host_detect_local_cpu): Handle
3928 Octeon.
3929 * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
3930 Handle Octeon.
3931 * config/mips/mips.md (cpu): Add octeon.
3932 (type): Add pop attribute value.
3933 (popcount<mode>2): New pattern.
3934 * doc/invoke.texi (-march=@var{arch}): Add octeon.
3935
3936 2008-08-24 Jan Hubicka <jh@suse.cz>
3937
3938 * doc/invoke.texi (-fipa-cp-clone): New option.
3939 (-fipa-cp): Update docs.
3940 (--param ipcp-unit-growth):New.
3941 * ipa-cp.c: Include fibheap.h, params.h
3942 (ipcp_initialize_node_lattices): When not cloning, all externally
3943 visible functions are bottom.
3944 (ipcp_need_redirect_p): Accept clones.
3945 (ipcp_insert_stage): Use cost driven heuristics.
3946 (max_count, dead_nodes): New static vars.
3947 (ipcp_need_original_clone_p, ipcp_estimate_cloning_cost,
3948 ipcp_const_param_count): New functions.
3949 * common.opt (ipa-cp-clone): New command line option.
3950 * params.def (ipcp-unit-growth): New.
3951
3952 2008-08-24 Jan Hubicka <jh@suse.cz>
3953
3954 * tree-inline.c (tree_function_versioning): Look harder
3955 for referenced vars.
3956
3957 2008-08-24 Razya Ladelsky <razya@il.ibm.com>
3958
3959 PR tree-optimization/37185
3960 * matrix-reorg.c (transform_access_sites): Update changed stmt.
3961
3962 2008-08-23 Jan Hubicka <jh@suse.cz>
3963
3964 * ipa-cp.c (ipcp_analyze_node): New function.
3965 (ipcp_update_cloned_node): Use it.
3966 (ipcp_init_stage): Likewise.
3967 * ipa-inline.c (function_insertion_hook_holder): New static var.
3968 (analyze_function): Break out from ....
3969 (inline_generate_summary): Here; register insertion hook.
3970 (cgraph_decide_inlining): Remove hook.
3971 (add_new_function): New function.
3972
3973 2008-08-23 Jan Hubicka <jh@suse.cz>
3974
3975 * opts.c (decode_options): Revert accidental change enabling ipa-cp.
3976
3977 2008-08-23 Jan Hubicka <jh@suse.cz>
3978
3979 * ipa-cp.c (constant_val_insert): Remove.
3980 (ipcp_propagate_one_const): Remove.
3981 (ipcp_create_replace_map): Always insert replacements to the map.
3982 (ipcp_insert_stage): Do not try to insert statements by hand.
3983 * tree-inline.c (insert_init_stmt): Break out from ...
3984 (setup_one_parameter): ... here; allow NULL BB pointer.
3985 (tree_function_versioning): Use setup_one_parameter to process
3986 replacement map.
3987
3988 2008-08-23 Jan Hubicka <jh@suse.cz>
3989
3990 * tree.c (decl_address_ip_invariant_p): New function.
3991 * tree.h (decl_address_ip_invariant_p): Declare.
3992 * gimple.c (strip_invariant_refs): Break out from ...
3993 (is_gimple_invariant_address): ... here
3994 (is_gimple_ip_invariant_address): New function.
3995 (is_gimple_ip_invariant): New function.
3996 * gimple.h (is_gimple_ip_invariant_address, is_gimple_ip_invariant):
3997 Declare.
3998
3999 * ipa-cp.c (ipcp_lat_is_const): Remove handling of IPA_CONST_VALUE_REF.
4000 (ipcp_lat_is_insertable): All constants are insertable.
4001 (ipcp_lattice_from_jfunc, ipcp_print_all_lattices): Remove handling of
4002 IPA_CONST_VALUE_REF.
4003 (ipcp_initialize_node_lattices): Propagate all types of operands.
4004 (build_const_val): Do not handle IPA_CONST_VALUE_REF.
4005 (ipcp_create_replace_map): Reformat.
4006 (ipcp_need_redirect_p): Simplify.
4007 (ipcp_insert_stage): Check that argument is used before clonning.
4008 * ipa-prop.c (ipa_print_node_jump_functions): Do not handle
4009 IPA_CONST_REF.
4010 (compute_scalar_jump_functions): Simplify using is_gimple_ip_invariat.
4011 (determine_cst_member_ptr): Keep wrapping ADDR_EXPR of members.
4012 (update_call_notes_after_inlining): Expect ADDR_EXPR in operand.
4013 * ipa-prop.h (jump_func_type): Remove IPA_CONST_REF.
4014 (jump_func_type): Remove IPA_CONST_VALUE_REF.
4015 * tree-inline.c (tree_function_versioning): Add variables referenced by
4016 replacing trees.
4017
4018 2008-08-23 Jan Hubicka <jh@suse.cz>
4019
4020 PR target/37094
4021 * i386.c (standard_80387_constant_p): Use optimize_size.
4022
4023 2008-08-23 Ira Rosen <irar@il.ibm.com>
4024
4025 PR tree-optimization/37161
4026 * tree-vectorizer.h (vect_get_smallest_scalar_type): Declare.
4027 * tree-vect-analyze.c (vect_get_smallest_scalar_type): New function.
4028 (vect_determine_vectorization_factor): Move the scalar type
4029 retrieval to vect_get_smallest_scalar_type.
4030 (vect_build_slp_tree): Call vect_get_smallest_scalar_type to get
4031 scalar type. Remove redundant computation.
4032 * tree-vect-transform.c (vect_get_constant_vectors): Add argument.
4033 (vect_get_slp_defs): Take the type of RHS into account if
4034 necessary by calling vect_get_smallest_scalar_type. Call
4035 vect_get_constant_vectors with additional argument.
4036
4037 2008-08-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4038
4039 PR 35648
4040 * doc/invoke.texi (Wwrite-strings): Clarify description.
4041
4042 2008-08-23 Ira Rosen <irar@il.ibm.com>
4043
4044 PR tree-optimization/37174
4045 * tree-vect-analyze.c (vect_get_and_check_slp_defs): Check that the
4046 def stmt is a part of the loop before accessing its stmt_vec_info.
4047
4048 2008-08-22 Anatoly Sokolov <aesok@post.ru>
4049
4050 PR target/11259
4051 * config/avr/avr.md (UNSPEC_SWAP): New constants.
4052 (*swap): New insn pattern.
4053 (*ashlqi3): Rename from ashlqi3 insn pattern.
4054 (ashlqi3): New expanders.
4055 (*lshrqi3): Rename from lshrqi3 insn pattern.
4056 (lshrqi3): New expanders.
4057 (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, lshrqi3_const4,
4058 lshrqi3_const5, lshrqi3_const6): New splitters.
4059 (andi, ashlqi3_l_const4, ashlqi3_l_const5, ashlqi3_l_const6,
4060 lshrqi3_l_const4, lshrqi3_l_const5, lshrqi3_l_const6): Define
4061 peephole2 patterns.
4062
4063 2008-08-22 Richard Guenther <rguenther@suse.de>
4064
4065 PR tree-optimization/37078
4066 * tree-vrp.c (extract_range_from_unary_expr): Avoid generating
4067 [+INF, +INF] ranges.
4068
4069 2008-08-22 Richard Guenther <rguenther@suse.de>
4070
4071 PR tree-optimization/37143
4072 * tree-vect-transform.c (vect_create_cond_for_align_checks): Build
4073 a conversion statement instead of a copy.
4074
4075 2008-08-22 Uros Bizjak <ubizjak@gmail.com>
4076
4077 PR target/37184
4078 * config/i386/i386.c (ix86_match_ccmode): Handle CCAmode,
4079 CCCmode, CCOmode and CCSmode destination modes.
4080
4081 PR target/37191
4082 * config/i386/mmx.md (*vec_extractv2sf_0): Avoid combining registers
4083 from different units in a single alternative.
4084 (*vec_extractv2sf_1): Ditto.
4085 (*vec_extractv2si_0): Ditto.
4086 (*vec_extractv2si_1): Ditto.
4087 * config/i386/sse.md (sse2_storehpd): Ditto.
4088 (sse2_storelpd): Ditto.
4089 (sse2_loadhpd): Ditto.
4090 (sse2_loadlpd): Ditto.
4091
4092 PR target/37197
4093 * config/i386/i386.md (clzsi2_abm): Fix operand 1 constraints.
4094 (popcountsi2): Ditto.
4095 (clzdi2_abm): Ditto.
4096 (popcountdi2): Ditto.
4097 (clzhi2_abm): Ditto.
4098 (popcounthi2): Ditto.
4099
4100 2008-08-22 Richard Guenther <rguenther@suse.de>
4101
4102 PR middle-end/36548
4103 PR middle-end/37125
4104 * fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only
4105 if the multiplication does not overflow.
4106
4107 2008-08-21 Nathan Sidwell <nathan@codesourcery.com>
4108
4109 * c-ppoutput.c (init_pp_output): Initialize src_line to 1.
4110
4111 2008-08-21 Richard Henderson <rth@redhat.com>
4112
4113 * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove
4114 spurrious comma from test.
4115 * configure: Rebuild.
4116
4117 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4118
4119 PR 30457
4120 * builtins.c (fold_builtin_next_arg): Add warning about undefined
4121 behaviour.
4122
4123 2008-08-21 Aldy Hernandez <aldyh@redhat.com>
4124
4125 * c-tree.h (grokfield): New argument.
4126 * c-decl.c (grokfield): Handle new location argument.
4127 * c-parser.c (c_parser_struct_declaration): Pass location to grokfield.
4128
4129 2008-08-21 Richard Guenther <rguenther@suse.de>
4130
4131 * tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants.
4132
4133 2008-08-21 Jan Hubicka <jh@suse.cz>
4134
4135 * cgraph.c (first_cgraph_function_insertion_hook): New variable.
4136 (cgraph_add_function_insertion_hook,
4137 cgraph_remove_function_insertion_hook,
4138 cgraph_call_function_insertion_hooks): New functions.
4139 * cgraph.h (cgraph_add_function_insertion_hook,
4140 cgraph_remove_function_insertion_hook,
4141 cgraph_call_function_insertion_hooks): Declare.
4142 * ipa-reference.c (function_insertion_hook_holder): New variable.
4143 (check_operand, look_for_address_of): When checking late, do not care
4144 about module bitmaps.
4145 (add_new_function): New function.
4146 (generate_summary): Register hooks; zero module bitmaps.
4147 (propagate): Unregister hooks.
4148 * ipa-pure-const.c (function_insertion_hook_holder): New variable.
4149 (add_new_function): New function.
4150 (generate_summary): Register hook.
4151 (propagate): Remove hook.
4152
4153 * ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
4154
4155 * tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
4156 * ipa-cp.c (ipcp_update_cloned_node): New function.
4157 (build_const_val): Handle functions correctly; bring type logic
4158 into sync with tree-inline.c
4159 (ipcp_init_stage): Take care of computing stuff needed by
4160 indirect inlining; update clones.
4161 (ipcp_generate_summary): Break out of ipcp_driver.
4162 (ipcp_driver): Do only execution and transformation.
4163 (pass_ipa_cp): Make IPA_PASS.
4164 * tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
4165 offset to address.
4166 * ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
4167 ipcp, some info is already available.
4168 * ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
4169 * tree-inline.c (remap_ssa_name): Unshare expression.
4170
4171 2008-08-21 Richard Guenther <rguenther@suse.de>
4172
4173 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
4174 a PHI ask VN if it is already available.
4175 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
4176 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
4177
4178 2008-08-21 Richard Guenther <rguenther@suse.de>
4179
4180 PR middle-end/36817
4181 * tree-chrec.c (chrec_apply): Always call chrec_fold_plus which
4182 makes sure to produce a result of the correct type.
4183
4184 2008-08-21 Jan Hubicka <jh@suse.cz>
4185 Backport from LTO branch:
4186
4187 2008-05-05 Kenneth Zadeck <zadeck@naturalbridge.com>
4188 Jan Hubicka <jh@suse.cz>
4189
4190 * ipa-pure-const.c
4191 (init_state, finish_state, set_function_state, generate_summary):
4192 New functions.
4193 (scan_stmt): Renamed from scan_function. Changed to keep state in
4194 local static vars rather than cgraph aux field.
4195 (propagate): Renamed from static_execute. Changed to keep state in
4196 local static vars rather than cgraph aux field.
4197 (pass_ipa_pure_const): Changed from SIMPLE_IPA_PASS to IPA_PASS.
4198 * tree-pass.h (pass_ipa_pure_const): Turn into IPA_PASS.
4199
4200 2008-07-15 Kenneth Zadeck <zadeck@naturalbridge.com>
4201
4202 * tree-pass.h (pass_ipa_reference): Make into ipa_opt_pass.
4203 * ipa-reference.c (init_function_info, generate_summary,
4204 propagate): New functions.
4205 (analyze_function): Call init_function_info.
4206 (static_execute): Stripped into generate_summary and propagate.
4207 (pass_ipa_reference): Made into ipa_opt_pass.
4208
4209 2008-08-21 Richard Guenther <rguenther@suse.de>
4210
4211 PR tree-optimization/37181
4212 * tree-vrp.c (extract_range_from_binary_expr): Check for NULL
4213 folding result.
4214 (extract_range_from_unary_expr): Likewise.
4215
4216 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4217
4218 * diagnostic.c (pedwarn_at): Rename as pedwarn.
4219 (pedwarn): Delete.
4220 * toplev.h (pedwarn_at): Likewise.
4221 * builtins.c: Update all calls to pedwarn.
4222 * c-lex.c: Likewise.
4223 * toplev.c: Likewise.
4224 * c-tree.h: Likewise.
4225 * c-decl.c: Likewise.
4226 * c-errors.c: Likewise.
4227 * c-typeck.c: Likewise.
4228 * c-common.c: Likewise.
4229 * c-parser.c: Likewise.
4230
4231 2008-08-20 Joseph Myers <joseph@codesourcery.com>
4232
4233 PR target/31070
4234 * config/sparc/sparc.c (function_arg_slotno): Handle structure
4235 with MODE_VECTOR_INT mode.
4236
4237 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4238
4239 PR middle-end/179
4240 * tree-ssa.c (warn_uninit): Do not warn for variables that can be
4241 initialized outside the current module.
4242 (warn_uninitialized_var): Ignore left-hand side when walking the
4243 trees. Ignore address expressions. Examine VUSE operands in gimple
4244 statements with a variable declaration on the right-hand side.
4245
4246 2008-08-20 Richard Sandiford <rdsandiford@googlemail.com>
4247
4248 PR bootstrap/37155
4249 * rtlanal.c (subreg_offset_representable_p): Revert last change.
4250
4251 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4252
4253 PR 35701
4254 * c-common.c (conversion_warning): Do not warn if applying bit-and
4255 operator to unsigned constant that fits in the target type.
4256
4257 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4258
4259 PR c++/35602
4260 * c-common.c (conversion_warning): Do not warn for artificial
4261 expressions.
4262
4263 2008-08-20 Richard Guenther <rguenther@suse.de>
4264
4265 * tree-vrp.c (op_with_constant_singleton_value_range): New function.
4266 (extract_range_from_binary_expr): Fall back to constant propagation.
4267 (extract_range_from_unary_expr): Likewise.
4268
4269 2008-08-20 Richard Guenther <rguenther@suse.de>
4270
4271 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Do not mess
4272 with TREE_THIS_VOLATILE on shared nodes.
4273 (fold_stmt_r): Likewise.
4274
4275 2008-08-20 Jakub Jelinek <jakub@redhat.com>
4276
4277 PR c/37171
4278 * c-parser.c (c_parser_attributes): For keywords use canonical
4279 spelling for attr_name.
4280
4281 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4282
4283 * value-prof.c (check_counter): Revert wrong call to error.
4284
4285 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4286
4287 * profile.c: Update calls to inform.
4288 * value-prof.c: Update calls to inform.
4289
4290 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4291
4292 * diagnostic.c (inform): Add an explicit location_t parameter.
4293 * toplev.h (inform): Update declaration.
4294 * builtins.c: Update all calls to inform.
4295 * c-common.c: Likewise.
4296 * c-decl.c: Likewise.
4297 * c-opts.c: Likewise.
4298 * c-pch.c: Likewise.
4299 * c-pragma.c: Likewise.
4300 * c-typeck.c: Likewise.
4301 * coverage.c: Likewise.
4302 * opts.c: Likewise.
4303 * toplev.c: Likewise.
4304 * tree-cfg.c: Likewise.
4305 * tree-ssa.c: Likewise.
4306
4307 2008-08-20 H.J. Lu <hongjiu.lu@intel.com>
4308
4309 PR target/37169
4310 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): In
4311 V2DI mode, for SSE4.1, use movq instead of vector set if the
4312 second element is zero and inter-unit moves are OK.
4313
4314 2008-08-20 Richard Guenther <rguenther@suse.de>
4315
4316 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): More
4317 properly handle conversion/copy chains after tuplification.
4318
4319 2008-08-20 Richard Guenther <rguenther@suse.de>
4320
4321 * passes.c (init_optimization_passes): Move the second
4322 forwprop pass before alias computation. Remove the second
4323 DCE pass. Remove the first dominator and phi copy/const
4324 prop passes.
4325
4326 2008-08-20 Nick Clifton <nickc@redhat.com>
4327
4328 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler
4329 support of this feature. Do not assume that a sufficiently new
4330 assembler will support the feature regardless of the target type.
4331 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
4332 * configure: Regenerate.
4333
4334 2008-08-20 Richard Guenther <rguenther@suse.de>
4335
4336 * tree-vrp.c (found_in_subgraph): Remove.
4337 (live): New global static.
4338 (live_on_edge): New function.
4339 (blocks_visited): Remove.
4340 (register_edge_assert_for_2): Use live_on_edge.
4341 (find_conditional_asserts): Remove code dealing with
4342 found_in_subgraph. Do not walk the CFG.
4343 (find_switch_asserts): Likewise.
4344 (find_assert_locations_1): Renamed from find_assert_locations.
4345 Move finding assert locations for conditional and switch
4346 statements first. Update live bitmap. Do not walk the CFG.
4347 (find_assert_locations): New function.
4348 (insert_range_assertions): Remove entry of CFG walk.
4349 Adjust call to find_assert_locations.
4350 * tree-ssa-pre.c (do_regular_insertion): Ignore critical edges
4351 that only can appear because of fake exit edges but assert we
4352 never try to insert on those.
4353 (fini_pre): Do not remove fake exit edges here...
4354 (execute_pre): ...but here, before committing edge inserts.
4355
4356 2008-08-19 Richard Guenther <rguenther@suse.de>
4357
4358 * passes.c (init_optimization_passes): Exchange store-ccp
4359 with a ccp pass.
4360
4361 2008-08-19 Rafael Espíndola <espindola@google.com>
4362
4363 * varasm.c (weak_decls): Move earlier in the file.
4364 (assemble_external): Add weak decls to the weak_decls list.
4365 (declare_weak): Don't add decls to the weak_decls list.
4366
4367 2008-08-19 H.J. Lu <hongjiu.lu@intel.com>
4368
4369 PR target/37157
4370 * config/i386/sse.md (sse2_punpckhqdq, sse2_punpcklqdq): Moved
4371 before (sse2_shufpd_<mode>).
4372
4373 2008-08-19 Jakub Jelinek <jakub@redhat.com>
4374
4375 PR debug/37156
4376 * pretty-print.c (pp_base_format): Deal with recursive BLOCK trees.
4377 * tree.c (block_nonartificial_location): Likewise.
4378
4379 2008-08-19 Richard Guenther <rguenther@suse.de>
4380
4381 PR tree-optimization/35972
4382 PR tree-optimization/23094
4383 * tree-ssa-sccvn.h (vn_reference_lookup_pieces): Add maywalk
4384 parameter.
4385 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
4386 handle MISALIGNED_INDIRECT_REF.
4387 (get_ref_from_reference_ops): New helper.
4388 (vn_reference_lookup_pieces): Walk the use-def chain using the
4389 alias-oracle if requested.
4390 * tree-ssa-pre.c (phi_translate_1): Do reference lookup with
4391 walking the use-def chain.
4392 (compute_avail): But not here.
4393 (create_component_ref_by_pieces_1): Properly handle
4394 MISALIGNED_INDIRECT_REF.
4395 (do_regular_insertion): Handle fully redundant
4396 expressions after PHI-translation also for SSA_NAME values, not
4397 only constants. Correctly use edoubleprime for that.
4398
4399 2008-08-19 Ira Rosen <irar@il.ibm.com>
4400
4401 * tree-vectorizer.c (supportable_widening_operation): Support
4402 multi-step conversion, return the number of steps in such conversion
4403 and the required intermediate types.
4404 (supportable_narrowing_operation): Likewise.
4405 * tree-vectorizer.h (vect_pow2): New function.
4406 (supportable_widening_operation): Change argument types.
4407 (supportable_narrowing_operation): Likewise.
4408 (vectorizable_type_promotion): Add an argument.
4409 (vectorizable_type_demotion): Likewise.
4410 * tree-vect-analyze.c (vect_analyze_operations): Call
4411 vectorizable_type_promotion and vectorizable_type_demotion with
4412 additional argument.
4413 (vect_get_and_check_slp_defs): Detect patterns.
4414 (vect_build_slp_tree): Add an argument, don't fail in case of multiple
4415 types.
4416 (vect_analyze_slp_instance): Don't fail in case of multiple types. Call
4417 vect_build_slp_tree with correct arguments. Calculate unrolling factor
4418 according to the smallest type in the loop.
4419 (vect_detect_hybrid_slp_stmts): Include statements from patterns.
4420 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Call
4421 supportable_widening_operation with correct arguments.
4422 * tree-vect-transform.c (vect_get_slp_defs): Allocate output vector
4423 operands lists according to the number of vector statements in left
4424 or right node, if exists.
4425 (vect_gen_widened_results_half): Remove unused argument.
4426 (vectorizable_conversion): Call supportable_widening_operation,
4427 supportable_narrowing_operation, and vect_gen_widened_results_half
4428 with correct arguments.
4429 (vectorizable_assignment): Change documentation, support multiple
4430 types in SLP.
4431 (vectorizable_operation): Likewise.
4432 (vect_get_loop_based_defs): New function.
4433 (vect_create_vectorized_demotion_stmts): Likewise.
4434 (vectorizable_type_demotion): Support loop-aware SLP and general
4435 multi-step conversion. Call vect_get_loop_based_defs and
4436 vect_create_vectorized_demotion_stmts for transformation.
4437 (vect_create_vectorized_promotion_stmts): New function.
4438 (vectorizable_type_promotion): Support loop-aware SLP and general
4439 multi-step conversion. Call vect_create_vectorized_promotion_stmts
4440 for transformation.
4441 (vectorizable_store): Change documentation, support multiple
4442 types in SLP.
4443 (vectorizable_load): Likewise.
4444 (vect_transform_stmt): Pass SLP_NODE to
4445 vectorizable_type_promotion and vectorizable_type_demotion.
4446 (vect_schedule_slp_instance): Move here the calculation of number
4447 of vectorized statements for each node from...
4448 (vect_schedule_slp): ... here.
4449 (vect_transform_loop): Call vect_schedule_slp without the last
4450 argument.
4451
4452 2008-08-19 Dorit Nuzman <dorit@il.ibm.com>
4453
4454 PR bootstrap/37152
4455 * tree-vect-transform.c (vect_create_epilog_for_reduction): Change =
4456 to == in assert statement.
4457 (vectorizable_reduction): Fix typo.
4458
4459 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
4460
4461 PR bootstrap/37153
4462 * value-prof.c (check_counter): Dereference pointer to overall
4463 count when printing it.
4464
4465 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
4466
4467 * profile.h: Really add it.
4468
4469 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
4470
4471 * mcf.c: Really add it.
4472
4473 2008-08-18 Paul Yuan <yingbo.com@gmail.com>
4474 Vinodha Ramasamy <vinodha@google.com>
4475
4476 * cgraph.c (cgraph_edge): Handle inconsistent counts when setting
4477 count_scale.
4478 * value-prof.c (check_counter): Fix the counter if
4479 flag_profile_correction is true.
4480 (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
4481 tree_mod_subtract_transform):
4482 Follow check_counter parameter change.
4483 * common.opt (fprofile-correction): New option.
4484 * mcf.c: New file.
4485 * profile.h: Likewise.
4486 * profile.c (edge_info, EDGE_INFO): Moved to new file profile.h.
4487 (sum_edge_counts, is_edge_inconsistent, correct_negative_edge_counts,
4488 is_inconsistent, set_bb_counts, read_profile_edge_counts): New
4489 functions.
4490 (compute_branch_probabilities): Refactored. Invokes mcf_smooth_cfg if
4491 flag_profile_correction is set.
4492
4493 2008-08-18 Richard Sandiford <rdsandiford@googlemail.com>
4494
4495 * rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.
4496
4497 2008-08-18 Tomas Bily <tbily@suse.cz>
4498
4499 * tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P.
4500 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Use
4501 CONVERT_EXPR_P.
4502 * tree-data-ref.c (split_constant_offset_1): Likewise.
4503 * tree-inline.c (estimate_operator_cost): Use CASE_CONVERT.
4504 * tree-sra.c (sra_walk_expr): Likewise.
4505 * matrix-reorg.c (ssa_accessed_in_assign_rhs): Likewise.
4506 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
4507 * gimple.h (gimple_assign_cast_p): Use CONVERT_EXPR_CODE_P.
4508 * tree-ssa-structalias.c (find_func_aliases, find_func_aliases):
4509 Likewise.
4510 * gimple.c (gimple_assign_unary_nop_p): Likewise.
4511 * tree-vect-transform.c (vectorizable_type_demotion)
4512 (vectorizable_type_promotion): Likewise.
4513 * tree-inline.c (expand_call_inline):
4514 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
4515 (forward_propagate_addr_expr_1, forward_propagate_comparison)
4516 (tree_ssa_forward_propagate_single_use_vars): Likewise.
4517 * expr.c (expand_expr_real_1): Likewise.
4518 * tree-ssa-dom.c (hashable_expr_equal_p, iterative_hash_hashable_expr)
4519 (gimple_assign_unary_useless_conversion_p): Likewise.
4520 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
4521 * tree-ssa-ccp.c (ccp_fold, fold_gimple_assign): Likewise.
4522 * fold-const.c (fold_unary): Likewise.
4523 * tree.h (CONVERT_EXPR_P): Likewise.
4524 * tree.c (simple_cst_equal, iterative_hash_expr): Likewise.
4525 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
4526 * tree-vrp.c:
4527 (register_edge_assert_for_2, extract_range_from_unary_expr)
4528 (register_edge_assert_for_1): Likewise.
4529
4530 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4531
4532 * real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
4533 dconst_third_ptr, dconst_sqrt2_ptr): Declare.
4534 (enum real_value_const): Delete.
4535 (get_real_const): Delete.
4536 * real.c (get_real_const): Delete.
4537 (dconst_e_ptr): Define.
4538 (dconst_third_ptr): Define.
4539 (dconst_sqrt2_ptr): Define.
4540 * builtins.c: Update all callers.
4541
4542 2008-08-18 Richard Guenther <rguenther@suse.de>
4543
4544 * tree-ssa-reassoc.c (reassociate_bb): Properly reset the
4545 statement iterator after statement removal.
4546
4547 2008-08-18 Andreas Tobler <a.tobler@schweiz.org>
4548
4549 * config/rs6000/driver-rs6000.c (detect_caches_freebsd): New function.
4550 (detect_processor_freebsd): Likewise.
4551 (host_detect_local_cpu): Call newly added functions for FreeBSD.
4552
4553 2008-08-18 Richard Guenther <rguenther@suse.de>
4554
4555 * tree-cfg.c (verify_types_in_gimple_assign): Verify copies
4556 and loads have the correct types.
4557
4558 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4559
4560 PR cpp/7263
4561 * c-opts.c (cpp_opts): Remove static.
4562 * c-parser.c (cpp_opts): Declare it extern.
4563 (disable_extension_diagnostics): Handle cpp options.
4564 (enable_extension_diagnostics): Likewise.
4565
4566 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4567
4568 * diagnostics.c (permerror_at): Rename as permerror.
4569 (permerror): Delete.
4570 * toplev.h: Likewise.
4571
4572 2008-08-18 Richard Guenther <rguenther@suse.de>
4573
4574 * passes.c (init_optimization_passes): Remove cleanup_cfg1,
4575 sdse1 and addressables2 passes. Replace dce1 with cddce1.
4576 Move call_cdce before build_alias. Move copyrename2,
4577 cunrolli and ccp2 beafore build_alias. Re-add addressable2
4578 right after final inlining.
4579 * tree-cfg.c (build_gimple_cfg): Do not dump function here.
4580 (pass_build_cfg): But instead via TODO_dump_func.
4581
4582 2008-08-18 Richard Guenther <rguenther@suse.de>
4583
4584 * tree-sra.c (generate_element_init_1): Deal with NULL constructor
4585 element index.
4586 (scalarize_init): If we failed to generate some initializers
4587 do not generate zeros for not instantiated members. Instead
4588 rely on the copy out.
4589 * tree-ssa-operands.c (get_addr_dereference_operands): Warn
4590 about missing flow-sensitive alias info only if we have
4591 aliases computed.
4592
4593 2008-08-17 Nick Clifton <nickc@redhat.com>
4594
4595 * doc/extend.texi (Function Attributes): Fix typo in description
4596 if hot function attribute.
4597
4598 2008-08-17 Daniel Jacobowitz <dan@codesourcery.com>
4599 Richard Sandiford <rdsandiford@googlemail.com>
4600
4601 * doc/install.texi (--with-mips-plt): Document.
4602 * doc/invoke.texi (-mplt, -mno-plt): Document.
4603 * config.gcc (mips*-*-*): Add mips-plt to supported_defaults
4604 and handle ${with_mips_plt}.
4605 * config/mips/mips.opt (mplt): New option.
4606 * config/mips/mips.h (TARGET_ABICALLS_PIC0): New macro.
4607 (TARGET_ABICALLS_PIC2): Likewise.
4608 (TARGET_GPWORD): Return false for TARGET_ABSOLUTE_ABICALLS.
4609 (OPTION_DEFAULT_SPECS): Add a mips-plt entry.
4610 (ASM_SPEC): Use !mabi=* instead of !mabi*.
4611 (MIPS_CALL): Use TARGET_ABICALLS_PIC2 instead of TARGET_ABICALLS
4612 to decide whether to output ".option picX" directives.
4613 * config/mips/linux.h (SUBTARGET_ASM_SPEC): Remove -mabi=64 handling.
4614 Pass -call_nonpic rather than -KPIC for -mplt.
4615 (BASE_DRIVER_SELF_SPECS): Remove -mplt if -mno-shared is not present
4616 on the command line. Also remove it when -mabi=64 is used without
4617 -msym32.
4618 * config/mips/linux64.h (SUBTARGET_ASM_SPEC): Delete.
4619 * config/mips/mips.c (mips_use_pic_fn_addr_reg_p): Handle
4620 TARGET_ABICALLS_PIC0.
4621 (mips_classify_symbol): Use TARGET_ABICALLS_PIC2 instead of
4622 TARGET_ABICALLS.
4623 (mips16_build_function_stub): Only output ".option pic" directives
4624 and PIC stubs if TARGET_ABICALLS_PIC2. Call through $25 instead of $1.
4625 (mips16_build_call_stub): Fix comment and remove redundant
4626 ".set at"/"set .noat" directives.
4627 (mips_function_rodata_section): Use the default behaviour for
4628 TARGET_ABSOLUTE_ABICALLS.
4629 (mips_file_start): Emit ".option pic0" for TARGET_ABICALLS_PIC0.
4630 (mips_global_pointer): Handle TARGET_ABICALLS_PIC0.
4631 (mips_restore_gp): Do nothing if the current function doesn't use
4632 a global pointer.
4633 (mips_expand_prologue): Only save $gp if the current function uses it.
4634 Use a normal move for TARGET_ABICALLS_PIC0.
4635 (mips_override_options): Only set flag_pic if TARGET_ABICALLS_PIC2.
4636
4637 2008-08-17 Richard Sandiford <rdsandiford@googlemail.com>
4638
4639 * config/mips/mips.c (mips_save_reg_p): Don't short-circuit rest
4640 of function when handling GLOBAL_POINTER_REGNUM.
4641
4642 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
4643
4644 PR ada/20548
4645 * common.opt (-fstack-check): Do not declare the variable here.
4646 (-fstack-check=): New option variant.
4647 * doc/invoke.texi (Code Gen Options): Document it.
4648 * expr.h (STACK_OLD_CHECK_PROTECT): New macro.
4649 (STACK_CHECK_PROTECT): Bump to 3 pages if DWARF-2 EH is used.
4650 (STACK_CHECK_STATIC_BUILTIN): New macro.
4651 * doc/tm.texi (Stack Checking): Document STACK_CHECK_STATIC_BUILTIN.
4652 * opts.c: Include expr.h.
4653 (common_handle_option) <OPT_fold_stack_check_>: New case.
4654 <OPT_fstack_check>: Likewise.
4655 * calls.c (initialize_argument_information): Use TYPE_SIZE_UNIT
4656 consistently in the test for variable-sized types. Adjust for
4657 new behaviour of flag_stack_check.
4658 * explow.c: Include except.h.
4659 (allocate_dynamic_stack_space): Do not take into account
4660 STACK_CHECK_MAX_FRAME_SIZE for static builtin stack checking.
4661 * function.c (gimplify_parameters): Use DECL_SIZE_UNIT in the test
4662 for variable-sized parameters. Treat all parameters whose size is
4663 greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized if generic
4664 stack checking is enabled.
4665 * gimplify.c (gimplify_decl_expr): Treat non-static objects whose
4666 size is greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized
4667 if generic stack checking is enabled.
4668 (expand_function_end): Adjust for new behaviour of flag_stack_check.
4669 * reload1.c (reload): Likewise.
4670 * stmt.c (expand_decl): Assert that all automatic variables have
4671 fixed size at this point and remove dead code.
4672 * flags.h (stack_check_type): New enumeration type.
4673 (flag_stack_check): Declare.
4674 * toplev.c (flag_stack_check): New global variable.
4675 * Makefile.in (opts.o): Add dependency on EXPR_H.
4676 (explow.o): Add dependency on except.h.
4677
4678 2008-08-16 Andy Hutchinson <hutchinsonandy@aim.com>
4679
4680 * config/avr/avr.c (avr_override_options): Reduce value of
4681 PARAM_INLINE_CALL_COST.
4682
4683 2008-08-15 Eric Botcazou <ebotcazou@adacore.com>
4684
4685 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: When converting
4686 to BLKmode, try to fetch an inner memory reference. Use 'mode' in
4687 lieu of TYPE_MODE (type) throughout.
4688
4689 2008-08-15 Joseph Myers <joseph@codesourcery.com>
4690
4691 * config/arm/arm.c (add_minipool_backward_ref): Check for
4692 8-byte-aligned entries in second case of forcing insertion after a
4693 particular entry. Change third case to avoid inserting
4694 non-8-byte-aligned entries before 8-byte-aligned ones.
4695
4696 2008-08-15 Richard Guenther <rguenther@suse.de>
4697
4698 * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not
4699 strip components for unknown size accesses.
4700
4701 2008-08-15 Wolfgang Gellerich <gellerich@de.ibm.com>
4702
4703 * config/s390/2097.md New file.
4704 * config/s390/s390.md ("z10prop" attribute): Define none,
4705 z10_super, z10_super_E1, z10_super_A1, z10_super_c,
4706 z10_super_c_E1, z10_fwd, z10_fwd_A1, z10_fwd_A3, z10_fwd_E1,
4707 z10_rec, z10_fr, z10_fr_A3, z10_fr_E1, z10_c, and z10_cobra as
4708 possible values and apply them to insns as appropriate.
4709 ("type" attribute): Removed itof and added ftrunctf,ftruncdf,
4710 ftruncsd, ftruncdd, itoftf, itofdf, itofsf, itofdd, itoftd,
4711 fdivdd, fdivtd, floaddd, floadsd, fmuldd, fmultd, fsimpdd,
4712 fsimpsd, fsimptd, fstoredd, fstoresd, ftoidfp as possible values.
4713 ("bfp" mode attribute): Removed. Every occurence replaced
4714 with <mode>.
4715 * config/s390/s390.c (struct "z10_cost"): Updated entries.
4716 * config/s390/2084.md (insn_reservation "x_itof"): Updated
4717 type attribute.
4718
4719 2008-08-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4720
4721 PR c/28152
4722 * c-parser.c (c_lex_one_token): Do not store the canonical spelling
4723 for keywords.
4724
4725 2008-08-14 Dorit Nuzman <dorit@il.ibm.com>
4726
4727 * tree-vect-transform.c (vect_create_epilog_for_reduction): Takes an
4728 additional argument. Support reduction when duplication is needed due
4729 to data-types of different sizes in the loop.
4730 (get_initial_def_for_induction): Fix printout.
4731 (vect_get_vec_def_for_stmt_copy): Support case where the
4732 vec_stmt_for_operand is a phi node.
4733 (vectorizable_reduction): Support reduction when duplication is needed
4734 due to data-types of different sizes in the loop.
4735 (vectorizable_call): Remove restriction to not vectorize in case we
4736 have data-types of different sizes in the loop.
4737 (vectorizable_conversion): Likewise.
4738 (vectorizable_operation): Likewise.
4739 (vectorizable_type_demotion): Likewise.
4740 (vectorizable_type_promotion): Likewise.
4741 (vectorizable_induction): Add restriction to not vectorize in case
4742 we have data-types of different sizes in the loop.
4743
4744 2008-08-14 Christophe Saout <christophe@saout.de>
4745 Uros Bizjak <ubizjak@gmail.com>
4746
4747 PR target/37101
4748 * config/i386/sse.md (vec_concatv2di): Remove movlps alternative.
4749 (*vec_concatv2di_rex64_sse4_1): Ditto.
4750 (*vec_concatv2di_rex64_sse): Ditto.
4751
4752 2008-08-14 Jakub Jelinek <jakub@redhat.com>
4753
4754 PR middle-end/37103
4755 * fold-const.c (fold_widened_comparison): Do not allow
4756 sign changes that change the result even if shorter type
4757 is wider than arg1_unw's type.
4758
4759 2008-08-13 Kazu Hirata <kazu@codesourcery.com>
4760
4761 * gcc.dg/arm-g2.c, gcc.dg/arm-mmx-1.c, gcc.dg/arm-scd42-2.c:
4762 Skip if the multilib testing specifies -march that does not
4763 agree with the one specified in the testcase.
4764
4765 2008-08-13 Joseph Myers <joseph@codesourcery.com>
4766
4767 * config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
4768 zero extend SImode values being converted to TFmode before passing
4769 to libcalls.
4770
4771 2008-08-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4772
4773 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
4774 __PPU__ when targeting the Cell/B.E. PPU processor.
4775
4776 2008-08-13 Eric Botcazou <ebotcazou@adacore.com>
4777
4778 * gimple.h (gimple_call_set_chain): Accept SSA variables.
4779 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <CALL_EXPR>:
4780 Rematerialize the static chain, if any.
4781 * tree-ssa-sccvn.c (copy_reference_ops_from_call): Also copy the
4782 static chain.
4783
4784 2008-08-13 H.J. Lu <hongjiu.lu@intel.com>
4785
4786 * dwarf2out.c (dwarf_stack_op_name): Remove prototype.
4787 (new_loc_descr): Likewise.
4788 (add_loc_descr): Likewise.
4789 (size_of_loc_descr): Likewise.
4790 (size_of_locs): Likewise.
4791 (output_loc_operands): Likewise.
4792 (output_loc_sequence): Likewise.
4793 (new_reg_loc_descr): New.
4794 (build_cfa_loc): Use it.
4795 (build_cfa_aligned_loc): Likewise.
4796 (one_reg_loc_descriptor): Likewise.
4797 (based_loc_descr): Likewise.
4798
4799 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4800
4801 PR 30551
4802 * doc/invoke.texi (Wmain): Update.
4803 * c-decl.c (start_decl): warn_main is only 0 or 1.
4804 (start_function): Likewise. Fix formatting.
4805 (finish_function): Delete redundant warning.
4806 * c.opt (Wmain): Add Var(warn_main) and Init(-1).
4807 * c-opts (c_common_handle_option): -Wall only has effect if
4808 warn_main is uninitialized. OPT_Wmain is automatically
4809 handled. -pedantic also enables Wmain.
4810 (c_common_post_options): Handle all logic for Wmain here.
4811 * c-common.c (warn_main): Delete.
4812 (check_main_parameter_types): Make pedwarns conditional on OPT_Wmain.
4813 * c-common.h (warn_main): Delete.
4814
4815 2008-08-13 H.J. Lu <hongjiu.lu@intel.com>
4816
4817 PR middle-end/36701
4818 * expr.c (emit_group_store): Allocate stack temp with the
4819 largest alignment when copying from register to stack.
4820
4821 2008-08-13 Richard Guenther <rguenther@suse.de>
4822
4823 * tree.h (maybe_fold_offset_to_address): Declare.
4824 * tree-ssa-ccp.c (surely_varying_stmt_p): Fix typo in last commit.
4825 (ccp_fold): Handle pointer conversions the same as fold_stmt.
4826 Likewise for POINTER_PLUS_EXPR.
4827 (maybe_fold_offset_to_reference): Enable disabled code.
4828 (maybe_fold_offset_to_address): New function.
4829 (fold_stmt_r): Use it.
4830 (fold_gimple_assign): Likewise.
4831 * gimplify.c (gimplify_conversion): Use maybe_fold_offset_to_address.
4832 (gimplify_expr): Likewise.
4833
4834 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4835
4836 * toplev.h (pedwarn_at): Fix declaration.
4837
4838 2008-08-13 Joseph Myers <joseph@codesourcery.com>
4839
4840 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
4841 LINK_SPEC): Use %R in -Y P argument.
4842
4843 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4844
4845 PR c/15236
4846 * diagnostic.c (pedwarn_at): New.
4847 * toplev.h (pedwarn_at): Declare.
4848 * c-tree.h (build_enumerator): Update declaration.
4849 * c-decl.c (finish_enum): Update comment.
4850 (build_enumerator): Take a location parameter. Give a pedwarn but do
4851 not perform any conversion.
4852 * c-parser.c (c_parser_enum_specifier): Set correct location for
4853 enumerator.
4854
4855 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4856
4857 PR 35635
4858 * c-common.c (conversion_warning): Use a switch. Ignore boolean
4859 expressions except for conversions to signed:1 bitfields. Handle
4860 COND_EXPR with constant operands.
4861
4862 2008-08-13 Richard Guenther <rguenther@suse.de>
4863
4864 PR tree-optimization/15255
4865 * tree-ssa-reassoc.c (linearize_expr_tree): Declare.
4866 (struct oecount_s): New struct and VEC types.
4867 (cvec): New global.
4868 (oecount_hash): New function.
4869 (oecount_eq): Likewise.
4870 (oecount_cmp): Likewise.
4871 (zero_one_operation): New function.
4872 (build_and_add_sum): Likewise.
4873 (undistribute_ops_list): Perform un-distribution of multiplication
4874 and division on the chain of summands.
4875 (should_break_up_subtract): Also break up subtracts for factors.
4876 (reassociate_bb): Delete dead visited statements.
4877 Call undistribute_ops_list. Re-sort and optimize if it did something.
4878 * passes.c (init_optimization_passes): Move DSE before
4879 reassociation.
4880 * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Correctly handle
4881 PHI nodes.
4882
4883 2008-08-12 Janis Johnson <janis187@us.ibm.com>
4884
4885 * doc/invoke.texi (-fipa-pta): Say the option is experimental.
4886
4887 * doc/invoke.texi: Revert unintended checkin.
4888
4889 2008-08-12 Nathan Froyd <froydnj@codesourcery.com>
4890
4891 PR libgomp/26165
4892 * gcc.c (include_spec_function): Tweak call to find_a_file.
4893
4894 2008-08-12 Jakub Jelinek <jakub@redhat.com>
4895
4896 PR middle-end/37014
4897 * expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
4898 and TRUTH_ORIF_EXPR.
4899 * dojump.c (do_jump): Likewise.
4900
4901 PR tree-optimization/37084
4902 * tree-inline.c (copy_bb): Call gimple_regimplify_operands
4903 if id->regimplify, don't assume stmt is a cast assignment.
4904
4905 2008-08-12 Anatoly Sokolov <aesok@post.ru>
4906
4907 * final.c (final_scan_insn): Use app_enable/app_disable functions.
4908
4909 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4910
4911 PR bootstrap/37097
4912 * builtins.c (do_mpfr_bessel_n): Fix copy-and-paste bug introduced
4913 by last change.
4914
4915 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4916
4917 * defaults.h (TARGET_FLOAT_FORMAT): Remove.
4918 (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT): Remove.
4919
4920 * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Remove.
4921 * config/iq2000/iq2000.h (TARGET_FLOAT_FORMAT): Remove.
4922 * config/pdp11/pdp11.h (TARGET_FLOAT_FORMAT): Remove.
4923 * config/score/score.h (TARGET_FLOAT_FORMAT): Remove.
4924 * config/vax/vax.h (TARGET_FLOAT_FORMAT): Remove.
4925
4926 * doc/tm.texi (Storage Layout): Remove documentation for
4927 TARGET_FLOAT_FORMAT.
4928
4929 * simplify-rtx.c (simplify_binary_operation_1): Replace
4930 TARGET_FLOAT_FORMAT check by appropriate HONOR_... checks.
4931
4932 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4933
4934 * real.h (struct real_format): New member has_sign_dependent_rounding.
4935 * real.c (ieee_single_format, mips_single_format, motorola_single_format,
4936 spu_single_format, ieee_double_format, mips_double_format,
4937 motorola_double_format, ieee_extended_motorola_format,
4938 ieee_extended_intel_96_format, ieee_extended_intel_128_format,
4939 ieee_extended_intel_96_round_53_format, ibm_extended_format,
4940 mips_extended_format, ieee_quad_format, mips_quad_format,
4941 vax_f_format, vax_d_format, vax_g_format): Initialize it.
4942 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
4943
4944 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
4945 MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
4946 * config/spu/spu.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
4947 MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
4948 (ROUND_TOWARDS_ZERO): Likewise.
4949
4950 * real.h (REAL_MODE_FORMAT): Protect MODE against macro expansion.
4951 (FLOAT_MODE_FORMAT): New macro.
4952 (REAL_MODE_FORMAT_COMPOSITE_P): Remove, replace by ...
4953 (MODE_COMPOSITE_P): ... this new macro.
4954 (MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
4955 MODE_HAS_SIGN_DEPENDENT_ROUNDING): New macros.
4956 * machmode.h (GET_MODE_INNER): Cast result to enum machine_mode.
4957
4958 * flags.h: Include "real.h".
4959
4960 * fold-const.c (const_binop): Use MODE_COMPOSITE_P instead of
4961 REAL_MODE_FORMAT_COMPOSITE_P.
4962 * simplify-rtx.c (simplify_const_binary_operation): Likewise.
4963
4964 * doc/tm.texi (Storage Layout): Remove documentation of
4965 MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
4966 MODE_HAS_SIGN_DEPENDENT_ROUNDING. Update documentation of
4967 ROUND_TOWARDS_ZERO and LARGEST_EXPONENT_IS_NORMAL to clarify
4968 they only apply to libgcc2.a.
4969
4970 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4971
4972 * config/spu/float_disf.c: New file.
4973 * config/spu/float_unsdisf.c: New file.
4974 * config/spu/t-elf (LIB2FUNCS_STATIC_EXTRA): Add them.
4975 (LIB2FUNCS_EXCLUDE): Define.
4976
4977 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4978 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
4979
4980 * real.h (struct real_format): New member round_towards_zero.
4981 * real.c (round_for_format): Respect fmt->round_towards_zero.
4982 (ieee_single_format, mips_single_format, motorola_single_format,
4983 spu_single_format, ieee_double_format, mips_double_format,
4984 motorola_double_format, ieee_extended_motorola_format,
4985 ieee_extended_intel_96_format, ieee_extended_intel_128_format,
4986 ieee_extended_intel_96_round_53_format, ibm_extended_format,
4987 mips_extended_format, ieee_quad_format, mips_quad_format,
4988 vax_f_format, vax_d_format, vax_g_format): Initialize it.
4989 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
4990
4991 * builtins.s (do_mpfr_arg1): Consider round_towards_zero member of
4992 real_format to choose rounding mode when calling MPFR functions.
4993 (do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Likewise.
4994 (do_mpfr_bessel_n, do_mpfr_remquo, do_mpfr_lgamma_r): Likewise.
4995
4996 * real.h (real_to_decimal_for_mode): Add prototype.
4997 * real.c (real_to_decimal_for_mode): Renames old real_to_decimal.
4998 Respect target rounding mode when generating decimal representation.
4999 (real_to_decimal): New stub for backwards compatibility.
5000 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Use
5001 real_to_decimal_for_mode instead of real_to_decimal.
5002
5003 * config/spu/spu.md ("floatdisf2", "floatunsdisf2"): New.
5004
5005 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5006 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
5007
5008 * real.c (spu_single_format): New variable.
5009 * real.h (spu_single_format): Declare.
5010
5011 * config/spu/spu.c (spu_override_options): Install SFmode format.
5012 (spu_split_immediate): Use integer mode to operate on pieces of
5013 floating-point values in all cases.
5014
5015 * config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
5016 ("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
5017 ("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.
5018
5019 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5020
5021 * config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
5022
5023 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5024
5025 * config/spu/spu.h (DWARF_FRAME_RETURN_COLUMN): Define.
5026
5027 2008-08-12 Jakub Jelinek <jakub@redhat.com>
5028
5029 PR c++/36688
5030 * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
5031 on the VAR_DECL instead of TYPE_READONLY on its type.
5032
5033 2008-08-12 Ira Rosen <irar@il.ibm.com>
5034
5035 * tree-vectorizer.c: Depend on langhooks.h.
5036 (supportable_widening_operation): Add two arguments. Support double
5037 type conversions.
5038 (supportable_narrowing_operation): Likewise.
5039 * tree-vectorizer.h (supportable_widening_operation): Add two
5040 arguments.
5041 (supportable_narrowing_operation): Likewise.
5042 * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call
5043 supportable_widening_operation with correct arguments.
5044 * tree-vect-transform.c (vectorizable_conversion): Likewise.
5045 (vectorizable_type_demotion): Support double type conversions.
5046 (vectorizable_type_promotion): Likewise.
5047 * Makefile.in (tree-vectorizer.o): Depend on langhooks.h.
5048
5049 2008-08-11 Michael Matz <matz@suse.de>
5050
5051 * i386/i386.c (override_options): Move initialisation from
5052 flag_schedule_insns_after_reload to here from ...
5053 (optimization_options): ... here.
5054
5055 2008-08-11 Jakub Jelinek <jakub@redhat.com>
5056
5057 PR rtl-optimization/36998
5058 * dwarf2out.c (compute_barrier_args_size_1,
5059 compute_barrier_args_size): Temporarily remove assertions.
5060
5061 2008-08-10 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5062
5063 PR middle-end/20644
5064 * tree-ssa.c (struct walk_data): Add new flag
5065 warn_possibly_uninitialized.
5066 (warn_uninitialized_var): Use it.
5067 (warn_uninitialized_vars): New.
5068 (execute_early_warn_uninitialized): Call it.
5069 (execute_late_warn_uninitialized): Likewise.
5070
5071 2008-08-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
5072
5073 PR middle-end/36238
5074 * reload1.c (gen_reload): Guard calls to get_secondary_mem
5075 for memory subregs.
5076
5077 2008-08-09 Jan Hubicka <jh@suse.cz>
5078
5079 PR target/37055
5080 * optabs.c (maybe_emit_unop_insn): Remove produced code if
5081 expansion failed.
5082 (expand_fix): Be prepared for expansion to fail.
5083 (expand_sfix_optab): Remove instructions if expansion failed.
5084
5085 2008-08-09 Anatoly Sokolov <aesok@post.ru>
5086
5087 * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
5088 avr31 architecture.
5089 * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
5090 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
5091
5092 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
5093
5094 * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
5095 mips/t-libgcc-mips16 to tmake_file.
5096 * config/mips/mips-protos.h (mips_call_type): New enum.
5097 (mips_pic_base_register, mips_got_load): Declare.
5098 (mips_restore_gp): Take an rtx argument.
5099 (mips_use_pic_fn_addr_reg_p): Declare.
5100 (mips_expand_call): Replace the sibcall_p argument with
5101 a mips_call_type argument. Add a lazy_p parameter.
5102 (mips_split_call): Declare.
5103 * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
5104 (MIPS16_PIC_TEMP): Likewise.
5105 (reg_class): Delete M16_NA_REGS.
5106 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
5107 (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
5108 (mips_split_hi_p): Declare.
5109 * config/mips/mips.c (mips_split_hi_p): New array.
5110 (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
5111 (mips_got_symbol_type_p): New function.
5112 (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
5113 (mips16_stub_function_p): New function.
5114 (mips16_local_function_p): Likewise.
5115 (mips_use_pic_fn_addr_reg_p): Likewise.
5116 (mips_cannot_force_const_mem): Return false for HIGHs.
5117 Extend CONST_INT and symbolic handling to MIPS16, using
5118 mips_symbol_insns to check that the base symbol type is a
5119 legitimate constant. Reject GOT-based constants if
5120 TARGET_MIPS16_PCREL_LOADS.
5121 (mips_const_insns): Check targetm.cannot_force_const_mem when
5122 decomposing a symbolic base and a large offset.
5123 (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
5124 When calling a function that needs $25 from MIPS16 code,
5125 move the target address into $25 separately and add a USE
5126 to the call insn.
5127 (mips16_gp_pseudo_reg): Insert the initializer immediately
5128 before the first real insn.
5129 (mips_pic_base_register, mips_got_load): New functions.
5130 (mips_split_symbol): Generalize the name of the LO_SUM_OUT
5131 parameter to LOW_OUT. Say that it can be any valid SET_SRC
5132 when splitting a load-address operation. Split SYMBOL_GOT_DISP
5133 constants and highs of SYMBOL_GOT_PAGE_OFST constants.
5134 (mips_call_tls_get_addr): Update the call to mips_expand_call,
5135 also passing NULL_RTX rather than const0_rtx as the aux argument.
5136 (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
5137 instead of TARGET_EXPLICIT_RELOCS.
5138 (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
5139 (mips_load_call_address): Replace the sibcall_p argument with
5140 a mips_call_type argument. Use mips_got_load.
5141 (mips16_local_alias): New structure.
5142 (mips16_local_aliases): New variable.
5143 (mips16_local_aliases_hash): New function.
5144 (mips16_local_aliases_eq): Likewise.
5145 (mips16_local_alias): Likewise.
5146 (mips16_stub_function): Likewise.
5147 (mips16_build_function_stub): Create a local alias for the target
5148 function. Handle TARGET_ABICALLS. For PIC abicalls, emit a
5149 .cpload directive and an R_MIPS_NONE relocation for the target
5150 function, then load the alias rather than the function itself.
5151 Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
5152 (mips16_copy_fpr_return_value): Use mips16_stub_function and
5153 mips_expand_call. Set SYMBOL_REF_BIND_NOW on the symbol.
5154 (mips16_build_call_stub): Replace the FN parameter with an
5155 FN_PTR parameter. Force the address into a register if it
5156 isn't a call_insn_operand; don't rely on the caller to do this.
5157 If a call to a locally-defined and locally-binding MIPS16
5158 function must be made indirectly, redirect the call to the
5159 function's local alias. Use mips16_stub_function_p,
5160 mips16_stub_function, mips_expand_call and use_reg.
5161 Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
5162 Use explicit %hi and %lo accesses where possible.
5163 Use MIPS_CALL to generate the correct code form of a
5164 jal instruction. Add clobbers of $18 instead of uses.
5165 Update the call to mips_emit_call_insn.
5166 (mips_expand_call): Replace the SIBCALL_P argument with a
5167 mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
5168 Take a LAZY_P parameter. Call mips16_build_call_stub first,
5169 allowing it to modify the call address. Update the calls to
5170 mips_load_call_address and mips_emit_call_insn.
5171 (mips_split_call): New function.
5172 (mips_init_relocs): Clear mips_split_hi_p. Only use %gp_rel if
5173 !TARGET_MIPS16. Split SYMBOL_GOT_DISP, and the high parts of
5174 SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
5175 (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
5176 (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
5177 if TARGET_MIPS16.
5178 (mips_cprestore_slot): New function.
5179 (mips_restore_gp): Take a TEMP parameter. Handle TARGET_MIPS16
5180 and use mips_cprestore_slot.
5181 (mips_output_function_prologue): Handle TARGET_MIPS16 for
5182 LOADGP_OLDABI.
5183 (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
5184 then use a copygp_mips16 instruction to set up $28.
5185 (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
5186 (mips16_lay_out_constants): Call split_all_insns_noflow.
5187 (mips_reorg_process_insns): Explicitly set all_noreorder_p to
5188 false if TARGET_MIPS16.
5189 (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
5190 (mips_output_mi_thunk): Use mips_got_symbol_type_p. Use the
5191 mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
5192 (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
5193 MIPS16 code. Allow MIPS16 o32 PIC.
5194 (mips_override_options): Allow MIPS16 o32 PIC.
5195 * config/mips/mips.md: Lower CONST_GP_P moves into register moves
5196 after reload if TARGET_USE_GOT.
5197 (UNSPEC_COPYGP): New constant.
5198 (length): Use a default length of 8 for MIPS16 GOT loads.
5199 (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
5200 (*got_page<mode>): Check mips_split_hi_p.
5201 (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
5202 (unspec_got<mode>, unspec_call<mode>): New expanders.
5203 (load_got<mode>, load_call<mode>): Remove the length attributes.
5204 Use a got attribute instead of a type attribute.
5205 (copygp_mips16): New insn.
5206 (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
5207 (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
5208 (sibcall, sibcall_value, call, call_value): Update the calls
5209 to mips_expand_call.
5210 (call_internal, call_value_internal): Use mips_split_call.
5211 (call_value_multiple_internal): Likewise.
5212 (call_split): Move after call_internal (the insn it is split from).
5213 (call_internal_direct, call_value_internal_direct): Turn into
5214 define_insn_and_splits. Split if TARGET_SPLIT_CALLS.
5215 (call_direct_split, call_value_direct_split): New patterns.
5216 * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
5217 and use M16_REGS instead of M16_NA_REGS.
5218 * config/mips/predicates.md (const_call_insn_operand): Replace
5219 the TARGET_ABSOLUTE_ABICALLS-based check with a more general
5220 mips_use_pic_fn_addr_reg_p check.
5221 (move_operand): Reject HIGHs if mips_split_hi_p.
5222 * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
5223 (__mips16_floatunsisf): Inline __mips16_floatsisf.
5224 (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
5225 * config/mips/libgcc-mips16.ver: New file.
5226 * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
5227 $(srcdir)/config/mips/libgcc-mips16.ver.
5228
5229 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
5230
5231 * config/mips/mips.c (mips_unspec_address_offset): Move earlier in file.
5232 (mips_unspec_address, mips_unspec_offset_high): Likewise.
5233 (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
5234 (mips16_cfun_returns_in_fpr_p): Likewise.
5235
5236 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
5237
5238 * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
5239 * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
5240 rather than 4 to PC.
5241
5242 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
5243
5244 * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
5245 (FUNCTION_PROFILER): Save the static chain pointer into $2
5246 beforehand and restore it aftewards.
5247 (TRAMPOLINE_TEMPLATE): Adjust accordingly. Load the target
5248 address directly into $25 and call the function through $25;
5249 do not clobber $3. Pad the DImode version to cover the space
5250 left by the deleted $25 <- $3 move.
5251 (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
5252 the removal of the $25 <- $3 move.
5253 (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
5254 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
5255
5256 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
5257 Daniel Jacobowitz <dan@codesourcery.com>
5258
5259 * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
5260 * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
5261 (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
5262 * config/mips/mips.c (mips_start_function_definition): New function.
5263 (mips_end_function_definition): Likewise.
5264 (mips_output_function_prologue): Use mips_start_function_definition.
5265 (mips_output_function_epilogue): Use mips_end_function_definition.
5266 (build_mips16_function_stub): Use mips_start_function_definition
5267 and mips_end_function_definition.
5268 (build_mips16_call_stub): Likewise.
5269
5270 2008-08-09 Richard Guenther <rguenther@suse.de>
5271
5272 * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
5273 * gimple.h (gimple_call_fn): Adjust comment.
5274 (gimple_call_set_fndecl): New function.
5275 (gimple_call_fndecl): Adjust for GIMPLE_CALL no
5276 longer having bare FUNCTION_DECL operand.
5277 (gimple_call_return_type): Likewise.
5278 * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
5279
5280 * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
5281 (gimple_mod_pow2): Likewise.
5282 (gimple_mod_subtract): Likewise.
5283 (gimple_ic): Likewise.
5284 (gimple_stringop_fixed_value): Likewise.
5285 (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
5286 longer having bare FUNCTION_DECL operand.
5287 * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
5288 * omp-low.c (optimize_omp_library_calls): Likewise.
5289 * cgraphunit.c (update_call_expr): Likewise.
5290 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
5291 (execute_convert_to_rsqrt): Likewise.
5292 * cfgexpand.c (gimple_to_tree): Simplify.
5293 (release_stmt_tree): Fix for GIMPLE_CALL no longer having
5294 bare FUNCTION_DECL operand.
5295 * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
5296 (convert_gimple_call): Use gimple_call_fndecl.
5297 * c-common.c (c_warn_unused_result): Likewise.
5298
5299 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5300
5301 PR c/17880
5302 * c-typeck.c (digest_init): Call verify_sequence_points from here.
5303 (c_finish_return): Likewise.
5304 (c_start_case): Likewise.
5305 * c-common.c (warn_for_collisions_1): Use explicit location in warning.
5306 * c-parser.c (c_parser_condition): New. Call
5307 verify_sequence_points.
5308 (c_parser_paren_condition): Call c_parser_condition.
5309 (c_parser_for_statement): Call c_parser_condition.
5310
5311 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5312
5313 PR 36901
5314 * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.
5315 * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
5316 Moved from diagnostic.h
5317 (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
5318 DK_PERMERROR.
5319 (emit_diagnostic): New.
5320 (warning0, pedwarn0): Delete.
5321 (warning, warning_at, pedwarn, permerror): Return bool.
5322 * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
5323 Moved to diagnostic.c.
5324 (struct diagnostic_context): Use correct type for
5325 classify_diagnostic.
5326 (diagnostic_report_diagnostic): Update declaration.
5327 (emit_diagnostic): Declare.
5328 * errors.c (warning): Return bool.
5329 * errors.h (warning): Update declaration.
5330 * toplev.h (warning0, pedwarn0): Delete.
5331 (warning, warning_at, pedwarn, permerror): Return bool.
5332 * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
5333 * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
5334 inform. Update all calls.
5335 (diagnose_mismatched_decls): Check return value of warning/pedwarn
5336 before giving informative note.
5337 (implicit_decl_warning): Likewise.
5338 * c-typeck.c (build_function_call): Likewise.
5339 * tree-sssa.c (warn_uninit): Likewise.
5340 * builtins.c (gimplify_va_arg_expr): Likewise.
5341
5342 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5343
5344 PR 7651
5345 * doc/invoke.texi (-Wextra): Move warning from here...
5346 (-Wuninitialized): ... to here.
5347
5348 2008-08-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5349
5350 PR 28875
5351 * flags.h (set_Wunused): Delete
5352 * toplev.c (process_options): Handle Wunused flags here.
5353 * opts.c (maybe_warn_unused_parameter): Delete.
5354 (common_handle_option): Replace set_Wunused by warn_unused.
5355 (set_Wextra): Do not handle Wunused-parameter here.
5356 (set_Wunused): Delete.
5357 * c-opts.c (c_common_handle_option): Replace set_Wunused by
5358 warn_unused.
5359 * common.opt (Wunused): Add Var and Init.
5360 (Wunused-function): Likewise.
5361 (Wunused-label): Likewise.
5362 (Wunused-parameter): Likewise.
5363 (Wunused-value): Likewise.
5364 (Wunused-variable): Likewise.
5365
5366 2008-08-08 Peter Bergner <bergner@vnet.ibm.com>
5367
5368 * doc/invoke.texi: Add cpu_type power7.
5369 * config.in (HAVE_AS_VSX): New.
5370 * config.gcc: Add cpu_type power7.
5371 * configure.ac (HAVE_AS_VSX): Check for assembler support of the
5372 VSX instructions.
5373 * configure: Regenerate.
5374 * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
5375 power5.
5376 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
5377 (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
5378 (EXTRA_SPECS): Add asm_cpu_power7 spec string.
5379
5380 2008-08-08 Dorit Nuzman <dorit@il.ibm.com>
5381
5382 * tree-vect-transform.c (vectorizable_conversion): Pass the integral
5383 type to vectorize.builtin_conversion.
5384 (vectorizable_conversion): Likewise.
5385 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
5386 integral type as input.
5387 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
5388 FIX_TRUNC_EXPR.
5389 (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
5390 and ALTIVEC_BUILTIN_VCTSXS.
5391 (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
5392 formatting.
5393
5394 2008-08-08 Richard Guenther <rguenther@suse.de>
5395
5396 * tree-ssa-ccp.c (likely_value): Calls are not all varying.
5397 (surely_varying_stmt_p): Calls are varying only if they are
5398 non-builtin and not indirect or have no result.
5399 (ccp_fold): Re-instantiate code before the tuples merge.
5400
5401 2008-08-08 Richard Guenther <rguenther@suse.de>
5402
5403 PR tree-optimization/37056
5404 * gimple.h (gimple_assign_rhs_class): New helper function.
5405 * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
5406 unary operations properly.
5407
5408 2008-08-07 Jan Hubicka <jh@suse.cz>
5409
5410 * i386.h (ix86_size_cost): Declare.
5411 (ix86_cur_cost): New function macro.
5412 * i386.md (peepholes expanding size and splitters): Predicate by
5413 optimize_insn_for_speed_p.
5414 (peepholes reduce size and splitters): Predicate by
5415 optimize_insn_for_size_p.
5416 * i386.c (ix86_size_cost): Rename from ...
5417 (size_cost): This one.
5418 (override_options): Update.
5419 (decide_alg): Likewise.
5420 (ix86_expand_clear): Use RTL profile.
5421 (ix86_pad_returns): Use RTL profile.
5422
5423 2008-08-07 Jan Hubicka <jh@suse.cz>
5424
5425 * recog.c (split_all_insns): Set RTL profile
5426 (peephole2_optimize): Likewise.
5427 * function.c (thread_prologue_and_epilogue_insns): Likewise.
5428 * combine.c (combine_instructions): Likewise.
5429
5430 2008-08-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5431
5432 * c-common.c (c_common_reswords): Also warn about keyword "bool".
5433
5434 2008-08-07 Bob Wilson <bob.wilson@acm.org>
5435
5436 * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming
5437 value in a6 after the set_frame_ptr insn.
5438
5439 2008-08-07 Richard Henderson <rth@redhat.com>
5440
5441 PR debug/37033
5442 * gcc.c (cpp_options): Pass along -g*.
5443
5444 2008-08-07 Joseph Myers <joseph@codesourcery.com>
5445
5446 * config/arm/arm.c (output_move_neon): Update comment describing
5447 big-endian vector layout.
5448 (arm_assemble_integer): Do not handle big-endian NEON vectors
5449 specially.
5450 * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
5451 neon_vget_lane<mode>_sext_internal,
5452 neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
5453 element indices for big-endian.
5454
5455 2008-08-07 Richard Henderson <rth@redhat.com>
5456
5457 * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
5458 * configure, config.in: Rebuild.
5459 * debug.h (dwarf2out_do_cfi_asm): Declare.
5460 * c-cppbuiltin.c (c_cpp_builtins): Use it.
5461 * dwarf2out.c (dwarf2out_do_cfi_asm): New.
5462 (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
5463 dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
5464
5465 2008-08-07 Joseph Myers <joseph@codesourcery.com>
5466
5467 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
5468 movv2si_internal): Combine into mov<mode>_internal.
5469 (movv2si_internal_2): Remove.
5470
5471 2008-08-07 Jan Hubicka <jh@suse.cz>
5472
5473 PR target/37048
5474 * i386.md (single stringop patterns): Enable unconditionally.
5475
5476 2008-08-07 H.J. Lu <hongjiu.lu@intel.com>
5477
5478 PR target/36992
5479 * config/i386/emmintrin.h (_mm_move_epi64): Use __builtin_ia32_movq128.
5480
5481 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
5482 (bdesc_args): Add IX86_BUILTIN_MOVQ128.
5483
5484 * config/i386/sse.md (sse2_movq128): New.
5485
5486 * doc/extend.texi: Document __builtin_ia32_movq128.
5487
5488 2008-08-07 Richard Guenther <rguenther@suse.de>
5489
5490 PR middle-end/37042
5491 * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
5492 pointers can access anything.
5493
5494 2008-08-06 Jan Hubicka <jh@suse.cz>
5495
5496 * optabs.c (emit_unop_insn): Break out to ...
5497 (maybe_emit_unop_insn): ... this one.
5498 (expand_sfix_optab): Use maybe variant.
5499 * optabs.h (maybe_emit_unop_insn): Declare.
5500
5501 * i386.md (mov0 patterns): Enable by default.
5502 (FP conversion expanders): Disable expansion of code expanding
5503 sequences when instruction should be optimized for size.
5504 (single strinop patterns): Enable when optimizing for size.
5505 (string expanders): Disable expanding of code expanding sequences
5506 when optimizning instruction for size.
5507 * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
5508 per BB basis.
5509 (ix86_fp_comparison_sahf_cost): Likewise.
5510 (ix86_expand_branch): Likewise.
5511 (ix86_expand_ashl_const): Likewise.
5512 (ix86_split_ashl): Likewise.
5513 (ix86_expand_strlen): Likewise.
5514 (ix86_emit_fp_unordered_jump): Likewie.
5515
5516 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5517
5518 * c-common.c: Fix typo.
5519 (c_common_reswords): Activate more C++ keyword warnings.
5520
5521 * matrix-reorg.c (compute_offset): Avoid C++ keywords.
5522
5523 2008-08-06 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5524
5525 PR 26785
5526 * diagnostic.c (permerror_at): New.
5527 * toplev.h (permerror_at): Declare.
5528
5529 2008-08-06 Victor Kaplansky <victork@il.ibm.com>
5530 Ira Rosen <irar@il.ibm.com>
5531
5532 * tree-vect-transform.c (vect_model_simple_cost): Return
5533 immediately if stmt is pure SLP.
5534 (vect_model_store_cost): Ditto.
5535 (vect_model_load_cost): Ditto.
5536 (vectorizable_store): Remove PURE_SLP check before call
5537 to vect_model_store_cost.
5538 (vect_model_store_cost): When checking whether stmt describe
5539 strided access, add a check that it is not slp_node.
5540
5541 2008-08-06 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5542
5543 PR 8715
5544 * c-common.c (warn_for_sign_compare): New. Handle separately the
5545 case that 'constant' is zero.
5546 * c-typeck.c (build_binary_op): Move code to c-common.c
5547
5548 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5549
5550 * config/alpha/alpha.c (alpha_preferred_reload_class,
5551 alpha_secondary_reload, alpha_emit_set_const_1, function_value,
5552 alpha_output_mi_thunk_osf): Avoid C++ keywords.
5553 * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
5554 * config/arm/arm.md: Likewise.
5555 * config/avr/avr-protos.h (preferred_reload_class,
5556 test_hard_reg_class, avr_simplify_comparison_p,
5557 out_shift_with_cnt, class_max_nregs): Likewise.
5558 * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
5559 output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
5560 preferred_reload_class, test_hard_reg_class): Likewise.
5561 * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
5562 bfin_memory_move_cost, bfin_secondary_reload,
5563 bfin_output_mi_thunk): Likewise.
5564 * config/crx/crx.c (crx_secondary_reload_class,
5565 crx_memory_move_cost): Likewise.
5566 * config/frv/frv-protos.h (frv_secondary_reload_class,
5567 frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
5568 * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
5569 frv_secondary_reload_class, frv_class_likely_spilled_p,
5570 frv_class_max_nregs): Likewise.
5571 * config/h8300/h8300.c (h8300_classify_operand,
5572 h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
5573 Likewise.
5574 * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
5575 * config/ia64/ia64.c (ia64_preferred_reload_class,
5576 ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
5577 * config/iq2000/iq2000.c (gen_int_relational): Likewise.
5578 * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
5579 Likewise.
5580 * config/m68hc11/m68hc11.c (preferred_reload_class,
5581 m68hc11_memory_move_cost): Likewise.
5582 * config/mcore/mcore.c (mcore_secondary_reload_class,
5583 mcore_reload_class): Likewise.
5584 * config/mips/mips.c (mips_hard_regno_mode_ok_p,
5585 mips_class_max_nregs, mips_cannot_change_mode_class,
5586 mips_preferred_reload_class, mips_secondary_reload_class,
5587 mips_output_mi_thunk): Likewise.
5588 * config/mmix/mmix.c (mmix_preferred_reload_class,
5589 mmix_preferred_output_reload_class, mmix_secondary_reload_class):
5590 Likewise.
5591 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
5592 Likewise.
5593 * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
5594 pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
5595 * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
5596 * config/rs6000/rs6000.c (paired_expand_vector_init,
5597 rs6000_secondary_reload_class, rs6000_output_mi_thunk,
5598 compare_section_name, rs6000_memory_move_cost): Likewise.
5599 * config/s390/s390.c (s390_emit_compare_and_swap,
5600 s390_preferred_reload_class, s390_secondary_reload,
5601 legitimize_pic_address, legitimize_tls_address,
5602 legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
5603 s390_class_max_nregs): Likewise.
5604 * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
5605 * config/s390/s390.md: Likewise.
5606 * config/score/score-protos.h (score_secondary_reload_class,
5607 score_preferred_reload_class): Likewise.
5608 * config/score/score.c (score_preferred_reload_class,
5609 score_secondary_reload_class): Likewise.
5610 * config/score/score3.c (score3_output_mi_thunk,
5611 score3_preferred_reload_class, score3_secondary_reload_class,
5612 score3_hard_regno_mode_ok): Likewise.
5613 * config/score/score3.h (score3_preferred_reload_class,
5614 score3_secondary_reload_class): Likewise.
5615 * config/score/score7.c (score7_output_mi_thunk,
5616 score7_preferred_reload_class, score7_secondary_reload_class,
5617 score7_hard_regno_mode_ok): Likewise.
5618 * config/score/score7.h (score7_preferred_reload_class,
5619 score7_secondary_reload_class): Likewise.
5620 * config/sh/sh.c (prepare_move_operands, output_far_jump,
5621 output_branchy_insn, add_constant, gen_block_redirect,
5622 sh_insn_length_adjustment, sh_cannot_change_mode_class,
5623 sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload): Likewise.
5624 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
5625 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
5626 xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
5627 xstormy16_preferred_reload_class): Likewise.
5628 * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
5629 xtensa_expand_atomic, override_options,
5630 xtensa_preferred_reload_class, xtensa_secondary_reload_class):
5631 Likewise.
5632 * reorg.c (try_merge_delay_insns): Likewise.
5633 * tree.c (merge_dllimport_decl_attributes): Likewise.
5634
5635 * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
5636
5637 2008-08-06 Michael Matz <matz@suse.de>
5638
5639 * Makefile.in (write_entries_to_file): Quote words.
5640 * gengtype.c: (read_input_line): Skip over leading white-space.
5641
5642 2008-08-06 Marc Gauthier <marc@tensilica.com>
5643
5644 * config.gcc: Match more processor names for Xtensa.
5645 * configure.ac: Likewise.
5646 * doc/install.texi (Specific): Likewise.
5647 * configure: Regenerate.
5648
5649 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5650
5651 * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
5652 * calls.c (avoid_likely_spilled_reg): Likewise.
5653 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
5654 * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
5655 * config/i386/i386.c (ix86_expand_special_args_builtin,
5656 ix86_secondary_reload): Likewise.
5657 * except.c (struct eh_region, gen_eh_region_catch,
5658 remove_unreachable_regions, duplicate_eh_regions,
5659 assign_filter_values, build_post_landing_pads,
5660 sjlj_find_directly_reachable_regions, remove_eh_handler,
5661 reachable_next_level, foreach_reachable_handler,
5662 can_throw_internal_1, can_throw_external_1,
5663 collect_one_action_chain): Likewise.
5664 * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
5665 * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
5666 * function.c (update_temp_slot_address, instantiate_new_reg,
5667 instantiate_virtual_regs_in_rtx,
5668 instantiate_virtual_regs_in_insn): Likewise.
5669 * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
5670 * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
5671 gimplify_cleanup_point_expr): Likewise.
5672 * ipa-cp.c (ipcp_lattice_changed): Likewise.
5673 * passes.c (next_pass_1): Likewise.
5674 * print-tree.c (print_node_brief, print_node): Likewise.
5675 * profile.c (branch_prob): Likewise.
5676 * tree-dump.c (dump_register): Likewise.
5677 * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
5678 Likewise.
5679 * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
5680 copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
5681 copy_edges_for_bb, copy_cfg_body, copy_tree_r,
5682 copy_arguments_for_versioning, copy_static_chain): Likewise.
5683 * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
5684 add_new_name_mapping, register_new_name_mapping): Likewise.
5685 * tree-mudflap.c (mf_xform_derefs): Likewise.
5686 * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
5687 get_init_expr, combine_chains): Likewise.
5688 * tree-pretty-print.c (dump_generic_node): Likewise.
5689 * tree-ssa-structalias.c (create_variable_info_for): Likewise.
5690 * tree-vrp.c (simplify_cond_using_ranges): Likewise.
5691 * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
5692 * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
5693
5694 2008-08-06 H.J. Lu <hongjiu.lu@intel.com>
5695
5696 PR middle-end/37010
5697 * calls.c (expand_call): Use the biggest preferred stack
5698 boundary.
5699
5700 2008-08-06 Michael Matz <matz@suse.de>
5701
5702 PR target/36613
5703 * reload.c (push_reload): Merge in,out,in_reg,out_reg members
5704 for reused reload, instead of overwriting them.
5705
5706 2008-08-06 H.J. Lu <hongjiu.lu@intel.com>
5707
5708 PR middle-end/37009
5709 * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
5710 for incoming stack boundary.
5711
5712 * function.c (assign_parm_find_entry_rtl): Update
5713 parm_stack_boundary.
5714
5715 * function.h (rtl_data): Add parm_stack_boundary.
5716
5717 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
5718 parm_stack_boundary for incoming stack boundary.
5719
5720 2008-08-06 Joseph Myers <joseph@codesourcery.com>
5721
5722 * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
5723 for unrepresentable subregs or treat them as equal to other regs
5724 or subregs with the same register number.
5725
5726 2008-08-06 Aldy Hernandez <aldyh@redhat.com>
5727
5728 PR middle-end/35432
5729 * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
5730 if want_value.
5731
5732 2008-08-06 Jan Hubicka <jh@suse.cz>
5733
5734 * predict.c (maybe_hot_frequency_p): When profile is absent, all
5735 frequencies might be hot.
5736
5737 2008-08-06 Andreas Krebbel <krebbel1@de.ibm.com>
5738
5739 * reload.c (find_reloads): Force constants into literal pool
5740 also if they are wrapped in a SUBREG.
5741
5742 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
5743
5744 PR target/35659
5745 * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
5746 * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
5747 Don't allow predicated instructions for data speculation.
5748 * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
5749 declaration.
5750
5751 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
5752
5753 * haifa-sched.c (extend_global): Split to extend_global_data and
5754 extend_region_data. Update all uses.
5755 (extend_all): Rename to extend_block_data.
5756
5757 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
5758
5759 * sched-rgn.c (new_ready): Check if instruction can be
5760 speculatively scheduled before attempting speculation.
5761 (debug_rgn_dependencies): Remove wrongful assert.
5762
5763 2008-08-05 Bob Wilson <bob.wilson@acm.org>
5764
5765 * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
5766
5767 2008-08-05 Bob Wilson <bob.wilson@acm.org>
5768
5769 * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
5770 (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
5771 va_size, and type_size.
5772
5773 2008-08-04 Jason Merrill <jason@redhat.com>
5774
5775 PR c++/37016
5776 * tree-ssa.c (useless_type_conversion_p_1): Call langhook
5777 if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
5778
5779 2008-08-05 Richard Henderson <rth@redhat.com>
5780
5781 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
5782 * configure: Rebuild.
5783
5784 2008-08-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
5785
5786 PR tree-opt/37024
5787 * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
5788 instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
5789 is a conversion.
5790
5791 2008-08-05 Richard Henderson <rth@redhat.com>
5792
5793 * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
5794 * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
5795 * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
5796 * common.opt (fdwarf2-cfi-asm): New.
5797 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
5798 * config.in, configure: Rebuild.
5799 * dwarf2asm.c (dw2_asm_output_data_raw): New.
5800 (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw): New.
5801 (dw2_force_const_mem): Externalize.
5802 * dwarf2asm.h: Update.
5803 * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
5804 generate a real label.
5805 (output_cfi_directive): New.
5806 (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
5807 (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
5808 (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
5809 and .cfi_lsda.
5810 (dwarf2out_end_epilogue): Emit .cfi_endproc.
5811 (output_loc_operands_raw, output_loc_sequence_raw): New.
5812 (output_cfa_loc_raw): New.
5813
5814 2008-08-05 Paul Brook <paul@codesourcery.com>
5815
5816 * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
5817 * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
5818 (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
5819 (arm_file_start): Add FPUTYPE_VFP3D16. Rename vfp3 to vfpv3.
5820 * config/arm/arm.h (TARGET_VFPD32): Define.
5821 (TARGET_VFP3): Use TARGET_VFPD32.
5822 (fputype): Add FPUTYPE_VFP3D16.
5823 (LAST_VFP_REGNUM): Use TARGET_VFPD32.
5824 * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
5825 * config/arm/arm-cores.def: Add cortex-r4f.
5826 * config/arm/arm-tune.md: Regenerate.
5827
5828 2008-08-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5829
5830 * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
5831 Reword some comments throughout the file.
5832
5833 (MFC_MIN_DMA_LIST_ELEMENTS): New define.
5834 (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
5835 (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of MFC_MIN_DMA_LIST_ELEMENTS.
5836 (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of MFC_MAX_DMA_LIST_ELEMENTS.
5837
5838 (MFC_START_ENABLE): Remove PPU-only define.
5839 (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
5840 (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
5841
5842 (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
5843 (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
5844 (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
5845 (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
5846 (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
5847 (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
5848 (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
5849
5850 (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
5851 (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
5852 (mfc_sdcrt, mfc_sdcrtst): Likewise.
5853 (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
5854
5855 (spu_read_machine_status): Fix typo.
5856
5857 2008-08-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5858
5859 * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
5860 SUBREG of multi-word hard register.
5861 * config/spu/spu.c (valid_subreg): Likewise.
5862 (adjust_operand): Handle SUBREGs of multi-word hard registers.
5863
5864 2008-08-04 Richard Guenther <rguenther@suse.de>
5865
5866 * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
5867 the candidate with the stripped base if that base is different
5868 from the original base even for offset zero.
5869
5870 2008-08-04 Richard Guenther <rguenther@suse.de>
5871
5872 PR middle-end/36691
5873 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
5874 check for no_overflow.
5875
5876 2008-08-04 Richard Guenther <rguenther@suse.de>
5877
5878 * tree-vect-transform.c (vectorizable_call): Fix tuplification.
5879
5880 2008-08-04 Paul Brook <paul@codesourcery.com>
5881
5882 * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
5883 (arm_order_regs_for_local_alloc): New function.
5884 * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
5885 prototype.
5886 * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
5887
5888 2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
5889
5890 PR target/37012
5891 * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
5892 instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
5893 (ix86_expand_epilogue): Likewise.
5894
5895 2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
5896
5897 * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
5898 in comments.
5899
5900 2008-08-03 Uros Bizjak <ubizjak@gmail.com>
5901
5902 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
5903 to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
5904 (*movv2sf_internal_rex64): Ditto.
5905
5906 2008-08-03 Jan Hubicka <jh@suse.cz>
5907
5908 * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
5909 expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
5910 * expmed.c (expand_smod_pow2): Likewise.
5911
5912 2008-08-03 Uros Bizjak <ubizjak@gmail.com>
5913
5914 PR target/36992
5915 * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
5916 alternative 0 of operand 1.
5917 (*vec_concatv2di_rex64_sse): Ditto.
5918 (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
5919 of operand 1.
5920 (*sse2_storeq_rex64): Penalize allocation of "r" registers.
5921 * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
5922 of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
5923 (*movv2sf_internal_rex64): Ditto.
5924
5925 2008-08-02 Richard Guenther <rguenther@suse.de>
5926
5927 PR target/35252
5928 * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
5929 (ssedoublesizemode): New mode attribute.
5930 (sse_shufps): Call gen_sse_shufps_v4sf.
5931 (sse_shufps_1): Macroize.
5932 (sse2_shufpd): Call gen_Sse_shufpd_v2df.
5933 (sse2_shufpd_1): Macroize.
5934 (vec_extract_odd, vec_extract_even): New expanders.
5935 (vec_interleave_highv4sf, vec_interleave_lowv4sf,
5936 vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
5937 * i386.c (ix86_expand_vector_init_one_nonzero): Call
5938 gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
5939 (ix86_expand_vector_set): Likewise.
5940 (ix86_expand_reduc_v4sf): Likewise.
5941
5942 2008-08-01 Doug Kwan <dougkwan@google.com>
5943
5944 * matrix-reorg.c: Re-enable all code.
5945 (struct malloc_call_data): Change CALL_STMT to gimple type.
5946 (collect_data_for_malloc_call): Tuplify.
5947 (struct access_site_info): Change STMT to gimple type.
5948 (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
5949 and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
5950 (struct free_info): Change STMT to gimple type.
5951 (struct matrix_access_phi_node): Change PHI to gimple type.
5952 (get_inner_of_cast_expr): Remove.
5953 (may_flatten_matrices_1): Tuplify.
5954 (may_flatten_matrices): Ditto.
5955 (mark_min_matrix_escape_level): Ditto.
5956 (ssa_accessed_in_tree): Refactor statement RHS related code into ...
5957 (ssa_accessed_in_call_rhs): New
5958 (ssa_accessed_in_assign_rhs): New
5959 (record_access_alloc_site_info): Tuplify.
5960 (add_allocation_site): Ditto.
5961 (analyze_matrix_allocation_site): Ditto.
5962 (analyze_transpose): Ditto.
5963 (get_index_from_offset): Ditto.
5964 (update_type_size): Ditto.
5965 (analyze_accesses_for_call_expr): Tuplify and renamed into ...
5966 (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
5967 (analyze_accesses_for_phi_node): Tuplify.
5968 (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
5969 (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
5970 (analyze_matrix_accesses): Tuplify.
5971 (check_var_data): New call-back type for check_var_notmodified_p.
5972 (check_var_notmodified_p): Tuplify and use call-back struct to
5973 return statement found.
5974 (can_calculate_expr_before_stmt): Factor out statement related code
5975 into ...
5976 (can_calculate_stmt_before_stmt): New.
5977 (check_allocation_function): Tuplify.
5978 (find_sites_in_func): Ditto.
5979 (record_all_accesses_in_func): Ditto.
5980 (transform_access_sites): Ditto.
5981 (transform_allocation_sites): Ditto.
5982 (matrix_reorg): Re-enable.
5983 (gate_matrix_reorg): Re-enable.
5984
5985 2008-08-01 Jakub Jelinek <jakub@redhat.com>
5986
5987 * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
5988 for labels for which it hasn't been set yet. If it has been set,
5989 stop walking insns and continue with next worklist item.
5990 (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
5991 if the only BARRIER is at the very end of a function.
5992
5993 2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
5994
5995 * cfgexpand.c (expand_stack_alignment): Assert that
5996 stack_realign_drap and drap_rtx must match.
5997
5998 * function.c (instantiate_new_reg): If DRAP is used to realign
5999 stack, replace virtual_incoming_args_rtx with internal arg
6000 pointer.
6001
6002 2008-08-01 Richard Guenther <rguenther@suse.de>
6003
6004 * tree-ssa-pre.c (fini_pre): Take in_fre parameter. Free
6005 loop information only if we initialized it.
6006 (execute_pre): Call fini_pre with in_fre.
6007 * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
6008 if we do not unroll because we hit max-completely-peeled-insns.
6009 Use our estimation for consistency, do allow shrinking.
6010
6011 2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
6012
6013 * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
6014 with MIN_STACK_BOUNDARY.
6015 (ix86_update_stack_boundary): Likewise.
6016 (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
6017 STACK_BOUNDARY.
6018
6019 * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
6020 (MIN_STACK_BOUNDARY): This.
6021
6022 2008-08-01 Richard Guenther <rguenther@suse.de>
6023
6024 PR middle-end/36997
6025 * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
6026
6027 2008-08-01 Richard Guenther <rguenther@suse.de>
6028
6029 PR tree-optimization/36988
6030 * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
6031 do not matter if that doesn't change volatile qualification.
6032
6033 2008-08-01 Paolo Bonzini <bonzini@gnu.org>
6034
6035 * configure.ac: Do not generate libada-mk. Do not subst
6036 host_cc_for_libada.
6037 * libada-mk.in: Remove.
6038 * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
6039 * configure: Regenerate.
6040
6041 2008-08-01 Basile Starynkevitch <basile@starynkevitch.net>
6042
6043 * tree-pass.h: Added comment about not dumping passes with name
6044 starting with star in struct opt_pass.
6045 * passes.c (register_dump_files_1): Don't do dump for a pass with
6046 name starting with star.
6047 * doc/passes.texi (Pass manager): Mention pass names and special
6048 meaning of star prefix to avoid dump.
6049
6050 2008-07-31 Adam Nemet <anemet@caviumnetworks.com>
6051
6052 * config.gcc (mipsisa64r2*-*-linux*): New configuration. Set ISA
6053 to MIPS64r2.
6054 * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
6055 (ISA_MIPS64R2): New macro.
6056 (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
6057 (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
6058 ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
6059 ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
6060 ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
6061 ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
6062 ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
6063 (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
6064 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
6065 Move up to keep list alphabetically sorted.
6066 (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
6067 * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
6068 processor.
6069 * doc/invoke.texi (MIPS Options): Add -mips64r2.
6070 (-march=@var{arch}): Add mips64r2.
6071
6072 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
6073
6074 * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
6075
6076 2008-07-31 Steve Ellcey <sje@cup.hp.com>
6077
6078 * expr.c (expand_assignment): Check for complete type.
6079
6080 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
6081
6082 PR debug/36977
6083 * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
6084
6085 * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
6086 for stack alignment.
6087
6088 * function.h (rtl_data): Add stack_realign_tried. Update comments.
6089
6090 2008-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
6091
6092 * config/sh/sh.c (sh_canonical_va_list_type): Remove.
6093 (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
6094
6095 2008-07-31 Jakub Jelinek <jakub@redhat.com>
6096
6097 PR rtl-optimization/36419
6098 * dwarf2out.c (barrier_args_size): New variable.
6099 (compute_barrier_args_size, compute_barrier_args_size_1): New
6100 functions.
6101 (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
6102 if not called yet in the current function, use barrier_args_size
6103 array to find the new args_size value.
6104 (dwarf2out_frame_debug): Free and clear barrier_args_size.
6105
6106 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
6107
6108 PR debug/36980
6109 * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
6110 rule 19.
6111
6112 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
6113
6114 PR debug/36976
6115 * dwarf2out.c (dwarf2out_args_size_adjust): New.
6116 (dwarf2out_stack_adjust): Use it.
6117 (dwarf2out_frame_debug_expr): Likewise.
6118
6119 2008-07-31 Richard Guenther <rguenther@suse.de>
6120
6121 PR tree-optimization/36978
6122 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
6123 the generated condition.
6124
6125 2008-07-31 Richard Guenther <rguenther@suse.de>
6126
6127 * passes.c (init_optimization_passes): Always call
6128 pass_early_warn_uninitialized.
6129 * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
6130 * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
6131 * doc/passes.texi (Warn for uninitialized variables): Adjust.
6132
6133 2008-07-31 Jakub Jelinek <jakub@redhat.com>
6134
6135 PR c/36970
6136 * builtins.c (maybe_emit_free_warning): New function.
6137 (expand_builtin): Process BUILT_IN_FREE even at -O0. Call
6138 maybe_emit_free_warning for BUILT_IN_FREE.
6139
6140 PR debug/36278
6141 * dwarf2out.c (get_context_die): New function.
6142 (force_decl_die, force_type_die): Use it.
6143 (dwarf2out_imported_module_or_decl): Likewise. If base_type_die
6144 returns NULL, force generation of DW_TAG_typedef and put that into
6145 DW_AT_import.
6146
6147 PR preprocessor/36649
6148 * c-pch.c (c_common_read_pch): Save and restore
6149 line_table->trace_includes across PCH restore.
6150
6151 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
6152
6153 PR ada/36554
6154 * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
6155
6156 2008-07-30 Rafael Ávila de Espíndola <espindola@google.com>
6157
6158 PR 36974
6159 * final.c (call_from_call_insn): Handle COND_EXEC.
6160
6161 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
6162
6163 * builtins.c (std_gimplify_va_arg_expr): Replace
6164 PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
6165 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
6166
6167 2008-07-30 Joey Ye <joey.ye@intel.com>
6168 H.J. Lu <hongjiu.lu@intel.com>
6169
6170 * builtins.c (expand_builtin_setjmp_receiver): Replace
6171 virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
6172 (expand_builtin_apply_args_1): Likewise.
6173 (expand_builtin_longjmp): Need DRAP for stack alignment.
6174 (expand_builtin_apply): Likewise.
6175
6176 * caller-save.c (setup_save_areas): Call assign_stack_local_1
6177 instead of assign_stack_local to allow alignment reduction.
6178
6179 * calls.c (emit_call_1): Need DRAP for stack alignment if
6180 return pops.
6181 (expand_call): Replace virtual_incoming_args_rtx with
6182 crtl->args.internal_arg_pointer.
6183 * stmt.c (expand_nl_goto_receiver): Likewise.
6184
6185 * cfgexpand.c (get_decl_align_unit): Estimate stack variable
6186 alignment and store to stack_alignment_estimated and
6187 max_used_stack_slot_alignment.
6188 (expand_one_var): Likewise.
6189 (expand_stack_alignment): New function.
6190 (tree_expand_cfg): Initialize max_used_stack_slot_alignment
6191 and stack_alignment_estimated fields in rtl_data. Call
6192 expand_stack_alignment at end.
6193
6194 * defaults.h (INCOMING_STACK_BOUNDARY): New.
6195 (MAX_STACK_ALIGNMENT): Likewise.
6196 (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
6197 (SUPPORTS_STACK_ALIGNMENT): Likewise.
6198
6199 * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
6200 stack alignment when generating virtual registers.
6201
6202 * function.c (assign_stack_local): Renamed to ...
6203 (assign_stack_local_1): This. Add a parameter to indicate
6204 if it is OK to reduce alignment.
6205 (assign_stack_local): Use it.
6206 (instantiate_new_reg): Instantiate virtual incoming args rtx
6207 to vDRAP if stack realignment and DRAP is needed.
6208 (assign_parms): Collect parameter/return type alignment and
6209 contribute to stack_alignment_estimated.
6210 (locate_and_pad_parm): Likewise.
6211 (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
6212 with crtl->args.internal_arg_pointer.
6213
6214 * function.h (rtl_data): Add new field drap_reg,
6215 max_used_stack_slot_alignment, stack_alignment_estimated,
6216 stack_realign_needed, need_drap, stack_realign_processed and
6217 stack_realign_finalized.
6218 (stack_realign_fp): New macro.
6219 (stack_realign_drap): Likewise.
6220
6221 * global.c (compute_regsets): Frame pointer is needed when
6222 stack is realigned. Can eliminate frame pointer when stack is
6223 realigned and dynamic realigned argument pointer isn't used.
6224
6225 * reload1.c (update_eliminables): Frame pointer is needed
6226 when stack is realigned.
6227 (init_elim_table): Can eliminate frame pointer when stack is
6228 realigned and dynamic realigned argument pointer isn't used.
6229
6230 * rtl.h (assign_stack_local_1): Declare new funtion.
6231
6232 * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
6233 (TARGET_GET_DRAP_RTX): Likewise.
6234 (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
6235 TARGET_GET_DRAP_RTX.
6236
6237 * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
6238
6239 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
6240 STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
6241
6242 2008-07-30 Xuepeng Guo <xuepeng.guo@intel.com>
6243 H.J. Lu <hongjiu.lu@intel.com>
6244
6245 * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
6246 vdrap_reg, stack_realign and drap_reg_saved.
6247 (add_cfi): Don't allow redefining CFA when DRAP is used.
6248 (reg_save): Handle stack alignment.
6249 (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
6250 alignment. Don't generate DWARF information for (set fp sp)
6251 when DRAP is used.
6252 (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
6253 to INVALID_REGNUM.
6254 (int_loc_descriptor): Move prototype forward. Also define if
6255 DWARF2_UNWIND_INFO is true.
6256 (output_cfa_loc): Handle DW_CFA_expression.
6257 (build_cfa_aligned_loc): New.
6258 (based_loc_descr): Update assert for stack realign. For local
6259 variables, use sp+offset when stack is aligned without drap and
6260 fp+offset when stack is aligned with drap. For arguments, use
6261 cfa+offset when drap is used to align stack.
6262
6263 2008-07-30 Joey Ye <joey.ye@intel.com>
6264 H.J. Lu <hongjiu.lu@intel.com>
6265
6266 * config/i386/i386.c (ix86_force_align_arg_pointer_string):
6267 Break long line.
6268 (ix86_gen_andsp): New.
6269 (ix86_user_incoming_stack_boundary): Likewise.
6270 (ix86_default_incoming_stack_boundary): Likewise.
6271 (ix86_incoming_stack_boundary): Likewise.
6272 (ix86_can_eliminate): Likewise.
6273 (find_drap_reg): Likewise.
6274 (ix86_update_stack_boundary): Likewise.
6275 (ix86_get_drap_rtx): Likewise.
6276 (ix86_finalize_stack_realign_flags): Likewise.
6277 (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
6278 (TARGET_GET_DRAP_RTX): Likewise.
6279 (override_options): Overide option value for new options.
6280 (ix86_function_ok_for_sibcall): Remove check for
6281 force_align_arg_pointer.
6282 (ix86_handle_cconv_attribute): Likewise.
6283 (ix86_function_regparm): Likewise.
6284 (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
6285 (ix86_va_start): Replace virtual_incoming_args_rtx with
6286 crtl->args.internal_arg_pointer.
6287 (ix86_select_alt_pic_regnum): Check DRAP register.
6288 (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
6289 (ix86_compute_frame_layout): Compute frame layout wrt stack
6290 realignment.
6291 (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
6292 (ix86_expand_prologue): Decide if stack realignment is needed
6293 and generate prologue code accordingly.
6294 (ix86_expand_epilogue): Generate epilogue code wrt stack
6295 realignment is really needed or not.
6296
6297 * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
6298 (ABI_STACK_BOUNDARY): Likewise.
6299 (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
6300 (STACK_REALIGN_DEFAULT): Likewise.
6301 (INCOMING_STACK_BOUNDARY): Likewise.
6302 (MAX_STACK_ALIGNMENT): Likewise.
6303 (ix86_incoming_stack_boundary): Likewise.
6304 (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
6305 (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
6306 (CAN_ELIMINATE): Defined with ix86_can_eliminate.
6307 (machine_function): Remove force_align_arg_pointer.
6308
6309 * config/i386/i386.md (BX_REG): New.
6310 (R13_REG): Likewise.
6311
6312 * config/i386/i386.opt (mforce_drap): New.
6313 (mincoming-stack-boundary): Likewise.
6314 (mstackrealign): Add Init(-1).
6315
6316 * config/i386/i386-protos.h (ix86_can_eliminate): New
6317
6318 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
6319
6320 * doc/extend.texi: Update force_align_arg_pointer.
6321
6322 * doc/invoke.texi: Document -mincoming-stack-boundary. Update
6323 -mstackrealign.
6324
6325 * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
6326 (INCOMING_STACK_BOUNDARY): Likewise.
6327 (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
6328 (TARGET_GET_DRAP_RTX): Likewise.
6329
6330 2008-07-30 Andreas Schwab <schwab@suse.de>
6331
6332 PR rtl-optimization/36929
6333 * dse.c (replace_inc_dec): Use emit_insn_before instead of
6334 add_insn_before and fix argument order.
6335 (replace_inc_dec_mem): Handle NULL rtx.
6336
6337 2008-07-30 Andrew Jenner <andrew@codesourcery.com>
6338
6339 * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
6340 function.
6341 (arm_compute_initial_elimination_offset): Use it.
6342 (arm_compute_save_reg_mask): Include static chain save slot when
6343 calculating alignment.
6344 (arm_get_frame_offsets): Ditto.
6345 (thumb1_compute_save_reg_mask): Ensure we have a low register saved
6346 that we can use to decrement the stack when the stack decrement
6347 could be too big for an immediate value in a single insn.
6348 (thumb1_expand_prologue): Avoid using r12 for stack decrement.
6349
6350 2008-07-30 Richard Guenther <rguenther@suse.de>
6351
6352 PR tree-optimization/36967
6353 * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
6354 Release defs of statements we remove.
6355
6356 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
6357
6358 * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
6359 instead of NULL_RTVEC.
6360
6361 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
6362
6363 PR target/35866
6364
6365 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
6366 vector modes.
6367
6368 2008-07-30 Rafael Ávila de Espíndola <espindola@google.com>
6369
6370 * final.c (call_from_call_insn): New.
6371 (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
6372
6373 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
6374
6375 * configure.ac: Substitute ADA_CFLAGS.
6376 * configure: Regenerate.
6377 * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
6378 * Makefile.in: Remove mention of X_* variables.
6379 * config/pa/x-ada-hpux10: Remove.
6380 * config/pa/x-ada: Remove.
6381
6382 * doc/fragments.texi: Update.
6383
6384 2008-07-30 Olivier Hainque <hainque@adacore.com>
6385
6386 * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
6387 * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
6388 __dso_handle explicitly here.
6389
6390 2008-07-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6391
6392 PR 34389
6393 * c-typeck.c (build_binary_op): Encapsulate code into...
6394 * c-common.c (shorten_binary_op): ...this new function.
6395 (conversion_warning): Use the new function. Handle non-negative
6396 constant in bitwise-and.
6397 * c-common.h (shorten_binary_op): Declare.
6398
6399 2008-07-30 Olivier Hainque <hainque@adacore.com>
6400
6401 * scan.c (make_sstring_space): Add explicit conversions of
6402 allocator's return value.
6403 * fix-header.c (recognized_function): Likewise.
6404
6405 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6406
6407 * doc/cpp.texi: Update to GFDL 1.2.
6408 * doc/gcc.texi: Do not list GPL as Invariant Section.
6409 * doc/gccint.texi: Likewise. Update copyright years.
6410 * doc/install.texi: Update copyright years.
6411
6412 2008-07-30 Alan Modra <amodra@bigpond.net.au>
6413
6414 PR target/36955
6415 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
6416 a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
6417
6418 2008-07-29 Jan Hubicka <jh@suse.cz>
6419
6420 * c-decl.c (merge_decls): Do not handle DECL_INLINE.
6421 (grokdeclarator): Likewise.
6422 * langhooks.c (lhd_warn_unused_global_decl): Use
6423 DECL_DECLARED_INLINE_P.
6424 * print-tree.c (print_node): Remove DECL_INLINE check.
6425
6426 2008-07-29 Richard Guenther <rguenther@suse.de>
6427
6428 PR tree-optimization/36945
6429 * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
6430 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
6431 Record invariant addresses un-decomposed.
6432 (copy_reference_ops_from_call): Record reference call
6433 arguments properly. Simplify.
6434 * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
6435 helper split out from ...
6436 (create_component_ref_by_pieces): ... here. Simplify.
6437 Prepare for recursive invocation for call arguments.
6438 (create_expression_by_pieces): Adjust call to
6439 create_component_ref_by_pieces.
6440 (compute_avail): Process operand 2 of reference ops.
6441
6442 2008-07-29 Richard Guenther <rguenther@suse.de>
6443
6444 * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
6445
6446 2008-07-29 Jakub Jelinek <jakub@redhat.com>
6447
6448 * c-format.c (check_format_types): Revert unwanted checkin.
6449
6450 2008-07-29 Jan Hubicka <jh@suse.cz>
6451
6452 * flags.h (flag_really_no_inline): Remove.
6453 * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
6454 * toplev.c (flag_really_no_inline): Remove.
6455 * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
6456 * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
6457 (cgraph_decide_inlining_incrementally): Likewise.
6458 (compute_inline_parameters): Likewise.
6459 * opts.c (decode_options): Simplify.
6460 * c-opts.c (c_common_post_options): Do not set flag_no_inline.
6461 * common.opt (finline): Initialize to 1.
6462 * tree-inline.c (inlinable_function_p): Check flag_no_inline.
6463
6464 2008-07-29 Jan Hubicka <jh@suse.cz>
6465
6466 * predict.c (always_optimize_for_size_p): New function.
6467 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
6468 optimize_edge_for_size_p, optimize_edge_for_speed_p,
6469 optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
6470 functions.
6471 (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
6472 * function.c (prepare_function_start): Set default profile.
6473 * function.h (rtl_data): Add maybe_hot_insn_p.
6474 * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
6475 (construct_exit_block): Likewise.
6476 (tree_expand_cfg): Likewise.
6477 * basic-block.h
6478 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
6479 optimize_edge_for_size_p, optimize_edge_for_speed_p,
6480 optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
6481 (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
6482 Declare.
6483
6484 2008-07-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6485
6486 PR 34985
6487 * c-decl.c (merge_decls): Merge USED flags.
6488
6489 2008-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
6490
6491 * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
6492 valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
6493 next_stack, lab_false and lab_over trees.
6494
6495 2008-07-28 Richard Guenther <rguenther@suse.de>
6496
6497 PR tree-optimization/36957
6498 * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
6499 (useless_type_conversion_p): Remove.
6500 (types_compatible_p): Remove.
6501 * gimple.h (tree_ssa_useless_type_conversion): Declare.
6502 (useless_type_conversion_p): Declare.
6503 (types_compatible_p): Declare.
6504 (gimple_expr_type): Return the base type only if it is
6505 trivially convertible to the subtype.
6506
6507 2008-07-28 Andreas Tobler <a.tobler@schweiz.org>
6508
6509 * configure.ac: Use the m4_do macro to concatenate the warnings into
6510 one string in ACX_PROG_CC_WARNING_OPTS,
6511 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
6512 * configure: Regenerate.
6513
6514 2008-07-28 Richard Guenther <rguenther@suse.de>
6515
6516 * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
6517 (insert_fake_stores): Remove.
6518 (realify_fake_stores): Likewise.
6519 (execute_pre): Remove dead code.
6520 * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
6521 (find_func_aliases): Deal with it here instead.
6522 Re-enable gcc_unreachable call.
6523
6524 2008-07-28 Richard Guenther <rguenther@suse.de>
6525
6526 Merge from gimple-tuples-branch.
6527
6528 * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
6529 * gimple.def: New file.
6530 * gsstruct.def: Likewise.
6531 * gimple-iterator.c: Likewise.
6532 * gimple-pretty-print.c: Likewise.
6533 * tree-gimple.c: Removed. Merged into ...
6534 * gimple.c: ... here. New file.
6535 * tree-gimple.h: Removed. Merged into ...
6536 * gimple.h: ... here. New file.
6537
6538 * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
6539 * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
6540 --enable-checking=gimple flag.
6541 * config.in: Likewise.
6542 * configure: Regenerated.
6543
6544 * tree-ssa-operands.h: Tuplified.
6545 * tree-vrp.c: Likewise.
6546 * tree-loop-linear.c: Likewise.
6547 * tree-into-ssa.c: Likewise.
6548 * tree-ssa-loop-im.c: Likewise.
6549 * tree-dump.c: Likewise.
6550 * tree-complex.c: Likewise.
6551 * cgraphbuild.c: Likewise.
6552 * tree-ssa-threadupdate.c: Likewise.
6553 * tree-ssa-loop-niter.c: Likewise.
6554 * tree-pretty-print.c: Likewise.
6555 * tracer.c: Likewise.
6556 * gengtype.c: Likewise.
6557 * tree-loop-distribution.c: Likewise.
6558 * tree-ssa-loop-unswitch.c: Likewise.
6559 * cgraph.c: Likewise.
6560 * cgraph.h: Likewise.
6561 * tree-ssa-loop-manip.c: Likewise.
6562 * value-prof.c: Likewise.
6563 * tree-ssa-loop-ch.c: Likewise.
6564 * tree-tailcall.c: Likewise.
6565 * value-prof.h: Likewise.
6566 * tree.c: Likewise.
6567 * tree.h: Likewise.
6568 * tree-pass.h: Likewise.
6569 * ipa-cp.c: Likewise.
6570 * tree-scalar-evolution.c: Likewise.
6571 * tree-scalar-evolution.h: Likewise.
6572 * target.h: Likewise.
6573 * lambda-mat.c: Likewise.
6574 * tree-phinodes.c: Likewise.
6575 * diagnostic.h: Likewise.
6576 * builtins.c: Likewise.
6577 * tree-ssa-alias-warnings.c: Likewise.
6578 * cfghooks.c: Likewise.
6579 * fold-const.c: Likewise.
6580 * cfghooks.h: Likewise.
6581 * omp-low.c: Likewise.
6582 * tree-ssa-dse.c: Likewise.
6583 * ipa-reference.c: Likewise.
6584 * tree-ssa-uncprop.c: Likewise.
6585 * toplev.c: Likewise.
6586 * tree-gimple.c: Likewise.
6587 * tree-gimple.h: Likewise.
6588 * tree-chrec.c: Likewise.
6589 * tree-chrec.h: Likewise.
6590 * tree-ssa-sccvn.c: Likewise.
6591 * tree-ssa-sccvn.h: Likewise.
6592 * cgraphunit.c: Likewise.
6593 * tree-ssa-copyrename.c: Likewise.
6594 * tree-ssa-ccp.c: Likewise.
6595 * tree-ssa-loop-ivopts.c: Likewise.
6596 * tree-nomudflap.c: Likewise.
6597 * tree-call-cdce.c: Likewise.
6598 * ipa-pure-const.c: Likewise.
6599 * c-format.c: Likewise.
6600 * tree-stdarg.c: Likewise.
6601 * tree-ssa-math-opts.c: Likewise.
6602 * tree-ssa-dom.c: Likewise.
6603 * tree-nrv.c: Likewise.
6604 * tree-ssa-propagate.c: Likewise.
6605 * ipa-utils.c: Likewise.
6606 * tree-ssa-propagate.h: Likewise.
6607 * tree-ssa-alias.c: Likewise.
6608 * gimple-low.c: Likewise.
6609 * tree-ssa-sink.c: Likewise.
6610 * ipa-inline.c: Likewise.
6611 * c-semantics.c: Likewise.
6612 * dwarf2out.c: Likewise.
6613 * expr.c: Likewise.
6614 * tree-ssa-loop-ivcanon.c: Likewise.
6615 * predict.c: Likewise.
6616 * tree-ssa-loop.c: Likewise.
6617 * tree-parloops.c: Likewise.
6618 * tree-ssa-address.c: Likewise.
6619 * tree-ssa-ifcombine.c: Likewise.
6620 * matrix-reorg.c: Likewise.
6621 * c-decl.c: Likewise.
6622 * tree-eh.c: Likewise.
6623 * c-pretty-print.c: Likewise.
6624 * lambda-trans.c: Likewise.
6625 * function.c: Likewise.
6626 * langhooks.c: Likewise.
6627 * ebitmap.h: Likewise.
6628 * tree-vectorizer.c: Likewise.
6629 * function.h: Likewise.
6630 * langhooks.h: Likewise.
6631 * tree-vectorizer.h: Likewise.
6632 * ipa-type-escape.c: Likewise.
6633 * ipa-type-escape.h: Likewise.
6634 * domwalk.c: Likewise.
6635 * tree-if-conv.c: Likewise.
6636 * profile.c: Likewise.
6637 * domwalk.h: Likewise.
6638 * tree-data-ref.c: Likewise.
6639 * tree-data-ref.h: Likewise.
6640 * tree-flow-inline.h: Likewise.
6641 * tree-affine.c: Likewise.
6642 * tree-vect-analyze.c: Likewise.
6643 * c-typeck.c: Likewise.
6644 * gimplify.c: Likewise.
6645 * coretypes.h: Likewise.
6646 * tree-ssa-phiopt.c: Likewise.
6647 * calls.c: Likewise.
6648 * tree-ssa-coalesce.c: Likewise.
6649 * tree.def: Likewise.
6650 * tree-dfa.c: Likewise.
6651 * except.c: Likewise.
6652 * except.h: Likewise.
6653 * cfgexpand.c: Likewise.
6654 * tree-cfgcleanup.c: Likewise.
6655 * tree-ssa-pre.c: Likewise.
6656 * tree-ssa-live.c: Likewise.
6657 * tree-sra.c: Likewise.
6658 * tree-ssa-live.h: Likewise.
6659 * tree-predcom.c: Likewise.
6660 * lambda.h: Likewise.
6661 * tree-mudflap.c: Likewise.
6662 * ipa-prop.c: Likewise.
6663 * print-tree.c: Likewise.
6664 * tree-ssa-copy.c: Likewise.
6665 * ipa-prop.h: Likewise.
6666 * tree-ssa-forwprop.c: Likewise.
6667 * ggc-page.c: Likewise.
6668 * c-omp.c: Likewise.
6669 * tree-ssa-dce.c: Likewise.
6670 * tree-vect-patterns.c: Likewise.
6671 * tree-ssa-ter.c: Likewise.
6672 * tree-nested.c: Likewise.
6673 * tree-ssa.c: Likewise.
6674 * lambda-code.c: Likewise.
6675 * tree-ssa-loop-prefetch.c: Likewise.
6676 * tree-inline.c: Likewise.
6677 * tree-inline.h: Likewise.
6678 * tree-iterator.c: Likewise.
6679 * tree-optimize.c: Likewise.
6680 * tree-ssa-phiprop.c: Likewise.
6681 * tree-vect-transform.c: Likewise.
6682 * tree-object-size.c: Likewise.
6683 * tree-outof-ssa.c: Likewise.
6684 * cfgloop.c: Likewise.
6685 * system.h: Likewise.
6686 * tree-profile.c: Likewise.
6687 * cfgloop.h: Likewise.
6688 * c-gimplify.c: Likewise.
6689 * c-common.c: Likewise.
6690 * tree-vect-generic.c: Likewise.
6691 * tree-flow.h: Likewise.
6692 * c-common.h: Likewise.
6693 * basic-block.h: Likewise.
6694 * tree-ssa-structalias.c: Likewise.
6695 * tree-switch-conversion.c: Likewise.
6696 * tree-ssa-structalias.h: Likewise.
6697 * tree-cfg.c: Likewise.
6698 * passes.c: Likewise.
6699 * ipa-struct-reorg.c: Likewise.
6700 * ipa-struct-reorg.h: Likewise.
6701 * tree-ssa-reassoc.c: Likewise.
6702 * cfgrtl.c: Likewise.
6703 * varpool.c: Likewise.
6704 * stmt.c: Likewise.
6705 * tree-ssanames.c: Likewise.
6706 * tree-ssa-threadedge.c: Likewise.
6707 * langhooks-def.h: Likewise.
6708 * tree-ssa-operands.c: Likewise.
6709 * config/alpha/alpha.c: Likewise.
6710 * config/frv/frv.c: Likewise.
6711 * config/s390/s390.c: Likewise.
6712 * config/m32c/m32c.c: Likewise.
6713 * config/m32c/m32c-protos.h: Likewise.
6714 * config/spu/spu.c: Likewise.
6715 * config/sparc/sparc.c: Likewise.
6716 * config/i386/i386.c: Likewise.
6717 * config/sh/sh.c: Likewise.
6718 * config/xtensa/xtensa.c: Likewise.
6719 * config/stormy16/stormy16.c: Likewise.
6720 * config/ia64/ia64.c: Likewise.
6721 * config/rs6000/rs6000.c: Likewise.
6722 * config/pa/pa.c: Likewise.
6723 * config/mips/mips.c: Likewise.
6724
6725 2008-07-28 Simon Baldwin <simonb@google.com>
6726
6727 * c-pragma.c (handle_pragma_message): New function.
6728 (init_pragma): Register handle_pragma_message.
6729 * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
6730 documentation.
6731
6732 2008-07-27 Victor Kaplansky <victork@il.ibm.com>
6733
6734 PR tree-optimization/35252
6735 * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
6736 REALPART_EXPR to be considered as same load operation.
6737
6738 2008-07-27 Eric Botcazou <ebotcazou@adacore.com>
6739
6740 PR tree-optimization/36830
6741 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
6742 (expressions_equal_p): Return false if only one operand is null.
6743
6744 2008-07-26 Gerald Pfeifer <gerald@pfeifer.com>
6745
6746 * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
6747 version requirements.
6748
6749 2008-07-26 Olivier Hainque <hainque@adacore.com>
6750
6751 * collect2.c (symkind): New enum. Symbol kinds we care about.
6752 (is_ctor_dtor): Return symkind instead of int. Adjust prototype,
6753 code and head comment accordingly.
6754 (scan_prog_file): Use symkind names instead of bare integers.
6755
6756 2008-07-25 Jan Hubicka <jh@suse.cz>
6757
6758 * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
6759 DECL_INLINE.
6760 * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
6761 (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
6762 * dojump.c (clear_pending_stack_adjust): Likewise.
6763 * print-tree.c (print_node): Ignore DECL_INLINE.
6764 * tree-inline.c (inlinable_function_p): Likewise.
6765
6766 2008-07-25 Michael Meissner <gnu@the-meissners.org>
6767
6768 * doc/extend.texi (hot attribute): Document that the hot attribute
6769 turns on -O3 for some ports.
6770 (cold attribute): Document that the cold attribute turns on -Os
6771 for some ports
6772
6773 * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
6774 reflect function specific option support.
6775
6776 * target.h (struct target_option_hooks): Add fields to say whether
6777 the cold attribute implies -Os and the hot attribute implies -O3.
6778
6779 * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
6780 By default, do not turn on -Os for cold functions.
6781 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
6782 not turn on -O3 for hot functions.
6783
6784 * c-common.c (handle_hot_attribute): Use target hook to determine
6785 if hot functions should enable -O3.
6786 (handle_cold_attribute): Use target hook to determine if cold
6787 functions should enable -Os.
6788
6789 * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
6790 (override_options): Move disable scheduling to
6791 optimization_options.
6792 (optimization_options): Disable scheduling here, not
6793 override_options.
6794 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
6795 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
6796
6797 * config/ia64/ia64.c (ia64_override_options): Move setting
6798 scheduling flags to ia64_optimization_options.
6799 (ia64_optimization_options): Disable scheduling options here, and
6800 not in ia64_override_options.
6801 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
6802 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
6803
6804 2008-07-25 H.J. Lu <hongjiu.lu@intel.com>
6805
6806 PR target/36936
6807 * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
6808
6809 2008-07-25 Martin Jambor <mjambor@suse.cz>
6810
6811 PR tree-optimization/36926
6812 * ipa-prop.c (ipa_analyze_call_uses): Call
6813 ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
6814
6815 2008-07-25 Joseph Myers <joseph@codesourcery.com>
6816
6817 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
6818 movv2si_internal): Add mem = reg alternative.
6819
6820 2008-07-25 Andreas Tobler <a.tobler@schweiz.org>
6821
6822 PR bootstrap/36918
6823 * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
6824 DEFAULT_PCC_STRUCT_RETURN to 127.
6825
6826 2008-07-24 Jan Hubicka <jh@suse.cz>
6827
6828 * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
6829 (build_cgraph_edges): Likewise.
6830 * cgraph.c (cgraph_node): Do not update assembler hash.
6831 (cgraph_remove_node): Drop non-unit-at-a-time code.
6832 * tree-pass.h (pass_O0_always_inline): Remove.
6833 * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
6834 * toplev.c (process_options): Flag unit-at-a-time does not imply
6835 no section anchors.
6836 * cgraphunit.c: Update comments.
6837 (decide_is_function_needed): Drop non-unit-at-a-time mode.
6838 (cgraph_assemble_pending_functions): Remove.
6839 (cgraph_reset_node): Drop non-unit-at-a-time code.
6840 (cgraph_finalize_function): Likewise.
6841 (cgraph_analyze_function): Likewise.
6842 (cgraph_finalize_compilation_unit): Likewise.
6843 (cgraph_expand_function): Likewise.
6844 (cgraph_optimize): Likesise.
6845 (save_inline_function_body): Likewise.
6846 * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
6847 * tree-ssa-alias.c (maybe_be_aliased): Likewise.
6848 * ipa-inline.c: Update comments.
6849 (enum inlining_mode): remove INLINE_SPEED.
6850 (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
6851 (cgraph_mark_inline_edge): Likewise.
6852 (try_inline): Likewise.
6853 (cgraph_decide_inlining_incrementally): Likewise.
6854 (cgraph_gate_inlining): Remove.
6855 (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
6856 (cgraph_gate_early_inlining): Likewise.
6857 (gate_inline_passes): Remove.
6858 (pass_inline_parameters, pass_ipa_inline): Remove gates.
6859 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
6860 pass_O0_always_inline): Remove.
6861 * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
6862 * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
6863 * opts.c (no_unit_at_a_time_default): Remove.
6864 (decode_options): Remove flag_unit_at_a_time reset and warning.
6865 * opts.h (no_unit_at_a_time_default): Remove.
6866 * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
6867 early in GNU dialect.
6868 (merge_decls): Update comment; drop unit-at-a-time check.
6869 (finish_decl): Likewise.
6870 (grok_declaration): Remove flag_inline_trees code.
6871 (finish_functions): Return on function returning non-void on all
6872 statics.
6873 * ipa-tye-escape.c (gate_type_escape_vars): Remove.
6874 * cfgexpand.c (expand_one_static_var): Remove.
6875 (expand_one_var): Remove expand_one_static_var call.
6876 (expand_used_vars_for_block): Remove flag_unit_a_time check.
6877 * c-opts.c (c_common_post_options): Remove flag_inline_trees code
6878 and flag_unit_at_a-time compatibility checks.
6879 * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
6880 * tree-inline.c (flag_inline_trees): Remove.
6881 (inlinable_function_p): Don't check it.
6882 (expand_call_inline): Remove non-unit-at-a-time code.
6883 * tree-inline.h (flag_inline_trees): Remove.
6884 * tree-optimize.c (execute_early_local_optimizations): Remove
6885 unit-at-a-time checks.
6886 (tree_rest_of_compilation): Likewise.
6887 * combine.c (setup_incoming_promotions): Likewise.
6888 * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
6889 * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
6890 * passes.c (pass_inline_parameters): Update comments; remove
6891 O0_alwaysinline pass.
6892 (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
6893 (execute_one_pass): Likewise.
6894 * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
6895 (ix86_function_sseregparm): Likewise.
6896 * arm.c (arm_function_in_section_p): Likewise.
6897 * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
6898 * varpool.c: Update comments.
6899 (decide_is_variable_needed): Remove unit-at-a-time checks.
6900 (varpool_finalize_decl): Likewise.
6901
6902 2008-07-24 Kaz Kojima <kkojima@gcc.gnu.org>
6903
6904 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
6905 to 2 instead of -1.
6906 (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
6907
6908 2008-07-24 Kai Tietz <kai.tietz@onevision.com>
6909
6910 * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
6911 imp symbol extension.
6912
6913 2008-07-23 Ian Lance Taylor <iant@google.com>
6914
6915 * tree-vrp.c (infer_value_range): Ignore asm statements when
6916 looking for memory accesses for -fdelete-null-pointer-checks.
6917
6918 2008-07-24 Ben Elliston <bje@au.ibm.com>
6919
6920 * config/spu/spu-c.c (__vector_keyword): New variable.
6921 (vector_keyword): Likewise.
6922 (spu_categorize_keyword): New function.
6923 (spu_macro_to_expand): Likewise.
6924 (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
6925 compiling an ISO C dialect.
6926
6927 2008-07-24 Ben Elliston <bje@au.ibm.com>
6928
6929 * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
6930 conventional usage.
6931
6932 2008-07-23 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
6933
6934 * configure: Regenerate.
6935 * configure.ac: Require texinfo 4.7.
6936 * doc/install.texi: Document texinfo 4.7 requirement.
6937
6938 2008-07-23 Martin Jambor <mjambor@suse.cz>
6939
6940 * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
6941 rather than for DECL_SAVED_TREE.
6942 * ipa-prop.c: Include diagnostic.h.
6943 (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
6944 thoroughly.
6945 (ipa_detect_param_modifications): Function rewritten from scratch.
6946 (ipa_compute_jump_functions): Changed accesses to modification flags.
6947 (ipa_free_node_params_substructures): Update flags destruction.
6948 (ipa_node_duplication_hook): Update flags duplication.
6949 (ipa_print_all_params_modified): Updated flag access.
6950 * ipa-prop.h (struct ipa_param_flags): New structure.
6951 (struct ipa_node_params): New field modification_analysis_done,
6952 modified_flags changed into param_flags.
6953 (ipa_is_ith_param_modified): Changed to use new flags.
6954 * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
6955
6956 * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
6957 ipa-cp.c and split into two functions.
6958 (ipa_print_node_jump_functions): New function.
6959 (compute_scalar_jump_functions): New function.
6960 (type_like_member_ptr_p): New function.
6961 (compute_pass_through_member_ptrs): New function.
6962 (fill_member_ptr_cst_jump_function): New function.
6963 (determine_cst_member_ptr): New function.
6964 (compute_cst_member_ptr_arguments): New function.
6965 (ipa_compute_jump_functions): Complete rewrite.
6966 * ipa-prop.h (enum jump_func_type): Make explicit that we depend
6967 on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
6968 (struct ipa_member_ptr_cst): New structure.
6969 (union jump_func_value): New field member_cst.
6970 * ipa-cp.c (ipcp_lat_is_insertable): New function.
6971 (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
6972 jump function types.
6973 (ipcp_print_all_lattices): Slight fprintf rearrangement.
6974 (ipcp_print_all_structures): Call ipa_print_all_jump_functions
6975 instead of ipcp_print_all_jump_functions.
6976 (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
6977 only for replacable scalars.
6978
6979 * doc/invoke.texi (Optimize options): Add description of
6980 -findirect-inlining.
6981 * common.opt (flag_indirect_inlining): New flag.
6982 * opts.c (decode_options): Set flag_indirect_inlining when
6983 optimize >= 3.
6984
6985 * ipa-inline.c: Include ipa-prop.h.
6986 (inline_indirect_intraprocedural_analysis): New function.
6987 (inline_generate_summary): Allocate parameter and argument info
6988 structures, call inline_indirect_intraprocedural_analysis on each
6989 node when doing indirect inlining and deallocate indirect inlining
6990 data structures in the end.
6991 * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
6992 (free_all_ipa_structures_after_iinln): New function.
6993 (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
6994 done.
6995 * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
6996
6997 * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
6998 (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
6999 of computing the frequency separately.
7000 (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
7001 of computing the frequency separately.
7002 * ipa-cp.c (ipcp_print_all_structures): Replace a call to
7003 ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
7004 * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
7005 (ipa_get_stmt_member_ptr_load_param): New function.
7006 (ipa_is_ssa_with_stmt_def): New function.
7007 (ipa_note_param_call): New function.
7008 (ipa_analyze_call_uses): New function.
7009 (ipa_analyze_stmt_uses): New function.
7010 (ipa_analyze_params_uses): New function.
7011 (ipa_free_node_params_substructures): Also free the param_calls linked
7012 list.
7013 (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
7014 (ipa_print_node_param_flags): New function.
7015 (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
7016 (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
7017 * ipa-prop.h (struct ipa_param_flags): New field called.
7018 (struct ipa_param_call_note): New structure.
7019 (struct ipa_node_params): New fields param_calls and
7020 uses_analysis_done.
7021 (ipa_is_ith_param_called): New function.
7022 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
7023 ipa_analyze_params_uses and dump parameter flags.
7024
7025 * ipa-inline.c (cgraph_decide_recursive_inlining): Call
7026 ipa_propagate_indirect_call_infos if performing indirect inlining,
7027 pass a new parameter new_edges to it.
7028 (add_new_edges_to_heap): New fucntion.
7029 (cgraph_decide_inlining_of_small_functions): New vector
7030 new_indirect_edges for newly found indirect edges , call
7031 ipa_propagate_indirect_call_infos after inlining.
7032 (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
7033 inlining if performing indirect inlining. Call
7034 free_all_ipa_structures_after_iinln when doing so too.
7035 (inline_generate_summary): Do not call
7036 free_all_ipa_structures_after_iinln here.
7037 * ipa-prop.c (update_jump_functions_after_inlining): New function.
7038 (print_edge_addition_message): New function.
7039 (update_call_notes_after_inlining): New function.
7040 (propagate_info_to_inlined_callees): New function.
7041 (ipa_propagate_indirect_call_infos): New function.
7042 * ipa-prop.h: Include cgraph.h
7043 (struct ipa_param_call_note): Fields reordered, new field processed.
7044 * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
7045 flag indirect_call.
7046 * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
7047 rediscovered call statements.
7048 * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
7049 (dump_cgraph_node): Dump also the indirect_call flag.
7050 (cgraph_clone_edge): Copy also the indirect_call flag.
7051 * tree-inline.c (copy_bb): Do not check for fndecls from call
7052 expressions, check for edge availability when moving clones.
7053 (get_indirect_callee_fndecl): New function.
7054 (expand_call_inline): If callee declaration is not apprent from
7055 the statement, try calling get_indirect_callee_fndecl. Do not
7056 issue warnings or call sorry when not inlinings an indirect edge.
7057 * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
7058
7059 * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
7060 bit more frandly to matching.
7061 * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
7062 * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
7063 * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
7064
7065 2008-07-23 Michael Meissner <gnu@the-meissners.org>
7066
7067 PR 36907
7068 * opth-gen.awk: Suppress function specific features when building
7069 target libraries.
7070 * optc-gen.awk: Ditto.
7071
7072 2008-07-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7073
7074 PR 35058
7075 * diagnostic.c (pedwarn): Add opt parameter.
7076 (pedwarn0): New.
7077 * c-tree.h (pedwarn_init): Add opt parameter.
7078 (pedwarn_c90): Likewise.
7079 (pedwarn_c99): Likewise.
7080 * c-errors.c (pedwarn_c99): Likewise.
7081 (pedwarn_c90): Likewise.
7082 * toplev.h (pedwarn): Update declaration.
7083 (pedwarn0): Declare.
7084 * c-lex.c: All calls to pedwarn changed.
7085 * builtins.c: All calls to pedwarn changed.
7086 * toplev.c: All calls to pedwarn changed.
7087 * c-decl.c: All calls to pedwarn changed.
7088 * c-typeck.c: All calls to pedwarn changed.
7089 * c-common.c: All calls to pedwarn changed.
7090 * c-parser.c: All calls to pedwarn changed.
7091
7092 2008-07-23 Michael Meissner <gnu@the-meissners.org>
7093 Karthik Kumar <karthikkumar@gmail.com>
7094
7095 * attribs.c (file scope): Include c-common.h.
7096 (decl_attributes): Add support for #pragma GCC optimize and
7097 #pragma GCC option.
7098
7099 * targhooks.c (default_can_inline_p): New function that is the
7100 default for the TARGET_CAN_INLINE_P target hook.
7101
7102 * targhooks.h (default_can_inline_p): Add declaration.
7103
7104 * tree.c (cl_optimization_node): New static tree for building
7105 OPTIMIZATION_NODE tree.
7106 (cl_target_option_node): New static tree for building
7107 TARGET_OPTION_NODE tree.
7108 (cl_option_hash_table): New hash table for hashing
7109 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
7110 (cl_option_hash_hash): New function to provide the hash value for
7111 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
7112 (cl_option_hash_eq): New function to provide an equality test for
7113 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
7114 (tree_code_size): Add support for OPTIMIZATION_NODE and
7115 TARGET_OPTION_NODE trees.
7116 (tree_code_structure): Add support for OPTIMIZATION_NODE and
7117 TARGET_OPTION_NODE trees.
7118 (build_optimization_node): Build a tree that has all of the
7119 current optimization options.
7120 (build_target_option_node): Build a tree that has the target
7121 options that might be changed on a per function basis.
7122
7123 * tree.h (file scope): Include options.h.
7124 (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
7125 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
7126 (TREE_OPTIMIZATION): Ditto.
7127 (TREE_TARGET_SPECIFIC): Ditto.
7128 (struct tree_function_decl): Add fields for remembering the
7129 current optimization options and target specific options.
7130 (struct tree_optimization_option): New tree variant that remembers
7131 the optimization options.
7132 (struct tree_target_option): New tree variant that remembers the
7133 target specific flags that might change for compiling a particular
7134 function.
7135 (union tree_node): Include tree_optimization_option and
7136 tree_target_option fields.
7137 (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
7138 TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
7139 TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
7140 TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
7141 TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
7142 optimization and target options.
7143 (optimization_default_node): New macro to refer to global_trees
7144 field.
7145 (optimization_current_node): Ditto.
7146 (optimization_cold_node): Ditto.
7147 (optimization_hot_node): Ditto.
7148 (target_option_default_node): Ditto.
7149 (target_option_current_node): Ditto.
7150 (current_option_pragma): Ditto.
7151 (current_optimize_pragma): Ditto.
7152
7153 * target.h (struct gcc_target): Add valid_option_attribute_p,
7154 target_option_save, target_option_restore, target_option_print,
7155 target_option_pragma_parse, and can_inline_p hooks.
7156
7157 * toplev.h (parse_optimize_options): Add declaration.
7158 (fast_math_flags_struct_set_p): Ditto.
7159
7160 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
7161 adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
7162 optimize is used.
7163
7164 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
7165 tree_can_inline_p hook to see if one function can inline another.
7166 (cgraph_decide_inlining): Ditto.
7167 (cgraph_decide_inlining_incrementally): Ditto.
7168
7169 * opts.c (decode_options): Add support for running multiple times
7170 to allow functions with different target or optimization options
7171 than was specified on the command line.
7172 (fast_math_flags_struct_set_p): New function that is similar to
7173 fast_math_flags_set_p, except it uses the values in the
7174 cl_optimization structure instead of global variables.
7175
7176 * optc-gen.awk: Add support for TargetSave to allow a back end to
7177 declare new fields that need to be saved when using function
7178 specific options. Include flags.h and target.h in the options.c
7179 source. Add support for Save to indicate which options can be set
7180 for individual functions. Generate cl_optimize_save,
7181 cl_optimize_restore, cl_optimize_print, cl_target_option_save,
7182 cl_target_option_restore, cl_target_option_print functions to
7183 allow functions to use different optimization or target options.
7184
7185 * opt-functions.awk (var_type_struct): Return the type used for
7186 storing the field in a structure.
7187
7188 * opth-gen.awk: Add support for TargetSave to allow a back end to
7189 declare new fields that need to be saved when using function
7190 specific options. Add support for Save to indicate which options
7191 can be set for individual functions. Only generate one extern for
7192 Mask fields. Generate cl_optimization and cl_target_option
7193 structures to remember optimization and target options.
7194
7195 * treestruct.def (TS_OPTIMIZATION): Add support for garbage
7196 collecting new tree nodes.
7197 (TS_TARGET_OPTION): Ditto.
7198
7199 * c-decl.c (merge_decls): Merge function specific target and
7200 optimization options.
7201
7202 * function.c (invoke_set_current_function_hook): If the function
7203 uses different optimization options, change the global variables
7204 to reflect this.
7205
7206 * coretypes.h (struct cl_optimization): Add forward reference.
7207 (struct cl_target_option): Ditto.
7208
7209 * c-pragma.c (option_stack): New static vector to remember the
7210 current #pragma GCC option stack.
7211 (handle_pragma_option): New function to support #pragma GCC option
7212 to change target options.
7213 (optimize_stack): New static vector to remember the current
7214 #pragma GCC optimize stack.
7215 (handle_pragma_optimize): New function to support #pragma GCC
7216 optimize to change optimization options.
7217 (init_pragma): Add support for #pragma GCC optimize and #pragma
7218 GCC option.
7219
7220 * tree.def (OPTIMIZATION_NODE): New tree code for remembering
7221 optimization options.
7222 (TARGET_OPTION_NODE): New tree code for remembering certain target
7223 options.
7224
7225 * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
7226 TARGET_OPTION_NODE trees.
7227
7228 * common.opt (-O): Add Optimization flag.
7229 (-Os): Ditto.
7230 (-fmath-errno): Ditto.
7231 (-falign-functions): Add UInteger flag to make sure flag gets full
7232 int in cl_optimization structure.
7233 (-falign-jumps): Ditto.
7234 (-falign-labels): Ditto.
7235 (-falign-loops): Ditto.
7236 (-fsched-stalled-insns): Ditto.
7237 (-fsched-stalled-insns-dep): Ditto.
7238
7239 * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
7240 definition.
7241 (TARGET_OPTION_SAVE): Ditto.
7242 (TARGET_OPTION_RESTORE): Ditto.
7243 (TARGET_OPTION_PRINT): Ditto.
7244 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
7245 (TARGET_CAN_INLINE_P): Ditto.
7246 (TARGET_INITIALIZER): Add new hooks.
7247
7248 * tree-inline.c (tree_can_inline_p): New function to determine
7249 whether one function can inline another. Check if the functions
7250 use compatible optimization options, and also call the backend
7251 can_inline_p hook.
7252
7253 * tree-inline.h (tree_can_inline_p): Add declaration.
7254
7255 * c-common.c (c_common_attribute): Add support for option and
7256 optimize attributes.
7257 (handle_option_attribute): Add support for the option attribute to
7258 allow the user to specify different target options for compiling a
7259 specific function.
7260 (handle_optimize_attribute): Add support for the optimize
7261 attribute to allow the user to specify different optimization
7262 options for compiling a specific function.
7263 (handle_hot_attribute): Turn on -O3 optimization for this one
7264 function if it isn't the default optimization level.
7265 (handle_cold_attribute): Turn on -Os optimization for this one
7266 function if it insn't the default optimization.
7267 (const_char_p): New const char * typedef.
7268 (optimize_args): New static vector to remember the optimization
7269 arguments.
7270 (parse_optimize_options): New function to set up the optimization
7271 arguments from either the optimize attribute or #pragma GCC optimize.
7272
7273 * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
7274 (builtin_define_std): Ditto.
7275
7276 * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
7277 Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
7278 (x86_64-*-*): Ditto.
7279
7280 * Makefile.in (TREE_H): Add options.h.
7281 (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
7282
7283 * doc/extend.texi (option attribute): Document new attribute.
7284 (optimize attribute): Ditto.
7285 (hot attribute): Document hot attribute sets -O3.
7286 (cold attribute): Document cold attribute sets -Os.
7287 (#pragma GCC option): Document new pragma.
7288 (#pragma GCC optimize): Ditto.
7289
7290 * doc/options.texi (TargetSave): Document TargetSave syntax.
7291 (UInteger): Document UInteger must be used for certain flags.
7292 (Save): Document Save option to create target specific options
7293 that can be saved/restored on a function specific context.
7294
7295 * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
7296 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
7297
7298 * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
7299 (TARGET_OPTION_SAVE): Ditto.
7300 (TARGET_OPTION_RESTORE): Ditto.
7301 (TARGET_OPTION_PRINT): Ditto.
7302 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
7303 (TARGET_CAN_INLINE_P): Ditto.
7304
7305 * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
7306 -mfpmath=sse,387.
7307 (-mfpmath=both): Ditto.
7308
7309 2008-07-23 Michael Meissner <gnu@the-meissners.org>
7310 Karthik Kumar <karthikkumar@gmail.com>
7311
7312 * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
7313 (TARGET_POPCNT): Ditto.
7314 (TARGET_SAHF): Ditto.
7315 (TARGET_AES): Ditto.
7316 (TARGET_PCLMUL): Ditto.
7317 (TARGET_CMPXCHG16B): Ditto.
7318 (TARGET_RECIP): Move switch into target_flags.
7319 (TARGET_FUSED_MADD): Ditto.
7320 (ix86_arch_features): Make an unsigned char type.
7321 (ix86_tune_features): Ditto.
7322 (OVERRIDE_OPTIONS): Add bool argument to override_options call.
7323 (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
7324 (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
7325
7326 * config/i386/i386.opt (arch): New TargetSave field to define
7327 fields that need to be saved for function specific option support.
7328 (tune): Ditto.
7329 (fpmath): Ditto.
7330 (branch_cost): Ditto.
7331 (ix86_isa_flags_explicit): Ditto.
7332 (tune_defaulted): Ditto.
7333 (arch_specified): Ditto.
7334 (-m128-long-double): Add Save flag to save option for target
7335 specific option support.
7336 (-m80387): Ditto.
7337 (-maccumulate-outgoing-args): Ditto.
7338 (-malign-double): Ditto.
7339 (-malign-stringops): Ditto.
7340 (-mfancy-math-387): Ditto.
7341 (-mhard-float): Ditto.
7342 (-mieee-fp): Ditto.
7343 (-minline-all-stringops): Ditto.
7344 (-minline-stringops-dynamically): Ditto.
7345 (-mms-bitfields): Ditto.
7346 (-mno-align-stringops): Ditto.
7347 (-mno-fancy-math-387): Ditto.
7348 (-mno-push-args): Ditto.
7349 (-mno-red-zone): Ditto.
7350 (-mpush-args): Ditto.
7351 (-mred-zone): Ditto.
7352 (-mrtd): Ditto.
7353 (-msseregparm): Ditto.
7354 (-mstack-arg-probe): Ditto.
7355 (-m32): Ditto.
7356 (-m64): Ditto.
7357 (-mmmx): Ditto.
7358 (-m3dnow): Ditto.
7359 (-m3dnowa): Ditto.
7360 (-msse): Ditto.
7361 (-msse2): Ditto.
7362 (-msse3): Ditto.
7363 (-msse4.1): Ditto.
7364 (-msse4.2): Ditto.
7365 (-msse4): Ditto.
7366 (-mno-sse4): Ditto.
7367 (-msse4a): Ditto.
7368 (-msse5): Ditto.
7369 (-mrecip): Move flag into target_flags.
7370 (-mcld): Ditto.
7371 (-mno-fused-madd): Ditto.
7372 (-mfused-madd): Ditto.
7373 (-mabm): Move flag into ix86_isa_flags.
7374 (-mcx16): Ditto.
7375 (-mpopcnt): Ditto.
7376 (-msahf): Ditto.
7377 (-maes): Ditto.
7378 (-mpclmul): Ditto.
7379
7380 * config/i386/i386-c.c: New file for #pragma support.
7381 (ix86_target_macros_internal): New function to #define or #undef
7382 target macros based when the user uses the #pragma GCC option to
7383 change target options.
7384 (ix86_pragma_option_parse): New function to add #pragma GCC option
7385 support.
7386 (ix86_target_macros): Move defining the target macros here from
7387 TARGET_CPU_CPP_BUILTINS in i386.h.
7388 (ix86_register_pragmas): Register the #pragma GCC option hook. If
7389 defined, initialize any subtarget #pragmas.
7390
7391 * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
7392 REGISTER_TARGET_PRAGMAS.
7393
7394 * config/i386/t-i386: New file for x86 dependencies.
7395 (i386.o): Make dependencies mirror the include files used.
7396 (i386-c.o): New file, add dependencies.
7397
7398 * config/i386/i386-protos.h (override_options): Add bool argument.
7399 (ix86_valid_option_attribute_tree): Add declaration.
7400 (ix86_target_macros): Ditto.
7401 (ix86_register_macros): Ditto.
7402
7403 * config/i386/i386.c (ix86_tune_features): Move initialization of
7404 the target masks to initial_ix86_tune_features to allow functions
7405 to have different target options. Make type unsigned char,
7406 instead of unsigned int.
7407 (initial_ix86_tune_features): New static vector to hold processor
7408 masks for the tune variables.
7409 (ix86_arch_features): Move initialization of the target masks to
7410 initial_ix86_arch_features to allow functions to have different
7411 target options. Make type unsigned char, instead of unsigned int.
7412 (initial_ix86_arch_features): New static vector to hold processor
7413 masks for the arch variables.
7414 (enum ix86_function_specific_strings): New enum to describe the
7415 string options used for attribute((option(...))).
7416 (ix86_target_string): New function to return a string that
7417 describes the target options.
7418 (ix86_debug_options): New function to print the current options in
7419 the debugger.
7420 (ix86_function_specific_save): New function hook to save the
7421 function specific global variables in the cl_target_option structure.
7422 (ix86_function_specific_restore): New function hook to restore the
7423 function specific variables from the cl_target_option structure to
7424 the global variables.
7425 (ix86_function_specific_print): New function hook to print the
7426 target specific options in the cl_target_option structure.
7427 (ix86_valid_option_attribute_p): New function hook to validate
7428 attribute((option(...))) arguments.
7429 (ix86_valid_option_attribute_tree): New function that is common
7430 code between attribute((option(...))) and #pragma GCC option
7431 support that parses the options and returns a tree holding the options.
7432 (ix86_valid_option_attribute_inner_p): New helper function for
7433 ix86_valid_option_attribute_tree.
7434 (ix86_can_inline_p): New function hook to decide if one function
7435 can inline another on a target specific basis.
7436 (ix86_set_current_function); New function hook to switch target
7437 options if the user used attribute((option(...))) or #pragma GCC
7438 option.
7439 (ix86_tune_defaulted): Move to static file scope from
7440 override_options.
7441 (ix86_arch_specified): Ditto.
7442 (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
7443 ix86_isa_flags.
7444 (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
7445 (OPTION_MASK_ISA_ABM_SET): Ditto.
7446 (OPTION_MASK_ISA_POPCNT_SET): Ditto.
7447 (OPTION_MASK_ISA_CX16_SET): Ditto.
7448 (OPTION_MASK_ISA_SAHF_SET): Ditto.
7449 (OPTION_MASK_ISA_AES_UNSET): Ditto.
7450 (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
7451 (OPTION_MASK_ISA_ABM_UNSET): Ditto.
7452 (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
7453 (OPTION_MASK_ISA_CX16_UNSET): Ditto.
7454 (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
7455 (struct ptt): Move to static file scope from override_options.
7456 (processor_target_table): Ditto.
7457 (cpu_names): Ditto.
7458 (ix86_handle_option): Add support for options that are now isa options.
7459 (override_options): Add support for declaring functions that
7460 support different target options than were specified on the
7461 command line. Move struct ptt, processor_target_table, cpu_names,
7462 ix86_tune_defaulted, ix86_arch_specified to static file scope.
7463 Add bool argument. Fix up error messages so the appropriate error
7464 is given for either command line or attribute.
7465 (ix86_previous_fndecl): New static to remember previous function
7466 declaration to see if we need to change target options.
7467 (ix86_builtins_isa): New array to record the ISA of each builtin
7468 function.
7469 (def_builtin): Always create the builtin function, even if the
7470 current ISA doesn't support it.
7471 (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
7472 tests for those builtins.
7473 (ix86_init_builtins): Remove TARGET_MMX test for calling
7474 ix86_init_mmx_sse_builtins.
7475 (ix86_expand_builtin): If the current ISA doesn't support a given
7476 builtin, signal an error.
7477 (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
7478 (TARGET_SET_CURRENT_FUNCTION): Ditto.
7479 (TARGET_OPTION_SAVE): Ditto.
7480 (TARGET_OPTION_RESTORE): Ditto.
7481 (TARGET_OPTION_PRINT): Ditto.
7482 (TARGET_CAN_INLINE_P): Ditto.
7483
7484 2008-07-22 Rafael Ávila de Espíndola <espindola@google.com>
7485
7486 * c-typeck.c (build_external_ref): Don't call assemble_external.
7487 * final.c (output_operand): Call assemble_external.
7488
7489 2008-07-21 DJ Delorie <dj@redhat.com>
7490
7491 * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
7492 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
7493
7494 2008-07-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7495
7496 * config/spu/spu.md ("div<mode>3"): Convert into expander, move
7497 original insn and splitter contents into ...
7498 ("*div<mode>3_fast"): ... this new pattern. Enable only if
7499 flag_unsafe_math_optimizations. Add dummy scratch register.
7500 ("*div<mode>3_adjusted"): New insn and splitter. Enable only if
7501 !flag_unsafe_math_optimizations. Returns number with next
7502 highest magnitude if this is still less or equal to the true
7503 quotient in magnitude.
7504
7505 2008-07-21 Rafael Ávila de Espíndola <espindola@google.com>
7506
7507 * Makefile.in: Replace toplev.h with TOPLEV_H.
7508 * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
7509 * c-lex.c (fe_file_change): Don't set in_system_header.
7510 * c-parser.c (c_token): Remove in_system_header.
7511 (c_lex_one_token): Don't set in_system_header.
7512 (c_parser_set_source_position_from_token): Don't set in_system_header.
7513 * diagnostic.c (diagnostic_report_diagnostic): Use location from
7514 diagnostic_info.
7515 (warning_at): New.
7516 * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
7517 * flags.h (in_system_header): Remove.
7518 * function.c (saved_in_system_header): Remove.
7519 (push_cfun): Don't set in_system_header.
7520 (pop_cfun): Don't set in_system_header.
7521 (push_struct_function): Don't set in_system_header.
7522 * input.h (expanded_location): Add sysp.
7523 (in_system_header_at): New.
7524 (in_system_header): New.
7525 * toplev.c (in_system_header): Remove.
7526 * toplev.h: Include input.h
7527 (warning_at): New.
7528 * tree-cfg.c (execute_warn_function_return): Call warning_at.
7529 * tree-ssa.c (warn_uninit): Call warning_at.
7530 (warn_uninitialized_var): Update calls to warn_uninit.
7531 (warn_uninitialized_phi): Update calls to warn_uninit.
7532 * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
7533 (expand_location): Initialize xloc.sysp.
7534 * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
7535 (tree_decl_with_vis): Remove in_system_header_flag.
7536
7537 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
7538
7539 PR target/36822
7540 * recog.c (asm_operand_ok): Change the order of the extra
7541 memory constraint checks.
7542
7543 2008-07-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
7544
7545 PR tree-opt/36879
7546 * tree-switch-conversion.c (build_one_array): Call
7547 varpool_mark_needed_node and varpool_finalize_decl
7548 instead of assemble_variable.
7549
7550 2008-07-19 Jan Hubicka <jh@suse.cz>
7551
7552 * cgraph.c (cgraph_add_new_function): Do early local passes.
7553 * tree-nrv.c (gate_pass_return_slot): New gate.
7554 (pass_nrv): Add the gate.
7555 * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
7556 functions.
7557 (coalesce_ssa_name): Coalesce SSA names.
7558 * tree-ssa-live.c (remove_unused_locals): Be more conservative when
7559 not optimizing so unused user vars remains visible.
7560 * common.opt (flag_tree_ter): Always enable by default.
7561 * tree-ssa-ter.c: Include flags.h
7562 (is_replaceable_p): Check that locations match; when aliasing is missing
7563 be conservative about loads.
7564 * tree-optimize.c (gate_init_datastructures): Remove.
7565 (pass_init_datastructures): New.
7566 * passes.c: Reorder passes so we always go into SSA.
7567
7568 2008-07-19 Jan Hubicka <jh@suse.cz>
7569
7570 * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
7571 * doc/invoke.texi (--combine): Likewise.
7572 (-finline-functions-called-once): Update levels when enabled.
7573 (-funit-at-a-time): Document new behaviour.
7574 (-ftoplevel-reorder): Document that it is enabled -O0 and imply
7575 -fno-section-anchors when disabled explicitly.
7576 (inline params): They are not ignored now.
7577 (precompiled headers): Remove unit-at-a-time as being incompatible.
7578 * opts.c (decode_options): Handle unit-at-a-time as alias;
7579 imply -fno-section-anchors when toplevel reorder is disabled
7580 explicitly.
7581 * common.opt (ftoplevel-reorder): Set default value to 2.
7582 (funit-at-a-time): Set default value to 1.
7583 * config/rs6000/rs6000.c (optimization_options): Set section anchors
7584 to 2.
7585
7586 2008-07-19 Jan Hubicka <jh@suse.cz>
7587
7588 * builtins.c (expand_builtin_int_roundingfn,
7589 expand_builtin_int_roundingfn_2): Do not take subtarget argument;
7590 it is not useful.
7591
7592 2008-07-19 Richard Guenther <rguenther@suse.de>
7593
7594 PR bootstrap/36864
7595 * tree-ssa-sccvn.h (get_constant_value_id): Declare.
7596 * tree-ssa-sccvn.c (get_constant_value_id): New function.
7597 * tree-ssa-pre.c (get_expr_value_id): For newly created
7598 constant value-ids make sure to add the expression to its
7599 expression-set.
7600
7601 2008-07-19 Jakub Jelinek <jakub@redhat.com>
7602
7603 PR middle-end/36877
7604 * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
7605 return value of the builtin is ignored.
7606
7607 2008-07-19 Olivier Hainque <hainque@adacore.com>
7608
7609 * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
7610 bits, a C conformant malloc implementation has to provide.
7611 * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
7612
7613 2008-07-19 Joseph Myers <joseph@codesourcery.com>
7614
7615 PR target/36780
7616 PR target/36827
7617 * reload.c (find_reloads_subreg_address): Only reload address if
7618 reloaded == 0, not for reloaded != 1.
7619
7620 Revert:
7621 2008-07-16 Joseph Myers <joseph@codesourcery.com>
7622 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
7623 (m32c_legitimate_address_p): Handle "++rii" addresses created by
7624 m32c_legitimize_reload_address.
7625
7626 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
7627 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
7628 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
7629
7630 2008-07-19 Olivier Hainque <hainque@adacore.com>
7631
7632 * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
7633 argument, saying whether nested array are to be collapsed
7634 into a single array type DIE with multiple subscripts.
7635 (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
7636 issues, centralize the nested array types collapsing control and
7637 disable the transformation for Ada.
7638
7639 2008-07-18 Uros Bizjak <ubizjak@gmail.com>
7640
7641 PR target/36786
7642 * config/i386/i386.md (x86_64_shift_adj_1): Rename from
7643 x86_64_shift_adj.
7644 (x86_64_shift_adj_2): New expander.
7645 (x86_64_shift_adj_3): Ditto.
7646 * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
7647 to split TImode operands.
7648 (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
7649 (ix86_split_lshr): Ditto.
7650
7651 2008-07-18 Kris Van Hees <kris.van.hees@oracle.com>
7652
7653 * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
7654 and __CHAR32_TYPE__.
7655 * c-typeck.c (digest_init): Support char16_t and char32_t.
7656 (set_nonincremental_init_from_string): Idem.
7657
7658 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
7659
7660 PR middle-end/36859
7661 * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
7662 PREFERRED_STACK_BOUNDARY.
7663 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
7664
7665 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
7666
7667 PR middle-end/36858
7668 * function.c (locate_and_pad_parm): Cap boundary earlier.
7669
7670 2008-07-17 Julian Brown <julian@codesourcery.com>
7671
7672 * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
7673 no-op for targets which don't use DLLs.
7674
7675 2008-07-17 Martin Jambor <mjambor@suse.cz>
7676
7677 * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
7678 that nodes are relevant by examining the node->analyzed flag.
7679 (ipcp_init_stage): Check which nodes are relevant, assert that the
7680 relevant ones are also required.
7681 (ipcp_propagate_stage): Check on the side arrays are properly
7682 allocated.
7683 (ipcp_print_all_jump_functions): Make sure not to touch any node
7684 that is not analyzed or an edge that does not have a corresponding
7685 entry in the on-the-side vectors.
7686 (ipcp_function_scale_print): Likewise.
7687 (ipcp_update_callgraph): Check that the node is relevant.
7688 (ipcp_insert_stage): Check that the node is relevant. Check there is
7689 an info for every node and edge.
7690 * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
7691 (ipa_print_all_tree_maps): Likewise and a new variable info.
7692 (ipa_print_all_params_modified): Likewise.
7693 * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
7694
7695 2008-07-17 Roman Zippel <zippel@linux-m68k.org>
7696
7697 PR target/25343
7698 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
7699
7700 2008-07-17 Paolo Bonzini <bonzini@gnu.org>
7701
7702 PR rtl-optimization/36753
7703 * fwprop.c (use_killed_between): Don't shortcut
7704 single-definition global registers.
7705
7706 2008-07-16 Jan Hubicka <jh@suse.cz>
7707
7708 * cgraph.h (varpool_empty_needed_queue): Declare.
7709 * cgraphunit.c (output_in_order): Mark all variables as needed;
7710 empty the queue.
7711 * varpool.c (varpool_assemble_node): Update debug queue.
7712 (varpool_assemble_pending_decls): Don't do it here.
7713 (varpool_empty_needed_queue): New function.
7714
7715 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7716
7717 * recog.c (peephole2_optimize): Fix formatting.
7718
7719 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7720
7721 * c-pch.c (get_ident): Avoid C++ keywords.
7722 * combine-stack-adj.c (single_set_for_csa): Likewise.
7723 * final.c (asm_insn_count, final_scan_insn, alter_subreg,
7724 output_asm_insn): Likewise.
7725 * reload.c (push_secondary_reload, find_reusable_reload,
7726 push_reload, combine_reloads, find_reloads,
7727 debug_reload_to_stream): Likewise.
7728 * reload.h (struct reload): Likewise.
7729 * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
7730 allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
7731 emit_output_reload_insns): Likewise.
7732 * targhooks.c (default_secondary_reload): Likewise.
7733 * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
7734
7735 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7736
7737 * recog.c (validate_change_1, validate_change,
7738 validate_unshare_change, validate_replace_rtx_1, struct
7739 funny_match, constrain_operands, peephole2_optimize): Avoid C++
7740 keywords.
7741 * reload.c (push_secondary_reload, secondary_reload_class,
7742 scratch_reload_class, find_valid_class, find_reusable_reload,
7743 push_reload, find_dummy_reload, find_reloads_address_1,
7744 find_reloads_address_part, find_equiv_reg): Likewise.
7745 * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
7746 choose_reload_regs): Likewise.
7747 * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
7748 Likewise.
7749 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
7750 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
7751 * sched-rgn.c (concat_INSN_LIST): Likewise.
7752 * stor-layout.c (mode_for_size, mode_for_size_tree,
7753 smallest_mode_for_size): Likewise.
7754
7755 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7756
7757 * cfg.c (dump_reg_info): Avoid C++ keywords.
7758 * dwarf2asm.c (dw2_force_const_mem,
7759 dw2_asm_output_encoded_addr_rtx): Likewise.
7760 * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
7761 * expmed.c (expand_shift): Likewise.
7762 * global.c (find_reg): Likewise.
7763 * graph.c (draw_edge): Likewise.
7764 * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
7765 * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
7766 widen_clz, widen_bswap, expand_parity, expand_unop,
7767 emit_cmp_and_jump_insn_1): Likewise.
7768 * postreload.c (reload_cse_simplify_operands): Likewise.
7769 * ra.h (add_neighbor): Likewise.
7770 * reg-stack.c (remove_regno_note, change_stack): Likewise.
7771 * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
7772 record_reg_classes, copy_cost, record_address_regs,
7773 invalid_mode_change_p): Likewise.
7774 * regrename.c (regrename_optimize, scan_rtx_reg,
7775 dump_def_use_chain, find_oldest_value_reg,
7776 replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
7777
7778 2008-07-16 David Edelsohn <edelsohn@gnu.org>
7779
7780 * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
7781 MASK_POWERPC64 for power4 in previous commit.
7782
7783 2008-07-16 Olivier Hainque <hainque@adacore.com>
7784
7785 * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
7786 instead of bare conversion to cast const-ness away.
7787
7788 2008-07-16 Anatoly Sokolov <aesok@post.ru>
7789
7790 * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
7791 XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
7792 * config/xtensa/xtensa.c (xtensa_function_value): New function.
7793 (TARGET_FUNCTION_VALUE): Define.
7794
7795 2008-07-16 David Edelsohn <edelsohn@gnu.org>
7796
7797 * config/rs6000/rs6000.c (processor_target_table): Add
7798 MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
7799
7800 2008-07-16 Joseph Myers <joseph@codesourcery.com>
7801
7802 PR target/36827
7803 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
7804 (m32c_legitimate_address_p): Handle "++rii" addresses created by
7805 m32c_legitimize_reload_address.
7806
7807 2007-07-16 Rafael Ávila de Espíndola <espindola@google.com>
7808
7809 * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
7810 DECL_IN_SYSTEM_HEADER in sync.
7811
7812 2008-07-15 Daniel Berlin <dberlin@dberlin.org>
7813
7814 * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
7815 * tree-ssa-pre.c (pre_expr_eq): Ditto
7816 (get_constant_for_value_id): Take a type as an argument.
7817 (fully_constant_expression): Pass in type.
7818 (find_or_generate_expression): Short circuit constant case.
7819 (create_expression_by_pieces): Remove special casing of
7820 pointer_plus.
7821 (do_regular_insertion): Short circuit constant case.
7822 (do_partial_partial_insertion): Ditto.
7823
7824 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
7825
7826 PR target/36782
7827 * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
7828
7829 2008-07-15 Bob Wilson <bob.wilson@acm.org>
7830
7831 * config/xtensa/libgcc-xtensa.ver: New file.
7832 * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
7833
7834 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7835
7836 * df-problems.c (df_set_note): Avoid C++ keywords.
7837 * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
7838 * dse.c (record_store, remove_useless_values): Likewise.
7839 * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
7840 gen_reg_rtx_offset, operand_subword, change_address_1,
7841 change_address, adjust_address_1, offset_address,
7842 widen_memory_access, emit_copy_of_insn_after): Likewise.
7843 * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
7844 * fwprop.c (should_replace_address, propagate_rtx_1,
7845 propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
7846 Likewise.
7847 * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
7848 gcse_emit_move_after, update_ld_motion_stores): Likewise.
7849 * lcm.c (compute_insert_delete, pre_edge_lcm,
7850 compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
7851 * lower-subreg.c (resolve_reg_notes): Likewise.
7852 * mode-switching.c (optimize_mode_switching): Likewise.
7853
7854 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7855
7856 * bt-load.c (add_btr_def, migrate_btr_def,
7857 branch_target_load_optimize): Avoid C++ keywords.
7858 * caller-save.c (insert_restore, insert_save, insert_one_insn):
7859 Likewise.
7860 * combine.c (subst, simplify_set, make_extraction,
7861 make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
7862 * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
7863 fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
7864
7865 2008-07-15 Richard Guenther <rguenther@suse.de>
7866
7867 PR middle-end/36369
7868 * c-common.c (strict_aliasing_warning): Do not warn for
7869 TYPE_REF_CAN_ALIAS_ALL pointers.
7870 (c_common_get_alias_set): may_alias types are not special.
7871 * tree.c (build_pointer_type_for_mode): Look up the may_alias
7872 attribute and set can_ref_all accordingly.
7873 (build_reference_type_for_mode): Likewise.
7874 * doc/extend.texi (may_alias): Clarify.
7875
7876 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
7877
7878 PR target/36780
7879 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
7880 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
7881
7882 2008-07-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
7883
7884 PR target/31568
7885 * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
7886 gcc_assert, instead call output_operand_lossage.
7887
7888 2008-07-15 Kai Tietz <kai.tietz@onevision.com>
7889
7890 * builtins.c (std_canonical_va_list): Treat structure based
7891 va_list types.
7892
7893 2008-07-15 Ben Elliston <bje@au.ibm.com>
7894
7895 * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
7896
7897 2007-07-14 Rafael Ávila de Espíndola <espindola@google.com>
7898
7899 * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
7900 is set.
7901
7902 2008-07-14 Jan Hubicka <jh@suse.cz>
7903
7904 * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
7905 * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
7906 fix predicates and constraints.
7907 * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
7908 * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
7909
7910 2008-07-14 Doug Kwan <dougkwan@google.com>
7911
7912 * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
7913 additional option file arm/eabi.opt.
7914 * config/arm/eabi.h (File): New configuration file for EABI targets.
7915 * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
7916 SUBSUBTARGET_EXTRA_SPECS.
7917 (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
7918 * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
7919 from STARTFILE_SPEC so that it can be referenced in an override.
7920 (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
7921 (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
7922 can be referenced in an override.
7923 (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
7924 * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
7925 so that it can be referenced in an override.
7926 (LINK_SPEC): Use BPABI_LINK_SPEC.
7927 * config/arm/eabi.opt (File): New.
7928
7929 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7930
7931 * Makefile.in (TARGET_DEF_H): Add targhooks.h.
7932 (FIXED_VALUE_H): New variable.
7933 (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
7934 input.h, fixed-value.h.
7935 (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
7936 (BASIC_BLOCK_H): Use $(BITMAP_H).
7937 (FUNCTION_H): Add varray.h.
7938 (IPA_REFERENCE_H): Use $(BITMAP_H).
7939 (CGRAPH_H): Add $(BASIC_BLOCK_H).
7940 (DF_H): Use $(BITMAP_H).
7941 (GGC_H): Add statistics.h.
7942 (INSN_ADDR_H): New.
7943 (INSN_ATTR_H): Use it.
7944 (SYSTEM_H): Add safe-ctype.h, filenames.h.
7945 (INPUT_H): New.
7946 (SYMTAB_H): Add $(OBSTACK_H).
7947 (CPP_INTERNAL_H): New.
7948 (TREE_DUMP_H): Add tree-pass.h.
7949 (TREE_FLOW_H): Use $(BITMAP_H)
7950 (PRETTY_PRINT_H): Use $(INPUT_H).
7951 (EBITMAP_H): Rename from typo-ed EBIMAP_H.
7952 (GSTAB_H): New.
7953 (BITMAP_H): New.
7954 (many object files): Fix lots of header dependencies throughout.
7955
7956 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7957
7958 * Makefile.in (write_entries_to_file, write_entries_to_file_split):
7959 New macros.
7960 (s-gtyp-input): Use them to write tmp-gi.list.
7961 (echo_to_gi.list): Remove.
7962
7963 2008-07-14 Richard Guenther <rguenther@suse.de>
7964
7965 * tree-ssa-sccvn.c (pre_info): Remove.
7966 (switch_to_PRE_table): Likewise.
7967 (free_scc_vn): Do not clear SSA_NAME_VALUE. Do not free pre_info.
7968 (set_hashtable_value_ids): Do not create value-ids for the
7969 optimistic tables.
7970 (run_scc_vn): Remove double test. Remove bogus special-case
7971 in value-number printing.
7972 * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
7973 * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
7974 SSA_NAME_VALUE.
7975 * tree-flow-inline.h (get_value_handle): Remove.
7976 * tree-flow.h (get_value_handle): Remove.
7977
7978 2008-07-14 Martin Jambor <mjambor@suse.cz>
7979
7980 * tree-switch-conversion.c (gen_inbound_check): Make sure the type
7981 in which we generate arithmetics is not a subrange.
7982
7983 2008-07-14 Martin Jambor <mjambor@suse.cz>
7984
7985 * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
7986
7987 2008-07-14 Richard Guenther <rguenther@suse.de>
7988
7989 * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
7990
7991 2008-07-14 Andreas Krebbel <krebbel1@de.ibm.com>
7992
7993 PR target/36745
7994 * config/s390/s390.c: (s390_secondary_reload): Add a secondary
7995 reload for symbol refs moved to r0 with -fPIC.
7996 (legitimize_pic_address): Use the target register as temporary
7997 reg if possible.
7998 (emit_symbolic_move): Adjust comment.
7999 * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
8000 New expanders.
8001
8002 2008-07-14 Ben Elliston <bje@au.ibm.com>
8003
8004 * c-common.h (C_CPP_HASHNODE): New macro.
8005 * coretypes.h (struct cpp_token): Forward declare.
8006 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
8007 the context-sensitive keyword method.
8008 * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
8009 __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
8010 expand_bool_pixel): New.
8011 (altivec_categorize_keyword): New function.
8012 (init_vector_keywords): New function.
8013 (rs6000_macro_to_expand): Likewise.
8014 (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
8015 compiling an ISO C dialect.
8016
8017 2008-07-13 Daniel Berlin <dberlin@dberlin.org>
8018
8019 * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
8020 (create_expression_by_pieces): Fix typo.
8021 (do_regular_insertion): Use debug counter here too.
8022
8023 2008-07-14 Hans-Peter Nilsson <hp@axis.com>
8024
8025 PR target/35492.
8026 * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
8027 CONST_OK_FOR_LETTER_P. All port-local users changed.
8028 (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
8029 implement Kp matching power-of-two.
8030 (CONSTRAINT_LEN): Define to match.
8031 * config/cris/cris.md: Replace all use of constraint K with Kc.
8032 ("*btst*): Use Kp for operand 0 of last alternative.
8033
8034 2008-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8035
8036 PR testsuite/36440
8037 * tree-call-cdce.c (check_target_format): Accept MIPS single, double
8038 and quad formats.
8039
8040 2008-07-13 Jan Hubicka <jh@suse.cz>
8041
8042 * tree.c (decl_assembler_name_equal): Expect assembler name of decl
8043 to be mangled too.
8044
8045 2008-07-13 Richard Guenther <rguenther@suse.de>
8046
8047 PR middle-end/36811
8048 * langhooks.c (lhd_print_error_function): Deal with recursive
8049 BLOCK trees.
8050
8051 2008-07-12 Jan Hubicka <jh@suse.cz>
8052
8053 * cgraph.c (assembler_name_hash): New static var.
8054 (hash_node_by_assembler_name, eq_assembler_name): New.
8055 (cgraph_node_for_asm): Use hashtable.
8056 (cgraph_remove_node): Maintain hashtable.
8057 (change_decl_assembler_name): Sanity check that names are not changing
8058 after aliasing was processed.
8059 * cgraph.h (varpoon_node): Add next GGC marker.
8060 * tree.c (decl_assembler_name_equal): Constify.
8061 (decl_assembler_name_hash): New.
8062 * tree.h (decl_assembler_name_equal): Constify.
8063 (decl_assembler_name_hash): Update.
8064
8065 2008-07-12 David Daney <ddaney@avtrex.com>
8066
8067 * config/mips/driver-native.c (host_detect_local_cpu): Handle
8068 sb1 and r5000 cpus.
8069
8070 2008-07-12 Richard Sandiford <rdsandiford@googlemail.com>
8071
8072 * doc/md.texi: Document the MIPS "v" constraint.
8073 * config/mips/mips.h (reg_class): Revert last change.
8074 (REG_CLASS_NAMES): Likewise.
8075 (REG_CLASS_CONTENTS): Likewise.
8076 * config/mips/mips.c (mips_regno_to_class): Likewise.
8077 * config/mips/constraints.md (v): Likewise, but add documentation.
8078 Add a comment to say that this constraint should not be used in
8079 gcc code.
8080
8081 2008-07-11 DJ Delorie <dj@redhat.com>
8082
8083 * config/h8300/h8300.md (length): Fix branch offset limit.
8084
8085 2008-07-11 Anatoly Sokolov <aesok@post.ru>
8086
8087 * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
8088 * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
8089 (avr_hard_regno_scratch_ok): New function.
8090 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
8091 * config/avr/avr.md (all peepholes that request a scratch register):
8092 Remove avr_peep2_scratch_safe use.
8093
8094 2008-07-11 Tom Tromey <tromey@redhat.com>
8095 Ian Lance Taylor <iant@google.com>
8096
8097 * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
8098 (struct c_common_resword): Define.
8099 (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
8100 (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
8101 (c_common_reswords, num_c_common_reswords): Declare.
8102 * c-common.c (c_common_reswords): New global const array.
8103 (num_c_common_reswords): New const int.
8104 * c-parser.c (struct resword, reswords): Don't define.
8105 (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
8106 (c_parse_init): Clarify mask code. Use c_common_reswords rather
8107 than reswords. If warning about C++ keywords, give them a special
8108 RID code.
8109 (c_lex_one_token): Warn about C++ keywords. Call
8110 objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
8111 (c_parser_external_declaration): Look for RID_xxx rather than
8112 RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
8113 (c_parser_statement_after_labels): Likewise.
8114 (c_parser_objc_class_instance_variables): Likewise.
8115 (c_parser_objc_class_declaration): Likewise.
8116 (c_parser_objc_try_catch_statement): Likewise.
8117 * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
8118 (declspecs_add_type): Likewise.
8119
8120 2008-07-11 Angelo Graziosi <angelo.graziosi@alice.it>
8121
8122 * ggc-page.c (alloc_page):
8123 Substituting xmalloc, xcalloc with
8124 XNEWVEC and XCNEWVAR macros which add the
8125 needed casts.
8126
8127 2008-07-11 Richard Guenther <rguenther@suse.de>
8128
8129 PR tree-optimization/36765
8130 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
8131 aliases from HEAP vars to SMTs.
8132
8133 2008-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8134
8135 * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
8136 * configure.ac (loose_warn): Move -Wc++-compat from here...
8137 (strict_warn): ...to here.
8138 * configure: Regenerate.
8139
8140 2008-07-10 Joseph Myers <joseph@codesourcery.com>
8141
8142 * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
8143 i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
8144 m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
8145 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
8146 excluding more specific h8300-*-* and sh-*-* targets.
8147
8148 2008-07-10 Daniel Berlin <dberlin@dberlin.org>
8149
8150 * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
8151 (eliminate): Ditto.
8152 (execute_pre): Call loop_optimizer_finalize in early exit.
8153
8154 2008-07-10 Jakub Jelinek <jakub@redhat.com>
8155
8156 PR middle-end/36790
8157 * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
8158 uids in the bitmap, not just VAR_DECL uids.
8159
8160 PR rtl-optimization/36419
8161 * combine-stack-adj.c (adjust_frame_related_expr): New function.
8162 (combine_stack_adjustments_for_block): Call it if needed. Delete
8163 correct insn.
8164 * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
8165 DW_CFA_GNU_args_size if CSA pass merged some adjustments into
8166 prologue sp adjustment.
8167
8168 2008-07-10 Peter Maydell <pmaydell@chiark.greenend.org.uk>
8169
8170 PR other/28322
8171 * opts.c (print_ignored_options): Report postponed diagnostics for
8172 unknown -Wno-* options as warnings, not errors.
8173 (postpone_unknown_option_error): Renamed to...
8174 (postpone_unknown_option_warning): ... this.
8175
8176 2008-07-09 Doug Kwan <dougkwan@google.com>
8177
8178 Revert:
8179 2008-07-08 Doug Kwan <dougkwan@google.com>
8180
8181 * config/arm/arm.opt (mandroid): New option.
8182 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
8183 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
8184 (CC1_SPEC): Same.
8185 (CC1PLUS_SPEC): Same.
8186 (LIB_SPEC): Same.
8187 (STARTFILE_SPEC): Same.
8188 (ENDFILE_SPEC): Same.
8189 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
8190 used.
8191
8192 2008-07-09 Richard Sandiford <rdsandiford@googlemail.com>
8193
8194 PR target/35802
8195 * config/mips/mips.h (reg_class): Remove V1_REG.
8196 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
8197 * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
8198 instead of V1_REGS.
8199 (mips_get_tp): New function.
8200 (mips_legitimize_tls_address): Use it.
8201 * config/mips/constraints.md (v): Delete.
8202 * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
8203 (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
8204 After reload, split into a move and ...
8205 (*tls_get_tp_<mode>_split): ...this new instruction.
8206
8207 2008-07-09 David Daney <ddaney@avtrex.com>
8208
8209 * config/mips/driver-native.c: Include coretypes.h and tm.h.
8210
8211 2008-07-09 Jakub Jelinek <jakub@redhat.com>
8212
8213 * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
8214 (push_gimplify_context): Don't allocate temp_htab nor c itself here.
8215 Add c argument.
8216 (pop_gimplify_context): Check c->temp_htab instead of optimize whether
8217 htab_delete should be called. Don't free c.
8218 (lookup_tmp_var): Create temp_htab lazily.
8219 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
8220 gimplify_body, force_gimple_operand): Adjust push_gimplify_context
8221 callers.
8222 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
8223 lower_omp_ordered, lower_omp_critical, lower_omp_for,
8224 create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
8225 * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
8226 * tree-sra.c (generate_element_init): Likewise.
8227 * tree-mudflap.c (execute_mudflap_function_ops,
8228 execute_mudflap_function_decls): Likewise.
8229 * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
8230 * tree-gimple.h (struct gimplify_ctx): New type.
8231 (push_gimplify_context): Adjust prototype.
8232
8233 2008-07-09 Daniel Berlin <dberlin@dberlin.org>
8234
8235 * tree-ssa-pre.c (phi_translate_1): Update placement of
8236 add_to_value calls.
8237
8238 2008-07-09 Anatoly Sokolov <aesok@post.ru>
8239
8240 * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
8241 * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
8242 (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
8243 * targhooks.c (default_hard_regno_scratch_ok): New function.
8244 * targhooks.h (default_hard_regno_scratch_ok): Declare function.
8245 * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
8246 * recog.c: Include "target.h".
8247 (peep2_find_free_register): Add check for global regs. Add target
8248 specific check.
8249 * Makefile.in (recog.o): Depend on target.h.
8250
8251 2008-07-09 Kaz Kojima <kkojima@gcc.gnu.org>
8252
8253 * config/sh/sh.c (sh_canonical_va_list_type): New.
8254 (TARGET_CANONICAL_VA_LIST_TYPE): Define.
8255
8256 2008-07-09 Raksit Ashok <raksit@google.com>
8257
8258 * doc/invoke.texi (Option Summary): Mention new option
8259 -Wdisallowed-function-list=...
8260 (Warning Options): Document -Wdisallowed-function-list=...
8261 * common.opt (Wdisallowed-function-list=): New flag.
8262 * flags.h (warn_disallowed_functions): External definition of new
8263 boolean warning flag.
8264 (warn_if_disallowed_function_p): Declare new function.
8265 * opts.c (warning_disallowed_functions): New static variable.
8266 (warn_disallowed_functions): New boolean warning flag.
8267 (warn_if_disallowed_function_p): New function.
8268 (add_comma_separated_to_vector): Rename
8269 add_instrument_functions_exclude_list to this.
8270 (common_handle_option): Handle new option. Rename calls to
8271 add_instrument_functions_exclude_list into calls to
8272 add_comma_separated_to_vector.
8273 * c-parser.c (c_parser_postfix_expression_after_primary): New warning
8274 based on flag warn_disallowed_functions.
8275
8276 2008-07-09 Christian Bruel <christian.bruel@st.com>
8277
8278 * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
8279 instead of get_attr_length.
8280
8281 2008-07-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8282
8283 * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
8284 keywords.
8285 * genemit.c (gen_insn): Likewise.
8286 * gengtype.c (note_def_vec): Likewise.
8287 * gengtype.h (note_def_vec): Likewise.
8288 * genoutput.c (struct data, output_insn_data, process_template,
8289 gen_expand, gen_split, note_constraint): Likewise.
8290 * genrecog.c (new_decision, add_to_sequence, factor_tests,
8291 make_insn_sequence): Likewise.
8292 * gensupport.c (record_insn_name): Likewise.
8293
8294 2008-07-08 Doug Kwan <dougkwan@google.com>
8295
8296 * config/arm/arm.opt (mandroid): New option.
8297 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
8298 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
8299 (CC1_SPEC): Same.
8300 (CC1PLUS_SPEC): Same.
8301 (LIB_SPEC): Same.
8302 (STARTFILE_SPEC): Same.
8303 (ENDFILE_SPEC): Same.
8304 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
8305 used.
8306
8307 2008-07-08 Raksit Ashok <raksit@google.com>
8308
8309 * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
8310 (set_storage_via_setmem): Fix expected_align parameter.
8311 * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
8312 missing from the list.
8313 * doc/md.texi (movmem): Explicitly state that expected alignment is
8314 to be expressed in bytes.
8315 (setmem): Explicitly state that expected alignment is to be expressed
8316 in bytes.
8317
8318 2008-07-08 Joseph Myers <joseph@codesourcery.com>
8319
8320 * reload.c (find_reloads_subreg_address): Do not require validity
8321 of address in original mode before reloading address.
8322
8323 2008-07-07 Tianwei Sheng <tianweis@google.com>
8324
8325 * df-core.c (df_remove_problem): Adjust the access to avoid out of
8326 bounds array access.
8327
8328 2008-07-08 Jakub Jelinek <jakub@redhat.com>
8329
8330 * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
8331
8332 2008-07-05 Daniel Berlin <dberlin@dberlin.org>
8333
8334 Fix PR tree-optimization/23455
8335 Fix PR tree-optimization/35286
8336 Fix PR tree-optimization/35287
8337 * Makefile.in (OBJS-common): Remove tree-vn.o.
8338 (tree-vn.o): Remove.
8339 * dbgcnt.def: Add treepre_insert debug counter.
8340 * gcc/tree-flow.h (add_to_value): Updated for other changes.
8341 (debug_value_expressions): Ditto.
8342 (print_value_expressions): Ditto.
8343 * tree-pretty-print.c (dump_generic_node): Updated for
8344 VALUE_HANDLE removal.
8345 * tree-ssa-dom.c (record_equality): Ditto.
8346 (cprop_operand): Ditto.
8347 (lookup_avail_expr): Ditto.
8348 * tree-ssa-threadedge.c
8349 (record_temporary_equivalences_from_stmts_at_dest): Ditto.
8350 (simplify_control_stmt_condition): Ditto.
8351 * tree.c (tree_code_size): Ditto.
8352 (tree_node_structure): Ditto.
8353 (iterative_hash_expr): Ditto.
8354 * tree.def: Ditto.
8355 * tree.h (VALUE_HANDLE_ID): Ditto.
8356 (VALUE_HANDLE_EXPR_SET): Ditto.
8357 (struct tree_value_handle): Ditto.
8358 (union tree_node): Ditto.
8359 * treestruct.def: Ditto.
8360 * tree-vn.c: Removed.
8361 * tree-ssa-pre.c: Rewritten entirely.
8362 * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
8363 (constant_value_ids): Ditto.
8364 (vn_nary_op_t): Moved to header.
8365 (vn_phi_t): Ditto.
8366 (vn_reference_op_t): Ditto
8367 (vn_reference_t): Ditto.
8368 (next_value_id): New variable.
8369 (VN_INFO): Add an assert.
8370 (vn_constant_eq): New function.
8371 (vn_constant_hash): Ditto.
8372 (get_or_alloc_constant_value_id): Ditto.
8373 (value_id_constant_p): Ditto.
8374 (vn_reference_compute_hash): De-staticify.
8375 (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
8376 Disable some code with a FIXME. Remove VALUE_HANDLE use.
8377 (valueize_refs): Update opcode if it changes from ssa name to constant.
8378 (vn_reference_lookup_1): Add new argument.
8379 (vn_reference_lookup): Ditto.
8380 (vn_reference_lookup_pieces): New function.
8381 (vn_reference_insert): Add return type. Modify to deal with value ids.
8382 (vn_reference_insert_pieces): New function.
8383 (vn_nary_op_compute_hash): De-staticify.
8384 (vn_nary_op_eq): Ditto.
8385 (vn_nary_op_lookup_pieces): New function.
8386 (vn_nary_op_lookup): Add new argument.
8387 (vn_nary_op_insert_pieces): New function.
8388 (vn_nary_op_insert): Add return type. Modify to deal with value ids.
8389 (vn_phi_insert): Ditto.
8390 (visit_unary_op): Update for callee changes.
8391 (visit_binary_op): Ditto.
8392 (visit_reference_op_load): Ditto.
8393 (visit_reference_op_store): Ditto.
8394 (init_scc_vn): Init next_value_id, constant_to_value_id and
8395 constant_value_ids.
8396 (free_scc_vn): Free them.
8397 (set_hashtable_value_ids): New function.
8398 (run_scc_vn): Use it.
8399 (get_max_value_id): New function.
8400 (get_next_value_id): Ditto.
8401 (expressions_equal_p): Moved from tree-vn.c
8402 (sort_vuses): Ditto.
8403 (sort_vuses_heap): Ditto.
8404 * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
8405 above).
8406 * tree.c (iterative_hash_hashval_t): Made non-static
8407 * tree.h (iterative_hash_hashval_t): Declare it.
8408
8409 2008-07-08 Martin Jambor <mjambor@suse.cz>
8410
8411 * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
8412 instead of ipa_create_node_params.
8413 (ipcp_driver): Allocate infos with ipa_check_create_node_params and
8414 ipa_check_create_edge_args, free them with
8415 free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
8416
8417 * ipa-prop.c: Include flags.h and tree-inline.h.
8418 (ipa_node_params_vector): New variable.
8419 (ipa_edge_args_vector): New variable.
8420 (edge_removal_hook_holder): New variable.
8421 (node_removal_hook_holder): New variable.
8422 (edge_duplication_hook_holder): New variable.
8423 (node_duplication_hook_holder): New variable.
8424 (ipa_detect_param_modifications): Check for presence of modified flags.
8425 (ipa_compute_jump_functions): Check for presence of jump functions.
8426 (ipa_free_edge_args_substructures): New function.
8427 (ipa_create_node_params): Removed.
8428 (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
8429 (ipa_free_node_params_substructures): New function.
8430 (ipa_free_all_node_params): Changed to deallocate the on-the-side
8431 vector.
8432 (ipa_edge_removal_hook): New function.
8433 (ipa_node_removal_hook): New function.
8434 (duplicate_array): New function.
8435 (ipa_edge_duplication_hook): New function.
8436 (ipa_node_duplication_hook): New function.
8437 (ipa_register_cgraph_hooks): New function.
8438 (ipa_unregister_cgraph_hooks): New function.
8439 (free_all_ipa_structures_after_ipa_cp): New function.
8440
8441 * ipa-prop.h: Include vec.h.
8442 (ipa_node_params_t): New typedef with vector types for it.
8443 (ipa_edge_args_t): New typedef with vector types for it.
8444 (IPA_NODE_REF): Changed to access an on-the-side vector.
8445 (IPA_EDGE_REF): Changed to access an on-the-side vector.
8446 (ipa_check_create_node_params): New function.
8447 (ipa_check_create_edge_args): New function.
8448
8449 * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h. Converted
8450 all users.
8451
8452 2008-07-07 Tom Tromey <tromey@redhat.com>
8453
8454 * configure, config.in: Rebuilt.
8455 * configure.ac: Don't check for scandir or alphasort.
8456
8457 2008-07-07 Joseph Myers <joseph@codesourcery.com>
8458
8459 * config/arm/arm.c (arm_init_neon_builtins): Register built-in
8460 types immediately after creating them.
8461
8462 2008-07-07 Joseph Myers <joseph@codesourcery.com>
8463
8464 * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
8465
8466 2008-07-07 Fernando Pereira <fernando@cs.ucla.edu>
8467
8468 * tree-ssa-structalias.c (compute_points_to_sets): Add call to
8469 dump_constraint_graph.
8470 (dump_constraint_edge): New function.
8471 (dump_constraint_graph): New function.
8472 (debug_constraint_graph): New function.
8473 (dump_constraint): Removed useless comparison.
8474 * tree-ssa-structalias.h (dump_constraint_edge): Declare.
8475 (dump_constraint_graph): Declare.
8476 (debug_constraint_graph): Declare.
8477 * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
8478
8479 2008-07-07 Kai Tietz <kai.tietz@onevision.com>
8480
8481 * config/i386/i386.c (is_va_list_char_pointer): New.
8482 (ix86_va_start): Replace compare with ms_va_list_type_node
8483 by is_va_list_char_pointer.
8484 (ix86_gimplify_va_arg): Likewise.
8485
8486 2008-07-07 Martin Jambor <mjambor@suse.cz>
8487
8488 * cgraph.c (cgraph_edge_max_uid): New variable.
8489 (struct cgraph_edge_hook_list): New type.
8490 (struct cgraph_node_hook_list): New type.
8491 (struct cgraph_2edge_hook_list): New type.
8492 (struct cgraph_2node_hook_list): New type.
8493 (first_cgraph_edge_removal_hook): New variable.
8494 (first_cgraph_node_removal_hook): New variable.
8495 (first_cgraph_edge_duplicated_hook): New variable.
8496 (first_cgraph_node_duplicated_hook): New variable.
8497 (cgraph_add_edge_removal_hook): New function.
8498 (cgraph_remove_edge_removal_hook): New function.
8499 (cgraph_call_edge_removal_hooks): New function.
8500 (cgraph_add_node_removal_hook): New function.
8501 (cgraph_remove_node_removal_hook): New function.
8502 (cgraph_call_node_removal_hooks): New function.
8503 (cgraph_add_edge_duplication_hook): New function.
8504 (cgraph_remove_edge_duplication_hook): New function.
8505 (cgraph_call_edge_duplication_hooks): New function.
8506 (cgraph_add_node_duplication_hook): New function.
8507 (cgraph_remove_node_duplication_hook): New function.
8508 (cgraph_call_node_duplication_hooks): New function.
8509 (cgraph_create_edge): Assign to edge uid.
8510 (cgraph_remove_edge): Call edge removal hooks.
8511 (cgraph_node_remove_callees): Call edge removal hooks.
8512 (cgraph_node_remove_callers): Call edge removal hooks.
8513 (cgraph_remove_node): Call node removal hooks.
8514 (cgraph_clone_edge): Call edge duplication hooks.
8515 (cgraph_clone_node): Call node duplication hooks.
8516
8517 * cgraph.h (cgraph_edge): New field uid.
8518 (cgraph_edge_hook): New type.
8519 (cgraph_node_hook): New type.
8520 (cgraph_2edge_hook): New type.
8521 (cgraph_2node_hook): New type.
8522
8523 2008-07-07 Andreas Tobler <a.tobler@schweiz.org>
8524
8525 * config.in: Regenerate.
8526
8527 2008-07-07 Vladimir Prus <vladimir@codesourcery.com>
8528
8529 * gcc.c (print_sysroot): New.
8530 (option_map, display_help, process_command): Handle the
8531 -print-sysroot option.
8532 (main): Print the sysroot if requested.
8533 * doc/invoke.texi (Debugging Options): Document -print-sysroot.
8534
8535 2008-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8536
8537 PR target/34780
8538 * unwind-pe.h (size_of_encoded_value): add attribute unused.
8539
8540 2008-07-07 Daniel Jacobowitz <dan@codesourcery.com>
8541
8542 * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
8543 (assign_parm_setup_block_p): Also check mode of entry_parm.
8544
8545 2008-07-07 Richard Guenther <rguenther@suse.de>
8546
8547 * tree-ssa-structalias.h (set_used_smts): Remove.
8548 * tree-ssa-structalias.c (used_smts): Likewise.
8549 (set_used_smts): Likewise.
8550 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
8551 call to set_used_smts.
8552
8553 2008-07-07 Richard Guenther <rguenther@suse.de>
8554
8555 * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
8556 (new_var_info): Set it to false.
8557 (solution_set_add): Correctly handle pointers outside a var and
8558 inside a field.
8559 (type_safe): Treat variables with is_full_var properly.
8560 (do_sd_constraint): Likewise.
8561 (do_ds_constraint): Likewise.
8562 (process_constraint): Remove zeroing offset for !use_field_sensitive.
8563 (get_constraint_for_ptr_offset): New function.
8564 (get_constraint_for_component_ref): For addresses at least include
8565 the last field of the variable. Handle is_full_vars properly.
8566 (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
8567 (handle_ptr_arith): Remove.
8568 (find_func_aliases): Simplify assignment handling.
8569 (create_function_info_for): For parameter and result varinfos set
8570 is_full_var flag.
8571 (create_variable_info_for): Set is_full_var flag whenever we
8572 just created a single varinfo for a decl.
8573 (init_alias_vars): Initialize use_field_sensitive from
8574 max-fields-for-field-sensitive parameter.
8575
8576 2008-07-07 Richard Guenther <rguenther@suse.de>
8577
8578 PR tree-optimization/36713
8579 * tree-flow-inline.h (is_call_used): New function.
8580 * tree-nrv.c (dest_safe_for_nrv_p): Use it.
8581 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
8582 * tree-outof-ssa.c (create_temp): Set call-used flag if required.
8583
8584 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
8585
8586 * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
8587
8588 2008-07-07 Mark Shinwell <shinwell@codesourcery.com>
8589
8590 * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
8591
8592 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
8593 Nathan Sidwell <nathan@codesourcery.com>
8594
8595 * config.gcc (m68k-*-linux*): Add with_arch. Add sysroot-suffix.h
8596 to tm_file. Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
8597 tmake_file.
8598 * config/m68k/t-linux: New.
8599 * doc/install.texi: Document m68k-*-linux is now multilibbed by
8600 default.
8601
8602 2008-07-07 Nathan Sidwell <nathan@codesourcery.com>
8603
8604 * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
8605 * config/m68k/m68k-devices.def: Remove multilibs that only differ
8606 by MAC/EMAC.
8607
8608 2008-07-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8609
8610 * gcc.c (execute): Fix -Wc++-compat warning.
8611
8612 2008-07-06 H.J. Lu <hongjiu.lu@intel.com>
8613
8614 PR target/36720
8615 * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
8616 constant for little endian.
8617
8618 2008-07-06 Richard Sandiford <rdsandiford@googlemail.com>
8619
8620 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
8621 mips_base_mips16 instead of TARGET_MIPS16.
8622 (mips_base_mips16): Declare.
8623 * config/mips/mips.c (mips_base_mips16): Make global.
8624 (was_mips16_p): Remove GTY marker.
8625 (was_mips16_pch_p): New variable.
8626 (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
8627 (mips_override_options): Force to non-MIPS16 mode initially.
8628 Do not complain about MIPS16 PIC incompatibilities here.
8629 Only allow -mgpopt if -mexplicit-relocs is in force for
8630 non-MIPS16 code.
8631
8632 2008-07-06 Andreas Tobler <a.tobler@schweiz.org>
8633
8634 * configure.ac: Check for caddr_t, define to char * if not defined.
8635 * configure: Regenerate.
8636 * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
8637 (mmap_gt_pch_use_address): Likewise.
8638 * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
8639
8640 2008-07-06 Richard Guenther <rguenther@suse.de>
8641
8642 * tree-ssa-structalias.c (struct variable_info): Remove has_union.
8643 (new_var_info): Deal with it.
8644 (solution_set_add): Likewise.
8645 (bitpos_of_field): Make signed, fix.
8646 (struct fieldoff): Remove type and decl fields. Make size field
8647 unsigned HOST_WIDE_INT. Add has_unknown_size and may_have_pointers
8648 flags.
8649 (fieldoff_compare): Deal with it.
8650 (push_fields_onto_fieldstack): Remove has_union argument, glob
8651 adjacent non-pointer fields together.
8652 (create_function_info_for): Do not set has_union.
8653 (create_variable_info_for): Simplify.
8654
8655 2008-07-06 Kai Tietz <kai.tietz@onevision.com>
8656
8657 * config.gcc (extra_headers): Add cross-stdarg.h for target
8658 x86_64-*-* and i?86-*-*.
8659 * config/i386/cross-stdarg.h: New.
8660 * builtins.c (std_fn_abi_va_list): New.
8661 (std_canonical_va_list_type): New.
8662 (stabilize_va_list): Replace va_list_type_node use by
8663 mtarget.canonical_va_list_type.
8664 (gimplify_va_arg_expr): Likewise.
8665 (expand_builtin_va_copy): Replace va_list_type_node use by
8666 mtarget.fn_abi_va_list.
8667 * tree-sra.c (is_va_list_type): New helper.
8668 (decl_can_be_decomposed_p): Replace
8669 va_list_type_node use by is_va_list_type.
8670 * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
8671 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
8672 * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
8673 * config/i386/i386-protos.h (ix86_get_valist_type): New.
8674 (ix86_enum_va_list): New.
8675 * config/i386/i386.c (sysv_va_list_type_node): New.
8676 (ms_va_list_type_node): New.
8677 (ix86_function_type_abi): Remove sorry.
8678 (ix86_build_builtin_va_list_abi): New.
8679 (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
8680 for 64-bit targets.
8681 (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
8682 (ix86_init_builtins_va_builtins_abi): New.
8683 (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
8684 for 64-bit targets.
8685 (ix86_handle_abi_attribute): New.
8686 (attribute_spec): Add sysv_abi and ms_abi.
8687 (ix86_fn_abi_va_list): New.
8688 (ix86_canonical_va_list_type): New.
8689 (ix86_enum_va_list): New.
8690 (TARGET_FN_ABI_VA_LIST): New.
8691 (TARGET_CANONICAL_VA_LIST_TYPE): New.
8692 * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
8693 * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
8694 (TARGET_CANONICAL_VA_LIST_TYPE): New.
8695 (TARGET_ENUM_VA_LIST): New.
8696 * expr.h (std_fn_abi_va_list): New.
8697 (std_canonical_va_list_type): New.
8698 * target-def.h (TARGET_FN_ABI_VA_LIST): New.
8699 (TARGET_CANONICAL_VA_LIST_TYPE): New.
8700 (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
8701 TARGET_CANONICAL_VA_LIST_TYPE.
8702 * target.h (struct gcc_target): Add fn_abi_va_list hook
8703 and canonical_va_list_type hook.
8704
8705 2008-07-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
8706
8707 * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
8708 integral and pointer types.
8709
8710 2008-07-04 Roger Sayle <roger@eyesopen.com>
8711
8712 * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
8713 the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
8714
8715 2008-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
8716
8717 PR target/36684
8718 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
8719
8720 2008-07-04 Jakub Jelinek <jakub@redhat.com>
8721
8722 * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
8723 build_gimple_modify_stmt.
8724 (build_arrays, gen_inbound_check): Likewise. Force RHS to be
8725 gimple operand. Use fold_build* instead of build*.
8726
8727 2008-07-04 Richard Guenther <rguenther@suse.de>
8728
8729 * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
8730 (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
8731 properly to compute the reachability set if we do field-sensitive PTA.
8732 * invoke.texi (max-fields-for-field-sensitive): Document default.
8733 * opts.c (decode_options): Set max-fields-for-field-sensitive to
8734 100 for optimize >= 2.
8735
8736 2008-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8737
8738 * ggc-zone.c (lookup_page_table_if_allocated,
8739 set_page_table_entry, zone_find_object_size, alloc_small_page,
8740 alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
8741 new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
8742 -Wc++-compat and/or -Wcast-qual warnings.
8743
8744 2008-07-04 Alan Modra <amodra@bigpond.net.au>
8745
8746 PR target/36634
8747 * config/rs6000/rs6000.md (call, call_value): Don't arrange for
8748 pic_offset_table_rtx to be marked as used here.
8749 (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
8750 TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
8751 (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
8752 (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
8753 !TARGET_SECURE_PLT.
8754
8755 2008-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8756
8757 * alloc-pool.c (hash_descriptor, eq_descriptor,
8758 alloc_pool_descriptor): Fix -Wc++-compat warnings.
8759 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
8760 Likewise.
8761 * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
8762 loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
8763 final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
8764 * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
8765 Likewise.
8766
8767 2008-07-03 Eric Botcazou <ebotcazou@adacore.com>
8768
8769 * tree-flow.h (loop_only_exit_p): Declare.
8770 * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
8771 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
8772 the number of iterations if it is constant. Otherwise, if this is the
8773 only possible exit of the loop, use the conservative estimate on the
8774 number of iterations of the entire loop if available.
8775
8776 2008-07-03 Richard Sandiford <rdsandiford@googlemail.com>
8777
8778 * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
8779 * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
8780 Add synchronization functions.
8781 * config/sync.c: New file.
8782 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
8783 (LIBGCC_SYNC_CFLAGS): Likewise.
8784
8785 2008-07-03 Uros Bizjak <ubizjak@gmail.com>
8786
8787 PR target/36710
8788 * config/i386/i386.md (mode): Add TF to "mode" attribute.
8789 (*pushtf_sse): New insn pattern.
8790 (pushtf splitters): New splitters.
8791
8792 2008-07-03 Michael Meissner <gnu@the-meissners.org>
8793
8794 PR middle-end/35736
8795 * predict.c (build_predict_expr): Use void_type_node for the tree
8796 type, instead of NULL_TREE.
8797
8798 2008-07-03 H.J. Lu <hongjiu.lu@intel.com>
8799
8800 * config/i386/i386.c (contains_aligned_value_p): Return true
8801 for TCmode.
8802 (ix86_data_alignment): Align TCmode to 128bits.
8803 (ix86_local_alignment): Likewise.
8804
8805 2008-07-03 Andrew Haley <aph@redhat.com>
8806
8807 PR bootstrap/33304
8808 * vec.h (VEC_TA): New.
8809 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
8810 DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
8811 * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
8812 (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
8813 (C_COMMON_FIXED_TYPES): Remove first arg.
8814 (C_COMMON_FIXED_MODE_TYPES): Likewise.
8815 * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
8816 MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
8817 not to use empty macro arguments.
8818
8819 2008-07-02 Joseph Myers <joseph@codesourcery.com>
8820
8821 * config/alpha/vms_tramp.asm, config/arm/crti.asm,
8822 config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
8823 config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
8824 config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
8825 config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
8826 config/i386/sol2-gc1.asm, config/ia64/crti.asm,
8827 config/ia64/crtn.asm, config/m68hc11/larith.asm,
8828 config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
8829 config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
8830 config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
8831 config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
8832 config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
8833 config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
8834 config/rs6000/e500crtres64gpr.asm,
8835 config/rs6000/e500crtres64gprctr.asm,
8836 config/rs6000/e500crtrest32gpr.asm,
8837 config/rs6000/e500crtrest64gpr.asm,
8838 config/rs6000/e500crtresx32gpr.asm,
8839 config/rs6000/e500crtresx64gpr.asm,
8840 config/rs6000/e500crtsav32gpr.asm,
8841 config/rs6000/e500crtsav64gpr.asm,
8842 config/rs6000/e500crtsav64gprctr.asm,
8843 config/rs6000/e500crtsavg32gpr.asm,
8844 config/rs6000/e500crtsavg64gpr.asm,
8845 config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
8846 config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
8847 config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
8848 config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
8849 config/sparc/sol2-cn.asm: Remove .file directives.
8850
8851 2008-07-02 Richard Sandiford <rdsandiford@googlemail.com>
8852
8853 * resource.c (mark_referenced_resources): Look inside
8854 UNSPEC_VOLATILEs and ASM_INPUTs.
8855
8856 2008-07-02 Ian Lance Taylor <iant@google.com>
8857
8858 * rtlanal.c (add_reg_note): New function.
8859 * rtl.h (add_reg_note): Declare.
8860 * auto-inc-dec.c (attempt_change): Use add_reg_note.
8861 * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
8862 * builtins.c (expand_builtin_longjmp): Likewise.
8863 (expand_builtin_nonlocal_goto): Likewise.
8864 * calls.c (emit_call_1, expand_call): Likewise.
8865 * cfgexpand.c (add_reg_br_prob_note): Likewise.
8866 * cfglayout.c (fixup_reorder_chain): Likewise.
8867 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
8868 (commit_one_edge_insertion): Likewise.
8869 * combine.c (move_deaths, distribute_notes): Likewise.
8870 * df-problems.c (df_set_note): Likewise.
8871 * emit-rtl.c (link_cc0_insns, try_split): Likewise.
8872 (set_unique_reg_note): Likewise.
8873 (emit_copy_of_insn_after): Likewise.
8874 * expr.c (expand_expr_real): Likewise.
8875 * gcse.c (add_label_notes): Likewise.
8876 * haifa-sched.c (create_check_block_twin): Likewise.
8877 * jump.c (mark_jump_label_1): Likewise.
8878 * loop-doloop.c (add_test, doloop_modify): Likewise.
8879 * loop-unswitch.c (compare_and_jump_seq): Likewise.
8880 * lower-subreg.c (move_eh_region_note): Likewise.
8881 * optabs.c (emit_libcall_block): Likewise.
8882 * predict.c (predict_insn): Likewise.
8883 (combine_predictions_for_insn): Likewise.
8884 * recog.c (peephole2_optimize): Likewise.
8885 * regmove.c (try_auto_increment): Likewise.
8886 * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
8887 * reload.c (find_reloads): Likewise.
8888 * reload1.c (fixup_eh_region_note): Likewise.
8889 (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
8890 * reorg.c (delete_prior_computation): Likewise.
8891 (delete_computation, dbr_schedule): Likewise.
8892 * config/pa/pa.c (legitimize_pic_address): Likewise.
8893 * config/sh/sh.c (sh_reorg): Likewise.
8894
8895 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
8896
8897 PR target/36669
8898 * config/libgcc-glibc.ver: Add %exclude.
8899 * config/m32r/libgcc-glibc.ver: Likwise.
8900 * config/s390/libgcc-glibc.ver: Likwise.
8901 * config/sh/libgcc-glibc.ver: Likwise.
8902 * config/sparc/libgcc-sparc-glibc.ver: Likwise.
8903
8904 * config/i386/libgcc-glibc.ver: New.
8905
8906 * config/i386/libgcc-x86_64-glibc.ver: Removed.
8907
8908 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
8909
8910 * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
8911 from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
8912 i[34567]86-*-linux*, x86_64-*-linux*. Add
8913 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
8914 i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
8915 x86_64-*-linux*. Add i386/t-linux to tmake_file for
8916 i[34567]86-*-linux*, x86_64-*-linux*.
8917
8918 * libgcc-std.ver: Add empty GCC_4.4.0.
8919
8920 * mkmap-symver.awk: Support multiple versions per symbol.
8921
8922 * config/i386/i386.c (ix86_init_builtins): Always define
8923 __builtin_fabsq and __builtin_copysignq with fallbacks.
8924 (ix86_expand_builtin): Emit normal call for __builtin_fabsq
8925 and __builtin_copysignq if SSE2 isn't available.
8926
8927 * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
8928 (LIBGCC2_TF_CEXT): Likwise.
8929 (TF_SIZE): Likwise.
8930
8931 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
8932
8933 * config/i386/sfp-machine.h: Moved to libgcc.
8934
8935 * config/i386/sfp-machine.h: New.
8936 * config/i386/t-linux: Likwise.
8937
8938 * config/i386/t-darwin: Remove softfp_wrap_start and
8939 softfp_wrap_end.
8940 * config/i386/t-darwin64: Likewise.
8941
8942 * config/i386/t-fprules-softfp64: Renamed to ...
8943 * config/i386/t-fprules-softfp: This.
8944
8945 * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
8946 and softfp_wrap_end.
8947
8948 2008-07-02 Jason Merrill <jason@redhat.com>
8949
8950 * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
8951
8952 * tree.c (ctor_to_list): New fn.
8953 * tree.h: Declare it.
8954 (CONSTRUCTOR_ELT): New macro.
8955 (CONSTRUCTOR_NELTS): New macro.
8956
8957 2008-07-02 Richard Guenther <rguenther@suse.de>
8958
8959 * tree-ssa-structalias.c (struct variable_info): Reorder
8960 to fill padding on 64bit hosts. Make collapsed_to an int.
8961 (get_varinfo_fc): Deal with that.
8962 (new_var_info): Likewise.
8963 (collapse_rest_of_var): Likewise.
8964
8965 2008-07-02 Joshua Sumali <jsumali@redhat.com>
8966
8967 * doc/install.texi (--enable-java-home): Document.
8968 (--enable-aot-compile-rpm): Likewise.
8969 (--with-arch-directory): Likewise.
8970 (--with-os-directory): Likewise.
8971 (--with-origin-name): Likewise.
8972 (--with-arch-suffix): Likewise.
8973 (--with-jvm-root-dir): Likewise.
8974 (--with-jvm-jar-dir): Likewise.
8975 (--with-python-dir): Likewise.
8976
8977 2008-07-02 Richard Guenther <rguenther@suse.de>
8978
8979 * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
8980 from decls explicitly. Merge operand checking from tuples.
8981
8982 2008-07-02 Martin Jambor <mjambor@suse.cz>
8983
8984 * tree-switch-conversion.c: Included timevar.h which I forgot before.
8985
8986 2008-07-02 Martin Jambor <mjambor@suse.cz>
8987
8988 * tree-switch-conversion.c: Included timevar.h
8989 (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
8990
8991 * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
8992
8993 2008-07-02 Martin Jambor <mjambor@suse.cz>
8994
8995 * tree-switch-conversion.c: Corrected various comments and
8996 whitespace issues
8997 (build_constructors): Fixed minor formatting mistakes.
8998
8999 * invoke.texi (Optimize Options): Corrected the
9000 switch-conversion-max-branch-ratio parameter.
9001
9002 2008-07-02 Mark Shinwell <shinwell@codesourcery.com>
9003
9004 * final.c (asm_insn_count): Return zero for an empty asm body.
9005
9006 2008-07-02 Richard Guenther <rguenther@suse.de>
9007
9008 * bitmap.h (bitmap_set_bit): Return bool.
9009 (bitmap_clear_bit): Likewise.
9010 * bitmap.c (bitmap_set_bit): Return if the bit changed. Only
9011 write to the bitmap if it would.
9012 (bitmap_clear_bit): Likewise.
9013 * tree-ssa-structalias.c (add_implicit_graph_edge): Use
9014 bitmap_set_bit return value.
9015 (add_pred_graph_edge): Likewise.
9016 (add_graph_edge): Likewise.
9017 (do_sd_constraint): Likewise.
9018 (do_ds_constraint): Likewise.
9019
9020 2008-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9021
9022 * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
9023 Fix -Wc++-compat and/or -Wcast-qual warnings.
9024 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
9025 gen_regparm_prefix): Likewise.
9026 * vmsdbgout.c (write_modbeg, lookup_filename,
9027 vmsdbgout_source_line, vmsdbgout_init): Likewise.
9028
9029 2008-07-02 Danny Smith <dannysmith@users.sourceforge.net>
9030
9031 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
9032 defaults.h definition apply.
9033
9034 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
9035
9036 * function.c (assign_parm_remove_parallels): New.
9037 (assign_parm_setup_block_p): Do not return true for non-BLKmode
9038 PARALLELs.
9039 (assign_parm_setup_block): Do not handle them.
9040 (assign_parm_setup_reg, assign_parm_setup_stack): Call
9041 assign_parm_remove_parallels.
9042
9043 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
9044
9045 * c-typeck.c (convert_for_assignment): Use
9046 vector_targets_convertible_p.
9047 * c-common.c (vector_targets_convertible_p): New.
9048 * c-common.h (vector_targets_convertible_p): New prototype.
9049 * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
9050 opaque_p_V2SI_type_node.
9051
9052 2008-07-01 Steve Ellcey <sje@cup.hp.com>
9053
9054 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
9055 RFmode constants.
9056
9057 2008-07-01 Uros Bizjak <ubizjak@gmail.com>
9058
9059 * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
9060 TFmode constants via two element DImode vector for hosts with
9061 HOST_BITS_PER_WIDE_INT < 64.
9062 (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
9063 also for HOST_BITS_PER_WIDE_INT < 64.
9064
9065 2008-07-01 Richard Guenther <rguenther@suse.de>
9066
9067 PR tree-optimization/36666
9068 * tree-ssa-structalias.c (get_constraint_for_1): Declare.
9069 (get_constraint_exp_from_ssa_var): Split into ...
9070 (get_constraint_exp_for_temp): ... this ...
9071 (get_constraint_for_ssa_var): ... and that.
9072 Return constraint expressions for all touched sub-fields
9073 if the results address is not taken.
9074 (process_constraint): Remove assertion that aggregate
9075 assignments do not happen at this place.
9076 (get_constraint_for_component_ref): Add address_p argument.
9077 Return constraint expressions for all touched sub-fields
9078 if the results address is not taken.
9079 (do_deref): Use get_constraint_exp_for_temp.
9080 (get_constraint_for_1): Rename from ...
9081 (get_constraint_for): ... this. Add the old function as wrapper.
9082 (do_structure_copy): Use get_constraint_for_1.
9083
9084 2008-07-01 Martin Jambor <mjambor@suse.cz>
9085
9086 * Makefile.in (tree-switch-conversion.o): Add.
9087 (OBJS-common): Add tree-swtch-conversion.o.
9088 * passes.c (init_optimization_passes): Add pass_convert_switch.
9089 * tree-pass.h: (pass_convert_switch): Add.
9090 * tree-switch-conversion.c: New file.
9091 * gcc.dg/tree-ssa/cswtch.c: New testcase.
9092 * common.opt (ftree-cswtch): New option.
9093 * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
9094 * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
9095 * opts.c (decode_options): Set flag_tree_switch_conversion when
9096 optimization level is >= 2.
9097 * doc/invoke.texi (Optimize Options): Added description of
9098 -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
9099
9100 2008-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9101
9102 * config/darwin-driver.c (darwin_default_min_version): Fix
9103 -Wc++-compat warnings.
9104
9105 2008-06-30 Uros Bizjak <ubizjak@gmail.com>
9106
9107 * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
9108 of operand 0.
9109
9110 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
9111
9112 * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
9113
9114 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
9115
9116 PR rtl-optimization/34744
9117 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
9118 (df_scan_free_internal): Free data structures not
9119 allocated in storage pools.
9120 (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
9121 (df_refs_add_to_chains): Use df_scan_free_ref_vec and
9122 df_scan_free_mws_vec.
9123 * dse.c (dse_step6): Free offset_map_p and offset_map_n
9124 unconditionally.
9125
9126 2008-06-30 H.J. Lu <hongjiu.lu@intel.com>
9127
9128 * config/i386/i386.c (contains_aligned_value_p): Return true
9129 for __float128.
9130 (ix86_function_arg_boundary): Return its natural boundary
9131 for __float128.
9132 (return_in_memory_32): Don't check TDmode.
9133 (ix86_split_to_parts): Support splitting into 4 parts and
9134 support TFmode for 32bit target.
9135 (ix86_split_long_move): Support splitting into 4 parts.
9136 (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
9137 for SSE2.
9138 (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
9139 (ix86_init_builtins): Here.
9140 (ix86_scalar_mode_supported_p): Always return true for TFmode.
9141 (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
9142 'q' and 'w', respectively.
9143
9144 * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
9145 TARGET_64BIT.
9146 (movtf_internal): Likewise.
9147 (<code>tf2): Likewise.
9148 (*absnegtf2_sse): Likewise.
9149 (copysign<mode>3): Likewise.
9150 (copysign<mode>3_const): Likewise.
9151 (copysign<mode>3_var): Likewise.
9152 (define_split UNSPEC_COPYSIGN): Likewise.
9153 * config/i386/sse.md (*nandtf3): Likewise.
9154 (<code>tf3): Likewise.
9155 (*<code>tf3): Likewise.
9156
9157 2008-06-30 Joey Ye <joey.ye@intel.com>
9158 H.J. Lu <hongjiu.lu@intel.com>
9159
9160 * global.c (compute_regsets): Set frame_pointer_needed here.
9161 * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
9162
9163 2008-06-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
9164
9165 * doc/install.texi (specific): Expand Windows build notes.
9166
9167 2008-06-30 Ira Rosen <irar@il.ibm.com>
9168
9169 PR tree-optimization/36648
9170 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
9171 number of prolog iterations by step. Fix the comment.
9172
9173 2008-06-30 Richard Guenther <rguenther@suse.de>
9174
9175 PR middle-end/36671
9176 * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
9177 handle calls from ECF_MALLOC functions.
9178 (handle_pure_call): ECF_MALLOC functions do not return
9179 call-used memory.
9180 (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
9181
9182 2008-06-29 Andreas Schwab <schwab@suse.de>
9183
9184 * config/m68k/m68k.c (print_operand): Always print a float
9185 constant in hex.
9186 * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
9187 (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
9188 Remove macros.
9189
9190 * config/rs6000/x-linux64: Remove never used file.
9191
9192 2008-06-29 Richard Guenther <rguenther@suse.de>
9193
9194 * tree-ssa-structalias.h (compute_points_to_sets): Adjust
9195 prototype.
9196 (struct alias_info): Move ...
9197 * tree-ssa-alias.c: ... here.
9198 (update_alias_info): Declare.
9199 (compute_may_aliases): Call it.
9200 (update_alias_info): New function.
9201 * tree-ssa-structalias.c (update_alias_info): Move ...
9202 * tree-ssa-alias.c (update_alias_info_1): ... here.
9203 * tree-ssa-structalias.c (process_constraint_1): Remove
9204 unused from_call argument. Rename to ...
9205 (process_constraint): ... this. Delete old wrapper.
9206 (make_constraint_to): Adjust callers.
9207 (handle_const_call): Likewise.
9208 (handle_pure_call): Likewise.
9209 (init_base_vars): Likewise.
9210 (handle_lhs_call): Likewise. Remove unnecessary constraint.
9211 (find_func_aliases): We don't need structure copies for
9212 complex types.
9213 (make_constraint_from_anything): Remove.
9214 (create_variable_info_for): For globals make constraints
9215 from escaped, not from anything.
9216 (compute_points_to_sets): Do not call update_alias_info.
9217 (ipa_pta_execute): Use make_constraint_from.
9218
9219 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9220
9221 * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
9222 (bitmap.o-warn, dominance.o-warn): New.
9223 * configure.ac (cxx_compat_warn): Delete.
9224 (loose_warn): Add -Wcast-qual and -Wc++-compat.
9225 * system.h: Remove #pragma diagnostic for -Wcast-qual and
9226 -Wc++-compat.
9227 * configure: Regenerate.
9228
9229 * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
9230 warnings.
9231
9232 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9233
9234 * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
9235 * df-scan.c (df_notes_rescan): Likewise.
9236 * ggc-page.c (set_page_table_entry): Likewise.
9237 * intl.c (gcc_gettext_width): Likewise.
9238 * varasm.c (get_unnamed_section, get_noswitch_section,
9239 get_section): Likewise.
9240
9241 2008-06-28 Andrew Jenner <andrew@codesourcery.com>
9242
9243 * regrename.c (build_def_use): Don't copy RTX.
9244
9245 2008-06-28 Sandra Loosemore <sandra@codesourcery.com>
9246
9247 * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
9248 (Type Attributes): Fix nesting of @table and @subsection. Adjust
9249 punctuation. Use @ref instead of @xref.
9250 (Function Names): Remove stray @display/@end display.
9251 (C++ Attributes): Use @ref instead of @xref.
9252 (Deprecated Features): Fix punctuation around @xref.
9253 (Backwards Compatibility): Likewise.
9254 * doc/rtl.texi (Incdec): Remove stray @table/@end table.
9255
9256 2008-06-28 Joseph Myers <joseph@codesourcery.com>
9257
9258 * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
9259 constants for E500 double.
9260
9261 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9262
9263 * doc/rtl.texi (const_vector): Document const_fixed as legitimate
9264 element type of const_vector.
9265
9266 2008-06-28 Uros Bizjak <ubizjak@gmail.com>
9267
9268 * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
9269 Remove FLAGS_REG clobber from expander pattern.
9270 (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
9271 (anddi3, andsi3, andhi3, andqi3): Ditto.
9272 (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
9273 (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
9274 (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
9275 (ashlsi3, ashlhi3, ashlqi3): Ditto.
9276 (ashrsi3, ashrhi3, ashrqi3): Ditto.
9277 (lshrsi3, lshrhi3, lshrqi3): Ditto.
9278 (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
9279 (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
9280
9281 2008-06-28 Richard Guenther <rguenther@suse.de>
9282
9283 * tree-ssa-structalias.c (callused_id, var_callused,
9284 callused_tree): Add.
9285 (handle_pure_call): New function.
9286 (find_func_aliases): Call it.
9287 (find_what_p_points_to): Handle the call-used set.
9288 (clobber_what_escaped): Likewise.
9289 (compute_call_used_vars): New function.
9290 (init_base_vars): Init the call-used variable.
9291 (do_sd_constraint): Do not propagate the solution from CALLUSED
9292 but use CALLUSED as a placeholder.
9293 (solve_graph): Likewise.
9294 * tree-flow-inline.h (gimple_call_used_vars): New function.
9295 * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
9296 (compute_call_used_vars): Declare.
9297 * tree-ssa-alias.c (set_initial_properties): Call
9298 compute_call_used_vars.
9299 (reset_alias_info): Clear call-used variables.
9300 (add_call_clobber_ops): Assert we are not called for const/pure
9301 functions. Remove handling of them.
9302 (add_call_read_ops): Handle pure functions by adding the
9303 call-used set of variables as VUSEs.
9304 * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
9305 (delete_tree_ssa): Free it.
9306 * tree-dfa.c (remove_referenced_var): Clear the var from the
9307 call-used bitmap.
9308
9309 2008-06-28 Kai Tietz <kai.tietz@onevision.com>
9310
9311 * tree.c (build_varargs_function_type_list): New.
9312 (build_function_type_list_1): New.
9313 (build_function_type_list): Use build_function_type_list_1.
9314 * tree.h (build_varargs_function_type_list): New.
9315
9316 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9317
9318 PR target/34856
9319 * config/spu/spu.c (spu_builtin_splats): Do not generate
9320 invalid CONST_VECTOR expressions.
9321 (spu_expand_vector_init): Likewise.
9322
9323 2008-06-28 Richard Sandiford <rdsandiford@googlemail.com>
9324
9325 * optabs.c (libfunc_decls): New variable.
9326 (libfunc_decl_hash, libfunc_decl_eq): New functions.
9327 (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
9328 for the same function twice.
9329
9330 2008-06-27 Uros Bizjak <ubizjak@gmail.com>
9331
9332 * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
9333 ix86_expand_binary_operator directly.
9334 (*ashlti3_1): Rename from ashlti3_1. Use nonmemory_operand predicate
9335 for operand 2.
9336 (*ashrti3_1): Ditto.
9337 (*lshrti3_1): Ditto.
9338 (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
9339 (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
9340 using only one splitter. Conditionaly execute splitter before or
9341 after peephole2 pass.
9342 (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
9343 (x86_shld): Rename from x86_shld_1. Compress operand 2 constraints.
9344 Use only one alternative in asm template.
9345 (x86_64_shld): Compress operand 2 constraints. Use only one alternative
9346 in asm template.
9347 (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
9348 "J" operand constraint for operand 2.
9349 (*ashldi3_cconly_rex64): Ditto.
9350 (*ashrdi3_cmp_rex64): Ditto.
9351 (*ashrdi3_cconly_rex64): Ditto.
9352 (*lshrdi3_cmp_rex64): Ditto.
9353 (*lshrdi3_cconly_rex64): Ditto.
9354 * config/i386/predicates.md (const_1_to_63_operand): New predicate.
9355 * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
9356 (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
9357 gen_x86_shrd_1.
9358
9359 2008-06-27 Jakub Jelinek <jakub@redhat.com>
9360
9361 * gimplify.c (omp_is_private): Don't return true if decl is not
9362 already private on #pragma omp for or #pragma omp parallel for.
9363
9364 PR debug/36617
9365 * tree-cfg.c (struct move_stmt_d): Replace block field with
9366 orig_block and new_block fields.
9367 (move_stmt_r): Only set TREE_BLOCK to p->new_block if
9368 if it used to be NULL, p->orig_block or if p->orig_block is NULL.
9369 (move_block_to_fn): Replace vars_map and new_label_map arguments
9370 with struct move_stmt_d pointer.
9371 (replace_block_vars_by_duplicates): New function.
9372 (move_sese_region_to_fn): Add ORIG_BLOCK argument. Adjust
9373 move_block_to_fn caller. If ORIG_BLOCK is non-NULL, move over
9374 all subblocks of ORIG_BLOCK to the new function. Call
9375 replace_block_vars_by_duplicates.
9376 * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
9377 * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
9378 BLOCK of the new function. Adjust move_sese_region_to_fn caller.
9379 Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
9380 (expand_omp): Temporarily set input_location to the location of
9381 region's controlling stmt.
9382 (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
9383 BIND_EXPR, push ctx->block_vars and gimplification vars into
9384 the BIND_EXPR and its block's BLOCK_VARS instead of directly
9385 into dest function.
9386 (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
9387 there are any BLOCK_VARS.
9388 (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
9389 OMP_PARALLEL or OMP_TASK stmt.
9390 (lower_omp): Save and restore input_location around the lower_omp_1
9391 call.
9392
9393 2008-06-27 Richard Guenther <rguenther@suse.de>
9394
9395 PR tree-optimization/36400
9396 PR tree-optimization/36373
9397 PR tree-optimization/36344
9398 * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
9399 var_nonlocal, nonlocal_tree, nonlocal_id): New globals
9400 (update_alias_info): Remove call clobbering code.
9401 (make_constraint_to): New helper function.
9402 (make_escape_constraint): Likewise.
9403 (handle_rhs_call): Use it on all pointer containing arguments.
9404 Also mark the static chain escaped.
9405 (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
9406 instead of ANYTHING.
9407 (make_constraint_from): New helper split out from ...
9408 (make_constraint_from_anything): ... here.
9409 (find_func_aliases): Add constraints for escape sites.
9410 (intra_create_variable_infos): Make constraints from NONLOCAL
9411 for parameters.
9412 (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
9413 as ANYTHING.
9414 (clobber_what_p_points_to): Remove.
9415 (clobber_what_escaped): New function.
9416 (init_base_vars): Init NONLOCAL and ESCAPED.
9417 (do_sd_constraint): Do not propagate the solution from ESCAPED
9418 but use ESCAPED as a placeholder.
9419 (solve_graph): Likewise.
9420 * tree-flow.h (clobber_what_p_points_to): Remove.
9421 (clobber_what_escaped): Declare.
9422 * tree-ssa-alias.c (set_initial_properties): Call it.
9423 Remove code clobbering escaped pointers.
9424
9425 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
9426
9427 * function.c (allocate_struct_function): Only allocate a unique
9428 funcdef_no if the decl is nonzero.
9429
9430 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
9431
9432 * config/mips/mips-protos.h (mips_split_const_insns): Declare.
9433 * config/mips/mips.c (mips_split_const_insns): New function.
9434 * config/mips/mips.md (move_type): New attribute.
9435 (mode): Move attribute definition earlier in file. Add "TI" and "TF".
9436 (dword_mode): New attribute.
9437 (type): Avoid long line. Map "move_type"s to "type"s,
9438 choosing "multi" for doubleword moves if appropriate.
9439 Swap MTC/MFC comments to match their declaration order.
9440 (extended_mips16): Default to "yes" if "move_type" is "sll0",
9441 "type" is "branch" or "jal" is "direct".
9442 (length): Handle "extended_mips16" first. Make the default
9443 "0" for "ghost" instructions. Set the length from "move_type".
9444 (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
9445 of "type", with "sll0" for the register alternative. Remove the
9446 "extended_mips16" attribute.
9447 (zero_extendsidi2, *clear_upper32): Use "move_type" instead
9448 of "type", with "shift_shift" for the register alternative.
9449 Remove the "length" attribute.
9450 (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
9451 (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
9452 of "type", with "andi" for the register alternative.
9453 (*zero_extendqihi2): Likewise.
9454 (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
9455 of "andi" instead of a "type" of "arith".
9456 (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
9457 instead of "type".
9458 (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
9459 (mov_<store>r, *mov<mode>_ra): Likewise.
9460 (extendsidi2): Use "move_type" instead of "type", with "move"
9461 for the register alternative.
9462 (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
9463 of "type", with "signext" for the register alternative.
9464 (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
9465 (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
9466 (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
9467 (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
9468 (floatdisf2, *branch_equality<mode>_mips16): Likewise.
9469 (unnamed branch insn): Likewise.
9470 (*movdi_gp32_fp64): Fold into...
9471 (*movdi_32bit): ...here.
9472 (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
9473 (*movdf_hardfloat): ...this new pattern.
9474 (*movdf_softfloat): Remove redundant FPR alternatives.
9475 (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
9476 (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
9477 (*movv2sf): ...this new pattern. Use "DF" rather than "SF" for
9478 the "move" attribute.
9479 (*movdi_32bit): Use "move_type" instead of "type" and remove the
9480 "length" attribute. Use "fpload" and "fpstore" instead of "load"
9481 and "store" for COP loads and stores.
9482 (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
9483 (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
9484 (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
9485 (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
9486 (*movtf_mips16, *movv2sf): Likewise.
9487 (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
9488 (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
9489 (mfhc1<mode>): Use "move_type" instead of "move".
9490 (*low<mode>_mips16): Use "extended_mips16" instead of "length".
9491 (loadgp_blockage): Remove the "length" attribute.
9492 (blockage, set_got_version, update_got_version): Likewise.
9493 (call_internal): Remove the "extended_mips16" attribute.
9494 (call_value_internal, call_value_multiple_internal): Likewise.
9495 * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
9496 instead of "move".
9497 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
9498 the "length" attribute.
9499
9500 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9501
9502 * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
9503 -Wcast-qual warnings.
9504 * c-pragma.c (dpm_eq, handle_pragma_push_macro,
9505 handle_pragma_pop_macro): Likewise.
9506 * collect2.c (resolve_lib_name): Likewise.
9507 * config/arc/arc.c (arc_init): Likewise.
9508 * config/arm/arm.c (neon_builtin_compare,
9509 locate_neon_builtin_icode): Likewise.
9510 * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
9511 * config/bfin/bfin.c (bfin_init_machine_status,
9512 bfin_optimize_loop): Likewise.
9513 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
9514 * config/cris/cris.c (cris_init_expanders): Likewise.
9515 * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
9516 * config/darwin.c (machopic_indirection_eq,
9517 machopic_indirection_name, machopic_output_indirection): Likewise.
9518 * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
9519 frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
9520 frv_optimize_membar): Likewise.
9521 * config/i386/cygwin.h (mingw_scan,
9522 GCC_DRIVER_HOST_INITIALIZATION): Likewise.
9523 * config/i386/cygwin1.c (mingw_scan): Likewise.
9524 * config/i386/i386.c (machopic_output_stub): Likewise.
9525 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
9526 i386_pe_unique_section): Likewise.
9527 * config/ia64/ia64.c (ia64_init_machine_status,
9528 ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
9529 Likewise.
9530 * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
9531 * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
9532 * config/m68k/m68k.c (m68k_handle_option,
9533 m68k_sched_md_init_global): Likewise.
9534 * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
9535 mcore_unique_section): Likewise.
9536 * config/mips/mips.c (mips_block_move_straight,
9537 mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
9538 Likewise.
9539 * config/mmix/mmix.c (mmix_init_machine_status,
9540 mmix_encode_section_info): Likewise.
9541 * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
9542 * config/rs6000/rs6000.c (rs6000_init_machine_status,
9543 print_operand_address, output_toc, redefine_groups,
9544 rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
9545 * config/s390/s390.c (s390_init_machine_status): Likewise.
9546 * config/score/score.c (score_block_move_straight,
9547 score_block_move_loop_body): Likewise.
9548 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
9549 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
9550 * emit-rtl.c (find_auto_inc): Likewise.
9551 * gcc.c (translate_options, process_command): Likewise.
9552 * reorg.c (dbr_schedule): Likewise.
9553 * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
9554 * xcoffout.c (xcoffout_declare_function): Likewise.
9555
9556 2008-06-27 Daniel Berlin <dberlin@dberlin.org>
9557
9558 * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
9559 ipa-pta working again.
9560
9561 2008-06-27 David Edelsohn <edelsohn@gnu.org>
9562
9563 * config/rs6000/t-aix52: Append large data option to LDFLAGS for
9564 genautomata.
9565
9566 2008-06-27 Edmar Wienskoski <edmar@freescale.com>
9567
9568 * config.gcc (powerpc*-*-*): Add new core e500mc.
9569 * config/rs6000/e500mc.md: New file.
9570 * config/rs6000/rs6000.c (processor_costs): Add new costs for
9571 e500mc.
9572 (rs6000_override_options): Add e500mc case to
9573 processor_target_table. Altivec and Spe options not allowed
9574 with e500mc. Add isel instruction to e500mc by
9575 default. Initialize rs6000_cost for e500mc.
9576 (rs6000_issue_rate): Set issue rate for e500mc.
9577 * config/rs6000/rs6000.h (processor_type): Add
9578 PROCESSOR_PPCE500MC.
9579 (ASM_CPU_SPEC): Add e500mc.
9580 Set TARGET_ISEL to rs6000_isel.
9581 * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
9582 (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
9583 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
9584 Include e500mc.md.
9585 * doc/invoke.texi: Add e500mc to list of cpus.
9586
9587 2008-06-27 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9588
9589 PR c/34867
9590 * c-lex.c (lex_charconst): Initialize unsignedp.
9591
9592 2008-06-27 Olivier Hainque <hainque@adacore.com>
9593
9594 * gimplify.c (gimplify_modify_expr_to_memset): Assert our
9595 documented assumptions.
9596
9597 2008-06-26 H.J. Lu <hongjiu.lu@intel.com>
9598
9599 * dwarf2out.c: Remove trailing white spaces. Break long line
9600 in comments.
9601
9602 2008-06-26 Richard Sandiford <rdsandiford@googlemail.com>
9603
9604 * libfuncs.h (LTI_synchronize): New libfunc_index.
9605 (synchronize_libfunc): Declare.
9606 * builtins.c (expand_builtin_synchronize): Consider using
9607 synchronize_libfunc before falling back on an asm blockage.
9608 * config/mips/mips.c: Include libfuncs.h
9609 (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
9610
9611 2008-06-26 Nathan Froyd <froydnj@codesourcery.com>
9612
9613 * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
9614 parameter. Copy stack_reg to r11 where appropriate.
9615 (no_global_regs_above): Add gpr parameter.
9616 (rs6000_stack_info): Only add padding for SPE save area if we
9617 are saving SPE GPRs and CR.
9618 (saveres_routine_syms): New variable.
9619 (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
9620 Define.
9621 (rs6000_savres_routine_sym): New function.
9622 (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
9623 split out of...
9624 (rs6000_emit_epilogue): ...here. Use rs6000_use_multiple_p and
9625 rs6000_savres_strategy. Restore GPRs out-of-line if appropriate.
9626 Tweak FPR out-of-line saving.
9627 (rs6000_make_savres_rtx): New function.
9628 (rs6000_use_multiple_p): New function.
9629 (rs6000_savres_strategy): New function.
9630 (rs6000_emit_prologue): Use rs6000_savres_strategy. Save GPRs
9631 out-of-line if appropriate.
9632 * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
9633 if we are optimizing for size.
9634 (GP_SAVE_INLINE): Define.
9635 (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
9636 * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
9637 * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
9638 * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
9639 (*save_fpregs_<mode>): Add use of r11.
9640 (*restore_gpregs_<mode>): New insn.
9641 (*return_and_restore_gpregs_<mode>): New insn.
9642 (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
9643 use r11.
9644 * config/rs6000/spe.md (*save_gpregs_spe): New insn.
9645 (*restore_gpregs_spe): New insn.
9646 (*return_and_restore_gpregs_spe): New insn.
9647 * config/rs6000/predicates.md (save_world_operation): Fix check.
9648
9649 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
9650
9651 * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
9652 this point, so assert that.
9653
9654 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
9655
9656 * cfganal.c: Include vec.h and vecprim.h.
9657 (compute_idf): Import from...
9658 * tree-into-ssa (compute_idf): ...here.
9659 * basic-block.h (compute_idf): Export.
9660
9661 2008-06-26 Joseph Myers <joseph@codesourcery.com>
9662
9663 * c-decl.c (merge_decls): Use !current_function_decl to check for
9664 extern declaration of C99 inline function being at file scope.
9665
9666 2008-06-25 John David Anglin <dave.anglin@gcc-cnrc.gc.ca>
9667
9668 * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
9669
9670 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9671
9672 * alias.c (record_alias_subset, init_alias_analysis): Fix
9673 -Wc++-compat and/or -Wcast-qual warnings.
9674 * attribs.c (lookup_attribute_spec): Likewise.
9675 * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
9676 copy_bb, connect_traces,
9677 find_rarely_executed_basic_blocks_and_cr): Likewise.
9678 * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
9679 note_btr_set, migrate_btr_defs): Likewise.
9680 * builtins.c (result_vector, expand_builtin_memcpy,
9681 expand_builtin_mempcpy_args, expand_builtin_strncpy,
9682 builtin_memset_read_str, expand_builtin_printf,
9683 fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
9684 Likewise.
9685 * caller-save.c (mark_set_regs): Likewise.
9686 * calls.c (expand_call, emit_library_call_value_1): Likewise.
9687 * cgraph.c (cgraph_edge): Likewise.
9688 * combine.c (likely_spilled_retval_1): Likewise.
9689 * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
9690 htab_counts_entry_del, get_coverage_counts): Likewise.
9691 * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
9692 new_cselib_val): Likewise.
9693 * dbgcnt.c (dbg_cnt_process_opt): Likewise.
9694 * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
9695 Likewise.
9696 * df-core.c (df_compact_blocks): Likewise.
9697 * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
9698 * df-scan.c (df_grow_reg_info, df_ref_create,
9699 df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
9700 df_ref_compare, df_ref_create_structure, df_bb_refs_record,
9701 df_record_entry_block_defs, df_record_exit_block_uses,
9702 df_bb_verify): Likewise.
9703 * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
9704 DF_REF_EXTRACT_MODE_CONST): New.
9705 * dominance.c (get_immediate_dominator, get_dominated_by,
9706 nearest_common_dominator, root_of_dom_tree,
9707 iterate_fix_dominators, first_dom_son, next_dom_son): Fix
9708 -Wc++-compat and/or -Wcast-qual warnings.
9709 * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
9710 record_store, replace_read, check_mem_read_rtx, scan_insn,
9711 dse_step1, dse_record_singleton_alias_set): Likewise.
9712 * dwarf2asm.c (dw2_force_const_mem): Likewise.
9713
9714 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9715
9716 * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
9717 dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
9718 lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
9719 assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
9720 build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
9721 add_ranges_num, add_ranges_by_labels, file_info_cmp,
9722 file_name_acquire, output_file_names, add_const_value_attribute,
9723 premark_used_types_helper, file_table_eq, file_table_hash,
9724 lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
9725 dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
9726 -Wcast-qual warnings.
9727 * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
9728 ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
9729 * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
9730 gen_reg_rtx, start_sequence, init_emit): Likewise.
9731 * et-forest.c (et_new_occ, et_new_tree): Likewise.
9732 * except.c (init_eh_for_function, gen_eh_region,
9733 remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
9734 arh_to_landing_pad, arh_to_label, add_action_record,
9735 add_call_site, switch_to_exception_section): Likewise.
9736 * expmed.c (synth_mult): Likewise.
9737 * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
9738 store_expr): Likewise.
9739 * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
9740 Likewise.
9741 * function.c (assign_stack_temp_for_type,
9742 allocate_struct_function, match_asm_constraints_1): Likewise.
9743 * gcov-io.c (gcov_allocate): Likewise.
9744 * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
9745 GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
9746 (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
9747 record_one_set, insert_expr_in_table, insert_set_in_table,
9748 dump_hash_table, compute_hash_table_work, alloc_hash_table,
9749 pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
9750 reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
9751 -Wcast-qual warnings.
9752
9753 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9754
9755 * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
9756 -Wcast-qual warnings.
9757 * gcc.c (process_command): Likewise.
9758 * genattrtab.c (oballoc): Use XOBNEW.
9759 (oballocvec): Define.
9760 (attr_hash_add_rtx, attr_hash_add_string, attr_string,
9761 get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
9762 gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
9763 -Wc++-compat and/or -Wcast-qual warnings.
9764 * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
9765 XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
9766 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
9767 gen_presence_absence_set, gen_automaton, gen_regexp_el,
9768 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
9769 gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
9770 add_excls, process_presence_absence_names,
9771 process_presence_absence_patterns, add_presence_absence,
9772 process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
9773 get_free_state, add_arc, get_free_automata_list_el,
9774 form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
9775 transform_3, cache_presence, create_ainsns, create_automata,
9776 create_state_ainsn_table, dfa_insn_code_enlarge,
9777 output_trans_func, output_min_issue_delay_func,
9778 output_dead_lock_func, output_reset_func,
9779 output_get_cpu_unit_code_func, output_dfa_start_func,
9780 expand_automata): Likewise.
9781 * genextract.c (gen_insn): Likewise.
9782 * gengtype-lex.l: Likewise.
9783 * gengtype.c (read_input_list, adjust_field_type,
9784 process_gc_options): Likewise.
9785 * genoutput.c (note_constraint): Likewise.
9786 * genpreds.c (mangle, add_constraint): Likewise.
9787 * genrecog.c (process_define_predicate, new_decision,
9788 add_to_sequence): Likewise.
9789 * gensupport.c (record_insn_name): Likewise.
9790
9791 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9792
9793 * config/i386/driver-i386.c (detect_caches_amd,
9794 detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
9795 and/or -Wcast-qual warnings.
9796 *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
9797 gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
9798 gt_pch_save): Likewise.
9799 * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
9800 gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
9801 * global.c (compute_regsets): Likewise.
9802 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
9803 finish_graph_dump_file): Likewise.
9804 * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
9805 unlink_bb_notes): Likewise.
9806 * integrate.c (get_hard_reg_initial_val): Likewise.
9807 * ipa-prop.c (ipa_push_func_to_list): Likewise.
9808 * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
9809 * local-alloc.c (update_equiv_regs): Likewise.
9810 * loop-invariant.c (check_invariant_table_size,
9811 hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
9812 Likewise.
9813 * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
9814 altered_reg_used, mark_altered): Likewise.
9815 * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
9816 insert_var_expansion_initialization,
9817 combine_var_copies_in_loop_exit, apply_opt_in_copies,
9818 release_var_copies): Likewise.
9819 * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
9820 analyze_matrix_decl, add_allocation_site, analyze_transpose,
9821 analyze_accesses_for_phi_node, check_var_notmodified_p,
9822 check_allocation_function, find_sites_in_func,
9823 record_all_accesses_in_func, transform_access_sites,
9824 transform_allocation_sites): Likewise.
9825 * omp-low.c (new_omp_region, create_omp_child_function_name,
9826 check_omp_nesting_restrictions, check_combined_parallel,
9827 lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
9828 * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
9829 gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
9830 gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
9831 Likewise.
9832 * opts-common.c (prune_options): Likewise.
9833 * opts.c (add_input_filename, print_filtered_help,
9834 get_option_state): Likewise.
9835 * params.c (add_params): Likewise.
9836 * passes.c (set_pass_for_id, next_pass_1,
9837 do_per_function_toporder, pass_fini_dump_file): Likewise.
9838 * postreload.c (reload_cse_simplify_operands): Likewise.
9839 * predict.c (tree_predicted_by_p, tree_predict_edge,
9840 clear_bb_predictions, combine_predictions_for_bb): Likewise.
9841
9842 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9843
9844 * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
9845 warnings.
9846 * recog.c (check_asm_operands, validate_change_1): Likewise.
9847 * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
9848 subst_asm_stack_regs): Likewise.
9849 * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
9850 cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
9851 * regmove.c (reg_is_remote_constant_p): Likewise.
9852 * regrename.c (regrename_optimize, scan_rtx_reg,
9853 kill_clobbered_value, kill_set_value, kill_autoinc_value):
9854 Likewise.
9855 * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
9856 regstat_compute_calls_crossed): Likewise.
9857 * reload1.c (init_reload, new_insn_chain,
9858 has_nonexceptional_receiver, reload, copy_reloads,
9859 calculate_needs_all_insns, init_elim_table): Likewise.
9860 * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
9861 * rtl.c (shallow_copy_rtx_stat): Likewise.
9862 * rtlanal.c (parms_set): Likewise.
9863 * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
9864 sbitmap_resize, sbitmap_vector_alloc): Likewise.
9865 * sched-ebb.c (earliest_block_with_similiar_load,
9866 add_deps_for_risky_insns): Likewise.
9867 * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
9868 schedule_region): Likewise.
9869 * see.c (eq_descriptor_pre_extension,
9870 hash_descriptor_pre_extension, hash_del_pre_extension,
9871 eq_descriptor_properties, hash_descriptor_properties,
9872 hash_del_properties, see_seek_pre_extension_expr,
9873 see_initialize_data_structures, see_print_register_properties,
9874 see_print_pre_extension_expr, see_delete_merged_def_extension,
9875 see_delete_unmerged_def_extension, see_emit_use_extension,
9876 see_pre_delete_extension, see_map_extension, see_commit_changes,
9877 see_analyze_merged_def_local_prop,
9878 see_analyze_merged_def_local_prop,
9879 see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
9880 see_set_prop_merged_def, see_set_prop_unmerged_def,
9881 see_set_prop_unmerged_use, see_print_one_extension,
9882 see_merge_one_use_extension, see_merge_one_def_extension,
9883 see_store_reference_and_extension, see_update_uses_relevancy,
9884 see_update_defs_relevancy): Likewise.
9885 * statistics.c (hash_statistics_hash, hash_statistics_eq,
9886 hash_statistics_free, curr_statistics_hash): Likewise.
9887 * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
9888 expand_asm_operands, expand_return, case_bit_test_cmp,
9889 expand_case): Likewise.
9890 * stor-layout.c (start_record_layout): Likewise.
9891 * stringpool.c (ggc_alloc_string, gt_pch_n_S,
9892 gt_pch_save_stringpool): Likewise.
9893 * tree-data-ref.c (hash_stmt_vertex_info,
9894 have_similar_memory_accesses_1, ref_base_address_1): Likewise.
9895 * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
9896
9897 2008-06-25 Uros Bizjak <ubizjak@gmail.com>
9898
9899 PR target/36627
9900 * config/i386/i386.md : Change constraints of HImode and QImode
9901 immediate operands from "i" to "n". Change SImode "ni" constraint to
9902 "i" and SImode "rmi" constraint to "g". Remove all constraints
9903 from const0_operand and const1_operand predicated operands.
9904 (i): Change QImode and HImode attribute from "i" to "n".
9905 (*subqi_2): Change HImode operands to QImode.
9906 (*subqi_3): Ditto.
9907
9908 2008-06-25 Olivier Hainque <hainque@adacore.com>
9909
9910 * Makefile.in (GTFILES_H): Use | instead of ; as separator in
9911 sed substitutions.
9912
9913 2008-06-25 Richard Guenther <rguenther@suse.de>
9914
9915 * tree-ssa-structalias.c (fieldoff_compare): Make sure to
9916 not overflow the result type.
9917
9918 2008-06-25 Richard Guenther <rguenther@suse.de>
9919
9920 * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
9921 (vn_lookup): Likewise.
9922
9923 2008-06-25 Richard Guenther <rguenther@suse.de>
9924
9925 PR tree-optimization/35518
9926 * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
9927 * tree-sra.c (instantiate_element): Use fold_build3 to build
9928 BIT_FIELD_REFs.
9929 (try_instantiate_multiple_fields): Likewise.
9930
9931 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
9932
9933 * config/rs6000/rs6000.md: Change all string instruction's clobber to
9934 be early clobbers.
9935
9936 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
9937
9938 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
9939 use_backchain_to_restore_sp to true
9940 if the offset of the link register save area would go over the 32k - 1
9941 offset limit of the load
9942 instructions.
9943
9944 2008-06-25 Hans-Peter Nilsson <hp@axis.com>
9945
9946 * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
9947 anchor for the type-punning blurb. Cross-reference "Structures
9948 unions enumerations and bit-fields implementation". Provide a
9949 cast-through-pointer example. Make final sentence self-contained.
9950 * doc/implement-c.texi (Structures unions enumerations and
9951 bit-fields implementation): Cross-reference the type-punning blurb
9952 in the -fstrict-aliasing documentation.
9953
9954 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
9955
9956 PR middle-end/36594
9957 * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
9958 the memory instead of the memory itself for the save area.
9959
9960 2008-06-24 Olivier Hainque <hainque@adacore.com>
9961 Nicolas Roche <roche@adacore.com>
9962
9963 * gengtype.c (srcdir_len): size_t instead of int.
9964 (get_file_realbasename): New function. For F a filename, the real
9965 basename of F, with all the path components stripped.
9966 (get_file_srcdir_relative_path): New function. For F a filename, the
9967 relative path to F from $(srcdir).
9968 (get_file_basename): Rewrite using get_file_srcdir_relative_path and
9969 get_file_realbasename. Adjust the head comment.
9970 (get_prefix_langdir_index): New function. For F a filename, return the
9971 lang_dir_names[] relative index of the language directory that is
9972 a prefix in F.
9973 (get_file_langdir): For F a filename, return the name of the language
9974 directory where F is located.
9975 (get_file_gtfilename): New function. The gt- output file name for an
9976 input filename F.
9977 (get_output_file_with_visibility): Replace in-line computations with
9978 uses of get_file_gtfilename and get_prefix_langdir_index.
9979 * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
9980
9981 2008-06-24 Jakub Jelinek <jakub@redhat.com>
9982
9983 PR tree-optimization/36504
9984 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
9985 references without base address.
9986
9987 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
9988
9989 PR middle-end/36584
9990 * calls.c (expand_call): Increase alignment for recursive functions.
9991
9992 2008-06-23 Anatoly Sokolov <aesok@post.ru>
9993
9994 * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
9995 (TARGET_FUNCTION_VALUE): New define.
9996 * config/avr/avr-protos.h (avr_function_value): Remove declaration.
9997 * config/avr/avr.h (FUNCTION_VALUE): Remove.
9998
9999 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
10000
10001 * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
10002 (fmod<mode>3): Ditto.
10003 (remainderxf3): Ditto.
10004 (remainder<mode>3): Ditto.
10005
10006 2008-06-23 Jakub Jelinek <jakub@redhat.com>
10007
10008 PR target/36533
10009 * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
10010 REG is a hard register.
10011
10012 PR tree-optimization/36508
10013 * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
10014 499, don't check it at all in release compilers.
10015
10016 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
10017
10018 * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
10019 together with SSE_TARGET_MATH to disable insn pattern.
10020 (*fop_<MODEF:mode>_2_i387): Ditto.
10021 (*fop_<MODEF:mode>_3_i387): Ditto.
10022
10023 2008-06-22 Andy Hutchinson <hutchinsonandy@aim.com>
10024
10025 * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
10026
10027 2008-06-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
10028
10029 PR middle-end/34906
10030 * gimplify.c (gimplify_asm_expr): Check the return code of
10031 parse_output_constraint call, set function return and is_inout
10032 value if it failed.
10033
10034 2008-06-22 Ian Lance Taylor <iant@google.com>
10035
10036 * c-lex.c (narrowest_unsigned_type): Change itk to int.
10037 (narrowest_signed_type): Likewise.
10038 * c-typeck.c (c_common_type): Change local variable mclass to enum
10039 mode_class, twice.
10040 (parser_build_binary_op): Compare the TREE_CODE_CLASS with
10041 tcc_comparison, not the tree code itself.
10042 * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
10043 (c_expand_expr): Cast modifier to enum expand_modifier.
10044 * c-common.h (C_RID_CODE): Add casts.
10045 (C_SET_RID_CODE): Define.
10046 * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
10047 (c_lex_one_token): Add cast to avoid warning.
10048 (c_parser_objc_type_name): Rename local typename to type_name.
10049 (check_no_duplicate_clause): Change code parameter to enum
10050 omp_clause_code.
10051 (c_parser_omp_var_list_parens): Change kind parameter to enum
10052 omp_clause_code.
10053 (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
10054 c_parser_omp_list_var_parens.
10055 (c_parser_omp_threadprivate): Likewise.
10056 * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
10057 * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
10058 * c-format.c (NO_FMT): Define.
10059 (printf_length_specs): Use NO_FMT.
10060 (asm_fprintf_length_specs): Likewise.
10061 (gcc_diag_length_specs): Likewise.
10062 (scanf_length_specs): Likewise.
10063 (strfmon_length_specs): Likewise.
10064 (gcc_gfc_length_specs): Likewise.
10065 (printf_flag_specs): Change 0 to STD_C89.
10066 (asm_fprintf_flag_specs): Likewise.
10067 (gcc_diag_flag_specs): Likewise.
10068 (gcc_cxxdiag_flag_specs): Likewise.
10069 (scanf_flag_specs): Likewise.
10070 (strftime_flag_specs): Likewise.
10071 (strfmon_flag_specs): Likewise.
10072 (print_char_table): Likewise.
10073 (asm_fprintf_char_table): Likewise.
10074 (gcc_diag_char_table): Likewise.
10075 (gcc_tdiag_char_table): Likewise.
10076 (gcc_cdiag_char_table): Likewise.
10077 (gcc_cxxdiag_char_table): Likewise.
10078 (gcc_gfc_char_table): Likewise.
10079 (scan_char_table): Likewise.
10080 (time_char_table): Likewis.
10081 (monetary_char_table): Likewise.
10082 * c-format.h (BADLEN): Likewise.
10083
10084 2008-06-21 Ian Lance Taylor <iant@google.com>
10085
10086 * tree.h (enum tree_code): Include all-tree.def, not tree.def.
10087 Define END_OF_BASE_TREE_CODES around inclusion.
10088 * tree.c (tree_code_type): New global array.
10089 (tree_code_length, tree_code_name): Likewise.
10090 * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
10091 $(lang_tree_files).
10092 (all-tree.def, s-alltree): New targets.
10093 (gencheck.h, s-gencheck): Remove.
10094 (tree.o): Depend upon all-tree.def.
10095 (build/gencheck.o): Remove gencheck.h dependency.
10096 (mostlyclean): Don't remove gencheck.h.
10097 * c-common.h (enum c_tree_code): Remove.
10098 * c-lang.c (tree_code_type): Remove.
10099 (tree_code_length, tree_code_name): Remove.
10100 * gencheck.c (tree_codes): Include all-tree.def, rather than
10101 tree.def, c-common.def, and gencheck.h. Undefined DEFTREECODE
10102 after it is used.
10103 * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
10104 than tree.def.
10105 * cp/cp-tree.h (enum cplus_tree_code): Remove.
10106 (operator_name_info): Size to MAX_TREE_CODES.
10107 (assignment_operator_name_info): Likewise.
10108 * cp/cp-lang.c (tree_code_type): Remove.
10109 (tree_code_length, tree_code_name): Remove.
10110 * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
10111 (assignment_operator_name_info): Likewise.
10112 * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
10113 MAX_TREE_CODES.
10114 * cp/mangle.c (write_expression): Likewise.
10115 * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
10116 * fortran/f95-lang.c (tree_code_type): Remove.
10117 (tree_code_length, tree_code_name): Remove.
10118 * java/java-tree.h (enum java_tree_code): Remove.
10119 * java/lang.c (tree_code_type): Remove.
10120 (tree_code_length, tree_code_name): Remove.
10121 * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
10122 * objc/objc-act.h (enum objc_tree_code): Remove.
10123 * objc/objc-lang.c (tree_code_type): Remove.
10124 (tree_code_length, tree_code_name): Remove.
10125 * objcp/objcp-lang.c (tree_code_type): Remove.
10126 (tree_code_length, tree_code_name): Remove.
10127 * ada/ada-tree.h (enum gnat_tree_code): Remove.
10128 * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
10129 * ada/misc.c (tree_code_type): Remove.
10130 (tree_code_length, tree_code_name): Remove.
10131
10132 2008-06-21 Bernhard Fischer <aldot@gcc.gnu.org>
10133
10134 * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
10135 the grand_bitmap_obstack.
10136
10137 2008-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10138
10139 * ggc.h (GGC_RESIZEVAR): New, reorder macros.
10140 * tracer.c (tail_duplicate): Fix for -Wc++-compat.
10141 * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
10142 * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
10143 move_stmt_r, new_label_mapper): Likewise.
10144 * tree-complex.c (cvc_lookup): Likewise.
10145 * tree-dfa.c (create_function_ann): Likewise.
10146 * tree-dump.c (dump_register): Likewise.
10147 * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
10148 find_phi_replacement_condition): Likewise.
10149 * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
10150 tree_function_versioning): Likewise.
10151 * tree-into-ssa.c (cmp_dfsnum): Likewise.
10152 * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
10153 * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
10154 get_nonlocal_debug_decl, convert_nonlocal_reference,
10155 convert_nonlocal_omp_clauses, get_local_debug_decl,
10156 convert_local_reference, convert_local_omp_clauses,
10157 convert_nl_goto_reference, convert_nl_goto_receiver,
10158 convert_tramp_reference, convert_call_expr): Likewise.
10159 * tree-outof-ssa.c (contains_tree_r): Likewise.
10160 * tree-parloops.c (reduction_phi, initialize_reductions,
10161 eliminate_local_variables_1, add_field_for_reduction,
10162 add_field_for_name, create_phi_for_local_result,
10163 create_call_for_reduction_1, create_loads_for_reductions,
10164 create_stores_for_reduction, create_loads_and_stores_for_name):
10165 Likewise.
10166 * tree-phinodes.c (allocate_phi_node): Likewise.
10167 * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
10168 * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
10169 * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
10170 * tree-ssa-coalesce.c (compare_pairs): Likewise.
10171 * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
10172 memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
10173 record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
10174 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
10175 * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
10176 vn_nary_op_insert): Likewise.
10177 * tree-ssa.c (redirect_edge_var_map_add,
10178 redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
10179 * tree-vectorizer.c (vectorize_loops): Likewise.
10180 * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
10181 build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
10182 tree_cons_stat, build1_stat, build_variant_type_copy,
10183 decl_init_priority_lookup, decl_fini_priority_lookup,
10184 decl_priority_info, decl_restrict_base_lookup,
10185 decl_restrict_base_insert, decl_debug_expr_lookup,
10186 decl_debug_expr_insert, decl_value_expr_lookup,
10187 decl_value_expr_insert, type_hash_eq, type_hash_lookup,
10188 type_hash_add, get_file_function_name, tree_check_failed,
10189 tree_not_check_failed, tree_range_check_failed,
10190 omp_clause_range_check_failed, build_omp_clause,
10191 build_vl_exp_stat): Likewise.
10192 * value-prof.c (gimple_histogram_value,
10193 gimple_duplicate_stmt_histograms): Likewise.
10194 * var-tracking.c (attrs_list_insert, attrs_list_copy,
10195 unshare_variable, variable_union_info_cmp_pos, variable_union,
10196 dataflow_set_different_1, dataflow_set_different_2,
10197 vt_find_locations, variable_was_changed, set_variable_part,
10198 emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
10199 * varasm.c (prefix_name, emutls_decl, section_entry_eq,
10200 section_entry_hash, object_block_entry_eq,
10201 object_block_entry_hash, create_block_symbol,
10202 initialize_cold_section_name, default_function_rodata_section,
10203 strip_reg_name, set_user_assembler_name, const_desc_eq,
10204 build_constant_desc, output_constant_def, lookup_constant_def,
10205 const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
10206 create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
10207 default_internal_label): Likewise.
10208 * varray.c (varray_init, varray_grow): Likewise.
10209 * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
10210
10211 2008-06-20 Uros Bizjak <ubizjak@gmail.com>
10212
10213 * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
10214 operators for "test" insn. Macroize insn using SWI mode macro.
10215 (*jcc_fused_2): Ditto.
10216 (*jcc_fused_3): Macroize insn using SWI mode macro.
10217 (*jcc_fused_4): Ditto.
10218
10219 2008-06-20 Bernhard Fischer <aldot@gcc.gnu.org>
10220
10221 * tree-ssa-pre.c: Fix typo in comment.
10222 (init_antic, fini_antic): Add explicit funtions for
10223 initializing and deinitializing ANTIC and AVAIL sets.
10224 (create_expression_by_pieces): Fix typo in comment.
10225 Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
10226 (execute_pre): Eventually dump details about ANTIC_IN.
10227
10228 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10229
10230 * collect2.c (main, add_to_list): Fix for -Wc++-compat.
10231 * gcc.c (translate_options, init_spec, store_arg, read_specs,
10232 add_to_obstack, file_at_path, find_a_file, execute,
10233 add_preprocessor_option, add_assembler_option, add_linker_option,
10234 process_command, insert_wrapper, do_option_spec, do_self_spec,
10235 spec_path, do_spec_1, is_directory, main, used_arg,
10236 getenv_spec_function): Likewise.
10237 * tlink.c (symbol_hash_lookup, file_hash_lookup,
10238 demangled_hash_lookup, symbol_push, file_push, frob_extension):
10239 Likewise.
10240
10241 2008-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
10242
10243 * doc/rtl.texi: Updated subreg section.
10244
10245 2008-06-19 Jakub Jelinek <jakub@redhat.com>
10246
10247 PR c++/36523
10248 * cgraphunit.c (cgraph_process_new_functions): Don't clear
10249 node->needed and node->reachable.
10250 * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
10251 * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
10252 (expand_task_call): Don't call expand_task_copyfn.
10253 (expand_task_copyfn): Renamed to...
10254 (finalize_task_copyfn): ... this.
10255
10256 2008-06-19 Jan Hubicka <jh@suse.cz>
10257
10258 * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
10259 clobbering framepointer.
10260
10261 2008-06-19 Jan Hubicka <jh@suse.cz>
10262
10263 * tree-optimize.c (execute_early_local_optimizations): Set
10264 cgraph_state only at first invocation.
10265
10266 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10267
10268 * system.h (-Wc++-compat): Activate as a warning, no an error.
10269
10270 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
10271
10272 * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
10273 instead of "#" in insn asm template.
10274 (*jcc_fused_2): Ditto.
10275
10276 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
10277
10278 * config/i386/i386.h (ix86_tune_indices)
10279 [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
10280 (TARGET_FUSE_CMP_AND_BRANCH): New define.
10281 * config/i386/i386.md (*jcc_fused_1): New insn pattern
10282 (*jcc_fused_2): Ditto.
10283 * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
10284 X86_TUNE_FUSE_CMP_AND_BRANCH targets.
10285 (print operand): Handle 'E' and 'e' code.
10286
10287 2008-06-19 Anatoly Sokolov <aesok@post.ru>
10288
10289 * config/avr/avr.c (avr_mcu_t): Add attiny13a.
10290 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
10291 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
10292
10293 2008-06-19 Bernhard Fischer <aldot@gcc.gnu.org>
10294
10295 * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
10296 node->decl.
10297 (cgraph_expand_function): Use local copy of decl.
10298 (cgraph_expand_all_functions): Remove redundant initialization of
10299 order_pos.
10300 (cgraph_optimize): Reword internal_error message.
10301
10302 2008-06-19 Chung-Lin Tang <ctang@marvell.com>
10303
10304 * arm-protos.h (arm_return_in_memory): Remove public
10305 arm_return_in_memory() prototype.
10306 * arm.c (arm_return_in_memory): Add static prototype, add target
10307 hook macro, change definition and comments.
10308 * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
10309
10310 2008-06-19 Ben Elliston <bje@au.ibm.com>
10311
10312 * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
10313 real.c: Remove references to IEEE 754R.
10314 * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
10315 * doc/libgcc.texi (Decimal float library routines): Likewise.
10316
10317 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10318
10319 * targhooks.h (struct gcc_target): New member unwind_word_mode.
10320 (default_unwind_word_mode): Add prototype.
10321 * targhooks.c (default_unwind_word_mode): New function.
10322 (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
10323 instead of word_mode.
10324 * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
10325 (TARGET_INITIALIZER): Use it.
10326
10327 * c-common.c (handle_mode_attribute): Support "unwind_word"
10328 mode attribute.
10329 * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
10330
10331 * except.c (init_eh): Use targetm.unwind_word_mode () instead of
10332 word_mode to access SjLj_Function_Context member "data".
10333 (sjlj_emit_dispatch_table): Likewise. Also, perform type
10334 conversion from targetm.eh_return_filter_mode () to
10335 targetm.unwind_word_mode () if they differ.
10336
10337 * builtin-types.def (BT_UNWINDWORD): New primitive type.
10338 (BT_FN_UNWINDWORD_PTR): New function type.
10339 (BT_FN_WORD_PTR): Remove.
10340 * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
10341 * except.c (expand_builtin_extend_pointer): Convert pointer to
10342 targetm.unwind_word_mode () instead of word_mode.
10343
10344 * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
10345 * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
10346 (spu_unwind_word_mode): New function.
10347 (TARGET_EH_RETURN_FILTER_MODE): Do not define.
10348 (TARGET_UNWIND_WORD_MODE): Define.
10349 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
10350
10351 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10352
10353 * config/spu/spu.c (reg_align): Remove.
10354 (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
10355 (spu_split_load): Use regno_aligned_for_load instead of reg_align.
10356 (spu_split_store): Likewise.
10357
10358 2008-06-18 Bernhard Fischer <aldot@gcc.gnu.org>
10359
10360 * gcc/tree-vn.c: Fix typo in comment.
10361
10362 2008-06-18 Jan Hubicka <jh@suse.cz>
10363
10364 * cgraphunit.c (cgraph_optimize): Output debug info when doing
10365 toplevel reorder too.
10366
10367 2008-06-18 Jan Hubicka <jh@suse.cz>
10368
10369 * c-opts.c (c_common_post_options): PCH is not compatible with
10370 no-unit-at-a-time.
10371 * opts.c (handle_options): Enable unit-at-a-time at O0 along with
10372 -fno-toplevel-reorder by default now.
10373
10374 2008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10375
10376 PR documentation/30739
10377 * doc/install.texi (Prerequisites): Document dependency on awk.
10378
10379 2008-06-18 Uros Bizjak <ubizjak@gmail.com>
10380 Ian Lance Taylor <iant@google.com>
10381
10382 PR rtl-optimization/35604
10383 * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
10384 only want to change jump destinations, not eventual label comparisons.
10385
10386 2008-06-16 Jan Hubicka <jh@suse.cz>
10387
10388 * cgraphunit.c (cgraph_expand_pending_functions): Give up at
10389 syntax errors.
10390 (cgraph_analyze_function): Likewise.
10391
10392 2008-06-16 Jan Hubicka <jh@suse.cz>
10393
10394 * cgraph.h (cgraph_mark_if_needed): New function.
10395 * cgraphunit.c (cgraph_mark_if_needed): New function.
10396 * c-decl.c (duplicate_decl): Use it.
10397
10398 2008-06-16 Jan Hubicka <jh@suse.cz>
10399
10400 * cgraph.c (cgraph_add_new_function): When in expansion state, do
10401 lowering.
10402
10403 2008-06-16 Jan Hubicka <jh@suse.cz>
10404
10405 * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
10406
10407 2008-06-16 Daniel Jacobowitz <dan@codesourcery.com>
10408 Kazu Hirata <kazu@codesourcery.com>
10409 Maxim Kuvyrkov <maxim@codesourcery.com
10410
10411 * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
10412 * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
10413 * config/mips/linux.h (host_detect_local_cpu): Declare, add to
10414 EXTRA_SPEC_FUNCTIONS.
10415 (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
10416 (DRIVER_SELF_SPECS): Adjust.
10417 * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
10418 * config/mips/st.h, config/mips/t-st: New.
10419 * config/mips/driver-native.c, config/mips/x-native: New.
10420 * doc/invoke.texi (MIPS): Document 'native' value for -march and
10421 -mtune options.
10422
10423 2008-06-18 Maxim Kuvyrkov <maxim@codesourcery.com>
10424
10425 * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
10426 from it.
10427 (ISA_HAS_FP_CONDMOVE): New macro.
10428 (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
10429 (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
10430 (ISA_HAS_NMADD3_NMSUB3): New macro.
10431 * config/mips/mips.c (mips_rtx_costs): Update.
10432 * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
10433 compiling for ST Loongson 2E/2F.
10434 (madd<mode>): Rename to madd4<mode>. Update.
10435 (madd3<mode>): New pattern.
10436 (msub<mode>): Rename to msub4<mode>. Update.
10437 (msub3<mode>): New pattern.
10438 (nmadd<mode>): Rename to nmadd4<mode>. Update.
10439 (nmadd3<mode>): New pattern.
10440 (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath. Update.
10441 (nmadd3<mode>_fastmath): New pattern.
10442 (nmsub<mode>): Rename to nmsub4<mode>. Update.
10443 (nmsub3<mode>): New pattern.
10444 (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath. Update.
10445 (nmsub3<mode>_fastmath): New pattern.
10446 (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
10447
10448 2008-06-18 Steven Bosscher <steven@gcc.gnu.org>
10449
10450 * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
10451 (DF_REF_INSN_INFO): New.
10452 (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
10453 (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
10454 with a NULL DF_REF_INSN_INFO.
10455 (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
10456 DF_INSN_SET.
10457 (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
10458 DF_INSN_INFO_EQ_USES): New.
10459 (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
10460 DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
10461 DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
10462 * df-core.c: Update comment for above changes.
10463 (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
10464 DF_INSN_UID_* macros.
10465 (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
10466 * df-scan.c (df_ref_record): Take a df_insn_info instead of an
10467 insn rtx. Update all callers.
10468 (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
10469 df_ref_create_structure, df_insn_refs_collect): Likewise.
10470 (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
10471 * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
10472 (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
10473 macros to access the insn refs.
10474 (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
10475 * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
10476 (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
10477 for accessing the refs.
10478 (try_fwprop_subst): Likewise.
10479 * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
10480 * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
10481 for accessing the refs.
10482 * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
10483 (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
10484 to look at the insn refs.
10485 (record_uses): Likewise.
10486 * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
10487 function anymore.
10488 (mark_artificial_uses): Don't mark_insn for artificial refs.
10489 (mark_reg_rependencies): Likewise.
10490
10491 * doc/rtl.texi: Remove documentation of ADDRESSOF.
10492
10493 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10494
10495 * configure: Regenerate.
10496
10497 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
10498
10499 * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
10500 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10501 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10502
10503 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
10504
10505 * config/avr/avr.c (avr_mcu_t): Add attiny167.
10506 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10507 * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10508
10509 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
10510
10511 * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
10512 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10513 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10514
10515 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
10516
10517 * tree-ssa-sccvn.c: Fix format of comments.
10518
10519 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
10520
10521 * cgraph.c: Remove unneeded forward declarations of eq_node()
10522 and hash_node().
10523
10524 2008-06-17 Steven Bosscher <steven@gcc.gnu.org>
10525
10526 * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
10527 REG_RETVAL notes.
10528 (see_update_relevancy): Likewise.
10529 * fwprop.c (try_fwprop_subst): Likewise.
10530 * rtlanal.c (noop_move_p): Likewise.
10531 * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
10532 notes to non-existing libcall blocks.
10533 * cse.c (cse_insn): Change prototype. Don't update libcall notes.
10534 Remove orig_set.
10535 (cse_extended_basic_block): Don't track libcall and no-conflict notes.
10536 (dead_libcall_p): Remove.
10537 (delete_trivially_dead_insns): Don't use it.
10538 * web.c (union_defs): Remove comment about keeping nops.
10539 * gcse.c (hash_scan_insn): Don't take libcall pointers.
10540 (compute_hash_table_work): Don't track libcall notes.
10541 (do_local_cprop): Don't take libcall pointers. Don't update
10542 libcall notes.
10543 (adjust_libcall_notes): Deleted.
10544 (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
10545 ever have existed in the first place).
10546 (replace_store_insn): Don't try to remove libcall notes.
10547 * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
10548 (resolve_reg_notes): Don't call them.
10549 (resolve_simple_move): Likewise.
10550 (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
10551 Don't remove REG_RETVAL notes.
10552 * emit-rtl.c (try_split): Don't update libcall notes.
10553 (emit_copy_of_insn_after): Dito.
10554 * cselib.c (cselib_current_insn_in_libcall): Remove.
10555 (cselib_process_insn): Don't set/clear it.
10556 (new_elt_loc_list): Don't record it.
10557 (cselib_init): Don't initialize it.
10558 * cselib.c (struct elt_loc_list): Remove in_libcall field.
10559 * loop-invariant.c (find_invariant_insn): Don't look for libcall
10560 notes.
10561 * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
10562 (sched_analyze): Don't set up deps->libcall_block_tail_insn.
10563 (init_deps): Don't initialize it.
10564 * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
10565 * combine.c (delete_noop_moves): Don't update libcall notes.
10566 (can_combine_p): Remove now pointless #if 0 block.
10567 (try_combine): Remove another obsolete #if 0 block.
10568 (distribute_notes): Don't distribute libcall notes.
10569 * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
10570 * dce.c (libcall_dead_p): Remove.
10571 (delete_unmarked_insns): Don't handle libcall blocks.
10572 (preserve_libcall_for_dce): Remove.
10573 (prescan_insns_for_dce): Don't special-case libcall block insns.
10574 * reload1 (reload): Don't handle libcall notes.
10575 * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
10576 documentation.
10577
10578 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
10579
10580 * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
10581 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10582 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10583
10584 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
10585
10586 * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
10587 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10588 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10589
10590 2008-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10591
10592 * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
10593
10594 2008-06-16 Ira Rosen <irar@il.ibm.com>
10595
10596 PR tree-optimization/36493
10597 * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
10598 the arguments list. Use VECTYPE to create vector pointer.
10599 (vectorizable_store): Fail if accesses through a pointer to vectype
10600 do not alias the original memory reference operands.
10601 Call vect_create_data_ref_ptr without the removed argument.
10602 (vectorizable_load): Likewise.
10603 (vect_setup_realignment): Call vect_create_data_ref_ptr without the
10604 removed argument.
10605
10606 2008-06-015 Andy Hutchinson <hutchinsonandy@aim.com>
10607
10608 PR target/36336
10609 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
10610 reg_equiv_constant.
10611
10612 2008-06-15 Maxim Kuvyrkov <maxim@codesourcery.com>
10613
10614 * config/mips/loongson2ef.md: New file.
10615 * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
10616 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
10617 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
10618 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
10619 (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
10620 and loongson_2f.
10621 (loongson2ef.md): New include.
10622 * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
10623 (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
10624 (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
10625 (loongson_gt_<mode>, loongson_extract_halfword)
10626 (loongson_insert_halfword_0, loongson_insert_halfword_2)
10627 (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
10628 (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
10629 (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
10630 (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
10631 (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
10632 (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
10633 (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
10634 (vec_interleave_low<mode>): Define type attribute.
10635 * config/mips/mips.c (mips_ls2): New static variable.
10636 (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
10637 (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
10638 (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
10639 Implement target scheduling hooks.
10640 (mips_multipass_dfa_lookahead): Update to handle tuning for
10641 Loongson 2E/2F.
10642 (mips_sched_init): Initialize data for Loongson scheduling.
10643 (mips_ls2_variable_issue): New static function.
10644 (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
10645 Add sanity check.
10646 (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
10647 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
10648 * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
10649 (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
10650 Handle ST Loongson 2E/2F cores.
10651 (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
10652
10653 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10654
10655 * omp-low.c (extract_omp_for_data): Fix comment typo.
10656 * c.opt: Fix typo.
10657
10658 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10659
10660 * doc/sourcebuild.texi (Config Fragments): Remove obsolete
10661 FIXME note about gcc/config.guess.
10662 * doc/options.texi (Option file format): Remove non-ASCII bytes.
10663 * doc/cpp.texi: Expand TABs, drop indentation outside examples.
10664 * doc/cppopts.texi: Likewise.
10665 * doc/extend.texi: Likewise.
10666 * doc/gcc.texi: Likewise.
10667 * doc/gccint.texi: Likewise.
10668 * doc/gcov.texi: Likewise.
10669 * doc/gty.texi: Likewise.
10670 * doc/hostconfig.texi: Likewise.
10671 * doc/install.texi: Likewise.
10672 * doc/invoke.texi: Likewise.
10673 * doc/loop.texi: Likewise.
10674 * doc/makefile.texi: Likewise.
10675 * doc/md.texi: Likewise.
10676 * doc/passes.texi: Likewise.
10677 * doc/tm.texi: Likewise.
10678 * doc/tree-ssa.texi: Likewise.
10679 * doc/trouble.texi: Likewise.
10680
10681 2008-06-15 Mark Shinwell <shinwell@codesourcery.com>
10682 Nathan Sidwell <nathan@codesourcery.com>
10683 Maxim Kuvyrkov <maxim@codesourcery.com>
10684 Richard Sandiford <rdsandiford@googlemail.com>
10685
10686 * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
10687 * config/mips/mips-protos.h (mips_expand_vector_init): New.
10688 * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
10689 builtins.
10690 * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
10691 (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
10692 (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
10693 V8QImode cases.
10694 (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
10695 (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
10696 (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
10697 (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
10698 (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
10699 (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
10700 (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
10701 (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
10702 (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
10703 (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
10704 (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
10705 (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
10706 (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
10707 (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
10708 (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
10709 (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
10710 (mips_builtins): Add Loongson builtins.
10711 (mips_loongson_2ef_bdesc): New.
10712 (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
10713 (mips_builtin_vector_type): Handle unsigned versions of vector modes.
10714 (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
10715 (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
10716 New.
10717 (mips_expand_vector_init): New.
10718 * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
10719 (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
10720 if appropriate.
10721 * config/mips/mips.md: Add unspec numbers for Loongson
10722 builtins. Include loongson.md.
10723 (MOVE64): Include Loongson vector modes.
10724 (SPLITF): Include Loongson vector modes.
10725 (HALFMODE): Handle Loongson vector modes.
10726 * config/mips/loongson.md: New.
10727 * config/mips/loongson.h: New.
10728 * config.gcc: Add loongson.h header for mips*-*-* targets.
10729 * doc/extend.texi (MIPS Loongson Built-in Functions): New.
10730
10731 2008-06-14 Joseph Myers <joseph@codesourcery.com>
10732
10733 * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
10734 h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
10735 i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
10736 iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
10737 m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
10738 m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
10739 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
10740 mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
10741 mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
10742 mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
10743 powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
10744 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
10745 sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
10746 sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
10747 sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
10748 v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
10749 Remove use_fixproto=yes.
10750 (ia64*-*-hpux*): Remove comment about using fixproto.
10751 (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
10752
10753 2008-06-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10754
10755 * configure.ac: Update gthr-default.h lazily, to avoid unneeded
10756 library rebuilds.
10757 * configure: Regenerate.
10758
10759 2008-06-13 Eric Botcazou <ebotcazou@adacore.com>
10760
10761 PR middle-end/36520
10762 * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
10763 before evaluating it.
10764
10765 2008-06-13 Jakub Jelinek <jakub@redhat.com>
10766
10767 PR c/36507
10768 * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
10769 nested inline functions.
10770 (start_decl, start_function): Don't invert DECL_EXTERNAL
10771 for nested inline functions.
10772
10773 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
10774
10775 * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
10776 splits that must be made for correctness.
10777
10778 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
10779
10780 * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
10781 (AVAIL_NON_MIPS16): Likewise.
10782 (mips_builtin_description): Replace target_flags with a predicate.
10783 (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
10784 (dspr2_32): New availability predicates.
10785 (MIPS_BUILTIN): New macro.
10786 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
10787 (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
10788 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
10789 Replace the TARGET_FLAGS parameters with AVAIL parameters.
10790 (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
10791 (mips_dsp_32only_bdesc): Merge into...
10792 (mips_builtins): ...this new array.
10793 (mips_bdesc_map, mips_bdesc_arrays): Delete.
10794 (mips_init_builtins): Update after above changes.
10795 (mips_expand_builtin_1): Merge into...
10796 (mips_expand_builtin): ...here and update after above changes.
10797
10798 2008-06-12 Paul Brook <paul@codesourcery.com>
10799
10800 * longlong.h (__arm__): Define count_leading_zeros.
10801 * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
10802 (clzsi2, clzdi2): New functions.
10803 * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
10804 * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
10805 * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
10806 * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
10807 * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
10808 * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
10809 * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
10810 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
10811 * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
10812 * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
10813
10814 2008-06-12 Kazu Hirata <kazu@codesourcery.com>
10815
10816 * config/m68k/m68k.c (m68k_tune_flags): New.
10817 (override_options): Compute m68k_tune_flags.
10818 (MULL_COST, MULW_COST): Update for various variants of CFV2.
10819 * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
10820
10821 2008-06-12 Jakub Jelinek <jakub@redhat.com>
10822
10823 PR middle-end/36506
10824 * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
10825
10826 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
10827
10828 * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
10829 TREE_THIS_VOLATILE on INDIRECT_REF nodes.
10830
10831 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
10832
10833 * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
10834 (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
10835
10836 2008-06-12 Jakub Jelinek <jakub@redhat.com>
10837
10838 PR middle-end/36506
10839 * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
10840 reductions.
10841
10842 2008-06-12 Richard Guenther <rguenther@suse.de>
10843
10844 PR tree-optimization/36345
10845 * tree-flow.h (struct ptr_info_def): Align escape_mask,
10846 add memory_tag_needed flag.
10847 (may_alias_p): Declare.
10848 * tree-ssa-alias.c (may_alias_p): Export.
10849 (set_initial_properties): Use memory_tag_needed flag.
10850 (update_reference_counts): Likewise.
10851 (reset_alias_info): Reset memory_tag_needed flag.
10852 (create_name_tags): Check memory_tag_needed flag.
10853 (dump_points_to_info_for): Dump it.
10854 * tree-ssa-structalias.c (struct variable_info): Remove
10855 directly_dereferenced flag.
10856 (new_var_info): Do not initialize it.
10857 (process_constraint_1): Do not set it.
10858 (update_alias_info): Set is_dereferenced flag.
10859 (set_uids_in_ptset): Use may_alias_p.
10860 (set_used_smts): Check memory_tag_needed flag.
10861 (find_what_p_points_to): Likewise. Pass is_dereferenced flag.
10862 * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
10863 memory_tag_needed flag.
10864 * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
10865 from broken design.
10866
10867 2008-06-12 Kai Tietz <kai.tietz@onevision.com>
10868
10869 * config/i386/i386.c (ix86_compute_frame_layout): Disable
10870 red zone for w64 abi.
10871 (ix86_expand_prologue): Likewise.
10872 (ix86_force_to_memory): Likewise.
10873 (ix86_free_from_memory): Likewise.
10874
10875 2008-06-11 Edmar Wienskoski <edmar@freescale.com>
10876
10877 PR target/36425
10878 * config/rs6000/rs6000.c (rs6000_override_options): Set
10879 rs6000_isel conditionally to the absence of comand line override.
10880 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
10881 Remove duplicate rs6000_isel setting.
10882 * config/rs6000/eabispe.h: Ditto.
10883
10884 2008-06-11 Richard Guenther <rguenther@suse.de>
10885
10886 * alias.c (get_alias_set): Use the element alias-set for arrays.
10887 (record_component_aliases): For arrays and vectors do nothing.
10888 * c-common.c (strict_aliasing_warning): Handle the cases
10889 of alias set zero explicitly.
10890 * Makefile.in (dfp.o-warn): Add -Wno-error.
10891
10892 2008-06-11 Joseph Myers <joseph@codesourcery.com>
10893
10894 * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
10895 tune_32 tune_64.
10896 (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
10897 tune_32 tune_64 to supported_defaults. Allow values not
10898 supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
10899 x86_64. Do not override cpu_32 or cpu_64 values from target name.
10900 (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
10901 with_cpu_64 to generic for 64-bit-supporting configurations, not
10902 with_cpu. Remove FIXMEs.
10903 * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
10904 --with-arch-64, --with-tune-32, --with-tune-64): Document.
10905 * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
10906 (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
10907 arch_32 and arch_64.
10908
10909 2008-06-11 Eric Botcazou <ebotcazou@adacore.com>
10910 Olivier Hainque <hainque@adacore.com>
10911
10912 * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
10913 Use DECL_SIZE_UNIT to retrieve the size of the field.
10914
10915 2008-06-11 Joseph Myers <joseph@codesourcery.com>
10916
10917 * config/arm/arm.c (arm_init_neon_builtins): Move initialization
10918 with function calls after declarations. Lay out
10919 neon_float_type_node before further use.
10920
10921 2008-06-11 Richard Guenther <rguenther@suse.de>
10922
10923 * tree-flow.h (may_point_to_global_var): Declare.
10924 * tree-ssa-alias.c (may_point_to_global_var): New function.
10925 * tree-ssa-sink.c (is_hidden_global_store): Use it.
10926
10927 2008-06-10 Kazu Hirata <kazu@codesourcery.com>
10928
10929 * configure.ac: Teach that fido supports .debug_line.
10930 * configure: Regenerate.
10931
10932 2008-06-10 Tom Tromey <tromey@redhat.com>
10933
10934 * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
10935 debug hook.
10936
10937 2008-06-10 Joseph Myers <joseph@codesourcery.com>
10938
10939 * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
10940 (encode_decimal64, decode_decimal64, encode_decimal128,
10941 decode_decimal128): Reverse order of 32-bit parts of value if host
10942 and target endianness differ.
10943
10944 2008-06-10 Vinodha Ramasamy <vinodha@google.com>
10945
10946 * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
10947 Avoid division by 0.
10948 (tree_mod_pow2_value_transform): Likewise.
10949 (tree_ic_transform): Likewise.
10950 (tree_stringops_transform): Likewise.
10951 (tree_mod_subtract_transform): Likewise.
10952 * tree-inline-c (copy_bb): Corrected int type to gcov_type.
10953 (copy_edges_for_bb): Likewise.
10954 (initialize_cfun): Likewise.
10955
10956 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
10957
10958 * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
10959 nonmemory_operand. Add "N" operand constraint.
10960 (*btsi): Ditto.
10961 (*jcc_btdi_mask_rex64): New instruction and split pattern.
10962 (*jcc_btsi_mask): Ditto.
10963 (*jcc_btsi_mask_1): Ditto.
10964
10965 2008-06-10 Joseph Myers <joseph@codesourcery.com>
10966
10967 * config/rs6000/rs6000.c (build_opaque_vector_type): Set
10968 TYPE_CANONICAL for copied element type.
10969
10970 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
10971
10972 PR target/36473
10973 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
10974 Add m_CORE2 and m_GENERIC.
10975 * config/i386/predicates.md (bt_comparison_operator): New predicate.
10976 * config/i386/i386.md (*btdi_rex64): New instruction pattern.
10977 (*btsi): Ditto.
10978 (*jcc_btdi_rex64): New instruction and split pattern.
10979 (*jcc_btsi): Ditto.
10980 (*jcc_btsi_1): Ditto.
10981 (*btsq): Fix Intel asm dialect operand order.
10982 (*btrq): Ditto.
10983 (*btcq): Ditto.
10984
10985 2008-06-09 Andy Hutchinson <hutchinsonandy@aim.com>
10986
10987 PR middle-end/36447
10988 * simplify-rtx.c (simplify_subreg): Add check for shift count
10989 greater than size.
10990
10991 2008-06-09 Richard Sandiford <rdsandiford@googlemail.com>
10992
10993 * doc/md.texi: Synchronize with later constraints.md change.
10994 * longlong.h (umul_ppmm): Replace the MIPS asm implementation
10995 with a C implementation.
10996 * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
10997 MFLO handling.
10998 (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
10999 (mips_split_doubleword_move): Use special MTHI and MFHI instructions
11000 when moving to and from MD_REGNUM.
11001 (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
11002 Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
11003 Handle byte and halfword moves.
11004 (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
11005 separately.
11006 * config/mips/constraints.md (h): Turn into NO_REGS.
11007 (l, x): Update documentation.
11008 * config/mips/mips.md (UNSPEC_MFHILO): Delete.
11009 (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
11010 (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
11011 (HILO): New mode iterator.
11012 (MOVE128): Add TI.
11013 (any_div): New code iterator.
11014 (u): Extend code attribute to div and udiv.
11015 (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
11016 d_operand in the splitters. Remove redundant CONST_INT checks.
11017 (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
11018 (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
11019 (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits
11020 accordingly, using normal moves instead of unspecs to move LO into
11021 a GPR. Use d_operand and lo_operand instead of *_REG_P checks.
11022 (<u>mulsidi3): Handle expansion in C code.
11023 (<u>mulsidi3_32bit_internal): Rename to...
11024 (<u>mulsidi3_32bit): ...this.
11025 (<u>mulsidi3_32bit_r4000): Fix insn separator.
11026 (*<u>mulsidi3_64bit): Rename to...
11027 (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers
11028 into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO
11029 to set LO and HI to the multiplication result. Use a normal move
11030 for MFLO and an unspec for MFHI.
11031 (*<u>mulsidi3_64bit_parts): Replace with...
11032 (<u>mulsidi3_64bit_hilo): ...this new instruction.
11033 (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
11034 (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
11035 and extend it to TARGET_FIX_R4000. Store the destination in a GPR
11036 instead of HI. Split the instruction into a separate multiplication
11037 and MFHI if !TARGET_FIX_R4000.
11038 (<su>muldi3_highpart): Likewise.
11039 (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
11040 and the "=h" clobber.
11041 (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
11042 (<u>mulditi3): New expander.
11043 (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
11044 (madsi): Remove "=h" clobber.
11045 (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
11046 Force the modulus result to be a GPR and split the instruction into
11047 a division followed by an MFHI after reload.
11048 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
11049 (*lea_high64): Use d_operand in the define_peephole2. Likewise
11050 the MIPS16 HIGH define_split.
11051 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
11052 of acc<->gpr moves to "multi".
11053 (*movdi_64bit): Replace the single "x" alternative with
11054 alternatives for moving into and out of "a".
11055 (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move.
11056 (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
11057 (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
11058 Use d_operand in the splitters. Remove redundant CONST_INT checks.
11059 (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move.
11060 (movti): New expander.
11061 (*movti, *movti_mips16): New insns.
11062 (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
11063 (mfhi<GPR:mode>_<HILO:mode>): New pattern.
11064 (mthi<GPR:mode>_<HILO:mode>): Likewise.
11065 * config/mips/predicates.md (fpr_operand): Delete.
11066 (d_operand): New predicate.
11067
11068 2008-06-09 Michael Meissner <michael.meissner@amd.com>
11069
11070 * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
11071 failure on some Bourne shells.
11072 (x86_64-*-*): Ditto.
11073
11074 2008-06-09 Kai Tietz <kai.tietz@onevision.com>
11075
11076 * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
11077
11078 2008-06-09 Eric Botcazou <ebotcazou@libertysurf.fr>
11079
11080 * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
11081 (sparc-sun-solaris2*): Likewise.
11082
11083 2008-06-09 Arnaud Charlet <charlet@adacore.com
11084
11085 * doc/install.texi: Update requirements to build the Ada compiler.
11086
11087 2008-06-08 Steven Bosscher <stevenb.gcc@gmail.com>
11088
11089 * df-scan.c (struct df_scan_problem_data): Remove the
11090 mw_link_pool alloc pool.
11091 (df_scan_free_internal): Don't free it.
11092 (df_scan_alloc): Don't allocate it.
11093 * df.h (struct df_link): Update comment.
11094
11095 2008-06-08 Nathan Sidwell <nathan@codesourcery.com>
11096
11097 * except.h: Correct checks for when SJLJ exceptions must be used.
11098
11099 2008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11100
11101 * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
11102 default.
11103
11104 2008-06-08 Joseph Myers <joseph@codesourcery.com>
11105
11106 PR tree-optimization/36218
11107 * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
11108 configure for the build system.
11109 (BUILD_LDFLAGS): Define.
11110 * configure: Regenerate.
11111 * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
11112
11113 2008-07-08 Anatoly Sokolov <aesok@post.ru>
11114
11115 PR target/36424
11116 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
11117 * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
11118 * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
11119
11120 2008-06-07 Danny Smith <dannysmith@users.sourceforge.net>
11121
11122 * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
11123
11124 2008-06-07 Joseph Myers <joseph@codesourcery.com>
11125
11126 * config.gcc (Obsolete configurations): Remove list of
11127 configurations.
11128 (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
11129 *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
11130 targets matched by those patterns.
11131 (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
11132 m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
11133 alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
11134 arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
11135 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
11136 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
11137 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
11138 i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
11139 i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
11140 mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
11141 powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
11142 powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
11143 strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
11144 vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
11145 i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
11146 Make code for Solaris 7 and greater unconditional for Solaris.
11147 (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
11148 Remove --with-* handling.
11149 * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
11150 (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
11151 ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
11152 LINK_OS_WINDISS_SPEC): Remove.
11153 * config/rs6000/sysv4.opt (mwindiss): Remove.
11154 * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
11155 * configure: Regenerate.
11156 * doc/cpp.texi: Don't mention BeOS.
11157 * doc/extend.texi (interrupt): Don't mention MS1.
11158 * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
11159 m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
11160 alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
11161 i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
11162 powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
11163 Remove.
11164 * doc/invoke.texi (MT Options): Remove.
11165 (-mwindiss): Remove.
11166 (CRIS Options): Remove cris-axis-aout references.
11167 (HPPA Options): Don't mention hppa1.1-*-pro.
11168 * doc/md.texi: (MorphoTech family): Remove.
11169 * libgcc2.c: Don't handle UWIN.
11170 * config/alpha/t-unicosmk: Remove.
11171 * config/alpha/unicosmk.h: Remove.
11172 * config/arm/kaos-arm.h: Remove.
11173 * config/arm/kaos-strongarm.h: Remove.
11174 * config/arm/strongarm-coff.h: Remove.
11175 * config/arm/strongarm-elf.h: Remove.
11176 * config/arm/strongarm-pe.h: Remove.
11177 * config/arm/t-strongarm-pe: Remove.
11178 * config/arm/t-xscale-coff: Remove.
11179 * config/arm/t-xscale-elf: Remove.
11180 * config/arm/xscale-coff.h: Remove.
11181 * config/arm/xscale-elf.h: Remove.
11182 * config/chorus.h: Remove.
11183 * config/cris/aout.h: Remove.
11184 * config/cris/aout.opt: Remove.
11185 * config/cris/t-aout: Remove.
11186 * config/i386/beos-elf.h: Remove.
11187 * config/i386/kaos-i386.h: Remove.
11188 * config/i386/ptx4-i.h: Remove.
11189 * config/i386/sco5.h: Remove.
11190 * config/i386/sco5.opt: Remove.
11191 * config/i386/sysv4-cpp.h: Remove.
11192 * config/i386/sysv5.h: Remove.
11193 * config/i386/t-beos: Remove.
11194 * config/i386/t-sco5: Remove.
11195 * config/i386/t-uwin: Remove.
11196 * config/i386/uwin.asm: Remove.
11197 * config/i386/uwin.h: Remove.
11198 * config/kaos.h: Remove.
11199 * config/mips/windiss.h: Remove.
11200 * config/mt: Remove directory.
11201 * config/pa/pa-osf.h: Remove.
11202 * config/pa/pa-pro-end.h: Remove.
11203 * config/pa/t-pro: Remove.
11204 * config/ptx4.h: Remove.
11205 * config/rs6000/beos.h: Remove.
11206 * config/rs6000/kaos-ppc.h: Remove.
11207 * config/rs6000/t-beos: Remove.
11208 * config/rs6000/windiss.h: Remove.
11209 * config/sh/kaos-sh.h: Remove.
11210 * config/sol2-6.h: Remove.
11211 * config/sparc/sol26-sld.h: Remove.
11212 * config/sparc/sysv4-only.h: Remove.
11213 * config/vax/bsd.h: Remove.
11214 * config/vax/t-memfuncs: Remove.
11215 * config/vax/ultrix.h: Remove.
11216 * config/vax/vaxv.h: Remove.
11217 * config/windiss.h: Remove.
11218
11219 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
11220
11221 PR rtl-optimization/36438
11222 * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
11223 for vector shifts with constant scalar shift operands.
11224
11225 2008-06-06 Sandip Matte <sandip@rmicorp.com>
11226
11227 * doc/invoke.texi: Document -march=xlr.
11228 * config/mips/xlr.md: New file.
11229 * config/mips/mips.md: Include it.
11230 (cpu): Add "xlr".
11231 * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
11232 * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
11233 (mips_rtx_cost_data): Likewise.
11234
11235 2008-06-06 Nathan Froyd <froydnj@codesourcery.com>
11236
11237 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
11238 PRE_INC and PRE_DEC cases.
11239
11240 2008-06-06 Jakub Jelinek <jakub@redhat.com>
11241
11242 PR rtl-optimization/36419
11243 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
11244 the emitting jump insn.
11245
11246 PR target/36362
11247 * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
11248 is not bool, boolify the whole *expr_p and convert to the desired type.
11249
11250 2008-06-06 Jakub Jelinek <jakub@redhat.com>
11251
11252 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
11253 * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
11254 Add omp_private_outer_ref hook, add another argument to
11255 omp_clause_default_ctor hook.
11256 * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
11257 (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
11258 (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
11259 hook_tree_tree_tree_tree_null.
11260 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
11261 LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
11262 * hooks.c (hook_tree_tree_tree_tree_null): New function.
11263 * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
11264 * tree.def (OMP_TASK): New tree code.
11265 * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
11266 OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
11267 OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
11268 OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
11269 OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
11270 OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
11271 OMP_CLAUSE_COLLAPSE_EXPR): Define.
11272 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
11273 (OMP_DIRECTIVE_P): Add OMP_TASK.
11274 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
11275 (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
11276 * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
11277 and OMP_CLAUSE_UNTIED entries.
11278 (omp_clause_num_ops): Likewise. Increase OMP_CLAUSE_LASTPRIVATE
11279 num_ops to 2.
11280 (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
11281 Walk OMP_CLAUSE_LASTPRIVATE_STMT.
11282 * tree-pretty-print.c (dump_omp_clause): Handle
11283 OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
11284 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
11285 (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
11286 * c-omp.c (c_finish_omp_for): Allow pointer iterators. Remove
11287 warning about unsigned iterators. Change decl/init/cond/incr
11288 arguments to TREE_VECs, check arguments for all collapsed loops.
11289 (c_finish_omp_taskwait): New function.
11290 (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
11291 ws_clauses.
11292 * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops. Call
11293 default_function_array_conversion on init. Add par_clauses argument.
11294 If decl is present in parallel's lastprivate clause, change it to
11295 shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
11296 Add clauses argument, on success set OMP_FOR_CLAUSES to it. Look up
11297 collapse count in clauses.
11298 (c_parser_omp_for, c_parser_omp_parallel): Adjust
11299 c_parser_omp_for_loop callers.
11300 (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
11301 (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
11302 (c_parser_omp_clause_name): Handle collapse and untied clauses.
11303 (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
11304 functions.
11305 (c_parser_omp_clause_schedule): Handle schedule(auto).
11306 Include correct location in the error message.
11307 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
11308 and PRAGMA_OMP_CLAUSE_UNTIED.
11309 (OMP_TASK_CLAUSE_MASK): Define.
11310 (c_parser_omp_task, c_parser_omp_taskwait): New functions.
11311 (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
11312 * tree-nested.c (convert_nonlocal_omp_clauses,
11313 convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
11314 OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
11315 OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
11316 Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
11317 OMP_CLAUSE_DECL.
11318 (conver_nonlocal_reference, convert_local_reference,
11319 convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL. Use
11320 OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
11321 (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
11322 * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
11323 * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
11324 * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
11325 (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
11326 * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
11327 (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
11328 OMP_CLAUSE_UNTIED.
11329 * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
11330 * c-common.h (c_finish_omp_taskwait): New prototype.
11331 * gimple-low.c (lower_stmt): Handle OMP_TASK.
11332 * tree-parloops.c (create_parallel_loop): Create 1 entry
11333 vectors for OMP_FOR_{INIT,COND,INCR}.
11334 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
11335 (make_edges): Handle OMP_TASK.
11336 * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
11337 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
11338 * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
11339 * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
11340 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
11341 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
11342 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
11343 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
11344 * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
11345 BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
11346 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
11347 BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
11348 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
11349 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
11350 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
11351 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
11352 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
11353 BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
11354 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
11355 BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
11356 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
11357 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
11358 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
11359 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
11360 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
11361 * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
11362 handle POINTER_PLUS_EXPR. If loop counter has been replaced and
11363 original iterator is present in lastprivate clause or if
11364 collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT. Handle collapsed
11365 OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
11366 (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
11367 (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
11368 (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
11369 if it is set, lookup var in outer contexts too. Handle
11370 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE. Handle vars that are supposed
11371 to be implicitly determined firstprivate for task regions.
11372 (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
11373 if it is set, lookup var in outer contexts too. Set
11374 OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
11375 Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
11376 OMP_CLAUSE_UNTIED. Take region_type as last argument
11377 instead of in_parallel and in_combined_parallel.
11378 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
11379 Adjust callers.
11380 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
11381 GOVD_PRIVATE_OUTER_REF is set. Call omp_finish_clause langhook.
11382 (new_omp_context): Set default_kind to
11383 OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
11384 (omp_region_type): New enum.
11385 (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
11386 fields, add region_type.
11387 (new_omp_context): Take region_type as argument instead of is_parallel
11388 and is_combined_parallel.
11389 (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
11390 omp_is_private, omp_check_private): Adjust ctx->is_parallel and
11391 ctx->is_combined_parallel checks.
11392 (gimplify_omp_task): New function.
11393 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
11394 OMP_CLAUSE_UNTIED.
11395 * omp-low.c (extract_omp_for_data): Use schedule(static)
11396 for schedule(auto). Handle pointer and unsigned iterators.
11397 Compute fd->iter_type. Handle POINTER_PLUS_EXPR increments.
11398 Add loops argument. Extract data for collapsed OMP_FOR loops.
11399 (expand_parallel_call): Assert sched_kind isn't auto,
11400 map runtime schedule to index 3.
11401 (struct omp_for_data_loop): New type.
11402 (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
11403 Add loop, loops, collapse and iter_type fields.
11404 (workshare_safe_to_combine_p): Disallow combined for if
11405 iter_type is unsigned long long. Don't combine collapse > 1 loops
11406 unless all bounds and steps are constant. Adjust extract_omp_for_data
11407 caller.
11408 (expand_omp_for_generic): Handle pointer, unsigned and long long
11409 iterators. Handle collapsed OMP_FOR loops. Adjust
11410 for struct omp_for_data changes. If libgomp function doesn't return
11411 boolean_type_node, add comparison of the return value with 0.
11412 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
11413 pointer, unsigned and long long iterators. Adjust for struct
11414 omp_for_data changes.
11415 (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
11416 to index 3. Use GOMP_loop_ull*{start,next} if iter_type is
11417 unsigned long long. Allocate loops array, pass it to
11418 extract_omp_for_data. For collapse > 1 loops use always
11419 expand_omp_for_generic.
11420 (omp_context): Add sfield_map and srecord_type fields.
11421 (is_task_ctx, lookup_sfield): New functions.
11422 (use_pointer_for_field): Use is_task_ctx helper. Change first
11423 argument's type from const_tree to tree. Clarify comment.
11424 In OMP_TASK disallow copy-in/out sharing.
11425 (build_sender_ref): Call lookup_sfield instead of lookup_field.
11426 (install_var_field): Add mask argument. Populate both record_type
11427 and srecord_type if needed.
11428 (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
11429 in srecord_type.
11430 (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
11431 and DECL_FIELD_OFFSET.
11432 (scan_sharing_clauses): Adjust install_var_field callers. For
11433 firstprivate clauses on explicit tasks allocate the var by value in
11434 record_type unconditionally, rather than by reference.
11435 Handle OMP_CLAUSE_PRIVATE_OUTER_REF. Scan OMP_CLAUSE_LASTPRIVATE_STMT.
11436 Use is_taskreg_ctx instead of is_parallel_ctx.
11437 Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
11438 (create_omp_child_function_name): Add task_copy argument, use
11439 *_omp_cpyfn* names if it is true.
11440 (create_omp_child_function): Add task_copy argument, if true create
11441 *_omp_cpyfn* helper function.
11442 (scan_omp_parallel): Adjust create_omp_child_function callers.
11443 Rename parallel_nesting_level to taskreg_nesting_level.
11444 (scan_omp_task): New function.
11445 (lower_rec_input_clauses): Don't run constructors for firstprivate
11446 explicit task vars which are initialized by *_omp_cpyfn*.
11447 Pass outer var ref to omp_clause_default_ctor hook if
11448 OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
11449 Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
11450 OMP_CLAUSE_REDUCTION_INIT.
11451 (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
11452 avoid duplicate setting of fields. Handle
11453 OMP_CLAUSE_PRIVATE_OUTER_REF.
11454 (lower_send_shared_vars): Use srecord_type if non-NULL. Don't
11455 copy-out if TREE_READONLY, only copy-in.
11456 (expand_task_copyfn): New function.
11457 (expand_task_call): New function.
11458 (struct omp_taskcopy_context): New type.
11459 (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
11460 New functions.
11461 (lower_omp_parallel): Rename to...
11462 (lower_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
11463 Call create_task_copyfn if srecord_type is needed. Adjust
11464 sender_decl type.
11465 (task_shared_vars): New variable.
11466 (check_omp_nesting_restrictions): Warn if work-sharing,
11467 barrier, master or ordered region is closely nested inside OMP_TASK.
11468 Add warnings for barrier if closely nested inside of work-sharing,
11469 ordered, or master region.
11470 (scan_omp_1): Call check_omp_nesting_restrictions even for
11471 GOMP_barrier calls. Rename parallel_nesting_level to
11472 taskreg_nesting_level. Handle OMP_TASK.
11473 (lower_lastprivate_clauses): Even if some lastprivate is found on a
11474 work-sharing construct, continue looking for them on parent parallel
11475 construct.
11476 (lower_omp_for_lastprivate): Add lastprivate clauses
11477 to the beginning of dlist rather than end. Adjust for struct
11478 omp_for_data changes.
11479 (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
11480 not after it. Handle collapsed OMP_FOR loops, adjust for
11481 OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
11482 (get_ws_args_for): Adjust extract_omp_for_data caller.
11483 (scan_omp_for): Handle collapsed OMP_FOR
11484 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
11485 (lower_omp_single_simple): If libgomp function doesn't return
11486 boolean_type_node, add comparison of the return value with 0.
11487 (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
11488 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes. Handle OMP_TASK.
11489 (parallel_nesting_level): Rename to...
11490 (taskreg_nesting_level): ... this.
11491 (is_taskreg_ctx): New function.
11492 (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
11493 of is_parallel_ctx.
11494 (execute_lower_omp): Rename parallel_nesting_level to
11495 taskreg_nesting_level.
11496 (expand_omp_parallel): Rename to...
11497 (expand_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
11498 Call omp_task_call for OMP_TASK regions.
11499 (expand_omp): Adjust caller, handle OMP_TASK.
11500 (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
11501
11502 * bitmap.c (bitmap_default_obstack_depth): New variable.
11503 (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
11504 if argument is NULL and bitmap_default_obstack is already initialized.
11505 * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
11506 at the end.
11507 * matrix-reorg.c (matrix_reorg): Likewise.
11508
11509 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
11510
11511 * config/i386/i386.md (*indirect_jump): Macroize using P
11512 mode iterator. Remove !TARGET_64BIT from insn constraints.
11513 (*tablejump_1): Ditto.
11514 (*indirect_jump_rex64): Remove insn pattern.
11515 (*tablejump_1_rex64): Ditto.
11516 (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
11517 and eh_return_si insn patterns.
11518
11519 2008-06-06 Richard Guenther <rguenther@suse.de>
11520
11521 * tree-ssa-structalias.c (merge_smts_into): Remove.
11522 (find_what_p_points_to): Do not bother to compute the
11523 points-to set for pt_anything pointers.
11524 * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
11525 for pt_anything pointers is ok.
11526
11527 2008-06-06 Jan Hubicka <jh@suse.cz>
11528
11529 * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
11530
11531 2008-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11532
11533 * cgraph.c: Fix typos in comments.
11534 (cgraph_availability_names): Fix string typo.
11535 * fold-const.c: Fix typos in comments.
11536 (fold_binary): Fix typo in warning.
11537 * genautomata.c: Fix typos in comments.
11538 (check_presence_pattern_sets): Fix typo in local variable.
11539 (output_description): Fix typo in output.
11540 * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
11541 * hwint.h: Likewise.
11542 * matrix-reorg.c (check_allocation_function): Likewise.
11543 * omega.c (smooth_weird_equations): Likewise.
11544 * auto-inc-dec.c: Fix typos in comments.
11545 * bb-reorder.c: Likewise.
11546 * builtins.c: Likewise.
11547 * c-common.c: Likewise.
11548 * c-cppbuiltin.c: Likewise.
11549 * c-parser.c: Likewise.
11550 * c-pretty-print.c: Likewise.
11551 * cfgcleanup.c: Likewise.
11552 * cfgexpand.c: Likewise.
11553 * cfghooks.c: Likewise.
11554 * cfglayout.c: Likewise.
11555 * cfgloopmanip.c: Likewise.
11556 * cgraphunit.c: Likewise.
11557 * coverage.c: Likewise.
11558 * dbxout.c: Likewise.
11559 * df-byte-scan.c: Likewise.
11560 * df-core.c: Likewise.
11561 * df-problems.c: Likewise.
11562 * df-scan.c: Likewise.
11563 * dfp.c: Likewise.
11564 * dominance.c: Likewise.
11565 * domwalk.c: Likewise.
11566 * dse.c: Likewise.
11567 * dwarf2out.c: Likewise.
11568 * emit-rtl.c: Likewise.
11569 * et-forest.c: Likewise.
11570 * function.c: Likewise.
11571 * function.h: Likewise.
11572 * gcc.c: Likewise.
11573 * gcov-io.c: Likewise.
11574 * gcov.c: Likewise.
11575 * gcse.c: Likewise.
11576 * genattrtab.c: Likewise.
11577 * ggc-page.c: Likewise.
11578 * gimplify.c: Likewise.
11579 * gthr-lynx.h: Likewise.
11580 * haifa-sched.c: Likewise.
11581 * ipa-cp.c: Likewise.
11582 * ipa-inline.c: Likewise.
11583 * ipa-prop.h: Likewise.
11584 * ipa-pure-const.c: Likewise.
11585 * ipa-struct-reorg.c: Likewise.
11586 * ipa-struct-reorg.h: Likewise.
11587 * ipa-type-escape.c: Likewise.
11588 * ipa.c: Likewise.
11589 * loop-doloop.c: Likewise.
11590 * mips-tfile.c: Likewise.
11591 * mkmap-flat.awk: Likewise.
11592 * mkmap-symver.awk: Likewise.
11593 * modulo-sched.c: Likewise.
11594 * omp-low.c: Likewise.
11595 * optabs.c: Likewise.
11596 * optabs.h: Likewise.
11597 * opts.c: Likewise.
11598 * passes.c: Likewise.
11599 * postreload-gcse.c: Likewise.
11600 * postreload.c: Likewise.
11601 * predict.c: Likewise.
11602 * pretty-print.h: Likewise.
11603 * profile.c: Likewise.
11604 * protoize.c: Likewise.
11605 * ra-conflict.c: Likewise.
11606 * real.c: Likewise.
11607 * recog.c: Likewise.
11608 * regclass.c: Likewise.
11609 * regs.h: Likewise.
11610 * reload.c: Likewise.
11611 * rtl-error.c: Likewise.
11612 * rtlanal.c: Likewise.
11613 * scan.h: Likewise.
11614 * sched-rgn.c: Likewise.
11615 * see.c: Likewise.
11616 * stmt.c: Likewise.
11617 * target.h: Likewise.
11618 * tree-dfa.c: Likewise.
11619 * tree-eh.c: Likewise.
11620 * tree-flow-inline.h: Likewise.
11621 * tree-inline.c: Likewise.
11622 * tree-into-ssa.c: Likewise.
11623 * tree-loop-distribution.c: Likewise.
11624 * tree-nested.c: Likewise.
11625 * tree-parloops.c: Likewise.
11626 * tree-pass.h: Likewise.
11627 * tree-pretty-print.c: Likewise.
11628 * tree-profile.c: Likewise.
11629 * tree-scalar-evolution.c: Likewise.
11630 * tree-sra.c: Likewise.
11631 * tree-ssa-alias-warnings.c: Likewise.
11632 * tree-ssa-ccp.c: Likewise.
11633 * tree-ssa-coalesce.c: Likewise.
11634 * tree-ssa-dom.c: Likewise.
11635 * tree-ssa-dse.c: Likewise.
11636 * tree-ssa-forwprop.c: Likewise.
11637 * tree-ssa-live.c: Likewise.
11638 * tree-ssa-live.h: Likewise.
11639 * tree-ssa-loop-im.c: Likewise.
11640 * tree-ssa-loop-ivopts.c: Likewise.
11641 * tree-ssa-loop-niter.c: Likewise.
11642 * tree-ssa-loop-prefetch.c: Likewise.
11643 * tree-ssa-phiopt.c: Likewise.
11644 * tree-ssa-phiprop.c: Likewise.
11645 * tree-ssa-sccvn.c: Likewise.
11646 * tree-ssa-ter.c: Likewise.
11647 * tree-ssa-threadupdate.c: Likewise.
11648 * tree-ssa.c: Likewise.
11649 * tree-vect-analyze.c: Likewise.
11650 * tree-vect-transform.c: Likewise.
11651 * tree-vectorizer.c: Likewise.
11652 * tree-vn.c: Likewise.
11653 * tree-vrp.c: Likewise.
11654 * tree.c: Likewise.
11655 * tree.def: Likewise.
11656 * tree.h: Likewise.
11657 * unwind-dw2-fde.c: Likewise.
11658 * unwind.inc: Likewise.
11659 * value-prof.c: Likewise.
11660 * vmsdbgout.c: Likewise.
11661
11662 2008-06-05 David Edelsohn <edelsohn@gnu.org>
11663
11664 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
11665 always place FP constants in the TOC for TARGET_POWERPC64.
11666 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
11667
11668 2008-06-05 Joseph Myers <joseph@codesourcery.com>
11669
11670 * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
11671 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
11672 enable for TARGET_E500_DOUBLE.
11673 (*movdd_softfloat32): Also enable for !TARGET_FPRS.
11674 * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
11675 floating-point modes like integer modes for E500 double.
11676 (rs6000_legitimate_offset_address_p): Likewise.
11677 (rs6000_legitimize_address): Likewise. Do not allow REG+REG
11678 addressing for DDmode for E500 double.
11679 (rs6000_hard_regno_nregs): Do not treat decimal floating-point
11680 modes as using 64-bits of registers for E500 double.
11681 (spe_build_register_parallel): Do not handle DDmode or TDmode.
11682 (rs6000_spe_function_arg): Do not handle DDmode or TDmode
11683 specially for E500 double.
11684 (function_arg): Do not call rs6000_spe_function_arg for DDmode or
11685 TDmode for E500 double.
11686 (rs6000_gimplify_va_arg): Only handle SDmode in registers
11687 specially if TARGET_HARD_FLOAT && TARGET_FPRS.
11688 (rs6000_split_multireg_move): Do not handle TDmode specially for
11689 E500 double.
11690 (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
11691 using 64-bit registers for E500 double.
11692 (emit_frame_save): Do not handle DDmode specially for E500 double.
11693 (gen_frame_mem_offset): Likewise.
11694 (rs6000_function_value): Do not call spe_build_register_parallel
11695 for DDmode or TDmode.
11696 (rs6000_libcall_value): Likewise.
11697 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
11698 DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
11699 for E500 double.
11700
11701 2008-06-04 H.J. Lu <hongjiu.lu@intel.com>
11702
11703 * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
11704 in comments.
11705
11706 2008-06-04 Junjie Gu <jgu@tensilica.com>
11707
11708 * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
11709 comparison for frame pointers.
11710
11711 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
11712
11713 PR target/27386
11714 * config/avr/avr.h (PUSH_ROUNDING): Remove.
11715
11716 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
11717
11718 PR target/30243
11719 * builtins.c (expand_builtin_signbit): Don't take lowpart when
11720 register is already smaller or equal to required mode.
11721
11722 2008-06-04 Xinliang David Li <davidxl@google.com>
11723
11724 * tree-call-cdce.c: New file.
11725 (cond_dead_built_in_calls): New static variable.
11726 (input_domain): New struct.
11727 (check_pow): New function.
11728 (check_builtin_call): Ditto.
11729 (check_target_format): Ditto.
11730 (is_call_dce_candidate): Ditto.
11731 (gen_one_condition): Ditto.
11732 (gen_conditions_for_domain): Ditto.
11733 (get_domain): Ditto.
11734 (gen_conditions_for_pow_cst_base): Ditto.
11735 (gen_conditions_for_pow_int_base): Ditto.
11736 (gen_conditions_for_pow): Ditto.
11737 (get_no_error_domain): Ditto.
11738 (gen_shrink_wrap_conditions): Ditto.
11739 (shrink_wrap_one_built_in_call): Ditto.
11740 (shink_wrap_conditional_dead_built_in_calls): Ditto.
11741 (tree_call_cdce): Ditto.
11742 (gate_call_cdce): Ditto.
11743 (pass_call_cdce): New gimple pass.
11744 * passes.c: (init_optimization_passes): New pass.
11745 * tree-pass.h: New pass declaration.
11746 * opts.c (decode_options): New flag setting.
11747 * common.opt: Add -ftree-builtin-call-dce flag.
11748 * Makefile.in: Add new source file.
11749 * tempvar.def: New tv_id.
11750 * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
11751
11752 2008-06-04 Richard Guenther <rguenther@suse.de>
11753
11754 * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
11755 (is_call_clobbered): Always check var_ann->call_clobbered.
11756 (mark_call_clobbered): Always set var_ann->call_clobbered.
11757 (clear_call_clobbered): Always clear var_ann->call_clobbered.
11758 * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
11759 (reset_alias_info): Clear call clobbering info on MTAGs and
11760 globals as well.
11761 (set_pt_anything): Set pt_global_mem.
11762 (create_tag_raw): Adjust comment.
11763 (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
11764
11765 2008-06-04 Joseph Myers <joseph@codesourcery.com>
11766 Maxim Kuvyrkov <maxim@codesourcery.com>
11767
11768 * config/m68k/m68k.opt (mxgot): New option.
11769 * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
11770 (m68k_output_addr_const_extra): New.
11771 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
11772 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
11773 * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
11774 * doc/invoke.texi (M680x0 Options): Document -mxgot.
11775
11776 2008-06-04 Richard Guenther <rguenther@suse.de>
11777
11778 * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
11779 negative or non-representable offsets.
11780
11781 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
11782
11783 * config/i386/i386.c (ix86_gen_leave): New.
11784 (ix86_gen_pop1): Likewise.
11785 (ix86_gen_add3): Likewise.
11786 (ix86_gen_sub3): Likewise.
11787 (ix86_gen_sub3_carry): Likewise.
11788 (ix86_gen_one_cmpl2): Likewise.
11789 (ix86_gen_monitor): Likewise.
11790 (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
11791 ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
11792 ix86_gen_one_cmpl2 and ix86_gen_monitor.
11793 (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
11794 (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
11795 mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
11796 (ix86_expand_epilogue): Updated.
11797 (print_operand): Handle integer register operand for 'z'.
11798 (ix86_expand_strlensi_unroll_1): Likewise.
11799 (ix86_expand_strlen): Likewise.
11800 (ix86_expand_builtin): Likewise.
11801 (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
11802 mov{q}/mov{l} and add{q}/add{l}.
11803
11804 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
11805
11806 * config/i386/i386.md (P): New mode iterator.
11807 (SFmode push_operand splitter): Macroize DImode and SImode pushes
11808 using P mode iterator.
11809 (DFmode push_operand splitter): Ditto.
11810 (XFmode push_operand splitter): Ditto.
11811 (DFmode float_extend SFmode push_operand splitter): Ditto.
11812 (XFmode float_extend SFmode push_operand splitter): Do not generate
11813 SImode pushes for 64bit target. Macroize Dimode and SImode
11814 pushes using P mode iterator.
11815 (XFmode float_extend DFmode push_operand splitter): Ditto.
11816
11817 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
11818
11819 * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
11820 * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
11821 * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
11822 return type to int.
11823 (ix86_call_abi_override): Remove check for call_used_regs.
11824
11825 2008-06-03 Richard Guenther <rguenther@suse.de>
11826
11827 * tree-ssa-structalias.c (find_func_aliases): Add constraints
11828 for the lhs of calls if the return type contains pointers.
11829
11830 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
11831
11832 * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
11833 * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
11834 * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
11835 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
11836 of cfun and DEFAULT_ABI to deceide abi mode.
11837 (DEFAULT_ABI): New.
11838 (REG_PARM_STACK_SPACE): Removed.
11839 (OUTGOING_REG_PARM_STACK_SPACE): Removed.
11840 (STACK_BOUNDARY): Use default target to deceide stack boundary.
11841 * config/i386/i386-protos.h (ix86_cfun_abi): New.
11842 (ix86_function_abi): Likewise.
11843 (ix86_function_type_abi): Likewise.
11844 (ix86_call_abi_override): Likewise.
11845 * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
11846 specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
11847 * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
11848 (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
11849 specific defines.
11850 (X86_64_REGPARM_MAX): New.
11851 (X86_64_SSE_REGPARM_MAX): New.
11852 (X64_REGPARM_MAX): New.
11853 (X64_SSE_REGPARM_MAX): New.
11854 (X86_32_REGPARM_MAX): New.
11855 (X86_32_SSE_REGPARM_MAX): New.
11856 (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
11857 (ix86_function_regparm): Handle user calling abi.
11858 (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
11859 by DEFAULT_ABI versus SYSV_ABI check.
11860 (ix86_reg_parm_stack_space): New.
11861 (ix86_function_type_abi): New.
11862 (ix86_call_abi_override): New.
11863 (ix86_function_abi): New.
11864 (ix86_cfun_abi): New.
11865 (init_cumulative_args): Call abi specific initialization.
11866 (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
11867 (function_arg_64): Extend SSE_REGPARM_MAX check.
11868 (function_arg (): Remove TARGET_64BIT_MS_ABI.
11869 (ix86_pass_by_reference): Likewise.
11870 (ix86_function_value_regno_p): Likewise.
11871 (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
11872 (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
11873 (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
11874 (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
11875 (setup_incoming_varargs_64): Adjust regparm for call abi.
11876 (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
11877 (ix86_va_start): Likewise.
11878 (ix86_gimplify_va_arg): Likewise.
11879 (ix86_expand_prologue): Likewise.
11880 (output_pic_addr_const): Likewise.
11881 (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
11882 (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
11883 (x86_output_mi_thunk): Likewise.
11884 (x86_function_profiler): Likewise.
11885 * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
11886 (SYSV_ABI, MS_ABI): New constants.
11887 (DEFAULT_ABI): New.
11888 (init_regs): Add prototype of function in regclass.c file.
11889 (OVERRIDE_ABI_FORMAT): New.
11890 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
11891 (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
11892 (OUTGOING_REG_PARM_STACK_SPACE): New.
11893 (ix86_reg_parm_stack_space): New prototype.
11894 (CUMULATIVE_ARGS): Add call_abi member.
11895 (machine_function): Add call_abi member.
11896 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
11897 TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
11898
11899 2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
11900
11901 PR target/34879
11902 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
11903 (avr_builtin_setjmp_frame_value): New function.
11904 * config/avr/avr.md (nonlocal_goto_receiver): Define.
11905 (nonlocal_goto): Define.
11906
11907 2008-06-02 Richard Sandiford <rdsandiford@googlemail.com>
11908
11909 * config/mips/mips.c (mips_emit_loadgp): Return early if
11910 there is nothing do to, otherwise emit a blockage if
11911 !TARGET_EXPLICIT_RELOCS || crtl->profile.
11912 * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
11913
11914 2008-06-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11915
11916 * configure.ac: Drop unneeded backslash ending up in config.in.
11917 * acinclude.m4: Likewise.
11918 * config.in: Regenerate.
11919
11920 2008-05-26 Jan Hubicka <jh@suse.cz>
11921
11922 * predict.c (maybe_hot_frequency_p): Break out of...
11923 (maybe_hot_bb_p): ... here.
11924 (maybe_hot_edge_p): New.
11925 * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
11926 * basic-block.h (maybe_hot_edge_p): Declare.
11927
11928 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
11929
11930 * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
11931 (*cmpfp_<mode>_cc): Ditto.
11932 (*fp_jcc_8<mode>_387): Ditto.
11933 (*fop_<MODEF:mode>_2_i387): Ditto.
11934 (*fop_<MODEF:mode>_3_i387): Ditto.
11935 (*fop_xf_2_i387): Ditto.
11936 (*fop_xf_3_i387): Ditto.
11937
11938 2008-06-02 Tomas Bily <tbily@suse.cz>
11939
11940 * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
11941
11942 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
11943
11944 * config/mips/mips.c (mips_valid_offset_p): New function.
11945 (mips_valid_lo_sum_p): Likewise.
11946 (mips_classify_address): Use them.
11947 (mips_force_address): New function.
11948 (mips_legitimize_address): Use it.
11949 * config/mips/mips.md (MOVE128): New mode iterator.
11950 (movtf): Require TARGET_64BIT. Remove empty strings.
11951 (*movtf_internal): Rename to...
11952 (*movtf): ...this and require !TARGET_MIPS16. Use "m" instead
11953 of "R" and use {,fp}{load,store} attributes instead of "multi".
11954 Use a separate define_split.
11955 (*movtf_mips16): New pattern.
11956
11957 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
11958
11959 * config/mips/mips-protos.h (mips_expand_before_return): Declare.
11960 * config/mips/mips.c (mips_expand_before_return): New function.
11961 (mips_expand_epilogue): Call it.
11962 * config/mips/mips.md (return): Turn into a define_expand.
11963 (*return): New insn.
11964
11965 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
11966
11967 * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
11968 * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
11969 functions. Do not emit uses and clobbers of CONCATs; individually
11970 use and clobber their operands.
11971 * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
11972 gen_clobber, emit_use and gen_use.
11973 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
11974 (expand_builtin_return): Likewise.
11975 * cfgbuild.c (count_basic_blocks): Likewise.
11976 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
11977 * explow.c (emit_stack_restore): Likewise.
11978 * expmed.c (extract_bit_field_1): Likewise.
11979 * expr.c (convert_move, emit_move_complex_parts): Likewise.
11980 (emit_move_multi_word, store_constructor): Likewise.
11981 * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
11982 (thread_prologue_and_epilogue_insns): Likewise.
11983 * lower-subreg.c (resolve_simple_move): Likewise.
11984 * optabs.c (widen_operand, expand_binop): Likewise.
11985 (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
11986 * reload.c (find_reloads): Likewise.
11987 * reload1.c (eliminate_regs_in_insn): Likewise.
11988 * stmt.c (expand_nl_goto_receiver): Likewise.
11989 * config/alpha/alpha.md (builtin_longjmp): Likewise.
11990 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
11991 * config/arm/arm.c (arm_load_pic_register): Likewise.
11992 (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
11993 * config/arm/arm.md (untyped_return): Likewise.
11994 * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
11995 * config/avr/avr.c (expand_prologue): Likewise.
11996 * config/bfin/bfin.c (do_unlink): Likewise.
11997 * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
11998 * config/cris/cris.c (cris_expand_prologue): Likewise.
11999 * config/darwin.c (machopic_indirect_data_reference): Likewise.
12000 (machopic_legitimize_pic_address): Likewise.
12001 * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
12002 (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
12003 * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
12004 (ix86_expand_convert_uns_didf_sse): Likewise.
12005 (ix86_expand_vector_init_general): Likewise.
12006 * config/ia64/ia64.md (eh_epilogue): Likewise.
12007 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
12008 * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
12009 * config/m32r/m32r.c (m32r_reload_lr): Likewise.
12010 (config/iq2000/iq2000.c): Likewise.
12011 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
12012 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
12013 (builtin_longjmp): Likewise.
12014 * config/mn10300/mn10300.md (call, call_value): Likewise.
12015 * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
12016 * config/pdp11/pdp11.md (abshi2): Likewise.
12017 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
12018 * config/s390/s390.c (s390_emit_prologue): Likewise.
12019 * config/s390/s390.md (movmem_long, setmem_long): Likewise.
12020 (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
12021 (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
12022 * config/sh/sh.c (prepare_move_operands): Likewise.
12023 (output_stack_adjust, sh_expand_epilogue): Likewise.
12024 (sh_set_return_address, sh_expand_t_scc): Likewise.
12025 * config/sparc/sparc.c (load_pic_register): Likewise.
12026 * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
12027 * config/spu/spu.c (spu_expand_epilogue): Likewise.
12028 * config/v850/v850.c (expand_epilogue): Likewise.
12029
12030 2008-05-31 Anatoly Sokolov <aesok@post.ru>
12031
12032 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
12033 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
12034 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
12035 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
12036 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
12037 stack pointer register.
12038 (output_movhi): Remove code for interrupt specific writing to the
12039 stack pointer register.
12040
12041 2008-05-31 Richard Guenther <rguenther@suse.de>
12042
12043 PR tree-optimization/34244
12044 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
12045 (tree_expr_nonzero_warnv_p): Likewise.
12046 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
12047 ssa_name_nonnegative_p.
12048 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
12049 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
12050 not tree_expr_nonzero_warnv_p.
12051
12052 PR tree-optimization/36262
12053 Revert
12054 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
12055
12056 PR tree-optimization/34244
12057 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
12058 (record_numbers_of_iterations): New function.
12059 (execute_vrp): Cache the numbers of iterations of loops.
12060 * tree-scalar-evolution.c (scev_reset_except_niters):
12061 New function.
12062 (scev_reset): Use scev_reset_except_niters.
12063 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
12064
12065 2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
12066
12067 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
12068 __WORKAROUND_RETS when appropriate.
12069
12070 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
12071
12072 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
12073 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
12074 mode iterator.
12075 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
12076 *fop_df_comm_sse insn patterns using MODEF mode iterator.
12077 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
12078 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
12079 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
12080 *fop_df_1_mixed insn patterns using MODEF mode iterator.
12081 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
12082 *fop_df_1_sse insn patterns using MODEF mode iterator.
12083 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
12084 *fop_df_1_i387 insn patterns using MODEF mode iterator.
12085 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
12086 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
12087 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
12088 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
12089 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
12090 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
12091 (*fop_xf_4_i387): Use <MODE> for mode attribute.
12092 (*fop_xf_5_i387): Ditto.
12093 (*fop_xf_6_i387): Ditto.
12094
12095 2008-05-30 Richard Guenther <rguenther@suse.de>
12096
12097 * builtins.c (build_string_literal): Avoid generating
12098 a non-gimple_val result.
12099
12100 2008-05-30 DJ Delorie <dj@redhat.com>
12101
12102 * exec-tool.in: Use an environment variable (private) instead of a
12103 file (shared) as a semaphore, so as to not break parallel builds.
12104
12105 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
12106
12107 * optabs.c (maybe_encapsulate_block): Remove.
12108 (emit_libcall_block): Adjust accordingly.
12109 * optabs.h (maybe_encapsulate_block): Remove prototype.
12110
12111 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
12112 Don't use maybe_encapsulate_block.
12113
12114 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
12115
12116 * config/rs6000/rs6000.c (rs6000_legitimize_address,
12117 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
12118 rtx is a SYMBOL_REF before calling get_pool_constant.
12119
12120 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
12121
12122 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
12123
12124 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
12125
12126 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
12127 rather than OS names to choose INO_T_EQ definition.
12128 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
12129 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
12130
12131 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
12132
12133 PR target/36348
12134 * config/darwin-f.c: New.
12135 * config/t-darwin: Added rule to build darwin-f.o.
12136 * config.gcc: Defined new variable, fortran_target_objs.
12137 (*-*-darwin*): Set fortran_target_objs.
12138 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
12139 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
12140 * configure: Regenerated.
12141
12142 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
12143
12144 PR target/35771
12145 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
12146 canonical type if needed.
12147
12148 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
12149
12150 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
12151
12152 2008-05-29 Richard Guenther <rguenther@suse.de>
12153
12154 PR tree-optimization/36343
12155 PR tree-optimization/36346
12156 PR tree-optimization/36347
12157 * tree-flow.h (clobber_what_p_points_to): Declare.
12158 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
12159 pointed-to variable is dereferenced is irrelevant to whether
12160 the pointer can access the pointed-to variable.
12161 (clobber_what_p_points_to): New function.
12162 * tree-ssa-alias.c (set_initial_properties): Use it.
12163 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
12164 call clobber check for NMTs.
12165
12166 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
12167
12168 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
12169 for printing gcov_type.
12170
12171 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
12172
12173 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
12174 and the eh region information.
12175 * value-prof.c (gimple_move_stmt_histograms): New function.
12176 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
12177
12178 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
12179
12180 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
12181
12182 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
12183
12184 * value-prof.c (tree_ic_transform): Print counts.
12185 * tree-profile.c (tree_gen_ic_func_profiler):
12186 Clear __gcov_indreict_call_callee variable to avoid misattribution
12187 of the profile.
12188
12189 2008-05-28 Rafael Espíndola <espindola@google.com>
12190
12191 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
12192 invalid sharing.
12193
12194 2008-05-28 Richard Guenther <rguenther@suse.de>
12195
12196 PR tree-optimization/36339
12197 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
12198 and clobbering code out of the loop.
12199
12200 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
12201
12202 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
12203 letters defined.
12204
12205 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
12206 s390_contiguous_bitmask_p, s390_symref_operand_p,
12207 s390_check_symref_alignment, s390_reload_larl_operand,
12208 s390_reload_symref_address): New functions.
12209 (s390_branch_condition_mnemonic): Support compare and branch
12210 instructions.
12211 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
12212 and 'W' constraints.
12213 (s390_secondary_reload): Add secondary reloads for unaligned
12214 symbol refs or symbol refs to floating point or QI/TI mode
12215 integer values.
12216 (legitimate_address_p): Accept symbol references as addresses.
12217 (s390_expand_insv): Use rotate and insert selected bits
12218 instruction for insv when building for z10.
12219 (print_operand_address): Handle symbol ref addresses.
12220 (print_operand): Output modifier 'c' added for signed byte values.
12221 (s390_encode_section_info): Mark symbol refs with
12222 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
12223
12224 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
12225 (length attribute): RRF, RRR have 4 byte length.
12226 (FPALL, INTALL): New mode iterators added.
12227 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
12228 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
12229 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
12230 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
12231 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
12232 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
12233 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
12234 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
12235 instructions.
12236 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
12237 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
12238 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
12239 reload<INTALL:mode><P:mode>_toreg_z10,
12240 reload<FPALL:mode><P:mode>_tomem_z10,
12241 reload<FPALL:mode><P:mode>_toreg_z10,
12242 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
12243 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
12244 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
12245 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
12246 definition.
12247 (movmem, clrmem, cmpmem): New splitters added.
12248
12249 * config/s390/predicates.md (larl_operand): Use
12250 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
12251 SYMBOL_REF_ALIGN1_P.
12252 (s390_signed_integer_comparison,
12253 s390_unsigned_integer_comparison): New predicates.
12254
12255 * config/s390/s390-protos.h (s390_check_symref_alignment,
12256 s390_contiguous_bitmask_p, s390_reload_larl_operand,
12257 s390_reload_symref_address,
12258 s390_compare_and_branch_condition_mask): Prototypes added.
12259
12260 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
12261 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
12262 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
12263
12264 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
12265
12266 * config/s390/s390.c (z10_cost): New cost function for z10.
12267 (s390_handle_arch_option, override_options): Support -march=z10 switch.
12268 (s390_issue_rate): Adjust issue rate for z10.
12269 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
12270 (processor_flags): Add PF_Z10.
12271 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
12272 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
12273 * gcc/config.gcc: Add z10.
12274
12275 2008-05-28 Richard Guenther <rguenther@suse.de>
12276
12277 PR tree-optimization/36291
12278 * tree-flow. h (struct gimple_df): Remove var_anns member.
12279 * tree-flow-inline.h (gimple_var_anns): Remove.
12280 (var_ann): Simplify.
12281 * tree-dfa.c (create_var_ann): Simplify.
12282 (remove_referenced_var): Clear alias info from var_anns of globals.
12283 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
12284 (delete_tree_ssa): Clear alias info from var_anns of globals.
12285 Do not free var_anns.
12286 (var_ann_eq): Remove.
12287 (var_ann_hash): Likewise.
12288
12289 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
12290
12291 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
12292 and loongson2f entries.
12293 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
12294 * config/mips/mips.h (processor_type): Add Loongson-2E
12295 and Loongson-2F entries.
12296 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
12297 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
12298 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
12299 * doc/invoke.texi (MIPS Options): Document loongson2e
12300 and loongson2f processor names.
12301
12302 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
12303
12304 PR target/35767
12305 PR target/35771
12306 * config/i386/i386.c (ix86_function_arg_boundary): Use
12307 alignment of canonical type.
12308 (ix86_expand_vector_move): Check unaligned memory access for
12309 all SSE modes.
12310
12311 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
12312
12313 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
12314 Moved to the front of file.
12315
12316 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
12317 H.J. Lu <hongjiu.lu@intel.com>
12318
12319 * dwarf2out.c (current_fde): New.
12320 (add_cfi): Use it.
12321 (lookup_cfa:): Likewise.
12322 (dwarf2out_end_epilogue): Likewise.
12323 (dwarf2out_note_section_used): Likewise.
12324
12325 2008-05-27 Michael Matz <matz@suse.de>
12326
12327 PR c++/27975
12328 * c.opt (Wenum-compare): New warning option.
12329 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
12330
12331 2008-05-27 Michael Matz <matz@suse.de>
12332
12333 PR middle-end/36326
12334 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
12335 non-BLKmode types.
12336 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
12337 into memory as tail calls.
12338
12339 2008-05-27 Richard Guenther <rguenther@suse.de>
12340
12341 PR tree-optimization/36339
12342 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
12343 pointers cause all addressable variables to be call clobbered.
12344
12345 2008-05-27 Richard Guenther <rguenther@suse.de>
12346
12347 PR tree-optimization/36245
12348 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
12349
12350 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
12351
12352 * config/s390/s390.md: Replace all occurences of the 'm'
12353 constraint with 'RT'.
12354
12355 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
12356
12357 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
12358 definitions added.
12359 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
12360 "*movdi_64".
12361 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
12362 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
12363 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
12364
12365 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
12366
12367 * reload.c: (find_reloads): Skip alternatives according to the
12368 "enabled" attribute. Constify the constraint variable.
12369 * recog.c (get_attr_enabled): Add default implementation.
12370 (extract_insn): Set the alternative_enabled_p array
12371 in the recog_data struct.
12372 (preprocess_constraints, constrain_operands): Skip
12373 alternatives according to the "enabled" attribute
12374 * recog.h (struct recog_data): New field alternative_enabled_p.
12375 (skip_alternative): New inline function.
12376 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
12377 (record_reg_classes): Skip alternative according to the
12378 "enabled" attribute.
12379
12380 * doc/md.texi: Add documention for the "enabled" attribute.
12381
12382 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
12383
12384 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
12385 * postreload.c (reload_cse_simplify_operands): Replace 'm'
12386 constraint with TARGET_MEM_CONSTRAINT.
12387 * recog.c (asm_operand_ok, preprocess_constraints,
12388 constrain_operands): Likewise.
12389 * regclass.c (record_reg_classes): Likewise.
12390 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
12391 * reload1.c (maybe_fix_stack_asms): Likewise.
12392 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12393 * recog.h: Adjust comment.
12394 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
12395 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
12396 * doc/md.texi: Add a note to description of 'm' constraint.
12397 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
12398
12399 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
12400
12401 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
12402 that the bitfield is of integral type before testing its precision.
12403
12404 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
12405 Sa Liu <saliu@de.ibm.com>
12406
12407 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
12408 __modti3, __udivti3, __umodti3 and __udivmodti4.
12409 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
12410 that implement TImode mul and div functions.
12411 * config/spu/multi3.c: New. Implement __multi3.
12412 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
12413 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
12414 functions on SPU.
12415
12416 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
12417
12418 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
12419 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
12420 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
12421 tls_sysv_suffix): New mode and mode attribute iterators.
12422 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
12423 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
12424 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
12425 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
12426 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
12427 iterators.
12428
12429 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
12430
12431 PR tree-optimization/36329
12432 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
12433 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
12434 * cgraphbuild.c (initialize_inline_failed): Use the latter
12435 macro in lieu of the former.
12436 * ipa-inline.c (cgraph_mark_inline): Likewise.
12437 (cgraph_decide_inlining_of_small_function): Likewise.
12438 (cgraph_decide_inlining): Likewise.
12439 (cgraph_decide_inlining_incrementally): Likewise.
12440
12441 2008-05-26 Tristan Gingold <gingold@adacore.com>
12442 Anatoly Sokolov <aesok@post.ru>
12443
12444 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
12445 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
12446 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
12447 optimization for 'avr6' architecture.
12448
12449 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
12450
12451 PR target/34932
12452 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
12453
12454 2008-05-26 Richard Guenther <rguenther@suse.de>
12455
12456 * tree-ssa-sccvn.c (expr_has_constants): Declare.
12457 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
12458
12459 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
12460
12461 PR middle-end/36253
12462 * caller-save.c (insert_restore): Verify alignment of spill space.
12463 (insert_save): Likewise.
12464 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
12465 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
12466 (STACK_SLOT_ALIGNMENT): Likewise.
12467 * function.c (LOCAL_ALIGNMENT): Removed.
12468 (get_stack_local_alignment): New.
12469 (assign_stack_local): Use it. Set alignment on stack slot.
12470 (assign_stack_temp_for_type): Use get_stack_local_alignment.
12471 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
12472 (STACK_SLOT_ALIGNMENT): New.
12473 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
12474 stack slot in XFmode.
12475
12476 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
12477
12478 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
12479
12480 PR/36321
12481 * config/i386/i386.md (allocate_stack_worker_64): Make sure
12482 argument operand in rax isn't removed.
12483
12484 2008-05-26 Richard Guenther <rguenther@suse.de>
12485
12486 PR middle-end/36300
12487 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
12488 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
12489
12490 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
12491
12492 PR bootstrap/36331
12493 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
12494
12495 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
12496
12497 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
12498 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
12499
12500 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
12501
12502 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
12503 build a trampoline if we don't want one.
12504 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
12505 return zero for nested functions if we don't want a trampoline.
12506
12507 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
12508
12509 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
12510
12511 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
12512
12513 PR fortran/18428
12514 * c.opt: Removed undocumented option '-lang-fortran'.
12515 * c-common.h: Removed global variable 'lang_fortran'.
12516 * c-opts.c (c_common_handle_option): Removed code to handle
12517 option '-lang-fortran'. Updated includes.
12518 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
12519 definition of '__GFORTRAN__'.
12520 (define__GNUC__): Reimplemented to use BASEVER and
12521 cpp_define_formatted.
12522 (builtin_define_with_value_n): Removed.
12523 * c-incpath.h: Renamed to ...
12524 * incpath.h: ... this.
12525 * c-incpath.c: Renamed to ...
12526 * incpath.c: ... this. Updated includes.
12527 * fix-header.c: Updated includes.
12528 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
12529 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
12530 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
12531
12532 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
12533
12534 * tree.h: Update the table of flags used on tree nodes.
12535 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
12536 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
12537 (FORCED_LABEL): Add access check.
12538 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
12539 (ASM_INPUT_P): Likewise.
12540 (ASM_VOLATILE_P): Likewise.
12541 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
12542 (OMP_SECTION_LAST): Access private_flag directly.
12543 (OMP_RETURN_NOWAIT): Likewise.
12544 (OMP_PARALLEL_COMBINED): Likewise.
12545 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
12546 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
12547 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
12548 deprecated_flag directly.
12549
12550 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
12551
12552 * final.c (frame_pointer_needed): Removed.
12553 * flags.h (frame_pointer_needed): Likewise.
12554
12555 * function.h (rtl_data): Add frame_pointer_needed.
12556 (frame_pointer_needed): New.
12557
12558 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
12559
12560 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
12561
12562 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
12563
12564 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
12565 SRC is a REG.
12566
12567 2008-05-25 Alan Modra <amodra@bigpond.net.au>
12568
12569 * c-common.c (strip_array_types): Move function to..
12570 * tree.c: ..here.
12571 (get_inner_array_type): Delete.
12572 * c-common.h (strip_array_types): Move declaration to..
12573 * tree.h: ..here.
12574 (get_inner_array_type): Delete.
12575 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
12576 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
12577 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
12578 * config/pa/pa.c (emit_move_sequence): Likewise.
12579
12580 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
12581
12582 * config/i386/i386.md (*sse_prologue_save_insn): Set length
12583 attribute to 34.
12584
12585 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
12586
12587 * function.c: Include target hook for nonlocal_goto frame value.
12588
12589 2008-05-24 Richard Guenther <rguenther@suse.de>
12590
12591 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
12592 variable can be only accessed through a pointer or a union.
12593
12594 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12595
12596 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
12597 * doc/extend.texi: Likewise.
12598
12599 2008-05-23 DJ Delorie <dj@redhat.com>
12600
12601 * config/m32c/jump.md (untyped_call): Add.
12602
12603 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
12604 for A24 to PSImode.
12605 (m32c_address_cost): Detail costs for indirect offsets.
12606
12607 2008-05-23 Rafael Espíndola <espindola@google.com>
12608
12609 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
12610 if a node is a SUBREG.
12611 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
12612 is a SUBREG.
12613
12614 2008-05-23 Paul Brook <paul@codesourcery.com>
12615 Carlos O'Donell <carlos@codesourcery.com>
12616
12617 * doc/extend.texi: Clarify use of __attribute__((naked)).
12618 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
12619 * target.h (gcc_target): Add allocate_stack_slots_for_args.
12620 * function.c (use_register_for_decl): Use
12621 targetm.calls.allocate_stack_slots_for_args.
12622 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
12623 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
12624 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
12625
12626 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
12627
12628 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
12629
12630 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
12631
12632 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
12633 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
12634 is only rounded once.
12635
12636 2008-05-23 Richard Guenther <rguenther@suse.de>
12637
12638 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
12639
12640 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
12641 Jakub Jelinek <jakub@redhat.com>
12642
12643 PR target/36079
12644 * configure.ac: Handle --enable-cld.
12645 * configure: Regenerated.
12646 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
12647 * config/i386/i386.h (struct machine_function): Add needs_cld field.
12648 (ix86_current_function_needs_cld): New define.
12649 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
12650 (cld): New isns pattern.
12651 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
12652 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
12653 * config/i386/i386.opt (mcld): New option.
12654 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
12655 TARGET_CLD and ix86_current_function_needs_cld.
12656 (override_options): Use -mcld by default for 32-bit code if
12657 USE_IX86_CLD.
12658
12659 * doc/install.texi (Options specification): Document --enable-cld.
12660 * doc/invoke.texi (Machine Dependent Options)
12661 [i386 and x86-64 Options]: Add -mcld option.
12662 (Intel 386 and AMD x86-64 Options): Document -mcld option.
12663
12664 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
12665 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
12666 (return_in_memory_64): Likewise.
12667 (return_in_memory_ms_64): Likewise.
12668
12669 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12670
12671 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
12672 * builtins.c (fold_builtin_fpclassify): New.
12673 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
12674 * builtins.def (BUILT_IN_FPCLASSIFY): New.
12675 * c-common.c (handle_type_generic_attribute): Adjust to accept
12676 fixed arguments before an elipsis.
12677 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
12678 * doc/extend.texi: Document __builtin_fpclassify.
12679
12680 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
12681
12682 * omp-low.c (gate_expand_omp_ssa): Remove.
12683 (pass_expand_omp_ssa): Remove.
12684 (gate_expand_omp): Do not check for flag_openmp_ssa.
12685 * common.opt (-fopenmp-ssa): Remove.
12686 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
12687
12688 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
12689
12690 * config/sh/sh.opt (mfixed-range): New option.
12691 * config/sh/sh-protos.h (sh_fix_range): Declare.
12692 * config/sh/sh.c (sh_fix_range): New function.
12693 * config/sh/sh.h (sh_fixed_range_str): Declare.
12694 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
12695 is not empty.
12696 * doc/invoke.texi (SH Options): Document -mfixed-range.
12697
12698 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
12699
12700 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
12701 it before the redeclaration.
12702
12703 2008-05-22 Anatoly Sokolov <aesok@post.ru>
12704
12705 * config/avr/avr.c (get_sequence_length): Add new function.
12706 (expand_prologue, expand_epilogue): Remove duplicate code.
12707
12708 2008-05-22 Rafael Espíndola <espindola@google.com>
12709
12710 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
12711 sharing.
12712
12713 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
12714
12715 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
12716 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
12717
12718 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
12719 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
12720 (vect_update_misalignment_for_peel): Likewise.
12721 (vector_alignment_reachable_p): Likewise.
12722 * tree-vect-transform.c (vectorizable_load): Likewise.
12723 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
12724 (get_vectype_for_scalar_type): Pass mode of scalar_type
12725 to UNITS_PER_SIMD_WORD.
12726
12727 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
12728 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
12729 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
12730 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
12731 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
12732
12733 2008-05-22 Ira Rosen <irar@il.ibm.com>
12734
12735 PR tree-optimization/36293
12736 * tree-vect-transform.c (vect_transform_strided_load): Don't check
12737 if the first load must be skipped because of a gap.
12738
12739 2008-05-22 Richard Guenther <rguenther@suse.de>
12740
12741 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
12742 more cases of offset disambiguation that is possible if
12743 strict-aliasing rules apply.
12744 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
12745 for basic offset and type-based disambiguation.
12746
12747 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
12748
12749 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
12750 ix86_expand_vector_set on V16QImode for SSE4.1.
12751
12752 2008-05-21 Tom Tromey <tromey@redhat.com>
12753
12754 * c.opt (Wimport): Mark as undocumented.
12755 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
12756 -Wno-import.
12757 (Warning Options): Likewise.
12758 * doc/cppopts.texi: Don't mention -Wimport.
12759
12760 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
12761
12762 PR tree-optimization/36287
12763 PR tree-optimization/36286
12764 * lambda-code.c (build_access_matrix): Do not use the loop->num
12765 for computing the number of induction variables: use the loop depth
12766 instead.
12767
12768 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
12769
12770 PR/36280
12771 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
12772 option -f(no-)leading-underscore.
12773
12774 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
12775
12776 * config/i386/i386.c (ix86_expand_vector_init_general): Use
12777 GET_MODE_NUNITS (mode).
12778
12779 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
12780
12781 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
12782 (-mmulhw): Add 464 to description.
12783 (-mdlmzb): Likewise.
12784 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
12785 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
12786 464fp entries.
12787 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
12788 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
12789 * config/rs6000/rs6000.md: Update comments for 464.
12790
12791 2008-05-21 Janis Johnson <janis187@us.ibm.com>
12792
12793 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
12794
12795 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
12796
12797 * config/i386/sse.md (vec_extractv4sf): Removed.
12798 (vec_extractv2df): Likewise.
12799 (vec_extractv2di): Likewise.
12800 (vec_extractv4si): Likewise.
12801 (vec_extractv8hi): Likewise.
12802 (vec_extractv16qi): Likewise.
12803 (vec_extract<mode>): New.
12804
12805 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
12806
12807 * config/i386/sse.md (vec_setv4sf): Removed.
12808 (vec_setv2df): Likewise.
12809 (vec_setv2di): Likewise.
12810 (vec_setv4si): Likewise.
12811 (vec_setv8hi): Likewise.
12812 (vec_setv16qi): Likewise.
12813 (vec_set<mode>): New.
12814
12815 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
12816
12817 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
12818 goto for vec_concat and vec_interleave.
12819
12820 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
12821
12822 * config/i386/sse.md (vec_initv4sf): Removed.
12823 (vec_initv2df): Likewise.
12824 (vec_initv2di): Likewise.
12825 (vec_initv4si): Likewise.
12826 (vec_initv8hi): Likewise.
12827 (vec_initv16qi): Likewise.
12828 (vec_init<mode>): New.
12829
12830 2008-05-21 Joseph Myers <joseph@codesourcery.com>
12831
12832 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
12833
12834 2008-05-21 Tom Tromey <tromey@redhat.com>
12835
12836 * ggc-zone.c (lookup_page_table_if_allocated): New function.
12837 (zone_find_object_offset): Likewise.
12838 (gt_ggc_m_S): Likewise.
12839 (highest_bit): Likewise.
12840 * ggc-page.c (gt_ggc_m_S): New function.
12841 * stringpool.c (string_stack): Remove.
12842 (init_stringpool): Update.
12843 (ggc_alloc_string): Use ggc_alloc.
12844 (maybe_delete_ident): New function.
12845 (ggc_purge_stringpool): Likewise.
12846 (gt_ggc_m_S): Remove.
12847 * ggc-common.c (ggc_protect_identifiers): New global.
12848 (ggc_mark_roots): Call ggc_purge_stringpool. Use
12849 ggc_protect_identifiers.
12850 * ggc.h (ggc_protect_identifiers): Declare.
12851 (gt_ggc_m_S): Update.
12852 (ggc_purge_stringpool): Declare.
12853 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
12854 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
12855 special case.
12856 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
12857
12858 2008-05-21 David S. Miller <davem@davemloft.net>
12859
12860 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
12861 tmake_file.
12862
12863 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
12864
12865 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
12866 once finished.
12867
12868 2008-05-20 David Daney <ddaney@avtrex.com>
12869
12870 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
12871 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
12872 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
12873 UNSPEC_UPDATE_GOT_VERSION): Renumber.
12874 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
12875 (atomic_hiqi_op): New define_code_iterator.
12876 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
12877 mips_expand_compare_and_swap_12.
12878 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
12879 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
12880 (sync_<optab><mode>, sync_old_<optab><mode>,
12881 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
12882 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
12883 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
12884 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
12885 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
12886 (test_and_set_12): New insn.
12887 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
12888 sync_new_<optab><mode>, sync_old_nand<mode>,
12889 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
12890 clobber to operand 0 for SI and DI mode insns.
12891 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
12892 mips_gen_fn_4): New typedefs.
12893 (mips_gen_fn_ptrs): Define new union type.
12894 (mips_expand_compare_and_swap_12): Remove declaration.
12895 (mips_expand_atomic_qihi): Declare function.
12896 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
12897 (mips_expand_atomic_qihi): ... this. Use new generator function
12898 parameter.
12899 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
12900 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
12901 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
12902 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
12903 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
12904 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
12905 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
12906 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
12907 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
12908 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
12909 New macros.
12910
12911 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
12912
12913 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
12914 the missing break.
12915
12916 2008-05-20 Anatoly Sokolov <aesok@post.ru>
12917
12918 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
12919 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
12920 (avr_attribute_table): Add 'OS_main' function attribute.
12921 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
12922 functions with 'OS_main' attribute.
12923
12924 2008-05-20 Richard Guenther <rguenther@suse.de>
12925
12926 PR tree-optimization/35204
12927 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
12928 helper, split out from ...
12929 (DFS): ... here. Make the DFS walk non-recursive.
12930
12931 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
12932 Jan Sjodin <jan.sjodin@amd.com>
12933
12934 PR tree-optimization/36181
12935 * tree-parloops.c (loop_has_vector_phi_nodes): New.
12936 (parallelize_loops): Don't parallelize when the loop has vector
12937 phi nodes.
12938
12939 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
12940 Sebastian Pop <sebastian.pop@amd.com>
12941
12942 * tree-loop-linear.c (gather_interchange_stats): Look in the access
12943 matrix, and never look at the tree representation of the memory
12944 accesses.
12945 (linear_transform_loops): Computes parameters and access matrices.
12946 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
12947 when fails.
12948 (access_matrix_get_index_for_parameter): New.
12949 * tree-data-ref.h (struct access_matrix): New.
12950 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
12951 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
12952 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
12953 am_vector_index_for_loop): New.
12954 (struct data_reference): Add field access_matrix.
12955 (DR_ACCESS_MATRIX): New.
12956 (compute_data_dependences_for_loop): Update declaration.
12957 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
12958 * lambda.h (lambda_vector_vec_p): Declared.
12959 * lambda-code.c: Depend on pointer-set.h.
12960 (lambda_collect_parameters_from_af, lambda_collect_parameters,
12961 av_for_af_base, av_for_af, build_access_matrix,
12962 lambda_compute_access_matrices): New.
12963 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
12964
12965 2008-05-20 Joseph Myers <joseph@codesourcery.com>
12966
12967 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
12968 $SOURCEDIR/include.
12969
12970 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
12971 Sebastian Pop <sebastian.pop@amd.com>
12972
12973 PR tree-optimization/36206
12974 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
12975 FOLD_CONVERSIONS.
12976 (instantiate_scev_1): Rename flags to fold_conversions.
12977 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
12978 outeside instantiation_loop.
12979 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
12980 (evolution_function_is_affine_or_constant_p): Removed.
12981 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
12982 instantiate_scev.
12983 (analyze_siv_subscript): Pass in the loop nest number.
12984 Call evolution_function_is_affine_in_loop instead of
12985 evolution_function_is_affine_p.
12986 (analyze_overlapping_iterations): Pass in the loop nest number.
12987
12988 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
12989 Sebastian Pop <sebastian.pop@amd.com>
12990
12991 PR tree-optimization/36206
12992 * tree-chrec.h (chrec_fold_op): New.
12993 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
12994 and other trees.
12995
12996 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
12997
12998 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
12999 (DIRS_EQ): New.
13000 (remove_duplicates): Do not set inode on non-inode systems.
13001 Use DIRS_EQ.
13002
13003 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
13004
13005 * config.gcc (tm_file): Update comments about relative pathnames.
13006
13007 2008-05-20 Richard Guenther <rguenther@suse.de>
13008
13009 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
13010 * tree-ssa-sccvn.c (process_scc): Likewise.
13011 * tree-ssa-sink.c (execute_sink_code): Likewise.
13012 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
13013 * tree-vrp.c (process_assert_insertions): Likewise.
13014 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
13015 (perform_tree_ssa_dce): Likewise.
13016 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
13017 (dump_dominator_optimization_stats): Likewise.
13018 * tree-vectorizer.c (vectorize_loops): Likewise.
13019
13020 2008-05-20 Richard Guenther <rguenther@suse.de>
13021
13022 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
13023
13024 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
13025
13026 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
13027 (ix86_i386elf_return_in_memory): Likewise.
13028 (ix86_i386interix_return_in_memory): Likewise.
13029 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
13030 (SUBTARGET_RETURN_IN_MEMORY): New.
13031 * config/i386/i386elf.h: Likewise.
13032 * config/i386/ptx4-i.h: Likewise.
13033 * config/i386/sol2-10.h: Likewise.
13034 * config/i386/sysv4.h: Likewise.
13035 * config/i386/vx-common.h: Likewise.
13036 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
13037 * config/i386/i386.c (ix86_return_in_memory): Made static and
13038 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
13039 (ix86_i386elf_return_in_memory): Removed.
13040 (ix86_i386interix_return_in_memory): Removed.
13041 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
13042 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
13043
13044 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
13045
13046 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
13047
13048 2008-05-19 Xinliang David Li <davidxl@google.com>
13049
13050 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
13051 * opts.c: Ditto.
13052 * common.opt: Ditto.
13053 * doc/invoke.texi: Ditto.
13054
13055 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
13056
13057 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
13058 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
13059
13060 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
13061
13062 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
13063 sizes of operand array from 8/4 to 4/2.
13064 (ix86_expand_vector_init_general): Change size of operand array
13065 from 32 to 16. Remove op0, op1 and half_mode.
13066
13067 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
13068
13069 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
13070 (ix86_expand_vector_init_interleave): Likewise.
13071 (ix86_expand_vector_init_general): Use them. Assert
13072 word_mode == SImode when n_words == 4.
13073
13074 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
13075
13076 * config/i386/i386.c (ix86_secondary_reload): New static function.
13077 (TARGET_SECONDARY_RELOAD): New define.
13078 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
13079 * config/i386/i386.md (reload_outqi): Remove.
13080
13081 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13082
13083 PR middle-end/35509
13084 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
13085 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
13086 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
13087 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
13088 (fold_builtin_1): Likewise.
13089 * builtins.def (BUILT_IN_ISINF_SIGN): New.
13090 c-common.c (check_builtin_function_arguments): Handle
13091 BUILT_IN_ISINF_SIGN.
13092 * doc/extend.texi: Document __builtin_isinf_sign.
13093 * fold-const.c (operand_equal_p): Handle COND_EXPR.
13094
13095 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
13096
13097 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
13098 EH cleanup at the end of the pass, search for those that have been
13099 turned into forwarder blocks and do the cleanup on their successor.
13100
13101 2008-05-18 Richard Guenther <rguenther@suse.de>
13102
13103 * tree-cfg.c (verify_gimple_expr): Allow conversions from
13104 pointers to sizetype and vice versa.
13105
13106 2008-05-18 Xinliang David Li <davidxl@google.com>
13107
13108 * gcc/tree-ssa-dce.c: Coding style fix.
13109 (check_pow): Documentation comment.
13110 (check_log): Documenation comment. Coding style fix.
13111 (is_unnecessary_except_errno_call): Ditto.
13112 (gen_conditions_for_pow): Ditto.
13113 (gen_conditions_for_log): Ditto.
13114 (gen_shrink_wrap_conditions): Ditto.
13115 (shrink_wrap_one_built_in_calls): Ditto.
13116 * gcc/doc/invoke.texi: Better documentation string.
13117 * ChangeLog: Fix wrong change log entries from
13118 May 17 checkin on function call DCE.
13119
13120 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
13121
13122 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
13123
13124 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
13125
13126 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
13127 * df-problems.c (simulation routines): Fixed block comment to
13128 properly say how to add forwards scanning functions.
13129
13130 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
13131
13132 * tree-inline.c (setup_one_parameter): Remove dead code.
13133
13134 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
13135
13136 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
13137 a BIT_AND_EXPR only for an INTEGER_TYPE.
13138
13139 2008-05-17 Xinliang David Li <davidxl@google.com>
13140
13141 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
13142 (check_pow, check_log, is_unnecessary_except_errno_call): New
13143 functions to check for eliminating math functions that are pure
13144 except for setting errno.
13145 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
13146 general condition expressions for shrink-wrapping pow/log calls.
13147 (gen_shrink_wrap_conditions): Ditto.
13148 (shrink_wrap_one_built_in_call): Ditto.
13149 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
13150 (mark_operand_necessary): If debugging, output if OP is necessary.
13151 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
13152 unnecessary.
13153 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
13154 opt level >= 2.
13155 * gcc/common.opt: New user flag -ftree-builtin-dce.
13156 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
13157
13158 2008-05-16 David S. Miller <davem@davemloft.net>
13159
13160 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
13161 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
13162
13163 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
13164
13165 PR target/36246
13166 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
13167
13168 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
13169
13170 * ifcvt.c (dead_or_predicable): Rename
13171 df_simulate_one_insn_backwards to df_simulate_one_insn.
13172 * recog.c (peephole2_optimize): Ditto.
13173 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
13174 Ditto.
13175 * df.h: Rename df_simulate_one_insn_backwards to
13176 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
13177 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
13178 scanning of defs and uses.
13179 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
13180 (df_simulate_one_insn_forwards): Removed.
13181
13182 2008-05-16 Doug Kwan <dougkwan@google.com>
13183
13184 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
13185 QNaN & SNaN.
13186 (real_from_string): Handle NaNs and Inf as approriate.
13187
13188 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
13189
13190 * doc/gty.texi (Source Files Containing Type Information): Note
13191 that headers should appear first in the gtfiles list.
13192
13193 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
13194
13195 * tree.def (COND_EXEC): Properly documented this code.
13196
13197 2008-05-16 Diego Novillo <dnovillo@google.com>
13198
13199 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
13200 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
13201 the new field.
13202
13203 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
13204
13205 * tree-ssa-dse (max_stmt_uid): Removed.
13206 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
13207 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
13208 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
13209 * function.h (cfun.last_stmt_uid): New field.
13210 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
13211 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
13212 New functions.
13213 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
13214 (create_stmt_ann): Initialize the ann->uid field.
13215 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
13216 with new calls.
13217 * tree-flow.h (renumber_gimple_stmt_uids): New function.
13218
13219 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
13220
13221 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
13222 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
13223 (init_empty_tree_cfg): Call it.
13224
13225 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
13226
13227 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
13228 Update all users.
13229
13230 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
13231
13232 * doc/invoke.text (-fdump-tree-*-verbose): New option.
13233 * tree-dump.c (dump_options): New verbose option.
13234 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
13235 Add verbose dump.
13236 * tree-pass.h (TDF_VERBOSE): New dump flag.
13237 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
13238 (tree-flow.h): Added include.
13239 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
13240
13241 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
13242
13243 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
13244
13245 From Jie Zhang <jie.zhang@analog.com>
13246 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
13247 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
13248 mcpu=bf561-none and mcpu=bf561-0.2.
13249 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
13250 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
13251 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
13252 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
13253 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
13254 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
13255 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
13256 option.
13257 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
13258 (cputype_selected): Remove.
13259 (bfin_handle_option): Don't use cputype_selected.
13260 (override_options): When no mcpu option, enable all workarounds.
13261 Don't use bfin_workarounds.
13262 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
13263 processor type.
13264 (DEFAULT_CPU_TYPE): Don't define.
13265
13266 2008-05-16 Richard Guenther <rguenther@suse.de>
13267
13268 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
13269 on deletion of the last stmt.
13270
13271 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
13272
13273 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
13274 V8HImode for SSE2 and V16QImode for SSE4.1.
13275
13276 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
13277
13278 * cgraph.h (compute_inline_parameters): Made public.
13279 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
13280 variable_generate_summary, function_write_summary,
13281 variable_write_summary, variable_read_summary. Added generate_summary,
13282 write_summary, read_summary.
13283 * cgraphunit.c (cgraph_process_new_functions): Changed call from
13284 pass_ipa_inline.function_generate_summary, to
13285 compute_inline_parameters.
13286 * ipa-inline.c (compute_inline_parameters): Made public and added
13287 node parameter.
13288 (compute_inline_parameters_for_current): New function.
13289 (pass_inline_param): Now calls compute_inline_parameters_for_current.
13290 (inline_generate_summary): Removed parameter and made to loop over
13291 all cgraph nodes.
13292 (pass_ipa_inline): Updated for new IPA_PASS structure.
13293 * passes.c (execute_ipa_summary_passes): Now is called once per
13294 pass rather than once per node*pass.
13295
13296 2008-05-15 Anatoly Sokolov <aesok@post.ru>
13297
13298 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
13299 avr_have_mul_p, avr_asm_only_p): Remove variables.
13300 (avr_override_options): Remove initialization of removed variables.
13301 (avr_file_start): Convert removed variables to fields of
13302 'struct base_arch_s *avr_current_arch'.
13303 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
13304 (AVR_HAVE_MUL): (Ditto.).
13305 (AVR_HAVE_MOVW): (Ditto.).
13306 (AVR_HAVE_LPMX): (Ditto.).
13307 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
13308 avr_asm_only_p): Remove declaration.
13309
13310 2008-05-15 Diego Novillo <dnovillo@google.com>
13311
13312 * config/arm/arm.c (arm_return_in_memory): Fix return type.
13313 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
13314
13315 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
13316
13317 PR middle-end/36194
13318 * combine.c (check_conversion): Rename back to check_promoted_subreg.
13319 Don't call record_truncated_value from here.
13320 (record_truncated_value): Turn it into a for_each_rtx callback.
13321 (record_truncated_values): New function.
13322 (combine_instructions): Call note_uses with record_truncated_values.
13323 Change name of check_conversion to check_promoted_subreg.
13324
13325 2008-05-15 Janis Johnson <janis187@us.ibm.com>
13326
13327 * doc/sourcebuild.texi: Document support for torture tests.
13328
13329 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
13330
13331 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
13332 to alternative 4 of operand 2.
13333
13334 2008-05-15 Richard Guenther <rguenther@suse.de>
13335
13336 * tree-pass.h (current_pass): Declare.
13337 (get_pass_for_id): Likewise.
13338 * passes.c (passes_by_id, passes_by_id_size): New globals.
13339 (set_pass_for_id): New function.
13340 (get_pass_for_id): Likewise.
13341 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
13342 (execute_function_todo): Flush per function statistics.
13343 * toplev.c (compile_file): Init statistics.
13344 (general_init): Do early statistics initialization.
13345 (finalize): Finish statistics.
13346 * statistics.h (statistics_early_init): Declare.
13347 (statistics_init): Likewise.
13348 (statistics_fini): Likewise.
13349 (statistics_fini_pass): Likewise.
13350 (statistics_counter_event): Likewise.
13351 (statistics_histogram_event): Likewise.
13352 * statistics.c: New file.
13353 * Makefile.in (OBJS-common): Add statistics.o.
13354 (statistics.o): Add dependencies.
13355 * doc/invoke.texi (-fdump-statistics): Document.
13356
13357 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
13358 (insert): Likewise.
13359 (execute_pre): Use statistics_counter_event.
13360 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
13361 (substitute_and_fold): Increment it. Use statistics_counter_event.
13362
13363 2008-05-15 Diego Novillo <dnovillo@google.com>
13364
13365 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
13366
13367 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
13368 * tree-ssa-alias.c (new_type_alias): Remove references to
13369 sub-variables from comment.
13370 * tree-ssa-operands.c (swap_tree_operands): Likewise.
13371
13372 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
13373
13374 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
13375 attribute to 1 only for insertps alternative.
13376
13377 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
13378
13379 * config/bfin/bfin.md (loadbytes): New pattern.
13380 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
13381 (bfin_init_builtins): Initialize it.
13382 (bdesc_1arg): Add it.
13383
13384 2008-05-15 Sa Liu <saliu@de.ibm.com>
13385
13386 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
13387 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
13388 * testsuite/lib/target-supports.exp: Add
13389 check_effective_target_fortran_integer_16.
13390
13391 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
13392
13393 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
13394 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
13395 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
13396 (TARGET_RETURN_IN_MEMORY): Define.
13397
13398 2008-05-15 Richard Guenther <rguenther@suse.de>
13399
13400 PR middle-end/36244
13401 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
13402 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
13403 represent unmodifiable vars.
13404
13405 2008-05-15 Richard Guenther <rguenther@suse.de>
13406
13407 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
13408 INDIRECT_REF and TARGET_MEM_REF.
13409 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
13410 TARGET_MEM_REF.
13411
13412 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
13413 H.J. Lu <hongjiu.lu@intel.com>
13414
13415 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
13416 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
13417 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
13418 insn alternatives. Add missing alternatives.
13419 (*vec_concatv2di_rex64_sse4_1): Likewise.
13420 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
13421 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
13422 Require TARGET_SSE.
13423
13424 2008-05-15 Richard Guenther <rguenther@suse.de>
13425
13426 PR tree-optimization/36009
13427 PR tree-optimization/36204
13428 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
13429 (determine_invariantness_stmt): Record the loop a store is
13430 always executed in.
13431 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
13432 dependency.
13433
13434 2008-05-15 Richard Guenther <rguenther@suse.de>
13435
13436 PR tree-optimization/34330
13437 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
13438 through the pointer will alias the SMT.
13439
13440 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
13441
13442 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
13443
13444 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
13445
13446 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
13447
13448 2008-05-14 Michael Meissner <michael.meissner@amd.com>
13449 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
13450
13451 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
13452 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
13453 (vashl_optab): New optab for vector/vector shifts.
13454 (vashr_optab): Ditto.
13455 (vlshr_optab): Ditto.
13456 (vrotl_optab): Ditto.
13457 (vrotr_optab): Ditto.
13458 (optab_subtype): New enum for optab_for_tree_code call.
13459 (optab_for_tree_code): Add enum optab_subtype argument.
13460
13461 * optabs.c (optab_for_tree_code): Take an additional argument to
13462 distinguish between a vector shift by a scalar and vector shift by
13463 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
13464 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
13465 vector shift by a vector.
13466 (expand_widen_pattern_expr): Pass additional argument to
13467 optab_for_tree_code.
13468
13469 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
13470 vrotl_optab, vrotr_optab.
13471
13472 * expr.c (expand_expr_real_1): Update calls to
13473 optab_for_tree_code to distinguish between vector shifted by a
13474 scalar and vector shifted by a vector.
13475 * tree-vectorizer.c (supportable_widening_operation): Ditto.
13476 (supportable_narrowing_operation): Ditto.
13477 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
13478 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
13479 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
13480 (vect_create_epilog_for_reduction): Ditto.
13481 (vectorizable_reduction): Ditto.
13482 (vectorizable_operation): Ditto.
13483 (vect_strided_store_supported): Ditto.
13484 (vect_strided_load_supported): Ditto.
13485 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
13486 * expmed.c (expand_shift): Ditto.
13487
13488 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
13489 scalar type.
13490 (ashr@var{m}3): Ditto.
13491 (vashl@var{m}3): Document new vector/vector shift standard name.
13492 (vashr@var{m}3): Ditto.
13493 (vlshr@var{m}3): Ditto.
13494 (vrotl@var{m}3): Ditto.
13495 (vrotr@var{m}3): Ditto.
13496
13497 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
13498 (PPERM_INVERT): Ditto.
13499 (PPERM_REVERSE): Ditto.
13500 (PPERM_REV_INV): Ditto.
13501 (PPERM_ZERO): Ditto.
13502 (PPERM_ONES): Ditto.
13503 (PPERM_SIGN): Ditto.
13504 (PPERM_INV_SIGN): Ditto.
13505 (PPERM_SRC1): Ditto.
13506 (PPERM_SRC2): Ditto.
13507
13508 * config/i386/sse.md (mulv2di3): Add SSE5 support.
13509 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
13510 allows a memory operand to be the value being added, and split it
13511 to improve vectorization.
13512 (sse5_pmacsdqh_mem): Ditto.
13513 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
13514 (sse5_mulv2div2di3_high): Ditto.
13515 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
13516 (vec_pack_trunc_v4si): Ditto.
13517 (vec_pack_trunc_v2di): Ditto.
13518 (sse5_pcmov_<mode>): Remove code that tried to use use
13519 andps/andnps instead of pcmov.
13520 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
13521 pmacsdqh instructions.
13522 (vec_widen_smult_lo_v4si): Ditto.
13523
13524 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
13525 (PPERM_INVERT): Ditto.
13526 (PPERM_REVERSE): Ditto.
13527 (PPERM_REV_INV): Ditto.
13528 (PPERM_ZERO): Ditto.
13529 (PPERM_ONES): Ditto.
13530 (PPERM_SIGN): Ditto.
13531 (PPERM_INV_SIGN): Ditto.
13532 (PPERM_SRC1): Ditto.
13533 (PPERM_SRC2): Ditto.
13534 (ix86_expand_sse_movcc): Move the SSE5 test after the if
13535 true/false tests.
13536 (ix86_expand_int_vcond): If SSE5 generate all possible integer
13537 comparisons.
13538 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
13539 says ignore whether the last reference is a memory operand.
13540
13541 2008-05-14 Michael Meissner <michael.meissner@amd.com>
13542 Paolo Bonzini <bonzini at gnu dot org>
13543
13544 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
13545 shift patterns.
13546
13547 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
13548 (vlshr<mode>3): Rename from vlshr<mode>3.
13549 (vashr<mode>3): Rename from vashr<mode>3.
13550 (mulv4sf3): Change the names of vector shift patterns.
13551 (mulv4si3): Ditto.
13552 (negv4sf2): Ditt.
13553
13554 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
13555 shift insns.
13556
13557 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
13558 (SI_SHLHI): Ditto.
13559 (SI_SHL): Ditto.
13560 (SI_SHLI): Ditto.
13561 (SI_ROTH): Ditto.
13562 (SI_ROTHI): Ditto.
13563 (SI_ROT): Ditto.
13564 (SI_ROTI): Ditto.
13565 (SPU_RL_0): Ditto.
13566 (SPU_RL_1): Ditto.
13567 (SPU_RL_2): Ditto.
13568 (SPU_RL_3): Ditto.
13569 (SPU_RL_4): Ditto.
13570 (SPU_RL_5): Ditto.
13571 (SPU_RL_6): Ditto.
13572 (SPU_RL_7): Ditto.
13573 (SPU_SL_0): Ditto.
13574 (SPU_SL_1): Ditto.
13575 (SPU_SL_2): Ditto.
13576 (SPU_SL_3): Ditto.
13577 (SPU_SL_4): Ditto.
13578 (SPU_SL_5): Ditto.
13579 (SPU_SL_6): Ditto.
13580 (SPU_SL_7): Ditto.
13581
13582 * config/spu/spu.md (v): New iterator macro to add v for vector types.
13583 (floatunssidf2_internal): Change vector/vector shift names.
13584 (floatunsdidf2_internal): Ditto.
13585 (mulv8hi3): Ditto.
13586 (ashrdi3): Ditto.
13587 (ashrti3): Ditto.
13588 (cgt_df): Ditto.
13589 (cgt_v2df): Ditto.
13590 (dftsv): Ditto.
13591 (vashl<mode>3): Rename from ashl<mode>3.
13592 (vashr<mode>3): Rename from ashr<mode>3.
13593 (vlshr<mode>3): Rename from lshr<mode>3.
13594 (vrotl<mode>3): Rename from rotl<mode>3.
13595
13596 2008-05-14 Michael Meissner <michael.meissner@amd.com>
13597
13598 PR target/36224
13599 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
13600 multiply gives the wrong value when doing widening multiplies.
13601 (vec_widen_smult_lo_v4si): Ditto.
13602
13603 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
13604
13605 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
13606 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
13607 emit_library_call_value.
13608 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
13609 * tree.h (ECF_LIBCALL_BLOCK): Removed.
13610 * calls.c (initialize_argument_information, precompute_arguments,
13611 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
13612 (precompute_arguments): Removed flags parameter.
13613 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
13614
13615 2008-05-14 Richard Guenther <rguenther@suse.de>
13616
13617 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
13618 Make sure to register the store if the use is a PHI_NODE.
13619
13620 2008-05-14 Olivier Hainque <hainque@adacore.com>
13621
13622 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
13623 memory if the component is to be referenced in BLKmode according
13624 to get_inner_reference.
13625
13626 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
13627
13628 * calls.c (emit_library_call_value_1): Restore code clearing
13629 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
13630
13631 2008-05-14 Olivier Hainque <hainque@adacore.com>
13632 Nicolas Roche <roche@adacore.com>
13633
13634 * configure.ac: Add support for a "gcc_subdir" variable in
13635 config-lang.in, to denote a subdirectory where the language/GCC
13636 integration files are to be found.
13637 * configure: Regenerate.
13638
13639 2008-05-14 Ira Rosen <irar@il.ibm.com>
13640
13641 PR tree-optimization/36098
13642 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
13643 value for the first load in the group in case of a gap.
13644 (vect_build_slp_tree): Check that there are no gaps in loads.
13645
13646 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
13647
13648 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
13649 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
13650 expand_copysign_bit, ): Change call to emit_no_conflict_block to
13651 emit_insn and remove unneeded code to construct extra args.
13652 (emit_no_conflict_block): Removed.
13653 * optabls.h: (emit_no_conflict_block): Removed.
13654 * cse.c (cse_extended_basic_block): Remove search for
13655 REG_NO_CONFLICT note.
13656 * global.c: Removed incorrect comment added in revision 117.
13657 * expr.c (convert_move): Change call to emit_no_conflict_block to
13658 emit_insn.
13659 * recog.c: Change comments so that they do not mention
13660 REG_NO_CONFLICT.
13661 * local_alloc.c (combine_regs): Removed last parameter.
13662 (no_conflict_p): Removed.
13663 (block_alloc): Removed note, no_conflict_combined_regno and set
13664 local vars. Removed all code to process REG_NO_CONFLICT blocks.
13665 (combine_regs): Removed already_dead and code to look for
13666 REG_NO_CONFLICT notes.
13667 * lower_subreg (remove_retval_note): Removed code to look for
13668 REG_NO_CONFLICT block.
13669 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
13670 (resolve_clobber): Remove code to process libcalls that have
13671 REG_NO_CONFLICT notes.
13672 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
13673 case.
13674 * combine.c (can_combine_p, distribute_notes): Removed
13675 REG_NO_CONFLICT case.
13676 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
13677 to emit_insns.
13678 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
13679 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
13680 Ditto.
13681 * reg-notes.def (NO_CONFLICT): Removed.
13682
13683 2008-05-14 David S. Miller <davem@davemloft.net>
13684
13685 * config/sparc/sparc.c (sparc_profile_hook): If
13686 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
13687 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
13688 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
13689
13690 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
13691
13692 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
13693
13694 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
13695
13696 PR target/36222
13697 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
13698 and op1 expansion before vector concat to have less live pseudos.
13699
13700 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
13701
13702 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
13703 ix86_expand_vector_set if supported.
13704
13705 2008-05-13 Diego Novillo <dnovillo@google.com>
13706 Kenneth Zadeck <zadeck@naturalbridge.com>
13707
13708 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
13709
13710 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
13711 phinodes_print_statistics, init_ssanames, fini_ssanames,
13712 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
13713 release_ssa_name, release_defs, replace_ssa_name_symbol,
13714 ssanames_print_statistics): Move ...
13715 * tree-flow.h: ... here.
13716 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
13717 Use FN instead of cfun.
13718 (make_ssa_name_fn): Rename from make_ssa_name.
13719 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
13720 * tree-flow-inline.h (make_ssa_name): Move from
13721 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
13722 * omp-low.c (expand_omp_parallel):
13723 * tree-flow-inline.h (redirect_edge_var_map_result):
13724 * tree-ssa.c (init_tree_ssa): Add argument FN.
13725 Use it instead of cfun. Update all users.
13726
13727 2008-05-13 Tom Tromey <tromey@redhat.com>
13728
13729 PR preprocessor/22168:
13730 * doc/cpp.texi (Top): Update menu.
13731 (Alternatives to Wrapper #ifndef): New node.
13732 (Other Directives): Document deprecation.
13733 (Obsolete Features): Remove menu.
13734 (Assertions): Merge node into Obsolete Features.
13735 (Obsolete once-only headers): Move earlier; rename to Alternatives
13736 to Wrapper #ifndef.
13737 * doc/cppopts.texi: Update.
13738 * c.opt (Wdeprecated): Enable for C and ObjC.
13739 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
13740 (C++ Dialect Options): Move -Wno-deprecated from here to...
13741 (Warning Options): ... here.
13742
13743 2008-05-13 Richard Guenther <rguenther@suse.de>
13744
13745 PR middle-end/36227
13746 * fold-const.c (fold_sign_changed_comparison): Do not allow
13747 changes in pointer-ness.
13748
13749 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
13750
13751 PR target/24713
13752 * config/sh/sh.c (sh_expand_prologue): Don't clear
13753 RTX_FRAME_RELATED_P for push insns.
13754
13755 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
13756
13757 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
13758
13759 2008-05-12 Anatoly Sokolov <aesok@post.ru>
13760
13761 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
13762 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
13763 Use 'machine->is_leaf' instead of 'leaf_func_p'.
13764
13765 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
13766
13767 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
13768 (*vec_concatv4sf_sse): This.
13769 (*sse2_concatv2si): Renamed to ...
13770 (*vec_concatv2si_sse2): This.
13771 (*sse1_concatv2si): Renamed to ...
13772 (*vec_concatv2si_sse): This.
13773 (*vec_concatv2di_rex): Renamed to ...
13774 (*vec_concatv2di_rex64): This.
13775 (*vec_concatv2si_sse4_1): New.
13776 (*vec_concatv2di_rex64_sse4_1): Likewise.
13777
13778 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
13779
13780 PR rtl-optimization/36111
13781 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
13782 that was created for swappable operands.
13783
13784 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
13785
13786 PR ada/36001
13787 * Makefile.in: Substitute GNATMAKE and GNATBIND.
13788 * configure.ac: Add call to ACX_PROG_GNAT.
13789
13790 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
13791
13792 * optc-gen.awk: Fix comment typo.
13793
13794 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
13795
13796 * pretty-print.c (pp_integer_with_precision): Use
13797 HOST_LONG_LONG_FORMAT.
13798
13799 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
13800
13801 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
13802
13803 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
13804
13805 * config/i386/i386.c (bdesc_ptest): Removed.
13806 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
13807 (bdesc_args): Add __builtin_ia32_ptestz128,
13808 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
13809 (ix86_init_mmx_sse_builtins): Updated.
13810 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
13811 (ix86_expand_builtin): Updated.
13812
13813 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
13814
13815 * tree-cfg.c (valid_fixed_convert_types_p): New function.
13816 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
13817
13818 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
13819
13820 * value-prof.c (interesting_stringop_to_profile): Do not
13821 return early for BUILT_IN_MEMPCPY.
13822
13823 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
13824
13825 * calls.c (expand_call): Don't use callgraph to increase
13826 preferred_stack_boundary.
13827
13828 * cgraph.h (cgraph_rtl_info): Use unsigned on
13829 preferred_incoming_stack_boundary.
13830
13831 * final.c (rest_of_clean_state): Use unsigned on
13832 preferred_stack_boundary.
13833
13834 2008-05-09 Tom Tromey <tromey@redhat.com>
13835
13836 PR preprocessor/22231:
13837 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
13838 proceeding.
13839
13840 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
13841
13842 PR tree-optimization/36129
13843 * tree-ssa-ccp.c: Include value-prof.h.
13844 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
13845 built-in function was folded to a constant.
13846 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
13847
13848 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
13849 Sebastian Pop <sebastian.pop@amd.com>
13850
13851 * tree-scalar-evolution.c: Document instantiate_scev.
13852 (instantiate_parameters_1): Renamed instantiate_scev_1.
13853 Don't use the same loop for instantiation_loop and evolution_loop.
13854 (instantiate_scev): New.
13855 (instantiate_parameters): Moved...
13856 (resolve_mixers): Update call to instantiate_scev_1 to pass the
13857 same loop twice. Maintains the semantics for this function.
13858 * tree-scalar-evolution.h (instantiate_scev): Declare.
13859 (instantiate_parameters): ...here. Now static inline.
13860 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
13861 instead of resolve_mixers.
13862
13863 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
13864
13865 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
13866
13867 2008-05-09 Tomas Bily <tbily@suse.cz>
13868
13869 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
13870 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
13871 * tree-ssa-structalias.c (get_constraint_for): Likewise.
13872 * c-common.c (c_common_truthvalue_conversion): Likewise.
13873 * tree-object-size.c (compute_object_offset): Likewise.
13874 * tree-inline.c (estimate_num_insns_1): Likewise.
13875 * varasm.c (const_hash_1, compare_constant, copy_constant)
13876 (compute_reloc_for_constant, output_addressed_constants)
13877 (initializer_constant_valid_p): Likewise.
13878 * c-omp.c (check_omp_for_incr_expr): Likewise.
13879 * gimplify.c (gimplify_expr): Likewise.
13880 * c-typeck.c (c_finish_return): Likewise.
13881 * tree-vectorizer.c (supportable_widening_operation)
13882 (supportable_narrowing_operation): Likewise.
13883 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
13884 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
13885 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
13886 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
13887 (descr_info_loc): Likewise.
13888 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
13889 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
13890 (fold_unary): Likewise.
13891 * builtins.c (get_pointer_alignment): Likewise.
13892 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
13893 (instantiate_parameters_1): Likewise.
13894 * tree.c (expr_align, stabilize_reference): Likewise.
13895 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
13896 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
13897 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
13898 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
13899 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
13900 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
13901 Likewise.
13902 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
13903 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
13904 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
13905 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
13906 (forward_propagate_comparison)
13907 (tree_ssa_forward_propagate_single_use_vars): Likewise.
13908 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
13909 * emit-rtl.c (component_ref_for_mem_expr)
13910 (set_mem_attributes_minus_bitpos): Likewise.
13911 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
13912 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
13913 Likewise.
13914 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
13915 (build_function_call, pointer_diff, build_compound_expr)
13916 (c_finish_return): Likewise.
13917 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
13918 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
13919 Likewise.
13920 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
13921 * expr.c (is_aligning_offset): Likewise.
13922 * tree-ssa-alias.c (is_escape_site): Likewise.
13923 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
13924 (check_all_va_list_escapes): Likewise.
13925 * tree-ssa-loop-ivopts.c (determine_base_object)
13926 (determine_common_wider_type): Likewise.
13927 * dojump.c (do_jump): Likewise.
13928 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
13929 * tree-gimple.c (is_gimple_cast): Likewise.
13930 * fold-const.c (decode_field_reference, )
13931 (fold_sign_changed_comparison, fold_unary, fold_comparison)
13932 (fold_binary): Likewise.
13933 * tree-ssa-alias-warnings.c (find_alias_site_helper)
13934 (already_warned_in_frontend_p): Likewise.
13935 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
13936 * tree.c (really_constant_p, get_unwidened): Likewise.
13937 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
13938 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
13939 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
13940 Likewise.
13941 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
13942 CONVERT_EXPR_P.
13943 (CONVERT_EXPR_P): Define.
13944 (CASE_CONVERT): Define.
13945
13946 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
13947
13948 PR middle-end/36117
13949 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
13950 (delete_unmarked_insns): When deleting a call, call
13951 delete_unreachable_blocks.
13952 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
13953 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
13954
13955 2008-05-08 Richard Guenther <rguenther@suse.de>
13956
13957 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
13958 (-ftree-salias): Likewise.
13959 (salias-max-implicit-fields): Remove param documentation.
13960 (salias-max-array-elements): Likewise.
13961 * tree-pass.h (pass_create_structure_vars): Remove.
13962 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
13963 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
13964 * tree-ssa-alias.c (create_structure_vars): Remove.
13965 (gate_structure_vars): Likewise.
13966 (pass_create_structure_vars): Likewise.
13967 (gate_build_alias): Likewise.
13968 (pass_build_alias): Adjust to run always and dump the function.
13969 * common.opt (ftree-salias): Hide.
13970 * passes.c (init_optimization_passes): Remove
13971 pass_create_structure_vars, adjust comment.
13972 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
13973 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
13974 * opts.c (decode_options): Do not set flag_tree_salias.
13975 (common_handle_option): Add OPT_ftree_salias to the backward
13976 compatibility section.
13977
13978 2008-05-08 Richard Guenther <rguenther@suse.de>
13979
13980 * tree-flow-inline.h (var_can_have_subvars): Move ...
13981 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
13982 * tree-flow.h (var_can_have_subvars): Remove.
13983 (push_fields_onto_fieldstack): Remove.
13984 (sort_fieldstack): Likewise.
13985 (struct fieldoff): Move ...
13986 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
13987 alias_set and base_for_components fields.
13988 (sort_fieldstack): Make static.
13989 (push_fields_onto_fieldstack): Likewise. Remove code that
13990 handles anything but RECORD_TYPEs. Remove alias_set and
13991 base_for_components handling.
13992 (create_variable_info_for): Adjust.
13993
13994 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
13995
13996 * common.opt (Wframe-larger-than=): Shorten the help message
13997 to one line.
13998 * doc/invoke.texi (Wframe-larger-than=): Add more description.
13999
14000 2008-05-08 Rafael Espíndola <espindola@google.com>
14001
14002 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
14003 trap.
14004 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
14005 trap and that both operands are gimple values.
14006 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
14007 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
14008 is a fp operation.
14009
14010 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
14011
14012 * read-rtl.c (join_c_conditions): Return the first string if the
14013 two strings are equal.
14014
14015 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
14016
14017 * gensupport.h (pred_data): Add a "num_codes" field.
14018 (add_predicate_code): Declare.
14019 * gensupport.c (add_predicate_code): New function.
14020 (std_pred_table): Add an "allows_const_p" field.
14021 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
14022 Remove the (incomplete) list of such codes from the codes field.
14023 (init_predicate_table): Use add_predicate_code. Add all
14024 RTX_CONST_OBJs if allows_const_p is true.
14025 * genrecog.c (process_define_predicate): Use add_predicate_code.
14026
14027 2008-05-08 David Daney <ddaney@avtrex.com>
14028 Richard Sandiford <rsandifo@nildram.co.uk>
14029
14030 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
14031 special case of constant zero operands.
14032 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
14033 old and new values. Special case constant zero values.
14034 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
14035 fails.
14036 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
14037 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
14038
14039 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
14040
14041 PR target/36090
14042 * simplify-rtx.c (simplify_plus_minus): Create CONST of
14043 similar RTX_CONST_OBJ before CONST_INT.
14044
14045 2008-05-08 Steve Ellcey <sje@cup.hp.com>
14046
14047 * stmt.c (expand_stack_restore): Change sa mode if needed.
14048
14049 2008-05-08 Richard Guenther <rguenther@suse.de>
14050
14051 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
14052 return type to bool.
14053 (ix86_sol10_return_in_memory): Likewise.
14054 (ix86_i386elf_return_in_memory): Likewise.
14055 (ix86_i386interix_return_in_memory): Likewise.
14056 * config/i386/i386.c (ix86_return_in_memory): Likewise.
14057 (ix86_sol10_return_in_memory): Likewise.
14058 (ix86_i386elf_return_in_memory): Likewise.
14059 (ix86_i386interix_return_in_memory): Likewise.
14060
14061 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
14062
14063 PR bootstrap/36180
14064 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
14065 fndecl argument.
14066 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
14067 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
14068 declared in front.
14069
14070 2008-05-08 Richard Guenther <rguenther@suse.de>
14071
14072 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
14073 * tree-data-ref.h (struct dr_alias): Remove subvars field.
14074 (DR_SUBVARS): Remove.
14075 * tree-dfa.c (dump_subvars_for): Remove.
14076 (debug_subvars_for): Likewise.
14077 (dump_variable): Do not dump subvars.
14078 (remove_referenced_var): Do not remove subvars.
14079 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
14080 (lookup_subvars_for_var): Remove.
14081 (get_subvars_for_var): Likewise.
14082 (get_subvars_at): Likewise.
14083 (get_first_overlapping_subvar): Likewise.
14084 (overlap_subvar): Likewise.
14085 * tree-flow.h (subvar_t): Remove.
14086 (struct var_ann_d): Remove subvars field.
14087 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
14088 argument. Remove special handling of SFTs.
14089 (compute_tag_properties): Likewise.
14090 (set_initial_properties): Likewise.
14091 (compute_call_clobbered): Likewise.
14092 (count_mem_refs): Likewise.
14093 (compute_memory_partitions): Likewise.
14094 (compute_flow_insensitive_aliasing): Likewise.
14095 (setup_pointers_and_addressables): Likewise.
14096 (new_type_alias): Likewise.
14097 (struct used_part): Remove.
14098 (used_portions): Likewise.
14099 (struct used_part_map): Likewise.
14100 (used_part_map_eq): Likewise.
14101 (used_part_map_hash): Likewise.
14102 (free_used_part_map): Likewise.
14103 (up_lookup): Likewise.
14104 (up_insert): Likewise.
14105 (get_or_create_used_part_for): Likewise.
14106 (create_sft): Likewise.
14107 (create_overlap_variables_for): Likewise.
14108 (find_used_portions): Likewise.
14109 (create_structure_vars): Likewise.
14110 * tree.def (STRUCT_FIELD_TAG): Remove.
14111 * tree.h (MTAG_P): Adjust.
14112 (struct tree_memory_tag): Remove base_for_components and
14113 unpartitionable flags.
14114 (struct tree_struct_field_tag): Remove.
14115 (SFT_PARENT_VAR): Likewise.
14116 (SFT_OFFSET): Likewise.
14117 (SFT_SIZE): Likewise.
14118 (SFT_NONADDRESSABLE_P): Likewise.
14119 (SFT_ALIAS_SET): Likewise.
14120 (SFT_UNPARTITIONABLE_P): Likewise.
14121 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
14122 (union tree_node): Remove sft field.
14123 * alias.c (get_alias_set): Remove special handling of SFTs.
14124 * print-tree.c (print_node): Remove handling of SFTs.
14125 * tree-dump.c (dequeue_and_dump): Likewise.
14126 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
14127 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
14128 * tree-predcom.c (set_alias_info): Do not set subvars.
14129 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
14130 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
14131 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
14132 (add_vars_for_offset): Remove.
14133 (add_virtual_operand): Remove special handling of SFTs.
14134 (add_call_clobber_ops): Likewise.
14135 (add_call_read_ops): Likewise.
14136 (get_asm_expr_operands): Likewise.
14137 (get_modify_stmt_operands): Likewise.
14138 (get_expr_operands): Likewise.
14139 (add_to_addressable_set): Likewise.
14140 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
14141 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
14142 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
14143 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
14144 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
14145 (tree_node_structure): Likewise.
14146 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
14147 handling of SFTs.
14148 (find_what_p_points_to): Likewise.
14149
14150 2008-05-08 Sa Liu <saliu@de.ibm.com>
14151
14152 * config/spu/spu.md: Fixed subti3 pattern.
14153
14154 2008-05-08 Richard Guenther <rguenther@suse.de>
14155
14156 PR middle-end/36154
14157 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14158 sure to create a representative for trailing arrays for PTA.
14159
14160 2008-05-08 Richard Guenther <rguenther@suse.de>
14161
14162 PR middle-end/36172
14163 * fold-const.c (operand_equal_p): Two objects which types
14164 differ in pointerness are not equal.
14165
14166 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
14167
14168 * calls.c (compute_argument_block_size): Add argument tree fndecl.
14169 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
14170 (emit_library_call_value_1): Add new variable fndecl initialized by
14171 NULL_TREE. It should be the decl type of orgfun, but this information
14172 seems not to be available here, so it uses the default calling abi.
14173 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
14174 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
14175 by TARGET_RETURN_IN_MEMORY.
14176 * config/i386/i386-interix.h: Likewise.
14177 * config/i386/i386.h: Likewise.
14178 * config/i386/i386elf.h: Likewise.
14179 * config/i386/ptx4-i.h: Likewise.
14180 * config/i386/sol2-10.h: Likewise.
14181 * config/i386/sysv4.h: Likewise.
14182 * config/i386/vx-common.h: Likewise.
14183 * config/cris/cris.h: Removed #if 0 clause.
14184 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
14185 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
14186 argument.
14187 (ix86_sol10_return_in_memory): Likewise.
14188 (ix86_i386elf_return_in_memory): New.
14189 (ix86_i386interix_return_in_memory): New.
14190 * config/mt/mt-protos.h (mt_return_in_memory): New.
14191 * config/mt/mt.c: Likewise.
14192 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
14193 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
14194 * config/bfin/bfin.h: Likewise.
14195 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
14196 argument.
14197 * config/bfin/bfin.c: Likewise.
14198 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
14199 * config/alpha/unicosmk.h: Likewise.
14200 * config/i386/cygming.h: Likewise.
14201 * config/iq2000/iq2000.h: Likewise.
14202 * config/mips/mips.h: Likewise.
14203 * config/mn10300/mn10300.h: Likewise.
14204 * config/rs6000/rs6000.h: Likewise.
14205 * config/score/score.h: Likewise.
14206 * config/spu/spu.h: Likewise.
14207 * config/v850/v850.h: Likewise.
14208 * defaults.h: Likewise.
14209 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
14210 * expr.c (emit_block_move): Adjust use of
14211 OUTGOING_REG_PARM_STACK_SPACE.
14212 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
14213 OUTGOING_REG_PARM_STACK_SPACE.
14214 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
14215
14216 2008-05-08 Jakub Jelinek <jakub@redhat.com>
14217
14218 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
14219 on OMP_RETURN for OMP_FOR.
14220
14221 PR debug/35896
14222 * dwarf2out.c (dw_expand_expr, common_check): Removed.
14223 (fortran_common): New function.
14224 (gen_variable_die): Call fortran_common instead of common_check,
14225 adjust for it returning tree instead of rtx. Formatting.
14226
14227 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
14228
14229 PR rtl/7335
14230 PR rtl/33826
14231 * see.c (see_copy_insn): Copy new pure const attributes for new call.
14232 * c-decl.c (merge_decls): Ditto.
14233 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
14234 to RTL_CONST_OR_PURE_CALL_P.
14235 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
14236 Initialized DECL_LOOPING_CONST_PURE.
14237 (process_call_operands): Set tree_side_effects properly.
14238 * tree.h (TREE_READONLY_DECL_P): Removed.
14239 (DECL_IS_PURE): Renamed to DECL_PURE_P.
14240 (DECL_LOOPING_OR_CONST_P): New macro.
14241 (struct tree_function_decl): Added looping_const_or_pure_p.
14242 (ECF_*) Renumbered.
14243 (ECF_LOOPING_OR_CONST_P): New macro.
14244 * rtlanal.c (pure_const_p): Removed.
14245 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
14246 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
14247 to RTL_CONST_CALL_P.
14248 * ipa-pure-const.c (pure_const_state_e): Added looping field.
14249 (check_decl, check_tree, check_call, scan_function): Initialize
14250 looping.
14251 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
14252 (static_execute): Set looping true for recursive functions.
14253 Undo setting state to IPA_NEITHER for recursive functions.
14254 * cse.c (cse_insn):
14255 * ifcvt.c (noce_can_store_speculate_p): Changed
14256 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
14257 RTL_CONST_OR_PURE_CALL_P.
14258 * dse.c (scan_insn): Ditto.
14259 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
14260 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
14261 RTL_CONST_OR_PURE_CALL_P.
14262 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
14263 pure_call_p to RTL_CONST_CALL_P.
14264 * gimplify.c (gimplify_call_expr): Clear side effects for
14265 non-looping pure and constant calls.
14266 * calls.c (emit_call_1): Set rtl flags from ecf flags.
14267 (flags_from_decl_or_type): Set ecf flags from decl flags.
14268 (initialize_argument_information): Turn off
14269 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
14270 Change const to pure if callee_copies is true rather than just
14271 turning off const.
14272 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
14273 way of marking pure calls.
14274 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
14275 Remove hack that was supposed to fix pr7335 and remove old
14276 way of marking pure calls.
14277 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
14278 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
14279 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
14280 RTL_CONST_OR_PURE_CALL_P.
14281 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
14282 * loop-invariant.c (find_exits, find_invariant_bb): Changed
14283 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
14284 * sched-deps.c (schedule_analyze): Ditto.
14285 * rtl.h (struct rtx_def): Use call field, unchanging field, and
14286 return_val field of calls to represent pure and const function info.
14287 (CONST_OR_PURE_CALL_P): Deleted macro.
14288 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
14289 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
14290 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
14291 TREE_READONLY.
14292 * tree-optimize.c (execute_fixup_cfg): Added test for
14293 ECF_LOOPING_CONST_OR_PURE.
14294 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
14295 DECL_PURE_P.
14296 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
14297 effects for looping pure or const calls.
14298 (verify_gimple_expr): Added verification code.
14299 * config/alpha/alpha.c (alpha_legitimize_address,
14300 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
14301 RTL_CONST_CALL_P.
14302 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
14303 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
14304 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
14305 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
14306 RTL_CONST_OR_PURE_CALL_P.
14307 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
14308 and const calls to be deleted.
14309
14310 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
14311
14312 PR target/35714
14313 * config/i386/mmx.md (mmx_subv2sf3): New expander.
14314 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
14315 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
14316 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
14317 to handle nonimmediate operands.
14318 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
14319 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
14320 to handle nonimmediate operands.
14321 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
14322 (mmx_pmulhrwv4hi3): New expander. Use
14323 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14324 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
14325 (sse2_umulv1siv1di3): New expander. Use
14326 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14327 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
14328 (mmx_eq<mode>3): New expander. Use
14329 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14330 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
14331 (mmx_uavgv8qi3): New expander. Use
14332 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14333 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
14334 (mmx_uavgv4hi3): New expander. Use
14335 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14336
14337 * config/i386/sse.md
14338 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
14339 to handle nonimmediate operands.
14340 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
14341 to handle nonimmediate operands.
14342 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
14343 to handle nonimmediate operands.
14344 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
14345 to handle nonimmediate operands.
14346 (sse2_unpckhpd_exp): New expander. Use
14347 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14348 (sse2_unpcklpd_exp): New expander. Use
14349 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14350 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
14351 to handle nonimmediate operands.
14352 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
14353 to handle nonimmediate operands.
14354 (*sse2_<plusminus_insn><mode>3): Rename from
14355 sse2_<plusminus_insn><mode>3 insn pattern.
14356 (sse2_<plusminus_insn><mode>3): New expander. Use
14357 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14358 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
14359 (sse2_umulv2siv2di3): New expander. Use
14360 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14361 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
14362 (sse4_1_mulv2siv2di3): New expander. Use
14363 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14364 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
14365 (sse2_pmaddwd): New expander. Use
14366 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14367 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
14368 (sse2_eq<mode>3): New expander. Use
14369 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14370 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
14371 (sse4_1_eqv2di3): New expander. Use
14372 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14373 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
14374 (sse2_uavgv16qi3): New expander. Use
14375 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14376 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
14377 (sse2_uavgv16qi3): New expander. Use
14378 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14379 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
14380 (sse2_uavgv8hi3): New expander. Use
14381 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14382 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
14383 (ssse3_pmulhrswv8hi3): New expander. Use
14384 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14385 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
14386 (ssse3_pmulhrswv4hi3): New expander. Use
14387 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14388
14389 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
14390 (<sse>_vmmul<mode>3): Ditto.
14391 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
14392 (divv2df3): Ditto.
14393 (ssse3_pmaddubsw128): Use register_operand for operand 1.
14394 (ssse3_pmaddubsw): Ditto.
14395
14396 * config/i386/i386.c (struct_builtin_description)
14397 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
14398 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
14399 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
14400 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
14401 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
14402 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
14403 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
14404 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
14405 (ix86_fixup_binary_operands): Assert that src1
14406 and src2 must have the same mode when swapped.
14407 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
14408 and ix86_binary_operator_ok. Do not force operands in registers
14409 when optimizing.
14410
14411 2008-05-07 Jan Hubicka <jh@suse.cz>
14412
14413 * cgraph.c (dump_cgraph_node): Update.
14414 * cgraph.h (cgraph_local_info): Break out inline summary.
14415 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
14416 hook.
14417 * ipa-inline (inline_summary): New accestor function.
14418 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
14419 cgraph_decide_inlining, compute_inline_parameters): Update.
14420 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
14421
14422 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
14423
14424 Cleanup ColdFire scheduling support and add V4 pipeline model.
14425
14426 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
14427 (define_attr cpu): Add cfv4 value.
14428 (define_attr type, define_attr type1): Merge into a single 'type'
14429 attribute. Update all uses.
14430 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
14431 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
14432 Update all uses.
14433 (define_attr opx_mem, define_attr opy_mem): Remove.
14434 (define_attr op_mem): Clean up, update comment.
14435 (define_attr size): Use specific values instead of general int.
14436 (define_attr guess, define_attr split): Remove. Update all uses.
14437 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
14438 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
14439 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
14440 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
14441 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
14442 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
14443 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
14444 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
14445 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
14446 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
14447 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
14448 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
14449 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
14450 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
14451 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
14452 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
14453 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
14454 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
14455 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
14456 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
14457 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
14458 Update or set attributes.
14459 (stack_tie): New fake instruction.
14460
14461 * config/m68k/m68k.h (TUNE_CFV4): New macro.
14462 (m68k_sched_attr_size): Update declaration.
14463 (m68k_sched_attr_type2): Remove.
14464 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
14465 Declare new bypass predicates.
14466
14467 * config/m68k/m68k.c (m68k_sched_issue_rate,
14468 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
14469 implementations.
14470 (TARGET_SCHED_ISSUE_RATE,
14471 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
14472 (override_options): Handle scheduling for ColdFire V4 core.
14473 (m68k_expand_prologue): Emit stack_tie.
14474 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
14475 'OP_TYPE_FPN'. Update all uses.
14476 (sched_guess_p): Remove.
14477 (sched_address_type): Handle symbolic addresses.
14478 (sched_get_operand): New static function.
14479 (sched_operand_type): Merge into sched_attr_op_type.
14480 (sched_attr_op_type): Handle FP registers, handle quick constants,
14481 update.
14482 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
14483 (m68k_sched_attr_size): Update. Move logic to ...
14484 (sched_get_attr_size_int): New static function.
14485 (sched_get_opxy_mem_type): New static function.
14486 (m68k_sched_attr_op_mem): Update.
14487 (m68k_sched_attr_type2): Remove.
14488 (sched_cfv4_bypass_data): New static variable.
14489 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
14490 (m68k_sched_issue_rate): Implement scheduler hook.
14491 (struct _sched_ib: enabled_p): New field.
14492 (m68k_sched_variable_issue): Update. Handle V4.
14493 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
14494 sched_dump_class_func_t, sched_dump_split_class,
14495 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
14496 sched_dump_dfa_class, m68k_sched_dump): Remove.
14497 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
14498 hook.
14499 (m68k_sched_init_global): Remove statisctics dumping, introduce
14500 sanity check that all instructions have pipeline reservations. Handle
14501 ColdFire V4 core.
14502 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
14503 Handle ColdFire V4 core.
14504 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
14505 New static functions.
14506 (m68k_sched_address_bypass_p): New bypass predicate.
14507 (sched_get_indexed_address_scale): New static function.
14508 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
14509
14510 * cf.md: Update comments.
14511 (define_attr type2): Remove. Use 'type' attribute instead.
14512 Update all uses.
14513 (cf_ib): Rename to cfv123_ib. Update all uses.
14514 (cf_oep): Rename to cfv123_oep. Update all uses.
14515 (cf_chr): Rename to cfv123_chr. Update all uses.
14516 (cf_mem): Rename to cfv123_mem. Update all uses.
14517 (cf_mac): Move to more appropriate place.
14518 (cfv123_guess): New automaton and cpu_unit.
14519 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
14520 Update uses of 'size' attribute. Handle before reload scheduling.
14521 (cfv123_guess): New dummy reservation for unhandled instructions.
14522 (cfv4_*): Pipeline description of ColdFire V4 core.
14523 (ignore): New reservation to handle 'ignore' type.
14524
14525 2008-05-07 Ian Lance Taylor <iant@google.com>
14526
14527 PR middle-end/36013
14528 * gimplify.c (find_single_pointer_decl_1): Don't look through
14529 indirections.
14530 (find_single_pointer_decl): Adjust comments.
14531
14532 2008-05-07 Jakub Jelinek <jakub@redhat.com>
14533
14534 PR middle-end/36137
14535 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
14536 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
14537
14538 PR middle-end/36106
14539 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
14540 integral type rather than floating point, then VIEW_CONVERT_EXPR
14541 to the floating point type.
14542
14543 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
14544
14545 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
14546 TFmode op0 to register.
14547
14548 2008-05-07 Alan Modra <amodra@bigpond.net.au>
14549
14550 * c-decl.c (grokdeclarator): Comment typo.
14551
14552 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
14553
14554 * tree-flow.h: Remove prototype for computed_goto_p.
14555 * tree-cfg.c (computed_goto_p): Make static.
14556
14557 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
14558
14559 PR target/35657
14560 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
14561 (contains_aligned_value_p): This. Handle _Decimal128.
14562 (ix86_function_arg_boundary): Only align _Decimal128 to its
14563 natural boundary and handle it properly.
14564
14565 2008-05-06 Martin Jambor <mjambor@suse.cz>
14566
14567 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
14568 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
14569 (ipcp_method_set_orig_node): Removed.
14570 (ipcp_cval_get_cvalue_type): Removed.
14571 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
14572 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
14573 (ipcp_cval_set_cvalue_type): Removed.
14574 (ipcp_cval_get_cvalue): Removed.
14575 (ipcp_cval_set_cvalue): Removed.
14576 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
14577 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
14578 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
14579 (ipcp_cval_meet): Renamed to ipa_lattice_meet
14580 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
14581 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
14582 (ipcp_get_ith_lattice): Changed parameters.
14583 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
14584 (ipcp_lattice_from_jfunc): Changed parameters.
14585 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
14586 (ipcp_method_cval_print): Added temporary variable info.
14587 (ipcp_redirect): Removed already unused local variable caller.
14588 (ipcp_redirect): New temporary variable orig_callee_info
14589 (ipcp_redirect): Removed newly unused local variable callee.
14590 (ipcp_redirect): Removed (a bit confusing) local variable type.
14591 (ipcp_insert_stage): Added local variable info.
14592 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
14593 renamed too
14594 (ipcp_formal_create): Removed.
14595 (ipcp_method_cval_set): Removed.
14596 (ipcp_propagate_stage): Renamed lattice variables.
14597 (ipcp_method_cval_set_cvalue_type): Removed.
14598 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
14599 (ipcp_print_all_lattices): Changed printed strings to refer to
14600 lattices rather than cvals.
14601 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
14602 (ipcp_propagate_const): Changed formal parameters.
14603 (build_const_val): Changed formal parameters.
14604 (ipcp_insert_stage): Removed useless variable cvalue
14605 (build_const_val): Changed formal parameters.
14606 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
14607 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
14608 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
14609 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
14610 (ipcp_print_func_profile_counts): Changed string from "method" to
14611 "function"
14612 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
14613 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
14614 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
14615 (ipcp_structures_print): Renamed to ipcp_print_all_structures
14616 (ipcp_profile_print): Renamed to ipcp_print_profile_data
14617 (ipcp_lat_is_const): Changed parameters and made inline.
14618 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
14619 (ipcp_redirect): Renamed to ipcp_need_redirect_p
14620 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
14621 the predicate condition directly
14622 (ipcp_propagate_stage): Added local variable args. Removed local
14623 variable callee. (Both are mere code simplifications.)
14624 (ipcp_method_dont_insert_const): Renamed to
14625 ipcp_node_not_modifiable_p.
14626 (ipcp_node_not_modifiable_p): Made inline.
14627 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
14628 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
14629 (ipcp_print_all_lattices): Removed variable cvalue
14630 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
14631 Updated comments.
14632
14633 2008-05-06 Olivier Hainque <hainque@adacore.com>
14634
14635 * tree-sra.c (try_instantiate_multiple_fields): Early return
14636 if field has POINTER_TYPE.
14637
14638 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
14639
14640 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
14641 by using 'q' specifier for instruction.
14642 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
14643
14644 2008-05-06 Anatoly Sokolov <aesok@post.ru>
14645
14646 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
14647 Change mode of zero_extract from QImode to HImode.
14648 (sign bit tests peepholes): (Ditto.).
14649
14650 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
14651
14652 * config/i386/mmx.md: Remove double backslashes from asm templates.
14653 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
14654 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
14655 to handle nonimmediate operands.
14656 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
14657 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
14658 to handle nonimmediate operands.
14659 (*mmx_<code>v2sf3_finite): New insn pattern.
14660 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
14661 (mmx_<code>v2sf3): New expander. Use
14662 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14663 (mmx_<plusminus_insn><mode>3): New expander. Use
14664 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14665 (*mmx_<plusminus_insn><mode>3): New insn pattern.
14666 (mmx_add<mode>3): Removed.
14667 (mmx_ssadd<mode>3): Ditto.
14668 (mmx_usadd<mode>3): Ditto.
14669 (mmx_sub<mode>3): Ditto.
14670 (mmx_sssub<mode>3): Ditto.
14671 (mmx_ussub<mode>3): Ditto.
14672 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
14673 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
14674 to handle nonimmediate operands.
14675 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
14676 insn pattern.
14677 (mmx_smulv4hi3_highpart): New expander. Use
14678 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14679 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
14680 insn pattern.
14681 (mmx_umulv4hi3_highpart): New expander. Use
14682 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14683 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
14684 (mmx_<code>v4hi3): New expander. Use
14685 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14686 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
14687 (mmx_<code>v8qi3): New expander. Use
14688 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14689 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
14690 (mmx_<code><mode>3): New expander. Use
14691 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14692
14693 2008-05-05 Jan Hubicka <jh@suse.cz>
14694
14695 PR tree-optimization/36118
14696 * passes.c (pass_init_dump_file): Fix dump header.
14697
14698 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
14699
14700 PR middle-end/36141
14701 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
14702 VCE for function decls.
14703
14704 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
14705
14706 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
14707
14708 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
14709
14710 * config/i386/i386.md (sat_plusminus): New.
14711 (plusminus_insn): Likewise.
14712 (plusminus_mnemonic): Likewise.
14713 (addsub): Removed.
14714 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
14715 (*<addsub><mode>3_cc_overflow): Renamed to ...
14716 (*<plusminus_insn><mode>3_cc_overflow): This.
14717 (*<addsub>si3_zext_cc_overflow): Renamed to ...
14718 (*<plusminus_insn>si3_zext_cc_overflow): This.
14719
14720 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
14721 (<plusminus_insn><mode>3): This.
14722 (*<addsub><mode>3): Renamed to ...
14723 (*<plusminus_insn><mode>3): This.
14724 (<sse>_vm<addsub><mode>3): Renamed to ...
14725 (<sse>_vm<plusminus_insn><mode>3): This.
14726 (sse3_h<addsub>v4sf3): Renamed to ...
14727 (sse3_h<plusminus_insn>v4sf3): This.
14728 (sse3_h<addsub>v2df3): Renamed to ...
14729 (sse3_h<plusminus_insn>v2df3): This.
14730 (<plusminus_insn><mode>3): New.
14731 (*<plusminus_insn><mode>3): Likewise.
14732 (sse2_<plusminus_insn><mode>3): Likewise.
14733 (add<mode>): Removed.
14734 (*add<mode>3): Likewise.
14735 (sse2_ssadd<mode>3): Likewise.
14736 (sse2_usadd<mode>3): Likewise.
14737 (sub<mode>3): Likewise.
14738 (*sub<mode>3): Likewise.
14739 (sse2_sssub<mode>3): Likewise.
14740 (sse2_ussub<mode>3): Likewise.
14741
14742 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
14743
14744 * gthr-single.h: Add in required interface elements as per gthr.h.
14745 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
14746 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
14747 Generalize UNUSED macro.
14748 (__gthread_once): Add.
14749 (__gthread_key_create): Add.
14750 (__gthread_key_delete): Add.
14751 (__gthread_getspecific): Add.
14752 (__gthread_setspecific): Add.
14753
14754 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
14755
14756 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
14757 the same size types for the indirect reference on the rhs, then
14758 create a VCE.
14759
14760 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
14761
14762 * config/i386/i386.md
14763 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
14764 one insn template instead of template series.
14765 (*xordi_1_rex64): Ditto.
14766 (*xordi_2_rex64): Ditto.
14767
14768 2008-05-05 Ira Rosen <irar@il.ibm.com>
14769
14770 PR tree-optimization/36119
14771 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
14772 in case of SLP.
14773
14774 2008-06-04 Jan Hubicka <jh@suse.cz>
14775
14776 tree-optimization/36100
14777 * tree-pass.h (pass_O0_always_inline): Declare.
14778 * ipa-inline.c (inline_transform): Remove dead code.
14779 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
14780 pass_O0_always_inline): New.
14781 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
14782
14783 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
14784
14785 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
14786 mnemonic in this_param move for TARGET_64BIT.
14787
14788 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
14789
14790 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
14791 (*strmovsi_rex_1): Ditto.
14792 (*strsetsi_1): Ditto.
14793 (*strsetsi_rex_1): Ditto.
14794
14795 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
14796 adddicc expanders using SWI mode iterator.
14797
14798 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
14799
14800 PR target/36121
14801 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
14802 argument handling.
14803
14804 2008-05-04 David S. Miller <davem@davemloft.net>
14805
14806 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
14807 (sparc*-*-linux*): Use linux.h in tm_file.
14808 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
14809 compiler defaulting to 32-bit.
14810 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
14811 no longer needed.
14812 * config/sparc/linux.h: Remove definitions now obtained
14813 properly from linux.h
14814 * config/sparc/linux64.h: Likewise.
14815 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
14816 don't want this setting for 32-bit builds in a biarch compiler.
14817 * doc/install.texi: Add sparc-linux to list of targets
14818 supporting --enable-targets=all.
14819
14820 2008-05-03 Andrew Pinski <pinskia@gmail.com>
14821
14822 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
14823
14824 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
14825
14826 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
14827 after V4SI_FTYPE_V8HI.
14828 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
14829 case V4SI_FTYPE_V2DF.
14830
14831 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
14832
14833 * doc/invoke.texi (max-flow-memory-locations): Removed.
14834 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
14835
14836 2008-05-03 Richard Guenther <rguenther@suse.de>
14837
14838 PR middle-end/34973
14839 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
14840
14841 2008-05-02 David S. Miller <davem@davemloft.net>
14842
14843 * config.gcc (need_64bit_hwint): Document libcpp dependency.
14844
14845 2008-05-02 Simon Baldwin <simonb@google.com>
14846
14847 PR bootstrap/36108
14848 * c-common.h (warn_array_subscript_range): Removed.
14849 * c-common.c (warn_array_subscript_range): Ditto.
14850 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
14851 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
14852
14853 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
14854
14855 * config/i386/i386.c (ix86_special_builtin_type): New.
14856 (bdesc_special_args): Likewise.
14857 (ix86_expand_special_args_builtin): Likewise.
14858 (ix86_init_mmx_sse_builtins): Updated.
14859 (ix86_expand_builtin): Updated.
14860 (ix86_expand_store_builtin): Removed.
14861 (ix86_expand_unop_builtin): Likewise.
14862
14863 * config/i386/mm3dnow.h (__v2sf): Moved to ...
14864 * config/i386/mmintrin.h (__v2sf): Here.
14865
14866 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
14867 const __v2sf.
14868 (_mm_loadl_pi): Likewise.
14869 (_mm_storeh_pi): Replace __v2si with __v2sf.
14870 (_mm_storel_pi): Likewise.
14871
14872 * doc/extend.texi: Correct __builtin_ia32_loadhps,
14873 __builtin_ia32_loadlps, __builtin_ia32_storehps,
14874 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
14875 __builtin_ia32_loadlpd.
14876
14877 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
14878
14879 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
14880 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
14881 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
14882 (ix86_init_mmx_sse_builtins): Updated.
14883 (ix86_expand_args_builtin): Likewise.
14884 (ix86_expand_builtin): Likewise.
14885 (ix86_expand_unop1_builtin): Renamed to ...
14886 (ix86_expand_unop_vec_merge_builtin): This.
14887
14888 2008-05-01 Jan Hubicka <jh@suse.cz>
14889
14890 PR bootstrap/36100
14891 * ipa-inline.c (inline_generate_summary): Make static.
14892 (inline_transform): Do not call inlining at -O0; make static.
14893 * passes.c (execute_todo): Add sanity check.
14894 (execute_one_ipa_transform_pass): Execute proper flags.
14895
14896 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
14897
14898 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
14899 (DECL_NONADDRESSABLE_P): Likewise.
14900 * alias.c (record_component_aliases): Fix comment.
14901
14902 2008-05-01 Simon Baldwin <simonb@google.com>
14903
14904 * c-common.h (warn_array_subscript_range): New function.
14905 * c-common.c (warn_array_subscript_range): Ditto.
14906 * tree-vrp.c (check_array_ref): Corrected code to agree with
14907 comment, ignoring only arrays of size 0 or size 1.
14908 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
14909
14910 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
14911
14912 * config/i386/i386.c (ix86_builtin_type): Replace
14913 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
14914 (bdesc_args): Updated.
14915 (ix86_init_mmx_sse_builtins): Likewise.
14916 (ix86_expand_args_builtin): Likewise.
14917
14918 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
14919 with __v1di.
14920
14921 * doc/extend.texi: Correct __builtin_ia32_palignr.
14922
14923 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
14924
14925 PR target/36095
14926 * config/i386/i386.c (bdesc_crc32): Removed.
14927 (ix86_expand_crc32): Likewise.
14928 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
14929 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
14930 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
14931 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
14932 UINT_FTYPE_UINT_UCHAR.
14933 (bdesc_args): Updated. Add crc32 builtins.
14934 (ix86_init_mmx_sse_builtins): Updated.
14935 (ix86_expand_args_builtin): Updated to support subreg.
14936
14937 * doc/extend.texi: Correct __builtin_ia32_crc32di.
14938
14939 2008-05-01 Jan Hubicka <jh@suse.cz>
14940
14941 * tree-pass.h (opt_pass): Add IPA_PASS.
14942 (varpool_node, cgraph_node): Forward declare.
14943 (ipa_opt_pass): Define.
14944 (pass_ipa_inline): Turn into ipa_opt_pass.
14945 (pass_apply_inline): Remove.
14946 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
14947 (apply_inline): Turn into ....
14948 (inline_transform): ... this one.
14949 (inline_generate_summary): New function.
14950 (pass_apply_inline): Remove.
14951 * function.h (ipa_opt_pass): Forward declare structure; typedef;
14952 vector.
14953 (struct function): Add ipa_transforms_to_apply.
14954 * passes.c (register_one_dump_file): Work on IPA_PASS.
14955 (init_optimization_passes): Remove pass_inline_parameters and
14956 pass_apply_inline.
14957 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
14958 (execute_one_pass) ... here; apply transforms when possible.
14959 (add_ipa_transform_pass, execute_ipa_summary_asses,
14960 execute_one_ipa_transform_pass): New.
14961 (execute_ipa_pass_list): Update for IPA_PASS type.
14962
14963 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
14964
14965 * config/i386/i386.c (ix86_builtin_type): Add
14966 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
14967 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
14968 (bdesc_args): Add SSE4a builtins.
14969 (ix86_init_mmx_sse_builtins): Updated.
14970 (ix86_expand_args_builtin): Likewise.
14971 (ix86_expand_builtin): Likewise.
14972
14973 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
14974
14975 * config/i386/i386.c (ix86_builtin_type): Add
14976 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
14977 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
14978 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
14979 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
14980 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
14981 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
14982 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
14983 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
14984 and DI_FTYPE_DI_DI_INT.
14985 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
14986 (ix86_init_mmx_sse_builtins): Updated.
14987 (ix86_expand_args_builtin): Likewise.
14988 (ix86_expand_builtin): Likewise.
14989 (ix86_expand_binop_imm_builtin): Removed.
14990
14991 * doc/extend.texi: Correct __builtin_ia32_palignr128.
14992
14993 2008-04-30 Richard Guenther <rguenther@suse.de>
14994
14995 PR tree-optimization/32921
14996 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
14997
14998 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
14999
15000 * config/arm/arm.c (arm_unwind_emit): Use
15001 crtl->all_throwers_are_sibcalls instead of
15002 cfun->all_throwers_are_sibcalls.
15003 (arm_output_fn_unwind): Likewise.
15004 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
15005 instead of cfun->uses_pic_offset_table.
15006 (frv_expand_prologue): Likewise.
15007 (frv_frame_pointer_required): Likewise.
15008 (frv_expand_fdpic_call): Likewise.
15009 (frv_emit_movsi): Likewise.
15010 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
15011 cfun->returns_pcc_struct instead of
15012 current_function_returns_pcc_struct.
15013 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
15014 instead of cfun->calls_eh_return.
15015 (m32c_pushm_popm): Likewise.
15016 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
15017 "extern" declaration.
15018
15019 2008-04-30 Richard Guenther <rguenther@suse.de>
15020
15021 PR tree-optimization/21636
15022 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
15023 constant address.
15024 (evaluate_stmt): Print the likely value.
15025 (ccp_visit_stmt): Avoid excessive vertical spacing.
15026
15027 2008-04-30 Rafael Espíndola <espindola@google.com>
15028
15029 * builtins.c (fold_call_expr): Return realret.
15030 * tree-ssa-threadedge.c
15031 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
15032 __builtin_object_size.
15033
15034 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
15035
15036 * gcc.c (wrapper_string): New variable.
15037 (insert_wrapper): New function.
15038 (execute): New option -wrapper.
15039 * doc/invoke.texi (Overall Options): New driver option -wrapper.
15040
15041 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
15042
15043 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
15044 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
15045 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
15046 from...
15047 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
15048 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
15049 config/rs6000/e500crtres64gprctr.asm,
15050 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
15051 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
15052 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
15053 config/rs6000/e500crtsav64gprctr.asm,
15054 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
15055 config/rs6000/e500crtsavg64gprctr.asm: New files.
15056 * config/rs6000/t-ppccomm: Add build rules for new files.
15057 (LIB2FUNCS_STATIC_EXTRA): Add new files.
15058 * config/rs6000/t-netbsd: Add build rules for new files.
15059 (LIB2FUNCS_STATIC_EXTRA): New variable.
15060 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
15061 (CRTSAVRES_DEFAULT_SPEC): Likewise.
15062 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
15063
15064 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
15065
15066 * config/i386/i386.c (ix86_builtin_type): Add
15067 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
15068 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
15069 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
15070 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
15071 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
15072 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
15073 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
15074 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
15075 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
15076 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
15077 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
15078 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
15079 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
15080 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
15081 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
15082 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
15083 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
15084 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
15085 V1DI_FTYPE_V2SI_V2SI.
15086 (bdesc_2arg): Moved to ...
15087 (bdesc_args): Here.
15088 (ix86_init_mmx_sse_builtins): Updated.
15089 (ix86_expand_args_builtin): Updated. Take a pointer
15090 to const struct builtin_description. Handle comparison
15091 builtin functions.
15092 (ix86_expand_sse_compare): Take a new argument for swapping operands.
15093 (ix86_expand_builtin): Updated.
15094
15095 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
15096 (ssse3_pmaddubsw128): This.
15097 (ssse3_pmaddubswv4hi3): Renamed to ...
15098 (ssse3_pmaddubsw): This.
15099
15100 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
15101 (__builtin_ia32_packssdw128): Likewise.
15102 (__builtin_ia32_packuswb128): Likewise.
15103 (__builtin_ia32_pmaddubsw): Likewise.
15104 (__builtin_ia32_pmaddubsw128): Likewise.
15105
15106 2008-04-30 Richard Guenther <rguenther@suse.de>
15107
15108 PR tree-optimization/14847
15109 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
15110 (recognize_bits_test): Use it.
15111 (recognize_single_bit_test): Likewise.
15112
15113 2008-04-30 Martin Jambor <mjambor@suse.cz>
15114
15115 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
15116 instead of setting number of formal parameters to zero.
15117 (ipcp_init_stage): Do not set the number of actual parameters to zero
15118 either.
15119 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
15120 which are called with variable number of arguments.
15121 (ipcp_insert_stage): Explicitely skipping all nodes which are
15122 called with variable number of arguments.
15123 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
15124 number of parameters.
15125
15126 * ipa-prop.h (struct ipa_node_params): Added flag
15127 called_with_var_arguments
15128 (ipa_set_param_count): Added. Changed sole setter to use it.
15129 (ipa_get_param_count): Added. All readers of param_count
15130 converted to use it instead.
15131 (ipa_set_called_with_variable_arg): Added.
15132 (ipa_is_called_with_var_arguments): Added.
15133 (ipa_get_ith_param): Added. All readers of param_decls converted
15134 to use it instead.
15135 (ipa_set_cs_argument_count): Added, sole writer to argument_count
15136 changed to use it.
15137 (ipa_get_cs_argument_count): Added, all readers of argument_count
15138 changed to cal it.
15139 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
15140 to use it.
15141
15142 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
15143 (struct ipcp_lattice): Renamed cval_type to type
15144 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
15145
15146 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
15147 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
15148 (ipcp_insert_stage): Changed the type of variable cvalue to tree
15149 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
15150 (build_const_val): Changed the type of parameter cvalue to tree
15151 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
15152 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
15153
15154 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
15155 constant
15156
15157 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
15158 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
15159 (ipa_add_method): Renamed to ipa_push_func_to_list
15160 (ipa_remove_method): Renamed to ipa_pop_func_from_list
15161 (ipa_callsite_param_count): Removed.
15162 (ipa_callsite_param_count_set): Removed.
15163 (ipa_callsite_param): Removed.
15164 (ipa_callsite_callee): Removed.
15165 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
15166 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
15167 (ipa_method_formal_count): Removed.
15168 (ipa_method_formal_count_set): Removed.
15169 (ipa_method_get_tree): Removed.
15170 (ipa_method_tree_map_create): Removed.
15171 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
15172 (ipa_create_param_decls_array): Creates the array itself
15173 (ipa_create_param_decls_array): Temporary variable info instead of
15174 a few dereferences.
15175 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
15176 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
15177 (get_type): Removed.
15178 (ipa_jf_get_info_type): Removed.
15179 (ipa_node_create): Renamed to ipa_create_node_params
15180 (ipa_free): Renamed to ipa_free_all_node_params
15181 (ipa_nodes_create): Renamed to ipa_create_all_node_params
15182 (ipa_edges_create): Renamed to ipa_create_all_edge_args
15183 (ipa_edges_free): Renamed to ipa_free_all_edge_args
15184 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
15185 (ipa_free_all_node_params): Deallocation to jump_functions moved to
15186 ipa_free_all_edge_args
15187 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
15188 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
15189 (ipa_create_methodlist_node): Removed.
15190 (ipa_methodlist_method): Removed.
15191 (ipa_methodlist_method_set): Removed.
15192 (ipa_methodlist_next_method): Removed.
15193 (ipa_methodlist_next_method_set): Removed.
15194 (ipa_method_is_modified): Removed.
15195 (ipa_method_modify_create): Removed.
15196 (ipa_method_modify_init): Temporary variable info instead of a few
15197 dereferences.
15198 (ipa_detect_param_modifications): Temporary variable info instead of
15199 a few dereferences.
15200 (ipa_compute_jump_functions): Temporary variable info instead of
15201 a few dereferences.
15202 (ipa_method_modify_set): Removed.
15203 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
15204 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
15205 than craph_node as the first parameter.
15206 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
15207 (ipa_method_modify_init): Removed.
15208 (ipa_compute_jump_functions): Added a temp variable instead of
15209 repeatadly dereferencing the cgraph_edge.aux pointer
15210 (ipa_callsite_param_set_type): Removed.
15211 (ipa_compute_jump_functions): i renamed to index and moved to
15212 an inner block
15213 (ipa_callsite_param_set_info_type_formal): Removed.
15214 (ipa_callsite_param_set_info_type): Removed.
15215 (ipa_callsite_param_map_create): Removed.
15216 (ipa_callsite_tree): Removed.
15217 (ipa_callsite_caller): Removed.
15218 (ipa_pop_func_from_list): return_method removed to return_func
15219
15220 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
15221 prefixed all values with IPA_. Changed all users.
15222 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
15223 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
15224 and FORMAL_IPATYPE IPA_PASS_THROUGH.
15225 (union parameter_info): Renamed to jump_func_value.
15226 (union jump_func_value): Renamed value to constant
15227 (struct ipa_jump_func): Renamed info_type to value
15228 (struct ipa_node): Renamed to ipa_node_params
15229 (struct ipa_node_params): Renamed ipa_arg_num to param_count
15230 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
15231 (struct ipa_node_params): Renamed ipa_mod to modified_flags
15232 (struct ipa_edge): Renamed to ipa_edge_args
15233 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
15234 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
15235 (struct ipa_methodlist): Renamed to ipa_func_list
15236 (struct ipa_func_list): method_p renamed to node, next_method
15237 renamed to next
15238 (ipa_methodlist_p): Removed, switched all users to struct pointer
15239 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
15240
15241 2008-04-30 Alan Modra <amodra@bigpond.net.au>
15242
15243 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
15244 (rs6000_emit_epilogue): Use backchain to restore only when we
15245 have a large frame. Make use of frame pointer to restore if we
15246 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
15247
15248 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
15249
15250 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
15251 Add mode to zero_extract.
15252 (sign bit tests peepholes): (Ditto.).
15253
15254 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
15255
15256 * config/i386/i386.c (ix86_builtins): Replace Prescott New
15257 Instructions in comments with SSE3.
15258 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
15259 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
15260 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
15261 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
15262 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
15263 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
15264 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
15265 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
15266 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
15267 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
15268 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
15269 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
15270 (bdesc_sse_args): Renamed to ...
15271 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
15272 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
15273 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
15274 IX86_BUILTIN_FABSQ.
15275 (bdesc_1arg): Moved to ...
15276 (bdesc_args): Here.
15277 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
15278 Instructions in comments with SSE3.
15279 (ix86_expand_sse_operands_builtin): Renamed to ...
15280 (ix86_expand_args_builtin): This. Updated.
15281 (ix86_expand_unop1_builtin): Update comments.
15282 (ix86_expand_builtin): Updated.
15283
15284 2008-04-29 Richard Guenther <rguenther@suse.de>
15285
15286 PR tree-optimization/36078
15287 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
15288 Update virtual SSA form after cleaning up the CFG.
15289
15290 2008-04-29 Richard Guenther <rguenther@suse.de>
15291
15292 PR middle-end/15255
15293 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
15294
15295 2008-04-29 Richard Guenther <rguenther@suse.de>
15296
15297 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
15298 (compute_may_aliases): Do not call finalize_ref_all_pointers.
15299 (compute_flow_insensitive_aliasing): Do not treat
15300 PTR_IS_REF_ALL pointers special.
15301 (get_smt_for): Likewise.
15302 (may_alias_p): Re-structure.
15303 (is_escape_site): A ref-all pointer conversion is not an escape site.
15304 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
15305 PTR_IS_REF_ALL pointers special.
15306 * tree-ssa-structalias.h (struct alias_info): Remove
15307 ref_all_symbol_mem_tag field.
15308 (PTR_IS_REF_ALL): Remove.
15309
15310 2008-04-29 Richard Guenther <rguenther@suse.de>
15311
15312 PR middle-end/36077
15313 * fold-const.c (extract_muldiv_1): In combining division constants
15314 make sure to never overflow.
15315
15316 2008-04-29 Nick Clifton <nickc@redhat.com>
15317
15318 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
15319
15320 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15321
15322 PR bootstrap/35169
15323 * optc-gen.awk: Work around HP-UX/IA awk bug.
15324
15325 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
15326
15327 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
15328 2008-04-25 commit.
15329
15330 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
15331
15332 PR target/36073
15333 * config/i386/i386.md
15334 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
15335 Change operand 1 predicate to nonimmediate_operand.
15336
15337 2008-04-28 Jakub Jelinek <jakub@redhat.com>
15338
15339 PR debug/36060
15340 * dwarf2out.c (struct die_struct): Mark as chain_circular through
15341 die_sub field.
15342 * gengtype.c (walk_type, write_func_for_structure): Handle
15343 chain_circular.
15344 * doc/gty.texi: Document chain_circular.
15345
15346 2008-04-28 Richard Guenther <rguenther@suse.de>
15347
15348 PR tree-optimization/36066
15349 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
15350 SCEV and loop.
15351
15352 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
15353
15354 PR target/36064
15355 * config/i386/i386.md
15356 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
15357 Use match_scratch instead of match_operand for operands 3 and 4.
15358
15359 2008-04-27 Richard Guenther <rguenther@suse.de>
15360
15361 PR tree-optimization/18754
15362 PR tree-optimization/34223
15363 * tree-pass.h (pass_complete_unrolli): Declare.
15364 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
15365 loop size before and after unconditionally of UL_NO_GROWTH in effect.
15366 Rewrite loop into loop closed SSA form if it is not already.
15367 (tree_unroll_loops_completely): Re-structure to iterate over
15368 innermost loops with intermediate CFG cleanups.
15369 Unroll outermost loops only if requested or the code does not grow
15370 doing so.
15371 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
15372 loops are available.
15373 (tree_vectorize): Instead do so here.
15374 (tree_complete_unroll): Also unroll outermost loops.
15375 (tree_complete_unroll_inner): New function.
15376 (gate_tree_complete_unroll_inner): Likewise.
15377 (pass_complete_unrolli): New pass.
15378 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
15379 uses outside of the loop.
15380 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
15381 form if it is available.
15382 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
15383 * passes.c (init_optimization_passes): Schedule complete inner
15384 loop unrolling pass before the first CCP pass after final inlining.
15385
15386 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
15387
15388 * targhooks.h (default_emutls_var_fields,
15389 default_emutls_var_init): Declare.
15390 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
15391 * target.h (struct gcc_target): Add struct emutls member.
15392 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
15393 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
15394 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
15395 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
15396 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
15397 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
15398 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
15399 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
15400 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
15401 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
15402 emit debug information.
15403 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
15404 * varasm.c: Include targhooks.h.
15405 (emutls_object_section, emutls_tmpl_section): New.
15406 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
15407 (EMUTLS_SEPARATOR): New.
15408 (prefix_name): New.
15409 (get_emutls_object_name): New.
15410 (default_emutls_var_fields): New, broken out of ...
15411 (get_emutls_object_type): ... here. Adjust to use target hooks.
15412 (get_emutls_init_templ_addr): Adjust to use target hooks.
15413 (emutls_decl): Adjust to use target hooks.
15414 (emutls_finish): Likewise.
15415 (default_emutls_var_init): New, broken out of ...
15416 (assemble_variable): ... here. Adjust to use target hooks.
15417 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
15418 SECCAT_EMUTLS_TMPL.
15419 * c-common.c (handle_section_attribute): Prevent overriding
15420 sections for emulated tls with special sections.
15421 * config/i386/i386.c (x86_64_elf_select_section): Add
15422 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
15423 (x86_64_elf_unique_section): Likewise.
15424 * config/vxworks.c: Include tree.h.
15425 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
15426 (vxworks_override_options): Set TLS scheme.
15427 * doc/tm.texi (Emulated TLS): New node.
15428
15429 2008-04-26 Simon Baldwin <simonb@google.com>
15430
15431 PR c/35652
15432 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
15433 with propagated string constants.
15434
15435 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
15436
15437 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
15438 constraint for operand 2 when operand 0 is memory operand.
15439 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
15440 operand 0 is memory operand.
15441 (fix_trunc<mode>_i387_with_temp): Ditto.
15442 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
15443 operand 2 when operand 1 is memory operand.
15444 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
15445 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
15446 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
15447 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
15448 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
15449 operands 2,3 and 4 when operand 1 is memory operand.
15450 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
15451 is memory operand.
15452 (fistdi2_floor_with_temp): Ditto.
15453 (fist<mode>2_floor_with_temp): Ditto.
15454 (fistdi2_ceil_with_temp): Ditto.
15455 (fist<mode>2_ceil_with_temp): Ditto.
15456 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
15457
15458 2008-04-26 David Daney <ddaney@avtrex.com>
15459
15460 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
15461 unspec_volitile.
15462 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
15463 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
15464 UNSPEC_UPDATE_GOT_VERSION): Renumber.
15465 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
15466 (compare_and_swap_12): New insn.
15467 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
15468 * config/mips/mips.c (mips_force_binary): New function.
15469 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
15470 (mips_expand_compare_and_swap_12): New function.
15471 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
15472
15473 2008-04-25 Jan Hubicka <jh@suse.cz>
15474
15475 PR testsuite/35843
15476 * cfgexpand.c (pass_expand): Turn into RTL pass.
15477 * passes.c (execute_one_pass): Do pass typechecking after execution.
15478 * tree-pass.h (pass_expand): Turn into RTL pass.
15479
15480 * function.h (struct rtl_data): Move here fields
15481 accesses_prior_frames, calls_eh_return, saves_all_registers,
15482 has_nonlocal_goto, has_asm_statement, is_thunk,
15483 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
15484 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
15485 arg_pointer_save_area_init from struct function; turn into bool.
15486 (struct function): Move
15487 calls_eh_return, saves_all_registers, has_nonlocal_goto,
15488 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
15489 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
15490 tail_call_emit, arg_pointer_save_area_init
15491 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
15492 (current_function_returns_struct, current_function_returns_pcc_struct,
15493 current_function_calls_setjmp, current_function_calls_alloca,
15494 current_function_accesses_prior_frames,
15495 current_function_calls_eh_return, current_function_is_thunk,
15496 current_function_stdarg, current_function_profile,
15497 current_function_limit_stack, current_function_uses_pic_offset_table,
15498 current_function_uses_const_pool, current_function_has_nonlocal_label,
15499 current_function_saves_all_registers,
15500 current_function_has_nonlocal_goto,
15501 current_function_has_asm_statement): Remove accesor macros.
15502 * ra-conflict.c (global_conflicts): Update.
15503 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
15504 (suitable_for_tail_call_opt_p): Update.
15505 * builtins.c (expand_builtin_return_addr): Update.
15506 (expand_builtin_setjmp_setup): Update.
15507 (expand_builtin_nonlocal_goto): Update.
15508 * final.c (final_start_function): Update.
15509 (profile_function): Update.
15510 (leaf_function_p): Update.
15511 (only_leaf_regs_used): Update.
15512 * df-scan.c (df_get_exit_block_use_set): Update.
15513 * dojump.c (clear_pending_stack_adjust): Update.
15514 * tree-stdarg.c (gate_optimize_stdarg): Update.
15515 * gimple-low.c (lower_function_body): Update.
15516 * global.c (compute_regsets): Update.
15517 (global_alloc): Update.
15518 * dwarf2out.c (dwarf2out_begin_prologue): Update.
15519 * expr.c (expand_assignment): Update.
15520 * dse.c (dse_step0): Update.
15521 (dse_step1): Update.
15522 * c-decl.c (store_parm_decls): Update.
15523 * local-alloc.c (combine_regs): Update.
15524 (find_free_reg): Update.
15525 * function.c (assign_parms_augmented_arg_list): Update.
15526 (assign_parm_find_data_types): Update.
15527 (assign_parms): Update.
15528 (allocate_struct_function): Update.
15529 (expand_function_start): Update.
15530 (expand_function_end): Update.
15531 (get_arg_pointer_save_area): Update.
15532 (thread_prologue_and_epilogue_insns): Update.
15533 (rest_of_match_asm_constraints): Update.
15534 * stor-layout.c (variable_size): Update.
15535 * gcse.c (gcse_main): Update.
15536 (bypass_jumps): Update.
15537 * gimplify.c (gimplify_function_tree): Update.
15538 * calls.c (emit_call_1): Update.
15539 (expand_call): Update.
15540 * bt-load.c (compute_defs_uses_and_gen): Update.
15541 * except.c (sjlj_assign_call_site_values): Update.
15542 (sjlj_emit_function_enter): Update.
15543 (can_throw_external): Update.
15544 (set_nothrow_function_flags): Update.
15545 (expand_builtin_unwind_init): Update.
15546 (expand_eh_return): Update.
15547 (convert_to_eh_region_ranges): Update.
15548 (output_function_exception_table): Update.
15549 * emit-rtl.c (gen_tmp_stack_mem): Update.
15550 * cfgexpand.c (expand_used_vars): Update.
15551 (tree_expand_cfg): Update.
15552 * cfgcleanup.c (rest_of_handle_jump): Update.
15553 * explow.c (allocate_dynamic_stack_space): Update.
15554 * varasm.c (assemble_start_function): Update.
15555 (force_const_mem): Update.
15556 (mark_constant_pool): Update.
15557 * tree-optimize.c (tree_rest_of_compilation): Update.
15558 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
15559 * tree-cfg.c (notice_special_calls): Update.
15560 (is_ctrl_altering_stmt): Update.
15561 (tree_can_make_abnormal_goto): Update.
15562 (tree_purge_dead_abnormal_call_edges): Update.
15563 * config/alpha/predicates.md: Update.
15564 * config/alpha/alpha.c (alpha_sa_mask): Update.
15565 (alpha_sa_size): Update.
15566 (alpha_does_function_need_gp): Update.
15567 (alpha_expand_prologue): Update.
15568 (alpha_start_function): Update.
15569 (alpha_output_function_end_prologue): Update.
15570 (alpha_expand_epilogue): Update.
15571 * config/frv/frv.c (frv_stack_info): Update.
15572 (frv_expand_epilogue): Update.
15573 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
15574 (s390_register_info): Update.
15575 (s390_frame_info): Update.
15576 (s390_init_frame_layout): Update.
15577 (s390_can_eliminate): Update.
15578 (save_gprs): Update.
15579 * config/spu/spu.c (spu_split_immediate): Update.
15580 (need_to_save_reg): Update.
15581 (spu_expand_prologue): Update.
15582 (spu_expand_epilogue): Update.
15583 * config/sparc/sparc.md: Update.
15584 * config/sparc/sparc.c (eligible_for_return_delay): Update.
15585 (sparc_tls_got): Update.
15586 (legitimize_pic_address): Update.
15587 (sparc_emit_call_insn): Update.
15588 (sparc_expand_prologue): Update.
15589 (output_return): Update.
15590 (print_operand): Update.
15591 (sparc_function_ok_for_sibcall): Update.
15592 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
15593 * config/m32r/m32r.md: Update.
15594 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
15595 (m32r_compute_frame_size): Update.
15596 (m32r_expand_prologue): Update.
15597 (m32r_expand_epilogue): Update.
15598 (m32r_legitimize_pic_address): Update.
15599 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
15600 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
15601 * config/i386/i386.c (ix86_frame_pointer_required): Update.
15602 (gen_push): Update.
15603 (ix86_save_reg): Update.
15604 (ix86_compute_frame_layout): Update.
15605 (ix86_expand_prologue): Update.
15606 (ix86_expand_epilogue): Update.
15607 * config/sh/sh.c (output_stack_adjust): Update.
15608 (calc_live_regs): Update.
15609 (sh5_schedule_saves): Update.
15610 (sh_expand_prologue): Update.
15611 (sh_expand_epilogue): Update.
15612 (sh_setup_incoming_varargs): Update.
15613 (sh_allocate_initial_value): Update.
15614 (sh_get_pr_initial_val): Update.
15615 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
15616 * config/sh/sh.md (label:): Update.
15617 * config/avr/avr.c (out_movhi_mr_r): Update.
15618 * config/crx/crx.h (enum): Update.
15619 * config/xtensa/xtensa.h (along): Update.
15620 * config/stormy16/stormy16.c Update.
15621 (xstormy16_compute_stack_layout): Update.
15622 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
15623 (fr30_expand_prologue): Update.
15624 * config/cris/cris.c (cris_conditional_register_usage): Update.
15625 (cris_reg_saved_in_regsave_area): Update.
15626 (cris_initial_frame_pointer_offset): Update.
15627 (cris_simple_epilogue): Update.
15628 (cris_expand_prologue): Update.
15629 (cris_expand_epilogue): Update.
15630 (cris_expand_pic_call_address): Update.
15631 (cris_asm_output_symbol_ref): Update.
15632 (cris_asm_output_label_ref): Update.
15633 * config/cris/cris.md Update.
15634 * config/iq2000/iq2000.c (compute_frame_size): Update.
15635 (iq2000_expand_epilogue): Update.
15636 * config/mt/mt.h (save_direction): Update.
15637 * config/mn10300/mn10300.c (mn10300_function_value): Update.
15638 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
15639 (ia64_secondary_reload_class): Update.
15640 * config/m68k/m68k.c (m68k_save_reg): Update.
15641 (m68k_expand_prologue): Update.
15642 (m68k_expand_epilogue): Update.
15643 (legitimize_pic_address): Update.
15644 * config/rs6000/rs6000.c (rs6000_got_register): Update.
15645 (first_reg_to_save): Update.
15646 (first_altivec_reg_to_save): Update.
15647 (compute_vrsave_mask): Update.
15648 (compute_save_world_info): Update.
15649 (rs6000_stack_info): Update.
15650 (spe_func_has_64bit_regs_p): Update.
15651 (rs6000_ra_ever_killed): Update.
15652 (rs6000_emit_eh_reg_restore): Update.
15653 (rs6000_emit_allocate_stack): Update.
15654 (rs6000_emit_prologue): Update.
15655 (rs6000_emit_epilogue): Update.
15656 (rs6000_output_function_epilogue): Update.
15657 (output_profile_hook): Update.
15658 (rs6000_elf_declare_function_name): Update.
15659 * config/rs6000/rs6000.h (rs6000_args): Update.
15660 * config/rs6000/rs6000.md: Update.
15661 * config/mcore/mcore.c (mcore_expand_prolog): Update.
15662 * config/arc/arc.c (arc_output_function_epilogue): Update.
15663 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
15664 * config/darwin.c (machopic_function_base_name): Update.
15665 * config/score/score3.c (score3_compute_frame_size): Update.
15666 (rpush): Update.
15667 (rpop): Update.
15668 (score3_epilogue): Update.
15669 * config/score/score7.c (score7_compute_frame_size): Update.
15670 (score7_prologue): Update.
15671 (score7_epilogue): Update.
15672 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
15673 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
15674 * config/arm/arm.c (use_return_insn): Update.
15675 (require_pic_register): Update.
15676 (arm_load_pic_register): Update.
15677 (arm_compute_save_reg0_reg12_mask): Update.
15678 (arm_compute_save_reg_mask): Update.
15679 (thumb1_compute_save_reg_mask): Update.
15680 (output_return_instruction): Update.
15681 (arm_output_function_prologue): Update.
15682 (arm_output_epilogue): Update.
15683 (arm_get_frame_offsets): Update.
15684 (arm_expand_prologue): Update.
15685 (thumb_pushpop): Update.
15686 (thumb_exit): Update.
15687 (thumb1_expand_prologue): Update.
15688 (thumb1_expand_epilogue): Update.
15689 (arm_unwind_emit): Update.
15690 (arm_output_fn_unwind): Update.
15691 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
15692 * config/arm/arm.md: Update.
15693 * config/pa/pa.md: Update.
15694 * config/pa/pa.c (legitimize_pic_address): Update.
15695 (compute_frame_size): Update.
15696 (hppa_expand_prologue): Update.
15697 (hppa_expand_epilogue): Update.
15698 (borx_reg_operand): Update.
15699 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
15700 (HARD_REGNO_RENAME_OK): Update.
15701 * config/mips/mips.c (mips_global_pointer): Update.
15702 (mips_save_reg_p): Update.
15703 (mips_compute_frame_info): Update.
15704 (mips_frame_pointer_required): Update.
15705 (mips_expand_prologue): Update.
15706 (mips_expand_epilogue): Update.
15707 (mips_can_use_return_insn): Update.
15708 (mips_reorg_process_insns): Update.
15709 * config/v850/v850.c (compute_register_save_size): Update.
15710 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
15711 * config/mmix/mmix.c (along): Update.
15712 (mmix_expand_epilogue): Update.
15713 * config/bfin/bfin.c (legitimize_pic_address): Update.
15714 (must_save_p): Update.
15715 (stack_frame_needed_p): Update.
15716 (add_to_reg): Update.
15717 (bfin_expand_prologue): Update.
15718 * stmt.c (expand_asm_operands): Update.
15719 * reload1.c (reload): Update.
15720 (init_elim_table): Update.
15721
15722 2008-04-25 Bob Wilson <bob.wilson@acm.org>
15723
15724 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
15725
15726 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
15727
15728 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
15729 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
15730 (mov<mode>): Removed.
15731 (*movv4sf_internal): Likewise.
15732 (*movv2df_internal): Likewise.
15733
15734 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
15735
15736 * config.gcc (crx-*-elf): Remove deprecation.
15737
15738 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
15739
15740 * config/i386/cygming-crtend.c (register_frame_ctor): Register
15741 __gcc_deregister_frame with atexit.
15742 (deregister_frame_dtor): Remove.
15743
15744 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
15745 Nathan Sidwell <nathan@codesourcery.com>
15746
15747 * config/rs6000/rs6000.opt (mspe): Remove Var property.
15748 (misel): Likewise.
15749 * config/rs6000/rs6000.h (rs6000_spe): Declare.
15750 (rs6000_isel): Likewise.
15751 * config/rs6000/rs6000.c (rs6000_spe): New variable.
15752 (rs6000_isel): New variable.
15753 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
15754
15755 2008-04-24 Jakub Jelinek <jakub@redhat.com>
15756
15757 PR c++/35758
15758 * c-common.c (handle_vector_size_attribute): Call
15759 lang_hooks.types.reconstruct_complex_type instead of
15760 reconstruct_complex_type.
15761 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
15762 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
15763 * langhooks.h (struct lang_hooks_for_types): Add
15764 reconstruct_complex_type hook.
15765 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
15766 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
15767
15768 2008-04-24 Richard Guenther <rguenther@suse.de>
15769
15770 * c-common.h (check_builtin_function_arguments): Declare.
15771 * c-common.c (validate_nargs): New function.
15772 (check_builtin_function_arguments): Likewise.
15773 * c-typeck.c (build_function_call): Call
15774 check_builtin_function_arguments.
15775 * builtins.c (fold_builtin_classify): Remove error reporting code.
15776 (fold_builtin_unordered_cmp): Likewise.
15777 (fold_builtin_1): Likewise.
15778 (fold_builtin_n): Likewise.
15779
15780 2008-04-24 Jakub Jelinek <jakub@redhat.com>
15781
15782 PR tree-optimization/36008
15783 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
15784 the original op1, rather than delta by step.
15785
15786 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
15787 Sebastian Pop <sebastian.pop@amd.com>
15788
15789 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
15790 eliminate_local_variables_stmt, eliminate_local_variables,
15791 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
15792 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
15793 of code delimited by two edges in the CFG.
15794 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
15795 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
15796 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
15797 the case of parallelisation of reductions.
15798 (expr_invariant_in_region_p): New.
15799
15800 * tree-flow.h (gather_blocks_in_sese_region): Declared.
15801 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
15802
15803 2008-04-24 Ira Rosen <irar@il.ibm.com>
15804 Richard Guenther <rguenther@suse.de>
15805
15806 PR tree-optimization/36034
15807 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
15808 incapable of dealing with loads with gaps.
15809
15810 2008-04-24 Rafael Espíndola <espindola@google.com>
15811
15812 * tree-flow.h (vrp_evaluate_conditional): Change signature.
15813 * tree-ssa-propagate.c (fold_predicate_in): Update call to
15814 vrp_evaluate_conditional.
15815 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
15816 (vrp_evaluate_conditional): Split the cond argument.
15817 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
15818 (simplify_stmt_for_jump_threading): Update call to
15819 vrp_evaluate_conditional.
15820
15821 2008-04-24 Ira Rosen <irar@il.ibm.com>
15822
15823 PR tree-optimization/35982
15824 * tree-vect-analyze.c (vect_check_interleaving): Check that the
15825 interleaved data-refs are of the same type.
15826
15827 2008-04-24 Danny Smith <dannysmith@users.net>
15828
15829 * c-format.c (check_format_info_main): Use strncmp rather than a
15830 magic prefix to handle multichar length specs.
15831 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
15832 Don't prefix "I64" and "I32" with '\0'.
15833
15834 2008-04-24 Jakub Jelinek <jakub@redhat.com>
15835
15836 PR target/36015
15837 * config/i386/i386.c (init_cumulative_args): Don't pass anything
15838 in registers for -m32 only if stdarg_p (fntype).
15839
15840 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
15841
15842 PR rtl-optimization/36006
15843 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
15844 temp to op0 in order to avoid invalid rtx sharing.
15845
15846 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
15847
15848 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
15849 check TREE_INVARIANT.
15850 * tree-gimple.c (is_gimple_address): New.
15851 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
15852 * tree-gimple.h (is_gimple_address): New.
15853 * tree.h (decl_address_invariant_p): New.
15854 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
15855 (build_string): Likewise.
15856 (decl_address_invariant_p): New, from is_gimple_invariant_address.
15857 (tree_invariant_p_1): Likewise.
15858 (save_expr): Use it.
15859 (tree_invariant_p): New.
15860 (skip_simple_arithmetic): Use it.
15861 (stabilize_reference_1): Use it.
15862 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
15863 simplify.
15864 (build1_stat): Drop code to compute TREE_INVARIANT.
15865 (build2_stat): Drop code to compute TREE_INVARIANT.
15866 (build3_stat): Drop code to compute TREE_INVARIANT.
15867 (build4_stat): Drop code to compute TREE_INVARIANT.
15868 (build5_stat): Drop code to compute TREE_INVARIANT.
15869 (build7_stat): Drop code to compute TREE_INVARIANT.
15870 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
15871 * tree.h (struct tree_base): Remove invariant_flag.
15872 (TREE_INVARIANT): Remove.
15873 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
15874 (fold_builtin_expect): Check TREE_CONSTANT.
15875 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
15876 * c-tree.h (c_expr_to_decl): Drop third parameter.
15877 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
15878 (build_c_cast): Don't set TREE_INVARIANT.
15879 (pop_init_level): Don't set TREE_INVARIANT.
15880 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
15881 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
15882 TREE_CONSTANT.
15883 (gimplify_init_constructor): Don't set TREE_INVARIANT.
15884 (gimplify_addr_expr): Adjust comment.
15885 * tree-mudflap.c (mf_build_string):
15886 * print-tree.c (print_node): Don't print TREE_INVARIANT.
15887 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
15888 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
15889 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
15890 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
15891 * langhooks.h (struct lang_hooks): Drop third parameter from
15892 expr_to_decl.
15893
15894 2008-04-23 Richard Guenther <rguenther@suse.de>
15895
15896 PR tree-optimization/27799
15897 PR tree-optimization/32921
15898 PR tree-optimization/32624
15899 * tree-ssa-structalias.c (merge_smts_into): Only merge the
15900 SMTs aliases and the tag itself into the solution.
15901 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
15902 merge the points-to solution back into the SMT aliases.
15903 (may_alias_p): Use alias_set_subset_of instead of
15904 aliases_conflict_p. A pointer which points to
15905 memory with alias set zero may access any variable.
15906
15907 2008-04-23 Richard Guenther <rguenther@suse.de>
15908
15909 * alias.c (alias_set_subset_of): Correctly handle asking
15910 if zero is a subset of an alias set with zero child.
15911 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
15912 (compute_flow_insensitive_aliasing): Correctly walk all
15913 pointers. Do not unnecessarily union sets.
15914
15915 2008-04-23 Richard Guenther <rguenther@suse.de>
15916
15917 PR middle-end/36021
15918 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
15919
15920 2008-04-22 Tomas Bily <tbily@suse.cz>
15921
15922 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
15923 unreachable case.
15924 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
15925 NON_LVALUE_EXPR.
15926 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
15927 * tree-ssa-structalias.c (get_constraint_for): Likewise.
15928 * tree-inline.c (estimate_num_insns_1): Likewise.
15929 * varasm.c (const_hash_1, compare_constant, copy_constant)
15930 (compute_reloc_for_constant, output_addressed_constants): Likewise.
15931 * emit-rtl.c (component_ref_for_mem_expr)
15932 (set_mem_attributes_minus_bitpos): Likewise.
15933 * expr.c (highest_pow2_factor, expand_expr_real_1, )
15934 (is_aligning_offset): Likewise.
15935 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
15936 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
15937 * dojump.c (do_jump): Likewise.
15938 * builtins.c (get_pointer_alignment, get_memory_rtx)
15939 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
15940 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
15941
15942 2008-04-23 Jakub Jelinek <jakub@redhat.com>
15943
15944 PR rtl-optimization/36017
15945 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
15946 expanding the library call.
15947
15948 2008-04-22 Ian Lance Taylor <iant@google.com>
15949
15950 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
15951 than size_in_bytes.
15952
15953 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
15954
15955 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
15956 of LR/CTR moves for Power6.
15957
15958 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
15959
15960 PR middle-end/36003
15961 * passes.c (init_optimization_passes): Remove
15962 pass_fast_rtl_byte_dce.
15963
15964 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
15965
15966 PR target/29096
15967 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
15968 builtin functions to generate faster code.
15969 (_mm_cvtpu16_ps): Ditto.
15970 (_mm_cvtpi32x2_ps): Ditto.
15971
15972 2008-04-22 Nick Clifton <nickc@redhat.com>
15973
15974 * common.opt (ftree-loop-distribution): Add Optimization
15975 attribute.
15976
15977 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
15978 (frv_expand_builtin_va_start): Likewise.
15979
15980 * config/arm/arm.c (thumb_find_work_register): Fix location of
15981 argument register count.
15982
15983 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
15984
15985 Support scheduling for ColdFire V1 and V3 microarchitecture.
15986 Improve scheduling of multiplication instructions.
15987
15988 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
15989 (mac): New instruction attribute.
15990 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
15991 (m68k_sched_mac): New variable.
15992 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
15993 Handle cfv1 and cfv3.
15994 (max_insn_size): New static variable.
15995 (struct _sched_ib): New type.
15996 (sched_ib): New static variable.
15997 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
15998 to fields of 'struct _sched_ib sched_ib'. Update all uses.
15999 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
16000 Update.
16001 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
16002 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
16003 new variables. Update.
16004 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
16005 Add modeling of cfv3 instruction buffer. Update.
16006 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
16007 * config/m68k/m68k.h (TUNE_CFV3): New macro.
16008 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
16009 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
16010 a particular reservation applies to.
16011 (type2): Reorganize attribute values. Rename alu to alu_reg,
16012 alu_l to alu, move_l to omove. Join move to alu. Split mul
16013 to mul_l and mul_w.
16014 (cf_ib_*): Simplify description of instruction buffer.
16015 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
16016 (cf_mem): Split into cf_mem1 and cf_mem2.
16017 (cf_v2_move_??): Rename to cfv12_alu_??.
16018 (cf_v2_move_l_??): Rename to cfv12_omove_??.
16019 (cf_v2_mul_??): Remove reservations.
16020 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
16021 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
16022 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
16023 appropriate place.
16024 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
16025 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
16026 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
16027 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
16028 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
16029 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
16030 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
16031 expansions of the above reservations for instructions of sizes
16032 1, 2 and 3 words.
16033
16034 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
16035
16036 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
16037
16038 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
16039
16040 * coverage.c: Include tree-pass.h.
16041 (coverage_counter_alloc): Print da_file_name to the dump file.
16042
16043 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
16044
16045 * sbitmap.c (sbitmap_range_empty_p): New function.
16046 * sbitmap.h (sbitmap_range_empty_p): New function.
16047 * bitmap.h: Now includes obstack.h.
16048
16049 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
16050 Kenneth Zadeck <zadeck@naturalbridge.com>
16051
16052 * dbgcnt.def (ra_byte_scan): Added.
16053 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
16054 when the last hit happens for a counter.
16055 * timevar.def (TV_DF_BYTE_LR): New variable.
16056 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
16057 * passes.c (pass_fast_rtl_byte_dce): New pass.
16058 * fwprop.c (update_df): Added mode to call df_ref_create.
16059 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
16060 DF_REF_EXTRACT_OFFSET.
16061 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
16062 DF_BYTE_LR_OUT, df_byte_lr): New macro.
16063 (df_mm): New enum.
16064 (df_ref_extract): Added mode field.
16065 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
16066 DF_REF_EXTRACT_OFFSET.
16067 (DF_REF_EXTRACT_MODE): New macro.
16068 (df_byte_lr_bb_info): New structure.
16069 (df_print_byte_regset, df_compute_accessed_bytes,
16070 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
16071 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
16072 df_byte_lr_simulate_uses,
16073 df_byte_lr_simulate_artificial_refs_at_top,
16074 df_byte_lr_simulate_artificial_refs_at_end,
16075 df_compute_accessed_bytes): New function.
16076 (df_ref_create): Add parameter.
16077 (df_byte_lr_get_bb_info): New inline function.
16078 * df-scan.c (df_ref_record, df_uses_record,
16079 df_ref_create_structure): Added mode parameter.
16080 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
16081 df_defs_record, df_uses_record, df_get_conditional_uses,
16082 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
16083 df_entry_block_defs_collect, df_exit_block_uses_collect):
16084 Added mode parameter to calls to df_ref_record, df_uses_record,
16085 df_ref_create_structure.
16086 (df_ref_equal_p, df_ref_compare): Added test for modes.
16087 (df_ref_create_structure): Added code to set mode. Renamed
16088 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
16089 DF_REF_EXTRACT_OFFSET.
16090 * df-core.c (df_print_byte_regset): New function.
16091 * df-byte-scan.c: New file.
16092 * df-problems.c (df_rd_transfer_function): Removed unnecessary
16093 calls to BITMAP_FREE.
16094 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
16095 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
16096 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
16097 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
16098 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
16099 df_byte_lr_local_compute, df_byte_lr_init,
16100 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
16101 df_byte_lr_transfer_function, df_byte_lr_free,
16102 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
16103 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
16104 df_byte_lr_simulate_uses,
16105 df_byte_lr_simulate_artificial_refs_at_top,
16106 df_byte_lr_simulate_artificial_refs_at_end): New function.
16107 * dce.c (byte_dce_process_block): New function.
16108 (dce_process_block): au is now passed in rather than computed
16109 locally. Changed loops that look at artificial defs to not look
16110 for conditional or partial ones, because there never are any.
16111 (fast_dce): Now is able to drive byte_dce_process_block or
16112 dce_process_block depending on the kind of dce being done.
16113 (rest_of_handle_fast_dce): Add parameter to fast_dce.
16114 (rest_of_handle_fast_byte_dce): New function.
16115 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
16116 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
16117
16118 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
16119
16120 PR fortran/35019
16121 * gcc.h: Added fortran options that take arguments to
16122 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
16123 macros.
16124
16125 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
16126
16127 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
16128 scalarization if on the LHS and not a full access.
16129
16130 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16131
16132 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
16133
16134 2008-04-18 Rafael Espíndola <espindola@google.com>
16135
16136 * tree-vrp.c (find_case_label_index): Fix the binary search.
16137 (find_case_label_range): New.
16138 (vrp_visit_switch_stmt): Use find_case_label_range.
16139 (simplify_switch_using_ranges): Use find_case_label_range.
16140
16141 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
16142
16143 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
16144 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
16145
16146 2008-04-18 Tom Tromey <tromey@redhat.com>
16147
16148 PR libcpp/15500:
16149 * doc/cpp.texi (Implementation-defined behavior): Mention
16150 -finput-charset.
16151
16152 2008-04-18 Ian Lance Taylor <iant@google.com>
16153
16154 * fold-const.c (pointer_may_wrap_p): New static function.
16155 (fold_comparison): Add another test for pointer overflow. Use
16156 pointer_may_wrap_p to disable some false positives.
16157
16158 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
16159
16160 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
16161 (fname_as_string): Match updated cpp_interpret_string prototype.
16162 (fix_string_type): Support char16_t* and char32_t*.
16163 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
16164 derivative) nodes. Register as builtin if C++0x.
16165 (c_parse_error): Support CPP_CHAR{16,32}.
16166 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
16167 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
16168 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
16169 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
16170 CTI_CHAR32_ARRAY_TYPE>: New elements.
16171 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
16172 char32_type_node, signed_char32_type_node, char16_array_type_node,
16173 char32_array_type_node): New defines.
16174 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
16175 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
16176 (lex_string): Support CPP_STRING{16,32}, match updated
16177 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
16178 (lex_charconst): Support CPP_CHAR{16,32}.
16179 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
16180 and CPP_STRING{16,32}.
16181
16182 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
16183
16184 PR bootstrap/35457
16185 * aclocal.m4: Regenerate.
16186 * configure: Regenerate.
16187
16188 2008-04-18 Jan Hubicka <jh@suse.cz>
16189
16190 * except.c (dw2_size_of_call_site_table,
16191 sjlj_size_of_call_site_table): Use vector API for call_site_record.
16192
16193 * cgraphbuild.c (build_cgraph_edges): Update.
16194 * tree-pass.h: Update comment.
16195 * final.c (leaf_function_p): Update.
16196 (leaf_renumber_regs): Update.
16197 (rest_of_clean_state): Update.
16198 * omp-low.c (expand_omp_parallel): Update.
16199 * ipa-reference.c (analyze_function): Update.
16200 * reorg.c (find_end_label): Update.
16201 (optimize_skip): Update.
16202 (fill_simple_delay_slots): Update.
16203 (fill_simple_delay_slots): Update.
16204 (make_return_insns): Update.
16205 (dbr_schedule): Update.
16206 * gimple-low.c (record_vars_into): Update.
16207 * cfgbuild.c (make_edges): Update.
16208 * function.c (assign_stack_local): Update.
16209 (assign_parm_adjust_stack_rtl): Update.
16210 (locate_and_pad_parm): Update.
16211 (allocate_struct_function): Do not initialize stack_alignment_needed
16212 and preferred_stack_boundary here.
16213 (stack_protect_prologue): Update.
16214 (stack_protect_epilogue): Update.
16215 (expand_function_start): Initialize stack_alignment_needed,
16216 preferred_stack_boundary and max_jumptable_ents.
16217 (expand_function_end): Update.
16218 (free_after_compilation): Do not NULLify epilogue_delay_list.
16219 * function.h (struct rtl_data): Add stack_protect_guard,
16220 stack_alignment_needed,
16221 preferred_stack_boundary, epilogue_delay_list.
16222 (struct function): Remove value_histograms, stack_alignment_needed,
16223 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
16224 last_label_uid,
16225 unexpanded_var_list, stack_protect_guard.
16226 (current_function_epilogue_delay_list): Remove.
16227 * ipa-type-escape.c (analyze_function): Update.
16228 * gimplify.c (pop_gimplify_context): Update comment.
16229 * calls.c (expand_call): Update.
16230 (emit_library_call_value_1): Update.
16231 * except.c (set_nothrow_function_flags): Update.
16232 * cfgexpand.c (get_decl_align_unit): Update.
16233 (create_stack_guard): Update.
16234 (estimated_stack_frame_size): Update.
16235 (expand_used_vars): Update.
16236 (tree_expand_cfg): Free histogram earliers, init expansion variables.
16237 * explow.c (allocate_dynamic_stack_space): Update.
16238 * tree-ssa-live.c (remove_unused_locals): Update.
16239 * varasm.c (mark_constant_pool): Update.
16240 * tree-inline.c (remap_decls): Update.
16241 (initialize_cfun): Update.
16242 (declare_return_variable): Update.
16243 (inline_forbidden_p): Update.
16244 (expand_call_inline): Update.
16245 (declare_inline_vars): Update.
16246 (tree_function_versioning): Update.
16247 * tree-flow.h (value_histograms): New.
16248 (VALUE_HISTOGRAMS): New macro.
16249 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
16250 last_label_uid.
16251 * tree-cfg.c (set_bb_for_stmt): Update.
16252 (replace_by_duplicate_decl): Update.
16253 (move_block_to_fn): Update.
16254 (new_label_mapper): Update.
16255 (dump_function_to_file): Update.
16256 * ipa-struct-reorg.c (build_data_structure): Update.
16257 * cfgrtl.c (print_rtl_with_bb): Update.
16258 * reload1.c (reload): Update.
16259 (reload): Update.
16260 * config/i386/i386.c (setup_incoming_varargs_64,
16261 ix86_compute_frame_layout): Update.
16262 * config/arc/arc.c (arc_output_function_epilogue): Update.
16263
16264 2008-04-18 Marius Strobl <marius@FreeBSD.org>
16265
16266 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
16267 for FreeBSD as well.
16268 * gthr-posix95.h: Likewise.
16269
16270 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
16271
16272 PR rtl-optimization/35838
16273 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
16274 out the byte offset of the first subreg.
16275
16276 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
16277
16278 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
16279 to split_ti instead of three separate calls with single member arrays.
16280 (subti3 splitter): Ditto.
16281 (adddi3 splitter): Ditto with split_di.
16282 (subdi3 splitter): Ditto.
16283 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
16284 two separate calls with single member arrays. Swap match_dup
16285 operands 1 and 2 to better fit into the array.
16286 (negdi2 splitter): Ditto with split_di.
16287 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
16288 two separate calls with single member arrays. Swap match_dup operands
16289 6 and 7 to better fit into the array.
16290
16291 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
16292
16293 * config/i386/i386.c (sse_builtin_type): New.
16294 (bdesc_sse_args): Likewise.
16295 (bdesc_sse_3arg): Removed.
16296 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
16297 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
16298 IX86_BUILTIN_ROUNDPS.
16299 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
16300 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
16301 IX86_BUILTIN_ROUNDPS.
16302 (ix86_expand_sse_4_operands_builtin): Removed.
16303 (ix86_expand_sse_operands_builtin): New.
16304 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
16305 and CODE_FOR_sse4_1_roundps.
16306 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
16307 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
16308
16309 2008-04-17 Alan Modra <amodra@bigpond.net.au>
16310
16311 PR target/35907
16312 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
16313 regs before frame pop when needed. If use_backchain_to_restore_sp
16314 then load backchain into a temp reg to restore vr and vrsave. Add
16315 code to restore vr after frame pop if possible.
16316
16317 2008-04-17 Richard Guenther <rguenther@suse.de>
16318
16319 * tree-vn.c (expressions_equal_p): Do not check type
16320 equality or compatibility before calling operand_equal_p.
16321 * fold-const.c (operand_equal_p): Check equivalence of
16322 integer constants before bailing out due to signedness or
16323 precision differences.
16324 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
16325 spurious differences in type qualification. Ignore types
16326 for COMPONENT_REFs at all.
16327
16328 2008-04-17 Christian Bruel <christian.bruel@st.com>
16329
16330 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
16331 msw_skip comparison.
16332
16333 2008-04-16 Jakub Jelinek <jakub@redhat.com>
16334
16335 PR c/35739
16336 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
16337 reg type.
16338
16339 PR tree-optimization/35899
16340 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
16341 rather than TREE_OPERAND.
16342
16343 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
16344
16345 PR target/35944
16346 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
16347 temporary registers. Change operand predicate to general_operand.
16348 (remainderxf3): Ditto.
16349
16350 2008-04-16 Richard Guenther <rguenther@suse.de>
16351
16352 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
16353 * tree-affine.c (aff_combination_expand): Look through some
16354 conversions.
16355
16356 2008-04-15 Doug Kwan <dougkwan@google.com>
16357
16358 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
16359 for hex printing.
16360 * tree-pretty-print.c (dump_generic_node): Ditto.
16361 * final.c (output_addr_const): Ditto.
16362 * dwarf2out.c (output_cfi): Ditto.
16363 * c-pretty-print.c (pp_c_integer_constant): Ditto.
16364 * print-rtl.c (print_rtx): Ditto.
16365 * print-tree.c (print_node_brief, print_node): Ditto.
16366 * c-common.c (match_case_to_enum_1): Ditto.
16367 * sched-vis.c (print_value): Ditto.
16368 * config/i386/i386.c (print_operand): Cast to long unsigned int
16369 for hex printing.
16370
16371 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
16372 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
16373 MS Windows VirtualProtect function.
16374
16375 2008-04-15 Jan Hubicka <jh@suse.cz>
16376
16377 * gengtype.c (write_root): Param_is argument is OK.
16378 * expr.c (expand_expr_real_1): Update call of get_exception_*.
16379 * function.h: Include varray.h
16380 (rtl_eh): New stucture based on except.c one.
16381 (call_site_record): New forward declaration and vector type.
16382 * calls.c (emit_call_1): Do not call
16383 note_current_region_may_contain_throw.
16384 * except.c (eh_status): Remove cur_region, try_region since they are
16385 unused.
16386 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
16387 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
16388 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
16389 Remove call_site_data_used, call_site_data_size.
16390 Turn call_site_record into vector in function.h.
16391 (note_current_region_may_contain_throw): Remove.
16392 (get_exception_pointer, get_exception_filter): Do not take struct
16393 function argument; update.
16394 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
16395 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
16396 build_post_landing_pads, dw2_build_landing_pads,
16397 sjlj_assign_call_site_values, sjlj_mark_call_sites,
16398 sjlj_emit_function_enter, sjlj_emit_function_enter,
16399 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
16400 sjlj_build_landing_pads, finish_eh_generation,
16401 remove_exception_handler_label, remove_eh_handler,
16402 maybe_remove_eh_handler, add_reachable_handler,
16403 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
16404 add_action_record, collect_one_action_chain, add_call_site,
16405 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
16406 sjlj_output_call_site_table, output_function_exception_table,
16407 * except.h (note_current_region_may_contain_throw): Remove
16408 (get_exception_pointer, get_exception_filter): Do not take struct
16409 function argument.
16410 * Makefile.in (GTFILES): Put varargs before struct function.
16411
16412 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
16413
16414 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
16415 punt for STRING_CST.
16416 (get_constraint_for): Deal with STRING_CST here instead.
16417
16418 2008-04-15 Richard Guenther <rguenther@suse.de>
16419
16420 * tree-ssa-propagate.c (substitute_and_fold): Substitute
16421 statements in a basic-block with a backward walk. Do not
16422 substitute into dead statements but instead remove those.
16423
16424 2008-04-15 Richard Guenther <rguenther@suse.de>
16425
16426 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
16427 to zero, thus disable creation of SFTs.
16428
16429 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
16430
16431 * tree-predcom.c (suitable_reference_p): Return false if the
16432 reference can throw.
16433
16434 2008-04-15 Jakub Jelinek <jakub@redhat.com>
16435
16436 PR c/35751
16437 * c-decl.c (finish_decl): If extern or static var has variable
16438 size, set TREE_TYPE (decl) to error_mark_node.
16439
16440 2008-04-15 Rafael Espíndola <espindola@google.com>
16441
16442 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
16443 variable arg1.
16444
16445 2008-04-15 Richard Guenther <rguenther@suse.de>
16446
16447 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
16448 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
16449 (visit_reference_op_load): Do walk vuse-vdef chains on
16450 vn_reference_lookup.
16451 (visit_reference_op_store): But do not here.
16452 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
16453 vn_reference_lookup.
16454 (vn_lookup_with_vuses): But do so here.
16455
16456 2008-04-14 Ian Lance Taylor <iant@google.com>
16457
16458 * fold-const.c (fold_overflow_warning): Remove assertion.
16459
16460 2008-04-15 Ben Elliston <bje@au.ibm.com>
16461
16462 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
16463 temp1 local variables.
16464
16465 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
16466
16467 PR target/35661
16468 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
16469 ".text.unlikely" section as executable.
16470
16471 2008-04-14 James E. Wilson <wilson@tuliptree.org>
16472
16473 * config/ia64/ia64.c (rtx_needs_barrier): Handle
16474 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
16475 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
16476 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
16477 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
16478 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
16479 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
16480
16481 2008-04-14 Ian Lance Taylor <iant@google.com>
16482
16483 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
16484 * fold-const.c (fold_comparison): If appropriate, test
16485 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
16486 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
16487 reassociating a pointer type.
16488 * doc/invoke.texi (Optimize Options): Document that
16489 -fstrict-overflow applies to pointer wraparound.
16490
16491 2008-04-13 Jan Hubicka <jh@suse.cz>
16492
16493 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
16494
16495 2008-04-12 Andrew Pinski <pinskia@gmail.com>
16496
16497 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
16498 we are going to "save the world".
16499
16500 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
16501
16502 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
16503 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
16504 operand 0 constraint, not "=".
16505
16506 2008-04-11 James E. Wilson <wilson@tuliptree.org>
16507
16508 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
16509
16510 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
16511
16512 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
16513 of size of positions_needed * CHAR_BIT.
16514
16515 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
16516
16517 PR middle-end/35897
16518 * dse.c (store_info): Change positions_needed to unsigned
16519 HOST_WIDE_INT.
16520 (lowpart_bitmask): New.
16521 (record_store): Cast to unsigned HOST_WIDE_INT for
16522 positions_needed. Assert width <= size of positions_needed *
16523 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
16524 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
16525 lowpart_bitmask to set mask.
16526
16527 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
16528
16529 * config/bfin/constraints.md: New file.
16530 * config/bfin/bfin.md: Include it.
16531 (adddi3): Use satisfies_constraint functions instead of the old macros.
16532 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
16533 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
16534 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
16535 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
16536 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
16537 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
16538 EXTRA_CONSTRAINT): Delete.
16539 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
16540 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
16541 of the old macros.
16542 * config/bfin/bfin.c: Include "tm-constrs.h".
16543 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
16544 Use satisfies_constraint functions instead of the old macros.
16545 * doc/md.texi (Blackfin Constraints): Update file name reference.
16546
16547 2008-04-11 Richard Guenther <rguenther@suse.de>
16548
16549 PR tree-optimization/35869
16550 * tree-vrp.c (execute_vrp): Move switch statement update after
16551 jump threading. Schedule another cfg cleanup run.
16552
16553 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
16554
16555 PR c/35744
16556 * attribs.c (decl_attributes): Return early on errorneous node.
16557
16558 2008-04-10 Oleg Ryjkov <olegr@google.com>
16559
16560 * tree.h (struct tree_base): Added a new flag default_def_flag.
16561 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
16562
16563 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
16564
16565 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
16566
16567 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16568
16569 PR target/35768
16570 * pa.md: Define mode iterator P. Define mode attribute dwc.
16571 (dcacheflush): Update pattern to use iterator P and attribute dwc.
16572 (icacheflush): Likewise.
16573 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
16574 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
16575
16576 2008-04-11 Ben Elliston <bje@au.ibm.com>
16577
16578 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
16579
16580 2008-04-10 Rafael Espíndola <espindola@google.com>
16581
16582 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
16583 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
16584 (extract_range_from_expr): The same.
16585
16586 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
16587
16588 * config/mips/mips.md (GPR2): New mode iterator.
16589 (seq): Add comment.
16590 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
16591 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
16592 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
16593 Rewrite these to take two modes, the mode of comparison and the
16594 mode of the destination.
16595 * config/mips/mips.c (mips_expand_scc): Instead of having
16596 paradoxical subreg as destination, expand "narrowing" scc if mode
16597 of comparison is SI and target is requested in DI mode.
16598 (mips_emit_int_order_test): Update comment. Make mode of
16599 comparison match CMP0 rather than TARGET. When creating inverse
16600 target use mode of TARGET.
16601
16602 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
16603
16604 * gcov-dump.c (tag_summary): Only print summaries for the first
16605 GCOV_COUNTERS_SUMMABLE counters.
16606
16607 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
16608
16609 * config/i386/i386.md (absneg): New code iterator.
16610 (absnegprefix): New code attribute.
16611 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
16612 patterns using absneg code iterator.
16613 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
16614 using absneg code iterator.
16615 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
16616 *neg<mode>2 patterns using absneg code iterator.
16617 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
16618 *negextendsfdf2 patterns using absneg code iterator.
16619 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
16620 *negextendsfxf2 patterns using absneg code iterator.
16621 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
16622 *negextendsfdf2 patterns using absneg code iterator.
16623 * config/i386/sse.md (<code><mode>2): Macroize expander from
16624 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
16625
16626 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
16627
16628 * config/s390/s390.h: Remove the remains of the recent search
16629 & replace action of current_function_outgoing_args_size.
16630
16631 2008-04-10 Ira Rosen <irar@il.ibm.com>
16632
16633 PR tree-optimization/35821
16634 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
16635 NEW_STMT_LIST is not NULL.
16636
16637 2008-04-09 David Edelsohn <edelsohn@gnu.org>
16638
16639 PR libstdc++/35597
16640 * toplev.c (process_options): Remove -ffunction-sections debugging
16641 warning.
16642
16643 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
16644
16645 PR middle-end/PR28690
16646 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
16647 than gen_rtx_fmt_ee to perform more canonicalizations.
16648
16649 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16650
16651 PR driver/35665
16652 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
16653
16654 2008-04-09 Richard Guenther <rguenther@suse.de>
16655
16656 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
16657 (dump_function_to_file): Dump function arguments with types.
16658
16659 2008-04-08 Richard Guenther <rguenther@suse.de>
16660
16661 * fold-const.c (fold_widened_comparison): Do not allow
16662 sign-changes that change the result.
16663
16664 2008-04-08 Janis Johnson <janis187@us.ibm.com>
16665
16666 PR target/35839
16667 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
16668 kinds of indirect references.
16669
16670 2008-04-08 David Edelsohn <edelsohn@gnu.org>
16671
16672 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
16673 GNU Fortran language string.
16674
16675 2008-04-08 Rafael Espíndola <espindola@google.com>
16676
16677 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
16678 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
16679 * tree.h (tree_call_nonnegative_warnv_p): New.
16680
16681 2008-04-08 Jan Hubicka <jh@suse.cz>
16682
16683 * function.c (free_after_compilation): Clear out regno_reg_rtx
16684 pointer.
16685
16686 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
16687
16688 Revert
16689 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
16690
16691 PR middle-end/PR28690
16692 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
16693 same precedence as REG_POINTER and MEM_POINTER operands.
16694
16695 2008-04-08 Richard Guenther <rguenther@suse.de>
16696
16697 PR middle-end/35834
16698 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
16699 for adding index to base.
16700
16701 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
16702
16703 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
16704 (MINGW_ENABLE_EXECUTE_STACK): New.
16705 (IN_LIBGCC2): For libgcc include windows.h file for
16706 function declarations.
16707
16708 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
16709
16710 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
16711 and tem2 if tem1 is not a REG or MULT.
16712
16713 2008-04-08 Jan Hubicka <jh@suse.cz>
16714
16715 * function.h (incomming_args): Break out of struct function.
16716 (function_subsections): Break out of struct function.
16717 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
16718 return_rtx and hard_reg_initial_vals from struct function.
16719 Kill inl_max_label_num.
16720 (current_function_pops_args, current_function_args_info,
16721 current_function_args_size, current_function_args_size,
16722 current_function_pretend_args_size,
16723 current_function_outgoing_args_size,
16724 current_function_internal_arg_pointer, current_function_return_rtx):
16725 Kill compatibility accestor macros.
16726 * builtins.c (expand_builtin_apply_args_1): Update.
16727 (expand_builtin_next_arg): Update.
16728 * df-scan.c (df_get_call_refs): Update.
16729 * dbxout.c (dbxout_function_end): Update.
16730 * dwarf2out.c (dwarf2out_switch_text_section): Update.
16731 (output_line_info): Update.
16732 (secname_for_decl): Update.
16733 (dwarf2out_var_location): Update.
16734 * function.c (free_after_compilation): Update.
16735 (assign_parm_find_stack_rtl): Update.
16736 (assign_parms): Update.
16737 (expand_dummy_function_end): Update.
16738 (expand_function_end): Update.
16739 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
16740 (expand_call): Update.
16741 (emit_library_call_value_1): Update.
16742 (store_one_arg): Update.
16743 * varasm.c (initialize_cold_section_name): Update.
16744 (unlikely_text_section): Update.
16745 (unlikely_text_section_p): Update.
16746 (assemble_start_function): Update.
16747 (assemble_end_function): Update.
16748 (default_section_type_flags): Update.
16749 (switch_to_section): Update.
16750 * integrate.c (set_decl_abstract_flags): Update.
16751 (get_hard_reg_initial_val): Update.
16752 (has_hard_reg_initial_val): Update.
16753 (allocate_initial_values): Update.
16754 * resource.c (init_resource_info): Update.
16755 * config/alpha/alpha.c (NUM_ARGS): Update.
16756 (direct_return): Update.
16757 (alpha_va_start): Update.
16758 (alpha_sa_size): Update.
16759 (alpha_initial_elimination_offset): Update.
16760 (alpha_expand_prologue): Update.
16761 (alpha_start_function): Update.
16762 (alpha_expand_epilogue): Update.
16763 (unicosmk_initial_elimination_offset):
16764 * config/alpha/alpha.md (call expander): Update.
16765 * config/s390/s390.c (s390_register_info): Update.
16766 (s390_register_info): Update.
16767 (s390_frame_info): Update.
16768 (s390_initial_elimination_offset): Update.
16769 (s390_build_builtin_va_list): Update.
16770 (s390_va_start): Update.
16771 * config/spu/spu.c (direct_return): Update.
16772 (spu_expand_prologue): Update.
16773 (spu_initial_elimination_offset): Update.
16774 (spu_build_builtin_va_list): Update.
16775 (spu_va_start): Update.
16776 * config/sparc/sparc.c (sparc_init_modes): Update.
16777 (sparc_compute_frame_size): Update.
16778 (function_value): Update.
16779 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
16780 * config/i386/i386.md (return expander): Update.
16781 * config/i386/i386.c (ix86_va_start): Update.
16782 (ix86_can_use_return_insn_p): Update.
16783 (ix86_compute_frame_layout): Update.
16784 (ix86_expand_epilogue): Update.
16785 * config/sh/sh.c (output_stack_adjust): Update.
16786 (calc_live_regs): Update.
16787 (sh_expand_prologue): Update.
16788 (sh_builtin_saveregs): Update.
16789 (sh_va_start): Update.
16790 (initial_elimination_offset): Update.
16791 (sh_allocate_initial_value): Update.
16792 (sh_function_ok_for_sibcall): Update.
16793 (sh_get_pr_initial_val): Update.
16794 * config/sh/sh.md (return expander): Update.
16795 * config/avr/avr.c (frame_pointer_required_p): UPdate.
16796 * config/crx/crx.c (crx_compute_frame): UPdate.
16797 (crx_initial_elimination_offset): UPdate.
16798 * config/xtensa/xtensa.c (compute_frame_size): Update
16799 (xtensa_builtin_saveregs): Update.
16800 (xtensa_va_start): Update.
16801 (order_regs_for_local_alloc): Update.
16802 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
16803 (xstormy16_expand_builtin_va_start): Update.
16804 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
16805 * config/m68hc11/m68hc11.md (return expanders): Update.
16806 * config/m68hc11/m68hc11.c (expand_prologue): Update.
16807 (expand_epilogue): Update.
16808 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
16809 (cris_simple_epilogue): Update.
16810 (cris_expand_prologue): Update.
16811 (cris_expand_epilogue): Update.
16812 * config/iq2000/iq2000.c (iq2000_va_start): Update.
16813 (compute_frame_size): Update.
16814 * config/mt/mt.c (mt_compute_frame_size): Update.
16815 * config/mn10300/mn10300.c (expand_prologue): Update.
16816 (expand_epilogue): Update.
16817 (initial_offset): Update.
16818 (mn10300_builtin_saveregs):
16819 * config/mn10300/mn10300.md (return expander): Update.
16820 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
16821 (ia64_initial_elimination_offset): Update.
16822 (ia64_initial_elimination_offset): Update.
16823 (ia64_expand_prologue): Update.
16824 * config/m68k/m68k.md (return expander): Update.
16825 * config/rs6000/rs6000.c (rs6000_va_start): Update.
16826 (rs6000_stack_info): Update.
16827 * config/mcore/mcore.c (layout_mcore_frame): Update.
16828 (mcore_expand_prolog): Update.
16829 * config/arc/arc.c (arc_compute_frame_size): Update.
16830 * config/score/score3.c (score3_compute_frame_size): Update.
16831 * config/score/score7.c (score7_compute_frame_size): Update.
16832 * config/arm/arm.c (use_return_insn): Update.
16833 (thumb_find_work_register): Update.
16834 (arm_compute_save_reg_mask): Update.
16835 (arm_output_function_prologue): Update.
16836 (arm_output_epilogue): Update.
16837 (arm_size_return_regs): Update.
16838 (arm_get_frame_offsets): Update.
16839 (arm_expand_prologue): Update.
16840 (thumb_exit): Update.
16841 (thumb_unexpanded_epilogue): Update.
16842 (thumb1_output_function_prologue): Update.
16843 * config/pa/pa.md (return expander): Update.
16844 * config/pa/pa.c (compute_frame_size): Update.
16845 (hppa_builtin_saveregs): Update.
16846 * config/mips/mips.c (mips_va_start): Update.
16847 (mips16_build_function_stub): Update.
16848 (mips_compute_frame_info): Update.
16849 (mips_restore_gp): Update.
16850 (mips_output_function_prologue): Update.
16851 (mips_expand_prologue): Update.
16852 * config/v850/v850.c (compute_frame_size): Update.
16853 (expand_prologue): * config/mmix/mmix.c (along): update.
16854 (mmix_initial_elimination_offset): update.
16855 (mmix_reorg): update.
16856 (mmix_use_simple_return): update.
16857 (mmix_expand_prologue): update.
16858 (mmix_expand_epilogue): Update.
16859 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
16860 (emit_link_insn): Update.
16861
16862 2008-04-08 Anatoly Sokolov <aesok@post.ru>
16863
16864 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
16865 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
16866 instructions.
16867 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
16868 atmega103 device.
16869
16870 2008-04-07 Jan Hubicka <jh@suse.cz>
16871
16872 * function.h (rtl): Rename to x_rtl.
16873 (crtl): New define.
16874 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
16875 frame_offset, stack_check_probe_note, arg_pointer_save_area,
16876 used_temp_slots avail_temp_slots, temp_slot_level,
16877 nonlocal_goto_handler_labels): Update accesstors.
16878 (rtl): New global variable.
16879 (struct function): Move some fileds to rtl_data.
16880 (get_arg_pointer_save_area): Update prototype.
16881 * builtins.c (expand_builtin_setjmp_receiver): Update call of
16882 get_arg_pointer_save_area.
16883 * expr.c (init_expr): Update
16884 * function.c (get_frame_size): Update
16885 (assign_stack_local): Update
16886 (expand_function_end): Update.
16887 (get_art_pointer_save_area): Update
16888 * function.h
16889 * emit-rtl.c (rtl): Declare.
16890 (regno_reg_rtx): Declare.
16891 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
16892 Update.
16893 (gen_reg_rtx): Update.
16894 * varasm.c (n_deferred_constatns): Update accestor.
16895 (init_varasm_status): Do not allocate varasm_status.
16896 (force_const_mem, get_pool_size, output_constant_pool): Update.
16897 * stmt.c (force_label_rtx): Do not use x_ prefixes.
16898 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
16899 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
16900 * sparc/sparc.h (INIT_EXPANDERS): Update.
16901 * ia64/ia64.h (INIT_EXPANDERS): Update.
16902
16903 2008-04-07 James E. Wilson <wilson@tuliptree.org>
16904
16905 * reload.c (push_secondary_reload): Add missing break to for loop.
16906
16907 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
16908
16909 PR middle-end/PR28690
16910 * rtlanal.c: Update copyright years.
16911 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
16912 as REG_POINTER and MEM_POINTER operands.
16913 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
16914 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
16915 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
16916 * gcse.c: Update copyright years.
16917 (pre_delete): Call gen_reg_rtx_and_attrs.
16918 (hoist_code): Likewise.
16919 (build_store_vectors): Likewise.
16920 (delete_store): Likewise.
16921 * loop-invariant.c (move_invariant_reg): Likewise.
16922 Update copyright years.
16923
16924 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
16925
16926 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
16927 control string instead of quoted.
16928
16929 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
16930
16931 * doc/rtl.texi: Rewrite of subreg section.
16932
16933 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
16934
16935 PR/35842
16936 * config/i386/i386.c (legitimize_pic_address): Add treating
16937 of dllimport SYM_REF's.
16938 (legitimize_dllimport_symbol): Add prototype.
16939
16940 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
16941
16942 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
16943 reference in constructor with non self-referential type.
16944
16945 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
16946
16947 Removal of Return with Depressed Stack Pointer support
16948 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
16949 (ECF_SP_DEPRESSED): Likewise.
16950 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
16951 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
16952 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
16953 (expand_call): Do not test ECF_SP_DEPRESSED.
16954 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
16955 * function.c (keep_stack_depressed): Delete.
16956 (handle_epilogue_set): Likewise.
16957 (update_epilogue_consts): Likewise.
16958 (emit_equiv_load): Likewise.
16959 (thread_prologue_and_epilogue_insns): Remove support for Return with
16960 Depressed Stack Pointer.
16961 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
16962
16963 2008-04-06 Richard Guenther <rguenther@suse.de>
16964
16965 PR tree-optimization/35400
16966 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
16967 information from SSA_NAMEs.
16968
16969 2008-04-06 Anatoly Sokolov <aesok@post.ru>
16970
16971 * config/avr/avr.h (avr_mega_p): Remove declaration.
16972 (AVR_MEGA): Remove macro.
16973 * config/avr/avr.c (avr_mega_p): Remove variable.
16974 (avr_override_options): Remove inicializion of avr_mega_p.
16975 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
16976 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
16977 (avr_jump_mode): (Ditto.).
16978 (avr_output_progmem_section_asm_op): (Ditto.).
16979 (avr_asm_init_sections): (Ditto.).
16980 (avr_asm_init_sections): (Ditto.).
16981 (avr_rtx_costs): (Ditto.).
16982 * config/avr/avr.md: (Ditto.).
16983 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
16984 '__AVR_MEGA__'.
16985
16986 2008-04-06 Richard Guenther <rguenther@suse.de>
16987
16988 PR tree-optimization/35842
16989 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
16990 is_gimple_invariant_address.
16991
16992 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16993
16994 * gcc.c (default_compilers): Sync Fortran extensions list with
16995 that in fortran/lang-specs.h.
16996 * doc/invoke.texi: Likewise.
16997 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
16998 * dwarf2out.c (gen_compile_unit_die): Likewise.
16999
17000 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
17001
17002 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
17003
17004 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
17005
17006 PR target/12329
17007 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
17008 attribute is used for nested functions.
17009
17010 2008-04-05 Jan Hubicka <jh@suse.cz>
17011
17012 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
17013
17014 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
17015 letter argument.
17016 (dump_files): Update.
17017 (enable_rtl_dump_file): Do not accept letter argument.
17018 * tree-pass.h (dump_file_info): Remove letter argument.
17019 * toplev.c (decode_d_option): Update -da handling.
17020 * toplev.h (enable_rtl_dump_file): Update prototype.
17021 * passes.c (register_one_dump_file): Do not accept IPA argument; work
17022 it out based on pass type.
17023 (register_dump_files_1): Likewise.
17024 (init_optimization_passes): Update register_one_dump_file calls.
17025 (execute_one_pass): Sanity check that IPA passes are called at IPA
17026 level and RTL passes at RTL level.
17027 (execute_pass_list): IPA pass can not be after or subpass of
17028 GIMPLE/RTL pass.
17029 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
17030 disallov RTL subpasses of IPA subpasses.
17031
17032 2008-04-05 Ben Elliston <bje@au.ibm.com>
17033
17034 * tree-cfg.c (need_fake_edge_p): Return false for calls to
17035 builtins that return exactly once and do not throw. Cache call to
17036 call_expr_flags.
17037
17038 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
17039
17040 PR rtl-optimization/34916
17041 PR middle-end/35519
17042 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
17043 between instruction pairs.
17044
17045 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
17046
17047 * doc/invoke.texi: Document -mbitops for SH.
17048 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
17049 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
17050 * config/sh/sh.c (print_operand): Add %t operand code.
17051 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
17052 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
17053 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
17054 (extendqihi2): Likewise.
17055 (movqi_i): Likewise.
17056 (insv): Use bset, bclr and bst instructions for SH2A if possible.
17057 (extv): Use bld instruction for SH2A if possible.
17058 (extzv): Likewise.
17059 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
17060 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
17061 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
17062 (bset.b, bclr.b): Define peepholes.
17063 * config/sh/sh.opt (mbitops): New option.
17064
17065 2008-04-04 Janis Johnson <janis187@us.ibm.com>
17066
17067 PR target/35620
17068 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
17069 and view convert expression.
17070
17071 2008-04-04 Jakub Jelinek <jakub@redhat.com>
17072
17073 PR target/35364
17074 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
17075
17076 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
17077
17078 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
17079
17080 * config/i386/cpuid.h (bit_AES): New.
17081 (bit_PCLMUL): Likewise.
17082
17083 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
17084 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
17085 SSE2 if AES or PCLMUL is enabled.
17086 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
17087 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
17088 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
17089 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
17090 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
17091 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
17092 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
17093 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
17094 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
17095 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
17096 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
17097 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
17098 __builtin_ia32_aeskeygenassist128 and
17099 __builtin_ia32_pclmulqdq128.
17100 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
17101 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
17102 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
17103
17104 * config/i386/i386.h (TARGET_AES): New.
17105 (TARGET_PCLMUL): Likewise.
17106 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
17107
17108 * config/i386/i386.md (UNSPEC_AESENC): New.
17109 (UNSPEC_AESENCLAST): Likewise.
17110 (UNSPEC_AESDEC): Likewise.
17111 (UNSPEC_AESDECLAST): Likewise.
17112 (UNSPEC_AESIMC): Likewise.
17113 (UNSPEC_AESKEYGENASSIST): Likewise.
17114 (UNSPEC_PCLMUL): Likewise.
17115
17116 * config/i386/i386.opt (maes): New.
17117 (mpclmul): Likewise.
17118
17119 * config/i386/sse.md (aesenc): New pattern.
17120 (aesenclast): Likewise.
17121 (aesdec): Likewise.
17122 (aesdeclast): Likewise.
17123 (aesimc): Likewise.
17124 (aeskeygenassist): Likewise.
17125 (pclmulqdq): Likewise.
17126
17127 * config/i386/wmmintrin.h: New.
17128
17129 * doc/extend.texi: Document AES and PCLMUL built-in function.
17130
17131 * doc/invoke.texi: Document -maes and -mpclmul.
17132
17133 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
17134
17135 * function.c (free_after_parsing): Replace with
17136 cxx_push_function_context from C++ front-end.
17137 (allocate_struct_function): Don't call langhook.
17138 * langhooks.h (struct lang_hooks_for_functions): Delete.
17139 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
17140 member "function".
17141 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
17142 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
17143 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
17144 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
17145 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
17146 remove LANG_HOOKS_FUNCTION_INITIALIZER.
17147 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
17148
17149 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
17150 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
17151
17152 2008-04-04 Jakub Jelinek <jakub@redhat.com>
17153
17154 PR c/35440
17155 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
17156 for all types.
17157
17158 2008-04-04 Richard Guenther <rguenther@suse.de>
17159
17160 PR middle-end/35823
17161 * fold-const.c (optimize_minmax_comparison): Use the correct
17162 type for the constant in the simplified comparison.
17163
17164 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
17165
17166 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
17167 Pass L2 size as "--param l2-cache-size" to the compiler.
17168 (decode_l2_cache): New function to decode L2 cache parameters using
17169 0x8000006 extended cpuid function.
17170 (detect_caches_amd): Determine parameters of L2 cache using
17171 decode_l2_caches function.
17172 (decode_caches_intel): Decode L2 cache parameters.
17173 (detect_caches_intel): Determine L2 cache parameters using
17174 decode_caches_intel and decode_l2_caches functions.
17175
17176 2008-04-03 Bob Wilson <bob.wilson@acm.org>
17177
17178 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
17179 secondary input reload for subword loads from the constant pool.
17180
17181 2008-04-03 Janis Johnson <janis187@us.ibm.com>
17182
17183 PR target/35713
17184 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
17185 constants of the appropriate size for runtime calculations.
17186
17187 PR c/35712
17188 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
17189 decimal-float literal constant zero.
17190
17191 2008-04-03 Jakub Jelinek <jakub@redhat.com>
17192
17193 PR c/35738
17194 * c-parser.c (c_parser_omp_atomic): Call
17195 default_function_array_conversion on the RHS.
17196
17197 PR middle-end/35818
17198 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
17199 call is_variable_sized if decl has incomplete type.
17200
17201 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
17202
17203 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
17204
17205 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
17206
17207 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
17208 iterators.
17209 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
17210 (sgt<u>): Merge sgt and sgtu into new expander.
17211 (sgt, sgtu): Remove expanders.
17212 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
17213 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
17214 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
17215 *sgtu_<mode>_mips16 into new pattern.
17216 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
17217 (sge<u>): Merge sge and sgeu into new expander.
17218 (sge, sgeu): Remove expanders.
17219 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
17220 new pattern.
17221 (*sge_<mode>, second *sge_<mode>): Remove patterns.
17222 (slt<u>): Merge slt and sltu into new expander.
17223 (slt, sltu): Remove expanders.
17224 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
17225 (*slt_<mode>, *sltu_<mode>): Remove patterns.
17226 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
17227 *sltu_<mode>_mips16 into new pattern.
17228 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
17229 (sle<u>): Merge sle and sleu into new expander.
17230 (sle, sleu): Remove expanders.
17231 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
17232 (*sle_<mode>, *sleu_<mode>): Remove patterns.
17233 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
17234 *sleu_<mode>_mips16 into new pattern.
17235 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
17236
17237 2008-04-03 Jan Hubicka <jh@suse.cz>
17238
17239 PR tree-optimization/35795
17240 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
17241 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17242 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17243 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
17244 * score/score3.c (score3_output_mi_thunk): Likewise.
17245 * score/score7.c (score7_output_mi_thunk): Likewise.
17246 * mips/mips.c (mips_output_mi_thunk): Likewise.
17247
17248 2008-04-03 Richard Guenther <rguenther@suse.de>
17249
17250 * tree-vrp.c (extract_range_from_unary_expr): Handle all
17251 conversions. Simplify code.
17252
17253 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
17254
17255 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
17256
17257 2008-04-03 Tom Tromey <tromey@redhat.com>
17258 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17259
17260 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
17261 * config/bfin/t-bfin-linux (generated_files): Add
17262 linux-sysroot-suffix.h.
17263 * doc/install.texi (Prerequisites): Require make 3.80.
17264 * doc/sourcebuild.texi (Front End Directory): Document new
17265 variable.
17266 * Makefile.in (generated_files): New variable.
17267 (ALL_HOST_OBJS): New variable.
17268 ($(ALL_HOST_OBJS)): New target.
17269
17270 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
17271
17272 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
17273 (remap_block): Call id->transform_lang_insert_block instead
17274 of langhook.
17275 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
17276 Set id.transform_lang_insert_block to NULL.
17277 (clone_body): Move to cp/optimize.c
17278 * tree-inline.h (struct copy_body_data): Change
17279 transform_lang_insert_block to function pointer.
17280 (copy_generic_body, copy_decl_no_change): Export.
17281 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
17282 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
17283 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
17284
17285 * c-tree.h (insert_block): Kill.
17286 * c-decl.c (insert_block): Kill.
17287
17288 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
17289
17290 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
17291 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
17292 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
17293 argument.
17294 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
17295 argument, call {push,pop}_function_context from here.
17296 * c-parser.c: Use c_{push,pop}_function_context.
17297
17298 * function.c (push_function_context_to): Move meat ...
17299 (push_function_context): ... here. Simplify.
17300 * function.c (pop_function_context_from): Move meat ...
17301 (pop_function_context): ... here. Simplify.
17302 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
17303 leave_nested).
17304 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
17305 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
17306 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
17307 * tree.h (push_function_context_to, pop_function_context_from): Remove.
17308
17309 2008-04-03 Ben Elliston <bje@au.ibm.com>
17310
17311 * expmed.c (extract_force_align_mem_bit_field): Remove.
17312
17313 2008-04-03 Richard Guenther <rguenther@suse.de>
17314
17315 PR middle-end/35800
17316 * expr.h (try_casesi): Adjust prototype.
17317 * expr.c (try_casesi): Take fallback label as extra parameter.
17318 Use that for gen_casesi if default_label is NULL.
17319 * stmt.c (expand_case): Pass fallback label to try_casesi,
17320 make sure to fill gaps with a fallback label if default_label
17321 is not present.
17322
17323 2008-04-03 Dominique d'Humières <dominiq@lps.ens.fr>
17324
17325 PR target/35801
17326 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
17327
17328 2008-04-03 Ben Elliston <bje@au.ibm.com>
17329
17330 * expmed.c (extract_split_bit_field): Remove if (0) code.
17331 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
17332 (do_ds_constraint): Likewise.
17333
17334 2008-04-02 Joseph Myers <joseph@codesourcery.com>
17335
17336 * doc/cppopts.texi (-dU): Document.
17337 * c-common.h (flag_dump_macros): Update comment.
17338 * c-opts.c (handle_OPT_d): Handle -dU.
17339 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
17340 dump_queued_macros, cb_used_define, cb_used_undef): New.
17341 (init_pp_output): Handle -dU.
17342 (cb_line_change): Call dump_queued_macros.
17343 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
17344
17345 2008-04-02 Anatoly Sokolov <aesok@post.ru>
17346
17347 * config/avr/predicates.md (io_address_operand): New predicate.
17348 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
17349 * config/avr/avr.c (avr_io_address_p): Remove function.
17350 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
17351 'avr_io_address_p' function.
17352 (out_movhi_r_mr): (Ditto.).
17353 (out_movqi_mr_r): (Ditto.).
17354 (out_movhi_mr_r): (Ditto.).
17355 (avr_address_cost): (Ditto.).
17356
17357 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
17358
17359 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
17360 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
17361 in 32bit mode when XMM registers are available to avoid store
17362 forwarding stalls.
17363 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
17364 corresponding post-reload splitters.
17365
17366 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
17367
17368 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
17369 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
17370 __builtin_ia32_roundss.
17371 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
17372 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
17373 __builtin_ia32_roundss.
17374 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
17375 IX86_BUILTIN_SHUFPD here.
17376
17377 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
17378
17379 * config/i386/i386.md (plogic): New.
17380 (plogicprefix): Likewise.
17381
17382 * config/i386/mmx.md (mmx_<code><mode>3): New.
17383 (mmx_and<mode>3): Removed.
17384 (mmx_ior<mode>3): Likewise.
17385 (mmx_xor<mode>3): Likewise.
17386
17387 * config/i386/sse.md (<code><mode>3): New.
17388 (*<code><mode>3): Likewise.
17389 (*<code><mode>3): Likewise.
17390 (<code><mode>3): Likewise.
17391 (*sse_<code><mode>3): Likewise.
17392 (*sse2_<code><mode>3): Likewise.
17393 (<code>tf3): Likewise.
17394 (*<code>tf3): Likewise.
17395 (and<mode>3): Likewise.
17396 (*and<mode>3): Likewise.
17397 (ior<mode>3): Removed.
17398 (*ior<mode>3): Likewise.
17399 (xor<mode>3): Likewise.
17400 (*xor<mode>3): Likewise.
17401 (*and<mode>3): Likewise.
17402 (*ior<mode>3): Likewise.
17403 (*xor<mode>3): Likewise.
17404 (and<mode>3): Likewise.
17405 (*sse_and<mode>3): Likewise.
17406 (*sse2_and<mode>3): Likewise.
17407 (andtf3): Likewise.
17408 (*andtf3): Likewise.
17409 (ior<mode>3): Likewise.
17410 (*sse_ior<mode>3): Likewise.
17411 (*sse2_ior<mode>3): Likewise.
17412 (iortf3): Likewise.
17413 (*iortf3): Likewise.
17414 (xor<mode>3): Likewise.
17415 (*sse_xor<mode>3): Likewise.
17416 (*sse2_xor<mode>3): Likewise.
17417 (xortf3): Likewise.
17418 (*xortf3): Likewise.
17419
17420 2008-04-02 Richard Guenther <rguenther@suse.de>
17421
17422 PR tree-optimization/14495
17423 PR tree-optimization/34793
17424 * tree-vrp.c (struct switch_update): New structure.
17425 (to_remove_edges, to_update_switch_stmts): New VECs.
17426 (simplify_switch_using_ranges): New function. Remove not taken
17427 case labels and edges.
17428 (simplify_stmt_using_ranges): Call it.
17429 (identify_jump_threads): Mark edges we have queued for removal
17430 so we don't thread them.
17431 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
17432 case label vector.
17433 * tree-cfg.c (group_case_labels): Deal with missing default label.
17434 (tree_verify_flow_info): Allow missing default label.
17435 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
17436 (emit_case_nodes): Likewise.
17437 (expand_case): Do not rely on the default label to be present.
17438 * expr.c (try_casesi): Deal with NULL default_label.
17439 (do_tablejump): Likewise.
17440
17441 2008-04-02 Richard Guenther <rguenther@suse.de>
17442
17443 PR tree-optimization/14495
17444 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
17445 SWITCH_EXPR here ...
17446 (vrp_visit_switch_stmt): ... but here (new function).
17447 (find_case_label_index): New helper function.
17448 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
17449
17450 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
17451
17452 * fwprop.c: Fix ISO-C99ism.
17453
17454 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
17455
17456 PR bootstrap/35752
17457 * Makefile.in (objdir): Set it here.
17458 * configure.ac: Not here. Find dynamic linker characteristics.
17459 * exec-tool.in: Use them.
17460 * aclocal.m4: Regenerate.
17461 * configure: Regenerate.
17462
17463 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
17464
17465 * expr.c (expand_var): Delete it.
17466 * expr.h (expand_var): Delete prototype.
17467 * function.c (expand_function_start): Use expand_decl instead.
17468 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
17469 langhook.
17470
17471 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
17472
17473 PR rtl-optimization/35542
17474 * fwprop.c (forward_propagate_and_simplify): Replace
17475 loc_reg_mentioned_in_p with reg_mentioned_p.
17476
17477 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
17478
17479 PR rtl-optimization/35281
17480 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
17481 (propagate_rtx_1): Handle PR_HANDLE_MEM.
17482 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
17483 (varying_mem_p): Move above propagate_rtx.
17484 (all_uses_available_at): Do not check MEMs.
17485
17486 2008-04-02 Rafael Espíndola <espindola@google.com>
17487
17488 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
17489 (register_edge_assert_for_2): Split the cond argument.
17490 (register_edge_assert_for_1): Adjust for the change in
17491 register_edge_assert_for_2.
17492 (register_edge_assert_for): Split the cond argument.
17493 (find_switch_asserts): Adjust for the change in
17494 register_edge_assert_for.
17495
17496 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
17497
17498 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
17499 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
17500 offsets for 64-bit mingw.
17501 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
17502 abi for x86_64-pc-mingw.
17503
17504 2008-04-02 Richard Guenther <rguenther@suse.de>
17505
17506 * tree-vrp.c (extract_range_from_assert): Make sure to not
17507 produce range min/max with TREE_OVERFOW set.
17508 If merging a anti-range and a range keep the anti-range if
17509 the range covers all values of the type.
17510 (register_edge_assert_for_2): Only allow sign-changing
17511 conversions in detecting canonical range checks. Also
17512 register an assert for the unsigned name if useful.
17513
17514 PR tree-optimization/35787
17515 * tree-vrp.c (vrp_val_max): New function.
17516 (vrp_val_min): Likewise.
17517 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
17518 (vrp_val_is_min): Likewise.
17519 (supports_overflow_infinity): Use vrp_val_{min,max}.
17520 (negative_overflow_infinity): Likewise.
17521 (positive_overflow_infinity): Likewise.
17522 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
17523 (is_positive_overflow_infinity): Likewise.
17524 (is_overflow_infinity): Likewise.
17525 (avoid_overflow_infinity): Use vrp_val_{min,max} and
17526 vrp_val_is_{min,max}.
17527 (set_and_canonicalize_value_range): Canonicalize anti-ranges
17528 to ranges if possible. Avoid empty ranges.
17529
17530 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17531
17532 PR middle-end/35705
17533 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
17534 the expression is a function address.
17535
17536 2008-04-01 George Helffrich <george@gcc.gnu.org>
17537
17538 PR fortran/35154, fortran/23057
17539 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
17540 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
17541 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
17542 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
17543 in common.
17544 (dbxout_syms): Check for COMMON-based symbol and wrap in
17545 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
17546 in bracket for efficiency.
17547
17548 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
17549 using DW_TAG_common_block + member offset.
17550 (add_pubname_string): New function.
17551 (dw_expand_expr): New function to find block name and offset for
17552 COMMON var.
17553 (common_check): New function to check whether symbol in Fortran COMMON.
17554 (gen_variable_die): If COMMON, use DW_TAG_common_block.
17555
17556 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
17557
17558 PR c/35436
17559 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
17560
17561 2008-04-02 Ben Elliston <bje@au.ibm.com>
17562
17563 * config/v850/v850.md (casesi): Remove if (0) code.
17564 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
17565 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
17566
17567 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
17568
17569 * config/i386/i386.md (rex64suffix): New mode attribute.
17570 (floathi<mode>2): Disable expander for SSE math.
17571 (*floathi<mode>2_1): New insn insn_and_split pattern.
17572 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
17573 corresponding post-reload splitters.
17574 (*floathi<mode>2_i387): New macroized insn pattern.
17575 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
17576 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
17577 insn_and_split pattern.
17578 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
17579 New macroized instruction patterns and corresponding post-reload
17580 splitters.
17581 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
17582 and corresponding post-reload splitters.
17583 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
17584 New macroized instruction patterns.
17585 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
17586 macroized instruction patterns and corresponding post-reload splitters.
17587 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
17588 corresponding post-reload splitters.
17589 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
17590 New macroized instruction patterns.
17591 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
17592 corresponding post-reload splitters.
17593 (*floatsi<mode>2_i387): New macroized instruction patterns.
17594
17595 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
17596
17597 * config/i386/i386.md (smaxmin): New.
17598 (umaxmin): Likewise.
17599 (maxminiprefix): Likewise.
17600 (maxminfprefix): Likewise.
17601 (<code><mode>3): Likewise.
17602 (smin<mode>3): Removed.
17603 (smax<mode>3): Likewise.
17604
17605 * config/i386/mmx.md (mmx_<code>v2sf3): New.
17606 (mmx_<code>v4hi3): Likewise.
17607 (mmx_<code>v8qi3): Likewise.
17608 (mmx_smaxv2sf3): Removed.
17609 (mmx_sminv2sf3): Likewise.
17610 (mmx_umaxv8qi3): Likewise.
17611 (mmx_smaxv4hi3): Likewise.
17612 (mmx_uminv8qi3): Likewise.
17613 (mmx_sminv4hi3): Likewise.
17614
17615 * config/i386/sse.md (<addsub><mode>3): New.
17616 (*<addsub><mode>3): Likewise.
17617 (<sse>_vm<addsub><mode>3): Likewise.
17618 (<maxmin><mode>3): Likewise.
17619 (*<maxmin><mode>3_finite): Likewise.
17620 (*<maxmin><mode>3): Likewise.
17621 (<sse>_vm<maxmin><mode>3): Likewise.
17622 (sse3_h<addsub>v4sf3): Likewise.
17623 (sse3_h<addsub>v2df3): Likewise.
17624 (<maxmin>v16qi3): Likewise.
17625 (*<maxmin>v16qi3): Likewise.
17626 (<maxmin>v8hi3): Likewise.
17627 (*<maxmin>v8hi3): Likewise.
17628 (*sse4_1_<maxmin><mode>3): Likewise.
17629 (*sse4_1_<maxmin><mode>3): Likewise.
17630 (add<mode>3): Removed.
17631 (*add<mode>3): Likewise.
17632 (<sse>_vmadd<mode>3): Likewise.
17633 (sub<mode>3): Likewise.
17634 (*sub<mode>3): Likewise.
17635 (<sse>_vmsub<mode>3): Likewise.
17636 (smin<mode>3): Likewise.
17637 (*smin<mode>3_finite): Likewise.
17638 (*smin<mode>3): Likewise.
17639 (<sse>_vmsmin<mode>3): Likewise.
17640 (smax<mode>3): Likewise.
17641 (*smax<mode>3_finite): Likewise.
17642 (*smax<mode>3): Likewise.
17643 (<sse>_vmsmax<mode>3): Likewise.
17644 (sse3_haddv4sf3): Likewise.
17645 (sse3_haddv2df3): Likewise.
17646 (sse3_hsubv4sf3): Likewise.
17647 (sse3_hsubv2df3): Likewise.
17648 (umaxv16qi3): Likewise.
17649 (*umaxv16qi3): Likewise.
17650 (smaxv8hi3): Likewise.
17651 (*smaxv8hi3): Likewise.
17652 (*sse4_1_smax<mode>3): Likewise.
17653 (*sse4_1_umax<mode>3): Likewise.
17654 (uminv16qi3): Likewise.
17655 (*uminv16qi3): Likewise.
17656 (sminv8hi3): Likewise.
17657 (*sminv8hi3): Likewise.
17658 (*sse4_1_smin<mode>3): Likewise.
17659 (*sse4_1_umin<mode>3): Likewise.
17660
17661 2008-04-01 Rafael Espíndola <espindola@google.com>
17662
17663 * tree-cfg.c (verify_expr): remove in_phi.
17664 (verify_stmt): Don't call walk_tree with verify_expr. Use
17665 is_gimple_min_invariant instead of is_gimple_val.
17666
17667 2008-04-01 Joseph Myers <joseph@codesourcery.com>
17668
17669 * doc/include/gpl_v3.texi: Update for manpage generation.
17670 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
17671 gpl.texi.
17672 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
17673 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
17674 gpl_v3.texi instead of gpl.texi.
17675 (gpl.pod): New.
17676
17677 2008-04-01 Jakub Jelinek <jakub@redhat.com>
17678
17679 PR pch/13675
17680 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
17681
17682 2008-04-01 Rafael Espíndola <espindola@google.com>
17683
17684 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
17685 (extract_code_and_val_from_cond): Use
17686 extract_code_and_val_from_cond_with_ops.
17687
17688 2008-04-01 Jan Hubicka <jh@suse.cz>
17689
17690 * function.c (free_after_compilation): Free epilogue_delay_list.
17691 (prepare_function_start): Assert that previous compilation was freed.
17692
17693 2008-04-01 Jan Hubicka <jh@suse.cz>
17694 Jim Wilson <wilson@tuliptree.org>
17695 Andreas Tobler <andreast@gcc.gnu.org>
17696
17697 PR middle-end/35781
17698 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
17699 rtl.emit instead cfun->emit.
17700 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
17701 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
17702
17703 2008-04-01 Ben Elliston <bje@au.ibm.com>
17704
17705 * doc/c-tree.texi (Function Basics): Fix grammatical error.
17706
17707 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
17708
17709 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
17710 New options
17711 (fprofile-use): Add var flag_profile_use
17712 * coverage.c (coverage_begin_output): Do not open a gcno file for
17713 output only if -ftest-coverage is set.
17714 Do not add getpwd() to gcda file path.
17715 (build_gcov_info): Check the new flag
17716 flag_profile_datafile_relative_path.
17717 (coverage_init): Use profile_data_prefix.
17718 Read profile counter only if flag_profile_use is set.
17719 * opts.c (common_handle_option): New option fprofile-use=,
17720 fprofile-dir=, fprofile-generate=.
17721 * toplev.c (profile_data_prefix): New variable definition.
17722 * toplev.h (profile_data_prefix): New declaration.
17723 * doc/invoke.tex (Option Summary, Optimization Options):
17724 Add new options.
17725
17726 2008-03-31 James E. Wilson <wilson@tuliptree.org>
17727
17728 * varasm.c (output_constant_pool_1): In LABEL_REF check,
17729 use tmp consistently.
17730
17731 PR target/35695
17732 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
17733 * config/ia64/ia64.c (rtx_needs_barrier): Handle
17734 UNSPEC_FR_RECIP_APPROX_RES.
17735 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
17736
17737 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
17738
17739 PR c/35750
17740 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
17741
17742 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
17743
17744 PR middle-end/30186
17745 * fold-const.c (fold_indirect_ref_1): Support accessing non first
17746 element of the vector via a pointer.
17747
17748 2008-03-31 Ian Lance Taylor <iant@google.com>
17749
17750 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
17751
17752 2008-03-31 Jan Hubicka <jh@suse.cz>
17753
17754 * builtins.c (expand_builtin_setjmp_receiver): Update call of
17755 get_arg_pointer_save_area.
17756 * expr.c (init_expr): Just clear out rtl.expr.
17757 * function.c (free_after_compilation): Clear out whole RTL structure.
17758 (get_func_frame_size): Merge into ...
17759 (get_frame_size): ... this one.
17760 (assign_stack_local_1): Merge into ...
17761 (assign_stack_local): ... this one.
17762 (expand_function_end): Update call of get_arg_pointer_save_area.
17763 (get_art_pointer_save_area): Remove cfun argument.
17764 * function.h (emit_status): regno_pointer_align does not need length
17765 attribute. Move x_regno_reg_rtx to ...
17766 (regno_reg_rtx): ... new global array.
17767 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
17768 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
17769 apply_args_value, forced_labels, stack_pointer_delta):
17770 Update accestors.
17771 (struct varasm_status): Move here from varasm.c
17772 (struct rtl_data): New. Move here some fields from struct function.
17773 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
17774 frame_offset, stack_check_probe_note, arg_pointer_save_area,
17775 used_temp_slots avail_temp_slots, temp_slot_level,
17776 nonlocal_goto_handler_labels): Update accesstors.
17777 (rtl): New global variable.
17778 (struct function): Move some fileds to rtl_data.
17779 (get_arg_pointer_save_area): Update prototype.
17780 * emit-rtl.c (rtl): Declare.
17781 (regno_reg_rtx): Declare.
17782 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
17783 Update.
17784 (gen_reg_rtx): Update.
17785 (init_virtual_regs): Do not tate emit_status argument.
17786 (init_emit): Do not allocate emit.
17787 * varasm.c (varasm_statuc): Move to function.h.
17788 (n_deferred_constatns): Update accestor.
17789 (init_varasm_status): Do not allocate varasm_status.
17790 (force_const_mem, get_pool_size, output_constant_pool): Update.
17791 * stmt.c (force_label_rtx): Do not use x_ prefixes.
17792 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
17793
17794 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
17795
17796 PR rtl-optimization/35729
17797 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
17798 references.
17799
17800 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
17801
17802 PR target/32000
17803 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
17804 load/store if memory is unaligned.
17805 (*movti_rex64): Likewise.
17806
17807 * config/i386/predicates.md (misaligned_operand): New.
17808
17809 2008-03-31 Andrew Pinski <pinskia@gmail.com>
17810
17811 PR tree-opt/35431
17812 * tree-ssa-phiopt.c (conditional_replacement): Return early for
17813 complex types.
17814
17815 2008-03-31 Jan Beulich <jbeulich@novell.com>
17816
17817 * config/ia64/constraints.md: Add 'j' constraint.
17818 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
17819 (movdi_internal): Likewise.
17820
17821 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
17822
17823 PR c/35748
17824 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
17825
17826 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
17827
17828 PR target/35757
17829 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
17830 proper error message for the third argument on blendpd and
17831 blendps.
17832
17833 * config/i386/sse.md (blendbits): New.
17834 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
17835
17836 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
17837
17838 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
17839
17840 2008-03-30 Richard Guenther <rguenther@suse.de>
17841
17842 PR middle-end/31023
17843 * fold-const.c (fold_sign_changed_comparison): Do leave
17844 conversions to base-types alone.
17845
17846 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
17847
17848 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
17849 the link register if one altivec register is be saved.
17850
17851 2008-03-30 Ben Elliston <bje@au.ibm.com>
17852
17853 * final.c (final_scan_insn): Remove if (0) code.
17854
17855 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
17856
17857 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
17858
17859 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
17860
17861 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
17862 of V4SFmode to ix86_binary_operator_ok.
17863
17864 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
17865
17866 * config/i386/i386.c (override_options): Initialize
17867 ix86_veclib_handler to ix86_veclibabi_svml when
17868 -mveclibabi=svml is used.
17869 (ix86_veclibabi_svml): New function for SVML ABI style
17870 vectorization support.
17871 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
17872
17873 2008-03-28 Rafael Espíndola <espindola@google.com>
17874
17875 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
17876 (tree_binary_nonnegative_warnv_p): Make it public.
17877 (tree_single_nonnegative_warnv_p): Make it public.
17878 (tree_invalid_nonnegative_warnv_p): Make it public.
17879 (tree_unary_nonzero_warnv_p): Make it public.
17880 (tree_binary_nonzero_warnv_p): Make it public
17881 (tree_single_nonzero_warnv_p): Make it public.
17882 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
17883 (extract_range_from_binary_expr): Split the expr argument.
17884 (extract_range_from_unary_expr): Split the expr argument.
17885 (extract_range_from_comparison): Split the expr argument.
17886 (extract_range_from_expr): Use the new aux functions.
17887 (vrp_evaluate_conditional_warnv): Use
17888 vrp_evaluate_conditional_warnv_with_ops.
17889 * tree.h (tree_unary_nonzero_warnv_p): Declare.
17890 (tree_binary_nonzero_warnv_p): Declare.
17891 (tree_single_nonzero_warnv_p): Declare.
17892 (tree_expr_nonzero_warnv_p): Declare.
17893 (tree_unary_nonnegative_warnv_p): Declare.
17894 (tree_binary_nonnegative_warnv_p): Declare.
17895 (tree_single_nonnegative_warnv_p): Declare.
17896 (tree_invalid_nonnegative_warnv_p): Declare.
17897
17898 2008-03-28 Richard Guenther <rguenther@suse.de>
17899
17900 PR tree-optimization/30317
17901 PR tree-optimization/30911
17902 PR tree-optimization/34793
17903 * tree-vrp.c (set_and_canonicalize_value_range): New function.
17904 (struct assert_locus_d): New member EXPR.
17905 (register_new_assert_for): Add EXPR parameter to support
17906 ASSERT_EXPR <name, expr OP limit>.
17907 (register_edge_assert_for_1): Adjust callers.
17908 (find_assert_locations): Likewise.
17909 (process_assert_insertions_for): Build condition from expression.
17910 (extract_range_from_assert): Handle ASSERT_EXPRs
17911 of the form ASSERT_EXPR <name, expr OP limit>.
17912 (register_edge_assert_for_2): New helper registering
17913 asserts for comparisons. Recognize range tests of the form
17914 (unsigned)i - CST1 OP CST2.
17915 (register_edge_assert_for_1): Use it.
17916 (register_edge_assert_for): Likewise.
17917 (needs_overflow_infinity): Integer sub-types
17918 do not need overflow infinities.
17919 (vrp_val_is_max): The extreme values of integer sub-types
17920 are those of the base type.
17921 (vrp_val_is_min): Likewise.
17922 * tree.def (ASSERT_EXPR): Document extra allowed conditional
17923 expressions.
17924
17925 2008-03-28 Nick Clifton <nickc@redhat.com>
17926
17927 PR target/31110
17928 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
17929 Return GENERAL_REGS for stack adjustment reloads.
17930
17931 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
17932
17933 PR target/31334
17934 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
17935 const_vector when all the vectors are constant.
17936
17937 2008-03-27 Bob Wilson <bob.wilson@acm.org>
17938
17939 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
17940 comparisons.
17941 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
17942 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
17943 (scc_sf): New.
17944 (s<code>_sf): Use new scc_sf attribute for opcode names.
17945
17946 2008-03-27 Tom Tromey <tromey@redhat.com>
17947
17948 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
17949 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
17950 config/spu/t-spu-elf, config/i386/t-interix,
17951 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
17952 config/i386/x-darwin, config/i386/x-mingw32,
17953 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
17954 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
17955 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
17956 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
17957 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
17958 config/rs6000/x-darwin, config/rs6000/t-rs6000,
17959 config/score/t-score-elf, config/arm/t-strongarm-pe,
17960 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
17961 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
17962 Revert automatic dependency patch.
17963
17964 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
17965
17966 PR target/35657
17967 * config/i386/i386.c (ix86_function_arg_boundary): Align
17968 decimal floating point to its natural boundary.
17969
17970 2008-03-27 Richard Guenther <rguenther@suse.de>
17971
17972 PR middle-end/35716
17973 * fold-const.c (fold_comparison): Restrict distinct decl
17974 comparison folding to VAR_DECLs and PARM_DECLs. Do not
17975 solely rely on operand_equal_p.
17976
17977 2008-03-27 Richard Guenther <rguenther@suse.de>
17978
17979 PR c/32511
17980 * c-common.c (handle_weak_attribute): Reject combination of
17981 weak and inline.
17982
17983 2008-03-27 Richard Guenther <rguenther@suse.de>
17984
17985 PR tree-optimization/32810
17986 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
17987 conversions from DECL_INITIAL.
17988 (fold_const_aggregate_ref): Likewise from constructor elements.
17989
17990 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
17991
17992 * tree-affine.h (aff_combination_expand): Declare.
17993 (get_inner_reference_aff): Likewise.
17994 * tree-affine.c (aff_combination_expand): Split out from
17995 tree_to_aff_combination_expand.
17996 (get_inner_reference_aff): New function.
17997 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
17998 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
17999 (struct lim_aux_data): sm_done field removed.
18000 (mem_ref_loc_p, mem_ref_locs_p): New types.
18001 (struct mem_ref): Added id, stored, accesses_in_loop,
18002 indep_loop, dep_loop, indep_ref, dep_ref fields.
18003 Removed is_stored, locs and next fields.
18004 (memory_accesses): New variable.
18005 (movement_possibility): Do not allow moving statements
18006 that store to memory.
18007 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
18008 New functions.
18009 (determine_max_movement): For statements with memory references,
18010 find the outermost loop in that the reference is independent.
18011 (move_computations_stmt): Mark the virtual operands for renaming.
18012 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
18013 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
18014 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
18015 add_vop_ref_mapping, create_vop_ref_mapping_loop,
18016 create_vop_ref_mapping, analyze_memory_references,
18017 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
18018 get_all_locs_in_loop, ref_always_accessed_p,
18019 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
18020 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
18021 store_motion_loop, store_motion): New functions.
18022 (struct vop_to_refs_elt): New type.
18023 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
18024 memref_hash, memref_eq, hoist_memory_references): Rewritten.
18025 (schedule_sm): Replaced by...
18026 (execute_sm): ... this.
18027 (determine_lsm_ref, hoist_memory_references,
18028 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
18029 find_more_ref_vops, free_mem_ref, free_mem_refs,
18030 determine_lsm_loop, determine_lsm): Removed.
18031 (tree_ssa_lim_finalize): Free data structures used by store motion.
18032 (tree_ssa_lim): Call analyze_memory_references. Use
18033 store_motion instead of determine_lsm.
18034
18035 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
18036
18037 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
18038 rename tmake_file to m68hc11/t-m68hc11.
18039 (mcore): Set inhibit_libc to true.
18040 * config.host (alpha*-dec-*vms*): Set extra_programs.
18041 (interix3*): Don't use host_xmake_file.
18042 * configure.ac: Let config.gcc override inhibit_libc.
18043 * configure: Regenerate.
18044
18045 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
18046 * config/t-openbsd-thread: Remove commented out lines.
18047
18048 * config/x-interix: Remove.
18049
18050 * config/m68hc11/t-m68hc11-gas: Rename to...
18051 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
18052
18053 * config/mcore/t-mcore: Remove T_CFLAGS.
18054 * config/mcore/t-mcore-pe: Likewise.
18055
18056 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
18057
18058 * configure.ac: Replace custom __GNU_SOURCE test with
18059 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
18060 * aclocal.m4: Regenerate.
18061 * configure: Regenerate.
18062 * config.in: Regenerate.
18063
18064 2008-03-27 Richard Guenther <rguenther@suse.de>
18065
18066 * fold-const.c (target.h): Include.
18067 (fold_comparison): Fold comparison of addresses of decls
18068 that bind locally or of constants. Consolidate address folding code.
18069 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
18070 results from fold_binary_to_constant.
18071 (compare_values_warnv): Likewise.
18072
18073 2008-03-27 Andrew Pinski <pinskia@gmail.com>
18074
18075 PR middle-end/35429
18076 * fold-const.c (fold_truthop): Check for integeral types when folding
18077 a == 0 && b == 0 and a != 0 || b != 0 .
18078
18079 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
18080
18081 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
18082
18083 2008-03-26 Andreas Schwab <schwab@suse.de>
18084
18085 * doc/invoke.texi: Fix use of @item vs. @itemx.
18086
18087 2008-03-26 Tom Tromey <tromey@redhat.com>
18088
18089 * Makefile.in (build/gensupport.o, build/print-rtl.o,
18090 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
18091 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
18092 build/gencodes.o, build/genconditions.o, build/genconfig.o,
18093 build/genconstants.o, build/genemit.o, build/genextract.o,
18094 build/genflags.o, build/genmddeps.o, build/genopinit.o,
18095 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
18096 options.h.
18097
18098 2008-03-26 Richard Guenther <rguenther@suse.de>
18099
18100 Revert
18101 2008-03-26 Richard Guenther <rguenther@suse.de>
18102
18103 * fold-const.c (target.h): Include.
18104 (fold_comparison): Fold comparison of addresses of two decls
18105 that bind locally. Consolidate address folding code.
18106
18107 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18108
18109 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
18110 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
18111 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
18112 dconstsqrt2, dconstthird, dconste and/or dconst10.
18113 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
18114 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
18115 dconstsqrt2, dconste): Delete.
18116 (init_emit_once): Likewise. Simplify initializing dconstm1.
18117 Constify variable.
18118 * real.c (get_real_const): New.
18119 * real.h (dconst3, dconst10, dconstm2, dconstthird,
18120 dconstsqrt2, dconste): Delete.
18121 (real_value_const, get_real_const): New.
18122
18123 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
18124
18125 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
18126
18127 * config/i386/i386.c (ix86_function_arg_boundary): Check
18128 BIGGEST_ALIGNMENT instead of 128.
18129 (setup_incoming_varargs_64): Likewise.
18130
18131 2008-03-26 Tom Tromey <tromey@redhat.com>
18132
18133 * Makefile.in (DEPFILES): Add missing '/'.
18134
18135 2008-03-26 Richard Guenther <rguenther@suse.de>
18136
18137 * fold-const.c (target.h): Include.
18138 (fold_comparison): Fold comparison of addresses of two decls
18139 that bind locally. Consolidate address folding code.
18140
18141 2008-03-26 Nick Clifton <nickc@redhat.com>
18142
18143 PR target/31232
18144 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
18145 not allow INT+INT as a legitimate addressing mode.
18146
18147 2008-03-26 Richard Guenther <rguenther@suse.de>
18148
18149 * tree-flow.h (widen_bitfield): Remove declaration.
18150 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
18151 (widen_bitfield): Remove function.
18152 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
18153 code.
18154
18155 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
18156
18157 PR target/31558
18158 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
18159 error_mark_node's.
18160
18161 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
18162
18163 PR rtl-optimization/35232
18164 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
18165 (forget_old_reloads_1, forget_marked_reloads): Don't clear
18166 reg_reloaded_call_part_clobbered here.
18167 (reload_regs_reach_end_p): New function.
18168 (reload_reg_rtx_for_input): New variable.
18169 (reload_reg_rtx_for_output): Likewise.
18170 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
18171 when reassigning a pseudo register. Load reloadreg from
18172 reload_reg_rtx_for_input, moving the mode and register
18173 calculation to...
18174 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
18175 instead of the original when deciding whether an input reload
18176 would be a no-op or whether an output reload can be deleted.
18177 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
18178 when setting up new_spill_reg_store. Load it from
18179 reload_reg_rtx_for_output, moving the mode and register
18180 calculation to...
18181 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
18182 instead of the original when deciding whether an output reload
18183 would be a no-op. Do the same when modifying insn notes.
18184 Use rtx_equal_p instead of == to compare the registers.
18185 (inherit_piecemeal_p): Take a mode and two register numbers
18186 as argument.
18187 (emit_reload_insns): Clear new_spill_reg_store for every hard
18188 register in the reload register. Remove spill registers
18189 from reg_reloaded_valid before considering whether to record
18190 inheritance information for them. Use reload_reg_rtx_for_output
18191 instead of reg_rtx when recording output reloads. Use
18192 reload_reg_rtx_for_input instead of reg_rtx when recording
18193 input reloads. Set or clear reg_reloaded_call_part_clobbered
18194 at the same time as setting reg_reloaded_valid.
18195 (delete_output_reload): Add a new_reload_reg parameter and use it
18196 instead of rld[j].reg_rtx.
18197 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
18198 calls accordingly.
18199
18200 2008-03-25 Tom Tromey <tromey@redhat.com>
18201
18202 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
18203 (build/genattr.o): Likewise.
18204 (build/genattrtab.o): Likewise.
18205 (build/gencodes.o): Likewise.
18206 (build/genconfig.o): Likewise.
18207 (build/genconstants.o): Likewise.
18208 (build/genemit.o): Likewise.
18209 (build/genextract.o): Likewise.
18210 (build/genflags.o): Likewise.
18211
18212 2008-03-25 Bob Wilson <bob.wilson@acm.org>
18213
18214 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
18215 instead of size_int for integer types.
18216 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
18217 to match type of MINUS_EXPR.
18218
18219 2008-03-25 Tom Tromey <tromey@redhat.com>
18220
18221 * configure: Rebuilt.
18222 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
18223 Makefile.
18224
18225 2008-03-25 Tom Tromey <tromey@redhat.com>
18226
18227 * config/x-solaris (host-solaris.o): Update.
18228 * config/x-linux (host-linux.o): Update.
18229 * config/x-hpux (host-hpux.o): Update.
18230 * config/x-darwin (host-darwin.o): Update.
18231 * config/v850/t-v850e (v850-c.o): Update.
18232 * config/v850/t-v850 (v850-c.o): Update.
18233 * config/t-vxworks (vxworks.o): Update.
18234 * config/t-sol2 (sol2-c.o, sol2.o): Update.
18235 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
18236 * config/spu/t-spu-elf (spu-c.o): Update.
18237 (spu.o): Remove.
18238 * config/sh/t-symbian (sh-c.o): Update.
18239 (symbian.o): Update.
18240 * config/sh/t-sh (sh-c.o): Update.
18241 * config/score/t-score-elf (score7.o, score3.o): Update.
18242 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
18243 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
18244 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
18245 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
18246 (rs6000.o): Remove.
18247 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
18248 * config/m32c/t-m32c (m32c-pragma.o): Update.
18249 * config/ia64/t-ia64 (ia64-c.o): Update.
18250 * config/i386/x-mingw32 (host-mingw32.o): Update.
18251 * config/i386/x-i386 (driver-i386.o): Update.
18252 * config/i386/x-darwin (host-i386-darwin.o): Update.
18253 * config/i386/x-cygwin (host-cygwin.o): Update.
18254 * config/i386/t-nwld (nwld.o): Update.
18255 * config/i386/t-netware (netware.o): Update.
18256 * config/i386/t-interix (winnt.o): Update.
18257 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
18258 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
18259 msformat-c.o): Update.
18260 * config/bfin/t-bfin-linux (generated_files): Add
18261 linux-sysroot-suffix.h.
18262 * config/arm/t-wince-pe (pe.o): Update.
18263 * config/arm/t-strongarm-pe (pe.o): Update.
18264 * config/arm/t-pe (pe.o): Update.
18265 * config/arm/t-arm (arm-c.o): Update.
18266 * doc/install.texi (Prerequisites): Require make 3.80.
18267 * Makefile.in: Remove .o targets.
18268 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
18269 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
18270 (simple_generated_h, simple_generated_c): Move earlier.
18271 (generated_files): New variable.
18272 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
18273 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
18274 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
18275 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
18276 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
18277 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
18278 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
18279 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
18280 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
18281 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
18282 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
18283 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
18284 (.c.o): Remove.
18285 (COMPILE.base, COMPILE): New variables.
18286 (%.o): New pattern rule.
18287 (ALL_HOST_OBJS): New variable.
18288 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
18289 (dummy-checksum.o, cc1-checksum.o): Remove.
18290 (DRIVER_SHLIB): New variable.
18291 (DRIVER_DEFINES): Use it.
18292 (gencondmd.c): Move out of build/.
18293 (s-conditions): Update.
18294 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
18295 (ALL_BUILD_OBJS): Likewise.
18296 (build/%.o): Use BUILDCOMPILE.
18297 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
18298 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
18299 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
18300 build/gencheck.o, build/gencodes.o, build/genconditions.o,
18301 build/genconfig.o, build/genconstants.o, build/genemit.o,
18302 build/genextract.o, build/genflags.o, build/genmddeps.o,
18303 build/genopinit.o, build/genoutput.o, build/genpeep.o,
18304 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
18305 build/gen-protos.o, build/scan.o, build/fix-header.o,
18306 build/scan-decls.o): Simplify.
18307 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
18308 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
18309 prefix.o, toplev.o): Reduce to variable setting.
18310 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
18311 ($(out_object_file), gcc-options.o): New targets.
18312 ($(ALL_HOST_OBJS)): New target. Include dependency files.
18313 * configure: Rebuilt.
18314 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
18315 * doc/sourcebuild.texi (Front End Directory): Document new variable.
18316
18317 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
18318
18319 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
18320 complain when we hit an error, return ERROR_MARK_NODE.
18321
18322 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
18323
18324 * config/sh/constraints.md (Pso, Psz): New constraints.
18325 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
18326 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
18327
18328 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
18329
18330 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
18331 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
18332
18333 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
18334
18335 * config/sh/sh.md (prefetch): Add condition for SH2A target.
18336 (prefetch_sh2a): New.
18337
18338 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
18339 Naveen.H.S <naveen.hs@kpitcummins.com>
18340
18341 * config/sh/constraints.md (I28): New constraint.
18342 * config/sh/sh.c (broken_move): Add support for movi20s.
18343 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
18344
18345 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
18346 Jayant Sonar <Jayant.sonar@kpitcummins.com>
18347 Naveen.H.S <naveen.hs@kpitcummins.com>
18348
18349 * config/sh/sh.c (SH_ATTRIBUTES): Define.
18350 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
18351 (print_operand): Handle resbank in %@ operand code.
18352 (sh_encode_section_info): New.
18353 (push_regs): Add conditions for resbank.
18354 (sh_expand_epilogue): Likewise.
18355 (sh_insert_attributes): Likewise.
18356 (sh_attribute_table): Likewise.
18357 (sh_handle_resbank_handler_attribute): New.
18358 (sh2a_handle_function_vector_handler_attribute): New.
18359 (sh2a_is_function_vector_call): New.
18360 (sh2a_get_function_vector_number): New.
18361 (sh2a_function_vector_p): New.
18362 (sh_cfun_resbank_handler_p): New.
18363 * config/sh/sh.md (calli): Emit jsr/n if possible.
18364 (calli_tbr_rel): New.
18365 (calli_pcrel): Emit jsr/n if possible.
18366 (return_i): Emit rts/n if possible.
18367 (call_valuei_tbr_rel): New.
18368 (call_valuei_pcrel): Add condition for SH2A target.
18369 (call_value): Likewise.
18370 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
18371 (sh2a_get_function_vector_number): Likewise.
18372 (sh2a_is_function_vector_call): Likewise.
18373 * doc/extend.texi: Document TBR relative addressing of SH2A.
18374 (resbank): Add description for SH2A.
18375
18376 2008-03-24 Richard Guenther <rguenther@suse.de>
18377
18378 PR c/22371
18379 * gimplify.c (gimplify_modify_expr): For frontend type-correct
18380 pointer assignments change conversions according to middle-end rules.
18381 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
18382 * configure.ac: Include type checking in yes.
18383 * configure: Regenerate.
18384
18385 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
18386
18387 * diagnostic.c (diagnostic_count_diagnostic): Delete.
18388 (diagnostic_report_diagnostic): Update. Handle ICEs here.
18389
18390 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
18391
18392 * gthr-vxworks.h (UNUSED): Define.
18393
18394 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
18395
18396 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
18397
18398 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
18399
18400 * doc/extend.texi (Function Attributes): Add missing comma in the
18401 example of the "alloc_size" attribute.
18402
18403 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
18404
18405 Revert:
18406 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
18407
18408 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
18409 32bit host.
18410
18411 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
18412
18413 PR target/35496
18414 * stor-layout.c (update_alignment_for_field): Set minimum alignment
18415 of the underlying type of a MS bitfield layout to the natural
18416 alignment of the type.
18417
18418 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
18419
18420 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
18421 to their natural alignment to avoid store forwarding stalls.
18422
18423 2008-03-22 Richard Guenther <rguenther@suse.de>
18424
18425 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
18426 For PHI nodes verify the address is invariant.
18427 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
18428 (get_symbol_constant_value): Use is_gimple_min_invariant.
18429 (maybe_fold_stmt_indirect): Likewise.
18430
18431 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
18432
18433 PR rtl-optimization/33927
18434 * Makefile.in (dse.o): Depend on $(TM_P_H).
18435 * expr.h (extract_low_bits): Declare.
18436 * expmed.c (extract_low_bits): New function.
18437 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
18438 * dse.c: Include tm_p.h.
18439 (find_shift_sequence): Remove the read_reg argument and return the
18440 read value. Emit the instructions instead of returning them.
18441 Iterate on new_mode rather than calculating it each time.
18442 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
18443 source to NEW_MODE and extract_low_bits to convert the shifted
18444 value to READ_MODE.
18445 (replace_read): Allow the load and store to have different mode
18446 classes. Use extract_low_bits when SHIFT == 0. Create the shift
18447 or extraction instructions before trying the replacement. Update
18448 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
18449
18450 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
18451
18452 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
18453 to their natural alignment to avoid store forwarding stalls.
18454
18455 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
18456
18457 PR target/27946
18458 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
18459 encouraging but not allowing gprs for input;
18460 change the input constraint to !f#r.
18461 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
18462 gprs for output;
18463 change the output constraint to !f#r.
18464
18465 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
18466
18467 PR target/13958
18468 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
18469 corresponding post-reload splitters.
18470 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
18471 when x87 FP math is selected.
18472 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
18473 New function prototype.
18474 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
18475 unreachable function to ease macroization of insn patterns.
18476
18477 2008-03-21 Martin Jambor <mjambor@suse.cz>
18478
18479 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
18480 reference dumps if ddr is NULL or dependence is unknown.
18481
18482 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
18483
18484 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
18485 unsigned extension into account.
18486 (ATOMIC_COMPARE_AND_SWAP): Likewise.
18487 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
18488 Do computations on a scratch register.
18489
18490 2008-03-21 Richard Guenther <rguenther@suse.de>
18491
18492 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
18493 Use is_gimple_min_invariant instead of TREE_INVARIANT.
18494 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
18495 * tree-ssa-dom.c (record_equality): Likewise.
18496 * tree-inline.c (copy_body_r): Likewise.
18497 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
18498 TREE_INVARIANT.
18499
18500 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
18501
18502 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
18503 as 'delete_unused' argument.
18504
18505 2008-03-20 Richard Guenther <rguenther@suse.de>
18506
18507 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
18508 special casing of constant qualifiers.
18509 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
18510 care about them in general.
18511 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
18512 regardless of their type.
18513 (fold_stmt_r): Forcefully fold *& if we end up with that.
18514
18515 2008-03-20 Paul Brook <paul@codesourcery.com>
18516
18517 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
18518 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
18519 linker flags.
18520 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
18521 definition.
18522 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
18523 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
18524
18525 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
18526
18527 * common.opt (Wmudflap): New option.
18528 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
18529 (mx_register_decls): Likewise.
18530 (mudflap_finish_file): Likewise.
18531 * doc/invoke.texi: Document -Wno-mudflap.
18532
18533 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
18534
18535 * c-format.c (replace_format_name_to_system_name): New.
18536 (cmp_attribs): New.
18537 (convert_format_name_to_system_name): New.
18538 (decode_format_attr): Add use of convert_format_name_to_system_name.
18539 (format_types_orig): Add gnu_ prefix to names.
18540 (check_format_info_main): Special treating of \0 escaped names for
18541 supporting multi-character format specifiers as I32, I64.
18542 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
18543 (gnu_target_overrides_format_attributes): New.
18544 * c-format.h: Add structure target_ovr_attr to hold
18545 system specific formatter names.
18546 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
18547 msformat-c.o file to c_target_objs and cxx_target_objs.
18548 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
18549 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
18550 (TARGET_N_FORMAT_TYPES): New.
18551 * config/i386/msformat-c.c: New.
18552 * config/i386/t-cygming: Add build rule for msformat-c.o.
18553 * doc/extend.texi: Add new format names gnu_* and ms_* and
18554 further details.
18555 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
18556
18557 2008-03-20 Ira Rosen <irar@il.ibm.com>
18558
18559 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
18560 optimizations turned on under -O3.
18561 (ftree-vectorize): Add that the flag is turned on with -O3.
18562
18563 2008-03-20 Ben Elliston <bje@au.ibm.com>
18564
18565 * regmove.c (try_auto_increment): Fix spelling error in comment.
18566 * final.c (final_scan_insn): Likewise.
18567
18568 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
18569
18570 PR target/14552
18571 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
18572 allocator preferences for "y" and "r" class registers.
18573 ("*mov<mode>_internal"): Ditto.
18574 ("*movv2sf_internal_rex64"): Ditto.
18575 ("*movv2sf_internal"): Ditto.
18576
18577 2008-03-19 Michael Matz <matz@suse.de>
18578
18579 PR middle-end/35616
18580 * calls.c (expand_call): Check overlap of arguments with call
18581 address for sibcalls.
18582
18583 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
18584
18585 PR target/35496
18586 * stor-layout.c (update_alignment_for_field): Set minimum alignment
18587 of the underlying type of a MS bitfield layout to the natural
18588 alignment of the type.
18589
18590 2008-03-19 Jan Hubicka <jh@suse.cz>
18591
18592 PR other/35094
18593 * toplev.c (decode_d_option): Handle all CPP flags.
18594 * tree-vrp.c: Update tree_pass descriptors.
18595 * regrename.c: Update tree_pass descriptors.
18596 * fwprop.c: Update tree_pass descriptors.
18597 * doc/invoke.texi: Remove documentation of dropped -d? flags.
18598 * tree-into-ssa.c: Update tree_pass descriptors.
18599 * tree-dump.c: Update tree_pass descriptors.
18600 * tree-complex.c: Update tree_pass descriptors.
18601 * tree-dump.h: Update tree_pass descriptors.
18602 * see.c: Update tree_pass descriptors.
18603 * cgraphbuild.c: Update tree_pass descriptors.
18604 * tracer.c: Update tree_pass descriptors.
18605 * tree-loop-distribution.c: Update tree_pass descriptors.
18606 * cgraph.c: Update tree_pass descriptors.
18607 * postreload-gcse.c: Update tree_pass descriptors.
18608 * postreload.c: Update tree_pass descriptors.
18609 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
18610 * tree-tailcall.c: Update tree_pass descriptors.
18611 * tree-pass.h (tree_opt_pass): Rename to ...
18612 (opt_pass) ... this one; add "type" field and remove letter field.
18613 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
18614 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
18615 all_lowering_passes): Update declaration.
18616 * ipa-cp.c: Update tree_pass descriptors.
18617 * final.c: Update tree_pass descriptors.
18618 * omp-low.c: Update tree_pass descriptors.
18619 * tree-ssa-dse.c: Update tree_pass descriptors.
18620 * ipa-reference.c: Update tree_pass descriptors.
18621 * tree-ssa-uncprop.c: Update tree_pass descriptors.
18622 * auto-inc-dec.c: Update tree_pass descriptors.
18623 * reorg.c: Update tree_pass descriptors.
18624 * cgraphunit.c: Update tree_pass descriptors.
18625 * tree-ssa-copyrename.c: Update tree_pass descriptors.
18626 * tree-ssa-ccp.c: Update tree_pass descriptors.
18627 * df-core.c: Update tree_pass descriptors.
18628 * mode-switching.c: Update tree_pass descriptors.
18629 * tree-nomudflap.c: Update tree_pass descriptors.
18630 * modulo-sched.c: Update tree_pass descriptors.
18631 * ipa-pure-const.c: Update tree_pass descriptors.
18632 * cse.c: Update tree_pass descriptors.
18633 * web.c: Update tree_pass descriptors.
18634 * tree-stdarg.c: Update tree_pass descriptors.
18635 * tree-ssa-math-opts.c: Update tree_pass descriptors.
18636 * tree-ssa-dom.c: Update tree_pass descriptors.
18637 * tree-nrv.c: Update tree_pass descriptors.
18638 * tree-ssa-alias.c: Update tree_pass descriptors.
18639 * loop-init.c: Update tree_pass descriptors.
18640 * gimple-low.c: Update tree_pass descriptors.
18641 * ipa-inline.c: Update tree_pass descriptors.
18642 * tree-ssa-sink.c: Update tree_pass descriptors.
18643 * global.c: Update tree_pass descriptors.
18644 * ifcvt.c: Update tree_pass descriptors.
18645 * jump.c: Update tree_pass descriptors.
18646 * predict.c: Update tree_pass descriptors.
18647 * tree-ssa-loop.c: Update tree_pass descriptors.
18648 * recog.c: Update tree_pass descriptors.
18649 * dse.c: Update tree_pass descriptors.
18650 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
18651 * tree-eh.c: Update tree_pass descriptors.
18652 * regmove.c: Update tree_pass descriptors.
18653 * local-alloc.c
18654 * function.c: Update tree_pass descriptors.
18655 * tree-vectorizer.c: Update tree_pass descriptors.
18656 * gcse.c: Update tree_pass descriptors.
18657 * ipa-type-escape.c: Update tree_pass descriptors.
18658 * tree-if-conv.c: Update tree_pass descriptors.
18659 * init-regs.c: Update tree_pass descriptors.
18660 * ipa.c: Update tree_pass descriptors.
18661 * tree-ssa-phiopt.c: Update tree_pass descriptors.
18662 * rtl-factoring.c: Update tree_pass descriptors.
18663 * lower-subreg.c: Update tree_pass descriptors.
18664 * bt-load.c: Update tree_pass descriptors.
18665 * tree-dfa.c: Update tree_pass descriptors.
18666 * except.c: Update tree_pass descriptors.
18667 * emit-rtl.c: Update tree_pass descriptors.
18668 * cfgexpand.c: Update tree_pass descriptors.
18669 * tree-cfgcleanup.c: Update tree_pass descriptors.
18670 * cfgcleanup.c: Update tree_pass descriptors.
18671 * tree-ssa-pre.c: Update tree_pass descriptors.
18672 * tree-sra.c: Update tree_pass descriptors.
18673 * tree-mudflap.c: Update tree_pass descriptors.
18674 * tree-ssa-copy.c: Update tree_pass descriptors.
18675 * cfglayout.c: Update tree_pass descriptors.
18676 * tree-ssa-forwprop.c: Update tree_pass descriptors.
18677 * tree-ssa-dce.c: Update tree_pass descriptors.
18678 * tree-ssa.c: Update tree_pass descriptors.
18679 * regclass.c: Update tree_pass descriptors.
18680 * integrate.c: Update tree_pass descriptors.
18681 * tree-optimize.c: Update tree_pass descriptors.
18682 * tree-ssa-phiprop.c: Update tree_pass descriptors.
18683 * tree-object-size.c: Update tree_pass descriptors.
18684 * combine.c: Update tree_pass descriptors.
18685 * tree-outof-ssa.c: Update tree_pass descriptors.
18686 * bb-reorder.c: Update tree_pass descriptors.
18687 * stack-ptr-mod.c: Update tree_pass descriptors.
18688 * var-tracking.c: Update tree_pass descriptors.
18689 * tree-profile.c: Update tree_pass descriptors.
18690 * tree-vect-generic.c: Update tree_pass descriptors.
18691 * reg-stack.c: Update tree_pass descriptors.
18692 * sched-rgn.c: Update tree_pass descriptors.
18693 * tree-ssa-structalias.c: Update tree_pass descriptors.
18694 * tree-cfg.c: Update tree_pass descriptors.
18695 * passes.c (current_pass): Update declaration.
18696 (finish_optimization_passes): Update.
18697 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
18698 (register_one_dump_file, register_dump_files_1, next_pass_1):
18699 Update arguments.
18700 (init_optimization_passes): Update handling of new types.
18701 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
18702 * ipa-struct-reorg.c: Update tree_pass descriptors.
18703 * tree-ssa-reassoc.c: Update tree_pass descriptors.
18704 * combine-stack-adj.c: Update tree_pass descriptors.
18705 * cfgrtl.c: Update tree_pass descriptors.
18706 * dce.c: Update tree_pass descriptors.
18707 * tree-ssanames.c: Update tree_pass descriptors.
18708
18709 2008-03-19 Richard Guenther <rguenther@suse.de>
18710
18711 PR middle-end/35609
18712 * tree-ssa.c (walk_data): New structure.
18713 (warn_uninitialized_var): If not always_executed warn with "maybe"
18714 instead of "is".
18715 (execute_early_warn_uninitialized): Compute post-dominators.
18716 Initialize always_executed before processing each basic block.
18717
18718 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
18719
18720 PR target/35504
18721 * config/i386/i386.c (x86_this_parameter): Calculate correct location
18722 of "this" pointer when "regparm = N" or "fastcall" is in effect.
18723
18724 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18725
18726 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
18727
18728 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
18729
18730 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
18731 is true.
18732 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
18733 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
18734 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
18735 target after ignore has been set, and move there also the commputation
18736 of subtarget and original_target.
18737 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
18738 (LANG_HOOKS_INITIALIZER): Remove it.
18739 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
18740
18741 2008-03-18 Richard Guenther <rguenther@suse.de>
18742
18743 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
18744 found an expression with constants, note that in the VN for the lhs.
18745 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
18746 fold them to constants if possible. Run cleanup_cfg if done so.
18747 (execute_pre): Return todo.
18748 (do_pre): Likewise.
18749 (execute_fre): Likewise.
18750 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
18751 of constants.
18752 (get_prop_source_stmt): Look through pointer conversions.
18753
18754 2008-03-18 Jan Hubicka <jh@suse.cz>
18755
18756 * tree-pretty-print.c: Include predict.h.
18757 (dump_generic_node): Dump predictor.
18758 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
18759 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
18760 * gimple-low.c (lower_stmt): Likewise.
18761 * expr.c (expand_expr_real): Likewise.
18762 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
18763 them.
18764 (build_predict_expr, build_predict_expr): New.
18765 * predict.h (predictor_name, build_predict_expr): Update.
18766 * c-typeck.c (c_finish_bc_stmt): Add prediction.
18767 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
18768 * predict.def (PRED_CONTINUE): Update hitrate.
18769 * tree.def (PREDICT_EXPR): Define.
18770 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
18771 do not handle BIND_EXPR.
18772 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
18773 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
18774 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
18775 operands.
18776
18777 2008-03-18 Michael Matz <matz@suse.de>
18778
18779 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
18780
18781 2008-03-18 Richard Guenther <rguenther@suse.de>
18782
18783 * tree-gimple.h (is_gimple_invariant_address): Declare.
18784 (is_gimple_constant): Likewise.
18785 * tree-gimple.c (is_gimple_constant): New function.
18786 (is_gimple_invariant_address): Likewise.
18787 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
18788 and is_gimple_invariant_address.
18789 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
18790 previous change.
18791 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
18792 an addressable base.
18793
18794 2008-03-18 Jakub Jelinek <jakub@redhat.com>
18795
18796 PR middle-end/35611
18797 * gimplify.c (gimplify_expr): Gimplify second operand of
18798 OMP_ATOMIC_LOAD.
18799
18800 2008-03-17 Richard Guenther <rguenther@suse.de>
18801
18802 PR tree-optimization/19637
18803 * fold-const.c (fold_unary): Remove restrictions of removing
18804 intermediate pointer-conversions (P2)(P1)P0.
18805 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
18806 conversion to void pointer.
18807 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
18808
18809 2008-03-16 James E. Wilson <wilson@tuliptree.org>
18810
18811 PR debug/31510
18812 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
18813 emulated thread local variables.
18814
18815 2008-03-16 Richard Guenther <rguenther@suse.de>
18816
18817 PR middle-end/35607
18818 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
18819 expand TREE_INVARIANT operations that are not gimple invariant.
18820
18821 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
18822
18823 * doc/extend.texi (Alignment): Say that the ABI controls
18824 the __alignof__ for non-strict-alignment targets rather
18825 than being a recommendation.
18826
18827 2008-03-15 Paul Brook <paul@codesourcery.com>
18828
18829 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
18830 annotations.
18831 (arm_output_fn_unwind): Mark functions that can not be unwound.
18832
18833 2008-03-15 Paul Brook <paul@codesourcery.com>
18834
18835 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
18836 extension instructions.
18837
18838 2008-03-15 Richard Guenther <rguenther@suse.de>
18839
18840 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
18841 and fold constant aggregate refs.
18842 (fold_const_aggregate_ref): Handle string constants
18843 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
18844 (evaluate_stmt): Simplify now that ccp_fold folds constant
18845 aggregate refs.
18846
18847 2008-03-15 Paul Brook <paul@codesourcery.com>
18848
18849 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
18850 (extzv): Use gen_extzv_t2.
18851 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
18852
18853 2008-03-15 Richard Guenther <rguenther@suse.de>
18854
18855 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
18856 (fold_const_aggregate_ref): Likewise.
18857 (get_value): Return NULL if we don't have any values.
18858 (ccp_finalize): Set const_val to NULL after freeing it.
18859 * tree-flow.h (get_symbol_constant_value): Declare.
18860 (fold_const_aggregate_ref): Likewise.
18861 * tree-ssa-sccvn.c (try_to_simplify): Use them.
18862
18863 2008-03-15 Richard Guenther <rguenther@suse.de>
18864
18865 PR middle-end/35593
18866 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
18867 to not produce negative array indices if not allowed. Add
18868 parameter to indicate that.
18869 (maybe_fold_offset_to_component_ref): Allow negative array
18870 indices only for the first member of a structure.
18871 (maybe_fold_offset_to_reference): Allow negative array indices.
18872 (maybe_fold_stmt_addition): Likewise.
18873
18874 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
18875 Anatoly Sokolov <aesok@post.ru>
18876
18877 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
18878 (avr_arch): Add ARCH_AVR6.
18879 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
18880 (initial_elimination_offset): Initialize and use 'avr_pc_size'
18881 instead of fixed value 2.
18882 (print_operand_address): Use gs() asm specifier instead of pm().
18883 (avr_assemble_integer): (Ditto.).
18884 (avr_output_addr_vec_elt): (Ditto.).
18885 (print_operand): Handle "!" code.
18886 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
18887 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
18888 (AVR_HAVE_EIJMP_EICALL): Define.
18889 (AVR_3_BYTE_PC): Redefine.
18890 (AVR_2_BYTE_PC): (Ditto.).
18891 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
18892 (LINK_SPEC): Add atmega2560 and atmega2561.
18893 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
18894 (crtm2561.o).
18895 * config/avr/avr.md (call_insn): Use eicall instead of icall
18896 for 3 byte PC devices.
18897 (call_value_insn): (Ditto.).
18898 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
18899 (indirect_jump): Use only for for 2 byte PC devices.
18900 (*tablejump): (Ditto.).
18901 (*indirect_jump_avr6): Add insn.
18902 (*tablejump_rjmp): Don't use for 3 byte PC devices.
18903 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
18904 instead of ijmp for 3 byte PC devices.
18905 (__tablejump2__): (Ditto.).
18906 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
18907 (MULITLIB_DIRNAMES): (Ditto.).
18908 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
18909
18910 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
18911
18912 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
18913 "sse2_umulsidi3". Use V1DI mode for operand 0.
18914 ("mmx_psadbw"): Use V1DI mode for operand 0.
18915 * config/i386/i386-modes.def (V1SI): New vector mode.
18916 * config/i386/i386.c (struct builtin_description)
18917 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
18918 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
18919 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
18920 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
18921 v1di_ftype_v8qi_v8qi type.
18922 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
18923
18924 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
18925 __builtin_ia32_pmuludq]: Fix the mode of return value.
18926
18927 2008-03-15 Richard Guenther <rguenther@suse.de>
18928
18929 PR middle-end/35595
18930 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
18931 being a PHI_NODE.
18932
18933 2008-03-14 Bob Wilson <bob.wilson@acm.org>
18934
18935 * doc/invoke.texi (Option Summary, Xtensa Options): Document
18936 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
18937 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
18938 unless TARGET_SERIALIZE_VOLATILE is enabled.
18939 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
18940 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
18941 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
18942
18943 2008-03-14 Richard Guenther <rguenther@suse.de>
18944
18945 PR tree-optimization/34172
18946 * tree-flow.h (refs_may_alias_p): Declare.
18947 (get_single_def_stmt): Likewise.
18948 (get_single_def_stmt_from_phi): Likewise.
18949 (get_single_def_stmt_with_phi): Likewise.
18950 * tree-dfa.c (refs_may_alias_p): New function.
18951 (get_single_def_stmt): Likewise.
18952 (get_single_def_stmt_from_phi): Likewise.
18953 (get_single_def_stmt_with_phi): Likewise.
18954 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
18955 (vn_reference_lookup_1): New helper function.
18956 (vn_reference_lookup): Walk the virtual use-def chain to
18957 continue searching for a match if the def does not alias the
18958 reference we are looking for.
18959
18960 2008-03-14 David Edelsohn <edelsohn@gnu.org>
18961
18962 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
18963 archive and Perzl. Update The Written Word listing.
18964
18965 2008-03-14 Richard Guenther <rguenther@suse.de>
18966
18967 PR tree-optimization/34043
18968 PR tree-optimization/33989
18969 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
18970 when doing FRE.
18971 (bitmap_find_leader): Use extra argument to verify dominance
18972 relationship inside a basic-block.
18973 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
18974 (find_leader_in_sets): Adjust.
18975 (create_component_ref_by_pieces): Take extra argument for
18976 dominance check, handle lookup failures.
18977 (find_or_generate_expression): Likewise.
18978 (create_expression_by_pieces): Likewise.
18979 (insert_into_preds_of_block): Adjust.
18980 (create_value_expr_from): If asked for, verify all operands
18981 are in the blocks AVAIL_OUT set.
18982 (make_values_for_stmt): Check for SSA_NAMEs that are life
18983 over an abnormal edge.
18984 (compute_avail): Remove such check.
18985 (do_SCCVN_insertion): New function.
18986 (eliminate): If we do not find a leader suitable for replacement
18987 insert a replacement expression from SCCVN if available.
18988 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
18989 (struct vn_ssa_aux): Add needs_insertion flag.
18990 * tree-ssa-sccvn.c (may_insert): New global flag.
18991 (copy_reference_ops_from_ref): Value-number union member access
18992 based on its size, not type and member if insertion is allowed.
18993 (visit_reference_op_load): For a weak match from union type
18994 punning lookup a view-converted value and insert a SSA_NAME
18995 for that value if that is not found.
18996 (visit_use): Make dumps shorter. Do not disallow value numbering
18997 SSA_NAMEs that are life over an abnormal edge to constants.
18998 (free_scc_vn): Release inserted SSA_NAMEs.
18999 (run_scc_vn): New flag to specify whether insertion is allowed.
19000 Process SSA_NAMEs in forward order.
19001 * tree-ssa-loop-im.c (for_each_index): Handle invariant
19002 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
19003 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
19004 pointer type to/from integral types that do not change the
19005 precision to regular conversions.
19006
19007 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
19008
19009 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
19010 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
19011 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
19012 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
19013 input arguments and the mode of return value. Built-in functions
19014 that operate on whole 64-bit MMX register now use V1DI mode.
19015
19016 2008-03-13 Alon Dayan <alond@il.ibm.com>
19017 Olga Golovanevsky <olga@il.ibm.com>
19018
19019 PR tree-optimization/35041
19020 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
19021 to locate the right position in a statement.
19022
19023 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
19024
19025 PR target/34000
19026 PR target/35553
19027 * config/i386/xmmintrin.h: Change all static inline functions to
19028 extern inline and add __gnu_inline__ attribute.
19029 * config/i386/bmintrin.h: Ditto.
19030 * config/i386/smmintrin.h: Ditto.
19031 * config/i386/tmmintrin.h: Ditto.
19032 * config/i386/mmintrin-common.h: Ditto.
19033 * config/i386/ammintrin.h: Ditto.
19034 * config/i386/emmintrin.h: Ditto.
19035 * config/i386/pmmintrin.h: Ditto.
19036 * config/i386/mmintrin.h: Ditto.
19037 * config/i386/mm3dnow.h: Ditto.
19038
19039 2008-03-13 Jakub Jelinek <jakub@redhat.com>
19040
19041 PR middle-end/35185
19042 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
19043 (lower_omp_2): New function.
19044 (lower_omp_1, lower_omp): Rewritten.
19045
19046 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
19047
19048 PR 35054
19049 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
19050 with the phrase "Microsoft Windows compilers".
19051 (Push/Pop Macro Pragmas): New subsection. Document
19052 #pragma push_macro and pragma pop_macro.
19053
19054 2008-03-12 Paul Brook <paul@codesourcery.com>
19055
19056 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
19057
19058 2008-03-12 Paul Brook <paul@codesourcery.com>
19059
19060 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
19061 (thumb2_alusi3_short): Exclude PLUS and MINUS.
19062 (thumb2_addsi_shortim): Rename ...
19063 (thumb2_addsi_short): ... to this. Allow register operands.
19064 (thumb2_subsi_short): New pattern.
19065 (thumb2_one_cmplsi2_short,
19066 thumb2_negsi2_short): New patterns and peepholes.
19067
19068 2008-03-12 Paul Brook <paul@codesourcery.com>
19069
19070 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
19071
19072 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
19073
19074 * config/i386/i386.md (int_cond): New code iterator.
19075 (fp_cond): Ditto.
19076 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
19077 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
19078 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
19079 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
19080 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
19081 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
19082 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
19083 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
19084
19085 2008-03-12 Paul Brook <paul@codesourcery.com>
19086
19087 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
19088 instead of {arm,thumb}_compute_save_reg_mask.
19089 (output_return_instruction): Ditto.
19090 (thumb_unexpanded_epilogue): Ditto.
19091 (thumb1_expand_prologue): Ditto.
19092 (thumb1_output_function_prologue): Ditto.
19093 (arm_set_return_address): Ditto.
19094 (thumb_set_return_address): Ditto.
19095 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
19096 regs to achieve stack alignment.
19097 (thumb1_compute_save_reg_mask): Fix compiler warning.
19098 (arm_output_epilogue): Use offsets->saved_regs_mask.
19099 Adjust stack pointer by poping call clobered registers.
19100 (arm_expand_prologue): Use offsets->saved_regs_mask.
19101 Adjust stack pointer by pushing extra registers.
19102 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
19103
19104 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
19105
19106 PR tree-opt/35422
19107 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
19108 conversion to the operands of a multiplication.
19109
19110 2008-03-12 Richard Guenther <rguenther@suse.de>
19111
19112 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
19113 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
19114 * timevar.def (TV_TREE_PHIPROP): Add.
19115 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
19116 pass description. Use TV_TREE_PHIPROP.
19117 * tree-ssa-forwprop.c: Remove phiprop code.
19118
19119 2008-03-12 Jakub Jelinek <jakub@redhat.com>
19120
19121 PR middle-end/35549
19122 * omp-low.c (maybe_lookup_decl): Constify first argument.
19123 (use_pointer_for_field): Change last argument from bool to
19124 omp_context *. Disallow shared copy-in/out in nested
19125 parallel if decl is shared in outer parallel too.
19126 (build_outer_var_ref, scan_sharing_clauses,
19127 lower_rec_input_clauses, lower_copyprivate_clauses,
19128 lower_send_clauses, lower_send_shared_vars): Adjust callers.
19129
19130 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
19131 Ira Rosen <irar@il.ibm.com>
19132
19133 * tree-vectorizer.c (free_stmt_vec_info): New function.
19134 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
19135 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
19136 * tree-vectorizer.h (free_stmt_vec_info): Declare.
19137 * tree-vect-transform.c (vectorizable_conversion): Free
19138 vec_oprnds0 if it was allocated.
19139 (vect_permute_store_chain): Remove unused VECs.
19140 (vectorizable_store): Free VECs that are allocated in the..
19141 function.
19142 (vect_transform_strided_load, vectorizable_load): Likewise.
19143 (vect_remove_stores): Simplify the code.
19144 (vect_transform_loop): Move code to vect_remove_stores().
19145 Call vect_remove_stores() and free_stmt_vec_info().
19146
19147 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19148
19149 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
19150 TARGET_HPUX. Revise comment.
19151 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
19152 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
19153 Use sr4 variant of `be' instruction when not generating PIC code.
19154 (attr_length_call): Adjust for above change.
19155
19156 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
19157
19158 * ipa-reference.c (static_execute): Remove module_statics_const and
19159 associated setting code.
19160
19161 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
19162
19163 PR target/35540
19164 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
19165 predicate for operand 1.
19166 (paritysi2_cmp): Use register_operand predicate for operand 2.
19167 Use earlyclobber modifier for operand 1. Remove support for
19168 memory operands.
19169 (paritydi2_cmp): Use register_operand predicate for operand 3.
19170 Use earlyclobber modifier for operand 1. Remove support for
19171 memory operands.
19172
19173 2008-03-11 Paul Brook <paul@codesourcery.com>
19174 Vladimir Prus <vladimir@codesourcery.com>
19175
19176 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
19177 (arm_compute_save_reg0_reg12_mask): Always
19178 check if register 11 must be saved. Always safe hard frame pointer
19179 when frame_pointer_needeed.
19180 (arm_compute_save_reg_mask): Save IP and PC
19181 only with apcs frames.
19182 (arm_output_epilogue): Adjust Thumb2 codepath to
19183 be also invoked and work for ARM non-apcs frames.
19184 (arm_expand_prologue): Don't bother saving IP
19185 for non-apcs frame, since it's not clobbered by
19186 prologue code. Implement non-apcs frame
19187 layout.
19188
19189 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
19190
19191 PR rtl-optimization/35281
19192 * expr.c (convert_move): Use a new pseudo for the intermediate
19193 from_mode->word_mode result.
19194
19195 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
19196
19197 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
19198 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
19199 * toplev.c (compile_file): Don't call it.
19200
19201 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
19202
19203 PR middle-end/35526
19204 * expr.c (store_expr): Call emit_block_move if the mode
19205 of "temp" RTX is BLKmode.
19206
19207 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
19208 Richard Guenther <rguenther@suse.de>
19209
19210 PR tree-optimization/31358
19211 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
19212 the step with a NULL_TREE.
19213 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
19214 to sizetype if type is a pointer type.
19215 (add_candidate_1): Don't convert the base and step to
19216 the generic type if the orginal type is a pointer type.
19217 (add_iv_value_candidates): Use sizetype for the step
19218 if type is a pointer type.
19219 (cand_value_at): Likewise.
19220 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
19221 for pointer types.
19222 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
19223 Don't convert the tem affine to the type.
19224 (add_elt_to_tree): Use sizetype for the step if a pointer.
19225 Use POINTER_PLUS_EXPR for pointers.
19226 (aff_combination_to_tree): Use sizetype for the step if a
19227 pointer.
19228
19229 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
19230
19231 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
19232 Remove commutativity hint.
19233
19234 2008-03-10 Jakub Jelinek <jakub@redhat.com>
19235
19236 PR c/35438
19237 PR c/35439
19238 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
19239 errorneous type. Check that v is a VAR_DECL.
19240
19241 PR middle-end/35099
19242 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
19243
19244 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
19245
19246 PR tree-optimization/35494
19247 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
19248 may be overriden at link and run time.
19249
19250 2008-03-10 Richard Guenther <rguenther@suse.de>
19251
19252 PR tree-optimization/34677
19253 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
19254 (poolify_tree): Likewise.
19255 (modify_expr_template): Likewise.
19256 (poolify_modify_stmt): Likewise.
19257 (insert_fake_stores): Handle all component-ref style stores
19258 in addition to INDIRECT_REF. Also handle complex types.
19259 Do not poolify the inserted load.
19260 (realify_fake_stores): Do not rebuild the tree but only
19261 make it a SSA_NAME copy.
19262 (init_pre): Remove initialzation of modify_expr_template.
19263 Do not allocate modify_expr_node_pool.
19264 (fini_pre): Do not free modify_expr_node_pool.
19265
19266 2008-03-10 Paul Brook <paul@codesourcery.com>
19267
19268 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
19269 to avoid conflicts.
19270
19271 2008-03-10 Paul Brook <paul@codesourcery.com>
19272 Mark Shinwell <shinwell@codesourcery.com>
19273
19274 * config/arm/cortex-r4.md: New.
19275 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
19276 insn attributes.
19277 * config/arm/arm.md: Include cortex-r4.md.
19278 (insn): Add smmls, sdiv and udiv values.
19279 (generic_sched): Don't use generic scheduling for Cortex-R4.
19280 (arm_issue_rate): New function.
19281 (TARGET_SCHED_ISSUE_RATE): Define.
19282
19283 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
19284
19285 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
19286
19287 2008-03-10 Richard Guenther <rguenther@suse.de>
19288
19289 * tree-ssa-pre.c (get_sccvn_value): Simplify.
19290 (compute_avail): Do not add stmt uses to AVAIL_OUT.
19291
19292 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
19293
19294 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
19295 Set default to true.
19296
19297 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19298
19299 * c.opt (Wsynth): Deprecate.
19300 * doc/invoke.texi (Option Summary, Warning Options): Document
19301 -Wno-format-contains-nul.
19302
19303 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
19304
19305 PR target/35496
19306 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
19307 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
19308
19309 2008-03-09 Ira Rosen <irar@il.ibm.com>
19310
19311 * config/rs6000/rs6000.c (builtin_description): Rename vector
19312 left shift operations.
19313 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
19314 (altivec_vsl<VI_char>): Rename to ...
19315 (ashl<mode>3): ... new name.
19316 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
19317 gen_ashlv4si3.
19318 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
19319
19320 2008-03-08 Richard Guenther <rguenther@suse.de>
19321
19322 * coverage.h (tree_coverage_counter_addr): Declare.
19323 * coverage.c (tree_coverage_counter_addr): New function.
19324 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
19325 before using again.
19326 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
19327 (tree_gen_one_value_profiler): Likewise.
19328 (tree_gen_ic_profiler): Likewise.
19329 (tree_gen_average_profiler): Likewise.
19330 (tree_gen_ior_profiler): Likewise.
19331
19332 2008-03-08 Richard Guenther <rguenther@suse.de>
19333
19334 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
19335 (vn_binary_op_insert): Likewise.
19336 (vn_unary_op_lookup): Likewise.
19337 (vn_unary_op_insert): Likewise.
19338 (vn_nary_op_lookup): Declare.
19339 (vn_nary_op_insert): Likewise.
19340 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
19341 and binary hashes, use a single obstack for unary_op_pool
19342 and binary_op_pool.
19343 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
19344 a single struct vn_nary_op_s. Store tree code length and
19345 a variable number of operands.
19346 (struct vn_reference_op_struct): Remove unused op2.
19347 (vn_reference_op_eq): Do not compare op2.
19348 (vn_reference_op_compute_hash): Do not compute hash of op2.
19349 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
19350 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
19351 with vn_nary_op_compute_hash.
19352 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
19353 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
19354 vn_nary_op_lookup.
19355 (vn_unary_op_insert, vn_binary_op_insert): Replace with
19356 vn_nary_op_insert.
19357 (visit_unary_op): Call nary functions.
19358 (visit_binary_op): Likewise.
19359 (process_scc): Adjust for struct vn_tables_s changes.
19360 (allocate_vn_table): Likewise.
19361 (free_vn_table): Likewise.
19362 * tree-vn.c (vn_add): Call nary functions.
19363 (vn_lookup): Likewise.
19364
19365 2008-03-08 Jakub Jelinek <jakub@redhat.com>
19366
19367 PR target/35498
19368 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
19369 wdst back after sync_compare_and_swapqhi_internal.
19370
19371 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
19372
19373 PR target/22152
19374 * config/i386/i386-modes.def (V1DI): New vector mode.
19375 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
19376 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
19377 (MMXMODE248): Ditto.
19378 (MMXMODE): Add V1DI mode.
19379 (mmxvecsize): Change DI mode to V1DI mode.
19380 ("mov<mode>): Use MMXMODEI8 mode iterator.
19381 ("*mov<mode>_internal_rex64"): Ditto.
19382 ("*mov<mode>_internal"): Ditto.
19383 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
19384 ("mmx_sub<mode>3"): Ditto.
19385 ("mmx_adddi3"): Remove insn pattern.
19386 ("mmx_subdi3"): Ditto.
19387 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
19388 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
19389 ("mmx_ashl<mode>3"): Ditto.
19390 ("mmx_lshrdi3"): Remove insn pattern.
19391 ("mmx_ashldi3"): Ditto.
19392 * config/i386/i386.c (classify_argument): Handle V1DImode.
19393 (function_arg_advance_32): Ditto.
19394 (function_arg_32): Ditto.
19395 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
19396 mmx_addv1di3 insn pattern.
19397 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
19398 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
19399 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
19400 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
19401 Remove definitions of built-in functions.
19402 (V1DI_type_node): New node.
19403 (v1di_ftype_v1di_int): Ditto.
19404 (v1di_ftype_v1di_v1di): Ditto.
19405 (v2si_ftype_v2si_si): Ditto.
19406 (v4hi_ftype_v4hi_di): Remove node.
19407 (v2si_ftype_v2si_di): Ditto.
19408 (ix86_init_mmx_sse_builtins): Handle V1DImode.
19409 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
19410 Redefine builtins using def_builtin_const with *_ftype_*_int node.
19411 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
19412 Add new builtins using def_builtin_const.
19413 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
19414 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
19415 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
19416 * config/i386/mmintrin.h (__v1di): New typedef.
19417 (_mm_add_si64): Cast arguments to __v1di type.
19418 (_mm_sub_si64): Ditto.
19419 (_mm_sll_pi16): Cast __count to __v4hi type.
19420 (_mm_sll_pi32): Cast __count to __v2si type.
19421 (_mm_sll_si64): Cast arguments to __v1di type.
19422 (_mm_srl_pi16): Cast __count to __v4hi type.
19423 (_mm_srl_pi32): Cast __count to __v2si type.
19424 (_mm_srl_si64): Cast arguments to __v1di type.
19425 (_mm_sra_pi16): Cast __count to __v4hi type.
19426 (_mm_sra_pi32): Cast __count to __v2si type.
19427 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
19428 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
19429 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
19430 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
19431 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
19432 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
19433 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
19434 (_mm_srai_pi32): Use __builtin_ia32_psradi.
19435 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
19436 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
19437 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
19438 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
19439
19440 2008-03-07 Joseph Myers <joseph@codesourcery.com>
19441
19442 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
19443
19444 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
19445
19446 PR target/35373
19447 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
19448 reg+const addressing for Altivec modes. Don't generate reg+reg
19449 addressing for TFmode or TDmode quantities.
19450
19451 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
19452
19453 * c-common.c (vector_types_convertible_p): Call langhook
19454 instead of comptypes.
19455
19456 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
19457
19458 PR tree-opt/35402
19459 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
19460 integral and scalar float variables which have a
19461 NULL DECL_INITIAL.
19462
19463 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
19464
19465 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
19466 dwarf_register_span hook when emitting unwind information for
19467 register-to-memory saves.
19468 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
19469 (rs6000_frame_related): Remove call to spe_synthesize_frame.
19470
19471 2008-03-06 Jakub Jelinek <jakub@redhat.com>
19472
19473 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
19474 for the same VAR_DECL.
19475
19476 2008-03-06 Tom Tromey <tromey@redhat.com>
19477
19478 * treelang: Delete.
19479 * doc/standards.texi (Standards): Don't mention treelang.
19480 * doc/invoke.texi (Overall Options): Don't mention treelang.
19481 * doc/install.texi (Prerequisites): Don't mention bison or
19482 treelang.
19483 (Configuration): Don't mention treelang.
19484 (Building): Likewise.
19485 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
19486
19487 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
19488
19489 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
19490 word-extractions out of a multi-word object.
19491
19492 2008-03-06 Richard Guenther <rguenther@suse.de>
19493
19494 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
19495 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
19496 result type and precision.
19497 * expr.c (get_inner_reference): Set unsignedp based on the result
19498 type of BIT_FIELD_REF.
19499 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
19500 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
19501 (try_instantiate_multiple_fields): Likewise. Use the correct type
19502 for BIT_FIELD_REF.
19503 (sra_build_assignment): Likewise.
19504 (sra_build_elt_assignment): Likewise.
19505 (sra_explode_bitfield_assignment): Likewise.
19506 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
19507 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
19508 set BIT_FIELD_REF_UNSIGNED.
19509 (vectorizable_load): Likewise.
19510
19511 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
19512
19513 * cse.c (cse_extended_basic_block): Invalidate artificial defs
19514 at bb start.
19515
19516 2008-03-06 Richard Guenther <rguenther@suse.de>
19517
19518 * alias.c (struct alias_set_entry): Move has_zero_child field
19519 to pack with alias_set.
19520
19521 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
19522
19523 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
19524 32bit host.
19525
19526 2008-03-05 Ian Lance Taylor <iant@google.com>
19527
19528 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
19529
19530 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
19531
19532 * fwprop.c (update_df): Support width and offset parameters of
19533 df_ref_create.
19534 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
19535 global_conflicts): Change DF_REF_EXTRACT to either
19536 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
19537 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
19538 * df-scan.c (df_ref_record, df_defs_record,
19539 df_ref_create_structure, df_def_record_1, df_uses_record,
19540 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
19541 df_bb_refs_collect, df_entry_block_defs_collect,
19542 df_exit_block_uses_collect): Support new width and offset fields.
19543 (ref_extract_pool): New storage pool.
19544 (df_free_ref): New function.
19545 (df_reg_chain_unlink, df_free_collection_rec,
19546 df_sort_and_compress_refs): Call df_free_ref.
19547 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
19548 of df_ref_extract.
19549 (df_ref_create_structure): Allocate df_ref_extract if offset and
19550 width fields are used.
19551 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
19552 (df_uses_record): Get offset and width from ZERO_EXTRACT
19553 and SIGN_EXTRACT.
19554 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
19555 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
19556 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
19557 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
19558 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
19559 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
19560 (df_ref_extract): New structure.
19561 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
19562 (df_ref_create): Add width and offset parameters.
19563
19564 2008-03-05 Richard Guenther <rguenther@suse.de>
19565
19566 * tree-ssa-structalias.c (get_constraint_for_component_ref):
19567 Use ranges_overlap_p.
19568 (offset_overlaps_with_access): Rename
19569 to ranges_overlap_p and move ...
19570 * tree-flow-inline.h (ranges_overlap_p): ... here.
19571
19572 * tree.h (get_inner_reference, handled_component_p): Update
19573 comments.
19574
19575 * tree.h (record_component_aliases, get_alias_set,
19576 alias_sets_conflict_p, alias_sets_must_conflict_p,
19577 objects_must_conflict_p): Move declarations ...
19578 * alias.h (record_component_aliases, get_alias_set,
19579 alias_sets_conflict_p, alias_sets_must_conflict_p,
19580 objects_must_conflict_p): ... here.
19581 Include coretypes.h.
19582 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
19583
19584 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
19585
19586 * cfg.c: Include tree-flow.h.
19587 (remove_edge_raw): Call redirect_edge_var_map_clear.
19588 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
19589 * tree-flow-inline.h (redirect_edge_var_map_def): New.
19590 (redirect_edge_var_map_result): New.
19591 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
19592 PENDING_STMT use with redirect_edge_var_map_*.
19593 * tree-ssa.c (edge_var_maps): New definition.
19594 (redirect_edge_var_map_add): New.
19595 (redirect_edge_var_map_clear): New.
19596 (redirect_edge_var_map_dup): New.
19597 (redirect_edge_var_map_vector): New.
19598 (redirect_edge_var_map_destroy): New.
19599 (ssa_redirect_edge): Replace PENDING_STMT use with
19600 redirect_edge_var_map_*.
19601 (flush_pending_stmts): Same.
19602 (delete_tree_ssa): Destroy edge var map.
19603 * tree-flow.h (struct _edge_var_map): New.
19604 Define edge_var_map vector type.
19605 Declare redirect_edge_var_map_* prototypes.
19606 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
19607 * tree-cfg.c (reinstall_phi_args): Replace
19608 PENDING_STMT use with redirect_edge_var_map_*.
19609
19610 2008-03-05 Richard Guenther <rguenther@suse.de>
19611
19612 PR tree-optimization/35472
19613 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
19614 whose single use_stmt has a overlapping set of loaded and
19615 stored symbols as that use_stmt might be a noop assignment then.
19616
19617 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
19618
19619 * gthr-rtems.h: Implement __gthread_mutex_destroy.
19620
19621 2008-03-05 Richard Guenther <rguenther@suse.de>
19622
19623 PR c++/35336
19624 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
19625 should be constants.
19626 * tree-cfg.c (verify_expr): Verify it.
19627 * fold-const.c (fold_truthop): Remove code generating
19628 BIT_FIELD_REFs of structure bases.
19629 (fold_binary): Likewise.
19630 (fold_ternary): Position and size of BIT_FIELD_REFs are
19631 always host integers.
19632 (make_bit_field_ref): Remove.
19633 (optimize_bit_field_compare): Remove.
19634 (all_ones_mask_p): Remove.
19635
19636 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
19637
19638 PR gcc/33009
19639 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
19640 (split_block_and_df_analyze): New. Split basic block and rebuild
19641 dataflow.
19642 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
19643 SPLIT_BLOCK.
19644 (split_pattern_seq): Likewise.
19645 (erase_matching_seqs): Likewise.
19646 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
19647
19648 2008-03-04 Geoff Keating <geoffk@apple.com>
19649
19650 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
19651 declaration and code.
19652 (tree_invalid_nonnegative_warnv_p): Likewise.
19653
19654 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
19655
19656 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
19657 examples. Truncate option-names then causing overfull hbox.
19658
19659 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19660
19661 PR target/35222
19662 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
19663 on hpux10.
19664 * configure: Rebuilt.
19665
19666 2008-03-04 Rafael Espíndola <espindola@google.com>
19667
19668 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
19669 (tree_unary_nonnegative_warnv_p): New.
19670 (tree_binary_nonnegative_warnv_p): New.
19671 (tree_single_nonnegative_warnv_p): New.
19672 (tree_invalid_nonnegative_warnv_p): New.
19673 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
19674
19675 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19676
19677 PR 28322
19678 * opts.c (handle_option): Postpone 'unknown option' errors only for
19679 warning options.
19680
19681 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
19682
19683 PR target/35453
19684 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
19685 (_SIDD_XXX): This.
19686
19687 2008-03-04 Rafael Espíndola <espindola@google.com>
19688
19689 * fold-const.c (tree_unary_nonzero_warnv_p): New.
19690 (tree_binary_nonzero_warnv_p): New.
19691 (tree_single_nonzero_warnv_p): New.
19692 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
19693
19694 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
19695
19696 PR middle-end/35456
19697 * fold-const.c (fold_cond_expr_with_comparison): Prevent
19698 transformations for modes that have signed zeros.
19699 * ifcvt.c (noce_try_abs): Ditto.
19700
19701 2008-03-04 Joseph Myers <joseph@codesourcery.com>
19702
19703 * config/i386/i386.c (override_options): Force
19704 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
19705
19706 2008-03-04 Jan Hubicka <jh@suse.cz>
19707
19708 PR c++/35262
19709 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
19710 in last commit.
19711
19712 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
19713
19714 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
19715 label to probe the stack.
19716
19717 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
19718
19719 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
19720 (__gthr_win32_mutex_destroy): Declare.
19721 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
19722 __gthr_win32_mutex_destroy.
19723 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
19724
19725 2008-03-03 Jan Hubicka <jh@suse.cz>
19726
19727 PR c++/35262
19728 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
19729 aggressive on inlining cold calls.
19730
19731 2008-03-03 Richard Guenther <rguenther@suse.de>
19732
19733 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
19734 struct copies into the expression table.
19735 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
19736 (try_to_simplify): Likewise.
19737 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
19738 integral and pointer arguments which do not change the
19739 precision to NOP_EXPRs.
19740 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
19741 VIEW_CONVERT_EXPR case.
19742
19743 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
19744
19745 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
19746 defined in a loop at depth 0 is invariant.
19747 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
19748 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
19749 be called at loop depth 0.
19750
19751 2008-03-02 Jakub Jelinek <jakub@redhat.com>
19752
19753 PR driver/35420
19754 * gcc.c (process_command): Update copyright notice dates.
19755 * gcov.c (print_version): Likewise.
19756 * gcov-dump.c (print_version): Likewise.
19757 * mips-tfile.c (main): Likewise.
19758 * mips-tdump.c (main): Likewise.
19759
19760 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19761
19762 PR 24924
19763 * c-common.c (flag_permissive): Delete.
19764 (constant_expression_warnings): Check flags first.
19765 (constant_expression_error): New.
19766 * c-common.h (flag_permissive): Delete.
19767 (constant_expression_error): Declare.
19768 * flags.h (flag_permissive): Declare. Update description.
19769 * diagnostic.c (pedwarn): Update.
19770 (permerror): New.
19771 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
19772 (permissive_error_kind): New.
19773 * toplev.c (flag_permissive): Define. Update description.
19774 * toplev.h (permissive_error_kind): Declare.
19775 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
19776 (pedwarn_c90): Use pedantic_warning_kind.
19777 * c-opts.c (c_common_post_options): flag_permissive does not affect
19778 flag_pedantic_errors.
19779
19780 2008-03-02 Joseph Myers <joseph@codesourcery.com>
19781
19782 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
19783 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
19784 __absvsi2, __absvDI2): Use unsigned arithmetic.
19785
19786 2008-03-02 Andi Kleen <ak@suse.de>
19787 Richard Guenther <rguenther@suse.de>
19788
19789 * struct-equiv.c: Remove file.
19790 * cfg_cleanup.c (condjump_equiv_p): Remove.
19791 * Makefile.in (OBJS-common): Remove struct-equiv.o.
19792 (struct-equiv.o): Remove rule.
19793 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
19794 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
19795 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
19796
19797 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
19798
19799 * ifcvt.c (noce_process_if_block): Try to handle only the then
19800 block if the else block exists but isn't suitable.
19801
19802 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
19803
19804 PR gcc/35063
19805 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
19806 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
19807 regression from previous patch.
19808
19809 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
19810
19811 PR gcc/35063
19812 * gthr.h: Add __gthread_mutex_destroy as a function that must be
19813 implemented.
19814 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
19815 * gthr-single.h (__gthread_mutex_destroy): Likewise.
19816 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
19817 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
19818 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
19819 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
19820 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
19821 (__gthread_mutex_destroy_function): Rename to
19822 __gthread_mutex_destroy.
19823 * gthr-dce.h (__gthread_mutex_destroy): Call
19824 pthread_mutex_destroy.
19825 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
19826 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
19827 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
19828
19829 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
19830
19831 * df-scan.c (df_ref_chain_change_bb): Simplify.
19832 (df_insn_change_bb): Add new_bb argument. Simplify. Call
19833 set_block_for_insn if there's any change.
19834 * df.h ((df_insn_change_bb): Fix prototype.
19835 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
19836 df_insn_change_bb, don't call set_block_for_insn.
19837 * emit-rtl.c (reorder_insns): Likewise.
19838 * haifa-sched.c (move_insn): Likewise.
19839
19840 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
19841
19842 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
19843
19844 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
19845
19846 * tree-flow-inline.h (next_readonly_imm_use): Return
19847 NULL_USE_OPERAND_P after the end.
19848
19849 2008-03-01 Richard Guenther <rguenther@suse.de>
19850
19851 PR tree-optimization/35411
19852 * tree-sra.c (sra_build_assignment): Split conversion to
19853 final type to a separate statement if we are not assigning
19854 to a register.
19855
19856 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
19857
19858 * fold-const.c (fold_convertible_p): Correct the logic to follow
19859 that in fold_convert().
19860
19861 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
19862
19863 PR c++/35315
19864 * tree-inline.c (build_duplicate_type): When we make a
19865 duplicate type, make it unique in the canonical types system.
19866
19867 2008-02-29 Tom Tromey <tromey@redhat.com>
19868
19869 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
19870 input_file_stack_history, input_file_stack_restored): Remove.
19871 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
19872 * input.h (struct file_stack): Remove.
19873 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
19874 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
19875 Likewise.
19876 * diagnostic.h (struct diagnostic_context) <last_module>: Change
19877 type.
19878 (diagnostic_last_module_changed): Add 'map' argument.
19879 (diagnostic_set_last_function): Likewise.
19880 * diagnostic.c (undiagnostic_report_current_module): Iterate using
19881 line map, not input_file_stack.
19882 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
19883
19884 2008-02-29 Paul Brook <paul@codesourcery.com>
19885
19886 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
19887
19888 2008-02-29 Paul Brook <paul@codesourcery.com>
19889
19890 * config/arm/ieee754-df.S (muldf3): Use RET macros.
19891
19892 2008-02-29 Richard Guenther <rguenther@suse.de>
19893
19894 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
19895 vn_lookup_or_add.
19896 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
19897 value for comparing for a store match.
19898 (simplify_unary_expression): Do nothing for SSA_NAMEs.
19899 (try_to_simplify): Do not do a full-blown reference lookup.
19900
19901 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
19902
19903 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
19904 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
19905
19906 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
19907
19908 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
19909
19910 * tree-loop-linear.c (try_interchange_loops): Compare memory access
19911 strides against cache sizes.
19912
19913 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
19914
19915 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
19916 constant to fpul.
19917
19918 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
19919
19920 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
19921 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
19922 is smaller than the original promoted value.
19923 (simplify_subreg): If OP is a SUBREG, try to preserve its
19924 SUBREG_PROMOTED_VAR_P information.
19925
19926 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
19927
19928 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
19929 (VN_INFO_GET): Allocate new objects on the obstack.
19930 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
19931 for rpo_numbers_temp, for consistency.
19932 (free_scc_vn): Free the obstack.
19933
19934 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
19935
19936 * doc/invoke.texi: Document -ftree-loop-distribution.
19937 * tree-loop-distribution.c: New.
19938 * tree-pass.h (pass_loop_distribution): New.
19939 * graphds.h (struct graph): Add htab_t indices.
19940 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
19941 * tree-vectorizer.c (rename_variables_in_loop): Extern.
19942 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
19943 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
19944 * tree-data-ref.c (debug_data_dependence_relations): New.
19945 (dump_data_dependence_relation): Also print data references.
19946 (free_data_ref): Extern.
19947 (same_access_functions): Moved...
19948 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
19949 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
19950 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
19951 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
19952 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
19953 (stmts_from_loop): Skip LABEL_EXPR.
19954 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
19955 New.
19956 (build_rdg): Initialize rdg->indices htab.
19957 (free_rdg, stores_from_loop, ref_base_address,
19958 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
19959 have_similar_memory_accesses_1, ref_base_address_1,
19960 remove_similar_memory_refs): New.
19961 * tree-data-ref.h: Depend on tree-chrec.h.
19962 (debug_data_dependence_relations, free_data_ref): Declared.
19963 (same_access_functions): ... here.
19964 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
19965 New.
19966 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
19967 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
19968 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
19969 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
19970 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
19971 rdg_vertex_for_stmt): Declared.
19972 (struct rdg_edge): Add level.
19973 (RDGE_LEVEL): New.
19974 (free_rdg, stores_from_loop, remove_similar_memory_refs,
19975 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
19976 Declared.
19977 (rdg_has_similar_memory_accesses): New.
19978 * tree-vect-analyze.c: Remove unused static decls.
19979 * lambda.h (dependence_level): New.
19980 * common.opt (ftree-loop-distribution): New.
19981 * tree-flow.h (mark_virtual_ops_in_bb,
19982 slpeel_tree_duplicate_loop_to_edge_cfg,
19983 rename_variables_in_loop): Declared.
19984 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
19985 (OBJS-common): Add tree-loop-distribution.o.
19986 (tree-loop-distribution.o): New rule.
19987 * tree-cfg.c (mark_virtual_ops_in_bb): New.
19988 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
19989 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
19990
19991 2008-02-28 Joseph Myers <joseph@codesourcery.com>
19992
19993 PR target/33963
19994 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
19995 other than structures and unions.
19996
19997 2008-02-28 Richard Guenther <rguenther@suse.de>
19998
19999 Revert:
20000 2008-02-26 Richard Guenther <rguenther@suse.de>
20001
20002 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
20003 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
20004 (lookup_decl_from_uid): Declare.
20005 (remove_decl_from_map): Likewise.
20006 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
20007 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
20008 (decl_for_uid_map): New global hashtable mapping DECL_UID
20009 to the decl tree.
20010 (init_ttree): Allocate it.
20011 (insert_decl_to_uid_decl_map): New helper function.
20012 (make_node_stat): Insert new decls into the map.
20013 (copy_node_stat): Likewise.
20014 (lookup_decl_from_uid): New function.
20015 (remove_decl_from_map): Likewise.
20016 (print_decl_for_uid_map_statistics): New helper.
20017 (dump_tree_statistics): Call it.
20018
20019 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
20020 (referenced_var_iterator): Adjust.
20021 (FOR_EACH_REFERENCED_VAR): Adjust.
20022 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
20023 (num_referenced_vars): Adjust.
20024 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
20025 (first_referenced_var): Remove.
20026 (end_referenced_vars_p): Likewise.
20027 (next_referenced_var): Likewise.
20028 (referenced_var_iterator_set): New helper function.
20029 * tree-dfa.c (referenced_var_lookup): Adjust.
20030 (referenced_var_check_and_insert): Likewise.
20031 (remove_referenced_var): Likewise.
20032 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
20033 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20034 (verify_call_clobbering): Likewise.
20035 (verify_memory_partitions): Likewise.
20036 (init_tree_ssa): Allocate bitmap instead of hashtable for
20037 referenced_vars.
20038 (delete_tree_ssa): Adjust.
20039 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
20040 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20041 (compute_tag_properties): Likewise.
20042 (set_initial_properties): Likewise.
20043 (find_partition_for): Likewise.
20044 (update_reference_counts): Likewise.
20045 (dump_may_aliases_for): Likewise.
20046 * tree-ssa-operands.c (add_virtual_operand): Likewise.
20047 (add_call_clobber_ops): Likewise.
20048 (add_call_read_ops): Likewise.
20049 (get_asm_expr_operands): Likewise.
20050 * tree-into-ssa.c (dump_decl_set): Likewise.
20051 (update_ssa): Likewise.
20052 * tree-sra.c (scan_function): Likewise.
20053 (decide_instantiations): Likewise.
20054 (scalarize_parms): Likewise.
20055 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
20056 (dsa_named_for): Likewise.
20057 * tree-ssa-structalias.c (update_alias_info): Likewise.
20058 (merge_smts_into): Likewise.
20059
20060 2008-02-27 David Daney <ddaney@avtrex.com>
20061
20062 PR target/34409
20063 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
20064 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
20065 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
20066 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
20067 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
20068
20069 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
20070
20071 PR target/25477
20072 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
20073 (BUILT_IN_NEXTTOWARD): Remove.
20074 (BUILT_IN_NEXTTOWARDF): Ditto.
20075 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
20076 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
20077
20078 2008-02-27 Tom Tromey <tromey@redhat.com>
20079
20080 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
20081 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
20082
20083 2008-02-27 Jan Beulich <jbeulich@novell.com>
20084
20085 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
20086 update the respective field on newdecl.
20087
20088 2008-02-27 Revital Eres <eres@il.ibm.com>
20089
20090 PR rtl-optimization/34999
20091 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
20092 crossing edges that ends with a call insn.
20093 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
20094 call insn and clear the EDGE_CROSSING flag of the crossing edge
20095 when fixing fallthru edges.
20096
20097 2008-02-27 Richard Guenther <rguenther@suse.de>
20098
20099 PR middle-end/35390
20100 * fold-const.c (fold_unary): Return the correct argument,
20101 converted to the result type.
20102
20103 2008-02-27 Richard Guenther <rguenther@suse.de>
20104
20105 PR middle-end/34971
20106 * expr.c (expand_expr_real_1): Assert on rotates that operate
20107 on partial modes.
20108 * fold-const.c (fold_binary): Use the types precision, not the
20109 bitsize of the mode if folding rotate expressions. Build rotates
20110 only for full modes.
20111
20112 2008-02-27 Jakub Jelinek <jakub@redhat.com>
20113
20114 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
20115 and CPP_PRAGMA_EOL.
20116 * c-pragma.c (pragma_ns_name): New typedef.
20117 (registered_pp_pragmas): New variable.
20118 (c_pp_lookup_pragma): New function.
20119 (c_register_pragma_1): If flag_preprocess_only, do nothing
20120 for non-expanded pragmas, for expanded ones push pragma's
20121 namespace and name into registered_pp_pragmas vector.
20122 (c_invoke_pragma_handler): Register OpenMP pragmas even when
20123 flag_preprocess_only, don't register GCC pch_preprocess
20124 pragma if flag_preprocess_only.
20125 * c-opts.c (c_common_init): Call init_pragma even if
20126 flag_preprocess_only.
20127 * c-pragma.c (c_pp_lookup_pragma): New prototype.
20128 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
20129 cpp_register_pragma if flag_preprocess_only.
20130
20131 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20132
20133 PR c/28800
20134 * c-parser.c (c_parser_translation_unit): Warn for empty
20135 translation unit, not empty source file.
20136
20137 2008-02-26 Paul Brook <paul@codesourcery.com>
20138
20139 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
20140 operand for Thumb-2.
20141 * config/arm/arm.h (reg_class): Add CORE_REGS.
20142 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
20143 (BASE_REG_CLASS): Use CORE_REGS.
20144 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
20145 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
20146 (REGNO_OK_FOR_INDEX_P): Exclude SP.
20147 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
20148 ARM_REGNO_OK_FOR_INDEX_P.
20149 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
20150 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
20151 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
20152 (ldm/stm peepholes): Ditto.
20153 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
20154 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
20155 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
20156 * config/arm/constraints.md: Enable "k" constraint on ARM.
20157
20158 2008-02-27 Ben Elliston <bje@au.ibm.com>
20159
20160 * config/rs6000/rs6000.c: Annotate cache line size field in all
20161 instances of struct processor_costs.
20162
20163 2008-02-26 David Edelsohn <edelsohn@gnu.org>
20164
20165 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
20166 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
20167 jump_bypass): New counters.
20168 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
20169 * dce.c (gate_ud_dce): Same.
20170 (gate_fast_dce): Same.
20171 * dse.c (gate_dse1): New function.
20172 (gate_dse2): New function.
20173 (gate_dse): Merge results of new gate functions.
20174 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
20175 (gate_handle_jump_bypass): Add dbg_cnt.
20176 (gate_handle_gcse): Add dbg_cnt.
20177 * ifcvt.c (gate_handle_if_conversion): Same.
20178 (gate_handle_if_after_combine): Same.
20179 (gate_handle_if_after_reload): Same.
20180 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
20181
20182 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
20183
20184 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
20185 line sizes.
20186 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
20187
20188 2008-02-26 Jason Merrill <jason@redhat.com>
20189
20190 PR c++/35315
20191 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
20192 alone if it's the naming decl for the type's main variant.
20193
20194 2008-02-26 Tom Tromey <tromey@redhat.com>
20195
20196 * system.h (USE_MAPPED_LOCATION): Poison.
20197 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
20198 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
20199 (make_goto_expr_edges): Likewise.
20200 (remove_bb): Likewise.
20201 (execute_warn_function_return): Likewise.
20202 * basic-block.h (struct edge_def) <goto_locus>: Change type to
20203 location_t.
20204 * c-common.c (fname_decl): Remove old location code.
20205 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
20206 location code.
20207 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
20208 variant.
20209 (ASM_INPUT_SOURCE_LOCATION): Likewise.
20210 (gen_rtx_ASM_INPUT): Likewise.
20211 (gen_rtx_ASM_INPUT_loc): Likewise.
20212 (get_rtx_asm_OPERANDS): Remove.
20213 * cfglayout.c (insn_locators_alloc): Remove old location code.
20214 (set_curr_insn_source_location): Likewise.
20215 (curr_insn_locator): Likewise.
20216 * print-tree.c (print_node): Remove old location code.
20217 * tree-mudflap.c (mf_varname_tree): Remove old location code.
20218 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
20219 * cfgexpand.c (expand_gimple_cond_expr): Don't use
20220 location_from_locus.
20221 (construct_exit_block): Remove old location code.
20222 * emit-rtl.c (force_next_line_note): Remove old location code.
20223 * profile.c (branch_prob): Remove old location code.
20224 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
20225 LOC_LINE): Remove old-location variants.
20226 * langhooks.c (lhd_print_error_function): Remove old location
20227 code.
20228 * configure, config.in: Rebuilt.
20229 * configure.ac (--enable-mapped-location): Remove.
20230 * c-decl.c (c_init_decl_processing): Remove old location code.
20231 (finish_function): Likewise.
20232 * recog.c (decode_asm_operands): Remove old location code.
20233 * c-pch.c (c_common_read_pch): Remove old location code.
20234 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
20235 variants.
20236 * gimple-low.c (lower_function_body): Remove old location code.
20237 * toplev.c (unknown_location): Remove.
20238 (push_srcloc): Remove old-location variant.
20239 (process_options): Remove old location code.
20240 (lang_dependent_init): Likewise.
20241 * input.h (UNKNOWN_LOCATION): Move definition.
20242 (location_t): Undeprecate.
20243 (source_locus): Remove.
20244 (location_from_locus): Remove.
20245 (struct location_s): Remove.
20246 Remove all old-location code.
20247 (input_line, input_filename): Remove.
20248 * final.c (final_scan_insn): Remove old location code.
20249 * diagnostic.c (diagnostic_build_prefix): Remove
20250 USE_MAPPED_LOCATION test.
20251 * tree.h (gimple_stmt) <locus>: Now a location_t.
20252 (tree_exp) <locus>: Likewise.
20253 (DECL_IS_BUILTIN): Remove old-location variant.
20254 (annotate_with_file_line, annotate_with_locus): Likewise.
20255 (expr_locus, set_expr_locus): Update.
20256 * tree.c (build1_stat): Remove old location code.
20257 (last_annotated_node): Remove.
20258 (annotate_with_file_line): Remove old-location variant.
20259 (annotate_with_locus): Likewise.
20260 (expr_location): Remove old location code.
20261 (set_expr_location): Likewise.
20262 (expr_has_location): Likewise.
20263 (expr_locus): Likewise.
20264 (set_expr_locus): Likewise.
20265 (expr_filename): Don't use location_from_locus.
20266 (expr_lineno): Likewise.
20267 * rtl-error.c (location_for_asm): Remove old location code.
20268 * c-lex.c (cb_line_change): Remove old location code.
20269 (fe_file_change): Likewise.
20270 (cb_def_pragma): Likewise.
20271 (c_lex_with_flags): Likewise.
20272 * gengtype.c (do_typedef): Don't special-case location types.
20273 (define_location_structures): Remove.
20274 (main): Don't call define_location_structures.
20275 * tree-pretty-print.c (dump_implicit_edges): Remove old location
20276 code.
20277
20278 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20279
20280 PR 26264
20281 * builtins.def (BUILT_IN_STDARG_START): Remove.
20282 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
20283 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
20284 * tree-inline.c (inline_forbidden_p_1): Likewise.
20285
20286 2008-02-26 Richard Guenther <rguenther@suse.de>
20287
20288 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
20289 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
20290 (lookup_decl_from_uid): Declare.
20291 (remove_decl_from_map): Likewise.
20292 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
20293 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
20294 (decl_for_uid_map): New global hashtable mapping DECL_UID
20295 to the decl tree.
20296 (init_ttree): Allocate it.
20297 (insert_decl_to_uid_decl_map): New helper function.
20298 (make_node_stat): Insert new decls into the map.
20299 (copy_node_stat): Likewise.
20300 (lookup_decl_from_uid): New function.
20301 (remove_decl_from_map): Likewise.
20302 (print_decl_for_uid_map_statistics): New helper.
20303 (dump_tree_statistics): Call it.
20304
20305 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
20306 (referenced_var_iterator): Adjust.
20307 (FOR_EACH_REFERENCED_VAR): Adjust.
20308 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
20309 (num_referenced_vars): Adjust.
20310 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
20311 (first_referenced_var): Remove.
20312 (end_referenced_vars_p): Likewise.
20313 (next_referenced_var): Likewise.
20314 (referenced_var_iterator_set): New helper function.
20315 * tree-dfa.c (referenced_var_lookup): Adjust.
20316 (referenced_var_check_and_insert): Likewise.
20317 (remove_referenced_var): Likewise.
20318 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
20319 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20320 (verify_call_clobbering): Likewise.
20321 (verify_memory_partitions): Likewise.
20322 (init_tree_ssa): Allocate bitmap instead of hashtable for
20323 referenced_vars.
20324 (delete_tree_ssa): Adjust.
20325 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
20326 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20327 (compute_tag_properties): Likewise.
20328 (set_initial_properties): Likewise.
20329 (find_partition_for): Likewise.
20330 (update_reference_counts): Likewise.
20331 (dump_may_aliases_for): Likewise.
20332 * tree-ssa-operands.c (add_virtual_operand): Likewise.
20333 (add_call_clobber_ops): Likewise.
20334 (add_call_read_ops): Likewise.
20335 (get_asm_expr_operands): Likewise.
20336 * tree-into-ssa.c (dump_decl_set): Likewise.
20337 (update_ssa): Likewise.
20338 * tree-sra.c (scan_function): Likewise.
20339 (decide_instantiations): Likewise.
20340 (scalarize_parms): Likewise.
20341 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
20342 (dsa_named_for): Likewise.
20343 * tree-ssa-structalias.c (update_alias_info): Likewise.
20344 (merge_smts_into): Likewise.
20345
20346 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20347
20348 PR 34351
20349 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
20350 * c-opts.c (c_common_handle_option): Wall enables
20351 Wvolatile-register-var.
20352 * common.opt: Move Wvolatile-register-var to...
20353 * c.opt: ...here.
20354
20355 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20356
20357 * common.opt (Wlarger-than=): New.
20358 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
20359 -Wlarger-than=.
20360 * opts.c (common_handle_option): Handle -Wlarger-than=.
20361 * optc-gen.awk: Likewise.
20362 * opth-gen.awk: Likewise.
20363 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
20364 * tree-optimize.c (tree_rest_of_compilation): Likewise.
20365
20366 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20367
20368 * c-common.c (match_case_to_enum_1): Add appropriate
20369 OPT_W* parameter to warning.
20370 (c_do_switch_warnings): Likewise.
20371 * c-typeck.c (warning_init): Add one more parameter following
20372 'warning' function.
20373 (push_init_level): Update call to warning_init.
20374 (pop_init_level): Likewise.
20375 (add_pending_init): Likewise.
20376 (output_init_element: Likewise.
20377
20378 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20379
20380 PR 28322
20381 * toplev.c (toplev_main): If there are warnings or error, print
20382 errors for ignored options.
20383 * opts.c (ignored_options): New static variable.
20384 (postpone_unknown_option_error): New.
20385 (print_ignored_options): New.
20386 (handle_option): Postpone errors for unknown -Wno-* options.
20387 * opts.h (print_ignored_options): Declare.
20388
20389 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
20390
20391 * config/mips/mips.md (loadgp_blockage, blockage): Change type
20392 to "ghost".
20393
20394 2008-02-25 Richard Guenther <rguenther@suse.de>
20395
20396 Revert:
20397 2008-02-25 Richard Guenther <rguenther@suse.de>
20398
20399 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
20400 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
20401 (lookup_decl_from_uid): Declare.
20402 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
20403 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
20404 (decl_for_uid_map): New global hashtable mapping DECL_UID
20405 to the decl tree.
20406 (init_ttree): Allocate it.
20407 (insert_decl_to_uid_decl_map): New helper function.
20408 (make_node_stat): Insert new decls into the map.
20409 (copy_node_stat): Likewise.
20410 (lookup_decl_from_uid): New function.
20411 (print_decl_for_uid_map_statistics): New helper.
20412 (dump_tree_statistics): Call it.
20413
20414 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
20415 (referenced_var_iterator): Adjust.
20416 (FOR_EACH_REFERENCED_VAR): Adjust.
20417 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
20418 (num_referenced_vars): Adjust.
20419 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
20420 (first_referenced_var): Remove.
20421 (end_referenced_vars_p): Likewise.
20422 (next_referenced_var): Likewise.
20423 (referenced_var_iterator_set): New helper function.
20424 * tree-dfa.c (referenced_var_lookup): Adjust.
20425 (referenced_var_check_and_insert): Likewise.
20426 (remove_referenced_var): Likewise.
20427 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
20428 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20429 (verify_call_clobbering): Likewise.
20430 (verify_memory_partitions): Likewise.
20431 (init_tree_ssa): Allocate bitmap instead of hashtable for
20432 referenced_vars.
20433 (delete_tree_ssa): Adjust.
20434 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
20435 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20436 (compute_tag_properties): Likewise.
20437 (set_initial_properties): Likewise.
20438 (find_partition_for): Likewise.
20439 (update_reference_counts): Likewise.
20440 (dump_may_aliases_for): Likewise.
20441 * tree-ssa-operands.c (add_virtual_operand): Likewise.
20442 (add_call_clobber_ops): Likewise.
20443 (add_call_read_ops): Likewise.
20444 (get_asm_expr_operands): Likewise.
20445 * tree-into-ssa.c (dump_decl_set): Likewise.
20446 (update_ssa): Likewise.
20447 * tree-sra.c (scan_function): Likewise.
20448 (decide_instantiations): Likewise.
20449 (scalarize_parms): Likewise.
20450 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
20451 (dsa_named_for): Likewise.
20452 * tree-ssa-structalias.c (update_alias_info): Likewise.
20453 (merge_smts_into): Likewise.
20454
20455 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
20456
20457 PR fortran/29549
20458 * doc/invoke.texi (-fcx-limited-range): Document new option.
20459 * toplev.c (process_options): Handle -fcx-fortran-rules.
20460 * common.opt: Add documentation for -fcx-fortran-rules.
20461
20462 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
20463
20464 PR c/35162
20465 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
20466 actual behaviour and C99.
20467
20468 2008-02-26 Ben Elliston <bje@au.ibm.com>
20469
20470 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
20471 (ASM_CPU_POWER6_SPEC): Likewise.
20472 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
20473 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
20474 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
20475
20476 2008-02-25 Richard Guenther <rguenther@suse.de>
20477
20478 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
20479 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
20480 (lookup_decl_from_uid): Declare.
20481 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
20482 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
20483 (decl_for_uid_map): New global hashtable mapping DECL_UID
20484 to the decl tree.
20485 (init_ttree): Allocate it.
20486 (insert_decl_to_uid_decl_map): New helper function.
20487 (make_node_stat): Insert new decls into the map.
20488 (copy_node_stat): Likewise.
20489 (lookup_decl_from_uid): New function.
20490 (print_decl_for_uid_map_statistics): New helper.
20491 (dump_tree_statistics): Call it.
20492
20493 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
20494 (referenced_var_iterator): Adjust.
20495 (FOR_EACH_REFERENCED_VAR): Adjust.
20496 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
20497 (num_referenced_vars): Adjust.
20498 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
20499 (first_referenced_var): Remove.
20500 (end_referenced_vars_p): Likewise.
20501 (next_referenced_var): Likewise.
20502 (referenced_var_iterator_set): New helper function.
20503 * tree-dfa.c (referenced_var_lookup): Adjust.
20504 (referenced_var_check_and_insert): Likewise.
20505 (remove_referenced_var): Likewise.
20506 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
20507 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20508 (verify_call_clobbering): Likewise.
20509 (verify_memory_partitions): Likewise.
20510 (init_tree_ssa): Allocate bitmap instead of hashtable for
20511 referenced_vars.
20512 (delete_tree_ssa): Adjust.
20513 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
20514 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20515 (compute_tag_properties): Likewise.
20516 (set_initial_properties): Likewise.
20517 (find_partition_for): Likewise.
20518 (update_reference_counts): Likewise.
20519 (dump_may_aliases_for): Likewise.
20520 * tree-ssa-operands.c (add_virtual_operand): Likewise.
20521 (add_call_clobber_ops): Likewise.
20522 (add_call_read_ops): Likewise.
20523 (get_asm_expr_operands): Likewise.
20524 * tree-into-ssa.c (dump_decl_set): Likewise.
20525 (update_ssa): Likewise.
20526 * tree-sra.c (scan_function): Likewise.
20527 (decide_instantiations): Likewise.
20528 (scalarize_parms): Likewise.
20529 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
20530 (dsa_named_for): Likewise.
20531 * tree-ssa-structalias.c (update_alias_info): Likewise.
20532 (merge_smts_into): Likewise.
20533
20534 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
20535
20536 PR target/35258
20537 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
20538 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
20539 * alias.h (nonoverlapping_memrefs_p): Likewise.
20540
20541 2008-02-25 Jan Beulich <jbeulich@novell.com>
20542
20543 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
20544 * config/i386/netware-libgcc.exp: Add __bswap?i2,
20545 __emultls_get_address, __emultls_register_common,
20546 __floatundi?f, and _Unwind_GetIPInfo.
20547 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
20548 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
20549 (gen_regparm_prefix): Likewise.
20550 (i386_nlm_encode_section_info): Sync with
20551 config/i386/winnt.c:i386_pe_encode_section_info().
20552 (i386_nlm_maybe_mangle_decl_assembler_name): New.
20553 i386_nlm_mangle_decl_assembler_name): New.
20554 (netware_override_options): New.
20555 * config/i386/netware.h (netware_override_options): Declare.
20556 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
20557 (i386_nlm_mangle_decl_assembler_name): Declare.
20558 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
20559
20560 2008-02-25 Ben Elliston <bje@au.ibm.com>
20561
20562 PR other/32948
20563 * c-decl.c (grokdeclarator): Remove unused local variables
20564 `typedef_type' and `type_as_written'.
20565 * bb-reorder.c
20566 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
20567 unused local variable `has_hot_blocks'.
20568 (fix_crossing_conditional_branches): Remove unused local variable
20569 `prev_bb'.
20570
20571 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
20572
20573 PR middle-end/19984
20574 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
20575 using DEF_C99_BUILTIN.
20576 (BUILT_IN_NANF): Ditto.
20577 (BUILT_IN_NANL): Ditto.
20578
20579 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
20580 Revital Eres <eres@il.ibm.com>
20581
20582 * modulo-sched.c (calculate_must_precede_follow): Address TODO
20583 regarding the order of two dependent insns in the same row.
20584
20585 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
20586
20587 * stor-layout.c (layout_decl): Do not bump the alignment of a
20588 bit-field to more than byte alignment if it is packed.
20589
20590 2008-02-24 David Edelsohn <edelsohn@gnu.org>
20591
20592 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
20593 e300c2 and e300c3.
20594
20595 2008-02-24 Diego Novillo <dnovillo@google.com>
20596
20597 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
20598
20599 PR 33738
20600 * tree-vrp.c (vrp_evaluate_conditional): With
20601 -Wtype-limits, emit a warning when comparing against a
20602 constant outside the natural range of OP0's type.
20603 * c.opt (Wtype-limits): Move ...
20604 * common.opt (Wtype-limits): ... here.
20605
20606 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
20607
20608 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
20609 * config/rs6000/e300c2c3.md: New file.
20610 * config/rs6000/rs6000.c (processor_costs): Add new costs for
20611 e300c2 and e300c3.
20612 (rs6000_override_options): Add e300c2 and e300c3 cases to
20613 processor_target_table. Do not allow usage of Altivec or Spe
20614 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
20615 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
20616 * config/rs6000/rs6000.h (processor_type): Add
20617 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
20618 (ASM_CPU_SPEC): Add e300c2 and e300c3.
20619 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
20620 and ppce300c3. Include e300c2c3.md.
20621
20622 2008-02-23 David Edelsohn <edelsohn@gnu.org>
20623
20624 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
20625 instead of TARGET_STRICT_ALIGN.
20626
20627 2008-02-23 Joseph Myers <joseph@codesourcery.com>
20628
20629 * explow.c (memory_address): Assert that the generated address is
20630 valid.
20631
20632 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
20633
20634 PR target/25477
20635 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
20636 * config/darwin-ppc-ldouble-patch.def: New file.
20637 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
20638 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
20639 SUBTARGET_INIT_BUILTINS if defined.
20640 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
20641 New functions.
20642
20643 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
20644
20645 PR rtl-opt/33512
20646 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
20647 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
20648
20649 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
20650
20651 PR pch/35027
20652 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
20653 file" warning condtional on -Winvalid-PCH.
20654
20655 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
20656
20657 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
20658
20659 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
20660
20661 PR target/22076
20662 PR target/34256
20663 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
20664 prevent reload from using MMX registers.
20665 (*mov<mode>_internal): Ditto.
20666 (*movv2sf_internal_rex64): Ditto.
20667 (*movv2sf_internal): Ditto.
20668
20669 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20670
20671 PR documentation/31569
20672 * doc/install.texi2html: Use makeinfo --no-number-sections.
20673
20674 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
20675
20676 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
20677 ensure that we can address an entire entity > 8 bytes. Don't
20678 generate reg+reg addressing for such data.
20679
20680 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
20681
20682 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
20683 strings when optimizing for size, unless the target cares about
20684 alignment.
20685
20686 2008-02-22 Tom Tromey <tromey@redhat.com>
20687
20688 * regclass.c (current_pass): Remove declaration.
20689
20690 2008-02-22 Anatoly Sokolov <aesok@post.ru>
20691
20692 * config/avr/libgcc.S (__RAMPZ__): Define.
20693 (__do_copy_data): Add for devices with 128KB code memory.
20694
20695 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
20696
20697 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
20698 Use spe_abi.
20699 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
20700
20701 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
20702
20703 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
20704 GENNONACR_REGS.
20705
20706 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20707
20708 PR c/19999
20709 * c-typeck.c (build_binary_op): Warn about floating point
20710 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
20711
20712 2008-02-21 Janis Johnson <janis187@us.ibm.com>
20713
20714 PR target/34526
20715 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
20716 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
20717 add vrsave.
20718 (rs6000_override_options): Set altivec_abi as default, not override,
20719 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
20720 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
20721 is used; use new member spe_abi.
20722 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
20723 spe_abi and altivec_abi.
20724
20725 2008-02-22 Tomas Bily <tbily@suse.cz>
20726
20727 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
20728
20729 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20730
20731 PR bootstrap/35273
20732 * config.build (build_file_translate): Set to `CMD //c' only if
20733 it works.
20734 * Makefile.in (build_file_translate): Improve comment.
20735
20736 2008-02-21 Jan Hubicka <jh@suse.cz>
20737
20738 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
20739 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
20740 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
20741
20742 2008-02-21 Michael Matz <matz@suse.de>
20743
20744 PR target/35264
20745 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
20746
20747 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
20748
20749 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
20750 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
20751 as insn constraint.
20752 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
20753 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
20754 SSE_VEC_FLOAT_MODE_P as insn constraint.
20755 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
20756 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
20757 sse4a_movntdf using MODEF mode iterator.
20758 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
20759 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
20760 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
20761 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
20762 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
20763 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
20764 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
20765
20766 2008-02-21 Richard Guenther <rguenther@suse.de>
20767
20768 * tree.def (PAREN_EXPR): New tree code.
20769 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
20770 and PAREN_EXPR.
20771 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
20772 * expr.c (expand_expr_real_1): Likewise.
20773 * tree-inline.c (estimate_num_insns_1): Likewise.
20774 * tree-complex.c (expand_complex_move): Likewise.
20775 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
20776 as plain x.
20777
20778 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
20779
20780 PR target/35225
20781 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
20782
20783 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
20784
20785 PR target/35190
20786 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
20787
20788 * config/sh/sh.c (find_barrier): Don't go past
20789 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
20790
20791 2008-02-20 DJ Delorie <dj@redhat.com>
20792
20793 * config/h8300/h8300.md (insv): Force source operand to be a register.
20794
20795 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
20796 as a jump, not as a plain insn.
20797
20798 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
20799
20800 * doc/invoke.texi (Warning Options): Add new option
20801 -Wframe-larger-than=.
20802 (-Wframe-larger-than): Document.
20803
20804 * flags.h (warn_frame_larger_than, frame_larger_than_size):
20805 Add declarations for new option variables.
20806
20807 * final.c (final_start_function): Check the frame size
20808 before emission and issue a Wframe-larger-than warning.
20809
20810 * opts.c (warn_frame_larger_than, frame_larger_than_size):
20811 Add definitions for new option variables.
20812 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
20813
20814 * common.opt (Wframe-larger-than=): New option.
20815
20816 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
20817
20818 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
20819 (<sse>_div<mode>3): Ditto.
20820 (<sse>_vmdiv<mode>3): Ditto.
20821 (<sse>_vmsqrt<mode>2): Ditto.
20822 (*smax<mode>3): Ditto.
20823 (sse5_frcz<mode>2): Ditto.
20824 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
20825 as insn constraint.
20826
20827 2008-02-20 Richard Guenther <rguenther@suse.de>
20828
20829 PR middle-end/35265
20830 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
20831 be happy with INTEGRAL_TYPE_P.
20832
20833 2008-02-20 Richard Guenther <rguenther@suse.de>
20834
20835 * fold-const.c (split_tree): Associate floatig-point expressions
20836 if flag_associative_math is set.
20837
20838 2008-02-20 Richard Guenther <rguenther@suse.de>
20839
20840 * tree.h (fold_real_zero_addition_p): Declare.
20841 * fold-const.c (fold_real_zero_addition_p): Export.
20842 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
20843 floating-point operations with zero and one.
20844
20845 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
20846
20847 * doc/install.texi: Correct references to CFLAGS, replacing them
20848 with BOOT_CFLAGS. Document flags used during bootstrap for
20849 target libraries.
20850
20851 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
20852
20853 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
20854 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
20855 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
20856 insn constraint.
20857 (smin<mode>3): Ditto from similar patterns.
20858 (smax<mode>3): Ditto.
20859 (*ieee_smin<mode>3): Ditto.
20860 (*ieee_smax<mode>3): Ditto.
20861 * config/i386/sse.md (sse): New mode attribute.
20862 (mov<mode>): Macroize expander from movv4sf and movv2df using
20863 SSEMODEF2P mode iterator.
20864 (<sse>_movnt<mode>): Ditto from similar patterns. Use
20865 SSE_VEC_FLOAT_MODE_P as insn constraint.
20866 (storent<mode>): Ditto.
20867 (storent<mode>): Macroize expander from storentsf and storentdf using
20868 MODEF mode iterator.
20869 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
20870 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
20871 (abs<mode>2): Ditto from similar patterns.
20872 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
20873 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
20874 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
20875 (<sse>_vmsqrt<mode>2): Ditto.
20876 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
20877 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
20878 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
20879 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
20880 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
20881 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
20882 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
20883 insn constraint.
20884 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
20885 iterator and SSE_FLOAT_MODE_P as insn constraint.
20886 (<sse>_ucomi): Ditto from similar patterns.
20887 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
20888 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
20889 SSE_VEC_FLOAT_MODE_P as insn constraint.
20890 (vcond<mode>): Ditto from similar patterns.
20891 (and<mode>3, *and<mode>3): Ditto.
20892 (<sse>_nand<mode>3): Ditto.
20893 (ior<mode>3, *ior<mode>3): Ditto.
20894 (xor<mode>3, *xor<mode>3): Ditto.
20895 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
20896 iterator and SSE_FLOAT_MODE_P as insn constraint.
20897 (*nand<mode>3): Ditto from similar patterns.
20898 (*ior<mode>3): Ditto.
20899 (*xor<mode>3): Ditto.
20900
20901 2008-02-20 Ira Rosen <irar@il.ibm.com>
20902
20903 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
20904 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
20905 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
20906
20907 2008-02-19 Jan Hubicka <jh@suse.cz>
20908
20909 * predict.c (tree_bb_level_predictions): Remove variable next
20910 mistakely introduced by previous commit.
20911
20912 2008-02-19 Jan Hubicka <jh@suse.cz>
20913
20914 * predict.c (predict_paths_leading_to): Rewrite.
20915 (predict_paths_for_bb): New.
20916 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
20917
20918 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20919
20920 PR bootstrap/35218
20921 * Makefile.in (build_file_translate): New.
20922 (gcc-vers.texi): Use it for translating $(abs_srcdir).
20923 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
20924 * configure.ac (build_file_translate): Substitute it.
20925 * configure: Regenerate.
20926
20927 2008-02-19 Jan Hubicka <jh@suse.cz>
20928
20929 PR rtl-optimization/34408
20930 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
20931 invalid sharing.
20932
20933 2008-02-19 Jan Hubicka <jh@suse.cz>
20934
20935 PR middle-end/28779
20936 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
20937 call_expr.
20938
20939 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
20940
20941 PR Ada/35186
20942 * config/i386/i386-modes.def: Revert the last DI alignment
20943 change until Ada people can look into it.
20944
20945 2008-02-19 Nick Clifton <nickc@redhat.com>
20946
20947 * opts.c (print_specific_help): Fix typo in --help text.
20948
20949 2008-02-19 Jakub Jelinek <jakub@redhat.com>
20950
20951 PR target/35239
20952 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
20953 32-bit inline asm without asm alternatives for host GCC < 3.0.
20954
20955 2008-02-19 Richard Guenther <rguenther@suse.de>
20956
20957 PR tree-optimization/34989
20958 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
20959 Allow propagation to INDIRECT_REF if we can simplify only.
20960
20961 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20962
20963 * c-common.c (warn_for_collisions_1): Use appropriate option when
20964 warning.
20965
20966 2008-02-19 Nick Clifton <nickc@redhat.com>
20967
20968 PR other/31349
20969 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
20970 (handle_options): Fix indentation.
20971 (print_filtered_help): If no language-specific options were
20972 displayed tell the user how to list all the options supported by
20973 the language's front-end.
20974 (print_specific_help): Fix indentation and remove duplicate line.
20975 (common_handle_option): Handle the -v option.
20976 For --help enable the display of undocumented options if the -v
20977 switch has been included on the command line.
20978 For --help= check for overlaps in the arguments between the option
20979 classes and the language names and issue a warning when they
20980 cannot be disambiguated.
20981 * c.opt (v): Pass on to the common option handler.
20982
20983 2008-02-19 Revital Eres <eres@il.ibm.com>
20984
20985 * modulo-sched.c (sms_schedule): Change dump message when
20986 create_ddg function fails.
20987 (try_scheduling_node_in_cycle): Rename row to cycle.
20988 (print_partial_schedule): Rename CYCLE to ROW.
20989
20990 2008-02-19 Christian Bruel <christian.bruel@st.com>
20991 Zdenek Dvorak <ook@ucw.cz>
20992
20993 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
20994
20995 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
20996
20997 PR target/33555
20998 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
20999 (*x86_movdicc_0_m1_se): Ditto.
21000
21001 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
21002
21003 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
21004 (CMPtype): Define as __gcc_CMPtype.
21005 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
21006 (CMPtype): Define as __gcc_CMPtype.
21007
21008 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
21009
21010 Support valgrind 3.3 for --enable-checking=valgrind.
21011 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
21012 here.
21013 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
21014 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
21015 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
21016 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
21017 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
21018 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
21019 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
21020 respectively.
21021 * ggc-zone.c: Similar.
21022 * ggc-page.c: Similar.
21023
21024 2008-02-19 Paul Brook <paul@codesourcery.com>
21025
21026 PR target/35071
21027 * config/arm/ieee754-df.S: Fix do_it typo.
21028 * config/arm/ieee754-sf.S: Fix do_it typo.
21029
21030 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
21031
21032 PR target/35189
21033 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
21034 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
21035 (OPTION_MASK_ISA_SSE_SET): Likewise.
21036 (OPTION_MASK_ISA_SSE2_SET): Likewise.
21037 (OPTION_MASK_ISA_SSE3_SET): Likewise.
21038 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
21039 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
21040 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
21041 (OPTION_MASK_ISA_SSE4_SET): Likewise.
21042 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
21043 (OPTION_MASK_ISA_SSE5_SET): Likewise.
21044 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
21045 (OPTION_MASK_ISA_MMX_UNSET): Updated.
21046 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
21047 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
21048 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
21049 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
21050 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
21051 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
21052 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
21053 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
21054 (OPTION_MASK_ISA_SSE4): Removed.
21055 (ix86_handle_option): Turn on bits in ix86_isa_flags and
21056 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
21057 (override_options): Don't turn on implied SSE/MMX bits in
21058 ix86_isa_flags.
21059
21060 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
21061
21062 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
21063 32bit host.
21064
21065 2008-02-18 Joey Ye <joey.ye@intel.com>
21066
21067 PR middle-end/34921
21068 * tree-nested.c (insert_field_into_struct): Set type alignment
21069 to field alignment if the former is less than the latter.
21070
21071 2008-02-18 Jakub Jelinek <jakub@redhat.com>
21072
21073 * BASE-VER: Set to 4.4.0.
21074
21075 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21076
21077 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
21078 * doc/cfg.texi: Likewise.
21079 * doc/extend.texi: Likewise.
21080 * doc/gty.texi: Likewise.
21081 * doc/invoke.texi: Likewise.
21082 * doc/loop.texi: Likewise.
21083 * doc/md.texi: Likewise.
21084 * doc/passes.texi: Likewise.
21085 * doc/rtl.texi: Likewise.
21086 * doc/sourcebuild.texi: Likewise.
21087 * doc/tm.texi: Likewise.
21088 * doc/tree-ssa.texi: Likewise.
21089
21090 2008-02-17 Richard Guenther <rguenther@suse.de>
21091
21092 PR middle-end/35227
21093 * tree-complex.c (init_parameter_lattice_values): Handle parameters
21094 without default definition.
21095
21096 2008-02-17 Richard Guenther <rguenther@suse.de>
21097
21098 PR tree-optimization/35231
21099 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
21100 if A | B != 1.
21101
21102 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
21103
21104 Revert:
21105 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
21106 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
21107 libgcc_cmp_return mode.
21108
21109 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21110
21111 PR c/28368
21112 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
21113
21114 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
21115
21116 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
21117 multilibs.
21118
21119 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21120
21121 * doc/c-tree.texi: Use `@.' where appropriate.
21122 * doc/extend.texi: Likewise.
21123 * doc/install.texi: Likewise.
21124 * doc/invoke.texi: Likewise.
21125 * doc/loop.texi: Likewise.
21126 * doc/makefile.texi: Likewise.
21127 * doc/md.texi: Likewise.
21128 * doc/passes.texi: Likewise.
21129 * doc/standards.texi: Likewise.
21130 * doc/tm.texi: Likewise.
21131
21132 2008-02-15 Jakub Jelinek <jakub@redhat.com>
21133
21134 PR middle-end/35196
21135 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
21136 in entry_bb.
21137 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
21138 rather than in entry_bb.
21139
21140 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
21141
21142 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
21143 libgcc_cmp_return mode.
21144
21145 2008-02-15 Jakub Jelinek <jakub@redhat.com>
21146
21147 PR middle-end/35130
21148 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
21149 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
21150
21151 2008-02-15 Richard Guenther <rguenther@suse.de>
21152 Zdenek Dvorak <ook@ucw.cz>
21153
21154 PR tree-optimization/35164
21155 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
21156 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
21157 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
21158 Only propagate addresses which do not have abnormal SSA_NAMEs
21159 in their operands.
21160
21161 2008-02-15 Joseph Myers <joseph@codesourcery.com>
21162
21163 PR target/35088
21164 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
21165
21166 2008-02-15 Jan Hubicka <jh@suse.cz>
21167
21168 PR middle-end/35149
21169 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
21170
21171 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
21172
21173 PR middle-end/34621
21174 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
21175 when calculating alignment_pad.
21176
21177 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
21178
21179 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
21180 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
21181 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
21182 and STACK_BOUNDARY define.
21183
21184 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
21185
21186 PR preprocessor/35061
21187 * c-pragma.c (handle_pragma_pop_macro): Check that
21188 pushed_macro_table has been allocated.
21189
21190 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
21191
21192 PR middle-end/35136
21193 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
21194 (force_gimple_operand): Likewise.
21195 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
21196 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
21197 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
21198 (find_interesting_uses_address): Check addressability and alignment
21199 of the base expression only after substituting bases of IVs into it.
21200
21201 2008-02-14 Michael Matz <matz@suse.de>
21202
21203 PR target/34930
21204 * function.c (instantiate_virtual_regs_in_insn): Reload address
21205 before falling back to reloading the whole operand.
21206
21207 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
21208
21209 * config/s390/s390.c (s390_mainpool_start): Emit the pool
21210 before the first section switch note.
21211
21212 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21213
21214 * doc/bugreport.texi: Update copyright years.
21215 * doc/c-tree.texi: Likewise.
21216 * doc/cfg.texi: Likewise.
21217 * doc/cpp.texi: Likewise.
21218 * doc/cppinternals.texi: Likewise.
21219 * doc/fragments.texi: Likewise.
21220 * doc/frontends.texi: Likewise.
21221 * doc/gcc.texi: Likewise.
21222 * doc/gty.texi: Likewise.
21223 * doc/hostconfig.texi: Likewise.
21224 * doc/implement-c.texi: Likewise.
21225 * doc/libgcc.texi: Likewise.
21226 * doc/loop.texi: Likewise.
21227 * doc/makefile.texi: Likewise.
21228 * doc/options.texi: Likewise.
21229 * doc/passes.texi: Likewise.
21230 * doc/rtl.texi: Likewise.
21231 * doc/sourcebuild.texi: Likewise.
21232 * doc/standards.texi: Likewise.
21233 * doc/tree-ssa.texi: Likewise.
21234 * doc/trouble.texi: Likewise.
21235
21236 * doc/extend.texi: Use @: or add comma where appropriate.
21237 * doc/invoke.texi: Likewise.
21238 * doc/tm.texi: Likewise.
21239
21240 2008-02-14 Alan Modra <amodra@bigpond.net.au>
21241
21242 PR target/34393
21243 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
21244 to a reg.
21245
21246 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
21247
21248 * doc/md.texi (clz, ctz): Add reference.
21249 * doc/rtl.texi (clz, ctz): Likewise.
21250
21251 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21252
21253 PR other/35148
21254 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
21255 srcdir.
21256
21257 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
21258
21259 * config/s390/s390.c (struct constant_pool): New field
21260 emit_pool_after added.
21261 (s390_mainpool_start): Set the emit_pool_after flag according
21262 to the section switch notes.
21263 (s390_mainpool_finish): Consider emit_pool_after when emitting
21264 the literal pool at the end of the function.
21265 (s390_chunkify_start): Force literal pool splits at section
21266 switch notes.
21267
21268 2008-02-13 Michael Matz <matz@suse.de>
21269
21270 PR debug/35065
21271 * var-tracking.c (clobber_variable_part): Correctly traverse the
21272 list.
21273
21274 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21275
21276 PR 29673
21277 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
21278 Add -fdump-ipa-inline.
21279 * tree-dump.c (dump_files): Remove tree-inlined dump.
21280 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
21281
21282 2008-02-12 Richard Guenther <rguenther@suse.de>
21283
21284 PR tree-optimization/35171
21285 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
21286 default defs.
21287
21288 2008-02-12 Richard Guenther <rguenther@suse.de>
21289
21290 PR middle-end/35163
21291 * fold-const.c (fold_widened_comparison): Use get_unwidened in
21292 value-preserving mode. Disallow final truncation.
21293
21294 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
21295
21296 PR middle-end/35136
21297 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
21298 code from here to...
21299 (force_gimple_operand): ...here.
21300
21301 2008-02-12 Jakub Jelinek <jakub@redhat.com>
21302
21303 PR c++/35144
21304 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
21305 non-compatible pointers.
21306 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
21307 different FIELD_DECLs, try harder by comparing field offsets, sizes
21308 and types.
21309
21310 PR inline-asm/35160
21311 * function.c (match_asm_constraints_1): Don't replace the same input
21312 multiple times.
21313
21314 2008-02-12 Anatoly Sokolov <aesok@post.ru>
21315
21316 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
21317 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
21318 (expand_epilogue): Restore RAMPZ register.
21319 * config/avr/avr.md (RAMPZ_ADDR): New constant.
21320
21321 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
21322
21323 * config/i386/cygwin.asm: (__alloca): Correct calling
21324 convention and alignment.
21325 (__chkstk): Force 8 byte stack alignment.
21326
21327 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
21328 Richard Guenther <rguenther@suse.de>
21329
21330 PR tree-optimization/33992
21331 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
21332 the zero we compare against.
21333
21334 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
21335
21336 PR libfortran/35063
21337 * gthr-win32.h (__gthread_mutex_destroy_function): New function
21338 to CloseHandle after unlocking to prevent accumulation of handle
21339 count.
21340
21341 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21342
21343 PR middle_end/34150
21344 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
21345 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
21346 and update LABEL_NUSES during and after reload.
21347
21348 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
21349
21350 PR middle-end/34627
21351 * combine.c (simplify_if_then_else): Make sure the comparison is
21352 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
21353
21354 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
21355
21356 PR bootstrap/35051
21357 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
21358 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
21359 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
21360 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
21361 * tree.h (get_type_static_bounds): Likewise.
21362
21363 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21364
21365 * doc/invoke.texi (Option Summary, C++ Dialect Options)
21366 (Objective-C and Objective-C++ Dialect Options, Warning Options):
21367 Make -Wfoo language annotations match what the compiler outputs.
21368
21369 2008-02-08 Sa Liu <saliu@de.ibm.com>
21370
21371 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
21372 intrinsics spu_convts, spu_convtu, spu_convtf.
21373
21374 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
21375
21376 * doc/extend.texi (Function Attributes) <noinline>: Mention
21377 asm ("") as method to keep calls.
21378
21379 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21380
21381 PR other/32754
21382 * doc/options.texi (Options): Replace references to opts.sh with
21383 optc-gen.awk.
21384 * opts-common.c: Likewise.
21385 * optc-gen.awk: Likewise.
21386
21387 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
21388
21389 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
21390
21391 2008-02-07 Richard Henderson <rth@redhat.com>
21392
21393 PR rtl-opt/33410
21394 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
21395 EXPR_LIST for the REG_EQUAL instead of a comparison with a
21396 funny mode.
21397
21398 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
21399
21400 PR tree-optimization/35085
21401 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
21402 for operand entry oe2 in addition to operand entry oe3 in order to
21403 expose more opportunities for vectorizer sum reduction.
21404
21405 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21406
21407 PR other/35107
21408 * Makefile.in (LIBS): Remove $(GMPLIBS).
21409 (cc1-dummy, cc1): Add $(GMPLIBS).
21410
21411 2008-02-06 Jan Hubicka <jh@suse.cz>
21412
21413 PR target/23322
21414 * i386.md (moddf_integer): Do not produce partial memory stalls for
21415 targets where it hurts.
21416
21417 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
21418
21419 PR target/35083
21420 * optabs.c (expand_float): Do not check for decimal modes when
21421 expanding unsigned integer through signed conversion.
21422
21423 2008-02-06 Nick Clifton <nickc@redhat.com>
21424
21425 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
21426 inside the clobber with a match_operand and duplicated operand
21427 number in the constraint.
21428 (ineqbranchsi): Delete redundant comment.
21429
21430 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
21431
21432 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
21433 builtin_define ("__USE_INIT_FINI__").
21434 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
21435 -msx multilibs.
21436 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
21437
21438 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21439
21440 PR documentation/30330
21441 * doc/invoke.texi (C++ Dialect Options)
21442 (Objective-C and Objective-C++ Dialect Options, Warning Options):
21443 For each warning option -Wfoo that allows -Wno-foo, ensure both
21444 -Wfoo and -Wno-foo are listed in the option index. Fix index
21445 entry of -Wswitch-default, index -Wnormalized= including the
21446 `=', and -Wlarger-than-@var{len} including @var{len}.
21447
21448 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
21449
21450 * config/i386/i386.md (floatunssisf2): Use
21451 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
21452 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
21453 Macroize expander using MODEF mode iterator.
21454
21455 2008-02-05 Diego Novillo <dnovillo@google.com>
21456
21457 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
21458
21459 PR 33738
21460 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
21461
21462 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21463
21464 PR other/35070
21465 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
21466
21467 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
21468
21469 PR target/35084
21470 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
21471 to indicate if a message should be generated.
21472 (init_cumulative_args): Updated.
21473 (function_value_32): Likewise.
21474
21475 2008-02-05 Joseph Myers <joseph@codesourcery.com>
21476
21477 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
21478
21479 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
21480
21481 PR target/35083
21482 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
21483 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
21484
21485 2008-02-04 Diego Novillo <dnovillo@google.com>
21486
21487 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
21488
21489 PR 33738
21490 * tree-vrp.c (vrp_evaluate_conditional): With
21491 -Wtype-limits, emit a warning when comparing against a
21492 constant outside the natural range of OP0's type.
21493
21494 2008-02-04 Richard Guenther <rguenther@suse.de>
21495
21496 PR middle-end/33631
21497 * expr.c (count_type_elements): Give for unions instead of
21498 guessing.
21499
21500 2008-02-04 Richard Guenther <rguenther@suse.de>
21501
21502 PR middle-end/35043
21503 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
21504 to TYPE_DOMAINs base type instead of using bitsizetype here.
21505
21506 2008-02-03 Jason Merrill <jason@redhat.com>
21507
21508 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
21509
21510 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21511
21512 PR other/29972
21513 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
21514 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
21515 (RS/6000 and PowerPC Options): Fix typos and markup.
21516 * doc/passes.texi (Tree-SSA passes): Likewise.
21517
21518 2008-02-02 Michael Matz <matz@suse.de>
21519
21520 PR target/35045
21521 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
21522 from record_last_reg_set_info.
21523 (record_last_reg_set_info): Take an RTX argument, iterate over all
21524 constituent hardregs.
21525 (record_last_set_info, record_opr_changes): Change calls to
21526 new signature or to record_last_reg_set_info_regno.
21527
21528 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
21529
21530 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
21531
21532 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
21533
21534 PR rtl-optimization/34773
21535 * reg-notes.def (EQUAL): Mention significance of combination of
21536 REG_EQUAL and REG_RETVAL.
21537 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
21538 insn that has a REG_RETVAL.
21539
21540 2008-02-01 Roger Sayle <roger@eyesopen.com>
21541
21542 PR bootstrap/33781
21543 * configure.ac (--enable-fixed-point): Disable unless explicitly
21544 requested on IRIX.
21545 * configure: Regenerate.
21546
21547 2008-02-01 Richard Guenther <rguenther@suse.de>
21548
21549 PR other/35042
21550 * invoke.texi (-finline-limit): Remove no longer true parts
21551 of the documentation. Note that there is no default value.
21552
21553 2008-02-01 Andrew Pinski <pinskia@gmail.com>
21554 Mark Mitchell <mark@codesourcery.com>
21555 Ben Elliston <bje@au.ibm.com>
21556
21557 PR c/29326
21558 * doc/extend.texi (Other Builtins): Document.
21559
21560 2008-01-31 Tom Browder <tom.browder@gmail.com>
21561
21562 * doc/c-tree.texi (Types): Fix grammar.
21563 (Expression trees): Ditto.
21564 * doc/passes.texi (Tree-SSA passes): Ditto.
21565
21566 * doc/configterms.texi (Configure Terms): Fix typo.
21567 * doc/cpp.texi (Common Predefined Macros): Ditto.
21568 * doc/md.texi (Machine Constraints): Ditto.
21569
21570 * doc/makefile.texi (Makefile): Add comma.
21571
21572 2008-01-31 Tom Browder <tom.browder@gmail.com>
21573 Gerald Pfeifer <gerald@pfeifer.com>
21574
21575 * doc/sourcebuild.texi (Front End): Remove references to CVS
21576 and CVSROOT/modules.
21577 (Texinfo Manuals): Replace reference to CVS by one to SVN.
21578 (Back End): Remove reference to CVS.
21579
21580 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
21581
21582 PR target/34900
21583 * config/mips/mips.c (gen_load_const_gp): New function, taking a
21584 comment from...
21585 (mips16_gp_pseudo_reg): ...here.
21586 * config/mips/mips.md (load_const_gp): Replace with...
21587 (load_const_gp_<mode>): ...this :P-based insn.
21588
21589 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21590
21591 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
21592 options. Minor fixes.
21593 (-std): Move reference to standards closer to where language
21594 standards are first mentioned.
21595
21596 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
21597
21598 PR rtl-optimization/34995
21599 * reload.c (alternative_allows_const_pool_ref): Take an rtx
21600 parameter and return a bool. If the rtx parameter is nonnull,
21601 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
21602 (find_reloads): Update call accordingly. Pass the new operand
21603 if it needed no address reloads, otherwise pass null.
21604
21605 2008-01-30 Richard Henderson <rth@redhat.com>
21606
21607 PR c/34993
21608 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
21609 for unbounded arrays.
21610
21611 2008-01-30 Silvius Rus <rus@google.com>
21612
21613 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
21614
21615 2008-01-30 Jan Hubicka <jh@suse.cz>
21616
21617 PR target/34982
21618 * i386.c (init_cumulative_args): Use real function declaration when
21619 calling locally.
21620
21621 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
21622
21623 PR rtl-optimization/34998
21624 * global.c (build_insn_chain): Treat non-subreg_lowpart
21625 SUBREGs of pseudos as clobbering all the words covered by the
21626 SUBREG, not just all the bytes.
21627 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
21628 original df_ref rather than an extract parameter.
21629 (global_conflicts): Update call accordingly.
21630
21631 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
21632
21633 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
21634 the overflow check to make it easier to read.
21635 (__fixtfdi): Change the type of the ll member in union
21636 long_double to UDItype_x.
21637
21638 2008-01-30 Jakub Jelinek <jakub@redhat.com>
21639
21640 PR middle-end/34969
21641 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
21642 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
21643 * tree-inline.c (fold_marked_statements): Call
21644 cgraph_update_edges_for_call_stmt if folding a call statement.
21645 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
21646 debug_generic_stmt calls, reset it back afterwards.
21647
21648 PR c/35017
21649 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
21650 static decls.
21651 * c-typeck.c (build_external_ref): Don't pedwarn about
21652 static vars in current function's scope.
21653
21654 2008-01-29 Joseph Myers <joseph@codesourcery.com>
21655
21656 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
21657
21658 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
21659
21660 PR c/35002
21661 * ipa-struct-reorg.c: Fix spelling.
21662 * params.def: Ditto.
21663
21664 2008-01-29 Richard Guenther <rguenther@suse.de>
21665
21666 PR middle-end/35006
21667 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
21668 field.
21669 * tree-inline.c (remap_type): Increment remapping_type_depth
21670 around remapping types.
21671 (copy_body_r): Only add referenced variables if they are referenced
21672 from code, not types.
21673
21674 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
21675
21676 PR c++/34055
21677 PR c++/34103
21678 PR c++/34219
21679 PR c++/34606
21680 PR c++/34753
21681 PR c++/34754
21682 PR c++/34755
21683 PR c++/34919
21684 PR c++/34961
21685 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
21686 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
21687
21688 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
21689
21690 PR target/34412
21691 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
21692 pointer for tiny stack.
21693
21694 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
21695
21696 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
21697
21698 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
21699
21700 * config/vx-common.h: Fix typo in comment.
21701
21702 2008-01-28 Ian Lance Taylor <iant@google.com>
21703
21704 PR c++/34862
21705 PR c++/33407
21706 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
21707 coalesce pointers if they have different DECL_NO_TBAA_P values.
21708 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
21709 between variables with different DECL_NO_TBAA_P values.
21710
21711 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
21712
21713 PR 31535
21714 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
21715 are not legitimate small data references on SPE targets.
21716
21717 2008-01-28 David Daney <ddaney@avtrex.com>
21718
21719 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
21720
21721 2008-01-28 David Daney <ddaney@avtrex.com>
21722
21723 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
21724
21725 2008-01-27 Joseph Myers <joseph@codesourcery.com>
21726
21727 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
21728 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
21729 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
21730 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
21731 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
21732 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
21733 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
21734 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
21735
21736 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
21737
21738 * basic-block.h (condjump_equiv_p): Fix comment.
21739
21740 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
21741
21742 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
21743 print_generic_stmt_indented): Fix comment.
21744
21745 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
21746
21747 * configure.ac (__stack_chk_fail): Add detecion for availability
21748 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
21749 * configure: Regenerate.
21750
21751 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
21752
21753 PR middle-end/34688
21754 * final.c (output_addr_const): Handle TRUNCATE.
21755
21756 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
21757
21758 PR target/34711
21759 * tree-ssa-loop-ivopts.c (comp_cost): New type.
21760 (zero_cost, infinite_cost): New constants.
21761 (struct cost_pair): Change type of cost to comp_cost.
21762 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
21763 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
21764 New functions.
21765 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
21766 split_address_cost, ptr_difference_cost, difference_cost,
21767 get_computation_cost_at, get_computation_cost,
21768 determine_use_iv_cost_generic, determine_use_iv_cost_address,
21769 determine_use_iv_cost_condition, determine_use_iv_costs,
21770 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
21771 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
21772 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
21773 Change type of cost to comp_cost.
21774 (determine_iv_cost): Increase cost of non-original ivs, instead
21775 of decreasing the cost of original ones.
21776 (get_address_cost): Indicate the complexity of the addressing mode
21777 in comp_cost.
21778 (try_add_cand_for): Prefer using ivs not specific to some object.
21779 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
21780
21781 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
21782 Janis Johnson <janis187@us.ibm.com>
21783
21784 PR target/34814
21785 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
21786 (TARGET_INSTANTIATE_DECLS): Likewise.
21787 * target.h (expand_to_rtl_hook): New target hook.
21788 (instantiate_decls): Likewise.
21789 * function.c (instantiate_decl): Make non-static. Rename to...
21790 (instantiate_decl_rtl): ... this.
21791 (instantiate_expr): Use instantiate_decl_rtl.
21792 (instantiate_decls_1): Likewise.
21793 (instantiate_decls): Likewise.
21794 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
21795 * function.h (instantiate_decl_rtl): Add prototype.
21796 * cfgexpand.c (target.h): New include.
21797 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
21798 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
21799 (TARGET_INSTANTIATE_DECLS): Likewise.
21800 (TARGET_INITIALIZER): New target hooks added.
21801 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
21802 New prototype.
21803 * config/rs6000/rs6000.c (tree-flow.h): New include.
21804 (machine_function): Add sdmode_stack_slot field.
21805 (rs6000_alloc_sdmode_stack_slot): New function.
21806 (rs6000_instantiate_decls): Likewise.
21807 (rs6000_secondary_memory_needed_rtx): Likewise.
21808 (rs6000_check_sdmode): Likewise.
21809 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
21810 (TARGET_INSTANTIATE_DECLS): Likewise.
21811 (rs6000_hard_regno_mode_ok): Allow SDmode.
21812 (num_insns_constant): Likewise. Handle _Decimal32 constants.
21813 (rs6000_emit_move): Handle SDmode.
21814 (function_arg_advance): Likewise.
21815 (function_arg): Likewise.
21816 (rs6000_gimplify_va_arg): Likewise. Add special handling of
21817 SDmode var args for 32-bit compiles.
21818 (rs6000_secondary_reload_class): Handle SDmode.
21819 (rs6000_output_function_epilogue): Likewise.
21820 (rs6000_function_value): Simplify if statement.
21821 (rs6000_libcall_value): Likewise.
21822 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
21823 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
21824 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
21825 (movsd_hardfloat): New define_insn.
21826 (movsd_softfloat): Likewise.
21827 (movsd_store): Likewise.
21828 (movsd_load): Likewise.
21829 (extendsddd2): Likewise.
21830 (extendsdtd2): Likewise.
21831 (truncddsd2): Likewise.
21832 (movdd_hardfloat64): Fixup comment.
21833 (UNSPEC_MOVSD_LOAD): New constant.
21834 (UNSPEC_MOVSD_STORE): Likewise.
21835
21836 2008-01-26 Jakub Jelinek <jakub@redhat.com>
21837
21838 PR c++/34965
21839 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
21840 TRUTH_XOR_EXPR.
21841 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
21842 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
21843 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
21844 and TRUTH_XOR_EXPR.
21845
21846 2008-01-26 David Edelsohn <edelsohn@gnu.org>
21847
21848 PR target/34794
21849 * config.gcc: Separate AIX 5.3 from AIX 6.1.
21850 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
21851 __LONGDOUBLE128 too.
21852 * config/rs6000/aix61.h: New file.
21853
21854 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
21855
21856 PR rtl-optimization/34959
21857 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
21858 popcount and parity rtxes the same mode as their operand.
21859 Truncate or extend the result to the return value's mode
21860 if necessary.
21861
21862 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
21863
21864 PR target/34981
21865 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
21866 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
21867 to GOT_VERSION_REGNUM.
21868 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
21869 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
21870 * config/mips/mips.c (mips_emit_call_insn): New function.
21871 (mips_call_tls_get_addr): Call mips_expand_call directly.
21872 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
21873 emit_call_insn.
21874 (mips16_build_call_stub): Likewise. Return the call insn or null.
21875 (mips_expand_call): Update the call to mips16_build_call_stub
21876 accordingly and a remove redundant condition. Assert that MIPS16
21877 stubs do not use lazy binding. Use mips_emit_call_insn and return
21878 the call insn.
21879 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
21880 TARGET_USE_GOT.
21881 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
21882 (mips_avoid_hazard): Remove hazard_set handling.
21883 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
21884 (UNSPEC_RESTORE_GP): ...this.
21885 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
21886 (FAKE_CALL_REGNO): Rename to...
21887 (GOT_VERSION_REGNUM): ...this.
21888 (type): Add "ghost" value. Add an associated insn reservation.
21889 (hazard_set): Remove.
21890 (exception_receiver): Rename to...
21891 (restore_gp): ...this and update the unspec identifier accordingly.
21892 (exception_receiver, nonlocal_got_receiver): New expanders.
21893 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
21894 FAKE_CALL_REGNO. Remove hazard_set attribute.
21895 (set_got_version, update_got_version): New patterns.
21896
21897 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
21898
21899 PR target/34970
21900 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
21901
21902 2008-01-25 Joseph Myers <joseph@codesourcery.com>
21903
21904 PR other/31955
21905 * doc/install.texi2html: Generate gcc-vers.texi.
21906
21907 2008-01-25 DJ Delorie <dj@redhat.com>
21908
21909 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
21910
21911 2008-01-25 Joseph Myers <joseph@codesourcery.com>
21912
21913 * config/c4x: Remove directory.
21914 * config.gcc (crx-*, mt-*): Mark obsolete.
21915 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
21916 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
21917 sh-*-rtemscoff*): Remove cases.
21918 * defaults.h (C4X_FLOAT_FORMAT): Remove.
21919 * real.c (encode_c4x_single, decode_c4x_single,
21920 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
21921 c4x_extended_format): Remove.
21922 * real.h (c4x_single_format, c4x_extended_format): Remove.
21923 * doc/extend.texi (interrupt, naked): Remove mention of attributes
21924 on C4x.
21925 (Pragmas): Remove comment about c4x pragmas.
21926 * doc/install.texi (c4x): Remove target-specific instructions.
21927 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
21928 * doc/md.texi (Machine Constraints): Remove C4x documentation.
21929 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
21930 refer to C4x source files as examples.
21931 (C4X_FLOAT_FORMAT): Remove documentation.
21932
21933 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
21934
21935 * config/bfin/bfin.c (override_options): Reorder tests so that
21936 flag_pic gets enabled for -msep-data.
21937
21938 2008-01-25 Richard Guenther <rguenther@suse.de>
21939
21940 PR middle-end/32244
21941 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
21942 to its bitfield precision if required.
21943
21944 2008-01-25 Jakub Jelinek <jakub@redhat.com>
21945
21946 PR middle-end/33880
21947 * tree-nested.c (walk_omp_for): New function.
21948 (convert_nonlocal_reference, convert_local_reference): Call
21949 walk_omp_for on OMP_FOR.
21950 (convert_call_expr): Call walk_body on OMP_FOR's
21951 OMP_FOR_PRE_INIT_BODY.
21952
21953 2008-01-25 Richard Guenther <rguenther@suse.de>
21954
21955 PR tree-optimization/34966
21956 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
21957 default defs and PHI_NODEs we have to insert after the
21958 defining statement.
21959
21960 2008-01-24 Nick Clifton <nickc@redhat.com>
21961
21962 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
21963 Provide a default definition.
21964 (LIBGCC2_UNITS_PER_WORD): Likewise.
21965
21966 * config/stormy16/stormy16.c: Include df.h for the prototype
21967 for df_regs_ever_live_p.
21968 (xstormy16_expand_builtin_va_start): Convert the stack offset
21969 into a component_ref and then use POINTER_PLUS_EXPR to add it
21970 to the incoming_virtual_args_rtx.
21971 (xstormy16_gimplify_va_arg_expr): Rename to
21972 xstormy16_gimplify_va_arg_expr.
21973 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
21974 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
21975 xstormy16_gimplify_va_arg_expr.
21976 Fix up some formatting issues.
21977
21978 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
21979 Move to predicates.md.
21980 (xs_hi_general_operand): Likewise.
21981 (xs_hi_nonmemory_operand): Likewise.
21982 * config/stormy16/predicates.md:
21983 (xstormy16_carry_plus_operand): New predicate.
21984 (xs_hi_general_operand): New predicate.
21985 (xs_hi_nonmemory_operand): New predicate.
21986 * config/stormy16/stormy16-protos.h:
21987 (xstormy16_carry_plus_operand): Delete prototype.
21988 (xs_hi_general_operand): Likewise.
21989 (xs_hi_nonmemory_operand): Likewise.
21990
21991 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
21992 modifiers as they are no longer needed and they can trigger
21993 reload spill failures.
21994
21995 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
21996 with a match_operand in order to help reload.
21997
21998 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
21999 constraint with 'e' for the 8th alternative as this version of
22000 the mov.w instruction only accepts the lower 8 registers.
22001
22002 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
22003
22004 PR target/34856
22005 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
22006 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
22007 vector elements.
22008
22009 2008-01-25 Jakub Jelinek <jakub@redhat.com>
22010
22011 PR middle-end/33333
22012 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
22013
22014 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
22015
22016 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
22017 New functions.
22018 (remove_structure): Update allocations list before removing structure.
22019
22020 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
22021
22022 * ipa-struct-reorg.c (is_safe_cond_expr,
22023 create_new_stmts_for_cond_expr): Use integer_zerop function,
22024 that recognize not only zero-pointer, but zero-integer too.
22025
22026 2008-01-25 Ben Elliston <bje@au.ibm.com>
22027
22028 PR other/22232
22029 * fixproto: Escape "." in sed expression that strips leading "./".
22030
22031 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
22032
22033 PR driver/34904
22034 * gcc.c (SWITCH_OK): Removed.
22035 (SWITCH_LIVE): Changed to bit.
22036 (SWITCH_FALSE): Likewise.
22037 (SWITCH_IGNORE): Likewise.
22038 (switchstr): Change live_cond to unsigned int.
22039 (process_command): Replace SWITCH_OK with 0.
22040 (do_self_spec): Likewise.
22041 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
22042 (give_switch): Likewise.
22043 (used_arg): Likewise.
22044 (do_spec_1): Set the SWITCH_IGNORE bit.
22045 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
22046 bits. Set the SWITCH_LIVE bit.
22047
22048 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
22049
22050 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
22051
22052 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
22053
22054 PR tree-optimization/34472
22055 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
22056 parameter to a "bool *" and set *DATA to false if there is
22057 an unsafe access. Do not delete the structure here.
22058 (check_cond_exprs): Delete it here instead.
22059 (check_cond_exprs, exclude_cold_structs): Do not increase
22060 I when removing a structure.
22061
22062 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
22063
22064 PR target/34856
22065 * config/i386/i386.c (ix86_expand_vector_init): Consider only
22066 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
22067
22068 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
22069
22070 PR middle-end/34934
22071 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
22072 a fixed vector for stack.
22073
22074 2008-01-24 Ben Elliston <bje@au.ibm.com>
22075
22076 PR c++/25701
22077 * doc/gcc.texi (Software development): Add a direntry for g++.
22078
22079 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
22080
22081 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
22082 stale and straggling -fforce-addr comments above.
22083
22084 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
22085 define.
22086 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
22087 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
22088
22089 2008-01-23 Michael Matz <matz@suse.de>
22090
22091 PR debug/34895
22092 * dwarf2out.c (force_type_die): Use modified_type_die instead of
22093 gen_type_die.
22094
22095 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
22096
22097 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
22098 malloc result type.
22099
22100 2008-01-23 Anatoly Sokolov <aesok@post.ru>
22101
22102 * config/avr/avr.c (avr_current_arch): New variable.
22103 (avr_arch_types): Add 'avr31' and 'avr51' entries.
22104 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
22105 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
22106 (avr_override_options): Init 'avr_current_arch'.
22107 (base_arch_s): Move from here...
22108 * config/avr/avr.h (base_arch_s): ... here. Add new members
22109 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
22110 'mega' to 'have_jmp_call'.
22111 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
22112 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
22113 macros.
22114 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
22115 architectures.
22116 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
22117 MULTILIB_MATCHES): Ditto.
22118
22119 2008-01-23 Richard Guenther <rguenther@suse.de>
22120
22121 PR middle-end/31529
22122 * cgraphunit.c (cgraph_reset_node): Always mark the node
22123 not reachable if it is not queued already.
22124
22125 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
22126
22127 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
22128 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
22129 (cputype_selected): New static variable.
22130 (bfin_handle_option): Set it if -mcpu is used.
22131 (override_option): Select default set of workarounds if no cpu type
22132 selected on the command line.
22133 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
22134
22135 From Michael Frysinger <michael.frysinger@analog.com>
22136 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
22137 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
22138
22139 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
22140 for bf547, bf523, bf524, and bf526.
22141 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
22142 bf526.
22143 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
22144 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
22145 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
22146 __ADSPBF547__ and __ADSPBF54x__ for bf547.
22147 * doc/invoke.texi (Blackfin Options): Document that
22148 -mcpu now accept bf547, bf523, bf524, and bf526.
22149
22150 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
22151
22152 PR rtl-optimization/34628
22153 * combine.c (try_combine): Stop and undo after the first combination
22154 if an autoincrement side-effect on the first insn has effectively
22155 been lost.
22156
22157 2008-01-22 David Edelsohn <edelsohn@gnu.org>
22158
22159 PR target/34529
22160 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
22161 Offset addresses are not valid for Altivec or paired float modes.
22162
22163 2008-01-22 Jakub Jelinek <jakub@redhat.com>
22164
22165 PR c++/34607
22166 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
22167 if DECL_INITIAL (decl) is error_mark_node.
22168
22169 PR c++/34914
22170 * c-common.c (handle_vector_size_attribute): Only allow
22171 integral, scalar float and fixed point types. Handle OFFSET_TYPE
22172 the same way as pointer, array etc. types.
22173 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
22174
22175 PR c++/34917
22176 * tree.c (build_type_attribute_qual_variant): Call
22177 build_qualified_type if attributes are equal, but quals are not.
22178
22179 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22180
22181 PR 32102
22182 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
22183 * flags.h (warn_strict_aliasing): Remove.
22184 (warn_strict_overflow): Remove.
22185 * opts.c (warn_strict_aliasing): Remove.
22186 (warn_strict_overflow): Remove.
22187 * c-opts.c (c_common_handle_option): -Wall only sets
22188 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
22189 (c_common_post_options): Give default values to -Wstrict-aliasing
22190 and -Wstrict-overflow if they are uninitialized.
22191 * common.opt (Wstrict-aliasing): Specify Var and Init.
22192 (Wstrict-overflow): Likewise.
22193
22194 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
22195
22196 PR rtl-optimization/26854
22197 PR rtl-optimization/34400
22198 PR rtl-optimization/34884
22199 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
22200 DF_RD->gen.
22201 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
22202 (df_rd_bb_info.expanded_lr_out): Deleted
22203 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
22204 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
22205 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
22206 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
22207 Removed code to allocate, initialize or free expanded_lr_out.
22208 (df_rd_bb_local_compute_process_def): Restructured to make more
22209 understandable.
22210 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
22211 sets if the sets are being trimmed.
22212
22213 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
22214
22215 PR bootstrap/32287
22216 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
22217 (as_vers): Likewise.
22218 * configure: Regenerated.
22219
22220 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22221
22222 PR middle-end/33092
22223 * tree-pass.h (pass_build_alias): New pass.
22224 * tree-ssa-alias.c (gate_build_alias): New.
22225 (pass_build_alias): New.
22226 * passes.c (init_optimization_passes): Add pass_build_alias after
22227 pass_create_structure_vars.
22228
22229 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
22230
22231 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
22232 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
22233 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
22234 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
22235 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
22236 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
22237 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
22238 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
22239 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
22240 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
22241 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
22242 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
22243 * config/s390/s390.md (FP_ALL): New mode iterator.
22244 (_d): New mode attribute.
22245 ("*signbit<mode>2>"): Changed mode of first operand.
22246 ("isinf<mode>2"): Changed mode of first operand.
22247 ("*TDC_insn"): Adaptation for DFP modes.
22248
22249 2008-01-22 Ben Elliston <bje@au.ibm.com>
22250
22251 * tree.c (check_qualified_type): Improve function description.
22252
22253 2008-01-21 Jason Merrill <jason@redhat.com>
22254
22255 PR c++/34196
22256 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
22257 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
22258 if it is set.
22259
22260 2008-01-21 DJ Delorie <dj@redhat.com>
22261
22262 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
22263 return zero.
22264
22265 2008-01-21 Richard Guenther <rguenther@suse.de>
22266
22267 PR middle-end/34856
22268 * tree-cfg.c (verify_expr): Allow all invariant expressions
22269 instead of just constant class ones as reference argument.
22270 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
22271 like any other constant.
22272 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
22273
22274 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
22275
22276 * regmove.c (fixup_match_1): Update call crossed frequencies.
22277
22278 2008-01-21 Richard Guenther <rguenther@suse.de>
22279
22280 PR c/34885
22281 * tree-inline.c (setup_one_parameter): Deal with mismatched
22282 types using a VIEW_CONVERT_EXPR.
22283
22284 2008-01-21 Alon Dayan <alond@il.ibm.com>
22285 Olga Golovanevsky <olga@il.ibm.com>
22286
22287 PR tree-optimization/34701
22288 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
22289 when the structure size is not a power of 2.
22290
22291 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
22292
22293 * doc/install.texi: Add doc for --enable-checking=df.
22294
22295 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
22296
22297 PR rtl-optimization/34808
22298 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
22299
22300 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
22301
22302 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
22303 input.
22304
22305 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
22306
22307 PR rtl-optimization/26854
22308 PR rtl-optimization/34400
22309 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
22310 DF_RD->gen.
22311 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
22312 (df_rd_bb_info.expanded_lr_out): New.
22313 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
22314 * loop_iv.c (iv_analysis_loop_init): Ditto.
22315 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
22316 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
22317 Added code to allocate, initialize or free expanded_lr_out.
22318 (df_rd_bb_local_compute_process_def): Restructured to make
22319 more understandable.
22320 (df_rd_confluence_n): Add code to do nothing with fake edges and
22321 code to no apply invalidate_by_call sets if the sets are being trimmed.
22322 (df_lr_local_finalize): Renamed to df_lr_finalize.
22323 (df_live_local_finalize): Renamed to df_live_finalize.
22324
22325 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
22326
22327 PR target/34831
22328 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
22329 deciding whether to use reciprocal instructions.
22330
22331 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
22332
22333 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
22334 dwarf2out_note_section_used if cold_text_section is NULL.
22335
22336 2008-01-19 Jakub Jelinek <jakub@redhat.com>
22337
22338 PR gcov-profile/34610
22339 * tree-cfg.c (make_edges): Mark both outgoing edges from
22340 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
22341 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
22342 from OMP_FOR and OMP_CONTINUE outgoing edges.
22343
22344 * tree-profile.c (tree_profiling): Return early if
22345 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
22346 at the end.
22347 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
22348 from cfun to child_cfun.
22349 * function.h (struct function): Add after_tree_profile bit.
22350
22351 2008-01-19 Anatoly Sokolov <aesok@post.ru>
22352
22353 * config/avr/avr.S (_exit): Disable interrupt.
22354
22355 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
22356 Steven Bosscher <stevenb.gcc@gmail.com>
22357
22358 PR rtl-optimization/26854
22359 PR rtl-optimization/34400
22360 * df-problems.c (df_live_scratch): New scratch bitmap.
22361 (df_live_alloc): Allocate df_live_scratch when doing df_live.
22362 (df_live_reset): Clear the proper bitmaps.
22363 (df_live_bb_local_compute): Only process the artificial defs once
22364 since the order is not important.
22365 (df_live_init): Init the df_live sets only with the variables
22366 found live by df_lr.
22367 (df_live_transfer_function): Use the df_lr sets to prune the
22368 df_live sets as they are being computed.
22369 (df_live_free): Free df_live_scratch.
22370
22371 2008-01-18 Ian Lance Taylor <iant@google.com>
22372
22373 * common.opt: Add fmerge-debug-strings.
22374 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
22375 flag_merge_debug_strings rather than flag_merge_constants.
22376 * doc/invoke.texi (Option Summary): Mention
22377 -fmerge-debug-strings.
22378 (Debugging Options): Document -fmerge-debug-strings.
22379
22380 2008-01-18 Ian Lance Taylor <iant@google.com>
22381
22382 PR c++/33407
22383 * tree.h (DECL_IS_OPERATOR_NEW): Define.
22384 (struct tree_function_decl): Add new field operator_new_flag.
22385 * tree-inline.c (expand_call_inline): When inlining a call to
22386 operator new, force the return value to go into a variable, and
22387 set DECL_NO_TBAA_P on that variable.
22388 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
22389
22390 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
22391
22392 PR debug/34484
22393 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
22394 DWARF2_DEBUGGING_INFO.
22395 (dwarf2out_note_section_used): Ditto. Add prototype.
22396 (have_multiple_function_sections, text_section_used,
22397 cold_text_section_used, *cold_text_sections): Move declarations
22398 before their uses.
22399
22400 2008-01-17 Bob Wilson <bob.wilson@acm.org>
22401
22402 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
22403 field and add signal_ra.
22404 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
22405 assignments to frame state pc. Move end of stack check after
22406 MD_FALLBACK_FRAME_STATE_FOR.
22407 (uw_update_context_1): Use frame state signal_regs if set, instead
22408 of checking signal_frame flag.
22409 (uw_update_context): Use frame state signal_ra if set.
22410 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
22411 * config/xtensa/linux-unwind.h: New file.
22412
22413 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
22414
22415 * modulo-sched.c (get_sched_window): Fix comment typo.
22416
22417 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
22418
22419 PR tree-optimization/34648
22420 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
22421
22422 2008-01-17 Anatoly Sokolov <aesok@post.ru>
22423
22424 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
22425 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
22426
22427 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
22428
22429 PR rtl-optimization/34400
22430 * df-core.c (df_worklist_dataflow_overeager,
22431 df_worklist_dataflow_doublequeue): New functions.
22432 (df_worklist_dataflow): Two different worklist solvers.
22433 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
22434 New param.
22435
22436 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
22437
22438 PR testsuite/34821
22439 * doc/invoke.texi: Document the dependence on pthread for fopenmp
22440 and ftree-parallelize-loops.
22441
22442 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
22443
22444 PR rtl-optimization/34826
22445 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
22446
22447 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
22448
22449 * global.c (find_reg): Mark the eh regs as used if necessary.
22450 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
22451 * ra.h (struct allocno): no_eh_reg field added. Changed
22452 no_stack_reg type to bitfield.
22453
22454 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
22455
22456 * tree.c (substitute_in_expr): Add missing 'break'.
22457
22458 2008-01-17 Richard Guenther <rguenther@suse.de>
22459
22460 PR tree-optimization/34825
22461 * tree-ssa-math-opts.c (is_division_by): Do not recognize
22462 x / x as division to handle.
22463
22464 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22465
22466 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
22467 "-pthread" is specified.
22468 * pa-hpux11.h (LIB_SPEC): Likewise.
22469
22470 2008-01-16 Janis Johnson <janis187@us.ibm.com>
22471 Peter Bergner <bergner@vnet.ibm.com>
22472
22473 PR rtl-optimization/33796
22474 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
22475
22476 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22477
22478 PR libgfortran/34699
22479 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
22480 static links.
22481 * pa-hpux10.h (LINK_SPEC): Likewise.
22482 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
22483
22484 2008-01-16 Richard Guenther <rguenther@suse.de>
22485
22486 PR middle-end/32628
22487 * fold-const.c (fold_convert_const_int_from_int): Do not
22488 set overflow if that occured only because of a sign extension
22489 change when converting from/to a sizetype with the same
22490 precision and signedness.
22491
22492 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
22493
22494 PR debug/34249
22495 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
22496 location address to the correct place. Update copyright year.
22497
22498 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
22499
22500 * lambda-code.c (lambda_transform_legal_p): Handle the case of
22501 no dependences in the dependence_relations vector.
22502
22503 2008-01-16 Jan Hubicka <jh@suse.cz>
22504
22505 PR rtl-optimization/31396
22506 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
22507 * cfg.c (dump_reg_info): Print it.
22508 * regs.h (struct reg_info_t): add freq_calls_crossed.
22509 (REG_FREQ_CALLS_CROSSED): New macro.
22510 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
22511 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
22512 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
22513 regmove_optimize): Update call crossed frequencies.
22514 * local-alloc.c (struct qty): Add freq_calls_crossed.
22515 (alloc_qty): Copute freq_calls_crossed.
22516 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
22517 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
22518 * ra.h (struct allocno): Add freq_calls_crossed.
22519
22520 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
22521
22522 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
22523 libgomp when compiling with ftree-parallelize-loops.
22524 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
22525
22526 2008-01-16 Richard Guenther <rguenther@suse.de>
22527
22528 PR tree-optimization/34769
22529 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
22530 * tree.c (int_cst_value): Instead make this function more
22531 permissive in what it accepts as valid input. Document this
22532 function always sign-extends the value.
22533
22534 2008-01-16 Jakub Jelinek <jakub@redhat.com>
22535 Richard Guenther <rguenther@suse.de>
22536
22537 PR c/34668
22538 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
22539 (gimple_fold_indirect_ref_rhs): ... this.
22540 (gimple_fold_indirect_ref): New function with foldings
22541 that preserve lvalueness.
22542 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
22543 * tree-flow.h (gimple_fold_indirect_ref): Declare.
22544 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
22545 to fold an INDIRECT_REF, fall back to the old use of
22546 fold_indirect_ref_1.
22547
22548 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
22549
22550 * tree-data-ref.c (subscript_dependence_tester_1): Call
22551 free_conflict_function.
22552 (compute_self_dependence): Same.
22553
22554 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
22555
22556 PR debug/34249
22557 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
22558 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
22559 function global.
22560 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
22561 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
22562 for DWARF2_UNWIND_INFO targets.
22563
22564 2008-01-16 Richard Guenther <rguenther@suse.de>
22565
22566 PR c/34768
22567 * c-typeck.c (common_pointer_type): Do not merge inconsistent
22568 type qualifiers for function types.
22569
22570 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
22571
22572 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
22573 loop_iterator li from previous commit.
22574
22575 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
22576
22577 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
22578
22579 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
22580
22581 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
22582 (parallelize_loops): Don't parallelize irreducible components.
22583
22584 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22585
22586 PR c++/24924
22587 * c-opts (c_common_post_options): Do not enable CPP
22588 flag_pedantic_errors by default.
22589
22590 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
22591
22592 PR rtl-optimization/31944
22593 * cse.c (remove_pseudo_from_table): New function.
22594 (merge_equiv_classes): Use above function to remove pseudo-registers.
22595 (invalidate): Likewise.
22596
22597 2008-01-13 Richard Guenther <rguenther@suse.de>
22598
22599 PR middle-end/34601
22600 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
22601 instead of TYPE_MODE to deal with calls from expand_one_error_var.
22602
22603 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
22604
22605 * gcse.c (cprop_jump): Call validate_unshare_change instead of
22606 validate_change to unshare the source of the PC set.
22607
22608 2008-01-12 Jan Hubicka <jh@suse.cz>
22609
22610 PR middle-end/32135
22611 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
22612 references above array bounds. This might trigger bounds checks for
22613 pointers to arrays.
22614
22615 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
22616
22617 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
22618 new_replaceable_dependencies.
22619
22620 2008-01-12 Doug Kwan <dougkwan@google.com>
22621
22622 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
22623 instead of OPT_Wreturn_type in warning due to ignored return type
22624 qualifiers.
22625 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
22626 options included in -Wextra.
22627 * c.opt: New option -Wignored_qualifiers.
22628 * doc/invoke.texi (Warning Options, -Wextra): Add new option
22629 -Wignore_qualifiers.
22630 (-Wignored-qualifiers): Document.
22631 (-Wreturn-type): Remove description of functionality now handled
22632 by -Wignored-qualifiers.
22633
22634 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
22635
22636 PR ada/33788
22637 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
22638 NOP_EXPR if it is between integral types with the same precision.
22639
22640 2008-01-12 Jan Hubicka <jh@suse.cz>
22641
22642 PR other/28023
22643 * invoke.texi (max-inline-recursive-depth): Fix default value.
22644
22645 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
22646
22647 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
22648 correct type.
22649
22650 2008-01-11 Bob Wilson <bob.wilson@acm.org>
22651
22652 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
22653
22654 2008-01-11 James E. Wilson <wilson@specifix.com>
22655
22656 PR target/26015
22657 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
22658
22659 2008-01-11 Anatoly Sokolov <aesok@post.ru>
22660
22661 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
22662 save/restore frame pointer register and don't use 'call-prologues'
22663 optimization in function with "OS_task" attribute.
22664
22665 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
22666
22667 PR middle-end/31309
22668 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
22669 when copying to memory.
22670
22671 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
22672
22673 PR rtl-optimization/30905
22674 * cfgcleanup.c: Include dce.h
22675 (crossjumps_occured): New global variable.
22676 (try_crossjump_bb): Exit loop after finding a fallthru edge.
22677 If something changed, set crossjumps_occured to true.
22678 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
22679 Don't add/remove fake edges to exit here...
22680 (cleanup_cfg): ...but do it here, when crossjumping.
22681 Run a fast DCE when successful crossjumps occured in the latest
22682 iteration of try_optimize_cfg.
22683
22684 2008-01-11 Richard Guenther <rguenther@suse.de>
22685
22686 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
22687 (struct vn_unary_op_s): Likewise.
22688 (vn_reference_insert): Free old reference on hash collision.
22689
22690 2008-01-10 Raksit Ashok <raksit@google.com>
22691
22692 PR rtl-optimization/27971
22693 * combine.c (find_split_point): Split PLUS expressions which are
22694 inside a MEM rtx, and whose first operand is complex.
22695
22696 2008-01-10 DJ Delorie <dj@redhat.com>
22697
22698 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
22699 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
22700 (m32c_hard_regno_ok): Call the underlying function.
22701
22702 2008-01-10 Richard Guenther <rguenther@suse.de>
22703
22704 PR middle-end/34683
22705 * tree-cfg.c (tree_merge_blocks): Do not go through the
22706 full-blown folding and stmt updating path if we just deal
22707 with virtual operands.
22708 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
22709 test for abnormal SSA_NAMEs.
22710
22711 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
22712
22713 PR middle-end/34641
22714 * reload.c (push_reload): Add assertions. All constants from
22715 reg_equiv_constant should have been used for replacing the respective
22716 pseudo earlier.
22717 (find_reloads_address): Invoke find_reloads_address_part for
22718 constant taken from the reg_equiv_constant array.
22719
22720 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
22721
22722 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
22723 field (valnum) the first in the struct. Replace bools with
22724 unit bit fields.
22725
22726 2008-01-10 Richard Guenther <rguenther@suse.de>
22727
22728 PR tree-optimization/34651
22729 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
22730 types and ordering for masking and converting.
22731
22732 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
22733
22734 PR tree-optimization/34017
22735 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
22736 also for PHI_NODE expressions.
22737
22738 2008-01-09 Jan Hubicka <jh@suse.cz>
22739
22740 PR tree-optimization/34708
22741 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
22742 based on number of case labels.
22743 (init_inline_once): Remove switch_cost.
22744 * tree-inline.h (eni_weights_d): Remove switch_cost.
22745
22746 2008-01-09 Richard Guenther <rguenther@suse.de>
22747 Andrew Pinski <andrew_pinski@playstation.sony.com>
22748
22749 PR middle-end/30132
22750 * gimplify.c (gimplify_cond_expr): Do not create an addressable
22751 temporary if an rvalue is ok or an lvalue is not required.
22752
22753 2008-01-09 Richard Guenther <rguenther@suse.de>
22754
22755 PR middle-end/34458
22756 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
22757 adjust return type.
22758
22759 2008-01-09 Richard Guenther <rguenther@suse.de>
22760
22761 PR middle-end/34679
22762 * tree.c (host_integerp): Check for sizetype only if the
22763 type is an integer type.
22764
22765 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
22766
22767 PR debug/26364
22768 * opts.c (decode_options): Disable inlining of functions called
22769 once if not in unit-at-a-time mode.
22770
22771 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
22772
22773 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
22774
22775 2008-01-08 Richard Guenther <rguenther@suse.de>
22776
22777 PR middle-end/31863
22778 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
22779 out early if the result will be unused.
22780
22781 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
22782
22783 PR target/34709
22784 Revert:
22785
22786 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
22787 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
22788 for TARGET_RECIP.
22789
22790 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
22791
22792 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
22793 for vectorization tuned.
22794
22795 2008-01-08 Richard Guenther <rguenther@suse.de>
22796
22797 PR tree-optimization/34683
22798 * tree-ssa-operands.c (operand_build_cmp): Export.
22799 * tree-ssa-operands.h (operand_build_cmp): Declare.
22800 * tree-vn.c (vuses_compare): Remove.
22801 (sort_vuses): Use operand_build_cmp.
22802 (sort_vuses_heap): Likewise.
22803 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
22804 to re-use old VEC if available. Do not sort already sorted VUSEs.
22805 (vdefs_to_vec): Do not sort already sorted VDEFs.
22806
22807 2008-01-08 Jakub Jelinek <jakub@redhat.com>
22808
22809 PR middle-end/34694
22810 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
22811
22812 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
22813
22814 PR target/34702
22815 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
22816 limitations of reciprocal sequences on x86 targets.
22817
22818 2008-01-08 Richard Guenther <rguenther@suse.de>
22819
22820 PR tree-optimization/34683
22821 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
22822
22823 2008-01-07 Jakub Jelinek <jakub@redhat.com>
22824
22825 PR target/34622
22826 * config/darwin.c (darwin_mergeable_string_section): Don't use
22827 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
22828
22829 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
22830
22831 PR target/34682
22832 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
22833 negxf2. Macroize expander using X87MODEF mode iterator. Change
22834 predicates of op0 and op1 to register_operand.
22835 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
22836 expander using X87MODEF mode iterator. Change predicates of
22837 op0 and op1 to register_operand.
22838 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
22839 corresponding patterns and macroize using MODEF macro. Change
22840 predicates of op0 and op1 to register_operand and remove
22841 "m" constraint. Disparage "r" alternative with "!".
22842 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
22843 macroize using X87MODEF macro. Change predicates of op0 and op1
22844 to register_operand and remove "m" constraint. Disparage "r"
22845 alternative with "!".
22846 (absneg splitter with memory operands): Remove.
22847 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
22848 patterns and macroize using X87MODEF mode iterator.
22849 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
22850 Change predicate of op1 to register_operand.
22851 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
22852 for memory operands.
22853
22854 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
22855
22856 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
22857
22858 2008-01-07 Richard Guenther <rguenther@suse.de>
22859
22860 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
22861 fields.
22862
22863 2008-01-07 Richard Guenther <rguenther@suse.de>
22864
22865 PR tree-optimization/34683
22866 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
22867 VOPs of the needed size to save memory. Use VEC_quick_push
22868 to save compile-time.
22869 (vdefs_to_vec): Likewise.
22870
22871 2008-01-07 Sa Liu <saliu@de.ibm.com>
22872
22873 * config/spu/spu.md (divdf3): Genetate inline code for double
22874 division. The implementation doesn't handle INF or NAN, therefore it
22875 only applies when -ffinite-math-only is given.
22876
22877 2008-01-06 Paolo Carlini <pcarlini@suse.de>
22878
22879 PR libstdc++/34680
22880 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
22881 * doc/cpp.texi ([Common Predefined Macros]): Document.
22882
22883 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
22884
22885 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
22886 order to use commutative addition instead of subtraction.
22887
22888 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
22889 Mircea Namolaru <namolaru@il.ibm.com>
22890 Vladimir Yanovsky <yanov@il.ibm.com>
22891 Revital Eres <eres@il.ibm.com>
22892
22893 PR tree-optimization/34263
22894 * tree-outof-ssa.c (process_single_block_loop_latch,
22895 contains_tree_r): New functions.
22896 (analyze_edges_for_bb): Call process_single_block_loop_latch
22897 function to empty single-basic-block latch block if possible.
22898
22899 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
22900
22901 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
22902 for TARGET_RECIP.
22903 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
22904
22905 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
22906
22907 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
22908
22909 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
22910
22911 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
22912
22913 2008-01-05 Jakub Jelinek <jakub@redhat.com>
22914
22915 PR tree-optimization/34618
22916 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
22917 flag from T.
22918
22919 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
22920
22921 PR target/34673
22922 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
22923 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
22924 Update copyright year.
22925
22926 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
22927 Update copyright year.
22928 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
22929 using NR fixup.
22930
22931 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
22932
22933 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
22934 edge does not point to current bb before changing need_assert.
22935
22936 2008-01-04 Richard Guenther <rguenther@suse.de>
22937
22938 PR middle-end/34029
22939 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
22940 for verifying purposes if they are is_gimple_min_invariant.
22941
22942 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
22943
22944 PR tree-optimization/34448
22945 PR tree-optimization/34465
22946 * gimplify.c (gimplify_init_constructor): Add new parameter
22947 notify_temp_creation. Use it.
22948 (gimplify_modify_expr_rhs): Take volatiles into account when
22949 optimizing constructors.
22950 Do not optimize constructors if gimplify_init_constructor will dump to
22951 memory.
22952 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
22953 * gcc.c-torture/compile/pr34448.c: New.
22954
22955 2008-01-04 Jakub Jelinek <jakub@redhat.com>
22956
22957 PR gcov-profile/34609
22958 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
22959 return_slot if result is TREE_ADDRESSABLE.
22960
22961 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
22962
22963 * config/mips/mips.md (sqrt_condition): Tweak comment.
22964 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
22965
22966 2008-01-03 Tom Tromey <tromey@redhat.com>
22967
22968 PR c/34457
22969 * c-common.c (c_type_hash): Handle VLAs.
22970
22971 2008-01-03 Jan Hubicka <jh@suse.cz>
22972
22973 PR tree-optimization/31081
22974 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
22975 0 when inlining and not inlining to first basic block.
22976 (remap_decl): When var is initialized to 0, don't set default_def.
22977 (expand_call_inline): Set entry_bb.
22978 * tree-inline.h (copy_body_data): Add entry_bb.
22979
22980 2008-01-03 Jakub Jelinek <jakub@redhat.com>
22981
22982 PR c++/34619
22983 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
22984 before returning.
22985
22986 PR tree-optimization/29484
22987 * tree-inline.c (inline_forbidden_p_2): New function.
22988 (inline_forbidden_p): Disallow inlining if some static var
22989 has an address of a local LABEL_DECL in its initializer.
22990 * doc/extend.texi (Labels as Values): Document &&foo behaviour
22991 vs. inlining.
22992
22993 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
22994
22995 PR tree-optimization/34635
22996 * tree-data-ref.c (add_other_self_distances): Make sure that the
22997 evolution step is constant.
22998
22999 2008-01-03 Jakub Jelinek <jakub@redhat.com>
23000
23001 PR middle-end/34608
23002 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
23003
23004 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
23005
23006 * tree-sra.c (scalarize_init): Insert the generate_element_init
23007 statements after the generate_element_zero statements.
23008
23009 2008-01-02 Richard Guenther <rguenther@suse.de>
23010
23011 PR middle-end/34093
23012 PR middle-end/31976
23013 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
23014 for very large number of operands instead of ICEing.
23015
23016 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
23017
23018 PR target/34013
23019 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
23020 while stack probing.
23021
23022 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
23023
23024 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
23025 in C++0x mode.
23026
23027 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
23028
23029 PR libmudflap/26442
23030 * tree-mudflap.c (mx_register_decls): Guard warning by
23031 !DECL_ARTIFICIAL check.
23032
23033 2008-01-01 Jakub Jelinek <jakub@redhat.com>
23034
23035 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
23036 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
23037 sse5_perm<mode>): Fix constraints.