OSDN Git Service

* vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-07-20  Richard Henderson  <rth@redhat.com>
2
3         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
4
5 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
6
7         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
8         computing the sum of the stack pointer and a large constant.
9         * config/arm/constraints.md (M): Remove superfluous parentheses.
10         (Pc): New constraint.
11
12 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
13
14         PR debug/45006
15         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
16         operand's type if exp is tcc_unary class tree.
17
18 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
19
20         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
21         Reverse sense of if_then_else condition.
22
23 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
24
25         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
26         * config/rs6000/rs6000.c (rs6000_override_options): Set
27         rs6000_block_move_inline_limit appropriately.
28         (expand_block_move): Use rs6000_block_move_inline_limit.
29         * doc/invoke.texi (mblock-move-inline-limit): Document.
30
31 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
32
33         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
34         FROM and TO.  All callers changed.  Don't look for tracked uses,
35         just scan the RTL for DEBUG_INSNs and substitute.
36         (reload_combine_recognize_pattern): Call fixup_debug_insns.
37         (reload_combine): Ignore DEBUG_INSNs.
38
39 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
40
41         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
42         depth to 8 from 5.
43
44         PR debug/45003
45         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
46         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
47         instead of the result's type.
48
49 2010-07-20  Richard Guenther  <rguenther@suse.de>
50
51         PR tree-optimization/44977
52         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
53         SSA form.
54
55 2010-07-20  Richard Guenther  <rguenther@suse.de>
56
57         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
58         (lto_symtab_merge_decls_2): Likewise.
59         * gimple.h (gimple_types_compatible_p): Declare.
60         * gimple.c (gimple_queue_type_fixup): Remove.
61         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
62         (gimple_compatible_complete_and_incomplete_type_p): New
63         function.
64         (gimple_types_compatible_p): Adjust.
65         (gimple_register_type): Remove type fixup code.
66         (print_gimple_types_stats): Adjust.
67         (free_gimple_type_tables): Likewise.
68         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
69         * tree-ssa.c (useless_type_conversion_p): Likewise.
70
71 2010-07-20  Richard Guenther  <rguenther@suse.de>
72
73         PR middle-end/44971
74         PR middle-end/44988
75         * tree-ssa.c (maybe_optimize_var): New function split out from ...
76         (execute_update_addresses_taken): ... here.
77         (non_rewritable_mem_ref_base): Likewise.
78         (execute_update_addresses_taken): Do not iterate over all referenced
79         vars but just all local decls and parms.
80         Properly check call and asm arguments and rewrite call arguments.
81
82 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
83
84         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
85         to top level.
86         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
87         definitions ...
88         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
89         New macro.
90         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
91
92 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
93
94         * gengtype.c (start_root_entry): New function, split out from
95         write_root.  Check whether V is null and raise an error if so.
96         (write_field_root): Check for V being null.  Don't raise an error here;
97         set V to null instead.
98         (write_root): Update comment above function.  Use start_root_entry.
99
100 2010-07-19  Xinliang David Li  <davidxl@google.com>
101
102         PR testsuite/44932
103         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting def edges.
104         (find_uninit_use): Add dump.
105         (is_use_properly_guarded): Ditto.
106         (warn_uninitialized_phi): Ditto.
107         (execute_late_warn_uninitialized): Ditto.
108
109 2010-07-19  Richard Guenther  <rguenther@suse.de>
110
111         PR middle-end/44941
112         * expr.c (emit_block_move_hints): Move zero size check first.
113         Move asserts to more useful places.
114         * calls.c (load_register_parameters): Check for zero size.
115
116 2010-07-19  Richard Henderson  <rth@redhat.com>
117
118         * tree-optimize.c (execute_all_early_local_passes): New.  Change
119         cgraph_state here ...
120         (execute_early_local_optimizations): ... not here.  Remove.
121         (pass_early_local_passes, pass_all_early_optimizations): Update.
122
123 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
124
125         * postreload.c (reload_combine_closest_single_use): Ignore the
126         number of uses for DEBUG_INSNs.
127         (fixup_debug_insns): New static function.
128         (reload_combine_recognize_const_pattern): Use it.  Don't let the
129         main loop be affected by DEBUG_INSNs.
130         Really disallow moving adds past a jump insn.
131         (reload_combine_recognize_pattern): Don't update use_ruid here.
132         (reload_combine_note_use): Do it here.
133         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
134
135 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
136
137         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
138         of a loop.
139         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
140
141 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
142
143         * config/i386/darwin.h: Define darwin_emit_branch_islands.
144         (TARGET_MACHO_BRANCH_ISLANDS): New.
145         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
146         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
147         default value.
148         * config/i386/i386.c (output_pic_addr_const): Do not emit
149         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
150         (x86_output_mi_thunk): Adjust symbol creation.
151         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
152         Remove out of date comment.
153         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
154         DARWIN_LINKER_GENERATES_ISLANDS: Remove.
155         DARWIN_GENERATE_ISLANDS: Ditto.
156         (output_call):  Do not emit branch islands unless
157         darwin_emit_branch_islands is set.
158         * config/darwin.c: Declare darwin_emit_branch_islands.
159         (machopic_indirect_data_reference): Do not emit unless
160         darwin_emit_branch_islands is set.
161         (darwin_override_options): Set darwin_emit_branch_islands
162         where it is needed.
163         * config/darwin9.h
164         DARWIN_LINKER_GENERATES_ISLANDS: Remove.
165
166 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
167
168         * doc/sourcebuild.texi (Effective-Target Keywords): Document
169         sse_runtime, sse2_runtime.
170
171 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
172
173         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
174         low half of a single-register SCmode return value before ORing
175         it with the high half.
176         * config/mips/mips16.S (MERGE_GPRf): Likewise.
177
178 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
179
180         PR target/44805
181         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
182         on all targets.
183
184 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
185
186         PR target/42235
187         * postreload.c (reload_cse_move2add): Return bool, true if anything.
188         changed.  All callers changed.
189         (move2add_use_add2_insn): Likewise.
190         (move2add_use_add3_insn): Likewise.
191         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
192         reload_combine.
193         (RELOAD_COMBINE_MAX_USES): Bump to 16.
194         (last_jump_ruid): New static variable.
195         (struct reg_use): New members CONTAINING_MEM and RUID.
196         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
197         (reload_combine_split_one_ruid, reload_combine_split_ruids,
198         reload_combine_purge_insn_uses, reload_combine_closest_single_use
199         reload_combine_purge_reg_uses_after_ruid,
200         reload_combine_recognize_const_pattern): New static functions.
201         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
202         is true for our reg and that we have available index regs.
203         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
204         callers changed.  Use them to initialize fields in struct reg_use.
205         (reload_combine): Initialize last_jump_ruid.  Be careful when to
206         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
207         Call reload_combine_recognize_const_pattern.
208         (reload_combine_note_store): Update REAL_STORE_RUID field.
209
210 2010-07-16  Jason Merrill  <jason@redhat.com>
211
212         * Makefile.in (opts-common.o): Depend on options.h.
213
214 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
215
216         * tree.c (build_common_builtin_nodes): Use build_function_type_list
217         instead of build_function_type.
218         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
219         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
220
221 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
222
223         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
224         do all the work.
225         (rs6000_emit_int_cmove): Use function pointers for insn generation.
226         Don't force values into registers unnecessarily.
227         (output_isel): Assert that we're not given conditions we can't handle.
228         Delete corresponding code.
229         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
230         scc_comparison_operator constraint.  Permit 0 for the consequent
231         operand.  Permit any GPR for the alternative operand.
232         (isel_unsigned_<mode>): Likewise.
233
234 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
235
236         PR target/44942
237         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
238         argument to const_tree.
239         * config/i386/i386.c (function_arg_advance): If padding needs to be
240         inserted before argument, increment cum->words by number of padding
241         words as well.
242         (contains_aligned_value_p): Change argument to const_tree.
243         (ix86_function_arg_boundary): Change second argument to const_tree.
244
245 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
246
247         PR target/42235
248         * function.c (record_hard_reg_sets): New static function.
249         (assign_parm_setup_reg): If an optab for extending exists and the
250         generated code clobbbers no hard regs, emit the insn directly and
251         create a REG_EQUIV note.
252
253 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
254
255         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
256         TREE_CHAIN.
257         * c-typeck.c (push_init_level): Likewise.
258         (process_init_element): Likewise.
259
260 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
261
262         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
263         (integer_three_node): Add.
264         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
265         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
266         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
267         of call build_int_cst.
268         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
269         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
270         (find_interesting_uses_address): Ditto.
271         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
272         * tree-eh.c (lower_eh_constructs_2): Ditto.
273         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
274         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
275         * expmed.c (expand_divmod): Ditto.
276         * tree-mudflap.c (mx_register_decls): Ditto.
277         * varasm.c (array_size_for_constructor): Ditto.
278         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
279         * c-parser.c (c_parser_postfix_expression): Ditto.
280
281 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
282
283         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
284         New static variables.
285         (reload_combine_recognize_pattern): New static function, broken out
286         of reload_combine.
287         (reload_combine): Use it.  Only initialize first_index_reg and
288         last_index_reg once.
289
290 2010-07-15  Richard Henderson  <rth@redhat.com>
291
292         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
293         when done.
294
295 2010-07-15  Jan Hubicka  <jh@suse.cz>
296
297         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling comdats
298         for broken gold.
299         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly. 
300
301 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
302
303         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
304
305 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
306
307         * tree.h (DECL_CHAIN): Define.
308         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
309         * c-decl.c: Likewise.
310         * c-parser.c: Likewise.
311         * c-typeck.c: Likewise.
312         * cfgexpand.c: Likewise.
313         * cgraph.c: Likewise.
314         * cgraphunit.c: Likewise.
315         * combine.c: Likewise.
316         * config/alpha/alpha.c: Likewise.
317         * config/arm/arm.c: Likewise.
318         * config/frv/frv.c: Likewise.
319         * config/i386/i386.c: Likewise.
320         * config/i386/winnt-cxx.c: Likewise.
321         * config/ia64/ia64.c: Likewise.
322         * config/iq2000/iq2000.c: Likewise.
323         * config/mep/mep.c: Likewise.
324         * config/mips/mips.c: Likewise.
325         * config/pa/som.h: Likewise.
326         * config/rs6000/rs6000.c: Likewise.
327         * config/s390/s390.c: Likewise.
328         * config/sh/sh.c: Likewise.
329         * config/sh/symbian-cxx.c: Likewise.
330         * config/sparc/sparc.c: Likewise.
331         * config/spu/spu.c: Likewise.
332         * config/stormy16/stormy16.c: Likewise.
333         * config/vxworks.c: Likewise.
334         * config/xtensa/xtensa.c: Likewise.
335         * coverage.c: Likewise.
336         * dbxout.c: Likewise.
337         * dwarf2out.c: Likewise.
338         * emit-rtl.c: Likewise.
339         * expr.c: Likewise.
340         * function.c: Likewise.
341         * gimple-low.c: Likewise.
342         * gimple-pretty-print.c: Likewise.
343         * gimplify.c: Likewise.
344         * integrate.c: Likewise.
345         * ipa-inline.c: Likewise.
346         * ipa-prop.c: Likewise.
347         * ipa-split.c: Likewise.
348         * ipa-struct-reorg.c: Likewise.
349         * ipa-type-escape.c: Likewise.
350         * langhooks.c: Likewise.
351         * lto-cgraph.c: Likewise.
352         * omp-low.c: Likewise.
353         * stor-layout.c: Likewise.
354         * tree-cfg.c: Likewise.
355         * tree-complex.c: Likewise.
356         * tree-dfa.c: Likewise.
357         * tree-dump.c: Likewise.
358         * tree-inline.c: Likewise.
359         * tree-mudflap.c: Likewise.
360         * tree-nested.c: Likewise.
361         * tree-object-size.c: Likewise.
362         * tree-pretty-print.c: Likewise.
363         * tree-sra.c: Likewise.
364         * tree-ssa-live.c: Likewise.
365         * tree-ssa-loop-niter.c: Likewise.
366         * tree-ssa-math-opts.c: Likewise.
367         * tree-ssa-reassoc.c: Likewise.
368         * tree-ssa-sccvn.c: Likewise.
369         * tree-ssa-structalias.c: Likewise.
370         * tree-tailcall.c: Likewise.
371         * tree-vrp.c: Likewise.
372         * tree.c: Likewise.
373         * var-tracking.c: Likewise.
374         * varasm.c: Likewise.
375
376 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
377
378         PR target/44877
379         * config/spu/spu.c (spu_expand_builtin_1): Allow references
380         (as well as pointers) as argument to mask_for_load builtins.
381
382 2010-07-15  Richard Guenther  <rguenther@suse.de>
383
384         PR tree-optimization/44946
385         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
386         with accessing only padding properly.
387
388 2010-07-15  Jan Hubicka  <jh@suse.cz>
389
390         * ipa.c (function_and_variable_visibility): Variables marked as used
391         should not be localized.
392
393 2010-07-15  Jan Hubicka  <jh@suse.cz>
394
395         * cgraph.c: Include lto-streamer.h
396         (change_decl_assembler_name): Work when assembler name hash is at place.
397         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage, be
398         sure to rename it to avoid name clash.
399         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
400         Localize hidden symbols only when locally defined.
401
402 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
403
404         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
405
406 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
407             Kevin F. Quinn  <kevquinn@gentoo.org>
408
409         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
410         * common.opt: Add -Wtrampolines.
411         * doc/invoke.texi: Add -Wtrampolines.
412
413 2010-07-15  Jie Zhang  <jie@codesourcery.com>
414
415         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
416         cortex_a8_issue_ls.
417
418 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
419
420         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
421         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
422
423 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
424
425         * config/spu/spu.c (reg_names): Remove prototype.
426         (call_used_regs): Likewise.
427
428 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
429
430         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
431         "unused" with attribute "used".
432         (__JCR_END__): Likewise.
433         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
434         "used" attribute.
435         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
436
437 2010-07-14  Richard Guenther  <rguenther@suse.de>
438
439         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
440         (maybe_fixup_decls): Likewise.
441         (input_gimple_stmt): Do not fixup anything.
442         * lto-streamer-out.c (output_gimple_stmt): Make sure all
443         non-automatic variable uses are wrapped inside a MEM_REF.
444
445 2010-07-14  Richard Henderson  <rth@redhat.com>
446
447         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
448         for functions.
449         * varasm.c (assemble_variable): Remove early exit for functions;
450         assert that we're given a variable.
451
452 2010-07-14  Jie Zhang  <jie@codesourcery.com>
453
454         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
455         cortex_a8_default when neon_type is not none.
456
457 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
458
459         * lower-subreg.c (subreg_context): New static bitmap.
460         (decompose_multiword_subregs): Allocate and free it.
461         (find_decomposable_subregs): Set a bit in it for a register that
462         occurs in a subreg that changes mode but not size.
463         (can_decompose_p): Test it instead of non_decomposable_context.
464
465 2010-07-14  Richard Guenther  <rguenther@suse.de>
466
467         PR tree-optimization/44824
468         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
469         is_gimple_mem_ref_addr.
470         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
471         non-decl_address_invariant_p addresses.
472
473 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
474
475         * reload.c (find_reloads): Revert code to penalize small register
476         classes that was brought in with the IRA merge.
477
478 2010-07-14  Richard Guenther  <rguenther@suse.de>
479
480         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
481         as base of ARRAY_REFs.
482
483 2010-07-14  Richard Guenther  <rguenther@suse.de>
484
485         PR middle-end/44930
486         * tree-pretty-print.c (do_niy): Do not print a newline.
487
488 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
489
490         * ira-int.h (struct ira_object): New.
491         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
492         (struct ira_allocno): Remove members min, max,
493         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
494         conflict_allocnos_num and conflict_vec_p.  Add new member object.
495         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
496         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
497         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
498         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
499         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
500         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
501         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
502         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
503         an ira_object_t rather than ira_allocno_t.  All uses changed.
504         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
505         contains a vector of ira_object_t; all uses changed.
506         (ira_objects_num): Declare variable.
507         (ira_create_allocno_object): Declare function.
508         (ira_conflict_vector_profitable_p): Adjust prototype.
509         (ira_allocate_conflict_vec): Renamed from
510         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
511         (ira_allocate_object_conflicts): Renamed from
512         ira_allocate_allocno_conflicts; first arg now ira_object_t.
513         (struct ira_object_iterator): New.
514         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
515         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
516         to conflict_vec_p.  All uses changed.
517         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
518         Changed to take into account that conflicts are now tracked for
519         objects.
520         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
521         Args changed to accept ira_object_t.  All uses changed.
522         (allocnos_conflict_p): New static function.
523         (collected_conflict_objects): Renamed from collected_allocno_objects;
524         now a vector of ira_object_t.  All uses changed.
525         (build_conflict_bit_table): Changed to take into account that
526         conflicts are now tracked for objects.
527         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
528         (print_allocno_conflicts, ira_build_conflicts): Likewise.
529         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
530         setup_allocno_left_conflicts_size, allocno_reload_assign,
531         fast_allocation): Likewise.
532         * ira-lives.c (make_hard_regno_born, make_allocno_born)
533         process_single_reg_class_operands, process_bb_node_lives): Likewise.
534         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
535         Likewise.
536         * ira-build.c (ira_objects_num): New variable.
537         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
538         contains a vector of ira_object_t; all uses changed.
539         (ira_object_id_map_vec): Corresponding change.
540         (object_pool): New static variable.
541         (initiate_allocnos): Initialize it.
542         (finish_allocnos): Free it.
543         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
544         New functions.
545         (ira_create_allocno): Don't set members that were removed.
546         (ira_set_allocno_cover_class): Don't change conflict hard regs.
547         (merge_hard_reg_conflicts): Changed to take into account that
548         conflicts are now tracked for objects.
549         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
550         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
551         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
552         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
553         setup_min_max_conflict_allocno_ids, ):  Likewise.
554         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
555         to ira_object_t; all callers changed.
556         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
557         to ira_object_t, all callers changed.
558         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
559         to ira_object_t, all callers changed.
560         (conflict_check, curr_conflict_check_tick): Renamed from
561         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
562         changed.
563         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
564         arg changed to ira_object_t, all callers changed.
565         (create_cap_allocno): Call ira_create_allocno_object.
566         (finish_allocno): Free the corresponding object.
567         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
568         callers changed.  Adjusted for dealing with objects.
569         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
570         dealing with objects.
571         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
572
573         * ira-int.h (struct live_range): Rename allocno member to object
574         and change type to ira_object_t.
575         (struct ira_object): New member live_ranges.
576         (struct ira_allocno): Remove member live_ranges.
577         (ALLOCNO_LIVE_RANGES): Remove.
578         (OBJECT_LIVE_RANGES): New macro.
579         (ira_create_live_range, ira_copy_live_range_list,
580         ira_merge_live_range_list, ira_live_ranges_intersect_p,
581         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
582         * ira-build.c (ira_create_object): Initialize live ranges here.
583         (ira_create_allocno): Not here.
584         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
585         changed to ira_object_t, all callers changed.
586         (copy_live_range): Rename from copy_allocno_live_range, all callers
587         changed.
588         (ira_copy_live_range_list): Rename from
589         ira_copy_allocno_live_range_list, all callers changed.
590         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
591         all callers changed.
592         (ira_live_ranges_intersect_p): Rename from
593         ira_allocno_live_ranges_intersect_p, all callers changed.
594         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
595         callers changed.
596         (ira_finish_live_range_list): Rename from
597         ira_finish_allocno_live_range_list, all callers changed.
598         (change_object_in_range_list): Rename from change_allocno_in_range_list,
599         last arg changed to ira_object_t, all callers changed.
600         (finish_allocno): Changed to expect live ranges in the allocno's object.
601         (move_allocno_live_ranges, copy_allocno_live_ranges,
602         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
603         ira_flattening, ira_build): Likewise.
604         * ira-color.c (allocnos_have_intersected_live_ranges_p,
605         slot_coalesced_allocno_live_ranges_intersect,
606         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
607         * ira-conflicts.c (build_conflict_bit_table): Likewise.
608         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
609         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
610         make_allocno_dead, create_start_finish_chains,
611         remove_some_program_points_and_update_live_ranges,
612         ira_debug_live_range_list): Likewise.
613
614         * ira-int.h (ira_object_conflict_iterator): Rename from
615         ira_allocno_conflict_iterator.
616         (ira_object_conflict_iter_init): Rename from
617         ira_allocno_conflict_iter_init, second arg changed to
618         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
619         FOR_EACH_ALLOCNO_CONFLICT.
620         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
621         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
622         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
623         * ira-conflicts.c (print_allocno_conflicts): Likewise.
624
625 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
626
627         PR other/44874
628         * tree-dump.c (dump_options): Add enumerate_locals entry.
629         Add TDF_NOID exclusion to all entry.
630         * tree-dump.h (dump_enumerated_decls): Declare.
631         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
632         Don't display type uid.
633         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
634         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
635         * tree-ssa-live.c: Include gimple.h.
636         (numbered_tree_d): New struct.
637         (numbered_tree): New typedef.
638         (DEF_VEC_O (numbered_tree): New.
639         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
640         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
641         (dump_enumerated_decls): Likewise.
642         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
643         debug info and flag_dump_final_insns, call dump_enumerated_decls.
644         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
645         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
646
647 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
648
649         * expmed.h (MAX_BITS_PER_WORD): Move to...
650         * defaults.h (MAX_BITS_PER_WORD): ...here.
651
652 2010-07-13  DJ Delorie  <dj@redhat.com>
653
654         * config/h8300/h8300.c (h8300_init_once): Default to
655         -fstrict_volatile_bitfields.
656
657         * config/sh/sh.c (sh_override_options): Default to
658         -fstrict_volatile_bitfields.
659
660         * config/rx/rx.c (rx_option_override): New.
661
662         * config/m32c/m32c.c (m32c_override_options): Default to
663         -fstrict_volatile_bitfields.
664
665 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
666
667         * tree.h (build_function_call_expr): Delete.
668         (build_call_expr_loc_array): New function.
669         (build_call_expr_loc_vec): New function.
670         * tree-flow.h (struct omp_region): Change type of ws_args field
671         to a VEC.
672         * builtins.c (build_function_call_expr): Delete.
673         (build_call_expr_loc_array): New function.
674         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
675         (build_call_expr): Likewise.
676         (build_call_expr_loc_vec): New function.
677         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
678         build_function_call_expr.
679         * expr.c (emutls_var_address): Likewise.
680         * varasm.c (emutls_common_1): Likewise.
681         * omp-low.c (expand_omp_atomic_mutex): Likewise.
682         (expand_omp_taskreg): Adjust for new type of region->ws_args.
683         (get_ws_args_for): Return a VEC instead of a tree.
684         (expand_parallel_call): Call build_call_expr_loc_vec instead of
685         build_function_call_expr.
686         * stor-layout.c (self_referential_size): Likewise.
687
688 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
689
690         PR testsuite/44701
691         * recog.c (constrain_operands): Allow side-effects in memory
692         operands if either < or > constraint is used, rather than if
693         both < and > is used.
694
695 2010-07-13  Richard Guenther  <rguenther@suse.de>
696
697         PR middle-end/44911
698         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
699         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
700         without name.
701
702 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
703
704         PR target/44761
705         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
706         to variable emited.
707         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
708         * config/sh/sh.md (symGOT_load): Likewise.
709         (symDTPOFF2reg): Likewise.
710         (symTPOFF2reg): Likewise.
711
712 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
713
714         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
715         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
716
717 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
718
719         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
720         explanation.
721         Find ucontext_t * on Solaris 11.
722         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
723         Handle new Solaris 11 __sighndlr patterns.
724
725 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
726
727         PR debug/44901
728         * vec.h (VEC_block_remove): Fix comment.
729         * tree-ssa-live.c (remove_unused_locals): Don't use
730         VEC_unordered_remove on local_decls, instead replace a single
731         vector element in each iteration if at least one element had
732         to be removed and VEC_truncate at the end.
733         * omp-low.c (expand_omp_taskreg): Likewise.
734
735 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
736
737         * c-decl.c (finish_function): Fix typo in comment.
738         
739 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
740
741         PR bootstrap/44921
742         * postreload.c (move2add_use_add3_insn): Silence gcc warning
743         on min_regno.
744
745 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
746
747         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
748         (simplify_stmt_using_ranges): Use it.
749
750 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
751
752         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
753         member.  Do not mark as GTY(()).
754         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
755         (spu_builtin_decls): New static variable.
756         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
757         (spu_init_builtins): Likewise.
758         (spu_builtin_mul_widen_even): Likewise.
759         (spu_builtin_mul_widen_odd): Likewise.
760         (spu_builtin_mask_for_load): Likewise.
761         (spu_builtin_vec_perm): Likewise.
762         * config/spu/spu-c.c: Include "target.h".
763         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
764         of using spu_builtins[].fndecl.
765
766 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
767
768         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
769         imply -minterlink-mips16.
770
771 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
772
773         * config/mips/mips.h (mips16_globals): Declare.
774         (SWITCHABLE_TARGET): Define.
775         * config/mips/mips.c: Include target-globals.h.
776         (mips16_globals): New variable.
777         (mips_set_mips16_mode): Use save_target_globals and
778         restore_target_globals instead of target_reinit.
779
780 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
781
782         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
783         to say that the function can be called more than once.
784         * target-globals.c (save_target_globals): Call init_reg_sets.
785
786 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
787
788         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
789         * bb-reorder.h: New file.
790         * bb-reorder.c (default_target_bb_reorder): New variable.
791         (this_target_bb_reorder): New conditional variable.
792         (uncond_jump_length): Redefine as a macro.
793         * target-globals.h (this_target_bb_reorder): Declare.
794         (target_globals): Add a bb_reorder field.
795         (restore_target_globals): Copy the bb_reorder field to
796         this_target_bb-reorder.
797         * target-globals.c: Include bb-reorder.h.
798         (default_target_globals): Initialize the bb_reorder field.
799         (save_target_globals): Likewise.
800
801 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
802
803         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
804         * gcse.h: New file.
805         * gcse.c: Include gcse.h.
806         (default_target_gcse): New variable.
807         (this_target_gcse): New conditional variable.
808         (can_copy): Redefine as a macro.
809         (can_copy_init_p): New macro.
810         (can_copy_p): Remove can_copy_init_p.
811         * target-globals.h (this_target_gcse): Declare.
812         (target_globals): Add a gcse field.
813         (restore_target_globals): Copy the gcse field to this_target_gcse.
814         * target-globals.c: Include gcse.h.
815         (default_target_globals): Initialize the gcse field.
816         (save_target_globals): Likewise.
817
818 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
819
820         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
821         and x_ira_prohibited_mode_move_regs_initialized_p.
822         (ira_prohibited_mode_move_regs): Redefine as a macro.
823         * ira.c (ira_prohibited_mode_move_regs): Delete.
824         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
825
826 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
827
828         * reload.h (target_reload): Add x_cached_reg_save_code and
829         x_cached_reg_restore_code.
830         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
831         Redefine as macros.
832
833 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
834
835         * Makefile.in (target-globals.o): Depend on builtins.h.
836         * builtins.h: New file.
837         * builtins.c: Include builtins.h.
838         (default_target_builtins): New variable.
839         (this_target_builtins): New conditional variable.
840         (apply_args_mode, apply_result_mode): Redefine as macros.
841         * target-globals.h (this_target_builtins): Declare.
842         (target_globals): Add a builtins field.
843         (restore_target_globals): Copy the builtins field to
844         this_target_builtins.
845         * target-globals.c: Include builtins.h.
846         (default_target_globals): Initialize the builtins field.
847         (save_target_globals): Likewise.
848
849 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
850
851         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
852         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
853         from expmed.c.
854         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
855         (alg_hash, alg_hash_used_p): New macros.
856         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
857         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
858         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
859
860 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
861
862         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
863         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
864         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
865         (this_op_costs, costs_classes): Redefine as macros.
866         (record_reg_classes): Don't take op_costs as a parameter.
867         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
868         (scan_one_insn): Update call to record_operand_costs.
869
870 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
871
872         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
873         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
874         (target_ira_int): New structure.
875         (default_target_ira_int): Declare.
876         (this_target_ira_int): Declare as a variable or define as a macro.
877         (ira_reg_mode_hard_regset, ira_register_move_cost)
878         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
879         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
880         (prohibited_class_mode_regs, ira_important_classes_num)
881         (ira_important_classes, ira_reg_class_intersect)
882         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
883         (ira_reg_class_union): Redefine as macros.
884         * ira.h (target_ira): New structure.
885         (default_target_ira): Declare.
886         (this_target_ira): Declare as a variable or define as a macro.
887         (ira_available_class_regs, ira_hard_regno_cover_class)
888         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
889         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
890         (ira_class_hard_regs_num): Redefine as macros.
891         * ira.c (default_target_ira, default_target_ira_int): New variables.
892         (this_target_ira, this_target_ira_int): New conditional variables.
893         (ira_reg_mode_hard_regset, ira_memory_move_cost)
894         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
895         (ira_class_subset_p): Delete.
896         (no_unit_alloc_regs): Redefine as a macro.
897         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
898         (ira_class_hard_regs_num, ira_class_hard_reg_index)
899         (ira_available_class_regs): Delete.
900         (alloc_reg_class_subclasses): Redefine as a macro.
901         (ira_reg_class_cover_size, ira_reg_class_cover)
902         (ira_important_classes_num, ira_important_classes)
903         (ira_important_class_nums, ira_class_translate): Delete.
904         (cover_class_order): Document the variable's lifetime.
905         (reorder_important_classes): Don't set ira_important_class_nums.
906         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
907         (ira_reg_class_super_classes, ira_reg_class_union)
908         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
909         Delete.
910         (setup_reg_class_nregs): Don't set ira_max_regs.
911         (prohibited_class_mode_regs): Delete.
912         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
913         (target_globals): Add ira and ira_int fields.
914         (restore_target_globals): Copy the ira field to this_target_ira
915         and the ira_int field to this_target_ira_int.
916         * target-globals.c: Include ira-int.h.
917         (default_target_globals): Initialize the ira and ira_int fields.
918         (save_target_globals): Likewise.
919
920 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
921
922         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
923         * cfgloop.h (target_cfgloop): New structure.
924         (default_target_cfgloop): Declare.
925         (this_target_cfgloop): Declare as a variable or define as a macro.
926         (target_avail_regs, target_clobbered_regs, target_res_regs)
927         (target_reg_cost, target_spill_cost): Redefine as macros.
928         * cfgloopanal.c (default_target_cfgloop): New variable.
929         (this_target_cfgloop): New conditional variable.
930         (target_avail_regs, target_clobbered_regs, target_res_regs)
931         (target_reg_cost, target_spill_cost): Delete.
932         * target-globals.h (this_target_cfgloop): Declare.
933         (target_globals): Add a cfgloop field.
934         (restore_target_globals): Copy the cfgloop field to
935         this_target_cfgloop.
936         * target-globals.c: Include cfgloop.h.
937         (default_target_globals): Initialize the cfgloop field.
938         (save_target_globals): Likewise.
939
940 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
941
942         * regs.h (target_regs): Add x_direct_load, x_direct_store and
943         x_float_extend_from_mem.
944         (direct_load, direct_store, float_extend_from_mem): New macros.
945         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
946
947 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
948
949         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
950         (target-globals.o): Depend on $(LIBFUNCS_H).
951         * libfuncs.h: Include hashtab.h.
952         (libfunc_entry): Moved from optabs.c.
953         (target_libfuncs): New structure.
954         (default_target_libfuncs): Declare.
955         (this_target_libfuncs): Declare as a variable or define as a macro.
956         (libfunc_table): Redefine as a macro.
957         * optabs.c (default_target_libfuncs): New variable.
958         (this_target_libfuncs): New conditional variable.
959         (libfunc_table): Delete.
960         (libfunc_entry): Moved to optabs.h.
961         (libfunc_hash): Redefine as a macro.
962         (hash_libfunc, eq_libfunc): Fix comments.
963         (init_optabs): Use libfunc_hash to detect cases where the function
964         has already been called.  Clear the hash table instead of
965         recreating it.
966         * target-globals.h (this_target_libfuncs): Declare.
967         (target_globals): Add a libfuncs field.
968         (restore_target_globals): Copy the libfuncs field to
969         this_target_libfuncs.
970         * target-globals.c: Include libfuncs.h.
971         (default_target_globals): Initialize the libfuncs field.
972         (save_target_globals): Likewise.
973
974 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
975
976         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
977         in all dependency lists.
978
979 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
980
981         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
982         * optabs.h (target_optabs): New structure.
983         (default_target_optabs): Declare.
984         (this_target_optabs): Declare as a variable or define as a macro.
985         (optab_table, convert_optab_table, direct_optab_table): Redefine
986         as macros.
987         * optabs.c (default_target_optabs): New variable.
988         (this_target_optabs): New conditional variable.
989         (optab_table, convert_optab_table, direct_optab_table): Delete.
990         * target-globals.h (this_target_optabs): Declare.
991         (target_globals): Add a optabs field.
992         (restore_target_globals): Copy the optabs field to
993         this_target_optabs.
994         * target-globals.c: Include expr.h and optabs.h.
995         (default_target_globals): Initialize the optabs field.
996         (save_target_globals): Likewise.
997
998 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
999
1000         * flags.h (target_flagstate): Add x_flag_excess_precision.
1001         (flag_excess_precision): Redefine as a macro.
1002         * toplev.c (flag_excess_precision): Delete.
1003
1004 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1005
1006         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
1007         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
1008         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
1009         (no_caller_save_reg_set): Redefine as a macro.
1010         * reload.h (target_reload): Add x_caller_save_initialized_p and
1011         x_regno_save_mode.
1012         (caller_save_initialized_p): Redefine as a macro.
1013         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
1014         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
1015         (regno_save_mode): Redefine as a macro.
1016
1017 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1018
1019         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
1020         * expmed.h: New file.
1021         * expmed.c (default_target_costs): New variable.
1022         (this_target_costs): New conditional variable.
1023         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
1024         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
1025         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
1026         * target-globals.h (this_target_expmed): Declare.
1027         (target_globals): Add a expmed field.
1028         (restore_target_globals): Copy the expmed field to
1029         this_target_expmed.
1030         * target-globals.c: Include expmed.h.
1031         (default_target_globals): Initialize the expmed field.
1032         (save_target_globals): Likewise.
1033
1034 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1035
1036         * Makefile.in (target-globals.o): Depend on reload.h.
1037         * reload.h (target_reload): New structure.
1038         (default_target_reload): Declare.
1039         (this_target_reload): Declare as a variable or define as a macro.
1040         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
1041         * reload1.c (default_target_reload): New variable
1042         (this_target_reload): New conditional variable.
1043         (indirect_symref_ok, double_reg_address_ok): Delete.
1044         (spill_indirect_levels): Redefine as a macro.
1045         * target-globals.h (this_target_reload): Declare.
1046         (target_globals): Add a reload field.
1047         (restore_target_globals): Copy the reload field to
1048         this_target_reload.
1049         * target-globals.c: Include hard-reg-set.h.
1050         (default_target_globals): Initialize the reload field.
1051         (save_target_globals): Likewise.
1052
1053 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1054
1055         * rtl.h (target_rtl): Add x_static_reg_base_value.
1056         * alias.c (static_reg_base_value): Redefine as a macro.
1057
1058 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1059
1060         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
1061         (GTFILES): Remove reginfo.c.
1062         * rtl.h (target_rtl): Add x_top_of_stack.
1063         (top_of_stack): New macro.
1064         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
1065         (top_of_stack): Delete.
1066
1067 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1068
1069         * regs.h (target_regs): Add x_hard_regs_of_mode,
1070         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
1071         x_may_move_out_cost and x_last_mode_for_init_move_cost.
1072         (have_regs_of_mode, contains_reg_of_mode, move_cost)
1073         (may_move_in_cost, may_move_out_cost): Redefine as macros.
1074         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
1075         (may_move_in_cost, may_move_out_cost): Delete.
1076         (last_mode_for_init_move_cost): Redefine as a macro.
1077
1078 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1079
1080         * hard-reg-set.h (target_hard_regs): New structure.
1081         (default_target_hard_regs): Declare.
1082         (this_target_hard_regs): Declare as a variable or define as a macro.
1083         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
1084         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
1085         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
1086         (reg_class_size, reg_class_subclasses, reg_class_subunion)
1087         (reg_class_superunion, reg_names): Redefine as macros.
1088         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
1089         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
1090         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
1091         (reg_class_contents, reg_class_size, reg_class_subclasses)
1092         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
1093         (default_target_hard_regs): New variable
1094         (this_target_hard_regs, initial_call_really_used_regs)
1095         (initial_reg_alloc_order): New conditional variables.
1096         (initial_reg_names): New variable.
1097         (init_reg_sets): Assert that initial_call_really_used_regs,
1098         initial_reg_alloc_order and initial_reg_names
1099         are all the same size as their variable counterparts.  Use them to
1100         initialize those counterparts.
1101         * target-globals.h (this_target_hard_regs): Declare.
1102         (target_globals): Add a hard_regs field.
1103         (restore_target_globals): Copy the hard_regs field to
1104         this_target_hard_regs.
1105         * target-globals.c: Include hard-reg-set.h.
1106         (default_target_globals): Initialize the hard_regs field.
1107         (save_target_globals): Likewise.
1108
1109 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1110
1111         * Makefile.in (target-globals.o): Depend on $(RTL_H).
1112         * rtl.h: (target_rtl): New structure.
1113         (default_target_rtl): Declare.
1114         (this_target_rtl): Declare as a variable or define as a macro.
1115         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
1116         Redefine as macros.
1117         * emit-rtl.c (default_target_rtl): New variable.
1118         (this_target_rtl): New conditional variable.
1119         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
1120         (return_address_pointer_rtx): Delete.
1121         (initial_regno_reg_rtx): New macro.
1122         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
1123         (init_emit_regs): Likewise.
1124         * target-globals.h (this_target_rtl): Declare.
1125         (target_globals): Add a rtl field.
1126         (restore_target_globals): Copy the rtl field to this_target_rtl.
1127         * target-globals.c: Include rtl.h.
1128         (default_target_globals): Initialize the rtl field.
1129         (save_target_globals): Likewise.
1130
1131 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1132
1133         * Makefile.in (target-globals.o): Depend on $(REGS_H).
1134         * regs.h (target_reg_modes): New structure.
1135         (default_target_reg_modes): Declare.
1136         (this_target_reg_modes): Declare as a variable or define as a macro.
1137         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
1138         * reginfo.c (default_target_reg_modes): New variable.
1139         (this_target_reg_modes): New conditional variable.
1140         (hard_regno_nregs, reg_raw_mode): Delete.
1141         * target-globals.h (this_target_regs): Declare.
1142         (target_globals): Add a regs field.
1143         (restore_target_globals): Copy the regs field to this_target_regs.
1144         * target-globals.c: Include regs.h.
1145         (default_target_globals): Initialize the regs field.
1146         (save_target_globals): Likewise.
1147
1148 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1149
1150         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
1151         * doc/tm.texi: Regenerate.
1152         * Makefile.in (OBJS-common): Add target-globals.o.
1153         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
1154         and target-globals.h.
1155         (target-globals.o): New rule.
1156         (GTFILES): Include $(srcdir)/target-globals.h.
1157         * defaults.h (SWITCHABLE_TARGET): Define.
1158         * gengtype.c (open_base_files): Add target-globals.h to the
1159         list of includes.
1160         * target-globals.h: New file.
1161         * target-globals.c: Likewise.
1162
1163         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
1164         * flags.h (target_flag_state): New structure.
1165         (default_target_flag_state): Declare.
1166         (this_target_flag_state): Declare as a variable or define as a macro.
1167         (align_loops_log): Redefine as a macro.
1168         (align_loops_max_skip, align_jumps_log): Likewise.
1169         (align_jumps_max_skip, align_labels_log): Likewise.
1170         (align_labels_max_skip, align_functions_log): Likewise.
1171         * toplev.c (default_target_flag_state): New variable.
1172         (this_target_flag_state): New conditional variable.
1173         (align_loops_log): Delete.
1174         (align_loops_max_skip, align_jumps_log): Likewise.
1175         (align_jumps_max_skip, align_labels_log): Likewise.
1176         (align_labels_max_skip, align_functions_log): Likewise.
1177         * target-globals.h (this_target_flag_state): Declare.
1178         (target_globals): Add a flag_state field.
1179         (restore_target_globals): Copy the flag_state field to
1180         this_target_flag_state.
1181         * target-globals.c: Include flags.h.
1182         (default_target_globals): Initialize the flag_state field.
1183         (save_target_globals): Likewise.
1184
1185 2010-07-12  Jie Zhang  <jie@codesourcery.com>
1186
1187         * postreload.c (reg_symbol_ref[]): New.
1188         (move2add_use_add2_insn): New.
1189         (move2add_use_add3_insn): New.
1190         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
1191         (move2add_note_store): Likewise.
1192
1193 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
1194
1195         PR rtl-optimization/44752
1196         * genautomata.c (main): Don't emit an empty file even if there
1197         is no automaton.
1198
1199 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1200
1201         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
1202         ix86_solaris_return_in_memory.
1203         * config/i386-protos.h: Reflect this.
1204         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
1205         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
1206         Move ...
1207         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
1208
1209 2010-07-12  Jie Zhang  <jie@codesourcery.com>
1210
1211         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
1212         align the stack when it's going to be saved.
1213
1214 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1215
1216         PR pch/14940
1217         * config/host-solaris.c (mmap_fixed): New function.
1218         (sol_gt_pch_get_address): Use it.
1219         (sol_gt_pch_use_address): Likewise.
1220
1221 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1222
1223         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
1224         pentiumpro on Solaris 8 and 9/x86.
1225         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
1226         Document SSE/SSE2 support.
1227         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
1228
1229 2010-07-12  Andi Kleen  <ak@linux.intel.com>
1230
1231         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
1232         instead of gcc_assert to print better error message for multiple
1233         prevailing defs.
1234
1235 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
1236
1237         * config/i386/i386.c (ix86_asm_output_function_label): Change format
1238         string placeholder from 0x%x to %#x.
1239         (ix86_code_end): Use putc to output '\n'.
1240         (ix86_print_operand) <case ';'>: Use putc to output ';'.
1241
1242 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
1243
1244         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
1245         in directive -export.
1246
1247 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
1248
1249         * reginfo.h (reg_classes_intersect_p): Change arguments type to
1250         reg_class_t.
1251         * rtl.h (reg_classes_intersect_p): Adjust prototype.
1252
1253         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
1254         Remove macros.
1255         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
1256         rs6000_memory_move_cost): Remove
1257         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
1258         TARGET_MEMORY_MOVE_COST): Define.
1259         (rs6000_register_move_cost): Make static. Change arguments type from
1260         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
1261         (rs6000_memory_move_cost): Make static. Change arguments type from
1262         'enum reg_class' to reg_class_t.
1263
1264 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
1265
1266         PR middle-end/42505
1267         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
1268         lookup code into....
1269         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
1270         new functions.
1271         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
1272         * cfgloopanal.c (target_clobbered_regs): Define.
1273         (init_set_costs): Initialize target_clobbered_regs.
1274         (estimate_reg_pressure_cost): Add call_p argument.  When true,
1275         adjust the number of available registers to exclude the
1276         call-clobbered registers.
1277         * cfgloop.h (target_clobbered_regs): Declare.
1278         (estimate_reg_pressure_cost): Adjust declaration.
1279         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
1280         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
1281         (determine_set_costs): Dump target_clobbered_regs.
1282         (loop_body_includes_call): New function.
1283         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
1284         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
1285         call_p flag through.
1286         (best_gain_for_invariant): Likewise.
1287         (find_invariants_to_move): Likewise.
1288         (move_single_loop_invariants): Likewise, using already-computed
1289         has_call field.
1290
1291 2010-07-10  Richard Guenther  <rguenther@suse.de>
1292             Joern Rennecke  <joern.rennecke@embecosm.com>
1293
1294         PR debug/44832
1295         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
1296         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
1297         unless they have DECL_IGNORED_P set.
1298
1299 2010-07-10  Richard Guenther  <rguenther@suse.de>
1300
1301         PR lto/44889
1302         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
1303         helper function.
1304         (gimple_types_compatible_p): Similar to pointed-to
1305         types allow and merge a mix of complete and incomplete aggregate.
1306         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
1307         (iterative_hash_gimple_type): Adjust for that.
1308
1309 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
1310
1311         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
1312
1313 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
1314
1315         PR objc/44140
1316         * config/darwin.c (output_objc_section_asm_op): Save and restore
1317         section when outputting ObjC section list.
1318
1319 2010-07-09  Jan Hubicka  <jh@suse.cz>
1320
1321         * lto-streamer-out.c (produce_symtab): Do not write alias
1322         cgraph/varpool nodes.
1323
1324 2010-07-09  Jan Hubicka  <jh@suse.cz>
1325
1326         * tree-inline.c (declare_return_variable): Fix ICE while
1327         inlining DECL_BY_VALUE function not in SSA form
1328
1329 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
1330
1331         PR tree-optimization/44576
1332         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
1333         New.  Pull out from is_loop_prefetching_profitable to implement
1334         the trip count to ahead ratio heuristic.
1335         (mem_ref_count_reasonable_p): New.  Pull out from
1336         is_loop_prefetching_profitable to implement the instruction to
1337         memory reference ratio heuristic.  Also consider not reasonable if
1338         the memory reference count is above a threshold (to avoid
1339         explosive compilation time.
1340         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
1341         is_loop_prefetching_profitable to implement the instruction to
1342         prefetch ratio heuristic.
1343         (is_loop_prefetching_profitable): Removed.
1344         (loop_prefetch_arrays): Distribute the cost analysis across the
1345         function to allow early exit of the prefetch analysis.
1346         is_loop_prefetching_profitable is splitted into three functions,
1347         with each one called as early as possible.
1348         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
1349         number of memory references in a loop is considered too many.
1350
1351 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
1352
1353         * reload.c (find_reloads): Don't clear badop if we have a winreg
1354         alternative, but not win, and the class only has fixed regs.
1355         * hard-reg-set.h (class_only_fixed_regs): Declare.
1356         * reginfo.c (class_only_fixed_regs): New array.
1357         (init_reg_sets_1): Initialize it.
1358         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
1359         discourage alternatives using the stack pointer.
1360
1361         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
1362
1363         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
1364
1365         * config/arm/arm.md (cbranchqi4): Fix array size.
1366         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
1367         calculating length.
1368
1369 2010-07-09  Richard Guenther  <rguenther@suse.de>
1370
1371         * gimple.c (struct type_fixup_s): New struct and VEC type.
1372         (gimple_register_type_fixups): New static global.
1373         (gimple_queue_type_fixup): New function.
1374         (gimple_types_compatible_p): Queue type fixups instead of
1375         applying them here.
1376         (gimple_register_type): Apply queued fixups for the
1377         canonical type.  Empty the type fixup queue.
1378
1379 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
1380
1381         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
1382         * configure: Regenerate.
1383         * config.in: Ditto.
1384
1385 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
1386             Denys Vlasenko  <dvlasenk@redhat.com>
1387             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1388
1389         PR tree-optimization/28632
1390         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
1391         (extract_range_from_binary_expr): Further optimize
1392         BIT_AND_EXPR and BIT_IOR_EXPR.
1393
1394 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
1395
1396         * tree-if-conv.c (fold_or_predicates): New.
1397         (add_to_predicate_list): Call it.
1398
1399 2010-07-09  Richard Guenther  <rguenther@suse.de>
1400
1401         PR middle-end/44890
1402         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
1403         if base is a pointer.
1404         * tree-cfg.c (verify_expr): Update MEM_REF checking.
1405
1406 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
1407
1408         PR target/44877
1409         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
1410         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
1411         builtin mask for load/store builtins.
1412
1413 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
1414
1415         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
1416         for "lock addl".
1417         * configure: Regenerate.
1418         * config/i386/i386.c (ix86_print_operand) <case ';'>:
1419         Remove TARGET_MACHO.
1420
1421 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
1422
1423         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
1424         default ISA flags.
1425         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
1426
1427 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
1428
1429         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
1430
1431 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
1432
1433         * config/picochip/picochip.md (commsTestPort): Emit more
1434         efficient sequence for tstport instruction.
1435
1436 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
1437
1438         * config/i386/i386.c (ix86_veclib_handler): Make static.
1439
1440 2010-07-09  Richard Guenther  <rguenther@suse.de>
1441
1442         PR tree-optimization/44852
1443         * tree-ssa-alias.c: Include toplev.h for exact_log2.
1444         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
1445         in MEM_REF.
1446         (indirect_refs_may_alias_p): Likewise.
1447         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
1448
1449 2010-07-09  Richard Guenther  <rguenther@suse.de>
1450
1451         PR tree-optimization/44882
1452         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
1453         sets do conflict.
1454         (vectorizable_load): Likewise.
1455
1456 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
1457
1458         PR target/40657
1459         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
1460         All callers changed.
1461         Handle the case when we're called for the epilogue.
1462         (thumb_unexpanded_epilogue): Use it.
1463         (thumb1_expand_epilogue): Likewise.
1464
1465 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
1466
1467         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
1468         both ranges are range_int_cst_p with non-negative minimum,
1469         try harder to derive smaller range.
1470
1471 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1472
1473         * genrecog.c: Include diagnostic-core.h before toplev.h.
1474         * genoutput.c: Likewise.
1475         * genextract.c: Likewise.
1476         * genautomata.c: Likewise.
1477         * genemit.c: Likewise.
1478         * genpeep.c: Likewise.
1479         * genattrtab.c: Likewise.
1480         * genconditions.c: Likewise.
1481         * genpreds.c: Likewise.
1482
1483 2010-07-08  Andi Kleen  <ak@linux.intel.com>
1484
1485         * lto-section-in.c (lto_section_name): Add missing comma.
1486
1487 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
1488
1489         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
1490         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
1491         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
1492         (ia64_override_options): Rename to...
1493         (ia64_option_override): ... this one. Make static.
1494
1495 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
1496
1497         PR middle-end/44843
1498         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
1499         pointed-to type of the offset in a MEM_REF to compute the alignment.
1500
1501 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
1502
1503         * final.c (final_scan_insn): Replace
1504         TARGET_UNWIND_INFO macro check by unwind_emit
1505         hook NULL check.
1506         * targhooks.c (default_unwind_emit): Removed.
1507         * targhooks.h (default_unwind_emit): Likewise.
1508         * target.def (unwind_emit): Set default value to NULL.
1509
1510         * config/i386/i386-protos.h (ix86_asm_output_function_label):
1511         New prototype.
1512         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
1513         for NULL fntype argument and allow 64-bit targets.
1514         (ix86_asm_output_function_label): New function.
1515         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
1516         (ix86_handle_fndecl_attribute): Likewise.
1517         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
1518         * doc/doc/tm.texi: Regenerated.
1519         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
1520         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
1521         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
1522         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
1523         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
1524         * config/elfos.h: Likewise.
1525         * config/i386/cygming.h: Likewise.
1526         * config/netbsd-aout.h: Likewise.
1527         * config/openbsd.h: Likewise.
1528         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
1529         by ix86_asm_output_function_label function call.
1530         * varasm.c (assemble_start_function): Use
1531         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
1532
1533 2010-07-08  Jan Hubicka  <jh@suse.cz>
1534
1535         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
1536         New function.
1537         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
1538         Declare.
1539         * ipa-cp.c (ipcp_estimate_growth): Use it.
1540         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
1541         Likewise.
1542
1543 2010-07-08  Jan Hubicka  <jh@suse.cz>
1544
1545         * tree-inline.c (declare_return_variable): Allocate annotation for new
1546         temporary.
1547
1548 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
1549
1550         PR tree-optimization/44710
1551         * tree-if-conv.c (parse_predicate): New.
1552         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
1553         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
1554
1555 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
1556
1557         * common.opt (ftree-loop-if-convert): New flag.
1558         * doc/invoke.texi (ftree-loop-if-convert): Documented.
1559         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
1560         when flag_tree_loop_if_convert is set.
1561
1562 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
1563
1564         * config/i386/i386.c: Use short syntax for function calls
1565         through function pointers.
1566         * config/i386/i386.md: Ditto.
1567
1568 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
1569
1570         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
1571
1572 2010-07-08  Richard Guenther  <rguenther@suse.de>
1573
1574         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
1575         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
1576
1577 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
1578
1579         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
1580         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
1581         (loc_list_from_tree): Likewise.
1582         (output_loc_operands): Handle outputting DW_OP_const[48]u
1583         with loc->dtprel set.
1584         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
1585
1586 2010-07-08  Jan Hubicka  <jh@suse.cz>
1587
1588         * ipa.c: Include pointer-set.h
1589         (cgraph_externally_visible_p): New attribute ALIASED;
1590         when in LTO, hidden symbols are local unless they are aliased.
1591         (function_and_variable_visibility): Compute aliased nodes;
1592         handle LTO and hidden symbol on functions and vars.
1593         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
1594         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
1595
1596 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
1597
1598         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
1599         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1600         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1601         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1602         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1603         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
1604         (ix86_gen_probe_stack_range): Likewise.
1605         (override_options): Set them.
1606         (ix86_target_stack_probe): New function.
1607         (ix86_compute_frame_layout): Force use of push instructions to
1608         save registers if stack checking with probes is enabled.
1609         (get_scratch_register_on_entry): New function.
1610         (release_scratch_register_on_entry): Likewise.
1611         (ix86_adjust_stack_and_probe): Likewise.
1612         (output_adjust_stack_and_probe): Likewise.
1613         (ix86_emit_probe_stack_range): Likewise.
1614         (output_probe_stack_range): Likewise.
1615         (ix86_expand_prologue): Emit stack checking code if static built-in
1616         stack checking is enabled.
1617         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
1618         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
1619         (output_adjust_stack_and_probe): Likewise.
1620         (output_probe_stack_range): Likewise.
1621         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
1622         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
1623         TARGET_STACK_PROBE.
1624         (allocate_stack_worker_64): Likewise.
1625         (allocate_stack): Likewise.
1626         (adjust_stack_and_probe): New insn.
1627         (probe_stack_range): Likewise.
1628
1629 2010-07-08  Richard Guenther  <rguenther@suse.de>
1630
1631         PR tree-optimization/44831
1632         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
1633         a MEM_REF preserving TBAA info of the original dereference.
1634         Dereference the original pointer if the address is not invariant.
1635         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
1636         at least one invariant address that we are going to dereference.
1637
1638 2010-07-08  Richard Guenther  <rguenther@suse.de>
1639
1640         PR tree-optimization/44861
1641         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
1642         information when building MEM_REFs.
1643         (vectorizable_load): Likewise.
1644         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
1645
1646 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
1647
1648         * config/sol2-c.c: Do not include diagnostic-core.h.
1649
1650 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1651
1652         PR bootstrap/44768
1653         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
1654         with respect to current_function_decl. Pass decl of the function.
1655         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
1656         * ipa-inline.c (compute_inline_parameters): Pass decl to
1657         estimated_stack_frame_size.
1658
1659 2010-07-08  Richard Guenther  <rguenther@suse.de>
1660
1661         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
1662         New function.
1663         (valueize_refs): Call it.
1664
1665 2010-07-08  Richard Guenther  <rguenther@suse.de>
1666
1667         PR rtl-optimization/44838
1668         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
1669         SSA form do not use pointer equivalence.
1670
1671 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
1672
1673         * dwarf2out.c (AT_linkage_name): Delete.
1674         (add_linkage_attr): New function.
1675         (add_linkage_name): Call it to emit the linkage attribute.
1676         (dwarf2out_finish): Likewise.
1677         (move_linkage_attr): Explicitly accept both attribute variants.
1678
1679 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1680
1681         * toplev.h: Do not include diagnostic-core.h.
1682         Include diagnostic-core.h in every file that includes toplev.h.
1683         * c-tree.h: Do not include toplev.h.
1684         * pretty-print.h: Update comment.
1685         * Makefile.in: Update dependencies.
1686         * alias.c: Include diagnostic-core.h in every file that includes
1687         toplev.h.
1688         * attribs.c: Likewise.
1689         * auto-inc-dec.c: Likewise.
1690         * bb-reorder.c: Likewise.
1691         * bt-load.c: Likewise.
1692         * caller-save.c: Likewise.
1693         * calls.c: Likewise.
1694         * cfg.c: Likewise.
1695         * cfganal.c: Likewise.
1696         * cfgbuild.c: Likewise.
1697         * cfgcleanup.c: Likewise.
1698         * cfghooks.c: Likewise.
1699         * cfgloop.c: Likewise.
1700         * combine.c: Likewise.
1701         * config/alpha/alpha.c: Likewise.
1702         * config/arc/arc.c: Likewise.
1703         * config/arm/arm.c: Likewise.
1704         * config/arm/pe.c: Likewise.
1705         * config/avr/avr.c: Likewise.
1706         * config/bfin/bfin.c: Likewise.
1707         * config/cris/cris.c: Likewise.
1708         * config/crx/crx.c: Likewise.
1709         * config/darwin-c.c: Likewise.
1710         * config/darwin.c: Likewise.
1711         * config/fr30/fr30.c: Likewise.
1712         * config/frv/frv.c: Likewise.
1713         * config/h8300/h8300.c: Likewise.
1714         * config/host-darwin.c: Likewise.
1715         * config/i386/i386.c: Likewise.
1716         * config/i386/netware.c: Likewise.
1717         * config/i386/nwld.c: Likewise.
1718         * config/i386/winnt-cxx.c: Likewise.
1719         * config/i386/winnt-stubs.c: Likewise.
1720         * config/i386/winnt.c: Likewise.
1721         * config/ia64/ia64-c.c: Likewise.
1722         * config/ia64/ia64.c: Likewise.
1723         * config/iq2000/iq2000.c: Likewise.
1724         * config/lm32/lm32.c: Likewise.
1725         * config/m32c/m32c-pragma.c: Likewise.
1726         * config/m32c/m32c.c: Likewise.
1727         * config/m32r/m32r.c: Likewise.
1728         * config/m68hc11/m68hc11.c: Likewise.
1729         * config/m68k/m68k.c: Likewise.
1730         * config/mcore/mcore.c: Likewise.
1731         * config/mep/mep-pragma.c: Likewise.
1732         * config/mep/mep.c: Likewise.
1733         * config/mmix/mmix.c: Likewise.
1734         * config/mn10300/mn10300.c: Likewise.
1735         * config/moxie/moxie.c: Likewise.
1736         * config/pa/pa.c: Likewise.
1737         * config/pdp11/pdp11.c: Likewise.
1738         * config/picochip/picochip.c: Likewise.
1739         * config/rs6000/rs6000-c.c: Likewise.
1740         * config/rs6000/rs6000.c: Likewise.
1741         * config/rx/rx.c: Likewise.
1742         * config/s390/s390.c: Likewise.
1743         * config/score/score.c: Likewise.
1744         * config/score/score3.c: Likewise.
1745         * config/score/score7.c: Likewise.
1746         * config/sh/sh.c: Likewise.
1747         * config/sh/symbian-base.c: Likewise.
1748         * config/sh/symbian-c.c: Likewise.
1749         * config/sh/symbian-cxx.c: Likewise.
1750         * config/sol2-c.c: Likewise.
1751         * config/sol2.c: Likewise.
1752         * config/sparc/sparc.c: Likewise.
1753         * config/spu/spu.c: Likewise.
1754         * config/stormy16/stormy16.c: Likewise.
1755         * config/v850/v850-c.c: Likewise.
1756         * config/v850/v850.c: Likewise.
1757         * config/vax/vax.c: Likewise.
1758         * config/vxworks.c: Likewise.
1759         * config/xtensa/xtensa.c: Likewise.
1760         * convert.c: Likewise.
1761         * cse.c: Likewise.
1762         * cselib.c: Likewise.
1763         * dbgcnt.c: Likewise.
1764         * dbxout.c: Likewise.
1765         * ddg.c: Likewise.
1766         * dominance.c: Likewise.
1767         * emit-rtl.c: Likewise.
1768         * explow.c: Likewise.
1769         * expmed.c: Likewise.
1770         * fixed-value.c: Likewise.
1771         * fold-const.c: Likewise.
1772         * fwprop.c: Likewise.
1773         * gcse.c: Likewise.
1774         * ggc-common.c: Likewise.
1775         * ggc-page.c: Likewise.
1776         * ggc-zone.c: Likewise.
1777         * gimple-low.c: Likewise.
1778         * gimplify.c: Likewise.
1779         * graph.c: Likewise.
1780         * haifa-sched.c: Likewise.
1781         * ifcvt.c: Likewise.
1782         * implicit-zee.c: Likewise.
1783         * integrate.c: Likewise.
1784         * ira-build.c: Likewise.
1785         * ira-color.c: Likewise.
1786         * ira-conflicts.c: Likewise.
1787         * ira-costs.c: Likewise.
1788         * ira-lives.c: Likewise.
1789         * ira.c: Likewise.
1790         * lists.c: Likewise.
1791         * loop-doloop.c: Likewise.
1792         * loop-iv.c: Likewise.
1793         * lto-opts.c: Likewise.
1794         * lto-symtab.c: Likewise.
1795         * main.c: Likewise.
1796         * modulo-sched.c: Likewise.
1797         * optabs.c: Likewise.
1798         * params.c: Likewise.
1799         * plugin.c: Likewise.
1800         * postreload-gcse.c: Likewise.
1801         * postreload.c: Likewise.
1802         * predict.c: Likewise.
1803         * profile.c: Likewise.
1804         * real.c: Likewise.
1805         * regcprop.c: Likewise.
1806         * reginfo.c: Likewise.
1807         * regmove.c: Likewise.
1808         * reorg.c: Likewise.
1809         * resource.c: Likewise.
1810         * rtl.c: Likewise.
1811         * rtlanal.c: Likewise.
1812         * sched-deps.c: Likewise.
1813         * sched-ebb.c: Likewise.
1814         * sched-rgn.c: Likewise.
1815         * sdbout.c: Likewise.
1816         * sel-sched-dump.c: Likewise.
1817         * sel-sched-ir.c: Likewise.
1818         * simplify-rtx.c: Likewise.
1819         * stmt.c: Likewise.
1820         * stor-layout.c: Likewise.
1821         * store-motion.c: Likewise.
1822         * targhooks.c: Likewise.
1823         * tree-cfg.c: Likewise.
1824         * tree-cfgcleanup.c: Likewise.
1825         * tree-dump.c: Likewise.
1826         * tree-eh.c: Likewise.
1827         * tree-inline.c: Likewise.
1828         * tree-nomudflap.c: Likewise.
1829         * tree-object-size.c: Likewise.
1830         * tree-optimize.c: Likewise.
1831         * tree-outof-ssa.c: Likewise.
1832         * tree-phinodes.c: Likewise.
1833         * tree-profile.c: Likewise.
1834         * tree-ssa-ccp.c: Likewise.
1835         * tree-ssa-coalesce.c: Likewise.
1836         * tree-ssa-live.c: Likewise.
1837         * tree-ssa-loop-niter.c: Likewise.
1838         * tree-ssa-loop-prefetch.c: Likewise.
1839         * tree-ssa-loop.c: Likewise.
1840         * tree-ssa-structalias.c: Likewise.
1841         * tree-ssa-uninit.c: Likewise.
1842         * tree-ssa.c: Likewise.
1843         * tree-vect-data-refs.c: Likewise.
1844         * tree-vect-loop-manip.c: Likewise.
1845         * tree-vect-loop.c: Likewise.
1846         * tree-vect-patterns.c: Likewise.
1847         * tree-vect-stmts.c: Likewise.
1848         * tree-vrp.c: Likewise.
1849         * varasm.c: Likewise.
1850         * vec.c: Likewise.
1851         * web.c: Likewise.
1852         * xcoffout.c: Likewise.
1853
1854 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
1855
1856         * gengtype.c (write_field_root): New function.
1857         (write_root): Use it.
1858
1859 2010-07-07  Wei Guozhi  <carrot@google.com>
1860
1861         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
1862         of lowest bits to lshift/compare): Add a missing line.
1863
1864 2010-07-07  Wei Guozhi  <carrot@google.com>
1865
1866         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
1867         of lowest bits to lshift/compare): New.
1868
1869 2010-07-07  Tom Tromey  <tromey@redhat.com>
1870
1871         * doc/tm.texi: Update.
1872         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
1873         Add @hook.
1874         * target.def (want_debug_pub_sections): New hook.
1875         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
1876         * dwarf2out.c (add_pubname_string): Check
1877         targetm.want_debug_pub_sections.
1878         (add_pubname): Likewise.
1879         (add_pubtype): Likewise.
1880
1881 2010-07-07  Jie Zhang  <jie@codesourcery.com>
1882
1883         * genautomata.c (output_automata_list_min_issue_delay_code):
1884         Correctly decompress min_issue_delay.
1885
1886 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
1887
1888         PR rtl-optimization/44404
1889         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
1890         possible, use reg_overlap_mentioned_p instead.
1891
1892 2010-07-07  Duncan Sands  <baldrick@free.fr>
1893
1894         PR middle-end/41355
1895         * tree.c (build_function_type_skip_args): Copy the original type using
1896         build_distinct_type_copy rather than copy_node.
1897
1898 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
1899
1900         PR target/44850
1901         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
1902         revision 161876.
1903         (ix86_expand_prologue): Likewise.
1904         (ix86_handle_fndecl_attribute): Likewise.
1905         (ix86_asm_declare_function_name): Likewise.
1906         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1907         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1908         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
1909         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
1910         * doc/extend.texi: Likewise.
1911
1912 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
1913
1914         PR target/44844
1915         * config/i386/i386.md (rdrand<mode>): Changed to expand to
1916         retry if the carry flag isn't valid.
1917         (rdrand<mode>_1): New.
1918
1919 2010-07-07  Richard Guenther  <rguenther@suse.de>
1920
1921         PR middle-end/44790
1922         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
1923         for expanding the constant offset for MEM_REFs.
1924
1925 2010-07-07  Richard Guenther  <rguenther@suse.de>
1926
1927         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
1928         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
1929         * gimple.h (is_gimple_operand): Remove.
1930         * gimple.c (is_gimple_operand): Likewise.
1931         (walk_gimple_op): Fix wi->val_only setting for calls.
1932         * tree-cfg.c (verify_gimple_call): Fix argument validation.
1933         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
1934         invalid gimple calls.
1935
1936 2010-07-06  Jan Hubicka  <jh@suse.cz>
1937
1938         * lto-cgraph.c (output_cgraph): Add missing declaration.
1939
1940 2010-07-06  Jan Hubicka  <jh@suse.cz>
1941
1942         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
1943         partition.
1944
1945 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
1946
1947         * doc/gimple.texi (GIMPLE_DEBUG): Document.
1948         * doc/rtl.texi (Debug Information): New node.
1949         (NOTE_INSN_VAR_LOCATION): Document.
1950         (debug_insn): Likewise.
1951         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
1952
1953 2010-07-07  Jan Hubicka  <jh@suse.cz>
1954
1955         With parts by Richard Guenther.
1956
1957         PR middle-end/44813
1958         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
1959         for functions passed by reference.
1960         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
1961         in memory when passed by reference.
1962         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
1963         beggining.
1964         * ipa-split.c (split_function): Cleanup way return value is passed;
1965         handle SSA DECL_BY_REFERENCE retvals.
1966         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
1967         DECL_BY_REFERENCE is set.
1968         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
1969         find_what_p_points_to): Handle RESULT_DECL.
1970         * tree-inline.c (declare_return_variable): Get new entry_block argument;
1971         when passing by reference ensure that RESULT_DECL is gimple_val.
1972         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
1973         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
1974
1975 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
1976
1977         PR rtl-optimization/44787
1978         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
1979         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
1980
1981 2010-07-06  Jan Hubicka  <jh@suse.cz>
1982
1983         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
1984         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
1985         with body can prevail.
1986         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
1987         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
1988         * cgraph.c (cgraph_get_node_or_alias): New function.
1989         * cgraph.h (cgraph_get_node_or_alias): Declare.
1990
1991 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
1992
1993         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
1994         support.
1995         (ix86_expand_prologue): Likewise.
1996         (ix86_handle_fndecl_attribute): Likewise.
1997         (ix86_asm_declare_function_name): New function for
1998         ASM_DECLARE_FUNCTION_NAME.
1999         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
2000         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
2001         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
2002         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
2003         * doc/extend.texi: Adjust documentation about ms_hook_prologue
2004         attribute.
2005
2006 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
2007
2008         * config/i386/i386.md (immediate_operand): New mode attribute.
2009
2010         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
2011         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
2012         using P mode iterator.
2013         (pro_epilogue_adjust_stack_di_2): Rename from
2014         pro_epilogue_adjust_stack_rex64_2.
2015
2016         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
2017
2018 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
2019
2020         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
2021         through gen_mov_insv_1 function pointer.
2022         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
2023         gen_truncxf<mode>2 through gen_truncxf function pointer.
2024         (remainder<mode>3): Ditto.
2025         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
2026         (allocate_stack): Call gen_allocate_stack_worker_64 or
2027         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
2028         function pointer.
2029         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
2030         function pointer.
2031
2032 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
2033
2034         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
2035         operand constraint instead of <r><i>m.
2036
2037 2010-07-06  Richard Guenther  <rguenther@suse.de>
2038
2039         PR middle-end/44828
2040         * convert.c (convert_to_integer): Watch out for overflowing
2041         MULT_EXPR as well.
2042
2043 2010-07-05  Jan Hubicka  <jh@suse.cz>
2044
2045         * lto-streamer.c (write_symbol_vec): Rename to ...
2046         (write_symbol) ... this one; write only symbol given and when
2047         present in cache. Sanity check that what is defined is present
2048         in cgraph/varpool with body/finalized decl.
2049         (write_symbols_of_kind): Remove.
2050         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
2051         pairs to produce symtab.
2052         (produce_asm_for_decls): Update call of produce_symtab; don't do so
2053         when doing WPA streaming.
2054
2055 2010-07-05  Jan Hubicka  <jh@suse.cz>
2056
2057         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
2058         function is still available to fold into.
2059
2060 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
2061
2062         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
2063         * function.h (struct_function): Change type of local_decls field
2064         to a VEC.
2065         (add_local_decl): New function.
2066         (FOR_EACH_LOCAL_DECL): New macro.
2067         * cfgexpand.c (init_vars_expansion): Adjust for new type of
2068         cfun->local_decls.
2069         (estimated_stack_frame_size): Likewise.
2070         (expand_used_vars): Likewise.
2071         * cgraphbuild.c (build_cgraph_edges): Likewise.
2072         * function.c (instantiate_decls_1): Likewise.
2073         * ipa-struct-reorg.c (build_data_structure): Likewise.
2074         * ipa-type-escape.c (analyze_function): Likewise.
2075         * lto-streamer-in.c (input_function): Likewise.
2076         * lto-streamer-out.c (output_function): Likewise.
2077         * tree-ssa-live.c (remove_unused_locals): Likewise.
2078         * tree.c (free_lang_data_in_decl): Likewise.
2079         (find_decls_types_in_node): Likewise.
2080         * omp-low.c (remove_exit_barrier): Likewise.
2081         (expand_omp_taskreg): Likewise.
2082         (list2chain): Rename to...
2083         (vec2chain): ...this.  Adjust.
2084         * cgraphunit.c (assemble_thunk): Call add_local_decl.
2085         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
2086         * gimple-low.c (record_vars_into): Likewise.
2087         * tree-inline.c (remap_decls): Likewise.
2088         (declare_return_variable): Likewise.
2089         (declare_inline_vars): Likewise.
2090         (copy_forbidden): Adjust for new type of cfun->local_decls.
2091         (add_local_variables): New function.
2092         (expand_call_inline): Call it.
2093         (tree_function_versioning): Likewise.
2094
2095 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
2096
2097         AVX Programming Reference (June, 2010)
2098         * config/i386/cpuid.h (bit_F16C): New.
2099         (bit_RDRND): Likewise.
2100         (bit_FSGSBASE): Likewise.
2101
2102         * config/i386/i386-builtin-types.def: Add
2103         "DEF_FUNCTION_TYPE (UINT16)", function types for
2104         float16 <-> float conversions and
2105         "DEF_FUNCTION_TYPE (VOID, UINT64)".
2106
2107         * config/i386/i386-c.c (ix86_target_macros_internal): Support
2108         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
2109         OPTION_MASK_ISA_F16C.
2110
2111         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
2112         (OPTION_MASK_ISA_RDRND_SET): Likewise.
2113         (OPTION_MASK_ISA_F16C_SET): Likewise.
2114         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
2115         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
2116         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
2117         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
2118         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
2119         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
2120         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
2121         (override_options): Handle them.
2122         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
2123         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
2124         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
2125         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
2126         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
2127         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
2128         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
2129         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
2130         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
2131         (bdesc_args): Likewise.
2132         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
2133         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
2134         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
2135         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
2136         Handle non-memory store.
2137
2138         * config/i386/i386.h (TARGET_FSGSBASE): New.
2139         (TARGET_RDRND): Likewise.
2140         (TARGET_F12C): Likewise.
2141
2142         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
2143         (UNSPEC_VCVTPS2PH): Likewise.
2144         (UNSPECV_RDFSBASE): Likewise.
2145         (UNSPECV_RDGSBASE): Likewise.
2146         (UNSPECV_WRFSBASE): Likewise.
2147         (UNSPECV_WRGSBASE): Likewise.
2148         (UNSPECV_RDRAND): Likewise.
2149         (rdfsbase<mode>): Likewise.
2150         (rdgsbase<mode>): Likewise.
2151         (wrfsbase<mode>): Likewise.
2152         (wrgsbase<mode>): Likewise.
2153         (rdrand<mode>): Likewise.
2154
2155         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
2156
2157         * config/i386/immintrin.h (_rdrand_u16): New.
2158         (_rdrand_u32): Likewise.
2159         (_readfsbase_u32): Likewise.
2160         (_readfsbase_u64): Likewise.
2161         (_readgsbase_u32): Likewise.
2162         (_readgsbase_u64): Likewise.
2163         (_writefsbase_u32): Likewise.
2164         (_writefsbase_u64): Likewise.
2165         (_writegsbase_u32): Likewise.
2166         (_writegsbase_u64): Likewise.
2167         (_rdrand_u64): Likewise.
2168         (_cvtsh_ss): Likewise.
2169         (_mm_cvtph_ps): Likewise.
2170         (_mm256_cvtph_ps): Likewise.
2171         (_cvtss_sh): Likewise.
2172         (_mm_cvtps_ph): Likewise.
2173         (_mm256_cvtps_ph): Likewise.
2174
2175         * config/i386/sse.md (vcvtph2ps): New.
2176         (*vcvtph2ps_load): Likewise.
2177         (vcvtph2ps256): Likewise.
2178         (vcvtps2ph): Likewise.
2179         (*vcvtps2ph): Likewise.
2180         (*vcvtps2ph_store): Likewise.
2181         (vcvtps2ph256): Likewise.
2182
2183         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
2184
2185         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
2186
2187 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
2188
2189         PR bootstrap/44512
2190         * genenums.c (main): Output include of insn-constants.h
2191         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
2192
2193 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
2194
2195         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
2196         (override_options): Initialize it.
2197         (ix86_expand_prologue): Use it.
2198
2199 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
2200
2201         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
2202
2203 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
2204
2205         * double-int.h (fit_double_type): Remove declaration.
2206         * double-int.c (fit_double_type): Remove function.
2207         * tree.h (int_fits_type_p): Adjust prototype.
2208         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
2209         instead of fit_double_type.
2210         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
2211         instead of fit_double_type and build_int_cst_wide.
2212         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
2213         instead of fit_double_type and build_int_cst_wide.
2214         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
2215         of fit_double_type.
2216
2217 2010-07-05  Jan Hubicka  <jh@suse.cz>
2218
2219         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
2220         in_other_partition.
2221         * lto-cgraph.c (referenced_from_other_partition_p,
2222         reachable_from_other_partition_p): Use in_other_partition flags.
2223         (output_node, output_varpool_node): COMDAT nodes always have private
2224         copies and thus are never used from other partition.
2225
2226 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
2227
2228         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
2229         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
2230         * config/ia64/ia64.c Include reload.h.
2231         (ia64_memory_move_cost): New function.
2232         (TARGET_MEMORY_MOVE_COST): Define.
2233         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
2234         memory_move_cost.
2235
2236 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
2237
2238         PR middle-end/42505
2239         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
2240         comments about cost model.
2241         (try_add_cand_for):  Add second strategy for choosing initial set
2242         based on original IVs, controlled by ORIGINALP argument.
2243         (get_initial_solution): Add ORIGINALP argument.
2244         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
2245         (find_optimal_iv_set): Try two different strategies for choosing
2246         the IV set, and return the one with lower cost.
2247
2248 2010-07-05  Richard Guenther  <rguenther@suse.de>
2249
2250         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
2251
2252 2010-07-05  Richard Guenther  <rguenther@suse.de>
2253
2254         * tree.c (reference_alias_ptr_type): New function.
2255         * tree.h (reference_alias_ptr_type): Declare.
2256         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
2257         allow non-TARGET_MEM_REF new refs.
2258         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
2259         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
2260         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
2261         (create_mem_ref): Get alias pointer type.  Adjust calls to
2262         create_mem_ref_raw.
2263         (maybe_fold_tmr): Likewise.
2264         * tree-flow.h (create_mem_ref): Adjust prototype.
2265
2266 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
2267
2268         PR c++/44808
2269         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
2270         *from_p is VAR_DECL.
2271
2272 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
2273
2274         * tree.h (build_call_list): Remove.
2275         * tree.c (build_call_list): Remove.
2276
2277 2010-07-05  Richard Guenther  <rguenther@suse.de>
2278
2279         * double-int.h (double_int_sub): Declare.
2280         * double-int.c (double_int_sub): New function.
2281         * dwarf2out.c (field_byte_offset): Use it.
2282         * fixed-value.c (do_fixed_add): Likewise.
2283         (do_fixed_multiply): Likewise.
2284         (do_fixed_divide): Likewise.
2285         * tree-predcom.c (add_ref_to_chain): Likewise.
2286         (determine_roots_comp): Likewise.
2287         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
2288
2289 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
2290
2291         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
2292         implementations.
2293
2294 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
2295
2296         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
2297         * arm-modes.def (CC_NOTB): Don't define.
2298         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
2299         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
2300         (LTUGEU): New code_iterator.
2301         (cnb, optab): New corresponding code_attrs.
2302         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
2303         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
2304         using LTUGEU.
2305         (addsi3_carryin_shift_<optab>): Likewise.
2306         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
2307         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
2308         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
2309         (subsi3_compare): Renamed from subsi3_compare0_c.
2310         Change CC_NOTB to CC.
2311         (arm_subsi3_insn): Allow constants for operand 0.
2312         (compare_scc peephole for eq case): New.
2313         (compare_scc splitters): Change CC_NOTB to CC.
2314
2315 2010-07-05  Richard Guenther  <rguenther@suse.de>
2316
2317         * tree-ssa-loop-im.c (for_each_index): Do not handle
2318         ALIGN_INDIRECT_REF.
2319         (gen_lsm_tmp_name): Likewise.
2320         * tree-dump.c (dequeue_and_dump): Likewise.
2321         * tree-pretty-print.c (dump_generic_node): Likewise.
2322         (op_code_prio): Likewise.
2323         (op_symbol_code): Likewise.
2324         * tree.c (staticp): Likewise.
2325         (build1_stat): Likewise.
2326         * tree.h (INDIRECT_REF_P): Likewise.
2327         * fold-const.c (maybe_lvalue_p): Likewise.
2328         (operand_equal_p): Likewise.
2329         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
2330         (ao_ref_init_from_vn_reference): Likewise.
2331         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
2332         (find_interesting_uses_address): Likewise.
2333         * dwarf2out.c (loc_list_from_tree): Likewise.
2334         * gimplify.c (gimplify_expr): Likewise.
2335         * tree-eh.c (tree_could_trap_p): Likewise.
2336         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
2337         * cfgexpand.c (expand_debug_expr): Likewise.
2338         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2339         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
2340         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
2341         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
2342         * tree-ssa-operands.c (get_expr_operands): Likewise.
2343         * expr.c (safe_from_p): Likewise.
2344         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
2345         * tree-vect-data-refs.c (vect_setup_realignment): Build
2346         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
2347         * tree-vect-stmts.c (vectorizable_load): Likewise.
2348         * tree.def (ALIGN_INDIRECT_REF): Remove.
2349
2350 2010-07-05  Richard Guenther  <rguenther@suse.de>
2351
2352         PR tree-optimization/44784
2353         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
2354         for inserted stmts.
2355         (find_or_generate_expression): Fix SCCVN insertion check.
2356
2357 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
2358
2359         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
2360         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
2361         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
2362         directives.
2363
2364 2010-07-05  Ira Rosen  <irar@il.ibm.com>
2365
2366         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
2367         statements that are not vectorized.
2368         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
2369         in INSIDE_COST.
2370
2371 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
2372
2373         PR bootstrap/44820
2374         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
2375
2376 2010-07-05  Richard Guenther  <rguenther@suse.de>
2377
2378         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
2379         RESULT_DECLs properly.
2380
2381 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
2382
2383         PR rtl-optimization/44695
2384         * config/i386/i386.md (extract_code): Removed.
2385         (<u>divmodqi4): Likewise.
2386         (divmodqi4): New.
2387         (udivmodqi4): Likewise.
2388         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
2389         (udivmodhiqi3): Likewise.
2390
2391 2010-07-04  Jan Hubicka  <jh@suse.cz>
2392
2393         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
2394
2395 2010-07-04  Jan Hubicka  <jh@suse.cz>
2396
2397         * cgraphunit.c (init_cgraph): Only initialize dump file if it
2398         is not already initialized.
2399
2400 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
2401
2402         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
2403         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
2404         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
2405         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
2406         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
2407         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
2408         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
2409         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
2410         (sync_new_nand_optab): Redefine as macros.
2411         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
2412         Delete.
2413         (direct_optab_index): New enum.
2414         (direct_optab_d): New structure.
2415         (direct_optab): New typedef.
2416         (direct_optab_table): Declare.
2417         (direct_optab_handler, set_direct_optab_handler): New functions.
2418         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
2419         (sync_lock_release_optab): New macros.
2420         * optabs.c (direct_optab_table): New variable.
2421         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
2422         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
2423         cmpstr_optab and cmpstrn_optab.
2424         (emit_conditional_move): Likewise for movcc_optab.
2425         (can_conditionally_move_p): Likewise for movcc_gen_code.
2426         (init_insn_codes): Clear direct_optab_table.
2427         (init_optabs): Don't initialize the new "direct optabs" here.
2428         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
2429         vcond_gen_code.
2430         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
2431         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
2432         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
2433         (expand_sync_operation): Likewise other sync_*_optabs.
2434         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
2435         to sync_compare_and_swap_optab.
2436         (expand_sync_lock_test_and_set): Use direct_optab_handler for
2437         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
2438         to the names of both.
2439         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
2440         cmpstr_optab and cmpstrn_optab.
2441         (expand_builtin_lock_release): Likewise sync_lock_release.
2442         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
2443         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
2444         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
2445         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
2446         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
2447         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
2448         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
2449         (sync_lock_test_and_set, sync_lock_release): Delete.
2450         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
2451         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
2452         * genopinit.c (optabs): Use set_direct_optab_handler for the new
2453         macro optabs.
2454         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
2455         the "optab" local variable.  Use direct_optab_handler for optab and
2456         sync_compare_and_swap_optab.
2457         * reload1.c (reload_in_optab, reload_out_optab): Delete.
2458         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
2459         reload_in_optab and reload_out_optab.
2460         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
2461         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
2462         * config/pa/pa.c (pa_secondary_reload): Likewise.
2463         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
2464         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
2465         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
2466         (VMSupportsCS8_builtin): Likewise.
2467
2468 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
2469
2470         * optabs.h (optab_handlers): Change type of insn_code to int.
2471         (optab_handler, set_optab_handler, convert_optab_handler)
2472         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
2473         CODE_FOR_nothing".
2474         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
2475         (init_insn_codes): Zero both the above arrays.
2476         (init_optabs): Never call init_insn_codes first time around.
2477
2478 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
2479
2480         * optabs.h (optab_handler, convert_optab_handler): Turn into
2481         inline functions that return an insn code.
2482         (set_optab_handler, set_convert_optab_handler): New functions.
2483         * builtins.c: Replace optab_handler(X)->insn_code with
2484         optab_handler or set_optab_handler thoughout.  Likewise
2485         convert_optab_handler(X)->insn_code with convert_optab_handler
2486         and set_convert_optab_handler.
2487         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
2488         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
2489         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
2490         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
2491         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
2492         config/spu/spu.c: Likewise.
2493
2494 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
2495
2496         PR target/44531
2497         * config.gcc (sh*-*-*): Use regular expressions instead of
2498         the 'i' modifier for sed substitutions.
2499
2500 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
2501
2502         * gimple.c (gimple_body): Comments added.
2503
2504 2010-07-04  Richard Guenther  <rguenther@suse.de>
2505
2506         PR middle-end/44809
2507         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
2508         of an INDIRECT_REF.
2509
2510 2010-07-04  Richard Guenther  <rguenther@suse.de>
2511
2512         PR tree-optimization/44479
2513         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
2514         extra SSA name copy statements which preserves points-to
2515         information.
2516         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
2517         Copy points-to information for all pointers.  Properly handle
2518         MEM_REFs.
2519         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
2520         copy statements.
2521         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
2522         dependency.
2523
2524 2010-07-04  Richard Guenther  <rguenther@suse.de>
2525
2526         PR middle-end/44785
2527         * tree-inline.c (initialize_inlined_parameters): Do not
2528         re-use pointer-map slot over remap_type call.
2529
2530 2010-07-04  Richard Guenther  <rguenther@suse.de>
2531
2532         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
2533
2534 2010-07-04  Richard Guenther  <rguenther@suse.de>
2535
2536         PR tree-optimization/44656
2537         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
2538         again after value-replacing in the defintions lhs.
2539
2540 2010-07-04  Ira Rosen  <irar@il.ibm.com>
2541             Revital Eres  <eres@il.ibm.com>
2542
2543         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
2544         Document new arguments.
2545         * doc/tm.texi: Regenerate.
2546         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
2547         Handle unaligned store.
2548         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
2549         * target.def (builtin_vectorization_cost): Add new arguments.
2550         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
2551         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
2552         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
2553         (vect_vfa_segment_size): Fix indentation.
2554         * tree-vectorizer.h (struct _vect_peel_info): New.
2555         (struct _vect_peel_extended_info): New.
2556         (struct _loop_vec_info): Add new field for peeling hash table and a
2557         macro for its access.
2558         (VECT_MAX_COST): Define.
2559         (vect_get_load_cost): Declare.
2560         (vect_get_store_cost, vect_get_known_peeling_cost,
2561         vect_get_single_scalar_iteraion_cost): Likewise.
2562         (vect_supportable_dr_alignment): Add new argument.
2563         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
2564         field.
2565         (destroy_loop_vec_info): Free peeling hash table.
2566         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
2567         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
2568         vect_analyze_slp. Fix indentation.
2569         (vect_get_single_scalar_iteraion_cost): New function.
2570         (vect_get_known_peeling_cost): Likewise.
2571         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
2572         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
2573         statement. Move outside cost calculation inside unknown peeling case.
2574         Call vect_get_known_peeling_cost for known amount of peeling.
2575         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
2576         reference to the print message of forced alignment.
2577         (vect_verify_datarefs_alignment): Update call to
2578         vect_supportable_dr_alignment.
2579         (vect_get_data_access_cost): New function.
2580         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
2581         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
2582         vect_peeling_hash_choose_best_peeling): Likewise.
2583         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
2584         to store all the accesses in the loop and find best possible access to
2585         align using peeling for known alignment case. For unknown alignment
2586         check if stores are preferred or if peeling is worthy.
2587         (vect_find_same_alignment_drs): Analyze pairs of loads too.
2588         (vect_supportable_dr_alignment): Add new argument and check aligned
2589         accesses according to it.
2590         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
2591         (cost_for_stmt): Call vect_get_stmt_cost.
2592         (vect_model_simple_cost): Likewise.
2593         (vect_model_store_cost): Call vect_get_stmt_cost. Call
2594         vect_get_store_cost to calculate the cost of the statement.
2595         (vect_get_store_cost): New function.
2596         (vect_model_load_cost): Call vect_get_stmt_cost. Call
2597         vect_get_load_cost to calculate the cost of the statement.
2598         (vect_get_load_cost): New function.
2599         (vectorizable_store): Update call to vect_supportable_dr_alignment.
2600         (vectorizable_load): Likewise.
2601         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
2602         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
2603         arguments. Handle unaligned store.
2604         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
2605         (rs6000_builtin_support_vector_misalignment): Return true for word and
2606         double word alignments for VSX.
2607         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
2608         vect_supportable_dr_alignment and builtin_vectorization_cost.
2609
2610 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2611
2612         PR target/44597
2613         * config/pa/predicates.md (prefetch_cc_operand): Remove.
2614         (prefetch_nocc_operand): Likewise.
2615         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
2616         (prefetch_20): New insn.
2617         (prefetch_cc): Remove.
2618         (prefetch_nocc): Likewise.
2619
2620 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2621
2622         * expr.c (vector_mode_valid_p): Move to c-common.c.
2623         * expr.h (vector_mode_valid_p): Do not declare here.
2624         * system.h: Poison GCC_EXPR_H in front-ends.
2625         * Makefile.in: Update dependencies.
2626
2627 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2628
2629         PR target/44705
2630         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
2631
2632 2010-07-03  Jan Hubicka  <jh@suse.cz>
2633
2634         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
2635         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
2636         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
2637         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
2638         Likewise.
2639
2640         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
2641         Update timevars.V
2642         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
2643         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
2644         TV_IPA_LTO_DECL_OUT): New.
2645         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
2646
2647 2010-07-03  Jan Hubicka  <jh@suse.cz>
2648
2649         * ipa-inline.c (update_edge_key): Break out from ...
2650         update_callers_keys): ... here;
2651         (update_callee_keys): Update only the edges from caller to callee.
2652         (update_all_calle_keys): Do what update_calle_keys did.
2653         (decide_inlining_of_small_functions): Avoid recomputing of all
2654         callees when badness increase.
2655
2656 2010-07-03  Jie Zhang  <jie@codesourcery.com>
2657
2658         * config/arm/arm.c (arm_attr_length_move_neon): New.
2659         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
2660         * config/arm/neon.md (define_mode_attr V_slen): Remove.
2661         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
2662         to compute length attribute.
2663
2664 2010-07-03  Jie Zhang  <jie@codesourcery.com>
2665
2666         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
2667         as predicate for operand 1 and remove its constraint.
2668         * config/arm/predicates.md (vfp_register_operand): New.
2669         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
2670         (*push_fp_multi): Likewise.
2671
2672 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
2673
2674         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
2675
2676 2010-07-03  Jan Hubicka  <jh@suse.cz>
2677
2678         * config/i386/i386.c (override_options): Revert accidental commit.
2679
2680 2010-07-02  Le-Chun Wu  <lcwu@google.com>
2681
2682         PR c++/44128
2683         * doc/invoke.texi: Update documentation of -Wshadow.
2684
2685 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
2686             Julian Brown  <julian@codesourcery.com>
2687             Sandra Loosemore <sandra@codesourcery.com>
2688
2689         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
2690         comparisons.  Adjust to take both operands.
2691         (arm_select_cc_mode): Handle DImode comparisons.
2692         (arm_gen_compare_reg): Generate a scratch register for DImode
2693         comparisons which require one.  Use xor for Thumb equality checks.
2694         (arm_const_double_by_immediates): New.
2695         (arm_print_operand): Allow 'Q' and 'R' for constants.
2696         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
2697         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
2698         arm_canonicalize_comparison.
2699         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
2700         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
2701         prototype.
2702         (arm_const_double_by_immediates): Declare.
2703         * config/arm/constraints.md (Di): New constraint.
2704         * config/arm/predicates.md (arm_immediate_di_operand)
2705         (arm_di_operand, cmpdi_operand): New.
2706         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
2707         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
2708         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
2709         (cstoredi4): Handle non-Cirrus also.
2710
2711 2010-07-02  Julian Brown  <julian@codesourcery.com>
2712             Sandra Loosemore <sandra@codesourcery.com>
2713
2714         PR target/43703
2715         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
2716         (smax<mode>3): Disable for NEON float modes when
2717         flag_unsafe_math_optimizations is false.
2718         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
2719         (*mul<mode>3_neon)
2720         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
2721         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
2722         for NEON float modes when flag_unsafe_math_optimizations is false.
2723         (quad_halves_<code>v4sf): Only enable if
2724         flag_unsafe_math_optimizations is true.
2725         * doc/invoke.texi (ARM Options): Add note about floating point
2726         vectorization requiring -funsafe-math-optimizations.
2727
2728 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
2729             Julian Brown  <julian@codesourcery.com>
2730
2731         * config/arm/neon.md (UNSPEC_VABA): Delete.
2732         (UNSPEC_VABAL): Delete.
2733         (UNSPEC_VABS): Delete.
2734         (UNSPEC_VMUL_N): Delete.
2735         (adddi3_neon): New.
2736         (subdi3_neon): New.
2737         (mul<mode>3add<mode>_neon): Make the pattern named.
2738         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
2739         (neon_vadd<mode>): Replace with define_expand, and move the remaining
2740         unspec parts...
2741         (neon_vadd<mode>_unspec): ...to this.
2742         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
2743         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
2744         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
2745         (neon_vaba<mode>): Rewrite in terms of vabd.
2746         (neon_vabal<mode>): Rewrite in terms of vabdl.
2747         (neon_vabs<mode>): Rewrite without unspec.
2748         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
2749         (*arm_subdi3): Likewise.
2750         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
2751         No_op attribute to disable assembly output checks.
2752         * config/arm/arm_neon.h: Regenerated.
2753         * doc/arm-neon-intrinsics.texi: Regenerated.
2754
2755 2010-07-02  Jan Hubicka  <jh@suse.cz>
2756
2757         * ipa-split.c (split_function): For aggregate values, set the return
2758         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
2759         *<retval> = fncall.part ().
2760         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
2761
2762 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
2763
2764         * config/arm/neon.md (UNSPEC_VAND): Delete.
2765         (UNSPEC_VBIC): Delete.
2766         (UNSPEC_VCLZ): Delete.
2767         (UNSPEC_VCNT): Delete.
2768         (UNSPEC_VEOR): Delete.
2769         (UNSPEC_VORN): Delete.
2770         (UNSPEC_VORR): Delete.
2771         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
2772         core registers too.
2773         (anddi3_neon): Likewise.
2774         (orndi3_neon): Likewise.
2775         (bicdi3_neon): Likewise.
2776         (xordi3_neon): Likewise.
2777         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
2778         rid of unspec and handle unused operand.
2779         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
2780         * config/arm/predicates.md (imm_for_neon_logic_operand):
2781         Require TARGET_NEON.
2782         (imm_for_neon_inv_logic_operand): Likewise.
2783         * config/arm/arm.md (define_split for logical_binary_operator):
2784         Disable for NEON registers.
2785         (anddi3): Add new define_expand, and rename the insn.  Disable
2786         this insn for NEON, where anddi3_neon now applies.
2787         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
2788         (iordi3): As for anddi3.
2789         (xordi3): Likewise.
2790         * config/arm/neon.ml (Vand): Split DImode variants and mark them
2791         as No_op to disable testing for exact instruction match.
2792         (Vorr): Likewise.
2793         (Veor): Likewise.
2794         (Vbic): Likewise.
2795         (Vorn): Likewise.
2796         * config/arm/arm_neon.h: Regenerated.
2797         * doc/arm-neon-intrinsics.texi: Regenerated.
2798
2799 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
2800
2801         * expr.h (emit_stack_probe): Declare.
2802         * explow.c (emit_stack_probe): Make global.
2803         (anti_adjust_stack_and_probe): Fix comments.
2804         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
2805         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2806         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2807         * config/sparc/sparc.c: Include except.h.
2808         (sparc_emit_probe_stack_range): New function.
2809         (output_probe_stack_range): Likewise.
2810         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
2811         built-in stack checking is enabled.
2812         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
2813         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
2814         (probe_stack_range): New insn.
2815
2816 2010-07-02  Richard Guenther  <rguenther@suse.de>
2817
2818         PR target/43958
2819         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
2820         for argument alignment.
2821
2822 2010-07-02  Jan Hubicka  <jh@suse.cz>
2823
2824         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
2825         walk backwards from entry_bb to check only those basic block of header
2826         that might lead to execution of split part.
2827         (consider_split) ... here.
2828         (find_return_bb): Allow assignment in return BB.
2829         (find_retval): New.
2830         (split_function): Fix name of cloned function; take care of updating
2831         return value in return_bb containing move.
2832
2833 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
2834
2835         PR target/44771
2836         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
2837         used variable insn.
2838
2839 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
2840
2841         * implicit-zee.c (combine_reaching_defs): Fix long lines.
2842         (is_set_with_extension_DI): Delete.
2843         (struct zero_extend_info): New structure.
2844         (add_removable_zero_extend): New function.
2845         (find_removable_zero_extends): Use note_stores to find SETs.
2846         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
2847
2848 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
2849
2850         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
2851         is_miss_rate_acceptable. Pull total_positions computation
2852         out of the loops.  Early return if miss_positions exceeds
2853         the acceptable threshold.
2854         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
2855         is_miss_rate_acceptable after renaming of compute_miss_rate.
2856
2857 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
2858
2859         PR middle-end/44576
2860         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
2861         of 1000) for miss rate if the address diference is greater than or
2862         equal to the cache line size (the two reference will never hit the
2863         same cache line).
2864
2865 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
2866
2867         PR target/42835
2868         * config/arm/arm-modes.def (CC_NOTB): New mode.
2869         * config/arm/arm.c (get_arm_condition_code): Handle it.
2870         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
2871         * config/arm/arm.md (subsi3_compare0_c): New pattern.
2872         (compare_scc): Now a define_and_split.  Add a number of extra
2873         splitters before it.
2874
2875         PR target/42172
2876         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
2877         and ZERO_EXTEND.
2878         (arm_rtx_costs_1): Likewise.
2879         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
2880         * config/arm/arm.md (is_arch6): New attribute.
2881         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
2882         extendqisi2): Tighten the code somewhat, avoiding invalid
2883         RTL to occur in the expander patterns.
2884         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
2885         (thumb1_zero_extendhisi2_v6): Delete.
2886         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
2887         (thumb1_extendhisi2_v6): Delete.
2888         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
2889         (thumb1_extendqisi2_v6): Delete.
2890         (zero_extendhisi2 for register input splitter): New.
2891         (zero_extendqisi2 for register input splitter): New.
2892         (thumb1_extendhisi2 for register input splitter): New.
2893         (extendhisi2 for register input splitter): New.
2894         (extendqisi2 for register input splitter): New.
2895         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
2896         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
2897         and add support for a register alternative requiring a split.
2898         (thumb1_zero_extendqisi2): Likewise.
2899         (arm_zero_extendqisi2): Likewise.
2900         (arm_extendhisi2): Likewise.
2901         (arm_extendqisi2): Likewise.
2902
2903 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
2904
2905         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
2906         instead of an unspec.
2907         (neon_expand_vector_init): Likewise.
2908         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
2909         (UNSPEC_VDUP_LANE): Delete.
2910         (UNSPEC VDUP_N): Delete.
2911         (UNSPEC_VGET_HIGH): Delete.
2912         (UNSPEC_VGET_LANE): Delete.
2913         (UNSPEC_VGET_LOW): Delete.
2914         (UNSPEC_VMVN): Delete.
2915         (UNSPEC_VSET_LANE): Delete.
2916         (V_double_vector_mode): New.
2917         (vec_set<mode>_internal): Make code emitted match that for the
2918         corresponding intrinsics.
2919         (vec_setv2di_internal): Likewise.
2920         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
2921         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
2922         (neon_vset_lane<mode>): Combine double and quad patterns and
2923         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
2924         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
2925         (neon_vdup_n<mode>): Rewrite RTL without unspec.
2926         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
2927         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
2928         with neon_vdup_lanev2di, adjusting the pattern from the latter
2929         to be predicable for consistency.
2930         (neon_vdup_lane<mode>_internal): New.
2931         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
2932         to avoid using an unspec.
2933         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
2934         (neon_vdup_lanev2di): Turn into a define_expand.
2935         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
2936         (neon_vget_high<mode>): Replace with....
2937         (neon_vget_highv16qi): New pattern using canonical RTL.
2938         (neon_vget_highv8hi): Likewise.
2939         (neon_vget_highv4si): Likewise.
2940         (neon_vget_highv4sf): Likewise.
2941         (neon_vget_highv2di): Likewise.
2942         (neon_vget_low<mode>): Replace with....
2943         (neon_vget_lowv16qi): New pattern using canonical RTL.
2944         (neon_vget_lowv8hi): Likewise.
2945         (neon_vget_lowv4si): Likewise.
2946         (neon_vget_lowv4sf): Likewise.
2947         (neon_vget_lowv2di): Likewise.
2948
2949         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
2950         test for this emitting vmov.
2951         (Vset_lane): Likewise.
2952         (Vdup_n): Likewise.
2953         (Vmov_n): Likewise.
2954
2955         * doc/arm-neon-intrinsics.texi: Regenerated.
2956
2957 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
2958
2959         * config/arm/neon.md (vec_extractv2di): Correct error in register
2960         numbering to reconcile with neon_vget_lanev2di.
2961
2962 2010-07-02  Richard Guenther  <rguenther@suse.de>
2963
2964         * tree-ssa-structalias.c (pt_solution_set_var): New function.
2965         * tree-ssa-alias.h (pt_solution_set_var): Declare.
2966         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
2967         points-to information.
2968
2969 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
2970
2971         * config/s390/s390.c (override_options): Adopt prefetching
2972         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
2973
2974 2010-07-02  Jan Hubicka  <jh@suse.cz>
2975
2976         * df-problems.c (df_kill_notes): Do not collect dead  notes.
2977         (df_set_note): Just call add_reg_note.
2978         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
2979         df_create_unused_note): Do not deal with lists of old notes.
2980         (df_note_bb_compute): Likewise.
2981
2982 2010-07-02  Richard Guenther  <rguenther@suse.de>
2983
2984         * tree-ssa-structalias.c (find_func_aliases): Handle
2985         pointer alignment via BIT_AND_EXPR.
2986         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
2987
2988 2010-07-02  Richard Guenther  <rguenther@suse.de>
2989
2990         * tree-data-ref.c (initialize_data_dependence_relation): Handle
2991         mismatching number of dimensions properly.
2992
2993 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2994
2995         PR target/44707
2996         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
2997         (lo_sum (high ...) ...) patterns generated by earlier passes.
2998
2999 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3000
3001         * doc/install.texi (Prerequisites): Document Perl requirement on
3002         Solaris 2.
3003         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
3004
3005 2010-07-02  Richard Guenther  <rguenther@suse.de>
3006
3007         PR middle-end/44777
3008         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
3009
3010 2010-07-02  Jan Hubicka  <jh@suse.cz>
3011
3012         PR middle-end/44706
3013         * predict.c (predict_paths_for_bb): Handle case when control dependence
3014         BB has only abnormal edges.
3015
3016 2010-07-02  Richard Guenther  <rguenther@suse.de>
3017
3018         PR tree-optimization/44748
3019         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
3020         the embedded conversion in MEM_REFs.
3021
3022 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
3023
3024         * reload.c: Include toplev.h.
3025         * recog.c:  Likewise.
3026         * Makefile.in: Adjust dependencies.
3027
3028 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
3029
3030         PR debug/44694
3031         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
3032         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
3033
3034 2010-07-01  Richard Guenther  <rguenther@suse.de>
3035
3036         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
3037         types for offsets.
3038
3039 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
3040
3041         PR target/44732
3042         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
3043         Fix argument types.
3044
3045 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
3046
3047         PR target/44727
3048         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
3049         Make sure operand 0 dies.
3050
3051 2010-07-01  Richard Guenther  <rguenther@suse.de>
3052
3053         PR middle-end/42834
3054         PR middle-end/44468
3055         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
3056         * doc/generic.texi (References to storage): Document MEM_REF.
3057         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
3058         (print_call_name): Likewise.
3059         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
3060         (build_simple_mem_ref_loc): New function.
3061         (mem_ref_offset): Likewise.
3062         * tree.h (build_simple_mem_ref_loc): Declare.
3063         (build_simple_mem_ref): Define.
3064         (mem_ref_offset): Declare.
3065         * fold-const.c: Include tree-flow.h.
3066         (operand_equal_p): Handle MEM_REF.
3067         (build_fold_addr_expr_with_type_loc): Likewise.
3068         (fold_comparison): Likewise.
3069         (fold_unary_loc): Fold
3070         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
3071         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
3072         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
3073         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
3074         (ptr_deref_may_alias_ref_p_1): Likewise.
3075         (ao_ref_base_alias_set): Properly differentiate base object for
3076         offset and TBAA.
3077         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
3078         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
3079         (indirect_refs_may_alias_p): Likewise.
3080         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
3081         chasing code.
3082         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
3083         (call_may_clobber_ref_p_1): Likewise.
3084         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
3085         * expr.c (expand_assignment): Handle MEM_REF.
3086         (store_expr): Handle MEM_REFs from STRING_CSTs.
3087         (store_field): If expanding a MEM_REF of a non-addressable
3088         decl use bitfield operations.
3089         (get_inner_reference): Handle MEM_REF.
3090         (expand_expr_addr_expr_1): Likewise.
3091         (expand_expr_real_1): Likewise.
3092         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
3093         * alias.c (ao_ref_from_mem): Handle MEM_REF.
3094         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
3095         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
3096         (dr_analyze_indices): Likewise.
3097         (dr_analyze_alias): Likewise.
3098         (object_address_invariant_in_loop_p): Likewise.
3099         * gimplify.c (mark_addressable): Handle MEM_REF.
3100         (gimplify_cond_expr): Build MEM_REFs.
3101         (gimplify_modify_expr_to_memcpy): Likewise.
3102         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
3103         (gimple_fold_indirect_ref): Adjust.
3104         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
3105         * tree.def (MEM_REF): New tree code.
3106         * tree-dfa.c: Include toplev.h.
3107         (get_ref_base_and_extent): Handle MEM_REF.
3108         (get_addr_base_and_unit_offset): New function.
3109         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
3110         * gimple-fold.c (may_propagate_address_into_dereference): Handle
3111         MEM_REF.
3112         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
3113         accesses if the array has just one dimension.  Remove always true
3114         parameter.  Do not require type compatibility here.
3115         (maybe_fold_offset_to_component_ref): Remove.
3116         (maybe_fold_stmt_indirect): Remove.
3117         (maybe_fold_reference): Remove INDIRECT_REF handling.
3118         Fold back to non-MEM_REF.
3119         (maybe_fold_offset_to_address): Simplify.  Deal with type
3120         mismatches here.
3121         (maybe_fold_reference): Likewise.
3122         (maybe_fold_stmt_addition): Likewise.  Also handle
3123         &ARRAY + I in addition to &ARRAY[0] + I.
3124         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
3125         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
3126         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
3127         * tree-ssa.c (useless_type_conversion_p): Make most pointer
3128         conversions useless.
3129         (warn_uninitialized_var): Handle MEM_REF.
3130         (maybe_rewrite_mem_ref_base): New function.
3131         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
3132         to SSA form.
3133         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
3134         INDIRECT_REF handling.
3135         (copy_tree_body_r): Handle MEM_REF.
3136         * gimple.c (is_gimple_addressable): Adjust.
3137         (is_gimple_address): Likewise.
3138         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
3139         invariant base are invariant.
3140         (is_gimple_min_lval): Adjust.
3141         (is_gimple_mem_ref_addr): New function.
3142         (get_base_address): Handle MEM_REF.
3143         (count_ptr_derefs): Likewise.
3144         (get_base_loadstore): Likewise.
3145         * gimple.h (is_gimple_mem_ref_addr): Declare.
3146         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
3147         * tree-cfg.c (verify_address): New function, split out from ...
3148         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
3149         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
3150         INDIRECT_REFs.
3151         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
3152         INDIRECT_REF.  Allow conversions.
3153         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
3154         a register does not change its size.
3155         (verify_types_in_gimple_reference): Verify MEM_REF.
3156         (verify_gimple_assign_single): Disallow INDIRECT_REF.
3157         Handle MEM_REF.
3158         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
3159         New.
3160         (mark_address_taken): Handle MEM_REF.
3161         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
3162         (get_asm_expr_operands): Pass opf_not_non_addressable.
3163         (get_expr_operands): Handle opf_[not_]non_addressable.
3164         Handle MEM_REF.  Remove INDIRECT_REF handling.
3165         * tree-vrp.c: (check_array_ref): Handle MEM_REF.
3166         (search_for_addr_array): Likewise.
3167         (check_array_bounds): Likewise.
3168         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
3169         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
3170         (ref_always_accessed_p): Likewise.
3171         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
3172         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
3173         Handle MEM_REF.
3174         * cgraphbuild.c (mark_load): Properly check for NULL result
3175         from get_base_address.
3176         (mark_store): Likewise.
3177         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
3178         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
3179         handling for MEM_REF.
3180         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
3181         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
3182         * builtins.c (stabilize_va_list_loc): Use the function ABI
3183         valist type if we couldn't canonicalize the argument type.
3184         Always dereference with the canonical va-list type.
3185         (maybe_emit_free_warning): Handle MEM_REF.
3186         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
3187         memmove to memcpy.
3188         * builtins.c (fold_builtin_memory_op): Use ref-all types
3189         for all memcpy foldings.
3190         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
3191         (build_outer_var_ref): Likewise.
3192         (scan_omp_1_op): Likewise.
3193         (lower_rec_input_clauses): Likewise.
3194         (lower_lastprivate_clauses): Likewise.
3195         (lower_reduction_clauses): Likewise.
3196         (lower_copyprivate_clauses): Likewise.
3197         (expand_omp_atomic_pipeline): Likewise.
3198         (expand_omp_atomic_mutex): Likewise.
3199         (create_task_copyfn): Likewise.
3200         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
3201         Remove old union trick.  Initialize constant offsets.
3202         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
3203         INDIRECT_REF.  Init base_alias_set properly.
3204         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
3205         (vn_reference_fold_indirect): Adjust for MEM_REFs.
3206         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
3207         for ARRAY_REFs.
3208         (may_insert): Remove.
3209         (visit_reference_op_load): Do not test may_insert.
3210         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
3211         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
3212         a field to store the constant offset this op applies.
3213         (run_scc_vn): Adjust prototype.
3214         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
3215         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
3216         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
3217         bother about volatile qualifiers on pointers.
3218         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
3219         * tree-ssa-loop-ivopts.c
3220         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
3221         (strip_offset_1): Likewise.
3222         (find_interesting_uses_address): Replace INDIRECT_REF handling with
3223         MEM_REF handling.
3224         (get_computation_cost_at): Likewise.
3225         * ipa-pure-const.c (check_op): Handle MEM_REF.
3226         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
3227         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
3228         and constants.
3229         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
3230         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
3231         (eliminate_local_variables_1): Likewise.
3232         (create_call_for_reduction_1): Likewise.
3233         (create_loads_for_reductions): Likewise.
3234         (create_loads_and_stores_for_name): Likewise.
3235         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
3236         (ssa_accessed_in_tree): Handle MEM_REF.
3237         (ssa_accessed_in_assign_rhs): Likewise.
3238         (update_type_size): Likewise.
3239         (analyze_accesses_for_call_stmt): Likewise.
3240         (analyze_accesses_for_assign_stmt): Likewise.
3241         (transform_access_sites): Likewise.
3242         (transform_allocation_sites): Likewise.
3243         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
3244         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
3245         not handle INDIRECT_REF.
3246         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
3247         (cond_store_replacement): Likewise.
3248         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
3249         MEM_REF, no not handle INDIRECT_REFs.
3250         (insert_into_preds_of_block): Properly initialize avail.
3251         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
3252         for ARRAY_REFs.  Properly handle reference lookups that
3253         require a bit re-interpretation.
3254         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
3255         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
3256         (build_ref_for_offset_1): Remove.
3257         (build_ref_for_offset): Build MEM_REFs.
3258         (gate_intra_sra): Disable for now.
3259         (sra_ipa_modify_expr): Handle MEM_REF.
3260         (ipa_early_sra_gate): Disable for now.
3261         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
3262         MEM_REF handling.
3263         (disqualify_base_of_expr): Likewise.
3264         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
3265         MEM_REF handling.
3266         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
3267         Use mem_ref_offset.  Remove bogus folding.
3268         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
3269         (make_fancy_name_1): Add support for MEM_REF.
3270         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
3271         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
3272         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
3273         (compute_complex_ancestor_jump_func): Likewise.
3274         (ipa_analyze_virtual_call_uses): Likewise.
3275         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
3276         INDIRECT_REF folding with more generalized MEM_REF folding.
3277         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
3278         (forward_propagate_addr_into_variable_array_index): Also handle
3279         &ARRAY + I in addition to &ARRAY[0] + I.
3280         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
3281         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
3282         creates assignments with overlap.
3283         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
3284         (get_frame_field): Likewise.
3285         (get_nonlocal_debug_decl): Likewise.
3286         (convert_nonlocal_reference_op): Likewise.
3287         (struct nesting_info): Add mem_refs pointer-set.
3288         (create_nesting_tree): Allocate it.
3289         (convert_local_reference_op): Insert to be folded mem-refs.
3290         (fold_mem_refs): New function.
3291         (finalize_nesting_tree_1): Perform defered folding of mem-refs
3292         (free_nesting_tree): Free the pointer-set.
3293         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
3294         (vectorizable_load): Likewise.
3295         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
3296         (propagate_with_phi): Likewise.
3297         * tree-object-size.c (addr_object_size): Handle MEM_REFs
3298         instead of INDIRECT_REFs.
3299         (compute_object_offset): Handle MEM_REF.
3300         (plus_stmt_object_size): Handle MEM_REF.
3301         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
3302         for &MEM_REF.
3303         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
3304         (symbol_marked_for_renaming): Likewise.
3305         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
3306         (fold-const.o): Add $(TREE_FLOW_H).
3307         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
3308         (find_func_clobbers): Likewise.
3309         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
3310         (decompose_access): Likewise.
3311         (replace_field_acc): Likewise.
3312         (replace_field_access_stmt): Likewise.
3313         (insert_new_var_in_stmt): Likewise.
3314         (get_stmt_accesses): Likewise.
3315         (reorg_structs_drive): Disable.
3316         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
3317         (ix86_canonical_va_list_type): Likewise.
3318
3319 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
3320
3321         PR other/44566
3322         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
3323         * target.def (struct gcc_target): Replace enum reg_class with
3324         reg_class_t in hook argument / return types.
3325         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
3326         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
3327         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
3328         * targhooks.h (default_branch_target_register_class): Likewise.
3329         (default_ira_cover_classes, default_secondary_reload): Likewise.
3330         (default_memory_move_cost, default_register_move_cost): Likewise.
3331         * targhooks.c (default_branch_target_register_class): Likewise.
3332         (default_ira_cover_classes, default_secondary_reload): Likewise.
3333         (default_memory_move_cost, default_register_move_cost): Likewise.
3334         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
3335         * bt-load.c (branch_target_load_optimize): Likewise.
3336         * ira.c (setup_cover_and_important_classes): Likewise.
3337         * ira-costs.c (copy_cost): Likewise.
3338         * reload1.c (emit_input_reload_insns): Likewise.
3339         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
3340         * config/frv/frv.c (frv_secondary_reload): Likewise.
3341         * config/s390/s390.c (s390_secondary_reload): Likewise.
3342         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
3343         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
3344         (ix86_register_move_cost): Likewise.
3345         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
3346         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
3347         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
3348         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
3349         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
3350         (rs6000_ira_cover_classes): Likewise.
3351         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
3352         * config/picochip/picochip-protos.h (picochip_secondary_reload):
3353         Likewise.
3354         * config/pa/pa.c (pa_secondary_reload): Likewise.
3355         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
3356         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
3357         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
3358         * doc/tm.texi: Regenerate.
3359
3360 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
3361
3362         PR bootstrrap/44726
3363         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
3364         use.
3365         (build_alias_set_optimal_p): Likewise.
3366         (build_base_obj_set_for_drs): Likewise.
3367
3368 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
3369
3370         * target.def: Remove comment about licensing problems of function
3371         declarations.
3372
3373         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
3374         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
3375         * doc/tm.texi: Regenerate.
3376
3377         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
3378         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
3379
3380         * target.def (enum_va_list_p): Use DEFHOOK.
3381         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
3382         Rename ptype to ptree.
3383         * doc/tm.texi: Regenerate.
3384
3385         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
3386         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
3387         * doc/tm.texi: Regenerate.
3388
3389         * target.def (memory_move_cost): Use DEFHOOK.
3390         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
3391         Rename regclass AKA class to rclass.
3392         * doc/tm.texi: Regenerate.
3393
3394         * target.def (pragma_parse): Use DEFHOOK.
3395         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
3396         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
3397         * doc/tm.texi: Regenerate.
3398
3399         * target.def (pass_by_reference): Use DEFHOOK.
3400         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
3401         * doc/tm.texi: Regenerate.
3402
3403         * target.def (resolve_overloaded_builtin): Rename params to arglist.
3404         Use DEFHOOK.
3405         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
3406         * doc/tm.texi: Regenerate.
3407
3408         * target.def (return_pops_args): Use DEFHOOK.
3409         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
3410         Rename stack-size to size.
3411         * doc/tm.texi: Regenerate.
3412
3413         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
3414         last-sched_cycle to last_clock, cur_cycle to clock.
3415         * doc/tm.texi.in: Use @hook.
3416         * doc/tm.texi: Regenerate.
3417
3418         * target.def (print_operand, print_operand_address): Update comment.
3419         (print_operand_punct_valid_p): Likewise.
3420
3421 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3422
3423         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
3424         to rtl.h.
3425         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
3426         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
3427         * rtl-error.h: New.
3428         * regrename.c: Do not include toplev.h. Include rtl-error.h.
3429         * rtl-error.c: Likewise.
3430         * reload.c: Likewise.
3431         * recog.c:  Likewise.
3432         * sel-sched.c: Likewise.
3433         * function.c: Likewise.
3434         * reg-stack.c: Likewise.
3435         * cfgrtl.c: Likewise.
3436         * reload1.c: Likewise.
3437         * final.c: Include rtl-error.
3438         * Makefile.in: Adjust dependencies.
3439
3440 2010-06-30  Jan Hubicka  <jh@suse.cz>
3441
3442         PR middle-end/PR44706
3443         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
3444         to return the value.
3445
3446 2010-06-30  Michael Matz  <matz@suse.de>
3447
3448         PR bootstrap/44699
3449         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
3450         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
3451         a gimple reg, attach the original VDEF to the last store in the
3452         sequence.
3453
3454 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
3455
3456         PR other/44034
3457         * config/darwin.c (darwin_override_options): Use renamed
3458         targetm.asm_out.emit_unwind_label.
3459
3460 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
3461
3462         PR tree-optimization/39799
3463         * tree-inline.c (remap_ssa_name): Initialize variable only if
3464         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
3465
3466 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
3467
3468         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
3469
3470 2010-06-30  Richard Guenther  <rguenther@suse.de>
3471
3472         PR target/44722
3473         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
3474         against oscillation with reverse peephole2.
3475
3476 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
3477
3478         PR target/44721
3479         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
3480         Fix last commit.
3481
3482 2010-06-30  Nick Clifton  <nickc@redhat.com>
3483
3484         * config/rx/rx-modes.def: New file.
3485         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
3486         (CC_REGNUM): Define.
3487         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
3488         register.
3489         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
3490         (SELECT_CC_MODE): Define.
3491         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
3492         (reg:CC CC_REG) instead of (cc0).
3493         (attr "cc"): Delete.
3494         (cbranchsi4): Do not split compare and branch here. Instead move
3495         it to...
3496         (cbranchsi4_<code>): ... here.  New patterns.
3497         (cmpsi): Call rx-compare_redundant to find out if it is necessary
3498         to emit the compare instruction.
3499         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
3500         cc_status flags.
3501         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
3502         FIRST_PSEUDO_REGNUM.
3503         (rx_expand_prologue, rx_expand_epilogue): Likewise.
3504         (rx_notice_update_cc): Delete.
3505         (rx_cc_modes_compatible): New function.
3506         (flags_needed_for_conditional): New function.
3507         (flags_from_mode): New function.
3508         (rx_compare_redundant): New function - scans backwards through
3509         insn list to find out if condition flags are already set correctly.
3510         (TARGET_CC_MODES_COMPATIBLE): Define.
3511         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
3512
3513         * config/rx/rx.h (BRANCH_COST): Define.
3514         (REGISTER_MOVE_COST): Define.
3515         * config/rx/predicates (rx_source_operand): Allow all constant types.
3516         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
3517         (tstsi4): New pattern.
3518         * config/rx/rx.c (rx_memory_move_cost): Define.
3519         (TARGET_MEMORY_MOVE_COST): Define.
3520
3521 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3522
3523         * tree.h (block_may_fallthru): Declare here.
3524         * tree-flow.h (block_may_fallthru): Do not declare here.
3525         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
3526         bitmap.h
3527         * Makefile.in (c-typeck.o): Update dependencies.
3528
3529 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
3530
3531         PR debug/44694
3532         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
3533         * cselib.c (cfa_base_preserved_regno): New static variable.
3534         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
3535         of REGNO (cfa_base_preserved_val->locs->loc).
3536         (cselib_preserve_cfa_base_value): Add regno argument, set
3537         cfa_base_preserved_regno to it.
3538         (cselib_invalidate_regno): Allow removal of registers other than
3539         cfa_base_preserved_regno from cfa_base_preserved_val.
3540         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
3541         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
3542         of MEM addresses, if not on LHS.
3543         (reverse_op): Don't add reverse ops for cfa_base_rtx.
3544         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
3545
3546 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
3547
3548         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
3549         static variables.
3550         (peep2_buf_position): New static function.
3551         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
3552         peephole2_optimize): Use it.
3553         (peep2_attempt, peep2_update_life): New static functions, broken out
3554         of peephole2_optimize.
3555         (peep2_fill_buffer): New static function.
3556         (peephole2_optimize): Change the main loop to try to fill the buffer
3557         with the maximum number of insns before matching them against
3558         peepholes.  Use a forward scan.  Remove special case for targets with
3559         conditional execution.
3560         * genrecog.c (change_state): Delete dead code.
3561         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
3562         Rewrite so as not to expect the second insn to have had a peephole
3563         applied yet.
3564
3565 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
3566
3567         * genhooks.c (emit_findices): Cast field precision to int.
3568         (emit_documentation): Likewise.
3569
3570 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
3571
3572         PR tree-optimization/43801
3573         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
3574         if old_decl was DECL_ONE_ONLY.
3575
3576         PR debug/44668
3577         * dwarf2out.c (add_accessibility_attribute): New function.
3578         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
3579         instead of adding DW_AT_accessibility manually.
3580         (gen_enumeration_type_die, gen_struct_or_union_type_die,
3581         gen_typedef_die): Use it.
3582
3583 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
3584
3585         * vmsdbgout.c (full_name): Just output the file name if not native.
3586
3587 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
3588
3589         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
3590         (funcnam_table): New static table.
3591         (funcnum_table): New static table.
3592         (write_rtnbeg): Write value saved in funcnum_table.
3593         (write_rtnend): Write value saved in funcnum_table.
3594         (vmsdbgout_begin_function): Save current function info in
3595         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
3596         (vmsdbgout_finish): Iterate over funcnum_table.
3597
3598 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
3599
3600         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
3601         (vmsdbgout_type_decl): Declare
3602         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
3603         (FUNC_EPILOGUE_LABEL): New macro
3604         (vmsdbgout_begin_epilogue): New function.
3605         (vmsdbgout_type_decl): New function.
3606
3607 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
3608
3609         * vmsdbg.h: Update copyright.
3610
3611 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
3612
3613         * vmsdbg.h (DST_K_TBG): New DST constant.
3614         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
3615         (write_modbeg): Cast module_language to avoid warning.
3616         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
3617
3618 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
3619
3620         PR other/44034
3621         * target.def, doc/tm.texi.in, genhooks.c: New files.
3622         * target.h: Instead of defining individual hook members,
3623         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
3624         include target.def.
3625         * target-def.h: Instead of defining individual hook initializers,
3626         include target-hooks-def.h.
3627         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
3628         targetm.live_on_entry -> targetm.extra_live_on_entry
3629         targetm.sched.md_finish ->targetm.sched.finish
3630         targetm.sched.md_init -> targetm.sched.init
3631         targetm.sched.md_init_global -> targetm.sched.init_global
3632         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
3633         targetm.asm_out.except_table_label ->
3634           targetm.asm_out.emit_except_table_label
3635         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
3636         targetm.target_help -> targetm.help
3637         targetm.vectorize.builtin_support_vector_misalignment ->
3638           targetm.vectorize.support_vector_misalignment
3639         targetm.file_start_app_off -> targetm.asm_file_start_app_off
3640         targetm.file_start_file_directive ->
3641          targetm.asm_file_start_file_directive
3642         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
3643         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
3644         * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
3645         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
3646           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
3647         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
3648           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
3649         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
3650         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
3651         * Makefile.in (TARGET_H): Depend on target.def.
3652         (TARGET_DEF_H): Depend on target-hooks-def.h.
3653         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
3654         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
3655         * doc/tm.texi: Regenerate.
3656
3657         * Makefile.in (s-tm-texi): Remove stray tab / rule.
3658
3659         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
3660         (targetm.sched.init): Likewise.
3661
3662 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
3663
3664         PR bootstrap/44713
3665         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
3666         (function_arg_advance_32): Const-ify TYPE parameter.
3667         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
3668         (ix86_function_arg_advance): Change type of NAMED to bool.
3669         (function_arg_32): Const-ify CUM and TYPE parameters.
3670         (function_arg_64): Likewise.  Change type of NAMED to bool.
3671         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
3672         to bool.
3673         (ix86_function_arg): Change type of NAMED to bool.
3674         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
3675         last argument as a bool.
3676
3677 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
3678
3679         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
3680         (OVERRIDE_OPTIONS): Add note of obsolescence.
3681         Replace references with references to TARGET_OPTION_OVERRIDE.
3682         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
3683          the macro).
3684         * targhooks.c (default_target_option_override): New function.
3685         * targhooks.h (default_target_option_override): Declare.
3686         * target.h (struct gcc_target): Add override member to
3687         target_option member.
3688         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
3689         targetm.target_option.override call.
3690         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
3691         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
3692
3693 2010-06-29  Jan Hubicka  <jh@suse.cz>
3694
3695         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
3696
3697 2010-06-29  Jan Hubicka  <jh@suse.cz>
3698
3699         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
3700         unreachable.
3701         (rebuild_frequencies): New function.
3702         * predict.h (rebuild_frequencies): Declare.
3703         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
3704         entry block and edge reaching new_entry.
3705         (tree_function_versioning): When doing partial cloning, rebuild
3706         frequencies when done.
3707         * passes.c (execute_function_todo): Use rebild_frequencies.
3708
3709 2010-06-29  Richard Guenther  <rguenther@suse.de>
3710
3711         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
3712         * tree-flow.h (enum noalias_state): Remove.
3713         (struct var_ann_d): Remove noalias_state member.
3714
3715 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
3716
3717         PR target/43902
3718         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
3719         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
3720         (maddhidi4): Likewise.
3721
3722         Revert parts of the change for PR25130.
3723         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
3724         MEM_ALIAS_SET.
3725
3726 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
3727
3728         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
3729         targetm.calls.function_incoming_arg, and
3730         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
3731         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
3732         * target.h (struct gcc_target): Add function_arg_advance,
3733         function_arg, and function_incoming_arg fields.
3734         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
3735         (TARGET_FUNCTION_INCOMING_ARG): Define.
3736         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
3737         and TARGET_FUNCTION_INCOMING_ARG.
3738         * targhooks.h (default_function_arg_advance): Declare.
3739         (default_function_arg, default_function_incoming_arg): Declare.
3740         * targhooks.c (default_function_arg_advance): New function.
3741         (default_function_arg, default_function_incoming_arg): New function.
3742         * config/i386/i386.c (function_arg_advance): Rename to...
3743         (ix86_function_arg_advance): ...this.  Make static.
3744         (function_arg): Rename to...
3745         (ix86_function_arg): ...this.  Make static.
3746         (TARGET_FUNCTION_ARG_ADVANCE): Define.
3747         (TARGET_FUNCTION_ARG): Define.
3748         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
3749         (FUNCTION_ARG): Delete.
3750         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
3751         (function_arg): Delete prototype.
3752
3753 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
3754
3755         * reginfo.c (init_reg_sets_1): Adjust comments.
3756         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
3757         * calls.c (prepare_call_address): Likewise.
3758         (emit_call_1): Use targetm.calls.return_pops_args.
3759         (expand_call): Likewise.
3760         * function.c (assign_parms): Likewise.
3761         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
3762         * target.h (struct gcc_target) [struct calls]: Add
3763         return_pops_args field.
3764         * targhooks.h (default_return_pops_args): Declare.
3765         * targhooks.c (default_return_pops_args): Define.
3766         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
3767         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
3768         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
3769         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
3770         documentation.
3771         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
3772         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
3773         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
3774         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
3775         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
3776         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
3777         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
3778         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
3779         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
3780         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
3781         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
3782         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
3783         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
3784         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
3785         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
3786         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
3787         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
3788         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
3789         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
3790         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
3791         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
3792         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
3793         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
3794         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
3795         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
3796         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
3797         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
3798         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
3799         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
3800         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
3801         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
3802         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
3803         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
3804         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
3805         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
3806         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
3807         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
3808         * config/i386/i386.c (ix86_return_pops_args): Make static.
3809         Constify arguments.
3810         (TARGET_RETURN_POPS_ARGS): Define.
3811         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
3812         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
3813         (TARGET_RETURN_POPS_ARGS): Define.
3814         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
3815         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
3816         (TARGET_RETURN_POPS_ARGS): Define.
3817
3818 2010-06-29  Richard Guenther  <rguenther@suse.de>
3819
3820         PR middle-end/44667
3821         * tree-inline.c (initialize_inlined_parameters): Make sure
3822         to remap the inlined parameter variable substitutions types.
3823
3824 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
3825
3826         PR rtl-optimization/44659
3827         * combine.c (make_compound_operation) <SUBREG>: Do not return the
3828         result of force_to_mode if it partially re-expanded the compound.
3829
3830 2010-06-28  Jan Hubicka  <jh@suse.cz>
3831
3832         PR middle-end/44671
3833         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
3834         RESULT_DECL.
3835
3836 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
3837
3838         * double-int.h (force_fit_type_double): Remove declaration.
3839         * double-int.c (force_fit_type_double): Move to tree.c.
3840         * tree.h (force_fit_type_double): Declare.
3841         * tree.h (force_fit_type_double): Moved from double-int.c. Use
3842         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
3843         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
3844         * convert.c (convert_to_pointer): Adjust call to
3845         force_fit_type_double.
3846         * tree-vrp.c (extract_range_from_assert,
3847         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
3848         * fold-const.c: Update comment.
3849         (int_const_binop, fold_convert_const_int_from_int,
3850         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
3851         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
3852         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
3853         round_up_loc): Adjust call to force_fit_type_double.
3854
3855 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
3856
3857         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
3858
3859 2010-06-28  Martin Jambor  <mjambor@suse.cz>
3860
3861         * tree-sra.c (convert_callers): New parameter, change fndecls of
3862         recursive calls.
3863         (modify_function): Pass the old decl to convert_callers.
3864
3865 2010-06-28  Martin Jambor  <mjambor@suse.cz>
3866
3867         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
3868         ipa_check_create_node_params and ipa_initialize_node_params with
3869         checking asserts they are not necessary.
3870
3871 2010-06-28  Jan Hubicka  <jh@suse.cz>
3872
3873         PR tree-optimization/44687
3874         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
3875
3876 2010-06-28  Martin Jambor  <mjambor@suse.cz>
3877
3878         PR c++/44535
3879         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
3880         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
3881         instead of BINFO_BASE_BINFO.
3882
3883 2010-06-28  Michael Matz  <matz@suse.de>
3884
3885         PR middle-end/44592
3886         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
3887         proper VDEF chain for intermediate stores in the sequence.
3888
3889 2010-06-28  Jan Hubicka  <jh@suse.cz>
3890
3891         PR tree-optimization/44357
3892         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
3893         uninlinable functions.
3894
3895 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
3896
3897         * config.gcc (powerpc*-*-*): Handle titan.
3898         * config/rs6000/rs6000.c (titan_cost): New costs.
3899         (rs6000_override_options): Add "titan" to processor_target_table.
3900         Add Titan to branch alignment logic.
3901         Correctly set rs6000_cost for titan.
3902         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
3903         * config/rs6000/titan.md: New file.
3904         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
3905
3906 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
3907
3908         * tree-browser.c (TB_history_stack): Convert to a VEC.
3909         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
3910         (TB_history_prev): Likewise.
3911
3912 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
3913
3914         * vec.h (vec_heap_free): Add parentheses around free.
3915
3916 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
3917
3918         * system.h: Poison GCC_EXCEPT_H for front-end files.
3919
3920         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
3921         langhook.
3922         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
3923         Define to NULL by default.
3924         * except.h: Define GCC_EXCEPT_H.
3925         (doing_eh): Remove prototype.
3926         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
3927         (lang_protect_cleanup_actions): Remove.
3928         * except.c (lang_protect_cleanup_actions): Remove.
3929         (doing_eh): Remove.
3930         (gen_eh_region): Don't check doing_eh here.
3931         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
3932         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
3933         instead of lang_protect_cleanup_actions.
3934         * omp-low.c (maybe_catch_exception): Likewise.
3935         * Makefile.in: Update dependencies.
3936
3937 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
3938
3939         * cgraph.h (struct varpool_node): new used_from_object_file flag.
3940         (struct cgraph_local_info): new used_from_object_file flag.
3941         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
3942         (cgraph_clone_node): initialize used_from_object_file.
3943         (cgraph_create_virtual_clone): initialize used_from_object_file.
3944         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
3945         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
3946         when compiling with -fwhole-program.
3947         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
3948         internal resolver.
3949         * ipa.c (function_and_variable_visibility): Set externally_visible
3950         flag of varpool_node if used_from_object_file flag is set.
3951         (cgraph_externally_visible_p): check used_from_object_file flag.
3952         * doc/invoke.texi (-fwhole-program option): Change description of
3953         externally_visible attribute accordingly.
3954         * doc/extend.texi (externally_visible): Ditto.
3955
3956 2010-06-27  Jan Hubicka  <jh@suse.cz>
3957
3958         * params.def (max-inline-insns-auto): Default to 40.
3959         * doc/invoke.texi (max-inline-insns-auto): Document the change.
3960
3961 2010-06-27  Jan Hubicka  <jh@suse.cz>
3962
3963         PR middle-end/44671
3964         PR middle-end/44686
3965         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
3966         signature change.
3967         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
3968         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
3969
3970 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
3971
3972         * target.h (struct gcc_target): Add register_move_cost field.
3973         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
3974         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
3975         * targhooks.c (default_register_move_cost): New function.
3976         * targhooks.h (default_register_move_cost): Declare function.
3977         * defaults.h (REGISTER_MOVE_COST): Delete.
3978         * ira-int.h (ira_register_move_cost): Update comment.
3979         * ira.c: (ira_register_move_cost): Update comment.
3980         * reload.h (register_move_cost): Declare.
3981         * reginfo.c (register_move_cost): New function.
3982         (move_cost): Update comment.
3983         (init_move_cost, memory_move_secondary_cost): Replace
3984         REGISTER_MOVE_COST with register_move_cost.
3985         * postreload.c (reload_cse_simplify_set): (Ditto.).
3986         * reload.c (find_valid_class, find_reloads): (Ditto.).
3987         * reload1.c (choose_reload_regs): (Ditto.).
3988         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
3989         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
3990         * doc/md.texi (can_create_pseudo_p): Update documentation.
3991
3992         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
3993         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
3994         * config/i386/i386.h (ix86_memory_move_cost): Make static.
3995         (TARGET_MEMORY_MOVE_COST): Define.
3996
3997         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
3998         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
3999         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
4000         (TARGET_MEMORY_MOVE_COST): Define.
4001
4002 2010-06-27  Richard Guenther  <rguenther@suse.de>
4003
4004         PR tree-optimization/44683
4005         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
4006         false edge from the inverted condition.
4007
4008 2010-06-27  Richard Guenther  <rguenther@suse.de>
4009
4010         PR middle-end/44684
4011         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
4012         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
4013         for register LHS.  Or non-store assignments.
4014
4015 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
4016
4017         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
4018         (sparc_emit_set_const64): Likewise.  Remove disabled code.
4019         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
4020         (sparc_emit_set_const64): Likewise.
4021
4022 2010-06-26  Catherine Moore  <clm@codesourcery.com>
4023
4024         * config/mips/mips.md (alu_type): New attribute.
4025         (type): Infer type from alu_type.
4026         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
4027         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
4028         *subsi3_extended, negsi2, negdi2, *low<mode>,
4029         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
4030         xor<mode>3, *nor<mode>3,
4031         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
4032         *zero_extendhi_truncqi):  Set alu_type instead of type.
4033
4034 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
4035
4036         * config/alpha/alpha.c (alpha_need_linkage): Adjust
4037         splay_tree_new_ggc call.
4038         (alpha_use_linkage): Likewise.
4039
4040 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
4041
4042         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
4043         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
4044         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
4045         (static_specs): Remove switches_need_spaces.
4046         (process_command, do_self_spec): Hardcode handling "-o" instead of
4047         checking switches_need_spaces.
4048         * system.h (SWITCHES_NEED_SPACES): Poison.
4049
4050 2010-06-26  Richard Guenther  <rguenther@suse.de>
4051
4052         PR tree-optimization/44393
4053         * tree-loop-distribution.c (generate_loops_for_partition): Fix
4054         stmt removal and VOP renaming.
4055         (generate_memset_zero): Remove redundant stmt updating.
4056         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
4057         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
4058
4059 2010-06-26  Jan Hubicka  <jh@suse.cz>
4060
4061         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
4062         edges comming from header are equivalent.
4063         (visit_bb): Handle PHIs correctly.
4064         * tree-inline.c (copy_phis_for_bb): Be able to copy
4065         PHI from entry edge.
4066         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
4067
4068 2010-06-26  Richard Guenther  <rguenther@suse.de>
4069
4070         PR middle-end/44674
4071         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
4072         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
4073
4074 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
4075
4076         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
4077         add_infile, alloc_switch): New.
4078         (process_command): Remove variable lang_n_infiles.  Process
4079         options in a single pass.  Use new functions for allocating
4080         infiles and switches arrays.  Properly skip operands of
4081         -Xpreprocessor and -Xassembler.
4082
4083 2010-06-26  Jan Hubicka  <jh@suse.cz>
4084
4085         PR middle-end/44671
4086         * cgraphunit.c (cgraph_function_versioning): Remove wrong
4087         cgraph_make_decl_local call; fix typo copying RTL data.
4088
4089 2010-06-25  DJ Delorie  <dj@redhat.com>
4090
4091         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
4092         (m32c_output_aligned_common): Likewise.
4093         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
4094         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
4095         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
4096         (m32c_register_pragmas): Register it.
4097         * config/m32c/m32c.c (m32c_get_pragma_address): New.
4098         (m32c_insert_attributes): Set #pragma address decls volatile.
4099         (pragma_entry_eq): New.
4100         (pragma_entry_hash): New.
4101         (m32c_note_pragma_address): New.
4102         (m32c_get_pragma_address): New.
4103         (m32c_output_aligned_common): New.
4104         * doc/extend.texi: Document the new pragma.
4105
4106         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
4107         also.
4108         * config/m32c/predicates.md (m32c_any_operand): Check the code
4109         instead of memory_operand so as to allow matching volatile MEMs.
4110         (m32c_nonimmediate_operand): Likewise.
4111         (mra_operand): Allow volatiles.
4112
4113 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
4114
4115         PR debug/44610
4116         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
4117         address if the offset is unknown.
4118
4119 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
4120
4121         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
4122         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
4123         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
4124         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
4125         to ia64_start_function. Invoke it.
4126         * config/ia64/ia64.c (ia64_start_function): Call new function
4127         dwarf2out_vms_debug_main_pointer.
4128
4129 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
4130
4131         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
4132         statements computing the true predicate.
4133
4134 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
4135
4136         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
4137         to boolean_true_node.
4138         (reset_bb_predicate): New.
4139         (predicate_bbs): Call reset_bb_predicate.
4140
4141 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
4142
4143         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
4144         (tree_if_conversion): Returns true when something has been changed.
4145         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
4146         changed something.
4147
4148 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
4149
4150         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
4151         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
4152         * tree-if-conv.c: Include dbgcnt.h.
4153         (tree_if_conversion): Use if_conversion_tree to count the number of
4154         if-convertible loops.
4155
4156 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
4157
4158         * common.opt (fprefetch-loop-arrays): Re-define
4159         -fprefetch-loop-arrays as a tri-state option with the initial
4160         value of -1.
4161         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
4162         pass only when flag_prefetch_loop_arrays > 0.
4163         * toplev.c (process_options): Note that, with tri-states,
4164         flag_prefetch_loop_arrays>0 means prefetching is enabled.
4165         * config/i386/i386.c (override_options): Enable prefetching at -O3
4166         for a set of CPUs that sw prefetching is helpful.
4167         (software_prefetching_beneficial_p): New.  Return TRUE if software
4168         prefetching is beneficial for the given CPU.
4169
4170 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
4171
4172         PR rtl-optimization/44326
4173         * implicit-zee.c (find_removable_zero_extends): Replace
4174         INSN_P with NONDEBUG_INSN_P.
4175
4176 2010-06-25  Martin Jambor  <mjambor@suse.cz>
4177
4178         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
4179         (struct ipa_node_params): Removed the modification_analysis_done flag.
4180         (ipa_is_param_modified): Removed.
4181         (ipa_analyze_node): Declare.
4182         (ipa_compute_jump_functions): Remove declaration.
4183         (ipa_count_arguments): Likewise.
4184         (ipa_detect_param_modifications): Likewise.
4185         (ipa_analyze_params_uses): Likewise.
4186         * ipa-prop.c (struct param_analysis_info): New type.
4187         (visit_store_addr_for_mod_analysis): Removed.
4188         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
4189         moved down in the file.
4190         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
4191         (ipa_count_arguments): Made static.
4192         (mark_modified): New function.
4193         (is_parm_modified_before_call): New function.
4194         (compute_pass_through_member_ptrs): New parameter parms_info, call
4195         is_parm_modified_before_call instead of ipa_is_param_modified.
4196         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
4197         it to compute_pass_through_member_ptrs.
4198         (ipa_compute_jump_functions): New parameter parms_info, pass it to
4199         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
4200         on the callee if it is analyzed.  Made static.
4201         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
4202         is_parm_modified_before_call instead of ipa_is_param_modified.
4203         (ipa_analyze_call_uses): New parameter parms_info, pass it to
4204         ipa_analyze_indirect_call_uses.
4205         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
4206         ipa_analyze_call_uses.
4207         (ipa_analyze_params_uses): New parameter parms_info, pass it to
4208         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
4209         (ipa_analyze_node): New function.
4210         (ipa_print_node_params): Do not dump the modified flag.
4211         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
4212         it.  Do not stream the modified parameter flag.
4213         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
4214         it.  Do not stream the modified parameter flag.
4215         * ipa-cp.c (ipcp_analyze_node): Removed.
4216         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
4217         with only a call to ipa_analyze_node.
4218         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
4219         node with only a call to ipa_analyze_node.
4220
4221 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4222
4223         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
4224
4225 2010-06-25  Jan Hubicka  <jh@suse.cz>
4226
4227         * tree-pass.h (pass_split_functions): Declare.
4228         * opts.c (decode_options): Enable function splitting at -O2
4229         * timevar.def (TV_IPA_FNSPLIT): New macro.
4230         * ipa-split.c: New file.
4231         * common.opt (-fpartial-inlining): New flag.
4232         * Makefile.in (ipa-split.o): New object file.
4233         * passes.c (init_optimization_passes): Add ipa-split.
4234         * params.def (partial-inlining-entry-probability): New parameters.
4235         * doc/invoke.texi (-fpartial-inlining): New.
4236
4237 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4238
4239         PR 44665
4240         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
4241         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
4242         (gimplify_expr): Likewise.
4243
4244 2010-06-25  Martin Jambor  <mjambor@suse.cz>
4245
4246         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
4247         statements instead of bailing out on them.
4248         (ipa_analyze_indirect_call_uses): Do not require that loads from the
4249         parameter are in the same BB as the condition.  Update comments.
4250
4251 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
4252
4253         PR middle-end/43866
4254         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
4255         true or always false, return NULL_TREE.
4256         (tree_unswitch_single_loop): Optimize conditions even when reaching
4257         max-unswitch-level parameter.  If num > 0, optimize first all conditions
4258         using entry checks, then do still reachable block discovery and consider
4259         only conditions in still reachable basic blocks in the loop.
4260
4261         PR tree-optimization/44539
4262         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
4263         the call doesn't have LHS, but has VDEF.
4264
4265 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
4266
4267         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
4268         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
4269         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
4270         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
4271         * system.h (MODIFY_TARGET_NAME): Poison.
4272
4273 2010-06-25  Alan Modra  <amodra@gmail.com>
4274
4275         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
4276         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
4277         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
4278         CMODEL_LARGE as default.
4279         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
4280         (offsettable_ok_by_alignment): Delete.
4281         (rs6000_emit_move): Remove mcmodel=medium optimization.
4282
4283 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
4284
4285         With large parts from Jim Wilson:
4286         PR target/43902
4287         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
4288         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
4289         * optabs.c (optab_for_tree_code): Likewise.
4290         (expand_widen_pattern_expr): Likewise.
4291         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
4292         out of execute_optimize_widening_mul.
4293         (convert_plusminus_to_widen): New function.
4294         (execute_optimize_widening_mul): Use the two new functions.
4295         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
4296         Remove code to generate widening multiply-accumulate.  Add support
4297         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
4298         * gimple-pretty-print.c (dump_ternary_rhs): New function.
4299         (dump_gimple_assign): Call it when appropriate.
4300         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
4301         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
4302         (expand_gimple_stmt_1): Likewise.
4303         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
4304         WIDEN_MULT_MINUS_EXPR.
4305         * tree-ssa-operands.c (get_expr_operands): Likewise.
4306         * tree-inline.c (estimate_operator_cost): Likewise.
4307         * gimple.c (extract_ops_from_tree_1): Renamed from
4308         extract_ops_from_tree.  Add new arg for a third operand; fill it.
4309         (gimple_build_assign_stat): Support operations with three operands.
4310         (gimple_build_assign_with_ops_stat): Likewise.
4311         (gimple_assign_set_rhs_from_tree): Likewise.
4312         (gimple_assign_set_rhs_with_ops_1): Renamed from
4313         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
4314         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
4315         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
4316         WIDEN_MULT_MINUS_EXPR.
4317         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
4318         (extract_ops_from_tree_1): Adjust declaration.
4319         (gimple_assign_set_rhs_with_ops_1): Likewise.
4320         (gimple_build_assign_with_ops): Pass NULL for last operand.
4321         (gimple_build_assign_with_ops3): New macro.
4322         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
4323         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
4324         functions.
4325         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
4326         (verify_gimple_assign): Call it.
4327         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
4328         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
4329         functions for dealing with three-operand statements.
4330         * tree.c (commutative_ternary_tree_code): New function.
4331         * tree.h (commutative_ternary_tree_code): Declare it.
4332         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
4333         ternary statements.
4334         (gimple_assign_nonzero_warnv_p): Likewise.
4335         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
4336         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
4337         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
4338         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
4339         (struct hashtable_expr): New member ternary in the union.
4340         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
4341         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
4342         (iterative_hash_hashable_expr): Likewise.
4343         (print_expr_hash_elt): Handle EXPR_TERNARY.
4344         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
4345         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
4346         statements.  Handle GIMPLE_TERNARY_RHS.
4347
4348 2010-06-25  Jan Hubicka  <jh@suse.cz>
4349
4350         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
4351
4352 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
4353
4354         PR c/44517
4355         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
4356         parameters are not good.
4357         (c_parser_parameter_declaration): Error unknown type name if the type
4358         name can't start declaration specifiers.
4359
4360 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
4361
4362         * gcc.c (translate_options): Don't mention +e in comment.
4363         (process_command): Don't handle +e specially.
4364
4365 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
4366
4367         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
4368
4369         * ira-build.c (merge_hard_reg_conflicts): New function.
4370         (create_cap_allocno, copy_info_to_removed_store_destinations,
4371         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
4372         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
4373         (remove_unnecessary_allocnos, remove_low_level_allocnos)
4374         copy_nifo_to_removed_store_destination): Use them.
4375         * ira-lives.c (make_hard_regno_born): New function, split out of
4376         make_regno_born.
4377         (make_allocno_born): Likewise.
4378         (make_hard_regno_dead): New function, split out of make_regno_dead.
4379         (make_allocno_dead): Likewise.
4380         (inc_register_pressure): New function, split out of set_allocno_live.
4381         (dec_register_pressure): New function, split out of clear_allocno_live.
4382         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
4383         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
4384         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
4385         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
4386         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
4387         mark_pseudo_regno_live.
4388         (process_bb_node_lives): Use mark_pseudo_regno_live,
4389         make_hard_regno_born and make_allocno_dead.
4390         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
4391         set_allocno_live, clear_allocno_live): Delete functions.
4392
4393         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
4394         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
4395         functions.
4396         (ira_flattening): Use ira_parent_allocno.
4397         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
4398         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
4399
4400         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
4401         statement.
4402
4403         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
4404         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
4405         minmax_set_iter_cond, minmax_set_iter_next,
4406         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
4407         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
4408         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
4409         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
4410         uses changed.
4411
4412         * ira-int.h (struct live_range, live_range_t): Renamed from struct
4413         ira_allocno_live_range and allocno_live_range_t; all uses changed.
4414         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
4415         All uses changed.
4416
4417 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
4418
4419         * thumb2.md (thumb2_tlobits_cbranch): Delete.
4420         (peephole2 to convert zero_extract/compare of single bit to
4421          lshift/compare): New.
4422
4423 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
4424
4425         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
4426         recursive call and call to 'int_const_binop'.
4427         (build_range_check, fold_cond_expr_with_comparison, unextend,
4428         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
4429         multiple_of_p): Adjust call to const_binop.
4430
4431 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
4432
4433         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
4434         determine size of XFmode operand.
4435         (XFmode extended DFmode push splitter): Ditto.
4436         (XFmode extended SFmode push splitter): Ditto.
4437
4438 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
4439
4440         PR target/44588
4441         * config/i386/i386.md (extract_code): New.
4442         (<u>divmodqi4): Likewise.
4443         (divmodhiqi3): Likewise.
4444         (udivmodhiqi3): Likewise.
4445         (<u>divqi3): Remvoved.
4446
4447 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
4448
4449         PR middle-end/44492
4450         * recog.h (struct recog_data): Add is_asm field.
4451         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
4452         present in constraints of inline-asm operand and memory operand
4453         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
4454         (extract_insn): Initialize recog_data.is_asm.
4455         * doc/md.texi (Constraints): Document operand side-effect rules.
4456
4457 2010-06-24  Andi Kleen  <ak@linux.intel.com>
4458
4459         * c-parser.c (c_parser_conditional_expression): Call
4460         warn_for_omitted_condop.
4461         * doc/invoke.texi: Document omitted condop warning.
4462
4463 2010-06-24  Nick Clifton<nickc@redhat.com>
4464
4465         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
4466         insn in the sequence is a jump insn before setting its label.
4467
4468 2010-06-24  Alan Modra  <amodra@gmail.com>
4469
4470         * collect2.c (main): Match exactly --version and --help.
4471
4472 2010-06-24  DJ Delorie  <dj@redhat.com>
4473
4474         * config/m32c/m32c-pragma.c: Don't include rtl.h.
4475
4476 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
4477
4478         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
4479         using X87MODEF mode iterator.
4480         (pushsf splitter): Macroize splitter using P mode iterator.
4481         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
4482         mode iterator.
4483
4484         (*movxf_internal): Rename from *movxf_integer.
4485         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
4486         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
4487         (*movdf_internal): Rename from *movdf_integer.
4488         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
4489         (*movsf_internal): Rename from *movdf_1.
4490
4491 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
4492
4493         * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
4494         (const_gimple_seq_node): Removed typedefs.
4495
4496         * gimple.h: (gimple_seq_node_d, gimple_seq_node)
4497         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
4498
4499 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
4500
4501         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
4502         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
4503         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
4504         and CODE_FOR_vec_extract_lo_v4df.
4505
4506         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
4507         Changed to define_insn_and_split.
4508         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
4509         (vec_extract_lo_v16hi): Likewise.
4510         (vec_extract_lo_v32qi): Likewise.
4511         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
4512         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
4513
4514 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
4515
4516         PR target/44640
4517         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
4518         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
4519         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
4520         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
4521         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
4522
4523         PR target/44640
4524         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
4525
4526         PR other/44644
4527         * df-core.c (struct df): Rename to df_d.
4528         * df.h (struct df): Likewise.
4529         * dse.h (struct df): Remove forward declaration.
4530         * recog.h (struct insn_data): Rename to:
4531         (struct_insn_data_d).  Adjusted all users.
4532
4533 2010-06-23  Arnaud Charlet  <charlet@adacore.com
4534
4535         PR ada/22220
4536         * doc/install.texi: Update requirements to build GNAT.
4537
4538 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
4539
4540         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
4541         enum type.
4542         (m68k_sched_attr_opx_type): Remove unreachable return.
4543         (m68k_sched_attr_opy_type): Likewise.
4544         (m68k_sched_attr_size): Likewise.
4545         (sched_get_opxy_mem_type): Likewise.
4546         (m68k_sched_attr_op_mem): Likewise.
4547
4548 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
4549
4550         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
4551         new statement and adjust VDEF only if necessary.  Remove superfluous
4552         call to maybe_clean_or_replace_eh_stmt.
4553         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
4554         copy the flags.
4555         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
4556         * tree-inline.c (copy_bb): ...and not there.
4557
4558 2010-06-22  Cary Coutant  <ccoutant@google.com>
4559
4560         * dwarf2out.c (is_nested_in_subprogram): New function.
4561         (should_move_die_to_comdat): Use it.
4562         (copy_ancestor_tree): Don't mark DIEs here.
4563         (copy_decls_walk): Start walk from root of newly-added tree;
4564         mark DIEs here instead.
4565
4566 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
4567
4568         * config/i386/i386.md (unit): Also check sseishft1.
4569
4570 2010-06-22  Jan Hubicka  <jh@suse.cz>
4571
4572         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
4573         enabled.
4574
4575 2010-06-22  Jan Hubicka  <jh@suse.cz>
4576
4577         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
4578         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
4579         Return true if something changed.
4580         * df.h (df_confluence_function_n): Return bool.
4581         * df-core.c (df_worklist_propagate_forward,
4582         df_worklist_propagate_backward): Track changes and ages.
4583         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
4584         track ages.
4585         * dse.c (dse_confluence_n): Return always true.
4586
4587 2010-06-22  Jan Hubicka  <jh@suse.cz>
4588
4589         * bitmap.c (bitmap_clear_bit): Micro optimize.
4590
4591 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
4592
4593         * config/i386/i386.md (SWI1248x): New mode iterator.
4594         (SWI48x): Ditto.
4595         (SWI12): Ditto.
4596         (SWI24): Ditto.
4597
4598         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
4599         SWI1248x mode iterator.
4600         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
4601         using SWI124 mode iterator.
4602         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
4603         mode iterator.
4604         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
4605         *pushdi2_prologue_rex64 using P mode iterator.
4606         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
4607         using SWI48 mode iterator.
4608         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
4609         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
4610         using SWI1248x mode iterator.
4611         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
4612         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
4613         SWI48 mode iterator.
4614         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
4615         iterator.
4616         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
4617         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
4618         SWI12 mode iterator.
4619         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
4620         SWI12 mode iterator.
4621         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
4622         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
4623         SWI24 mode iterator.
4624         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
4625         SWI48 mode iterator.
4626         (mov<mode>_insn_1): New expander.
4627         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
4628         using SWI48x mode iterator.
4629
4630         (*movoi_internal_avx): Rename from *movoi_internal.
4631         (*movti_internal_rex64): Rename from *movti_rex64.
4632         (*movti_internal_sse): Rename from *movti_sse.
4633         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
4634         (*movdi_internal): Rename from *movdi_2.
4635         (*movsi_internal): Rename from *movsi_1.
4636         (*movhi_internal): Rename from *movhi_1.
4637         (*movqi_internal): Rename from *movqi_1.
4638
4639         (insv): Update the call to gen_movsi_insv_1 for rename.
4640         * config/i386/i386.c (promote_duplicated_reg): Ditto.
4641
4642 2010-06-22  Jan Hubicka  <jh@suse.cz>
4643
4644         * passes.c (execute_function_todo): Move call of statistics_fini_pass
4645         to ...
4646         (execute_todo) ... this one.
4647
4648 2010-06-22  Alan Modra  <amodra@gmail.com>
4649
4650         PR target/44364
4651         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
4652         * caller-save.c (insert_restore, insert_save): Use non-validate
4653         form of adjust_address.
4654
4655 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4656
4657         PR target/39690
4658         * config/pa/pa.c (override_options): Disable
4659         -freorder-blocks-and-partition.
4660
4661 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
4662
4663         PR target/44615
4664         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
4665
4666         * config/i386/i386.md (type): Add sseishft1
4667
4668         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
4669         (ppro_insn_load): Likewise.
4670         (ppro_insn_store): Likewise.
4671         (ppro_insn_both): Likewise.
4672
4673         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
4674         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
4675         for type.
4676         (*vec_extractv2di_1_avx): Likewise.
4677         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
4678         type.  Remove atom_unit.
4679         (*vec_extractv2di_1_sse2): Likewise.
4680
4681 2010-06-21  DJ Delorie  <dj@redhat.com>
4682
4683         * diagnostic.h (diagnostic_classification_change_t): New.
4684         (diagnostic_context): Add history and push/pop list.
4685         (diagnostic_push_diagnostics): Declare.
4686         (diagnostic_pop_diagnostics): Declare.
4687         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
4688         from pragmas in a history chain instead of the global table.
4689         (diagnostic_push_diagnostics): New.
4690         (diagnostic_pop_diagnostics): New.
4691         (diagnostic_report_diagnostic): Scan history chain to find state
4692         of diagnostics as of the diagnostic location.
4693         * opts.c (set_option): Pass UNKNOWN_LOCATION to
4694         diagnostic_classify_diagnostic.
4695         (enable_warning_as_error): Likewise.
4696         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
4697         use in the history chain.
4698         * doc/extend.texi: Document pragma GCC diagnostic changes.
4699
4700 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
4701
4702         * dwarf2out.c (add_linkage_name): New function.  Don't add
4703         anything to DW_TAG_member DIEs.
4704         (add_name_and_src_coords_attributes): Use it.
4705         (gen_variable_die): Call it for C++ static data members if
4706         specification is DW_TAG_member.
4707
4708         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
4709         C++ char16_t and char32_t.
4710
4711         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
4712         * genattrtab.c: Include vecprim.h.
4713         (cached_attrs, cached_attr_count, attrs_seen_once,
4714         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
4715         attrs_cached_after): New variables.
4716         (find_attrs_to_cache): New function.
4717         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
4718         (write_test_expr): Add attrs_cached argument, return it too,
4719         attempt to cache non-const attributes used more than once in
4720         a single case handling.
4721         (write_attr_get): Use find_attrs_to_cache, for caching candidates
4722         emit cached_* variables.  Adjust write_attr_set callers.
4723         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
4724         to find attributes that should be cached in this block.  Adjust
4725         write_test_expr callers.
4726         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
4727         callers.
4728         (make_automaton_attrs): Adjust write_test_expr caller.
4729
4730         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
4731         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
4732         (make_automaton_attrs): If find_tune_attr returns non-NULL,
4733         write separate internal_dfa_insn_code_* and insn_default_latency_*
4734         functions for each attribute's value and emit init_sched_attrs
4735         function and function pointers.
4736         * genattr.c (const_attrs, reservations): New variables.
4737         (gen_attr): Add const attributes to const_attrs vector.
4738         (check_tune_attr, find_tune_attr): New functions.
4739         (main): Add reservations to reservations vector.  If find_tune_attr
4740         returns true, add prototype for init_sched_attrs and make
4741         internal_dfa_insn_code and insn_default_latency function pointers,
4742         otherwise define init_sched_attrs as dummy macro.
4743         * cfgexpand.c: Include insn-attr.h.
4744         (gimple_expand_cfg): Call init_sched_attrs.
4745
4746         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
4747
4748         PR target/44575
4749         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
4750         va_arg from a set of register save slots into a temporary,
4751         if the container is bigger than type size, do the copying
4752         using smaller mode or using memcpy.
4753
4754         PR bootstrap/44426
4755         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
4756         prototype.
4757         (sel_print_to_dot): Remove macro.
4758         (sel_print): Likewise.  New prototype.
4759         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
4760         (sel_print): New function.
4761
4762 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4763
4764         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
4765         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
4766
4767 2010-06-21  Nick Clifton  <nickc@redhat.com>
4768
4769         * config/rx/rx.h (PTRDIFF_TYPE): Define.
4770         (SMALL_REGISTER_CLASS): Define (to zero).
4771         (PRINT_OPERAND): Delete.
4772         (PRINT_OPERAND_ADDRESS): Delete.
4773         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
4774         (rx_print_operand_address): Delete prototype.
4775         * config/rx/rx.c (rx_print_operand): Make static.
4776         Allow %H and %L to handle CONST_DOUBLEs.
4777         (rx_print_operand_address): Make static.
4778         (rx_gen_move_template): Rename local variable 'template' to
4779         out_template.
4780         (rx_function_arg): Do not pass unknown sized objects in registers.
4781         (TARGET_PRINT_OPERAND): Define.
4782         (TARGET_PRINT_OPERAND_ADDRESS): Define.
4783
4784 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
4785
4786         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
4787
4788 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
4789
4790         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
4791         stack-alignment for simple leaf-functions.
4792
4793 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
4794
4795         * doc/install.texi: Document bootstrap-lto.
4796
4797 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
4798
4799         PR debug/44248
4800         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
4801         (input_function): Drop them here, if VTA is disabled.
4802
4803 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
4804
4805         PR target/44546
4806         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
4807         New predicate.
4808         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
4809         ix86_swapped_fp_comparsion_operator instead of
4810         ix86_fp_comparison_operator.
4811
4812         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
4813         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
4814         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
4815         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
4816         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
4817         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
4818
4819 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
4820
4821         PR other/32998
4822         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
4823         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
4824         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
4825         (decode_cmdline_option): Update for this return value.  Set
4826         orig_option_with_args_text field.  Set arg field for unknown
4827         options.  Make static.
4828         (decode_cmdline_options_to_array): New.
4829         (prune_options): Update handling of find_opt return value.
4830         * opts.c (read_cmdline_option): Take decoded option.  Return void.
4831         (read_cmdline_options): Take decoded options.
4832         (decode_options): Add parameters for decoded options.  Use
4833         decode_cmdline_options_to_array.  Use decoded options for -O
4834         scan.  Use integral_argument for -O parameters.  Update call to
4835         read_cmdline_options.
4836         (enable_warning_as_error): Update handling of find_opt return value.
4837         * opts.h: Update comment on unknown options.
4838         (struct cl_decoded_option): Update comments on opt_index and arg.
4839         Add orig_option_with_args_text.
4840         (decode_cmdline_option): Remove.
4841         (decode_cmdline_options_to_array): Declare.
4842         (decode_options): Update prototype.
4843         * toplev.c (save_argv): Remove.
4844         (save_decoded_options, save_decoded_options_count): New.
4845         (read_integral_parameter): Remove.
4846         (print_switch_values): Use decoded options.
4847         (toplev_main): Don't set save_argv.  Update call to decode_options.
4848         * toplev.h (read_integral_parameter): Remove.
4849         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
4850
4851 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
4852
4853         PR target/44072
4854         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
4855         immediate.
4856         * constraints.md (Pw, Px): New constraints.
4857         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
4858
4859 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
4860
4861         * config/i386/sse.md (fma4modesuffixf4): Removed.
4862         (ssemodesuffixf2s): Likewise.
4863         (ssemodesuffixf4): Likewise.
4864         (ssemodesuffixf2c): Likewise.
4865         (ssescalarmodesuffix2s): Likewise.
4866         (avxmodesuffixf2c): Likewise.
4867         (ssemodesuffix): New.
4868         (ssescalarmodesuffix): Likewise.
4869         Update patterns with ssemodesuffix and ssescalarmodesuffix.
4870
4871 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
4872
4873         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
4874
4875 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4876
4877         * stor-layout.c (debug_rli): Remove unused local variables.
4878
4879 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
4880
4881         PR rtl-optimization/40900
4882         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
4883         original expression for later reuse.
4884         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
4885         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
4886
4887 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
4888
4889         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
4890         double_int_fits_in_uhwi_p): Implement as static inline.
4891         (double_int_xor): New inline function.
4892         (double_int_lrotate, double_int_rrotate, double_int_max,
4893         double_int_umax, double_int_smax, double_int_min, double_int_umin,
4894         double_int_smin): Declare.
4895         (lrotate_double, rrotate_double): Remove declaration.
4896         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
4897         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
4898         (double_int_lrotate, double_int_rrotate, double_int_max,
4899         double_int_umax, double_int_smax, double_int_min, double_int_umin,
4900         double_int_smin): New function.
4901         * fold-const.c (int_const_binop): Clean up, use double_int_*
4902         functions.
4903         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
4904         double_int_* and immed_double_int_const functions.
4905
4906 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
4907
4908         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
4909         * function.c (types_used_by_cur_var_decl): Likewise.
4910         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
4911
4912 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
4913
4914         * tree.h (record_layout_info): Change type of pending_statics field
4915         to a VEC.
4916         * stor-layout.c (start_record_layout): Store NULL into
4917         pending_statics.
4918         (debug_rli): Call debug_vec_tree instead of debug_tree.
4919         (place_field): Likewise.
4920         (finish_record_layout): Likewise.
4921
4922 2010-06-18  Alan Modra  <amodra@gmail.com>
4923
4924         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
4925
4926 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4927
4928         PR target/43740
4929         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
4930         for SET source operand from SET destination operand.
4931
4932 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
4933
4934         PR rtl-optimization/39871
4935         * reload1.c (init_eliminable_invariants): For flag_pic, disable
4936         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
4937         (function_invariant_p): Rule out a plus of frame or arg pointer with
4938         a SYMBOL_REF.
4939         * ira.c (find_reg_equiv_invariant_const): Likewise.
4940
4941 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
4942
4943         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
4944         print_operand_address and puts to output the operand for CONST.
4945
4946 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
4947
4948         PR debug/44572
4949         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
4950         hook.
4951
4952 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
4953
4954         * v850-protos.h (print_operand): Delete.
4955         (print_operand_address): Delete.
4956         * v850.h (PRINT_OPERAND): Delete.
4957         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4958         (PRINT_OPERAND_ADDRESS): Delete.
4959         * v850.c (print_operand_address): Rename to...
4960         (v850_print_operand_address): ...this.  Make static. Call
4961         v850_print_operand.
4962         (print_operand): Rename to...
4963         (v850_print_operand): ...this.  Make static.  Call
4964         v850_print_operand_address.
4965         (v850_print_operand_punct_valid_p): New function.
4966         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4967         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4968
4969 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
4970
4971         * config/sh/sh-protos.h (print_operand): Delete.
4972         (print_operand_address): Delete.
4973         * config/sh/sh.h (PRINT_OPERAND): Delete.
4974         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4975         (PRINT_OPERAND_ADDRESS): Delete.
4976         * config/sh/sh.c (sh_print_operand_address): Make static.
4977         (sh_print_operand): Make static.  Call sh_print_operand_address
4978         and sh_print_operand.
4979         (sh_print_operand_punct_valid_p): New function.
4980         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4981         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4982
4983 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
4984
4985         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
4986         (mcore_print_operand_address): Delete.
4987         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
4988         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4989         (PRINT_OPERAND_ADDRESS): Delete.
4990         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
4991         (mcore_print_operand): Make static.
4992         (mcore_print_operand_punct_valid_p): New function.
4993         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
4994         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4995
4996 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
4997
4998         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
4999         (print_operand_address): Delete.
5000         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
5001         (PRINT_OPERAND_ADDRESS): Delete.
5002         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
5003         static.
5004         (m68hc11_print_operand): Make static.
5005         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5006
5007 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
5008
5009         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
5010         (m32r_print_operand_address): Delete.
5011         * config/m32r/m32r.h (m32r_punct_chars): Delete.
5012         (PRINT_OPERAND): Delete.
5013         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5014         (PRINT_OPERAND_ADDRESS): Delete.
5015         * config/m32r/m32r.c (m32r_punct_chars): Make static.
5016         (m32r_print_operand_address): Make static.
5017         (m32r_print_operand): Make static.
5018         (m32r_print_operand_punct_valid_p): New function.
5019         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
5020         (TARGET_PRINT_OPERAND_ADDRESS): Define.
5021
5022 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
5023
5024         * config/iq2000/iq2000-protos.h (print_operand): Delete.
5025         (print_operand_address): Delete.
5026         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
5027         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5028         (PRINT_OPERAND_ADDRESS): Delete.
5029         (iq2000_print_operand_punct): Delete.
5030         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
5031         (iq2000_print_operand_address): Make static.
5032         (iq2000_print_operand): Make static.
5033         (iq2000_print_operand_punct_valid_p): New function.
5034         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
5035         (TARGET_PRINT_OPERAND_ADDRESS): Define.
5036
5037 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
5038
5039         * config/frv/frv-protos.h (frv_print_operand): Delete.
5040         (frv_print_operand_address): Delete.
5041         * config/frv/frv.h (PRINT_OPERAND): Delete.
5042         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5043         (PRINT_OPERAND_ADDRESS): Delete.
5044         * config/frv/frv.c (frv_print_operand_address): Make static.
5045         (frv_print_operand): Make static.
5046         (frv_print_operand_punct_valid_p): New function.
5047         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
5048         (TARGET_PRINT_OPERAND_ADDRESS): Define.
5049
5050 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
5051
5052         * tree.h (vec_member): Declare.
5053         * tree.c (vec_member): Define.
5054
5055 2010-06-17  Richard Guenther  <rguenther@suse.de>
5056
5057         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
5058         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
5059
5060 2010-06-17  Richard Guenther  <rguenther@suse.de>
5061
5062         * tree-inline.c (declare_return_variable): Remove bogus code.
5063
5064 2010-06-17  Richard Guenther  <rguenther@suse.de>
5065
5066         * gimplify.c (gimplify_bind_expr): Always promote complex
5067         and vector variables to registers if possible.
5068
5069 2010-06-17  Richard Guenther  <rguenther@suse.de>
5070
5071         * expr.c (get_inner_reference): Use double_int for bit_offset
5072         calculation.
5073
5074 2010-06-16  DJ Delorie  <dj@redhat.com>
5075
5076         * common.opt (-fstrict-volatile-bitfields): new.
5077         * doc/invoke.texi: Document it.
5078         * fold-const.c (optimize_bit_field_compare): For volatile
5079         bitfields, use the field's type to determine the mode, not the
5080         field's size.
5081         * expr.c (expand_assignment): Likewise.
5082         (get_inner_reference): Likewise.
5083         (expand_expr_real_1): Likewise.
5084         * expmed.c (store_fixed_bit_field): Likewise.
5085         (extract_bit_field_1): Likewise.
5086         (extract_fixed_bit_field): Likewise.
5087
5088 2010-06-16  Richard Guenther  <rguenther@suse.de>
5089
5090         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
5091
5092 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
5093
5094         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
5095         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
5096         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
5097         * debug.c: Likewise.
5098         * sdbout.c: Likewise.
5099         * vmsdbgout.c: Likewise.
5100         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
5101         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
5102         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
5103         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
5104         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
5105         * dwarf2out.c (dw_fde_struct): New fields
5106         dw_fde_vms_{end,begin}_prologue.
5107         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
5108         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
5109         (dwarf2out_vms_end_prologue): New function.
5110         (dwarf2out_vms_begin_epilogue): New function.
5111         (dw_val_struct): New value dw_val_class_vms_delta.
5112         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
5113         begin_epilogue for VMS.
5114         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
5115         new static functions.
5116         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
5117         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
5118         static functions.
5119         (print_die): New case dw_val_class_vms_delta.
5120         (attr_checksum): Likewise.
5121         (same_dw_val_p: Likewise.
5122         (size_of_die): Likewise.
5123         (value_format): Likewise.
5124         (output_die): Likewise.
5125         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
5126         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
5127         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
5128         dwarf2out_cfi_begin_epilogue
5129         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
5130
5131 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
5132
5133         * config/cris/cris-protos.h (cris_print_operand): Delete.
5134         (cris_print_operand_address): Delete.
5135         * config/cris/cris.h (PRINT_OPERAND): Delete.
5136         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5137         (PRINT_OPERAND_ADDRESS): Delete.
5138         * config/cris/cris.c (cris_print_operand_address): Make static.
5139         (cris_print_operand): Make static.
5140         (cris_print_operand_punct_valid_p): New function.
5141         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
5142         (TARGET_PRINT_OPERAND_ADDRESS): Define.
5143
5144 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
5145
5146         * config/arm/arm-protos.h (arm_print_operand): Delete.
5147         (arm_print_operand_address): Delete.
5148         * config/arm/arm.h (PRINT_OPERAND): Delete.
5149         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5150         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
5151         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
5152         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
5153         (arm_print_operand): Make static.
5154         (arm_print_operand_punct_valid_p): New function.
5155         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
5156         (TARGET_PRINT_OPERAND_ADDRESS): Define.
5157
5158 2010-06-16  Nick Clifton  <nickc@redhat.com>
5159
5160         * config/rx/constraints.md (NEGint4): New constraint.
5161         * config/rx/rx.md (attr cc): Add set_zsc.
5162         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
5163         initialised.
5164         (cmpsf): Likewise.
5165         (call_internal): Clobber the cc0 register.
5166         (call_value_internal): Likewise.
5167         (cstoresi4): Likewise.
5168         (movsieq): Likewise.
5169         (movsine): Likewise.
5170         (addsi3): Add alternative to handle small negative constants.
5171         (sunsi3): Likewise.
5172         (addsi3): Do not set the O bit in the cc0 register.
5173         (adddi3): Likewise.
5174         (subsi3): Likewise.
5175         (subdi3): Likewise.
5176         (andsi3): Reorder alternatives to prefer shorter forms.
5177         (mulsi3): Likewise.
5178         (iorsi3): Likewise.
5179         (negsi2): Note that the cc0 flags are set.
5180         (rotlsi3): Note that only the Z and S bits are set in cc0.
5181         (lshrsi3): Likewise.
5182         (ashlsi3): Likewise.
5183         (subsf3): Use %Q for the MEM operand.
5184         (fix_truncsfsi2): Likewise.
5185         (floatsisf2): Likewise.
5186         (bitset): Remove early clobber from destination.
5187         (bitset_in_memory): Likewise.
5188         (lrintsf2): Clobber the cc0 register.
5189         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
5190         (rx_print_operand): Handle %N.
5191
5192 2010-06-16  Jan Hubicka  <jh@suse.cz>
5193
5194         * df-core.c (df_compact_blocks): Free problem_temps vector.
5195
5196 2010-06-16  Martin Jambor  <mjambor@suse.cz>
5197
5198         PR tree-optimization/43905
5199         * tree-sra.c: Include tree-inline.h.
5200         (create_abstract_origin): Removed.
5201         (modify_function): Version the call graph node instead of creating
5202         abstract origins and dealing with same_body aliases.
5203         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
5204         function is versionable.
5205         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
5206
5207 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
5208
5209         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
5210         (CHOOSE_DYNAMIC_LINKER): Update.
5211
5212 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
5213
5214         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
5215         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
5216         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
5217         *prefetch_3dnow_rex.
5218
5219 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
5220
5221         * target.h (struct asm_out):Add declare_constant_name field.
5222         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
5223         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
5224         * output.h (default_asm_declare_constant_name): Declare.
5225         (assemble_label): Update prototype.
5226         * varasm.c (assemble_constant_contents): Use
5227         targetm.asm_out.declare_constant_name target hook.
5228         (assemble_label): Add 'file' argument.
5229         (default_asm_declare_constant_name): New function.
5230         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
5231         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
5232         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
5233
5234         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
5235         * config/darwin.c (darwin_asm_declare_constant_name): New function.
5236         (machopic_output_indirection): Update assemble_label argument list.
5237         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
5238         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
5239
5240 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
5241
5242         PR middle-end/44391
5243         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
5244         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
5245
5246 2010-06-15  Richard Guenther  <rguenther@suse.de>
5247
5248         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
5249
5250 2010-06-15  Paul Brook  <paul@codesourcery.com>
5251
5252         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
5253         hard-float ABI.
5254
5255 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
5256
5257         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
5258         don't get a vector type for output.
5259
5260 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
5261
5262         PR fortran/44536
5263         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
5264         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
5265         (LANG_HOOKS_DECLS): Add it.
5266         * gimplify.c (omp_notice_variable): Call
5267         lang_hooks.decls.omp_report_decl.
5268
5269 2010-06-15  Martin Jambor  <mjambor@suse.cz>
5270
5271         PR lto/44464
5272         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
5273         on the newly dead SSA name.
5274
5275 2010-06-15  Alan Modra  <amodra@gmail.com>
5276
5277         * doc/invoke.texi: Add mcmodel to powerpc options.
5278         * configure.ac: Add HAVE_LD_LARGE_TOC test.
5279         * configure: Regenerate.
5280         * config.in: Regenerate.
5281         * config/rs6000/linux64.opt (mcmodel): New.
5282         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
5283         (TARGET_CMODEL, SET_CMODEL): Define.
5284         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
5285         select CMODEL_MEDIUM default.
5286         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
5287         (TARGET_CMODEL): Define default.
5288         * config/rs6000/rs6000.c (cmodel): New variable.
5289         (rs6000_explicit_options): Add cmodel field.
5290         (rs6000_handle_option): Handle -mcmodel.
5291         (create_TOC_reference): Add largetoc_reg param.  Generate high,
5292         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
5293         (rs6000_delegitimize_address): Recognise new toc reference rtl
5294         and minimal-toc rtl.
5295         (rs6000_legitimize_reload_address): Handle new toc references.
5296         (print_operand_address): Handle legitimate_constant_pool_address_p
5297         match before lo_sum.
5298         (rs6000_eliminate_indexed_memrefs): Tidy.
5299         (rs6000_emit_move): Tweak threshold for inlining constants.
5300         Keep rs6000_emit_allocate_stack large stack frame offsets
5301         loaded into r0 inline.
5302         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
5303         (tocrel_base, tocrel_offset): New variables.
5304         (toc_relative_expr_p): Set them here.
5305         (print_operand_address): Skip over any offset on constant pool address.
5306         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
5307         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
5308         (offsettable_ok_by_alignment): New function.
5309         (rs6000_emit_move): Address suitably aligned local symbol_refs
5310         relative to the toc pointer for -mcmodel=medium.
5311         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
5312         strict param.  Allow lo_sum version of addressing.  Verify reg
5313         used for -mminimal-toc and -mcmodel != small.  Update all callers.
5314         * config/rs6000/constraints.md: Update for above change.
5315         * config/rs6000/predicates.md: Likewise.
5316         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
5317         code.
5318         (tls_gd): Split for -mcmodel=medium/large.
5319         (tls_gd_high, tls_gd_low): New.
5320         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
5321         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
5322         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
5323         (largetoc_high, largetoc_low): New.
5324         (cmptf_internal2): Add clobber.
5325         * config/rs6000/rs6000-protos.h: Update.
5326
5327 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
5328
5329         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
5330         true if no prefetch is going to be generated for a given group.
5331         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
5332         estimate the prefetch_count.
5333         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
5334         prefetch count by considering the unroll_factor and prefetch_mod
5335         for is_loop_prefetching_profitable.
5336
5337 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
5338
5339         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
5340         anything if the argument is not a MEM.
5341
5342 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
5343
5344         PR debug/43650
5345         PR debug/44181
5346         PR debug/44247
5347         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
5348         debug stmts.
5349         (canonicalize_loop_ivs): Likewise.
5350
5351 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
5352
5353         PR debug/43656
5354         * haifa-sched.c (setup_insn_reg_pressure_info,
5355         update_register_pressure): Reject debug insns.
5356         (ready_sort): Don't setup reg pressure for debug insns.
5357         (schedule_insn): Don't update reg pressure for debug insns.
5358
5359 2010-06-14  Richard Guenther  <rguenther@suse.de>
5360
5361         * lto-streamer.c (cached_bp): Remove.
5362         (bitpack_delete): Likewise.
5363         (bitpack_create): Likewise.
5364         (bp_get_next_word): Likewise.
5365         (bp_pack_value, bp_unpack_value): Move ...
5366         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
5367         Re-implement.
5368         (struct bitpack_d): Likewise.
5369         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
5370         New inline functions.
5371         * lto-streamer-out.c (lto_output_bitpack): Remove.
5372         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
5373         (pack_value_fields): Adjust.
5374         (lto_write_tree): Likewise.
5375         (output_gimple_stmt): Likewise.
5376         (output_function): Likewise.
5377         * lto-streamer-in.c (input_gimple_stmt): Adjust.
5378         (input_function): Likewise.
5379         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
5380         (lto_input_bitpack): Remove.
5381         (lto_materialize_tree): Adjust.
5382         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
5383         * lto-cgraph.c (lto_output_edge): Adjust.
5384         (lto_output_node): Likewise.
5385         (lto_output_varpool_node): Likewise.
5386         (lto_output_ref): Likewise.
5387         (input_node): Likewise.
5388         (input_varpool_node): Likewise.
5389         (input_ref): Likewise.
5390         (input_edge): Likewise.
5391         (output_node_opt_summary): Likewise.
5392         (input_node_opt_summary): Likewise.
5393         * ipa-pure-const.c (pure_const_write_summary): Likewise.
5394         (pure_const_read_summary): Likewise.
5395         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
5396         (ipa_read_indirect_edge_info): Likewise.
5397         (ipa_write_node_info): Likewise.
5398         (ipa_read_node_info): Likewise.
5399
5400 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
5401
5402         PR target/44534
5403         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
5404         (vec_extract_lo_v16hi): Likewise.
5405         (vec_extract_lo_v32qi): Likewise.
5406
5407 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
5408
5409         PR bootstrap/44426
5410         * tree.h (build_call_expr): Don't define as vararg macro, instead
5411         add a prototype.
5412         * builtins.c (build_call_nofold): Remove.
5413         (expand_builtin_int_roundingfn, expand_builtin_pow,
5414         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
5415         expand_builtin_memset_args, expand_builtin_strcmp,
5416         expand_builtin_strncmp, expand_builtin_memory_chk): Use
5417         build_call_nofold_loc instead of build_call_nofold.
5418         (build_call_expr): New function.
5419
5420         PR tree-optimization/44508
5421         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
5422         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
5423         don't eliminate trivially dead stmts.
5424         * tree-vrp.c (vrp_finalize): Pass false as last argument
5425         to substitute_and_fold.
5426         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
5427         to substitute_and_fold.
5428         * tree-ssa-ccp.c (ccp_finalize): Likewise.
5429
5430         PR bootstrap/44509
5431         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
5432
5433 2010-06-14  Ira Rosen  <irar@il.ibm.com>
5434
5435         PR tree-optimization/44507
5436         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
5437         to build initial vector for BIT_AND_EXPR.
5438         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
5439
5440 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
5441
5442         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
5443         adjust z10prop set_attr.
5444
5445 2010-06-13  Jan Hubicka  <jh@suse.cz>
5446
5447         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
5448         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
5449         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
5450         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
5451         datastructure checks into checking asserts.
5452         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
5453         * tree-ssa-sccvn.c (VN_INFO): Likewise.
5454         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
5455         df_ref_create_structure): Likewise.
5456         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
5457         pool_free): Use gcc_checking_assert.
5458         * alias.c (get_alias_set): Likewise.
5459         * var-tracking.c (variable_htab_free, shared_hash_copy,
5460         canonicalize_values_mark, variable_merge_over_cur): Likewise.
5461         * lto-streamer.c (bp_unpack_value): Likewise.
5462
5463 2010-06-13  Richard Guenther  <rguenther@suse.de>
5464
5465         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
5466         Do not stream but initialize TYPE_CANONICAL to NULL.
5467         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
5468         * gimple.c (gimple_types_compatible_p): Disregard
5469         TYPE_STRUCTURAL_EQUALITY_P.
5470         (gimple_register_type): Use TYPE_CANONICAL as cache.
5471         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
5472         before registering common types.
5473         * config/i386/i386.c (ix86_function_arg_boundary): Do not
5474         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
5475         * tree.h (TYPE_CANONICAL): Clarify documentation.
5476
5477 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
5478
5479         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
5480         LIBCALL_VALUE): Remove macros.
5481         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
5482         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5483         TARGET_FUNCTION_VALUE_REGNO_P): Define.
5484         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
5485         (ia64_function_value): Make static. Handle receiving the function
5486         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
5487
5488 2010-06-12  Jan Hubicka  <jh@suse.cz>
5489
5490         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
5491         at correct place.
5492
5493 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
5494
5495         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
5496
5497 2010-06-12  Jan Hubicka  <jh@suse.cz>
5498
5499         * df-core.c (df_clear_bb_info): New function.
5500         (df_set_blocks): bb_info is always allocated.
5501         (df_get_bb_info): Use block_info_elt_size.
5502         (df_set_bb_info): Likewise.
5503         (df_compact_blocks): Update for new block_info.
5504         (grow_bb_info): New function.
5505         * df-problems.c (df_grow_bb_info): Move to df-core.c
5506         (df_rd_set_bb_info): Remove.
5507         (df_rd_free_bb_info): Do not free block pool.
5508         (df_rd_alloc): Do not create pool, use check for
5509         obstack presence instead of NULL pointer for new blocks.
5510         (df_rd_free): DO not free alloc pool; clear block_info.
5511         (problem_RD): Add size of block info structure.
5512         (df_lr_set_bb_info): Remove.
5513         (df_lr_free_bb_info): Do not free block pool.
5514         (df_lr_alloc): Do not create pool, use check for
5515         obstack presence instead of NULL pointer for new blocks.
5516         (df_lr_free): DO not free alloc pool; clear block_info.
5517         (problem_LR): Add size of block info structure.
5518         (df_live_set_bb_info): Remove.
5519         (df_live_free_bb_info): Do not free block pool.
5520         (df_live_alloc): Do not create pool, use check for
5521         obstack presence instead of NULL pointer for new blocks.
5522         (df_live_free): DO not free alloc pool; clear block_info.
5523         (problem_LIVE): Add size of block info structure.
5524         (problem_CHAIN): Add size of block info structure.
5525         (df_byte_lr_set_bb_info): Remove.
5526         (df_byte_lr_free_bb_info): Do not free block pool.
5527         (df_byte_lr_alloc): Do not create pool, use check for
5528         obstack presence instead of NULL pointer for new blocks.
5529         (df_byte_lr_free): DO not free alloc pool; clear block_info.
5530         (problem_BYTE_LR): Add size of block info structure.
5531         (problem_NOTE): Add size of block info structure.
5532         (df_byte_MD_set_bb_info): Remove.
5533         (df_byte_MD_free_bb_info): Do not free block pool.
5534         (df_byte_MD_alloc): Do not create pool, use check for
5535         obstack presence instead of NULL pointer for new blocks.
5536         (df_byte_MD_free): DO not free alloc pool; clear block_info.
5537         (problem_BD): Add size of block info structure.
5538         * df-scan.c (df_scan_free_internal): Free block pool.
5539         (df_scan_set_bb_info): Remove.
5540         (df_scan_free_bb_info): Check for artificial_defs instead
5541         of bb_info being non-NULL.
5542         (df_scan_alloc): DO not create df_scan_block pool.
5543         (problem_SCAN): Set size of block info.
5544         (df_bb_refs_record): Do not allocate bb_info.
5545         * df.h (df_problem): Add block_info_elt_size.
5546         (struct dataflow): Change block_info to void *.
5547         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
5548         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
5549         in-line structures.
5550
5551 2010-06-12  Jan Hubicka  <jh@suse.cz>
5552
5553         PR tree-optimize/44485
5554         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
5555         containing use of return value of noreturn function.
5556
5557 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
5558
5559         * targhooks.c (default_function_value): Don't use
5560         FUNCTION_OUTGOING_VALUE.
5561         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
5562         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
5563
5564 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
5565
5566         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
5567         Add crtfastmath.o to extra_parts.
5568         * config/mips/crtfastmath.c: New.
5569         * config/mips/linux.h (ENDFILE_SPEC): New.
5570
5571 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
5572
5573         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
5574         old_type in parameter.
5575         (gcc_type_for_value): Update call to gcc_type_for_interval.
5576         (compute_type_for_level_1): Renamed compute_type_for_level.
5577         Update call to gcc_type_for_interval.
5578
5579 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
5580
5581         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
5582         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
5583
5584 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
5585
5586         * opts-common.c: Include options.h.
5587         (integral_argument): Move from opts.c.
5588         (decode_cmdline_option): New.  Based on read_cmdline_option.
5589         * opts.c (integral_argument): Move to opts-common.c.
5590         (read_cmdline_option): Move most contents to
5591         decode_cmdline_option.  Use %qs in diagnostics.
5592         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
5593         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
5594         decode_cmdline_option): New.
5595
5596 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
5597
5598         PR target/44481
5599         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
5600         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
5601         (partiysi2_cmp): Ditto.
5602         (*partiyhi2_cmp): Ditto.
5603         (*parityqi2_cmp): Remove.
5604
5605 2010-06-11  Jan Hubicka  <jh@suse.cz>
5606
5607         * bitmap.h (bmp_iter_next_bit): New.
5608         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
5609
5610 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
5611             Eric Botcazou  <ebotcazou@adacore.com>
5612
5613         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
5614         computed cost.
5615
5616 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
5617
5618         * config/i386/i386.md (unspec): New define_c_enum.
5619         (unspecv): Ditto.
5620
5621 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
5622
5623         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
5624
5625 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
5626
5627         PR middle-end/44483
5628         * tree-if-conv.c (bb_predicate_s): New struct.
5629         (bb_predicate_p): New.
5630         (bb_has_predicate): New.
5631         (bb_predicate): New.
5632         (set_bb_predicate): New.
5633         (bb_predicate_gimplified_stmts): New.
5634         (set_bb_predicate_gimplified_stmts): New.
5635         (add_bb_predicate_gimplified_stmts): New.
5636         (init_bb_predicate): New.
5637         (free_bb_predicate): New.
5638         (is_predicated): Use bb_predicate.
5639         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
5640         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
5641         before processing their successors.
5642         (clean_predicate_lists): Removed.
5643         (find_phi_replacement_condition): Use bb_predicate.
5644         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
5645         computations.
5646         (insert_gimplified_predicates): New.
5647         (combine_blocks): Call insert_gimplified_predicates.
5648         (tree_if_conversion): Call free_bb_predicate instead of
5649         clean_predicate_lists.
5650
5651 2010-10-11  Paul Brook  <paul@codesourcery.com>
5652
5653         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
5654         * config/arm/arm.c (all_architectures): Change v7e-m default to
5655         cortexm4.
5656         * config/arm/arm-cores.def: Add cortex-m4.
5657         * config/arm/arm-tune.md: Regenerate.
5658
5659 2010-06-11  Jan Hubicka  <jh@suse.cz>
5660
5661         * ipa-pure-const.c (special_builtlin_state): New function.
5662         (check_call): Use it instead of special casign BUILT_IN_RETURN.
5663         (propagate_pure_const): Use it.
5664
5665 2010-06-11  Jan Hubicka  <jh@suse.cz>
5666
5667         * df-problems.c (df_live_scratch): Convert to bitmap_head.
5668         (df_live_alloc): Initialize df_live_scratch when initializing
5669         problem_data.
5670         (df_live_transfer_function): Update uses of df_live_scratch.
5671         (df_live_free): Free problem_data; clear df_live_scratch before
5672         releasing the obstack.
5673         (df_md_free): Free problem data.
5674
5675 2010-06-11  Jan Hubicka  <jh@suse.cz>
5676
5677         * doc/invoke.texi (Wsuggest-attribute): Document.
5678         (Wmissing-noreturn): Remove.
5679         * ipa-pure-const.c (warn_function_noreturn): New function.
5680         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
5681         warn_missing_noreturn.
5682         * common.opt (Wsuggest-attribute=noreturn): New.
5683         * tree-flow.h (warn_function_noreturn): Declare.
5684         * tree-cfg.c (execute_warn_function_noreturn): Use
5685         warn_function_noreturn.
5686         (gate_warn_function_noreturn): New.
5687         (pass_warn_function_noreturn): Update.
5688
5689 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5690
5691         * c-typeck.c (handle_warn_cast_qual): Add loc
5692         parameter. Improve warning message.
5693         (build_c_cast): Pass location to handle_warn_cast_qual.
5694
5695 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
5696
5697         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
5698         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
5699         insn mnemonic.
5700         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
5701
5702 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
5703
5704         Fix bootstap on mips
5705         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
5706         be naming typedefs.
5707
5708 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
5709
5710         * system.h (helper_const_non_const_cast): New inline for
5711         gcc version <= 4.0.
5712         (CONST_CAST2): For gcc version <= 4.0 use
5713         new helper to do const/non-const casting.
5714
5715 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5716
5717         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
5718         * Makefile.in (OBJS-common): Include insn-enums.o.
5719         (insn-enums.o): New rule.
5720         (simple_generated_c): Add insn-enums.c.
5721         (build/genenums.o): New rule.
5722         (genprogmd): Add "enums".
5723         * genconstants.c (print_enum_type): Declare a C string array
5724         for each enum.
5725         * genenums.c: New file.
5726         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
5727         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
5728         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
5729
5730 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5731
5732         * doc/md.texi (define_enum_attr): Document.
5733         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
5734         * read-md.h (lookup_enum_type): Declare.
5735         * read-md.c (lookup_enum_type): New function.
5736         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
5737         * genattrtab.c (attr_desc): Add an enum_name field.
5738         (evaluate_eq_attr): Take the associated attribute as argument.
5739         Get the enum prefix from the enum_name field, if defined.
5740         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
5741         (simplify_test_exp): Pass attr to evaluate_eq_attr.
5742         (add_attr_value): New function, split out from...
5743         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
5744         (write_test_expr): Pass attr to evaluate_eq_attr.
5745         (write_attr_get): Use the enum_name as the enum tag, if defined.
5746         (write_attr_valueq): Use the enum_name as a prefix, if defined.
5747         (find_attr): Initialize enum_name.
5748         (main): Handle DEFINE_ENUM_ATTR.
5749         * gensupport.c (process_rtx): Likewise.
5750         * config/mips/mips.h (mips_tune_attr): Delete.
5751         * config/mips/mips.md (cpu): Use define_attr_enum.
5752
5753 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5754
5755         * doc/md.texi (define_c_enum, define_enum): Document.
5756         * read-md.h (md_constant): Add a parent_enum field.
5757         (enum_value, enum_type): New structures.
5758         (upcase_string, traverse_enum_types): Declare.
5759         * read-md.c (enum_types): New variable.
5760         (upcase_string, add_constant): New functions.
5761         (handle_constants): Don't create the hash table here.
5762         Use add_constant.
5763         (traverse_md_constants): Don't check for a null md_constants.
5764         (decimal_string, handle_enum, traverse_enum_types): New functions.
5765         (read_md_files): Initialize md_constants and md_enums.
5766         * genconstants.c (print_md_constant): Ignore info argument.
5767         Only print constants that belong to no enum.
5768         (print_enum_type): New function.
5769         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
5770         for each defined enum type.
5771         * config/mips/mips.md (processor): New define_enum.
5772         (unspec): New define_c_enum.
5773         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
5774         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
5775         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
5776         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
5777         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
5778         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
5779         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
5780         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
5781         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
5782         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
5783         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
5784         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
5785         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
5786         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
5787         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
5788         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
5789         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
5790         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
5791         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
5792         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
5793         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
5794         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
5795         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
5796         (UNSPEC_RDDSP): Move to mips-dsp.md.
5797         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
5798         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
5799         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
5800         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
5801         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
5802         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
5803         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
5804         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
5805         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
5806         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
5807         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
5808         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
5809         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
5810         Moved to mips-dspr2.md.
5811         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
5812         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
5813         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
5814         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
5815         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
5816         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
5817         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
5818         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
5819         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
5820         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
5821         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
5822         UNSPEC_LOONGSON_PSADBH)
5823         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
5824         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
5825         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
5826         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
5827         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
5828         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
5829         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
5830         (cpu): Update comment.
5831         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
5832         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
5833         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
5834         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
5835         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
5836         UNSPEC_LOONGSON_PCMPEQ)
5837         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
5838         UNSPEC_LOONGSON_PINSR_0)
5839         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
5840         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
5841         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
5842         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
5843         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
5844         UNSPEC_LOONGSON_PSADBH)
5845         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
5846         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
5847         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
5848         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
5849         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
5850         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
5851         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
5852         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
5853         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
5854         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
5855         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
5856         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
5857         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
5858         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
5859         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
5860         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
5861         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
5862         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
5863         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
5864         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
5865         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
5866         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
5867         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
5868         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
5869         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
5870         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
5871         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
5872         (UNSPEC_RDDSP): Moved from mips.md.
5873         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
5874         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
5875         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
5876         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
5877         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
5878         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
5879         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
5880         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
5881         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
5882         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
5883         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
5884         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
5885         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
5886         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
5887         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
5888         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
5889         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
5890         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
5891         (UNSPEC_SCC): Moved from mips.md.
5892         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
5893         "processor_type" to "processor".
5894         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
5895         * config/mips/mips.h (processor_type): Delete.
5896         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
5897         "processor_type" to "processor".
5898
5899 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5900
5901         * configure.ac (tm_include_list): Add insn-constants.h.
5902         * configure: Regenerate.
5903         * Makefile.in (GTM_H): Move insn-constants.h here from...
5904         (TM_H): ...here.
5905         * mkconfig.sh: Remove special handling for insn-constants.h.
5906
5907 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5908
5909         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
5910         (BUILD_MD): ...this new variable.
5911         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
5912         that include the old contents of simple_generated_h and
5913         simple_generated_c.
5914         (simple_generated_h, simple_generated_c): Include them.  Add
5915         insn-constants.h.
5916         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
5917         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
5918         Remove these dependencies from the main rule and include
5919         insn-conditions.md in the command line only if it appears
5920         in the dependency list.
5921         (insn-constants.h, s-constants): Delete.
5922         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
5923         or gensupport.h.
5924         (build/genmddeps.o): Likewise.
5925         (genprogrtl): New variable that contains everything from genprogmd
5926         except mddeps and constants.
5927         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
5928         depend on $(BUILD_MD)
5929         (genprog): New variable.  Make these programs depend on
5930         $(BUILD_ERRORS).
5931         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
5932         (main): Use read_md_files instead of init_rtx_reader_args.
5933         * genconstants.c: As for genmddeps.c.
5934         * read-md.h (read_skip_construct): Declare.
5935         * read-md.c (read_skip_construct): New function.
5936         (handle_file): Allow a null handle_directive, skipping the
5937         construct if so.
5938         (parse_include): Update the comment accordingly.
5939
5940 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5941
5942         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
5943         * genmddeps.c: Include read-md.h.
5944         (main): Call init_rtx_reader_args instead of init_md_reader_args.
5945         * genattr.c (main): Likewise.
5946         * genattrtab.c (main): Likewise.
5947         * genautomata.c (main): Likewise.
5948         * gencodes.c (main): Likewise.
5949         * genconditions.c (main): Likewise.
5950         * genconfig.c (main): Likewise.
5951         * genconstants.c (main): Likewise.
5952         * genemit.c (main): Likewise.
5953         * genextract.c (main): Likewise.
5954         * genflags.c (main): Likewise.
5955         * genopinit.c (main): Likewise.
5956         * genoutput.c (main): Likewise.
5957         * genpeep.c (main): Likewise.
5958         * genrecog.c (main): Likewise.
5959         * genpreds.c (main): Likewise.
5960         * gensupport.h (in_fname): Move to read-md.h.
5961         (init_md_reader_args_cb): Rename to...
5962         (init_rtx_reader_args_cb): ...this and return a bool.
5963         (init_md_reader_args): Rename to...
5964         (init_rtx_reader_args): ...this and return a bool.
5965         (include_callback): Move to read-md.h.
5966         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
5967         (file_name_list, first_dir_md_include): Move to read-md.c
5968         (first_bracket_include): Delete unused variable.
5969         (last_dir_md_include): Move to read-md.c.
5970         (process_include): Delete, moving code to read-md.c:handle_include.
5971         (process_rtx): Don't handle INCLUDE.
5972         (save_string): Delete.
5973         (rtx_handle_directive): New function.
5974         (init_md_reader_args_cb): Rename to...
5975         (init_rtx_reader_args_cb): ...this and return a boolean success value.
5976         Use read_md_args.
5977         (init_md_reader_args): Rename to...
5978         (init_rtx_reader_args): ...this and return a boolean success value.
5979         * rtl.def (INCLUDE): Delete.
5980         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
5981         argument.
5982         * read-rtl.c (read_conditions): Don't gobble ')' here.
5983         (read_mapping): Likewise.
5984         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
5985         Handle top-level non-rtx constructs here rather than in read_rtx_1.
5986         Store the whole queue in *X.  Remove call to init_md_reader.
5987         (read_rtx_1): Rename to...
5988         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
5989         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
5990         here.
5991         (read_nested_rtx): New function.  Handle (nil) here rather than
5992         in read_rtx_code.
5993         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
5994         gobble ')' here.
5995         * read-md.h (directive_handler_t): New type.
5996         (in_fname, include_callback): Moved from read-md.h.
5997         (read_constants, init_md_reader): Delete.
5998         (read_md_files): Declare.
5999         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
6000         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
6001         from gensupport.c.
6002         (read_constants): Rename to...
6003         (handle_constants): ...this.  Don't gobble ')' here.
6004         (handle_include, handle_file, handle_toplevel_file)
6005         (parse_include): New functions, mostly taken from gensupport.c.
6006         (init_md_reader): Subsume into...
6007         (read_md_files): ...this new function.
6008
6009 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6010
6011         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
6012         (unread_char): Decrement read_md_lineno after putting back '\n'.
6013         * read-md.c (fatal_with_file_and_line): Push back any characters
6014         that we decide not to add to the context.
6015         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
6016         fatal_expected_char in cases where '/' ends a line (for example).
6017         (read_name): Don't increment read_md_lineno here.
6018         (read_escape): Likewise.
6019         (read_quoted_string): Likewise.
6020         (read_braced_string): Likewise.
6021
6022 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6023
6024         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
6025         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
6026         * genconstants.c: Include read-md.h.
6027         * read-rtl.c (md_constants): Move to read-md.c.
6028         (md_name): Move to read-md.h.
6029         (initialize_iterators): Use leading_string_hash instead of def_hash
6030         and leading_string_eq_p instead of def_name_eq_p.
6031         (read_name): Move to read-md.c.
6032         (def_hash, def_name_eq_p): Delete.
6033         (read_constants, traverse_md_constants): Move to read-md.c.
6034         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
6035         * read-md.h: Include hashtab.h.
6036         (md_name): Moved from read-rtl.c.
6037         (md_constant): Moved from read-md.h.
6038         (leading_string_hash, leading_string_eq_p, read_name)
6039         (read_constants, traverse_md_constants): Declare.
6040         * read-md.c (md_constants): Moved from read-rtl.c.
6041         (leading_string_hash, leading_string_eq_p): New functions.
6042         (read_name, read_constants, traverse_md_constants): Moved from
6043         read-rtl.c.
6044
6045 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6046
6047         * read-rtl.c (md_name): New structure.
6048         (read_name): Take an md_name instead of a buffer pointer.
6049         Use the "string" field instead of strcpy when expanding constants.
6050         (read_constants): Remove the tmp_char argument.  Update the calls
6051         to read_name, using two local name buffers instead of the tmp_char
6052         argument.  Merge the constant-creation code.
6053         (read_conditions): Remove the tmp_char argument.  Update the calls
6054         to read_name, using a local name buffer instead of the tmp_char
6055         argument.
6056         (read_mapping): Replace tmp_char variable with a local name buffer.
6057         Update the calls to read_name.
6058         (read_rtx_1): Likewise.  Update the calls to read_constants and
6059         read_conditions.
6060
6061 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6062
6063         * Makefile.in (build/read-md.o): Depend on errors.h.
6064         * read-md.h (error_with_line): Declare.
6065         * read-md.c: Include errors.h.
6066         (message_with_line_1): New function, extracted from...
6067         (message_with_line): ...here.
6068         (error_with_line): New function.
6069         * genattrtab.c: If a call to message_with_line is followed by
6070         "have_error = 1;", replace both statements with a call to
6071         error_with_line.
6072         * genoutput.c: Likewise.
6073         * genpreds.c: Likewise.
6074         * genrecog.c: If a call to message_with_line is followed by
6075         "error_count++;", replace both statements with a call to
6076         error_with_line.
6077         (errorcount): Delete.
6078         (main): Don't check it.
6079         * gensupport.c: If a call to message_with_line is followed by
6080         "errors = 1;", replace both statements with a call to error_with_line.
6081         (errors): Delete.
6082         (process_define_cond_exec): Check have_error instead of errors.
6083         (init_md_reader_args_cb): Likewise.  Don't set errors.
6084
6085 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6086
6087         * read-md.h (read_md_file): Declare.
6088         (read_char, unread_char): New functions.
6089         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
6090         (read_quoted_string, read_string): Remove FILE * argument.
6091         * read-md.c (read_md_file): New variable.
6092         (read_md_filename, read_md_lineno): Update comments and remove
6093         unnecessary initialization.
6094         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
6095         (read_escape, read_quoted_string, read_braced_string, read_string):
6096         Remove FILE * argument.  Update calls accordingly, using read_char
6097         and unread_char instead of getc and ungetc.
6098         * rtl.h (read_rtx): Remove FILE * argument.
6099         * read-rtl.c (iterator_group): Remove FILE * argument from
6100         "find_builtin".
6101         (iterator_traverse_data): Remove "infile" field.
6102         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
6103         (add_mapping, read_name, read_constants, read_conditions)
6104         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
6105         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
6106         Remove file arguments from all calls, using read_char and unread_char
6107         instead of getc and ungetc.
6108         * gensupport.c (process_include): Preserve read_md_file around
6109         the include.  Set read_md_file to the handle of the included file.
6110         Update call to read_rtx.
6111         (init_md_reader_args_cb): Set read_md_file to the handle of the file
6112         and remove local FILE *.  Update calls to read_rtx.
6113
6114 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6115
6116         * read-md.h (read_rtx_lineno): Rename to...
6117         (read_md_lineno): ...this.
6118         (read_rtx_filename): Rename to...
6119         (read_md_filename): ...this.
6120         (copy_rtx_ptr_loc): Rename to...
6121         (copy_md_ptr_loc): ...this.
6122         (print_rtx_ptr_loc): Rename to...
6123         (print_md_ptr_loc): ...this.
6124         * read-md.c: Likewise.  Update references after renaming.
6125         (string_obstack): Replace RTL with MD in comment.
6126         (set_rtx_ptr_loc): Rename to...
6127         (set_md_ptr_loc): ...this.
6128         (get_rtx_ptr_loc): Rename to...
6129         (get_md_ptr_loc): ...this.
6130         * genconditions.c: Update references after renaming.
6131         * genemit.c: Likewise.
6132         * genoutput.c: Likewise.
6133         * genpreds.c: Likewise.
6134         * gensupport.c: Likewise.
6135         * read-rtl.c: Likewise.
6136
6137 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6138
6139         * Makefile.in (READ_MD_H): New variable.
6140         (BUILD_RTL): Add build/read-md.o.
6141         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
6142         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
6143         (build/genattrtab.o, build/genconditions.o build/genemit.o)
6144         (build/genextract.o, build/genflags.o, build/genoutput.o)
6145         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
6146         (build/read-md.o): New rule.
6147         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
6148         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
6149         * coretypes.h: ...here.
6150         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
6151         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
6152         * genattr.c: Include read-md.h.
6153         * genattrtab.c: Likewise.
6154         * genconditions.c: Likewise.
6155         * genemit.c: Likewise.
6156         * genextract.c: Likewise.
6157         * genflags.c: Likewise.
6158         * genoutput.c: Likewise.
6159         * genpreds.c: Likewise.
6160         * genrecog.c: Likewise.
6161         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
6162         (join_c_conditions, print_c_condition, read_rtx_filename)
6163         (read_rtx_lineno): Move to read-md.h.
6164         * read-rtl.c: Include read-md.h.
6165         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
6166         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
6167         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
6168         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
6169         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
6170         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
6171         (read_braced_string, read_string): Move to read-md.c.
6172         (read_rtx): Move some initialization to init_md_reader and call
6173         init_md_reader here.
6174         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
6175         Move to read-md.h.
6176         * gensupport.c: Include read-md.h.
6177         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
6178         * read-md.h, read-md.c: New files.
6179
6180 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
6181
6182         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
6183         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
6184         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
6185         * config/moxie/moxie.c (moxie_function_value): Make static.
6186         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
6187         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
6188
6189 2010-06-10  Martin Jambor  <mjambor@suse.cz>
6190
6191         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
6192         * dbgcnt.def (tree_sra): New counter.
6193         * tree-sra.c: Include dbgcnt.h.
6194         (gate_intra_sra): Check tree_sra debug counter.
6195
6196 2010-06-10  Martin Jambor  <mjambor@suse.cz>
6197
6198         PR tree-optimization/44258
6199         * tree-sra.c (build_access_subtree): Return false iff there is a
6200         partial overlap.
6201         (build_access_trees): Likewise.
6202         (analyze_all_variable_accesses): Disqualify candidates if
6203         build_access_trees returns true for them.
6204
6205 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
6206
6207         PR debug/41371
6208         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
6209         tail-recurse into canonical node.  Fast-forward over
6210         non-canonical VALUEs.
6211
6212 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
6213
6214         PR boostrap/44470
6215         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
6216         (*addsi_1_zext) <TYPE_LEA>: Likewise.
6217         (add lea splitter): Likewise.
6218         (add_zext lea splitter): Likewise.
6219
6220 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
6221
6222         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
6223
6224 2010-06-10  Jan Hubicka  <jh@suse.cz>
6225
6226         * df-problems.c (df_live_problem_data): Add live_bitmaps.
6227         (df_live_alloc): Initialize problem data and live_osbtacks.
6228         (df_live_finalize): Remove obstack, problem data; do not
6229         clear all bitmaps.
6230         (df_live_top_dump, df_live_bottom_dump): Do not dump old
6231         data when not allocated.
6232         (df_live_verify_solution_start): Do not allocate problem data.
6233         (df_live_verify_solution_end): Check if out is allocated.
6234         (struct df_md_problem_data): New structure.
6235         (df_md_alloc): Allocate problem data.
6236         (df_md_free): Free problem data; do not clear bitmaps.
6237
6238 2010-06-10  Jan Beulich  <jbeulich@novell.com>
6239
6240         PR bootstrap/37304
6241         * configure.ac: Replace $() with ${} when intending to expand
6242         variables rather than invoking commands.
6243         * configure: Re-generate.
6244
6245 2010-06-10  Jan Hubicka  <jh@suse.cz>
6246
6247         PR rtl-optimization/44460
6248         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
6249         TYPE_NEEDS_CONSTRUCTING sanity check.
6250
6251 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
6252
6253         * doc/include/fdl.texi: Move to GFDL version 1.3.
6254
6255         * doc/cpp.texi: Move to GFDL version 1.3.
6256         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
6257         * doc/gccint.texi: Move to GFDL version 1.3.
6258         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
6259         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
6260         * doc/invoke.texi: Move to GFDL version 1.3.
6261
6262 2010-06-09  Jan Hubicka  <jh@suse.cz>
6263
6264         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
6265         Break out from ...
6266         (propagate) ... here; swap the order.
6267
6268 2010-06-09  Jan Hubicka  <jh@suse.cz>
6269
6270         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
6271         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
6272         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
6273         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
6274
6275 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
6276
6277         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
6278         Do not the gather memory reference in the outer loop if the step
6279         is not a constant.
6280
6281 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
6282
6283         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
6284         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
6285         8 to 4.  Minor change of the related comments.
6286
6287 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
6288
6289         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
6290         the scev analysis when the variable is not used outside the loop
6291         in a close phi node: call compute_overall_effect_of_inner_loop.
6292
6293 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
6294
6295         * graphite-sese-to-poly.c (single_pred_cond): Renamed
6296         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
6297         (build_sese_conditions_before): Renamed call to single_pred_cond.
6298         (build_sese_conditions_after): Same.
6299
6300 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
6301
6302         * graphite-poly.h: Fix comments and indentation.
6303         * graphite-sese-to-poly.c: Same.
6304         (build_sese_conditions_before): Compute stmt and gbb only when needed.
6305         * tree-chrec.c: Fix comments and indentation.
6306         (tree-ssa-loop-niter.c): Same.
6307
6308 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
6309
6310         PR rtl-optimization/42461
6311         * dce.c (deletable_insn_p): Return true for const or pure calls again.
6312         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
6313
6314 2010-06-09  Jan Hubicka  <jh@suse.cz>
6315
6316         * bitmap.c (bitmap_and): Walk array forward.
6317         (bitmap_and_compl_into): Likewise.
6318         (bitmap_xor): Likewise.
6319         (bitmap_xor_into):  Likewise.
6320         (bitmap_equal_p): Likewise.
6321         (bitmap_intersect_p): Likewise.
6322         (bitmap_intersect_compl_p): Likewise.
6323         (bitmap_ior_and_into): Likewise.
6324         (bitmap_elt_copy): Likewise.
6325         (bitmap_and_compl): Likewise.
6326         (bitmap_elt_ior): Likewise.
6327
6328 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
6329
6330         * opts-common.c (prune_options): Ensure replacement argv array
6331         is correctly terminated by a NULL entry.
6332
6333 2010-06-09  Jan Hubicka  <jh@suse.cz>
6334
6335         * cgraph.h (varpool_first_static_initializer,
6336         varpool_next_static_initializer): Make checking only when
6337         checking enabled.
6338         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
6339         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
6340         gcc_assert to gcc_checking_assert.
6341         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
6342         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
6343         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
6344         op_iter_init_phiuse, op_iter_init_phidef,
6345         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
6346         gcc_checking_assert.
6347         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
6348         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
6349         partition_is_global, live_on_entry, live_on_exit,
6350         live_merge_and_clear): Likewise.
6351         * system.h (gcc_checking_assert): New macro.
6352         * gimple.h (set_bb_seq): Use gcc_checking_assert.
6353
6354 2010-06-09  Jason Merrill  <jason@redhat.com>
6355
6356         * Makefile.in (TAGS): Collect tags info from c-family.
6357
6358 2010-06-09  Jan Hubicka  <jh@suse.cz>
6359
6360         * gimple.h (gcc_gimple_checking_assert): New macro.
6361         (gimple_set_def_ops, gimple_set_use_ops,
6362         gimple_set_vuse, gimple_set_vdef,
6363         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
6364         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
6365         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
6366         gimple_asm_output_op, gimple_asm_output_op_ptr,
6367         gimple_asm_set_output_op, gimple_asm_clobber_op,
6368         gimple_asm_set_clobber_op, gimple_asm_label_op,
6369         gimple_asm_set_label_op, gimple_try_set_kind,
6370         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
6371         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
6372         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
6373         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
6374         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
6375         gimple_omp_for_set_initial, gimple_omp_for_final,
6376         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
6377         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
6378         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
6379         conditional with ENABLE_GIMPLE_CHECKING.
6380         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
6381
6382 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
6383
6384         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
6385         (get_computation_cost_at): Use it.
6386         (determine_use_iv_cost_condition): Likewise.
6387         (determine_iv_cost): Likewise.
6388
6389 2010-06-09  Richard Guenther  <rguenther@suse.de>
6390
6391         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
6392         replace constants.
6393
6394 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
6395
6396         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
6397
6398 2010-06-09  Martin Jambor  <mjambor@suse.cz>
6399
6400         PR tree-optimization/44423
6401         * tree-sra.c (dump_access): Dump also grp_assignment_read.
6402         (analyze_access_subtree): Pass negative allow_replacements to children
6403         if the current type is scalar.
6404
6405 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
6406
6407         PR testsuite/42843
6408         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
6409         * doc/plugins.texi (Plugin license check): Update information
6410         on type of plugin_is_GPL_compatible.
6411         * Makefile.in (PLUGINCC): Define as $(COMPILER).
6412         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
6413
6414 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
6415
6416         * config/arm/arm.c (thumb2_reorg): New function.
6417         (arm_reorg): Call it.
6418         * config/arm/thumb2.md (define_peephole2 for flag clobbering
6419         arithmetic operations): Delete.
6420
6421 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
6422
6423         PR target/44067
6424         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
6425         e500v2 target.
6426
6427 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
6428
6429         PR plugins/44459
6430         * gcc-plugin.h: Encapsulate all declarations in extern "C".
6431
6432 2010-06-08  Jan Hubicka  <jh@suse.cz>
6433
6434         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
6435         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
6436
6437 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
6438
6439         PR tree-optimization/39874
6440         PR middle-end/28685
6441         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
6442         Declare.
6443         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
6444         same_bool_result_p): New.
6445         (and_var_with_comparison, and_var_with_comparison_1,
6446         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
6447         (or_var_with_comparison, or_var_with_comparison_1,
6448         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
6449         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
6450         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
6451         of combine_comparisons.
6452         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
6453
6454 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
6455
6456         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
6457         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
6458         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
6459         pdp11_function_value_regno_p): New functions.
6460         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6461         TARGET_FUNCTION_VALUE_REGNO_P): Define.
6462
6463 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
6464
6465         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
6466         Thumb-2 in the MINUS case.
6467
6468 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
6469
6470         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
6471
6472         * doc/gty.texi (GTY Options): Document typed GC allocation and
6473         variable_size GTY option.
6474
6475         * ggc-internal.h: New.
6476
6477         * ggc.h: Update copyright year.
6478         (digit_string): Move to stringpool.c.
6479         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
6480         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
6481         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
6482         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
6483         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
6484         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
6485         (ggc_force_collect, ggc_get_size, ggc_statistics)
6486         (ggc_print_common_statistics): Move to ggc-internal.h.
6487         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
6488         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
6489         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
6490         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
6491         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
6492         (ggc_alloc_zone_pass_stat): Remove.
6493         (ggc_internal_alloc_stat, ggc_internal_alloc)
6494         (ggc_internal_cleared_alloc_stat): New.
6495         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
6496         (ggc_internal_vec_alloc_stat)
6497         (ggc_internal_cleared_vec_alloc_stat)
6498         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
6499         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
6500         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
6501         (ggc_cleared_alloc_ptr_array_two_args): New.
6502         (htab_create_ggc, splay_tree_new_ggc): Redefine.
6503         (ggc_splay_alloc): Change the type of the first argument to
6504         enum gt_types_enum.
6505         (ggc_alloc_string): Make macro.
6506         (ggc_alloc_string_stat): New.
6507         (ggc_strdup): Redefine.
6508         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
6509         (ggc_alloc_rtvec_sized): New.
6510         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
6511         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
6512         (ggc_internal_cleared_alloc_zone_stat)
6513         (ggc_internal_zone_alloc_stat)
6514         (ggc_internal_zone_cleared_alloc_stat)
6515         (ggc_internal_zone_vec_alloc_stat)
6516         (ggc_alloc_zone_rtx_def_stat)
6517         (ggc_alloc_zone_tree_node_stat)
6518         (ggc_alloc_zone_cleared_tree_node_stat)
6519         (ggc_alloc_cleared_gimple_statement_d_stat): New.
6520
6521         * ggc-common.c: Include ggc-internal.h.
6522         (ggc_internal_cleared_alloc_stat): Rename from
6523         ggc_alloc_cleared_stat.
6524         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
6525         (ggc_calloc): Remove.
6526         (ggc_cleared_alloc_htab_ignore_args): New.
6527         (ggc_cleared_alloc_ptr_array_two_args): New.
6528         (ggc_splay_alloc): Add obj_type parameter.
6529         (init_ggc_heuristics): Formatting fixes.
6530
6531         * ggc-none.c: Update copyright year.
6532         (ggc_alloc_stat): Rename to ggc_alloc_stat.
6533         (ggc_alloc_cleared_stat): Rename to
6534         ggc_internal_cleared_alloc_stat.
6535         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
6536
6537         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
6538         Remove references to ggc_alloc in comments.
6539         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
6540         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
6541         (new_ggc_zone, destroy_ggc_zone): Remove.
6542         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
6543
6544         * ggc-zone.c: Include ggc-internal.h.  Remove references to
6545         ggc_alloc in comments.
6546         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
6547         (ggc_internal_alloc_zone_pass_stat): New.
6548         (ggc_internal_cleared_alloc_zone_stat): New.
6549         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
6550         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
6551         (new_ggc_zone, destroy_ggc_zone): Remove.
6552
6553         * stringpool.c: Update copyright year.  Include ggc-internal.h
6554         (digit_vector): Make static.
6555         (digit_string): Moved from ggc.h.
6556         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
6557         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
6558
6559         * Makefile.in (GGC_INTERNAL_H): New.
6560         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
6561         $(GGC_INTERNAL_H) to dependencies.
6562
6563         * gentype.c: Update copyright year.
6564         (walk_type): Accept variable_size GTY option.
6565         (USED_BY_TYPED_GC_P): New macro.
6566         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
6567         whitespace at the end of strings.
6568         (get_type_specifier, variable_size_p): New functions.
6569         (alloc_quantity, alloc_zone): New enums.
6570         (write_typed_alloc_def): New function.
6571         (write_typed_struct_alloc_def): Likewise.
6572         (write_typed_typed_typedef_alloc_def): Likewise.
6573         (write_typed_alloc_defns): Likewise.
6574         (output_typename, write_splay_tree_allocator_def): Likewise.
6575         (write_splay_tree_allocators): Likewise.
6576         (main): Call write_typed_alloc_defns and
6577         write_splay_tree_allocators.
6578
6579         * lto-streamer.h (lto_file_decl_data_ptr): New.
6580
6581         * passes.c (order): Define using cgraph_node_ptr.
6582
6583         * strinpool.c (struct string_pool_data): Declare nested_ptr using
6584         ht_identifier_ptr.
6585
6586         * gimple.h (union gimple_statement_d): Likewise.
6587
6588         * rtl.h (struct rtx_def): Likewise.
6589         (struct rtvec_def): Likewise.
6590
6591         * tree.h (union tree_node): Likewise.
6592
6593         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
6594
6595         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
6596
6597         * tree-scalar-evolution.c (scev_initialize): Likewise.
6598
6599         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
6600
6601         * dwarf2asm.c (dw2_force_const_mem): Likewise.
6602
6603         * omp-low.c (lower_omp_critical): Likewise.
6604
6605         * bitmap.h (struct bitmap_head_def): Update comment to not
6606         reference ggc_alloc.
6607
6608         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
6609
6610         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
6611
6612         * ipa-prop.c (duplicate_ggc_array): Rename to
6613         duplicate_ipa_jump_func_array.  Use typed GC allocation.
6614         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
6615
6616         * gimple.c (gimple_alloc_stat): Use
6617         ggc_alloc_cleared_gimple_statement_d_stat.
6618
6619         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
6620
6621         * tree.c (make_node_stat): Use
6622         ggc_alloc_zone_cleared_tree_node_stat.
6623         (make_tree_vec_stat): Likewise.
6624         (build_vl_exp_stat): Likewise.
6625         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
6626         (make_tree_binfo_stat): Likewise.
6627         (tree_cons_stat): Likewise.
6628
6629         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
6630         (shallow_copy_rtx_stat): Likewise.
6631         (make_node_stat): Likewise.
6632
6633         * lto-symtab.c: Fix comment.
6634
6635         * tree-cfg.c (create_bb): Update comment to not reference
6636         ggc_alloc_cleared.
6637         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
6638
6639         * varpool.c (varpool_node): Use typed GC allocation.
6640         (varpool_extra_name_alias): Likewise.
6641
6642         * varasm.c (emutls_decl): Likewise.
6643         (get_unnamed_section): Likewise.
6644         (get_noswitch_section): Likewise.
6645         (get_section): Likewise.
6646         (get_block_for_section): Likewise.
6647         (build_constant_desc): Likewise.
6648         (create_constant_pool): Likewise.
6649         (force_const_mem): Likewise.
6650
6651         * tree.c (build_vl_exp_stat): Likewise.
6652         (build_real): Likewise.
6653         (build_string): Likewise.
6654         (decl_debug_expr_insert): Likewise.
6655         (decl_value_expr_insert): Likewise.
6656         (type_hash_add): Likewise.
6657         (build_omp_clause): Likewise.
6658
6659         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
6660
6661         * tree-ssa.c (init_tree_ssa): Likewise.
6662
6663         * tree-ssa-structalias.c (heapvar_insert): Likewise.
6664
6665         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
6666
6667         * tree-ssa-loop-niter.c (record_estimate): Likewise.
6668
6669         * tree-ssa-alias.c (get_ptr_info): Likewise.
6670
6671         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
6672
6673         * tree-phinodes.c (allocate_phi_node): Likewise.
6674
6675         * tree-iterator.c (tsi_link_before): Likewise.
6676         (tsi_link_after): Likewise.
6677
6678         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
6679
6680         * tree-dfa.c (create_var_ann): Likewise.
6681
6682         * tree-cfg.c (create_bb): Likewise.
6683
6684         * toplev.c (alloc_for_identifier_to_locale): Likewise.
6685         (general_init): Likewise.
6686
6687         * stringpool.c (stringpool_ggc_alloc): Likewise.
6688         (gt_pch_save_stringpool): Likewise.
6689
6690         * sese.c (if_region_set_false_region): Likewise.
6691
6692         * passes.c (do_per_function_toporder): Likewise.
6693
6694         * optabs.c (set_optab_libfunc): Likewise.
6695         (set_conv_libfunc): Likewise.
6696
6697         * lto-symtab.c (lto_symtab_register_decl): Likewise.
6698
6699         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
6700         (input_eh_region): Likewise.
6701         (input_eh_lp): Likewise.
6702         (make_new_block): Likewise.
6703         (unpack_ts_real_cst_value_fields): Likewise.
6704
6705         * lto-section-in.c (lto_new_in_decl_state): Likewise.
6706
6707         * lto-cgraph.c (input_node_opt_summary): Likewise.
6708
6709         * loop-init.c (loop_optimizer_init): Likewise.
6710
6711         * lambda.h (lambda_vector_new): Likewise.
6712
6713         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
6714
6715         * ira.c (update_equiv_regs): Likewise.
6716
6717         * ipa.c (cgraph_node_set_new): Likewise.
6718         (cgraph_node_set_add): Likewise.
6719         (varpool_node_set_new): Likewise.
6720         (varpool_node_set_add): Likewise.
6721
6722         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
6723         (duplicate_ipa_jump_func_array): Likewise.
6724         (ipa_read_node_info): Likewise.
6725
6726         * ipa-cp.c (ipcp_create_replace_map): Likewise.
6727
6728         * integrate.c (get_hard_reg_initial_val): Likewise.
6729
6730         * gimple.c (gimple_alloc_stat): Likewise.
6731         (gimple_build_omp_for): Likewise.
6732         (gimple_seq_alloc): Likewise.
6733         (gimple_copy): Likewise.
6734
6735         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
6736         (gsi_insert_after_without_update): Likewise.
6737
6738         * function.c (add_frame_space): Likewise.
6739         (insert_temp_slot_address): Likewise.
6740         (assign_stack_temp_for_type): Likewise.
6741         (allocate_struct_function): Likewise.
6742         (types_used_by_var_decl_insert): Likewise.
6743
6744         * except.c (init_eh_for_function): Likewise.
6745         (gen_eh_region): Likewise.
6746         (gen_eh_region_catch): Likewise.
6747         (gen_eh_landing_pad): Likewise.
6748         (add_call_site): Likewise.
6749
6750         * emit-rtl.c (get_mem_attrs): Likewise.
6751         (get_reg_attrs): Likewise.
6752         (start_sequence): Likewise.
6753         (init_emit): Likewise.
6754
6755         * dwarf2out.c (new_cfi): Likewise.
6756         (queue_reg_save): Likewise.
6757         (dwarf2out_frame_init): Likewise.
6758         (new_loc_descr): Likewise.
6759         (find_AT_string): Likewise.
6760         (new_die): Likewise.
6761         (add_var_loc_to_decl): Likewise.
6762         (clone_die): Likewise.
6763         (clone_as_declaration): Likewise.
6764         (break_out_comdat_types): Likewise.
6765         (new_loc_list): Likewise.
6766         (loc_descriptor): Likewise.
6767         (add_loc_descr_to_each): Likewise.
6768         (add_const_value_attribute): Likewise.
6769         (tree_add_const_value_attribute): Likewise.
6770         (add_comp_dir_attribute): Likewise.
6771         (add_name_and_src_coords_attributes): Likewise.
6772         (lookup_filename): Likewise.
6773         (store_vcall_insn): Likewise.
6774         (dwarf2out_init): Likewise.
6775
6776         * dbxout.c (dbxout_init): Likewise.
6777
6778         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
6779
6780         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
6781
6782         * config/score/score7.c (score7_output_external): Likewise.
6783
6784         * config/score/score3.c (score3_output_external): Likewise.
6785
6786         * config/s390/s390.c (s390_init_machine_status): Likewise.
6787
6788         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
6789         (rs6000_init_machine_status): Likewise.
6790         (output_toc): Likewise.
6791
6792         * config/pa/pa.c (pa_init_machine_status): Likewise.
6793         (get_deferred_plabel): Likewise.
6794
6795         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
6796
6797         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
6798
6799         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
6800
6801         * config/mep/mep.c (mep_init_machine_status): Likewise.
6802         (mep_note_pragma_flag): Likewise.
6803
6804         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
6805
6806         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
6807
6808         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
6809
6810         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
6811         (i386_pe_maybe_record_exported_symbol): Likewise.
6812
6813         * config/i386/i386.c (get_dllimport_decl): Likewise.
6814         (ix86_init_machine_status): Likewise.
6815         (assign_386_stack_local): Likewise.
6816
6817         * config/frv/frv.c (frv_init_machine_status): Likewise.
6818
6819         * config/darwin.c (machopic_indirection_name): Likewise.
6820
6821         * config/cris/cris.c (cris_init_machine_status): Likewise.
6822
6823         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
6824
6825         * config/avr/avr.c (avr_init_machine_status): Likewise.
6826
6827         * config/arm/arm.c (arm_init_machine_status): Likewise.
6828
6829         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
6830         (alpha_need_linkage): Likewise.
6831         (alpha_use_linkage): Likewise.
6832
6833         * cgraph.c (cgraph_allocate_node): Likewise.
6834         (cgraph_create_edge_1): Likewise.
6835         (cgraph_create_indirect_edge): Likewise.
6836         (cgraph_add_asm_node): Likewise.
6837
6838         * cfgrtl.c (init_rtl_bb_info): Likewise.
6839
6840         * cfgloop.c (alloc_loop): Likewise.
6841         (rescan_loop_exit): Likewise.
6842
6843         * cfg.c (init_flow): Likewise.
6844         (alloc_block): Likewise.
6845         (unchecked_make_edge): Likewise.
6846
6847         * c-parser.c (c_parse_init): Likewise.
6848         (c_parse_file): Likewise.
6849
6850         * c-decl.c (bind): Likewise.
6851         (record_inline_static): Likewise.
6852         (push_scope): Likewise.
6853         (make_label): Likewise.
6854         (lookup_label_for_goto): Likewise.
6855         (finish_struct): Likewise.
6856         (finish_enum): Likewise.
6857         (c_push_function_context): Likewise.
6858
6859         * bitmap.c (bitmap_element_allocate): Likewise.
6860         (bitmap_gc_alloc_stat): Likewise.
6861
6862         * alias.c (record_alias_subset): Likewise.
6863         (init_alias_analysis): Likewise.
6864
6865 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
6866
6867         * fold-const.c (fold_comparison): Remove redundant parenthesis.
6868         * tree-inline.c (expand_call_inline): Pass translated return value of
6869         cgraph_inline_failed_string to diagnostic function.
6870
6871 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
6872             Shujing Zhao  <pearly.zhao@oracle.com>
6873
6874         PR c/37724
6875         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
6876         implicit bad conversions is initialization.
6877         (error_init): Use gmsgid instead of msgid for argument name and change
6878         the call for error.
6879         (pedwarn_init): Use gmsgid instead of msgid for argument name and
6880         change the call for pedwarn.
6881         (warning_init): Use gmsgid instead of msgid for argument name and
6882         change the call for warning.
6883
6884 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
6885
6886         * config/mips/mips-protos.h (mips_print_operand): Delete.
6887         (mips_print_operand_address): Delete.
6888         * config/mips/mips.h (mips_print_operand_punct): Delete.
6889         (PRINT_OPERAND): Delete.
6890         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6891         (PRINT_OPERAND_ADDRESS): Delete.
6892         * config/mips/mips.c (mips_print_operand_punct): Make static.
6893         (mips_print_operand_address): Make static.
6894         (mips_print_operand): Make static.  Call
6895         mips_print_operand_punct_valid_p.
6896         (mips_print_operand_punct_valid_p): New function.
6897         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6898         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6899
6900 2010-06-07  Jan Hubicka  <jh@suse.cz>
6901
6902         PR middle-end/44454
6903         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
6904         are allocated.
6905
6906 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
6907
6908         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
6909         name of RECORD.
6910
6911 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6912
6913         * doc/sourcebuild.texi (Effective-Target Keywords, Other
6914         attributes): Document gas.
6915
6916 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
6917
6918         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
6919         <TYPE_LEA>: Split instruction.
6920         <default>: Remove alternative 2 handling.
6921         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
6922         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
6923         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
6924
6925         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
6926         (ashift_zext lea splitter): Use DImode for multiplication.
6927
6928         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
6929         to generate addition.
6930
6931 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
6932
6933         * common.opt (fira-verbose): Use Var.
6934         (fpcc-struct-return): Use Init instead of VarExists.
6935         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
6936         toplev.c.
6937         * flags.h (flag_signed_char, flag_short_enums,
6938         flag_pcc_struct_return, flag_ira_verbose,
6939         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
6940         * toplev.c (flag_detailed_statistics, flag_signed_char,
6941         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
6942         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
6943         * toplev.h (flag_crossjumping, flag_if_conversion,
6944         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
6945         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
6946         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
6947         flag_cprop_registers, time_report, flag_ira_loop_pressure,
6948         flag_ira_coalesce, flag_ira_move_spills,
6949         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
6950
6951 2010-06-07  Jan Hubicka  <jh@suse.cz>
6952
6953         * df-core.c (df_analyze_problem): Do verification after allocation.
6954
6955         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
6956         (df_lr_alloc): Initialize problem data; move bitmaps to
6957         lr_bitmaps obstack.
6958         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
6959         (df_lr_verify_solution_start): Do not initialize problem data;
6960         allocate bitmaps in lr_bitmaps.
6961         (df_lr_verify_solution_end): Do not free problem data.
6962
6963 2010-06-07  Jan Hubicka  <jh@suse.cz>
6964
6965         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
6966         if caller is noreturn.
6967         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
6968         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
6969         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
6970         * ipa-pure-const.c (check_decl): Add IPA parameter.
6971         (state_from_flags): New function.
6972         (better_state, worse_state): New functions.
6973         (check_call): When in IPA mode, do not care about callees.
6974         (check_load, check_store): Update.
6975         (check_ipa_load, check_ipa_store): New.
6976         (check_stmt): When in IPA mode, use IPA checkers.
6977         (analyze_function): Use state_from_flags.
6978         (propagate): Check indirect edges and references.
6979
6980 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
6981
6982         PR rtl-optimization/44404
6983         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
6984         of count_occurrences to see if it's safe to modify mem_insn.
6985
6986 2010-06-07  Richard Guenther  <rguenther@suse.de>
6987
6988         * gimplify.c (gimplify_cleanup_point_expr): For empty body
6989         and EH-only cleanup drop the cleanup instead of inserting it
6990         unconditionally.
6991
6992 2010-06-07  Ira Rosen  <irar@il.ibm.com>
6993
6994         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
6995         documentation.
6996         * targhooks.c (default_builtin_vectorization_cost): New function.
6997         * targhooks.h (default_builtin_vectorization_cost): Declare.
6998         * target.h (enum vect_cost_for_stmt): Define.
6999         (builtin_vectorization_cost): Change argument and comment.
7000         * tree-vectorizer.h: Remove cost model macros.
7001         * tree-vect-loop.c: Include target.h.
7002         (vect_get_cost): New function.
7003         (vect_estimate_min_profitable_iters): Replace cost model macros with
7004         calls to vect_get_cost.
7005         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
7006         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
7007         default implementation.
7008         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
7009         calls to target hook builtin_vectorization_cost.
7010         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
7011         Likewise.
7012         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
7013         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
7014         implementation to return costs.
7015         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
7016         * config/spu/spu.h: Remove vectorizer cost model macros.
7017         * config/i386/i386.h: Likewise.
7018         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
7019         a call to target hook builtin_vectorization_cost.
7020
7021 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
7022
7023         PR target/44319
7024         * config/i386/i386.c (override_options): Turn zee pass on for level 2
7025         and above and defer till target is known.
7026         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
7027         turn off otherwise.
7028
7029 2010-05-25  Jan Hubicka  <jh@suse.cz>
7030
7031         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
7032         (df_compact_blocks): Likewise.
7033         * df.h (struct df): Turn hardware_regs_used,
7034         regular_block_artificial_uses, eh_block_artificial_uses,
7035         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
7036         bitmap_head.
7037         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
7038         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
7039         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
7040         df_scan_blocks, df_insn_delete, df_insn_rescan,
7041         df_insn_rescan_debug_internal, df_insn_rescan_all,
7042         df_process_deferred_rescans, df_process_deferred_rescans,
7043         df_notes_rescan, df_get_call_refs, df_get_call_refs,
7044         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
7045         df_record_entry_block_defs, df_record_exit_block_uses,
7046         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
7047         df_scan_verify): Update.
7048
7049 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
7050
7051         PR c++/44188
7052         * c-common.c (is_typedef_decl): Move this definition ...
7053         * tree.c (is_typedef_decl): ... here.
7054         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
7055         * c-common.h (is_typedef_decl): Move this declaration ...
7056         * tree.h (is_typedef_decl): ... here.
7057         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
7058         * dwarf2out.c (is_naming_typedef_decl): New function.
7059         (gen_tagged_type_die): Split out of ...
7060         (gen_type_die_with_usage): ... this function. When an anonymous
7061         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
7062         is emitted for the typedef.
7063         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
7064         anonymous tagged types.
7065
7066 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7067
7068         PR c/20000
7069         * c-decl.c (grokdeclarator): Delete warning.
7070
7071 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
7072
7073         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
7074         newly built CALL_EXPR.
7075         * tree-profile.c (tree_profiling): Don't profile functions produced
7076         for built-in stuff.
7077
7078 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
7079
7080         PR bootstrap/44427
7081         PR bootstrap/44428
7082         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
7083         endianness-independent.
7084
7085 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
7086
7087         * c-common.c: Move to c-family/.
7088         * c-common.def: Likewise.
7089         * c-common.h: Likewise.
7090         * c-cppbuiltin.c: Likewise.
7091         * c-dump.c: Likewise.
7092         * c-format.c: Likewise.
7093         * c-format.h : Likewise.
7094         * c-gimplify.c: Likewise.
7095         * c-lex.c: Likewise.
7096         * c-omp.c: Likewise.
7097         * c.opt: Likewise.
7098         * c-opts.c: Likewise.
7099         * c-pch.c: Likewise.
7100         * c-ppoutput.c: Likewise.
7101         * c-pragma.c: Likewise.
7102         * c-pragma.h: Likewise.
7103         * c-pretty-print.c: Likewise.
7104         * c-pretty-print.h: Likewise.
7105         * c-semantics.c: Likewise.
7106         * stub-objc.c: Likewise.
7107
7108         * gengtype.c (get_file_langdir): Special-case files in c-family/.
7109         (get_output_file_with_visibility): Fix name for c-common.h.
7110         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
7111
7112         * c-tree.h: Update include path for moved files.
7113         * c-lang.c: Likewise.
7114         * c-lang.h: Likewise.
7115         * c-parser.c: Likewise.
7116         * c-convert.c: Likewise.
7117         * c-decl.c: Likewise.
7118         * c-objc-common.c: Likewise.
7119         * configure.ac: Make sure c-family/ exists in the build directory.
7120         * configure: Regenerate.
7121         * Makefile.in: Update paths for moved files.  Regroup files per
7122         location and update dependencies.  Move generated_files down after
7123         ALL_GTFILES_H.
7124
7125         * config/spu/spu-c.c: Update paths for moved files.
7126         * config/mep/mep-pragma.c: Likewise.
7127         * config/darwin-c.c: Likewise.
7128         * config/i386/msformat-c.c: Likewise.
7129         * config/i386/i386-c.c: Likewise.
7130         * config/avr/avr-c.c: Likewise.
7131         * config/sol2-c.c: Likewise.
7132         * config/ia64/ia64-c.c: Likewise.
7133         * config/rs6000/rs6000-c.c: Likewise.
7134         * config/arm/arm.c: Likewise.
7135         * config/arm/arm-c.c: Likewise.
7136         * config/h8300/h8300.c: Likewise.
7137         * config/v850/v850-c.c: Likewise.
7138
7139         * config/t-darwin: Fix dependencies for moved files.
7140         * config/t-sol2: Fix dependencies for moved files.
7141         * config/mep/t-mep: Fix dependencies for moved files.
7142         * config/ia64/t-ia64: Fix dependencies for moved files.
7143         * config/rs6000/t-rs6000: Fix dependencies for moved files.
7144         * config/v850/t-v850: Fix dependencies for moved files.
7145         * config/v850/t-v850e: Fix dependencies for moved files.
7146
7147         * config/m32c/m32c-pragma.c
7148
7149         * po/exgettext: Look in c-family/ also.
7150
7151 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
7152
7153         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
7154         (mark_control_dependent_edges_necessary): Call it instead of marking
7155         the last statement manually.
7156         (propagate_necessity): Likewise.
7157
7158 2010-06-05  Jan Hubicka  <jh@suse.cz>
7159
7160         * basic-block.h (compute_dominance_frontiers): Updated.
7161         (compute_idf): Likewise.
7162
7163         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
7164         for dominance frontiers.
7165         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
7166         (insert_updated_phi_nodes_for): Likewise.
7167         (update_ssa): Likewise.
7168         * cfganal.c (compute_dominance_frontiers_1): Likewise.
7169         (compute_dominance_frontiers): Likewise.
7170         (compute_idf): Likewise.
7171         * df-problems.c (df_md_local_compute): Likewise.
7172
7173 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
7174
7175         * target.h (struct gcc_target): Add memory_move_cost field.
7176         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
7177         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
7178         * targhooks.c (default_memory_move_cost): New function.
7179         * targhooks.h (default_memory_move_cost): Declare function.
7180         * reload.h (memory_move_cost): Declare.
7181         (memory_move_secondary_cost): Change type of 'in' argument to bool.
7182         * reginfo.c (memory_move_cost): New function.
7183         (memory_move_secondary_cost): Change type of 'in' argument to bool.
7184         * ira.h (ira_memory_move_cost): Update comment.
7185         * ira.c: (ira_memory_move_cost): Update comment.
7186         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
7187         with memory_move_cost.
7188         * postreload.c (reload_cse_simplify_set): (Ditto.).
7189         * reload1.c (choose_reload_regs): (Ditto.).
7190         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
7191         (MEMORY_MOVE_COST):  Revise documentation.
7192
7193         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
7194         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
7195         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
7196         type of 'in' argument to bool.
7197         (TARGET_MEMORY_MOVE_COST): Define.
7198
7199 2010-06-05  Jan Hubicka  <jh@suse.cz>
7200
7201         * ipa-pure-const.c (propagate): Fix typo in handling of functions
7202         that cannot return.  Be more careful when merging the results with
7203         previously known ones.
7204
7205 2010-06-05  Matthias Klose  <doko@ubuntu.com>
7206
7207         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
7208         function to add the -iplugindir option.
7209         (find_plugindir_spec_function): Add new declaration and function.
7210         (static_spec_func): Use it for "find-plugindir".
7211
7212 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
7213
7214         PR c++/44361
7215         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
7216         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
7217         statement expression.
7218
7219 2010-06-05  Jan Hubicka  <jh@suse.cz>
7220
7221         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
7222         (df_rd_problem_data): Convert sparse_invalidated_by_call,
7223         dense_invalidated_by_call to bitmap head.
7224         (df_rd_alloc, df_rd_bb_local_compute_process_def,
7225         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
7226         df_rd_start_dump, df_lr_verify_transfer_functions,
7227         df_live_verify_transfer_functions, df_chain_create_bb,
7228         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
7229         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
7230         df_simulate_one_insn_forwards, df_md_alloc,
7231         df_md_bb_local_compute_process_def,
7232         df_md_bb_local_compute_process_def, df_md_local_compute,
7233         df_md_transfer_function df_md_free): Update.
7234
7235 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
7236
7237         PR c/44322
7238         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
7239         target type for ADDR_EXPR; require no changes to qualifiers except
7240         for function types.
7241         * c-tree.h (c_build_type_variant): Remove.
7242
7243 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
7244
7245         * genautomata.c (get_excl_set): Do work per element, not per char.
7246         (check_presence_pattern_sets): Similar.
7247         (check_absence_pattern_sets): Similar.
7248
7249 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
7250
7251         * genautomata.c (curr_state_pass_num): Delete.
7252         (min_issue_delay_pass_states): Delete.
7253         (min_issue_delay): Delete.
7254         (initiate_min_issue_delay_pass_states): Delete.
7255         (output_min_issue_delay_table): Compute min_issue_delay_vect
7256         using a breadth-first search variant.
7257         (output_tables): Don't call initiate_min_issue_delay_pass_states.
7258
7259 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
7260
7261         PR boostrap/44421
7262         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
7263         (df_byte_lr_bb_local_compute): Likewise.
7264
7265 2010-06-03  Jason Merrill  <jason@redhat.com>
7266
7267         Implement noexcept operator (5.3.7)
7268         * c-common.c (c_common_reswords): Add noexcept.
7269         * c-common.h (enum rid): Add RID_NOEXCEPT.
7270
7271 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
7272
7273         * config/darwin-driver.c (darwin_default_min_version): Use
7274         GCC-specific formats in diagnostics.
7275         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
7276         diagnostics.
7277         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
7278         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
7279         eval_spec_function, handle_braces, process_brace_body, main,
7280         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
7281         getenv_spec_function, compare_version_strings,
7282         version_compare_spec_function): Use GCC-specific formats in
7283         diagnostics.
7284
7285 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
7286
7287         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
7288         that operand 0 and operand 1 are equal.
7289         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
7290         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
7291         and operand 1 are equal.
7292         <default>: Ditto.  Remove ??? comment.
7293         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
7294         and operand 1 are equal.
7295         <default>: Ditto.  Remove ??? comment.
7296         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
7297         are equal.
7298         (*add<mode>_4) <default>: Ditto.
7299         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
7300
7301 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
7302
7303         * config/i386/i386-protos.h (ix86_print_operand): Declare.
7304         * config/i386/i386.c (ix86_print_operand): Make non-static.
7305         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
7306         * output.h (output_operand): Declare.
7307         * final.c (output_operand): Make non-static.
7308
7309 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
7310
7311         PR rtl-optimization/44013
7312         * sched-deps.c (add_dependence_list_and_free): Don't free lists
7313         when processing debug insns.
7314
7315         PR debug/41371
7316         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
7317         recursing.  Check that recursion is bounded.  Rename inner var
7318         to avoid hiding incoming argument.
7319
7320 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
7321
7322         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
7323         operands[2] == 255.
7324         (*addqi_3): Ditto.
7325         (*addqi_4): Ditto.
7326         (*addqi_5): Ditto.
7327         (*addqi_ext_1_rex64): Ditto.
7328         (*addqi_ext_1): Ditto.
7329
7330         (*addqi_4): Check for incdec_operand in QImode.
7331
7332         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
7333         using SWI mode iterator.
7334         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
7335         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
7336         mode iterator.
7337         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
7338         using SWI mode iterator.
7339
7340 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7341
7342         PR c/25880
7343         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
7344         * c-format.c (gcc_diag_flag_specs): Add hash.
7345         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
7346         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
7347         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
7348         pp_c_cv_qualifiers. Handle qualifiers spelling here.
7349         (pp_c_type_qualifier_list): Call the function above.
7350         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
7351         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
7352         (WARN_FOR_QUALIFIERS): New macro.
7353         (convert_for_assignment): Use it.
7354
7355 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
7356
7357         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
7358
7359 2010-06-04  Jan Hubicka  <jh@suse.cz>
7360
7361         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
7362         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
7363         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
7364         DF_BYTE_LR_OUT): Update for embedded bitmaps.
7365         * fwprop.c (single_def_use_enter_block): Likewise.
7366         * ddg.c (create_ddg_dep_from_intra_loop_link,
7367         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
7368         * loop-iv.c (latch_dominating_def): Likewise.
7369         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
7370         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
7371         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
7372         df_rd_transfer_function, df_rd_top_dump,
7373         df_rd_bottom_dump): Update.
7374         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
7375         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
7376         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
7377         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
7378         df_lr_verify_solution_start, df_lr_verify_solution_end,
7379         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
7380         df_live_free_bb_info, df_live_alloc, df_live_reset,
7381         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
7382         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
7383         df_live_verify_solution_start, df_live_verify_solution_end,
7384         df_live_verify_transfer_functions, df_chain_create_bb,
7385         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
7386         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
7387         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
7388         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
7389         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
7390         df_byte_lr_transfer_function, df_byte_lr_top_dump,
7391         df_byte_lr_bottom_dump, df_create_unused_note,
7392         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
7393         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
7394         df_md_transfer_function, df_md_init, df_md_confluence_0,
7395         df_md_confluence_n,
7396         df_md_top_dump, df_md_bottom_dump): Update.
7397         (struct df_lr_problem_data): Embedd bitmap headers.
7398
7399 2010-06-04  Jan Hubicka  <jh@suse.cz>
7400
7401         * dce.c (dce_process_block): Do not re-scan already marked
7402         instructions.
7403
7404 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
7405
7406         PR rtl-optimization/39871
7407         PR rtl-optimization/40615
7408         PR rtl-optimization/42500
7409         PR rtl-optimization/42502
7410         * ira.c (init_reg_equiv_memory_loc: New function.
7411         (ira): Call it twice.
7412         * reload.h (calculate_elim_costs_all_insns): Declare.
7413         * ira-costs.c: Include "reload.h".
7414         (regno_equiv_gains): New static variable.
7415         (init_costs): Allocate it.
7416         (finish_costs): Free it.
7417         (ira_costs): Call calculate_elim_costs_all_insns.
7418         (find_costs_and_classes): Take estimated elimination costs
7419         into account.
7420         (ira_adjust_equiv_reg_cost): New function.
7421         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
7422         * reload1.c (init_eliminable_invariants, free_reg_equiv,
7423         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
7424         (elim_bb): New static variable.
7425         (reload): Move code out of here into init_eliminable_invariants and
7426         free_reg_equiv.  Call them.
7427         (calculate_elim_costs_all_insns): New function.
7428         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
7429         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
7430         but call note_reg_elim_costly if we turned a valid memory address
7431         into an invalid one.
7432         * Makefile.in (ira-costs.o): Depend on reload.h.
7433
7434 2010-06-04  Julian Brown  <julian@codesourcery.com>
7435
7436         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
7437         for pool ranges.
7438
7439 2010-06-04  Richard Guenther  <rguenther@suse.de>
7440
7441         PR lto/41584
7442         * cgraph.h (struct varpool_node): Add lto_file_data field.
7443         * lto-cgraph.c (input_varpool_node): Initialize it.
7444
7445 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
7446
7447         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
7448         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
7449         predicate in "type" attribute calculation.
7450         (*addsi_1_zext): Ditto.
7451         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
7452         (*addsi_2_zext): Ditto.
7453         (*add<mode>_3): Ditto.
7454         (*addsi_3_zext): Ditto.
7455         (*add<mode>_5): Ditto.
7456
7457 2010-06-03  Jan Hubicka  <jh@suse.cz>
7458
7459         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
7460         of bitmap_bit_p.
7461         * cfganal.c (compute_dominance_frontiers_1): Likewise.
7462
7463 2010-06-03  Jan Hubicka  <jh@suse.cz>
7464
7465         * df-problems.c (df_create_unused_note, df_note_bb_compute):
7466         micro-optimize the checks when to add new note.
7467
7468 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
7469
7470         * final.c (output_asm_insn): Call
7471         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
7472         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
7473         (output_address): Call targetm.asm_out.print_operand_address.
7474         Update comments.
7475         * target.h (struct gcc_target): Add print_operand,
7476         print_operand_address, and print_operand_punct_valid_p fields.
7477         * targhooks.h (default_print_operand): Declare.
7478         (default_print_operand_address): Declare.
7479         (default_print_operand_punct_valid_p): Declare.
7480         * targhooks.c (default_print_operand): Define.
7481         (default_print_operand_address): Define.
7482         (default_print_operand_punct_valid_p): Define.
7483         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
7484         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
7485         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
7486         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
7487         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
7488         * vmsdbgout.c (addr_const_to_string): Update comment.
7489         * config/i386/i386.c (print_operand): Rename to...
7490         (ix86_print_operand): ...this.  Make static.
7491         (print_operand_address): Rename to...
7492         (ix86_print_operand_address): ...this.  Make static.  Call
7493         ix86_print_operand instead of PRINT_OPERAND.
7494         (ix86_print_operand_punct_valid_p): New function.
7495         (TARGET_PRINT_OPERAND): Define.
7496         (TARGET_PRINT_OPERAND_ADDRESS): Define.
7497         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7498         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
7499         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7500         (PRINT_OPERAND): Delete.
7501         (PRINT_OPERAND_ADDRESS): Delete.
7502         * config/i386/i386-protos.h (print_operand): Delete prototype.
7503         (print_operand_address): Delete prototype.
7504
7505 2010-06-03  Richard Guenther  <rguenther@suse.de>
7506
7507         PR tree-optimization/44403
7508         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7509         Preserve pointer qualifiers.
7510         (vect_create_data_ref_ptr): Likewise.
7511
7512 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
7513
7514         PR c++/44294
7515         * defaults.h (MAX_FIXED_MODE_SIZE): New.
7516
7517         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
7518
7519 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
7520
7521         PR debug/44375
7522         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
7523         return false if merging the bbs would lead to goto_locus
7524         location being lost from the IL.
7525
7526 2010-06-03  Jan Hubicka  <jh@suse.cz>
7527             Jakub Jelinek  <jakub@redhat.com>
7528
7529         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
7530         set->regs[i] is NULL or has just one entry.
7531
7532 2010-06-03  Jan Hubicka  <jh@suse.cz>
7533
7534         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
7535         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
7536
7537 2010-06-03  Paul Brook  <paul@codesourcery.com>
7538
7539         * config/arm/arm.c (FL_TUNE): Define.
7540         (arm_default_cpu, arm_cpu_select): Remove.
7541         (all_cores): Populate core field.
7542         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
7543         (arm_find_cpu): New function.
7544         (arm_handle_option): Lookup cpu/architecture names.
7545         (arm_override_options): Cleanup mcpu/march/mtune handling.
7546         (arm_file_start): Ditto.
7547
7548 2010-06-03  Alan Modra  <amodra@gmail.com>
7549
7550         PR target/44169
7551         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
7552         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
7553         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
7554         (rs6000_emit_load_toc_table): Likewise.
7555
7556 2010-06-02  Jan Hubicka  <jh@suse.cz>
7557
7558         * passes.c (init_optimization_passes): Put ipa reference
7559         after ipa pure-const.
7560
7561 2010-06-02  Jan Hubicka  <jh@suse.cz>
7562
7563         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
7564         calls_read_all and calls_write_all.
7565         (get_reference_optimization_summary): Fix formatting.
7566         (is_proper_for_analysis): Check that decl is not readonly.
7567         (propagate_bits): Check CONST/PURE/noreturn flags.
7568         (ipa_init): Move all_module_statics to optimization_summary_obstack.
7569         (analyze_function): Ignore indirect edges.
7570         (copy_global_bitmap): For all module statics, do nothing.
7571         (generate_summary): Do not print calls_read_all/calls_write_all.
7572         (read_write_all_from_decl): Take node as argument; check
7573         cgraph_node_cannot_return.
7574         (propagate): Reorganize read_all/write_all computation;
7575         check indirect edges; check ecf flags; use all_module_statics
7576         in the results; do not free all_module_statics.
7577         (stream_out_bitmap): Handle all_module_statics.
7578         (ipa_reference_write_optimization_summary): Likewise; use
7579         varpool/cgraph encoders to get boundaries.
7580         (ipa_reference_read_optimization_summary): Read in all_module_statics;
7581         use it when possible.
7582
7583 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
7584
7585         PR target/44218
7586         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
7587         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
7588
7589         * doc/extend.texi (powerpc builtins): Document vec_recip,
7590         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
7591
7592         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
7593         (rs6000_emit_swrsqrt): Ditto.
7594         (rs6000_emit_swdivsf): Delete.
7595         (rs6000_emit_swdivdf): Ditto.
7596         (rs6000_emit_swrsqrtsf): Ditto.
7597
7598         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
7599         describe the reciprocal estimate support for each type.
7600         (recip_options): Map -mrecip=<opt> into option bits.
7601         (gen_2arg_fn_t): New typedef for binary rtx gen function.
7602         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
7603         reciprocal estimate instructions.
7604         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
7605         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
7606         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
7607         cost information if -mdebug=cost or -mdebug=reg.
7608         (rs6000_override_options): Set -mrecip-precision for power6, and
7609         power7 machines.  If -mvsx or -mdfp, enable various options that
7610         came in previous instruction set ISAs, unless the option was
7611         explicitly disabled by the command line option.  Parse
7612         -mrecip=<opt> options.
7613         (rs6000_builtin_vectorized_function): Add support for vectorizing
7614         the reciprocal estimate builtins and expansions.
7615         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
7616         (bdesc_2arg): Add reciprocal estimate builtins.
7617         (bdesc_1arg): Add reciprocal square root estimate builtins.
7618         (rs6000_expand_builtin): Rewrite to use a switch statement,
7619         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
7620         (rs6000_init_builtins): Create declarations for reciprocal
7621         estimate builtins.
7622         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
7623         sized, prefer traditional floating point registers, if integer
7624         vector types, prefer altivec registers.  Don't actually look at
7625         the memory address any more.
7626         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
7627         builtins.
7628         (rs6000_load_constant_and_splat): New helper function to load up
7629         the constant for reciprocal estimate instructions.
7630         (rs6000_emit_madd): New helper function for generating
7631         multiply/add type instructions, based on the current switches.
7632         (rs6000_emit_msub): Ditto.
7633         (rs6000_emit_mnsub): Ditto.
7634         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
7635         replace a divide with a reciprocal estimate and fixup, adding
7636         support for machines with high precision and vectors.
7637         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
7638         low precision machines.
7639         (rs6000_emit_swdiv): New common function to be called to replace a
7640         division with reciprocal estimate and fixup.
7641         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
7642         for double and vector types.  Add support for high precision machines.
7643
7644         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
7645         the reciprocal estimate instructions can be generated.
7646         (TARGET_FRE): Ditto.
7647         (TARGET_FRSQRTES): Ditto.
7648         (TARGET_FRSQRTE): Ditto.
7649         (RS6000_RECIP_*): New macros for reciprocal estimate support.
7650
7651         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
7652         square root estimate on vectors.
7653         (re<mode>2): New insn for reciprocal division estimate on vectors.
7654
7655         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
7656         New builtin.
7657         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
7658         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
7659         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
7660         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
7661         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
7662         (RS6000_BUILTIN_RSQRT): Ditto.
7663         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
7664         floating point builtin.
7665
7666         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
7667         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
7668         __RECIP_PRECISION__ based on the command line switches.
7669         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
7670
7671         * config/rs6000/rs6000.opt (-mrecip): Document add support for
7672         replacing division instructions with reciprocal estimate and fixup.
7673         (-mrecip=<opt>): New option.
7674         (-mrecip-precision): Ditto.
7675
7676         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
7677         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
7678         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
7679         precision scalar.
7680
7681         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
7682         (UNSPEC_VREFP): Ditto.
7683         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
7684         conterparts with regard to support of -mno-fused-madd and -ffast-math.
7685         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
7686         reciprocal estimate instructions to be generated.
7687         (altivec_vrefp): Ditto.
7688
7689         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
7690         estimate support.
7691         (rreg): New mode attribute for reciprocal estimate support.
7692         (recip<mode>3): New insn for division using reciprocal estimate
7693         and fixup builtins.
7694         (divide define_split): New define_split to convert floating point
7695         division to use reciprocal estimate if the user used the
7696         appropriate options and the split is run when we can add new
7697         pseudo registers for the fixup.
7698         (rsqrt<mode>2): New insn for reciprocal square root support.
7699         (recipsf3): Move into recip<mode>3.
7700         (recipdf3): Ditto.
7701         (fres): Use TARGET_FRES.
7702         (rsqrtsf2): Move into rsqrt<mode>2.
7703         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
7704         (copysignsf3): Add support for VSX.
7705         (fred): Use TARGET_FRE.
7706         (fred_fpr): Ditto.
7707         (rsqrtdf_internal1): New function for frsqrte instruciton.
7708
7709         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
7710         (vec_rsqrt): Ditto.
7711
7712 2010-06-03  Richard Guenther  <rguenther@suse.de>
7713
7714         PR middle-end/44291
7715         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
7716         (set_user_assembler_libfunc): Likewise.
7717
7718 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
7719
7720         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
7721         defaults.h.
7722         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
7723         to defaults.h
7724         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
7725         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
7726         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
7727         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
7728         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
7729         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
7730         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
7731         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
7732         * defaults.h: Updated for above mentioned changes.
7733
7734 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
7735
7736         * c-common.c: Remove header include of tm_p.h.
7737         * Makefile.in (c-common.o): Remove TM_P_H dependency.
7738
7739 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
7740
7741         * tree.h (struct tree_decl_map): New type.
7742         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
7743         (tree_decl_map_hash): New prototype.
7744         (debug_expr_for_decl, value_expr_for_decl): Change into
7745         tree_decl_map hashtab from tree_map.
7746         (init_ttree): Adjust initialization.
7747         (tree_decl_map_hash): New function.
7748         (decl_debug_expr_lookup, decl_debug_expr_insert,
7749         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
7750
7751 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7752
7753         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
7754         linker emulations.
7755         * configure: Regenerate.
7756         * config.in: Regenerate.
7757
7758         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
7759         (X86_64_EMULATION): Define.
7760         (TARGET_LD_EMULATION): Use them.
7761
7762         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
7763         (SPARC64_EMULATION): Define.
7764         (LINK_ARCH_SPEC): Use them.
7765
7766 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
7767
7768         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
7769         smallest_mode_for_size for computing the precision types of new
7770         graphite IVs.  Do not call lang_hooks.types.type_for_size.
7771
7772 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
7773
7774         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
7775         information.
7776         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
7777
7778 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
7779
7780         PR middle-end/44363
7781         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
7782         return false instead.
7783
7784 2010-06-02  Jan Hubicka  <jh@suse.cz>
7785
7786         PR middle-end/44295
7787         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
7788         create new cgraph node to check callee.
7789
7790 2010-06-02  Richard Guenther  <rguenther@suse.de>
7791
7792         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
7793
7794 2010-06-02  Richard Guenther  <rguenther@suse.de>
7795
7796         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
7797         (lto_wrapper_cleanup): ... this.  Do not exit.
7798         (fatal): Adjust.  Exit here.
7799         (fatal_perror): Likewise.
7800         (fatal_signal): New function.
7801         (main): Set up signal handlers to cleanup temporary files.
7802         * Makefile.in (lto-wrapper.o): Adjust dependencies.
7803
7804 2010-06-02  Richard Guenther  <rguenther@suse.de>
7805
7806         PR tree-optimization/44377
7807         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
7808
7809 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7810
7811         * config/s390/2097.md (z10_fhex): Remove insn reservation.
7812         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
7813         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
7814         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
7815         instruction.
7816         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
7817
7818 2010-06-02  Jan Hubicka  <jh@suse.cz>
7819
7820         * bitmap.c (bitmap_descriptor): Add search_iter.
7821         (bitmap_find_bit): Increment it.
7822         (print_statistics): Print it.
7823
7824 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
7825
7826         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
7827         instead of gimple_build_call_vec.  Delete unnecessary local variable.
7828
7829 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
7830
7831         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
7832         change from yesterday.
7833
7834 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
7835
7836         * c-ada-spec.c: Clean up redundant includes.
7837
7838 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
7839
7840         * gimplify.c: Do not include except.h and optabs.h.
7841         (gimplify_body): Do not initialize RTL profiling.
7842         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
7843         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
7844         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
7845         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
7846         langhooks.h.
7847
7848         * tree-pretty-print.h: Include pretty-print.h.
7849         * gimple-pretty-print.h: Include pretty-print.h.
7850
7851         * tree-pretty-print.c: Do not include diagnostic.h.
7852         * tree-vrp.c: Likewise.
7853         * tree-tailcall.c: Likewise
7854         * tree-scalar-evolution.c: Likewise
7855         * tree-ssa-dse.c: Likewise
7856         * tree-chrec.c: Likewise
7857         * tree-ssa-sccvn.c: Likewise
7858         * tree-ssa-copyrename.c: Likewise
7859         * tree-nomudflap.c: Likewise
7860         * tree-call-cdce.c: Likewise
7861         * tree-stdarg.c: Likewise
7862         * tree-ssa-math-opts.c: Likewise
7863         * tree-nrv.c: Likewise
7864         * tree-ssa-sink.c: Likewise
7865         * tree-browser.c: Likewise
7866         * tree-ssa-loop-ivcanon.c: Likewise
7867         * tree-ssa-loop.c: Likewise
7868         * tree-parloops.c: Likewise
7869         * tree-ssa-address.c: Likewise
7870         * tree-ssa-ifcombine.c: Likewise
7871         * tree-if-conv.c: Likewise
7872         * tree-data-ref.c: Likewise
7873         * tree-affine.c: Likewise
7874         * tree-ssa-phiopt.c: Likewise
7875         * tree-ssa-coalesce.c: Likewise
7876         * tree-ssa-pre.c: Likewise
7877         * tree-ssa-live.c: Likewise
7878         * tree-predcom.c: Likewise
7879         * tree-ssa-forwprop.c: Likewise
7880         * tree-ssa-dce.c: Likewise
7881         * tree-ssa-ter.c: Likewise
7882         * tree-ssa-loop-prefetch.c: Likewise
7883         * tree-optimize.c: Likewise
7884         * tree-ssa-phiprop.c: Likewise
7885         * tree-object-size.c: Likewise
7886         * tree-outof-ssa.c: Likewise
7887         * tree-ssa-structalias.c: Likewise
7888         * tree-switch-conversion.c: Likewise
7889         * tree-ssa-reassoc.c: Likewise
7890         * tree-ssa-operands.c: Likewise
7891         * tree-vectorizer.c: Likewise
7892         * tree-vect-data-refs.c: Likewise
7893         * tree-vect-generic.c: Likewise
7894         * tree-vect-stmts.c: Likewise
7895         * tree-vect-patterns.c: Likewise
7896         * tree-vect-slp.c: Likewise
7897         * tree-vect-loop.c: Likewise
7898         * tree-ssa-loop-ivopts.c: Likewise
7899         * tree-ssa-loop-im.c: Likewise
7900         * tree-ssa-loop-niter.c: Likewise
7901         * tree-ssa-loop-unswitch.c: Likewise
7902         * tree-ssa-loop-manip.c: Likewise
7903         * tree-ssa-loop-ch.c: Likewise
7904         * tree-dump.c: Likewise
7905         * tree-complex.c: Likewise
7906
7907         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
7908         * tree-ssa-uninit.c: Likewise
7909         * tree-ssa-threadupdate.c: Likewise
7910         * tree-ssa-uncprop.c: Likewise
7911         * tree-ssa-ccp.c: Likewise
7912         * tree-ssa-dom.c: Likewise
7913         * tree-ssa-propagate.c: Likewise
7914         * tree-ssa-alias.c: Likewise
7915         * tree-dfa.c: Likewise
7916         * tree-cfgcleanup.c: Likewise
7917         * tree-sra.c: Likewise
7918         * tree-ssa-copy.c: Likewise
7919         * tree-ssa.c: Likewise
7920         * tree-profile.c: Likewise
7921         * tree-cfg.c: Likewise
7922         * tree-ssa-threadedge.c: Likewise
7923         * tree-vect-loop-manip.c: Likewise
7924
7925         * tree-inline.c: Do not include diagnostic.h and expr.h.
7926         Include rtl.h.
7927         (copy_decl_for_dup_finish): Do not use NULL_RTX.
7928
7929         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
7930         * tree-loop-distribution.c: Likewise.
7931
7932 2010-06-01  Jan Hubicka  <jh@suse.cz>
7933
7934         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
7935
7936 2010-06-01  Jan Hubicka  <jh@suse.cz>
7937
7938         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
7939         remove return value.
7940         (split_bbs_on_noreturn_calls) .... here.
7941         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
7942         * tree-flow.h (fixup_noreturn_call): New.
7943
7944 2010-06-01  Jan Hubicka  <jh@suse.cz>
7945
7946         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
7947
7948 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
7949
7950         * tree.h (build_nt_call_list): Delete.
7951         * tree.c (build_nt_call_list): Delete.
7952
7953 2010-06-01  Jan Hubicka  <jh@suse.cz>
7954
7955         * fwprop.c: Make emit-rtl.h include last.
7956         * rtlanal.c: Include emit-rtl.h.
7957         * genautomata.c: Output emit-rtl include into insn-automata.c
7958         * df-scan.c: Include emit-rtl.h.
7959         * haifa-sched.c: Indlude emit-rtl.h.
7960         * mode-switching.c: Indlude emit-rtl.h.
7961         * graph.c: Indlude emit-rtl.h.
7962         * sel-sched.c: Include emit-rtl.h.
7963         * sel-sched-ir.c: Include emit-rtl.h.
7964         * ira-build.c: Include emit-rtl.h.
7965         * emit-rtl.c: (first_insn, last_insn): Remove defines.
7966         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
7967         Move to emit-rtl.h.
7968         (set_new_first_and_last_insn, get_last_insn_anywhere,
7969         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
7970         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
7971         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
7972         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
7973         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
7974         Use accessor functions.
7975         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
7976          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
7977         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
7978         mem_expr_equal_p): Move here from rtl.h.
7979         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
7980         Move here from emit-rtl.c; make inline.
7981         * cfglayout.h: Include emit-rtl.h.
7982         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
7983          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
7984         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
7985         mem_expr_equal_p, get_insns, set_first-insn,
7986         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
7987         * reg-stack.c: Include emit-rtl.h.
7988         * dce.c: Likewise.
7989
7990 2010-06-01  Jan Hubicka  <jh@suse.cz>
7991
7992         * cgraph.h (tree_function_versioning): Update prototype.
7993         (cgraph_function_versioning): Update prototype.
7994         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
7995         bitmap.
7996         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
7997         (cgraph_materialize_clone, save_inline_function_body): Update use of
7998         tree_function_versioning.
7999         * tree-inline.c (copy_bb): Look for previous copied block to link
8000         after; fix debug output.
8001         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
8002         (copy_body): Likewise.
8003         (expand_call_inline): Update use of copy_body.
8004         (tree_function_versioning): Update use of copy body; accept
8005         blocks_to_copy and new_entry.
8006
8007 2010-06-01  Jan Hubicka  <jh@suse.cz>
8008
8009         * gegenrtl.c: Remove unnecesary prototypes.
8010         (gendecl): Remove.
8011         (gendef): Produce static inline.
8012         (gencode): Remove.
8013         (main): Do not decode parameters; generate header only.
8014         * Makefile.in (genrtl.c): Remove.
8015
8016 2010-06-01  Jan Hubicka  <jh@suse.cz>
8017
8018         * tree-switch-conversion.c (build_one_array): Make it readonly.
8019
8020 2010-06-01  Richard Guenther  <rguenther@suse.de>
8021
8022         * optabs.c (init_optabs): Guard all accesses to reinit.
8023         * ipa-pure-const.c (propagate): Fix another typo.
8024         * opts.c (common_handle_option): Split assignment to bool.
8025         * c-opts.c (c_common_handle_option): Likewise.
8026
8027 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
8028             Matthew Gingell  <gingell@adacore.com>
8029
8030         * doc/invoke.texi: Mention -fdump-ada-spec.
8031         * tree-dump.c (dump_files): Add ada-spec.
8032         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
8033         * tree-pass.h (tree_dump_index): Add TDI_ada.
8034         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
8035         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
8036         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
8037         * c-decl.c: Include c-ada-spec.h.
8038         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
8039         functions.
8040         (c_write_global_declarations): Add handling of -fdump-ada-spec.
8041         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
8042         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
8043         * c-ada-spec.h, c-ada-spec.c: New files.
8044
8045 2010-06-01  Richard Guenther  <rguenther@suse.de>
8046
8047         PR lto/43853
8048         * ipa-pure-const.c (get_function_state): Hand back varying state
8049         if we do not have one.
8050         (has_function_state): New function.
8051         (duplicate_node_data): Adjust.
8052         (remove_node_data): Likewise.
8053         (pure_const_write_summary): Likewise.
8054         (propagate): Likewise.  Fix typo.
8055
8056 2010-06-01  Jan Hubicka  <jh@suse.cz>
8057
8058         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
8059         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
8060         (execute_all_ipa_transforms): Do not play with the states.
8061
8062 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
8063
8064         * config/arm/t-linux-androideabi: New.
8065         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
8066
8067 2010-06-01  Jan Hubicka  <jh@suse.cz>
8068
8069         * tree-inline.c (estimate_num_insns): For stdarg functions look
8070         into call statement to count cost of argument passing.
8071
8072 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
8073
8074         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
8075         argument for fprintf.
8076         (ix86_output_addr_diff_elt): Likewise.
8077         (x86_function_profiler): Likewise.
8078         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
8079         (LPREFIX): Likewise.
8080         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
8081
8082 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
8083
8084         PR target/44338
8085         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
8086         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
8087         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
8088         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
8089         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
8090         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
8091         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
8092         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
8093         TARGET_FUSED_MADD.
8094
8095 2010-05-31  Jan Hubicka  <jh@suse.cz>
8096
8097         * tree.h (tree_range_check_failed): Declare noreturn.
8098
8099 2010-05-31  Jan Hubicka  <jh@suse.cz>
8100
8101         * gimple.c (gimple_call_builtin_p): New function.
8102         * gimple.h (gimple_call_builtin_p): Declare.
8103         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
8104         to exit.
8105         (execute_warn_function_return): BUILT_IN_RETURN is return.
8106         (split_critical_edges): Return edges are not critical.
8107         (is_ctrl_altering_stmt): Builtin_in_return is altering.
8108         (gimple_verify_flow_info): Handle built_in_return.
8109         (execute_warn_function_return): Handle built_in_return.
8110         * ipa-pure-const.c (check_call): Ignore builtin_return.
8111
8112 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
8113
8114         PR middle-end/44337
8115         * expr.c (expand_assignment): Don't store anything for out-of-bounds
8116         array accesses with non-MEM.
8117
8118         PR tree-optimization/44182
8119         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
8120         newly needs to end a bb is followed by debug stmts, instead return
8121         true from the function at the end.
8122         (maybe_move_debug_stmts_to_successors): New function.
8123         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
8124
8125 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
8126
8127         PR target/44161
8128         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
8129
8130 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
8131
8132         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
8133         for nested functions in non-optimized compilation.
8134
8135 2010-05-31  Richard Guenther  <rguenther@suse.de>
8136
8137         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
8138
8139 2010-05-30  Jan Hubicka  <jh@suse.cz>
8140
8141         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
8142
8143 2010-05-30  Richard Guenther  <rguenther@suse.de>
8144
8145         PR lto/42975
8146         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
8147         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
8148         no longer needed.
8149
8150 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
8151
8152         * config/darwin.c (output_objc_section_asm_op): Add comment.
8153         (name_needs_quotes): Add '_' to list of valid comment chars.
8154         (machopic_output_function_base_name): Remove unneeded quotes.
8155         (darwin_encode_section_info): Adjust asm whitespace.
8156         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
8157         (ASM_OUTPUT_LOCAL): Ditto.
8158         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
8159         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
8160         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
8161
8162 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
8163
8164         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
8165         RS6000_OUTPUT_BASENAME unconditionally.
8166         (rs6000_output_function_epilogue): Likewise.
8167
8168 2010-05-30  Jan Hubicka  <jh@suse.cz>
8169
8170         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
8171         nodes.
8172
8173 2010-05-30  Richard Guenther  <rguenther@suse.de>
8174
8175         * tree-cfg.c (verify_gimple_assign_single): Implement
8176         verification for COND_EXPR rhs.
8177
8178 2010-05-30  Jan Hubicka  <jh@suse.cz>
8179
8180         * cgraph.h (cgraph_dump_file): Declare.
8181         * cgraphunit.c (cgraph_dump_file): Export.
8182         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
8183
8184 2010-05-30  Jan Hubicka  <jh@suse.cz>
8185
8186         * dwarf2out.c (reference_to_unused,
8187         premark_types_used_by_global_vars_helper): Avoid creation of new
8188         varpool nodes.
8189
8190 2010-05-30  Jan Hubicka  <jh@suse.cz>
8191
8192         * cgraph.h (cgraph_node_cannot_return,
8193         cgraph_edge_cannot_lead_to_return): New functions.
8194         * cgraph.c (cgraph_node_cannot_return,
8195         cgraph_edge_cannot_lead_to_return): Use them.
8196         * ipa-pure-const.c (pure_const_names): New static var.
8197         (check_call): Handle calls not leading to return.
8198         (pure_const_read_summary): Dump info read.
8199         (propagate): Dump info about propagation process; ignore side effects
8200         of functions not leading to exit; fix handling of pure functions.
8201
8202 2010-05-30  Jan Hubicka  <jh@suse.cz>
8203
8204         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
8205         for tail call epilogues.
8206
8207 2010-05-30  Jan Hubicka  <jh@suse.cz>
8208
8209         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
8210         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
8211         dump files.
8212
8213 2010-05-29  Jan Hubicka  <jh@suse.cz>
8214
8215         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
8216         node; remove references in node we no longer keep in cgrpah but need
8217         body of.
8218
8219 2010-05-29  Jan Hubicka  <jh@suse.cz>
8220
8221         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
8222
8223 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8224
8225         PR target/44165
8226         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
8227
8228 2010-05-29  Jan Hubicka  <jh@suse.cz>
8229
8230         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
8231         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
8232         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
8233         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
8234         debug_names_replaced_by, debug_update_ssa): Likewise.
8235         * sbitmap.c (debug_sbitmap): Likewise.
8236         * genrecog.c (debug_decision, debug_decision_list): Likewise.
8237         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
8238         debug_tree_chain): Likewise.
8239         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
8240         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
8241         * optabs.c  (debug_optab_libfuncs): Likewise.
8242         (verify_loop_closed_ssa): Likewise.
8243         * value-prof.c (verify_histograms): Likewise.
8244         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
8245         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
8246         * cfghooks.c (verify_flow_info): Likewise.
8247         * fold-const.c (debug_fold_checksum): Likewise.
8248         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
8249         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
8250         Likewise.
8251         * omega.c (debug_omega_problem): Likewise.
8252         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
8253         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
8254         * dominance.c (verify_dominators, debug_dominance_info,
8255         debug_dominance_tree): Likewise.
8256         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
8257         * df_regno_debug, df_ref_debug,
8258         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
8259         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
8260         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
8261         * sel-sched.c (debug_state): Likewise.
8262         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
8263         Likewise.
8264         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
8265         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
8266         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
8267         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
8268         Likewise.
8269         * c-pretty-print.c (debug_c_tree): Likewise.
8270         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
8271         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
8272         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
8273         * ebitmap.c (debug_ebitmap): Likewise.
8274         * function.c (debug_find_var_in_block_tree): Likewise.
8275         * print-rtl.c (debug_rtx): Likewise.
8276         (debug_rtx_count): Likewise.
8277         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
8278         * stor-layout.c (debug_rli): Likewise.
8279         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
8280         * tree-data-ref.c (debug_data_references,
8281         debug_data_dependence_relations, debug_data_reference,
8282         debug_data_dependence_relation, debug_rdg_vertex,
8283         debug_rdg_component, debug_rdg): Likewise.
8284         * tree-affine.c (debug_aff): Likewise.
8285         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
8286         Likewise.
8287         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
8288         * emit-rtl.c (verify_rtl_sharing): Likewise.
8289         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
8290         debug_value_expressions): Likewise.
8291         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
8292         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
8293         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
8294         * cfglayout.c (verify_insn_chain): Likewise.
8295         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
8296         debug_clast_stmt, debug_generated_program): Likewise.
8297         * ggc-page.c (debug_print_page_list): Likewise.
8298         * tree-ssa-ter.c (debug_ter): Likewise.
8299         * graphite-dependences.c (debug_pddr): Likewise.
8300         * sched-deps.c (debug_ds): Likewise.
8301         * tree-ssa.c (verify_ssa): Likewise.
8302         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
8303         debug_scattering_functions, debug_iteration_domains, debug_pdr,
8304         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
8305         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
8306         * tree-inline.c (debug_find_tree): Likewise.
8307         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
8308         debug_ppl_powerset_matrix): Likewise.
8309         * var-tracking.c (debug_dv): Likewise.
8310         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
8311         * cfgloop.c (verify_loop_structure): Likewise.
8312         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
8313         * c-common.c (verify_sequence_points): Likewise.
8314         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
8315         debug_candidates, debug_rgn_dependencies): Likewise.
8316         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
8317         * debug_constraint_graph, debug_solution_for_var,
8318         debug_sa_points_to_info): Likewise.
8319         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
8320         Likewie.
8321         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
8322         debug_loops, debug_loop, debug_loop_num): Likewise.
8323         * passes.c (debug_pass): Likewise.
8324         (dump_properties): Likewise; add cfglayout property.
8325         (debug_properties): Likewise.
8326         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
8327         * varpool.c (debug_varpool): Likewise.
8328         * regcprop.c (debug_value_data): Likewise.
8329         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
8330         debug_immediate_uses_for): Likewise.
8331
8332 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
8333
8334         PR bootstrap/44315
8335         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
8336         Filter out insn-flags.h.
8337
8338 2010-05-29  Jan Hubicka  <jh@suse.cz>
8339
8340         * cgraph.h (struct varpool_node_set_def,
8341         struct cgraph_node_set_def): Remove unused AUX pointer.
8342         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
8343         VEC_empty macro.
8344
8345 2010-05-29  Jan Hubicka  <jh@suse.cz>
8346
8347         PR middle-end/44324
8348         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
8349
8350 2010-05-29  Richard Guenther  <rguenther@suse.de>
8351
8352         * lto-streamer.c (cached_bp): New global variable.
8353         (bitpack_create): Return the cached bitpack, if available.
8354         (bitpack_delete): Clear and cache the bitpack, if appropriate.
8355         (bp_pack_value): Remove redundant asserts.
8356
8357 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
8358
8359         PR middle-end/44306
8360         * tree-if-conv.c (is_true_predicate): New.
8361         (is_predicated): Use is_true_predicate.
8362         (add_to_predicate_list): Same.  Do not use unshare_expr.
8363         (add_to_dst_predicate_list): Same.
8364
8365 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
8366
8367         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
8368         field on edges.
8369         (predicate_bbs): Same.
8370         (clean_predicate_lists): Same.
8371         (find_phi_replacement_condition): Do not AND the predicate from
8372         edge->aux.
8373
8374 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
8375
8376         PR bootstrap/44315
8377         * Makefile.in (build/gencondmd.o): Add a missing `\'.
8378
8379 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8380
8381         PR target/44261
8382         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
8383         (negdf2): Adjust expander pattern and use negdf2_slow.
8384         (negsf2): Likewise.
8385
8386 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
8387
8388         * basic-block.h (struct control_flow_graph): Move last_label_uid field
8389         up.
8390         * df.h (struct df_base_ref): Move regno field up.
8391         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
8392         * expr.h (struct separate_ops): Move location field up.
8393         * optabs.h (struct optab_d): Move libcall_basename field down.
8394         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
8395         * config/i386/i386.h (struct machine_function): Convert call_abi field
8396         into a bitfield.  Move cfa field to the end of the structure.
8397
8398 2010-05-29  Jan Hubicka  <jh@suse.cz>
8399
8400         * varpool.c (varpool_get_node): Fix lookup.
8401
8402 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
8403
8404         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
8405         RTL specific prototypes with #ifdef RTX_CODE.
8406         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
8407         * config/spu/t-spu-elf: Fix dependencies.
8408
8409         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
8410
8411 2010-05-29  Mike Stump  <mikestump@comcast.net>
8412
8413         PR bootstrap/44315
8414         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
8415         TM_H when building to avoid dependency loops.
8416
8417 2010-05-29  Jan Hubicka  <jh@suse.cz>
8418
8419         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
8420         refs and body; not the whole node for masters of materialized clones.
8421
8422 2010-05-29  Mike Stump  <mikestump@comcast.net>
8423
8424         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
8425
8426 2010-05-29  Jan Hubicka  <jh@suse.cz>
8427
8428         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
8429         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
8430         use of clone_function_name.
8431         * cgraph.h (cgraph_create_virtual_clone,
8432         cgraph_function_versioning): update prototypes.
8433         (clone_function_name): Declare.
8434         * ipa-cp.c (ipcp_insert_stage): Update call of
8435         cgraph_create_virtual_clone.
8436         * omp-low.c (create_omp_child_function_name): Use
8437         cgraph_create_virtual_clone.
8438         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
8439         (cgraph_function_versioning): Take SUFFIX argument; produce new name
8440         and make decl local.
8441
8442 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
8443
8444         * vec.h: Include statistics.h
8445         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
8446         with VEC_H.
8447
8448 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
8449
8450         * c-lex.c: Do not include c-tree.h.
8451         * c-pretty-print.c: Likewise.
8452         * c-opts.c: Likewise.
8453         * c-gimplify.c: Likewise.
8454         * c-common.c: Likewise.
8455         * c-dump.c: Likewise.  Include c-common.h.
8456
8457 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
8458
8459         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
8460         before including diagnostic-core.h.
8461         (c_cpp_error): New prototype moved from c-tree.h.
8462         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
8463         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
8464         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
8465         (c_cpp_error): Prototype moved to c-common.h.
8466         * Makefile.in: Update dependency for C_COMMON_H.
8467
8468 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
8469
8470         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
8471         * c-common.c (c_register_addr_space): Remove here.
8472         * c-decl.c (c_register_addr_space): Re-add here.
8473
8474 2010-05-28  Mike Stump  <mikestump@comcast.net>
8475
8476         * config/darwin-c.c: Remove c-tree.h include.
8477
8478 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
8479
8480         * gcc.c: Include diagnostic.h.
8481         (error_count): Remove.  All users changed to use errorcount.
8482         (programname): Remove.  All users changed to use progname.
8483         (fancy_abort, internal_error, fatal_error, error, warning, inform,
8484         fnotice): Remove.
8485         (execute): Don't include "Internal error" and bug reporting
8486         information in argument of internal_error call.
8487         (process_command): Don't increment error_count after calling
8488         perror_with_name.
8489         (input_filename): Rename to gcc_input_filename.  All users
8490         changed.
8491         (main): Call diagnostic_initialize.  Register delete_temp_files
8492         with atexit.  Use seen_error to test for errors.
8493         * gcc.h: Include diagnostic-core.h.
8494         (fatal_error, error, warning): Remove.
8495         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
8496         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
8497         (gcc.o): Update dependencies.
8498
8499 2010-05-28  Jeff Law  <law@redhat.com>
8500
8501         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
8502         functions.
8503         * ira.h (ira_bad_reload_regno): Declare
8504         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
8505
8506         * ira-color.c (update_curr_costs): Free updated hard reg costs.
8507         (ira_reassign_conflict_allocnos): Remove bogus asserts.
8508         (allocno_reload_assign): Likewise.
8509
8510 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
8511
8512         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
8513         build1_stat.
8514
8515 2010-05-28  Richard Guenther  <rguenther@suse.de>
8516
8517         PR lto/44312
8518         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
8519         Stream fixed-point constants mode.
8520         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
8521         and TYPE_PRECISION.
8522         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
8523         Stream fixed-point constants mode.
8524         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
8525         and TYPE_PRECISION.
8526
8527 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
8528
8529         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
8530         only place it was called from.
8531         (number_of_latch_executions): Do not return chrec_dont_know when the
8532         may_be_zero is a runtime condition: instead, return a COND_EXPR
8533         including the may_be_zero condition.
8534         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
8535         of nb_iterations.
8536         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
8537         COND_EXPRs.
8538
8539 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
8540
8541         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
8542         generate COND_EXPRs for degenerate_phi_result.
8543
8544 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
8545
8546         PR middle-end/44293
8547         * tree-if-conv.c (if_convertible_loop_p): Check the
8548         if-convertibility of phi nodes in non predicated BBs.
8549
8550 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
8551
8552         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
8553
8554 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
8555
8556         PR driver/15303
8557         * gcc.c (inform, warning, inform): New functions.
8558         (fatal_ice): Rename to internal_error; change cmsgid parameter to
8559         gmsgid.  All callers changed.
8560         (notice): Rename to fnotice; add parameter fp.  All callers changed.
8561         (fatal_error): Rename to fatal_signal.  All users changed.
8562         (fatal): Rename to fatal_error; change cmsgid parameter to
8563         gmsgid.  All callers changed.
8564         (process_command): Use warning instead of error for warnings.
8565         (end_going_arg): Don't use _() around argument of error.
8566         (do_spec_1): Use inform for message from %n specs.  Use warning
8567         instead of error for warnings.
8568         (main): Use inform for comparison messages.  Use warning for
8569         message about unused linker input.
8570         (error): Increment error_count.  Print "error: ".
8571         * gcc.h (fatal): Change to fatal_error.
8572         (warning): Declare.
8573         * config/darwin-driver.c (darwin_default_min_version): Use warning
8574         instead of fprintf for warnings.
8575         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
8576
8577 2010-05-28  Julian Brown  <julian@codesourcery.com>
8578
8579         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
8580         (*thumb2_addsi3_compare0_scratch): New.
8581         * config/arm/constraints.md (Pv): New.
8582         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
8583         for ARM mode only.
8584         (*addsi3_compare0_scratch): Likewise.
8585
8586 2010-05-28  Jan Hubicka  <jh@suse.cz>
8587
8588         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
8589         check.
8590         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
8591         only on local statics.
8592
8593 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
8594
8595         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
8596
8597 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
8598
8599         PR bootstrap/44314
8600         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
8601         (OPTION_GLIBC): Define.
8602
8603 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
8604
8605         PR debug/41048
8606         * dwarf2out.c (double_int_type_size_in_bits): New function.
8607         (round_up_to_align): Change first argument and return value to
8608         double_int.
8609         (field_byte_offset): Work internally on double_ints.
8610
8611         PR target/43636
8612         * builtins.c (expand_movstr): Use a temporary pseudo instead
8613         of target even when target is not NULL and not const0_rtx, but
8614         fails movstr predicate.
8615         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
8616
8617 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
8618
8619         * final.c (rest_of_clean_state): Use %m in errors instead of
8620         strerror (errno).
8621         * gengtype.c (read_input_list, close_output_files): Use xstrerror
8622         instead of strerror.
8623         * toplev.c (process_options): Use %m in errors instead of strerror
8624         (errno).
8625         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
8626         (errno).
8627
8628 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
8629
8630         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
8631         (ix86_canonical_va_list_type): Make static.  Add declaration.
8632         (ix86_enum_va_list): Make static.  Reindent.
8633         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
8634         (ix86_canonical_va_list_type): Ditto.
8635         (ix86_enum_va_list): Ditto.
8636
8637 2010-05-28  Richard Guenther  <rguenther@suse.de>
8638
8639         * lto-wrapper.c (run_gcc): With -save-temps generate a
8640         user-visible ltrans filename.  Fixup ltrans unit numbering.
8641
8642 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
8643
8644         * c-common.c (c_common_nodes_and_builtins): Replace use
8645         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
8646         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
8647         to ix86_enum_va_list.
8648         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
8649         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
8650         (TARGET_ENUM_VA_LIST_P): Add hook description.
8651         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
8652         * target.h (gcc_target): Add enum_va_list hook.
8653
8654         PR bootstrap/44299
8655         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
8656         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
8657         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
8658
8659 2010-05-28  Alan Modra  <amodra@gmail.com>
8660
8661         PR target/44266
8662         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
8663         emit_library_call machinery to set up __tls_get_addr calls.
8664
8665 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8666
8667         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
8668
8669 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
8670
8671         Revert fix for PR c++/44188
8672         * c-common.c (is_typedef_decl): Revert the moving of  this
8673         definition ...
8674         * tree.c (is_typedef_decl): ... here.
8675         (typdef_variant_p): Revert the moving of this  definition
8676         here from gcc/cp/tree.c.
8677         * c-common.h (is_typedef_decl): Revert the moving of this
8678         declaration ...
8679         * tree.h (is_typedef_decl): ... here.
8680         (typedef_variant_p): Revert the moving of this  declaration here
8681         from gcc/cp/cp-tree.h
8682         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
8683         (gen_tagged_type_die): Revert the splitting out of ...
8684         (gen_type_die_with_usage): ... this function. Revert the anonymous
8685         tagged type handling.
8686         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
8687         typedefs naming anonymous tagged types.
8688
8689 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
8690
8691         * config/rs6000/rs6000-modes.def (PSImode): Delete.
8692
8693 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
8694
8695         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
8696         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
8697         throughout.
8698         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
8699         "xer" to "ca".
8700         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
8701         XER_REGS to CA_REGS throughout.
8702         * config/rs6000/rs6000.h: Same.
8703         (ADDITIONAL_REGISTER_NAMES): Add "xer".
8704         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
8705         that mode_iterator "P" is the size for arithmetic carries as well.
8706         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
8707
8708 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
8709
8710         PR bootstrap/44255
8711         * combine.c (struct rtx_subst_pair): Define unconditionally.
8712         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
8713         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
8714         Call make_compound_operation on pair->to.
8715         (propagate_for_debug): Don't call make_compound_operation here.
8716         Always use simplify_replace_fn_rtx.
8717
8718 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
8719
8720         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
8721         * config/xtensa/xtensa.c (override_options): Check
8722           TARGET_FORCE_NO_PIC and set flag_pic.
8723         * config/xtensa/xtensa.opt: Document -mforce-no-pic
8724
8725 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
8726
8727         PR bootstrap/44299
8728         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
8729         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
8730
8731 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
8732
8733         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
8734         toplev.h.
8735         * diagnostic.c: Don't include toplev.h.
8736         (progname): Define.  Moved from toplev.c.
8737         (seen_error): New function.
8738         * diagnostic.h: Include diagnostic-core.h.
8739         (diagnostic_t, emit_diagnostic): Don't declare here.
8740         * toplev.c (progname): Move to toplev.c.
8741         (emit_debug_global_declarations, compile_file, finalize,
8742         do_compile, toplev_main): Use seen_error.
8743         * toplev.h: Include diagnostic-core.h.
8744         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
8745         internal_error, warning, warning_at, error, error_n, error_at,
8746         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
8747         verbatim, fnotice, progname): Move to diagnostic-core.h.
8748         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
8749         (expand_builtin_expect): Use seen_error.
8750         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
8751         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
8752         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
8753         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
8754         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
8755         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
8756         errorcount for errors.
8757         * c-opts.c (c_common_finish): Use seen_error.
8758         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
8759         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
8760         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
8761         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
8762         (get_coverage_counts): Use seen_error.
8763         * dwarf2out.c (dwarf2out_finish): Use seen_error.
8764         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
8765         gimplify_body): Use seen_error.
8766         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
8767         * ipa-pure-const.c (gate_pure_const): Use seen_error.
8768         * ipa-reference.c (gate_reference): Use seen_error.
8769         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
8770         * lambda-code.c: Include diagnostic-core.h instead of
8771         diagnostic.h.
8772         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
8773         * lto-compress.c: Include diagnostic-core.h instead of
8774         diagnostic.h.
8775         * lto-section-in.c: Include diagnostic-core.h instead of
8776         diagnostic.h.
8777         * lto-streamer-out.c: Include diagnostic-core.h instead of
8778         diagnostic.h.
8779         * lto-streamer.c: Include diagnostic-core.h instead of
8780         diagnostic.h.
8781         (gate_lto_out): Use seen_error.
8782         * matrix-reorg.c: Include diagnostic-core.h instead of
8783         diagnostic.h.
8784         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
8785         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
8786         (gate_expand_omp, lower_omp_1): Use seen_error.
8787         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
8788         (rest_of_decl_compilation, rest_of_type_compilation,
8789         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
8790         * tree-cfg.c (label_to_block_fn): Use seen_error.
8791         * tree-inline.c (optimize_inline_calls): Use seen_error.
8792         * tree-mudflap.c (mudflap_finish_file): Use
8793         seen_error.
8794         * tree-optimize.c (gate_all_optimizations,
8795         gate_all_early_local_passes, gate_all_early_optimizations): Use
8796         seen_error.
8797         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
8798         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
8799         (varpool_remove_unreferenced_decls,
8800         varpool_assemble_pending_decls): Use seen_error.
8801         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
8802         (TOPLEV_H, DIAGNOSTIC_H): Update.
8803         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
8804         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
8805         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
8806         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
8807         coverage.o, lambda-code.o): Update dependencies.
8808
8809 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
8810
8811         PR c++/44188
8812         * c-common.c (is_typedef_decl): Move this definition ...
8813         * tree.c (is_typedef_decl): ... here.
8814         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
8815         * c-common.h (is_typedef_decl): Move this declaration ...
8816         * tree.h (is_typedef_decl): ... here.
8817         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
8818         * dwarf2out.c (is_naming_typedef_decl): New function.
8819         (gen_tagged_type_die): Split out of ...
8820         (gen_type_die_with_usage): ... this function. When an anonymous
8821         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
8822         is emitted for the typedef.
8823         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
8824         anonymous tagged types.
8825
8826 2010-05-27  Jason Merrill  <jason@redhat.com>
8827
8828         * print-tree.c (debug_vec_tree): New fn.
8829         (print_vec_tree): New fn.
8830         * tree.h: Declare them.
8831         * gdbinit.in (pvt): New command.
8832
8833         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
8834
8835         * gdbinit.in (pdd): New command.
8836
8837 2010-05-27  Jan Hubicka  <jh@suse.cz>
8838
8839         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
8840         (update_caller_keys): Return early if there are no callers;
8841         only update fibheap when decresing the key.
8842         (update_callee_keys): Avoid recursion.
8843         (decide_inlining_of_small_functions): When badness does not match;
8844         re-insert into fibheap.
8845
8846 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
8847
8848         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
8849         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
8850         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
8851         (ALL_HOST_OBJS): Now a union of the above two.
8852         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
8853         all files in ALL_HOST_FRONTEND_OBJS.
8854         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
8855
8856         * c-common.c: Pretend to be a backend file by undefining
8857         IN_GCC_FRONTEND (still need rtl.h here).
8858
8859 2010-05-27  Jan Hubicka  <jh@suse.cz>
8860
8861         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
8862         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
8863
8864 2010-05-27  Jan Hubicka  <jh@suse.cz>
8865
8866         * sched-ebb.c: Rename struct deps to struct deps_desc.
8867         * ddg.c: Likewise.
8868         * sel-sched-ir.c: Likewise.
8869         * sched-deps.c: Likewise.
8870         * sched-int.h: Likewise.
8871         * sched-rgn.c: Likewise.
8872
8873 2010-05-27  Jon Beniston  <jon@beniston.com>
8874
8875         PR 43726
8876         * config/lm32/lm32.h: Remove definition of
8877         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
8878
8879 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
8880
8881         PR lto/44230
8882         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
8883
8884 2010-05-27  Richard Guenther  <rguenther@suse.de>
8885
8886         PR tree-optimization/44284
8887         * tree-vect-stmts.c (vectorizable_assignment): Handle
8888         sign-changing conversions as simple copy.
8889
8890 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8891
8892         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
8893         Bionic C library.
8894         (__gthread_active_p): Check for pthread_create if compiling against
8895         Bionic C library.
8896
8897 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8898
8899         Support compilation for Android platform.  Reimplement -mandroid.
8900
8901         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
8902         (*android*): Set ANDROID_DEFAULT.
8903         (arm*-*-linux*): Include linux-android.h.
8904         (arm*-*-eabi*): Don't include previous -mandroid implementation.
8905         * config/arm/eabi.h: Remove, move Android-specific parts ...
8906         * config/linux-android.h: ... here.  New file.
8907         * config/arm/eabi.opt: Rename to ...
8908         * config/linux-android.opt: ... this.
8909         (mandroid): Allow -mno-android option.  Initialize based on
8910         ANDROID_DEFAULT.
8911         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
8912         Move logic to corresponding LINUX_TARGET_* macros.
8913         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
8914         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
8915         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
8916         Android definitions.
8917         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
8918         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
8919         Document.
8920
8921 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8922
8923         Add support for Bionic C library
8924
8925         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
8926         macro.
8927         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
8928         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
8929
8930         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
8931         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
8932         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
8933         to support multiple C libraries.  Handle Bionic.
8934         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
8935         (BIONIC_DYNAMIC_LINKER64): Define.
8936         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
8937         Update.
8938         (TARGET_HAS_SINCOS): Enable for Bionic.
8939
8940         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
8941         the last option specified on command line take effect.
8942         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
8943         (mbionic): New.
8944         (mglibc, muclibc): Update.
8945
8946         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
8947         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
8948         DEFAULT_LIBC.
8949
8950         * doc/invoke.texi (-mglibc, -muclibc): Update.
8951         (-mbionic): Document.
8952
8953 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8954
8955         * c-common.h (c_register_addr_space): Add prototype.
8956         (ADDR_SPACE_KEYWORD): Remove.
8957         * c-common.c (c_register_addr_space): New function.
8958         (c_addr_space_name): Reimplement.
8959         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
8960
8961         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
8962         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
8963
8964         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
8965         Remove TARGET_ADDR_SPACE_KEYWORDS.
8966
8967 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
8968
8969         * input.c: New file.
8970         * input.h (main_input_filename): Move declaration to toplev.h.
8971         * toplev.c (input_location, line_table): Move to input.c
8972         * toplev.h (main_input_filename): Move declaration from input.h.
8973         * tree.c (expand_location): Move to input.c.
8974         * Makefile.in (OBJS-common): Add input.o.
8975         (input.o): Add dependencies.
8976
8977 2010-05-27  Richard Guenther  <rguenther@suse.de>
8978
8979         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
8980         for non-existant files.
8981         (fork_execute): Mark args_name file as deleted.
8982
8983 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
8984
8985         PR bootstrp/44287
8986         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
8987         (narrow_signed_type): Likewise.
8988
8989 2010-05-26  Jan Hubicka  <jh@suse.cz>
8990
8991         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
8992         edge only when checking is enabled; check using former_clone_of;
8993         check inline clones too.
8994         (cgraph_materialize_clone): Record former_clone_of pointer.
8995         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
8996         combining redirections; dump args_to_skip bitmap
8997         (cgraph_materialize_all_clones): Do no redirection here.
8998         * ipa-inline.c (inline_transform): Do redirection here.
8999         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
9000         cheking only).
9001
9002 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
9003
9004         * config/avr/avr-c.c: Do not include regs.h.
9005         Include cpplib.h for cpp_define and tree.h for c-common.h.
9006         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
9007         * config/avr/t-avr: Fix dependencies for avr-c.o.
9008
9009 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
9010
9011         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
9012         string instead of SYMBOL_REF rtx.
9013         * rtl.h (set_stack_check_libfunc): Move prototype from here...
9014         * libfuncs.h: ...to here.  Adjust for explow.c change.
9015
9016 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
9017
9018         * pretty-print.c: Don't include ggc.h.
9019         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
9020         (identifier_to_locale): Use them for allocation.
9021         * pretty-print.h (identifier_to_locale_alloc,
9022         identifier_to_locale_free): Declare.
9023         * toplev.c (alloc_for_identifier_to_locale): New.
9024         (general_init): Set identifier_to_locale_alloc and
9025         identifier_to_locale_free.
9026         * Makefile.in (pretty-print.o): Update dependencies.
9027
9028 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
9029
9030         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
9031         pointer types if they have different alignment or mode.
9032
9033 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
9034
9035         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
9036         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9037         * config/sparc/sparc-protos.h (function_value): Remove declaration.
9038         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
9039         sparc_function_value_regno_p): New functions.
9040         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9041         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9042         (function_value): Rename to...
9043         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
9044         argument to 'outgoing'.
9045         (function_arg_record_value, function_arg_union_value,
9046         function_arg_vector_value): Update comment.
9047
9048 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
9049
9050         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
9051         (fde_needed_for_eh_p): New predicate.
9052         (output_call_frame_info): Use it throughout to decide whether FDEs
9053         are needed for EH purpose.
9054         (dwarf2out_begin_prologue): Reorder assignments.
9055
9056 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
9057
9058         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
9059         special case loop->header.
9060         (is_predicated): New.
9061         (if_convertible_loop_p): Call it.
9062
9063 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
9064
9065         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
9066         iterator in parameter.  Do not generate code during the analysis.
9067         (tree_if_convert_cond_stmt): Removed.
9068         (tree_if_convert_stmt): Removed.
9069         (predicate_bbs): New.
9070         (if_convertible_loop_p): Call predicate_bbs.
9071         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
9072         now contains all the analysis part.
9073
9074 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
9075
9076         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
9077         statements in the analysis part.
9078         (tree_if_convert_stmt): Update comment.
9079         (remove_conditions_and_labels): New.
9080         (combine_blocks): Call remove_conditions_and_labels.
9081         (tree_if_conversion): Update comment.
9082
9083 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
9084
9085         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
9086         than 2 predecessors or more than 2 successors.
9087
9088 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
9089
9090         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
9091         of loops in which the data dependence analysis fails.
9092
9093 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
9094
9095         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
9096         CDI_POST_DOMINATORS.
9097         (tree_if_conversion): Same.
9098
9099 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
9100
9101         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
9102
9103 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
9104
9105         * tree-if-conv.c: Update copyright years.  Fix comments.
9106         Fix indentation.
9107
9108 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
9109
9110         * builtin-types.def (BT_INT128): New primitive type.
9111         (BT_UINT128): Likewise.
9112         * c-common.c (c_common_r): Add __int128 keyword.
9113         (c_common_type_for_size): Handle __int128.
9114         (c_common_type_for_mode): Likewise.
9115         (c_common_signed_or_unsigned_type): Likewise.
9116         (c_common_nodes_and_builtins): Add builtin type
9117         if target supports 128-bit integer scalar.
9118         * c-common.h (enum rid): Add RID_INT128.
9119         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
9120         if target supports 128-bit integer scalar.
9121         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
9122         (finish_declspecs): Likewise.
9123         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
9124         (c_token_starts_declspecs): Likewise.
9125         (c_parser_declspecs): Likewise.
9126         (c_parser_attributes): Likewise.
9127         (c_parser_objc_selector): Likewise.
9128         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
9129         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
9130         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
9131         * tree.c (make_or_reuse_type): Likewise.
9132         (make_unsigned_type): Likewise.
9133         (build_common_tree_nodes_2): Likewise.
9134         * tree.h (enum integer_type_kind): Add itk_int128 and
9135         itk_unsigned_int128.
9136         (int128_integer_type_node): New define.
9137         (int128_unsigned_type_node): New define.
9138         * doc/extend.texi: Add documentation about __int128 type.
9139
9140 2010-05-26  Richard Guenther  <rguenther@suse.de>
9141
9142         * tree-ssa-sccvn.c (copy_nary): Adjust.
9143         (copy_phis): Rename to ...
9144         (copy_phi): ... this.  Adjust.
9145         (copy_references): Rename to ...
9146         (copy_reference): ... this.  Adjust.
9147         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
9148         result into the valid table.
9149
9150 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
9151
9152         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
9153         insn-config.h, insn-codes.h, recog.h, and optabs.h.
9154
9155 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
9156
9157         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
9158
9159 2010-05-26  Richard Guenther  <rguenther@suse.de>
9160
9161         * opts.c (common_handle_option): Handle OPT_Ofast.
9162
9163 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
9164
9165         * diagnostic.c: Don't include opts.h.
9166         (permissive_error_option): Define.
9167         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
9168         for classify_diagnostic.  Don't use memset for
9169         classify_diagnostic.  Initialize new and recently added fields.
9170         (diagnostic_classify_diagnostic): Use context->n_opts instead of
9171         N_OPTS.
9172         (diagnostic_report_diagnostic): Pass context parameter to
9173         diagnostic_report_warnings_p.  Use option_enabled and option_name
9174         hooks from context.
9175         (emit_diagnostic): Use permissive_error_option.
9176         (permerror): Likewise.
9177         * diagnostic.h: Don't include options.h.
9178         (struct diagnostic_context): Add n_opts, opt_permissive,
9179         inhibit_warnings, warn_system_headers, option_enabled and
9180         option_name fields.  Change classify_diagnostic to a pointer.
9181         * opts-diagnostic.h: New file.
9182         * opts.c: Include opts-diagnostic.h.
9183         (common_handle_option): Set global_dc fields for -Wfatal-errors,
9184         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
9185         (option_name): New function.
9186         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
9187         (c_common_handle_option): Set global_dc->permissive for
9188         -fpermissive.
9189         * c-common.c (c_cpp_error): Save and restore
9190         global_dc->warn_system_headers, not variable warn_system_headers.
9191         * toplev.c: Include opts-diagnostic.h.
9192         (general_init): Update call to diagnostic_initialize.  Set
9193         global_dc->show_column, global_dc->option_enabled and
9194         global_dc->option_name.
9195         (process_options): Don't set global_dc fields here.
9196         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
9197         (diagnostic.o, opts.o, toplev.o): Update dependencies.
9198
9199 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
9200
9201         * config/picochip/picochip.md (movsi): Split a movsi from a
9202         const after reload.
9203
9204 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
9205
9206         * ggc-zone.c: Update copyright year.
9207         (poison_region): Mark memory for Valgrind as undefined before
9208         memset () call and inaccessible afterwards.
9209         (ggc_pch_total_size): Change type of i to int.
9210
9211 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
9212
9213         * ggc-common.c (ggc_free_overhead): Allow empty slot.
9214
9215 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
9216
9217         * ggc-common.c: Update copyright year.
9218         (ggc_rlimit_bound): Remove prototype.  Compile only if
9219         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
9220         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
9221         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
9222         (ggc_min_heapsize_heuristic): Likewise.
9223
9224 2010-05-26  Richard Guenther  <rguenther@suse.de>
9225
9226         PR rtl-optimization/44164
9227         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
9228         no-common access-path disambiguation.
9229         (indirect_ref_may_alias_decl_p): Adjust.
9230         (indirect_refs_may_alias_p): Likewise.
9231         (refs_may_alias_p_1): Likewise.
9232
9233 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
9234
9235         * c-typeck.c: Do not include expr.h.
9236
9237 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
9238
9239         * rtl.h (decl_default_tls_model): Move prototype from here...
9240         * output.h: ...to here.
9241         * c-decl.c: Do not include rtl.h.
9242         * c-pragma.c: Likewise.
9243         * c-parser.c: Likewise.
9244         * c-gimplify.c: Likewise.  And also not hard-reg-set.
9245         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
9246         FIXME note for it.  Add a FIXME note for expr.h.
9247         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
9248         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
9249         defined.
9250
9251 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
9252
9253         PR target/44199
9254         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
9255         or total_size is larger than red zone size for non-V4 ABI, emit a
9256         stack_tie resp. frame_tie insn before stack pointer restore.
9257         * config/rs6000/rs6000.md (frame_tie): New insn.
9258
9259 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
9260
9261         * function.h (struct function): Add can_throw_non_call_exceptions bit.
9262         * lto-streamer-in.c (input_function): Stream it in.
9263         * lto-streamer-out.c (output_function): Stream it out.
9264         * function.c (allocate_struct_function): Set it.
9265         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
9266         for flag_non_call_exceptions.
9267         * cfgbuild.c (control_flow_insn_p): Likewise.
9268         (make_edges): Likewise.
9269         * cfgexpand.c (expand_stack_alignment): Likewise.
9270         * combine.c (distribute_notes): Likewise.
9271         * cse.c (cse_extended_basic_block): Likewise.
9272         * except.c (insn_could_throw_p): Likewise.
9273         * gcse.c (simple_mem): Likewise.
9274         * ipa-pure-const.c (check_call): Likewise.
9275         (check_stmt ): Likewise.
9276         * lower-subreg.c (lower-subreg.c): Likewise.
9277         * optabs.c (emit_libcall_block): Likewise.
9278         (prepare_cmp_insn): Likewise.
9279         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
9280         * postreload.c (rest_of_handle_postreload): Likewise.
9281         * reload1.c (reload_as_needed): Likewise.
9282         (emit_input_reload_insns): Likewise.
9283         (emit_output_reload_insns): Likewise.
9284         (fixup_abnormal_edges): Likewise.
9285         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
9286         * store-motion.c (find_moveable_store): Likewise.
9287         * tree-eh.c (stmt_could_throw_p): Likewise.
9288         (tree_could_throw_p): Likewise.
9289         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
9290         * config/arm/arm.c (arm_expand_prologue): Likewise.
9291         (thumb1_expand_prologue): Likewise.
9292         * config/rx/rx.md (cbranchsf4): Likewise.
9293         (cmpsf): Likewise.
9294         * config/s390/s390.c (s390_emit_prologue): Likewise.
9295         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
9296         (inline_forbidden_into_p): New predicate.
9297         (expand_call_inline): Use it to forbid inlining.
9298         (tree_can_inline_p): Likewise.
9299
9300 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
9301
9302         * config/i386/i386-c.c: Do not include rtl.h.
9303         * config/i386/t-i386: Update dependencies.
9304
9305 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
9306
9307         * attribs.c: Do not include rtl.h.
9308         * Makefile.in: Update dependencies.
9309
9310 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
9311
9312         * double-int.h (double_int_and): New.
9313         * combine.c (try_combine): Clean up, use double_int_* and
9314         immed_double_int_const functions.
9315
9316 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9317
9318         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
9319         stderr to /dev/null instead of grep -q.
9320         * configure: Regenerate.
9321
9322 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
9323
9324         * Makefile.in (EXCEPT_H): Fix typo.
9325
9326 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
9327
9328         * ira-build.c (update_conflict_hard_reg_costs): New.
9329         (ira_build): Call update_conflict_hard_reg_costs.
9330
9331 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
9332
9333         PR debug/41371
9334         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
9335         ENABLE_CHECKING.
9336         (intersect_loc_chains): Walk the s2var's loc_chain together
9337         with s1node chain as long as the locations are equal, don't
9338         call find_loc_in_1pdv in that case.
9339
9340         PR debug/42801
9341         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
9342         (copy_bind_expr): ... instead of here.
9343         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
9344         if the block hasn't been remapped.
9345         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
9346         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
9347
9348 2010-05-25  Richard Guenther  <rguenther@suse.de>
9349
9350         PR middle-end/44069
9351         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
9352         out-of-bounds array accesses.
9353
9354 2010-05-25  Richard Guenther  <rguenther@suse.de>
9355
9356         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
9357         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
9358         (run_gcc): Re-organize to make cleanup easier.
9359
9360 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9361
9362         * config/s390/s390.c (optimization_options): Fix and move the
9363         flag_prefetch_loop_arrays override ...
9364         (override_options): ... here.
9365
9366 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
9367
9368         * diagnostic.c: Don't include plugin.h.
9369         (diagnostic_report_diagnostic): Don't handle plugins specially
9370         here.  Pass context to internal_error callback.
9371         * diagnostic.h (struct diagnostic_context): Add context parameter
9372         to internal_error callback.
9373         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
9374         * plugin.h (struct diagnostic_context): Declare.
9375         (warn_if_plugins, plugins_internal_error_function): Declare.
9376         * toplev.c (general_init): Set global_dc->internal_error.
9377         * Makefile.in (diagnostic.o): Update dependencies.
9378
9379 2010-05-25 Iain Sandoe  <iains@gcc.gnu.org>
9380
9381         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
9382         * config/rs6000/t-darwin64: New.
9383         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
9384         build crt2.
9385
9386 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
9387
9388         PR 44203
9389         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
9390         match the original (and intended) behaviour before r159557.  This
9391         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
9392         in two ways.
9393
9394 2010-05-25  Richard Guenther  <rguenther@suse.de>
9395
9396         * doc/invoke.texi: Document -Ofast.
9397         * target.h (struct gcc_target): Add handle_ofast.
9398         * target-def.h (TARGET_HANDLE_OFAST): Add.
9399         (TARGET_INITIALIZER): Adjust.
9400         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
9401         * common.opt (Ofast): Add.
9402
9403 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
9404
9405         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
9406         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
9407
9408 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
9409
9410         PR target/43610
9411         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
9412         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
9413         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
9414         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
9415
9416 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
9417
9418         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
9419         DW_OP_minus with negated offset instead of DW_OP_plus.
9420         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
9421
9422 2010-05-25  Wei Guozhi  <carrot@google.com>
9423
9424         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
9425         tst instruction and a new alternative.
9426         * config/arm/constraints.md (Pu): New constraint.
9427
9428 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
9429
9430         * function.c (assign_stack_local_1): Initialize variable
9431         to avoid warning when bootstrapping at -O3.
9432
9433 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
9434
9435         * configure.ac (all_lang_makefiles): Remove everything related to it.
9436         * configure: Regenerate.
9437         * Makefile.in: Fix reference to ada Make-lang.in.
9438         Remove support for LANG_MAKEFILES.
9439
9440 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
9441             Sandra Loosemore  <sandra@codesourcery.com>
9442
9443         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
9444         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
9445         description.  Add arm_neon_fp16_ok.
9446         (Add Options): Add arm_neon and arm_neon_fp16.
9447
9448 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
9449
9450         * diagnostic.c: Don't include flags.h.
9451         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
9452         context parameters.  Check flags in the context passed as a parameter.
9453         (diagnostic_build_prefix): Add context parameter.  Check
9454         show_column flag in context.
9455         (diagnostic_action_after_output): Check fatal_errors flag in context.
9456         (diagnostic_report_current_module): Check show_column flag in context.
9457         (default_diagnostic_starter): Update call to
9458         diagnostic_build_prefix.
9459         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
9460         (emit_diagnostic): Pass context to permissive_error_kind.
9461         (permerror): Pass context to permissive_error_kind.
9462         * diagnostic.h (struct diagnostic_context): Add show_column,
9463         pedantic_errors, permissive and fatal_errors fields.
9464         (diagnostic_build_prefix): Update prototype.
9465         * langhooks.c
9466         * toplev.c (process_options): Set flags in global_dc from
9467         flag_show_column, flag_pedantic_errors, flag_permissive,
9468         flag_fatal_errors.
9469         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
9470         to diagnostic_build_prefix.
9471         * Makefile.in (diagnostic.o): Update dependencies.
9472
9473 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
9474
9475         * config/i386/ia32intrin.h (__crc32q): Define only if
9476         __SSE4_2__ is defined.
9477
9478 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
9479
9480         PR target/44132
9481         PR middle-end/43602
9482         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
9483         DECL_VISIBILITY_SPECIFIED.
9484         (emutls_decl): Set DECL_PRESERVE_P and copy
9485         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
9486         (emutls_finalize_control_var): New callback.
9487         (emutls_finish): Finalize emutls control variables.
9488         * toplev.c (compile_file): Move the call to emutls_finish ()
9489         before varpool_assemble_pending_decls ().
9490
9491 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
9492
9493         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
9494         added to the preprocessor condition.
9495
9496 2010-05-24  Paul Brook  <paul@codesourcery.com>
9497
9498         * gengtype-lex.l: Add HARD_REG_SET.
9499         * expr.c (expand_expr_real_1): Record writes to hard registers.
9500         * function.c (rtl_data): Add asm_clobbers.
9501         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
9502         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
9503         Use crtl->asm_clobbers.
9504
9505 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9506
9507         * doc/makefile.texi (Makefile): Mention stages 'profile'
9508         and 'feedback' for profiledbootstrap.
9509
9510 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
9511
9512         PR target/44245
9513         * config/i386/i386.c (def_builtin): Properly check
9514         OPTION_MASK_ISA_64BIT.
9515
9516 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
9517
9518         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
9519         typedefs with different but compatible types.  Allow duplicate
9520         typedefs with the same type except for pedantic non-C1X, but give
9521         warning for variably modified types.
9522         * c-typeck.c (tagged_types_tu_compatible_p,
9523         function_types_compatible_p, type_lists_compatible_p,
9524         comptypes_internal): Add parameter different_types_p; set
9525         *different_types_p for different but compatible types.  All
9526         callers changed.
9527         (comptypes_check_different_types): New.
9528         * c-tree.h (comptypes_check_different_types): Declare.
9529
9530 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
9531
9532         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
9533         * jump.c: Include basic-block.h.
9534         * profile.c: Likewise.
9535         * tree-profile.c: Likewise.
9536         * coverage.c: Likewise.
9537         * basic-block.h (optimize_function_for_size_p): Move to function.h.
9538         (optimize_function_for_speed_p): Likewise.
9539         * function.h (optimize_function_for_size_p,
9540         optimize_function_for_speed_p): Moved here from basic-block.h.
9541         * Makefile.in: Update dependencies.
9542
9543 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9544
9545         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
9546         before calling make; allow override through $MAKE.
9547         * doc/invoke.texi (Optimize Options): Document override.
9548
9549 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
9550
9551         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
9552         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9553         (rs6000_mode_dependent_address_ptr): Make static.
9554         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9555         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
9556         Remove.
9557
9558 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
9559
9560         PR target/43869
9561         * config/i386/i386.c: Make sure that the correct regparm is passed.
9562
9563 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
9564
9565         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
9566         * sbitmap.c: ...to here to internalize sbitmap element access.
9567         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
9568         Explain why basic-block.h is included.
9569         * function.h: Include tm.h for CUMULATIVE_ARGS.
9570         * Makefile.in: Update dependencies.
9571
9572 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
9573
9574         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
9575         New core types.
9576         * sbitmap.h (struct sbitmap_def): Do not typedef here.
9577         * sbitmap.c: Include sbitmap.h.
9578         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
9579         hard-reg-set.h.  Split everything related to regsets out from here...
9580         * regset.h: ...to here.  New file.
9581         * df.h: Include regset.h and sbitmap.h.
9582         * tree-flow.h: Likewise.
9583         * cfgloop.h: Likewise.
9584         * except.h: Do not include sbitmap.h.  Include hashtab.h.
9585         * cgraph.h: Include vec.h and function.h.
9586         * reload.h (struct insn_chain): Change types of live_throughout
9587         and dead_or_set from regset_head to bitmap_head.
9588         (compute_use_by_pseudos): Be defined also if regset.h is not included.
9589         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
9590         spilled_regs from regset_head to bitmap_head to avoid dependency
9591         in regset.h.
9592         * sel-sched-ir.h: Include regset.h.
9593         * reload.c: Include df.h before reload.h.
9594         * caller-save.c: Likewise.
9595         * reload1.c: Likewise.
9596         * ira.c: Likewise.
9597         (mark_elimination): Update type of r to bitmap, consistent with
9598         DF_LR_IN.
9599         * dominance.c: Include bitmap.h.
9600         * modulo-sched.c: Include df.h.
9601         * cfganal.c: Include bitmap.h and sbitmap.h.
9602         * cfgbuild.c: Include sbitmap.h.
9603         * lcm.c: Include sbitmap.h.
9604         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
9605         * domwalk.c: Include sbitmap.h, exclude ggc.h.
9606         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
9607         * cselib.c: Include bitmap.h.
9608         * tree-optimize.c: Include regset.h.
9609         * stmt.c: Include bitmap.h.
9610         * Makefile.in: Update dependencies.
9611
9612 2010-05-22  Jan Hubicka  <jh@suse.cz>
9613
9614         * cgraph.h (struct varpool_node): Add same_comdat_group.
9615         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
9616         pointer.
9617         (output_varpool): Update call of lto_output_varpool_node.
9618         (input_varpool): Read same_comdat_group pointer.
9619         (input_varpool_1): Fixup same_comdat_group pointer.
9620         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
9621         group is needed, all are.
9622         * varpool.c (varpool_remove_node): Remove node from same comdat group
9623         linklist too.
9624         (varpool_analyze_pending_decls): Walk same comdat groups.
9625
9626 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
9627
9628         * rtl.h (union rtunion_def): Remove rt_bit member.
9629         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
9630         * print-rtl (print_rtx): Do not print the member.
9631         * gengtype.c (adjust_field_rtx_def): Do not handle it.
9632         * gengenrtl.c (type_from_format): Likewise.
9633         (accessor_from_format): Likewise.
9634
9635 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
9636
9637         * dbgcnt.c: Include toplev.h instead of errors.h.
9638         * ira-emit.c: Don't include errors.h.
9639         * ira.c: Include toplev.h instead of errors.h.
9640         * lto-compress.c: Include toplev.h instead of errors.h.
9641         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
9642         ira.o, dbgcnt.o): Update dependencies.
9643
9644 2010-05-22  Richard Guenther  <rguenther@suse.de>
9645
9646         * gimple.c (gimple_types_compatible_p): Check type qualifications
9647         before merging pointer to complete and pointer to incomplete type.
9648         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
9649         we use our own resolution algorithm.  The gold linker plugin
9650         doesn't do the job we want it to do here.
9651
9652 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
9653
9654         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9655         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9656         (sparc_mode_dependent_address_p): New function.
9657
9658 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
9659
9660         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
9661
9662         * timevar.c: Do not include any core headers.
9663         (timevar_print): De-i18n-ize.
9664         (print_time): Likewise.
9665         * timevar.h (timevar_push, timevar_pop): Make inline functions.
9666
9667 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
9668
9669         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
9670         langhooks-def.h.
9671         (diagnostic_initialize): Initialize x_data not last_function.
9672         (diagnostic_report_current_function): Move to tree-diagnostic.c.
9673         (default_diagnostic_starter): Call
9674         diagnostic_report_current_module not
9675         diagnostic_report_current_function.
9676         (diagnostic_report_diagnostic): Initialize x_data not
9677         abstract_origin.
9678         (verbatim): Likewise.
9679         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
9680         x_data.
9681         (struct diagnostic_context): Change last_function to x_data.
9682         (diagnostic_auxiliary_data): Replace with
9683         diagnostic_context_auxiliary_data and
9684         diagnostic_info_auxiliary_data.
9685         (diagnostic_last_function_changed, diagnostic_set_last_function,
9686         diagnostic_report_current_function): Move to tree-diagnostic.h.
9687         (print_declaration, dump_generic_node, print_generic_stmt,
9688         print_generic_stmt_indented, print_generic_expr,
9689         print_generic_decl, debug_c_tree, dump_omp_clauses,
9690         print_call_name, debug_generic_expr, debug_generic_stmt,
9691         debug_tree_chain, default_tree_printer): Move to
9692         tree-pretty-print.h.
9693         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
9694         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
9695         gimple-pretty-print.h.
9696         * pretty-print.c: Don't include tree.h
9697         (pp_base_format): Don't handle %K here.
9698         (pp_base_tree_identifier): Move to tree-pretty-print.c.
9699         * pretty-print.h (text_info): Change abstract_origin to x_data.
9700         (pp_tree_identifier, pp_unsupported_tree,
9701         pp_base_tree_identifier): Move to tree-pretty-print.h.
9702         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
9703         tree-pretty-print.h: New files.
9704         * tree-pretty-print.c: Include tree-pretty-print.h.
9705         (percent_K_format): New.  Moved from pretty-print.c.
9706         (pp_base_tree_identifier): Move from pretty-print.c.
9707         * c-objc-common.c: Include tree-pretty-print.h.
9708         (c_tree_printer): Handle %K here.
9709         * langhooks.c: Include tree-diagnostic.h.
9710         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
9711         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
9712         (default_tree_printer): Handle %K using percent_K_format.
9713         (general_init): Use default_tree_diagnostic_starter.
9714         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
9715         (free_lang_data): Use default_tree_diagnostic_starter.
9716         * c-pretty-print.c: Include tree-pretty-print.h.
9717         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9718         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9719         * dwarf2out.c: Include tree-pretty-print.h.
9720         * except.c: Include tree-pretty-print.h.
9721         * gimple-pretty-print.c: Include tree-pretty-print.h and
9722         gimple-pretty-print.h.
9723         * gimplify.c: Include tree-pretty-print.h.
9724         * graphite-poly.c: Include tree-pretty-print.h and
9725         gimple-pretty-print.h.
9726         * ipa-cp.c: Include tree-pretty-print.h.
9727         * ipa-inline.c: Include gimple-pretty-print.h.
9728         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9729         * ipa-pure-const.c: Include gimple-pretty-print.h.
9730         * ipa-struct-reorg.c: Include tree-pretty-print.h and
9731         gimple-pretty-print.h.
9732         * ipa-type-escape.c: Include tree-pretty-print.h.
9733         * print-rtl.c: Include tree-pretty-print.h.
9734         * print-tree.c: Include gimple-pretty-print.h.
9735         * sese.c: Include tree-pretty-print.h.
9736         * tree-affine.c: Include tree-pretty-print.h.
9737         * tree-browser.c: Include tree-pretty-print.h.
9738         * tree-call-cdce.c: Include gimple-pretty-print.h.
9739         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9740         * tree-chrec.c: Include tree-pretty-print.h.
9741         * tree-data-ref.c: Include tree-pretty-print.h and
9742         gimple-pretty-print.h.
9743         * tree-dfa.c: Include tree-pretty-print.h.
9744         * tree-if-conv.c: Include tree-pretty-print.h and
9745         gimple-pretty-print.h.
9746         * tree-inline.c: Include tree-pretty-print.h.
9747         * tree-into-ssa.c: Include tree-pretty-print.h and
9748         gimple-pretty-print.h.
9749         * tree-nrv.c: Include tree-pretty-print.h.
9750         * tree-object-size.c: Include tree-pretty-print.h and
9751         gimple-pretty-print.h.
9752         * tree-outof-ssa.c: Include tree-pretty-print.h and
9753         gimple-pretty-print.h.
9754         * tree-parloops.c: Include tree-pretty-print.h and
9755         gimple-pretty-print.h.
9756         * tree-predcom.c: Include tree-pretty-print.h and
9757         gimple-pretty-print.h.
9758         * tree-scalar-evolution.c: Include tree-pretty-print.h and
9759         gimple-pretty-print.h.
9760         * tree-sra.c: Include tree-pretty-print.h.
9761         * tree-ssa-address.c: Include tree-pretty-print.h.
9762         * tree-ssa-alias.c: Include tree-pretty-print.h.
9763         * tree-ssa-ccp.c: Include tree-pretty-print.h and
9764         gimple-pretty-print.h.
9765         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
9766         * tree-ssa-copy.c: Include tree-pretty-print.h and
9767         gimple-pretty-print.h.
9768         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
9769         * tree-ssa-dce.c: Include tree-pretty-print.h and
9770         gimple-pretty-print.h.
9771         * tree-ssa-dom.c: Include tree-pretty-print.h and
9772         gimple-pretty-print.h.
9773         * tree-ssa-dse.c: Include gimple-pretty-print.h.
9774         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
9775         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
9776         * tree-ssa-live.c: Include tree-pretty-print.h and
9777         gimple-pretty-print.h.
9778         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
9779         gimple-pretty-print.h.
9780         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
9781         gimple-pretty-print.h.
9782         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
9783         gimple-pretty-print.h.
9784         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
9785         gimple-pretty-print.h.
9786         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
9787         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
9788         * tree-ssa-operands.c: Include tree-pretty-print.h and
9789         gimple-pretty-print.h.
9790         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
9791         gimple-pretty-print.h.
9792         * tree-ssa-pre.c: Include tree-pretty-print.h and
9793         gimple-pretty-print.h.
9794         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
9795         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
9796         gimple-pretty-print.h.
9797         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
9798         gimple-pretty-print.h.
9799         * tree-ssa-sink.c: Include gimple-pretty-print.h.
9800         * tree-ssa-ter.c: Include tree-pretty-print.h and
9801         gimple-pretty-print.h.
9802         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
9803         * tree-ssa.c: Include tree-pretty-print.h and
9804         gimple-pretty-print.h.
9805         * tree-stdarg.c: Include gimple-pretty-print.h.
9806         * tree-switch-conversion.c: Include gimple-pretty-print.h.
9807         * tree-tailcall.c: Include tree-pretty-print.h and
9808         gimple-pretty-print.h.
9809         * tree-vect-data-refs.c: Include tree-pretty-print.h and
9810         gimple-pretty-print.h.
9811         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
9812         gimple-pretty-print.h.
9813         * tree-vect-loop.c: Include tree-pretty-print.h and
9814         gimple-pretty-print.h.
9815         * tree-vect-patterns.c: Include gimple-pretty-print.h.
9816         * tree-vect-slp.c: Include tree-pretty-print.h and
9817         gimple-pretty-print.h.
9818         * tree-vect-stmts.c: Include tree-pretty-print.h and
9819         gimple-pretty-print.h.
9820         * tree-vectorizer.c: Include tree-pretty-print.h.
9821         * tree-vrp.c: Include tree-pretty-print.h and
9822         gimple-pretty-print.h.
9823         * value-prof.c: Include tree-pretty-print.h and
9824         gimple-pretty-print.h.
9825         * var-tracking.c: Include tree-pretty-print.h.
9826         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
9827         (tree-diagnostic.o): New dependencies.
9828         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
9829         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
9830         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
9831         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
9832         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
9833         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
9834         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
9835         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
9836         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
9837         tree-ssa-address.o, tree-ssa-loop-niter.o,
9838         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
9839         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
9840         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
9841         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
9842         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
9843         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
9844         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
9845         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
9846         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
9847         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
9848         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
9849         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
9850         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
9851         tree-switch-conversion.o, var-tracking.o, value-prof.o,
9852         cfgexpand.o, pretty-print.o): Update dependencies.
9853
9854 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
9855
9856         * tree-ssa-structalias.c: Remove tm_p.h from include.
9857
9858 2010-05-21  Jeff Law  <law@redhat.com>
9859
9860         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
9861
9862 2010-05-21  Jason Merrill  <jason@redhat.com>
9863
9864         * tree-eh.c (cleanup_is_dead_in): New.
9865         (lower_try_finally): Don't generate a dead cleanup region.
9866         (lower_cleanup): Likewise.
9867
9868 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
9869
9870         PR debug/44223
9871         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
9872         unchain each use from the cyclic next_regno_use chain first.
9873
9874 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
9875
9876         * real: Do not include gmp.h, mpfr.h, and mpc.h.
9877         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
9878         (real_value_negate, real_value_abs): New prototypes.
9879         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
9880         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
9881         new include file for interface between MPFR and REAL_VALUE_TYPE.
9882         * real.c: Include realmpfr.h.
9883         (real_arithmetic2): Remove legacy function.
9884         (real_value_negate): New.
9885         (real_value_abs): New.
9886         (mfpr_from_real, real_from_mpfr): Move from here...
9887         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
9888         * builtins.c: Include realmpfr.h.
9889         * fold-const.c: Include realmpfr.h.
9890         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
9891         (fold_negate_const): Likewise.
9892         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
9893         * toplev.c: Include realmpfr.h.
9894         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
9895         and real_value_negate.
9896         * fixed-value.c (check_real_for_fixed_mode): Likewise.
9897         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
9898         (vfp3_const_double_index): Likewise.
9899         (arm_print_operand): Likewise.
9900         * Makefile.in: Update dependencies.
9901
9902 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9903
9904         * config/s390/s390.c (override_options): Increase the default
9905         of max-completely-peel-times.
9906
9907 2010-05-21  Julian Brown  <julian@codesourcery.com>
9908             Mark Mitchell  <mark@codesourcery.com>
9909
9910         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
9911         sibling calls for Thumb-1.
9912         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
9913         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
9914         Thumb-2.
9915         (*call_insn, *call_value_insn): Don't use for Thumb-2.
9916         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
9917         for Thumb-2.
9918         (return): New expander.
9919         (*arm_return): New name for ARM return insn.
9920         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
9921
9922 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
9923
9924         * config.gcc (sparc64-*-rtems*): New target.
9925
9926 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
9927
9928         * tree.c (build_function_decl_skip_args): Fix grammar.
9929         (build_function_type_list_1): Fix typos, adjust formatting.
9930
9931 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
9932
9933         * tree.h: Include real.h and fixed-value.h as basic datatypes.
9934         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
9935         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
9936         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
9937         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
9938         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
9939         tree-pretty-print.c, tree-loop-distribution.c,
9940         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
9941         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
9942         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
9943         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
9944         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
9945         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
9946         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
9947         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
9948         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
9949         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
9950         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
9951         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
9952         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
9953         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
9954         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
9955         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
9956         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
9957         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
9958         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
9959         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
9960         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
9961         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
9962         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
9963         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
9964         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
9965         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
9966         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
9967         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
9968         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
9969         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
9970         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
9971         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
9972         config/score/score7.c, config/score/score.c, config/arm/arm.c,
9973         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
9974         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
9975         config/bfin/bfin.c: Clean up redundant includes.
9976         * Makefile.in: Update accordingly.
9977
9978 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
9979
9980         PR middle-end/44204
9981         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
9982         statement has no arguments.
9983
9984 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
9985
9986         PR/44139
9987         * varasm.c (emutls_decl): Merge attributes to new decl.
9988
9989 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
9990
9991         PR middle-end/44101
9992         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
9993         around the uniquized constructor if its type requires a conversion.
9994
9995 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
9996
9997         PR debug/44205
9998         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
9999         at -O0 goto_locus of any of the incoming edges differs from
10000         goto_locus of outgoing edge, or gimple_location of any of the
10001         labels differs.
10002
10003 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
10004
10005         * ira.c (ira_non_ordered_class_hard_regs): Define.
10006         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
10007         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
10008         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
10009         cost of unaligned hard regs when allocating multi-reg pseudos.
10010
10011 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
10012
10013         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
10014         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
10015         for TARGET_NO_FLOAT.
10016         * config/mips/mips.c (mips_file_start): Expand conditional expression
10017         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
10018         (mips_override_options): Move -mno-float override -msoft-float and
10019         -mhard-float.
10020         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
10021         Condition(TARGET_SUPPORTS_NO_FLOAT).
10022         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
10023         __mips_no_float here.
10024         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
10025         (TARGET_SUPPORTS_NO_FLOAT): Define.
10026         * config/mips/sdemtk.opt: Delete.
10027
10028 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
10029
10030         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
10031
10032 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
10033
10034         PR target/43733
10035         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
10036         * configure: Regenerate.
10037         * config.in: Regenerate.
10038         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
10039         instead of sahf only for 64bit targets.
10040
10041 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
10042
10043         PR debug/44178
10044         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
10045         setup_ref_regs for DEBUG_INSNs.
10046
10047 2010-05-20  Jan Hubicka  <jh@suse.cz>
10048
10049         PR middle-end/44197
10050         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
10051
10052 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
10053
10054         PR bootstrap/43870
10055         * df-scan.c (df_ref_compare): Stabilize sort.
10056
10057 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
10058
10059         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
10060         argument.  Don't use DW_OP_piece if offset is non-zero,
10061         put offset into second DW_OP_bit_piece argument.
10062         (dw_sra_loc_expr): Adjust callers.  For memory expressions
10063         compute offset.
10064
10065 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
10066
10067         PR target/44202
10068         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
10069         settings for 16-bit-constant "addo" alternative.
10070
10071 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
10072
10073         * config/mips/mips-dsp.md (add<DSPV:mode>3,
10074         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
10075
10076         PR target/43764
10077         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
10078         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
10079         Use it.
10080
10081 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
10082
10083         * diagnostic.c (FLOAT, FFS): Don't undefine.
10084         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
10085         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
10086         include ordering.
10087
10088 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
10089
10090         * combine.c (propagate_for_debug): Call make_compound_operation
10091         on the source value.
10092         (try_combine): When implementing a split chosen by find_split_point,
10093         either copy i2src or set it to null.  Assert that i2src is not null
10094         before substituting into CALL_INSN_FUNCTION_USAGE.
10095
10096 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
10097
10098         * double-int.h (double_int_ior): New function.
10099         * tree.h (build_int_cst_wide_type): Remove.
10100         * tree.c (build_int_cst_wide_type): Remove.
10101         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
10102         of build_int_cst_wide_type.
10103         * stor-layout.c (set_sizetype): (Ditto.).
10104         * dojump.c (do_jump): Use build_int_cstu instead of
10105         build_int_cst_wide_type.
10106
10107 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
10108
10109         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
10110         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
10111         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
10112         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
10113         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
10114         propagate the 'data' argument to copy_tree_r.
10115         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
10116         Propagate 'data' argument to walk_tree.
10117         (copy_if_shared): New function.
10118         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
10119         (unmark_visited): New function.
10120         (unshare_body): Call copy_if_shared instead of doing it manually.
10121         (unvisit_body): Call unmark_visited instead of doing it manually.
10122
10123 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
10124
10125         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
10126         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
10127         * hooks.c: Likewise.
10128         * target-def.h (TARGET_FOLD_BUILTIN): Define to
10129         hook_tree_tree_int_treep_bool_null.
10130         * target.h (struct gcc_target): Update signature of fold_builtin
10131         field.
10132         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
10133         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
10134         instead of the call expression.
10135         (fold_builtin_call_array): Pass n and argarray directly.
10136         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
10137         consing a list.
10138         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
10139         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
10140         `i' and use it in place of `arity'.
10141         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
10142         Dereference `args' directly.
10143         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
10144
10145 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10146
10147         * doc/sourcebuild.texi (Effective-Target Keywords): Document
10148         3dnow, sse3, sse2.
10149         (Directives): Document optional dg-require-effective-target
10150         selector.
10151
10152 2010-05-19  Richard Guenther  <rguenther@suse.de>
10153
10154         PR lto/44196
10155         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
10156
10157 2010-05-19  Richard Guenther  <rguenther@suse.de>
10158
10159         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
10160         * common.opt (fwhopr=): New.
10161         * opts.c (common_handle_option): Handle OPT_fwhopr.
10162         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
10163         * collect2.c (main): Match -fwhopr*.
10164         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
10165         Execute ltrans stage in parallel when jobs is bigger than 1.
10166
10167 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10168
10169         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
10170         pentiumpro on Solaris 8/x86 with Sun as.
10171         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
10172         hidden alias bug.
10173         (gcc_cv_as_ix86_quad): Check for .quad directive.
10174         * configure: Regenerate.
10175         * config.in: Regenerate.
10176         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
10177
10178 2010-05-19  Martin Jambor  <mjambor@suse.cz>
10179
10180         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
10181         also for indirect edges.  Actual printing moved...
10182         (ipa_print_node_jump_functions_for_edge): ...here.
10183         (ipa_compute_jump_functions): Renamed to
10184         ipa_compute_jump_functions_for_edge and made static.
10185         (ipa_compute_jump_functions): New function.
10186         (make_edge_direct_to_target): Check if the number of arguments on
10187         the newly direct edge is the same as the number of parametrs of
10188         the callee.
10189         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
10190         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
10191         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
10192         analysis functions unconditionally, call the new
10193         ipa_analyze_params_uses on the node instead of every edge.
10194
10195 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
10196
10197         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
10198         to tree.
10199         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
10200         also checks for a constant int vs.  non-constant but
10201         loop-invariant steps.
10202         (find_or_create_group): Change the sort algorithm to only consider
10203         steps that are constant ints.
10204         (idx_analyze_ref): Adopt code to handle a tree instead of a
10205         HOST_WIDE_INT for step.
10206         (gather_memory_references_ref): Handle tree instead of int and be
10207         prepared to see a NULL_TREE.
10208         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
10209         prefetches if the step cannot be calculated at compile time.
10210         (issue_prefetch_ref): Issue prefetches for non-constant but
10211         loop-invariant steps.
10212
10213 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
10214
10215         Revert:
10216         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
10217
10218         * tree.h (build_call_list): Remove.
10219         * tree.c (build_call_list): Remove.
10220
10221 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
10222
10223         * tree.h (build_call_list): Remove.
10224         * tree.c (build_call_list): Remove.
10225
10226 2010-05-18  Jan Hubicka  <jh@suse.cz>
10227
10228         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
10229
10230 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
10231
10232         PR rtl-optimization/43332
10233         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
10234
10235 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
10236
10237         * tree.h (build_int_cstu): Implement as static inline.
10238         * tree.c (build_int_cstu): Remove function.
10239         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
10240         sign extended.
10241
10242 2010-05-18  Richard Guenther  <rguenther@suse.de>
10243
10244         PR lto/44143
10245         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
10246         (debug): Initialize from -save-temps.
10247         (collect_execute): Print command-line when verbose.
10248         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
10249         for ltrans invocation.  Produce -dumpbase flag again.
10250         (process_args): Remove.
10251         (main): Simplify.
10252         * collect2.c (maybe_run_lto_and_relink): Only pass object
10253         files to lto-wrapper.
10254         * gcc.c (LINK_COMMAND_SPEC): Likewise.
10255
10256 2010-05-18  Jan Hubicka  <jh@suse.cz>
10257
10258         * opts.c (decode_options): Do not disable whopr at ipa_cp.
10259         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
10260
10261 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
10262
10263         PR lto/44184
10264         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
10265         in a GIMPLE_ASM.
10266         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
10267         in a GIMPLE_ASM.
10268
10269 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
10270
10271         PR debug/41371
10272         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
10273         rtx_equal_p inline.
10274
10275 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
10276
10277         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
10278         lto-macho as lto_binary_reader.
10279
10280         * darwin.c (darwin_asm_named_section): Do not add assembler comment
10281         after .section directive; just print it before the directive instead.
10282
10283 2010-05-17  Jan Hubicka  <jh@suse.cz>
10284
10285         * cgraph.c (cgraph_create_virtual_clone): Only check
10286         versionable_function_p when not in wpa and checking is enabled.
10287         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
10288         there are no more functions to materialize.
10289
10290 2010-05-17  Jan Hubicka  <jh@suse.cz>
10291
10292         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
10293         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
10294         New functions.
10295         (output_cgraph): Call output_cgraph_opt_summary.
10296         (input_cgrpah): Call input_cgraph_opt_summary.
10297         (output_cgraph_opt_summary_p, output_node_opt_summary,
10298         input_node_opt_summary, input_cgraph_opt_section): New functions.
10299         * lto-section-in.c (lto_section_name): Add cgraphopt.
10300         * tree-inline.c (tree_function_versioning): Handle parm_num.
10301         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
10302         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
10303
10304 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
10305
10306         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
10307         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
10308         the insn to prefetch ratio heuristic to loops with known trip count.
10309
10310 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
10311
10312         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
10313         (schedule_prefetches): Do not generate a prefetch if the unroll factor
10314         is far from what is required by the prefetch.
10315
10316 2010-05-17  Jan Hubicka  <jh@suse.cz>
10317
10318         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
10319         (ipcp_estimate_growth): Likewise.
10320         (ipcp_const_param_count): Likewise.
10321         (ipcp_insert_stage): Likewise.
10322         * ipa-prop.c (visit_load_for_mod_analysis): New function.
10323         (visit_store_addr_for_mod_analysis): Set used flag.
10324         (ipa_detect_param_modifications): Set used flag for SSE params;
10325         update use of walk_stmt_load_store_addr_ops.
10326         (ipa_print_node_params): Print used flag.
10327         (ipa_write_node_info): Stream used flag.
10328         (ipa_read_node_info): Likewise.
10329         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
10330         (ipa_is_param_used): New function.
10331         (lto_ipa_fixup_call_notes): Remove unused declaration.
10332
10333 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10334
10335         PR target/44074
10336         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
10337         * configure: Regenerate.
10338         * config.in: Regenerate.
10339         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
10340         !HAVE_AS_IX86_REP_LOCK_PREFIX.
10341         Don't emit whitespace.
10342         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
10343         (*rep_movsi): Likewise.
10344         (*rep_movsi_rex64): Likewise.
10345         (*rep_movqi): Likewise.
10346         (*rep_movqi_rex64): Likewise.
10347         (*rep_stosdi_rex64): Likewise.
10348         (*rep_stossi): Likewise.
10349         (*rep_stossi_rex64): Likewise.
10350         (*rep_stosqi): Likewise.
10351         (*rep_stosqi_rex64): Likewise.
10352         (*cmpstrnqi_nz_1): Use {%;} after repz.
10353         (*cmpstrnqi_nz_rex_1): Likewise.
10354         (*cmpstrnqi_1): Likewise.
10355         (*cmpstrnqi_rex_1): Likewise.
10356         (*strlenqi_1): Use {%;} after repnz.
10357         (*strlenqi_rex_1): Likewise.
10358         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
10359         (*sync_compare_and_swap<mode>): Likewise.
10360         (sync_double_compare_and_swap<mode>): Likewise.
10361         (*sync_double_compare_and_swapdi_pic): Likewise.
10362         (sync_old_add<mode>): Likewise.
10363         (sync_add<mode>): Likewise.
10364         (sync_sub<mode>): Likewise.
10365         (sync_<code><mode>): Likewise.
10366
10367 2010-05-17  Martin Jambor  <mjambor@suse.cz>
10368
10369         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
10370         otr_token and polymorphic.
10371         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
10372         (cgraph_clone_edge): Copy the above fields.
10373         * tree.c (get_binfo_at_offset): New function.
10374         * tree.h (get_binfo_at_offset): Declare.
10375         * ipa-prop.h (enum jump_func_type): Added known_type jump function
10376         type, reordered items, updated comments.
10377         (union jump_func_value): Added base_type field, reordered fields.
10378         (enum ipa_lattice_type): Moved down in the file.
10379         (struct ipa_param_descriptor): New field polymorphic.
10380         (ipa_is_param_polymorphic): New function.
10381         * ipa-prop.c: Include gimple.h and gimple-fold.h.
10382         (ipa_print_node_jump_functions): Print known type jump functions.
10383         (compute_complex_pass_through): Renamed to...
10384         (compute_complex_assign_jump_func): this.
10385         (compute_complex_ancestor_jump_func): New function.
10386         (compute_known_type_jump_func): Likewise.
10387         (compute_scalar_jump_functions): Create known type and complex ancestor
10388         jump functions.
10389         (ipa_note_param_call): New parameter polymorphic, set the corresponding
10390         flag in the call note accordingly.
10391         (ipa_analyze_call_uses): Renamed to...
10392         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
10393         variable var only in the block where it is used.
10394         (ipa_analyze_virtual_call_uses): New function.
10395         (ipa_analyze_call_uses): Likewise.
10396         (combine_known_type_and_ancestor_jfs): Likewise.
10397         (update_jump_functions_after_inlining): Implemented handling of a
10398         number of new jump function types combination.
10399         (print_edge_addition_message): Removed.
10400         (make_edge_direct_to_target): New function.
10401         (try_make_edge_direct_simple_call): Likewise.
10402         (try_make_edge_direct_virtual_call): Likewise.
10403         (update_call_notes_after_inlining): Renamed to...
10404         (update_indirect_edges_after_inlining): this.  Moved edge creation for
10405         indirect calls to try_make_edge_direct_simple_call, also calls
10406         try_make_edge_direct_virtual_call for virtual calls.
10407         (ipa_print_node_params): Changed the header message.
10408         (ipa_write_jump_function): Stream also known type jump functions.
10409         (ipa_read_jump_function): Likewise.
10410         (ipa_write_indirect_edge_info): Stream new fields in
10411         cgraph_indirect_call_info.
10412         (ipa_read_indirect_edge_info): Likewise.
10413         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
10414         GIMPLE_FOLD_H.
10415
10416 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10417
10418         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
10419
10420 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
10421
10422         * tree.h (CALL_EXPR_ARGS): Delete.
10423         (call_expr_arglist): Delete.
10424         * tree.c (call_expr_arglist): Delete.
10425         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
10426         targetm.fold_builtin.
10427         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
10428         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
10429         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
10430         arglist parameter.  Use CALL_EXPR_ARG.
10431         (picochip_expand_builtin_3op): Likewise.
10432         (picochip_expand_builtin_2opvoid): Likewise.
10433         (picochip_expand_array_get): Likewise.
10434         (picochip_expand_array_put): Likewise.
10435         (picochip_expand_array_testport): Likewise.
10436         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
10437         rather than arglist.
10438         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
10439         CALL_EXPR_ARGS.
10440         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
10441         than TREE_VALUE and TREE_CHAIN.
10442         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
10443         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
10444         the arglist.
10445
10446 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
10447
10448         PR bootstrap/42347
10449         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
10450         to have no fallthru edge.
10451
10452         PR middle-end/44102
10453         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
10454         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
10455         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
10456         add BARRIER after previous bb if needed.
10457
10458 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
10459
10460         * tree.c (build_function_type_list_1): Remove bogus assert condition.
10461
10462 2010-05-17  Alan Modra  <amodra@gmail.com>
10463
10464         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
10465         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
10466         with copy_reg rtx param.
10467         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
10468         Correct cases where code for ABI_V4 did not initialise the reg
10469         used to access frame.  Also leave frame_reg_rtx as sp for large
10470         frames that save no regs.
10471
10472 2010-05-17  Martin Jambor  <mjambor@suse.cz>
10473
10474         PR middle-end/44133
10475         * tree-sra.c (create_access_replacement): New parameter rename, mark
10476         the replaement for renaming only when it is true.
10477         (get_access_replacement): Pass true in the rename parameter of
10478         create_access_replacement.
10479         (get_unrenamed_access_replacement): New function.
10480         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
10481         replacement declaration from it.
10482
10483 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
10484
10485         * function.c (try_fit_stack_local, add_frame_space): New static
10486         functions.
10487         (assign_stack_local_1): Use them.  Look for opportunities to use
10488         space previously wasted on alignment.
10489         * function.h (struct frame_space): New.
10490         (struct rtl_data): Add FRAME_SPACE_LIST member.
10491         * reload1.c (something_was_spilled): New static variable.
10492         (alter_reg): Set it.
10493         (reload): Test it in addition to testing if the frame size changed.
10494
10495 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
10496
10497         * config/s390/s390.c: Define sane prefetch settings and activate
10498         flag_prefetch_loop_arrays on -O3.
10499         * config/s390/s390.h: Declare that read can use write prefetch.
10500
10501 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
10502
10503         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
10504         build.
10505
10506 2010-05-16  Jan Hubicka  <jh@suse.cz>
10507
10508         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
10509         function body; do not check stdarg field of struct function.
10510
10511 2010-05-16  Jan Hubicka  <jh@suse.cz>
10512
10513         * cgraph.c (dump_cgraph_node): Dump versionable flag.
10514         * cgraph.h (cgraph_local_info): Add versionable flag.
10515         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
10516         (ipcp_versionable_function_p): Use it.
10517         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
10518         versionable flag.
10519
10520 2010-05-16  Jan Hubicka  <jh@suse.cz>
10521
10522         * cgraph.c (cgraph_clone_node): Take decl argument and insert
10523         clone into hash when it is different from orig.
10524         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
10525         * cgraph.h (cgraph_clone_node): Update prototype.
10526         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
10527         (lto_cgraph_encoder_delete): Delete body map.
10528         (lto_cgraph_encoder_size): Move to header.
10529         (lto_cgraph_encoder_encode_body_p,
10530         lto_set_cgraph_encoder_encode_body): New.
10531         (lto_output_node): Do not take written_decls argument; output clone_of
10532         pointer.
10533         (add_node_to): Add include_body_argument; call
10534         lto_set_cgraph_encoder_encode_body on master of the clone.
10535         (add_references): Update use of add_node_to.
10536         (compute_ltrans_boundary): Likewise.
10537         (output_cgraph): Do not create written_decls bitmap.
10538         (input_node): Take nodes argument; stream in clone_of correctly.
10539         (input_cgraph_1): Update use of input_node.
10540         * lto-streamer-out.c (lto_output): Use encoder info to decide
10541         what bodies to output.
10542         * ipa-inline.c (cgraph_clone_inlined_nodes,
10543         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
10544         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
10545         (lto_cgraph_encoder_size): Define here.
10546         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
10547         Declare.
10548
10549 2010-05-16  Richard Guenther  <rguenther@suse.de>
10550
10551         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
10552         -fipa-type-escape.
10553         * ipa-type-escape.c (gate_type_escape_vars): Run when
10554         -fipa-struct-reorg runs.
10555         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
10556         * common.opt (fipa-type-escape): Remove.
10557
10558 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
10559
10560         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
10561         (decode_options): Likewise.
10562         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
10563
10564 2010-05-16  Jan Hubicka  <jh@suse.cz>
10565
10566         * ipa.c (function_and_variable_visibility): Also bring local all
10567         aliases.
10568
10569 2010-05-16  Richard Guenther  <rguenther@suse.de>
10570
10571         * alias.c (nonoverlapping_memrefs_p): Remove use of
10572         IPA type-escape information.
10573
10574 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
10575
10576         * c-common.c (c_common_reswords): Add _Static_assert for C.
10577         * c-parser.c (c_token_starts_declaration,
10578         c_parser_next_token_starts_declaration,
10579         c_parser_static_assert_declaration_no_semi,
10580         c_parser_static_assert_declaration): New.
10581         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
10582         Handle static assertions if static_assert_ok.
10583         (c_parser_external_declaration, c_parser_declaration_or_fndef,
10584         c_parser_compound_statement_nostart, c_parser_label,
10585         c_parser_for_statement, c_parser_objc_methodprotolist,
10586         c_parser_omp_for_loop): All callers of
10587         c_parser_declaration_or_fndef changed.
10588         (c_parser_struct_declaration): Handle static assertions.
10589         (c_parser_compound_statement_nostart): Use
10590         c_parser_next_token_starts_declaration and
10591         c_token_starts_declaration to detect start of declarations.
10592         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
10593         Likewise.
10594
10595 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
10596
10597         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
10598         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10599         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10600         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10601         (mmix_function_outgoing_value): Rename to...
10602         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
10603         (mmix_function_value_regno_p): Make static.
10604         (mmix_libcall_value): New function.
10605         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
10606         mmix_function_value_regno_p): Remove declaration.
10607
10608 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
10609
10610         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
10611         BUILT_IN_ALLOCA if stack checking is enabled.
10612
10613 2010-05-16  Richard Guenther  <rguenther@suse.de>
10614
10615         * var-tracking.c (vars_copy_1): Inline ...
10616         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
10617         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
10618         (variable_merge_over_cur): Adjust.  Merge asserts.
10619         (variable_merge_over_src): Likewise.
10620         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
10621         (variable_post_merge_new_vals): Merge asserts.
10622         (variable_post_merge_perm_vals): Likewise.
10623         (find_mem_expr_in_1pdv): Likewise.
10624         (dataflow_set_different_value): Remove.
10625         (onepart_variable_different_p): Merge asserts.
10626         (variable_different_p): Likewise.
10627         (dataflow_set_different_1): Inline ...
10628         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
10629         (emit_notes_for_differences_1): Merge asserts.
10630
10631 2010-05-16  Richard Guenther  <rguenther@suse.de>
10632
10633         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
10634         * optabs.c (libfunc_decl_hash): Likewise.
10635         * varasm.c (emutls_decl): Likewise.
10636
10637 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
10638
10639         * c-decl.c: Don't include gimple.h.
10640         (merge_decls): Do not copy gimple_body.
10641
10642 2010-05-15  Jason Merrill  <jason@redhat.com>
10643
10644         * c.opt: Add -fnothrow-opt.
10645
10646 2010-05-15  Jan Hubicka  <jh@suse.cz>
10647
10648         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
10649         analyzed.
10650         * passes.c (ipa_write_summaries): Write all analyzed nodes.
10651
10652 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
10653
10654         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
10655         * Makefile.in: Add it.
10656         Fix all other Makefile dependencies for changes below.
10657         * tree.h: Include it instead of defining VEC primitives here.
10658         * gimple.h: Likewise.
10659         * rtl.h: Likewise.
10660         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
10661         * except.h: Include vecir.h, break dependence on tree.h.
10662
10663         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
10664         Move from here...
10665         * tree-iterator.c: ...to here.
10666         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
10667
10668         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
10669         tm_p.h.
10670         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
10671         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
10672         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
10673         tree-mudflap.h, and target.h.
10674         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
10675         predict.h, tree-inline.h, gimple.h, and langhooks.h.
10676         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
10677         Add FIXME for why gimple.h is still included (should be unnecessary
10678         since GCC 4.5 gimplification unit-at-a-time).
10679         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
10680         * c-pragma.c: Add FIXME for why function.h needs to be included just
10681         for cfun, at front-end level.
10682         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
10683         Do not include ggc.h, but include vecprim.h for VEC(char).
10684         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
10685         Explain why target.h is included.
10686         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
10687         Explain why gimple.h is included.
10688         * c-ppoutput.c: Do not include tm.h.
10689         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
10690         * c-parses.c: Explain why rtl.h is included, and that this (and only
10691         this) is also why tm.h must be included.
10692         Do not include except.h.
10693         * c-lang.c: Do not include ggc.h.
10694
10695 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
10696
10697         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
10698
10699 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
10700
10701         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
10702         unions by default if those structs and unions have no tags.  Do
10703         not condition anonymous struct and unions handling on flag_iso.
10704         Allow anonymous structs and unions for C1X.
10705         (finish_struct): Do not diagnose lack of named fields when
10706         anonymous structs and unions present for C1X.  Accept flexible
10707         array members in structure with anonymous structs or unions but no
10708         directly named fields.
10709         * doc/extend.texi (Unnamed Fields): Update.
10710
10711 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
10712
10713         * gimple.h (compare_field_offset): Rename into...
10714         (gimple_compare_field_offset): ...this.
10715         * gimple.c (compare_field_offset): Rename into...
10716         (gimple_compare_field_offset): ...this.  Compare the full access if
10717         the offset is self-referential.
10718         (gimple_types_compatible_p): Adjust for above renaming.
10719         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
10720         DECL_NONADDRESSABLE_P flag of fields before merging them.
10721
10722 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
10723
10724         * tree.h (ctor_to_list): Delete.
10725         * tree.c (ctor_to_list): Delete.
10726
10727 2010-05-15  Jan Hubicka  <jh@suse.cz>
10728
10729         * ipa-reference.c: Include toplev.h
10730         (is_proper_for_analysis): Only add to all_module_statics
10731         if it is allocated.
10732         (write_node_summary_p, stream_out_bitmap,
10733         ipa_reference_write_optimization_summary,
10734         ipa_reference_read_optimization_summary): New.
10735         (struct ipa_opt_pass_d pass_ipa_reference): Add
10736         optimization summary streaming.
10737         * lto-cgraph.c (referenced_from_this_partition_p,
10738         reachable_from_this_partition_p): New functions.
10739         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
10740         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
10741         * opts.c (decode_options): Enable ipa_reference.
10742         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
10743         * lto-streamer.h (referenced_from_this_partition_p,
10744         reachable_from_this_partition_p): Declare.
10745
10746 2010-05-15  Richard Guenther  <rguenther@suse.de>
10747
10748         PR tree-optimization/44038
10749         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
10750         taking the address of a V_C_E of a constant.
10751
10752 2010-05-14  Jan Hubicka  <jh@suse.cz>
10753
10754         * tree.h (memory_identifier_string): Remove.
10755         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
10756         (ipa_reference_global_vars_info_d): Remove statics_not_read and
10757         statics_not_written.
10758         (ipa_reference_optimization_summary_d): New structure.
10759         (ipa_reference_optimization_summary_t): New type and vector.
10760         (ipa_reference_vars_info_d): Embedd structures instead of using
10761         pointers.
10762         (reference_vars_to_consider): Remove out of GGC space.
10763         (module_statics_escape): Remove.
10764         (global_info_obstack): Rename to ...
10765         (optimization_summary_obstack): ... this one.
10766         (initialization_status_t): Remove.
10767         (memory_identifier_string): Remove.
10768         (get_reference_vars_info): Fix indenting.
10769         (set_reference_vars_info): Likewise.
10770         (get_reference_optimization_summary): New.
10771         (set_reference_optimization_summary): New.
10772         (get_global_reference_vars_info): Remove.
10773         (ipa_reference_get_read_global): Remove.
10774         (ipa_reference_get_written_global): Remove.
10775         (ipa_reference_get_not_read_global): Update.
10776         (ipa_reference_get_not_written_global): Update.
10777         (is_proper_for_analysis): Outlaw addressable.
10778         (propagate_bits): Update for new datastructures.
10779         (analyze_variable): Remove.
10780         (init_function_info): Update for new datastructures.
10781         (clean_function_local_data): Remove.
10782         (clean_function): Remove.
10783         (copy_global_bitmap): Use optimizations_summary_obstack.
10784         (duplicate_node_data): Duplicate optimization summary only.
10785         (remove_node_data): Remove optimization summary only.
10786         (generate_summary): Do not analyze variables; do not compute
10787         module_statics_escape; do not prune solutions by it.
10788         (read_write_all_from_decl): Fix typos in comments.
10789         (propagate): Doscover readonly and nonaddressable first;
10790         update for new datastructures; share global bitmaps.
10791         * ipa-reference.h (ipa_reference_get_read_global,
10792         ipa_reference_get_written_global): Remove.
10793         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
10794         * Makefile.in: Remove ipa-refereference from GT files.
10795
10796 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
10797
10798         PR debug/44112
10799         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
10800         for all SYMBOL_REF_DECLs.
10801
10802 2010-05-14  Jan Hubicka  <jh@suse.cz>
10803
10804         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
10805         (varpool_all_refs_explicit_p): New inline function.
10806         * ipa-reference.c: Update comment.
10807         (module_statics_written): Remove.
10808         (get_static_decl): Remove.
10809         (ipa_init): Do not initialize module_statics_written.
10810         (analyze_function): Likewise.
10811         (generate_summary): Likewise; do not compute module_statics_readonly
10812         and do not update variable flags.
10813         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
10814         * ipa.c: Inlucde flags.h
10815         (cgraph_local_node_p): New.
10816         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
10817         promote functions to local.
10818         (ipa_discover_readonly_nonaddressable_vars): New function.
10819         (function_and_variable_visibility): Use cgraph_local_node_p.
10820         * varpool.c (varpool_finalize_decl): Set force_output for
10821         DECL_PRESERVE_P vars.
10822
10823 2010-05-14  Jan Hubicka  <jh@suse.cz>
10824
10825         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
10826
10827 2010-05-14  Richard Guenther  <rguenther@suse.de>
10828
10829         PR tree-optimization/44119
10830         * tree-ssa-pre.c (eliminate): Properly mark replacement of
10831         a PHI node necessary.
10832
10833 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
10834
10835         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
10836
10837 2010-05-14  Jason Merrill  <jason@redhat.com>
10838
10839         PR c++/44127
10840         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
10841         (gimple_call_set_nothrow): New.
10842         * gimple.c (gimple_build_call_from_tree): Call it.
10843         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
10844
10845         PR c++/44127
10846         * gimplify.c (gimplify_seq_add_stmt): No longer static.
10847         * gimple.h: Declare it.
10848         * gimple.c (gimple_build_eh_filter): No ops.
10849
10850 2010-05-14  Jan Hubicka  <jh@suse.cz>
10851
10852         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
10853         nodes already in queue.
10854         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
10855         re-enqueueing node.
10856
10857 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
10858
10859         PR debug/44136
10860         * cfgexpand.c (expand_debug_expr): If non-memory op0
10861         has BLKmode, return NULL.
10862
10863 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
10864
10865         * config.gcc: Add support for --with-cpu option for bdver1.
10866         * config/i386/i386.h (TARGET_BDVER1): New macro.
10867         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
10868         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
10869         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
10870         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
10871         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
10872         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
10873         (processor_type): Add PROCESSOR_BDVER1.
10874         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
10875         processor_type in config/i386/i386.h.
10876         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
10877         movaps <reg, reg> instead of movapd <reg, reg> when replacing
10878         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
10879         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
10880         to emit packed xor instead of packed double/packed integer
10881         xor for SSE and AVX when moving a zero value.
10882         * config/i386/sse.md: Add check for
10883         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
10884         movapd/movdqa for SSE and AVX.
10885         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
10886         single logical operations i.e and, or and xor instead of packed double
10887         logical operations for SSE and AVX.
10888         * config/i386/i386-c.c (ix86_target_macros_internal):
10889         Add PROCESSOR_BDVER1.
10890         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
10891         (has_fma4, has_xop): New.
10892         * config/i386/i386.c (bdver1_cost): New variable.
10893         (m_BDVER1): New macro.
10894         (m_AMD_MULTIPLE): Add m_BDVER1.
10895         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
10896         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
10897         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
10898         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
10899         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
10900         x86_tune_sse_partial_reg_dependency,
10901         x86_tune_sse_unaligned_load_optimal,
10902         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
10903         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
10904         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
10905         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
10906         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
10907         Enable/disable for bdver1.
10908         (processor_target_table): Add bdver1_cost.
10909         (cpu_names): Add bdver1.
10910         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
10911          processor_alias_table.
10912         (ix86_expand_vector_move_misalign): Change.
10913         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
10914         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
10915         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
10916         of movupd/movdqu for SSE and AVX.
10917         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
10918         (ix86_tune_adjust_cost): Add code for bdver1.
10919         (standard_sse_constant_opcode): Add check for
10920         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
10921         of packed double xor for SSE and AVX.
10922
10923 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
10924
10925         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
10926         result to unsigned.
10927
10928 2010-05-14  Tristan Gingold  <gingold@adacore.com>
10929
10930         * toplev.c (default_debug_hooks): Remove this variable.
10931         (process_options): Remove assignments to default_debug_hooks.
10932
10933 2010-05-14  Martin Jambor  <mjambor@suse.cz>
10934
10935         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
10936         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
10937         * langhooks.h (struct lang_hooks_for_decls): Removed field
10938         fold_obj_type_ref.
10939         * tree.c (free_lang_data): Remove assignment to
10940         lang_hooks.fold_obj_type_ref.
10941         * tree.def (OBJ_TYPE_REF): Update comment.
10942
10943 2010-05-14  Richard Guenther  <rguenther@suse.de>
10944
10945         PR tree-optimization/44124
10946         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
10947
10948 2010-05-14  Alan Modra  <amodra@gmail.com>
10949
10950         PR target/44075
10951         * config/rs6000/rs6000.c (struct machine_function): Reorder
10952         fields for better packing.  Add lr_save_state.
10953         (rs6000_ra_ever_killed): Return lr_save_state if set.
10954         (rs6000_emit_eh_reg_restore): Set lr_save_state.
10955
10956 2010-05-13  Jan Hubicka  <jh@suse.cz>
10957
10958         * varpool.c (decide_is_variable_needed): Drop code checking
10959         TREE_SYMBOL_REFERENCED.
10960
10961 2010-05-13  Jan Hubicka  <jh@suse.cz>
10962
10963         * final.c (output_addr_const): Do not call mark_decl_referenced.
10964         * cgraphunit.c (process_function_and_variable_attributes): Use
10965         mark_needed_node dirrectly.
10966         (assemble_thunk): Do not call mark_decl_referenced.
10967
10968 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
10969
10970         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
10971
10972 2010-05-13  Jeff Law  <law@redhat.com>
10973
10974         * ira-conflicts.c (print_allocno_conflicts): New function broken out
10975         from...
10976         (print_conflicts): Call print_allocno_conflicts.
10977
10978 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
10979
10980         PR debug/44104
10981         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
10982         if it is NULL.
10983
10984 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
10985
10986         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
10987         t-mingw-w64 or t-mingw-w32 for multilib configuration.
10988         * config/i386/t-mingw-w32: New.
10989         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
10990
10991 2010-05-13  Martin Jambor  <mjambor@suse.cz>
10992
10993         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
10994         gimple-fold.c).
10995         * gimple-fold.c (get_base_binfo_for_type): New function.
10996         (gimple_get_relevant_ref_binfo): Likewise.
10997         (gimple_fold_obj_type_ref_known_binfo): Likewise.
10998         (gimple_fold_obj_type_ref): Likewise.
10999         (fold_gimple_call): Simplify condition for folding virtual calls
11000         and call gimple_fold_obj_type_ref.
11001         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
11002         (gimple_fold_obj_type_ref_known_binfo): Likewise.
11003
11004 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
11005
11006         * config/rs6000/rs6000-protos.h
11007         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
11008         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
11009         (rs6000_debug_mode_dependent_address)
11010         (rs6000_mode_dependent_address_ptr): Likewise.
11011
11012 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
11013
11014         PR debug/43983
11015         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
11016         by SRA.
11017         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
11018         * tree-sra.c (create_access_replacement): Call unshare_expr before
11019         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
11020         * dwarf2out.c: Include tree-flow.h.
11021         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
11022         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
11023         Handle DW_OP_bit_piece.
11024         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
11025         construct_piece_list, adjust_piece_list): New functions.
11026         (add_var_loc_to_decl): Handle SRA optimized variables.
11027         Adjust for var_loc_note to loc field renaming.
11028         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
11029         in VAR_LOCATION note.
11030         (new_loc_descr_op_bit_piece): New function.
11031         (dw_sra_loc_expr): New function.
11032         (dw_loc_list): Use it.  Don't handle the last range after the
11033         loop, handle it inside of the loop.  Adjust for var_loc_note
11034         to loc field renaming.
11035         (add_location_or_const_value_attribute): Only special case
11036         single entry loc lists if loc is NOTE_P.  Adjust for
11037         var_loc_note to loc field renaming.
11038         (dwarf2out_var_location): Don't set newloc->var_loc_note
11039         and newloc->next here.
11040
11041 2010-05-12  Jan Hubicka  <jh@suse.cz>
11042
11043         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
11044         flag.
11045         * cgraph.h (cgraph_only_called_directly_p,
11046         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
11047         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
11048         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
11049         (assemble
11050         * ipa.c (cgraph_remove_unreachable_nodes): Use
11051         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
11052         flags.
11053         * tree-inline.c (copy_bb): Check address_taken flag.
11054         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
11055         externally_visible flag.
11056
11057 2010-05-12  Jason Merrill  <jason@redhat.com>
11058
11059         PR bootstrap/44048
11060         PR target/44099
11061         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
11062         * sdbout.c (plain_type_1): Likewise.
11063         * dwarf2out.c (is_base_type): Likewise.
11064         (gen_type_die_with_usage): Likewise.  Generate
11065         DW_TAG_unspecified_type for any LANG_TYPE.
11066
11067 2010-05-12  Jan Hubicka  <jh@suse.cz>
11068
11069         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
11070         indrect edges too.
11071         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
11072         (cgraph_clone_edge): Update.
11073         (cgraph_node_remove_callees): Remove indirect calls too.
11074         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
11075         (cgraph_create_indirect_edge): Update prototype.
11076         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
11077         is_proper_for_analysis.
11078         (add_new_function, visited_nodes, function_insertion_hook_holder,
11079         get_local_reference_vars_info, mark_address_taken, mark_address,
11080         mark_load, mark_store, check_asm_memory_clobber, check_call,
11081         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
11082         (ipa_init): Do not initialize visited_nodes;
11083         function_insertion_hook_holder.
11084         (analyze_variable): Rewrite.
11085         (analyze_function): Rewrite.
11086         (copy_local_bitmap): Remove.
11087         (duplicate_node_dat): Do not duplicate local info.
11088         (generate_summary): Simplify to only walk cgraph.
11089         (write_node_summary_p, ipa_reference_write_summary,
11090         ipa_reference_read_summary): Remove.
11091         (propagate): Do not remove function insertion;
11092         generate summary.
11093         (pass_ipa_reference): NULLify summary handling fields.
11094         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
11095         (input_edge): Input ecf_flags.
11096         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
11097         (update_indirect_edges_after_inlining): Ignore edges with unknown
11098         param.
11099
11100 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
11101
11102         * implicit-zee.c: New file.
11103         * tree-pass.h (pass_implicit_zee): Declare.
11104         * passes.c (init_optimization_passes): Add zee pass.
11105         * common.opt (fzee): New flag.
11106         * timevar.def (TV_ZEE): Define.
11107         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
11108         and beyond.
11109         * Makefile.in (implicit-zee.o): Add new build file.
11110
11111 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
11112             Nathan Froyd  <froydnj@codesourcery.com>
11113
11114         * c-common.c (sync_resolve_params): Remove write-only variable.
11115
11116 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
11117
11118         * target.h (struct gcc_target): Add mode_dependent_address_p field.
11119         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
11120         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
11121         * targhooks.c (default_mode_dependent_address_p): New function.
11122         * targhooks.h (default_mode_dependent_address_p): Declare function.
11123         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
11124         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
11125         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
11126         target hook. Change return type to bool.
11127         * recog.h (mode_dependent_address_p): Change return type to bool.
11128
11129 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
11130             Nathan Froyd  <froydnj@codesourcery.com>
11131
11132         * tree-mudflap.c (build_function_type_0, build_function_type_1,
11133         build_function_type_2, build_function_type_3): Remove.
11134         (mudflap_init): Use build_function_type_list.
11135
11136 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
11137             Nathan Froyd  <froydnj@codesourcery.com>
11138
11139         * coverage.c (build_fn_info_value): Call build_constructor instead of
11140         build_constructor_from_list.
11141         (build_ctr_info_value): Likewise.
11142         (build_gcov_info): Likewise.
11143
11144 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
11145
11146         * tree.c (build_constructor): Compute TREE_CONSTANT for the
11147         resultant constructor.
11148         (build_constructor_single): Don't set TREE_CONSTANT.
11149         (build_constructor_from_list): Don't compute TREE_CONSTANT.
11150
11151 2010-05-12  Jan Hubicka  <jh@suse.cz>
11152
11153         * cgraph.h (struct varpool_node): Add aux.
11154         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
11155         * varpool.c (varpool_remove_node): Do not remove initializer.
11156         (varpool_reset_queue): Export.
11157         (varpool_finalize_decl): Volatile vars are forced to be output.
11158         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
11159         replaced decl.
11160         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
11161         process_references, varpool_can_remove_if_no_refs): New functions.
11162         (cgraph_remove_unreachable_nodes): Handle variables too.
11163
11164 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
11165
11166         PR target/44088
11167         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
11168
11169 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
11170
11171         PR middle-end/44085
11172         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
11173         change value of ORT_TASK.
11174         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
11175         (omp_notice_threadprivate_variable): New function.
11176         (omp_notice_variable): Call it for threadprivate variables.
11177         If enclosing ctx is a task, print enclosing task rather than
11178         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
11179         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
11180         if task has untied clause.
11181
11182         PR debug/42278
11183         * dwarf2out.c (base_type_die): Don't add name attribute here.
11184         (modified_type_die): Instead of sizetype use
11185         its underlying original type.  If a DW_TAG_base_type doesn't
11186         have name added, add __unknown__.
11187         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
11188         always call force_type_die instead.
11189
11190 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
11191
11192         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
11193         for __stack_chk_guard.
11194
11195 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
11196
11197         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
11198         don't call start_source_file debug hook here...
11199         (finish_options): ... but here, after outputting predefined and
11200         command line defines and undefs.
11201
11202         PR middle-end/44071
11203         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
11204         no fallthru edge.
11205         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
11206         optimizing away empty bb with no successors, move over its
11207         footer chain to fallthru predecessor.
11208         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
11209         (rtl_split_edge): For asm goto call patch_jump_insn even if
11210         splitting fallthru edge.
11211
11212         PR c++/44059
11213         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
11214         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
11215         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
11216         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
11217         on DW.ref.* decls.
11218
11219         PR c++/44062
11220         * c-parser.c (c_parser_expression): Mark LHS of a comma
11221         expression as read if it is a decl, handled component or
11222         COMPOUND_EXPR with that on the RHS.
11223         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
11224         if it is a decl or handled component.
11225
11226 2010-05-11  Jan Hubicka  <jh@suse.cz>
11227
11228         * lto-symtab.c (lto_symtab_free): New function.
11229         * lto-streamer.h (lto_symtab_free): Declare.
11230
11231 2010-05-11  Jan Hubicka  <jh@suse.cz>
11232
11233         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
11234         that if function is needed it is reachable.
11235         (lto_output_node): See if it the function is reachable or referenced.
11236         (output_cgraph): Update call of lto_output_node.
11237         * lto-streamer.h (reachable_from_other_partition_p): Declare.
11238
11239 2010-05-11  Jan Hubicka  <jh@suse.cz>
11240
11241         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
11242         Mark as used.
11243
11244 2010-05-11  Jan Hubicka  <jh@suse.cz>
11245
11246         PR tree-optimize/44063
11247         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
11248         queue.
11249         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
11250         limits.
11251         (estimate_function_body_sizes): Compute sizes even when disregarding.
11252
11253 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
11254
11255         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
11256
11257 2010-05-11  Jan Hubicka  <jh@suse.cz>
11258
11259         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
11260         into every boundary.
11261
11262 2010-05-11  Jan Hubicka  <jh@suse.cz>
11263
11264         * matrix-reorg.c (matrix_reorg): Rebuild edges.
11265
11266 2010-05-11  Jan Hubicka  <jh@suse.cz>
11267
11268         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
11269         lto_streamer_cache_delete): Put nodes into heap.
11270         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
11271         heap.
11272
11273 2010-05-11  Jan Hubicka  <jh@suse.cz>
11274
11275         * cgraphbuild.c (cgraph_rebuild_references): New.
11276         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
11277         out extern inlines.
11278         * cgraph.h (cgraph_rebuild_references): Declare.
11279         * tree-inline.c (tree_function_versioning): Use it.
11280         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
11281
11282 2010-05-11  Jan Hubicka  <jh@suse.cz>
11283
11284         * cgraph.c: Include ipa-utils.h
11285         (cgraph_create_virtual_clone): Update references.
11286         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
11287
11288 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
11289
11290         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
11291         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
11292         cache size.
11293
11294 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
11295
11296         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
11297
11298 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
11299
11300         * gcc.c (execute): For -### don't quote arguments that
11301         contain just alphanumerics and _/-. characters.
11302         * doc/invoke.texi: Document that change for -###.
11303
11304         PR debug/44023
11305         * df-problems.c (struct dead_debug): Add to_rescan field.
11306         (dead_debug_init): Clear to_rescan field.
11307         (dead_debug_finish): Rescan all debug insns in to_rescan
11308         bitmap and free the bitmap.
11309         (dead_debug_insert_before): Instead of rescanning debug insns
11310         immediately queue their rescanning until dead_debug_finish.
11311         (df_note_bb_compute): After dead_debug_add do continue instead
11312         of break.
11313
11314 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
11315
11316         PR debug/44028
11317         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
11318         clear also INSN_REG_USE_LIST.
11319
11320 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11321
11322         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
11323
11324 2010-05-10  Jan Hubicka  <jh@suse.cz>
11325
11326         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
11327         commited change.
11328
11329 2010-05-10  Jan Hubicka  <jh@suse.cz>
11330
11331         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
11332         Allocate encoders.
11333         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
11334         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
11335         (lto_streamer_cache_create): Init alloc pool.
11336         (lto_streamer_cache_delete): Free alloc pool.
11337         * lto-streamer.h: Include alloc pool.
11338         (lto_streamer_cache_d): Use alloc pool.
11339         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
11340
11341 2010-05-10  Jan Hubicka  <jh@suse.cz>
11342
11343         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
11344         * cgraphbuild.c: Include except.h
11345         (record_type_list, record_eh_tables): New function.
11346         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
11347
11348 2010-05-10  Jan Hubicka  <jh@suse.cz>
11349
11350         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
11351         __frame_dummy_init_array_entry, force_to_data): Attribute as used
11352         rather than unused.
11353
11354 2010-05-10  Michael Matz  <matz@suse.de>
11355
11356         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
11357         (can_reassociate_p): Use FLOAT_TYPE_P.
11358         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
11359         (vect_force_simple_reduction): ... this.
11360         * tree-parloops.c (gather_scalar_reductions): Use
11361         vect_force_simple_reduction.
11362         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
11363         vect_is_simple_reduction, add modify argument, if true rewrite
11364         "a-b" into "a+(-b)".
11365         (vect_is_simple_reduction, vect_force_simple_reduction): New
11366         functions.
11367         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
11368
11369 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
11370             Vladimir Makarov  <vmakarov@redhat.com>
11371
11372         PR rtl-optimization/44012
11373         * ira-build.c (remove_unnecessary_allocnos): Nullify
11374         regno_allocno_map of the removed allocno.
11375
11376 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11377
11378         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
11379         to /dev/null.
11380         * configure: Regenerate.
11381
11382 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11383
11384         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
11385         unused.
11386         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
11387         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
11388         support in Sun ld.
11389         * configure: Regenerate.
11390
11391 2010-05-10  Richard Guenther  <rguenther@suse.de>
11392
11393         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
11394         marked if the entry identifier is marked.
11395
11396 2010-05-10  Richard Guenther  <rguenther@suse.de>
11397
11398         * c-common.c (struct c_common_attributes): Add fnspec attribute.
11399         (handle_fnspec_attribute): New function.
11400         * gimple.h (gimple_call_return_flags): Declare.
11401         (gimple_call_arg_flags): Likewise.
11402         * gimple.c (gimple_call_arg_flags): New function.
11403         (gimple_call_return_flags): Likewise.
11404         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
11405         New argument flags.
11406         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
11407         return value flags.
11408         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
11409         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
11410         main work to ...
11411         (make_heapvar_for): ... this new function.
11412         (handle_rhs_call): Handle fnspec attribute argument specifiers.
11413         (handle_lhs_call): Likewise.
11414         (find_func_aliases): Adjust.
11415
11416 2010-05-10  Richard Guenther  <rguenther@suse.de>
11417
11418         PR tree-optimization/44050
11419         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
11420
11421 2010-05-10  Wei Guozhi  <carrot@google.com>
11422
11423         PR target/42879
11424         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
11425
11426 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
11427
11428         PR c/10676
11429         * c-typeck.c (lookup_field): Take a type directly.  Update
11430         recursive calls.
11431         (build_component_ref): Update call to lookup_field.
11432         (set_init_label): Use lookup_field to find initialized field.
11433         Handle returned list of fields like a sequence of designators.
11434
11435 2010-05-09  Richard Guenther  <rguenther@suse.de>
11436
11437         PR middle-end/44024
11438         * fold-const.c (tree_single_nonzero_warnv_p): Properly
11439         handle &FUNCTION_DECL.
11440
11441 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
11442
11443         PR c/4784
11444         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
11445         structures and unions recursively.
11446         (detect_field_duplicates): Move duplicate detection with a hash to
11447         detect_field_duplicates_hash.  Always use a hash if anonymous
11448         structures or unions are present.
11449         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
11450         give errors.
11451
11452 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
11453
11454         PR target/44046
11455         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
11456         detect Atom, Core 2 and Core i7.
11457
11458 2010-05-09  Richard Guenther  <rguenther@suse.de>
11459
11460         * gcc.c (store_arg): Handle temporary file deletion for
11461         joined arguments.
11462
11463 2010-05-09  Richard Guenther  <rguenther@suse.de>
11464
11465         PR middle-end/44043
11466         * ipa-inline.c (estimate_function_body_sizes): Return after
11467         disregarding inline limits.
11468
11469 2010-05-09  Richard Guenther  <rguenther@suse.de>
11470
11471         * gcc.c (store_arg): Revert last change.
11472
11473 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
11474
11475         PR middle-end/28685
11476         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
11477         (optimize_ops_list): Call it.
11478
11479 2010-05-08  Richard Guenther  <rguenther@suse.de>
11480
11481         PR tree-optimization/44030
11482         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
11483         NECESSARY flag if we propagate from a inserted expression.
11484
11485 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
11486
11487         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
11488         domain types as equal if they are both PLACEHOLDER_EXPRs.
11489
11490 2010-05-08  Richard Guenther  <rguenther@suse.de>
11491
11492         * lto-wrapper.c (run_gcc): Remove linker output from
11493         command line for LTRANS invocation.
11494
11495 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
11496
11497         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
11498         lto-macho as lto_binary_reader.
11499         * target.h (struct gcc_target): New hooks lto_start and lto_end.
11500         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
11501         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
11502         in lto_start and lto_end calls.
11503         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
11504         magic numbers.
11505         (scan_prog_file): Update is_elf_or_coff call.
11506         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
11507
11508         * collect2.c (main): Fix enum comparison.
11509
11510         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
11511         Add prototypes.
11512         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
11513         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
11514         and TARGET_ASM_LTO_END.
11515         * darwin.c: Include obstack.h and lto-streamer.h.
11516         (lto_section_names_offset, lto_section_names_obstack,
11517         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
11518         global variables.
11519         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
11520         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
11521         to a temporary file.
11522         (darwin_asm_lto_end): New function.  Restore asm_out_file.
11523         (darwin_asm_named_section): For LTO sections, replace the name with
11524         the offset of the section name in a string table, and build this
11525         table.
11526         (darwin_file_start): Initialize global vars for LTO support.
11527         (darwin_file_end): If output to asm_out_file was redirected, append it
11528         to the proper asm_out_file here.  Add the section names section.
11529
11530 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
11531
11532         * c-pragma.c (pending_weak_d, pending_weak): New.
11533         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
11534         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
11535         handle_pragma_weak): Update the uses of pending_weaks.
11536
11537 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11538
11539         PR documentation/44016
11540         * doc/standards.texi (Standards): Link to unversioned
11541         cxx0x_status.html page.
11542
11543 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
11544
11545         PR target/43708
11546         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
11547         in addition to TREE_USED, to avoid "set but unused" warnings.
11548
11549 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
11550
11551         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
11552         (is_loop_prefetching_profitable): Do not insert prefetches
11553         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
11554         times the prefetch ahead distance.
11555
11556 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
11557
11558         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
11559         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
11560         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
11561         the unroll_factor.
11562
11563 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
11564
11565         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
11566         a diagnostic info when the insn-to-mem ratio is too small.
11567
11568 2010-05-07  Richard Guenther  <rguenther@suse.de>
11569
11570         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
11571         the linker plugin.
11572         (store_arg): Queue temp_filename for deletion instead of
11573         the whole argument.
11574
11575 2010-05-07  Richard Guenther  <rguenther@suse.de>
11576
11577         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
11578         (run_gcc): Handle LTRANS phase invocation.
11579         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
11580
11581 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
11582
11583         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
11584         this is also meaningful on PARM_DECLs and RESULT_DECLs.
11585
11586 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11587
11588         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
11589
11590 2010-05-07  Richard Guenther  <rguenther@suse.de>
11591
11592         PR tree-optimization/44020
11593         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
11594         code when PRE is not yet initialized.
11595
11596 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11597
11598         * config/mips/dbxmdebug.h: Remove.
11599         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
11600
11601 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
11602
11603         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
11604         with null pointer and also warn about ordered comparison of zero with
11605         pointer if -Wextra.
11606
11607 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11608
11609         * graphite-blocking.c
11610         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
11611         * graphite-clast-to-gimple.c
11612         (clast_to_gcc_expression): Same.
11613         (precision_for_value): Same.
11614         (precision_for_interval): Same.
11615         (gcc_type_for_interval): Same.
11616         (graphite_create_new_guard): Same.
11617         (compute_bounds_for_level): Same.
11618         (graphite_create_new_loop_guard): Same.
11619         * graphite-interchange.c
11620         (build_linearized_memory_access): Same.
11621         (pdr_stride_in_loop): Same.
11622         (memory_strides_in_loop_1): Same.
11623         (memory_strides_in_loop): Same.
11624         (extend_scattering): Same.
11625         (psct_scattering_dim_for_loop_depth): Same.
11626         (pbb_number_of_iterations): Same.
11627         * graphite-poly.h
11628         (debug_iteration_domains): Same.
11629         * graphite-ppl.c
11630         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
11631         (ppl_set_inhomogeneous_gmp): Same.
11632         (ppl_strip_loop): Same.
11633         (ppl_lexico_compare_linear_expressions): Same.
11634         (ppl_read_polyhedron_matrix): Same.
11635         (ppl_max_for_le_pointset): Same.
11636         * graphite-ppl.h
11637         (ppl_read_polyhedron_matrix): Same.
11638         (tree_int_to_gmp): Same.
11639         (gmp_cst_to_tree): Same.
11640         (ppl_set_inhomogeneous): Same.
11641         (ppl_set_inhomogeneous_tree): Same.
11642         (ppl_set_coef): Same.
11643         (ppl_set_coef_tree): Same.
11644         * graphite-sese-to-poly.c
11645         (build_pbb_scattering_polyhedrons): Same.
11646         (build_scop_scattering): Same.
11647         (scan_tree_for_params_right_scev): Same.
11648         (scan_tree_for_params): Same.
11649         (find_params_in_bb): Same.
11650         (find_scop_parameters): Same.
11651         (add_upper_bounds_from_estimated_nit): Same.
11652         (build_loop_iteration_domains): Same.
11653         (add_condition_to_domain): Same.
11654         (pdr_add_memory_accesses): Same.
11655
11656 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11657
11658         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
11659         CLooG's value_* macros to their respective mpz_* counterparts.
11660         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
11661         (graphite_create_new_loop_guard): Same.
11662         * graphite-interchange.c (build_linearized_memory_access): Same.
11663         (pdr_stride_in_loop): Same.
11664         (memory_strides_in_loop_1): Same.
11665         (1st_interchange_profitable_p): Same.
11666         * graphite-poly.c (extend_scattering): Same.
11667         (psct_scattering_dim_for_loop_depth): Same.
11668         (pbb_number_of_iterations): Same.
11669         (pbb_number_of_iterations_at_time): Same.
11670         * graphite-poly.h (new_1st_loop): Same.
11671         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
11672         (oppose_constraint): Same.
11673         (insert_constraint_into_matrix): Same.
11674         (ppl_set_inhomogeneous_gmp): Same.
11675         (ppl_set_coef_gmp): Same.
11676         (ppl_strip_loop): Same.
11677         (ppl_lexico_compare_linear_expressions): Same.
11678         (ppl_max_for_le_pointset): Same.
11679         (ppl_min_for_le_pointset): Same.
11680         (ppl_build_realtion): Same.
11681         * graphite-ppl.h (gmp_cst_to_tree): Same.
11682         (ppl_set_inhomogeneous): Same.
11683         (ppl_set_inhomogeneous_tree): Same.
11684         (ppl_set_coef): Same.
11685         (ppl_set_coef_tree): Same.
11686         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
11687         (build_scop_scattering): Same.
11688         (add_value_to_dim): Same.
11689         (scan_tree_for_params_right_scev): Same.
11690         (scan_tree_for_params_int): Same.
11691         (scan_tree_for_params): Same.
11692         (find_params_in_bb): Same.
11693         (find_scop_parameters): Same.
11694         (add_upper_bounds_from_estimated_nit): Same.
11695         (build_loop_iteration_domains): Same.
11696         (create_linear_expr_from_tree): Same.
11697         (add_condition_to_domain): Same.
11698         (pdr_add_memory_accesses): Same.
11699
11700 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
11701             Jason Merrill  <jason@redhat.com>
11702
11703         * c-common.c (c_common_reswords): Add nullptr.
11704         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
11705         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
11706         (gen_type_die_with_usage): Likewise.
11707         * dbxout.c (dbxout_type): Likewise.
11708         * sdbout.c (plain_type_1): Likewise.
11709
11710 2010-05-06  Jason Merrill  <jason@redhat.com>
11711
11712         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
11713         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
11714         ret appropriately.
11715         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
11716
11717         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
11718         stripping WITH_SIZE_EXPR.
11719         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
11720         change.
11721
11722 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11723
11724         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
11725         list of obsolete configurations.
11726         Disabled check for obsolete configurations.
11727         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
11728         Removed support for previous versions.
11729         * config/mips/iris.h: Removed.
11730         * config/mips/iris5.h: Removed.
11731         * config/mips/iris6.h: Merged old iris.h contents.
11732         (TARGET_IRIX): Removed.
11733         (DRIVER_SELF_SPECS): Removed mabi=32.
11734         (IDENT_ASM_OP): Removed undef.
11735         (STARTFILE_SPEC): Removed mabi=32.
11736         (ENDFILE_SPEC): Likewise.
11737         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
11738         (MACHINE_TYPE): Update for IRIX 6.5.
11739         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
11740         TARGET_IRIX by TARGET_IRIX6.
11741         (mips_file_start): Likewise.
11742         (mips_output_external): Remove IRIX 5/6 O32 support.
11743         (mips_output_function_prologue): Likewise.
11744         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
11745         TARGET_IRIX6.
11746         (TARGET_CPU_CPP_BUILTINS): Likewise.
11747         (TARGET_IRIX): Removed.
11748         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
11749         (MULTILIB_DIRNAMES): Removed 32.
11750         (MULTILIB_OSDIRNAMES): Removed ../lib.
11751         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
11752         (Specific, mips-sgi-irix5): Document removal.
11753         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
11754         Remove references to older IRIX 6 releases and the O32 ABI.
11755
11756 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
11757
11758         PR bootstrap/43994
11759         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
11760         instead of DF_REF_REAL_REG.
11761
11762 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
11763
11764         PR target/43888
11765         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
11766         handling to still return true for x64 targets.
11767
11768 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
11769
11770         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
11771
11772 2010-05-06  Jan Hubicka  <jh@suse.cz>
11773
11774         PR tree-optimization/43791
11775         * ipa-inline.c (update_caller_keys): Remove bogus
11776         disregard_inline_limits check.
11777
11778 2010-05-06  Michael Matz  <matz@suse.de>
11779
11780         PR tree-optimization/43984
11781         * tree-ssa-pre.c (inserted_phi_names): Remove.
11782         (inserted_exprs): Change to bitmap.
11783         (create_expression_by_pieces): Set bits, don't append to vector.
11784         (insert_into_preds_of_block): Don't handle inserted_phi_names.
11785         (eliminate): Don't look at inserted_phi_names, remove deleted
11786         insns from inserted_exprs.
11787         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
11788         (init_pre, fini_pre): Allocate and free bitmaps.
11789         (execute_pre): Insert insns on edges before elimination.
11790
11791 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
11792
11793         * tree.c (initializer_zerop): Handle STRING_CST.
11794
11795 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11796
11797         PR 40989
11798         * doc/invoke.texi (Wimplicit): Document as C only.
11799         * opts.c (common_handle_option): Add argument kind.
11800         (handle_option): Rename as read_cmdline_option. Factor out code to...
11801         (handle_option): ... here. New.
11802         (handle_options): Rename as read_cmdline_options.
11803         (decode_options): Update call.
11804         (set_option): Use option index instead of option pointer. Classify
11805         diagnostics correctly.
11806         (enable_warning_as_error): Call handle_option.
11807         * opts.h (set_option): Update declaration.
11808         (handle_option): Declare.
11809         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
11810         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
11811         * c-opts.c (set_Wimplicit): Delete.
11812         (c_family_lang_mask): New static constant.
11813         (c_common_handle_option): Add argument kind. Use handle_option
11814         instead of set_Wimplicit.
11815         (c_common_post_options): warn_implicit and warn_implicit_int
11816         are disabled by default.
11817         * c-common.c (warn_implicit): Do not define here.
11818         * c-common.h (warn_implicit): Do not declare here.
11819         (c_common_handle_option): Update declaration.
11820         * lto-opts.c (lto_reissue_options): Update call to set_option.
11821
11822 2010-05-06  Richard Guenther  <rguenther@suse.de>
11823
11824         PR tree-optimization/43571
11825         * domwalk.c (walk_dominator_tree): Walk the dominator
11826         sons in more optimal order.
11827
11828 2010-05-06  Richard Guenther  <rguenther@suse.de>
11829
11830         PR tree-optimization/43934
11831         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
11832         (stmt_cost): Likewise.
11833         (extract_true_false_args_from_phi): New helper.
11834         (determine_max_movement): For PHI nodes verify we can hoist them
11835         and compute their cost.
11836         (determine_invariantness_stmt): Handle PHI nodes.
11837         (move_computations_stmt): Likewise.  Hoist PHI nodes in
11838         if-converted form using COND_EXPRs.
11839         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
11840         (tree_ssa_lim): Likewise.
11841         * tree-flow.h (tree_ssa_lim): Adjust prototype.
11842         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
11843
11844 2010-05-06  Richard Guenther  <rguenther@suse.de>
11845
11846         PR tree-optimization/43987
11847         * tree-ssa-structalias.c (could_have_pointers): For possibly
11848         address-taken variables force pointers to be recorded.
11849         (create_variable_info_for_1): Likewise.
11850         (push_fields_onto_fieldstack): Pass in wheter all fields
11851         must have pointers.
11852         (find_func_aliases): Query types instead of vars whether
11853         they contain pointers where appropriate.
11854
11855 2010-05-06  Jan Hubicka  <jh@suse.cz>
11856
11857         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
11858         (record_reference, mark_address, mark_load, mark_store): Record
11859         references.
11860         (record_references_in_initializer): Update call of record_references.
11861         (rebuild_cgraph_edges): Remove all references before rebuiding.
11862         * cgraph.c (cgraph_create_node): Clear ref list.
11863         (cgraph_remove_node): Remove references.
11864         (dump_cgraph_node): Dump references.
11865         (cgraph_clone_node): Clone references.
11866         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
11867         (struct cgraph_node, varpool_node): Add ref_lst.
11868         * ipa-ref.c: New file.
11869         * ipa-ref.h: New file.
11870         * ipa-ref-inline.h: New file.
11871         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
11872         (referenced_from_other_partition_p): New function.
11873         (lto_output_varpool_node): Take set arugment; call
11874         referenced_from_other_partition.
11875         (lto_output_ref): New.
11876         (add_references): New.
11877         (output_refs): New.
11878         (output_cgraph): Compute boundary based on references; output refs.
11879         (output_varpool): Accept cgraph_node_set argument.
11880         (input_ref): New.
11881         (input_refs): New.
11882         (input_cgraph): Call input_refs.
11883         * lto-section-in.c (lto_section_name): Add refs.
11884         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
11885         (ipa-ref.o): New file.
11886         * varpool.c (varpool_node): Clear ipa ref list.
11887         (varpool_remove_node): Remove references.
11888         (dump_varpool_node): Dump references.
11889         (varpool_assemble_decl): Only compile finalized ones.
11890         (varpool_extra_name_alias): Initialize ref list.
11891         * lto-streamer.c (lto-get_section_name): Add .refs section.
11892         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
11893         (referenced_from_other_partition_p): Declared.
11894
11895 2010-05-06  Ira Rosen  <irar@il.ibm.com>
11896
11897         PR tree-optimization/43901
11898         * tree-vect-stmts.c (vectorizable_call): Assert that vector
11899         type is not NULL if it's transformation phase, and return
11900         FALSE if it's analysis.
11901         (vectorizable_conversion, vectorizable_operation,
11902         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
11903
11904 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
11905
11906         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
11907         Delete.
11908         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
11909         New define.
11910         * config/mips/mips-protos.h
11911         (mips_small_register_classes_for_mode_p): Delete prototype.
11912
11913 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
11914
11915         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
11916         * config/arm/arm.c (multiple_operation_profitable_p,
11917         compute_offset_order): New static functions.
11918         (load_multiple_sequence, store_multiple_sequence): Use them.
11919         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
11920         memory offsets, not register numbers.
11921         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
11922
11923 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
11924
11925         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
11926         (get_pending_sizes, put_pending_size, put_pending_sizes):
11927         Update the uses of pending_sizes.
11928         * c-decl.c (store_parm_decls): Likewise.
11929         * c-tree.h (struct c_arg_info): Likewise.
11930         * tree.h: Update the prototype for get_pending_sizes and
11931         put_pending_sizes.
11932
11933 2010-05-05  Jason Merrill  <jason@redhat.com>
11934
11935         PR debug/43370
11936         * c-common.c (handle_aligned_attribute): Respect
11937         ATTR_FLAG_TYPE_IN_PLACE.
11938
11939         PR testsuite/43758
11940         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
11941         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
11942         (TARGET_INITIALIZER): Use it.
11943         * c-common.c (attribute_takes_identifier_p): Call it.
11944         * c-common.h: Update prototype.
11945         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
11946         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
11947
11948 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
11949
11950         PR debug/43950
11951         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
11952         DW_ID_down_case for Fortran compilation units.
11953
11954 2010-05-05  Jan Hubicka  <jh@suse.cz>
11955
11956         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
11957         handle aliases.
11958
11959 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
11960
11961         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
11962         a variable-sized RESULT_DECL.
11963
11964 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
11965
11966         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
11967
11968 2010-05-05  Jason Merrill  <jason@redhat.com>
11969
11970         PR c++/43787
11971         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
11972         returns GS_OK.
11973         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
11974
11975 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
11976             Jakub Jelinek  <jakub@redhat.com>
11977
11978         PR debug/43478
11979         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
11980         (dead_debug_init, dead_debug_finish): New functions.
11981         (dead_debug_add, dead_debug_insert_before): Likewise.
11982         (df_note_bb_compute): Initialize a dead_debug object, add dead
11983         debug uses to it, insert debug bind insns before death insns,
11984         reset debug insns that refer to pending uses at the end.
11985         * rtl.h (make_debug_expr_from_rtl): New prototype.
11986         * varasm.c (make_debug_expr_from_rtl): New function.
11987
11988 2010-05-05  Jan Hubicka  <jh@suse.cz>
11989
11990         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
11991         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
11992         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
11993         lto_varpool_encoder_deref, lto_varpool_encoder_size,
11994         lto_varpool_encoder_encode_initializer_p,
11995         lto_set_varpool_encoder_encode_initializer): New functions.
11996         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
11997         call output_varpool.
11998         (input_varpool_node): Do not always set analyzed.
11999         (input_cgraph_1): Return vector of cgraph nodes.
12000         (input_varpool_1): Return vector of varpools.
12001         (input_cgraph): Free the vectors.
12002         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12003         output only initializers needed.
12004         (lto_output): Only call output_cgraph.
12005         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
12006         * lto-section-out.c (lto_new_out_decl_state): Initialize
12007         state->varpool_node_encoder.
12008         * lto-streamer.h (lto_varpool_encoder_d): New.
12009         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
12010         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
12011         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
12012         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
12013         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
12014         Declare.
12015         (output_varpool, input_varpool): Remove declarations.
12016
12017 2010-05-05  Jan Hubicka  <jh@suse.cz>
12018
12019         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
12020         with body can prevail.
12021
12022 2010-05-05  Jan Hubicka  <jh@suse.cz>
12023
12024         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
12025         size.
12026
12027 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12028
12029         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
12030
12031         * gengtype.h (erro_at_line): Constify pos argument.
12032
12033         * gengtype.c: Include hashtab.h.
12034         (enum gc_used): Document GC_MAYBE_POINTED_TO.
12035         (error_at_line): Constify pos argument.
12036         (do_typedef): Initialize p->opt field.
12037         (get_file_gtfilename): Fix comment typo.
12038         (struct walk_type_data): Constify line field.
12039         (get_output_file_for_structure): New function.
12040         (write_local_func_for_structure): Constify orig_s argument.
12041         Use get_output_file_for_structure.
12042         (write_func_for_structure): Use get_output_file_for_structure.
12043         (INDENT): New define.
12044         (dump_pair, dump_type, dump_type_list, dump_typekind)
12045         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
12046         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
12047         functions.
12048         (seen_types): New variable.
12049         (main): New variable do_dump.  Process "-d" command line option.
12050         Call dump_everything if dump requested.
12051
12052 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
12053
12054         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
12055         in a temporary instead of invoking the macro multiple times.
12056         (track_expr_p): Likewise.
12057
12058 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
12059
12060         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
12061         per new semantics.
12062         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
12063         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
12064         conditions for printing notes.
12065         * common.opt (-Wcoverage-mismatch): Allow negative, default to
12066         true, update documentation.
12067         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
12068
12069 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
12070
12071         PR c/43981
12072         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
12073         on dimen.
12074
12075 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
12076
12077         PR target/43799
12078         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
12079         (*sse_prologue_save_insn1): Likewise.
12080         (SSE prologue save splitter): Likewise.
12081
12082 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
12083
12084         * tree.c (free_lang_data_in_one_sizepos): New inline function.
12085         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
12086         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
12087         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
12088         all decls.  Call it on DECL_FIELD_OFFSET of fields.
12089         (find_decls_types_r): Follow DECL_VALUE_EXPR.
12090         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
12091
12092 2010-05-04  Martin Jambor  <mjambor@suse.cz>
12093
12094         * tree-sra.c (build_access_from_expr_1): The first parameter type
12095         changed to simple tree.
12096         (build_access_from_expr): Likewise, gsi parameter was eliminated.
12097         (scan_assign_result): Renamed to assignment_mod_result, enum elements
12098         renamed as well.
12099         (build_accesses_from_assign): Removed all parameters except for a
12100         simple gimple statement.  Now returns a simple bool.
12101         (scan_function): All non-analysis parts moved to separate functions
12102         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
12103         parameters and updated both callers.
12104         (sra_modify_expr): Removed parameter data.
12105         (sra_modify_function_body): New function.
12106         (perform_intra_sra): Call sra_modify_function_body to modify the
12107         function body.
12108         (replace_removed_params_ssa_names): Parameter data changed into
12109         adjustments vector.
12110         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
12111         changed the parameter dont_convert to convert with the opposite
12112         meaning.
12113         (sra_ipa_modify_assign): Parameter data changed into adjustments
12114         vector, return value changed to bool.
12115         (ipa_sra_modify_function_body): New function.
12116         (sra_ipa_reset_debug_stmts): Updated a comment.
12117         (modify_function): Use ipa_sra_modify_function_body to modify function
12118         body.
12119
12120 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
12121
12122         PR middle-end/43671
12123         * alias.c (true_dependence): Handle the same VALUE in x and mem.
12124         (canon_true_dependence): Likewise.
12125         (write_dependence_p): Likewise.
12126
12127 2010-05-04  Jan Hubicka  <jh@suse.cz>
12128
12129         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
12130         * cgraphbuild.c: Include ipa-utils.h
12131         (record_reference_ctx): New struct.
12132         (record_reference): Simplify to work on initializers; not statements.
12133         (mark_address, mark_load, mark_store): New.
12134         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
12135         walk PHI nodes too.
12136         (record_references_in_initializer): Update use of record_reference.
12137         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
12138         walk PHI nodes too.
12139
12140 2010-05-04  Jan Hubicka  <jh@suse.cz>
12141
12142         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
12143         node will be removed anyway.
12144         (lto_varpool_replace_node): Allow also unanalyzed nodes;
12145         relink aliases of node into prevailing node.
12146         * varpool.c (varpool_remove_node): Remove aliases properly;
12147         when removing node, remove all its aliases too; remove DECL_INITIAL
12148         of removed node; ggc_free the varpool node.
12149
12150 2010-05-04  Richard Guenther  <rguenther@suse.de>
12151
12152         PR tree-optimization/43879
12153         * tree-ssa-structalias.c (alias_get_name): Use
12154         DECL_ASSEMBLER_NAME if available.
12155         (create_function_info_for): Return the varinfo node.
12156         (ipa_pta_execute): Associate same-body aliases and extra names
12157         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
12158
12159 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
12160
12161         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
12162
12163 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
12164
12165         PR bootstrap/43964
12166         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
12167         only if HONOR_REG_ALLOC_ORDER is not defined.
12168
12169 2010-05-04  Richard Guenther  <rguenther@suse.de>
12170
12171         PR tree-optimization/43949
12172         * tree-vrp.c (extract_range_from_binary_expr): Only handle
12173         TRUNC_MOD_EXPR.
12174
12175 2010-04-26  Jason Merrill  <jason@redhat.com>
12176
12177         * c.opt (-fstrict-enums): New.
12178         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
12179
12180 2010-05-03  David Ung  <davidu@mips.com>
12181             James E. Wilson  <wilson@codesourcery.com>
12182
12183         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
12184         emit the trap instruction before the divide for TUNE_74K.
12185
12186 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
12187
12188         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
12189         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
12190         based on the above, for new target hook.
12191
12192         * hooks.c (hook_bool_mode_true): New generic hook.
12193         * hooks.h (hook_bool_mode_true): Add prototype.
12194
12195         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
12196         target hook.
12197         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
12198         target hook, set to hook_bool_mode_false.
12199         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
12200         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
12201         with targetm.small_register_classes_for_mode_p.
12202         (find_reusable_reload): Likewise.
12203         (combine_reloads): Likewise.
12204         * reload1.c (reload_as_needed): Likewise.
12205         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
12206         * ifcvt.c (noce_process_if_block, check_cond_move_block,
12207         dead_or_predicable): Likewise.
12208         * regmove.c (optimize_reg_copy_1): Likewise.
12209         * calls.c (prepare_call_address): Likewise.
12210         (precompute_register_parameters): Likewise.
12211
12212         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
12213         hook definition.
12214         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
12215         implementation of the hook that considers all register classes
12216         small except for SH64.
12217         (sh_override_options): Use the new hook.
12218         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
12219         Add prototype.
12220
12221         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
12222         hook definition.
12223         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
12224         implementation of the hook that considers all register classes
12225         small for THUMB1.
12226         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
12227         Add prototype.
12228
12229         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
12230         hook definition.
12231         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
12232         implementation of the hook that considers all register classes
12233         small for MIPS16.
12234         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
12235         Add prototype.
12236
12237         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
12238         hook definition.
12239         * config/m32c/m32c.h: Likewise.
12240         * config/pdp11/pdp11.h: Likewise.
12241         * config/avr/avr.h: Likewise.
12242         * config/xtensa/xtensa.h: Likewise.
12243         * config/m68hc11/m68hc11.h: Likewise.
12244         * config/mn10300/mn10300.h: Likewise.
12245         * config/mcore/mcore.h: Likewise.
12246         * config/h8300/h8300.h: Likewise.
12247         * config/bfin/bfin.h: Likewise.
12248
12249         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
12250         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
12251
12252 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
12253
12254         * double-int.h (tree_to_double_int): Remove macro.
12255         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
12256         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
12257         (tree_to_double_int): New function.
12258         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
12259         Move ...
12260         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
12261
12262 2010-05-03  Richard Guenther  <rguenther@suse.de>
12263
12264         PR tree-optimization/43971
12265         * tree-ssa-structalias.c (get_constraint_for_1): Fix
12266         constraints in the !flag_delete_null_pointer_checks case.
12267
12268 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
12269
12270         PR debug/43972
12271         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
12272         result mode matches original rtl mode.
12273
12274 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
12275
12276         PR target/43888
12277         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
12278
12279 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
12280
12281         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
12282         when processing flag options.
12283
12284 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
12285
12286         * gcov-iov.c (main): Change format string placeholder
12287         from %#08x to 0x%08x.
12288         * genchecksum.c (dosum): Change format string placeholder
12289         from %#02x to 0x%02x.
12290
12291 2010-05-02  Richard Guenther  <rguenther@suse.de>
12292
12293         PR tree-optimization/43879
12294         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
12295
12296 2010-05-02  Bruno Haible  <bruno@clisp.org>
12297
12298         * doc/extend.texi (Function Attributes): Fix a typo.
12299
12300 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
12301
12302         Revert:
12303         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
12304         placeholder from 0x%x to %#x.
12305         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
12306         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
12307         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
12308         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
12309         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
12310         * config/i386/i386.c (ix86_target_string): Ditto.
12311         * config/i386/i386.c (output_pic_addr_const): Ditto.
12312         (print_operand): Ditto.
12313
12314 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
12315
12316         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
12317         placeholder from 0x%x to %#x.
12318         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
12319         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
12320         (ASM_OUTPUT_DEBUG_DATA): Ditto.
12321         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
12322         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
12323         * optc-gen.awk: Ditto.
12324         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
12325         (HOST_WIDE_INT_PRINT_HEX): Ditto.
12326         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
12327         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
12328
12329 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
12330
12331         * target.h (struct calls): Add function_value_regno_p field.
12332         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
12333         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
12334         * targhooks.c (default_function_value_regno_p): New function.
12335         * targhooks.h (default_function_value_regno_p): Declare function.
12336         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
12337         * builtins.c. (apply_result_size): (Ditto.).
12338         * combine.c. (likely_spilled_retval_p): (Ditto.).
12339         * mode-switching.c. Include 'target.h'.
12340         (create_pre_exit): Use function_value_regno_p hook.
12341         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
12342         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
12343         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
12344
12345         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
12346         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
12347         (ix86_function_value_regno_p): Declare as static, change argument
12348         type to const unsigned int.
12349         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
12350
12351 2010-05-01  Richard Guenther  <rguenther@suse.de>
12352
12353         PR tree-optimization/43949
12354         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
12355         types.
12356         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
12357
12358 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
12359
12360         * rtl.h (CONST_DOUBLE_P): Define.
12361         (rtx_to_double_int): Declare.
12362         * emit-rtl.c (rtx_to_double_int): New function.
12363         * dwarf2out.c (insert_double): New function.
12364         (loc_descriptor, add_const_value_attribute): Clean up, use
12365         rtx_to_double_int and insert_double functions.
12366
12367 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
12368
12369         * doc/extend.texi (Inline): Add missing return keyword to examples.
12370         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
12371         "command-line".
12372
12373 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
12374
12375         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
12376         the variable part of the offset as well.  Use highest_pow2_factor for
12377         all alignment checks.
12378
12379 2010-04-30  Richard Guenther  <rguenther@suse.de>
12380
12381         PR tree-optimization/43879
12382         * tree-ssa-structalias.c (type_could_have_pointers): Functions
12383         can have pointers.
12384
12385 2010-04-30  Jan Hubicka  <jh@suse.cz>
12386
12387         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
12388         varpool.
12389         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
12390
12391 2010-04-30  Jan Hubicka  <jh@suse.cz>
12392
12393         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
12394         New.
12395         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
12396         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
12397         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
12398         cgraph_node_set_needs_ltrans_p): Remove.
12399
12400 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
12401
12402         * sdbout.c: Include vec.h, do not include varray.h.
12403         (deferred_global_decls, sdbout_global_decl,
12404         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
12405         * toplev.c: Do not include varray.h.
12406         (dump_memory_report): Do not dump VARRAY statistics.
12407         * gengtype.c (open_base_file): Ignore varray.h.
12408         * Makefile.in: Update for abovementioned changes.
12409         Remove all traces of varray.c and varray.h.
12410         * varray.c: Remove file.
12411         * varray.h: Remove file.
12412
12413 2010-04-30  Jan Hubicka  <jh@suse.cz>
12414
12415         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
12416         references.
12417
12418 2010-04-30  Jan Hubicka  <jh@suse.cz>
12419
12420         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
12421         needed.
12422
12423 2010-04-30  Richard Guenther  <rguenther@suse.de>
12424
12425         * tree-ssa-structalias.c (get_constraint_for_1): Generate
12426         constraints for CONSTRUCTOR.
12427
12428 2010-04-30  Richard Guenther  <rguenther@suse.de>
12429
12430         PR lto/43946
12431         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
12432         first after all lowering passes.
12433
12434 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
12435
12436         * toplev.c: Include varray.h for statistics dumping.
12437         * tree.h: Do not declare varray_head_tag.
12438         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
12439         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
12440         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
12441         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
12442         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
12443         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
12444         c-common.c, c-common.h, reg-stack.c, basic-block.h,
12445         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
12446         include varray.h.
12447         * Makefile.in: Update for abovementioned changes.
12448
12449 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
12450
12451         PR debug/43942
12452         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
12453
12454 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
12455
12456         * config/picochip/picochip.c (picochip_legitimize_address): Define.
12457         Use this function to do machine-specific conversion.
12458         (picochip_legitimize_reload_address): Likewise.
12459         (picochip_legitimate_address_p): Check valid base register only if
12460         strict.
12461         (picochip_check_conditional_copy): Check for modw only if opnd is
12462         register.
12463         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
12464         to call the function in c.
12465         * config/picochip/picochip-protos.h
12466         (picochip_legitimize_reload_address): Define.
12467         * config/picochip/picochip.md (supported_compare1): Define.
12468
12469 2010-04-30  Jan Hubicka  <jh@suse.cz>
12470
12471         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
12472         (cgraph_global_info): Remove inlined.
12473         (LTO_cgraph_tag_names): Remove.
12474         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
12475         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
12476         simplify cgraph tags and document.
12477         (lto_output_node): Use only LTO_cgraph_unavail_node and
12478         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
12479         for_functions_valid, global info, process and output flags.
12480         (input_overwrite_node): Initialize estimated stack size and
12481         estimated growth.  Do not read flags we no longer store.
12482         (input_node): Likewise do not read info no longer stored.
12483         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
12484         flag.
12485
12486 2010-04-30  Richard Guenther  <rguenther@suse.de>
12487
12488         PR tree-optimization/43879
12489         * tree-ssa-structalias.c (get_constraint_for_1): Properly
12490         handle non-zero initializers.
12491
12492 2010-04-30  Richard Guenther  <rguenther@suse.de>
12493
12494         * builtins.c (fold_builtin_1): Delete free (0).
12495
12496 2010-04-29  Jan Hubicka  <jh@suse.cz>
12497
12498         * gengtype.c (open_base_files): Add lto-streamer.h
12499         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
12500         (pass_ipa_cp): GGC collect.
12501         * toplev. (compile_file): Do not output symbols.
12502         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
12503         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
12504         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
12505         * lto-section-in.c: Include ggc.h
12506         (lto_new_in_decl_state): Alloc in GGC.
12507         (lto_delete_in_decl_state): Likewise.
12508         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
12509         Collect.
12510
12511 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
12512
12513         PR target/42895
12514         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
12515         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
12516         (HONOR_REG_ALLOC_ORDER): Describe new macro.
12517         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
12518         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
12519         account only if HONOR_REG_ALLOC_ORDER is not defined.
12520         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
12521         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
12522
12523 2010-04-29  Jon Grant  <04@jguk.org>
12524
12525         * collect2.c (vflag): Change type from int to bool.
12526         (debug): Likewise.
12527         (helpflag): New global bool.
12528         (main): Set vflag and debug with boolean, not integer truth values.
12529         Accept new "--help" option and output usage text if found.
12530         * collect2.h (vflag): Update prototype.
12531         (debug): Likewise.
12532
12533 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
12534
12535         PR bootstrap/43936
12536         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
12537
12538 2010-04-29  Richard Guenther  <rguenther@suse.de>
12539
12540         PR bootstrap/43935
12541         * plugin.h (invoke_plugin_callbacks): Annotate arguments
12542         with ATTRIBUTE_UNUSED.
12543
12544 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
12545
12546         PR target/43921
12547         * config/i386/i386.c (get_some_local_dynamic_name): Replace
12548         INSN_P with NONDEBUG_INSN_P.
12549         (distance_non_agu_define): Likewise.
12550         (distance_agu_use): Likewise.
12551
12552 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
12553
12554         From Dominique d'Humieres  <dominiq@lps.ens.fr>
12555         PR bootstrap/43858
12556         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
12557         test_set.
12558
12559 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
12560
12561         * plugin.h (invoke_plugin_callbacks): New inline function.
12562         * plugin.c (flag_plugin_added): New global flag.
12563         (add_new_plugin): Initialize above flag.
12564         (invoke_plugin_callbacks): Rename to ...
12565         (invoke_plugin_callbacks_full): ... this.
12566
12567 2010-04-28  Jan Hubicka  <jh@suse.cz>
12568
12569         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
12570         (lto_varpool_replace_node): New.
12571         (lto_symtab_resolve_symbols): Resolve varpool nodes.
12572         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
12573         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
12574         * cgraph.h (varpool_node_ptr): New type.
12575         (varpool_node_ptr): New vector.
12576         (varpool_node_set_def): New structure.
12577         (varpool_node_set): New type.
12578         (varpool_node_set): New vector.
12579         (varpool_node_set_element_def): New structure.
12580         (varpool_node_set_element, const_varpool_node_set_element): New types.
12581         (varpool_node_set_iterator): New type.
12582         (varpool_node): Add prev pointers, add used_from_other_partition,
12583         in_other_partition.
12584         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
12585         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
12586         varpool_get_node, varpool_remove_node): Declare.
12587         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
12588         varpool_node_set_size): New inlines.
12589         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
12590         * tree-pass.h (varpool_node_set_def): Forward declare.
12591         (ipa_opt_pass_d): Summary writting takes vnode sets too.
12592         (ipa_write_optimization_summaries): Update prototype.
12593         * ipa-cp.c (ipcp_write_summary): Update.
12594         * ipa-reference.c (ipa_reference_write_summary): Update.
12595         * lto-cgraph.c (lto_output_varpool_node): New static function.
12596         (output_varpool): New function.
12597         (input_varpool_node): New static function.
12598         (input_varpool_1): New function.
12599         (input_cgraph): Input varpool.
12600         * ipa-pure-const.c (pure_const_write_summary): Update.
12601         * lto-streamer-out.c (lto_output): Update, output varpool too.
12602         (write_global_stream): Kill WPA hack.
12603         (produce_asm_for_decls): Update.
12604         (output_alias_pair_p): Handle variables.
12605         (output_unreferenced_globals): Output only needed partition of varpool.
12606         * ipa-inline.c (inline_write_summary): Update.
12607         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
12608         cgraph.
12609         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
12610         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
12611         varpool_node_set_new, varpool_node_set_add,
12612         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
12613         debug_varpool_node_set): New functions.
12614         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
12615         (execute_one_pass): Process new decls too.
12616         (ipa_write_summaries_2): Pass around vsets.
12617         (ipa_write_summaries_1): Likewise.
12618         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
12619         to add.
12620         (ipa_write_optimization_summaries_1): Pass around vsets.
12621         (ipa_write_optimization_summaries): Likewise.
12622         * varpool.c (varpool_get_node): New.
12623         (varpool_node): Update doubly linked lists.
12624         (varpool_remove_node): New.
12625         (dump_varpool_node): More dumping.
12626         (varpool_enqueue_needed_node): Update doubly linked lists.
12627         (decide_is_variable_needed): Kill ltrans hack.
12628         (varpool_finalize_decl): Kill lto hack.
12629         (varpool_assemble_decl): Skip decls in other partitions.
12630         (varpool_assemble_pending_decls): Update doubly linkes lists.
12631         (varpool_empty_needed_queue): Likewise.
12632         (varpool_extra_name_alias): Likewise.
12633         * lto-streamer.c (lto_get_section_name): Add vars section.
12634         * lto-streamer.h (lto_section_type): Update.
12635         (output_varpool, input_varpool): Declare.
12636
12637 2010-04-28  Mike Stump  <mikestump@comcast.net>
12638
12639         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
12640
12641 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
12642
12643         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
12644         record or union type with RECORD_OR_UNION_TYPE_P predicate.
12645         (lto_input_ts_type_tree_pointers): Likewise.
12646         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
12647         (lto_output_ts_type_tree_pointers): Likewise.
12648
12649 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
12650
12651         Uniquization of constants at the Tree level
12652         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
12653         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
12654         bit to the end.
12655         (tree_output_constant_def): Declare.
12656         * gimplify.c (gimplify_init_constructor): When using block copy, first
12657         uniquize the constant constructor on the RHS.
12658         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
12659         DECL_IN_CONSTANT_POOL flag.
12660         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
12661         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
12662         constant pool.
12663         (assemble_variable): Deal with symbols belonging to the tree constant
12664         pool.
12665         (get_constant_section): Add ALIGN parameter and simplify.
12666         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
12667         (assemble_constant_contents): Use the expression of the VAR_DECL.
12668         (output_constant_def_contents): Use the alignment of the VAR_DECL.
12669         (tree_output_constant_def): New global function.
12670         (mark_constant): Use the expression of the VAR_DECL.
12671         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
12672         its expression.
12673         (output_object_block): Likewise and assemble the expression.
12674
12675 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
12676
12677         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
12678         hash_tree, eq_tree): New tree hash table.
12679         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
12680         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
12681         lto_orig_address_remove): Reimplement.
12682
12683 2010-04-28  Xinliang David Li  <davidxl@google.com>
12684
12685         PR c/42643
12686         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
12687         (compute_uninit_opnds_pos): New function.
12688         (is_non_loop_exit_postdominating): New function.
12689         (compute_control_dep_chain): New function.
12690         (find_pdom): New function.
12691         (convert_control_dep_chain_into_preds): New function.
12692         (find_predicates): New function.
12693         (find_control_equiv_block): New function.
12694         (collect_phi_def_edges): New function.
12695         (find_def_preds): New function.
12696         (find_dom): New function.
12697         (dump_predicates): New function.
12698         (get_cmp_code): New function.
12699         (is_value_included_in): New function.
12700         (find_matching_predicate_in_rest_chains): New function.
12701         (use_pred_not_overlap_with_undef_path_pred): New function.
12702         (is_use_properly_guarded): New function.
12703         (normalize_cond_1): New function.
12704         (is_and_or_or): New function.
12705         (normalize_cond): New function.
12706         (is_gcond_subset_of): New function.
12707         (is_subset_of_any): New function.
12708         (is_or_set_subset_of): New function.
12709         (is_and_set_subset_of): New function.
12710         (is_norm_cond_subset_of): New function.
12711         (is_pred_expr_subset_of): New function.
12712         (is_pred_chain_subset_of): New function.
12713         (is_included_in): New function.
12714         (is_superset_of): New function.
12715         (find_uninit_use): New function.
12716         (warn_uninitialized_phi): New function.
12717         (compute_possibly_undefined_names): New function.
12718         (ssa_undefined_value_p): New function.
12719         (execute_late_warn_uninitialized): New function.
12720         * tree-ssa.c (ssa_undefined_value_p): Removed.
12721         (warn_uninit): Changed to extern.
12722         (warn_uninitialized_phi): Removed.
12723         (warn_uninitialized_vars): Changed to extern.
12724         (execute_late_warn_uninitialized): Removed
12725         * tree-flow.h: Add new prototypes.
12726         * timevar.def: Add new time variable.
12727         * Makefile.in: Add new build file.
12728
12729 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
12730
12731         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
12732         type if available.
12733
12734 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12735
12736         PR target/22224
12737         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
12738
12739 2010-04-28  Martin Jambor  <mjambor@suse.cz>
12740
12741         * cgraph.h (struct cgraph_node): New field indirect_calls.
12742         (struct cgraph_indirect_call_info): New type.
12743         (struct cgraph_edge): Removed field indirect_call. New fields
12744         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
12745         (cgraph_create_indirect_edge): Declare.
12746         (cgraph_make_edge_direct): Likewise.
12747         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
12748         * ipa-prop.h (struct ipa_param_call_note): Removed.
12749         (struct ipa_node_params): Removed field param_calls.
12750         (ipa_create_all_structures_for_iinln): Declare.
12751         * cgraph.c: Described indirect edges and uids in initial comment.
12752         (cgraph_add_edge_to_call_site_hash): New function.
12753         (cgraph_edge): Search also among the indirect edges, use
12754         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
12755         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
12756         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
12757         site hash.
12758         (initialize_inline_failed): Assign a reason to indirect edges.
12759         (cgraph_create_edge_1): New function.
12760         (cgraph_create_edge): Moved some functionality to
12761         cgraph_create_edge_1.
12762         (cgraph_create_indirect_edge): New function.
12763         (cgraph_edge_remove_callee): Add an assert checking for
12764         non-indirectness.
12765         (cgraph_edge_remove_caller): Special-case indirect edges.
12766         (cgraph_remove_edge): Likewise.
12767         (cgraph_set_edge_callee): New function.
12768         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
12769         (cgraph_make_edge_direct): New function.
12770         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
12771         the declaration of the call statement matches.
12772         (cgraph_node_remove_callees): Special-case indirect edges.
12773         (cgraph_clone_edge): Likewise.
12774         (cgraph_clone_node): Clone also the indirect edges.
12775         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
12776         indirect_call, dump count of indirect_calls edges.
12777         * ipa-prop.c (iinlining_processed_edges): New variable.
12778         (ipa_note_param_call): Create indirect edges instead of
12779         creating notes.  New parameter node.
12780         (ipa_analyze_call_uses): New parameter node, pass it on to
12781         ipa_note_param_call.
12782         (ipa_analyze_stmt_uses): Likewise.
12783         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
12784         (print_edge_addition_message): Work on edges rather than on notes.
12785         (update_call_notes_after_inlining): Likewise, renamed to
12786         update_indirect_edges_after_inlining.
12787         (ipa_create_all_structures_for_iinln): New function.
12788         (ipa_free_node_params_substructures): Do not free notes.
12789         (ipa_edge_duplication_hook): Propagate bits within
12790         iinlining_processed_edges bitmap.
12791         (ipa_node_duplication_hook): Do not duplicate notes.
12792         (free_all_ipa_structures_after_ipa_cp): Renamed to
12793         ipa_free_all_structures_after_ipa_cp.
12794         (free_all_ipa_structures_after_iinln): Renamed to
12795         ipa_free_all_structures_after_iinln.
12796         (ipa_write_param_call_note): Removed.
12797         (ipa_read_param_call_note): Removed.
12798         (ipa_write_indirect_edge_info): New function.
12799         (ipa_read_indirect_edge_info): Likewise.
12800         (ipa_write_node_info): Do not stream notes, do stream information
12801         in indirect edges.
12802         (ipa_read_node_info): Likewise.
12803         (lto_ipa_fixup_call_notes): Removed.
12804         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
12805         * ipa-inline.c (pass_ipa_inline): Likewise.
12806         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
12807         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
12808         * tree-inline.c (copy_bb): Removed an unnecessary double check for
12809         is_gimple_call.
12810         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
12811         edges.
12812         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
12813         (output_cgraph): Stream also indirect edges.
12814         (lto_output_edge): Added capability to stream indirect edges.
12815         (input_edge): Likewise.
12816         (input_cgraph_1): Likewise.
12817         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
12818         of indirect edges.
12819
12820 2010-04-28  Richard Guenther  <rguenther@suse.de>
12821
12822         PR tree-optimization/43879
12823         PR tree-optimization/43909
12824         * tree-ssa-structalias.c (struct variable_info): Add
12825         only_restrict_pointers flag.
12826         (new_var_info): Initialize it.  Increment stats.total_vars here.
12827         (create_function_info_for): Do not increment stats.total_vars here.
12828         (get_function_part_constraint): Fix build with C++.
12829         (insert_into_field_list): Remove.
12830         (push_fields_onto_fieldstack): Properly merge fields.
12831         (create_variable_info_for): Split and simplify.
12832         (create_variable_info_for_1): New piece.
12833         (intra_create_variable_infos): Properly make restrict constraints
12834         from parameters.
12835
12836 2010-04-28  Richard Guenther  <rguenther@suse.de>
12837
12838         PR c++/43880
12839         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
12840
12841 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12842             Jan Hubicka  <hubicka@ucw.cz>
12843
12844         * doc/invoke.texi (-Wsuggest-attribute=const,
12845         -Wsuggest-attribute=pure): Document.
12846         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
12847         (function_always_visible_to_compiler_p,
12848         suggest_attribute, warn_function_pure, warn_function_const):
12849         New functions.
12850         (check_call): Improve debug info.
12851         (analyze_function): Do not check availability.
12852         (add_new_function): Check availability.
12853         (propagate): Output warnings.
12854         (skip_function_for_local_pure_const): New function.
12855         (local_pure_const): Use it; output warnings.
12856         * common.opt (Wsuggest-attribute=const,
12857         Wsuggest-attribute=pure): New.
12858
12859 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
12860
12861         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
12862         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
12863         or DW_CFA_def_cfa_offset{,_sf}.
12864
12865 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
12866
12867         * tree.h: Fix truncated long macros.
12868
12869 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
12870
12871         * collect2.c (TARGET_64BIT): Redefine to target's default.
12872         * tlink.c: Likewise.
12873         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
12874         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
12875         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
12876         for underscoring __USER_LABEL_PREFIX__.
12877         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
12878         (SUB_LINK_ENTRY32): New.
12879         (SUB_LINK_ENTRY64): New.
12880         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
12881         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
12882         (SUB_LINK_ENTRY64): New.
12883         (SUB_LINK_ENTRY): New.
12884         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
12885         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
12886         x64 target is choosen.
12887         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
12888         * configure: Regenerated.
12889         * configure.ac (leading-mingw64-underscores): Option added.
12890
12891 2010-04-27  Jan Hubicka  <jh@suse.cz>
12892
12893         * doc/invoke.texi (-fipa-profile): Document.
12894         * opts.c (decode_options): Enable ipa-profile at -O1.
12895         * timevar.def (TV_IPA_PROFILE): Define.
12896         * common.opt (fipa-profile): Add.
12897         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
12898         flag for clones.
12899         (cgraph_propagate_frequency): Handle only local ones.
12900         * tree-pass.h (pass_ipa_profile): Declare.
12901         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
12902         (pass_ipa_profile): Use TV_IPA_PROFILE.
12903         * ipa.c (ipa_profile): New function.
12904         (gate_ipa_profile): Likewise.
12905         (pass_ipa_profile): New global variable.
12906         * passes.c (pass_ipa_profile): New.
12907
12908 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
12909
12910         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
12911
12912 2010-04-27  Martin Jambor  <mjambor@suse.cz>
12913
12914         PR middle-end/43812
12915         * ipa.c (dissolve_same_comdat_group_list): New function.
12916         (function_and_variable_visibility): Call
12917         dissolve_same_comdat_group_list when comdat group contains external or
12918         newly local nodes.
12919         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
12920         lists are circular and that they contain only DECL_ONE_ONLY nodes.
12921
12922 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
12923
12924         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
12925         (const_hash_1) <VECTOR_CST>: New case.
12926         (compare_constant) <VECTOR_CST>: Likewise.
12927         <ADDR_EXPR>: Deal with LABEL_REFs.
12928         (copy_constant) <VECTOR_CST>: New case.
12929
12930 2010-04-27  Jan Hubicka  <jh@suse.cz>
12931
12932         * cgraph.c (cgraph_propagate_frequency): New function.
12933         * cgraph.h (cgraph_propagate_frequency): Declare.
12934         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
12935         cgraph_propagate_frequency.
12936
12937 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
12938
12939         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
12940
12941 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
12942
12943         PR target/40657
12944         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
12945         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
12946         here to determine which regs to push and how much stack to reserve.
12947
12948 2010-04-27  Jie Zhang  <jie@codesourcery.com>
12949
12950         * doc/gimple.texi (gimple_statement_with_ops): Remove
12951         addresses_taken field.
12952         (gimple_statement_with_memory_ops): Likewise.
12953
12954 2010-04-27  Jan Hubicka  <jh@suse.cz>
12955
12956         * tree-inline.c (eni_inlining_weights): Remove.
12957         (estimate_num_insns): Special case more builtins.
12958
12959 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
12960
12961         PR c/32207
12962         * c-typeck.c (build_binary_op): Move forward check for comparison
12963         pointer with null pointer constant and adjust the diagnostic message.
12964
12965 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
12966
12967         PR lto/42776
12968         * configure.ac (gcc_cv_as_section_has_align): Set if installed
12969         binutils supports extended .section directive needed by LTO, or
12970         warn if older binutils found.
12971         (LTO_BINARY_READER): New AC_SUBST'd variable.
12972         (LTO_USE_LIBELF): Likewise.
12973         * gcc/config.gcc (lto_binary_reader): New target-specific configure
12974         variable.
12975         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
12976         (LTO_USE_LIBELF): Likewise.
12977         * configure: Regenerate.
12978
12979         * collect2.c (is_elf): Rename from this ...
12980         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
12981          object files in addition to ELF-formatted ones.
12982         (scan_prog_file): Caller updated.  Also allow for LTO info marker
12983         symbol to be prefixed or not by an extra underscore.
12984
12985         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
12986         * config/i386/winnt.c: Also #include lto-streamer.h
12987         (i386_pe_asm_named_section): Specify 1-byte section alignment for
12988         LTO named sections.
12989         (i386_pe_asm_output_aligned_decl_common): Add comment.
12990         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
12991
12992 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
12993
12994         PR target/43889
12995         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
12996         Add missing earlyclobber for second alternative.
12997
12998 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
12999
13000         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
13001         bits for artificial defs at the top of the block.
13002         * fwprop.c (single_def_use_enter_block): Don't call it.
13003
13004 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
13005
13006         PR 43715
13007         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
13008         instead of "$gcc_cv_objdump -T".
13009         Use "-undefined dynamic_lookup" on darwin.
13010         * gcc/configure: Regenerate.
13011
13012 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
13013
13014         PR c/43893
13015         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
13016
13017 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
13018
13019         * c-parser.c (struct c_token): Move location field up.
13020         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
13021         (struct c_declspecs): Convert typespec_word, storage_class, and
13022         default_int_p into bitfields.
13023         (struct c_declarator): Move loc field up.
13024
13025 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
13026
13027         * cfgloop.h (struct loop): Move can_be_parallel field up.
13028         * ipa-prop.h (struct ip_node_params): Move bitfields up.
13029         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
13030         down.
13031         (struct iv_cand): Convert pos field into a bitfield.
13032         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
13033         field up.
13034         (struct _stmt_vec_info): Shuffle fields for better packing.
13035
13036 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
13037
13038         * varasm.c (IN_NAMED_SECTION): Remove guard.
13039         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
13040         (IN_NAMED_SECTION_P): ...this.
13041         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
13042         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
13043
13044 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
13045
13046         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
13047         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
13048         of shadowing it.  Fix comments.
13049
13050 2010-04-26  Jan Hubicka  <jh@suse.cz>
13051
13052         * cgraph.c (cgraph_create_node): Set node frequency to normal.
13053         (cgraph_clone_node): Copy function frequency.
13054         * cgraph.h (node_frequency): New enum
13055         (struct cgraph_node): Add.
13056         * final.c (rest_of_clean_state): Update.
13057         * lto-cgraph.c (lto_output_node): Output node frequency.
13058         (input_overwrite_node): Input node frequency.
13059         * tre-ssa-loop-ivopts (computation_cost): Update.
13060         * lto-streamer-out.c (output_function): Do not output function
13061         frequency.
13062         * predict.c (maybe_hot_frequency_p): Update and handle functions
13063         executed once.
13064         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
13065         attribute lookup.
13066         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
13067         (compute_function_frequency): Set noreturn functions to be executed
13068         once.
13069         (choose_function_section): Update.
13070         * lto-streamer-in.c (input_function): Do not input function frequency.
13071         * function.c (allocate_struct_function): Do not initialize function
13072         frequency.
13073         * function.h (function_frequency): Remove.
13074         (struct function): Remove function frequency.
13075         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
13076         (try_update): Update.
13077         * tree-inline.c (initialize_cfun): Do not update function frequency.
13078         * passes.c (pass_init_dump_file): Update.
13079         * i386.c (ix86_compute_frame_layout): Update.
13080         (ix86_pad_returns): Update.
13081
13082 2010-04-26  Jie Zhang  <jie@codesourcery.com>
13083
13084         PR tree-optimization/43833
13085         * tree-vrp.c (range_int_cst_p): New.
13086         (range_int_cst_singleton_p): New.
13087         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
13088         when both operands are constants.  Use range_int_cst_p in
13089         BIT_IOR_EXPR case.
13090
13091 2010-04-26  Jan Hubicka  <jh@suse.cz>
13092
13093         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
13094
13095 2010-04-26  Richard Guenther  <rguenther@suse.de>
13096
13097         PR lto/43080
13098         * gimple.c (gimple_decl_printable_name): Deal gracefully
13099         with a NULL DECL_NAME.
13100
13101 2010-04-26  Richard Guenther  <rguenther@suse.de>
13102
13103         PR lto/42425
13104         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
13105         if emitting debug information and it is either a function
13106         or a namespace decl.
13107
13108 2010-04-26  Ira Rosen  <irar@il.ibm.com>
13109
13110         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
13111         determine if the statement is vectorizable, and a macro to access it.
13112         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13113         Skip statements that can't be vectorized. If the analysis fails,
13114         mark the statement as unvectorizable if vectorizing basic block.
13115         (vect_compute_data_refs_alignment): Likewise.
13116         (vect_verify_datarefs_alignment): Skip statements marked as
13117         unvectorizable. Add print.
13118         (vect_analyze_group_access): Skip statements that can't be
13119         vectorized. If the analysis fails, mark the statement as
13120         unvectorizable if vectorizing basic block.
13121         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
13122         * tree-vect-stmts.c (vectorizable_store): Fix the number of
13123         generated stmts for SLP.
13124         (new_stmt_vec_info): Initialize the new field.
13125         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
13126         statements marked as unvectorizable.
13127
13128 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
13129
13130         * c-common.c (flag_isoc1x): New.
13131         (flag_isoc99): Update comment.
13132         * c-common.h (flag_isoc1x): New.
13133         (flag_isoc99): Update comment.
13134         * c-cppbuiltin.c (builtin_define_float_constants): Also define
13135         __<type>_DECIMAL_DIG__.
13136         * c-opts.c (set_std_c1x): New.
13137         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
13138         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
13139         * c.opt (-std=c1x, -std=gnu1x): New options.
13140         * doc/cpp.texi: Mention -std=c1x.
13141         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
13142         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
13143         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
13144         * doc/standards.texi: Mention C1X.
13145         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
13146         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
13147         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
13148         Define for C1X.
13149
13150 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
13151
13152         * config/i386/gmon-sol2.c (_mcleanup): Change format string
13153         placeholder from 0x%x to %#x.
13154         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
13155         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
13156         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
13157         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
13158         * config/i386/i386.c (ix86_target_string): Ditto.
13159         (output_pic_addr_const): Ditto.
13160         (print_operand): Ditto.
13161
13162 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
13163
13164         * combine.c (find_split_point): Add third argument.  Use it
13165         to find nested multiply-accumulate instructions.  Adjust calls.
13166         (try_combine): Adjust call to find_split_point.
13167
13168 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
13169
13170         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
13171
13172 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
13173
13174         PR tree-optimization/41442
13175         * fold-const.c (merge_truthop_with_opposite_arm): New function.
13176         (fold_binary_loc): Call it.
13177
13178 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13179
13180         * toplev.c (general_init): Set default for fdiagnostics-show-option.
13181         * opts.c (common_handle_option): Allow disabling it.
13182         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
13183
13184 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
13185
13186         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
13187         between modes if both types are integral.
13188
13189 2010-04-23  Richard Guenther  <rguenther@suse.de>
13190
13191         PR tree-optimization/43572
13192         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
13193
13194 2010-04-23  Richard Guenther  <rguenther@suse.de>
13195
13196         PR lto/43455
13197         * tree-inline.c (tree_can_inline_p): Also check compatibility
13198         of return types.
13199
13200 2010-04-23  Martin Jambor  <mjambor@suse.cz>
13201
13202         PR tree-optimization/43846
13203         * tree-sra.c (struct access): New flag grp_assignment_read.
13204         (build_accesses_from_assign): Set grp_assignment_read.
13205         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
13206         (enum mark_read_status): New type.
13207         (analyze_access_subtree): Propagate grp_assignment_read, create
13208         accesses also if both direct_read and root->grp_assignment_read.
13209
13210 2010-04-23  Martin Jambor  <mjambor@suse.cz>
13211
13212         PR middle-end/43835
13213         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
13214         function does not have type attributes.
13215
13216 2010-04-23  Richard Guenther  <rguenther@suse.de>
13217
13218         PR lto/42653
13219         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
13220         of FUNCTION_DECLs.
13221
13222 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
13223
13224         * sese.h (create_if_region_on_edge): Remove.
13225
13226         * sese.c (create_if_region_on_edge): Make static.
13227
13228         * tree-inline.c: Do not include ggc.h.
13229
13230         * expr.c: Do not include ggc.h.
13231
13232         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
13233         dependencies.
13234
13235 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
13236
13237         PR target/43744
13238         * config/sh/sh.c (find_barrier): Don't emit a constant pool
13239         in the middle of insns for casesi_worker_2.
13240
13241 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
13242
13243         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
13244
13245 2010-04-22  Ira Rosen  <irar@il.ibm.com>
13246
13247         PR tree-optimization/43842
13248         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
13249         loop unrolling in update of exit phis. Fix comment.
13250         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
13251         least two reduction statements in the loop before starting SLP
13252         analysis.
13253
13254 2010-04-22  Nick Clifton  <nickc@redhat.com>
13255
13256         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
13257
13258 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
13259
13260         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
13261         to simplify a + ~a.
13262
13263 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
13264
13265         * tree-parloops.c (loop_parallel_p): New argument
13266         parloop_obstack.  Pass it down.
13267         (parallelize_loops): New variable parloop_obstack.  Initialize it,
13268         pass it down, free it.
13269
13270         * tree-loop-linear.c (linear_transform_loops): Pass down
13271         lambda_obstack.
13272
13273         * tree-data-ref.h (lambda_compute_access_matrices): New argument
13274         of type struct obstack *.
13275
13276         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
13277         scratch_obstack.  Initialize it, pass down, free it.
13278
13279         * lambda.h (lambda_loop_new): Remove.
13280         (lambda_matrix_new, lambda_matrix_inverse)
13281         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
13282         argument of type struct obstack *.
13283
13284         * lambda-trans.c (lambda_trans_matrix_new): New argument
13285         lambda_obstack.  Pass it down, use obstack allocation for ret.
13286         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
13287         it down.
13288
13289         * lambda-mat.c (lambda_matrix_get_column)
13290         (lambda_matrix_project_to_null): Remove.
13291         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
13292         allocation for mat.
13293         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
13294         lambda_obstack.
13295
13296         * lambda-code.c (lambda_loop_new): New function.
13297         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
13298         (lambda_compute_auxillary_space, lambda_compute_target_space)
13299         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
13300         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
13301         (build_access_matrix): New argument lambda_obstack.  Use obstack
13302         allocation for am.
13303         (lambda_compute_step_signs, lambda_compute_access_matrices): New
13304         argument lambda_obstack.  Pass it down.
13305
13306 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
13307
13308         * optabs.h (expand_widening_mult): Declare.
13309
13310 2010-04-22  Richard Guenther  <rguenther@suse.de>
13311
13312         PR tree-optimization/43845
13313         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
13314         lookup the CALL_EXPR function and arguments.
13315
13316 2010-04-22  Nick Clifton  <nickc@redhat.com>
13317
13318         * config/stormy16/stormy16.c
13319         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
13320         * config/stormy16/stormy16.h: Tidy up formatting.
13321         (DONT_USE_BUILTIN_SETJMP): Remove definition.
13322         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
13323         (ineqbranchsi): Delete pattern.
13324         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
13325         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
13326         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
13327         stormy16-lib2-ucmpsi2.c.
13328
13329 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
13330
13331         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
13332         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
13333         extra set merge_set_noclobber, and use it to relax the final test
13334         slightly.
13335         * df.h (df_simulate_find_noclobber_defs): Declare.
13336         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
13337         conditional defs.
13338         (df_simulate_find_noclobber_defs): New function.
13339
13340 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
13341
13342         * config/i386/i386.md: Use {} around multi-line preparation statements.
13343
13344 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
13345
13346         * c-tree.h (push_init_level, pop_init_level, set_init_index)
13347         (process_init_element): New argument of type struct obstack *.
13348
13349         * c-typeck.c (push_init_level, pop_init_level, set_designator)
13350         (set_init_index, set_init_label, set_nonincremental_init)
13351         (set_nonincremental_init_from_string, find_init_member)
13352         (output_init_element, output_pending_init_elements)
13353         (process_init_element): New argument braced_init_obstack.  Pass it
13354         down.
13355         (push_range_stack, add_pending_init): New argument
13356         braced_init_obstack.  Use obstack allocation.
13357
13358         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
13359         braced_init_obstack.  Pass it down.
13360         (c_parser_braced_init): New variables ret, braced_init_obstack.
13361         Initialize obstack, pass it down and finally free it.
13362
13363 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
13364
13365         PR middle-end/29274
13366         * tree-pass.h (pass_optimize_widening_mul): Declare.
13367         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
13368         gate_optimize_widening_mul): New static functions.
13369         (pass_optimize_widening_mul): New.
13370         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
13371         <case MULT_EXPR>: Remove support for widening multiplies.
13372         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
13373         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
13374         simplify_gen_unary rather than directly building extensions.
13375         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
13376         WIDEN_MULT_EXPR.
13377         * expmed.c (expand_widening_mult): New function.
13378         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
13379
13380 2010-04-21  Jan Hubicka  <jh@suse.cz>
13381
13382         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
13383         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
13384         * lto-wpa-fixup.c: Remove.
13385         * Makefile.in (lto-wpa-fixup.o): Remove.
13386         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
13387         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
13388         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
13389
13390 2010-04-21  Jan Hubicka  <jh@suse.cz>
13391
13392         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
13393         add write_optimization_summary, read_optimization_summary.
13394         (ipa_write_summaries_of_cgraph_node_set): Remove.
13395         (ipa_write_optimization_summaries): Declare.
13396         (ipa_read_optimization_summaries): Declare.
13397         * ipa-cp.c (pass_ipa_cp): Update.
13398         * ipa-reference.c (pass_ipa_reference): Update.
13399         * ipa-pure-const.c (pass_ipa_pure_const): Update.
13400         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
13401         Update.
13402         * ipa-inline.c (pass_ipa_inline): Update.
13403         * ipa.c (pass_ipa_whole_program): Update.
13404         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
13405         * passes.c (ipa_write_summaries_1): Do not test wpa.
13406         (ipa_write_optimization_summaries_1): New.
13407         (ipa_write_optimization_summaries): New.
13408         (ipa_read_summaries): Do not test ltrans.
13409         (ipa_read_optimization_summaries_1): New.
13410         (ipa_read_optimization_summaries): New.
13411
13412 2010-04-21  Jan Hubicka  <jh@suse.cz>
13413
13414         * lto-cgraph.c (lto_output_node): Do not output comdat groups
13415         for boundary nodes.
13416         (output_cgraph): Do not arrange comdat groups for boundary nodes.
13417
13418 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
13419
13420         PR debug/40040
13421         * dwarf2out.c (add_name_and_src_coords_attributes): Add
13422         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
13423
13424 2010-04-21  Jan Hubicka  <jh@suse.cz>
13425
13426         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
13427
13428 2010-04-21  Jan Hubicka  <jh@suse.cz>
13429
13430         * varpool.c (decide_is_variable_needed): Variable is always needed
13431         during ltrans.
13432
13433 2010-04-21  Jan Hubicka  <jh@suse.cz>
13434
13435         * opts.c (decode_options): Enable pure-const pass for whopr.
13436
13437 2010-04-21  Jan Hubicka  <jh@suse.cz>
13438
13439         * cgraph.c (dump_cgraph_node): Dump also assembler name.
13440         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
13441         at WPA dumping.
13442         (cgraph_decide_inlining): Do not expect callee to be removed in all
13443         cases.
13444
13445 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
13446
13447         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
13448
13449 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
13450
13451         * config/i386/i386.md (x86_shrd): Add athlon_decode and
13452         amdfam10_decode attributes.
13453
13454 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
13455
13456         PR middle-end/43570
13457         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
13458         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
13459         (lower_copyprivate_clauses): Use private var in outer
13460         context instead of original var.  Make sure the types
13461         are correct for VLAs.
13462
13463 2010-04-21  Richard Guenther  <rguenther@suse.de>
13464
13465         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
13466         to non-pointer objects.
13467
13468 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
13469
13470         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
13471         last chain entry if it starts with the still current label.
13472         (add_location_or_const_value_attribute): Check that
13473         loc_list->first->next is NULL instead of comparing ->first with ->last.
13474         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
13475         to add_var_loc_to_decl.
13476
13477         * dwarf2out.c (output_call_frame_info): For dw_cie_version
13478         >= 4 add also address size and segment size fields into CIE header.
13479
13480         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
13481         long as address size is the same as sizeof (void *) and
13482         segment size is 0.
13483         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
13484         address size or segment size is unexpected, return DW_EH_PE_omit.
13485         (classify_object_over_fdes): If get_cie_encoding returned
13486         DW_EH_PE_omit, return -1.
13487         (init_object): If classify_object_over_fdes returned -1,
13488         pretend there were no FDEs at all.
13489
13490 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
13491
13492         * config/i386/i386.md (bswap<mode>2): Macroize expander from
13493         bswap{si,di}2 using SWI48 mode iterator.
13494         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
13495         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
13496         set modrm attribute of bswap insn to 0 and remove length attribute.
13497         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
13498         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
13499         set mode attribute to <MODE> and remove length attribute.
13500
13501 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
13502
13503         PR rtl-optimization/43520
13504         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
13505         zero available registers.
13506
13507 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13508
13509         * builtins.c (fold_builtin_cproj): Fold more cases.
13510
13511 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13512
13513         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
13514         (fold_builtin_1): Fold builtin cproj.
13515         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
13516         Use ATTR_CONST_NOTHROW_LIST.
13517
13518 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
13519
13520         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
13521         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
13522         ffsi2_no_cmove for !TARGET_CMOVE.
13523         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
13524         (ffssi2): Remove expander.
13525         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
13526         mode iterator.
13527         (ctz<mode>2): Ditto from ctz{si,di}2.
13528         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
13529         mode iterator.
13530         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
13531         mode iterator.
13532
13533 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
13534
13535         * dwarf2out.c (AT_linkage_name): Define.
13536         (clone_as_declaration): Handle DW_AT_linkage_name.
13537         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
13538         of DW_AT_MIPS_linkage_name.
13539         (move_linkage_attr): Likewise.
13540         (dwarf2out_finish): Likewise.
13541
13542 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
13543
13544         PR middle-end/41952
13545         * fold-const.c (fold_comparison): New folding rule.
13546
13547 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
13548
13549         * double-int.h (double_int_setbit): Declare.
13550         * double-int.c (double_int_setbit): New function.
13551         * rtl.h (immed_double_int_const): Declare.
13552         * emit-rtl.c (immed_double_int_const): New function.
13553         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
13554         and immed_double_int_const functions.
13555         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
13556         expand_copysign_bit):  (Ditto.).
13557         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
13558         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
13559         * dojump.c (prefer_and_bit_test): (Ditto.).
13560         * expr.c (convert_modes, reduce_to_bit_field_precision,
13561         const_vector_from_tree): (Ditto.).
13562         * expmed.c (mask_rtx, lshift_value): (Ditto.).
13563
13564 2010-04-20  Jan Hubicka  <jh@suse.cz>
13565
13566         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
13567         (dump_cgraph_node): Dump new flags.
13568         * cgraph.h (struct cgraph_node): Add flags
13569         reachable_from_other_partition and in_other_partition.
13570         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
13571         other partition can not be removed.
13572         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
13573         the other partition must be output; silence sanity checking on
13574         leaking functions bodies from other paritition.
13575         * lto-cgraph.c (reachable_from_other_partition_p): New function.
13576         (lto_output_node): Output new flags; do not sanity check that inline
13577         clones are output; drop lto_forced_extern_inline_p code; do not mock
13578         visibility flags at partition boundaries.
13579         (add_node_to): New function.
13580         (output_cgraph): Use it to sort functions so masters appear before
13581         clones.
13582         (input_overwrite_node): Input new flags.
13583         * passes.c (ipa_write_summaries): Do not call
13584         lto_new_extern_inline_states.
13585         * lto-section-out.c (forced_extern_inline,
13586         lto_new_extern_inline_states lto_delete_extern_inline_states,
13587         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
13588         * lto-streamer.h (lto_new_extern_inline_states,
13589         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
13590         lto_forced_extern_inline_p): Kill.
13591
13592 2010-04-20  Richard Guenther  <rguenther@suse.de>
13593
13594         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
13595         from vars that can have pointers.
13596         (process_constraint): Dump useless constraints.
13597
13598 2010-04-20  Richard Guenther  <rguenther@suse.de>
13599
13600         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
13601         (dump_sa_points_to_info): Remove asserts.
13602         (init_base_vars): nothing_id isn't an escape point nor does it
13603         have pointers.
13604
13605 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
13606
13607         * tree.h (TYPE_REF_IS_RVALUE): Define.
13608         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
13609         should_move_die_to_comdat, prune_unused_types_walk): Handle
13610         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
13611         (modified_type_die, gen_reference_type_die): Emit
13612         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
13613         if TYPE_REF_IS_RVALUE and -gdwarf-4.
13614
13615 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13616
13617         PR target/43635
13618         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
13619         calls for -fpic -m31 if they have been sibcall optimized.
13620
13621 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
13622
13623         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
13624         ar.lc fixed and call-used.
13625
13626         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
13627
13628 2010-04-19  Jan Hubicka  <jh@suse.cz>
13629
13630         * opts.c (decode_options): Disable whpr incompatible passes.
13631         * lto/lto.c (lto_1_to_1_map): Skip clones.
13632         (read_cgraph_and_symbols): Do not mark everything as needed.
13633         (do_whole_program_analysis): Do map only after optimizing;
13634         set proper cgraph_state; use passmanager.
13635
13636 2010-04-19  DJ Delorie  <dj@redhat.com>
13637
13638         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
13639         POINTER_PLUS_EXPR and fix them.
13640
13641 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
13642
13643         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
13644         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
13645         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
13646         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
13647         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
13648         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
13649         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
13650         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
13651         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
13652         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
13653         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
13654
13655 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
13656
13657         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
13658         (check_cond_move_block): Likewise.
13659         (cond_move_process_if_block): Likewise.
13660         (noce_find_if_block): Improve formatting.
13661         (find_if_header): Pass 0 to memset and tweak conditions.
13662         (cond_exec_find_if_block): Fix long lines and tweak conditions.
13663
13664 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
13665
13666         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
13667         for -gdwarf-4.
13668
13669         PR middle-end/43337
13670         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
13671         with non-local decl doesn't need chain.
13672
13673 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
13674
13675         * ira-color.c (allocno_reload_assign): Avoid accumulating
13676         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
13677
13678 2010-04-19  Martin Jambor  <mjambor@suse.cz>
13679
13680         * gimple.h (create_tmp_reg): Declare.
13681         * gimplify.c (create_tmp_reg): New function.
13682         (gimplify_return_expr): Use create_tmp_reg.
13683         (gimplify_omp_atomic): Likewise.
13684         (gimple_regimplify_operands): Likewise.
13685         * tree-dfa.c (make_rename_temp): Likewise.
13686         * tree-predcom.c (predcom_tmp_var): Likewise.
13687         (reassociate_to_the_same_stmt): Likewise.
13688         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
13689         (get_replaced_param_substitute): Likewise.
13690         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
13691         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
13692         * tree-ssa-pre.c (get_representative_for): Likewise.
13693         (create_expression_by_pieces): Likewise.
13694         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
13695         (create_tailcall_accumulator): Likewise.
13696
13697 2010-04-19  Martin Jambor  <mjambor@suse.cz>
13698
13699         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
13700         new_stmt.
13701         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
13702
13703 2010-04-19  Richard Guenther  <rguenther@suse.de>
13704
13705         PR tree-optimization/43796
13706         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
13707         from SCEV in the lattice.
13708         (vrp_visit_phi_node): Dump change.
13709
13710 2010-04-19  Richard Guenther  <rguenther@suse.de>
13711
13712         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
13713         * configure: Re-generated.
13714
13715 2010-04-19  Richard Guenther  <rguenther@suse.de>
13716
13717         PR tree-optimization/43783
13718         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
13719         constant ARRAY_REF operands two and three if possible.
13720
13721 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
13722
13723         PR target/43766
13724         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
13725
13726 2010-04-19  Jie Zhang  <jie@codesourcery.com>
13727
13728         PR target/43662
13729         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
13730
13731 2010-04-19  Ira Rosen  <irar@il.ibm.com>
13732
13733         PR tree-optimization/37027
13734         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
13735         and macro to access it.
13736         (vectorizable_reduction): Add argument.
13737         (vect_get_slp_defs): Likewise.
13738         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
13739         statements for possible use in SLP.
13740         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
13741         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
13742         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
13743         add new argument.
13744         (vectorizable_reduction): Likewise.
13745         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
13746         vect_get_slp_defs.
13747         (vectorizable_type_demotion, vectorizable_type_promotion,
13748         vectorizable_store): Likewise.
13749         (vect_analyze_stmt): Update call to vectorizable_reduction.
13750         (vect_transform_stmt): Likewise.
13751         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
13752         (vect_build_slp_tree): Fix indentation. Check that there are no loads
13753         from different interleaving chains in same node.
13754         (vect_slp_rearrange_stmts): New function.
13755         (vect_supported_load_permutation_p): Allow load permutations for
13756         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
13757         inside SLP nodes if necessary.
13758         (vect_analyze_slp_instance): Handle reductions.
13759         (vect_analyze_slp): Try to build SLP instances originating from groups
13760         of reductions.
13761         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
13762         (vect_get_constant_vectors): Create initial vectors for reductions
13763         according to reduction code. Add new argument.
13764         (vect_get_slp_defs): Add new argument, pass it to
13765         vect_get_constant_vectors.
13766         (vect_schedule_slp_instance): Remove SLP tree root statements.
13767
13768 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
13769
13770         * tree.h (ENUM_IS_SCOPED): Define.
13771         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
13772         for ENUM_IS_SCOPED enums.
13773
13774 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
13775
13776         * fold-const.c (fold_comparison): Use ssizetype.
13777         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
13778         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
13779         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
13780         * tree-object-size.c (compute_object_sizes): Use size_type_node.
13781
13782         * tree.h (initialize_sizetypes): Remove parameter.
13783         (build_common_tree_nodes): Remove second parameter.
13784         * stor-layout.c (initialize_sizetypes): Remove parameter.
13785         Always create an unsigned type.
13786         (set_sizetype): Assert that the passed type is unsigned and simplify.
13787         * tree.c (build_common_tree_nodes): Remove second parameter.
13788         Adjust call to initialize_sizetypes.
13789         * c-decl.c (c_init_decl_processing): Remove second argument in call to
13790         build_common_tree_nodes.
13791
13792 2010-04-18  Matthias Klose  <doko@ubuntu.com>
13793
13794         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
13795
13796 2010-04-18  Ira Rosen  <irar@il.ibm.com>
13797
13798         PR tree-optimization/43771
13799         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
13800         load permutation doesn't have gaps.
13801
13802 2010-04-18  Jan Hubicka  <jh@suse.cz>
13803
13804         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
13805         (sse_prologue_save_insn expander): Use new pattern.
13806         (sse_prologue_save_insn1): New pattern and splitter.
13807         (sse_prologue_save_insn): Update to deal also with 64bit aligned
13808         blocks.
13809         * i386.c (setup_incoming_varargs_64): Do not compute jump
13810         destination here.
13811         (ix86_gimplify_va_arg): Update alignment needed.
13812         (ix86_local_alignment): Do not align all local arrays to 128bit.
13813
13814 2010-04-17  Jan Hubicka  <jh@suse.cz>
13815
13816         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
13817
13818 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
13819
13820         * arm.md (negdi2): Remove redundant code to force values into a
13821         register.
13822
13823 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
13824
13825         * arm/bpabi.S: Add EABI alignment attributes to objects.
13826         * arm/bpabi-v6m.S: Likewise.
13827         * arm/crti.asm: Likewise.
13828         * arm/crtn.asm: Likewise.
13829         * arm/lib1funcs.asm: Likewise.
13830         * arm/libunwind.S: Likewise.
13831
13832 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
13833
13834         * arm-protos.h (tune_params): New structure.
13835         * arm.c (current_tune): New variable.
13836         (arm_constant_limit): Delete.
13837         (struct processors): Add pointer to the tune parameters.
13838         (arm_slowmul_tune): New tuning option.
13839         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
13840         (all_cores): Adjust to pick up the tuning model.
13841         (arm_constant_limit): New function.
13842         (arm_override_options): Select the appropriate tuning model.  Delete
13843         initialization of arm_const_limit.
13844         (arm_split_constant): Use the new constant-limit model.
13845         (arm_rtx_costs): Pick up the current tuning model.
13846         * arm.md (is_strongarm, is_xscale): Delete.
13847         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
13848         for Xscale variant architectures.
13849         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
13850
13851 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13852
13853         * config/arm/arm.c (arm_gen_constant): Remove unused variable
13854         can_shift.
13855         (arm_rtx_costs_1): Remove unused variable extra_cost.
13856         (arm_unwind_emit_set): Use variable offset.
13857         (thumb1_output_casesi): Remove unused variable flags.
13858
13859 2010-04-16  Jeff Law  <law@redhat.com>
13860
13861         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
13862         needing assignment rather than doing a two-phase assignment.  Remove
13863         unused variable 'm'.
13864
13865 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
13866
13867         PR bootstrap/43767
13868         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
13869
13870 2010-04-16  Doug Kwan  <dougkwan@google.com>
13871
13872         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
13873         (next_operand_entry_id): New static variable.
13874         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
13875         (add_to_ops_vec): Assigned unique ID to operand entry.
13876         (struct oecount_s): New field ID.
13877         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
13878         (undistribute_ops_list): Assign unique IDs to oecounts.
13879         (init_reassoc): reset next_operand_entry_id.
13880
13881 2010-04-16  Doug Kwan  <dougkwan@google.com>
13882
13883         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
13884         missing left parenthesis.
13885
13886 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
13887
13888         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
13889         *btdi_rex64 using SWI48 mode iterator.
13890         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
13891         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
13892         *jcc_btdi_mask_rex64.
13893
13894 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
13895
13896         * double-int.h (tree_to_double_int): Convert to macro.
13897         * double-int.c (tree_to_double_int): Remove.
13898
13899 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
13900
13901         PR debug/43762
13902         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
13903         with want_address 2 and in case a single element list might be
13904         possible, call it again with want_address 0.
13905
13906 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
13907
13908         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
13909         case 'W' print operands for HI mode.
13910         * config/h8300/h8300.h (Y0, Y2) : New constraints.
13911         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
13912         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
13913         * config/h8300/predicate.md (bit_register_indirect_operand): New.
13914
13915         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
13916
13917         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
13918         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
13919         #xx:3 and #xx:4 mode.
13920
13921         * config/h8300/h8300.md (inverted load with HImode dest): Add
13922         support for H8300SX.
13923
13924         * config/h8300/predicate.md (bit_operand): Allow immediate values that
13925         satisfy 'U' constraint.
13926
13927 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13928
13929         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
13930         * configure: Regenerate.
13931         * config.in: Regenerate.
13932         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
13933         works.
13934
13935 2010-04-16  Richard Guenther  <rguenther@suse.de>
13936
13937         * tree.h (struct tree_decl_minimal): Move pt_uid ...
13938         (struct tree_decl_common): ... here.
13939         (DECL_PT_UID): Adjust.
13940         (SET_DECL_PT_UID): Likewise.
13941         (DECL_PT_UID_SET_P): Likewise.
13942
13943 2010-04-16  Richard Guenther  <rguenther@suse.de>
13944
13945         PR tree-optimization/43572
13946         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
13947         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
13948         * tree-flow.h (is_call_clobbered): Remove.
13949         * tree-flow-inline.h (is_call_clobbered): Likewise.
13950         * tree-dfa.c (dump_variable): Do not dump call clobber state.
13951         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
13952         (execute_return_slot_opt): Adjust.
13953         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
13954         check for call clobbered vars here.
13955         (find_tail_calls): Move tailcall verification to the
13956         proper place.
13957
13958 2010-04-16  Diego Novillo  <dnovillo@google.com>
13959
13960         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
13961
13962 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
13963
13964         PR target/40603
13965         * config/arm/arm.md (cbranchqi4): New pattern.
13966         * config/arm/predicates.md (const0_operand,
13967         cbranchqi4_comparison_operator): New predicates.
13968
13969 2010-04-16  Richard Guenther  <rguenther@suse.de>
13970
13971         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
13972         (dump_gimple_stmt): Likewise.
13973
13974 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
13975
13976         * recog.h (struct recog_data): New field is_operator.
13977         (struct insn_operand_data): New field is_operator.
13978         * recog.c (extract_insn): Set recog_data.is_operator.
13979         * genoutput.c (output_operand_data): Emit code to set the
13980         is_operator field.
13981         * reload.c (find_reloads): Use it rather than testing for an
13982         empty constraint string.
13983
13984         PR target/41514
13985         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
13986         If the previous insn is a cbranchsi4_insn with the same arguments,
13987         omit the compare instruction.
13988
13989         * config/arm/arm.md (addsi3_cbranch): If destination is a high
13990         register, inputs must be low registers and we need a low register
13991         scratch.  Handle alternative 2 like alternative 3.
13992
13993 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
13994
13995         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
13996         don't call get_addr on both.  If one expression is a VALUE and
13997         the other a REG, check VALUE's locs if the REG isn't among them.
13998
13999 2010-04-16  Christian Bruel  <christian.bruel@st.com>
14000
14001         * config/sh/sh.h (sh_frame_pointer_required): New function.
14002         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
14003         (flag_omit_frame_pointer) Set.
14004         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
14005         (rounded_frame_size): Adjust size with outgoing_args_size.
14006         (sh_set_return_address): Must return from stack pointer.
14007         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
14008         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
14009         (ACCUMULATE_OUTGOING_ARGS): Define.
14010         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
14011         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
14012
14013 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
14014
14015         PR target/43471
14016         * config/sh/sh.c (sh_legitimize_reload_address): Use
14017         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
14018         Remove a unneeded check for offset_base.
14019
14020 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
14021
14022         * configure: Regenerated.
14023
14024 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14025
14026         * config/s390/s390.c (s390_call_save_register_used): Switch back
14027         to HARD_REGNO_NREGS.
14028
14029 2010-04-15  Richard Guenther  <rguenther@suse.de>
14030
14031         * alias.c (alias_set_subset_of): Handle alias-set zero
14032         child properly.
14033
14034 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
14035             Julian Brown  <julian@codesourcery.com>
14036
14037         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
14038         alternatives according to use of high and low regs.
14039         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
14040         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
14041         optimizing for size on Thumb-2.
14042
14043 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
14044
14045         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
14046
14047 2010-04-15  Richard Guenther  <rguenther@suse.de>
14048
14049         * tree-ssa-structalias.c (struct variable_info): Add
14050         is_fn_info flag.
14051         (new_var_info): Initialize it.
14052         (dump_constraints): Support printing last added constraints.
14053         (debug_constraints): Adjust.
14054         (dump_constraint_graph): Likewise.
14055         (make_heapvar_for): Check for NULL cfun.
14056         (get_function_part_constraint): New function.
14057         (get_fi_for_callee): Likewise.
14058         (find_func_aliases): Properly implement IPA PTA constraints.
14059         (process_ipa_clobber): New function.
14060         (find_func_clobbers): Likewise.
14061         (insert_into_field_list_sorted): Remove.
14062         (create_function_info_for): Properly allocate vars for IPA mode.
14063         Do not use insert_into_field_list_sorted.
14064         (create_variable_info_for): Properly generate constraints for
14065         global vars in IPA mode.
14066         (dump_solution_for_var): Always dump the solution.
14067         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
14068         (find_what_var_points_to): Adjust.
14069         (pt_solution_set): Change.
14070         (pt_solution_ior_into): New function.
14071         (pt_solution_empty_p): Export.
14072         (pt_solution_includes_global): Adjust.
14073         (pt_solution_includes_1): Likewise.
14074         (pt_solutions_intersect_1): Likewise.
14075         (dump_sa_points_to_info): Check some invariants.
14076         (solve_constraints): Move constraint dumping ...
14077         (compute_points_to_sets): ... here.
14078         (ipa_pta_execute): ... and here.
14079         (compute_may_aliases): Do not re-compute points-to info
14080         locally if IPA info is available.
14081         (ipa_escaped_pt): New global var.
14082         (ipa_pta_execute): Properly implement IPA PTA.
14083         * tree-into-ssa.c (dump_decl_set): Support dumping
14084         decls not in referenced-vars.
14085         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
14086         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
14087         (dump_points_to_solution): Likewise.
14088         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
14089         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
14090         (remap_gimple_stmt): Reset call clobber/use information if necessary.
14091         (copy_decl_to_var): Copy DECL_PT_UID.
14092         (copy_result_decl_to_var): Likewise.
14093         * tree.c (make_node_stat): Initialize DECL_PT_UID.
14094         (copy_node_stat): Copy it.
14095         * tree.h (DECL_PT_UID): New macro.
14096         (SET_DECL_PT_UID): Likewise.
14097         (DECL_PT_UID_SET_P): Likewise.
14098         (struct tree_decl_minimal): Add pt_uid member.
14099         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
14100         (pt_solution_empty_p): Declare.
14101         (pt_solution_set): Adjust.
14102         (ipa_escaped_pt): Declare.
14103         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
14104         * gimple-pretty-print.c (pp_points_to_solution): New function.
14105         (dump_gimple_call): Dump call clobber/use information.
14106         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
14107         * tree-pass.h (TDF_ALIAS): New dump option.
14108         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
14109         * doc/invoke.texi (-fipa-pta): Update documentation.
14110
14111 2010-04-15  Richard Guenther  <rguenther@suse.de>
14112
14113         * Makefile.in (OBJS-common): Add gimple-fold.o.
14114         (gimple-fold.o): New rule.
14115         * tree.h (maybe_fold_offset_to_reference,
14116         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
14117         prototypes ...
14118         * gimple.h: ... here.
14119         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
14120         may_propagate_address_into_dereference): Move prototypes ...
14121         * gimple.h: ... here.
14122         * tree-ssa-ccp.c (get_symbol_constant_value,
14123         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
14124         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
14125         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
14126         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
14127         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
14128         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
14129         gimplify_and_update_call_from_tree): Move ...
14130         * gimple-fold.c: ... here.  New file.
14131         (ccp_fold_builtin): Rename to ...
14132         (gimple_fold_builtin): ... this.
14133         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
14134
14135 2010-04-15  Richard Guenther  <rguenther@suse.de>
14136
14137         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
14138         fit_double_type, force_fit_type_double, add_double_with_sign,
14139         neg_double, mul_double_with_sign, lshift_double, rshift_double,
14140         lrotate_double, rrotate_double, div_and_round_double): Move ...
14141         * double-int.c: ... here.
14142         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
14143         add_double, neg_double, mul_double_with_sign, mul_double,
14144         lshift_double, rshift_double, lrotate_double, rrotate_double,
14145         div_and_round_double): Move prototypes ...
14146         * double-int.h: ... here.
14147
14148 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
14149
14150         PR target/43742
14151         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
14152         matching constraints to ensure inputs match the output.
14153
14154 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
14155
14156         PR target/43742
14157         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
14158         in an input-only operand.
14159
14160 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
14161
14162         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
14163         (double_int_not, double_int_lshift, double_int_rshift): Declare.
14164         (double_int_negative_p): Convert to static inline function.
14165         * double-int.c (double_int_lshift, double_int_lshift): New functions.
14166         (double_int_negative_p): Remove.
14167         * tree.h (lshift_double, rshift_double):
14168         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
14169         * fold-const.c (fold_convert_const_int_from_real,
14170         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
14171         (lshift_double): Change type of arith argument to bool.
14172         (rshift_double): Change type of arith argument to bool. Correct
14173         comment.
14174         * expmed.c (mask_rtx, lshift_value): (Ditto.).
14175
14176 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
14177
14178         PR target/21803
14179         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
14180         at the start and end of the then/else blocks, and omit them from the
14181         conversion.
14182         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
14183         argument; all callers changed.  Pass zero to old_insns_match_p instead.
14184         (flow_find_head_matching_sequence): New function.
14185         (old_insns_match_p): Check REG_EH_REGION notes for calls.
14186         * basic-block.h (flow_find_cross_jump,
14187         flow_find_head_matching_sequence): Declare functions.
14188
14189 2010-04-14  Jason Merrill  <jason@redhat.com>
14190
14191         PR c++/36625
14192         * c-common.c (attribute_takes_identifier_p): New fn.
14193         * c-common.h: Declare it.
14194
14195 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
14196
14197         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
14198         splitter condition.
14199         (*udivmod<mode>4): Ditto.
14200
14201 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
14202
14203         * config/i386/i386.md (maxmin_int): Rename code attribute from
14204         maxminiprefix and update all users.
14205         (maxmin_float): Ditto from maxminfprefix.
14206         (logic): Ditto from logicprefix.
14207         (absneg_mnemonic): Ditto from absnegprefix.
14208         * config/i386/mmx.md: Update all users of maxminiprefix,
14209         maxminfprefix and logicprefix for rename.
14210         * config/i386/sse.md: Ditto.
14211         * config/i386/sync.md (sync_<code><mode>): Update for
14212         logicprefix rename.
14213
14214 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14215
14216         PR 42966
14217         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
14218         warnings converted to errors.
14219
14220 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
14221
14222         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
14223         used insn_type variable.
14224         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
14225         to avoid set-but-not-used warning.
14226
14227 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
14228
14229         * df-core.c (df_ref_debug): Change format string placeholder
14230         from 0x%x to %#x.
14231         * dwarf2asm.c (dw2_asm_output_data_raw,
14232         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
14233         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
14234         * dwarf2out.c (output_cfi, output_cfi_directive,
14235         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
14236         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
14237         Ditto.
14238         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
14239         * print-rtl.c (print_rtx): Ditto.
14240
14241 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
14242
14243         PR middle-end/42694
14244         * builtins.c (expand_builtin_pow_root): New function to expand pow
14245         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
14246         series of sqrt and cbrt calls under -ffast-math.
14247         (expand_builtin_pow): Call it.
14248
14249 2010-04-14  Michael Matz  <matz@suse.de>
14250
14251         PR tree-optimization/42963
14252         * tree-cfg.c (touched_switch_bbs): New static variable.
14253         (group_case_labels_stmt): New function broken out from ...
14254         (group_case_labels): ... here, use the above.
14255         (start_recording_case_labels): Allocate touched_switch_bbs.
14256         (end_recording_case_labels): Deallocate it, call
14257         group_case_labels_stmt.
14258         (gimple_redirect_edge_and_branch): Remember index of affected BB.
14259
14260 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
14261
14262         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
14263         from insn template.
14264
14265 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
14266
14267         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
14268
14269 2010-04-13  Jan Hubicka  <jh@suse.cz>
14270
14271         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
14272         of optimized out static functions.
14273         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
14274         cost computation.  Also sanity check for overflows.
14275         (update_caller_keys): Update cgraph_edge_badness call; properly
14276         update fibheap and sanity check that it is up to date.
14277         (add_new_edges_to_heap): Update cgraph_edge_badness.
14278         (cgraph_decide_inlining_of_small_function): Likewise;
14279         add sanity checking that badness in heap is up to date;
14280         improve dumping of reason; Update badness of calls to the
14281         offline copy of function currently inlined; dump badness
14282         of functions not inlined because of unit growth limits.
14283
14284 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
14285
14286         PR middle-end/32628
14287         * c-common.c (pointer_int_sum): Disregard overflow that occured only
14288         because of sign-extension change when converting to sizetype here...
14289         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
14290
14291         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
14292         the folding to constants.  Remove redundant final conversion.
14293         (fold_binary) <associate>: Do not associate if the re-association of
14294         constants alone overflows.
14295         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
14296         to the end of the list.
14297         (multiple_of_p) <COND_EXPR>: New case.
14298
14299 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14300
14301         * opt-functions.awk (opt_sanitized_name): New.
14302         (opt_enum): New.
14303         * optc-gen.awk: Use it
14304         * opth-gen.awk: Use it.
14305
14306 2010-04-13  Martin Jambor  <mjambor@suse.cz>
14307
14308         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
14309         (sra_modify_assign): Delete stmts loading dead data even if racc has no
14310         children.  Call replace_uses_with_default_def_ssa_name to handle
14311         SSA_NAES on lhs.
14312
14313 2010-04-13  Michael Matz  <matz@suse.de>
14314
14315         PR middle-end/43730
14316         * builtins.c (expand_builtin_interclass_mathfn): Also create
14317         a register if the predicate doesn't match.
14318
14319 2010-04-13  Diego Novillo  <dnovillo@google.com>
14320
14321         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
14322         * c-pch.c: Include timevar.h.
14323         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
14324         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
14325         * ggc-common.c: Include timevar.h.
14326         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
14327         * timevar.def (TV_PCH_SAVE): Define.
14328         (TV_PCH_CPP_SAVE): Define.
14329         (TV_PCH_PTR_REALLOC): Define.
14330         (TV_PCH_PTR_SORT): Define.
14331         (TV_PCH_RESTORE): Define.
14332         (TV_PCH_CPP_RESTORE): Define.
14333
14334 2010-04-13  Michael Matz  <matz@suse.de>
14335
14336         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
14337         into MINUS_EXPRs.
14338         (can_reassociate_p): New function.
14339         (break_up_subtract_bb, reassociate_bb): Use it.
14340
14341 2010-04-13  Richard Guenther  <rguenther@suse.de>
14342
14343         PR bootstrap/43737
14344         * builtins.c (c_readstr): Fix assert.
14345
14346 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
14347
14348         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
14349         when generating cltd insn.
14350
14351         (*ashl<mode>3_1): Remove special handling for register operand 2.
14352         (*ashlsi3_1_zext): Ditto.
14353         (*ashlhi3_1): Ditto.
14354         (*ashlhi3_1_lea): Ditto.
14355         (*ashlqi3_1): Ditto.
14356         (*ashlqi3_1_lea): Ditto.
14357         (*<shiftrt_insn><mode>3_1): Ditto.
14358         (*<shiftrt_insn>si3_1_zext): Ditto.
14359         (*<shiftrt_insn>qi3_1_slp): Ditto.
14360         (*<rotate_insn><mode>3_1): Ditto.
14361         (*<rotate_insn>si3_1_zext): Ditto.
14362         (*<rotate_insn>qi3_1_slp): Ditto.
14363
14364 2010-04-13  Richard Guenther  <rguenther@suse.de>
14365
14366         * tree-ssa-structalias.c (callused_id): Remove.
14367         (call_stmt_vars): New.
14368         (get_call_vi): Likewise.
14369         (lookup_call_use_vi): Likewise.
14370         (lookup_call_clobber_vi): Likewise.
14371         (get_call_use_vi): Likewise.
14372         (get_call_clobber_vi): Likewise.
14373         (make_transitive_closure_constraints): Likewise.
14374         (handle_const_call): Adjust to do per-call call-used handling.
14375         (handle_pure_call): Likewise.
14376         (find_what_var_points_to): Remove general callused handling.
14377         (init_base_vars): Likewise.
14378         (init_alias_vars): Initialize call_stmt_vars.
14379         (compute_points_to_sets): Process call-used and call-clobbered
14380         vars for call statements.
14381         (delete_points_to_sets): Free call_stmt_vars.
14382
14383 2010-04-13  Richard Guenther  <rguenther@suse.de>
14384
14385         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
14386         Only add RW dependence for dependence distance zero.
14387         Adjust maximal vectorization factor according to dependences.
14388         Move alignment handling ...
14389         (vect_find_same_alignment_drs): ... here.  New function.
14390         (vect_analyze_data_ref_dependences): Adjust.
14391         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
14392         (vect_analyze_data_refs): Adjust minimal vectorization factor
14393         according to data references.
14394         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
14395         dependences before determining the vectorization factor.
14396         Analyze alignment after determining the vectorization factor.
14397         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
14398         dependences before alignment.
14399         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
14400         Adjust prototype.
14401         (vect_analyze_data_refs): Likewise.
14402         (MAX_VECTORIZATION_FACTOR): New define.
14403
14404 2010-04-13  Duncan Sands  <baldrick@free.fr>
14405
14406         * except.h (lang_eh_type_covers): Remove.
14407         * except.c (lang_eh_type_covers): Likewise.
14408
14409 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14410             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14411
14412         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
14413         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
14414         UNITS_PER_LONG where it is ABI relevant.
14415         (s390_return_addr_rtx): Likewise.
14416         (s390_back_chain_rtx): Likewise.
14417         (s390_frame_area): Likewise.
14418         (s390_frame_info): Likewise.
14419         (s390_initial_elimination_offset): Likewise.
14420         (save_gprs): Likewise.
14421         (s390_emit_prologue): Likewise.
14422         (s390_emit_epilogue): Likewise.
14423         (s390_function_arg_advance): Likewise.
14424         (s390_function_arg): Likewise.
14425         (s390_va_start): Likewise.
14426         (s390_gimplify_va_arg): Likewise.
14427         (s390_function_profiler): Likewise.
14428         (s390_optimize_prologue): Likewise.
14429         (s390_rtx_costs): Likewise.
14430         (s390_secondary_reload): Likewise.
14431         (s390_promote_function_mode): Likewise.
14432         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
14433         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
14434         registers available.
14435         (s390_unwind_word_mode): New function.
14436         (s390_function_value): Split 64 bit values into register pair if
14437         used as return value.
14438         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
14439         function call parameters.  Handle parallels.
14440         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
14441         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
14442         (DWARF_CIE_DATA_ALIGNMENT): New macro.
14443         (s390_expand_setmem): Remove unused variable src_addr.
14444         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
14445         deal with 64 bit registers.
14446         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
14447         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
14448         (UNITS_PER_LONG): New macro.
14449         * libjava/include/s390-signal.h: Define extended ucontext
14450         structure containing the upper halfs of the 64 bit registers.
14451
14452 2010-04-13  Simon Baldwin  <simonb@google.com>
14453
14454         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
14455
14456 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
14457
14458         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
14459         rvalue on the RHS if the LHS is of a non-renamable type.
14460         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
14461
14462 2010-04-13  Matthias Klose  <doko@ubuntu.com>
14463
14464         * gcc.c (cc1_options): Handle -iplugindir before processing
14465         the cc1 spec. Only add -iplugindir once.
14466         (cpp_unique_options): Add -iplugindir option if -fplugin* options
14467         found.
14468         * common.opt (iplugindir): Remove `Separate' property, initialize.
14469         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
14470         option.
14471         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
14472         (distclean): Remove plugin dir.
14473         * doc/invoke.texi: Document -iplugindir.
14474
14475 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
14476
14477         * doc/plugins.texi (Loading Plugins): Document short
14478         -fplugin=foo option.
14479         (Plugin API): Mention default_plugin_dir_name function.
14480
14481         * gcc.c (find_file_spec_function): Add new declaration.
14482         (static_spec_func): Use it for "find-file".
14483         (find_file_spec_function): Add new function.
14484         (cc1_options): Add -iplugindir option if -fplugin* options found.
14485
14486         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
14487
14488         * plugin.c (add_new_plugin): Updated comment, and handle short
14489         plugin name.
14490         (default_plugin_dir_name): Added new function.
14491
14492         * common.opt (iplugindir): New option to set the plugin directory.
14493
14494 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
14495
14496         * config/i386/i386.md (any_rotate): New code iterator.
14497         (rotate_insn): New code attribute.
14498         (rotate): Ditto.
14499         (SWIM124): New mode iterator.
14500         (<rotate_insn>ti3): New expander.
14501         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
14502         any_rotate code iterator.
14503         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
14504         using any_rotate code iterator and SWIM124 mode iterator.
14505         (ix86_rotlti3): New insn_and_split pattern.
14506         (ix86_rotrti3): Ditto.
14507         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
14508         ix86_rotl{di,ti}3 patterns.
14509         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
14510         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
14511         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
14512         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
14513         code iterator and SWI mode iterator.
14514         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
14515         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
14516         code iterator.
14517         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
14518         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
14519         (bswap rotatert splitter): Add splitter.
14520         (bswap splitter): Macroize splitter using any_rotate code iterator.
14521         Add insn predicate to split only for TARGET_USE_XCHGB or when
14522         optimizing function for size.
14523
14524 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
14525
14526         * config/pa/pa.c (emit_move_sequence): Remove use of
14527         deleted variable flag_argument_noalias.
14528
14529 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14530
14531         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
14532         configurations.
14533         Add to unsupported targets list.
14534         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
14535         sparc*-sun-solaris2.[567]* from target lists.
14536         * configure: Regenerate.
14537         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
14538         removal.
14539         Remove Solaris 7 patch references.
14540         (Specific, sparc-sun-solaris2.7): Removed.
14541         (sparc-sun-solaris2*): Update Solaris 7 example.
14542         (sparc64-*-solaris2*): Likewise.
14543
14544 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14545
14546         * config.build (alpha*-dec-osf4*): Remove.
14547         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
14548         of obsolete configurations.
14549         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
14550         support.
14551         * config/alpha/t-osf4: Renamed to ...
14552         * config/alpha/t-osf5: ... this.
14553         * config/alpha/osf.h: Renamed to ...
14554         * config/alpha/osf5.h: ... this.
14555         Merged old osf5.h contents.
14556         Update comments.
14557         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
14558         (EXTRA_SPECS): Removed.
14559         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
14560         reflect removal of Tru64 UNIX V4.0/V5.0 support.
14561         Document that.
14562
14563 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14564
14565         * doc/contrib.texi (Contributors, Rainer Orth): Update.
14566
14567 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
14568
14569         PR/43702
14570         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
14571         __thiscall convention.
14572
14573 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
14574
14575         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
14576         orig_base.
14577         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
14578
14579 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
14580
14581         * function.c (assign_parms_initialize_all): Add unused attribute
14582         to fntype.
14583
14584 2010-04-12  Richard Guenther  <rguenther@suse.de>
14585
14586         * gsstruct.def (GSS_CALL): New.
14587         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
14588         * gimple.h: Include tree-ssa-alias.h.
14589         (struct gimple_statement_call): New.
14590         (union gimple_statement_struct_d): Add gimple_call member.
14591         (gimple_call_reset_alias_info): Declare.
14592         (gimple_call_use_set): New function.
14593         (gimple_call_clobber_set): Likewise.
14594         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
14595         * gimple.c (gimple_call_reset_alias_info): New function.
14596         (gimple_build_call_1): Call it.
14597         * lto-streamer-in.c (input_gimple_stmt): Likewise.
14598         * tree-inline.c (remap_gimple_stmt): Likewise.
14599         (expand_call_inline): Remove callused handling.
14600         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
14601         * tree-dfa.c (dump_variable): Likewise.
14602         * tree-parloops.c (parallelize_loops): Likewise.
14603         * tree-ssa.c (init_tree_ssa): Likewise.
14604         (delete_tree_ssa): Likewise.
14605         * tree-flow-inline.h (is_call_used): Remove.
14606         * tree-flow.h (struct gimple_df): Remove callused member.
14607         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
14608         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
14609         (ref_maybe_used_by_call_p_1): Simplify.
14610         (call_may_clobber_ref_p_1): Likewise.
14611         * tree-ssa-structalias.c (compute_points_to_sets): Set
14612         the call stmt used and clobbered sets.
14613         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
14614         (find_tail_calls): Verify the tail call.
14615
14616 2010-04-12  Richard Guenther  <rguenther@suse.de>
14617
14618         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
14619         single-iteration always-inline inlining.
14620         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
14621         (cgraph_decide_inlining): Do not handle always-inline specially.
14622         (try_inline): Remove always-inline cycle detection special case.
14623         Do not recurse on always-inlines.
14624         (cgraph_early_inlining): Do not iterate if not optimizing.
14625         (cgraph_gate_early_inlining): remove.
14626         (pass_early_inline): Run unconditionally.
14627         (gate_cgraph_decide_inlining): New function.
14628         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
14629         not inlining or optimizing.
14630         (cgraph_decide_inlining_of_small_functions): Also consider
14631         always-inline functions.
14632         (cgraph_default_inline_p): Return true for nodes which should
14633         disregard inline limits.
14634         (estimate_function_body_sizes): Assume zero size and time for
14635         nodes which are marked as disregarding inline limits.
14636         (cgraph_decide_recursive_inlining): Do not perform recursive
14637         inlining on always-inline nodes.
14638
14639 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
14640
14641         PR bootstrap/43699
14642         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
14643         for exprs satisfying handled_component_p.
14644
14645 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
14646
14647         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
14648         non-constant aggregate elements.
14649
14650         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
14651         is a real initialization.
14652
14653 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
14654
14655         PR c/36774
14656         * c-decl.c (start_function): Move forward check for nested function.
14657
14658 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
14659
14660         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
14661         * config/sh/sh.c: Include reload.h.
14662         (sh_legitimize_reload_address): New.
14663         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
14664         sh_legitimize_reload_address.
14665
14666 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
14667
14668         * config/sh/sh.md (*movqi_pop): New insn pattern.
14669         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
14670
14671 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
14672
14673         * config/i386/i386.md (any_shiftrt): New code iterator.
14674         (shiftrt_insn): New code attribute.
14675         (shiftrt): Ditto.
14676         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
14677         using any_shiftrt code iterator.
14678         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
14679         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
14680         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
14681         pattern from corresponding peephole2 patterns.
14682         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
14683         using any_shiftrt code iterator.
14684         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
14685         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
14686         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
14687         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
14688         *{ashr,lshr}<mode>3_cmp_zext.
14689         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
14690
14691 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
14692
14693         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
14694         scratch register.
14695         (*lshr<mode>3_cconly): Ditto.
14696
14697 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
14698
14699         * config/i386/i386.md (lshr<mode>3): Macroize expander from
14700         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
14701         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
14702         pattern from *lshr{di,ti}3_1 and corresponding splitters using
14703         DWI mode iterator.
14704         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
14705         from corresponding peephole2 patterns.
14706         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
14707         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
14708         and *lshrdi3_1_rex64 using SWI mode iterator.
14709         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
14710         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
14711         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
14712         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
14713         and *lshrdi3_cmp_rex64 using SWI mode iterator.
14714         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
14715         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
14716         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
14717         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
14718         SWI mode iterator.
14719
14720 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
14721
14722         * config/i386/i386.md (ashr<mode>3): Macroize expander from
14723         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
14724         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
14725         pattern from *ashr{di,ti}3_1 and corresponding splitters using
14726         DWI mode iterator.
14727         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
14728         from corresponding peephole2 patterns.
14729         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
14730         (ashrsi3_cvt): Rename from ashrsi3_31.
14731         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
14732         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
14733         and x86_64_shift_adj_3 using SWI48 mode iterator.
14734         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
14735         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
14736         and *ashrdi3_1_rex64 using SWI mode iterator.
14737         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
14738         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
14739         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
14740         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
14741         and *ashrdi3_cmp_rex64 using SWI mode iterator.
14742         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
14743         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
14744         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
14745         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
14746         SWI mode iterator.
14747         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
14748         * config/i386/i386.c (ix86_split_ashr): Update for renamed
14749         x86_shift<mode>_adj_3 expanders.
14750
14751 2010-04-10  Wei Guozhi  <carrot@google.com>
14752
14753         PR target/42601
14754         * config/arm/arm.c (arm_pic_static_addr): New function.
14755         (legitimize_pic_address): Call arm_pic_static_addr when it detects
14756         a static symbol.
14757         (arm_output_addr_const_extra): Output expression for new pattern.
14758         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
14759
14760 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
14761
14762         * ira-costs.c (record_reg_classes): Ignore alternatives that are
14763         not enabled.
14764
14765         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
14766         * web.c: Include "insn-config.h" and "recog.h".
14767         (union_match_dups): New function.
14768         (web_main): Call it.
14769         (union_defs): Don't try to recognize match_dups.
14770
14771         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
14772         if doing so would replace the entire pattern.
14773
14774 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
14775
14776         PR target/43707
14777         PR target/43709
14778         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
14779         and splitter pattern.  Change splitter operand 1 predicate to
14780         nonmemory_operand.
14781
14782 2010-04-09  Martin Jambor  <mjambor@suse.cz>
14783
14784         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
14785         lattices are addresses of CONST_DECLs with the same initial value.
14786         (ipcp_print_all_lattices): Print values of CONST_DECLs.
14787         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
14788
14789 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
14790             Bernd Schmidt  <bernds@codesourcery.com>
14791
14792         * loop-invariant.c (replace_uses): New static function.
14793         (move_invariant_reg): Use it to ensure we can replace the uses.
14794
14795 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
14796
14797         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
14798         function template.
14799         (picochip_override_options): Enable section anchors only above -O1.
14800         (picochip_reorg): Fixed a couple of build warnings.
14801
14802 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14803
14804         * configure.ac (plugin -rdynamic test): Log result.
14805         * configure: Regenerate.
14806         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
14807         (RDYNAMIC_SPEC): Define.
14808         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
14809
14810 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14811
14812         * configure.ac: Determine Sun ld version numbers.
14813         (comdat_group): Restrict GNU ld version checks to gld.
14814         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
14815         (enable_comdat): Support --enable-comdat.
14816         * configure: Regenerate.
14817         * doc/install.texi (Configuration): Document --enable-comdat.
14818
14819 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14820
14821         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
14822         * config/sol2-gld.h: ... here.
14823         * config.gcc (sparc*-*-solaris2*): Reflect this.
14824         (i[34567]86-*-solaris2*): Use it.
14825
14826 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
14827
14828         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
14829         setup_clocks_p.
14830         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
14831
14832 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14833
14834         PR 42965
14835         * diagnostic.c (diagnostic_initialize): Initialize
14836         some_warnings_are_errors.
14837         (diagnostic_finish): New.
14838         (diagnostic_action_after_output): Call it before exiting.
14839         (diagnostic_report_diagnostic): Do not print message here. Set
14840         some_warnings_are_errors.
14841         * diagnostic.h (diagnostic_context): Delete
14842         issue_warnings_are_errors_message. Add some_warnings_are_errors.
14843         (diagnostic_finish): Declare.
14844         * toplev.c (toplev_main): Call it before exit.
14845
14846 2010-04-09  Jason Merrill  <jason@redhat.com>
14847
14848         PR c++/42623
14849         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
14850         for incomplete type.
14851
14852         PR c++/41788
14853         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
14854         based on a warning flag.
14855
14856 2010-04-09  Richard Guenther  <rguenther@suse.de>
14857
14858         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
14859
14860 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
14861
14862         PR bootstrap/43684
14863         * varasm.c (default_assemble_visibility): Wrap vars that are
14864         set, but unused, by targets without GAS.
14865         * config/rs6000/rs6000.c (paired_emit_vector_compare):
14866         Remove set, but unused, vars.
14867         (rs6000_legitimize_tls_address): Likewise.
14868         (altivec_expand_dst_builtin): Likewise.
14869         * config/darwin.c (machopic_classify_symbol): Likewise.
14870         (machopic_indirection_name): Likewise.
14871
14872 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
14873
14874         * config/i386/i386.md (DWI): New mode iterator.
14875         (S): New mode attribute.
14876         (shift_operand): Ditto.
14877         (shift_immediate_operand): Ditto.
14878         (ashl_input_operand): Ditto.
14879         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
14880         using SDWIM mode iterator.
14881         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
14882         pattern from *ashl{di,ti}3_1 and corresponding splitters using
14883         DWI mode iterator.
14884         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
14885         from corresponding peephole2 patterns.
14886         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
14887         and x86_64_shift_adj_1 using SWI48 mode iterator.
14888         (x86_shift<mode>_adj_2): Ditto.
14889         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
14890         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
14891         using SWI48 mode iterator.
14892         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
14893         *ashldi3_cmp_rex64 using SWI mode iterator.
14894         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
14895         *ashldi3_cconly_rex64 using SWI mode iterator.
14896         * config/i386/i386.c (ix86_split_ashl): Update for renamed
14897         x86_shift<mode>_adj_{1,2}.
14898         (ix86_split_ashr): Ditto.
14899         (ix86_split_lshr): Ditto.
14900
14901 2010-04-09  Richard Guenther  <rguenther@suse.de>
14902
14903         * target.h (builtin_conversion): Pass in input and output types.
14904         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
14905         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
14906         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
14907         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
14908
14909         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
14910         Handle AVX modes.
14911         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
14912
14913 2010-04-09  Richard Guenther  <rguenther@suse.de>
14914
14915         PR target/43152
14916         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
14917
14918 2010-04-09  Richard Guenther  <rguenther@suse.de>
14919
14920         * tree-vectorizer.h (struct _stmt_vec_info): Document
14921         that vectype is the type of the LHS.
14922         (supportable_widening_operation, supportable_narrowing_operation):
14923         Get both input and output vector types as arguments.
14924         (vect_is_simple_use_1): Declare.
14925         (get_same_sized_vectype): Likewise.
14926         * tree-vect-loop.c (vect_determine_vectorization_factor):
14927         Set STMT_VINFO_VECTYPE to the vector type of the def.
14928         (vectorizable_reduction): Adjust.
14929         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
14930         Adjust.  Specify the output vector type.
14931         (vect_pattern_recog_1): Adjust.
14932         * tree-vect-stmts.c (get_same_sized_vectype): New function.
14933         (vectorizable_call): Adjust.
14934         (vectorizable_conversion): Likewise.
14935         (vectorizable_operation): Likewise.
14936         (vectorizable_type_demotion): Likewise.
14937         (vectorizable_type_promotion): Likewise.
14938         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
14939         the def.
14940         (vect_is_simple_use_1): New function.
14941         (supportable_widening_operation): Get both input and output
14942         vector types.
14943         (supportable_narrowing_operation): Likewise.
14944         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
14945
14946 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
14947
14948         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
14949         __thiscall and _thiscall as predefined macros.
14950         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
14951         thiscall attribute handling.
14952         (ix86_comp_type_attributes): Likewise.
14953         (ix86_function_regparm): Likewise.
14954         (ix86_return_pops_args): Likewise.
14955         (init_cumulative_args): Likewise.
14956         (find_drap_reg): Likewise.
14957         (ix86_static_chain): Likewise.
14958         (x86_this_parameter): Likewise.
14959         (x86_output_mi_thunk): Likewise.
14960         (ix86_attribute_table): Add description for thiscall attribute.
14961         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
14962         * doc/extend.texi: Add documentation for thiscall.
14963
14964 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14965
14966         PR c++/28584
14967         * c.opt (Wint-to-pointer-cast): Available in C++.
14968         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
14969
14970 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
14971
14972         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
14973         * calls.c (expand_call): Pass the function type to aggregate_value_p.
14974         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
14975         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
14976         function type instead.  Reorder and simplify checks.
14977
14978         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
14979
14980 2010-04-08  Jing Yu  <jingyu@google.com>
14981             Zdenek Dvorak  <ook@ucw.cz>
14982
14983         PR tree-optimization/42720
14984         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
14985         loop unswitch conditions here from ...
14986         (tree_unswitch_single_loop): ... here.
14987
14988 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
14989
14990         * tree-if-conv.c: Fix comments and simplify logic.
14991
14992 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
14993
14994         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
14995         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
14996         (main_tree_if_conversion): Update call to tree_if_conversion.
14997
14998 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14999
15000         PR 42485
15001         * doc/invoke.texi (-b,-V): Delete.
15002         * doc/tm.texi: Do not mention -b.
15003         * gcc.c (display_help): Delete -b and -V.
15004         (process_command): Delete -b and -V.
15005         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
15006
15007 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
15008             Wolfgang Gellerich  <gellerich@de.ibm.com>
15009
15010         Implement target hook for loop unrolling
15011         * target.h (loop_unroll_adjust): Add a new target hook function.
15012         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
15013         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
15014         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
15015         (s390_loop_unroll_adjust): Implement the new target hook for s390.
15016         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
15017         target hook.
15018         (decide_unroll_stupid): Likewise.
15019
15020 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15021
15022         PR target/43643
15023         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
15024
15025 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15026
15027         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
15028         (Specific, *-*-solaris2*): Likewise.
15029         Don't prefer Sun as over GNU as.
15030
15031 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
15032
15033         * config/s390/s390.c (override_options): Adjust the z10 defaults
15034         for max-unroll-times, max-completely-peeled-insns
15035         and max-completely-peel-times.
15036
15037 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15038
15039         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
15040         instructions for z10.
15041         (s390_expand_setmem): Likewise.
15042         (s390_expand_cmpmem): Likewise.
15043
15044 2010-04-08  Richard Guenther  <rguenther@suse.de>
15045
15046         PR tree-optimization/43679
15047         * tree-ssa-pre.c (eliminate): Only propagate copies.
15048
15049 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
15050
15051         PR bootstrap/43681
15052         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
15053         set but not used variable warning.
15054
15055 2010-04-08  Wei Guozhi  <carrot@google.com>
15056
15057         PR target/41653
15058         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
15059         (arm_size_rtx_costs): Call the new function when optimized for size.
15060
15061 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
15062
15063         PR debug/43670
15064         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
15065         op0 is not a MEM, just return NULL instead of assertion
15066         failure.
15067         (discover_nonconstant_array_refs): Don't walk debug stmts.
15068
15069 2010-04-08  Doug Kwan  <dougkwan@google.com>
15070
15071         * configure.ac: Recognize gold and do not use its version number
15072         to test ld features.
15073         * configure: Regenerate.
15074
15075 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
15076
15077         PR middle-end/40815
15078         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
15079         (negate_value): Move code to push elements to broken_up_substracts ...
15080         (eliminate_plus_minus_pair): ... here.  Push operands that have no
15081         negative pair to plus_negates.
15082         (repropagate_negates, init_reassoc, fini_reassoc): Update.
15083
15084 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15085
15086         * doc/install.texi (Configuration): Move description of
15087         --enable-lto, --with-libelf*, --enable-gold from Java section to
15088         general section.
15089
15090         * doc/generic.texi (Working with declarations)
15091         (Function Properties, C and C++ Trees): Fix typos.
15092         * doc/sourcebuild.texi (Top Level): Likewise.
15093
15094 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
15095
15096         PR c/18624
15097         * tree.h (DECL_READ_P): Define.
15098         (struct tree_decl_common): Add decl_read_flag.
15099         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
15100         a set but not used warning.
15101         (merge_decls): Merge DECL_READ_P flag.
15102         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
15103         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
15104         * c-common.c (handle_used_attribute, handle_unused_attribute):
15105         Likewise.
15106         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
15107         New prototypes.
15108         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
15109         New functions.
15110         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
15111         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
15112         c_parser_binary_expression, c_parser_cast_expression,
15113         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
15114         Call default_function_array_read_conversion instead of
15115         default_function_array_conversion where needed.
15116         (c_parser_unary_expression, c_parser_conditional_expression,
15117         c_parser_postfix_expression_after_primary, c_parser_initelt):
15118         Likewise.  Call mark_exp_read where needed.
15119         (c_parser_statement_after_labels, c_parser_asm_operands,
15120         c_parser_typeof_specifier, c_parser_sizeof_expression,
15121         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
15122         where needed.
15123         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
15124         New.
15125         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
15126         (warn_unused_but_set_parameter): Default to warn_unused
15127         && extra_warnings.
15128         * doc/invoke.texi: Document -Wunused-but-set-variable and
15129         -Wunused-but-set-parameter.
15130
15131         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
15132         used count variable.
15133         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
15134         when operandN variables aren't used in the body of the expander
15135         or splitter.
15136         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
15137         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
15138         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
15139         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
15140         FOR_EACH_IMM_USE_ON_STMT): Likewise.
15141         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
15142         * tree.c (PROCESS_ARG): Likewise.
15143
15144 2010-04-07  Simon Baldwin  <simonb@google.com>
15145
15146         * diagnostic.h (diagnostic_override_option_index): New macro to
15147         set a diagnostic's option_index.
15148         * c-tree.h (c_cpp_error): Add warning reason argument.
15149         * opts.c (_warning_as_error_callback): New.
15150         (register_warning_as_error_callback): Store callback for
15151         warnings enabled via enable_warning_as_error.
15152         (enable_warning_as_error): Call callback, minor code tidy.
15153         * opts.h (register_warning_as_error_callback): Declare.
15154         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
15155         response to -Werror=.
15156         (c_common_init_options): Register warning_as_error_callback in opts.c.
15157         * common.opt: Add -Wno-cpp option.
15158         * c-common.c (struct reason_option_codes_t): Map cpp warning
15159         reason codes to gcc option indexes.
15160         * (c_option_controlling_cpp_error): New function, lookup the gcc
15161         option index for a cpp warning reason code.
15162         * (c_cpp_error): Add warning reason argument, call
15163         c_option_controlling_cpp_error for diagnostic_override_option_index.
15164         * doc/invoke.texi: Document -Wno-cpp.
15165
15166 2010-04-07  Richard Guenther  <rguenther@suse.de>
15167
15168         * ipa-reference.c (mark_load): Use get_base_address.
15169         (mark_store): Likewise.
15170
15171         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
15172         inserting GIMPLE_NOPs into the IL.
15173         * tree-ssa-structalias.c (get_constraint_for_component_ref):
15174         Explicitly strip handled components and indirect references.
15175
15176         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
15177         folding address expressions.
15178         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
15179         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
15180         operand_equal_p to compare decls.
15181         (ptr_deref_may_alias_decl_p): Likewise.
15182         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
15183         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
15184         Handle reversed comparison ops.
15185         * tree-sra.c (asm_visit_addr): Use get_base_address.
15186         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
15187         * ipa-reference.c (mark_address): Use get_base_address.
15188
15189 2010-04-07  Richard Guenther  <rguenther@suse.de>
15190
15191         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
15192         Propagate constants everywhere.
15193
15194 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
15195
15196         PR debug/43516
15197         * tree.c (MAX_INT_CACHED_PREC): Define.
15198         (nonstandard_integer_type_cache): New array.
15199         (build_nonstandard_integer_type): Cache results for precision
15200         <= MAX_INT_CACHED_PREC.
15201
15202 2010-04-07  Richard Guenther  <rguenther@suse.de>
15203
15204         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
15205         -fargument-noalias-global, -fargument-noalias-anything): Remove.
15206         * common.opt: Likewise.
15207         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
15208         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
15209         (nonoverlapping_memrefs_p): Likewise.
15210         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
15211         * opts.c (common_handle_option): Handle OPT_fargument_alias,
15212         OPT_fargument_noalias, OPT_fargument_noalias_anything and
15213         OPT_fargument_noalias_global for backward compatibility.
15214
15215 2010-04-07  Richard Guenther  <rguenther@suse.de>
15216
15217         PR tree-optimization/43270
15218         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
15219         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
15220         * tree-ssa-pre.c (phi_translate_1): Adjust.
15221         (fully_constant_expression): Split out vn_reference handling to ...
15222         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
15223         Fold reads from constant strings.
15224         (vn_reference_lookup): Handle fully constant references.
15225         (vn_reference_lookup_pieces): Likewise.
15226         * Makefile.in (expmed.o-warn): Add -Wno-error.
15227
15228 2010-04-07  Martin Jambor  <mjambor@suse.cz>
15229
15230         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
15231
15232 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
15233
15234         PR driver/41594
15235         * gcc.c: Add -static-libstdc++ to list of recognized options.
15236
15237 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15238
15239         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
15240
15241 2010-04-07  Richard Guenther  <rguenther@suse.de>
15242
15243         PR middle-end/42617
15244         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
15245         bases build simple mem attributes to retain points-to information.
15246
15247 2010-04-07  Richard Guenther  <rguenther@suse.de>
15248
15249         PR middle-end/42617
15250         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
15251         preserve points-to related information.
15252
15253 2010-04-07  Richard Guenther  <rguenther@suse.de>
15254
15255         PR middle-end/42617
15256         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
15257         discard plain indirect references.
15258         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
15259         * tree.c (tree_nop_conversion): Likewise.
15260
15261 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
15262
15263         PR debug/43628
15264         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
15265
15266 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
15267
15268         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
15269         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
15270
15271 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
15272
15273         * tree-if-conv.c: Fix indentation and comments.
15274
15275 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
15276
15277         * tree-if-conv.c: Sort static functions in topological order.
15278
15279 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
15280
15281         * tree-if-conv.c: Fix indentation and comments.
15282
15283 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
15284
15285         PR middle-end/43519
15286         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
15287         lang_hooks.types.type_for_size instead of
15288         build_nonstandard_integer_type.
15289         When converting an unsigned type to signed, double its precision.
15290         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
15291         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
15292         (graphite_create_new_loop_guard): When ub + 1 wraps around,
15293         use lb <= ub.
15294
15295 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
15296
15297         PR middle-end/43519
15298         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
15299         POINTER_PLUS_EXPR for pointer types.
15300
15301 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
15302
15303         PR middle-end/43519
15304         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
15305         * graphite-clast-to-gimple.c: Include langhooks.h.
15306         (max_signed_precision_type): New.
15307         (max_precision_type): Takes two types as arguments.
15308         (precision_for_value): New.
15309         (precision_for_interval): New.
15310         (gcc_type_for_interval): New.
15311         (gcc_type_for_value): New.
15312         (gcc_type_for_clast_term): New.
15313         (gcc_type_for_clast_red): New.
15314         (gcc_type_for_clast_bin): New.
15315         (gcc_type_for_clast_expr): Split up into several functions.
15316         (gcc_type_for_clast_eq): Rewritten.
15317         (compute_bounds_for_level): New.
15318         (compute_type_for_level_1): New.
15319         (compute_type_for_level): New.
15320         (gcc_type_for_cloog_iv): Removed.
15321         (gcc_type_for_iv_of_clast_loop): Rewritten.
15322         (graphite_create_new_loop): Compute the lower and upper bound types
15323         with gcc_type_for_clast_expr.
15324         (graphite_create_new_loop_guard): Same.
15325         (find_cloog_iv_in_expr): Removed.
15326         (compute_cloog_iv_types_1): Removed.
15327         (compute_cloog_iv_types): Removed.
15328         (gloog): Do not call compute_cloog_iv_types.
15329         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
15330         GBB_CLOOG_IV_TYPES.
15331         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
15332         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
15333         (GBB_CLOOG_IV_TYPES): Removed.
15334
15335 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
15336
15337         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
15338         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
15339         (detect_commutative_reduction): Same.
15340
15341 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
15342
15343         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
15344         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
15345         argument.
15346         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
15347         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
15348         (rewrite_commutative_reductions_out_of_ssa): Same.
15349         * passes.c (execute_function_todo): Call verify_ssa for every pass
15350         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
15351         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
15352         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
15353         with an extra argument.
15354         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
15355         verify_ssa only when the extra argument is true.
15356         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
15357         with an extra argument.
15358         (tree_transform_and_unroll_loop): Same.
15359
15360 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
15361
15362         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
15363         for all the passes of the LNO having LOOP_CLOSED_SSA.
15364         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
15365         * tree-loop-distribution.c (pass_loop_distribution): Same.
15366         * tree-pass.h (TODO_verify_loops): Removed.
15367         * tree-ssa-loop.c (pass_tree_loop_init): Same.
15368         (pass_lim): Same.
15369         (pass_tree_unswitch): Same.
15370         (pass_predcom): Same.
15371         (pass_vectorize): Same.
15372         (pass_linear_transform): Same.
15373         (pass_graphite_transforms): Same.
15374         (pass_iv_canon): Same.
15375         (pass_complete_unroll): Same.
15376         (pass_complete_unrolli): Same.
15377         (pass_parallelize_loops): Same.
15378         (pass_loop_prefetch): Same.
15379         (pass_iv_optimize): Same.
15380
15381 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
15382
15383         PR middle-end/32824
15384         * passes.c (init_optimization_passes): Move pass_lim before
15385         pass_copy_prop and pass_dce_loop.
15386
15387 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
15388
15389         PR target/43667
15390         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
15391         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
15392         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
15393         MULTI_* defines for 4 argument vpermil2p* builtins.
15394
15395 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
15396
15397         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
15398         * config/i386/i386.c (x86_maybe_negate_const_int): New.
15399         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
15400         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
15401         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
15402         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
15403         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
15404         Use x86_maybe_negate_const_int to output insn mnemonic.
15405         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
15406         check from instruction predicate.  Update comments.
15407         * config/i386/sync.md (sync_add<mode>): Use
15408         x86_maybe_negate_const_int to output insn mnemonic.
15409
15410 2010-04-06  Jan Hubicka  <jh@suse.cz>
15411
15412         PR tree-optimization/42906
15413         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
15414         IGNORE_SELF argument.  Set visited_control_parents for fully
15415         processed BBs.
15416         (find_obviously_necessary_stmts): Update call of
15417         mark_control_dependent_edges_necessary.
15418         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
15419
15420 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
15421
15422         * config/i386/i386.md: Remove comment about 'e' and 'E'
15423         operand modifier.
15424
15425 2010-04-06  Richard Guenther  <rguenther@suse.de>
15426
15427         PR tree-optimization/43627
15428         * tree-vrp.c (extract_range_from_unary_expr): Widenings
15429         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
15430         not varying.
15431
15432 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
15433
15434         * BASE-VER: Change to 4.6.0.
15435
15436         PR target/43638
15437         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
15438         handling.
15439
15440 2010-04-06  Richard Guenther  <rguenther@suse.de>
15441
15442         PR middle-end/43661
15443         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
15444
15445 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15446
15447         * doc/invoke.texi (Optimize Options): Document that LTO
15448         won't remove object access purely due to incompatible
15449         declarations.
15450
15451 2010-04-04  Matthias Klose  <doko@ubuntu.com>
15452
15453         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
15454         Initialize variable.
15455
15456 2010-04-03  Richard Guenther  <rguenther@suse.de>
15457
15458         PR middle-end/42509
15459         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
15460         require a non-NULL MEM_OFFSET.
15461
15462 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
15463
15464         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
15465         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
15466         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
15467         config/alpha/predicates.md, config/arm/arm.md,
15468         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
15469         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
15470         config/darwin9.h, config/darwin.c, config/darwin.h,
15471         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
15472         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
15473         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
15474         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
15475         config/mips/mips.md, config/mn10300/mn10300.c,
15476         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
15477         config/rs6000/aix.h, config/rs6000/dfp.md,
15478         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
15479         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
15480         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
15481         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
15482         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
15483         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
15484         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
15485         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
15486         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
15487         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
15488         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
15489         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
15490         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
15491         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
15492         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
15493         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
15494         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
15495         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
15496         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
15497         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
15498         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
15499         opt-functions.awk, opth-gen.awk, params.def, passes.c,
15500         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
15501         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
15502         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
15503         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
15504         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
15505         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
15506         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
15507         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
15508         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
15509         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
15510         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
15511         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
15512         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
15513         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
15514
15515 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15516
15517         PR other/43620
15518         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
15519         * aclocal.m4: Regenerate.
15520
15521 2010-04-02  Richard Guenther  <rguenther@suse.de>
15522
15523         PR tree-optimization/43629
15524         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
15525         if we have seen a constant value.
15526
15527 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
15528
15529         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
15530
15531 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
15532
15533         PR target/43469
15534         * arm.c (legitimize_tls_address): Adjust call to
15535         gen_tls_load_dot_plus_four.
15536         (arm_note_pic_base): New function.
15537         (arm_cannot_copy_insn_p): Use it.
15538         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
15539         constraint.
15540
15541 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15542
15543         PR bootstrap/43531
15544
15545         Revert:
15546         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15547
15548         * Makefile.in ($(out_object_file)): Depend on
15549         gt-$(basename $(notdir $(out_file))).h.
15550
15551 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
15552
15553         * config.gcc (lm32-*-rtems*): Add t-lm32.
15554
15555 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
15556
15557         * config.gcc: Add lm32-*-rtems*.
15558         * config/lm32/rtems.h: New file.
15559
15560 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
15561
15562         PR target/42609
15563         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
15564
15565 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
15566
15567         * dwarf2out.c (output_compilation_unit_header): For
15568         -gdwarf-4 use version 4 instead of version 3.
15569         (output_line_info): For version 4 and above emit additional
15570         maximum ops per insn header field.
15571         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
15572
15573         * dwarf2out.c (is_c_family, is_java): Remove.
15574         (lower_bound_default): New function.
15575         (add_bound_info, gen_descr_array_type_die): Use it.
15576
15577 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
15578
15579         PR debug/43325
15580         * dwarf2out.c (gen_variable_die): Allow debug info for variable
15581         re-declaration when it happens in a function.
15582
15583 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
15584
15585         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
15586         (cgraph_remove_function_insertion_hook): Same.
15587         (cgraph_call_function_insertion_hooks): Same.
15588
15589 2010-04-01  Richard Guenther  <rguenther@suse.de>
15590
15591         PR middle-end/43614
15592         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
15593         and TREE_THIS_VOLATILE.
15594         (copy_ref_info): Likewise.
15595         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
15596         * tree.c (build6_stat): Ignore side-effects of all but arg5
15597         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
15598         TARGET_MEM_REF.
15599
15600 2010-04-01  Richard Guenther  <rguenther@suse.de>
15601
15602         PR tree-optimization/43607
15603         * ipa-type-escape.c (check_call): Do not access non-existing
15604         arguments.
15605
15606 2010-04-01  Richard Guenther  <rguenther@suse.de>
15607
15608         PR middle-end/43602
15609         Revert
15610         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
15611                     Jack Howarth  <howarth@bromo.med.uc.edu>
15612
15613         * tree-profile.c (tree_init_ic_make_global_vars): Make static
15614         variables TLS.
15615
15616 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15617
15618         * doc/install.texi (Prerequisites): Document libelf usability on
15619         IRIX 5/6 and Solaris 2.
15620         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
15621         Update GNU as, GNU ld requirements.
15622         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
15623         Document Sun Studio compiler download.
15624         Update and simplify as, ld recommendations.
15625         (Specific, *-*-solaris2.7): Note obsoletion, removal.
15626
15627 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15628
15629         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
15630         with_tune_32 to pentium4.
15631
15632 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
15633
15634         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
15635
15636 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15637
15638         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
15639         obsoletion, removal.
15640         Update IDO URL.
15641         Document GNU as requirement.
15642         Update configure requirements.
15643         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
15644         Recomment IRIX 6.5.18+.
15645         Document IDF/IDL requirement.
15646         Document GNU as requirement.
15647         Document GNU ld bootstrap failure.
15648         Remove freeware.sgi.com reference.
15649
15650 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15651
15652         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
15653         UNIX V4.0, V5.0 obsoletion, removal.
15654         Remove --with-gc=simple reference.
15655         Update VM requirements during bootstrap.
15656         Remove -oldas bootstrap description.
15657         Update binutils reference.
15658         Remove comparison failure note.
15659
15660 2010-03-31  Richard Guenther  <rguenther@suse.de>
15661             Zdenek Dvorak  <ook@ucw.cz>
15662             Sebastian Pop  <sebastian.pop@amd.com>
15663
15664         PR middle-end/43464
15665         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
15666         with multiple arguments.
15667         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
15668
15669 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
15670
15671         * graphite-dependences.c (print_pddr): Call print_pdr with an
15672         extra argument.
15673         * graphite-poly.c (debug_pdr): Add an extra argument for the
15674         verbosity level.
15675         (print_pdr): Same.
15676         (print_pbb_domain): Same.
15677         (print_pbb): Same.
15678         (print_scop_context): Same.
15679         (print_scop): Same.
15680         (print_cloog): Same.
15681         (debug_pbb_domain): Same.
15682         (debug_pbb): Same.
15683         (print_pdrs): Same.
15684         (debug_pdrs): Same.
15685         (debug_scop_context): Same.
15686         (debug_scop): Same.
15687         (debug_cloog): Same.
15688         (print_scop_params): Same.
15689         (debug_scop_params): Same.
15690         (print_iteration_domain): Same.
15691         (print_iteration_domains): Same.
15692         (debug_iteration_domain): Same.
15693         (debug_iteration_domains): Same.
15694         (print_scattering_function): Same.
15695         (print_scattering_functions): Same.
15696         (debug_scattering_function): Same.
15697         (debug_scattering_functions): Same.
15698         * graphite-poly.h (debug_pdr): Update declaration.
15699         (print_pdr): Same.
15700         (print_pbb_domain): Same.
15701         (print_pbb): Same.
15702         (print_scop_context): Same.
15703         (print_scop): Same.
15704         (print_cloog): Same.
15705         (debug_pbb_domain): Same.
15706         (debug_pbb): Same.
15707         (print_pdrs): Same.
15708         (debug_pdrs): Same.
15709         (debug_scop_context): Same.
15710         (debug_scop): Same.
15711         (debug_cloog): Same.
15712         (print_scop_params): Same.
15713         (debug_scop_params): Same.
15714         (print_iteration_domain): Same.
15715         (print_iteration_domains): Same.
15716         (debug_iteration_domain): Same.
15717         (debug_iteration_domains): Same.
15718         (print_scattering_function): Same.
15719         (print_scattering_functions): Same.
15720         (debug_scattering_function): Same.
15721         (debug_scattering_functions): Same.
15722
15723 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
15724
15725         * graphite-poly.c (print_scattering_function_1): New.
15726         (print_scattering_function): Call it.
15727         (print_scop_params): Remove spaces at the end of lines.
15728         (print_cloog): New.
15729         (debug_cloog): New.
15730         * graphite-poly.h (print_cloog): Declared.
15731         (debug_cloog): Declared.
15732
15733 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
15734
15735         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
15736         in loop->header.
15737         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
15738         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
15739         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
15740         to switch between adding the IV bump in loop->latch or in loop->header.
15741
15742 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
15743
15744         * graphite-poly.c (print_scattering_function): Pretty print following
15745         the scoplib format.
15746         (print_pdr): Same.
15747         (print_pbb_domain): Same.
15748         (dump_gbb_cases): Same.
15749         (dump_gbb_conditions): Same.
15750         (print_pdrs): Same.
15751         (print_pbb): Same.
15752         (print_scop_params): Same.
15753         (print_scop_context): Same.
15754         (print_scop): Same.
15755         (print_pbb_body): New.
15756         (lst_indent_to): New.
15757         (print_lst): Start new lines with a #.
15758         * graphite-poly.h (pbb_bb): New.
15759         (pbb_index): Use pbb_bb.
15760         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
15761         disjuncts.
15762         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
15763
15764 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
15765
15766         * dwarf2out.c (size_of_die): For -gdwarf-4 use
15767         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
15768         and 0 instead of 1 for dw_val_class_flag.
15769         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
15770         dw_val_class_range_list, dw_val_class_loc_list,
15771         dw_val_class_lineptr and dw_val_class_macptr, use
15772         DW_FORM_flag_present for dw_val_class_flag and
15773         DW_FORM_exprloc for dw_val_class_loc.
15774         (output_die): For -gdwarf-4 print dw_val_class_loc
15775         size as uleb128 instead of 1 or 2 bytes and don't print
15776         anything for dw_val_class_flag.
15777
15778         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
15779         instead of cselib_lookup following by tweaking locs->setting_insn.
15780
15781         PR bootstrap/43596
15782         * cselib.c (cselib_process_insn): Clear cselib_current_insn
15783         even before returning from label, setjmp call or volatile asm
15784         handling.
15785
15786 2010-03-31  Richard Guenther  <rguenther@suse.de>
15787
15788         PR middle-end/43600
15789         * cgraphunit.c (cgraph_output_in_order): Do not allocate
15790         temporary data on stack.
15791
15792 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15793
15794         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
15795         (PUSHSECTION_ASM_OP): Remove.
15796         (POPSECTION_ASM_OP): Remove.
15797         (PUSHSECTION_FORMAT): Remove.
15798         * config/sol2.h (PUSHSECTION_FORMAT): Define.
15799         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
15800         * config/sol2.c (solaris_output_init_fini): Use it.
15801
15802 2010-03-31  Jie Zhang  <jie@codesourcery.com>
15803
15804         PR 43574
15805         * opt-functions.awk (var_type_struct): Use signed char type
15806         for simple variables.
15807
15808 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15809
15810         * config/sol2.c: Include output.h.
15811         (solaris_assemble_visibility): New function.
15812         * config/t-sol2 (sol2.o): Add output.h dependency.
15813         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
15814         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
15815         Redefine.
15816
15817 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
15818
15819         PR target/43580
15820         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
15821         V2SImode or XFmode on PRE_DEC.
15822
15823         PR debug/43557
15824         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
15825         BLKmode.
15826
15827 2010-03-31  Jie Zhang  <jie@codesourcery.com>
15828
15829         PR 43562
15830         * reload.h (caller_save_initialized_p): Declare.
15831         * toplev.c (backend_init_target): Don't call
15832         init_caller_save but set caller_save_initialized_p to false.
15833         * caller-save.c (caller_save_initialized_p): Define.
15834         (init_caller_save): Check caller_save_initialized_p.
15835         * ira.c (ira): Call init_caller_save if flag_caller_saves.
15836
15837 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15838
15839         PR target/39048
15840         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
15841         and soft-fp/t-softfp to tmake_file.
15842         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
15843         (LIBGCC2_TF_CEXT): Define.
15844         (TF_SIZE): Define.
15845
15846 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
15847
15848         PR debug/42977
15849         * cselib.c (n_useless_values): Document handling of debug locs.
15850         (n_useless_debug_values, n_debug_values): New variables.
15851         (new_elt_loc_list): Don't add to debug values, keep count.
15852         (promote_debug_loc): New.
15853         (cselib_reset_table): Zero new variables.
15854         (entry_and_rtx_equal_p): Promote debug locs.
15855         (discard_useless_locs): Increment n_useless_debug_values for
15856         debug values.
15857         (remove_useless_values): Adjust n_useless_values and n_debug_values
15858         with n_useless_debug_values.
15859         (add_mem_for_addr): Promote debug locs.
15860         (cselib_lookup_mem): Likewise.
15861         (cselib_lookup_addr): Renamed to...
15862         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
15863         (cselib_log_lookup): ... this.  Turn into...
15864         (cselib_lookup_addr): ... new wrapper.
15865         (cselib_lookup_from_insn): New.
15866         (cselib_invalidate_regno): Increment n_useless_debug_values for
15867         debug values.
15868         (cselib_invalidate_mem): Likewise.
15869         (cselib_process_insn): Take n_deleted and n_debug_values into
15870         account to guard remove_useless_value call.
15871         (cselib_finish): Zero n_useless_debug_values.
15872         * cselib.h (cselib_lookup_from_insn): Declare.
15873         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
15874         (sched_analyze_2): Likewise.
15875
15876 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
15877
15878         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
15879         functions.
15880         (adjust_mems): Replace narrowing SUBREG of expression containing
15881         just PLUS, MINUS, MULT and ASHIFT of registers and constants
15882         with operations in the narrower mode.
15883
15884         PR debug/43593
15885         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
15886         regs_invalidated_by_call instead all call_used_reg_set registers.
15887
15888 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
15889
15890         PR middle-end/43430
15891         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
15892         pointer comparisons with types_compatible_p.
15893         * tree-vect-stmts.c (vectorizable_call): Same.
15894         (vectorizable_condition): Same.
15895
15896 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15897
15898         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
15899         stack check if the mask would be zero.
15900
15901 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
15902             Jack Howarth  <howarth@bromo.med.uc.edu>
15903
15904         * tree-profile.c (tree_init_ic_make_global_vars): Make static
15905         variables TLS.
15906
15907 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
15908
15909         PR other/25232
15910         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
15911         and __unordtf2.
15912         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
15913         Include ___unordxf2 and ___unordtf2.
15914         * config/i386/libgcc-glibc.ver: Do not define inheritance from
15915         GCC_4.4.0 here.
15916
15917 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
15918
15919         * config/lm32/t-lm32: New file.
15920         * config.gcc: Use the above file when targetting lm32.
15921
15922 2010-03-28  Duncan Sands  <baldrick@free.fr>
15923
15924         * Makefile.in (PLUGIN_HEADERS): Add except.h.
15925
15926 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
15927
15928         PR middle-end/43431
15929         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
15930         Improve vectorization cost model diagnostic.
15931
15932 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
15933
15934         PR middle-end/43436
15935         * tree-vect-data-refs.c (vect_analyze_data_refs): When
15936         compute_data_dependences_for_loop returns false, early exit
15937         and output an extra diagnostic for the failed data reference
15938         analysis.
15939
15940 2010-03-29  Richard Guenther  <rguenther@suse.de>
15941
15942         PR tree-optimization/43560
15943         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
15944         (can_sm_ref_p): Treat stores to readonly locations as trapping.
15945
15946 2010-03-29  Jie Zhang  <jie@codesourcery.com>
15947
15948         PR 43564
15949         * toplev.c (process_options): Set optimization_default_node
15950         and optimization_current_node.
15951         * opts.c (decode_options): Don't set optimization_default_node
15952         and optimization_current_node.
15953
15954 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
15955
15956         * config/rtems.h: Abandon -qrtems_debug.
15957
15958 2010-03-28  Jan Hubicka  <jh@suse.cz>
15959
15960         PR tree-optimization/43505
15961         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
15962         map should not be copied.
15963
15964 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15965
15966         PR middle-end/41674
15967         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
15968         cdtors, set DECL_PRESERVE_P.
15969         * ipa.c (cgraph_externally_visible_p): Return true if declaration
15970         should be preseved.
15971
15972 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
15973
15974         PR tree-optimization/43528
15975         * stor-layout.c (place_field): Check that constant fits into
15976         unsigned HWI when skipping calculation of MS bitfield layout.
15977
15978 2010-03-27  Jan Hubicka  <jh@suse.cz>
15979
15980         PR middle-end/43391
15981         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
15982         notice_global_symbol work.
15983
15984 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
15985
15986         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
15987         instead of dwarf2out_decl.
15988         (struct var_loc_node): Remove section_label field.
15989         (dwarf2out_function_decl): New function.
15990         (dwarf2out_var_location): Don't set section_label field.
15991         (dwarf2out_begin_function): Don't empty decl_loc_table here.
15992
15993 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
15994
15995         PR tree-optimization/43544
15996         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
15997         First argument for builtin vectorized function hook is now a
15998         tree to be able to distinguish between machine specific and
15999         standard builtins.
16000         * targhooks.c (default_builtin_vectorized_function): Ditto.
16001         * targhooks.h (default_builtin_vectorized_function): Ditto.
16002         * target.h (struct gcc_target): Ditto.
16003         * tree-vect-stmts.c (vectorizable_function): Ditto.
16004         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
16005         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
16006         Ditto.
16007
16008 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
16009
16010         PR c/43381
16011         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
16012         nested binding iff it is a FUNCTION_DECL.
16013         (store_parm_decls_newstyle): Pass nested=true to bind for
16014         FUNCTION_DECLs amongst parameters.
16015
16016 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
16017
16018         * var-tracking.c (vt_expand_loc_callback): Don't run
16019         cselib_expand_value_rtx_cb in dummy mode if
16020         cselib_dummy_expand_value_rtx_cb returned false.
16021
16022         * var-tracking.c (emit_note_insn_var_location): For one part
16023         notes with offset 0, don't add EXPR_LIST around the location.
16024         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
16025         add_location_or_const_value_attribute): Adjust for that change.
16026
16027         PR debug/43540
16028         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
16029         into first operand and location into second.
16030         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
16031         dw_cfi_oprnd_loc for DW_CFA_expression.
16032         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
16033         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
16034         assume first argument is regnum and second argument is location.
16035
16036 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
16037
16038         PR target/42113
16039         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
16040         of scratch register to DImode.  Split to DImode comparison operator.
16041         Use SImode subreg of scratch register in the multiplication.
16042         (*cmp_sadd_sidi): Ditto.
16043         (*cmp_ssub_si): Ditto.
16044         (*cmp_ssub_sidi): Ditto.
16045
16046 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
16047
16048         PR target/43524
16049         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
16050         Remove invalid assert and wrong comment.
16051
16052 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
16053
16054         PR debug/43516
16055         * flags.h (final_insns_dump_p): New extern.
16056         * final.c (final_insns_dump_p): New variable.
16057         (rest_of_clean_state): Set it before -fdump-final-insns=
16058         dumping, clear afterwards.
16059         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
16060         MEM_ALIAS_SET on MEMs.
16061
16062 2010-03-26  David S. Miller  <davem@davemloft.net>
16063
16064         * configure.ac: Fix sparc GOTDATA_OP bug check.
16065         * configure: Rebuild.
16066
16067 2010-03-26  Alan Modra  <amodra@gmail.com>
16068
16069         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
16070
16071 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16072
16073         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
16074         TLS_SECTION_ASM_FLAG.
16075
16076 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
16077
16078         PR bootstrap/43511
16079         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
16080         Clear first_function_block_is_cold.
16081
16082         PR c/43385
16083         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
16084         argument if the argument is truth_value_p.
16085
16086 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
16087
16088         * config/rs6000/constraints.md: Update copyright year for my changes.
16089
16090         PR target/43484
16091         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
16092         used in reg+reg addressing, swap registers.
16093
16094 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
16095
16096         PR debug/43293
16097         * target.h (struct gcc_target): Add code_end hook.
16098         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
16099         if not yet defined.
16100         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
16101         * toplev.c (compile_file): Call targetm.asm_out.code_end
16102         hook before unwind info/debug info output.
16103         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
16104         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
16105         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
16106         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
16107         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
16108         * config/i386/i386.c (ix86_file_end): Renamed to...
16109         (ix86_code_end): ... this.  Make static.  Don't call
16110         file_end_indicate_exec_stack.  Emit unwind info using
16111         final_start_function/final_end_function.
16112         (darwin_x86_file_end): Remove.
16113         (TARGET_ASM_CODE_END): Define.
16114         * config/i386/i386.h (TARGET_ASM_FILE_END,
16115         NEED_INDICATE_EXEC_STACK): Don't define.
16116         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
16117         (TARGET_ASM_FILE_END): Define to darwin_file_end.
16118         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
16119         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
16120
16121         PR target/43498
16122         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
16123         at the beginning and final_end_function at the end.
16124         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
16125
16126 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16127
16128         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
16129         and Sun as TLS syntax.
16130         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
16131         * configure: Regenerate.
16132         * config.in: Regenerate.
16133         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
16134         (default_elf_asm_named_section): Use it.
16135         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
16136         (i386_output_dwarf_dtprel): Likewise.
16137         (output_addr_const_extra): Likewise.
16138         (output_pic_addr_const): Lowercase @GOTTPOFF.
16139         (output_addr_const_extra): Likewise.
16140         (output_pic_addr_const): Lowercase @GOTNTPOFF.
16141         (output_addr_const_extra): Likewise.
16142         (output_pic_addr_const): Lowercase @INDNTPOFF.
16143         (output_addr_const_extra): Likewise.
16144         (output_pic_addr_const): Lowercase @NTPOFF.
16145         (output_addr_const_extra): Likewise.
16146         (output_pic_addr_const): Lowercase @TPOFF.
16147         (output_addr_const_extra): Likewise.
16148         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
16149         (*tls_global_dynamic_64): Likewise.
16150         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
16151         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
16152
16153         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
16154         (ASM_OUTPUT_TLS_COMMON): Use it.
16155         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
16156
16157         PR target/38118
16158         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
16159         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
16160         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
16161         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
16162         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
16163         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
16164
16165 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16166
16167         * config/i386/i386.c (override_options): Don't accept
16168         -mtls-dialect=sun any longer.
16169         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
16170         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
16171         (*tls_local_dynamic_base_32_sun): Likewise.
16172         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
16173
16174 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
16175
16176         PR debug/43508
16177         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
16178         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
16179
16180         PR debug/43479
16181         * ira.c (adjust_cleared_regs): New function.
16182         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
16183
16184         PR debug/19192
16185         PR debug/43479
16186         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
16187         from gimple_block.
16188         * expr.c (expand_expr_real): Restore previous
16189         curr_insn_source_location and curr_insn_block after
16190         expand_expr_real_1 call.
16191         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
16192         instead of expand_expr_real_1.
16193
16194 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
16195
16196         PR rtl-optimization/43413
16197         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
16198         hard regs too.
16199
16200 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
16201
16202         PR target/43348
16203         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
16204         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
16205
16206 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
16207
16208         * config/i386/i386.c (ix86_target_string): Add -mfma.
16209         Fix a typo in comment.
16210
16211 2010-03-22  Mike Stump  <mikestump@comcast.net>
16212
16213         PR target/23071
16214         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
16215         Don't overly align based upon packed packed fields.
16216
16217 2010-03-22  Jason Merrill  <jason@redhat.com>
16218
16219         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
16220         Use () rather than [], and move before the element type.
16221
16222 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16223
16224         * doc/configfiles.texi (Configuration Files): Removed
16225         fixinc/Makefile*, intl/Makefile.*.
16226         * doc/makefile.texi: Fixed markup. Abstract from version
16227         control system used.
16228         (Makefile): Removed obsolete gcc/java/parse.y example.
16229         * doc/sourcebuild.texi: Likewise.
16230         (Top Level): Added config, gnattools, libdecnumber, libgcc,
16231         libgomp, libssp.  Removed fastjar.
16232         (Miscellaneous Docs): Clarify location.
16233         Added COPYING3, COPYING3.LIB.
16234         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
16235
16236 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16237
16238         PR target/38085
16239         * config/i386/i386.c (x86_function_profiler)
16240         [!NO_PROFILE_COUNTERS]: Fix typo.
16241         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
16242         instead of callq.
16243
16244 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
16245             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16246
16247         * doc/sourcebuild.texi (Test Directives): Split into six
16248         subsections, with most of the current text in new subsections
16249         Directives, Selectors, and Final Actions.
16250         (Directives): Split list of test directives into multiple
16251         subsubsections.
16252         (Selectors): Describe use and syntax of selectors.
16253         (Effective-Target Keywords): Describe all existing keywords.
16254         (Add Options): Describe features for dg-add-options.
16255         (Require Support): Describe variants of dg-require-support.
16256         (Final Actions): Describe commands to use in dg-final.
16257
16258 2010-03-22  Michael Matz  <matz@suse.de>
16259
16260         PR middle-end/43475
16261         * recog.c (validate_replace_rtx_group): Replace also in
16262         REG_EQUAL and REG_EQUIV notes.
16263
16264 2010-03-22  Richard Guenther  <rguenther@suse.de>
16265
16266         PR tree-optimization/43390
16267         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
16268         sure vector extracts are type correct.
16269
16270 2010-03-22  Richard Guenther  <rguenther@suse.de>
16271
16272         PR middle-end/40106
16273         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
16274         x * sqrt (x) even when optimizing for size if the target
16275         has native support for sqrt.
16276
16277 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
16278
16279         * varasm.c (make_decl_rtl_for_debug): Also clear
16280         flag_mudflap for the duration of make_decl_rtl call.
16281
16282         PR debug/43443
16283         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
16284         locs from preserved VALUEs.
16285
16286 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16287
16288         PR middle-end/42718
16289         * pa.md (movmemsi): Set align to one if zero.
16290         (movmemdi): Likewise.
16291
16292 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
16293
16294         PR target/42321
16295         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
16296         with their corresponding prologue pushes.
16297
16298 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
16299
16300         PR target/43156
16301         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
16302         at the begining or end.
16303         (spu_expand_epilogue): Likewise.
16304
16305 2010-03-20  Richard Guenther  <rguenther@suse.de>
16306
16307         PR rtl-optimization/43438
16308         * combine.c (make_extraction): Properly zero-/sign-extend an
16309         extraction of the low part of a CONST_INT.  Also handle
16310         CONST_DOUBLE.
16311
16312 2010-03-19  Mike Stump  <mikestump@comcast.net>
16313
16314         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
16315         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
16316         (override_options): Use SUBTARGET32_DEFAULT_CPU.
16317
16318 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
16319
16320         PR c/43211
16321         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
16322         an error.
16323
16324 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
16325
16326         PR rtl-optimization/42258
16327         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
16328         use that may match DEF.
16329
16330         PR target/40697
16331         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
16332         the cost of loading the constant rather than assuming
16333         COSTS_N_INSNS (1).
16334         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
16335         outer code is AND, do the same tests as the andsi3 expander and
16336         return COSTS_N_INSNS (1) if and is cheap.
16337
16338         * optabs.c (avoid_expensive_constant): Fix formatting.
16339
16340 2010-03-19  Michael Matz  <matz@suse.de>
16341
16342         PR c++/43116
16343         * attribs.c (decl_attributes): When rebuilding a function pointer
16344         type use the same qualifiers as the original pointer type.
16345
16346 2010-03-19  Martin Jambor  <mjambor@suse.cz>
16347
16348         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
16349         and is_gimple_ip_invariant_address.
16350
16351 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16352
16353         Revert
16354         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16355
16356         * config/arm/arm.c (arm_override_options): Turn off
16357         flag_dwarf2_cfi_asm for AAPCS variants.
16358
16359 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16360
16361         PR target/43399
16362         * config/arm/arm.c (emit_multi_reg_push): Update comments.
16363         Use PRE_MODIFY instead of PRE_DEC.
16364         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
16365         (vfp_emit_fstmd): Likewise.
16366
16367 2010-03-19  Michael Matz  <matz@suse.de>
16368
16369         PR target/43305
16370         * builtins.c (expand_builtin_interclass_mathfn,
16371         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
16372         if that fails.
16373
16374 2010-03-19  Richard Guenther  <rguenther@suse.de>
16375
16376         PR tree-optimization/43415
16377         * tree-ssa-pre.c (phi_translate): Split out worker to ...
16378         (phi_translate_1): ... this.
16379         (phi_translate): Move all caching here.  Cache all NARY
16380         and REFERENCE translations.
16381
16382 2010-03-19  David S. Miller  <davem@davemloft.net>
16383
16384         With help from Eric Botcazou.
16385         * config/sparc/sparc.c: Include dwarf2out.h.
16386         (emit_pic_helper): Delete.
16387         (pic_helper_symbol_name): Delete.
16388         (pic_helper_emitted_p): Delete.
16389         (pic_helper_needed): New.
16390         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
16391         (get_pc_thunk_name): New.
16392         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
16393         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
16394         Set pic_helper_needed to true.  Don't call emit_pic_helper.
16395         (sparc_expand_prologue): Update load_pic_register call.
16396         (sparc_output_mi_thunk): Likewise.
16397         (sparc_file_end): Emit a hidden comdat symbol for the PIC
16398         thunk if possible.  Output CFI information as needed.
16399
16400 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16401             Jack Howarth  <howarth@bromo.med.uc.edu>
16402
16403         PR target/36399
16404         * config/i386/i386.h: Fix ABI on darwin x86-32.
16405
16406 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
16407
16408         * tree.h: Declare make_decl_rtl_for_debug.
16409         * varasm.c (make_decl_rtl_for_debug): New.
16410         * dwarf2out.c (rtl_for_decl_location): Call it.
16411         * cfgexpand.c (expand_debug_expr): Call it.
16412
16413 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
16414
16415         PR bootstrap/43399
16416         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
16417         mem_mode.
16418
16419         PR bootstrap/43403
16420         * var-tracking.c (vt_init_cfa_base): Do nothing if
16421         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
16422
16423 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
16424
16425         PR debug/42873
16426         * var-tracking.c (canonicalize_vars_star): New.
16427         (dataflow_post_merge_adjust): Use it.
16428
16429 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
16430
16431         PR debug/43058
16432         * var-tracking.c (non_suitable_const): New function.
16433         (add_uses): For DEBUG_INSNs with constants, don't record any
16434         value, instead just the constant value itself.
16435         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
16436         is not VAR_LOC_UNKNOWN_P, set var to the constant.
16437         (emit_notes_in_bb): Likewise.
16438         (emit_note_insn_var_location): For onepart variables if
16439         cur_loc is a VOIDmode constant, use DECL_MODE.
16440
16441 2010-03-18  Martin Jambor  <mjambor@suse.cz>
16442
16443         PR middle-end/42450
16444         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
16445         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
16446         all non-clones.  Moved call redirection...
16447         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
16448         (cgraph_materialize_all_clones): Dispose of all
16449         combined_args_to_skip bitmaps.
16450         (verify_cgraph_node): Do not check for edges pointing to wrong
16451         nodes in inline clones.
16452         * tree-inline.c (copy_bb): Call
16453         cgraph_redirect_edge_call_stmt_to_callee.
16454         * ipa.c (cgraph_remove_unreachable_nodes): Call
16455         cgraph_node_remove_callees even when there are used clones.
16456
16457 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
16458
16459         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
16460
16461 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
16462
16463         PR target/43383
16464         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
16465         for 32bit.
16466
16467 2010-03-18  Michael Matz  <matz@suse.de>
16468
16469         PR middle-end/43419
16470         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
16471         into sqrt(x) if we need to preserve signed zeros.
16472
16473 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
16474             Eric Botcazou  <ebotcazou@adacore.com>
16475
16476         PR rtl-optimization/43360
16477         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
16478         note if we don't know its invariant status.
16479
16480 2010-03-18  Michael Matz  <matz@suse.de>
16481
16482         PR tree-optimization/43402
16483         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
16484         PHI chains of ssa names registered for update.
16485
16486 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
16487
16488         PR target/42427
16489         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
16490         non-offsettable and pre_modify update addressing.
16491         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
16492         and "2" alternatives "#".
16493         (*movdd_softfloat32): Make all alternatives "#";
16494         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
16495         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
16496         (*movdf_softfloat32): Make all alternatives "#";
16497         (movdi): Use the new DIFD mode iterator to create a common splitter
16498         for movdi, movdf and movdd patterns.
16499
16500 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
16501
16502         * common.opt (dumpdir): Remove redundant tab.
16503
16504 2010-03-17  Martin Jambor  <mjambor@suse.cz>
16505
16506         PR tree-optimization/43347
16507         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
16508         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
16509
16510 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
16511
16512         PR rtl-optimization/42216
16513         * regrename.c (create_new_chain): New function, broken out from...
16514         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
16515         appending a use to an empty chain.
16516         (build_def_use): Remove previous changes that convert OP_INOUT to
16517         OP_OUT operands; instead detect the case where an OP_INOUT operand
16518         uses a previously untracked register and create an empty chain for it.
16519
16520 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16521
16522         * doc/extend.texi (Function Attributes): Rewrite unfinished
16523         sentence in ms_abi documentation.
16524
16525 2010-03-17  Alan Modra  <amodra@gmail.com>
16526
16527         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
16528         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
16529         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
16530         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
16531
16532 2010-03-16  Richard Henderson  <rth@redhat.com>
16533
16534         PR middle-end/43365
16535         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
16536         (lower_try_finally): Save and restore eh_seq around the expansion
16537         of the try-finally.
16538
16539 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
16540
16541         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
16542         statements before splitting block.
16543
16544 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16545
16546         * doc/sourcebuild.texi (Testsuites): Fix markup.
16547         Use pathnames relative to gcc/testsuite.
16548         (Test Directives): Move description of how timeout is determined.
16549         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
16550         (C Tests): Correct gcc.misc-tests directory.
16551         Framework tests now live in gcc.test-framework.
16552
16553 2010-03-16  Richard Guenther  <rguenther@suse.de>
16554
16555         PR middle-end/43379
16556         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
16557         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
16558
16559 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
16560             Alexandre Oliva  <aoliva@redhat.com>
16561
16562         PR tree-optimization/42917
16563         * lambda-code.c (remove_iv): Skip debug statements.
16564         (lambda_loopnest_to_gcc_loopnest): Likewise.
16565         (not_interesting_stmt): Debug statements are not interesting.
16566
16567 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
16568
16569         PR debug/43051
16570         PR debug/43092
16571         * cselib.c (cselib_preserve_constants,
16572         cfa_base_preserved_val): New static variables.
16573         (preserve_only_constants): New function.
16574         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
16575         clear its REG_VALUES.  If cselib_preserve_constants, don't
16576         empty the whole hash table, but preserve there VALUEs with constants,
16577         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
16578         (cselib_preserve_cfa_base_value): New function.
16579         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
16580         (cselib_init): Change argument to int bitfield.  Set
16581         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
16582         is in it.
16583         (cselib_finish): Clear cselib_preserve_constants and
16584         cfa_base_preserved_val.
16585         * cselib.h (enum cselib_record_what): New enum.
16586         (cselib_init): Change argument to int.
16587         (cselib_preserve_cfa_base_value): New prototype.
16588         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
16589         * dse.c (dse_step1): Likewise.
16590         * cfgcleanup.c (thread_jump): Likewise.
16591         * sched-deps.c (sched_analyze): Likewise.
16592         * gcse.c (local_cprop_pass): Likewise.
16593         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
16594         If FN is non-NULL, call the callback always and whenever it returns
16595         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
16596         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
16597         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
16598         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
16599         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
16600         * var-tracking.c: Include recog.h.
16601         (bb_stack_adjust_offset): Remove.
16602         (vt_stack_adjustments): Don't call it, instead just gather the
16603         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
16604         (adjust_stack_reference): Remove.
16605         (compute_cfa_pointer): New function.
16606         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
16607         (struct adjust_mem_data): New type.
16608         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
16609         functions.
16610         (get_address_mode): New function.
16611         (replace_expr_with_values): Use it.
16612         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
16613         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
16614         (adjust_sets): Remove.
16615         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
16616         Use get_address_mode.
16617         (get_adjusted_src): Remove.
16618         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
16619         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
16620         (add_with_sets): Don't call adjust_sets.
16621         (fp_setter, vt_init_cfa_base): New functions.
16622         (vt_initialize): Change return type to bool.  Move most of pool etc.
16623         initialization to the beginning of the function from end.  Pass
16624         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
16625         If !frame_pointer_needed, call vt_stack_adjustment before mos
16626         vector is filled, call vt_init_cfa_base if argp/framep has been
16627         eliminated to sp.  If frame_pointer_needed and argp/framep has
16628         been eliminated to hard frame pointer, set
16629         hard_frame_pointer_adjustment and call vt_init_cfa_base after
16630         encountering fp setter in the prologue.  For MO_ADJUST, call
16631         log_op_type before pusing the op into mos vector, not afterwards.
16632         Call adjust_insn before cselib_process_insn/add_with_sets,
16633         call cancel_changes (0) afterwards.
16634         (variable_tracking_main_1): Adjust for vt_initialize calling
16635         vt_stack_adjustments and returning whether it succeeded or not.
16636
16637 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
16638
16639         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
16640         debug statements.
16641
16642 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
16643
16644         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
16645         has been set.
16646         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
16647         drap_reg has not been set.
16648
16649 2010-03-15  Michael Matz  <matz@suse.de>
16650
16651         PR middle-end/43300
16652         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
16653         use it to expand block copies.
16654         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
16655         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
16656         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
16657
16658 2010-03-15  Richard Guenther  <rguenther@suse.de>
16659
16660         PR tree-optimization/43367
16661         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
16662         elimination check.
16663
16664 2010-03-15  Richard Guenther  <rguenther@suse.de>
16665
16666         PR tree-optimization/43317
16667         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
16668
16669 2010-03-15  Martin Jambor  <mjambor@suse.cz>
16670
16671         PR tree-optimization/43141
16672         * tree-sra.c (create_abstract_origin): New function.
16673         (modify_function): Call create_abstract_origin.
16674
16675 2010-03-15  Chris Demetriou  <cgd@google.com>
16676
16677         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
16678         wasn't copied.
16679
16680 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
16681
16682         PR middle-end/43354
16683         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
16684         call insert_out_of_ssa_copy for default definitions.
16685
16686 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
16687
16688         * graphite-clast-to-gimple.c (my_long_long): Defined.
16689         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
16690         * graphite-sese-to-poly.c (my_long_long): Defined.
16691         (scop_ivs_can_be_represented): Use it.
16692
16693 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
16694
16695         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
16696         graphite-max-bbs-per-function, and loop-block-tile-size.
16697         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
16698         with "maximum".
16699         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
16700
16701 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
16702
16703         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
16704         forward declaration.
16705         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
16706         (add_upper_bounds_from_estimated_nit): New.
16707         (build_loop_iteration_domains): Use it.
16708
16709 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
16710
16711         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
16712
16713 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
16714
16715         PR middle-end/43306
16716         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
16717         should be an INTEGER_CST.  Also handle CASE_CONVERT.
16718
16719 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
16720
16721         * graphite.c (graphite_initialize): To bound the number of bbs per
16722         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
16723         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
16724         * doc/invoke.texi: Document it.
16725
16726 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
16727
16728         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
16729         * graphite-sese-to-poly.h (build_poly_scop): Same.
16730
16731 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
16732
16733         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
16734         the number of parameters in the scop.  Use as an upper bound
16735         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
16736         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
16737         * doc/invoke.texi: Document it.
16738
16739 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
16740
16741         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
16742         * doc/c-tree.texi: Remove.
16743         * doc/generic.texi: Merge c-tree.texi here.
16744         * doc/gccint.texi (Trees): Remove menu entry.
16745         (c-tree.texi): Remove @include.
16746         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
16747         * doc/languages.texi (Reading RTL): Ditto.
16748
16749 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
16750
16751         PR target/42869
16752         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
16753
16754 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
16755
16756         PR middle-end/42431
16757         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
16758         code added to work around reload clobbering CONST insns.
16759
16760 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
16761
16762         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
16763         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
16764         (cselib_preserve_only_values): Remove retain argument, don't
16765         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
16766         * cselib.h (cselib_preserve_only_values): Remove retain argument.
16767         * var-tracking.c (micro_operation): Move insn field before union.
16768         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
16769         (struct variable_tracking_info_def): Remove n_mos field, change
16770         mos into a vector of micro_operations.
16771         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
16772         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
16773         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
16774         changing into a vector.
16775         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
16776         come before all other uops generated by add_stores.
16777         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
16778         argument removal.
16779         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
16780         a vector.  Run just one pass over the bbs instead of separate counting
16781         and computation phase.
16782         (vt_finalize): Free VTI (bb)->mos vector instead of array.
16783
16784         PR debug/43329
16785         * tree-inline.c (remap_decls): Put old_var rather than origin_var
16786         into *nonlocalized_list vector.
16787         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
16788         even if origin is non-NULL.
16789         (gen_variable_die): Likewise.
16790         (process_scope_var): Don't change origin.
16791         (gen_decl_die): Likewise.
16792         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
16793         before adding new edges instead of after it, fix moving over
16794         debug stmts.
16795
16796 2010-03-11  David S. Miller  <davem@davemloft.net>
16797
16798         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
16799         of four.
16800         * configure: Rebuild.
16801
16802 2010-03-11  Martin Jambor  <mjambor@suse.cz>
16803
16804         PR tree-optimization/43257
16805         * tree.c (assign_assembler_name_if_neeeded): New function.
16806         (free_lang_data_in_cgraph): Assembler name assignment moved to the
16807         above new function.
16808         * tree.h (assign_assembler_name_if_neeeded): Declare.
16809         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
16810         the function if needed.
16811
16812 2010-03-11  Chris Demetriou  <cgd@google.com>
16813
16814         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
16815         include/stdint-gcc.h, and include/stdint.h world-readable.
16816
16817 2010-03-11  Richard Guenther  <rguenther@suse.de>
16818
16819         PR tree-optimization/43255
16820         * tree-vrp.c (process_assert_insertions_for): Do not insert
16821         asserts for trivial conditions.
16822
16823 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16824
16825         PR tree-optimization/43280
16826         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
16827         generation.  Move calculation of size out of the if branch.
16828         (find_bswap): Modify compare number generation.
16829
16830 2010-03-11  Richard Guenther  <rguenther@suse.de>
16831
16832         PR lto/43200
16833         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
16834         (input_gimple_stmt): Fixup handled component types during
16835         operand read.  Also fix up decls in ADDR_EXPRs.
16836
16837 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
16838
16839         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
16840         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
16841
16842 2010-03-10  Jan Hubicka  <jh@suse.cz>
16843
16844         PR c/43288
16845         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
16846         * varasm.c (get_variable_section): Don't do that here...
16847         (make_decl_rtl): ... and here.
16848         (do_assemble_alias): Produce decl RTL.
16849         (assemble_alias): Likewise.
16850
16851 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
16852
16853         PR debug/43290
16854         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
16855         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
16856         of fde->vdrap_reg.
16857         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
16858         (based_loc_descr): Only express drap or vdrap regno based expressions
16859         using DW_OP_fbreg when not optimizing.
16860         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
16861         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
16862         REG_CFA_SET_VDRAP note.
16863
16864 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
16865
16866         PR tree-optimization/43236
16867         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
16868         error in calculation of base address in reverse iteration case.
16869         (generate_builtin): Take number of latch executions if the statement
16870         is in the latch.
16871
16872 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
16873
16874         PR middle-end/42859
16875         * tree-eh.c: Include pointer-set.h.
16876         (lower_eh_dispatch): Filter out duplicate case labels and
16877         remove the unneeded edge when the label is unused.  Return
16878         true when some edges are removed.
16879         (execute_lower_eh_dispatch): When any lowering resulted in
16880         removing an edge, also delete unreachable blocks.
16881
16882 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
16883
16884         PR bootstrap/43287
16885         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
16886         UNSPEC_MACHOPIC_OFFSET.
16887
16888 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
16889
16890         PR target/43294
16891         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
16892         (m68k_delegitimize_address): New function.
16893
16894 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
16895
16896         PR debug/43299
16897         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
16898
16899         PR debug/43299
16900         * var-tracking.c (adjust_sets): New function.
16901         (count_with_sets, add_with_sets): Use it.
16902         (get_adjusted_src): New inline function.
16903         (add_stores): Use it.
16904
16905         PR debug/43304
16906         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
16907         call cselib_dummy_expand_value_rtx_cb instead of
16908         cselib_expand_value_rtx_cb.
16909
16910         PR debug/43293
16911         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
16912         * config/i386/i386.c: Include debug.h and dwarf2out.h.
16913         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
16914         and .cfi_endproc around the pic thunks.
16915         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
16916         all queued unwind info register saves are saved before the call.
16917         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
16918         considered as sp-=4 for unwind info and the pop as sp+=4 which
16919         also clobbers dest, but doesn't actually restore it.
16920
16921         PR debug/43290
16922         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
16923         RTX_FRAME_RELATED_P.
16924
16925 2010-03-09  Jie Zhang  <jie@codesourcery.com>
16926
16927         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
16928         whitespaces in output template.
16929
16930 2010-03-09  Jie Zhang  <jie@codesourcery.com>
16931
16932         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
16933         out array boundary.
16934
16935 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
16936
16937         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
16938         builtins.exp in a separate job.
16939
16940 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16941
16942         * graphite-sese-to-poly.c (add_param_constraints): Use
16943         lower_bound_in_type and upper_bound_in_type.
16944
16945 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16946
16947         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
16948         instead of unsigned_type_node.
16949
16950 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16951             Reza Yazdani  <reza.yazdani@amd.com>
16952
16953         PR middle-end/43065
16954         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
16955         on pointer type parameters.
16956
16957 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
16958
16959         PR middle-end/42644
16960         PR middle-end/42130
16961         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
16962         handle conversions from pointer to integers.
16963         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
16964         induction variable, to be able to work with code generated by CLooG.
16965         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
16966         (build_poly_scop): Bail out if we cannot codegen a loop.
16967
16968 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
16969
16970         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
16971         code generation with gloog_error.
16972
16973 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16974
16975         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
16976         Call fold_convert on all the returned values.
16977         (expand_scalar_variables_expr): Pass to
16978         expand_scalar_variables_ssa_name the type of the resulting expression.
16979
16980 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16981
16982         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
16983         ppl_min_for_le_pointset.
16984         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
16985         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
16986
16987 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16988
16989         * graphite-dependences.c (map_into_dep_poly): Removed.
16990         (dependence_polyhedron_1): Use combine_context_id_scat.
16991
16992 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16993
16994         * graphite-poly.h (struct poly_scattering): Add layout documentation.
16995         (struct poly_bb): Same.
16996         (combine_context_id_scat): New.
16997
16998 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16999
17000         PR middle-end/42326
17001         * sese.c (name_defined_in_loop_p): Return false for default
17002         definitions.
17003
17004 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
17005
17006         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
17007         and clean up the logic.
17008
17009 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
17010
17011         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
17012         early return.
17013
17014 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
17015
17016         * var-tracking.c (remove_cselib_value_chains): Define only for
17017         ENABLE_CHECKING.
17018         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
17019         delete_slot_part, emit_notes_for_differences_1): Don't call
17020         remove_cselib_value_chains here.
17021         (set_slot_part, emit_notes_for_differences_2): Don't call
17022         add_cselib_value_chains here.
17023         (preserved_values): New vector.
17024         (preserve_value): New function.
17025         (add_uses, add_stores, vt_add_function_parameters): Use it
17026         instead of cselib_preserve_value.
17027         (changed_values_stack): New vector.
17028         (check_changed_vars_0): New function.
17029         (check_changed_vars_1, check_changed_vars_2): Use it.
17030         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
17031         changed_values_stack VALUEs.
17032         (vt_emit_notes): For all preserved_values call
17033         add_cselib_value_chains.  If ENABLE_CHECKING call
17034         remove_cselib_value_chains before verifying value_chains is empty.
17035         Initialize and free changed_values_stack.
17036         (vt_initialize): Initialize preserved_values.
17037         (vt_finalize): Free preserved_values.
17038
17039 2010-03-08  Richard Guenther  <rguenther@suse.de>
17040
17041         PR tree-optimization/43269
17042         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
17043         region detection.
17044
17045 2010-03-08  Martin Jambor  <mjambor@suse.cz>
17046
17047         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
17048         (ipa_is_param_called): Removed.
17049         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
17050         (ipa_print_node_params): Do not print the called flag.
17051         (ipa_write_node_info): Do not stream the called flag.
17052         (ipa_read_node_info): Likewise.
17053
17054 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
17055
17056         PR debug/43176
17057         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
17058         * cselib.c (struct expand_value_data): Add dummy field.
17059         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
17060         dummy to false.
17061         (cselib_dummy_expand_value_rtx_cb): New function.
17062         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
17063         any rtl.
17064         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
17065         * var-tracking.c: Include pointer-set.h.
17066         (variable): Change n_var_parts to char from int.  Add
17067         cur_loc_changed and in_changed_variables fields.
17068         (variable_canonicalize): Remove.
17069         (shared_var_p): New inline function.
17070         (unshare_variable): Maintain cur_loc_changed and
17071         in_changed_variables fields.  If var was in changed_variables,
17072         replace it there with new_var.  Just copy cur_loc instead of
17073         resetting it to something else.
17074         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
17075         (dataflow_set_union): Don't call variable_canonicalize.
17076         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
17077         of their DEBUG_EXPR_TREE_DECLs.
17078         (canonicalize_loc_order_check): Verify that cur_loc is NULL
17079         and in_changed_variables and cur_loc_changed is false.
17080         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
17081         and cur_loc_changed.  Don't update cur_loc here.
17082         (variable_merge_over_src): Don't call variable_canonicalize.
17083         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
17084         removing loc that is equal to cur_loc, clear cur_loc,
17085         set cur_loc_changed and ensure variable_was_changed is called.
17086         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
17087         compare pointers in cur_loc check, if it is equal to loc,
17088         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
17089         (variable_different_p): Remove compare_current_location argument,
17090         don't compare cur_loc.
17091         (dataflow_set_different_1): Adjust variable_different_p caller.
17092         (variable_was_changed): If dv had some var in changed_variables
17093         already, reset in_changed_variables flag for it and propagate
17094         cur_loc_changed over to the new variable.  On empty var
17095         always set cur_loc_changed.  Set in_changed_variables on whatever
17096         var is added to changed_variables.
17097         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
17098         Use shared_var_p.  When removing loc that is equal to cur_loc,
17099         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
17100         end, don't set it to something else, just call variable_was_changed.
17101         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
17102         loc being removed, clear cur_loc and set cur_loc_changed.
17103         Set cur_loc_changed if all locations have been removed.
17104         (struct expand_loc_callback_data): New type.
17105         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
17106         allocated.  Always create SUBREGs if simplify_subreg failed.
17107         Prefer to use cur_loc, when that fails and still in
17108         changed_variables (and seen first time) recompute it.  Set
17109         cur_loc_changed of variables which had to change cur_loc and
17110         compute elcd->cur_loc_changed if any of the subexpressions used
17111         had to change cur_loc.
17112         (vt_expand_loc): Adjust to pass arguments in
17113         expand_loc_callback_data structure.
17114         (vt_expand_loc_dummy): New function.
17115         (emitted_notes): New variable.
17116         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
17117         that weren't used for any other decl in current
17118         emit_notes_for_changes call call vt_expand_loc_dummy to update
17119         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
17120         first loc_chain location if NULL before.  Always use just
17121         cur_loc instead of first loc_chain location.  When cur_loc_changed
17122         is false, when not --enable-checking=rtl just don't emit any note.
17123         When rtl checking, compute the note and assert it is the same
17124         as previous note.  Clear cur_loc_changed and in_changed_variables
17125         at the end before removing from changed_variables.
17126         (check_changed_vars_3): New function.
17127         (emit_notes_for_changes): Traverse changed_vars to call
17128         check_changed_vars_3 on each changed var.
17129         (emit_notes_for_differences_1): Clear cur_loc_changed and
17130         in_changed_variables.  Recompute cur_loc of new_var.
17131         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
17132         (vt_emit_notes): Initialize and destroy emitted_notes.
17133
17134 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
17135
17136         PR rtl-optimization/42220
17137         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
17138         Use verify_reg_tracked to determine if we should use OP_OUT rather
17139         than OP_INOUT.
17140         (build_def_use): If we see an in-out operand for a register that we
17141         know nothing about, treat is an output if possible, fail the block if
17142         not.
17143
17144 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
17145
17146         PR debug/42897
17147         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
17148         permanently.
17149
17150 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
17151
17152         PR debug/42897
17153         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
17154         uses of relevant DEFs that are dead outside the loop too.
17155
17156 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
17157
17158         * var-tracking.c (dataflow_set_merge): Swap src and src2.
17159         Reverted:
17160         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
17161         PR debug/41371
17162         * var-tracking.c (values_to_unmark): New variable.
17163         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
17164         values_to_unmark vector.  Moved body to...
17165         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
17166         instead queue it into values_to_unmark vector.
17167         (vt_find_locations): Free values_to_unmark vector.
17168
17169 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
17170
17171         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
17172         (site.exp): Export them when plugins are enabled.
17173
17174 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
17175
17176         PR middle-end/42326
17177         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
17178         that contain scevs.
17179         (chrec_fold_multiply): Same.
17180
17181 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
17182
17183         PR c/43248
17184         * c-decl.c (build_compound_literal): Return early if init is
17185         an error_mark_node.
17186
17187 2010-03-04  Martin Jambor  <mjambor@suse.cz>
17188
17189         PR tree-optimization/43164
17190         PR tree-optimization/43191
17191         * tree-sra.c (type_consists_of_records_p): Reject records with
17192         zero-size bit-fields at the end.
17193
17194 2010-03-04  Mike Stump  <mikestump@comcast.net>
17195
17196         * Makefile.in (TAGS): Remove *.y.
17197
17198 2010-03-04  Richard Guenther  <rguenther@suse.de>
17199
17200         PR tree-optimization/40761
17201         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
17202         in reverse order.
17203         (my_rev_post_order_compute): New function.
17204         (init_pre): Call it.
17205
17206 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
17207
17208         PR middle-end/43209
17209         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
17210         decrease the cost of an IV candidate when the cost is infinite.
17211
17212 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17213
17214         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
17215         Use '3DNow!' for the extension of that name, ensure normal space
17216         after the string.
17217         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
17218
17219 2010-03-03  Jeff Law  <law@redhat.com>
17220
17221         * PR middle-end/32693
17222         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
17223         than gen_rtx_SUBREG.
17224         (extract_bit_field_1): Likewise.
17225
17226 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
17227
17228         * doc/sourcebuild.texi (Test directives): Document that arguments
17229         include-opts and exclude-opts are now optional for dg-skip-if,
17230         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
17231
17232 2010-03-03  Jason Merrill  <jason@redhat.com>
17233
17234         PR c++/12909
17235         * cgraph.h (varpool_node): Add extra_name field.
17236         * varpool.c (varpool_extra_name_alias): New.
17237         (varpool_assemble_decl): Emit extra name aliases.
17238         (varpool_mark_needed_node): Look past an extra name alias.
17239         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
17240         * lto-streamer-in.c (lto_input_tree): Read it.
17241         * lto-streamer-out.c (output_unreferenced_globals): Write it.
17242
17243 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
17244
17245         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
17246         (sparc*-*-solaris2*): ...this.
17247
17248 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
17249
17250         PR debug/43229
17251         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
17252         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
17253         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
17254         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
17255
17256         PR debug/43237
17257         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
17258         fallthrough to default handling, just with want_address 0 instead of 2.
17259         For single element lists, add_AT_loc directly, otherwise create an
17260         artificial variable DIE and stick location list to it.
17261
17262         PR debug/43177
17263         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
17264         (VAL_EXPR_HAS_REVERSE): Define.
17265         (reverse_op): New function.
17266         (add_stores): For reversible operations add an extra MO_VAL_USE.
17267
17268 2010-03-02  Jason Merrill  <jason@redhat.com>
17269
17270         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
17271
17272 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
17273
17274         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
17275         (sparc64-*-linux*): Likewise.
17276         (sparc64-*-solaris2*): Include assembler files before linker ones.
17277         (sparc-*-solaris2*): Simplify and reorder to match previous case.
17278         * config/sparc/gas.h: Delete.
17279         * config/sparc/sol2-64.h: Add copyright notice.
17280         * config/sparc/sol2-gas-bi.h: Likewise.
17281         * config/sparc/sol2-gld.h: Likewise.
17282         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
17283         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
17284         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
17285         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
17286         (sparc_elf_asm_named_section): Rename into...
17287         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
17288
17289 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
17290
17291         * config/alpha/alpha.c (override_options): Fix -mtune error message.
17292
17293 2010-03-02  Jeff Law  <law@redhat.com>
17294
17295         PR middle-end/42431
17296         * reload1.c (rtx_p, substitute_stack): Declare.
17297         (substitute): Record addresses of changed rtxs.
17298         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
17299         Restore the original rtx when complete.
17300         (reload): Free subsitute_stack when complete.
17301
17302 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
17303
17304         * doc/gccint.texi (menu): Add Testsuites as a chapter.
17305         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
17306         new chapter.
17307         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
17308         LTO Testing, gcov Testing, profopt Testing, compat Testing,
17309         Torture Tests): Change from subsection to section.
17310
17311 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
17312             Steven Bosscher  <steven@gcc.gnu.org>
17313
17314         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
17315         instead of bb.
17316
17317 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
17318
17319         PR middle-end/42640
17320         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
17321         the assignment from the new induction variable to the assignment
17322         of the value from the original loop PHI function.
17323
17324 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
17325             Daniel Jacobowitz  <dan@codesourcery.com>
17326
17327         * doc/sourcebuild.texi (Test directives): Clarify options to
17328         dg-skip-if.
17329
17330 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17331
17332         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
17333         Disable cfi directives unless GCC and gas agree on using read-only
17334         .eh_frame sections for 64-bit.
17335         * configure: Regenerate.
17336
17337 2010-03-01  Richard Guenther  <rguenther@suse.de>
17338
17339         PR tree-optimization/43220
17340         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
17341         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
17342
17343 2010-03-01  Richard Guenther  <rguenther@suse.de>
17344             Martin Jambor  <mjambor@suse.cz>
17345
17346         PR middle-end/41250
17347         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
17348         gimplified parameters.
17349
17350 2010-03-01  Christian Bruel  <christian.bruel@st.com>
17351
17352         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
17353
17354 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
17355
17356         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
17357
17358 2010-03-01  Richard Guenther  <rguenther@suse.de>
17359
17360         PR middle-end/43213
17361         * expr.c (expand_assignment): Use the alias-oracle to tell
17362         if the rhs aliases the result decl.
17363
17364 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17365
17366         PR pch/14940
17367         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
17368         to sol_gt_pch_get_address.
17369         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
17370         64-bit, SPARC and x86.
17371         (sol_gt_pch_get_address): New function.
17372
17373 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
17374
17375         * toplev.h (inform_n, error_n): Declare.
17376         * diagnostic.c (inform_n, error_n): New function.
17377
17378 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
17379
17380         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
17381         has no rtl yet when processing local_decls, queue it and recheck
17382         if deferred stack allocation hasn't assigned it rtl.
17383
17384 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
17385
17386         * config/sh/sh.c (unspec_bbr_uid): New.
17387         (gen_block_redirect): Use it instead of INSN_UID.
17388         (gen_far_branch): Likewise.
17389
17390 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
17391
17392         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
17393         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
17394
17395 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17396
17397         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
17398         (Warning Options): -Wno-conversion-null is valid for
17399         Objective-C++ as well.
17400         * doc/tm.texi (Named Address Spaces): Likewise.
17401         * doc/plugins.texi (Plugins): Replace TABs with spaces.
17402         * doc/tree-ssa.texi (Tree SSA): Likewise.
17403
17404 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
17405
17406         PR bootstrap/43202
17407         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
17408         by default.  Don't set the default arch for
17409         i[34567]86-*-darwin*|x86_64-*-darwin*.
17410
17411 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
17412
17413         PR bootstrap/43202
17414         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
17415         default.  Set the default 32bit/64bit archs with $with_arch
17416         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
17417
17418 2010-02-27  Richard Guenther  <rguenther@suse.de>
17419
17420         PR tree-optimization/43186
17421         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
17422         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
17423         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
17424         unroller iterations.
17425
17426 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
17427
17428         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
17429         required and i[34567]86-*-* targets don't support 64bit ISA.
17430
17431 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
17432
17433         PR ada/43096
17434         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
17435         the same alias set.
17436
17437 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
17438
17439         * config.gcc: Set the default arch at least to Prescott for
17440         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
17441         if SSE math is enabled.
17442
17443 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17444
17445         * diagnostic.c (diagnostic_initialize): Update.
17446         (diagnostic_report_diagnostic): Test inhibit_notes_p for
17447         informative notes.
17448         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
17449         (diagnostic_inhibit_notes): New.
17450         * toplev.c (process_options): inhibit notes with -fcompare-debug.
17451
17452 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17453
17454         PR c/20631
17455         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
17456         * doc/standards.texi: Likewise.
17457         * doc/extend.texi: Likewise.
17458         * doc/trouble.texi: Likewise.
17459         * doc/cppopts.texi: Likewise.
17460         * doc/install.texi: Likewise.
17461         * c.opt (std=c90,std=gnu90): New options.
17462         * c-opts.c (c_common_handle_option): Handle them.
17463
17464 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17465
17466         PR c/24577
17467         * c-decl.c (undeclared_variable): Use an informative note.
17468
17469 2010-02-26  Richard Guenther  <rguenther@suse.de>
17470
17471         PR tree-optimization/43186
17472         * gimple.h (gimple_fold): Remove.
17473         * gimple.c (gimple_fold): Remove.  Inline into single user ...
17474         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
17475         Try harder for conditions.
17476
17477 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
17478
17479         PR debug/43190
17480         * function.c (used_types_insert): Don't skip through named pointer
17481         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
17482         and it is different from the main variant's type.
17483
17484 2010-02-26  Nick Clifton  <nickc@redhat.com>
17485
17486         * config/rx/rx.md (sminsi3): Remove bogus alternative.
17487
17488 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
17489
17490         * config.gcc: Support --with-fpmath=sse for x86.
17491
17492         * config/i386/ssemath.h: New.
17493
17494         * doc/install.texi (--with-fpmath=sse): Documented.
17495
17496 2010-02-26  Richard Guenther  <rguenther@suse.de>
17497
17498         PR tree-optimization/43188
17499         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
17500         vector types of over-aligned element type.
17501
17502 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
17503
17504         PR target/43175
17505         * config/i386/i386.c (expand_vec_perm_blend): Use correct
17506         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
17507
17508 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
17509
17510         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
17511
17512 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
17513
17514         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
17515         * var-tracking.c: Include diagnostic.h.
17516         (debug_dv): New function.
17517         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
17518
17519         PR debug/43160
17520         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
17521         (add_value_chain, add_value_chains, remove_value_chain,
17522         remove_value_chains): Handle DEBUG_EXPRs.
17523         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
17524
17525         PR debug/43161
17526         * regcprop.c (struct queued_debug_insn_change): New type.
17527         (struct value_data_entry): Add debug_insn_changes field.
17528         (struct value_data): Add n_debug_insn_changes field.
17529         (debug_insn_changes_pool): New variable.
17530         (free_debug_insn_changes, apply_debug_insn_changes,
17531         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
17532         (kill_value_one_regno): Call free_debug_insn_changes if needed.
17533         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
17534         fields.
17535         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
17536         changes for them.
17537         (copyprop_hardreg_forward_1): Don't call apply_change_group for
17538         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
17539         changes, call cprop_find_used_regs via note_stores.
17540         (copyprop_hardreg_forward): When copying vd from predecessor
17541         which has any queued DEBUG_INSN changes, make sure the pointers are
17542         cleared.  At the end call df_analyze and then if there are any
17543         DEBUG_INSN changes queued at the end of some basic block for still
17544         live registers, apply them.
17545         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
17546
17547 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
17548
17549         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
17550         (arm*-*-*): Ditto.
17551
17552 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
17553
17554         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
17555         targets.  Set the default with_cpu/with_arch from arch/cpu.
17556         Allow x86-64 and native for with_cpu/with_arch.
17557
17558 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
17559
17560         * ebitmap.c: Change calls to verify_popcount with calls to
17561         sbitmap_verify_popcount.
17562         (ebitmap_clear_bit): Fixed map->cacheindex test and
17563         map>cache update when bit clearing results in an empty
17564         element.
17565
17566 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
17567
17568         PR target/43154
17569         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
17570         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
17571         and support both V2DF and V2DI modes.
17572         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
17573         support both V2DF and V2DI modes.
17574         (general): Delete trailing whitespace from a few patterns.
17575
17576         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17577         V2DF/V2DI interleave high/low builtins.
17578
17579         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
17580         new VSX builtins.
17581
17582         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
17583         interleave high/low functions.
17584
17585 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
17586
17587         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
17588         #pragma extern_prefix.
17589
17590 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
17591
17592         PR debug/43166
17593         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
17594         BLKmode, assert op0 is a MEM and just adjust its mode.
17595
17596         PR debug/43165
17597         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
17598         if bitpos isn't multiple of mode's bitsize.
17599
17600 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17601
17602         * c.opt (-ftemplate-depth=): New.
17603         (-ftemplate-depth-): Deprecate.
17604         * optc-gen.awk: Handle -ftemplate-depth=.
17605         * opth-gen.awk: Likewise.
17606         * c-opts.c (c_common_handle_option): Likewise.
17607         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
17608
17609 2010-02-24  Jason Merrill  <jason@redhat.com>
17610
17611         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
17612
17613 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17614
17615         * cfg.c (alloc_aux_for_block): Remove inline.
17616         (alloc_aux_for_edge): Likewise.
17617
17618 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17619
17620         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
17621
17622 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17623
17624         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
17625         * config/i386/sol2-gas.h: New file.
17626         * config.gcc (i[34567]86-*-solaris2*): Use it.
17627
17628 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17629
17630         PR c/43128
17631         * c-typeck.c (ep_convert_and_check): New.
17632         (build_conditional_expr): Use it.
17633         (build_binary_op): Likewise.
17634
17635 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
17636
17637         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
17638
17639         PR debug/43150
17640         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
17641         bounds even for -O+.
17642         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
17643         expr needs to have DECL_NAME set.
17644
17645 2010-02-24  Nick Clifton  <nickc@redhat.com>
17646
17647         * config/mep/mep.c: Include gimple.h.
17648         (mep_function_uses_sp): Delete unused function.
17649         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
17650         parameters.  Use unsigned integers to count args.  Return a
17651         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
17652
17653 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
17654
17655         PR target/43107
17656         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
17657         greater or equal to nelt instead of 2 * nelt.
17658         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
17659         with nelt - 1.
17660
17661 2010-02-23  Jason Merrill  <jason@redhat.com>
17662
17663         PR debug/42800
17664         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
17665         in cfun->local_decls even if they have register types.
17666
17667         PR c++/42837
17668         * stor-layout.c (place_field): Don't warn about unnecessary
17669         DECL_PACKED if the type is packed.
17670
17671 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
17672
17673         PR target/43139
17674         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
17675         GOTOFF relocs, even when the base reg isn't pic pointer.
17676
17677 2010-02-23  Michael Matz  <matz@suse.de>
17678
17679         PR debug/43077
17680         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
17681         (expand_gimple_basic_block): Generate and use debug temps if there
17682         are debug uses left after the last real use of TERed ssa names.
17683         Unlink debug immediate uses when they are expanded.
17684
17685 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17686
17687         PR 43123
17688         * config/i386/i386.c (override_options): Reorganise to provide
17689         better error messages.
17690
17691 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
17692
17693         PR middle-end/43083
17694         * graphite-scop-detection.c (create_single_exit_edge): Move
17695         the call to find_single_exit_edge to....
17696         (create_sese_edges): ...here.  Don't handle multiple edges
17697         exiting the function.
17698         (build_graphite_scops): Don't handle multiple edges
17699         exiting the function.
17700
17701 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
17702
17703         PR middle-end/43097
17704         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
17705         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
17706
17707 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
17708
17709         PR middle-end/43026
17710         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
17711
17712 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17713
17714         PR c++/43126
17715         * c-typeck.c (convert_arguments): Print declaration location.
17716         * c-common.c (validate_nargs): Rename as
17717         builtin_function_validate_nargs.
17718         (check_builtin_function_arguments): Update.
17719
17720 2010-02-22  Richard Guenther  <rguenther@suse.de>
17721
17722         PR lto/43045
17723         * tree-inline.c (declare_return_variable): Use the type of
17724         the call stmt lhs if available.
17725
17726 2010-02-22  Duncan Sands  <baldrick@free.fr>
17727
17728         * passes.c (register_pass): Always consider all pass lists when
17729         ref_pass_instance_number is zero.
17730
17731 2010-02-22  Richard Guenther  <rguenther@suse.de>
17732
17733         PR tree-optimization/42749
17734         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
17735         parameter.  Do arithmetic in the original type.
17736         (update_accumulator_with_ops): Likewise.
17737         (adjust_accumulator_values): Adjust.
17738
17739 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17740
17741         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
17742         (QI to BLKmode splitter): New splitter.
17743
17744 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
17745
17746         * config/i386/i386.c (initial_ix86_tune_features): Turn on
17747         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
17748
17749 2010-02-22  Richard Guenther  <rguenther@suse.de>
17750
17751         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
17752
17753 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
17754
17755         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
17756         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
17757         ($(T)crti.o, $(T)crtn.o): Remove rules.
17758
17759 2010-02-21  Tobias Burnus  <burnus@net-b.de>
17760
17761         PR fortran/35259
17762         * doc/invoke.texi (-fassociative-math): Document that this
17763         option is automatically enabled for Fortran.
17764
17765 2010-02-20  David S. Miller  <davem@davemloft.net>
17766
17767         * configure.ac: Test if linker and assembler properly support
17768         GOTDATA_OP relocations.
17769         * configure: Rebuild.
17770         * config.in: Likewise.
17771         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
17772         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
17773         (movsi_high_pic): Likewise.
17774         (movdi_lo_sum_pic): Likewise.
17775         (movdi_high_pic): Likewise.
17776         (movsi_pic_gotdata_op): New pattern.
17777         (movdi_pic_gotdata_op): Likewise.
17778         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
17779         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
17780
17781 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
17782
17783         PR target/43067
17784         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
17785         attribute to ssemul.
17786         (xop_mulv2div2di3_high): Ditto.
17787
17788 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17789
17790         PR c++/35669
17791         * c.opt (Wconversion-null): New option.
17792         * doc/invoke.texi (Wconversion-null): Document.
17793
17794 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17795
17796         * common.opt (Wlarger-than-): Add Undocumented.
17797
17798 2010-02-19  Mike Stump  <mikestump@comcast.net>
17799
17800         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
17801
17802 2010-02-19  Jason Merrill  <jason@redhat.com>
17803
17804         PR target/40332
17805         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
17806         * configure: Likewise.
17807
17808 2010-02-20  Alan Modra  <amodra@gmail.com>
17809
17810         PR middle-end/42344
17811         * cgraph.h (cgraph_make_decl_local): Declare.
17812         * cgraph.c (cgraph_make_decl_local): New function.
17813         (cgraph_make_node_local): Use it.
17814         * cgraphunit.c (cgraph_function_versioning): Likewise.
17815         * ipa.c (function_and_variable_visibility): Likewise.
17816
17817 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
17818
17819         PR bootstrap/43121
17820         * except.c (sjlj_emit_function_enter): Don't call
17821         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
17822         directly.
17823         * rtl.h (add_reg_br_prob_note): Remove prototype.
17824
17825 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17826
17827         PR 41779
17828         * c-common.c (conversion_warning): Remove widening conversions
17829         before checking the conversion of integers to reals.
17830
17831 2010-02-19  Mike Stump  <mikestump@comcast.net>
17832
17833         PR middle-end/43125
17834         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
17835
17836         PR objc/43061
17837         * cgraphunit.c (process_function_and_variable_attributes): Check
17838         DECL_PRESERVE_P instead of looking up attribute "used".
17839         * ipa-pure-const.c (check_decl): Likewise.
17840         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
17841         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
17842         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
17843         instead of attribute "used".
17844         * config/sol2-c.c (solaris_pragma_init): Likewise.
17845         (solaris_pragma_fini): Likewise.
17846
17847 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
17848
17849         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
17850         Use XCNEW instead of xcalloc.
17851         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
17852         XNEW instead of xmalloc.
17853         (get_fields): Use XNEWVEC instead of xmalloc.
17854
17855         PR debug/43084
17856         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
17857         populate vars array.
17858         (create_new_general_access): For debug stmts just reset value.
17859         (get_stmt_accesses): For accesses within debug stmts just record them
17860         using add_access_to_acc_sites instead of preventing the peeling or
17861         counting them as accesses.
17862
17863         PR middle-end/42233
17864         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
17865
17866 2010-02-19  Richard Guenther  <rguenther@suse.de>
17867
17868         PR tree-optimization/42916
17869         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
17870         instructions.
17871
17872 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
17873
17874         * configure.ac: Replace all uses of changequote in macro arguments
17875         with proper quoting.
17876
17877 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
17878
17879         PR middle-end/42233
17880         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
17881
17882 2010-02-19  Richard Guenther  <rguenther@suse.de>
17883
17884         PR tree-optimization/42944
17885         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
17886         test for aliasing with errno.
17887
17888 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
17889
17890         PR middle-end/42233
17891         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
17892         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
17893         * dojump.c: Include output.h.
17894         (inv): New inline function.
17895         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
17896         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
17897         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
17898         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
17899         argument, pass it down to other calls.
17900         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
17901         add REG_BR_PROB note to the conditional jump.
17902         * cfgexpand.c (add_reg_br_prob_note): Removed.
17903         (expand_gimple_cond): Don't call it, add the probability
17904         as last argument to jumpif_1/jumpifnot_1.
17905         * Makefile.in (dojump.o): Depend on output.h.
17906         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
17907         callers.
17908         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
17909         * stmt.c (do_jump_if_equal): Likewise.
17910         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
17911         * loop-unswitch.c (compare_and_jump_seq): Likewise.
17912         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
17913         Likewise.
17914         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
17915         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
17916         jumpifnot_1 callers.
17917         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
17918         callers.
17919         (store_expr): Adjust jumpifnot caller.
17920         (store_constructor): Adjust jumpif caller.
17921
17922         PR middle-end/42233
17923         * gimplify.c (gimple_boolify): For __builtin_expect call
17924         gimple_boolify also on its first argument.
17925
17926 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
17927
17928         * configure.ac (gnu-unique-object): Wrap regexps using [] in
17929         changequote block.
17930         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
17931         * configure: Regenerated.
17932
17933 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17934
17935         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
17936         lang_hooks.types_compatible_p instead of comptypes.
17937
17938 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17939
17940         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
17941         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
17942         if __prefer_thumb__ is defined.
17943
17944 2010-02-18  Martin Jambor  <mjambor@suse.cz>
17945
17946         PR tree-optimization/43066
17947         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
17948         array with zero-sized element type.
17949
17950 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
17951
17952         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
17953         rtx, allocate struct var_loc_node here and return it to the
17954         caller, and only if it is actually needed.
17955         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
17956         move it earlier and return immediately if it returns NULL.
17957
17958 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
17959
17960         * config/sparc/gas.h: New file.  Restore
17961         TARGET_ASM_NAMED_SECTION to its ELF default.
17962         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
17963         check !HAVE_GNU_AS.
17964         * config/sparc/sparc.c (sparc_elf_asm_named_section):
17965         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
17966         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
17967         after sparc/sysv4.h.
17968
17969 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
17970
17971         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
17972
17973 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
17974
17975         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
17976         patterns from predicated pattern.
17977
17978 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
17979
17980         PR target/43103
17981         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
17982         for insn mnemonic suffix.
17983
17984 2010-02-17  Richard Guenther  <rguenther@suse.de>
17985
17986         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
17987         to loop PHI nodes.
17988
17989 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
17990
17991         PR debug/42918
17992         * caller-save.c (save_call_clobbered_regs): If BB ends with
17993         a DEBUG_INSN, move any notes in between last real insn and the last
17994         DEBUG_INSN after the last DEBUG_INSN.
17995
17996 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
17997
17998         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
17999         Fix return type.  Fix argument type.  Explain meaning of return value.
18000
18001 2010-02-16  Richard Guenther  <rguenther@suse.de>
18002
18003         PR tree-optimization/41043
18004         * tree-vrp.c  (vrp_var_may_overflow): Only ask SCEV for real loops.
18005         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
18006         statements ...
18007         (vrp_visit_phi_node): ... but only for loop PHI nodes.
18008
18009 2010-02-16  Ira Rosen  <irar@il.ibm.com>
18010
18011         PR tree-optimization/43074
18012         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
18013         * tree-vect-loop.c (vect_analyze_loop_operations): Add
18014         vectorizable cycles in hybrid SLP check.
18015         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
18016
18017 2010-02-16  Richard Guenther  <rguenther@suse.de>
18018
18019         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
18020         (true_dependence): If memrefs_conflict_p computes must-alias
18021         trust it.  Move TBAA check after offset-based disambiguation.
18022         (canon_true_dependence): Likewise.
18023
18024 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
18025
18026         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
18027         * doc/invoke.texi: Document it.
18028         * var-tracking.c: Include toplev.h and params.h.
18029         (vt_find_locations): Return bool indicating success.  Compute
18030         hash sizes unconditionally.  Check new parameter, report.
18031         (variable_tracking_main_1): Check vt_find_locations results and
18032         retry.  Renamed from...
18033         (variable_tracking_main): ... this.  New wrapper to preserve
18034         flag_var_tracking_assignments.
18035         * Makefile.in (var-tracking.o): Adjust dependencies.
18036
18037 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
18038             Jakub Jelinek  <jakub@redhat.com>
18039
18040         PR target/42854
18041         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
18042         if weak_import attribute is present.
18043         * config/darwin.c (machopic_select_section): Likewise.
18044
18045 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
18046
18047         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
18048         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
18049         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
18050         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
18051
18052         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
18053         types.
18054
18055         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
18056         Fix argument types.
18057
18058         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
18059         Rewrite text to refer to the names.
18060
18061 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
18062
18063         * config/i386/i386-builtin-types.def
18064         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
18065         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
18066         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
18067         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
18068         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
18069         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
18070         IX86_BUILTIN_VPERMIL2PS256.
18071         (MULTI_ARG_4_DF2_DI_I): Defined.
18072         (MULTI_ARG_4_DF2_DI_I1): Defined.
18073         (MULTI_ARG_4_SF2_SI_I): Defined.
18074         (MULTI_ARG_4_SF2_SI_I1): Defined.
18075         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
18076         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
18077         __builtin_ia32_vpermil2ps256.
18078         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
18079         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
18080         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
18081         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
18082         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
18083         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
18084         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
18085         CODE_FOR_xop_vpermil2v8sf3.
18086         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
18087         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
18088         * config/i386/xopintrin.h (_mm_permute2_pd): New.
18089         (_mm256_permute2_pd): New.
18090         (_mm_permute2_ps): New.
18091         (_mm256_permute2_ps): New.
18092
18093 2010-02-15  Nick Clifton  <nickc@redhat.com>
18094
18095         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
18096         boolean parameters.  Use emit_jump_insn when emitting a pop
18097         instruction containing a return insn.
18098         (push): Use 'true' rather than '1' as second parameter to F.
18099         (h8300_expand_prologue): Likewise.
18100         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
18101         (h8300_expand_epilogue): Likewise.
18102
18103 2010-02-15  Richard Guenther  <rguenther@suse.de>
18104
18105         PR middle-end/43068
18106         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
18107         if that is zero.
18108
18109 2010-02-15  Nick Clifton  <nickc@redhat.com>
18110
18111         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
18112         delta.
18113
18114 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
18115
18116         * intl.c (fake_ngettext): New function.
18117         * intl.h (fake_ngettext): Declare.
18118         (ngettext): Define macro.
18119         * collect2.c (notice_translated): New function.
18120         (main): Use notice_translated and ngettext.
18121         * collect2.h (notice_translated): Declare.
18122
18123 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
18124
18125         * reorg.c (delete_computation): Comment fixes.
18126         * caller-save.c (setup_save_areas): Idem.
18127         * sel-sched-dump.c (dump_lv_set): Idem.
18128         * rtl.def: Idem.
18129
18130 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18131
18132         * config/s390/s390.c (s390_sched_init): New function.
18133         (TARGET_SCHED_INIT): Target hook defined.
18134
18135 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
18136             Jack Howarth  <howarth@bromo.med.uc.edu>
18137             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
18138
18139         PR target/42982
18140         Partial revert of unintended change in fix for PR41605.
18141         * config/darwin.h: Fix typo.
18142         * config/darwin9.h: Same.
18143
18144 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
18145
18146         * c-pch.c (pch_init): Clear v.
18147
18148 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
18149
18150         PR middle-end/42930
18151         * graphite-scop-detection.c (graphite_can_represent_scev): Call
18152         graphite_can_represent_init for MULT_EXPR.
18153
18154 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
18155
18156         PR middle-end/42914
18157         PR middle-end/42530
18158         * graphite-sese-to-poly.c (remove_phi): New.
18159         (translate_scalar_reduction_to_array): Call remove_phi.
18160
18161 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
18162
18163         PR middle-end/42771
18164         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
18165         * graphite-clast-to-gimple.h (gloog): Update declaration.
18166         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
18167         * graphite-poly.h (struct poly_bb): Add missing comments.
18168         (struct scop): Add poly_scop_p field.
18169         (POLY_SCOP_P): New.
18170         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
18171         * graphite.c (graphite_transform_loops): Build the polyhedral
18172         representation for each scop before code generation.
18173         * sese.c (rename_variables_in_operand): Removed.
18174         (rename_variables_in_expr): Return the renamed expression.
18175         (rename_sese_parameters): New.
18176         * sese.h (rename_sese_parameters): Declared.
18177
18178 2010-02-11  Richard Guenther  <rguenther@suse.de>
18179
18180         PR tree-optimization/42998
18181         * tree-ssa-pre.c (create_expression_by_pieces): Treat
18182         POINTER_PLUS_EXPR properly.
18183
18184 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
18185             Changpeng Fang  <changpeng.fang@amd.com>
18186
18187         PR middle-end/40886
18188         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
18189         the cost of an IV candidate when the IV is used in a test against zero.
18190
18191         * gcc.dg/tree-ssa/ivopts-3.c: New.
18192
18193 2010-02-11  Richard Guenther  <rguenther@suse.de>
18194
18195         PR lto/41664
18196         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
18197         pointer-vs-decl case by swapping refs.  Handle some cases
18198         of pointer-vs-decl disambiguations more conservatively.
18199         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
18200         to false after expanding.
18201
18202 2010-02-11  Richard Guenther  <rguenther@suse.de>
18203
18204         PR driver/43021
18205         * gcc.c (process_command): Handle LTO file@offset case more
18206         appropriately.
18207
18208 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
18209
18210         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
18211         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
18212         of DEBUG_INSNs.
18213         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
18214
18215         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
18216         if MEM's mode size isn't DWARF2_ADDR_SIZE.
18217         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
18218         Optimize eq/ne comparisons when both arguments are known to be
18219         zero-extended.
18220         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
18221         Don't mask operands unnecessarily if they are known to be already
18222         zero-extended.
18223
18224 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
18225
18226         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
18227         instead of loop.
18228
18229 2010-02-10  Richard Guenther  <rguenther@suse.de>
18230
18231         PR tree-optimization/43017
18232         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
18233         for wrapping signed arithmetic.
18234
18235 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
18236
18237         PR debug/43010
18238         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
18239         if no debug info should be emitted for it.
18240
18241 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
18242
18243         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
18244         note when flag_exceptions is set.
18245
18246 2010-02-10  Duncan Sands  <baldrick@free.fr>
18247
18248         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
18249
18250 2010-02-10  Richard Guenther  <rguenther@suse.de>
18251
18252         PR c/43007
18253         * tree.c (get_unwidened): Handle constants.
18254         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
18255
18256 2010-02-10  Martin Jambor  <mjambor@suse.cz>
18257
18258         PR lto/42985
18259         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
18260         check for variable argument counts independently.
18261
18262 2010-02-10  Christian Bruel  <christian.bruel@st.com>
18263
18264         PR target/42841
18265         * config/sh/sh.c (find_barrier): Increase length for non delayed
18266         conditional branches.
18267
18268 2010-02-10  Christian Bruel  <christian.bruel@st.com>
18269
18270         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
18271
18272 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
18273
18274         * builtins.c (set_builtin_user_assembler_name): Also handle
18275         ffs if int is smaller than word.
18276
18277 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
18278
18279         PR middle-end/42973
18280         * ira-conflicts.c (get_dup): Remove.
18281         (process_reg_shuffles): Add new parameter.  Use it as an
18282         additional guard for copy generation.
18283         (add_insn_allocno_copies): Rewrite.
18284
18285 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
18286
18287         * common.opt (fsched2-use-traces): Preserved for backward
18288         compatibility.
18289         * doc/invoke.texi: Remove the documentation about option
18290         -fsched2-use-traces.
18291         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
18292         flag_sched2_use_traces.
18293         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
18294         the backward compatibility flag section.
18295
18296 2010-02-09  Richard Guenther  <rguenther@suse.de>
18297
18298         PR tree-optimization/43008
18299         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
18300         make HEAP variables initialized from global memory if they
18301         are not known builtin functions.
18302         (find_func_aliases): Adjust.
18303
18304 2010-02-09  Richard Guenther  <rguenther@suse.de>
18305
18306         PR tree-optimization/43000
18307         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
18308         arithmetic manually.
18309
18310 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
18311
18312         PR tree-optimization/42931
18313         * tree-loop-linear.c (try_interchange_loops): Don't call
18314         double_int_mul if estimated_loop_iterations failed.
18315
18316 2010-02-08  Martin Jambor  <mjambor@suse.cz>
18317
18318         PR middle-end/42898
18319         * tree-sra.c (build_accesses_from_assign): Do not mark in
18320         should_scalarize_away_bitmap if stmt has volatile ops.
18321         (sra_modify_assign): Do not process assigns piecemeal if if stmt
18322         has volatile ops.
18323
18324 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
18325
18326         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
18327
18328 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
18329
18330         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
18331         before the pattern.
18332
18333 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
18334
18335         PR middle-end/42946
18336         * df-core.c (df_finish_pass): Change type of saved_flags to int.
18337
18338 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
18339
18340         PR middle-end/42988
18341         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
18342         to unknown_dependence.
18343         (graphite_legal_transform_dr): Handle the unknown_dependence.
18344         (graphite_carried_dependence_level_k): Same.
18345
18346 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
18347
18348         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
18349
18350 2010-02-07  Richard Guenther  <rguenther@suse.de>
18351
18352         PR middle-end/42991
18353         * expr.c (get_inner_reference): Always initialize *pbitsize.
18354
18355 2010-02-07  Richard Guenther  <rguenther@suse.de>
18356
18357         PR middle-end/42956
18358         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
18359         new ARRAY_REFs on variable size element or minimal index arrays.
18360         Complete.
18361         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
18362         gimple_fold_indirect_ref.
18363
18364 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
18365
18366         PR target/42957
18367         * arm.c (arm_override_options): Just return if the user has specified
18368         an invalid fpu name.
18369
18370 2010-02-03  Jason Merrill  <jason@redhat.com>
18371
18372         PR c++/42870
18373         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
18374         i386_pe_maybe_record_exported_symbol.
18375
18376 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
18377
18378         PR target/42924
18379         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
18380         (pa_delegitimize_address): New function.
18381
18382 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
18383
18384         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
18385         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
18386
18387 2010-02-05  Richard Guenther  <rguenther@suse.de>
18388
18389         PR lto/42762
18390         * lto-streamer-in.c (get_resolution): Deal with references
18391         to undefined functions.
18392
18393 2010-02-05  Richard Guenther  <rguenther@suse.de>
18394
18395         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
18396         (fold_const_aggregate_ref): Likewise.
18397         (ccp_fold_stmt): Substitute loads.
18398         (maybe_fold_reference): Verify types before substituting.
18399         Unshare properly.
18400         (fold_gimple_assign): Unshare properly.
18401         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
18402
18403 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
18404
18405         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
18406         for rs6000_gen_cell_microcode.
18407
18408 2010-02-04  Richard Guenther  <rguenther@suse.de>
18409
18410         PR rtl-optimization/42952
18411         * dse.c (const_or_frame_p): Remove MEM handling.
18412
18413 2010-02-04  Nick Clifton  <nickc@redhat.com>
18414
18415         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
18416         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
18417         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
18418         (mn10300_asm_output_mi_thunk): New function.
18419         (mn10300_can_output_mu_thunk): New function.
18420         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
18421         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
18422         (FUNCTION_ARG): Delete incorrect comment.
18423
18424 2010-02-03  Jason Merrill  <jason@redhat.com>
18425
18426         PR c++/40138
18427         * fold-const.c (operand_equal_p): Handle erroneous types.
18428
18429 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
18430
18431         * config/h8300/h8300.md (can_delay): Fix attibute condition.
18432
18433 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
18434
18435         PR rtl-optimization/42941
18436         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
18437         of xmalloc.
18438
18439 2010-02-03  Jason Merrill  <jason@redhat.com>
18440
18441         PR c++/35652
18442         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
18443
18444 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
18445
18446         PR debug/42896
18447         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
18448         (cselib_reset_table): Renamed from...
18449         (cselib_reset_table_with_next_value): ... this.
18450         (cselib_get_next_uid): Renamed from...
18451         (cselib_get_next_unknown_value): ... this.
18452         * cselib.c (next_uid): Renamed from...
18453         (next_unknown_value): ... this.
18454         (cselib_clear_table): Adjust.
18455         (cselib_reset_table): Adjust.  Renamed from...
18456         (cselib_reset_table_with_next_value): ... this.
18457         (cselib_get_next_uid): Adjust.  Renamed from...
18458         (cselib_get_next_unknown_value): ... this.
18459         (get_value_hash): Use hash.
18460         (cselib_hash_rtx): Likewise.
18461         (new_cselib_val): Adjust.  Set and dump uid.
18462         (cselib_lookup_mem): Pass next_uid as hash.
18463         (cselib_subst_to_values): Likewise.
18464         (cselib_log_lookup): Dump uid.
18465         (cselib_lookup): Pass next_uid as hash.  Adjust.
18466         (cselib_process_insn): Adjust.
18467         (cselib_init): Initialize next_uid.
18468         (cselib_finish): Adjust.
18469         (dump_cselib_table): Likewise.
18470         * dse.c (canon_address): Dump value uid.
18471         * print-rtl.c (print_rtx): Print value uid.
18472         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
18473         (dvuid): New type.
18474         (dv_uid): New function, sort of renamed from...
18475         (dv_htab_hash): ... this, reimplemented in terms of it and...
18476         (dv_uid2hash): ... this.  New.
18477         (variable_htab_eq): Drop excess assertions.
18478         (tie_break_pointers): Removed.
18479         (canon_value_cmp): Compare uids.
18480         (variable_post_merge_New_vals): Print uids.
18481         (vt_add_function_parameters): Adjust.
18482         (vt_initialize): Reset table.  Adjust.
18483
18484 2010-02-03  Richard Guenther  <rguenther@suse.de>
18485
18486         PR tree-optimization/42944
18487         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
18488         (call_may_clobber_ref_p_1): Likewise.  Properly handle
18489         malloc and calloc clobbering errno.
18490
18491 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
18492
18493         * doc/invoke.texi: Fix name of sched1 dump.
18494
18495         * opts.c (decode_options): Set flag_tree_switch_conversion
18496         only conditionally on optimize >= 2.
18497
18498         * gcse.c: Assorted comment fixes in pass description.
18499
18500 2010-02-03  Anthony Green  <green@moxielogic.com>
18501
18502         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
18503         nop padding in order to maintain alignment of storage location of
18504         target function address.
18505         (moxie_trampoline_init): Store target function address at newly
18506         aligned location.
18507         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
18508         to 32.
18509         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
18510
18511 2010-02-03  Richard Guenther  <rguenther@suse.de>
18512
18513         PR middle-end/42927
18514         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
18515
18516 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18517
18518         * config.gcc: Reenable check for obsolete targets.
18519         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
18520         mips-sgi-irix6.[0-4]*.
18521
18522 2010-02-02  Nick Clifton  <nickc@redhat.com>
18523
18524         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
18525         constant size of 4 as being the same as 0.
18526         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
18527         can take values in the range 0..4.
18528
18529 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
18530
18531         PR java/41991
18532         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
18533         as _darwin10_Unwind_FindEnclosingFunction().
18534         * libgcc-libsystem.ver: New.
18535
18536 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
18537
18538         PR target/41399
18539         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
18540         implicitly set registers.
18541
18542 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
18543
18544         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
18545         (arm_override_options): Allow automatic selection of the thread
18546         pointer register if thumb2.
18547         (legitimize_pic_address): Improve code sequences for Thumb2.
18548         (arm_call_tls_get_addr): Likewise.
18549         (legitimize_tls_address): Likewise.
18550         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
18551         (pic_load_addr_32bit): ... this.  New named pattern.
18552         * thumb2.md (pic_load_addr_thumb2): Delete.
18553         (pic_load_dot_plus_four): Delete.
18554         (tls_load_dot_plus_four): New named pattern.
18555
18556 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18557
18558         PR libgomp/29986
18559         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
18560         Document fix for TLS bug.
18561
18562 2010-01-31  Richard Guenther  <rguenther@suse.de>
18563
18564         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
18565         conservatively correct.
18566
18567 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18568
18569         PR target/42850
18570         Revert:
18571         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18572
18573         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
18574
18575 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18576
18577         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
18578
18579 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
18580
18581         * config.gcc: Adjust order of makefile fragments for mingw targets.
18582
18583 2010-01-31  Richard Guenther  <rguenther@suse.de>
18584
18585         PR middle-end/42898
18586         * gimplify.c (gimplify_init_constructor): For volatile LHS
18587         initialize a temporary.
18588
18589 2010-01-31  Matthias Klose  <doko@ubuntu.com>
18590
18591         * configure.ac: Fix __stack_chk_fail check for cross builds configured
18592         --with-headers
18593         * configure: Regenerate.
18594
18595 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
18596
18597         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
18598         the same alias set and their sizes different constantness.
18599         (aliasing_component_refs_p): Revert 2009-10-24 change.
18600
18601 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18602
18603         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
18604         unused.
18605
18606 2010-01-29  Richard Guenther  <rguenther@suse.de>
18607
18608         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
18609         Assert we successfully updated the call.
18610
18611 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
18612
18613         PR rtl-optimization/42889
18614         * df.h (df_set_bb_dirty_nonlr): New prototype.
18615         * df-core.c (df_set_bb_dirty_nonlr): New function.
18616         * df-scan.c (df_insn_rescan): Call it instead of
18617         df_set_bb_dirty for DEBUG_INSNs.
18618
18619 2010-01-29  Richard Guenther  <rguenther@suse.de>
18620
18621         PR middle-end/37448
18622         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
18623         quadratic behavior in most cases.
18624
18625 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
18626
18627         PR target/42891
18628         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
18629         in the call to gen_x86_movsicc_0_m1.
18630
18631 2010-01-28  Richard Guenther  <rguenther@suse.de>
18632
18633         PR tree-optimization/42871
18634         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
18635
18636 2010-01-28  Richard Guenther  <rguenther@suse.de>
18637
18638         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
18639         into call arguments.
18640
18641 2010-01-28  Richard Guenther  <rguenther@suse.de>
18642
18643         PR middle-end/42883
18644         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
18645         the forwarder if the destination is an EH landing pad.
18646
18647 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
18648
18649         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
18650         block list passed to gimple_duplicate_sese_tail.
18651         (parallelize_loops): Avoid parallelization when the function
18652         has_nonlocal_label.
18653         Avoid parallelization when the preheader is IRREDUCIBLE.
18654         Try to optimize when estimated_loop_iterations_int is unresolved.
18655         Add the loop's location to the dump file.
18656         * tree-cfg.c (add_phi_args_after_redirect): Remove.
18657         (gimple_duplicate_sese_tail): Remove the check for the latch.
18658         Redirect nexits to the exit block.
18659         Remove handling of the incoming edges to the latch.
18660         Redirect the backedge from the copied latch to the exit bb.
18661
18662 2010-01-28  Michael Matz  <matz@suse.de>
18663
18664         PR target/42881
18665         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
18666         Wrap force_reg into a sequence, emit it before user.
18667
18668 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
18669
18670         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
18671         (arm_rev): New.
18672         (arm_legacy_rev): Likewise.
18673         (thumb_legacy_rev): Likewise.
18674
18675 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
18676
18677         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
18678         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
18679         on MEM's address failed, try avoid_constant_pool_reference and
18680         recurse if it returned something different.
18681         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
18682         address, try avoid_constant_pool_reference and recurse if it
18683         returned something different.
18684         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
18685         address and avoid_constant_pool_reference returned something
18686         different, don't set have_address.
18687
18688 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
18689
18690         PR debug/42861
18691         * var-tracking.c (val_store): Add modified argument, obey it.
18692         Adjust callers.
18693         (count_uses): Move down logging of main.
18694         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
18695         don't need resolution.
18696         (emit_notes_in_bb): Likewise.
18697
18698 2010-01-27  Richard Guenther  <rguenther@suse.de>
18699
18700         PR middle-end/42878
18701         * tree-inline.c (remap_decl): Delay remapping of SSA name
18702         default definitions until we need them.
18703
18704 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
18705
18706         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
18707         (rs6000_delegitimize_address): New function.
18708
18709         * config/s390/s390.c (s390_delegitimize_address): Call
18710         delegitimize_mem_from_attrs.
18711
18712         PR middle-end/42874
18713         * tree-inline.c (cannot_copy_type_1): Removed.
18714         (copy_forbidden): Don't forbid copying of functions containing
18715         records/unions with variable length fields.
18716
18717 2010-01-27  Christian Bruel  <christian.bruel@st.com>
18718
18719         Revert:
18720         PR target/42841
18721         * config/sh/sh.c (find_barrier): Increase length for non delayed
18722         conditional branches.
18723
18724 2010-01-27  Matthias Klose  <doko@ubuntu.com>
18725
18726         * configure.ac (gnu-unique-object): Fix ldd version check.
18727         * configure: Regenerate.
18728
18729 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18730
18731         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
18732         HAVE_GNU_AS value.
18733         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
18734         Test for HAVE_GNU_AS value.
18735
18736 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18737
18738         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
18739         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
18740         INT64_TYPE): Define.
18741         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
18742         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
18743         INT_LEAST64_TYPE): Define.
18744         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
18745         UINT_LEAST64_TYPE): Define.
18746         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
18747         INT_FAST64_TYPE): Define.
18748         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
18749         UINT_FAST64_TYPE): Define.
18750         (INTMAX_TYPE, UINTMAX_TYPE): Define.
18751         (INTPTR_TYPE, UINTPTR_TYPE): Define.
18752         (SIG_ATOMIC_TYPE): Define.
18753
18754 2010-01-26  Richard Guenther  <rguenther@suse.de>
18755
18756         * df-scan.c (df_scan_set_bb_info): Remove assert.
18757         (df_insn_rescan_debug_internal): Merge asserts.
18758         (df_install_ref): Likewise.
18759         (df_mark_reg): Use bitmap_set_range.
18760         (df_hard_reg_used_p): Remove assert.
18761         (df_hard_reg_used_count): Likewise.
18762
18763 2010-01-26  Richard Guenther  <rguenther@suse.de>
18764
18765         PR rtl-optimization/42685
18766         * web.c (web_main): Ignore DEBUG_INSNs.
18767
18768 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
18769
18770         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
18771
18772         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
18773         Fix types of fndecl and arglist parameters.
18774
18775 2010-01-26  Richard Guenther  <rguenther@suse.de>
18776
18777         PR middle-end/42806
18778         * tree-eh.c (unsplit_eh): Skip debug insns.
18779
18780 2010-01-26  Richard Guenther  <rguenther@suse.de>
18781
18782         PR tree-optimization/42250
18783         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
18784
18785 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
18786
18787         PR fortran/42866
18788         * omp-low.c (expand_omp_sections): Only use single_pred if
18789         l2_bb is single_pred_p.
18790
18791 2010-01-25  Christian Bruel  <christian.bruel@st.com>
18792
18793         PR target/42841
18794         * config/sh/sh.c (find_barrier): Increase length for non delayed
18795         conditional branches.
18796         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
18797
18798 2010-01-24  David S. Miller  <davem@davemloft.net>
18799
18800         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
18801         define if not using GAS.
18802         * config/sparc/sparc.c (sparc_elf_asm_named_section):
18803         Likewise.  Delete SECTION_MERGE code, which is only applicable
18804         when using GAS.
18805
18806 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
18807
18808         PR c++/42748
18809         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
18810         mangling of va_list in system headers.
18811
18812 2010-01-23  Toon Moene  <toon@moene.org>
18813
18814         * tree-predcom.c (combine_chains): Return NULL, not false.
18815
18816 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
18817
18818         * tree-loop-distribution.c (distribute_loop): Fix declaration and
18819         initialization of variable res to agree with return type.
18820
18821 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
18822
18823         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
18824         * tree-sra.c: Add include of expr.h.
18825
18826 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
18827
18828         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
18829         insert the debug stmt on the single non-EH edge from the stmt.
18830
18831 2010-01-22  Richard Henderson  <rth@redhat.com>
18832
18833         PR tree-opt/42833
18834         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
18835         the RHS until after generate_subtree_copies has insertted its
18836         code before the current statement.
18837
18838 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
18839
18840         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
18841
18842         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
18843
18844 2010-01-21  Martin Jambor  <mjambor@suse.cz>
18845
18846         PR tree-optimization/42585
18847         * tree-sra.c (struct access): New field grp_total_scalarization.
18848         (dump_access): Dump the new field.
18849         (should_scalarize_away_bitmap): New variable.
18850         (cannot_scalarize_away_bitmap): Likewise.
18851         (sra_initialize): Allocate new bitmaps.
18852         (sra_deinitialize): Free new bitmaps.
18853         (create_access_1): New function.
18854         (create_access): Parts moved to create_access_1.
18855         (type_consists_of_records_p): New function.
18856         (completely_scalarize_record): Likewise.
18857         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
18858         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
18859         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
18860         access.
18861         (analyze_all_variable_accesses): Completely scalarize small eligible
18862         records.
18863
18864 2010-01-21  Martin Jambor  <mjambor@suse.cz>
18865
18866         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
18867
18868 2010-01-21  Andrew Haley  <aph@redhat.com>
18869
18870         * gcc.c (process_command): Move lang_specific_driver before
18871         setting cc_libexec_prefix.
18872
18873 2010-01-21  Richard Guenther  <rguenther@suse.de>
18874
18875         PR middle-end/19988
18876         * fold-const.c (negate_expr_p): Pretend only negative
18877         real constants are easily negatable.
18878
18879 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
18880             Jason Merrill  <jason@redhat.com>
18881
18882         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
18883         (TYPE_TRANSPARENT_AGGR): this, for union and record.
18884         * calls.c (initialize argument_information): Handle it.
18885         * c-common.c (handle_transparent_union_attribute): Use new name.
18886         * c-decl.c (finish_struct): Ditto.
18887         * c-typeck.c (type_lists_compatible_p): Ditto.
18888         (convert_for_assignment): Use new name and also handle record.
18889         * function.c (aggregate_value_p): Handle it.
18890         (pass_by_reference): Ditto.
18891         (assign_parm_data_types): Ditto.
18892         * print-tree.c (print_node): Ditto.
18893         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
18894         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
18895         * tree.c (first_field): New fn.
18896
18897 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
18898
18899         PR target/42818
18900         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
18901         even when linking statically, for now.
18902
18903 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
18904
18905         PR debug/42715
18906         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
18907         without a cselib val.
18908         (count_uses): Accept MO_VAL_SET with no val on stores.
18909         (add_stores): Likewise.
18910
18911 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
18912
18913         * var-tracking.c (check_value_val): Add a compile time assertion.
18914         (dv_is_decl_p): Simplify.
18915         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
18916         gcc_assert if ENABLE_CHECKING.
18917
18918 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
18919
18920         PR debug/42782
18921         * var-tracking.c: Include tree-flow.h.
18922         (mem_dies_at_call): New.
18923         (dataflow_set_preserve_mem_locs): Use it.
18924         (dataflow_set_remove_mem_locs): Likewise.
18925         (dump_var): Renamed from dump_variable.  Adjust all callers.
18926         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
18927         * Makefile.in (var-tracking.o): Adjust deps.
18928
18929 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
18930
18931         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
18932
18933 2010-01-20  Richard Guenther  <rguenther@suse.de>
18934
18935         PR tree-optimization/42717
18936         * tree-ssa-dce.c (get_live_post_dom): Remove.
18937         (forward_edge_to_pdom): Take an arbitrary edge to copy
18938         degenerate PHI args from.
18939         (remove_dead_stmt): Use the first post-dominator even if it
18940         does not contain live statements as redirection destination.
18941
18942 2010-01-20  Richard Guenther  <rguenther@suse.de>
18943
18944         * tree-inline.c (estimate_num_insns): Handle EH builtins.
18945
18946 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
18947
18948         * sel-sched.c (create_speculation_check): Remove set but not used
18949         variable twin.
18950         (try_transformation_cache): Remove set but not used variable ds.
18951         (calculate_privileged_insns): Remove set but not used variables
18952         cur_insn and min_spec_insn.
18953         (find_best_expr): Remove set but not used variable avail_n.
18954         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
18955         variable e.
18956         * cgraphunit.c (assemble_thunk): Remove set but not used variable
18957         false_label.
18958         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
18959         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
18960         new_scop_exit_edge.
18961
18962 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
18963
18964         PR bootstrap/42786
18965         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
18966         cpu types.  Add support for *-sse3 cpu types.
18967         (x86_64-*-*): Ditto.
18968
18969 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
18970
18971         PR middle-end/42803
18972         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
18973         argument, call initializer_constant_valid_p_1 instead of
18974         initializer_constant_valid_p, pass CACHE to it, return NULL
18975         immediately if first call returns NULL.
18976         (initializer_constant_valid_p_1): New function.
18977         (initializer_constant_valid_p): Use it.
18978
18979 2010-01-20  Thomas Quinot  <quinot@adacore.com>
18980
18981         * tree.def (PLACEHOLDER_EXPR): Fix comment.
18982
18983 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
18984
18985         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
18986         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
18987         (loc_list_from_tree): Don't handle unsigned division.  Handle
18988         signed modulo using DW_OP_{over,over,div,mul,minus}.
18989         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
18990         modulo instead of signed.
18991
18992 2010-01-20  DJ Delorie  <dj@redhat.com>
18993
18994         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
18995         (Fpa): Pass it
18996         (h8300_emit_stack_adjustment): Propogate it.
18997         (push): Pass it.
18998         (h8300_expand_prologue): Likewise.
18999         (h8300_expand_epilogue): Likewise.
19000
19001 2010-01-19  Michael Matz  <matz@suse.de>
19002
19003         PR tree-optimization/41783
19004         * tree-data-ref.c (toplevel): Include flags.h.
19005         (dump_data_dependence_relation):  Also dump the inputs if the
19006         result will be unknown.
19007         (split_constant_offset_1): Look through some conversions.
19008         * tree-predcom.c (determine_roots_comp): Restart a new chain if
19009         the offset from last element is too large.
19010         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
19011         (reassociate_to_the_same_stmt): Handle vector registers.
19012         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
19013         (e.g. conversions).
19014         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
19015         wide_prolog_niters argument, emit widening instructions.
19016         (vect_do_peeling_for_alignment): Adjust caller, use widened
19017         variant of the iteration cound.
19018         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
19019
19020 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19021
19022         PR target/38697
19023         * config/arm/neon-testgen.m (emit_automatics): New parameter
19024         features. Adjust for Fixed_return_reg feature.
19025         (test_intrinsic): Call emit_automatics with new feature.
19026         * config/arm/neon.ml: Update copyright years.
19027         (features): New Fixed_return_reg feature.
19028         (ops): Update feature for Vget_low.
19029
19030 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
19031
19032         PR tree-optimization/42719
19033         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
19034         stmt uses.
19035
19036         PR debug/42728
19037         * fwprop.c (all_uses_available_at): Return false if def_set dest
19038         is a REG that is used in def_insn.
19039
19040 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
19041
19042         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
19043
19044         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
19045         Add argument names.
19046
19047         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
19048
19049         * target.h (struct gcc_target) <secondary_reload>: Change type
19050         of last argument to secondary_reload_info *.
19051
19052 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
19053
19054         PR target/42774
19055         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
19056         memory references with unaligned offsets.  Remove CQImode handling.
19057         (unaligned_memory_operand): Return 1 for memory references with
19058         unaligned offsets.  Remove CQImode handling.
19059
19060 2010-01-18  Richard Guenther  <rguenther@suse.de>
19061
19062         PR middle-end/39954
19063         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
19064         builtin calls.
19065
19066 2010-01-18  Richard Guenther  <rguenther@suse.de>
19067
19068         PR tree-optimization/42781
19069         * tree-ssa-structalias.c (find_what_var_points_to): Skip
19070         restrict processing only if the original variable was artificial.
19071
19072 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
19073
19074         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
19075         find number of popped argument bytes.
19076
19077         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
19078         Fix the text that describes the return value for invalid insns.
19079
19080         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
19081
19082         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
19083         Clarify what 'cost of the -dependence' is.  Fix quoting.
19084
19085         * toplev.c (default_get_pch_validity): Rename argument to "sz".
19086         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
19087
19088 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
19089
19090         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
19091         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
19092
19093 2010-01-17  Richard Guenther  <rguenther@suse.de>
19094
19095         PR middle-end/42248
19096         * function.c (split_complex_args): Take a VEC to modify.
19097         (assign_parms_augmented_arg_list): Build a VEC instead of
19098         a chain of PARM_DECLs.
19099         (assign_parms_unsplit_complex): Take a VEC of arguments.
19100         Do not fixup unmodified parms.
19101         (assign_parms): Deal with the VEC.
19102         (gimplify_parameters): Likewise.
19103
19104 2010-01-17  Richard Guenther  <rguenther@suse.de>
19105
19106         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
19107         node existence check.
19108         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
19109         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
19110         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
19111         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
19112         (gimple_execute_on_growing_pred): Likewise.
19113
19114 2010-01-17  Richard Guenther  <rguenther@suse.de>
19115
19116         PR tree-optimization/42773
19117         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
19118         (compute_antic_aux): Likewise.
19119         (compute_partial_antic_aux): Likewise.
19120
19121 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
19122
19123         PR debug/42767
19124         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
19125         and US_TRUNCATE.
19126
19127 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
19128
19129         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
19130         appearance.
19131
19132         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
19133         Fix markup for strict argument.
19134
19135         (TARGET_SCHED_REORDER2): Fix argument types.
19136
19137         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
19138         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
19139
19140         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
19141         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
19142
19143         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
19144         Add argument name.
19145
19146         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
19147         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
19148         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
19149         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
19150         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
19151
19152         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
19153
19154         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
19155
19156         (TARGET_ASM_RELOC_RW_MASK): Add return type.
19157         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
19158
19159         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
19160
19161         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
19162         Use prototype.
19163
19164         (TARGET_ASM_NAMED_SECTION): Fix argument list.
19165
19166         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
19167         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
19168
19169         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
19170
19171         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
19172
19173         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
19174         referring to it.  Fix language.
19175
19176         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
19177
19178         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
19179
19180         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
19181
19182         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
19183
19184         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
19185         '@var{stream}.  Remove stray 'and'.
19186
19187         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
19188
19189         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
19190
19191         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
19192
19193         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
19194         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
19195
19196         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
19197         Fix description of return value.
19198         Rename argument "sz" to "len."
19199
19200         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
19201         Clarify meaning of 'true' return value.
19202
19203         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
19204
19205         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
19206         rep_mode versus mode_rep.
19207
19208         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
19209
19210         (TARGET_BUILTIN_DECL): Fix name.
19211
19212         (TARGET_COMMUTATIVE_P): Fix type of first argument.
19213
19214         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
19215
19216         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
19217
19218         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
19219
19220         (TARGET_RELAXED_ORDERING): Use @deftypevr.
19221
19222         (TARGET_GET_DRAP_RTX): Note that this is a hook.
19223         Clarify language.
19224
19225         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
19226         Rename argument tm_fn to md_fn.
19227
19228         (TARGET_OPTION_PRINT): Fix argument list.
19229
19230 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
19231
19232         PR target/42664
19233         * config/i386/i386.c (ix86_fixup_binary_operands):
19234         Revert FMA4 fixup of operands.
19235
19236 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19237
19238         PR gcc/42525
19239         * Makefile.in (write_entries_to_file, install-plugin):
19240         Use \012 instead of \n with tr.
19241
19242 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
19243
19244         * configure.ac (HAVE_AS_REF): New C macro.
19245         * configure: Regenerate.
19246         * config.in: Likewise.
19247         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
19248         if HAVE_AS_REF.
19249         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
19250         if HAVE_AS_REF.
19251
19252 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
19253
19254         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
19255
19256         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
19257
19258         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
19259
19260         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
19261
19262         (TARGET_IN_SMALL_DATA_P): Fix argument type.
19263
19264         (TARGET_BINDS_LOCAL_P): Fix argument type.
19265
19266         (TARGET_ASM_FILE_END): Use prototype.
19267
19268         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
19269
19270         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
19271
19272         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
19273
19274         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
19275
19276         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
19277         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
19278
19279         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
19280         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
19281
19282         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
19283         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
19284         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
19285         (TARGET_ADDR_SPACE_CONVERT): Likewise.
19286
19287         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
19288
19289         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
19290
19291         (TARGET_INIT_BUILTINS): Use prototype.
19292
19293         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
19294         Put 'const char *' in braces.  Fix parameter types.
19295         (TARGET_INVALID_CONVERSION): Fix parameter types.
19296         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
19297         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
19298
19299         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
19300         Fix argument type.
19301
19302         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
19303
19304         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
19305
19306 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
19307
19308         * doc/tm.texi (TARGET_HELP): Fix return type.
19309
19310         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
19311         in braces.  Fix argument types.
19312
19313         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
19314
19315         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
19316
19317         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
19318
19319         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
19320         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
19321
19322         (TARGET_MANGLE_TYPE): Fix argument types.
19323
19324         (TARGET_IRA_COVER_CLASSES): Use prototype.
19325
19326         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
19327
19328         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
19329
19330         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
19331
19332         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
19333
19334         (TARGET_CALLEE_COPIES): Fix argument types.
19335
19336         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
19337
19338         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
19339
19340         (TARGET_FUNCTION_VALUE): Fix argument types.
19341
19342         (TARGET_RETURN_IN_MSB): Fix argument type.
19343
19344         (TARGET_RETURN_IN_MEMORY): Fix argument types.
19345
19346         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
19347
19348         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
19349
19350         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
19351         agree with return type.
19352
19353         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
19354
19355 2010-01-15  Jing Yu  <jingyu@google.com>
19356
19357         PR rtl-optimization/42691
19358         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
19359         a pseudo to a constant and are merged, and adjust comments.
19360
19361 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
19362
19363         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
19364
19365 2010-01-15  Richard Guenther  <rguenther@suse.de>
19366
19367         PR middle-end/42739
19368         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
19369         labels of computed or non-local gotos to the destination.
19370         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
19371         landing pad label is the first label.
19372
19373 2010-01-15  Richard Guenther  <rguenther@suse.de>
19374
19375         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
19376
19377 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
19378
19379         PR target/42747
19380         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
19381         to allow generation of the xssqrtdp instruction on power7.
19382         (sqrtdf2_fpr): Ditto.
19383
19384 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
19385
19386         PR middle-end/42674
19387         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
19388         functions with noreturn attribute.
19389
19390         PR c++/42608
19391         * varasm.c (declare_weak): Add weak attribute to decl if it
19392         doesn't have one already.
19393         (assemble_external): Only add decls to weak_decls if they also
19394         have weak attribute.
19395
19396 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
19397
19398         * var-tracking.c (var_reg_delete): Don't delete the association
19399         between REGs and values or one-part variables if the register
19400         isn't clobbered.
19401
19402 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
19403
19404         PR debug/42657
19405         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
19406         because its first operand is a non-localized variable.
19407
19408 2010-01-14  Martin Jambor  <mjambor@suse.cz>
19409
19410         PR tree-optimization/42706
19411         * tree-sra.c (encountered_recursive_call): New variable.
19412         (encountered_unchangable_recursive_call): Likewise.
19413         (sra_initialize): Initialize both new variables.
19414         (callsite_has_enough_arguments_p): New function.
19415         (scan_function): Call decl and flags check only for IPA-SRA, check
19416         whether there is a recursive call and whether it has enough arguments.
19417         (all_callers_have_enough_arguments_p): New function.
19418         (convert_callers): Look for recursive calls only when
19419         encountered_recursive_call is set.
19420         (ipa_early_sra): Bail out either if
19421         !all_callers_have_enough_arguments_p or
19422         encountered_unchangable_recursive_call.
19423
19424 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
19425
19426         * sel-sched.c: Add 2010 to copyright years.
19427         * sel-sched-ir.c: Likewise.
19428         * sel-sched-ir.h: Likewise.
19429
19430 2010-01-14  Martin Jambor  <mjambor@suse.cz>
19431
19432         PR tree-optimization/42714
19433         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
19434         constructors specially.
19435
19436 2010-01-14  Andi Kleen  <ak@linux.intel.com>
19437
19438         * config/i386/drivers-i386.c (detect_caches_intel):
19439         Add l2sizekb parameter and fill in.
19440         (host_detect_local_cpu): Add l2sizekb, fill in.
19441         Add Atom small cache heuristic.
19442
19443 2010-01-14  Andi Kleen  <ak@linux.intel.com>
19444
19445         * config/i386/drivers-i386.c (detect_caches_cpuid4):
19446         Add level3 parameter and fill in.
19447         (detect_caches_intel): Handle level3 cache.
19448
19449 2010-01-14  Andi Kleen  <ak@linux.intel.com>
19450
19451         * config/i386/drivers-i386.c (host_detect_local_cpu):
19452         Fix core duo detection.
19453
19454 2010-01-14  Andi Kleen  <ak@linux.intel.com>
19455
19456         * config/i386/drivers-i386.c (host_detect_local_cpu):
19457         Fix Atom detection.
19458
19459 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
19460
19461         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
19462         (rs6000_variable_issue_1): this.  Use...
19463         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
19464
19465 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
19466
19467         * sel-sched-ir.c (sel_restore_other_notes): Rename to
19468         sel_restore_notes.  Update all callers.  Call reemit_notes
19469         for all insns.
19470
19471 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
19472
19473         PR rtl-optimization/42246
19474         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
19475         loops.
19476
19477 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
19478
19479         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
19480         all successors is the same as number of successors in current region.
19481
19482 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
19483
19484         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
19485         to rename is not separable.  Otherwise check that its LHS is not NULL.
19486
19487 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
19488
19489         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
19490
19491 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
19492
19493         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
19494         available registers when failed to discover LHS register class.
19495         Fix indentation.  Update comment.
19496
19497 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
19498             Alexander Monakov  <amonakov@ispras.ru>
19499
19500         PR rtl-optimization/42389
19501         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
19502         to can_issue_more.
19503         (advance_state_on_fence): Likewise.
19504         (sel_target_adjust_priority): Print debug output only when
19505         sched_verbose >= 4, not 2.
19506         (get_expr_cost): Do not issue all unique insns on the next cycle.
19507         (fill_insns): Initialize can_issue_more from the value saved
19508         with the fence.
19509         * sel-sched-ir.c (flist_add): New parameter issue_more.
19510         Init FENCE_ISSUE_MORE with it.
19511         (merge_fences): Likewise.
19512         (init_fences): Update call to flist_add.
19513         (add_to_fences, add_clean_fence_to_fences)
19514         (add_dirty_fence_to_fences): Likewise.
19515         (move_fence_to_fences): Update call to merge_fences.
19516         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
19517         sched groups.
19518         * sel-sched-ir.h (struct _fence): New field issue_more.
19519         (FENCE_ISSUE_MORE): New accessor macro.
19520
19521 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
19522
19523         PR rtl-optimization/42388
19524         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
19525         that have no predecessors nor successors.  Do not call move_bb_info
19526         for empty blocks outside of current region.
19527
19528 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
19529
19530         PR rtl-optimization/42294
19531         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
19532         * sel-sched.c (move_exprs_to_boundary): Transitively add all
19533         originators' originators.
19534
19535 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
19536
19537         PR rtl-optimization/39453
19538         PR rtl-optimization/42246
19539         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
19540         for pipelining_p.
19541         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
19542
19543 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
19544             Alexander Monakov  <amonakov@ispras.ru>
19545
19546         PR middle-end/42245
19547         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
19548         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
19549         argument.  Update all callers.
19550         (tidy_control_flow): ... and here.  Recompute topological order
19551         of basic blocks in region if necessary.
19552         (sel_redirect_edge_and_branch): Change return type.  Return true
19553         if topological order might have been invalidated.
19554         (purge_empty_blocks): Export and move from...
19555         * sel-sched.c (purge_empty_blocks): ... here.
19556         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
19557         (maybe_tidy_empty_bb): Delete prototype.
19558         (purge_empty_blocks): Declare.
19559
19560 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
19561
19562         PR rtl-optimization/42249
19563         * sel-sched.c (try_replace_dest_reg): When chosen register
19564         and original register is the same, do not bail out early, but
19565         still check all original insns for validity of replacing destination
19566         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
19567         in this case.
19568
19569 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
19570
19571         PR c/42721
19572         Port from no-undefined-overflow branch:
19573         2009-03-09  Richard Guenther  <rguenther@suse.de>
19574
19575         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
19576
19577 2010-01-14  Richard Guenther  <rguenther@suse.de>
19578
19579         PR lto/42665
19580         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
19581
19582 2010-01-14  Ira Rosen  <irar@il.ibm.com>
19583
19584         PR tree-optimization/42709
19585         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
19586         as scalar type in creation of constant vector operand.
19587
19588 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19589
19590         PR testsuite/42414
19591         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
19592         (check-parallel-%): Match `testsuite' directory component only
19593         at the end.
19594
19595 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
19596
19597         PR translation/39521
19598         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
19599         strings with _().
19600
19601 2010-01-13  Richard Guenther  <rguenther@suse.de>
19602
19603         PR tree-optimization/42730
19604         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
19605         offset zero.
19606
19607 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
19608
19609         PR target/pr42542
19610         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
19611         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
19612         them signed.
19613
19614 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
19615
19616         * config/bfin/libgcc-bfin.ver: Regenerate based on current
19617         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
19618         ___umulsi3_highpart.
19619
19620         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
19621         rather than schedule_insns if the pass is enabled.
19622
19623 2010-01-13  Martin Jambor  <mjambor@suse.cz>
19624
19625         PR tree-optimization/42704
19626         * tree-sra.c (sra_modify_assign): Do not delete assignments to
19627         SSA_NAMEs.
19628
19629 2010-01-13  Martin Jambor  <mjambor@suse.cz>
19630
19631         PR tree-optimization/42703
19632         * tree-sra.c (analyze_access_subtree): Check that we can build a
19633         reference to the original data within the aggregate.
19634
19635 2010-01-13  Richard Guenther  <rguenther@suse.de>
19636
19637         PR tree-optimization/42705
19638         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
19639
19640 2010-01-13  Richard Guenther  <rguenther@suse.de>
19641
19642         PR middle-end/42716
19643         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
19644
19645 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
19646
19647         PR debug/41371
19648         * var-tracking.c (values_to_unmark): New variable.
19649         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
19650         values_to_unmark vector.  Moved body to...
19651         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
19652         instead queue it into values_to_unmark vector.
19653         (vt_find_locations): Free values_to_unmark vector.
19654
19655 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
19656
19657         * config/s390/s390.c (override_options): Set
19658         default of max-pending-list-length to 256
19659
19660 2010-01-13  Richard Guenther  <rguenther@suse.de>
19661
19662         PR lto/42678
19663         * tree-pass.h (PROP_gimple_lcx): New.
19664         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
19665         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
19666         before the final cleanup_eh.
19667         (dump_properties): Dump PROP_gimple_lcx.
19668         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
19669         (tree_lower_complex_O0): Remove.
19670         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
19671         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
19672         tree_lower_complex, schedule TODO_update_ssa.
19673         * lto-streamer-out.c (output_function): Stream the functions
19674         properties.
19675         * lto-streamer-in.c (input_function): Likewise.
19676         (lto_read_body): Do not override them here.
19677
19678 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
19679
19680         PR c/42708
19681         * c-typeck.c (build_c_cast): Fold value cast to union type before
19682         wrapping it in a CONSTRUCTOR.
19683
19684 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
19685
19686         PR rtl-optimization/42699
19687         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
19688         involved.
19689
19690 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19691
19692         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
19693         SUBTARGET_WARN_UNUSED_SPEC): Move ...
19694         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
19695         SUBTARGET_WARN_UNUSED_SPEC): ... here
19696         * config/mips/iris5.h (LIBGCC_SPEC): Define.
19697
19698 2010-01-12  Julian Brown  <julian@codesourcery.com>
19699
19700         * config/arm/neon-schedgen.ml (Utils): Don't try to
19701         open missing module.
19702         (find_with_result): New.
19703
19704 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
19705
19706         PR debug/42662
19707         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
19708         sharing when canonicalizing ({lt,ge}u (plus a b) b).
19709
19710         PR tree-optimization/42645
19711         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
19712         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
19713         decl_map, set processing_debug_stmt to -1 and return name without
19714         any remapping.
19715
19716 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
19717
19718         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
19719         binutils version, and reword target configuration description.
19720
19721 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
19722
19723         * config/avr/avr.h (LINKER_NAME): Remove.
19724
19725 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
19726
19727         PR target/42416
19728         * config/rs6000/rs6000.c (rs6000_override_options): On targets
19729         that support VSX, warn for -mno-altivec if vsx is not disabled,
19730         and disable vsx.
19731
19732 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
19733             Shujing Zhao  <pearly.zhao@oracle.com>
19734
19735         PR translation/42469
19736         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
19737         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
19738         character between option name and help text.
19739         * c.opt (imultilib): Likewise.
19740
19741 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
19742
19743         * lto-streamer-out.c (output_unreferenced_globals): Output static
19744         variables.
19745
19746 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
19747
19748         PR rtl-optimization/42621
19749         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
19750         optimizing for size.
19751         (duplicate_computed_gotos): Remove now-redundant check.
19752
19753 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
19754
19755         PR target/37454
19756         * configure.ac: Save and restore LDFLAGS and LIBS
19757         * configure: Regenerate.
19758
19759 2010-01-10  Richard Guenther  <rguenther@suse.de>
19760
19761         PR middle-end/42667
19762         * builtins.c (fold_builtin_strlen): Add type argument and
19763         convert the resulting length to it.
19764         (fold_builtin_1): Adjust.
19765
19766 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
19767
19768         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
19769         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
19770         1 insn.
19771         (num_insns_constant_wide): Adjust for that change.
19772
19773 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
19774
19775         PR debug/42631
19776         * web.c (union_defs): Add used argument, to combine uses of
19777         uninitialized regs.
19778         (entry_register): Adjust type and tests of used argument.
19779         (web_main): Widen used for new use.  Pass it to union_defs.
19780         * df.h (union_defs): Adjust prototype.
19781
19782 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
19783
19784         PR debug/42630
19785         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
19786         uses in new incoming argument.  Free body.
19787         (reset_debug_uses_in_loop): New.
19788         (analyze_insn_to_expand_var): Call the latter if the former found
19789         anything.  Fix whitespace.  Reject invalid dest overlaps before
19790         going through all insns in the loop.
19791
19792 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
19793
19794         PR debug/42629
19795         * haifa-sched.c (dying_use_p): Debug insns don't count.
19796
19797 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
19798
19799         PR middle-end/42363
19800         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
19801         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
19802         (verify_gimple_call): Reject LHS in noreturn calls.
19803
19804 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
19805
19806         PR debug/42604
19807         PR debug/42395
19808         * tree-vect-loop-manip.c (adjust_info): New type.
19809         (adjust_vec): New pointer to vector.
19810         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
19811         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
19812         (slpeel_update_phis_for_duplicate_loop): Use them.
19813         (slpeel_update_phi_nodes_for_guard1): Likewise.
19814         (slpeel_update_phi_nodes_for_guard2): Likewise.
19815         (slpeel_tree_peel_loop_to_edge): Likewise.
19816         (vect_update_ivs_after_vectorizer): Likewise.
19817
19818 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
19819
19820         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
19821         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
19822
19823 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
19824
19825         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
19826         bogus uninitialized warning.
19827
19828 2010-01-09  Richard Guenther  <rguenther@suse.de>
19829
19830         PR middle-end/42512
19831         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
19832         the evolution is compatible with the initial condition.
19833
19834 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
19835
19836         * gcc.c (process_command): Update copyright notice dates.
19837         * gcov.c (print_version): Likewise.
19838         * gcov-dump.c (print_version): Likewise.
19839         * mips-tfile.c (main): Likewise.
19840         * mips-tdump.c (main): Likewise.
19841
19842 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
19843
19844         PR target/41885
19845         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
19846         (rotlhi3): Delete.
19847         (rotlhi3_8): Delete.
19848         (rotlsi3): Delete.
19849         (rotlsi3_8): Delete.
19850         (rotlsi3_16): Delete.
19851         (rotlsi3_24): Delete.
19852         (rotl<mode>3): New.
19853         (*rotw<mode>3): New.
19854         (*rotb<mode>3): New.
19855         * config/avr/avr.c (avr_rotate_bytes): New function.
19856         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
19857
19858 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
19859
19860         PR target/37454
19861         * configure.ac: Modify -rdynamic check.
19862         * configure: Regenerate.
19863
19864 2010-01-08  DJ Delorie  <dj@redhat.com>
19865
19866         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
19867         register popping order.
19868
19869 2010-01-08  Richard Guenther  <rguenther@suse.de>
19870
19871         PR lto/42528
19872         * c.opt (fsigned-char): Also let LTO handle this option.
19873         (funsigned-char): Likewise.
19874
19875 2010-01-07  Richard Guenther  <rguenther@suse.de>
19876
19877         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
19878         (gimple_op): Likewise.
19879         (gimple_op_ptr): Likewise.
19880         (gimple_assign_set_lhs): Remove gcc_assert.
19881         (gimple_assign_set_rhs1): Likewise.
19882         (gimple_assign_set_rhs2): Likewise.
19883         (gimple_call_set_lhs): Likewise.
19884         (gimple_call_set_fn): Likewise.
19885         (gimple_call_set_fndecl): Likewise.
19886         (gimple_call_fndecl): Likewise.
19887         (gimple_call_return_type): Likewise.
19888         (gimple_call_set_chain): Likewise.
19889         (gimple_call_num_args): Likewise.
19890         (gimple_call_set_arg): Likewise.
19891         (gimple_cond_set_code): Likewise.
19892         (gimple_cond_set_lhs): Likewise.
19893         (gimple_cond_set_rhs): Likewise.
19894         (gimple_cond_set_true_label): Likewise.
19895         (gimple_cond_set_false_label): Likewise.
19896         (gimple_label_set_label): Likewise.
19897         (gimple_goto_set_dest): Likewise.
19898         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
19899         (gimple_debug_bind_get_value): Likewise.
19900         (gimple_debug_bind_get_value_ptr): Likewise.
19901         (gimple_debug_bind_set_var): Likewise.
19902         (gimple_debug_bind_set_value): Likewise.
19903         (gimple_debug_bind_reset_value): Likewise.
19904         (gimple_debug_bind_has_value_p): Likewise.
19905         (gimple_return_retval_ptr): Remove gcc_assert.
19906         (gimple_return_retval): Likewise.
19907         (gimple_return_set_retval): Likewise.
19908         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
19909         (safe_referenced_var_iterator): Remove.
19910         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
19911         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
19912         (fill_referenced_var_vec): Remove.
19913         (first_readonly_imm_use): Remove redundant gcc_assert.
19914         (phi_arg_index_from_use): Combine gcc_asserts.
19915         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
19916         (first_imm_use_stmt): Remove redundant gcc_assert.
19917         * tree-cfg.c (verify_gimple_call): Verify function and chain
19918         operands.  Verify arguments.
19919         (verify_types_in_gimple_stmt): Verify condition code and labels.
19920
19921 2010-01-07  Richard Guenther  <rguenther@suse.de>
19922
19923         PR tree-optimization/42641
19924         * sese.c (rename_map_elt_info): Use the SSA name version, do
19925         not hash pointers.
19926
19927 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
19928
19929         PR tree-optimization/42625
19930         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
19931         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
19932
19933 2010-01-07  Duncan Sands  <baldrick@free.fr>
19934
19935         * Makefile.in (PLUGIN_HEADERS): Add version.h.
19936
19937 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
19938
19939         PR target/42511
19940         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
19941         note itself is not function_invariant_p.
19942
19943 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
19944
19945         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
19946         Do not add the DF_NOTE problem.
19947         * store-motion.c (execute_rtl_store_motion): Likewise.
19948
19949 2010-01-07  Martin Jambor  <mjambor@suse.cz>
19950
19951         PR tree-optimization/42157
19952         * tree-sra.c (compare_access_positions): Stabilize sort if both
19953         accesses have integer types, return zero immediately if they are the
19954         same.
19955
19956 2010-01-06  Richard Henderson  <rth@redhat.com>
19957
19958         PR middle-end/41883
19959         * haifa-sched.c (add_to_note_list): Merge into ...
19960         (concat_note_lists): ... here, and ...
19961         (unlink_other_notes, rm_other_notes): Merge into...
19962         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
19963         NOTE_INSN_EPILOGUE_BEG.
19964
19965 2010-01-06  Richard Guenther  <rguenther@suse.de>
19966
19967         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
19968         not inline regular functions into always-inline functions.
19969
19970 2010-01-06  Nick Clifton  <nickc@redhat.com>
19971
19972         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
19973         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
19974         used together.
19975         (OVERRIDE_OPTIONS): Delete.
19976         (OPTIMIZATION_OPTIONS): Define.
19977         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
19978         * config/rx/rx.c (rx_handle_option): Issue an error message if
19979         -mcpu=rx200 and -fpu are used together.
19980         (rx_set_optimization_options): New function.  Issue an error
19981         message if an optimization attribute attempts to reset the FPU/
19982         math optimization pairing.
19983         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
19984         * config/rx/rx.opt: Set the default to 32-bit doubles.
19985         * config/rx/t-rx: Add multilibs for -nofpu option.
19986         * doc/invoke.texi: Update documentation of RX options.
19987
19988 2010-01-06  Richard Guenther  <rguenther@suse.de>
19989
19990         * tree-ssa-pre.c (name_to_id): New global.
19991         (alloc_expression_id): Simplify SSA name handling.
19992         (lookup_expression_id): Likewise.
19993         (init_pre): Zero name_to_id.
19994         (fini_pre): Free it.
19995
19996 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
19997
19998         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
19999
20000 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
20001
20002         PR target/42542
20003         * config/i386/sse.md (smaxv2di3): New.
20004         (umaxv2di3): Likewise.
20005         (sminv2di3): Likewise.
20006         (uminv2di3): Likewise.
20007
20008 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
20009
20010         PR target/42564
20011         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
20012         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
20013         (legitimize_tls_address): Likewise.
20014         (sparc_tls_referenced_p): Likewise.
20015         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
20016         and adjust calls to legitimize_pic_address.
20017         (legitimate_constant_p) Use sparc_tls_referenced_p.
20018         (legitimate_pic_operand_p): Likewise.
20019         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
20020         (sparc_tls_symbol_ref_1): Delete.
20021         (sparc_tls_referenced_p): Make static, recognize specific patterns.
20022         (legitimize_tls_address): Make static, handle CONST patterns.
20023         (legitimize_pic_address): Make static, remove unused parameter and
20024         adjust recursive calls.
20025         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
20026         and adjust call to legitimize_pic_address.
20027         (sparc_output_mi_thunk): Likewise.
20028
20029 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
20030             H.J. Lu  <hongjiu.lu@intel.com>
20031
20032         PR target/42542
20033         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
20034         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
20035         operands to make them signed.
20036
20037         Revert:
20038         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
20039
20040         PR target/42542
20041         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
20042         GTU to GT for V4SI and V2DI.
20043
20044         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
20045         (umin<mode>3): Removed.
20046         (uminv8hi3): New.
20047         (uminv4si3): Likewise.
20048
20049 2010-01-05  Martin Jambor  <mjambor@suse.cz>
20050
20051         PR tree-optimization/42462
20052         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
20053         current_function_decl to helper functions and macros.
20054
20055 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20056
20057         PR bootstrap/41771
20058         * flags.h: Don't include real.h.
20059         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
20060         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
20061         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
20062         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
20063         * dominance.c: Update copyright.
20064         * gimple.c (walk_gimple_op): Remove inline.
20065         * tree-ssa-reassoc.c: Include real.h.
20066         * Makefile.in (FLAGS_H): Remove $(REAL_H).
20067         (tree-ssa-reassoc.o): Depend on $(REAL_H).
20068
20069 2010-01-05  Nick Clifton  <nickc@redhat.com>
20070
20071         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
20072         register to push into the stack frame when the accumulator has to
20073         be saved during interrupts.
20074
20075 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
20076
20077         * doc/invoke.texi: Remove the documentation about option
20078         -Wunreachable-code.
20079         * common.opt (Wunreachable-code):  Preserved for backward
20080         compatibility.
20081         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
20082         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
20083         the backward compatibility flag section.
20084
20085 2010-01-05  Richard Guenther  <rguenther@suse.de>
20086
20087         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
20088
20089 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
20090
20091         PR other/42611
20092         * cfgexpand.c (expand_one_var): Diagnose too large variables.
20093
20094         PR tree-optimization/42508
20095         * tree-sra.c (convert_callers): Check for recursive call
20096         by comparing cgraph nodes instead of decls.
20097         (modify_function): Call ipa_modify_formal_parameters also
20098         on all same_body aliases.
20099
20100         * cgraphunit.c (cgraph_materialize_all_clones): Compare
20101         cgraph nodes when checking for same_body aliases.
20102
20103 2010-01-05  Richard Guenther  <rguenther@suse.de>
20104
20105         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
20106         allocation and lookup.
20107         (get_or_alloc_expr_for_constant): Likewise.
20108         (phi_translate): Sink allocation.
20109
20110 2010-01-04  Richard Guenther  <rguenther@suse.de>
20111
20112         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
20113         a new entry only if needed.
20114         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
20115         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
20116         hashtable lookup.
20117         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
20118         the result array.
20119         (phi_translate): Handle CONSTANTs early.
20120
20121 2010-01-04  Martin Jambor  <mjambor@suse.cz>
20122
20123         PR tree-optimization/42398
20124         * tree-sra.c (struct access): Removed flag grp_different_types.
20125         (dump_access): Do not dump the removed flag.
20126         (sort_and_splice_var_accesses): Do not set the removed flag.
20127         (sra_modify_expr): Check for type compatibility directly.
20128
20129 2010-01-04  Martin Jambor  <mjambor@suse.cz>
20130
20131         PR tree-optimization/42366
20132         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
20133         edges with variable number of parameters.
20134         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
20135         flag instead of asserting it.
20136         (ipa_read_node_info): Read uses_analysis_done flag.
20137
20138 2010-01-04  Richard Guenther  <rguenther@suse.de>
20139
20140         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
20141         iterative_hash_* as intended.
20142         (vn_reference_compute_hash): Likewise.  Simplify hashing
20143         SSA names.
20144         (vn_reference_lookup_2): Likewise.
20145         (vn_nary_op_compute_hash): Likewise.
20146         (vn_phi_compute_hash): Likewise.
20147         (expressions_equal_p): Remove strange code.
20148         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
20149         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
20150         (bitmap_insert_into_set_1): Take value-id as parameter.
20151         (add_to_value): Pass it.
20152         (bitmap_insert_into_set): Likewise.
20153         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
20154
20155 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
20156
20157         PR driver/42442
20158         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
20159         (do_self_spec): For switches with SWITCH_IGNORE set set also
20160         SWITCH_IGNORE_PERMANENTLY.
20161         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
20162         of SWITCH_IGNORE.
20163
20164 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
20165
20166         * lto-streamer-out.c (output_unreferenced_globals): Output the full
20167         tree of an unreferenced global var.
20168
20169 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
20170
20171         PR target/42542
20172         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
20173         GTU to GT for V4SI and V2DI.
20174
20175         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
20176         (umin<mode>3): Removed.
20177         (uminv8hi3): New.
20178         (uminv4si3): Likewise.
20179
20180 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
20181
20182         PR lto/42581
20183         * collect2.c (main): Turn on trace in collect2 if -v is passed
20184         to gcc with LTO.
20185
20186 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
20187
20188         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
20189         description of expression operand.
20190
20191 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
20192
20193         * configure.ac: Add install-html to target_list for Make-hooks.
20194         * configure: Regenerate.
20195         * fortran/Make-lang.in (F95_HTMLFILES): New.
20196         (fortran.html): Use it.
20197         (fortran.install-html): New.
20198         * Makefile.in (install-html): Add lang.install-html.
20199         * java/Make-lang.in (JAVA_HTMLFILES): New.
20200         (java.html): Use it.
20201         (java.install-html): New.
20202         * objc/Make-lang.in (objc.install-html): New.
20203         * objcp/Make-lang.in (obj-c++.install-html): New.
20204         * cp/Make-lang.in (c++.install-html): New.
20205         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
20206         * lto/Make-lang.in (lto.install-html): New.
20207
20208 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
20209
20210         PR lto/42520
20211         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
20212
20213 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
20214
20215         PR rtl-optimization/41862
20216         * store-motion.c (store_killed_in_insn, compute_store_table,
20217         remove_reachable_equiv_notes, replace_store_insn,
20218         build_store_vectors): Ignore all DEBUG_INSNs.
20219
20220 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
20221
20222         PR lto/41564
20223         * common.opt: Add dumpdir.
20224
20225         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
20226         isn't specified.
20227         (option_map): Add --dumpdir.
20228
20229         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
20230
20231         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
20232
20233         * opts.c (decode_options): Try dump_dir_name first if
20234         dump_base_name isn't an absolute path.
20235         (common_handle_option): Handle OPT_dumpdir.
20236
20237         * toplev.c (dump_dir_name): New.
20238         (print_switch_values): Also ignore -dumpdir.
20239
20240         * toplev.h (dump_dir_name): New.
20241
20242 2010-01-03  Richard Guenther  <rguenther@suse.de>
20243
20244         PR tree-optimization/42589
20245         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
20246         double-word expansion of bswap32.
20247
20248 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
20249
20250         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
20251         with BLOCK_FOR_INSN.
20252         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
20253         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
20254         noce_process_if_block): Likewise.
20255         * gcse.c (compute_local_properties, insert_expr_in_table,
20256         insert_set_in_table, canon_list_insert, find_avail_set,
20257         pre_insert_copy_insn): Likewise.
20258
20259         * basic-block.h (BLOCK_NUM): Move from here...
20260         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
20261
20262 2010-01-03  Richard Guenther  <rguenther@suse.de>
20263
20264         PR tree-optimization/42438
20265         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
20266         contains_may_not_return_call flag.
20267         (BB_MAY_NOTRETURN): New.
20268         (valid_in_sets): Trapping nary operations are not valid
20269         in blocks that may not return.
20270         (insert_into_preds_of_block): Remove check for trapping expressions.
20271         (compute_avail): Compute also BB_MAY_NOTRETURN.
20272
20273 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
20274
20275         * doc/invoke.texi: Add 2010 to copyright years.
20276
20277 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
20278
20279         * config/sparc/sparc.c: Fix formatting nits.
20280
20281 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
20282             Alexander Monakov  <amonakov@ispras.ru>
20283
20284         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
20285
20286 2010-01-02  Richard Guenther  <rguenther@suse.de>
20287
20288         PR middle-end/42577
20289         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
20290         (simplify_switch_using_ranges): Mark to be removed edges
20291         as non-executable.
20292
20293 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20294
20295         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
20296
20297         * collect2.c (scan_libraries): Add missing argument in call to
20298         scan_prog_file.
20299
20300 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
20301
20302         PR target/42448
20303         * config/alpha/predicates.md (aligned_memory_operand): Return false
20304         for CQImode.
20305         (unaligned_memory_operand): Return true for CQImode.
20306         * config/alpha/alpha.c (get_aligned_mem): Assert that location
20307         doesn not cross aligned SImode word boundary.
20308
20309 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
20310
20311         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
20312         Remove.
20313         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
20314         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
20315
20316 2010-01-02  Richard Guenther  <rguenther@suse.de>
20317
20318         PR lto/41597
20319         * toplev.c (compile_file): Emit LTO marker properly.  Change
20320         it to __gnu_lto_v1.
20321         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
20322
20323 2010-01-01  Richard Guenther  <rguenther@suse.de>
20324
20325         PR debug/42455
20326         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
20327
20328 2010-01-01  Richard Guenther  <rguenther@suse.de>
20329
20330         PR c/42570
20331         * c-decl.c (grokdeclarator): For zero-size arrays force
20332         structural equality checks as layout_type does.
20333
20334 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
20335
20336         * builtins.c: Update copyright to 2010.
20337
20338 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
20339
20340         PR lto/42531
20341         * lto-streamer-out.c (produce_asm): Revert the last change.
20342         (copy_function): Likewise.
20343
20344         * lto-streamer.c (lto_get_section_name): Skip any leading
20345         asterisk in name.
20346
20347 2010-01-01  Richard Guenther  <rguenther@suse.de>
20348
20349         PR middle-end/42559
20350         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
20351         for LABEL_DECLs.
20352
20353 \f
20354 Copyright (C) 2010 Free Software Foundation, Inc.
20355
20356 Copying and distribution of this file, with or without modification,
20357 are permitted in any medium without royalty provided the copyright
20358 notice and this notice are preserved.