OSDN Git Service

2011-08-04 Kai Tietz <ktietz@redhat.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-08-04  Kai Tietz  <ktietz@redhat.com>
2
3         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
4         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
5
6 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
7
8         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
9         pattern def statement, and its access macro.
10         (NUM_PATTERNS): Set to 5.
11         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
12         pattern def statement.
13         (vect_transform_loop): Likewise.
14         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
15         function vect_recog_over_widening_pattern ().
16         (vect_operation_fits_smaller_type): New function.
17         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
18         Likewise.
19         (vect_pattern_recog_1): Move the code that marks pattern
20         statements to vect_mark_pattern_stmts (), and call it.  Update
21         documentation.
22         * tree-vect-stmts.c (vect_supportable_shift): New function.
23         (vect_analyze_stmt): Handle pattern def statement.
24         (new_stmt_vec_info): Initialize pattern def statement.
25
26 2011-08-04  Richard Henderson  <rth@redhat.com>
27
28         PR target/49964
29         * config/i386/i386.c (ix86_expand_call): Don't create nested
30         PARALLELs for TARGET_VZEROUPPER.
31         (ix86_split_call_vzeroupper): Fix extraction of the original call.
32         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
33         recognize nested PARALLELs.
34         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
35         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
36         *sibcall_value_pop_vzeroupper): Likewise.
37
38 2011-08-04  Richard Henderson  <rth@redhat.com>
39
40         PR middle-end/49968
41         * calls.c (expand_call): Use fixup_args_size_notes for
42         emit_stack_restore.
43         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
44         in non-standard modes.
45
46 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
47
48         * gcc.c (self_spec): New variable.
49         (static_specs): Add self_spec.
50         (main): Call do_self_spec on "self_spec" specs after reading
51         user specs files.  Move compare_debug handling right after that.
52
53 2011-08-04  Richard Guenther  <rguenther@suse.de>
54
55         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
56         (value_range_nonnegative_p): New function.
57         (ssa_name_nonnegative_p): Use it.
58         (value_range_constant_singleton): New function.
59         (op_with_constant_singleton_value_range): Use it.
60         (extract_range_from_binary_expr_1): New function, split out from ...
61         (extract_range_from_binary_expr): ... this.  Remove fallback
62         constant folding done here.
63
64 2011-08-04  Richard Guenther  <rguenther@suse.de>
65
66         PR tree-optimization/49806
67         * tree-vrp.c (op_with_boolean_value_range_p): New function.
68         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
69         a new statement for a final conversion to bool.
70
71 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
72
73         * gengtype-state.c: Include "bconfig.h" if
74         GENERATOR_FILE is defined, "config.h" otherwise.
75         * gengtype.c: Likewise.
76         * gengtype-lex.l: Likewise.
77         * gengtype-parse.c: Likewise.
78         * Makefile.in (gengtype-lex.o-warn): New variable.
79         (plugin_resourcesdir): Likewise.
80         (plugin_bindir): Likewise.
81         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
82         (MOSTLYCLEANFILES): Add gengtype$(exeext).
83         (native): Depend on gengtype$(exeext) is $enable_plugin
84         is set to "yes".
85         (gtype.state): Depend on s-gtype. Use temporary file.
86         (gengtype-lex.o): New rule.
87         (gengtype-parse.o): Likewise.
88         (gengtype-state.o): Likewise.
89         (gengtype$(exeext)): Likewise.
90         (install-gengtype): Likewise.
91         (gengtype.o): Likewise.
92         (build/gengtype.o): Depend on version.h.
93         (build/gengtype-state): Depend on double-int.h, version.h,
94         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
95         (install-plugin): Depend on install-gengtype.
96
97 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
98
99         PR middle-end/49905
100         * tree.h (init_attributes): New prototype.
101         * attribs.c (init_attributes): No longer static.
102
103 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
104
105         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
106         maybe_suffix.
107
108 2011-08-03   David Li  <davidxl@google.com>
109
110         * tree-optimize.c (execute_fixup_cfg): Fix up entry
111         outgoing edge counts after inlining.
112
113 2011-08-03   David Li  <davidxl@google.com>
114
115         * profile.c (compute_branch_probabilities): Compute
116         function frequency after profile annotation.
117
118 2011-08-04  Alan Modra  <amodra@gmail.com>
119
120         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
121         use_backchain_to_restore_sp initialisation.
122         (rs6000_legitimate_offset_address_p): Simplify offset test.
123
124 2011-08-03  Richard Henderson  <rth@redhat.com>
125
126         * config/spu/spu.md: Use define_c_enum instead of define_constants.
127         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
128         (UNSPECV_NOP): New.
129
130 2011-08-03  Richard Henderson  <rth@redhat.com>
131
132         PR target/34888
133         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
134
135 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
136
137         PR tree-optimization/49948
138         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
139
140 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
141
142         * config/m32c/m32c.c (class_sizes): Remove.
143         (reduce_class): Change arguments and return type to reg_class_t.
144         Change type cc var to HARD_REG_SET. Change type best var to
145         reg_class_t. Change type best_size var to unsigned int. Remove
146         initialization class_sizes var. Use reg_class_size array instead
147         of class_sizes. Use reg_class_contents array instead
148         of class_contents.
149
150 2011-08-03  Richard Guenther  <rguenther@suse.de>
151
152         PR middle-end/49958
153         * fold-const.c (fold_binary_loc): Only associate
154         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
155         overflow wraps.
156
157 2011-08-03  Alan Modra  <amodra@gmail.com>
158
159         PR rtl-optimization/49941
160         * jump.c (mark_jump_label): Comment.
161         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
162         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
163         (mark_used_flags): Don't mark RETURN.
164
165 2011-08-03  Richard Guenther  <rguenther@suse.de>
166
167         PR tree-optimization/49938
168         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
169         deal with a POLYNOMIAL_CHREC.
170
171 2011-08-03  Revital Eres  <revital.eres@linaro.org>
172
173         * modulo-sched.c (calculate_stage_count,
174         calculate_must_precede_follow, get_sched_window,
175         try_scheduling_node_in_cycle, remove_node_from_ps): Add
176         declaration.
177         (update_node_sched_params, set_must_precede_follow, optimize_sc):
178         New functions.
179         (reset_sched_times): Call update_node_sched_params.
180         (sms_schedule): Call optimize_sc.
181         (get_sched_window): Change function arguments.
182         (sms_schedule_by_order): Update call to get_sched_window.
183         Call set_must_precede_follow.
184         (calculate_stage_count): Add function argument.
185
186 2011-08-02  Richard Henderson  <rth@redhat.com>
187
188         PR target/49864
189         PR target/49879
190         * reg-notes.def (REG_ARGS_SIZE): New.
191         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
192         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
193         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
194         different stack levels.
195         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
196         (maybe_move_args_size_note): New.
197         (combine_stack_adjustments_for_block): Use it.
198         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
199         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
200         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
201         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
202         (cur_cfa): New.
203         (queued_args_size): Remove.
204         (add_cfi_args_size): Assert size is non-negative.
205         (stack_adjust_offset, dwarf2out_args_size): Remove.
206         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
207         (notice_args_size, notice_eh_throw): New.
208         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
209         (dwarf2out_frame_debug_adjust_cfa): Likewise.
210         (dwarf2out_frame_debug_cfa_offset): Likewise.
211         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
212         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
213         (change_cfi_row): Don't emit args_size.
214         (maybe_record_trace_start_abnormal): Split out from ...
215         (maybe_record_trace_start): Here.  Set args_size_undefined.
216         (create_trace_edges): Update to match.
217         (scan_trace): Handle REG_ARGS_SIZE.
218         (connect_traces): Connect args_size between EH insns.
219         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
220         * explow.c (suppress_reg_args_size): New.
221         (adjust_stack_1): Split out from ...
222         (adjust_stack): ... here.
223         (anti_adjust_stack): Use it.
224         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
225         * expr.c (mem_autoinc_base): New.
226         (fixup_args_size_notes): New.
227         (emit_single_push_insn_1): Rename from emit_single_push_insn.
228         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
229         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
230         * reload1.c (reload_as_needed): Likewise.
231         * rtl.h (fixup_args_size_notes): Declare.
232
233 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
234
235         PR bootstrap/49914
236         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
237         of abs.
238         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
239         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
240
241 2011-08-02  Richard Henderson  <rth@redhat.com>
242
243         * config/h8300/h8300.c (push, pop): Return the insn.
244         (h8300_swap_into_er6): Generate correct unwind info.
245         (h8300_swap_out_of_er6): Likewise.
246         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
247         complex cfa expression.
248         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
249
250 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
251
252         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
253
254 2011-08-02  Richard Henderson  <rth@redhat.com>
255
256         PR target/49878
257         * config/h8300/h8300.c (h8300_move_ok): New.
258         * config/h8300/h8300-protos.h: Declare it.
259         * config/h8300/h8300.md (P): New mode iterator.
260         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
261         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
262         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
263         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
264         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
265         and pushqi1_h8300hs_normal; use PRE_MODIFY and
266         register_no_sp_elim_operand.
267         (*pushhi1_h8300hs_<P>): Similarly.
268         (pushqi1, pushhi1, pushhi1_h8300): Remove.
269         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
270
271 2011-08-02  Richard Henderson  <rth@redhat.com>
272
273         PR target/49881
274         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
275
276 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
277
278         * c-parser.c (enum c_parser_prec): New enum, moved from within
279         c_parser_binary_expression.
280         (c_parser_binary_expression): Add PREC argument.  Stop parsing
281         if operator has lower or equal precedence than PREC.
282         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
283         callers.
284         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
285         Adjust c_finish_omp_atomic caller.
286         (c_parser_omp_taskyield): New function.
287         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
288         (c_parser_omp_clause_name): Handle final and mergeable clauses.
289         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
290         functions.
291         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
292         and PRAGMA_OMP_CLAUSE_MERGEABLE.
293         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
294         (c_parser_omp_clause_reduction): Handle min and max.
295         * c-typeck.c (c_finish_omp_clauses): Don't complain about
296         const qualified predetermined vars in firstprivate clause.
297         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
298         Handle MIN_EXPR and MAX_EXPR.
299         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
300         and OMP_CLAUSE_MERGEABLE.
301         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
302         and OMP_ATOMIC_CAPTURE_NEW.
303         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
304         OMP_CLAUSE_MERGEABLE.
305         (omp_clause_code_name): Likewise.
306         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
307         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
308         and OMP_CLAUSE_MERGEABLE.
309         (OMP_CLAUSE_FINAL_EXPR): Define.
310         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
311         OMP_CLAUSE_MERGEABLE.
312         (expand_task_call): Likewise.
313         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
314         (expand_omp_atomic_fetch_op): Handle cases where old or new
315         value is needed afterwards.
316         (expand_omp_atomic): Call expand_omp_atomic_load resp.
317         expand_omp_atomic_store.
318         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
319         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
320         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
321         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
322         * tree-nested.c (convert_nonlocal_omp_clauses,
323         convert_local_omp_clauses): Likewise.
324         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
325         OMP_ATOMIC_CAPTURE_NEW): New.
326         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
327         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
328         New inlines.
329         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
330         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
331         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
332
333 2011-08-02  Kai Tietz  <ktietz@redhat.com>
334
335         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
336         boolean-type.
337         (ssa_forward_propagate_and_combine): Interprete result of
338         forward_propagate_comparison.
339         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
340         boolean-typed operands for comparisons.
341
342 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
343
344         * config/avr/libgcc.S: Gather related function in the
345         same input section.
346         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
347         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
348         references.
349         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
350         __udivmodsi4, __divmodsi4, __prologue_saves__,
351         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
352         __do_copy_data, __do_clear_bss, __do_global_ctors,
353         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
354
355 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
356
357         PR target/47766
358         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
359         (stack_protect_test): The pattern compares ptr_mode value.
360
361 2011-08-02  Alan Modra  <amodra@gmail.com>
362
363         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
364         note for save_LR_around_toc_setup sequence.
365
366 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
367
368         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
369
370 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
371             Joseph Myers  <joseph@codesourcery.com>
372
373         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
374         * hwint.c: Include diagnostic-core.h.
375         (abs_hwi): New.
376         (gcd): Moved here...
377         (pos_mul_hwi): New.
378         (mul_hwi): New.
379         (least_common_multiple): Moved here...
380         * hwint.h (gcd): ... from here.
381         (least_common_multiple): ... from here.
382         (HOST_WIDE_INT_MIN): New.
383         (HOST_WIDE_INT_MAX): New.
384         (abs_hwi): Declared.
385         (gcd): Declared.
386         (pos_mul_hwi): Declared.
387         (mul_hwi): Declared.
388         (least_common_multiple): Declared.
389         * omega.c (check_pos_mul): Removed.
390         (check_mul): Removed.
391         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
392         mul_hwi instead of check_mul.
393
394 2011-08-01  Richard Henderson  <rth@redhat.com>
395
396         PR target/49881
397         * config/avr/avr.h (PUSH_ROUNDING): New.
398         * config/avr/avr.md (pushqi1): Rename from *pushqi.
399         (*pushhi, *pushsi, *pushsf): Remove.
400         (MPUSH): New mode iterator.
401         (push<MPUSH>1): New expander.
402
403 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
404
405         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
406         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
407         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
408         mmix_preferred_output_reload_class): Remove.
409         * config/mmix/mmix.c (mmix_preferred_reload_class,
410         mmix_preferred_output_reload_class): Make static. Change rclass
411         argument and return type to reg_class_t.
412         (TARGET_PREFERRED_RELOAD_CLASS,
413         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
414
415 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
416
417         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
418         handling.
419
420 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
421
422         PR target/47766
423         * config/i386/i386.md (PTR): New.
424         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
425         (stack_protect_test): Likewise.
426         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
427         (stack_tls_protect_set_<mode>): Likewise.
428         (stack_tls_protect_test_<mode>): Likewise.
429
430 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
431
432         PR target/49927
433         * config/i386/i386.c (ix86_address_subreg_operand): New.
434         (ix86_decompose_address): Use ix86_address_subreg_operand.
435         (ix86_legitimate_address_p): Do not assert that subregs satisfy
436         register_no_elim_operand in DImode.
437
438 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
439
440         PR tree-optimization/49926
441         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
442         in a chain doesn't have uses both inside and outside the loop.
443
444 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
445
446         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
447         * config/avr/avr-devices.c (avr_mcu_types): Use it.
448         * config/avr/avr-mcus.def (AVR_MCU): Use it.
449         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
450         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
451         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
452         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
453         to detect if XJMP must not be skipped.
454
455 2011-08-02  Alan Modra  <amodra@gmail.com>
456
457         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
458         Delete.
459         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
460         (rs6000_emit_prologue): Don't prematurely return when
461         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
462         save_toc_in_prologue case.
463         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
464         calls_alloca.
465
466 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
467
468         * config/avr/avr-devices.c: Delete SVN property svn:executable.
469         * config/avr/predicates.md: Ditto.
470         * config/avr/driver-avr.c: Ditto.
471         * config/avr/genopt.sh: Set SVN property svn:executable to *.
472
473 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
474
475         * calls.c (emit_library_call_value_1): Declare size only if
476         BLOCK_REG_PADDING is defined.
477
478 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
479
480         PR target/49547
481         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
482         (x86_64-*-*): Likewise.
483         * config/i386/i386.opt (mlzcnt): New.
484         * config/i386/abmintrin.h: File removed.
485         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
486         * config/i386/lzcntintrin.h: ... here.  New file.
487         (__lzcnt): Rename to ...
488         (__lzcnt32): ... this.
489         * config/i386/bmiintrin.h (head): Update copyright year.
490         (__lzcnt_u16): Removed.
491         (__lzcnt_u32): Likewise.
492         (__lzcnt_u64): Likewise.
493         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
494         is defined, remove abmintrin.h.
495         * config/i386/cpuid.h (bit_LZCNT): New.
496         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
497         LZCNT feature.
498         * config/i386/i386-c.c (ix86_target_macros_internal): Define
499         __LZCNT__ if needed.
500         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
501         (ix86_option_override_internal): Handle LZCNT option.
502         (ix86_valid_target_attribute_inner_p): Likewise.
503         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
504         * config/i386/i386.h (TARGET_LZCNT): New.
505         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
506         * config/i386/i386.md (clz<mode>2): Update insn constraint.
507         (clz<mode>2_lzcnt): Likewise.
508         * doc/invoke.texi: Mention -mlzcnt option.
509         * doc/extend.texi: Likewise.
510
511 2011-08-01  Julian Brown  <julian@codesourcery.com>
512
513         * configure.ac (fixed-point): Add ARM support.
514         * configure: Regenerate.
515         * config/arm/arm.c (arm_fixed_mode_set): New struct.
516         (arm_set_fixed_optab_libfunc): New.
517         (arm_set_fixed_conv_libfunc): New.
518         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
519         ARM-specific names.
520         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
521         return values in SImode.
522         (arm_return_in_msb): Return fixed-point types in the msb.
523         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
524         upwards.
525         (arm_scalar_mode_supported_p): Support fixed-point modes.
526         (arm_vector_mode_supported_p): Support vector fixed-point modes.
527         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
528         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
529         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
530         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
531         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
532         New mode iterators.
533         (qaddsub_suf): New mode attribute.
534         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
535         vector modes.
536         * config/arm/predicates.md (sat_shift_operator): New predicate.
537         * config/arm/arm-fixed.md: New.
538         * config/arm/arm.md: Include arm-fixed.md.
539         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
540
541 2011-08-01  Julian Brown  <julian@codesourcery.com>
542
543         * calls.c (emit_library_call_value_1): Support padding for libcall
544         arguments and return values.
545         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
546         downwards in big-endian mode.
547
548 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
549
550         PR debug/49887
551         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
552         * config/sol2-protos.h: Likewise.
553         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
554         solaris_code_end.
555         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
556         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
557         solaris_file_end.
558         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
559
560 2011-08-01  Julian Brown  <julian@codesourcery.com>
561
562         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
563
564 2011-08-01  Julian Brown  <julian@codesourcery.com>
565
566         * final.c (output_addr_const): Print fixed-point constants as
567         decimal not hex.
568
569 2011-08-01  Richard Guenther  <rguenther@suse.de>
570
571         * stor-layout.c (initialize_sizetypes): Properly sign-extend
572         bitsiztype TYPE_MAX_VALUE.
573
574 2011-08-01  Julian Brown  <julian@codesourcery.com>
575
576         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
577         comparison helpers.
578
579 2011-07-31  Richard Henderson  <rth@redhat.com>
580
581         * config/h8300/crti.asm: Add flags to .section directive.
582         * config/h8300/crtn.asm: Likewise.
583
584 2011-07-31  Richard Henderson  <rth@redhat.com>
585
586         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
587         * tree.c (build_common_tree_nodes): Likewise.
588
589 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
590
591         PR target/49880
592         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
593         (divsi3_i1): Likewise.
594
595 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
596
597         PR tree-optimization/49749
598         * tree-ssa-reassoc.c (get_rank): New forward declaration.
599         (PHI_LOOP_BIAS): New macro.
600         (phi_rank): New function.
601         (loop_carried_phi): Likewise.
602         (propagate_rank): Likewise.
603         (get_rank): Add calls to phi_rank and propagate_rank.
604
605 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
606
607         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
608         of TARGET_64BIT.
609         (PTRDIFF_TYPE): Likewise.
610
611 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
612
613         PR target/49920
614         * config/i386/i386.md (strset): Do not expand strset_singleop
615         when %eax or $edi are fixed.
616         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
617         (*strsetsi_1): Ditto.
618         (*strsethi_1): Ditto.
619         (*strsetqi_1): Ditto.
620         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
621         (*rep_stossi): Ditto.
622         (*rep_stosqi): Ditto.
623         (*strlenqi_1): Ditto.
624         (cmpstrnsi): Also fail when %ecx is fixed.
625         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
626         (*cmpstrnqi_1): Ditto.
627         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
628         (*strmovsi_1): Ditto.
629         (*strmovhi_1): Ditto.
630         (*strmovqi_1): Ditto.
631         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
632         (*rep_movsi): Ditto.
633         (*rep_movqi): Ditto.
634
635 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
636
637         PR target/47908
638         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
639         Disable instruction scheduling for non-ColdFire targets.
640         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
641
642 2011-07-31  Revital Eres  <revital.eres@linaro.org>
643
644         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
645         of anti-dep edge from a branch.
646         (add_cross_iteration_register_deps): Create anti-dep edge from
647         a branch.
648
649 2011-07-31  Revital Eres  <revital.eres@linaro.org>
650
651         * modulo-sched.c: Change comment.
652         (reset_sched_times): Fix print message.
653         (print_partial_schedule): Add print info.
654
655 2011-07-31  Tom de Vries  <tom@codesourcery.com>
656
657         PR middle-end/43513
658         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
659         get_object_alignment and TYPE_ALIGN.
660
661 2011-07-30  Tom de Vries  <tom@codesourcery.com>
662
663         PR middle-end/43513
664         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
665         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
666
667 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
668
669         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
670         <sys/sbd.h>.
671         (cpu_types): New array.
672         (cputype): New function.
673         (host_detect_local_cpu): Only define buf, f if !__sgi__.
674         Use scaninvent instead of /proc/cpuinfo if __sgi__.
675         * config.host: Also use driver-native.o, mips/x-native on
676         mips-sgi-irix*.
677         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
678         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
679         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
680
681 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
682
683         PR middle-end/49897
684         PR middle-end/49898
685         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
686         in nested parallel and outer is a gimple_reg, mark it as addressable
687         and set its bit in task_shared_vars bitmap too.
688
689 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
690
691         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
692
693 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
694
695         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
696         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
697         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
698         AMASK_LOCKPFTCHOK): Define.
699         (host_detect_local_cpu): Remove buf, f, cpu_names.
700         Define cpu_types, implver, amask.
701         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
702         native CPU.
703         * config.host: Also use driver-alpha.o, alpha/x-alpha on
704         alpha*-dec-osf*.
705         * config/alpha/osf5.h [__alpha__ || __alpha]
706         (host_detect_local_cpu): Declare.
707         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
708         (DRIVER_SELF_SPECS): Define.
709
710 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
711
712         PR target/47715
713         * config/i386/i386.md (*load_tp_x32): New.
714         (*load_tp_x32_zext): Ditto.
715         (*add_tp_x32): Ditto.
716         (*add_tp_x32_zext): Ditto.
717         (*load_tp_<mode>): Disable for TARGET_X32 targets.
718         (*add_tp_<mode>): Ditto.
719         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
720         ptr_mode and convert to Pmode if needed.
721
722 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
723
724         PR target/49687
725         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
726         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
727         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
728         Add X to register footprint: Clobber r26/r27.
729
730 2011-07-29  Richard Guenther  <rguenther@suse.de>
731
732         * builtins.c (fold_builtin_signbit): Build the comparison
733         with a proper type.
734
735 2011-07-29  Richard Guenther  <rguenther@suse.de>
736
737         PR tree-optimization/49893
738         * tree-predcom.c (suitable_reference_p): Volatile references
739         are not suitable.
740
741 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
742
743         PR target/49313
744         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
745         (__ctzsi2): Result for 0 may be undefined.
746         (__ctzhi2): Result for 0 may be undefined.
747         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
748         (__popcountsi2): Ditto. And don't clobber r26.
749         (__popcountdi2): Ditto. And don't clobber r27.
750         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
751         (parityhi2): New expand.
752         (paritysi2): New expand.
753         (popcounthi2): New expand.
754         (popcountsi2): New expand.
755         (clzhi2): New expand.
756         (clzsi2): New expand.
757         (ctzhi2): New expand.
758         (ctzsi2): New expand.
759         (ffshi2): New expand.
760         (ffssi2): New expand.
761         (copysignsf3): New insn.
762         (bswapsi2): New expand.
763         (*parityhi2.libgcc): New insn.
764         (*parityqihi2.libgcc): New insn.
765         (*paritysihi2.libgcc): New insn.
766         (*popcounthi2.libgcc): New insn.
767         (*popcountsi2.libgcc): New insn.
768         (*popcountqi2.libgcc): New insn.
769         (*popcountqihi2.libgcc): New insn-and-split.
770         (*clzhi2.libgcc): New insn.
771         (*clzsihi2.libgcc): New insn.
772         (*ctzhi2.libgcc): New insn.
773         (*ctzsihi2.libgcc): New insn.
774         (*ffshi2.libgcc): New insn.
775         (*ffssihi2.libgcc): New insn.
776         (*bswapsi2.libgcc): New insn.
777
778 2011-07-29  Richard Guenther  <rguenther@suse.de>
779
780         * tree-vrp.c (get_value_range): Only set parameter default
781         definitions to varying, leave others at undefined.
782         (extract_range_from_binary_expr): Fix undefined handling.
783         (vrp_visit_phi_node): Handle merged undefined state.
784
785 2011-07-29  Wei Guozhi  <carrot@google.com>
786
787         PR rtl-optimization/49799
788         * combine.c (make_compound_operation): Check if the bit field is valid
789         before change it to bit field extraction.
790
791 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
792
793         PR rtl-optimization/49891
794         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
795         newly created returnjumps.
796
797 2011-07-28  DJ Delorie  <dj@redhat.com>
798
799         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
800         local frame in a naked function, and produce a suitable error for
801         that specific case.
802
803         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
804         registers to be reloaded in HI classes when the target is HI.
805
806 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
807
808         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
809         bound_one, bound_two.
810
811 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
812
813         PR middle-end/48648
814         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
815         CLAST assignments.
816         (translate_clast): Same.
817         (translate_clast_assignment): New.
818
819 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
820
821         PR tree-optimization/49876
822         * sese.c (rename_uses): Do not return false on gloog_error: set
823         the new_expr to integer_zero_node and continue code generation.
824         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
825
826 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
827
828         PR debug/49846
829         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
830         arguments also check if they aren't initialized with a MODE_INT
831         mode of the same size.
832
833 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
834
835         * expr.c (get_bit_range): Handle *MEM_REF's.
836
837 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
838
839         * rtlanal.c (tablejump_p): False for returns.
840         * reorg.c (first_active_target_insn): New static function.
841         (find_end_label): Set JUMP_LABEL for a new returnjump.
842         (optimize_skip, get_jump_flags, rare_destination,
843         mostly_true_jump, get_branch_condition,
844         steal_delay_list_from_target, own_thread_p,
845         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
846         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
847         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
848         * jump.c (delete_related_insns): Likewise.
849         (jump_to_label_p): New function.
850         (redirect_target): New static function.
851         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
852         (redirect_jump_1): Assert that the new label is nonnull.
853         (redirect_jump): Likewise.
854         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
855         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
856         exit block.
857         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
858         changed.  Ensure that the right label is passed to redirect_jump.
859         * function.c (emit_return_into_block,
860         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
861         ret_rtx in their JUMP_LABEL.
862         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
863         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
864         pass ret_rtx as label.
865         * cfglayout.c (fixup_reorder_chain): Use
866         force_nonfallthru_and_redirect rather than force_nonfallthru.
867         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
868         * rtl.h (ANY_RETURN_P): New macro.
869         (jump_to_label_p): Declare.
870         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
871         JUMP_LABELs.
872         (mark_target_live_regs): Likewise.
873         * basic-block.h (force_nonfallthru_and_redirect): Declare.
874         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
875         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
876         alpha_tablejump_best_label): Remove functions.
877         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
878         alpha_tablejump_best_label): Remove declarations.
879         * config/sh/sh.c (barrier_align, split_branches): Adjust for
880         ret_rtx in JUMP_LABELs.
881         * config/arm/arm.c (is_jump_table): Likewise.
882
883 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
884
885         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
886         special predicate.  Remove explicit mode checks.
887
888 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
889
890         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
891         DW_AT_data_member_location containing just DW_OP_plus_uconst.
892
893         PR debug/49871
894         * dwarf2out.c (size_of_die, value_format, output_die): Use
895         DW_FORM_udata instead of DW_FORM_data[48] for
896         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
897
898 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
899
900         * config/i386/i386.md (*tls_global_dynamic_64): Update
901         length attribute.
902
903 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
904
905         PR target/47715
906         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
907         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
908         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
909         (tls_dynamic_gnu2_64): Ditto.
910         (*tls_dynamic_gnu2_lea_64): Ditto.
911         (*tls_dynamic_gnu2_call_64): Ditto.
912         (*tls_dynamic_gnu2_combine_64): Ditto.
913
914 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
915
916         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
917
918 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
919
920         PR target/47364
921         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
922
923 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
924
925         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
926         before the core constraints. Adjust attributes.
927         ("*thumb2_movdf_vfp"): Likewise.
928
929 2011-07-28  Kai Tietz  <ktietz@redhat.com>
930
931         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
932         (simplify_truth_ops_using_ranges): Likewise.
933         (build_assert_expr_for): Likewise.
934         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
935         and handle BIT_NOT_EXPR for truth-operation.
936
937 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
938
939         PR target/49313
940         Undo r176835 from trunk
941         2011-07-27  Georg-Johann Lay
942
943 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
944
945         PR target/49687
946         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
947         Add _muluhisi3, _mulshisi3, _usmulhisi3.
948         * config/avr/libgcc.S (__mulsi3): Rewrite.
949         (__mulhisi3): Rewrite.
950         (__umulhisi3): Rewrite.
951         (__usmulhisi3): New.
952         (__muluhisi3): New.
953         (__mulshisi3): New.
954         (__mulohisi3): New.
955         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
956         declare.
957         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
958         (pseudo_register_or_const_int_operand): New.
959         (combine_pseudo_register_operand): New.
960         (u16_operand): New.
961         (s16_operand): New.
962         (o16_operand): New.
963         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
964         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
965         (any_extend, any_extend2): New code iterators.
966         (extend_prefix): New code attribute.
967         (mulsi3): Rewrite. Turn insn to expander.
968         (mulhisi3): Ditto.
969         (umulhisi3): Ditto.
970         (usmulhisi3): New expander.
971         (*mulsi3): New insn-and-split.
972         (mulu<mode>si3): New insn-and-split.
973         (muls<mode>si3): New insn-and-split.
974         (mulohisi3): New insn-and-split.
975         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
976         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
977         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
978         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
979         insn-and-split.
980         (*mulsi3_call): Rewrite.
981         (*mulhisi3_call): Rewrite.
982         (*umulhisi3_call): Rewrite.
983         (*usmulhisi3_call): New insn.
984         (*muluhisi3_call): New insn.
985         (*mulshisi3_call): New insn.
986         (*mulohisi3_call): New insn.
987         (extendqihi2): Use combine_pseudo_register_operand as predicate
988         for operand 1.
989         (extendqisi2): Ditto.
990         (zero_extendqihi2): Ditto.
991         (zero_extendqisi2): Ditto.
992         (zero_extendhisi2): Ditto.
993         (extendhisi2): Ditto. Don't early-clobber operand 0.
994
995 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
996
997         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
998
999 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
1000
1001         PR tree-optimization/49471
1002         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
1003         iv only when the largest type is unsigned.  Do not call
1004         lang_hooks.types.type_for_size.
1005
1006 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
1007
1008         PR middle-end/45450
1009         * graphite-poly.c (apply_poly_transforms): Disable legality check
1010         after an openscop read.
1011
1012 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
1013
1014         PR middle-end/47691
1015         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
1016         copy_bb_and_scalar_dependences.
1017         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
1018         (graphite_copy_stmts_from_block): Update call to rename_uses.
1019         (copy_bb_and_scalar_dependences): Update call to
1020         graphite_copy_stmts_from_block.
1021         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
1022
1023 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
1024
1025         PR target/49313
1026         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
1027         (__ctzsi2): Result for 0 may be undefined.
1028         (__ctzhi2): Result for 0 may be undefined.
1029         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
1030         (__popcountsi2): Ditto. And don't clobber r26.
1031         (__popcountdi2): Ditto. And don't clobber r27.
1032         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
1033         (parityhi2): New expand.
1034         (paritysi2): New expand.
1035         (popcounthi2): New expand.
1036         (popcountsi2): New expand.
1037         (clzhi2): New expand.
1038         (clzsi2): New expand.
1039         (ctzhi2): New expand.
1040         (ctzsi2): New expand.
1041         (ffshi2): New expand.
1042         (ffssi2): New expand.
1043         (copysignsf3): New insn.
1044         (bswapsi2): New expand.
1045         (*parityhi2.libgcc): New insn.
1046         (*parityqihi2.libgcc): New insn.
1047         (*paritysihi2.libgcc): New insn.
1048         (*popcounthi2.libgcc): New insn.
1049         (*popcountsi2.libgcc): New insn.
1050         (*popcountqi2.libgcc): New insn.
1051         (*popcountqihi2.libgcc): New insn-and-split.
1052         (*clzhi2.libgcc): New insn.
1053         (*clzsihi2.libgcc): New insn.
1054         (*ctzhi2.libgcc): New insn.
1055         (*ctzsihi2.libgcc): New insn.
1056         (*ffshi2.libgcc): New insn.
1057         (*ffssihi2.libgcc): New insn.
1058         (*bswapsi2.libgcc): New insn.
1059
1060 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
1061
1062         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
1063         the mode of symbolic_opreand RTXes.
1064
1065 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
1066
1067         * config/i386/predicates.md (x86_64_movabs_operand): Return false
1068         for pic_32bit_operand RTXes.
1069         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
1070         in DImode.
1071
1072 2011-07-27  Kai Tietz  <ktietz@redhat.com>
1073
1074         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
1075         for 32-bit, too.
1076         (ix86_handle_abi_attribute): Allow function attributes
1077         ms_abi/sysv_abi in 32-bit mode, too.
1078         * doc/extend.texi: Adjust attribute documentation.
1079
1080         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
1081         expression handling.
1082         (and_var_with_comparison_1): Likewise.
1083
1084 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
1085
1086         * params.h (ALLOW_STORE_DATA_RACES): New.
1087         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
1088         * Makefile.in (expr.o): Depend on PARAMS_H.
1089         * machmode.h (get_best_mode): Add argument.
1090         * fold-const.c (optimize_bit_field_compare): Add argument to
1091         get_best_mode.
1092         (fold_truthop): Same.
1093         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
1094         * expr.c (emit_group_store): Same.
1095         (copy_blkmode_from_reg): Same.
1096         (write_complex_part): Same.
1097         (optimize_bitfield_assignment_op): Add argument.
1098         Add argument to get_best_mode.
1099         (get_bit_range): New.
1100         (expand_assignment): Calculate maxbits and pass it down accordingly.
1101         (store_field): New argument.
1102         (expand_expr_real_2): New argument to store_field.  Include params.h.
1103         * expr.h (store_bit_field): New argument.
1104         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
1105         into account maxbits.
1106         * calls.c (store_unaligned_arguments_into_pseudos): New argument
1107         to store_bit_field.
1108         * expmed.c (store_bit_field_1): New argument.  Use it.
1109         (store_bit_field): Same.
1110         (store_fixed_bit_field): Same.
1111         (store_split_bit_field): Same.
1112         (extract_bit_field_1): Pass new argument to get_best_mode.
1113         (extract_bit_field): Same.
1114         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
1115         * doc/invoke.texi: Document parameter allow-store-data-races.
1116
1117 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
1118
1119         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
1120
1121 2011-07-27  Kai Tietz  <ktietz@redhat.com>
1122
1123         * tree-vrp.c (extract_range_from_binary_expr): Remove
1124         TRUTH-binary cases and add new bitwise-cases.
1125         (extract_range_from_assignment): Likewise.
1126         (register_edge_assert_for_1): Likeiwise.
1127         (register_edge_assert_for): Likewise.
1128         (simplify_truth_ops_using_ranges): Likewise.
1129         (simplify_stmt_using_ranges): Likewise.
1130
1131 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
1132
1133         PR target/47372
1134         * config/i386/i386.c (ix86_delegitimize_address): Call
1135         simplify_gen_subreg for PIC with mode of x only if modes of
1136         x and orig_x are different.
1137
1138 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
1139
1140         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
1141         to GC allocated copy of the string.
1142         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
1143         before .debug_line, not after it.
1144
1145 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
1146
1147         PR middle-end/47046
1148         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
1149         evolution_function_is_affine_p on CHREC_RIGHT.
1150
1151 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
1152
1153         * tree-data-ref.c (max_stmt_executions_tree): Do not call
1154         lang_hooks.types.type_for_size.
1155
1156 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
1157
1158         PR middle-end/47653
1159         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
1160         loops using wrapping semantics.
1161
1162 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
1163
1164         PR middle-end/48805
1165         * tree-scalar-evolution.c (instantiate_scev_r): Return
1166         chrec_dont_know for ADDR_EXPR.
1167
1168 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
1169             H.J. Lu  <hongjiu.lu@intel.com>
1170
1171         PR target/47369
1172         PR target/49853
1173         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
1174         if legitimize_tls_address returned operand in wrong mode. Allow
1175         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
1176         if legitimize_pic_address returned operand in wrong mode.
1177
1178 2011-07-26  Martin Jambor  <mjambor@suse.cz>
1179
1180         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
1181         return false for invariants.
1182
1183 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
1184
1185         * config/i386/i386.md (add->lea splitter): Implement using SWI
1186         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
1187         (add->lea zext splitter): Change operand 2 predicate to
1188         x86_64_nonmemory_operand.
1189
1190 2011-07-26  Richard Guenther  <rguenther@suse.de>
1191
1192         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
1193         frequency makes everything hot.
1194
1195 2011-07-26  Richard Guenther  <rguenther@suse.de>
1196
1197         PR tree-optimization/49840
1198         * tree-vrp.c (range_fits_type_p): Properly handle full
1199         double-int precision.
1200
1201 2011-07-26  Martin Jambor  <mjambor@suse.cz>
1202
1203         PR bootstrap/49786
1204         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
1205         counts.
1206         (update_specialized_profile): Likewise.
1207
1208 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
1209             H.J. Lu  <hongjiu.lu@intel.com>
1210
1211         PR target/47381
1212         PR target/49832
1213         PR target/49833
1214         * config/i386/i386.md (i): Change SImode attribute to "e".
1215         (g): Change SImode attribute to "rme".
1216         (di): Change SImode attribute to "nF".
1217         (general_operand): Change SImode attribute to x86_64_general_operand.
1218         (general_szext_operand): Change SImode attribute to
1219         x86_64_szext_general_operand.
1220         (immediate_operand): Change SImode attribute to
1221         x86_64_immediate_operand.
1222         (nonmemory_operand): Change SImode attribute to
1223         x86_64_nonmemory_operand.
1224         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
1225         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
1226         (*lea_1): Use SWI48 mode iterator.
1227         (*lea_1_zext): New insn pattern.
1228         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
1229         (*bt<mode>): Ditto.
1230         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
1231         Update operand constraints.
1232         (addsi_1_zext): Ditto.
1233         (*add<mode>2): Ditto.
1234         (*addsi_3_zext): Ditto.
1235         (*subsi_1_zext): Ditto.
1236         (*subsi_2_zext): Ditto.
1237         (*subsi_3_zext): Ditto.
1238         (*addsi3_carry_zext): Ditto.
1239         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
1240         (*mulsi3_1_zext): Ditto.
1241         (*andsi_1): Ditto.
1242         (*andsi_1_zext): Ditto.
1243         (*andsi_2_zext): Ditto.
1244         (*<any_or:code>si_1_zext): Ditto.
1245         (*<any_or:code>si_2_zext): Ditto.
1246         (*test<mode>_1): Use <general_operand> predicate for operand 1.
1247         (*and<mode>_2): Ditto.
1248         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
1249         (add->lea splitter): Check operand modes in insn constraint.  Extend
1250         operands less than SImode wide to SImode.
1251         (add->lea zext splitter): Do not extend input operands to DImode.
1252         (*lea_general_1): Handle only QImode and HImode operands.
1253         (*lea_general_2): Ditto.
1254         (*lea_general_3): Ditto.
1255         (*lea_general_1_zext): Remove.
1256         (*lea_general_2_zext): Ditto.
1257         (*lea_general_3_zext): Ditto.
1258         (*lea_general_4): Check operand modes in insn constraint.  Extend
1259         operands less than SImode wide to SImode.
1260         (ashift->lea splitter): Ditto.
1261         * config/i386/i386.c (ix86_print_operand_address): Print address
1262         registers with 'q' modifier on 64bit targets.
1263         * config/i386/predicates.md (pic_32bit_opreand): Define as special
1264         predicate.  Reject non-SI and non-DI modes.
1265
1266 2011-07-25  Andrew Pinski  <apinski@cavium.com>
1267
1268         PR tree-opt/49671
1269         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
1270         TREE_THIS_NOTRAP into the inner most MEM_REF.
1271         Always copy TREE_THIS_VOLATILE.
1272         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
1273         arguments are not volatile references.
1274
1275 2011-07-25  Richard Henderson  <rth@redhat.com>
1276
1277         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
1278         * final.c (final_scan_insn): Don't test for it.
1279         (rest_of_clean_state): Likewise.
1280
1281 2011-07-25  Richard Henderson  <rth@redhat.com>
1282
1283         PR debug/49841
1284         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
1285         (emit_frame_save): Likewise.
1286         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
1287         insn onto a dummy blockage insn after the join label.
1288
1289 2011-07-25  Richard Henderson  <rth@redhat.com>
1290
1291         * dwarf2cfi.c (dw_trace_info): Add ID member.
1292         (get_trace_index): Remove.  Change users to use ID member.
1293         (before_next_cfi_note): New.
1294         (connect_traces): Remove unreachable traces before the main loop.
1295         Look across one trace and generate remember/restore_state if needed.
1296
1297 2011-07-25  Richard Henderson  <rth@redhat.com>
1298
1299         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
1300
1301 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
1302
1303         * genattr.c (write_upcase, gen_attr <enum definition writing>):
1304         Move to ...
1305         * genattr-common.c ... here.
1306         (main): Call gen_attr.
1307         * optc-gen.awk: Make generated program include insn-attr-common.h .
1308         * Makefile.in (oprions.o): Depend on insn-attr-common.h
1309
1310 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
1311
1312         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1313         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
1314         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
1315         m32c_print_operand, m32c_print_operand_address): Remove.
1316         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
1317         Change return type to bool. Change argument type to bool.
1318         (m32c_print_operand, m32c_print_operand_address): Make static.
1319         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
1320         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1321
1322 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1323
1324         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
1325         attributes): Document mmap.
1326
1327 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
1328
1329         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1330         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
1331         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
1332         mmix_print_operand, mmix_print_operand_address): Remove.
1333         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
1334         Change return type to bool. Change argument type to bool.
1335         (mmix_print_operand, mmix_print_operand_address): Make static.
1336         (mmix_intval, mmix_output_condition): Change 'x' argument type
1337         to const_rtx.
1338         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
1339         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1340
1341 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
1342
1343         PR target/39386
1344         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
1345         shift counter for x << x and x >> x shifts.
1346
1347 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1348
1349         PR target/47124
1350         * config.gcc: Reject *-*-solaris2 configuration.
1351
1352 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
1353
1354         PR tree-optimization/49809
1355         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
1356         gimple_get_lhs instead of gimple_assign_lhs.
1357
1358 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1359
1360         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
1361
1362 2011-07-25  Richard Guenther  <rguenther@suse.de>
1363
1364         PR tree-optimization/49822
1365         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
1366         more.  Make sure to preserve stmts with side-effects.  Properly
1367         handle virtual defs, follow a longer def chain.
1368
1369 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
1370
1371         PR plugins/45348
1372         PR plugins/48425
1373         PR plugins/46577
1374         * Makefile.in: Do not flatten c-family directory when installing
1375         plugin headers.
1376
1377 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
1378
1379         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
1380         original nodes if we are dealing with virtual clones.
1381
1382 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
1383
1384         * common/config/c6x/c6x-common.c: New file.
1385
1386 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
1387
1388         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
1389
1390 2011-07-25  Richard Guenther  <rguenther@suse.de>
1391
1392         PR tree-optimization/49715
1393         * tree-vrp.c: Include expr.h and optabs.h.
1394         (range_fits_type_): New function.
1395         (simplify_float_conversion_using_ranges): Likewise.
1396         (simplify_stmt_using_ranges): Call it.
1397         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
1398         * optabs.c (can_float_p): Export.
1399         * optabs.h (can_float_p): Declare.
1400
1401 2011-07-25  Richard Guenther  <rguenther@suse.de>
1402
1403         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
1404         (get_value_range): For out-of-range SSA names or names created
1405         after propagation return a read-only varying range.
1406         (dump_all_value_ranges): Adjust.
1407         (vrp_initialize): Likewise.
1408         (vrp_finalize): Likewise.
1409
1410 2011-07-24  Richard Henderson  <rth@redhat.com>
1411
1412         PR debug/49831
1413         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
1414         them entirely.
1415
1416 2011-07-24  Richard Henderson  <rth@redhat.com>
1417
1418         PR debug/49825
1419         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
1420         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
1421
1422 2011-07-24  Richard Henderson  <rth@redhat.com>
1423
1424         PR debug/49827
1425         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
1426
1427 2011-07-24  Richard Henderson  <rth@redhat.com>
1428
1429         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
1430         Zero args_size for abnormal edges.  Adjust all callers.
1431
1432 2011-07-24  Richard Henderson  <rth@redhat.com>
1433
1434         PR debug/49825
1435         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
1436
1437 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
1438
1439         PR bootstrap/49835
1440         * collect2.c (demangle_flag): Removed.
1441
1442 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
1443
1444         * configure.ac (demangler_in_ld): Default to yes.
1445         * configure: Regenerated.
1446         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
1447         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
1448         --no-demangle options straight through to ld.  When
1449         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
1450         way that has the intended effect on Windows.
1451
1452 2011-07-23  Richard Henderson  <rth@redhat.com>
1453
1454         * dwarf2cfi.c: Include basic-block.h.
1455         (dw_label_info): Remove.
1456         (trace_work_list, trace_index): New.
1457         (remember_row, emit_cfa_remember): Remove.
1458         (dw_trace_info_hash, dw_trace_info_eq): New.
1459         (get_trace_index, get_trace_info): New.
1460         (save_point_p): New.
1461         (free_cfi_row): Remove.
1462         (add_cfi): Do not emit DW_CFA_remember_state.
1463         (cfa_row_equal_p): New.
1464         (barrier_args_size): Remove.
1465         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
1466         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
1467         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
1468         (dwarf2out_cfi_begin_epilogue): Remove.
1469         (dwarf2out_frame_debug_restore_state): Remove.
1470         (connect_traces, create_pseudo_cfg): New.
1471         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
1472         * Makefile.in (dwarf2cfi.o): Update.
1473
1474 2011-07-23  Richard Henderson  <rth@redhat.com>
1475
1476         * dwarf2cfi.c (dw_trace_info): New.
1477         (dw_label_info): New.
1478         (cie_return_save): New.
1479         (cur_trace): New.
1480         (queued_args_size): Rename from args_size.  Update all users.
1481         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
1482         (def_cfa_1): Use cur_trace instead of cfa_*.
1483         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
1484         (clobbers_queued_reg_save, reg_saved_in): Likewise.
1485         (dwarf2out_frame_debug_expr): Likewise.
1486         (create_cie_data): Split out from ...
1487         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
1488
1489 2011-07-23  Richard Henderson  <rth@redhat.com>
1490
1491         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
1492         Update all users to match.
1493         (execute_dwarf2_frame): Free reg_saved_in_data.
1494
1495 2011-07-23  Richard Henderson  <rth@redhat.com>
1496
1497         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
1498         (queued_reg_saves): Don't GTY.  Change to a VEC.
1499         (queue_reg_save): Update to match.
1500         (dwarf2out_flush_queued_reg_saves): Likewise.
1501         (clobbers_queued_reg_save): Likewise.
1502         (reg_saved_in): Likewise.
1503         (execute_dwarf2_frame): Free queued_reg_saves.
1504
1505 2011-07-23  Richard Henderson  <rth@redhat.com>
1506
1507         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
1508
1509 2011-07-23  Richard Henderson  <rth@redhat.com>
1510
1511         * dwarf2cfi.c (add_cfi_args_size): Split out from...
1512         (dwarf2out_args_size): ... here.
1513         (add_cfi_restore): Split out from ...
1514         (dwarf2out_frame_debug_cfa_restore): ... here.
1515         (def_cfa_0): Split out from ...
1516         (def_cfa_1): ... here.
1517         (cfi_oprnd_equal_p, cfi_equal_p): New.
1518         (change_cfi_row): New.
1519         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
1520         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
1521         (output_cfis): Remove.
1522         * dwarf2out.c (output_fde): Simplify output_cfi loop.
1523         (dwarf2out_switch_text_section): Don't call output_cfis.
1524         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
1525         * dwarf2out.h: Update decls.
1526         (enum dw_val_class): Add dw_val_class_none.
1527
1528 2011-07-23  Richard Henderson  <rth@redhat.com>
1529
1530         * dwarf2cfi.c (update_row_reg_save): New.
1531         (dwarf2out_frame_debug_cfa_expression): Use it.
1532         (dwarf2out_frame_debug_cfa_restore): Likewise.
1533         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
1534
1535 2011-07-23  Richard Henderson  <rth@redhat.com>
1536
1537         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
1538
1539 2011-07-23  Richard Henderson  <rth@redhat.com>
1540
1541         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
1542         (cie_cfi_row): New.
1543         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
1544         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
1545         (cur_row, remember_row): New.
1546         (def_cfa_1): Use cur_row instead of the old_* variables.
1547         (dwarf2out_frame_debug_restore_state): Similarly.
1548         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
1549         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
1550         (dwarf2out_frame_debug_adjust_cfa): Likewise.
1551         (dwarf2out_frame_debug_cfa_offset): Likewise.
1552         (dwarf2out_frame_debug_expr): Likewise.
1553         (execute_dwarf2_frame): Set up cur_row.
1554         * dwarf2out.h (struct cfa_loc): Mark for GTY.
1555
1556 2011-07-23  Richard Henderson  <rth@redhat.com>
1557
1558         * basic-block.h (EDGE_PRESERVE): New.
1559         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
1560         * bb-reorder.c: Include except.h.
1561         (fix_up_crossing_landing_pad): New.
1562         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
1563         landing pads in the right partition.  Duplicate as necessary.
1564         (partition_hot_cold_basic_blocks): Fix up DF info after
1565         duplicating landing pads.
1566         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
1567         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
1568         is set properly.  Validate that EH edges are not CROSSING.
1569         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
1570         (dw2_build_landing_pads): ... here.
1571         (convert_to_eh_region_ranges): Remove code to fixup crossing
1572         landing pads.
1573         * except.h (expand_dw2_landing_pad_for_region): Declare.
1574         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
1575
1576 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
1577
1578         PR target/49816
1579         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
1580
1581 2011-07-22  Jason Merrill  <jason@redhat.com>
1582
1583         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
1584
1585 2011-07-22  Richard Henderson  <rth@redhat.com>
1586
1587         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
1588
1589 2011-07-22  Richard Henderson  <rth@redhat.com>
1590
1591         * jump.c (maybe_propagate_label_ref): Split out of...
1592         (mark_all_labels): ... here.  Do not attempt label_ref
1593         propagation while in cfglayout mode.
1594
1595 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
1596
1597         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
1598         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
1599         (dwarf_attr_name): Handle DW_AT_GNU_macros.
1600         (dwarf2out_define): If the vector is empty and
1601         lineno is 0, emit a dummy entry first.
1602         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
1603         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
1604         optimize_macinfo_range): New functions.
1605         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
1606         mergeable, optimize longer strings using
1607         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
1608         optimize longer sequences of define/undef ops from headers
1609         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
1610         emit a section headers.
1611         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
1612         and macinfo_section_label to DEBUG_MACRO_SECTION
1613         resp. DEBUG_MACRO_SECTION_LABEL.
1614         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
1615         instead of DW_AT_macro_info.
1616
1617         PR other/32998
1618         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
1619         options.
1620         * dwarf2out.c: Include opts.h.
1621         (dchar_p): New typedef.  Define heap VEC for it.
1622         (producer_string): New variable.
1623         (gen_producer_string): New function.
1624         (gen_compile_unit_die): Use it.
1625         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
1626         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
1627         * doc/invoke.texi: Document -grecord-gcc-switches and
1628         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
1629         to -frecord-gcc-switches description.
1630
1631 2011-07-22  Jason Merrill  <jason@redhat.com>
1632
1633         PR c++/30112
1634         * c-decl.c (c_linkage_bindings): Define.
1635
1636 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
1637
1638         PR debug/49815
1639         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
1640
1641 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
1642
1643         * config/i386/i386.c (ix86_option_override_internal): Disallow
1644         MS ABI in x32 mode.
1645         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
1646         only for TARGET_LP64.
1647         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
1648
1649 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
1650
1651         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
1652         avoid warnings when GCC is built with a C++ compiler.
1653
1654 2011-07-22  Martin Jambor  <mjambor@suse.cz>
1655
1656         PR lto/49796
1657         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
1658         if decl node is in another partition, call cgraph_get_node only once.
1659
1660 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
1661
1662         * config.gcc (x86_64-*-linux*): Set
1663         default_gnu_indirect_function to yes.
1664
1665 2011-07-22  Richard Guenther  <rguenther@suse.de>
1666
1667         PR tree-optimization/45819
1668         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
1669         preserve volatile and notrap flags.
1670
1671 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1672             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1673
1674         PR bootstrap/49794
1675         * configure.ac: Test AM_ICONV with CXX.
1676         * configure: Regenerate.
1677         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
1678
1679 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1680
1681         PR bootstrap/49797
1682         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
1683         (set_cloog_options): Use it.
1684
1685 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
1686
1687         PR c++/49756
1688         * gcc.c (main): Call stack_limit_increase (64MB).
1689         * toplev.c (toplev_main): Likewise.
1690
1691 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
1692
1693         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
1694         instead of force_reg.
1695
1696 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
1697
1698         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
1699         needed and use force_reg after convert.
1700         (ix86_expand_call): Likewise.
1701         (ix86_expand_special_args_builtin): Likewise.
1702         (ix86_expand_builtin): Likewise.
1703
1704 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
1705
1706         PR middle-end/47654
1707         PR middle-end/49649
1708         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
1709         in parameter.  Initialize v1 and v2 based on the values returned
1710         by clast_name_to_lb_ub.
1711         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
1712         values.
1713         (type_for_clast_bin): Same.
1714         (type_for_clast_expr): Same.
1715         (type_for_clast_eq): Update calls to type_for_clast_expr.
1716         (type_for_clast_for): Same.
1717         (build_iv_mapping): Same.
1718         * graphite-ppl.h (value_min): New.
1719
1720 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
1721
1722         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
1723         types whenever possible.
1724
1725 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
1726
1727         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
1728         and ub fields.
1729         (new_clast_name_index): Add lb and ub parameters.
1730         (free_clast_name_index): New.
1731         (clast_name_to_lb_ub): New.
1732         (save_clast_name_index): Add lb and ub parameters.
1733         (compute_bounds_for_param): New.
1734         (type_for_level): Removed.
1735         (type_for_clast_for): Removed level parameter.  Do not call
1736         type_for_level.
1737         (graphite_create_new_loop): Store the lb and ub for the clast_name
1738         of the iterator of the loop that has been generated.
1739         (graphite_create_new_loop_guard): Remove parameter level.
1740         (create_params_index): Store the lb and ub of each parameter.
1741         (gloog): Use free_clast_name_index.  Pass to create_params_index
1742         the current scop.
1743
1744 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
1745
1746         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
1747         (max_precision_type): Inline max_signed_precision_type.
1748         (type_for_clast_red): Use max_precision_type.
1749         (type_for_clast_bin): Same.
1750         (type_for_clast_for): Same.
1751
1752 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
1753
1754         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
1755         type_for_interval.
1756         (gcc_type_for_value): Renamed type_for_value.
1757         (gcc_type_for_clast_term): Renamed type_for_clast_term.
1758         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
1759         (gcc_type_for_clast_red): Renamed type_for_clast_red.
1760         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
1761         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
1762         (graphite_translate_clast_equation): Update calls.
1763         (compute_type_for_level): Renamed type_for_level.
1764         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
1765         (build_iv_mapping): Update calls.
1766         (graphite_create_new_loop_guard): Same.
1767
1768 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
1769
1770         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
1771         comment.
1772
1773 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
1774
1775         * graphite-clast-to-gimple.c (struct ivs_params): New.
1776         (clast_name_to_gcc): Use ivs_params to pass around parameters.
1777         (clast_to_gcc_expression): Same.
1778         (clast_to_gcc_expression_red): Same.
1779         (gcc_type_for_clast_term): Same.
1780         (gcc_type_for_clast_expr): Same.
1781         (gcc_type_for_clast_red): Same.
1782         (gcc_type_for_clast_bin): Same.
1783         (gcc_type_for_clast_eq): Same.
1784         (graphite_translate_clast_equation): Same.
1785         (graphite_create_guard_cond_expr): Same.
1786         (graphite_create_new_guard): Same.
1787         (graphite_create_new_loop): Same.
1788         (build_iv_mapping): Same.
1789         (translate_clast_user): Same.
1790         (graphite_create_new_loop_guard): Same.
1791         (translate_clast): Same.
1792         (translate_clast_for_loop): Same.
1793         (translate_clast_for): Same.
1794         (translate_clast_guard): Same.
1795         (initialize_cloog_names): Fix typo.
1796         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
1797
1798 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
1799
1800         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
1801         (new_clast_name_index): Add level parameter.
1802         (clast_name_to_level): New.
1803         (save_clast_name_index): Add level parameter.
1804         (newivs_to_depth_to_newiv): Removed.
1805         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
1806         (graphite_create_new_loop): Add level parameter.  Pass level to
1807         save_clast_name_index.
1808         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
1809         (create_params_index): Pass level to save_clast_name_index.
1810
1811 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
1812
1813         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
1814         recompute type, lb, and ub.  Get them from...
1815         (graphite_create_new_loop_guard): ...here.  Pass in parameter
1816         pointers to type, lb, and ub.
1817         (translate_clast_for_loop): Update function calls.
1818         (translate_clast_for): Same.
1819
1820 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
1821
1822         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
1823         psct_dynamic_dim.
1824         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
1825         (gcc_type_for_iv_of_clast_loop): Update use of level.
1826         (gloog): Start counting nesting level from 0.
1827         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
1828         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
1829         psct_dynamic_dim on level.
1830
1831 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
1832
1833         * config/i386/i386.c (ix86_legitimize_address): Convert to
1834         Pmode if needed.
1835
1836 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
1837
1838         * config/i386/i386.c (function_value_64): Always return pointers
1839         in Pmode.
1840         (ix86_promote_function_mode): New.
1841         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
1842
1843 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1844
1845         PR tree-optimization/49749
1846         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
1847         remove no-longer-used maxrank variable.
1848
1849 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
1850
1851         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
1852
1853 2011-07-21  Jason Merrill  <jason@redhat.com>
1854
1855         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
1856         * recog.h (struct insn_data_d): Check it instead of
1857         HAVE_DESIGNATED_INITIALIZERS.
1858         * genoutput.c (output_insn_data): Likewise.
1859
1860 2011-07-21  Richard Guenther  <rguenther@suse.de>
1861
1862         PR tree-optimization/49770
1863         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
1864         valueized any operand.  Renamed from ...
1865         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
1866         (valueize_shared_reference_ops_from_ref): Return whether we
1867         valueized any operand.
1868         (vn_reference_lookup): Only when we valueized any operand
1869         use the valueized reference for alias analysis.  Do not preserve
1870         the original reference tree in this case.
1871
1872 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
1873
1874         * config/i386/i386.c (ix86_decompose_address): Reject all but
1875         register operands and subregs of DImode hard registers in index.
1876
1877 2011-07-21  Kai Tietz  <ktietz@redhat.com>
1878
1879         * fold-const.c (fold_unary_loc): Preserve indirect
1880         comparison cast to none-boolean type.
1881         * tree-ssa.c (useless_type_conversion_p): Preserve cast
1882         from/to boolean-type.
1883         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
1884         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
1885         * tree-cfg.c (verify_gimple_comparison): Check result
1886         type of comparison expression.
1887         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
1888         of condition result and disallow type-cast sinking into comparison.
1889
1890 2011-07-21  Richard Guenther  <rguenther@suse.de>
1891
1892         * tree-ssa-forwprop.c (combine_conversions): Return whether
1893         we have to run cfg-cleanup.  Properly remove dead stmts.
1894         (ssa_forward_propagate_and_combine): Adjust.
1895
1896 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
1897
1898         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
1899
1900 2011-07-21  Kai Tietz  <ktietz@redhat.com>
1901
1902         * tree-ssa-propagate.c (substitute_and_fold): Use
1903         do_dce flag to deside, if BB's statements are scanned
1904         in last to first, or first to last order.
1905
1906 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
1907
1908         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
1909
1910 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
1911             Uros Bizjak  <ubizjak@gmail.com>
1912             Richard Henderson  <rth@redhat.com>
1913
1914         * config/i386/constraints.md (w): New.
1915
1916         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
1917         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
1918
1919         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
1920         instead of TARGET_64BIT.
1921
1922         * config/i386/i386.md (indirect_jump): Replace
1923         nonimmediate_operand with indirect_branch_operand.
1924         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
1925         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
1926         Convert operand 0 to Pmode for x32 if not PIC.
1927         (*tablejump_1): Replace nonimmediate_operand with
1928         indirect_branch_operand.  Replace constraint "m" with "w".
1929         (*call_vzeroupper): Replace constraint "m" with "w".
1930         (*call): Likewise.
1931         (*call_rex64_ms_sysv_vzeroupper): Likewise.
1932         (*call_rex64_ms_sysv): Likewise.
1933         (*call_value_vzeroupper): Likewise.
1934         (*call_value): Likewise.
1935         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
1936         (*call_value_rex64_ms_sysv): Likewise.
1937         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
1938
1939         * config/i386/predicates.md (indirect_branch_operand): New.
1940         (call_insn_operand): Support x32.
1941
1942 2011-07-20  Michael Eager  <eager@eagercon.com>
1943
1944         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
1945
1946 2011-07-20  Richard Henderson  <rth@redhat.com>
1947
1948         * cfg.c (dump_bb_info): Dump basic_block->flags.
1949         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
1950
1951 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
1952
1953         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
1954         of DImode hard registers in index.
1955         (ix86_legitimate_address_p): Allow subregs of base and index to span
1956         more than a word.  Assert that subregs of base and index satisfy
1957         register_no_elim_operand predicates.  Reject addresses where
1958         base and index have different modes.
1959
1960 2011-07-20  Robert Millan  <rmh@gnu.org>
1961
1962         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
1963
1964 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1965
1966         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
1967         removing now-unnecessary assignment.
1968
1969 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1970
1971         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
1972         memory address space to the type's address space.
1973
1974 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
1975
1976         PR target/36467
1977         PR target/49687
1978         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
1979         and expand appropriately if there is a CONST_INT in operand2.
1980         (usmulqihi3): New insn.
1981         (*sumulqihi3): New insn.
1982         (*osmulqihi3): New insn.
1983         (*oumulqihi3): New insn.
1984         (*muluqihi3.uconst): New insn_and_split.
1985         (*muluqihi3.sconst): New insn_and_split.
1986         (*mulsqihi3.sconst): New insn_and_split.
1987         (*mulsqihi3.uconst): New insn_and_split.
1988         (*mulsqihi3.oconst): New insn_and_split.
1989         (*ashifthi3.signx.const): New insn_and_split.
1990         (*ashifthi3.signx.const7): New insn_and_split.
1991         (*ashifthi3.zerox.const): New insn_and_split.
1992         (mulsqihi3): New insn.
1993         (muluqihi3): New insn.
1994         (muloqihi3): New insn.
1995         * config/avr/predicates.md (const_2_to_7_operand): New.
1996         (const_2_to_6_operand): New.
1997         (u8_operand): New.
1998         (s8_operand): New.
1999         (o8_operand): New.
2000         (s9_operand): New.
2001         (register_or_s9_operand): New.
2002
2003 2011-07-20  Kai Tietz  <ktietz@redhat.com>
2004
2005         * builtins.c (fold_builtin_expect): See through the cast
2006         from truthvalue_type_node to long.
2007
2008 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
2009
2010         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
2011         where we can use them from the standard and altivec instruction
2012         sets, instead of always using the 3 operand VSX forms that require
2013         the destination to overlap one of the inputs.
2014         (vsx_fms*): Ditto.
2015         (vsx_fnma*): Ditto.
2016         (vsx_fnms*): Ditto.
2017
2018         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
2019         for DF types.
2020         (fmsdf4_fpr): Ditto.
2021         (nfmadf4_fpr): Ditto.
2022         (nfmsdf4_fpr): Ditto.
2023
2024 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
2025
2026         * genrecog.c (make_insn_sequence): Correct position numbering
2027         when filtering out match_scratch and match_dup.
2028
2029 2011-07-20  Richard Guenther  <rguenther@suse.de>
2030
2031         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
2032         against already removed statements.
2033         (forward_propagate_into_comparison): Remove dead defining stmts.
2034         (forward_propagate_into_gimple_cond): Likewise.
2035         (forward_propagate_into_cond): Simplify.
2036         (ssa_forward_propagate_and_combine): Handle changed cfg from
2037         forward_propagate_into_comparison.
2038         * tree-ssa-phiopt.c (conditional_replacement): Use proper
2039         locations for newly built statements.
2040
2041 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
2042
2043         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
2044
2045 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2046
2047         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
2048         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
2049
2050 2011-07-20  Richard Guenther  <rguenther@suse.de>
2051
2052         PR middle-end/18908
2053         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
2054         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
2055         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
2056
2057 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
2058
2059         * config/frv/frv.c (frv_register_move_cost): Define explicitly
2060         costs for subclasses of GR_REGS.
2061
2062 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
2063
2064         PR target/49780
2065         * config/i386/predicates.md (no_seg_addres_operand): No more special.
2066         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
2067         of DImode hard registers in base.
2068         (ix86_legitimate_address_p): Allow SImode and DImode base and index
2069         registers.
2070
2071 2011-07-20  Richard Guenther  <rguenther@suse.de>
2072
2073         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
2074         (unify_nodes): Deal with that.
2075         (solve_graph): Likewise.
2076
2077 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
2078
2079         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
2080         canonicalize left operand from ZERO_EXTEND to AND.
2081
2082 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
2083
2084         * target.def (class_max_nregs): New hook.
2085         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
2086         * doc/tm.texi: Regenerate.
2087         * targhooks.c (default_class_max_nregs): New function.
2088         * targhooks.h (default_class_max_nregs): Declare.
2089         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
2090         x_ira_reg_class_min_nregs arrays to unsigned char.
2091         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
2092         hook instead of CLASS_MAX_NREGS macro.
2093         * reginfo.c (restore_register_info): Ditto.
2094         * ira-conflicts.c (process_regs_for_copy): Use
2095         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
2096         Change type rclass and aclass vars to reg_class_t.
2097         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
2098         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
2099         reg_class_t.
2100         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
2101         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
2102
2103         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
2104         * config/i386/i386.c (ix86_class_max_nregs): New function.
2105         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
2106         instead of CLASS_MAX_NREGS macro.
2107         (TARGET_CLASS_MAX_NREGS): Define.
2108         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
2109         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
2110         * config/avr/avr.c (class_max_nregs): Remove function.
2111         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
2112         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
2113         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
2114         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
2115         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
2116         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
2117         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
2118         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
2119         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
2120         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
2121         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
2122         * config/score/score.h (CLASS_MAX_NREGS): Remove.
2123         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
2124         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
2125         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
2126
2127 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
2128
2129         * cif-code.def (OVERWRITABLE): Fix typo and move around.
2130         (TARGET_OPTIMIZATION_MISMATCH): Delete.
2131         (EH_PERSONALITY): Fix typo.
2132         (NON_CALL_EXCEPTIONS): Fix message.
2133         (OPTIMIZATION_MISMATCH): Adjust message.
2134         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
2135
2136 2011-07-19  Ian Lance Taylor  <iant@google.com>
2137
2138         * doc/install.texi (Configuration): Document
2139         --enable-build-poststage1-with-cxx.
2140
2141 2011-07-19  Robert Millan  <rmh@gnu.org>
2142
2143         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
2144         (GLIBC_DYNAMIC_LINKER): Remove.
2145
2146         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
2147         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
2148         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
2149         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
2150         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
2151         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
2152
2153         * config/mips/linux.h: Remove everything except for ...
2154         (GLIBC_DYNAMIC_LINKER): ... this macro.
2155
2156         * config/mips/linux64.h: Remove everything except for ...
2157         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
2158         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
2159         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
2160         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
2161         (GNU_USER_LINK_EMULATIONN32): New macros.
2162
2163         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
2164         Use the new headers.
2165
2166 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
2167
2168         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
2169         Add offset_known_p and size_known_p fields.
2170         (MEM_OFFSET_KNOWN_P): Update accordingly.
2171         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
2172         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
2173         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
2174         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
2175         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
2176         (init_emit_regs): Likewise.
2177
2178 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
2179
2180         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
2181         (MEM_OFFSET): Change from returning an rtx to returning a
2182         HOST_WIDE_INT.
2183         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
2184         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
2185         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
2186         (clear_mem_offset): Declare.
2187         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
2188         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
2189         MEM_OFFSET to get a HOST_WIDE_INT offset.
2190         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
2191         (adjust_offset_for_component_ref): Take a bool "known_p"
2192         parameter and a HOST_WIDE_INT "offset" parameter.
2193         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
2194         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
2195         than an rtx.  Use clear_mem_offset to clear the offset.
2196         * cfgcleanup.c (merge_memattrs): Likewise.
2197         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
2198         * function.c (assign_parm_find_stack_rtl): Likewise.
2199         (assign_parm_setup_stack): Likewise.
2200         * print-rtl.c (print_rtx): Likewise.
2201         * reload.c (find_reloads_subreg_address): Likewise.
2202         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
2203         * var-tracking.c (INT_MEM_OFFSET): Likewise.
2204         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
2205         (get_mem_align_offset): Likewise.
2206         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
2207         (clear_mem_offset): New function.
2208         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
2209         offset rather than an rtx.  Assume both the expressio and offset
2210         are available.
2211         (r10k_needs_protection_p_1): Update accordingly, checking the
2212         expression and offset availability here instead.
2213
2214 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
2215
2216         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
2217         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
2218         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
2219         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
2220         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
2221         (clear_mem_size): Declare.
2222         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
2223         (clear_mem_size): New function.
2224         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
2225         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
2226         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
2227         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
2228         to clear the size.
2229         (nonoverlapping_memrefs_p): Likewise.
2230         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
2231         (expand_builtin_init_trampoline): Likewise.
2232         * calls.c (compute_argument_addresses): Likewise.
2233         * cfgcleanup.c (merge_memattrs): Likewise.
2234         * dce.c (find_call_stack_args): Likewise.
2235         * dse.c (record_store, scan_insn): Likewise.
2236         * dwarf2out.c (dw_sra_loc_expr): Likewise.
2237         * expr.c (emit_block_move_hints): Likewise.
2238         * function.c (assign_parm_find_stack_rtl): Likewise.
2239         * print-rtl.c (print_rtx): Likewise.
2240         * reload.c (find_reloads_subreg_address): Likewise.
2241         * rtlanal.c (may_trap_p_1): Likewise.
2242         * var-tracking.c (track_expr_p): Likewise.
2243         * varasm.c (assemble_trampoline_template): Likewise.
2244         * config/arm/arm.c (arm_print_operand): Likewise.
2245         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
2246         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
2247         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
2248         (expand_constant_setmem_prologue): Likewise.
2249         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
2250         * config/rs6000/rs6000.c (expand_block_move): Likewise.
2251         (adjacent_mem_locations): Likewise.
2252         * config/s390/s390.c (s390_expand_setmem): Likewise.
2253         (s390_expand_insv): Likewise.
2254         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
2255         (*extendqi<mode>2_short_displ): Likewise.
2256         * config/sh/sh.c (expand_block_move): Likewise.
2257         * config/sh/sh.md (extv, extzv): Likewise.
2258
2259 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
2260
2261         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
2262         (mem_attrs_htab_eq): ...here.
2263         (find_mem_attrs): Replace with...
2264         (set_mem_attrs): ...this function.  Take a mem_attrs structure
2265         rather than individual fields.
2266         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
2267         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
2268         (set_mem_size, change_address, adjust_address_1, offset_address)
2269         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
2270         Update accordingly.
2271
2272 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
2273
2274         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
2275         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
2276         Provide a dummy definition of MEM_ADDR_SPACE for generators.
2277         (target_rtl): Add x_mode_mem_attrs.
2278         (mode_mem_attrs): New macro.
2279         (get_mem_attrs): New function.
2280         * emit-rtl.c (get_mem_attrs): Rename to...
2281         (find_mem_attrs): ...this.
2282         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
2283         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
2284         (set_mem_size, change_address, adjust_address_1, offset_address)
2285         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
2286         Update accordingly.
2287         (init_emit_regs): Initialize mode_mem_attrs.
2288
2289 2011-07-19  Richard Guenther  <rguenther@suse.de>
2290
2291         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
2292         TRUTH_*_EXPR handling.
2293         * tree-ssa-operands.c (get_expr_operands): Likewise.
2294         * tree-ssa-pre.c (fully_constant_expression): Likewise.
2295         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
2296         Likewise.
2297         (is_and_or_or): Likewise.
2298         (is_norm_cond_subset_of): Likewise.
2299
2300 2011-07-19  Richard Guenther  <rguenther@suse.de>
2301
2302         * tree.h (fold_build_pointer_plus_loc): New helper function.
2303         (fold_build_pointer_plus_hwi_loc): Likewise.
2304         (fold_build_pointer_plus): Define.
2305         (fold_build_pointer_plus_hwi): Likewise.
2306         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
2307         (fold_builtin_memory_op): Likewise.
2308         (fold_builtin_stpcpy): Likewise.
2309         (fold_builtin_memchr): Likewise.
2310         (fold_builtin_strstr): Likewise.
2311         (fold_builtin_strchr): Likewise.
2312         (fold_builtin_strrchr): Likewise.
2313         (fold_builtin_strpbrk): Likewise.
2314         (fold_builtin_strcat): Likewise.
2315         (expand_builtin_memory_chk): Likewise.
2316         (fold_builtin_memory_chk): Likewise.
2317         * c-typeck.c (build_unary_op): Likewise.
2318         * cgraphunit.c (thunk_adjust): Likewise.
2319         * fold-const.c (build_range_check): Likewise.
2320         (fold_binary_loc): Likewise.
2321         * omp-low.c (extract_omp_for_data): Likewise.
2322         (expand_omp_for_generic): Likewise.
2323         (expand_omp_for_static_nochunk): Likewise.
2324         (expand_omp_for_static_chunk): Likewise.
2325         * tree-affine.c (add_elt_to_tree): Likewise.
2326         * tree-data-ref.c (split_constant_offset_1): Likewise.
2327         * tree-loop-distribution.c (generate_memset_zero): Likewise.
2328         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
2329         * tree-predcom.c (ref_at_iteration): Likewise.
2330         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
2331         (add_to_parts): Likewise.
2332         (create_mem_ref): Likewise.
2333         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
2334         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
2335         (number_of_iterations_le): Likewise.
2336         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
2337         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
2338         (vect_create_addr_base_for_vector_ref): Likewise.
2339         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
2340         (vect_create_cond_for_alias_checks): Likewise.
2341         * tree-vrp.c (extract_range_from_assert): Likewise.
2342         * config/alpha/alpha.c (alpha_va_start): Likewise.
2343         (alpha_gimplify_va_arg_1): Likewise.
2344         * config/i386/i386.c (ix86_va_start): Likewise.
2345         (ix86_gimplify_va_arg): Likewise.
2346         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
2347         * config/mep/mep.c (mep_expand_va_start): Likewise.
2348         (mep_gimplify_va_arg_expr): Likewise.
2349         * config/mips/mips.c (mips_va_start): Likewise.
2350         (mips_gimplify_va_arg_expr): Likewise.
2351         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
2352         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
2353         (rs6000_gimplify_va_arg): Likewise.
2354         * config/s390/s390.c (s390_va_start): Likewise.
2355         (s390_gimplify_va_arg): Likewise.
2356         * config/sh/sh.c (sh_va_start): Likewise.
2357         (sh_gimplify_va_arg_expr): Likewise.
2358         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
2359         * config/spu/spu.c (spu_va_start): Likewise.
2360         (spu_gimplify_va_arg_expr): Likewise.
2361         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
2362         Likewise.
2363         (xstormy16_gimplify_va_arg_expr): Likewise.
2364         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
2365         (xtensa_gimplify_va_arg_expr): Likewise.
2366
2367 2011-07-19  Richard Guenther  <rguenther@suse.de>
2368
2369         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
2370         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
2371         handling.
2372
2373         PR middle-end/18908
2374         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
2375         result of BIT_*_EXPR to bitfield precision.
2376
2377 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
2378
2379         PR tree-optimization/49742
2380         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
2381         as a potential write.
2382
2383 2011-07-19  Richard Guenther  <rguenther@suse.de>
2384
2385         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
2386         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
2387         (forward_propagate_comparison): Simplify, remove obsolete code.
2388
2389 2011-07-19  Richard Guenther  <rguenther@suse.de>
2390
2391         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
2392         BIT_XOR_EXPR, same as the RTL expander does.
2393         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
2394         (verify_gimple_assign_unary): Likewise.
2395         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
2396         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
2397         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
2398
2399 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
2400
2401         PR tree-optimization/49768
2402         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
2403         if offset is smaller than bitoffset, but offset+size is bigger
2404         than bitoffset.
2405
2406 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
2407
2408         PR tree-optimization/49771
2409         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
2410         zero step, set segment length to the size of the data-ref's type.
2411
2412 2011-07-18  Martin Jambor  <mjambor@suse.cz>
2413
2414         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
2415         comments.
2416         (ipcp_values_pool): Declare.
2417         (ipcp_sources_pool): Likewise.
2418         (ipcp_lattice): Changed to forward declaration.
2419         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
2420         cannot_devirtualize.
2421         (ipa_node_params): New fields descriptors, lattices, known_vals,
2422         clone_for_all_contexts and node dead, removed fields params and
2423         count_scale.
2424         (ipa_set_param_count): Removed.
2425         (ipa_get_param_count): Made to work with descriptors vector.
2426         (ipa_get_param): Updated.
2427         (ipa_param_cannot_devirtualize_p): Removed.
2428         (ipa_param_types_vec_empty): Likewise.
2429         (ipa_set_param_used): New function.
2430         (ipa_get_param_used): Updated to use descriptors vector.
2431         (ipa_func_list): Removed.
2432         (ipa_init_func_list): Removed declaration.
2433         (ipa_push_func_to_list_1): Likewise.
2434         (ipa_pop_func_from_list): Likewise.
2435         (ipa_push_func_to_list): Removed.
2436         (ipa_lattice_from_jfunc): Remove declaration.
2437         (ipa_get_jf_pass_through_result): Declare.
2438         (ipa_get_jf_ancestor_result): Likewise.
2439         (ipa_value_from_jfunc): Likewise.
2440         (ipa_get_lattice): Update.
2441         (ipa_lat_is_single_const): New function.
2442         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
2443         (ipa_init_func_list): Likewise.
2444         (ipa_pop_func_from_list): Likewise.
2445         (ipa_get_param_decl_index): Fix coding style.
2446         (count_formal_params): Removed.
2447         (count_formal_params_1): Renamed to count_formal_params.
2448         (ipa_populate_param_decls): Update to use descriptors vector.
2449         (ipa_initialize_node_params): Likewise.
2450         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
2451         (ipa_analyze_params_uses): Likewise.
2452         (ipa_free_node_params_substructures): Likewise and free also lattices
2453         and known values.
2454         (duplicate_array): Removed.
2455         (ipa_edge_duplication_hook): Add the new edge to the list of edge
2456         clones.
2457         (ipa_node_duplication_hook): Update to use new lattices.
2458         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
2459         (ipa_free_all_structures_after_iinln): Likewise.
2460         (ipa_write_node_info): Update to use new lattices.
2461         (ipa_read_node_info): Likewise.
2462         (ipa_get_jf_pass_through_result): New function.
2463         (ipa_get_jf_ancestor_result): Likewise.
2464         (ipa_value_from_jfunc): Likewise.
2465         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
2466         * ipa-cp.c: Reimplemented.
2467         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
2468         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
2469         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
2470         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
2471         * doc/invoke.texi (devirt-type-list-size): Removed description.
2472         (ipa-cp-value-list-size): Added description.
2473
2474 2011-07-18  Richard Henderson  <rth@redhat.com>
2475
2476         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
2477         before calling create_basic_block.
2478
2479 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
2480
2481         PR middle-end/49675
2482         * tree.c (build_common_builtin_nodes): Register
2483         __builtin_return_address, __cyg_profile_func_enter
2484         and __cyg_profile_func_exit.
2485
2486 2011-07-18  Richard Henderson  <rth@redhat.com>
2487
2488         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
2489         (add_labels_and_missing_jumps): ... here.
2490         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
2491
2492 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
2493
2494         PR target/47744
2495         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
2496         of DImode hard registers in PLUS address chains.
2497
2498 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2499
2500         PR bootstrap/49769
2501         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
2502         (alpha*-*-freebsd*): Likewise.
2503         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
2504         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
2505         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
2506         crtprec80.o, crtfastmath.o to extra_parts for all targets.
2507         (ia64*-*-elf*): Remove extra_parts.
2508         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
2509         (sparc64-*-linux*): Likewise.
2510         (sparc64-*-freebsd*): Likewise.
2511
2512         Revert:
2513         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
2514         (ia64*-*-linux*): Likewise.
2515         (mips64*-*-linux*): Likewise.
2516         (mips*-*-linux*): Likewise.
2517
2518 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
2519
2520         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
2521
2522 2011-07-18  Richard Guenther  <rguenther@suse.de>
2523
2524         * gimplify.c (gimplify_expr): Use input_location, not saved_location
2525         when building new trees.
2526
2527 2011-07-18  Richard Guenther  <rguenther@suse.de>
2528
2529         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
2530         expansion result to bitfield precision if required.
2531
2532 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2533
2534         * config.gcc (i[3456x]86-*-netware*): Remove.
2535
2536         * gthr-nks.h: Remove.
2537         * configure.ac (enable_threads): Remove nks.
2538         * configure: Regenerate.
2539
2540         * config/i386/i386.c (ix86_encode_section_info): Remove netware
2541         reference.
2542         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
2543         <netware.h> reference.
2544
2545         * config/i386/netware-libgcc.c,
2546         gcc/config/i386/netware-libgcc.def,
2547         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
2548         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
2549         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
2550         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
2551
2552         * doc/extend.texi (Function Attributes,
2553         callee_pop_aggregate_return): Remove i?86-netware reference.
2554         * doc/install.texi (Configuration, --enable-threads): Remove nks.
2555
2556 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2557
2558         PR target/49746
2559         Revert:
2560         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2561
2562         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
2563         patterns.
2564
2565 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
2566
2567         PR middle-end/49732
2568         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
2569
2570 2011-07-16  Matthias Klose  <doko@ubuntu.com>
2571
2572         * doc/install.texi: Document --enable-static-libjava.
2573
2574 2011-07-15  Richard Henderson  <rth@redhat.com>
2575
2576         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
2577         Replace all three arguments by returning a VEC of edges.
2578         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
2579         pointers and counts.
2580         (fix_edges_for_rarely_executed_code): Merge ...
2581         (rest_of_handle_partition_blocks): ... into...
2582         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
2583         any work was performed.
2584         (pass_partition_blocks): Clear todo_flags_finish.
2585
2586 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
2587             Jakub Jelinek  <jakub@redhat.com>
2588             Jonathan Wakely  <jwakely.gcc@gmail.com>
2589
2590         PR libstdc++/49745
2591         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
2592         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
2593
2594 2011-07-15  Jason Merrill  <jason@redhat.com>
2595
2596         PR testsuite/49741
2597         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
2598         rather than --tool_opts.
2599
2600 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
2601
2602         * doc/plugins.texi (Building GCC plugins): gengtype needs its
2603         corresponding gtype.state.
2604
2605 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2606
2607         PR target/49723
2608         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
2609
2610 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
2611
2612         PR target/48220
2613         * doc/md.texi (Standard Names): Document window_save.
2614         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
2615         expand_debug_expr and expand_debug_source_expr.  If the target has
2616         a window_save instruction, adjust the ENTRY_VALUE_EXP.
2617         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
2618         SSA_NAME_VAR is a parameter.
2619         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
2620         * var-tracking.c (parm_reg_t): New type and associated vector type.
2621         (windowed_parm_regs): New variable.
2622         (adjust_insn): If the target has a window_save instruction and this
2623         is the instruction, make its effect on parameter registers explicit.
2624         (next_non_note_insn_var_location): New function.
2625         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
2626         (vt_add_function_parameter): If the target has a window_save insn,
2627         adjust the incoming RTL and record that in windowed_parm_regs.
2628         (vt_finalize): Free windowed_parm_regs.
2629
2630 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
2631
2632         * doc/invoke.texi (C6X Options): New section.
2633         * doc/md.texi (TI C6X family): New section.
2634         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
2635         tic6x-*-uclinux.
2636         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
2637         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
2638         Provide C6X definitions.
2639         * config/c6x/c6x.md: New file.
2640         * config/c6x/constraints.md: New file.
2641         * config/c6x/predicates.md: New file.
2642         * config/c6x/c6x-sched.md.in: New file.
2643         * config/c6x/c6x-sched.md: New file.
2644         * config/c6x/gensched.sh: New file.
2645         * config/c6x/c6x-mult.md.in: New file.
2646         * config/c6x/genmult.sh: New file.
2647         * config/c6x/c6x-mult.md: New file.
2648         * config/c6x/sync.md: New file.
2649         * config/c6x/c6x-protos.h: New file.
2650         * config/c6x/sfp-machine.h: New file.
2651         * config/c6x/c6x.c: New file.
2652         * config/c6x/c6x.h: New file.
2653         * config/c6x/crti.s: New file.
2654         * config/c6x/crtn.s: New file.
2655         * config/c6x/lib1funcs.asm: New file.
2656         * config/c6x/c6x-modes.def: New file.
2657         * config/c6x/genopt.sh: New file.
2658         * config/c6x/c6x.opt: New file.
2659         * config/c6x/c6x-tables.opt: New file.
2660         * config/c6x/c6x-opts.h: New file.
2661         * config/c6x/c6x-isas.def: New file.
2662         * config/c6x/elf.h: New file.
2663         * config/c6x/elf-common.h: New file.
2664         * config/c6x/uclinux-elf.h: New file.
2665         * config/c6x/t-c6x: New file.
2666         * config/c6x/t-c6x-elf: New file.
2667         * config/c6x/t-c6x-uclinux: New file.
2668         * config/c6x/t-c6x-softfp: New file.
2669         * config/c6x/gtd.c: New file.
2670         * config/c6x/gtf.c: New file.
2671         * config/c6x/ltd.c: New file.
2672         * config/c6x/ltf.c: New file.
2673         * config/c6x/ged.c: New file.
2674         * config/c6x/gef.c: New file.
2675         * config/c6x/led.c: New file.
2676         * config/c6x/lef.c: New file.
2677         * config/c6x/eqd.c: New file.
2678         * config/c6x/eqf.c: New file.
2679         * config/c6x/libgcc-c6xeabi.ver: New file.
2680
2681         Revert
2682         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
2683         PR rtl-optimization/11320
2684         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
2685         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
2686         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
2687         current_sched_info->compute_jump_reg_dependencies. Record which
2688         registers are used and which registers are set by the jump.
2689         Clear deps->reg_conditional_sets after a barrier.
2690         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
2691         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
2692         (init_deps): Initialize reg_conditional_sets.
2693         (free_deps): Clear reg_conditional_sets.
2694         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
2695         Mark registers live on entry of the fallthrough block and conditionally
2696         set as set by the jump. Mark registers live on entry of non-fallthrough
2697         blocks as used by the jump.
2698         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
2699         Mark new parameters as unused.
2700
2701 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
2702
2703         PR tree-opt/49309
2704         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
2705         Use fold_build2_loc instead of build2.
2706         Use the correct type for the new tree.
2707
2708 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
2709
2710         PR rtl-optimization/11320
2711         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
2712         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
2713
2714 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
2715
2716         PR target/49487
2717         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
2718         of REG.
2719         (*rotw<mode>): Use const_int_operand for operand2.
2720         Use match_scatch for operand3.
2721         (*rotb<mode>): Ditto
2722         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
2723
2724 2011-07-14  Richard Guenther  <rguenther@suse.de>
2725
2726         PR tree-optimization/49651
2727         * tree-ssa-structalias.c (get_constraint_for_1): Properly
2728         handle dereferences with subvariables.
2729
2730 2011-07-14  Richard Guenther  <rguenther@suse.de>
2731
2732         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
2733         (fold_stmt_1): Do it here directly on gimple and as a first thing.
2734
2735 2011-07-14  Richard Guenther  <rguenther@suse.de>
2736
2737         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
2738         not bool_var when folding bool_var != 1 or bool_var == 0.
2739
2740 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
2741
2742         * haifa-sched.c (schedule_insns): Remove outdated comment.
2743         (schedule_block): When computing a known value for TODO_SPEC,
2744         just set it rather than using logical operations.
2745         (try_ready): Likewise.  Use a local variable rather than a
2746         pointer to TODO_SPEC.  Reorder an if statement to move the
2747         easy case to the then block.
2748         * sched-deps.c (dep_spec_p): New static function.
2749         (update_dep): Use it to decide whether to call
2750         change_spec_dep_to_hard.
2751         (get_back_and_forw_lists): Use it.
2752         (sd_resolve_dep): Likewise.
2753         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
2754         (haifa_note_mem_dep): Likewise.
2755         (check_dep): Likewise.
2756         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
2757         (sched_free_deps): Free in two passes.
2758
2759 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
2760
2761         PR middle-end/49736
2762         * expr.c (all_zeros_p): Undo bogus part of last change.
2763
2764 2011-07-14  Matthias Klose <doko@ubuntu.com>
2765
2766         * doc/extend.texi (optimize attribute): Fix typo.
2767
2768 2011-07-14  Richard Guenther  <rguenther@suse.de>
2769
2770         * gimplify.c (gimplify_expr): Only do required conversions.
2771
2772 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
2773
2774         PR target/43746
2775         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
2776         i.e. use default_elf_select_section.
2777         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
2778         (READONLY_DATA_SECTION_ASM_OP): Remove.
2779         (TARGET_ASM_NAMED_SECTION): Move from here...
2780         * config/avr/avr.c: ...to here.
2781         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
2782         (avr_asm_named_section): Make static.
2783
2784 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2785
2786         PR bootstrap/49739
2787         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
2788         and crtfastmath.o for Linux/x86.
2789
2790 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
2791
2792         * haifa-sched.c: Include "hashtab.h"
2793         (sched_no_dce): New global variable.
2794         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
2795         SHADOW_P): New macros.
2796         (last_clock_var, cycle_issued_insns): Move declarations.
2797         (must_backtrack): New static variable.
2798         (struct delay_pair): New structure.
2799         (delay_htab, delay_htab_i2): New static variables.
2800         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
2801         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
2802         functions.
2803         (dep_cost_1): If delay pairs exist, try to look up the insns and
2804         use the correct pair delay if we find them.
2805         (rank-for_schedule): Tweak priority for insns that must be scheduled
2806         soon to avoid backtracking.
2807         (queue_insn): Detect conditions which force backtracking.
2808         (ready_add): Likewise.
2809         (struct sched_block_state): Add member shadows_only_p.
2810         (struct haifa_save_data): New structure.
2811         (backtrack_queue): New static variable.
2812         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
2813         unschedule_insns_until, restore_last_backtrack_point,
2814         free_topmost_backtrack_point, free_backtrack_queue,
2815         estimate_insn_tick, estimate_shadow_tick): New functions.
2816         (prune_ready_list): New arg shadows_only_p.  All callers changed.
2817         If true, remove everything that isn't SHADOW_P.  Look up delay
2818         pairs and estimate ticks to avoid scheduling the first insn too early.
2819         (verify_shadows): New function.
2820         (schedule_block): Add machinery to enable backtracking.
2821         (sched_init): Take sched_no_dce into account when setting
2822         DF_LR_RUN_DCE.
2823         (free_delay_pairs): New function.
2824         (init_h_i_d): Initialize INSN_EXACT_TICK.
2825         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
2826         * sched-deps.c (sd_unresolve_dep): New function.
2827         * sched-int. (struct haifa_sched_info): New fields save_state
2828         and restore_state.
2829         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
2830         feeds_backtrack_insn and shadow_p.
2831         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
2832         (sched_no_dce): Declare variable.
2833         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
2834         sd_unresolve_dep): Declare functions.
2835         * modulo-sched.c (sms_sched_info): Clear the two new fields.
2836         * sched-rgn.c (rgn_const_sched_info): Likewise.
2837         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
2838         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
2839         (ebb_sched_info): Add them for the two new fields.
2840         (add_deps_for_risky_insns): Call add_delay_dependencies.
2841
2842 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
2843
2844         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
2845         Rename -mr11.
2846         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
2847         (rs6000_call_indirect_aix): Ditto.
2848         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
2849         (call_indirect_aix<ptrsize>_internal): Ditto.
2850         (call_indirect_aix<ptrsize>_nor11): Ditto.
2851         (call_indirect_aix<ptrsize>_internal2): Ditto.
2852         (call_value_indirect_aix<ptrsize>): Ditto.
2853         (call_value_indirect_aix<ptrsize>_internal): Ditto.
2854         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
2855         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
2856         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
2857
2858 2011-07-13  Jason Merrill  <jason@redhat.com>
2859
2860         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
2861
2862 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2863
2864         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
2865         * config/spu/spu.md ("clrsb<mode>2"): New expander.
2866
2867 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
2868
2869         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
2870         * configure: Regenerate.
2871
2872 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2873
2874         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
2875         (asm_file_start): Remove.
2876         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
2877         free_bb_for_insn around code that modifies insns before
2878         restarting df analysis.
2879
2880 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2881
2882         PR target/49541
2883         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
2884         (LINK_SPEC): ... here.
2885
2886 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
2887
2888         * haifa-sched.c (struct sched_block_state): New.
2889         (schedule_block): Move some local variables into such a structure.
2890
2891 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2892
2893         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
2894         * config/i386/t-crtpc: Remove.
2895         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
2896         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
2897         tmake_file.
2898         (x86_64-*-darwin*): Likewise.
2899         (i[34567]86-*-linux*): Likewise.
2900         (x86_64-*-linux*): Likewise.
2901
2902         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
2903         Handle -mpc32, -mpc64, -mpc80.
2904
2905 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2906
2907         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
2908         * config/alpha/t-crtfm: Remove.
2909         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
2910         * config/i386/t-crtfm: Remove.
2911         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
2912         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
2913         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
2914         * config/sparc/t-crtfm: Remove.
2915
2916         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
2917         (alpha*-*-freebsd*): Likewise.
2918         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
2919         (x86_64-*-darwin*): Likewise.
2920         (i[34567]86-*-linux*): Likewise.
2921         (x86_64-*-linux*): Likewise.
2922         (x86_64-*-mingw*): Likewise.
2923         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
2924         (ia64*-*-freebsd*): Likewise.
2925         (ia64*-*-linux*): Likewise.
2926         (mips64*-*-linux*): Likewise.
2927         (mips*-*-linux*): Likewise.
2928         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
2929         (sparc64-*-linux*): Likewise.
2930         (sparc64-*-freebsd*): Likewise.
2931
2932 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2933
2934         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
2935         * config/darwin-crt3.c: Move to ../libgcc/config.
2936         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
2937         ($(T)crt3$(objext)): Remove.
2938         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
2939         ($(T)crt2$(objext)): Remove.
2940         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
2941         (powerpc64-*-darwin*): Likewise.
2942
2943 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
2944
2945         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
2946
2947         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
2948         (addsi_1_zext): This.
2949
2950 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
2951
2952         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
2953         * doc/tm.texi: Regenerate.
2954         * target.def (mergeable_rodata_prefix): New defhookpod.
2955         * varasm.c (mergeable_string_section, mergeable_constant_section):
2956         Use it. Allocate name with alloca.
2957
2958 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
2959
2960         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
2961
2962 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
2963
2964         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
2965         overlap check.
2966
2967 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
2968
2969         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
2970         (count_type_elements): Delete.
2971         (complete_ctor_at_level_p): Declare.
2972         * expr.c (flexible_array_member_p): New function, split out from...
2973         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
2974         parameter with for_ctor_p.  When for_ctor_p is true, return the
2975         number of elements that should appear in the top-level constructor,
2976         otherwise return an estimate of the number of scalars.
2977         (categorize_ctor_elements): Replace p_must_clear with p_complete.
2978         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
2979         (complete_ctor_at_level_p): New function, borrowing union logic
2980         from old categorize_ctor_elements_1.
2981         (mostly_zeros_p): Return true if the constructor is not complete.
2982         (all_zeros_p): Update call to categorize_ctor_elements.
2983         * gimplify.c (gimplify_init_constructor): Update call to
2984         categorize_ctor_elements.  Don't call count_type_elements.
2985         Unconditionally prevent clearing for variable-sized types,
2986         otherwise rely on categorize_ctor_elements to detect
2987         incomplete initializers.
2988
2989 2011-07-13  Richard Guenther  <rguenther@suse.de>
2990
2991         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
2992         the final type is integral.
2993
2994 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
2995
2996         * sched-int.h (struct _dep): Add member cost.
2997         (DEP_COST, UNKNOWN_DEP_COST): New macros.
2998         * sched-deps.c (init_dep_1): Initialize DEP_COST.
2999         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
3000         (sched_change_pattern): Reset it for dependent insns.
3001
3002 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3003
3004         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
3005         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
3006         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
3007         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
3008         (CRT0_S, MCRT0_S): Remove.
3009         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
3010         Remove.
3011         (s-crt0): Remove.
3012         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
3013
3014 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
3015
3016         * cse.c (insert_with_costs): Put semi-colon after empty loop body
3017         on the next line.
3018         * emit-rtl.c (push_to_sequence): Likewise.
3019         * haifa-sched.c (max_issue): Likewise.
3020         * matrix-reorg.c (add_allocation_site): Likewise.
3021         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
3022         * reload.c (alternative_allows_const_pool_ref): Likewise.
3023         * sched-rgn.c (rgn_add_block): Likewise.
3024         (rgn_fix_recovery_cfg): Likewise.
3025         * tree.c (attribute_list_contained): Likewise.
3026
3027 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
3028
3029         * config/i386/i386.c: Tidy processor feature bitmasks.
3030         (m_P4_NOCONA): New.
3031
3032 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
3033
3034         PR rtl-opt/49474
3035         * cprop.c (find_implicit_sets): Correct the condition.
3036
3037 2011-07-12  Richard Henderson  <rth@redhat.com>
3038
3039         PR target/49713
3040         * dwarf2out.h (dwarf_frame_regnum): Remove.
3041         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
3042         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
3043         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
3044         (execute_dwarf2_frame): Initialize them.
3045         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
3046         users of the macros with the variables.
3047         (expand_builtin_dwarf_sp_column): Revert last change.
3048         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
3049         result of DWARF_FRAME_REGNUM into a local variable.
3050
3051 2011-07-12  Richard Henderson  <rth@redhat.com>
3052
3053         PR target/49714
3054         * config/i386/i386.c (x86_output_mi_thunk): Use
3055         machopic_indirect_call_target instead of machopic_indirection_name
3056         directly.
3057
3058 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
3059             Eric Botcazou  <ebotcazou@adacore.com>
3060
3061         * prefix.h: Wrap up in extern "C" block.
3062
3063 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
3064
3065         AMD bdver2 Enablement
3066         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
3067         (case ${target}): Add bdver2.
3068         * config/i386/driver-i386.c (host_detect_local_cpu): Let
3069         -march=native recognize bdver2 processors.
3070         * config/i386/i386-c.c (ix86_target_macros_internal): Add
3071         bdver2 def_and_undef
3072         * config/i386/i386.c (struct processor_costs bdver2_cost): New
3073         bdver2 cost table.
3074         (m_BDVER2): New definition.
3075         (m_AMD_MULTIPLE): Includes m_BDVER2.
3076         (initial_ix86_tune_features): Add bdver2 tuning.
3077         (processor_target_table): Add bdver2 entry.
3078         (static const char *const cpu_names): Add bdver2 entry.
3079         (ix86_option_override_internal): Add bdver2 instruction sets.
3080         (ix86_issue_rate): Add bdver2.
3081         (ix86_adjust_cost): Add bdver2.
3082         (has_dispatch): Add bdver2.
3083         * config/i386/i386.h (TARGET_BDVER2): New definition.
3084         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
3085         (enum processor_type): Add PROCESSOR_BDVER2.
3086         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
3087         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
3088         description.
3089
3090 2011-07-12  Richard Henderson  <rth@redhat.com>
3091
3092         PR target/49714
3093         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
3094         destination address in memory on some paths.
3095
3096 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
3097
3098         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
3099         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
3100         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
3101         * function.c (locate_and_pad_parm): Take it into account.
3102         * target.def (function_arg_round_boundary): New hook.
3103         * targhooks.c (default_function_arg_round_boundary): New function.
3104         * targhooks.h (default_function_arg_round_boundary): Declare.
3105         * doc/tm.texi: Regenerate.
3106
3107 2011-07-12  Richard Guenther  <rguenther@suse.de>
3108
3109         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
3110         Do not perform no-op changes.
3111
3112 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
3113
3114         * config/arm/predicates.md (neon_struct_operand): Make a normal
3115         predicate.
3116         (neon_struct_or_register_operand): New predicate.
3117         * config/arm/neon.md (movmisalign<mode>): Replace predicates
3118         with neon_struct_or_register_operand.
3119         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
3120         neon_struct_operand instead of memory_operand.
3121
3122 2011-07-12  Martin Jambor  <mjambor@suse.cz>
3123
3124         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
3125         * cgraph.c (cgraph_get_node_or_alias): Removed.
3126         (change_decl_assembler_name): Changed all calls to
3127         cgraph_get_node_or_alias to a call to cgraph_get_node.
3128         (cgraph_make_decl_local): Likewise.
3129         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
3130         * varasm.c (default_binds_local_p_1): Likewise.
3131         (decl_binds_to_current_def_p): Likewise.
3132
3133 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
3134
3135         PR tree-optimization/49712
3136         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
3137
3138 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
3139
3140         * genautomata.c (add_arc): Return void.  All callers changed.
3141         (make_automaton): Remove dead code.
3142
3143 2011-07-11  Richard Henderson  <rth@redhat.com>
3144
3145         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
3146         (DW_FRAME_POINTER_REGNUM): New.
3147         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
3148         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
3149         (dwf_regno): New.
3150         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
3151         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
3152         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
3153         Use it.
3154         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
3155         * dwarf2out.h (dwarf_frame_regnum): New.
3156         (struct cfa_loc): Document the domain of the reg member.
3157
3158 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
3159
3160         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
3161         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
3162
3163 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
3164
3165         PR debug/49676
3166         * dwarf2out.c (int_shift_loc_descriptor): New function.
3167         (int_loc_descriptor): If shorter, emit i as
3168         (i >> shift), shift, DW_OP_shl for suitable shift value.
3169         Similarly, try to optimize large negative values using
3170         DW_OP_neg of a positive value if shorter.
3171         (size_of_int_shift_loc_descriptor): New function.
3172         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
3173         changes.
3174         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
3175         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
3176         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
3177         is shorter.
3178         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
3179         addend as added DW_OP_plus if it is shorter.
3180
3181 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3182
3183         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
3184         (DTORS_SECTION_ASM_OP): Define.
3185
3186 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3187
3188         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
3189         * config/t-dfprules: Move to ../libgcc/config.
3190         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
3191         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
3192         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
3193         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
3194         Likewise.
3195         (i[34567]86-*-cygwin*): Likewise.
3196         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
3197         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
3198         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
3199         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
3200         D64PBIT_FUNCS, D128PBIT_FUNCS.
3201
3202 2011-07-11  Richard Guenther  <rguenther@suse.de>
3203
3204         * tree-vrp.c (simplify_conversion_using_ranges): Manually
3205         translate the source value-range through the conversion chain.
3206
3207 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
3208
3209         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
3210
3211 2011-07-11  Arthur Loiret  <aloiret@debian.org>
3212
3213         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
3214         a bi-arch compiler defaulting to 31-bit. In this case:
3215         (tmake_file): Add s390/t-linux64.
3216         * doc/install.texi: Add s390-linux to the list of targets supporting
3217         --enable-targets=all.
3218
3219 2011-07-11  Arthur Loiret  <aloiret@debian.org>
3220             Matthias Klose <doko@debian.org>
3221
3222         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
3223         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
3224         (tm_file): Add mips/linux64.h.
3225         (tmake_file): Add mips/t-linux64.
3226         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
3227         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
3228         instead of hardcoded mabi=n32.
3229         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
3230         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
3231         convention.
3232
3233 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3234
3235         * passes.c (init_optimization_passes): Add invariant motion pass
3236         after induction variable optimization.
3237
3238 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
3239
3240         PR target/39633
3241         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
3242         offsets 1..5 set cc0 in a usable way.
3243
3244 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
3245
3246         * tree.h (call_expr_arg): Remove.
3247         (call_expr_argp): Likewise.
3248
3249 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
3250
3251         * config/sparc/sparc.md (save_register_window_1): Rename to...
3252         (window_save): ...this.
3253         * config/sparc/sparc.c (emit_save_register_window): Rename to...
3254         (emit_window_save): ...this.
3255         (sparc_expand_prologue): Adjust to above renaming.
3256
3257 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
3258
3259         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
3260         of movabs for x32.
3261
3262 2011-07-10  Richard Henderson  <rth@redhat.com>
3263
3264         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
3265         run final, instead of emitting text directly.
3266
3267 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
3268
3269         * config/i386/i386.c (ix86_option_override_internal): Turn on
3270         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
3271         small PIC models for TARGET_X32.
3272
3273 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
3274
3275         PR target/49684
3276         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
3277         $(LIBGCC2_CFLAGS).
3278
3279         PR bootstrap/49680
3280         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
3281         stray notes and debug insns by using prev_nonnote_nondebug_insn
3282         instead of PREV_INSN.
3283
3284 2011-07-09  Richard Henderson  <rth@redhat.com>
3285
3286         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
3287         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
3288         * dwarf2out.c: ... here.
3289         (output_all_cfis): Remove.
3290         (dwarf2out_switch_text_section): Use output_cfis directly.
3291         (size_of_locs): Export.
3292         (output_loc_sequence, output_loc_sequence_raw): Export.
3293         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
3294         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
3295         output_cfa_loc_raw): Move to ...
3296         * dwarfcfi.c: ... here.
3297         * dwarf2out.h: Update decls.
3298
3299 2011-07-09  Richard Henderson  <rth@redhat.com>
3300
3301         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
3302         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
3303         * dwarf2cfi.c: ... here.
3304         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
3305         (DWARF_ROUND, DWARF_CIE_ID): Remove.
3306         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
3307         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
3308         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
3309
3310 2011-07-09  Richard Henderson  <rth@redhat.com>
3311
3312         * dwarf2cfi.c (cie_return_save): New.
3313         (queue_reg_save): Use compare_reg_or_pc.
3314         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
3315         (dwarf2out_frame_debug_expr): Likewise.
3316         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
3317         (initial_return_save): Likewise.
3318         (execute_dwarf2_frame): Save and restore initial return save from
3319         the cie to the fde.
3320         * config/mips/mips.c (mips_frame_set): Remove special case for
3321         DWARF_FRAME_RETURN_COLUMN.
3322
3323 2011-07-09  Richard Henderson  <rth@redhat.com>
3324
3325         * dwarf2cfi.c (lookup_cfa): Remove.
3326         (execute_dwarf2_frame): Assert queues are empty on entry.
3327         Setup initial cfa directly, not via lookup_cfa.
3328         Don't clear args_size state here.
3329
3330 2011-07-09  Richard Henderson  <rth@redhat.com>
3331
3332         * dwarf2cfi.c (add_cfi_vec): New.
3333         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
3334         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
3335         (execute_dwarf2_frame): Set add_cfi_vec.
3336
3337 2011-07-09  Richard Henderson  <rth@redhat.com>
3338
3339         * defaults.h (ASM_COMMENT_START): Move here...
3340         * dwarf2asm.c: ... from here.
3341         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
3342         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
3343         * varasm.c: Likewise.
3344
3345 2011-07-09  Richard Henderson  <rth@redhat.com>
3346
3347         PR debug/49686
3348         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
3349         (create_cfi_notes): ... do it here instead.
3350
3351 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
3352
3353         PR debug/49676
3354         * dwarf2out.c (size_of_int_loc_descriptor): New function.
3355         (address_of_int_loc_descriptor): Use it.
3356         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
3357
3358 2011-07-09  Richard Henderson  <rth@redhat.com>
3359
3360         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
3361         (prologue, epilogue): New.
3362         (return, *rts): New.
3363         (blockage, setd, seti): New.
3364         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
3365         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
3366         (pdp11_saved_regno): New.
3367         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
3368         generate rtl instead of text.
3369         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
3370         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
3371         * config/pdp11/pdp11-protos.h: Update.
3372
3373 2011-07-09  Richard Henderson  <rth@redhat.com>
3374
3375         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
3376         try to insert an rtl prologue here.
3377         (rs6000_output_function_epilogue): Similarly.
3378         * config/rs6000/rs6000.md (prologue): Emit a barrier to
3379         satisfy !TARGET_SCHED_PROLOG.
3380         (epilogue, sibcall_epilogue): Likewise.
3381
3382 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
3383
3384         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
3385         (FP_REG_P): Delete.
3386         (IN_OR_GLOBAL_P): Likewise.
3387
3388 2011-07-08  Jason Merrill  <jason@redhat.com>
3389
3390         PR c++/45437
3391         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
3392         compound assignment.
3393
3394         * cgraph.c (cgraph_add_to_same_comdat_group): New.
3395         * cgraph.h: Declare it.
3396         * ipa.c (function_and_variable_visibility): Make sure thunks
3397         have the right visibility.
3398
3399 2011-07-08  Richard Henderson  <rth@redhat.com>
3400
3401         PR bootstrap/49680
3402         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
3403         any tablejump vector.
3404
3405         PR bootstrap/49680
3406         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
3407         end of the prologue.
3408
3409 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
3410
3411         PR target/49621
3412         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
3413         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
3414         * config/rs6000/vector.md (vector_select_<mode>,
3415         vector_select_<mode>_uns): Change second operand of NE to
3416         CONST0_RTX (<MODE>mode) instead of const0_rtx.
3417         * config/rs6000/altivec.md (*altivec_vsel<mode>,
3418         *altivec_vsel<mode>_uns): Expect second operand of NE to be
3419         zero_constant of the corresponding vector mode.
3420         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
3421         Likewise.
3422
3423 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
3424
3425         * graphite-dependences.c (build_alias_set_powerset): Remove
3426         continue from loop, add one more assert.
3427
3428 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
3429
3430         PR target/46779
3431         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
3432         In particular, allow 8-bit values in r28 and r29.
3433         (avr_hard_regno_scratch_ok): Disallow any register that might be
3434         part of the frame pointer.
3435         (avr_hard_regno_rename_ok): Same.
3436         (avr_legitimate_address_p): Don't allow SUBREGs.
3437
3438 2011-07-08  Julian Brown  <julian@codesourcery.com>
3439
3440         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
3441         big-endian mode.
3442         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
3443         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
3444         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
3445         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
3446         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
3447         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
3448         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
3449         registers in big-endian mode.
3450
3451 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
3452
3453         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
3454         in terms of another.
3455         (write_attr_value): Write a cast if necessary.
3456
3457         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
3458         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
3459         (REG_WORDS_BIG_ENDIAN): Document.
3460         * doc/tm.texi: Regenerate.
3461         * reload.c (operands_match_p): Take it into account.
3462         (reload_adjust_reg_for_mode): Likewise.
3463         * rtlanal.c (subreg_get_info): Likewise.
3464
3465 2011-07-08  Richard Guenther  <rguenther@suse.de>
3466
3467         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
3468         folding.
3469
3470 2011-07-08  Kai Tietz  <ktietz@redhat.com>
3471
3472         * fold-const.c (fold_truth_andor): Factored out truth_andor
3473         label from fold_binary as function.
3474         (fold_binary_loc): Replace truth_andor lable
3475         by function fold_truth_andor.
3476
3477 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
3478
3479         PR middle-end/49519
3480         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
3481         check if address is stored in register. If so - give up.
3482         (check_sibcall_argument_overlap_1): Do not perform check of
3483         overlapping when it is call to address.
3484
3485 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
3486
3487         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
3488         of magic '31'.
3489
3490 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
3491
3492         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
3493         GET_MODE_BITSIZE where appropriate.
3494         (widen_leading, expand_parity, expand_ctz, expand_ffs,
3495         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
3496         expand_float, expand_fix): Likewise.
3497         * expr.c (convert_move, convert_modes, expand_expr_real_2,
3498         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
3499         * stor-layout.c (get_mode_bounds): Likewise.
3500         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
3501         Likewise.
3502         * convert.c (convert_to_integer): Likewise.
3503         * expmed.c (expand_shift_1): Likewise.
3504
3505         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
3506         a bitsize.
3507
3508         * optabs.c (expand_binop): Tighten conditions for doubleword
3509         expansions.
3510         (widen_bswap): Assert that mode bitsize and precision are the same.
3511         * stor-layout.c (get_best_mode): Skip modes that have lower
3512         precision than bitsize.
3513         * recog.c (simplify_while_replacing): Assert that bitsize and
3514         precision are the same.
3515
3516 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3517
3518         * Makefile.in (LIBGCOV): Remove.
3519         (libgcc.mvars): Remove LIBGCOV.
3520         * libgov.c: Move to ../libgcc.
3521
3522 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3523
3524         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
3525
3526 2011-07-08  Martin Jambor  <mjambor@suse.cz>
3527
3528         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
3529         is too big for total scalarization.
3530
3531 2011-07-07  Richard Henderson  <rth@redhat.com>
3532
3533         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
3534         (DBX_DEBUGGING_INFO): Undef.
3535
3536 2011-07-07  Richard Henderson  <rth@redhat.com>
3537
3538         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
3539         Handle some opcodes specially for debugging.
3540         * print-rtl.c: Include dwarf2out.h
3541         (print_rtx): Handle NOTE_INSN_CFI.
3542         * Makefile.in (print-rtl.o): Update.
3543
3544 2011-07-07  Richard Henderson  <rth@redhat.com>
3545
3546         * tree-pass.h (pass_dwarf2_frame): Declare.
3547         * passes.c (init_optimization_passes): Add it.
3548         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
3549         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
3550         make static, do not call add_cfis_to_fde.
3551         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
3552         dwarf2out_frame_init): Merge into...
3553         (execute_dwarf2_frame): ... here.  New function.
3554         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
3555         saved_do_cfi_asm to a tri-state variable.
3556         (gate_dwarf2_frame, pass_dwarf2_frame): New.
3557         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
3558         if it has yet to be done.  Don't call dwarf2cfi_function_init.
3559         * dwarf2out.h, debug.h: Update decls.
3560         * final.c (final_start_function): Don't call
3561         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
3562         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
3563         * toplev.c (lang_dependent_init): Likewise.
3564
3565 2011-07-07  Richard Henderson  <rth@redhat.com>
3566
3567         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
3568         FDE_TABLE_INCREMENT): Replace with...
3569         (fde_vec): ... this, a new vector.
3570         (current_fde): Remove.  Replace all users with cfun->fde.
3571         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
3572         (size_of_aranges, dwarf2out_finish): Likewise.
3573         (dwarf2out_alloc_current_fde): Break out from ...
3574         (dwarf2out_begin_prologue): ... here.
3575         (dwarf2out_frame_init): Remove.
3576         * dwarf2cfi.c: Update all users of current_fde.
3577         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
3578         * dwarf2out.h: Update decls.
3579         (dw_fde_node): Add fde_index member.
3580         * function.h (struct function): Add fde member.
3581
3582 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
3583             Richard Henderson  <rth@redhat.com>
3584
3585         * dwarf2cfi.c (add_cfi): Remove.
3586         (dwarf2out_cfi_label): Remove force argument.  Only generate the
3587         label name.
3588         (add_fde_cfi): Simplify the different code paths.
3589         (add_cie_cfi): New.
3590         (old_cfa, old_cfa_remember): New.
3591         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
3592         (last_reg_save_label): Remove.
3593         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
3594         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
3595         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
3596         dwarf2out_frame_debug_cfa_expression,
3597         dwarf2out_frame_debug_cfa_restore,
3598         dwarf2out_frame_debug_cfa_window_save,
3599         dwarf2out_frame_debug_expr): Remove label parameter.
3600         (cfi_label_required_p, add_cfis_to_fde): New.
3601         (dwarf2out_frame_debug_after_prologue): New.
3602         (dwarf2cfi_frame_init): Initialize old_cfa.
3603         (dwarf2out_frame_debug_restore_state): Likewise.
3604         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
3605         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
3606         * final.c (final_start_function): Call
3607         dwarf2out_frame_debug_after_prologue.
3608
3609 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
3610             Richard Henderson  <rth@redhat.com>
3611
3612         * dwarf2cfi.c (cfi_insn): New.
3613         (dwarf2out_cfi_label): Don't emit cfi label here.
3614         (add_fde_cfi): Create a NOTE_INSN_CFI.
3615         (dwarf2out_frame_debug): Setup cfi_insn.
3616         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
3617         (dwarf2out_cfi_begin_epilogue): Make static.
3618         (dwarf2out_frame_debug_restore_state): Make static.
3619         * dwarf2out.c (output_cfi_directive): Make static.
3620         (dwarf2out_emit_cfi): New.
3621         * dwarf2out.h: Update.
3622         * final.c (final): Remove CFI notes.
3623         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
3624         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
3625         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
3626         * insn-notes.def (NOTE_INSN_CFI): New.
3627         (NOTE_INSN_CFI_LABEL): New.
3628         * rtl.h (union rtunion_def): Add rt_cfi member.
3629         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
3630
3631 2011-07-07  Richard Henderson  <rth@redhat.com>
3632
3633         * dwarf2cfi.c: New file.
3634         * Makefile.in (OBJS): Add it.
3635         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
3636         * gengtype.c (open_base_files): Include dwarf2out.h.
3637         * coretypes.h (enum var_init_status): Move from ...
3638         * rtl.h: ... here.
3639         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
3640         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
3641         expand_builtin_dwarf_sp_column, init_return_column_size,
3642         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
3643         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
3644         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
3645         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
3646         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
3647         compute_barrier_args_size, dwarf2out_args_size,
3648         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
3649         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
3650         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
3651         queue_reg_save, dwarf2out_flush_queued_reg_saves,
3652         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
3653         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
3654         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
3655         dwarf2out_frame_debug_cfa_expression,
3656         dwarf2out_frame_debug_cfa_restore,
3657         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
3658         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
3659         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
3660         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
3661         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
3662         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
3663         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
3664         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
3665         dw_loc_descr_node): Move to dwarf2out.h.
3666         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
3667         mem_loc_descriptor): Export.
3668         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
3669         (dwarf2out_frame_init): Extract CIE generation code to
3670         dwarf2cfi_frame_init.
3671
3672 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
3673
3674         PR target/49660
3675         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
3676         MASK_V8PLUS, remove commented out flag and reorder.
3677
3678 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
3679
3680         PR c/49644
3681         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
3682         one non-complex and one complex argument, call c_save_expr on both
3683         operands.
3684
3685 2011-07-07  Martin Jambor  <mjambor@suse.cz>
3686
3687         PR middle-end/49495
3688         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
3689         (verify_cgraph_node): Some functinality moved to
3690         verify_edge_corresponds_to_fndecl, call it.
3691
3692 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
3693
3694         * config.gcc (*local*): Remove.
3695         * doc/install-old.texi: Don't mention local configurations.
3696
3697 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
3698
3699         PR debug/49522
3700         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
3701         referencing debug insns that have been reset.
3702         (dead_debug_insert_before): Don't assert reg is non-NULL,
3703         instead return immediately if it is NULL.
3704
3705 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
3706
3707         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
3708
3709 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
3710
3711         * hw-doloop.c: New file.
3712         * hw-doloop.h: New file.
3713         * Makefile.in (OBJS): Add hw-doloop.o.
3714         (hw-doloop.o): New rule.
3715         ($(obj_out_file)): Add hw-doloop.h dependency.
3716         * config/bfin/bfin.c: Include "hw-doloop.h".
3717         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
3718         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
3719         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
3720         type changed to hwloop_info.  Return bool, true if the loop was
3721         successfully optimized.  Remove code that was moved to
3722         hw-doloop.c, and adjust other parts.
3723         (hwloop_fail): New static function, containing parts that used
3724         to be in bfin_optimize_loop.
3725         (bfin_discover_loop, bfin_discover_loops, free_loops,
3726         bfin_reorder_loops): Remove.
3727         (hwloop_pattern_reg): New static function.
3728         (bfin_doloop_hooks): New variable.
3729         (bfin_reorg_loops): Remove most code, call reorg_loops.
3730         * config/bfin/bfin.md (doloop_end splitter): Also enable if
3731         loop counter is a memory_operand.
3732
3733 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
3734
3735         * config.gcc: Support --with-multilib-list for x86 Linux targets.
3736
3737         * configure.ac: Mention x86-64 for --with-multilib-list.
3738         * configure: Regenerated.
3739
3740         * config/i386/gnu-user64.h (SPEC_64): Support x32.
3741         (SPEC_32): Likewise.
3742         (ASM_SPEC): Likewise.
3743         (LINK_SPEC): Likewise.
3744         (TARGET_THREAD_SSP_OFFSET): Likewise.
3745         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
3746         (SPEC_X32): New.
3747
3748         * config/i386/i386.h (TARGET_X32): New.
3749         (TARGET_LP64): New.
3750         (LONG_TYPE_SIZE): Likewise.
3751         (POINTER_SIZE): Likewise.
3752         (POINTERS_EXTEND_UNSIGNED): Likewise.
3753         (OPT_ARCH64): Support x32.
3754         (OPT_ARCH32): Likewise.
3755
3756         * config/i386/i386.opt (mx32): New.
3757
3758         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
3759         (GLIBC_DYNAMIC_LINKERX32): Likewise.
3760         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
3761         (GLIBC_DYNAMIC_LINKERX32): Likewise.
3762
3763         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
3764         (BIONIC_DYNAMIC_LINKERX32): Likewise.
3765         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
3766
3767         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
3768
3769         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
3770
3771         * doc/invoke.texi: Document -mx32.
3772
3773 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
3774
3775         * doc/invoke.texi (mwords-little-endian): Deprecate.
3776         * config/arm/arm.opt (mwords-little-endian): Likewise.
3777         * config/arm/arm.c (arm_option_override): Warn about the deprecation
3778         of -mwords-little-endian.
3779
3780 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
3781
3782         * reload1.c (choose_reload_regs): Use mode sizes to check whether
3783         an old reload register completely defines the required value.
3784
3785 2011-07-07  Richard Guenther  <rguenther@suse.de>
3786
3787         * fold-const.c (fold_unary_loc): Do not strip sign-changes
3788         for NEGATE_EXPR.
3789
3790 2011-07-07  Richard Guenther  <rguenther@suse.de>
3791
3792         * tree-vrp.c (simplify_conversion_using_ranges): New function.
3793         (simplify_stmt_using_ranges): Call it.
3794
3795 2011-07-07  Kai Tietz  <ktietz@redhat.com>
3796
3797         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
3798         (lookup_logical_inverted_value): Likewise.
3799         (simplify_bitwise_binary_1): Likewise.
3800         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
3801
3802 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
3803
3804         * gcc.c (%[Spec]): Don't document.
3805         (struct spec_list): Update comment.
3806         (do_spec_1): Don't handle %[Spec].
3807         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
3808
3809 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
3810
3811         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
3812         default based on TARGET_ASM_NAMED_SECTION.
3813         * common/common-target.def (have_named_sections): Default to true.
3814         * common/config/default-common.c: Don't include tm.h.
3815         * common/config/picochip/picochip-common.c
3816         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
3817         * common/config/m32c/m32c-common.c: Remove.
3818         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
3819         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
3820         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
3821         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
3822         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
3823         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
3824         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
3825
3826 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
3827
3828         PR middle-end/49640
3829         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
3830         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
3831
3832 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3833
3834         PR libmudflap/49550
3835         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
3836
3837 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3838
3839         PR target/39150
3840         * configure.ac (gcc_cv_as_hidden): Also accept
3841         x86_64-*-solaris2.1[0-9]*.
3842         (gcc_cv_as_cfi_directive): Likewise.
3843         (gcc_cv_as_comdat_group_group): Likewise.
3844         (set_have_as_tls): Likewise.
3845         * configure: Regenerate.
3846         * config.gcc (i[34567]86-*-solaris2*): Also handle
3847         x86_64-*-solaris2.1[0-9]*.
3848         * config.host (i[34567]86-*-solaris2*): Likewise.
3849         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
3850         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
3851         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
3852         (TARGET_LD_EMULATION): Use it.
3853         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
3854         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
3855         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
3856         (ASM_CPU64_DEFAULT_SPEC): Define.
3857         (ASM_CPU_SPEC): Use %(asm_cpu_default).
3858         (ASM_SPEC): Redefine.
3859         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
3860         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
3861         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
3862         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
3863         configuration.
3864         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
3865
3866 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3867
3868         * config/sol2.h (ASM_SPEC): Split into ...
3869         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
3870         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
3871         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
3872         (ASM_SPEC): Use ASM_SPEC_BASE.
3873         * config/sparc/sol2.h (ASM_SPEC): Redefine.
3874
3875 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
3876
3877         * config/avr/avr.md (*reload_insi): Change predicate #1 to
3878         const_int_operand.  Ditto for peep2 producing this insn.
3879         Add argument to output_reload_insisf call.
3880         (*movsi,*movsf): Add argument to output_movsisf call.
3881         (*reload_insf): New insn and new peep2 to produce it.
3882         * config/avr/avr-protos.h (output_movsisf): Change prototype.
3883         (output_reload_insisf): Change prototype.
3884         * config/avr/avr.c (avr_asm_len): New function.
3885         (output_reload_insisf): Rewrite.
3886         (output_movsisf): Change prototype.  output_reload_insisf for
3887         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
3888         (adjust_insn_length): Add argument to output_movsisf and
3889         output_reload_insisf call.
3890
3891 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
3892
3893         * emit-rtl.c (paradoxical_subreg_p): New function.
3894         * rtl.h (paradoxical_subreg_p): Declare.
3895         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
3896         apply_distributive_law, simplify_comparison, simplify_set): Use it.
3897         * cse.c (record_jump_cond, cse_insn): Likewise.
3898         * expr.c (force_operand): Likewise.
3899         * rtlanal.c (num_sign_bit_copies1): Likewise.
3900         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
3901         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
3902         (push_reload): Use precision to check for paradoxical subregs.
3903         * expmed.c (extract_bit_field_1): Likewise.
3904
3905         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
3906         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
3907         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
3908         simplify_set, simplify_logical, expand_compound_operation,
3909         make_extraction, force_to_mode, if_then_else_cond, extended_count,
3910         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
3911         record_value_for_reg): Likewise.
3912         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
3913         * simplify-rtx. c (simplify_unary_operation_1,
3914         simplify_binary_operation_1, simplify_const_relational_operation):
3915         Likewise.
3916
3917         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
3918         instead of GET_MODE_BITSIZE where appropriate.
3919         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
3920         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
3921         init_num_sign_bit_copies_in_rep): Likewise.
3922         * cse.c (fold_rtx, cse_insn): Likewise.
3923         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
3924         * simplify-rtx.c (simplify_unary_operation_1,
3925         simplify_const_unary_operation, simplify_binary_operation_1,
3926         simplify_const_binary_operation, simplify_ternary_operation,
3927         simplify_const_relational_operation, simplify_subreg): Likewise.
3928         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
3929         simplify_if_then_else, simplify_set, expand_compound_operation,
3930         expand_field_assignment, make_extraction, if_then_else_cond,
3931         make_compound_operation, force_to_mode, make_field_assignment,
3932         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
3933         extended_count, try_widen_shift_mode, simplify_shift_const_1,
3934         simplify_comparison, record_promoted_value, simplify_compare_const,
3935         record_dead_and_set_regs_1): Likewise.
3936
3937         Revert:
3938         * simplify-rtx.c (simplify_const_binary_operation): Use the
3939         shift_truncation_mask hook instead of performing modulo by width.
3940         Compare against mode precision, not bitsize.
3941         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
3942         Use shift_truncation_mask instead of constructing the value manually.
3943
3944 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
3945
3946         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
3947         declaration.
3948         (rs6000_save_toc_in_prologue_p): Ditto.
3949
3950         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
3951         up the static chain (r11) during indirect function calls.
3952         (-msave-toc-indirect): New undocumented debug switch.
3953
3954         * config/rs6000/rs6000.c (struct machine_function): Add
3955         save_toc_in_prologue field to note whether the prologue needs to
3956         save the TOC value in the reserved stack location.
3957         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
3958         to save the TOC in the prologue, do so.
3959         (rs6000_trampoline_init): Don't allow creating AIX style
3960         trampolines if -mno-r11 is in effect.
3961         (rs6000_call_indirect_aix): New function to create AIX style
3962         indirect calls, adding support for -mno-r11 to suppress loading
3963         the static chain, and saving the TOC in the prologue instead of
3964         the call body.
3965         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
3966         TOC in the prologue.
3967
3968         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
3969         register numbers.
3970         (TOC_REGNUM): Ditto.
3971         (STATIC_CHAIN_REGNUM): Ditto.
3972         (ARG_POINTER_REGNUM): Ditto.
3973         (SFP_REGNO): Delete, unused.
3974         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
3975         function descriptor offsets.
3976         (TOC_SAVE_OFFSET_64BIT): Ditto.
3977         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
3978         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
3979         (AIX_FUNC_DESC_SC_32BIT): Ditto.
3980         (AIX_FUNC_DESC_SC_64BIT): Ditto.
3981         (ptrload): New mode attribute for the appropriate load of a pointer.
3982         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
3983         (call_indirect_aix64): Ditto.
3984         (call_value_indirect_aix32): Ditto.
3985         (call_value_indirect_aix64): Ditto.
3986         (call_indirect_nonlocal_aix32_internal): Ditto.
3987         (call_indirect_nonlocal_aix32): Ditto.
3988         (call_indirect_nonlocal_aix64_internal): Ditto.
3989         (call_indirect_nonlocal_aix64): Ditto.
3990         (call): Rewrite AIX indirect function calls.  Add support for
3991         eliminating the static chain, and for moving the save of the TOC
3992         to the function prologue.
3993         (call_value): Ditto.
3994         (call_indirect_aix<ptrsize>): Ditto.
3995         (call_indirect_aix<ptrsize>_internal): Ditto.
3996         (call_indirect_aix<ptrsize>_internal2): Ditto.
3997         (call_indirect_aix<ptrsize>_nor11): Ditto.
3998         (call_value_indirect_aix<ptrsize>): Ditto.
3999         (call_value_indirect_aix<ptrsize>_internal): Ditto.
4000         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
4001         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
4002         (call_nonlocal_aix32): Relocate in the rs6000.md file.
4003         (call_nonlocal_aix64): Ditto.
4004
4005         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
4006         -mno-r11 documentation.
4007
4008 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
4009
4010         PR other/49658
4011         * doc/extend.texi (Compound Literals): Fix typo.
4012
4013 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
4014
4015         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
4016
4017 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
4018
4019         * configure.ac (plugin-version.h): Generate
4020         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
4021         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
4022         macros.
4023
4024         * configure: Regenerate.
4025
4026         * doc/plugins.texi (Building GCC plugins): Mention
4027         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
4028
4029 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
4030
4031         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
4032         * combine.c (make_extraction, gen_lowpart_or_truncate,
4033         apply_distributive_law, simplify_comparison,
4034         reg_truncated_to_mode, record_truncated_value): Use it.
4035         * cse.c (notreg_cost): Likewise.
4036         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
4037         * expr.c (convert_move, convert_modes): Likewise.
4038         * optabs.c (expand_binop, expand_unop): Likewise.
4039         * postreload.c (move2add_last_label): Likewise.
4040         * regmove.c (optimize_reg_copy_3): Likewise.
4041         * rtlhooks.c (gen_lowpart_general): Likewise.
4042         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
4043
4044 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
4045
4046         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
4047
4048 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
4049
4050         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
4051         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
4052         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
4053         (simplify_const_unary_operation, simplify_binary_operation_1,
4054         simplify_const_binary_operation, simplify_const_relational_operation):
4055         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
4056         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
4057         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
4058         simplify_shift_const_1, simplify_comparison): Likewise.
4059         * expr.c (convert_modes): Likewise.
4060         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
4061         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
4062         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
4063
4064         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
4065
4066 2011-07-06  Richard Guenther  <rguenther@suse.de>
4067
4068         PR tree-optimization/49645
4069         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
4070         register variables.
4071         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
4072         in type qualification here ...
4073         (copy_reference_ops_from_ref): ... not here.
4074         (vn_reference_lookup_3): ... or here.
4075         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
4076         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
4077
4078 2011-07-06  Ian Lance Taylor  <iant@google.com>
4079
4080         * doc/install.texi (Configuration): It's
4081         --enable-gnu-indirect-function, not --enable-indirect-function.
4082
4083 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
4084
4085         * simplify-rtx.c (simplify_const_binary_operation): Use the
4086         shift_truncation_mask hook instead of performing modulo by width.
4087         Compare against mode precision, not bitsize.
4088         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
4089         Use shift_truncation_mask instead of constructing the value manually.
4090
4091 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
4092
4093         PR middle-end/47383
4094         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
4095         address computation and convert to address_mode if needed.
4096
4097 2011-07-06  Richard Guenther  <rguenther@suse.de>
4098
4099         * tree.c (build_common_tree_nodes_2): Merge with
4100         build_common_tree_nodes.
4101         * tree.h (build_common_tree_nodes): Adjust prototype.
4102         (build_common_tree_nodes_2): Remove.
4103         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
4104         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
4105
4106 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
4107
4108         PR tree-optimization/49618
4109         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
4110         t recurse on the decl.
4111         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
4112         return true if expr isn't known to be defined in current
4113         TU or some other LTO partition.
4114
4115 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
4116
4117         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
4118         override CASE_VALUES_THRESHOLD.
4119
4120         * stmt.c (toplevel): Include params.h.
4121         (case_values_threshold): Use the --param case-values-threshold
4122         value if non-zero, otherwise use machine dependent value.
4123         (expand_case): Use case_values_threshold.
4124
4125         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
4126
4127         * doc/invoke.texi (--param case-values-threshold): Document.
4128
4129 2011-07-05  Richard Henderson  <rth@redhat.com>
4130
4131         * dwarf2out.c (dwarf2out_cfi_label): Make static.
4132         (dwarf2out_flush_queued_reg_saves): Make static.
4133         (dwarf2out_reg_save): Remove.
4134         (dwarf2out_return_save): Remove.
4135         (dwarf2out_return_reg): Remove.
4136         (dwarf2out_reg_save_reg): Remove.
4137         (dwarf2out_def_cfa): Merge into ...
4138         (dwarf2out_frame_init): ... here.
4139         * dwarf2out.h, tree.h: Remove declarations as necessary.
4140
4141 2011-07-05  Richard Henderson  <rth@redhat.com>
4142
4143         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
4144         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
4145         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
4146         the alloc insn.
4147
4148         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
4149         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
4150         (process_epilogue): Don't call dwarf2out_def_cfa.
4151
4152         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
4153         indicate the return address save.
4154         (process_cfa_register): Likewise.
4155
4156         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
4157         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
4158
4159         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
4160         for ar.pfs save at alloc insn.
4161
4162 2011-07-05  Richard Henderson  <rth@redhat.com>
4163
4164         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
4165         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
4166         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
4167         stack pointer save.
4168         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
4169         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
4170         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
4171         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
4172
4173 2011-07-05  Richard Henderson  <rth@redhat.com>
4174
4175         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
4176         VUNSPEC_* constants here instead of via define_constants.
4177         (VUNSPEC_PEM): New constant.
4178         (procedure_entry_mask): New insn.
4179         (prologue): New expander.
4180         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
4181         (vax_expand_prologue): Rename from vax_output_function_prologue;
4182         emit rtl instead of text.
4183         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
4184         (print_operand): Add 'x' prefix.
4185
4186 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
4187
4188         PR middle-end/47715
4189         * calls.c (precompute_register_parameters): Promote the function
4190         argument before checking non-legitimate constant.
4191
4192 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
4193
4194         PR tree-optimization/47654
4195         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
4196         (lst_do_strip_mine_loop): Return an int.
4197         (lst_do_strip_mine): Same.
4198         (scop_do_strip_mine): Same.
4199         (scop_do_block): Loop blocking should strip-mine at least two loops.
4200         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
4201         (scop_do_interchange): Same.
4202         * graphite-poly.h (scop_do_interchange): Update declaration.
4203         (scop_do_strip_mine): Same.
4204
4205 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
4206
4207         * graphite-clast-to-gimple.c (precision_for_value): Removed.
4208         (precision_for_interval): Removed.
4209         (gcc_type_for_interval): Use mpz_sizeinbase.
4210
4211 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
4212
4213         * graphite-ppl.h (value_max): Correct computation of max.
4214
4215 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
4216
4217         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
4218
4219 2011-07-05  Richard Guenther  <rguenther@suse.de>
4220
4221         * c-decl.c (c_init_decl_processing): Defer building common
4222         tree nodes to c_common_nodes_and_builtins.
4223
4224 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
4225
4226         PR tree-optimization/49580
4227         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
4228         the loop's number of iterations.
4229         * tree-parloops.c (transform_to_exit_first_loop): Add the
4230         handling of the loop's number of iterations before the call
4231         to gimple_duplicate_sese_tail.
4232         Insert the stmt caclculating the new rhs of the loop's
4233         condition stmt to the preheader instead of iters_bb.
4234
4235 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
4236
4237         PR rtl-optimization/47449
4238         * fwprop.c (forward_propagate_subreg): Don't propagate hard
4239         register nor zero/sign extended hard register.
4240
4241 2011-07-05  Richard Guenther  <rguenther@suse.de>
4242
4243         PR tree-optimization/49518
4244         PR tree-optimization/49628
4245         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
4246         irrelevant and invariant data-references.
4247         (vect_analyze_data_ref_access): For invariant loads clear the
4248         group association.
4249
4250 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
4251
4252         PR rtl-optimization/49619
4253         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
4254         pass VOIDmode as op0_mode to recursive call, and return temp even
4255         when different from tor, just if it is not IOR of the original
4256         PLUS arguments.
4257
4258         PR rtl-optimization/49472
4259         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
4260         negating MULT, negate the second operand instead of first.
4261         (simplify_binary_operation_1) <case MULT>: If one operand is
4262         a NEG and the other is MULT, don't attempt to optimize by negation
4263         of the MULT operand if it only moves the NEG operation around.
4264
4265         PR debug/49602
4266         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
4267         get_current_def return value if it can't be trusted to be
4268         the current value of the variable in the current bb.
4269
4270 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
4271
4272         PR target/49600
4273         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
4274         general register to memory for !TARGET_INTER_UNIT_MOVES.
4275
4276 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
4277
4278         PR target/44643
4279         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
4280         instead of TREE_READONLY.
4281
4282 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
4283
4284         * doc/extend.texi (AVR Built-in Functions): Update documentation
4285         of __builtin_avr_fmul*.
4286         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
4287         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
4288         * config/avr/avr.md (fmul): Rename to fmul_insn.
4289         (fmuls): Rename to fmuls_insn.
4290         (fmulsu): Rename to fmulsu_insn.
4291         (fmul,fmuls,fmulsu): New expander.
4292         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
4293         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
4294         * config/avr/libgcc.S (__fmul): New function.
4295         (__fmuls): New function.
4296         (__fmulsu,__fmulsu_exit): New function.
4297
4298 2011-07-04  Richard Guenther  <rguenther@suse.de>
4299
4300         PR tree-optimization/49615
4301         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
4302         basic-block index check.
4303
4304 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
4305
4306         * longlong.h (count_leading_zeros, count_trailing_zeros,
4307         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
4308         resp. 64.
4309
4310 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
4311
4312         PR tree-optimization/49610
4313         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
4314         a basic block.
4315
4316 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
4317             Olivier Hainque  <hainque@adacore.com>
4318             Nicolas Setton  <setton@adacore.com>
4319
4320         * tree.h (TYPE_ARTIFICIAL): New flag.
4321         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
4322         the DIE of the type if it is artificial.
4323         (gen_array_type_die): Likewise.
4324         (gen_enumeration_type_die): Likewise.
4325         (gen_struct_or_union_type_die): Likewise.
4326         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
4327         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
4328
4329 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
4330
4331         * tree-object-size.c (pass_through_call): Handle
4332         BUILT_IN_ASSUME_ALIGNED.
4333
4334 2011-07-01  Martin Jambor  <mjambor@suse.cz>
4335
4336         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
4337
4338 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
4339
4340         PR middle-end/48016
4341         * explow.c (update_nonlocal_goto_save_area): Use proper mode
4342         for stack save area.
4343         * function.c (expand_function_start): Likewise.
4344
4345 2011-07-01  Richard Guenther  <rguenther@suse.de>
4346
4347         PR middle-end/49596
4348         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
4349         may have unknown refs.
4350
4351 2011-07-01  Kai Tietz  <ktietz@redhat.com>
4352
4353         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
4354
4355 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4356
4357         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
4358         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
4359         (Specific, mips-sgi-irix6): Likewise.
4360
4361 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4362
4363         PR libmudflap/49549
4364         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
4365
4366 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
4367
4368         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
4369         [idx]= and [idx1 ... idx2]= before initializers if needed for
4370         array initializers.
4371
4372 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
4373
4374         * config.gcc (score-*-elf): Remove score7.o.
4375         * config/score/t-score-elf: Likewise.
4376         * config/score/score.c: Merge score7 to score.c and
4377         remove forwarding functions.
4378         * config/score/score7.c: Deleted.
4379         * config/score/score7.h: Deleted.
4380
4381 2011-07-01  Richard Guenther  <rguenther@suse.de>
4382
4383         PR tree-optimization/49603
4384         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
4385
4386 2011-06-30  Martin Jambor  <mjambor@suse.cz>
4387
4388         * tree-sra.c (struct access): Rename total_scalarization to
4389         grp_total_scalarization
4390         (completely_scalarize_var): New function.
4391         (sort_and_splice_var_accesses): Set total_scalarization in the
4392         representative access.
4393         (analyze_access_subtree): Propagate total scalarization accross the
4394         tree, no holes in totally scalarized trees, simplify coverage
4395         computation.
4396         (analyze_all_variable_accesses): Call completely_scalarize_var instead
4397         of completely_scalarize_record.
4398
4399 2011-06-30  Richard Henderson  <rth@redhat.com>
4400
4401         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
4402         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
4403         * config/i386/i386.c: Don't include dwarf2out.h.
4404         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
4405         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
4406         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
4407         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
4408         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
4409
4410 2011-06-30  Richard Henderson  <rth@redhat.com>
4411
4412         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
4413         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
4414         * final.c (final_scan_insn): Look for it, and invoke
4415         dwarf2out_frame_debug before the insn if found.
4416
4417 2011-06-30  Richard Henderson  <rth@redhat.com>
4418
4419         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
4420         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
4421
4422 2011-06-30  Richard Henderson  <rth@redhat.com>
4423
4424         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
4425         Define a vector of this type.
4426         (regs_saved_in_regs): Use a VEC.
4427         (num_regs_saved_in_regs): Remove.
4428         (compare_reg_or_pc): New.
4429         (record_reg_saved_in_reg): Split out from...
4430         (dwarf2out_flush_queued_reg_saves): ... here.
4431         (clobbers_queued_reg_save): Update for VEC.
4432         (reg_saved_in): Likewise.
4433         (dwarf2out_frame_debug_init): Likewise.
4434         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
4435         (dwarf2out_frame_debug_cfa_register): Likewise.
4436
4437 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
4438
4439         PR tree-optimization/49572
4440         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
4441         type of the RHS instead of that of the LHS for the expression type.
4442
4443 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
4444
4445         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
4446         unconditionally.
4447
4448 2011-06-30  Richard Guenther  <rguenther@suse.de>
4449
4450         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
4451         * tree-ssa-structalias.c (create_variable_info_for): Do not
4452         add initial constraints for non-var-decls.  Properly handle
4453         globals in other ltrans partitions.
4454         (intra_create_variable_infos): Manually create constraints for
4455         the fake no-alias parameter.
4456         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
4457         and assert there are no clones.
4458
4459 2011-06-30  Richard Guenther  <rguenther@suse.de>
4460
4461         PR tree-optimization/46787
4462         * tree-data-ref.c (dr_address_invariant_p): Remove.
4463         (find_data_references_in_stmt): Invariant accesses are ok now.
4464         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
4465         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
4466         invariant loads.
4467
4468 2011-06-30  Martin Jambor  <mjambor@suse.cz>
4469
4470         PR tree-optimization/49094
4471         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
4472         (build_accesses_from_assign): Use it.
4473
4474 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
4475
4476         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
4477         handling of BUILT_IN_ASSUME_ALIGNED.
4478
4479         PR debug/49364
4480         * dwarf2out.c (output_abbrev_section): Don't return early
4481         if abbrev_die_table_in_use is 1.
4482         (dwarf2out_finish): Instead don't call output_abbrev_section
4483         nor emit abbrev_section_label in that case.
4484
4485 2011-06-30  Nick Clifton  <nickc@redhat.com>
4486
4487         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
4488         for the V850E.
4489
4490 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
4491
4492         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
4493         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
4494
4495 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
4496
4497         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
4498         both pattern and original statements if necessary.
4499         (vect_transform_loop): Likewise.
4500         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
4501         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
4502         Mark the pattern statement only if the original statement doesn't
4503         have its own uses.
4504         (process_use): Call vect_mark_relevant with additional parameter.
4505         (vect_mark_stmts_to_be_vectorized): Likewise.
4506         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
4507         (vect_analyze_stmt): Handle both pattern and original statements
4508         if necessary.
4509         (vect_transform_stmt): Don't store vectorized pattern statement
4510         in the original statement.
4511         (vect_is_simple_use_1): Use related pattern statement only if the
4512         original statement is irrelevant.
4513         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
4514
4515 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
4516
4517         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
4518         option.
4519         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
4520         entry.
4521         (TARGET_AVX128_OPTIMAL): New definition.
4522         * config/i386/i386.c (initial_ix86_tune_features): Initialize
4523         X86_TUNE_AVX128_OPTIMAL entry.
4524         (ix86_option_override_internal): Enable the generation
4525         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
4526         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
4527         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
4528
4529 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
4530
4531         PR tree-optimization/49539
4532         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
4533         names by means of stmt_references_abnormal_ssa_name.
4534         (associate_plusminus): Call can_propagate_from before propagating
4535         from definition statements.
4536         (ssa_forward_propagate_and_combine): Remove superfluous newline.
4537
4538 2011-06-29  Richard Guenther  <rguenther@suse.de>
4539
4540         * doc/invoke.texi: Document -scev dump modifier.
4541         * tree-pass.h (TDF_SCEV): New dump flag.
4542         * tree-dump.c (dump_option_value_in): Add scev.
4543         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
4544         * tree-scalar-evolution.c: Likewise.
4545
4546 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
4547
4548         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
4549         (cxa_type_match): Correct declaration.
4550         (__gnu_unwind_pr_common): Reconstruct additional indirection
4551         when __cxa_type_match returns succeeded_with_ptr_to_base.
4552
4553 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4554
4555         PR rtl-optimization/49114
4556         * reload.c (struct replacement): Remove SUBREG_LOC member.
4557         (push_reload): Do not set it.
4558         (push_replacement): Likewise.
4559         (subst_reload): Remove dead code.
4560         (copy_replacements): Remove assertion.
4561         (copy_replacements_1): Do not handle SUBREG_LOC.
4562         (move_replacements): Likewise.
4563         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
4564         Detect subregs via recursive descent instead of via SUBREG_LOC.
4565
4566 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
4567
4568         * config/avr/avr.c (avr_encode_section_info): Dispatch to
4569         default_encode_section_info.
4570
4571 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
4572
4573         PR tree-optimization/49545
4574         * builtins.c (get_object_alignment_1): Update function comment.
4575         Do not use DECL_ALIGN for functions, but test
4576         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
4577         * fold-const.c (get_pointer_modulus_and_residue): Don't check
4578         for functions here.
4579         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
4580
4581 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
4582
4583         PR debug/49567
4584         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
4585         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
4586
4587 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
4588
4589         PR target/34734
4590         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
4591         about uninitialized data attributed 'progmem' from here...
4592         (avr_encode_section_info): ...to this new function.
4593         (TARGET_ENCODE_SECTION_INFO): New define.
4594         (avr_section_type_flags): For data in ".progmem.data", remove
4595         section flag SECTION_WRITE.
4596
4597 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
4598
4599         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
4600         _xmulhisi3_exit.
4601         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
4602         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
4603         (__umulhisi3): Ditto.
4604         * config/avr/avr.md (mulhisi3): New insn expender.
4605         (umulhisi3): New insn expender.
4606         (*mulhisi3_call): New insn.
4607         (*umulhisi3_call): New insn.
4608
4609 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
4610
4611         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
4612
4613 2011-06-28  Richard Henderson  <rth@redhat.com>
4614
4615         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
4616         all code and arguments that handled pushes.  Update all callers.
4617
4618 2011-06-28  Richard Henderson  <rth@redhat.com>
4619
4620         * config/arm/arm.c (arm_output_function_prologue): Don't call
4621         thumb1_output_function_prologue.
4622         (arm_expand_prologue): Avoid dead store.
4623         (number_of_first_bit_set): Use ctz_hwi.
4624         (thumb1_emit_multi_reg_push): New.
4625         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
4626         to emit the entire prologue as rtl.
4627         (thumb1_output_interwork): Split out from
4628         thumb1_output_function_prologue.
4629         (thumb1_output_function_prologue): Remove.
4630         (arm_attr_length_push_multi): Handle thumb1.
4631         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
4632         (prologue_thumb1_interwork): New.
4633         (*push_multi): Allow thumb1; use push_mult_memory_operand.
4634         * config/arm/predicates.md (push_mult_memory_operand): New.
4635
4636 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
4637
4638         * config/sparc/sync.md (*stbar): Delete.
4639         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
4640
4641 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
4642
4643         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
4644
4645 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4646
4647         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
4648         (TARGET_64BIT_DEFAULT): Define.
4649         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
4650         of tm_file.
4651         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
4652
4653 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
4654
4655         * common.opt (in_lto_p): New Variable entry.
4656         * flags.h (in_lto_p): Move to common.opt.
4657         * gcc.c: Include params.h.
4658         (set_option_handlers): Also use common_handle_option and
4659         target_handle_option.
4660         (main): Call global_init_params, finish_params and init_options_struct.
4661         * opts.c (debug_type_names): Move from toplev.c.
4662         (print_filtered_help): Access quiet_flag through opts pointer.
4663         (common_handle_option): Return early in the driver for some options.
4664         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
4665         opts pointer.
4666         * toplev.c (in_lto_p): Move to common.opt.
4667         (debug_type_names): Move to opts.c.
4668         * Makefile.in (OBJS): Remove opts.o.
4669         (OBJS-libcommon-target): Add opts.o.
4670         (gcc.o): Update dependencies.
4671
4672 2011-06-28  Kai Tietz  <ktietz@redhat.com>
4673
4674         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
4675
4676 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4677
4678         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
4679         with '=' constraint modifier.
4680         (*divdf3_vfp): Likewise.
4681         ("*mulsf3_vfp"): Likewise.
4682         ("*muldf3_vfp"): Likewise.
4683         ("*mulsf3negsf_vfp"): Likewise.
4684         ("*muldf3negdf_vfp"): Likewise.
4685
4686 2011-06-28  Nick Clifton  <nickc@redhat.com>
4687
4688         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
4689         relaxation when performing an incremental link.
4690
4691 2011-06-28  Kai Tietz  <ktietz@redhat.com>
4692
4693         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
4694         within BB from last to first.
4695
4696 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
4697
4698         * genattr-common.c: New.  Based on genattr.c.
4699         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
4700         (MOSTLYCLEANFILES): Add insn-attr-common.h.
4701         (opts.o): Update dependencies.
4702         (.PRECIOUS): Add insn-attr-common.h.
4703         (simple_rtl_generated_h): Add insn-attr-common.h.
4704         (build/genattr-common.o): New.
4705         (genprogrtl): Add attr-common.
4706         * genattr.c (main): Include insn-attr-common.h.  Don't generate
4707         definitions of DELAY_SLOTS or INSN_SCHEDULING.
4708         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
4709
4710 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
4711
4712         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
4713         avr-*-* and avr-*-rtems* targets.
4714
4715         * config/avr/elf.h: New file.
4716         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
4717         (TARGET_ASM_SELECT_SECTION): Define.
4718         (INIT_SECTION_ASM_OP): Undefine.
4719         (FINI_SECTION_ASM_OP): Undefine.
4720         (READONLY_DATA_SECTION_ASM_OP): Undefine.
4721         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
4722         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
4723         * config/avr/avr.h:
4724         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
4725         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
4726         (MAX_OFILE_ALIGNMENT): Move to elf.h.
4727         (STRING_LIMIT): Move to elf.h.
4728         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
4729         (ASM_DECLARE_OBJECT_NAME): Remove.
4730         (ESCAPES): Remove.
4731         (ASM_OUTPUT_SKIP): Remove.
4732         (DWARF2_DEBUGGING_INFO): Remove.
4733         (OBJECT_FORMAT_ELF): Remove.
4734         (USER_LABEL_PREFIX): Remove.
4735         (ASM_OUTPUT_EXTERNAL): Remove.
4736         (ASM_OUTPUT_ASCII): Remove.
4737         (TYPE_ASM_OP): Remove.
4738         (SIZE_ASM_OP): Remove.
4739         (WEAK_ASM_OP): Remove.
4740         (STRING_ASM_OP): Remove.
4741         (SET_ASM_OP): Remove.
4742         (ASM_WEAKEN_LABEL): Remove.
4743         (TYPE_OPERAND_FMT): Remove.
4744         (ASM_DECLARE_FUNCTION_SIZE): Remove.
4745         (ASM_FINISH_DECLARE_OBJECT): Remove.
4746         (NO_DOLLAR_IN_LABEL): Remove.
4747         (ASM_GENERATE_INTERNAL_LABEL): Remove.
4748         (ASM_OUTPUT_CASE_LABEL): Remove.
4749         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
4750         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
4751         (gas_output_ascii): Remove.
4752         (gas_output_limited_string): Remove.
4753         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
4754         * config/avr/avr-protos.h
4755         (gas_output_ascii): Remove prototye.
4756         (gas_output_limited_string): Remove prototype.
4757
4758 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
4759
4760         PR target/48637
4761         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
4762         asm operands.
4763
4764 2011-06-27  Jan Hubicka  <jh@suse.cz>
4765
4766         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
4767         node instead of references in node.
4768
4769 2011-06-27  Richard Henderson  <rth@redhat.com>
4770
4771         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
4772         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
4773         inside ifdef.
4774
4775 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
4776
4777         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
4778
4779         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
4780         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
4781         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
4782         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
4783         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
4784         (evaluate_stmt, execute_fold_all_builtins): Handle
4785         BUILT_IN_ASSUME_ALIGNED.
4786         * tree-ssa-dce.c (propagate_necessity): Likewise.
4787         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
4788         call_may_clobber_ref_p_1): Likewise.
4789         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
4790         (expand_builtin_assume_aligned): New function.
4791         * doc/extend.texi (__builtin_assume_aligned): Document.
4792
4793         PR debug/49544
4794         * cselib.c (promote_debug_loc): If cselib_preserve_constants
4795         and l has two DEBUG_INSN owned locs instead of just one, adjust
4796         the second location's setting_insn too.
4797
4798 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4799
4800         PR libmudflap/38738
4801         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
4802
4803 2011-06-27  Nick Clifton  <nickc@redhat.com>
4804
4805         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
4806         bit position of highest bit set into a count of the high zero bits.
4807
4808 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
4809
4810         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
4811
4812 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
4813
4814         PR lto/48492
4815         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
4816         to a NULL parent.
4817
4818 2011-06-27  Richard Guenther  <rguenther@suse.de>
4819
4820         PR tree-optimization/49394
4821         * passes.c (execute_one_pass): Restore current_pass after
4822         applying IPA transforms.
4823
4824 2011-06-27  Kai Tietz  <ktietz@redhat.com>
4825
4826         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
4827         out of type precision after operation.
4828         (find_bswap): Take for limit value the integer auto-promotion
4829         into account.
4830
4831 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
4832
4833         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
4834         forward scan as well.
4835
4836 2011-06-27  Tristan Gingold  <gingold@adacore.com>
4837
4838         PR target/44241
4839         * config/vms/vms-protos.h: New file.
4840         * config/vms/vms-crtlmap.map: New file.
4841         * config/vms/vms.c: New file.
4842         * config/vms/make-crtlmap.awk: New file.
4843         * config/vms/vms-crtl.h: File removed.
4844         * config/vms/vms-crtl-64.h: File removed.
4845         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
4846         * config/alpha/vms64.h: Do not include vms-crtl-64.h
4847         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
4848         clear some builtins on VMS.  Calls vms_patch_builtins.
4849         (avms_asm_output_external): Remove.
4850         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
4851         (struct crtl_name_spec): Remove
4852         (DO_CTRL_NAMES): Remove.
4853         * config/ia64/vms.h (struct crtl_name_spec): Remove
4854         (DO_CTRL_NAMES): Remove.
4855         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
4856         clear some builtins on VMS.  Calls vms_patch_builtins.
4857         (ia64_asm_output_external): Remove DO_CRTL_NAME.
4858         * config/ia64/vms64.h: Do not include vms-crtl-64.h
4859         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
4860
4861 2011-06-27  Tristan Gingold  <gingold@adacore.com>
4862
4863         * config/alpha/alpha.c (alpha_end_function): Always generate .end
4864         directive on VMS.
4865
4866 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
4867
4868         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
4869         the function receives nonlocal gotos.
4870
4871 2011-06-27  Richard Guenther  <rguenther@suse.de>
4872
4873         PR tree-optimization/49536
4874         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
4875         For non-scalar inner types use a scalar type according to
4876         the scalar inner mode.
4877
4878 2011-06-27  Richard Guenther  <rguenther@suse.de>
4879
4880         PR tree-optimization/49365
4881         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
4882
4883 2011-06-27  Richard Guenther  <rguenther@suse.de>
4884
4885         PR tree-optimization/49169
4886         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
4887         the alignment of function decls.
4888
4889 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
4890
4891         PR target/47997
4892         * config/darwin.c (darwin_mergeable_string_section): Place string
4893         constants in '.cstring' rather than '.const' when CF/NSStrings are
4894         active.
4895
4896 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
4897
4898         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
4899         (emit_save_register_window): Likewise.
4900         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
4901         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
4902         Swap back %o7/%i7 in register naming.
4903
4904 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
4905
4906         PR driver/49371
4907         * config/darwin.c (darwin_override_options): Improve warning when
4908         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
4909         is given with fpie/fPIE.
4910         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
4911         * config/darwin9.h (PIE_SPEC): New.
4912
4913 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
4914
4915         * timevar.c (timevar_print): Increase width for display of timevar
4916         name.
4917
4918 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
4919
4920         PR c++/46400
4921         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
4922         instead of TYPE_CHAIN for chain_next for types.
4923
4924 2011-06-24  Richard Henderson  <rth@redhat.com>
4925
4926         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
4927         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
4928         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
4929         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
4930         (sparc_flat_expand_prologue): Emit individual instructions
4931         instead of one of the above.
4932
4933 2011-06-24  Easwaran Raman  <eraman@google.com>
4934
4935         PR rtl-optimization/49429
4936         PR target/49454
4937         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
4938         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
4939         used to copy y into x.
4940         * calls.c (initialize_argument_information): Mark
4941         an argument addressable if it is passed by invisible reference.
4942         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
4943         if it is passed by reference.
4944
4945 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
4946
4947         PR rtl-optimization/49504
4948         * rtlanal.c (nonzero_bits1): Properly handle addition or
4949         subtraction of a pointer in Pmode if pointers extend unsigned.
4950         (num_sign_bit_copies1): Likewise.
4951
4952 2011-06-24  Martin Jambor  <mjambor@suse.cz>
4953
4954         PR tree-optimizations/49516
4955         * tree-sra.c (sra_modify_assign): Choose the safe path for
4956         aggregate copies if we also did scalar replacements.
4957
4958 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4959
4960         PR target/49335
4961         * config/arm/predicates.md (add_operator): New.
4962         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
4963
4964 2011-06-24  Andi Kleen  <ak@linux.intel.com>
4965
4966         * tree-sra.c (type_internals_preclude_sra_p): Add msg
4967         parameter. Split up ifs and report reason in *msg.
4968         (reject): Add.
4969         (find_var_candiate): Add msg variable.
4970         Split up ifs and report reason to reject.
4971         (find_param_candidates): Add msg variable.
4972         Pass msg to type_internals_preclude_sra_p.
4973
4974 2011-06-23  Jeff Law  <law@redhat.com>
4975
4976         PR middle-end/48770
4977         * reload.h (reload): Change to return a bool.
4978         * ira.c (ira): If requested by reload, run a fast DCE pass after
4979         reload has completed.  Fix comment typo.
4980         * reload1.c (need_dce): New file scoped static.
4981         (reload): Set reload_completed here.  Return whether or not a DCE
4982         pass after reload is needed.
4983         (delete_dead_insn): Set need_dce as needed.
4984
4985         PR middle-end/49465
4986         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
4987         to detect threading through joiner block.  If there was already
4988         an edge to the new target, then do not change the PHI nodes.
4989
4990 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
4991
4992         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
4993         get_pointer_alignment to see if base isn't sufficiently aligned.
4994
4995 2011-06-23  Jan Hubicka  <jh@suse.cz>
4996
4997         PR tree-optimize/49373
4998         * tree-pass.h (all_late_ipa_passes): Declare.
4999         * cgraphunit.c (init_lowered_empty_function): Fix properties.
5000         (cgraph_optimize): Execute late passes; remove unreachable funcions
5001         after materialization.
5002         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
5003         LTOing.
5004         * passes.c (all_late_ipa_passes): Declare.
5005         (dump_passes, register_pass): Handle late ipa passes.
5006         (init_optimization_passes): Move ipa_pta to late passes; schedule
5007         fixup_cfg at beggining of all_passes.
5008         (apply_ipa_transforms): New function.
5009         (execute_one_pass): When doing simple ipa pass, apply all transforms.
5010
5011 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
5012
5013         * params.c: Include common/common-target.h.  Don't include tm.h.
5014         (lang_independent_params): Move from toplev.c.
5015         (global_init_params): New.
5016         * params.h (global_init_params): Declare.
5017         * target.def (default_params): Move to common-target.def.
5018         * toplev.c (lang_independent_options): Remove.
5019         (lang_independent_params): Move to params.c.
5020         (general_init): Use global_init_params.
5021         * common/common-target.def (option_default_params): Move from
5022         target.def.
5023         * common/config/ia64/ia64-common.c: Include params.h.
5024         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
5025         from ia64.c.
5026         * common/config/rs6000/rs6000-common.c: Include params.h.
5027         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
5028         from rs6000.c.
5029         * common/config/sh/sh-common.c: Include params.h.
5030         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
5031         from sh.c.
5032         * common/config/spu/spu-common.c: Include params.h.
5033         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
5034         from spu.c.
5035         * config/ia64/ia64.c (ia64_option_default_params,
5036         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
5037         * config/rs6000/rs6000.c (rs6000_option_default_params,
5038         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
5039         * config/sh/sh.c (sh_option_default_params,
5040         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
5041         * config/spu/spu.c (spu_option_default_params,
5042         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
5043         * Makefile.in (OBJS): Remove params.o.
5044         (OBJS-libcommon-target): Add params.o.
5045         (params.o, $(common_out_object_file)): Update dependencies.
5046         * doc/tm.texi: Regenerate.
5047
5048 2011-06-23  Alan Modra  <amodra@gmail.com>
5049
5050         PR bootstrap/49383
5051         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
5052         invocation for 2011-06-09 changes.
5053
5054 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
5055
5056         PR libgomp/49490
5057         * omp-low.c (expand_omp_for_static_nochunk): Only
5058         use n ceil/ nthreads size for the first n % nthreads threads in the
5059         team instead of all threads except for the last few ones which
5060         get less work or none at all.
5061
5062         PR debug/49496
5063         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
5064         uses.
5065
5066 2011-06-22  Richard Guenther  <rguenther@suse.de>
5067
5068         PR tree-optimization/49493
5069         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
5070         Refer to the alias target of variables.
5071         (associate_varinfo_to_alias_1): Remove.
5072         (ipa_pta_execute): Do not associate aliases with anything.
5073         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
5074         (cgraph_function_node): Likewise.
5075         (cgraph_function_or_thunk_node): Likewise.
5076         (varpool_variable_node): Likewise.
5077
5078 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
5079
5080         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
5081         * config.gcc (arm*-*-linux*): Default to gnu tls.
5082         (arm*-*-*): Add --with-tls option.
5083         (all_defaults): Add 'tls'.
5084
5085 2011-06-22  Richard Henderson  <rth@redhat.com>
5086
5087         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
5088         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
5089         (dwarf2out_frame_debug_cfa_window_save): Rename from
5090         dwarf2out_window_save; make static.
5091         * tree.h (dwarf2out_window_save): Don't declare.
5092
5093         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
5094         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
5095         (emit_save_register_window): Rename from gen_save_register_window;
5096         emit the insn and add REG_CFA_* notes.
5097         (sparc_expand_prologue): Update to match.
5098         * config/sparc/sparc.md (save_register_window_1): Simplify from
5099         save_register_window<P:mode>.
5100
5101 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
5102
5103         PR target/49497
5104         * config/i386/i386.md (*lea_general_2): Always allow SImode.
5105         (*lea_general_2_zext): Likewise.
5106         (imul to lea peepholes): Use const359_operand and check
5107         TARGET_PARTIAL_REG_STALL.
5108
5109         * config/i386/predicates.md (const359_operand): New.
5110
5111 2011-06-22  Michael Matz  <matz@suse.de>
5112
5113         * cgraphunit.c (assemble_thunk): Use correct return type.
5114
5115 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
5116             Dmitry Melnik  <dm@ispras.ru>
5117
5118         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
5119         (neon_output_shift_immediate): Ditto.
5120         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
5121         prototype.
5122         (neon_output_shift_immediate): Ditto.
5123         * config/arm/neon.md (vashl<mode>3): Modified constraint.
5124         (vashr<mode>3_imm): New insn pattern.
5125         (vlshr<mode>3_imm): Ditto.
5126         (vashr<mode>3): Modified constraint.
5127         (vlshr<mode>3): Ditto.
5128         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
5129         predicate.
5130         (imm_for_neon_rshift_operand): Ditto.
5131         (imm_lshift_or_reg_neon): Ditto.
5132         (imm_rshift_or_reg_neon): Ditto.
5133
5134         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
5135
5136 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
5137
5138         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
5139         builtin calls even if likelyvalue is not CONSTANT.
5140         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
5141         Return get_value_for_expr of first operand
5142         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
5143         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
5144         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
5145         their non-checking counterparts.
5146         (call_may_clobber_ref_p_1): Likewise.
5147         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
5148         like their non-checking counterparts.
5149         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5150         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
5151         like their non-checking counterparts.
5152         (find_func_clobbers): Likewise.
5153         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
5154         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
5155
5156         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
5157         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
5158         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
5159         of base type reference as argument.
5160         (resolve_addr_in_expr): Likewise.  Fix keep computation.
5161         (convert_descriptor_to_signed): Renamed to...
5162         (convert_descriptor_to_mode): ... this.  For wider types convert to
5163         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
5164         (typed_binop): New function.
5165         (scompare_loc_descriptor, ucompare_loc_descriptor,
5166         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
5167         default to unsigned type instead of signed.
5168
5169         PR debug/47858
5170         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
5171         (gimple_build_debug_source_bind_stat): New prototype.
5172         (gimple_build_debug_source_bind): Define.
5173         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
5174         gimple_debug_source_bind_get_value,
5175         gimple_debug_source_bind_get_value_ptr,
5176         gimple_debug_source_bind_set_var,
5177         gimple_debug_source_bind_set_value): New inlines.
5178         * gimple.c (gimple_build_debug_source_bind_stat): New function.
5179         * gimple-pretty-print.c (dump_gimple_debug): Handle
5180         GIMPLE_DEBUG_SOURCE_BIND.
5181         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
5182         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
5183         * tree-parloops.c (eliminate_local_variables,
5184         separate_decls_in_region): Likewise.
5185         (separate_decls_in_region_debug): Renamed from
5186         separate_decls_in_region_debug_bind.  Handle
5187         gimple_debug_source_bind_p.
5188         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
5189         prototypes.
5190         (DECL_HAS_DEBUG_ARGS_P): Define.
5191         (struct tree_function_decl): Add has_debug_args_flag field.
5192         * tree.c (debug_args_for_decl): New variable.
5193         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
5194         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
5195         (rewrite_debug_stmt_uses): New function.
5196         (rewrite_stmt): Use it to rewrite debug stmt uses.
5197         * rtl.def (DEBUG_PARAMETER_REF): New.
5198         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
5199         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
5200         DEBUG_PARAMETER_REF.
5201         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
5202         * print-rtl.c (print_rtx): Likewise.
5203         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
5204         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
5205         debug stmts in the first bb.
5206         * tree-inline.c (remap_ssa_name): If remapping default def
5207         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
5208         a source bind debug stmt.
5209         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
5210         (maybe_move_debug_stmts_to_successors): Likewise.
5211         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
5212         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
5213         debug args vector from old_decl to new_decl.
5214         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
5215         or modified parameters, add debug bind stmts before call
5216         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
5217         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
5218         on DECL_DEBUG_EXPRs from debug args vector.
5219         (expand_debug_source_expr): New function.
5220         (expand_debug_locations): Use it for source bind insns.
5221         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
5222         * var-tracking.c (prepare_call_arguments): Add debug args
5223         to call_arguments if any.
5224         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
5225         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
5226         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
5227         (get_ref_die_offset, parameter_ref_descriptor): New functions.
5228         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
5229         (gen_subprogram_die): Handle parameters identified by
5230         DEBUG_PARAMETER_REF.
5231
5232 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
5233
5234         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
5235         * doc/install.texi (Configuration): Document --with-tls.
5236         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
5237         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
5238         (arm_tls_descseq_addr): New.
5239         (legitimize_tls_address): Add tlsdesc support.
5240         (arm_cannot_copy_insn_p): Check for tlscall.
5241         (arm_emit_tls_decoration): Likewise.
5242         * config/arm/arm.h (TARGET_GNU2_TLS): New.
5243         (OPTION_DEFAULT_SPECS): Add with-tls support.
5244         * config/arm/arm.md (R1_REGNUM): Define.
5245         (tlscall): New.
5246         * config/arm/arm.opt (tls_type): New enumeration type and values.
5247         (mtls-dialect): New switch.
5248         * config/arm/arm-opts.h (enum tls_type): New.
5249
5250 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
5251
5252         * attribs.c (register_attribute): Added assert to check that all
5253         attribute specs are registered with a name that is not empty and
5254         does not start with '_'.
5255         (decl_attributes): Avoid the lookup of the "naked" attribute spec
5256         if the function has no attributes.
5257         * tree.c (is_attribute_with_length_p): Removed.
5258         (is_attribute_p): Removed.
5259         (private_is_attribute_p): New.
5260         (private_lookup_attribute): New.
5261         (lookup_attribute): Removed.
5262         (lookup_ident_attribute): New.
5263         (remove_attribute): Require the first argument to be in the form
5264         'text', not '__text__'.  Updated asserts.
5265         (merge_attributes): Use lookup_ident_attributes instead of
5266         lookup_attribute.
5267         (merge_dllimport_decl_attributes): Use remove_attribute.
5268         (attribute_list_contained): Likewise.
5269         (attribute_list_equal): Immediately return 1 if the arguments are
5270         identical pointers.
5271         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
5272         'int'.  Require the first argument to be in the form 'text', not
5273         '__text__'.  Require the second argument to be an identifier.
5274         (lookup_attribute): Made inline.  Require the first argument to be
5275         in the form 'text', not '__text__'.
5276         (private_is_attribute_p, private_lookup_attribute): New.
5277         Updated comments.
5278
5279 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
5280
5281         * builtins.c: Add sync_ or SYNC__ to builtin names.
5282         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
5283         * omp-low.c: Add sync_ or SYNC__ to builtin names.
5284
5285 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
5286
5287         PR target/33049
5288         * config/avr/avr.md (extzv): New expander.
5289         (*extzv): New insn.
5290         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
5291         * config/avr/constraints.md (C04): New constraint.
5292         * doc/md.texi (Machine Constraints): Document it.
5293
5294 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
5295
5296         PR middle-end/49489
5297         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
5298         unsignedp argument instead of 1 for clrsb_optab.
5299         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
5300         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
5301         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
5302         * optabs.c (widen_leading): Call widen_operand and expand_unop
5303         with 0 as unsignedp argument instead of 1 for clrsb_optab.
5304         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
5305
5306 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
5307
5308         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
5309
5310 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
5311
5312         * gensupport.c (add_define_attr): New static function.
5313         (is_predicable): Allow multi-alternative lists for the "predicable"
5314         attribute.
5315         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
5316         (process_one_cond_exec): Call alter_attrs_for_insn.
5317         * doc/md.texi (Defining Attributes): Mention some standard names.
5318         (Conditional Execution): Update documentation for "predicable".
5319
5320         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
5321         __builtin_clrsbll): Document.
5322         * doc/rtl.texi (clrsb): New entry.
5323         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
5324         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
5325         (expand_unop): Handle clrsb_optab.
5326         (init_optabs): Initialize it.
5327         * optabs.h (enum optab_index): New entry OTI_clrsb.
5328         (clrsb_optab): Define.
5329         * genopinit.c (optabs): Add an entry for it.
5330         * builtins.c (expand_builtin): Handle clrsb builtin functions.
5331         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
5332         BUILT_IN_CLRSBLL): New.
5333         * rtl.def (CLRSB): New code.
5334         * dwarf2out.c (mem_loc_descriptor): Handle it.
5335         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
5336         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
5337         and popcount.
5338         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
5339         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
5340         (__ctzDI2): Move declaration.
5341         * config/bfin/bfin.md (clrsbsi2): New expander.
5342         (signbitssi2): Use the CLRSB rtx.
5343         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
5344         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
5345
5346 2011-06-21  Richard Guenther  <rguenther@suse.de>
5347
5348         * ipa-inline-transform.c (inline_transform): Fix previous change.
5349
5350 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
5351
5352         PR tree-optimization/49478
5353         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
5354         with constant operand.
5355
5356 2011-06-21  Richard Guenther  <rguenther@suse.de>
5357
5358         * ipa-inline-transform.c (inline_transform): Fix typo.
5359
5360 2011-06-21  Richard Guenther  <rguenther@suse.de>
5361
5362         PR tree-optimization/49483
5363         * tree-vect-stmts.c (vectorizable_assignment): Also handle
5364         VIEW_CONVERT_EXPR conversions.
5365
5366 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
5367
5368         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
5369         * config/avr/avr-tables.opt: New file (generated).
5370         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
5371         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
5372         avr-mcus.def.
5373         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
5374         (avr_option_override): Don't process -mmcu= argument here.  Set
5375         avr_current_device using avr_mcu_index.
5376         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
5377         * config/avr/avr.opt (mmcu=): Use Enum.
5378         * config/avr/t-avr (avr-devices.o): Update dependencies.
5379         ($(srcdir)/config/avr/avr-tables.opt): New.
5380         * target.def (help): Remove.
5381         * doc/tm.texi.in (TARGET_HELP): Remove.
5382         * doc/tm.texi: Regenerate.
5383         * opts.c: Don't include target.h.
5384         (common_handle_option): Don't call targetm.help.
5385         * system.h (TARGET_HELP): Poison.
5386         * Makefile.in (opts.o): Update dependencies.
5387
5388 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5389
5390         * config/usegld.h: New file.
5391         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
5392         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
5393         (LIB_SPEC): Likewise.  Search /lib.
5394         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
5395         (RDYNAMIC_SPEC): Handle GNU ld.
5396         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
5397         Define.
5398         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
5399         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
5400         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
5401         (STACK_CHECK_STATIC_BUILTIN): Define.
5402         * config/sol2.opt (compat-bsd): Remove.
5403         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
5404         * config/sol2-bi.h: New file.
5405         * config/sol2-gld.h: Remove.
5406         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
5407         (NO_DBX_BNSYM_ENSYM): Remove.
5408         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
5409         (STACK_CHECK_STATIC_BUILTIN): Remove.
5410         Test USE_GLD instead of TARGET_GNU_LD.
5411         * config/i386/sol2-10.h: Rename to ...
5412         * config/i386/sol2-bi.h .. this.
5413         (SUBTARGET_EXTRA_SPECS): Redefine.
5414         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
5415         (MULTILIB_DEFAULTS): Remove.
5416         (DEFAULT_ARCH32_P): Define.
5417         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
5418         (ARCH64_SUBDIR): Define.
5419         Test USE_GLD instead of TARGET_GNU_LD.
5420         (I386_EMULATION): Rename to ...
5421         (ARCH32_EMULATION): ... this.
5422         (X86_64_EMULATION): Rename to ...
5423         (ARCH64_EMULATION): ... this.
5424         (TARGET_LD_EMULATION): Remove.
5425         (LINK_ARCH_SPEC): Remove.
5426         * config/i386/sol2-gas.h: Remove.
5427         * config/i386/t-sol2-10: Rename to ...
5428         * config/i386/t-sol2-64: ... this.
5429         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
5430         (AS_SPARC64_FLAG): Define.
5431         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
5432         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
5433         depending on TARGET_CPU_DEFAULT.
5434         (CPP_CPU_SPEC): Redefine.
5435         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
5436         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
5437         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
5438         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
5439         ASM_ARCH_DEFAULT_SPEC): Redefine.
5440         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
5441         LINK_ARCH_DEFAULT_SPEC.
5442         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
5443         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
5444         (ARCH64_SUBDIR): Define.
5445         (LINK_ARCH64_SPEC): Redefine.
5446         (CC1_SPEC): Redefine.
5447         (OPTION_DEFAULT_SPECS): Redefine.
5448         (MULTILIB_DEFAULTS): Define.
5449         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
5450         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
5451         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
5452         (NO_DBX_BNSYM_ENSYM): Remove.
5453         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
5454         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
5455         (TARGET_ASM_NAMED_SECTION): Likewise.
5456         (STACK_CHECK_STATIC_BUILTIN): Remove.
5457         * config/sparc/sol2-bi.h: Remove.
5458         * config/sparc/sol2-gas-bi.h: Remove.
5459         * config/sparc/sol2-gas.h: Remove.
5460         * config/sparc/sol2-gld-bi.h: Remove.
5461         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
5462         common parts ...
5463         (*-*-solaris2*): ... here.
5464
5465 2011-06-21  Christian Bruel  <christian.bruel@st.com>
5466
5467         PR other/43564
5468         * ipa-inline.c (can_inline_edge_p): Check
5469         !DECL_DISREGARD_INLINE_LIMITS.
5470
5471 2011-06-21  Christian Bruel  <christian.bruel@st.com>
5472
5473         PR middle-end/49139
5474         * cgraphunit.c (process_function_and_variable_attributes): warn when
5475         always_inline functions that are not inline.
5476         * ipa-inline-transform.c (inline_transform): Always call
5477         optimize_inline.
5478         * tree-inline.c (tree_inlinable_function_p): Use error instead
5479         of sorry.
5480         (expand_call_inline): Likewise.
5481
5482 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
5483
5484         * Makefile.in (dg_target_exps): Set.
5485         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
5486         instead of 7, try to divide it more evenly.
5487
5488 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
5489
5490         PR target/49089
5491         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
5492         (avx256_split_unaligned_store): New definition.
5493         (ix86_option_override_internal): Enable avx256 unaligned load/store
5494         splitting only when avx256_split_unaligned_load/store is set.
5495
5496 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
5497
5498         * regrename.c (scan_rtx_reg): Handle the case where we write to an
5499         open chain in a smaller mode without failing the entire block.
5500
5501 2011-06-21  Alan Modra  <amodra@gmail.com>
5502
5503         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
5504         CONST high part large-toc address.
5505         (rs6000_tls_referenced_p): Make static.
5506         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
5507
5508 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5509
5510         PR target/49385
5511         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
5512         one of the operands is a register.
5513
5514 2011-06-20  Kai Tietz  <ktietz@redhat.com>
5515
5516         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
5517         operations in combination with binary and.
5518
5519 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
5520
5521         * regrename.c (do_replace): Don't update notes.
5522
5523 2011-06-20  Alan Modra  <amodra@gmail.com>
5524
5525         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
5526         of toc-relative address in CONST.
5527         (rs6000_delegitimize_address): Recognize changed address.
5528         (rs6000_legitimize_reload_address): Likewise.
5529         (rs6000_emit_move): Don't force these constants to memory.
5530         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
5531         toc-relative address in CONST.
5532         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
5533         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
5534
5535 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
5536
5537         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
5538         (count_trailing_zeros): Likewise.
5539
5540 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
5541
5542         PR other/49325
5543         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
5544         .init_array can be used with .ctors on targets.
5545         * configure: Regenerated.
5546
5547 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
5548
5549         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
5550         if the element type is volatile.
5551
5552 2011-06-18  Jan Hubicka  <jh@suse.cz>
5553
5554         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
5555         extra name aliases.
5556         (lto_symtab_resolve_can_prevail_p): Likewise.
5557         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
5558         * cgraphbuild.c (record_reference): Remove extra body alias code.
5559         (mark_load): Likewise.
5560         (mark_store): Likewise.
5561         * cgraph.h (varpool_node): Remove extra_name filed;
5562         add alias_of and extraname_alias.
5563         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
5564         (varpool_alias_aliased_node): New inline function.
5565         (varpool_variable_node): New function.
5566         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
5567         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
5568         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
5569         (input_varpool_node): Likewise.
5570         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
5571         (varpool_externally_visible_p): Remove extra body alias code.
5572         (function_and_variable_visibility): Likewise.
5573         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
5574         (ipa_pta_execute): Use it.
5575         * varpool.c (varpool_remove_node): Remove extra name alias code.
5576         (varpool_mark_needed_node): Likewise.
5577         (varpool_analyze_pending_decls): Analyze aliases.
5578         (assemble_aliases): New functoin.
5579         (varpool_assemble_decl): Use it.
5580         (varpool_create_variable_alias): New function.
5581         (varpool_extra_name_alias): Rewrite.
5582         (varpool_for_node_and_aliases): New function.
5583
5584 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
5585
5586         PR target/49411
5587         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
5588         last_arg_constant and last argument doesn't match its predicate,
5589         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
5590         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
5591         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
5592         spelling of error message.
5593         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
5594         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
5595         const_0_to_255_operand instead of const_int_operand.
5596
5597         Revert:
5598         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
5599
5600         * config/i386/sse.md (blendbits): Remove mode attribute.
5601         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
5602         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
5603         Check integer value of operand 3 in insn constraint.
5604
5605 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
5606
5607         PR rtl-optimization/48542
5608         * reload.c (find_equiv_reg): Stop looking when finding a
5609         setjmp-type call.
5610         * reload1.c (reload_as_needed): Invalidate all reload
5611         registers when crossing a setjmp-type call.
5612
5613 2011-06-16  Jeff Law  <law@redhat.com>
5614
5615         * tree-ssa-threadupdate.c (struct redirection_data): New field
5616         intermediate_edge.
5617         (THREAD_TARGET2): Define.
5618         (redirection_data_eq): Also check that the intermediate edge is equal.
5619         (lookup_redirection_data): Drop useless argument.  Extract the
5620         outgoing_edge and intermediate edge from E.  Callers updated.
5621         (copy_phi_args, update_destination_phis): New functions.
5622         (fix_duplicate_block_edges): Likewise.
5623         (create_edge_and_update_destination_phis): Duplicate all the edges
5624         hung off e->aux.  Use copy_phi_args.
5625         (create_duplicates): Use fix_duplicate_block_edges.
5626         (fixup_template_block): Likewise.
5627         (redirect_edges): If necessary, redirect the joiner block's incoming
5628         edge to the duplicate of the joiner block.
5629         (thread_block): Don't muck up loops when threading through a joiner
5630         block.
5631         (thread_through_loop_header): Handle threading through a joiner block.
5632         (mark_threaded_blocks, register_jump_thread): Likewise.
5633         * tree-flow.h (register_jump_thread): Add new argument.  Callers
5634         updated.
5635         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
5636         (thread_across_edge): Handle threading through a joiner block.
5637
5638 2011-06-16  Martin Jambor  <mjambor@suse.cz>
5639
5640         PR tree-optimization/49343
5641         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
5642         calculate offset, provide 2nd operand for the new COMPONENT_REF.
5643
5644 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
5645
5646         * config/darwin-protos.h (machopic_select_rtx_section): Move to
5647         inside RTX_CODE ifdef.
5648
5649 2011-06-16  Tom de Vries  <tom@codesourcery.com>
5650
5651         PR target/45098
5652         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
5653         Disallow NULL pointer for pointer arithmetic.
5654
5655 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5656
5657         PR target/49398
5658         Revert.
5659         2011-06-10  Wei Guozhi  <carrot@google.com>
5660
5661         PR target/45335
5662         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
5663         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
5664         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
5665         related peephole2.
5666         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
5667         related peephole2.
5668         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
5669         (arm_legitimate_ldrd_p): New prototype.
5670         (arm_output_ldrd): New prototype.
5671         * config/arm/arm.c (arm_check_ldrd_operands): New function.
5672         (arm_legitimate_ldrd_p): New function.
5673         (arm_output_ldrd): New function.
5674
5675 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
5676
5677         PR middle-end/46500
5678         * doc/tm.texi.in: Update Copyright date.
5679         * doc/tm.texi: Regenerate.
5680         * targhooks.c (default_setup_incoming_varargs): Replace
5681         CUMULATIVE_ARGS* argument type with cumulative_args_t.
5682         (default_pretend_outgoing_varargs_named): Likewise.
5683         (hook_pass_by_reference_must_pass_in_stack): Likewise.
5684         (hook_callee_copies_named): Likewise.
5685         (default_function_arg_advance): Likewise.
5686         (default_function_arg): Likewise.
5687         (default_function_incoming_arg): Likewise.
5688         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
5689         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
5690         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
5691         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
5692         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
5693         * targhooks.h (default_setup_incoming_varargs): Likewise.
5694         (default_pretend_outgoing_varargs_named): Likewise.
5695         (hook_pass_by_reference_must_pass_in_stack): Likewise.
5696         (hook_callee_copies_named): Likewise.
5697         (default_function_arg_advance): Likewise.
5698         (default_function_arg): Likewise.
5699         (default_function_incoming_arg): Likewise.
5700         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
5701         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
5702         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
5703         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
5704         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
5705         * target.def (pass_by_reference): Likewise.
5706         (setup_incoming_varargs, strict_argument_naming): Likewise.
5707         (pretend_outgoing_varargs_named, callee_copies): Likewise.
5708         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
5709         (function_incoming_arg): Likewise.
5710         * target.h: Don't include "tm.h" .
5711         (cumulative_args_t): New typedef.
5712         [GCC_TM_H] (get_cumulative_args): New static inline function.
5713         [GCC_TM_H] (pack_cumulative_args): Likewise.
5714         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
5715         argument type with cumulative_args_t.
5716         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
5717         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
5718         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
5719         (frv_arg_partial_bytes, frv_function_arg): Likewise.
5720         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
5721         (frv_function_arg_1): Likewise.
5722         * config/s390/s390.c (s390_pass_by_reference): Likewise.
5723         (s390_function_arg_advance, s390_function_arg): Likewise.
5724         * config/m32c/m32c.c (m32c_function_arg): Likewise.
5725         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
5726         (m32c_strict_argument_naming): Likewise.
5727         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
5728         (spu_function_arg_advance): Likewise.
5729         (spu_setup_incoming_varargs): Likewise.  Make static.
5730         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
5731         Remove prototype.
5732         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
5733         CUMULATIVE_ARGS* argument type with cumulative_args_t.
5734         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
5735         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
5736         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
5737         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
5738         (mep_pass_by_reference, mep_function_arg): Likewise.
5739         (mep_function_arg_advance): Likewise.
5740         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
5741         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
5742         (m32r_function_arg, m32r_function_arg_advance): Likewise.
5743         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
5744         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
5745         (ix86_function_arg, ix86_pass_by_reference): Likewise.
5746         (ix86_setup_incoming_varargs): Likewise.
5747         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
5748         (sh_strict_argument_naming): Likewise.
5749         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
5750         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
5751         (sh_function_arg_advance, sh_function_arg): Likewise.
5752         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
5753         (pdp11_function_arg_advance): Likewise.
5754         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
5755         Likewise.
5756         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
5757         * config/avr/avr.c (avr_function_arg): Likewise.
5758         (avr_function_arg_advance): Likewise.
5759         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
5760         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
5761         (xtensa_function_arg_1): Likewise.
5762         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
5763         Likewise.
5764         (xstormy16_function_arg): Likewise.
5765         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
5766         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
5767         (fr30_function_arg_advance): Likewise.
5768         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
5769         (lm32_function_arg, lm32_function_arg_advance): Likewise.
5770         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
5771         (moxie_function_arg, moxie_function_arg_advance): Likewise.
5772         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
5773         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
5774         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
5775         (cris_function_arg, cris_function_incoming_arg): Likewise.
5776         (cris_function_arg_advance, cris_function_arg_1): Likewise.
5777         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
5778         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
5779         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
5780         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
5781         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
5782         (mn10300_arg_partial_bytes): Likewise.
5783         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
5784         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
5785         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
5786         (ia64_function_arg_1): Likewise.
5787         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
5788         (m68k_function_arg): Likewise.
5789         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
5790         (rs6000_function_arg, setup_incoming_varargs): Likewise.
5791         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
5792         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
5793         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
5794         (picochip_arg_advance): Likewise.
5795         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
5796         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
5797         (mcore_function_arg_advance): Likewise.
5798         * config/score/score.c (score_pass_by_reference): Likewise.
5799         (score_function_arg_advance): Likewise.
5800         (score_arg_partial_bytes): Likewise.  Make static.
5801         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
5802         * config/arm/arm.c (arm_arg_partial_bytes): Replace
5803         CUMULATIVE_ARGS* argument type with cumulative_args_t.
5804         (arm_function_arg, arm_function_arg_advance): Likewise.
5805         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
5806         * config/pa/pa.c (pa_pass_by_reference): Likewise.
5807         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
5808         (pa_function_arg): Likewise.
5809         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
5810         (mips_function_arg, mips_function_arg_advance): Likewise.
5811         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
5812         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
5813         * config/vax/vax.c (vax_function_arg): Likewise.
5814         (vax_function_arg_advance): Likewise.
5815         * config/h8300/h8300.c (h8300_function_arg): Likewise.
5816         (h8300_function_arg_advance): Likewise.
5817         * config/v850/v850.c (v850_pass_by_reference): Likewise.
5818         (v850_strict_argument_naming, v850_function_arg): Likewise.
5819         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
5820         (v850_setup_incoming_varargs): Likewise.
5821         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
5822         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
5823         (mmix_function_arg, mmix_pass_by_reference): Likewise.
5824         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
5825         with const void *.
5826         * config/bfin/bfin.c (setup_incoming_varargs): Replace
5827         CUMULATIVE_ARGS* argument type with cumulative_args_t.
5828         (bfin_function_arg_advance, bfin_function_arg): Likewise.
5829         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
5830         * calls.c (emit_call_1): Change type of args_so_far to
5831         cumulative_args_t.  Changed all callers.
5832         (initialize_argument_information): Likewise.
5833         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
5834         * dse.c (get_call_args): Likewise.
5835         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
5836         * function.c (pass_by_reference, reference_callee_copied): Likewise.
5837         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
5838         New member args_so_far_v.  Changed all users.
5839         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
5840         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
5841         * config/mips/mips.c (mips_output_args_xfer): Likewise.
5842         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
5843         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
5844         * config/microblaze/microblaze.c (microblaze_expand_prologue):
5845         Likewise.
5846         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
5847         m32r_pass_by_reference.
5848
5849 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
5850
5851         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
5852         argument to be a VEC of statements.
5853         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
5854         assert that pattern statements have to have their vector type set.
5855         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
5856         Change the first argument to be a VEC of statements.  Update
5857         documentation.
5858         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
5859         (vect_handle_widen_mult_by_const): New function.
5860         (vect_recog_widen_mult_pattern):  Change the first argument to be a
5861         VEC of statements.  Update documentation.  Check that the constant is
5862         INTEGER_CST.  Support multiplication by a constant that fits an
5863         intermediate type - call vect_handle_widen_mult_by_const.
5864         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
5865         call.  Handle additional pattern statements if necessary.
5866
5867 2011-06-16  Nick Clifton  <nickc@redhat.com>
5868
5869         PR target/49427
5870         * config.gcc: Set cpu_type to v850 for any V850 architecture.
5871         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
5872         md_file, extra_modes, out_file and extra_options are these are all
5873         deduced from cpu_type.
5874
5875 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
5876
5877         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
5878         truncation mask to 63.
5879
5880 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
5881
5882         PR target/49313
5883         PR target/29524
5884         * longlong.h: Add AVR support:
5885         (count_leading_zeros): New macro.
5886         (count_trailing_zeros): New macro.
5887         (COUNT_LEADING_ZEROS_0): New macro.
5888         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
5889         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
5890         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
5891         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
5892         (LIB2FUNCS_EXCLUDE): Add _clz.
5893         * config/avr/libgcc.S (XCALL): Move up in file.
5894         (XJMP): New C Macro.
5895         (DEFUN): New asm macro.
5896         (ENDF): New asm macro.
5897         (__ffssi2): New function.
5898         (__ffshi2): New function.
5899         (__loop_ffsqi2): New function.
5900         (__ctzsi2): New function.
5901         (__ctzhi2): New function.
5902         (__clzdi2): New function.
5903         (__clzsi2): New function.
5904         (__clzhi2): New function.
5905         (__paritydi2): New function.
5906         (__paritysi2): New function.
5907         (__parityhi2): New function.
5908         (__parityqi2): New function.
5909         (__popcounthi2): New function.
5910         (__popcountsi2): New function.
5911         (__popcountdi2): New function.
5912         (__popcountqi2): New function.
5913         (__bswapsi2): New function.
5914         (__bswapdi2): New function.
5915         (__ashldi3): New function.
5916         (__ashrdi3): New function.
5917         (__lshrdi3): New function.
5918         Fix suspicous lines.
5919
5920 2011-06-16  Richard Guenther  <rguenther@suse.de>
5921
5922         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
5923         the same as x != 0.
5924         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
5925         to (bool) X & 1.
5926         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
5927         equality compares against zero for the lower bit.
5928
5929 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
5930
5931         PR tree-optimization/49419
5932         * tree-vrp.c (execute_vrp): Call init_range_assertions
5933         before estimate_numbers_of_iterations, call
5934         free_number_of_iterations_estimates before calling
5935         remove_range_assertions.
5936
5937 2011-06-16  Revital Eres  <revital.eres@linaro.org>
5938
5939         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
5940         (struct partial_schedule): Add rows_length field.
5941         (verify_partial_schedule): Check rows_length.
5942         (ps_insert_empty_row): Handle rows_length.
5943         (create_partial_schedule): Likewise.
5944         (free_partial_schedule): Likewise.
5945         (reset_partial_schedule): Likewise.
5946         (create_ps_insn): Remove rest_count argument.
5947         (remove_node_from_ps): Update rows_length.
5948         (add_node_to_ps): Update rows_length and call create_ps_insn
5949         without passing row_rest_count.
5950         (rotate_partial_schedule): Update rows_length.
5951
5952 2011-06-16  Revital Eres  <revital.eres@linaro.org>
5953
5954         * ddg.c (add_intra_loop_mem_dep): New function.
5955         (build_intra_loop_deps): Call it.
5956
5957 2011-06-13  Jeff Law  <law@redhat.com>
5958
5959         * df-problems.c (df_lr_local_compute): Manually CSE
5960         PIC_OFFSET_TABLE_REGNUM.
5961         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
5962         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
5963
5964 2011-06-13  Jan Hubicka  <jh@suse.cz>
5965
5966         * cgraphunit.c (handle_alias_pairs): New function.
5967         (cgraph_finalize_compilation_unit): Use it.
5968         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
5969         as externally visible.
5970
5971 2011-06-15  Richard Guenther  <rguenther@suse.de>
5972
5973         * expr.c (expand_expr_real_2): Reduce all integral types to
5974         bitfield precision.
5975         (expand_expr_real_1): Likewise.
5976
5977 2011-06-15  Martin Jambor  <mjambor@suse.cz>
5978
5979         PR tree-optimization/48613
5980         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
5981         ipa_node_params_vector is NULL.
5982
5983 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
5984
5985         PR debug/49382
5986         * dwarf2out.c (dw_loc_list_node): Add force field.
5987         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
5988         location in the list, even if it is modified before first real insn.
5989         (output_loc_list): Emit empty ranges with force flag set.
5990         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
5991
5992 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
5993
5994         PR target/49349
5995         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
5996         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
5997         above a fence.  Update comments.
5998         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
5999         placed just above it.  Do not allow NULL place_to_insert.
6000
6001 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
6002
6003         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
6004         (slpeel_tree_peel_loop_to_edge): Don't call
6005         remove_dead_stmts_from_loop.
6006         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
6007         remove irrelevant pattern statements.  For irrelevant statements
6008         check if it is the last statement of a detected pattern, use
6009         corresponding pattern statement instead.
6010         (destroy_loop_vec_info): No need to remove pattern statements,
6011         only free stmt_vec_info.
6012         (vect_transform_loop): For irrelevant statements check if it is
6013         the last statement of a detected pattern, use corresponding
6014         pattern statement instead.
6015         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
6016         pattern statements.  Set basic block for the new statement.
6017         (vect_pattern_recog): Update documentation.
6018         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
6019         operands of pattern statements.
6020         (vectorizable_call): Fix printing.  In case of a pattern statement
6021         use the lhs of the original statement when creating a dummy
6022         statement to replace the original call.
6023         (vect_analyze_stmt): For irrelevant statements check if it is
6024         the last statement of a detected pattern, use corresponding
6025         pattern statement instead.
6026         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
6027         statements use gsi of the original statement.
6028
6029 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
6030
6031         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
6032         common/common-target-def.h.
6033         * target.def (default_target_flags, handle_option,
6034         supports_split_stack, optimization_table, init_struct,
6035         except_unwind_info, unwind_tables_default, have_named_sections):
6036         Move to common/common-target.def.
6037         * target.h (enum opt_levels, struct default_options): Move to
6038         common/common-target.h.
6039         * targhooks.c (default_except_unwind_info,
6040         dwarf2_except_unwind_info, sjlj_except_unwind_info,
6041         default_target_handle_option, empty_optimization_table): Move to
6042         common/common-targhooks.c.
6043         * targhooks.h (default_except_unwind_info,
6044         dwarf2_except_unwind_info, sjlj_except_unwind_info,
6045         default_target_handle_option, empty_optimization_table): Move to
6046         common/common-targhooks.h.
6047         * common/common-target-def.h: Include common/common-targhooks.h.
6048         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
6049         defined.
6050         * common/common-target.def (handle_option, option_init_struct,
6051         option_optimization_table, default_target_flags,
6052         except_unwind_info, supports_split_stack, unwind_tables_default,
6053         have_named_sections): Move from target.def.
6054         (HOOK_PREFIX): Undefine at end of file.
6055         * common/common-target.h: Include input.h.
6056         (enum opt_levels, struct default_options): Move from target.h.
6057         * common/common-targhooks.c, common/common-targhooks.h: New.
6058         * config.gcc (target_has_targetm_common): Default to yes.
6059         (moxie*): Set target_has_targetm_common=no.
6060         (hppa*-*-*): Don't set target_has_targetm_common=yes.
6061         * doc/tm.texi: Regenerate.
6062         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
6063         (C_TARGET_DEF_H): Add common/common-targhooks.h.
6064         (GCC_OBJS): Remove vec.o.
6065         (OBJS): Remove hooks.o and vec.o.
6066         (OBJS-libcommon-target): Add vec.o, hooks.o and
6067         common/common-targhooks.o.
6068         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
6069         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
6070         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
6071         cfglayout.o, $(out_object_file), $(common_out_object_file)):
6072         Update dependencies.
6073         (common/common-targhooks.o): New.
6074         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
6075         * common/config/pa/pa-common.c: Include more headers.  Take
6076         copyright dates from pa.c.
6077         (pa_option_optimization_table, pa_handle_option,
6078         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
6079         TARGET_HANDLE_OPTION): Move from pa.c.
6080         * common/config/alpha/alpha-common.c,
6081         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
6082         common/config/bfin/bfin-common.c,
6083         common/config/cris/cris-common.c,
6084         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
6085         common/config/h8300/h8300-common.c,
6086         common/config/i386/i386-common.c,
6087         common/config/ia64/ia64-common.c,
6088         common/config/iq2000/iq2000-common.c,
6089         common/config/lm32/lm32-common.c,
6090         common/config/m32c/m32c-common.c,
6091         common/config/m32r/m32r-common.c,
6092         common/config/m68k/m68k-common.c,
6093         common/config/mcore/mcore-common.c,
6094         common/config/mep/mep-common.c,
6095         common/config/microblaze/microblaze-common.c,
6096         common/config/mips/mips-common.c,
6097         common/config/mmix/mmix-common.c,
6098         common/config/mn10300/mn10300-common.c,
6099         common/config/pdp11/pdp11-common.c,
6100         common/config/picochip/picochip-common.c,
6101         common/config/rs6000/rs6000-common.c,
6102         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
6103         common/config/score/score-common.c, common/config/sh/sh-common.c,
6104         common/config/sparc/sparc-common.c,
6105         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
6106         common/config/vax/vax-common.c,
6107         common/config/xstormy16/xstormy16-common.c,
6108         common/config/xtensa/xtensa-common.c: New.
6109         * config/alpha/alpha.c: Include common/common-target.h.
6110         (alpha_option_optimization_table, alpha_handle_option,
6111         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6112         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
6113         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
6114         * config/arm/arm.c (arm_option_optimization_table,
6115         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
6116         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
6117         arm-common.c.
6118         * config/avr/avr.c (avr_option_optimization_table,
6119         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
6120         to avr-common.c.
6121         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
6122         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
6123         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
6124         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
6125         * config/cris/cris.c (cris_option_optimization_table,
6126         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6127         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
6128         cris-common.c.
6129         * config/fr30/fr30.c (fr30_option_optimization_table,
6130         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
6131         to fr30-common.c.
6132         * config/frv/frv.c (frv_option_optimization_table,
6133         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
6134         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
6135         * config/h8300/h8300.c (h8300_option_optimization_table,
6136         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
6137         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
6138         * config/i386/i386-protos.h (ix86_handle_option): Declare.
6139         * config/i386/i386.c: Include common/common-target.h.
6140         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
6141         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
6142         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
6143         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
6144         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
6145         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
6146         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
6147         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
6148         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
6149         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
6150         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
6151         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
6152         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
6153         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
6154         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
6155         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
6156         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
6157         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
6158         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
6159         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
6160         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
6161         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
6162         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
6163         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
6164         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
6165         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
6166         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
6167         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
6168         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
6169         ix86_option_optimization_table, ix86_option_init_struct,
6170         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
6171         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
6172         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
6173         i386-common.c.
6174         * config/i386/t-i386 (i386.o): Update dependencies.
6175         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
6176         * config/ia64/ia64.c (ia64_option_optimization_table,
6177         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
6178         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6179         ia64_handle_option): Move to ia64-common.c.
6180         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
6181         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
6182         * config/lm32/lm32.c (lm32_option_optimization_table,
6183         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
6184         to lm32-common.c.
6185         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
6186         m32c-common.c.
6187         * config/m32r/m32r.c (m32r_option_optimization_table,
6188         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6189         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
6190         m32r_handle_option): Move to m32r-common.c.
6191         (m32r_memory_move_cost): Remove comment referring to
6192         TARGET_HANDLE_OPTION.
6193         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
6194         Move to m68k-common.c.
6195         * config/mcore/mcore.c (mcore_option_optimization_table,
6196         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
6197         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
6198         * config/mep/mep.c (mep_option_optimization_table,
6199         mep_handle_option, TARGET_HANDLE_OPTION,
6200         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
6201         Move to mep-common.c.
6202         * config/microblaze/microblaze.c
6203         (microblaze_option_optimization_table,
6204         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
6205         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
6206         * config/mips/mips.c (mips_handle_option,
6207         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
6208         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
6209         mips-common.c.
6210         * config/mmix/mmix.c (mmix_option_optimization_table,
6211         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
6212         Move to mmix-common.c.
6213         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
6214         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
6215         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6216         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
6217         * config/pa/pa.c: Include common/common-target.h.
6218         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
6219         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6220         pa_handle_option): Move to pa-common.c.
6221         (pa_option_override): Use targetm_common.except_unwind_info.
6222         (pa_asm_output_mi_thunk, pa_function_section): Use
6223         targetm_common.have_named_sections.
6224         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
6225         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6226         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
6227         pdp11_handle_option, pdp11_option_init_struct): Move to
6228         pdp11-common.c.
6229         * config/picochip/picochip.c (picochip_option_optimization_table,
6230         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
6231         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
6232         * config/rs6000/rs6000.c: Include common/common-target.h.
6233         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
6234         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
6235         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
6236         rs6000_handle_option): Move to rs6000-common.c.
6237         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
6238         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
6239         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
6240         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
6241         * config/s390/s390.c (processor_flags_table,
6242         s390_option_optimization_table, s390_option_init_struct,
6243         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
6244         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
6245         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
6246         * config/s390/s390.h (processor_flags_table): Declare.
6247         * config/score/score.c (score_option_optimization_table,
6248         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6249         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
6250         score_handle_option): Move to score-common.c.
6251         * config/sh/sh.c (sh_option_optimization_table,
6252         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
6253         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6254         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
6255         * config/sparc/sparc.c: Include common/common-target.h.
6256         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
6257         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
6258         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
6259         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
6260         spu_option_init_struct): Move to spu-common.c.
6261         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
6262         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
6263         * config/v850/v850.c (small_memory_physical_max,
6264         v850_handle_memory_optionn v850_handle_option,
6265         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
6266         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
6267         v850-common.c.
6268         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
6269         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
6270         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
6271         Move to xtensa-common.c.
6272         * cfglayout.c: Include common/common-target.h.
6273         (fixup_reorder_chain): Use targetm_common.have_named_sections.
6274         * cfgrtl.c: Include common/common-target.h.
6275         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
6276         targetm_common.have_named_sections.
6277         * dbxout.c: Include common/common-target.h.
6278         (dbxout_function_end): Use targetm_common.have_named_sections.
6279         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
6280         targetm_common.except_unwind_info.
6281         * dwarf2out.c: Include common/common-target.h.
6282         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
6283         dwarf2out_begin_prologue, dwarf2out_frame_init,
6284         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
6285         targetm_common.except_unwind_info.
6286         * except.c: Include common/common-target.h.
6287         (init_eh, finish_eh_generation,
6288         output_one_function_exception_table): Use
6289         targetm_common.except_unwind_info.
6290         (switch_to_exception_section): Use targetm_common.have_named_sections.
6291         * explow.c: Include common/common-target.h.
6292         * expr.c: Include common/common-target.h.
6293         (build_personality_function): Use targetm_common.except_unwind_info.
6294         * function.c: Include common/common-target.h.
6295         (expand_function_end): Use targetm_common.except_unwind_info.
6296         * haifa-sched.c: Include common/common-target.h.
6297         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
6298         * lto-opts.c: Include common/common-target.h instead of target.h.
6299         (lto_reissue_options): Use targetm_common.handle_option.
6300         * opts.c: Include common/common-target.h.
6301         (target_handle_option): Use targetm_common.handle_option.
6302         (init_options_struct): Update comment referring to
6303         targetm.target_option.optimization.  Use
6304         targetm_common.default_target_flags,
6305         targetm_common.unwind_tables_default and
6306         targetm_common.option_init_struct.
6307         (default_options_optimization): Use
6308         targetm_common.option_optimization_table.
6309         (finish_options): Use targetm_common.except_unwind_info,
6310         targetm_common.unwind_tables_default,
6311         targetm_common.have_named_sections and
6312         targetm_common.supports_split_stack.
6313         * toplev.c: Include common/common-target.h.
6314         (process_options): Use targetm_common.have_named_sections.
6315         * tree-tailcall.c: Include common/common-target.h.
6316         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
6317         * tree.c: Include common/common-target.h.
6318         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
6319         * varasm.c: Include common/common-target.h.
6320         (resolve_unique_section, hot_function_section,
6321         default_function_section): Use targetm_common.have_named_sections.
6322
6323 2011-06-14  Easwaran Raman  <eraman@google.com>
6324
6325         PR rtl-optimization/44194
6326         * dse.c: Include tree-flow.h
6327         (insn_info): Add new field non_frame_wild_read.
6328         (group_info): Add new fields escaped_n and escaped_p.
6329         (kill_on_calls): New variable.
6330         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
6331         (dse_step0): Initialize kill_on_calls.
6332         (can_escape): New function.
6333         (set_usage_bits): Add additional parameter; record information
6334         about escaped locations.
6335         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
6336         (dse_step2_nospill): Set kill_on_calls based on
6337         group->escaped_n and group->escaped_n.
6338         (add_wild_read): Refactor into...
6339         (reset_active_stores): ... New function, and
6340         (free_read_records): ... New function.
6341         (add_non_frame_wild_read): New function.
6342         (scan_insn): Call add_non_frame_wild_read on non-const calls.
6343         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
6344         (dse_step5_nospill): Call scan_reads_nospill for instructions
6345         marked as non_frame_wild_read.
6346         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
6347
6348 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
6349
6350         * common/common-target-def.h, common/common-target.def,
6351         common/common-target.h, common/config/default-common.c,
6352         common/config/pa/pa-common.c: New files.
6353         * Makefile.in (common_out_file, common_out_object_file,
6354         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
6355         (OBJS-libcommon-target): Include $(common_out_object_file).
6356         (prefix.o): Update dependencies.
6357         ($(common_out_object_file), common/common-target-hooks-def.h,
6358         s-common-target-hooks-def-h): New.
6359         (s-tm-texi): Also check timestamp on common-target.def.
6360         (build/genhooks.o): Update dependencies.
6361         * config.gcc (common_out_file, target_has_targetm_common): Define.
6362         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
6363         TARGET_ALWAYS_STRIP_DOTDOT.
6364         * configure.ac (common_out_object_file): Define.
6365         (common_out_file, common_out_object_file): Substitute.
6366         (common): Create directory.
6367         * configure: Regenerate.
6368         * doc/tm.texi.in (targetm_common): Document.
6369         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
6370         * doc/tm.texi: Regenerate.
6371         * genhooks.c (hook_array): Also include common/common-target.def.
6372         * prefix.c (tm.h): Don't include.
6373         (common/common-target.h): Include.
6374         (ALWAYS_STRIP_DOTDOT): Don't define.
6375         (update_path): Use targetm_common.always_strip_dotdot instead of
6376         ALWAYS_STRIP_DOTDOT.
6377         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
6378
6379 2011-06-14  David Li  <davidxl@google.com>
6380
6381         * passes.c (execute_function_todo): Remove TODO_dump_func.
6382         (execute_one_pass): Remove TODO_dump_func.
6383         (execute_function_dump): New function.
6384         * tree-vrp.c: Remove TODO_dump_func.
6385         * regrename.c: Remove TODO_dump_func.
6386         * fwprop.c: Remove TODO_dump_func.
6387         * tree-into-ssa.c: Remove TODO_dump_func.
6388         * tree-complex.c: Remove TODO_dump_func.
6389         * tracer.c: Remove TODO_dump_func.
6390         * tree-loop-distribution.c: Remove TODO_dump_func.
6391         * postreload-gcse.c: Remove TODO_dump_func.
6392         * postreload.c: Remove TODO_dump_func.
6393         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
6394         * tree-tailcall.c: Remove TODO_dump_func.
6395         * ipa-cp.c: Remove TODO_dump_func.
6396         * final.c: Remove TODO_dump_func.
6397         * tree-emutls.c: Remove TODO_dump_func.
6398         * omp-low.c: Remove TODO_dump_func.
6399         * tree-ssa-dse.c: Remove TODO_dump_func.
6400         * tree-ssa-uncprop.c: Remove TODO_dump_func.
6401         * auto-inc-dec.c: Remove TODO_dump_func.
6402         * reorg.c: Remove TODO_dump_func.
6403         * tree-ssa-copyrename.c: Remove TODO_dump_func.
6404         * tree-ssa-ccp.c: Remove TODO_dump_func.
6405         * compare-elim.c: Remove TODO_dump_func.
6406         * mode-switching.c: Remove TODO_dump_func.
6407         * modulo-sched.c: Remove TODO_dump_func.
6408         * tree-call-cdce.c: Remove TODO_dump_func.
6409         * cse.c: Remove TODO_dump_func.
6410         * web.c: Remove TODO_dump_func.
6411         * tree-stdarg.c: Remove TODO_dump_func.
6412         * lto-streamer-out.c: Remove TODO_dump_func.
6413         * tree-ssa-math-opts.c: Remove TODO_dump_func.
6414         * tree-ssa-dom.c: Remove TODO_dump_func.
6415         * tree-nrv.c: Remove TODO_dump_func.
6416         * loop-init.c: Remove TODO_dump_func.
6417         * gimple-low.c: Remove TODO_dump_func.
6418         * ipa-inline.c: Remove TODO_dump_func.
6419         * tree-ssa-sink.c: Remove TODO_dump_func.
6420         * jump.c: Remove TODO_dump_func.
6421         * ifcvt.c: Remove TODO_dump_func.
6422         * tree-ssa-loop.c: Remove TODO_dump_func.
6423         * recog.c: Remove TODO_dump_func.
6424         * dse.c: Remove TODO_dump_func.
6425         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
6426         * matrix-reorg.c: Remove TODO_dump_func.
6427         * tree-eh.c: Remove TODO_dump_func.
6428         * regmove.c: Remove TODO_dump_func.
6429         * function.c: Remove TODO_dump_func.
6430         * tree-vectorizer.c: Remove TODO_dump_func.
6431         * ipa-split.c: Remove TODO_dump_func.
6432         * gcse.c: Remove TODO_dump_func.
6433         * tree-if-conv.c: Remove TODO_dump_func.
6434         * init-regs.c: Remove TODO_dump_func.
6435         * tree-ssa-phiopt.c: Remove TODO_dump_func.
6436         * implicit-zee.c: Remove TODO_dump_func.
6437         * lower-subreg.c: Remove TODO_dump_func.
6438         * bt-load.c: Remove TODO_dump_func.
6439         * tree-dfa.c: Remove TODO_dump_func.
6440         * except.c: Remove TODO_dump_func.
6441         * emit-rtl.c: Remove TODO_dump_func.
6442         * store-motion.c: Remove TODO_dump_func.
6443         * cfgexpand.c: Remove TODO_dump_func.
6444         * tree-cfgcleanup.c: Remove TODO_dump_func.
6445         * cfgcleanup.c: Remove TODO_dump_func.
6446         * tree-ssa-pre.c: Remove TODO_dump_func.
6447         * tree-sra.c: Remove TODO_dump_func.
6448         * tree-mudflap.c: Remove TODO_dump_func.
6449         * tree-ssa-copy.c: Remove TODO_dump_func.
6450         * cfglayout.c: Remove TODO_dump_func.
6451         * tree-ssa-forwprop.c: Remove TODO_dump_func.
6452         * tree-ssa-dce.c: Remove TODO_dump_func.
6453         * ira.c: Remove TODO_dump_func.
6454         * tree-ssa.c: Remove TODO_dump_func.
6455         * integrate.c: Remove TODO_dump_func.
6456         * tree-optimize.c: Remove TODO_dump_func.
6457         * tree-ssa-phiprop.c: Remove TODO_dump_func.
6458         * tree-object-size.c: Remove TODO_dump_func.
6459         * combine.c: Remove TODO_dump_func.
6460         * bb-reorder.c: Remove TODO_dump_func.
6461         * cprop.c: Remove TODO_dump_func.
6462         * var-tracking.c: Remove TODO_dump_func.
6463         * tree-profile.c: Remove TODO_dump_func.
6464         * tree-vect-generic.c: Remove TODO_dump_func.
6465         * reg-stack.c: Remove TODO_dump_func.
6466         * sched-rgn.c: Remove TODO_dump_func.
6467         * tree-ssa-structalias.c: Remove TODO_dump_func.
6468         * tree-switch-conversion.c: Remove TODO_dump_func.
6469         * tree-cfg.c: Remove TODO_dump_func.
6470         * tree-ssa-reassoc.c: Remove TODO_dump_func.
6471         * combine-stack-adj.c: Remove TODO_dump_func.
6472         * dce.c: Remove TODO_dump_func.
6473         * tree-ssanames.c: Remove TODO_dump_func.
6474         * regcprop.c: Remove TODO_dump_func.
6475
6476 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
6477
6478         PR middle-end/47364
6479         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
6480         and properly handle result not in Pmode.
6481
6482 2011-06-14  Robert Millan  <rmh@gnu.org>
6483
6484         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
6485         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
6486         `config/linux.h'.
6487
6488         * config/i386/kfreebsd-gnu64.h: New file.
6489         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
6490         with `i386/kfreebsd-gnu64.h'.
6491
6492         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
6493         (GNU_USER_LINK_EMULATION64): New macros.
6494         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
6495         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
6496         of hardcoding `elf_i386' and `elf_x86_64'.
6497
6498 2011-06-14  Nick Clifton  <nickc@redhat.com>
6499
6500         PR target/49403
6501         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
6502
6503         PR target/49402
6504         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
6505
6506 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
6507
6508         PR fortran/49103
6509         * tree.h (DECL_NONSHAREABLE): Define.
6510         (struct tree_decl_common): Change decl_common_unused to
6511         decl_nonshareable_flag.
6512         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
6513         Ignore vars with DECL_NONSHAREABLE bit set.
6514         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
6515         on stores to automatic aggregate vars.
6516
6517         PR rtl-optimization/49390
6518         Revert:
6519         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
6520
6521         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
6522         MEM_ALIAS_SET.
6523
6524 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
6525             Tom de Vries  <tom@codesourcery.com>
6526
6527         PR target/45098
6528         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
6529         Document changed semantics.
6530         (max_stmt_executions, max_stmt_executions_int): Declare.
6531         * tree-data-ref.c (estimated_loop_iterations)
6532         (estimated_loop_iterations_int): Move functions...
6533         * tree-ssa-loop-niter.c (estimated_loop_iterations)
6534         (estimated_loop_iterations_int): here.
6535         (record_estimate): Change nb_iterations_upper_bound and
6536         nb_iterations_estimate semantics.
6537         (max_stmt_executions, max_stmt_executions_int): New function.
6538         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
6539         (max_stmt_executions_tree): this.
6540         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
6541         estimated_loop_iterations_tree.
6542         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
6543         max_stmt_executions_int instead of estimated_loop_iterations_int.
6544         * predict.c (predict_loops): Idem.
6545         * tree-parloops.c (parallelize_loops): Idem.
6546         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
6547         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
6548         (init_omega_for_ddr_1): Idem.
6549         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
6550         (loop_prefetch_arrays): Idem
6551         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
6552         max_stmt_executions instead of estimated_loop_iterations.
6553         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
6554         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
6555         instead of nb_iterations_upper_bound.
6556
6557 2011-06-13  Jan Hubicka  <jh@suse.cz>
6558
6559         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
6560
6561 2011-06-14  Richard Henderson  <rth@redhat.com>
6562
6563         PR debug/48459
6564         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
6565         (based_loc_descr): Assert it's true.
6566         (compute_frame_pointer_to_fb_displacement): Set it, rather than
6567         aborting immediately.
6568
6569 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
6570             Mingfeng Wu  <mingfeng@faraday-tech.com>
6571
6572         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
6573
6574 2011-06-13  Jan Hubicka  <jh@suse.cz>
6575
6576         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
6577
6578 2011-06-13  Jan Hubicka  <jh@suse.cz>
6579
6580         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
6581         similarly to DECL_COMDAT.
6582         * cgraphunit.c (cgraph_analyze_function): Likewise.
6583         * ipa.c (function_and_variable_visibility): Likewise.
6584
6585 2011-06-13  Jan Hubicka  <jh@suse.cz>
6586
6587         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
6588         BINFO_VIRTUALS when streaming for ltrans unit.
6589
6590 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
6591
6592         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
6593         (movdi_internal64): Same.
6594
6595 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
6596
6597         PR target/44618
6598         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
6599         a set of similar patterns, where the MATCH_OPERAND for the function
6600         argument is replaced with individual references to hardware registers.
6601         (save_fpregs_<mode>): Ditto
6602         (restore_gpregs_<mode>): Ditto
6603         (return_and_restore_gpregs_<mode>): Ditto
6604         (return_and_restore_fpregs_<mode>): Ditto
6605         (return_and_restore_fpregs_aix_<mode>): Ditto
6606
6607 2011-06-13  Jan Hubicka  <jh@suse.cz>
6608
6609         * ipa-utils.c (postorder_stack): New structure.
6610         (ipa_reverse_postorder): Handle aliases.
6611
6612 2011-06-13  Jan Hubicka  <jh@suse.cz>
6613
6614         * ipa-inline.c (reset_edge_caches): Walk aliases.
6615         (update_caller_keys): Do not test inlinability of aliases.
6616         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
6617         (do_estimate_growth): Fix typo.
6618
6619 2011-06-13  Jan Hubicka  <jh@suse.cz>
6620
6621         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
6622         (can_remove_node_now_p): ... here; handle same comdat groups.
6623         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
6624         (inline_call): Update use of can_remove_node_now_p.
6625
6626 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
6627
6628         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
6629         condition to disallow non-identical memory locations.
6630         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
6631         preference to bit manipulation instructions.
6632
6633 2011-06-13  Jan Hubicka  <jh@suse.cz>
6634
6635         * cgraph.c (cgraph_for_node_thunks_and_aliases,
6636         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
6637         (nonremovable_p): New function.
6638         (cgraph_can_remove_if_no_direct_calls_p): New function.
6639         (used_from_object_file_p): New functoin.
6640         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
6641         references from aliases.
6642         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
6643         * ipa-inline.c (check_caller_edge): New function.
6644         (want_inline_function_called_once_p): Use it; accept aliases called
6645         once, too.
6646         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
6647
6648 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6649
6650         PR target/48454
6651         * config/arm/neon.md (vec_pack_trunc): Set the lengths
6652         correctly for the case with Quad vectors.
6653
6654 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
6655            Ira Rosen  <ira.rosen@linaro.org>
6656
6657         PR tree-optimization/49352
6658         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
6659         all, make sure loop_use_stmt after the loop is a def stmt of a used
6660         SSA_NAME that is the only one defined inside of the loop.  Don't
6661         check for COND_EXPR and GIMPLE_BINARY_RHS.
6662         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
6663         check_reduction is true.
6664
6665 2011-06-11  Jan Hubicka  <jh@suse.cz>
6666
6667         PR middle-end/49373
6668         * ipa.c (cgraph_externally_visible_p): Check resolution info.
6669
6670 2011-06-11  Jan Hubicka  <jh@suse.cz>
6671
6672         PR middle-end/48836
6673         * ipa-inline-transform.c: Include tree-pass.h
6674         (inline_transform): Set TODO_update_ssa_only_virtuals.
6675         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
6676
6677 2011-06-11  Jan Hubicka  <jh@suse.cz>
6678
6679         PR middle-end/49378
6680         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
6681         aliases and thunks.
6682
6683 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
6684
6685         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
6686         Take number of iterations to peel into account for equally frequent
6687         misalignment values.
6688
6689 2011-06-11  Jan Hubicka  <jh@suse.cz>
6690
6691         * lto-streamer-out.c (produce_symtab): Stream out the newly
6692         represented aliases.
6693
6694 2011-06-11  Jan Hubicka  <jh@suse.cz>
6695
6696         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
6697         varying args.
6698         (ipa_update_after_lto_read): Likewise.
6699         (ipa_write_node_info): Do not sream call_with_var_arguments.
6700         (ipa_read_node_info): Likewise.
6701
6702 2011-06-11  Jan Hubicka  <jh@suse.cz>
6703
6704         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
6705
6706 2011-06-11  Jan Hubicka  <jh@suse.cz>
6707
6708         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
6709         (lto_symtab_resolve_can_prevail_p): Likewise.
6710         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
6711         * cgraph.c (same_body_aliases_done): New global var.
6712         (cgraph_same_body_alias_1): Rename to ...
6713         (cgraph_create_function_alias): ... this one; reorg to new
6714         representation.
6715         (cgraph_same_body_alias): Use cgraph_create_function_alias;
6716         record references when asked to.
6717         (cgraph_add_thunk): Fix formating.
6718         (cgraph_get_node): Kill same body alias code.
6719         (cgraph_node_for_asm): Likewise.
6720         (cgraph_remove_same_body_alias): Remove.
6721         (cgraph_remove_node): Kill same body alias code.
6722         (cgraph_mark_address_taken_node): Mark also the aliased function
6723         as having address taken.
6724         (dump_cgraph_node): Dump same body aliases.
6725         (cgraph_for_node_thunks_and_aliases): Update for new alias
6726         representation.
6727         (cgraph_for_node_and_aliases): Likewise.
6728         * cgraph.h (same_body): Kll pointer.
6729         (same_body_alias): Update comment.
6730         (same_body_aliases_done): Declare.
6731         (cgraph_remove_same_body_alias): Remove declaration.
6732         (cgraph_create_function_alias): Declare.
6733         (cgraph_process_same_body_aliases): Declare.
6734         (cgraph_function_with_gimple_body_p): Check for alias.
6735         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
6736         (cgraph_alias_aliased_node): New function.
6737         (cgraph_function_node): Update for new aliases.
6738         (cgraph_function_or_thunk_node): Likewise.
6739         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
6740         (inline_call): Remove dead aliases.
6741         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
6742         name hack for same body aliases.
6743         (clone_of_p): Look through aliases.
6744         (verify_cgraph_node): Verify aliases.
6745         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
6746         (cgraph_process_same_body_aliases): New function.
6747         (process_function_and_variable_attributes): Disable weakref warning on
6748         alias.
6749         (cgraph_analyze_functions): Handle aliases.
6750         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
6751         (assemble_thunks): Rename to ...
6752         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
6753         (cgraph_expand_function): Remove alias output code.
6754         (cgraph_output_in_order): Skip aliases.
6755         (cgraph_preserve_function_body_p): Aliases don't need preserving.
6756         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
6757         (ipa_record_reference): Do not assert on alias references.
6758         (ipa_ref_has_aliases_p): New function.
6759         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
6760         (ipa_ref_has_aliases_p): Declare.
6761         * lto-cgraph.c (lto_output_node): Handle aliases.
6762         (input_node): Likewise.
6763         * lto-streamer-out.c (lto_output): Skip aliases.
6764         (produce_symtab): Kill same_body_alias code.
6765         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
6766         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
6767         * ipa-inline.c (update_caller_keys): Walk aliases.
6768         (inline_small_functions): Fix thinko in previous patch.
6769         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
6770         (function_and_variable_visibility): Do not walk same body aliases.
6771         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
6772         (ipa_pta_execute): Use it.
6773
6774 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
6775
6776         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
6777         (*vec_dupv2df): Rename from vec_dupv2df.
6778         (vec_dupv2df): New expander.
6779
6780 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
6781
6782         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
6783
6784 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
6785
6786         * config/i386/i386.md: Use default value in "isa" attribute.
6787         * config/i386/sse.md: Ditto.
6788         * config/i386/mmx.md: Ditto.
6789
6790 2011-06-10  Wei Guozhi  <carrot@google.com>
6791
6792         PR target/45335
6793         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
6794         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
6795         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
6796         related peephole2.
6797         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
6798         related peephole2.
6799         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
6800         (arm_legitimate_ldrd_p): New prototype.
6801         (arm_output_ldrd): New prototype.
6802         * config/arm/arm.c (arm_check_ldrd_operands): New function.
6803         (arm_legitimate_ldrd_p): New function.
6804         (arm_output_ldrd): New function.
6805
6806 2011-06-10  David Li  <davidxl@google.com>
6807
6808         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
6809         * passes.c (passr_eq): New function.
6810         (create_pass_tab): New function.
6811         (pass_traverse): New function.
6812         (dump_one_pass): New function.
6813         (dump_pass_list): New function.
6814         (dump_passes): New function.
6815
6816 2011-06-10  Jan Hubicka  <jh@suse.cz>
6817
6818         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
6819         setting the nothrow flag.
6820         * ipa-reference.c (propagate): Skip aliases.
6821         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
6822         (propagate_nothrow): Skip aliases; do not update cgraph.
6823         (local_pure_const): Do not update cgraph.
6824         * tree-profile.c (tree_profiling): Do fixup_cfg.
6825
6826 2011-06-10  Jan Hubicka  <jh@suse.cz>
6827
6828         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
6829         (cgraph_local_node_p): ... here; handle aliases.
6830         (has_addr_references_p): Break out from ...;
6831         (cgraph_remove_unreachable_nodes) ... here.
6832
6833 2011-06-10  Jan Hubicka  <jh@suse.cz>
6834
6835         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
6836         * common.opt (flag_inline_functions_called_once): Do not
6837         initialize to 1.
6838
6839 2011-06-10  Jan Hubicka  <jh@suse.cz>
6840
6841         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
6842         (ipcp_initialize_node_lattices): Do not deal with aliases;
6843         Do not try to propagate through thunks.
6844         (ipcp_change_tops_to_bottom): Do not deal with aliases.
6845
6846 2011-06-10  Jan Hubicka  <jh@suse.cz>
6847
6848         * ipa-prop.c (ipa_write_node_info): Stream jump functions
6849         for indirect calls.
6850         (ipa_read_node_info): Likewise.
6851
6852 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6853
6854         PR lto/49302
6855         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
6856         (build_and_insert_call): Likewise.
6857         (build_and_insert_ref): New.
6858         (gimple_expand_builtin_pow): Minor cleanup.
6859         (gimple_expand_builtin_cabs): New.
6860         (execute_cse_sincos): Add case for BUILT_IN_CABS.
6861
6862 2011-06-10  Jan Hubicka  <jh@suse.cz>
6863
6864         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
6865         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
6866         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
6867         (ipcp_propagate_stage): Skip aliases when propagating.
6868         (ipcp_need_redirect_p): Skip aliases.
6869         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
6870         collect_callers_of_node.
6871         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
6872         for aliases.
6873         (ipa_compute_jump_functions): Look through aliases.
6874
6875 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6876
6877         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
6878
6879 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
6880
6881         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
6882         Adjust comments.
6883         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
6884
6885 2011-06-10  Jan Hubicka  <jh@suse.cz>
6886
6887         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
6888         Update call of gimple_get_virt_method_for_binfo.
6889         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
6890         refuse_thunks parameter.
6891         (gimple_fold_call): Update.
6892         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
6893
6894 2011-06-10  Jan Hubicka  <jh@suse.cz>
6895
6896         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
6897         (not_all_callers_have_enough_arguments_p): ... this one; turn into
6898         worker for cgraph_for_node_and_aliases.
6899         (convert_callers_for_node): Break out from ...
6900         (convert_callers): ... here.
6901         (modify_function): Use collect_callers_of_node.
6902         (ipa_early_sra): Use cgraph_for_node_and_aliases.
6903
6904 2011-06-10  Richard Guenther  <rguenther@suse.de>
6905
6906         PR tree-optimization/49361
6907         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
6908         when not already in gimple form.
6909
6910 2011-06-10  Richard Guenther  <rguenther@suse.de>
6911
6912         PR bootstrap/49344
6913         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
6914         FOR_EACH_PHI_OR_STMT_USE.
6915
6916 2011-06-10  Jan Hubicka  <jh@suse.cz>
6917
6918         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
6919         (clone_inlined_nodes): ... here.
6920         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
6921         to real destination prior inlining.
6922         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
6923         can_early_inline_edge_p, want_early_inline_function_p,
6924         want_early_inline_function_p, want_inline_small_function_p,
6925         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
6926         edge_badness, update_all_callee_keys, lookup_recursive_calls,
6927         add_new_edges_to_heap, inline_small_functions, flatten_function,
6928         inline_always_inline_functions, early_inline_small_functions): Use
6929         cgraph_function_or_thunk_node.
6930         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
6931         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
6932         (do_estimate_edge_growth_1): Break out from ...
6933         (do_estimate_growth) ... here; walk aliases.
6934         (inline_generate_summary): Skip aliases.
6935
6936 2011-06-10  Richard Guenther  <rguenther@suse.de>
6937
6938         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
6939         forward when combining, visit inserted stmts when a stmt was changed.
6940
6941 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
6942
6943         * tree.h (error_operand_p): Add.
6944         * dbxout.c (dbxout_type_fields): Use the latter.
6945         * c-decl.c (add_stmt): Likewise.
6946         * gimplify.c (omp_add_variable, omp_notice_variable,
6947         gimplify_scan_omp_clauses): Likewise.
6948
6949 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
6950
6951         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
6952         when a value is actually passed in regs.
6953
6954 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
6955             Laurent Rougé  <laurent.rouge@menta.fr>
6956
6957         * doc/invoke.texi (SPARC options): Add -mflat.
6958         * config/sparc/sparc.opt: Likewise.
6959         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
6960         (sparc_flat_expand_prologue): Declare.
6961         (sparc_flat_expand_epilogue): Likewise.
6962         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
6963         (CPP_ENDIAN_SPEC): Replace with...
6964         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
6965         (CPP_SPEC): Adjust to above change.
6966         (EXTRA_SPECS): Likewise.
6967         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
6968         (INCOMING_REGNO): Likewise.
6969         (OUTGOING_REGNO): Likewise.
6970         (LOCAL_REGNO): Likewise.
6971         (SETUP_FRAME_ADDRESSES): Likewise.
6972         (FIXED_REGISTERS): Set 0 for %fp.
6973         (CALL_USED_REGISTERS): Likewise.
6974         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
6975         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
6976         (RETURN_ADDR_REGNUM): Define.
6977         (RETURN_ADDR_RTX): Use it.
6978         (INCOMING_RETURN_ADDR_REGNUM): Define.
6979         (INCOMING_RETURN_ADDR_RTX): Use it.
6980         (DWARF_FRAME_RETURN_COLUMN): Likewise.
6981         (EH_RETURN_REGNUM): Define.
6982         (EH_RETURN_STACKADJ_RTX): Use it.
6983         (EH_RETURN_HANDLER_RTX): Delete.
6984         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
6985         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
6986         Delete.
6987         (struct machine_function): Add frame_size, apparent_frame_size,
6988         frame_base_reg, frame_base_offset, n_global_fp_regs and
6989         save_local_in_regs_p fields.
6990         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
6991         sparc_frame_base_offset, sparc_n_global_fp_regs,
6992         sparc_save_local_in_regs_p): New macros.
6993         (sparc_option_override): Error out if -fcall-saved-REG is specified
6994         for Out registers.
6995         (eligible_for_restore_insn): Fix formatting.
6996         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
6997         (eligible_for_sibcall_delay): Likewise.
6998         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
6999         (sparc_legitimate_address_p): Adjust to above change.
7000         (save_global_or_fp_reg_p): New predicate.
7001         (return_addr_reg_needed_p): Likewise.
7002         (save_local_or_in_reg_p): Likewise.
7003         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
7004         (SORR_SAVE, SORR_RESTORE): Delete.
7005         (sorr_pred_t): New typedef.
7006         (sorr_act_t): New enum.
7007         (save_or_restore_regs): Rename to...
7008         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
7009         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
7010         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
7011         mechanism.  Add CFI information for double-word saves in 32-bit mode.
7012         (emit_adjust_base_to_offset): New function extracted from...
7013         (emit_save_or_restore_regs): ...this.  Rename the rest to...
7014         (emit_save_or_restore_regs_global_fp_regs): ...this.
7015         (emit_save_or_restore_regs_local_in_regs): New function.
7016         (gen_create_flat_frame_[123]): New functions.
7017         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
7018         (sparc_flat_expand_prologue): New function.
7019         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
7020         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
7021         (sparc_flat_expand_epilogue): New function.
7022         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
7023         (output_return): Likewise.
7024         (output_sibcall): Likewise.
7025         (sparc_output_mi_thunk): Likewise.
7026         (sparc_frame_pointer_required): Likewise.
7027         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
7028         function optimization.
7029         * config/sparc/sparc.md (flat): New attribute.
7030         (prologue): Add TARGET_FLAT handling.
7031         (save_register_window): Disable if TARGET_FLAT.
7032         (create_flat_frame_[123]): New patterns.
7033         (epilogue): Add TARGET_FLAT handling.
7034         (sibcall_epilogue): Likewise.
7035         (eh_return): New expander.
7036         (eh_return_internal): New insn and splitter.
7037         (return_internal): Add TARGET_FLAT handling.
7038         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
7039         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
7040         (nonlocal_goto): Add TARGET_FLAT handling.
7041         * config/sparc/t-elf: Add -mflat multilib.
7042         * config/sparc/t-leon: Likewise.
7043
7044 2011-06-10  Jan Hubicka  <jh@suse.cz>
7045
7046         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
7047         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
7048         (self_recursive_p): Use cgraph_function_node.
7049         (propagate_pure_const): Likewise.
7050         (propagate_nothrow): Likewise.
7051         * ipa-reference.c (ipa_reference_get_not_read_global): Use
7052         cgraph_function_node.
7053         (propagate_bits): Likewise.
7054         (propagate): Likewise.
7055
7056 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7057             Richard Earnshaw  <rearnsha@arm.com>
7058
7059         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
7060         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
7061         (*thumb2_movdi_vfp): Delete.
7062         (*arm_movdi_vfp_cortexa8): Delete.
7063         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
7064         (*movdi_vfp_cortexa8): Likewise.
7065
7066 2011-06-10  Richard Guenther  <rguenther@suse.de>
7067
7068         * stor-layout.c (initialize_sizetypes): Give names to all
7069         sizetype kinds.
7070
7071 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
7072
7073         PR tree-optimization/49318
7074         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
7075         irrelevant pattern statements.
7076
7077 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
7078
7079         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
7080
7081         PR bootstrap/49354
7082         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
7083         to last assignment.
7084
7085 2011-06-09  Jan Hubicka  <jh@suse.cz>
7086
7087         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
7088         do not recompute reachable flag.
7089         (cgraph_finalize_function, cgraph_analyze_functions): Set
7090         redefined_extern_inline here.
7091
7092 2011-06-09  Jan Hubicka  <jh@suse.cz>
7093
7094         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
7095         (cgraph_only_called_directly_p): ... this one; bring offline.
7096         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
7097         varpool_used_from_object_file_p): Drop names from the declaratoin.
7098         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
7099         collect_callers_of_node): New.
7100         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
7101         (cgraph_edge_recursive_p): Use cgraph_function_node.
7102         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
7103         (cgraph_node_cannot_be_local_p_1): Break out from ...
7104         (cgraph_node_can_be_local_p): ... here; walk aliases.
7105         (cgraph_for_node_thunks_and_aliases): New function.
7106         (cgraph_for_node_and_aliases): New function.
7107         (cgraph_make_node_local_1): Break out from ...
7108         (cgraph_make_node_local) ... here; use
7109         cgraph_for_node_thunks_and_aliases.
7110         (cgraph_set_nothrow_flag_1): Break out from ...
7111         (cgraph_set_nothrow_flag) ... here;
7112         use cgraph_for_node_thunks_and_aliases.
7113         (cgraph_set_const_flag_1): Break out from ...
7114         (cgraph_set_const_flag) ... here;
7115         use cgraph_for_node_thunks_and_aliases.
7116         (cgraph_set_pure_flag_1): Break out from ...
7117         (cgraph_set_pure_flag) ... here;
7118         use cgraph_for_node_thunks_and_aliases.
7119         (cgraph_propagate_frequency_1): Break out from ...
7120         (cgraph_propagate_frequency) ... here; use
7121         cgraph_for_node_thunks_and_aliases.
7122         (cgraph_used_from_object_file_p): Do not care about aliases.
7123         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
7124         New functions.
7125         (collect_callers_of_node_1, collect_callers_of_node): New functions.
7126
7127 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
7128
7129         PR rtl-optimization/49154
7130         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
7131         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
7132         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
7133         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
7134         * config/cris/cris.h (cris_register_move_cost): Remove
7135         !TARGET_V32 code.  Tweak comments.
7136
7137 2011-06-09  Jan Hubicka  <jh@suse.cz>
7138
7139         * cgraphbuild.c (record_eh_tables): Mark personality function as having
7140         address taken.
7141
7142 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
7143
7144         PR rtl-optimization/49154
7145         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
7146         is a matching slot in the hashtable, assign it to classes_ptr.
7147
7148         PR rtl-optimization/49154
7149         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
7150         register classes.
7151         * doc/tm.texi: Regenerate.
7152
7153 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
7154
7155         PR target/49307
7156         * config/sh/sh.md (UNSPEC_CHKADD): New.
7157         (chk_guard_add): New define_insn_and_split.
7158         (symGOT_load): Use chk_guard_add instead of blockage.
7159
7160 2011-06-09  Kai Tietz  <ktietz@redhat.com>
7161
7162         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
7163
7164 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
7165
7166         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
7167
7168 2011-06-09  Wei Guozhi  <carrot@google.com>
7169
7170         PR target/46975
7171         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
7172         (peephole2 for conditional move): Generate 16 bit instructions.
7173
7174 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
7175
7176         * config/i386/i386.md (*movdi_internal_rex64): Merge
7177         alternatives 6 and 8.
7178
7179 2011-06-09  David Li  <davidxl@google.com>
7180
7181         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
7182         * passes.c (passr_eq): New function.
7183         (create_pass_tab): New function.
7184         (pass_traverse): New function.
7185         (dump_one_pass): New function.
7186         (dump_pass_list): New function.
7187         (dump_passes): New function.
7188
7189 2011-06-09  David Li  <davidxl@google.com>
7190
7191         * tree-complex.c (tree_lower_complex): Gate cleanup.
7192         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
7193         (execute_optimize_stdarg): Ditto.
7194         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
7195         (execute_cleanup_eh_1): Ditto.
7196         (execute_cleanup_eh): Ditto.
7197         * gcse.c (gate_rtl_pre): Ditto.
7198         (execute_rtl_pre): Ditto.
7199         * except.c (finish_eh_generation): Ditto.
7200         (convert_to_eh_region_ranges): Ditto.
7201         * cprop.c (one_cprop_pass): Ditto.
7202
7203 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
7204
7205         PR target/48673
7206         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
7207         in all basic blocks.
7208
7209 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7210
7211         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
7212         (HAVE_ENABLE_EXECUTE_STACK): Define.
7213         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
7214         (HAVE_ENABLE_EXECUTE_STACK): Define.
7215         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
7216         (HAVE_ENABLE_EXECUTE_STACK): Define.
7217         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
7218         (ENABLE_EXECUTE_STACK): Remove.
7219         (HAVE_ENABLE_EXECUTE_STACK): Define.
7220         [IN_LIBGCC2]: Don't include <windows.h>.
7221         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
7222         (HAVE_ENABLE_EXECUTE_STACK): Define.
7223         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
7224         (HAVE_ENABLE_EXECUTE_STACK): Define.
7225         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
7226         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
7227         (HAVE_ENABLE_EXECUTE_STACK): Define.
7228         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
7229         (HAVE_ENABLE_EXECUTE_STACK): Define.
7230         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
7231         (HAVE_ENABLE_EXECUTE_STACK): Define.
7232         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
7233         (HAVE_ENABLE_EXECUTE_STACK): Define.
7234         * config/alpha/alpha.c (alpha_trampoline_init): Test
7235         HAVE_ENABLE_EXECUTE_STACK.
7236         * config/i386/i386.c (ix86_trampoline_init): Likewise.
7237         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
7238         (sparc64_initialize_trampoline): Likewise.
7239         * libgcc2.c [L_enable_execute_stack]: Remove.
7240         * system.h (ENABLE_EXECUTE_STACK): Poison.
7241         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
7242         * doc/tm.texi: Regenerate.
7243         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
7244
7245 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
7246
7247         PR middle-end/49308
7248         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
7249         variable.  After resetting and rescanning insn continue with previous
7250         statement.
7251
7252 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7253
7254         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
7255         (gcc_cv_ld_hidden): Likewise.
7256         * configure: Regenerate.
7257         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
7258         (ix86_stack_protect_fail): Mark unused.
7259         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
7260         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
7261         [TARGET_MACHO]: Don't define.
7262         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
7263         (TARGET_STACK_PROTECT_FAIL): Likewise.
7264         (rs6000_stack_protect_fail): Mark unused.
7265         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
7266         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
7267
7268 2011-06-08  Andi Kleen  <ak@linux.intel.com>
7269
7270         * varasm.c (get_section): Print location of other conflict
7271         for section conflicts.
7272
7273 2011-06-08  Andi Kleen  <ak@linux.intel.com>
7274
7275         * config/i386/driver-i386.c (host_detect_local_cpu):
7276         Add model 0x2d Intel CPU.
7277
7278 2011-06-08  Andi Kleen  <ak@linux.intel.com>
7279
7280         * reginfo.c (global_regs_decl): Add.
7281         (globalize_reg): Add decl parameter. Compute location.  Pass location
7282         to warnings and add inform. Store decl in global_regs_decl.
7283         * rtl.h (globalize_reg): Update prototype.
7284         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
7285
7286 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
7287
7288         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
7289
7290 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
7291
7292         PR target/49305
7293         * config/sh/predicates.md (general_movsrc_operand): Check
7294         mode for memory with indexed address for QI and HImode.
7295         (general_movdst_operand): Likewise.
7296
7297 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
7298
7299         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
7300
7301 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
7302
7303         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
7304         (num_ssa_operands): Likewise.
7305         (op_iter_init_phiuse): Forward-declare.
7306         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
7307
7308 2011-06-08  Nick Clifton  <nickc@redhat.com>
7309
7310         * doc/invoke.texi (ARM Options): Update description of
7311         -mthumb-interwork.
7312
7313 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
7314
7315         * config/i386/driver-i386.c (host_detect_local_cpu): Support
7316         unknown Intel family 0x6 CPUs.
7317
7318 2011-06-08  Martin Jambor  <mjambor@suse.cz>
7319
7320         * tree-sra.c (mark_rw_status): Removed.
7321         (analyze_access_subtree): New parameter parent instead of
7322         mark_read and mark_write, propagate from that.
7323
7324 2011-06-08  Julian Brown  <julian@codesourcery.com>
7325
7326         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
7327         for double-precision helper functions in hard-float mode if only
7328         single-precision arithmetic is supported in hardware.
7329
7330 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
7331
7332         PR rtl-optimization/49303
7333         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
7334         code_motion_path_driver returned 0 or 1.
7335         (sel_region_finish): Clear h_d_i_d.
7336
7337 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
7338
7339         * config/sh/sh.c (prepare_move_operands): Set pic register
7340         appropriately for global and local dynamic tls models even
7341         if flag_pic is unset.
7342
7343 2011-06-07  Jason Merrill  <jason@redhat.com>
7344
7345         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
7346
7347 2011-06-07  Xinliang David Li  <davidxl@google.com>
7348         * passes.c (enable_disable_pass): Handle assembler name.
7349         (is_pass_explicitly_enabled_or_disabled): Ditto.
7350
7351 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7352
7353         PR tree-optimization/48497
7354         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
7355
7356 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7357
7358         PR tree-optimization/46728
7359         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
7360         to use gimple_val_nonnegative_real_p.
7361         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
7362         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
7363
7364 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
7365
7366         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
7367
7368 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
7369
7370         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
7371         constant vectors.
7372
7373 2011-06-07  Richard Guenther  <rguenther@suse.de>
7374
7375         * stor-layout.c (initialize_sizetypes): Initialize all
7376         sizetypes based on target definitions.
7377         (set_sizetype): Remove.
7378         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
7379         * tree.h (set_sizetype): Remove.
7380
7381 2011-06-07  Nick Clifton  <nickc@redhat.com>
7382
7383         * config.gcc: Unify V850 architecture options and add support for
7384         newer V850 architectures.
7385         * config/v850/t-v850e: Delete.
7386
7387 2011-06-07  Richard Guenther  <rguenther@suse.de>
7388
7389         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
7390         Call set_sizetype from here.
7391
7392 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
7393
7394         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
7395         (*maddhisi4tb, *maddhisi4tt): New define_insns.
7396
7397 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
7398             Andrew Stubbs  <ams@codesourcery.com>
7399
7400         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
7401         multiplies.
7402         * doc/md.texi (Canonicalization of Instructions): Document widening
7403         multiply canonicalization.
7404
7405 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
7406
7407         PR gcov-profile/49299
7408         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
7409
7410 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
7411
7412         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
7413         a pointer.
7414         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
7415         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
7416         vect_recog_pow_pattern): Likewise.
7417         (vect_pattern_recog_1): Remove declaration.
7418         (widened_name_p): Remove declaration.  Add new argument to specify
7419         whether to check that both types are either signed or unsigned.
7420         (vect_recog_widen_mult_pattern): Update documentation.  Handle
7421         unsigned patterns and multiplication by constants.
7422         (vect_pattern_recog_1): Update vect_recog_func references.  Use
7423         statement information from the statement returned from pattern
7424         detection functions.
7425         (vect_pattern_recog): Update vect_recog_func reference.
7426         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
7427         multiplication by a constant use the type of the other operand.
7428
7429 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
7430
7431         PR rtl-optimization/49145
7432         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
7433
7434 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
7435
7436         PR debug/49262
7437         * dwarf2out.c (native_encode_initializer): Decrement count in each
7438         iteration.
7439
7440         PR debug/49294
7441         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
7442         non-MODE_INT modes.
7443
7444         PR c++/49264
7445         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
7446         if stmt folded into nothing.
7447         * tree-inline.c (fold_marked_statements): If a builtin at the end of
7448         a bb folded into nothing, just update cgraph edges and move to next bb.
7449         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
7450         to be NULL.  Don't compute count and frequency if new_call is NULL.
7451
7452 2011-06-04  Diego Novillo  <dnovillo@google.com>
7453
7454         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
7455         (cgraph.o): Likewise.
7456         (cgraphunit.o): Likewise.
7457         * cgraphunit.c: Include lto-streamer.h
7458         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
7459         if LTO is enabled.
7460         * lto-streamer-in.c (unpack_value_fields): Call
7461         streamer_hooks.unpack_value_fields if set.
7462         (lto_materialize_tree): For unhandled nodes, first try to
7463         call lto_streamer_hooks.alloc_tree, if it exists.
7464         (lto_input_ts_decl_common_tree_pointers): Move reading of
7465         DECL_INITIAL to lto_streamer_read_tree.
7466         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
7467         (lto_streamer_read_tree): New.
7468         (lto_reader_init): Rename from lto_init_reader.
7469         Move initialization code to lto/lto.c.
7470         * lto-streamer-out.c (pack_value_fields): Call
7471         streamer_hooks.pack_value_fields if set.
7472         (lto_output_tree_ref): For tree nodes that are not normally indexable,
7473         call streamer_hooks.indexable_with_decls_p before giving up.
7474         (lto_output_ts_decl_common_tree_pointers): Move handling
7475         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
7476         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
7477         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
7478         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
7479         (lto_streamer_write_tree): New.
7480         (lto_output): Call lto_streamer_init directly.
7481         (lto_writer_init): Remove.
7482         * lto-streamer.c (streamer_hooks): New.
7483         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
7484         instead of lto_preload_common_nodes.
7485         (lto_is_streamable): Move from lto-streamer.h
7486         (lto_streamer_hooks_init): New.
7487         (streamer_hooks): New.
7488         (streamer_hooks_init): New.
7489         * lto-streamer.h (struct output_block): Forward declare.
7490         (struct lto_input_block): Likewise.
7491         (struct data_in): Likewise.
7492         (struct bitpack_d): Likewise.
7493         (struct streamer_hooks): Declare.
7494         (streamer_hooks): Declare.
7495         (lto_streamer_hooks_init): Declare.
7496         (lto_streamer_write_tree): Declare.
7497         (lto_streamer_read_tree): Declare.
7498         (streamer_hooks_init): Declare.
7499         (lto_is_streamable): Move to lto-streamer.c
7500
7501 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7502
7503         * longlong.h (smul_ppmm): The resulting register pair contains the
7504         higher order word first.
7505
7506 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7507
7508         PR tree-optimization/46728
7509         * builtins.c (powi_table): Remove.
7510         (powi_lookup_cost): Remove.
7511         (powi_cost): Remove.
7512         (expand_powi_1): Remove.
7513         (expand_powi): Remove.
7514         (expand_builtin_pow_root): Remove.
7515         (expand_builtin_pow): Remove.
7516         (expand_builtin_powi): Eliminate handling of constant exponent.
7517         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
7518
7519 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
7520
7521         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
7522
7523 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
7524
7525         * dce.c (reset_unmarked_insns_debug_uses): New.
7526         (delete_unmarked_insns): Skip debug insns.
7527         (prescan_insns_for_dce): Likewise.
7528         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
7529         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
7530         active reg can be found.
7531         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
7532         (convert_regs_1): Use it.
7533
7534 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
7535
7536         * tree-pretty-print.c (dump_function_header): Add flags.
7537         Don't dump decl_uid with nouid.
7538         * tree-pretty-print.h (dump_function_header): Adjust.
7539         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
7540         * passes.c (pass_init_dump_file): Pass dump_flags on.
7541         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
7542
7543 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
7544
7545         PR bootstrap/49270
7546         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
7547
7548 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
7549
7550         PR tree-optimization/49243
7551         * calls.c (setjmp_call_p): Also check if fndecl has the
7552         returns_twice attribute.
7553
7554 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7555
7556         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
7557         -ffast-math etc.
7558
7559 2011-06-06  Richard Henderson  <rth@redhat.com>
7560             Georg-Johann Lay  <avr@gjlay.de>
7561
7562         PR target/42210
7563         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
7564         New predicates.
7565         * config/avr/avr.md ("insv"): New insn expander.
7566         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
7567         "*insv.not.io", "*insv.reg"): New insns.
7568
7569 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
7570
7571         PR target/49285
7572         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
7573         to nonimmediate_operand from memory_operand for the operand that is to
7574         be forced to memory by the expander.  Lose the constraints.
7575
7576 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
7577
7578         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
7579         EH return when delayed branches are disabled.
7580
7581 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
7582
7583         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
7584         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
7585         calculation.
7586         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
7587         Simplify MODE_V1DF and MODE_V2SF handling.
7588         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
7589         Simplify MODE_SF handling.
7590
7591 2011-06-04  Jan Hubicka  <jh@suse.cz>
7592
7593         PR tree-optimization/48893
7594         PR tree-optimization/49091
7595         PR tree-optimization/49179
7596         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
7597         Bounds check.
7598
7599 2011-06-04  Jan Hubicka  <jh@suse.cz>
7600
7601         PR lto/48954
7602         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
7603         bitmaps.
7604
7605 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
7606
7607         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
7608
7609 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
7610
7611         PR target/49281
7612         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
7613         to be strictly smaller than 1 << shiftcount.
7614
7615 2011-06-04  Jan Hubicka  <jh@suse.cz>
7616
7617         PR tree-optimize/48929
7618         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
7619         of empty predicate.
7620
7621 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
7622
7623         PR debug/48333
7624         * calls.c (emit_call_1): Prefer the __builtin declaration of
7625         builtin functions.
7626
7627 2011-06-03   Diego Novillo  <dnovillo@google.com>
7628
7629         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
7630         (lto_input_tree_pointers): Likewise.
7631         * lto-streamer-out.c (pack_value_fields): Likewise.
7632         (lto_output_tree_pointers): Likewise.
7633         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
7634         and OPTIMIZATION_NODE.
7635
7636 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7637
7638         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
7639         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
7640         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
7641         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
7642         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
7643         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
7644         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
7645         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
7646         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
7647         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
7648         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
7649         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
7650         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
7651         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
7652         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
7653         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
7654         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
7655         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
7656         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
7657         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
7658         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
7659         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
7660         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
7661         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
7662         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
7663         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
7664         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
7665         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
7666         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
7667         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
7668         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
7669         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
7670         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
7671         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
7672         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
7673         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
7674         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
7675         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
7676         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
7677         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
7678         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
7679         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
7680         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
7681         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
7682         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
7683         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
7684         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
7685         * system.h (MD_UNWIND_SUPPORT): Poison.
7686         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
7687         * doc/tm.texi: Regenerate.
7688         * unwind-dw2.c: Include md-unwind-support.h instead of
7689         MD_UNWIND_SUPPORT.
7690         * config/ia64/unwind-ia64.c: Likewise.
7691         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
7692
7693 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
7694
7695         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
7696
7697 2011-06-03  Richard Henderson  <rth@redhat.com>
7698             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7699
7700         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
7701         (sigill_hdlr): Correct insn, insn size.
7702         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
7703
7704 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7705
7706         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
7707         t-slibgcc-dummy.
7708         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
7709         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
7710         * config/mips/t-iris: Remove.
7711         * config/mips/t-irix6: New file.
7712         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
7713
7714 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7715
7716         * Makefile.in (LIB2ADDEHDEP): Remove.
7717         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
7718         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
7719         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
7720         * config/t-darwin (LIB2ADDEHDEP): Remove.
7721         * config/t-freebsd (LIB2ADDEHDEP): Remove.
7722         * config/t-linux (LIB2ADDEHDEP): Remove.
7723
7724 2011-06-03  Diego Novillo  <dnovillo@google.com>
7725
7726         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
7727         (lto_register_var_decl_in_symtab): Likewise.
7728         (lto_register_function_decl_in_symtab): Likewise.
7729         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
7730         logic to uniquify_nodes.
7731
7732 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7733
7734         * config/alpha/t-osf5: Remove.
7735         * config/alpha/t-osf-pthread: Remove.
7736         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
7737         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
7738
7739 2011-06-03  Julian Brown  <julian@codesourcery.com>
7740
7741         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
7742         (strongarm1110): Use strongarm tuning.
7743         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
7744         * config/arm/arm.c (arm_strongarm_tune): New.
7745         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
7746         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
7747         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
7748         setting, using previous defaults or 1 for Cortex-A5.
7749         (arm_option_override): Set max_insns_skipped from current tuning.
7750
7751 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
7752
7753         * doc/install.texi (Options specification): Document --with-specs.
7754
7755 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7756
7757         * config/arm/neon.md (orndi3_neon): Actually split it.
7758
7759 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
7760
7761         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
7762         * var-tracking.c (reverse_op): Limite recurse depth to 5.
7763
7764 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
7765
7766         PR debug/47590
7767         * target.def (delay_sched2, delay_vartrack): New.
7768         * doc/tm.texi.in: Update.
7769         * doc/tm.texi: Rebuild.
7770         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
7771         * var-tracking.c (gate_handle_var_tracking): Likewise.
7772         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
7773         (bfin_flag_var_tracking): Drop.
7774         (output_file_start): Don't save and override flag_var_tracking.
7775         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
7776         (bfin_reorg): Test original variables.
7777         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
7778         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
7779         (ia64_flag_var_tracking): Drop.
7780         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
7781         (ia64_file_start): Don't save and override flag_var_tracking.
7782         (ia64_override_options_after_change): Ditto
7783         flag_schedule_insns_after_reload.
7784         (ia64_reorg): Test original variables.
7785         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
7786         (picochip_flag_var_tracking): Drop.
7787         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
7788         (picochip_option_override): Don't save and override
7789         flag_schedule_insns_after_reload.
7790         (picochip_asm_file_start): Ditto flag_var_tracking.
7791         (picochip_reorg): Test original variables.
7792         * config/spu/spu.c (spu_flag_var_tracking): Drop.
7793         (TARGET_DELAY_VARTRACK): Define.
7794         (spu_var_tracking): New.
7795         (spu_machine_dependent_reorg): Call it.
7796         (asm_file_start): Don't save and override flag_var_tracking.
7797
7798 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
7799
7800         PR target/49163
7801         * config/sh/predicates.md (general_movsrc_operand): Return 0
7802         for memory and memory subreg of which address is an invalid
7803         indexed address for QI and HImode.
7804         (general_movdst_operand): Likewise.
7805
7806 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
7807
7808         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
7809         edges only, when there is a non-local label in the function.
7810         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
7811
7812 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
7813
7814         * config/i386/constraints.md (Y3): New register constraint.
7815         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
7816         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
7817         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
7818         *sse2_interleave_lowv2df.
7819
7820 2011-06-02  Julian Brown  <julian@codesourcery.com>
7821
7822         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
7823         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
7824         (arm_cortex_a5_tune): New.
7825
7826 2011-06-02  Julian Brown  <julian@codesourcery.com>
7827
7828         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
7829         * config/arm/arm.c (arm_default_branch_cost): New.
7830         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
7831         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
7832         (arm_fa726_tune): Set branch_cost field using
7833         arm_default_branch_cost.
7834         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
7835         current_tune structure.
7836         * dojump.c (tm_p.h): Include file.
7837
7838 2011-06-02  Julian Brown  <julian@codesourcery.com>
7839
7840         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
7841         tuning.
7842         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
7843         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
7844         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
7845         field.
7846         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
7847         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
7848         (arm_fa726te_tune): Add prefer_constant_pool setting.
7849         (arm_v6t2_tune, arm_cortex_tune): New.
7850         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
7851         prefer_constant_pool setting.
7852
7853 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
7854
7855         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
7856         switch statement.
7857         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
7858         (*movdf_internal) <case 6,7,8>: Ditto.
7859
7860         * config/i386/constraints.md (Y4): New register constraint.
7861         * config/i386/sse.md (vec_set<mode>_0): Merge with
7862         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
7863         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
7864         *vec_extractv2di_1_sse.
7865         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
7866         and *vec_concatv2di_rex64_sse.
7867
7868 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
7869
7870         PR target/48807
7871         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
7872         of cgraph_local_info for null before attempting to use it.
7873
7874 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
7875
7876         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
7877         (current_function_dynamic_alloc_count): Delete.
7878         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
7879         (expand_builtin_nonlocal_goto): Remove obsolete comment.
7880         (expand_builtin_update_setjmp_buf): Remove dead code.
7881         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
7882         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
7883         support.
7884         * function.c (instantiate_virtual_regs): Likewise.
7885         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
7886         for a block with a single abnormal incoming edge.
7887         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
7888         (SETJMP_VIA_SAVE_AREA): Delete.
7889         * config/sparc/sparc-protos.h (load_got_register): Declare.
7890         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
7891         (load_got_register): Make global.
7892         (sparc_frame_pointer_required): Add 'static'.
7893         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
7894         (sparc_builtin_setjmp_frame_value): New function.
7895         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
7896         (save_stack_nonlocal): New expander.
7897         (restore_stack_nonlocal): Likewise.
7898         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
7899         (nonlocal_goto_internal): New insn.
7900         (goto_handler_and_restore): Delete.
7901         (builtin_setjmp_setup): Likewise.
7902         (do_builtin_setjmp_setup): Likewise.
7903         (setjmp): Likewise.
7904         (builtin_setjmp_receiver): New expander.
7905
7906 2011-06-01  David Li  <davidxl@google.com>
7907
7908         PR middle-end/49261
7909         * tree-pretty-print.c (dump_function_header): Format cleanup.
7910
7911 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
7912
7913         PR target/49238
7914         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
7915         needed when original operands are used for msw_skip comparison.
7916
7917 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
7918
7919         PR debug/49250
7920         * var-tracking.c (add_uses, add_stores): Don't call
7921         cselib_subst_to_values on ENTRY_VALUE.
7922
7923 2011-06-01  Diego Novillo  <dnovillo@google.com>
7924
7925         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
7926         output_record_start with LTO_null instead of output_zero.
7927         (lto_output_ts_binfo_tree_pointers): Likewise.
7928         (lto_output_tree): Likewise.
7929         (output_eh_try_list): Likewise.
7930         (output_eh_region): Likewise.
7931         (output_eh_lp): Likewise.
7932         (output_eh_regions): Likewise.
7933         (output_bb): Likewise.
7934         (output_function): Likewise.
7935         (output_unreferenced_globals): Likewise.
7936         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
7937         instead of NUM_TREE_CODES.
7938         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
7939         (lto_output_int_in_range): Change << to >> when shifting VAL.
7940
7941 2011-06-01  Diego Novillo  <dnovillo@google.com>
7942
7943         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
7944         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
7945
7946 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
7947
7948         PR target/45074
7949         * optabs.h (valid_multiword_target_p): Declare.
7950         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
7951         doing multi-word operations.
7952         * optabs.c (expand_binop): Likewise.
7953         (expand_doubleword_bswap): Likewise.
7954         (expand_absneg_bit): Likewise.
7955         (expand_unop): Likewise.
7956         (expand_copysign_bit): Likewise.
7957         (multiword_target_p): New function.
7958
7959 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
7960
7961         PR rtl-optimization/48830
7962         PR rtl-optimization/48808
7963         PR rtl-optimization/48792
7964         * reload.c (push_reload): Check contains_reg_of_mode.
7965         * reload1.c (strip_paradoxical_subreg): New function.
7966         (gen_reload_chain_without_interm_reg_p): Use it to handle
7967         paradoxical subregs.
7968         (emit_output_reload_insns, gen_reload): Likewise.
7969
7970 2011-06-01  David Li  <davidxl@google.com>
7971
7972         * predict.c : Change pass name
7973         * ipa.c: Ditto.
7974         * dce.c: Ditto.
7975         * tree-profile.c: Ditto.
7976         * except.c: Ditto.
7977
7978 2011-06-01  David Li  <davidxl@google.com>
7979
7980         * tree-pretty-print.c (dump_function_header): New function.
7981         * final.c (rest_of_clean_state): Use header dumper.
7982         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
7983         * passes.c (pass_init_dump_file): Use header dumper.
7984
7985 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
7986
7987         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
7988         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
7989         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
7990         New functions.
7991         (mem_loc_descriptor): Use them.
7992
7993         * var-tracking.c (create_entry_value): New function.
7994         (vt_add_function_parameter): Use it.
7995
7996 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7997
7998         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
7999         Include <signal.h>, <ucontext.h>.
8000         (sigill_caught): Define.
8001         (sigill_hdlr): New function.
8002         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
8003         insns can be executed.
8004         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
8005         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
8006
8007 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8008
8009         * config/t-slibgcc-darwin: Move to ...
8010         * config/t-slibgcc-dummy: ... this.  Clarify comments.
8011         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
8012         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
8013         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
8014         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
8015         Remove i386/t-crtstuff from tmake_file.
8016         (i[34567]86-*-solaris2*): Remove t-svr4,
8017         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
8018         t-slibgcc-dummy.
8019         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
8020         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
8021         sparc/t-crtfm from tmake_file.
8022         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
8023         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
8024         Remove extra_parts.
8025         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
8026         * config/i386/t-nwld (SHLIB_LINK): Remove.
8027         * config/i386/t-rtems-i386: Rename to ...
8028         * config/i386/t-rtems: ... this.
8029         ($(T)crti.o, $(T)crtn.o): Remove.
8030         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
8031         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
8032         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
8033         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
8034         EXTRA_MULTILIB_PARTS): Remove.
8035         * config/sparc/t-sol2-64: Likewise.
8036         * config/sparc/t-sol2: Remove.
8037         * config/sparc/t-crtin: Remove.
8038         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
8039         * config/i386/gmon-sol2.c: Remove.
8040         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
8041         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
8042         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
8043         * config/i386/sol2-gc1.asm: Remove.
8044         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
8045         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
8046         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
8047         * config/t-slibgcc-sld: Remove.
8048
8049 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
8050
8051         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
8052         base_type_for_mode with op_mode instead of mode.
8053
8054 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
8055
8056         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
8057         Cortex-A15.
8058         * config/arm/arm-tune.md: Regenerate.
8059         * config/arm/arm-tables.opt: Regenerate.
8060         * config/arm/arm.c (FL_DIV): Rename...
8061         (FL_THUMB_DIV): ... to this.
8062         (FL_ARM_DIV): Define.
8063         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
8064         (arm_arch_hwdiv): Remove.
8065         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
8066         (arm_issue_rate): Add cortexr5.
8067         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
8068         __ARM_ARCH_EXT_IDIV__.
8069         (TARGET_IDIV): Define.
8070         (arm_arch_hwdiv): Remove.
8071         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
8072         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
8073         (divsi3, udivsi3): New patterns.
8074         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
8075         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
8076
8077 2011-06-01  Martin Jambor  <mjambor@suse.cz>
8078
8079         * ipa-utils.c (ipa_dfs_info): New field scc_no.
8080         * ipa-utils.c (searchc): Set scc_no.
8081
8082 2011-06-01  Martin Jambor  <mjambor@suse.cz>
8083
8084         * ipa-utils.c (searchc_env): New field allow_overwritable.
8085         (searchc): do not ignore edges to overwritable nodes if indicated
8086         by env->allow_overwritable.
8087         (ipa_reduced_postorder): Set env.allow_overwritable.
8088
8089 2011-06-01  Richard Guenther  <rguenther@suse.de>
8090
8091         * tree.c (free_lang_data): Do not reset boolean_type_node nor
8092         char_type_node.
8093         * lto-streamer.c (lto_record_common_node): Take node pointer,
8094         do not register types.
8095         (lto_preload_common_nodes): Explicitly skip preloading nodes
8096         that differ between frontends.
8097
8098 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
8099
8100         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
8101         NON_FLOAT_REGS.
8102
8103 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
8104
8105         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
8106         parameter value for dump. Dump cost on outermost call only.
8107         (rs6000_memory_move_cost): Dump cost on outermost call only.
8108
8109 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
8110
8111         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
8112         DW_OP_GNU_convert ops.
8113
8114         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
8115         cselib_preserve_constants.
8116         (cselib_lookup_1): If cselib_preserve_constants,
8117         a new VALUE is being created for REG and there is a VALUE for the
8118         same register in wider mode, add another loc with lowpart SUBREG of
8119         the wider VALUE.
8120         (cselib_subst_to_values): Handle ENTRY_VALUE.
8121         * var-tracking.c  (replace_expr_with_values): Return NULL for
8122         ENTRY_VALUE too.
8123         * dwarf2out.c (convert_descriptor_to_signed): New function.
8124         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
8125         instead of two shifts.
8126         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
8127         the right mode if needed.
8128         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
8129         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
8130         convert_descriptor_to_signed.
8131         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
8132         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
8133
8134         PR target/48688
8135         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
8136
8137 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
8138
8139         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
8140         of X87MODEI12 and SWI48x instead of SSEMODEI24.
8141         (SWI248x): New mode iterator, rename from X87MODEI.
8142         (X87MODEI): Remove mode iterator.
8143         (X87MODEI12): Ditto.
8144         (SSEMODEI24): Ditto.
8145
8146 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
8147
8148         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
8149         * doc/invoke.texi: Document max-vartrack-expr-depth.
8150         * var-tracking.c (EXPR_DEPTH): New.
8151         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
8152
8153 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
8154
8155         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
8156         * config/i386/sse.md: Add n to negated FMA pattern names.
8157
8158 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
8159
8160         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
8161
8162 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
8163
8164         * gengtype-state.c (read_state_params_structs): Initialize previous.
8165
8166 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
8167
8168         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
8169         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
8170
8171 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
8172
8173         * config/i386/i386.md (*movtf_internal): Avoid allocating general
8174         registers.  Penalize F*r->o alternative to prevent partial memory
8175         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
8176         CONST_DOUBLE immediates when optimizing function for size.  Do not move
8177         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
8178         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
8179         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
8180         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
8181         alternatives.
8182         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
8183
8184         (fp_register_operand splitters): Use fp_register_operand
8185         constraint.  Do not use FP_REG_P in insn condition.
8186         (any_fp_register_operand splitters): Use any_fp_register_operand
8187         constraint.  Do not use ANY_FP_REG_P in insn condition.
8188
8189 2011-05-31  Jan Hubicka  <jh@suse.cz>
8190
8191         * cgraph.h (cgraph_inline_failed_t): Give enum a name
8192         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
8193         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
8194         (lto_output_edge): Use output_enum and var_len_unsigned.
8195         (lto_output_varpool_node): Likewise.
8196         (input_overwrite_node): Do not take resolution parameter;
8197         extract it from a bitpack.
8198         (input_node): Do not read resolution; use input_enum and
8199         var_len_unsigned.
8200         (input_varpool_node): Likewise.
8201         (input_edge): Likewise.
8202         (input_cgraph_1): Likewise.
8203
8204 2011-05-31  Richard Guenther  <rguenther@suse.de>
8205
8206         * gimple.c (gimple_register_canonical_type): Do not register
8207         any types via gimple_register_type.
8208
8209 2011-05-31  Jan Hubicka  <jh@suse.cz>
8210
8211         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
8212         of thunks.
8213
8214 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
8215
8216         PR rtl-optimization/49235
8217         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
8218         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
8219
8220 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
8221
8222         PR tree-optimization/49093
8223         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
8224         data references.
8225
8226 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
8227
8228         PR debug/49047
8229         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
8230         for concrete functions containing the code of cloned functions.
8231
8232 2011-05-31  Richard Guenther  <rguenther@suse.de>
8233
8234         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
8235         to ...
8236         (forward_propagate_into_comparison_1): ... this.
8237         (forward_propagate_comparison): Rename to ...
8238         (forward_propagate_into_comparison): ... this.  Split out
8239         real forward propagation code to ...
8240         (forward_propagate_comparison): ... this.
8241         (forward_propagate_into_gimple_cond): Remove looping.
8242         (forward_propagate_into_cond): Likewise.
8243         (simplify_not_neg_expr): Return whether we have done something.
8244         (simplify_gimple_switch): Likewise.
8245         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
8246         (ssa_forward_propagate_and_combine): ... this.  Re-structure
8247         to do a forward forward-propagation walk on BBs and a backward
8248         stmt combining walk on BBs.  Consistently re-scan changed statements.
8249         (pass_forwprop): Adjust.
8250
8251 2011-05-30  Ian Lance Taylor  <iant@google.com>
8252
8253         * godump.c (go_format_type): Correct length of name added to
8254         obstack for anonymous field.
8255
8256 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
8257
8258         PR target/49186
8259         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
8260         part of the second operand is 0.
8261
8262 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
8263
8264         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
8265         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
8266         to memory for !TARGET_MEMORY_MISMATCH_STALL.
8267         (*movdf_internal_rex64): Do not penalize F->r alternative.
8268         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
8269         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
8270         when optimizing function for size.  Do not move CONST_DOUBLEs
8271         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
8272         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
8273         SUBREGs.  Do not check for MEM_P operands in the insn condition,
8274         check for ANY_FP_REGNO_P instead.
8275         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
8276         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
8277         function for speed.
8278         * config/i386/i386.c (ix86_option_override_internal): Do not
8279         set TARGET_INTEGER_DFMODE_MOVES here.
8280
8281 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
8282
8283         PR target/49168
8284         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
8285
8286 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
8287
8288         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
8289         DW_TAG_rvalue_reference_type even for
8290         -gdwarf-4 -fno-debug-types-section.
8291
8292 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8293
8294         PR tree-optimization/46728
8295         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
8296         (build_and_insert_binop): New.
8297         (gimple_expand_builtin_pow): Reorder args for
8298         build_and_insert_call; use build_and_insert_binop; add more
8299         optimizations for fractional exponents.
8300
8301 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
8302
8303         PR bootstrap/49190
8304
8305         Revert:
8306         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
8307
8308         * tree.h (struct tree_identifier): Inherit from tree_typed, not
8309         tree_common.
8310         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
8311         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
8312         TS_BASE instead of TS_COMMON.
8313         * varasm.c (assemble_name): Remove assert.
8314
8315 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
8316
8317         * config.gcc: Keep obselete list sorted.
8318
8319 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
8320             Eric Botcazou  <ebotcazou@adacore.com>
8321
8322         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
8323         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
8324         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
8325         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
8326         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
8327
8328 2011-05-30  Richard Guenther  <rguenther@suse.de>
8329
8330         * gimple.c (gimple_types_compatible_p_1): Compare record
8331         and union type members properly.
8332
8333 2011-05-30  Richard Guenther  <rguenther@suse.de>
8334
8335         PR tree-optimization/49210
8336         * ipa-split.c (split_function): Care for the case where the call
8337         result is not trivially convertible to the result holding variable.
8338
8339 2011-05-30  Richard Guenther  <rguenther@suse.de>
8340
8341         PR tree-optimization/49218
8342         * tree-vrp.c (adjust_range_with_scev): Properly check whether
8343         overflow occured.
8344
8345 2011-05-30  Richard Guenther  <rguenther@suse.de>
8346
8347         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
8348         New function split out from ...
8349         (forward_propagate_into_gimple_cond): ... here.  Adjust.
8350         (forward_propagate_into_cond): Likewise.
8351         (forward_propagate_comparison): Also propagate into
8352         comparisons on assignment RHS.  Change return value to
8353         behave similar to forward_propagate_into_cond.
8354         (tree_ssa_forward_propagate_single_use_vars): Handle
8355         strict-overflow warnings properly for forward_propagate_comparison.
8356
8357 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8358
8359         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
8360         from plugin linker.
8361         * configure: Regenerate.
8362
8363 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
8364
8365         PR tree-optimization/49199
8366         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
8367         non-reduction operands are either defined in the loop or by induction.
8368
8369 2011-05-29  Xinliang David Li  <davidxl@google.com>
8370
8371         * opts-global.c (handle_common_deferred_options): Handle new options.
8372         * passes.c (register_one_dump_file): Call register_pass_name.
8373         (execute_one_pass): Check explicit enable/disable flag.
8374         (passr_hash): New function.
8375         (passr_eq): Ditto.
8376         (register_pass_name): Ditto.
8377         (get_pass_by_name): Ditto.
8378         (pass_hash): Ditto.
8379         (pass_eq): Ditto.
8380         (enable_pass): Ditto.
8381         (disable_pass): Ditto.
8382         (is_pass_explicitly_enabled_or_disabled): Ditto.
8383
8384 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
8385
8386         * config/i386/i386.md (*movoi_internal_avx): Use
8387         standard_sse_constant_opcode for alternative 0.
8388         (*movti_internal_sse): Ditto.
8389         (*movti_internal_rex64): Use standard_sse_constant_opcode for
8390         alternative 2.
8391         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
8392         sselog1 type moves.
8393         (*movsi_internal): Ditto.
8394         (*movdi_internal): Ditto.  Add ssecvt type moves.
8395
8396 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
8397
8398         PR target/48830
8399         * rtlanal.c (simplify_subreg_regno): Adjust comment.
8400
8401 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
8402
8403         PR rtl-optimization/49095
8404         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
8405         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
8406
8407 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
8408
8409         PR target/43995
8410         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
8411         recurse_p argument.  Only follow register copies if it is set,
8412         and prevent mips_find_pic_call_symbol from recursing.
8413         (mips_find_pic_call_symbol): Add a recurse_p argument.
8414         Pass it to mips_pic_call_symbol_from_set.
8415         (mips_annotate_pic_calls): Update accordingly.
8416
8417 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
8418
8419         * emit-rtl.c (try_split): Use a loop to search for
8420         NOTE_INSN_CALL_ARG_LOCATIONs.
8421
8422 2011-05-29  Richard Guenther  <rguenther@suse.de>
8423
8424         PR tree-optimization/49217
8425         * ipa-pure-const.c (propagate_pure_const): Fix typos.
8426
8427 2011-05-28  Jan Hubicka  <jh@suse.cz>
8428
8429         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
8430         length.
8431         (string_slot_free): Remove
8432         (create_output_block): Initialize obstack.
8433         (destroy_output_block): Free obstack.
8434         (lto_string_index): Add PERSISTENT parameter; do not duplicate
8435         the string unless it needs to be added into the hash.
8436         (lto_output_string_with_length): Add persistent attribute;
8437         handle NULL strings.
8438         (lto_output_string): Add PERSISTENT parameter.
8439         (output_string_cst, output_identifier): Simplify.
8440         (lto_output_location_bitpack): Update.
8441         (lto_output_builtin_tree): Update.
8442         * lto-streamer.h (struct output_block): Add obstack.
8443         (lto_output_string, lto_output_string_with_length): Remove
8444         declarations; functions are static now.
8445
8446 2011-05-28  Jan Hubicka  <jh@suse.cz>
8447
8448         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
8449         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
8450         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
8451         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
8452         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
8453         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
8454         unpack_ts_decl_with_vis_value_fields,
8455         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
8456         lto_get_builtin_tree): Use enum and variable length i/o.
8457         * basic-block.h (profile_status_d): Add PROFILE_LAST.
8458         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
8459         New functions.
8460         (bp_pack_enum, bp_unpack_enum): New macros.
8461
8462 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
8463
8464         * genrecog.c: Remove redundant forward declarations.
8465
8466 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
8467
8468         * config.gcc: Deprecate mips*-*-openbsd*.
8469
8470 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
8471
8472         PR bootstrap/49195
8473         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
8474         for match_op_dup.
8475
8476 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
8477
8478         PR middle-end/48981
8479         * gengtype.c (vec_prefix_type): New function.
8480         (note_def_vec): Use vec_prefix_type and change the length
8481         attribute to be based on the prefix.
8482         * vec.c: Include coretypes.h before vec.h.
8483         (struct vec_prefix): Remove.
8484         (vec_gc_p_reserve): Change the offsetof to sizeof.
8485         (vec_gc_p_reserve_exact): Likewise.
8486         (vec_heap_p_reserve): Likewise.
8487         (vec_heap_p_reserve_exact): Likewise.
8488         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
8489         (vec_stack_p_reserve): Change the offsetof to sizeof.
8490         (vec_stack_p_reserve_exact): Likewise.
8491         * vec.h (struct vec_prefix): New struct definition.
8492         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
8493         (VEC_T_GTY(T,B)): Likewise.
8494         (DEF_VEC_FUNC_P(T)): Use prefix field.
8495         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
8496         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
8497
8498 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8499
8500         PR tree-optimization/46728
8501         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
8502         (powi_as_mults): Add gimple_set_location.
8503         (build_and_insert_call): New.
8504         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
8505         0.5, 0.25, 0.75, 1./3., or 1./6.
8506
8507 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
8508
8509         * doc/contrib.texi: Update copyright years.
8510         (Contributors): Add Zdenek Sojka.
8511
8512 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
8513
8514         * c-decl.c (c_push_function_context): Copy the current statement
8515         list stack.
8516         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
8517         (finish_struct): Call building_stmt_list_p instead of checking
8518         cur_stmt_list.
8519         * c-parser.c (c_parser_postfix_expression): Likewise.
8520         * c-typeck.c (c_end_compound_stmt): Likewise.
8521         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
8522         * tree-iterator.c (stmt_list_cache): Change to a VEC.
8523         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
8524         (free_stmt_list): Likewise.
8525         * tree.h (struct tree_statement_list): Include typed_tree instead
8526         of tree_common.
8527         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
8528         as TS_TYPED instead of TS_COMMON.
8529
8530 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8531             Uros Bizjak  <ubizjak@gmail.com>
8532
8533         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
8534         (HAVE_AS_IX86_TLSGDPTL): Define.
8535         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
8536         (HAVE_AS_IX86_TLSLDMPLT): Define.
8537         * configure: Regenerate.
8538         * config.in: Regenerate.
8539         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
8540         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
8541         TARGET_SUN_TLS, use @tlsgdplt or @plt.
8542         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
8543         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
8544         @tlsldmplt or @plt.
8545         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
8546
8547 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
8548
8549         * sched-int.h (struct _haifa_deps_insn_data): New members cond
8550         and reverse_cond.
8551         (INSN_COND, INSN_REVERSE_COND): New macros.
8552         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
8553         once.
8554         (sched_get_condition_with_rev): Cache the results, and look them up
8555         if possible.
8556         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
8557         are clobbered by the current insn.
8558         * target.def (exposed_pipline): New sched data hook.
8559         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
8560         * doc/tm.texi: Regenerate.
8561
8562 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8563
8564         PR tree-optimization/49170
8565         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
8566         sincos or cexp.
8567
8568 2011-05-27  Richard Guenther  <rguenther@suse.de>
8569
8570         PR middle-end/49189
8571         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
8572         of comparisons.
8573
8574 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
8575
8576         * haifa-sched.c (sched_scan_info): Remove.
8577         (schedule_block): Call sched_extend_luids rather than sched_init_luids
8578         with NULL args.
8579         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
8580         Remove functions.
8581         (sched_scan): Remove.
8582         (sched_extend_luids): Renamed from luids_extend_insn and no longer
8583         static.  All callers changed.
8584         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
8585         static.  All callers changed.
8586         (sched_init_luids): Remove all arguments except the first.  All
8587         callers changed.  Don't use sched_scan.
8588         (haifa_init_h_i_d): Likewise.
8589         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
8590         manually rather than using sched_init_luids.  Likewise with
8591         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
8592         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
8593         rather than sched_init_luids with NULL args.
8594         * sel-sched-ir.c (new_insns): Remove variable.
8595         (sched_scan): New static function, previously in haifa-sched.c.  Remove
8596         all arguments but the first two; all callers changed.
8597         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
8598         rather than sched_init_luids.
8599         (sel_init_bbs): Remove second argument.  All callers changed.
8600         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
8601         with NULL arguments.
8602         (create_insn_rtx_from_pattern): Likewise.
8603         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
8604         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
8605         (sched_init_insn_luid, sched_extend_luids): Declare.
8606         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
8607         declarations.
8608
8609 2011-05-27  Richard Guenther  <rguenther@suse.de>
8610
8611         PR middle-end/49177
8612         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
8613         A CMP B ? (T) true : (T) false for non-integral types T again.
8614
8615 2011-05-27  Jan Hubicka  <jh@suse.cz>
8616
8617         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
8618         so 0 means NULL string.
8619         (lto_output_string_with_length): ... here.
8620         (lto_output_string, output_string_cst, output_identifier): Update
8621         handling of NULL strings.
8622         (lto_output_location_bitpack): New function.
8623         (lto_output_location): Use it.
8624         (lto_output_tree_ref): Use output_record_start.
8625         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
8626         len values.
8627         * lto-streamer-in.c (string_for_index): Break out from ...; offset
8628         values by 1.
8629         (input_string_internal): ... here;
8630         (input_string_cst, input_identifier, lto_input_string): Update handling
8631         of NULL strings.
8632         (lto_input_location_bitpack): New function
8633         (lto_input_location): Use it.
8634         (unpack_ts_type_common_value_fields): Pack align & alias in var len
8635         values.
8636         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
8637         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
8638         (bp_pack_value): Sanity check the value range.
8639         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
8640         New functions.
8641         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
8642         New functions.
8643
8644 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
8645
8646         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
8647         call_arg_location instructions down the floor.
8648
8649 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
8650
8651         PR rtl-optimization/49154
8652         * ira.c (setup_pressure_classes): Process class without sublcasses
8653         as a candidate for pressure classes.
8654
8655 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
8656
8657         PR rtl-optimization/48575
8658         * genrecog.c (position_type): New enum.
8659         (position): New structure.
8660         (decision): Use position structure instead of a string.
8661         (root_pos, peep2_insn_pos_list): New variables.
8662         (next_position, compare_positions): New functions.
8663         (new_decision): Use position structures instead of strings.
8664         (maybe_both_true): Likewise.
8665         (change_state): Likewise.
8666         (write_tree): Likewise.
8667         (make_insn_sequence): Likewise.
8668
8669 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
8670
8671         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
8672         TS_BASE instead of TS_COMMON.
8673         (find_decls_types_r): Check for TS_TYPED structure before looking at
8674         TREE_TYPE.
8675         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
8676         Add chain field.
8677         (BLOCK_CHAIN): Use new chain field.
8678
8679 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
8680
8681         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
8682         moves expensive on Power7 also.
8683
8684 2011-05-26  Richard Guenther  <rguenther@suse.de>
8685
8686         * fold-const.c (fold_unary_loc): Remove bogus code.
8687
8688 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
8689
8690         * tree.h (struct tree_identifier): Inherit from tree_typed, not
8691         tree_common.
8692         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
8693         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
8694         TS_BASE instead of TS_COMMON.
8695         * varasm.c (assemble_name): Remove assert.
8696
8697 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
8698
8699         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
8700         substituted first.
8701         * libgcc-std.ver: Delete file.
8702
8703 2011-05-26  Richard Guenther  <rguenther@suse.de>
8704
8705         PR tree-optimization/48702
8706         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
8707         only when we know the base address is within bounds.
8708         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
8709         assume the base address of TARGET_MEM_REFs is in bounds.
8710
8711 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8712
8713         PR target/49099
8714         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
8715         declaration in TARGET_SOLARIS.
8716
8717 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
8718
8719         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
8720         The instruction is then expanded explicitly.
8721         (supported_compare): Callable instruction.
8722         (compare): Likewise.
8723
8724 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
8725
8726         PR c++/49165
8727         * gimplify.c (shortcut_cond_r): Don't special case
8728         COND_EXPRs if they have void type on one of their arms.
8729
8730 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
8731
8732         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
8733         to reduce duplication, and to achieve a slightly more logical order
8734         of operations.
8735
8736 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
8737
8738         PR tree-optimization/49161
8739         * tree-vrp.c (struct case_info): New type.
8740         (compare_case_labels): Sort case_info structs instead of
8741         trees, and not primarily by CASE_LABEL uids but by
8742         label_for_block indexes.
8743         (find_switch_asserts): Put case labels into struct case_info
8744         array instead of TREE_VEC, adjust sorting, compare label_for_block
8745         values instead of CASE_LABELs.
8746
8747 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8748
8749         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
8750         ("orndi3_neon"): Likewise.
8751         ("bic<mode>3_neon"): Likewise.
8752
8753 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
8754
8755         PR tree-optimization/49038
8756         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
8757         Ensure at least one epilogue iteration if required by data
8758         accesses with gaps.
8759         * tree-vectorizer.h (struct _loop_vec_info): Add new field
8760         to mark loops that require peeling for gaps.
8761         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
8762         (vect_get_known_peeling_cost): Take peeling for gaps into
8763         account.
8764         (vect_transform_loop): Generate epilogue if required by data
8765         access with gaps.
8766         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
8767         loop as requiring an epilogue if there are gaps in the end of
8768         the strided group.
8769
8770 2011-05-25  Ian Lance Taylor  <iant@google.com>
8771
8772         * godump.c (go_format_type): Output the first field with a usable
8773         Go type, if any.
8774
8775 2011-05-25  Ian Lance Taylor  <iant@google.com>
8776
8777         * godump.c (go_format_type): Check for invalid type names, pointer
8778         target types, and struct field types.
8779
8780 2011-05-25  Jason Merrill  <jason@redhat.com>
8781
8782         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
8783
8784 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
8785
8786         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
8787
8788 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
8789
8790         * config/i386/i386.md (*movqi_extv_1)): Put back
8791         "register_operand" check in "type" calculation.
8792         (*movqi_extzv_2): Likewise.
8793
8794 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
8795
8796         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
8797
8798 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
8799
8800         PR bootstrap/49160
8801         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
8802         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
8803         __divxc3, __divtc3): Wrap definitions in #ifndef.
8804
8805 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
8806
8807         PR target/49142
8808         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
8809         "register_operand" check and replace q_regs_operand with
8810         QIreg_operand in "type" calculation.
8811         (*movqi_extv_1): Likewise.
8812         (*movqi_extzv_2_rex64): Likewise.
8813         (*movqi_extzv_2): Likewise.
8814
8815         * config/i386/predicates.md (QIreg_operand): New.
8816
8817 2011-05-25  Richard Guenther  <rguenther@suse.de>
8818
8819         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
8820         type-based offset disambiguation, streamline MEM_REF and
8821         TARGET_MEM_REF handling.
8822
8823 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
8824
8825         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
8826         (bdesc_special_args): Add pause intrinsic.
8827
8828         * config/i386/i386.md (UNSPEC_PAUSE): New.
8829         (pause): Likewise.
8830         (*pause): Likewise.
8831         * config/i386/ia32intrin.h (__pause): Likewise.
8832
8833         * doc/extend.texi (X86 Built-in Functions): Add documentation for
8834         pause intrinsic.
8835
8836 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8837
8838         PR tree-optimization/46728
8839         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
8840         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
8841
8842 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
8843
8844         * tree.h (struct tree_exp): Inherit from struct tree_typed.
8845         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
8846         instead of TS_COMMON.
8847
8848 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
8849
8850         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
8851         LIBGCC2_GNU_PREFIX is defined.
8852         (__N): New macro.
8853         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
8854         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
8855         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
8856         __clz_tab): Define using __N.
8857         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
8858         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
8859         * target.def (libfunc_gnu_prefix): New hook.
8860         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
8861         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
8862         * doc/tm.texi: Regenerate.
8863         * system.h (LIBGCC2_GNU_PREFIX): Poison.
8864         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
8865         account.
8866         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
8867         (init_optabs): Likewise for the bswap libfuncs.
8868         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
8869         and divide.
8870         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
8871         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
8872         * libgcc-std.ver: Remove.
8873         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
8874         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
8875         libgcc-std.ver.
8876         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
8877         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
8878         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
8879         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
8880         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
8881         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
8882         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
8883         * config/fixed-bit.h (FIXED_OP): Define differently depending on
8884         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
8885         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
8886
8887 2011-05-25  Jan Hubicka  <jh@suse.cz>
8888
8889         * lto-streamer-out.c (output_record_start): Use lto_output_enum
8890         (lto_output_tree): Use output_record_start.
8891         * lto-streamer-in.c (input_record_start): Use lto_input_enum
8892         (lto_get_pickled_tree): Use input_record_start.
8893         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
8894         (lto_value_range_error): New function.
8895         * lto-streamer.h (lto_value_range_error): Declare.
8896         (lto_output_int_in_range, lto_input_int_in_range): New functions.
8897         (lto_output_enum, lto_input_enum): New macros.
8898
8899 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
8900
8901         * common.opt (flag_stack_usage_info): New variable.
8902         (-Wstack-usage): New option.
8903         * doc/invoke.texi (Warning options): Document -Wstack-usage.
8904         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
8905         <OPT_fstack_usage>: Likewise.
8906         * toplev.c (output_stack_usage): Handle -Wstack-usage.
8907         * calls.c (expand_call): Test flag_stack_usage_info variable instead
8908         of flag_stack_usage.
8909         (emit_library_call_value_1): Likewise.
8910         * explow.c (allocate_dynamic_stack_space): Likewise.
8911         * function.c (instantiate_virtual_regs ): Likewise.
8912         (prepare_function_start): Likewise.
8913         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
8914         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
8915         * config/arm/arm.c (arm_expand_prologue): Likewise.
8916         (thumb1_expand_prologue): Likewise.
8917         * config/avr/avr.c (expand_prologue): Likewise.
8918         * config/i386/i386.c (ix86_expand_prologue): Likewise.
8919         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
8920         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
8921         * config/mips/mips.c (mips_expand_prologue): Likewise.
8922         * config/pa/pa.c (hppa_expand_prologue): Likewise.
8923         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
8924         * config/s390/s390.c (s390_emit_prologue): Likewise.
8925         * config/sh/sh.c (sh_expand_prologue): Likewise.
8926         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
8927         * config/spu/spu.c (spu_expand_prologue): Likewise.
8928
8929 2011-05-25  Richard Guenther  <rguenther@suse.de>
8930
8931         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
8932         (gimple_canonical_types_compatible_p): Likewise.
8933
8934 2011-05-25  Jan Hubicka  <jh@suse.cz>
8935
8936         PR middle-end/49062
8937         * ipa.c (function_and_variable_visibility): Only add to same
8938         comdat group list if DECL_ONE_ONLY.
8939
8940 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
8941
8942         PR rtl-optimization/49014
8943         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
8944
8945 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
8946
8947         PR target/49128
8948         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
8949
8950 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
8951
8952         PR rtl-optimization/48757
8953         * ira-build.c (loop_with_eh_edge_p): Rename to
8954         loop_with_complex_edge_p, check edges on complexity, make function
8955         conditional.
8956         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
8957         conditional.
8958
8959 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
8960
8961         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
8962         force flag_ira_share_save_slots to 0.
8963
8964 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
8965
8966         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
8967         (vt_initialize): Set PROLOGUE_BB unconditionally.
8968         Add block comment about CFA_BASE_RTX machinery.
8969         Reset FP_CFA_OFFSET to -1 on all invalid paths.
8970         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
8971
8972 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
8973
8974         PR objc/48187
8975         * c-parser.c (c_parser_objc_class_instance_variables): More robust
8976         parsing of syntax error in ObjC instance variable lists.  In
8977         particular, avoid an infinite loop if there is a stray ']'.
8978         Updated error message.
8979
8980 2011-05-24  Ian Lance Taylor  <iant@google.com>
8981
8982         * godump.c (go_define): Don't accept a string immediately after
8983         another operand.
8984
8985 2011-05-24  Ian Lance Taylor  <iant@google.com>
8986
8987         * godump.c (struct godump_container): Add invalid_hash field.
8988         (go_format_type): Return false if type is found in invalid_hash.
8989         (go_output_typedef): Add invalid type to invalid_hash.
8990         (go_finish): Create and delete invalid_hash.
8991
8992 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8993
8994         PR tree-optimization/46728
8995         * tree-ssa-math-opts.c (powi_table): New.
8996         (powi_lookup_cost): New.
8997         (powi_cost): New.
8998         (powi_as_mults_1): New.
8999         (powi_as_mults): New.
9000         (gimple_expand_builtin_powi): New.
9001         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
9002         (gate_cse_sincos): Remove sincos/cexp restriction.
9003
9004 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9005
9006         PR target/3746
9007         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
9008         mips-tdump native.
9009         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
9010         * mips-tdump.c: Likewise.
9011
9012 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
9013
9014         PR target/49128
9015         * config/i386/driver-i386.c (host_detect_local_cpu): Always
9016         add -mno-XXX.  Handle FMA.
9017
9018 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
9019
9020         PR rtl-optimization/48633
9021         * ira-build.c (loop_with_eh_edge_p): New function.
9022         (mark_loops_for_removal): Use it.
9023
9024 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
9025
9026         PR rtl-optimization/48971
9027         * ira.c (setup_pressure_classes): Don't check register move cost
9028         for classes with one registers.  Don't add pressure class if there
9029         is a pressure class with the same available hard registers.
9030         Check contains_reg_of_mode.  Fix a typo in collecting
9031         temp_hard_regset.  Ignore hard registers not belonging to a class.
9032
9033 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
9034
9035         PR target/49133
9036         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
9037
9038 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
9039             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9040
9041         PR gcov-profile/48845
9042         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
9043
9044 2011-05-24  Richard Guenther  <rguenther@suse.de>
9045
9046         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
9047         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
9048         (gimple_types_compatible_p_1): Adjust.
9049         (iterative_hash_canonical_type): Do not bother about complete vs.
9050         incomplete types.
9051         (gimple_canonical_types_compatible_p): Likewise.
9052
9053 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9054
9055         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
9056
9057 2011-05-24  Richard Guenther  <rguenther@suse.de>
9058
9059         PR bootstrap/49078
9060         * gimple.c (gimple_register_canonical_type): Revert
9061         previous change.
9062         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
9063         does not for a tree for the case where it matters.  Cache
9064         pointer-type alias-sets.
9065
9066 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
9067
9068         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
9069         (OBJS): Remove options.o, opts-common.o and prefix.o.
9070         (OBJS-libcommon-target): New.
9071         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
9072         (BACKEND): Include libcommon-target.a.
9073         (MOSTLYCLEANFILES): Include libcommon-target.a.
9074         (libcommon-target.a): New.
9075         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
9076         prefix.o.
9077
9078 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
9079
9080         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
9081         parts of output shared with the driver.
9082         * optc-gen.awk: Don't generate parts of output not shared with the
9083         driver.
9084         * opth-gen.awk: Remove GCC_DRIVER conditionals.
9085         * doc/options.texi (SourcerInclude): Mention options-save.c.
9086         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
9087         (OBJS): Add options-save.o.
9088         (options-save.c, options-save.o): New.
9089         (options.o): Update dependencies.
9090         (gcc-options.o): Remove.
9091         (mostlyclean): Remove options-save.c.
9092
9093 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
9094
9095         PR debug/49032
9096         * dbxout.c: Include cgraph.h.
9097         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
9098         and without value expr, return NULL if no varpool node exists for
9099         it or if it is not needed.
9100         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
9101
9102         PR c/49120
9103         * c-decl.c (start_decl): Convert expr to void_type_node.
9104
9105 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
9106
9107         PR rtl-optimization/48826
9108         * emit-rtl.c (try_split): When splitting a call that is followed
9109         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
9110
9111 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
9112
9113         * cfgexpand.c (expand_debug_expr): For unused non-addressable
9114         parameters passed in memory prefer using DECL_INCOMING_RTL over
9115         the pseudos it will be copied into.
9116
9117 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
9118
9119         PR target/47315
9120         * config/i386/i386.c (ix86_option_override_internal): Save the
9121         initial options after checking vzeroupper.
9122
9123 2011-05-23  David Li  <davidxl@google.com>
9124
9125         PR tree-optimization/48988
9126         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
9127         Initialize has_valid_pred for each pred chain.
9128
9129 2011-05-23  Richard Guenther  <rguenther@suse.de>
9130
9131         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
9132         (iterative_hash_gimple_type): Always hash type names.
9133
9134 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
9135
9136         * c-typeck.c (build_function_call_vec): Tweak call to
9137         check_function_arguments.
9138
9139 2011-05-23  Richard Guenther  <rguenther@suse.de>
9140
9141         PR tree-optimization/49115
9142         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
9143         is not necessarily carried out, do not claim it kills the ref.
9144         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
9145
9146 2011-05-23  Richard Guenther  <rguenther@suse.de>
9147
9148         PR middle-end/15419
9149         * builtins.c (fold_builtin_memory_op): Be less restrictive about
9150         what pointer types we accept for folding.
9151
9152 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9153
9154         * gthr-gnat.c: Remove.
9155         * gthr-gnat.h: Remove.
9156         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
9157         * config/t-freebsd (LIB2ADDEH): Likewise.
9158         * config/t-linux (LIB2ADDEH): Likewise.
9159         * config/t-sol2 (LIB2ADDEH): Likewise.
9160         * config/ia64/t-vms (LIB2ADDEH): Likewise.
9161         * configure.ac (target_thread_file): Remove gnat handling.
9162         * configure: Regenerate.
9163         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
9164
9165 2011-05-23  Tristan Gingold  <gingold@adacore.com>
9166             Eric Botcazou  <ebotcazou@adacore.com>
9167
9168         * gcov.c (create_file_names): If no object directory is specified,
9169         keep the directory of the file.
9170
9171 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9172
9173         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
9174         * configure: Regenerate.
9175
9176 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
9177
9178         PR middle-end/48973
9179         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
9180         failed and the comparison has a single bit signed type, use
9181         constm1_rtx instead of const1_rtx for true value.
9182         (do_store_flag): If ops->type is single bit signed type, disable
9183         signel bit test optimization and pass -1 instead of 1 as last
9184         parameter to emit_store_flag_force.
9185
9186 2011-05-23  Tom de Vries  <tom@codesourcery.com>
9187
9188         PR target/45098
9189         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
9190         function.
9191         (infer_loop_bounds_from_undefined): Use new function.
9192
9193 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
9194
9195         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
9196         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
9197         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
9198         and -O0 otherwise.
9199         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
9200
9201 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
9202
9203         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
9204         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
9205         returns true.
9206
9207 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
9208
9209         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
9210
9211 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
9212
9213         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
9214         UNSPEC_MOVE_PIC pattern.
9215
9216 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
9217
9218         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
9219         (sparc-*-rtems*): Likewise.
9220         (sparc64-*-elf*): Likewise.
9221         (sparc64-*-rtems*): Likewise.
9222         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
9223         * config/sparc/t-crtin: New file.
9224         * config/sparc/t-sol2 (crti.o): Delete rule.
9225         (crtn.o): Likewise.
9226         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
9227         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
9228         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
9229         (ENDFILE_SPEC): Add crtn.o.
9230
9231 2011-05-22  Tom de Vries  <tom@codesourcery.com>
9232
9233         PR middle-end/48689
9234         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
9235         CODE_CONTAINS_STRUCT (TS_COMMON).
9236
9237 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
9238
9239         PR middle-end/49029
9240         * expmed.c (extract_fixed_bit_field): Test whether target can be used
9241         only after deciding which mode to use.
9242
9243 2011-05-22  Tom de Vries  <tom@codesourcery.com>
9244
9245         PR target/45098
9246         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
9247         for call to get_shiftadd_cost.
9248
9249 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
9250
9251         PR target/49104
9252         * config/i386/cpuid.h (bit_MMXEXT): New define.
9253
9254 2011-05-22  Nick Clifton  <nickc@redhat.com>
9255
9256         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
9257         initialisation of non-existant args[2] element.  Use args[] array
9258         not arg[] array to pass arguments to build_function_type_list.
9259
9260 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
9261
9262         PR tree-optimization/49087
9263         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
9264
9265 2011-05-21  Jason Merrill  <jason@redhat.com>
9266
9267         PR c++/49092
9268         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
9269         static storage duration.
9270
9271 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
9272
9273         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
9274         frame pointer.
9275
9276 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
9277
9278         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
9279         false if there are call-saved registers here...
9280         (sparc_can_use_return_insn_p): ...but here instead.
9281         (save_or_restore_regs): Fix thinko.
9282         (sparc_expand_prologue): Use current_function_is_leaf.
9283         (sparc_frame_pointer_required): Likewise.
9284
9285 2011-05-21  Nick Clifton  <nickc@redhat.com>
9286
9287         PR target/49098
9288         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
9289
9290 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
9291
9292         * gengtype.c (walk_type): Implemented "atomic" GTY option.
9293         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
9294
9295 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
9296
9297         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
9298         * optc-gen.awk: Move common code to opt-read.awk.
9299         * opth-gen.awk: Likewise.
9300         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
9301
9302 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
9303
9304         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
9305
9306 2011-05-20  Tom de Vries  <tom@codesourcery.com>
9307
9308         PR target/45098
9309         * tree-ssa-loop-ivopts.c: Include expmed.h.
9310         (get_shiftadd_cost): New function.
9311         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
9312
9313 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
9314
9315         PR bootstrap/49086
9316         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
9317         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
9318
9319 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
9320
9321         * Makefile.in: Update comment referring to $(OBJS-common).
9322
9323 2011-05-20  Ian Lance Taylor  <iant@google.com>
9324
9325         * godump.c (go_output_typedef): Put enum constants in the macro
9326         hash table to avoid duplicate Go const definitions.
9327
9328 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
9329
9330         * Makefile.in (LIBDEPS): Add libcommon.a.
9331         (LIBS): Likewise.
9332         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
9333         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
9334         pretty-print.o and version.o.
9335         (OBJS-libcommon): New.
9336         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
9337         (BACKEND): Add libcommon.a.
9338         (MOSTLYCLEANFILES): Likewise.
9339         (libcommon.a): New.
9340         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
9341         (cpp$(exeext)): Likewise.
9342         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
9343         pretty-print.o and input.o.
9344         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
9345         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
9346         (errors.o): Remove.
9347         (mips-tfile): Don't explicitly use version.o.
9348         (mips-tdump): Likewise.
9349         (gcov.o): Depend on $(DIAGNOSTIC_H).
9350         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
9351         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
9352         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
9353         * gcov-dump.c: Include intl.h and diagnostic.h.
9354         (main): Initialize diagnostics.
9355         * gcov.c: Include diagnostic.h.
9356         (fnotice): Remove.
9357         (main): Initialize diagnostics.
9358         * lto-wrapper.c: Include diagnostic.h.
9359         (main): Initialize diagnostics.
9360
9361 2011-05-20  Michael Matz  <matz@suse.de>
9362
9363         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
9364
9365 2011-05-20  Michael Matz  <matz@suse.de>
9366             Richard Guenther  <rguenther@suse.de>
9367
9368         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
9369         use lto_streamer_cache_append directly instead of returning a VEC.
9370         (preload_common_node): Remove.
9371         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
9372         track seen nodes.
9373         (lto_streamer_cache_create): Call lto_preload_common_nodes.
9374
9375 2011-05-20  Richard Guenther  <rguenther@suse.de>
9376
9377         PR tree-optimization/49079
9378         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
9379         MEM_REFs correctly for the trailing array access detection.
9380         Special case constants the same way as decls for overall size
9381         constraining.
9382
9383 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
9384
9385         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
9386         argument expansion.
9387
9388 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
9389
9390         PR tree-optimization/49073
9391         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
9392         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
9393         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
9394
9395 2011-05-20  Richard Guenther  <rguenther@suse.de>
9396
9397         PR middle-end/48849
9398         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
9399         of pointer types the same way the middle-end does.
9400
9401 2011-05-20  Richard Guenther  <rguenther@suse.de>
9402
9403         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
9404         or pointer-to chains.  Delay all fixup to uniquify_nodes.
9405
9406 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
9407
9408         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
9409         (fma4_fmaddsub): Likewise
9410
9411 2011-05-19  Jan Hubicka  <jh@suse.cz>
9412
9413         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
9414         (GIMPLE_TYPE_PAIR_SIZE): New macro.
9415         (type_pair_cache): New static var.
9416         (lookup_type_pair): Use fixed sized custom hash; make inline.
9417         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
9418         calls of lookup_type_pair.
9419         (print_gimple_types_stats): Remove cache stats.
9420         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
9421         and gtc_ob.
9422
9423 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
9424
9425         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
9426         when TARGET_RDRND is active.
9427         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
9428         Generate dummy SImode target register when target is NULL.
9429
9430 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
9431
9432         * config/arm/arm-fpus.def: New.
9433         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
9434         arm-fpus.def.
9435         * config/arm/arm-tables.opt: Regenerate.
9436         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
9437         (arm_option_override): Don't decode FPU name to string here.
9438         * config/arm/arm.opt (mfpu=): Use Enum.
9439         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
9440         Update dependencies.
9441
9442 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
9443
9444         * collect2.c: Include diagnostic.h.
9445         (fatal_perror, fatal, error, fancy_abort): Remove.
9446         (main): Set progname.  Call xmalloc_set_program_name and
9447         diagnostic_initialize.
9448         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
9449         scan_libraries, resolve_lib_name): Call fatal_error instead of
9450         fatal and fatal_perror.
9451         * collect2.h (error, fatal, fatal_perror): Don't declare.
9452         * tlink.c: Include diagnostic-core.h.
9453         (recompile_files): Call fatal_error instead of fatal_perror.
9454         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
9455         pretty-print.o and input.o.
9456         (collect2.o, tlink.o): Update dependencies.
9457
9458 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9459
9460         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
9461
9462 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9463
9464         PR target/40483
9465         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
9466         COMDAT group syntax, both SPARC and x86 variants.
9467         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
9468         * configure: Regenerate.
9469         * config/sol2.h (TARGET_SOLARIS): Define.
9470         (PUSHSECTION_FORMAT): Remove.
9471         (SECTION_NAME_FORMAT): Define.
9472         * config/sol2.c: Include hashtab.h.
9473         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
9474         expansion, using SECTION_NAME_FORMAT.
9475         (solaris_comdat_htab): New variable.
9476         (struct comdat_entry): Define.
9477         (comdat_hash): New function.
9478         (comdat_eq): New function.
9479         (solaris_elf_asm_comdat_section): New function.
9480         (solaris_define_comdat_signature): New function.
9481         (solaris_code_end): New function.
9482         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
9483         (solaris_code_end): Declare.
9484         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
9485         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
9486         solaris_code_end.
9487         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
9488         Remove ATTRIBUTE_UNUSED.
9489         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
9490         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
9491         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
9492         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
9493         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
9494         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
9495         (PUSHSECTION_FORMAT): Remove.
9496         (SECTION_NAME_FORMAT): Redefine.
9497
9498 2011-05-19  Kai Tietz  <ktietz@redhat.com>
9499
9500         * tree-cfg.c (verify_gimple_assign_binary): Barf on
9501         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
9502         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
9503
9504 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
9505             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9506
9507         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
9508
9509 2011-05-19  Richard Guenther  <rguenther@suse.de>
9510
9511         PR middle-end/48985
9512         * tree-object-size.c (addr_object_size): If the pointed-to
9513         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
9514
9515 2011-05-19  Richard Guenther  <rguenther@suse.de>
9516
9517         * gimple.c (gimple_types_compatible_p_1): Compare names of
9518         the types themselves.
9519         (iterative_hash_gimple_type): And hash them that way.
9520         (gimple_register_type_1): If we register a main variant properly
9521         initialize the leader to ourselves.
9522
9523 2011-05-19  Tom de Vries  <tom@codesourcery.com>
9524
9525         PR target/45098
9526         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
9527         get_loop_invariant_expr_id.
9528         (get_loop_invariant_expr_id): Use get_expr_id.
9529         (parm_decl_cost): New function.
9530         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
9531         Improve bound cost estimation.  Use different inv_expr_id for elim and
9532         express cases.
9533
9534 2011-05-19  Tom de Vries  <tom@codesourcery.com>
9535
9536         PR target/45098
9537         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
9538         cost_base.cost == 0.
9539
9540 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
9541
9542         PR target/49002
9543         * config/i386/sse.md
9544         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
9545         load cast.
9546
9547 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
9548
9549         PR tree-optimization/49039
9550         * tree-vrp.c (extract_range_from_binary_expr): For
9551         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
9552         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
9553
9554 2011-05-18  Tom de Vries  <tom@codesourcery.com>
9555
9556         PR target/45098
9557         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
9558
9559 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
9560
9561         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
9562         (*tls_global_dynamic_64): Ditto.
9563         (*tls_local_dynamic_base_32_gnu): Ditto.
9564         (*tls_local_dynamic_base_64): Ditto.
9565         (tls_initial_exec_64_sun): Ditto.
9566
9567 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
9568
9569         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
9570         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
9571         bf592-none.
9572         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
9573         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
9574         * config/bfin/bfin.c (bfin_cpus): Add bf592.
9575         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
9576         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
9577         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
9578         * config/bfin/elf.h (LIB_SPEC): Add bf592.
9579
9580 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
9581
9582         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
9583         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
9584         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
9585         target_thread_pointer, arm_structure_size_boundary, struct
9586         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
9587         struct abi_name, arm_all_abis): Remove.
9588         (arm_option_override) Don't process most enumerated option values here.
9589         Don't process target_fpe_name here.  Work with integer not string for
9590         structure size boundary; use separate diagnostics for each case.
9591         * config/arm/arm.h (enum float_abi_type, enum
9592         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
9593         to arm-opts.h.
9594         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
9595         arm_structure_size_boundary): Remove.
9596         * config/arm/arm.opt (mabi=): Use Enum and Init.
9597         (arm_abi_type): New Enum and EnumValue entries.
9598         (mfloat-abi=): Use Enum and Init.
9599         (float_abi_type): New Enum and EnumValue entries.
9600         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
9601         (mfp16-format=): Use Enum and Init.
9602         (arm_fp16_format_type): New Enum and EnumValue entries.
9603         (mstructure-size-boundary=): Use UInteger and Init.
9604         (mtp=): Use Enum and Init.
9605         (arm_tp_type): New Enum and EnumValue entries.
9606
9607 2011-05-18  Richard Guenther  <rguenther@suse.de>
9608
9609         PR tree-optimization/49018
9610         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
9611         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
9612         gimple_has_side_effects.
9613
9614 2011-05-18  Richard Guenther  <rguenther@suse.de>
9615
9616         * gimple.c (gimple_register_type_1): New function, split out from ...
9617         (gimple_register_type): ... here.  Avoid infinite recursion.
9618
9619 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
9620
9621         PR tree-optimization/41881
9622         * tree-vectorizer.h (struct _loop_vec_info): Add new field
9623         reduction_chains along with a macro for its access.
9624         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
9625         (destroy_loop_vec_info): Free reduction chains.
9626         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
9627         (vect_is_slp_reduction): New function.
9628         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
9629         (vect_create_epilog_for_reduction): Support SLP reduction chains.
9630         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
9631         definition types for reduction chains.
9632         (vect_supported_load_permutation_p): Don't allow permutations for
9633         reduction chains.
9634         (vect_analyze_slp_instance): Support reduction chains.
9635         (vect_analyze_slp): Try to build SLP instance from reduction chains.
9636         (vect_get_constant_vectors):  Handle reduction chains.
9637         (vect_schedule_slp_instance): Mark the first statement of the
9638         reduction chain as reduction.
9639
9640 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
9641
9642         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
9643         names for group elements access.
9644         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
9645         reduction chains as well.  Remove data reference and interleaving
9646         related words from the fields names.
9647         * tree-vect-loop.c (vect_transform_loop): Use new names for group
9648         elements access.
9649         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
9650         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
9651         vect_update_interleaving_chain, vect_same_range_drs,
9652         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
9653         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
9654         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
9655         vect_analyze_group_access, vect_analyze_data_ref_access,
9656         vect_create_data_ref_ptr, vect_transform_strided_load,
9657         vect_record_strided_load_vectors): Likewise.
9658         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
9659         vect_model_load_cost, vectorizable_store, vectorizable_load,
9660         vect_remove_stores, new_stmt_vec_info): Likewise.
9661         * tree-vect-slp.c (vect_build_slp_tree,
9662         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
9663
9664 2011-05-18  Richard Guenther  <rguenther@suse.de>
9665
9666         PR middle-end/48989
9667         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
9668         operand verification.
9669         (verify_gimple_assign_binary): Likewise.
9670         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
9671         to non-1-precision BOOLEAN_TYPEs.
9672
9673 2011-05-18  Tom de Vries  <tom@codesourcery.com>
9674
9675         PR target/45098
9676         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
9677
9678 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
9679
9680         PR tree-optimization/49000
9681         * tree-ssa.c (execute_update_addresses_taken): Call
9682         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
9683         be rewritten and decl has been marked for renaming, reset
9684         the debug stmt.
9685
9686 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
9687
9688         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
9689         enum_opts_set when testing if attributes have set -mfpmath=.
9690
9691 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
9692
9693         * config/mips/mips.c (mips_handle_option): Remove unused variable.
9694
9695 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
9696
9697         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
9698         info->entry with 0
9699         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
9700         id.transform_lang_insert_block with NULL.
9701
9702 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
9703
9704         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
9705         (output_fp_compare): Change args 3 and 4 to bool.
9706         (ix86_expand_call): Change arg 6 to bool.
9707         (ix86_attr_length_immediate_default): Change arg 2 to bool.
9708         (ix86_attr_length_vex_default): Change arg 3 to bool.
9709         * config/i386/i386.md: Update all uses.
9710         * config/i386/i386.c: Ditto.
9711         (ix86_flags_dependent): Change return type to bool.
9712
9713 2011-05-17  Richard Guenther  <rguenther@suse.de>
9714
9715         * gimple.c (type_hash_pair_compare): Fix comparison.
9716
9717 2011-05-17  Richard Guenther  <rguenther@suse.de>
9718
9719         * gimple.c (iterative_hash_gimple_type): Simplify singleton
9720         case some more, fix final hash value of the non-singleton case.
9721
9722 2011-05-17  Richard Guenther  <rguenther@suse.de>
9723
9724         PR bootstrap/49013
9725         Revert
9726         2011-05-16  Richard Guenther  <rguenther@suse.de>
9727
9728         * gimple.c (gimple_types_compatible_p_1): Use names of the
9729         type itself, not its main variant.
9730         (iterative_hash_gimple_type): Likewise.
9731
9732 2011-05-17  Richard Guenther  <rguenther@suse.de>
9733
9734         * gimple.c (gimple_register_canonical_type): Use the main-variant
9735         leader for computing the canonical type.
9736
9737 2011-05-17  Nick Clifton  <nickc@redhat.com>
9738
9739         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
9740         moves.
9741
9742         * config/rx/rx.md: Add peephole to remove redundant extensions
9743         after loads.
9744         (bitset_in_memory): Use rx_restricted_mem_operand.
9745         (bitinvert_in_memory): Likewise.
9746         (bitclr_in_memory): Likewise.
9747
9748 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
9749             Nick Clifton  <nickc@redhat.com>
9750
9751         * config/rx/rx.md: Add peepholes to match a register move followed
9752         by a comparison of the moved register.  Replace these with an
9753         addition of zero that does both actions in one instruction.
9754
9755 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
9756
9757         PR target/48986
9758         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
9759         predicate to allow CONST_INT.
9760         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
9761
9762 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
9763
9764         * opts-common.c (opt_enum_arg_to_value): New.
9765         * opts.h (opt_enum_arg_to_value): Declare.
9766         * config/i386/i386.opt (fpmath): Remove.
9767         (mfpmath=): Use Enum, Init and Save.
9768         (fpmath_unit): New Enum and EnumValue entries.
9769         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
9770         name for function fpmath state.
9771         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
9772         * config/i386/i386.c: Include diagnostic.h.
9773         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
9774         (ix86_target_string): Take enum fpmath_unit value instead of string.
9775         (ix86_debug_options): Update call to ix86_target_string.
9776         (ix86_option_override_internal): Don't process fpmath strings here.
9777         (x86_function_specific_save, ix86_function_specific_restore):
9778         Don't handle fpmath state specially.
9779         (ix86_function_specific_print): Pass fpmath state to
9780         ix86_target_string instead of printing in this function.
9781         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
9782         Handle enum attributes.
9783         (IX86_ATTR_ENUM, ix86_opt_enum): New.
9784         (ix86_valid_target_attribute_tree): Update option_strings
9785         handling.  Handle fpmath as enum option.
9786         (ix86_can_inline_p): Update field names for function fpmath state.
9787         (ix86_expand_builtin): Update call to ix86_target_string.
9788         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
9789         (ix86_fpmath): Remove.
9790         * config/i386/t-i386 (i386.o): Update dependencies.
9791
9792 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
9793
9794         PR preprocessor/48677
9795         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
9796         from decoded_options[0], not from itself.
9797
9798 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
9799
9800         * config/i386/constraints.md (z): New constraint.
9801         * config/i386/i386.c (c): New mode attribute.
9802         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
9803         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
9804         constraint for operand 0.
9805         (*call_vzeroupper): Ditto.
9806         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
9807         (*call_rex64_ms_sysv_vzeroupper): Ditto.
9808         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
9809         Use "lzm" constraint for operand 0.
9810         (*call_pop_vzeroupper): Ditto.
9811         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
9812         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
9813         constraint for operand 0.
9814         (*sibcall_vzeroupper): Ditto.
9815         (*sibcall_rex64_ms_sysv): Ditto.
9816         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
9817         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
9818         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
9819         (*sibcall_pop_vzeroupper): Ditto.
9820         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
9821         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
9822         mode iterator.  Use "<c>zm" constraint for operand 1.
9823         (*call_value_vzeroupper): Ditto.
9824         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
9825         for operand 1.
9826         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
9827         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
9828         *call_value_pop_1.  Use "lzm" constraint for operand 1.
9829         (*call_value_pop_vzeroupper): Ditto.
9830         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
9831         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
9832         mode iterator.  Use "Uz" constraint for operand 1.
9833         (*sibcall_value_vzeroupper): Ditto.
9834         (*sibcall_value_rex64_ms_sysv): Ditto.
9835         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
9836         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
9837         constraint for operand 1.
9838         (*sibcall_value_pop_vzeroupper): Ditto.
9839         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
9840         and "z" constraint for operand 2.
9841         (*tls_global_dynamic_32_gnu): Ditto.
9842         (*tls_local_dynamic_base_32_gnu): Ditto.
9843         (*tls_local_dynamic_base_64): Ditto.
9844         (*tls_local_dynamic_32_once): Ditto.
9845         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
9846         Update all callers.
9847         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
9848
9849 2011-05-16  Richard Guenther  <rguenther@suse.de>
9850
9851         * gimple.c (gimple_types_compatible_p_1): Use names of the
9852         type itself, not its main variant.
9853         (iterative_hash_gimple_type): Likewise.
9854
9855 2011-05-16  Richard Guenther  <rguenther@suse.de>
9856
9857         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
9858         always visit pointer target and function result and argument types.
9859
9860 2011-05-16  Jason Merrill  <jason@redhat.com>
9861
9862         PR c++/48999
9863         * tree-inline.c (copy_statement_list): Put back recursion.
9864
9865 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
9866
9867         PR target/27663
9868         PR target/41076
9869         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
9870         * config/avr/avr.md ("*ior<mode>qi.byte0",
9871         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
9872
9873 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
9874
9875         PR target/45099
9876         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
9877         register is needed for a function argument.
9878
9879 2011-05-16  Richard Guenther  <rguenther@suse.de>
9880
9881         * gimple.c (struct type_hash_pair): New type.
9882         (type_hash_pair_compare): New function.
9883         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
9884
9885 2011-05-16  Revital Eres  <revital.eres@linaro.org>
9886
9887         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
9888
9889 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
9890
9891         * config/i386/i386.md (floating point move splitters): Fix
9892         usage of standard_80387_constant_p.
9893         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
9894
9895 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
9896
9897         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
9898
9899 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
9900
9901         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
9902         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
9903         (tree_ssa_lim_finalize): Likewise.
9904
9905 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
9906
9907         * config/i386/constraint.md (Yd, Yx): New register constraints.
9908         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
9909         Yd conditional register constraint.
9910         (*movtf_internal): Use standard_sse_constant_opcode.
9911         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
9912         Yx conditional register constraint.
9913         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
9914         Yd conditional register constraint.  Use standard_sse_constant_p to
9915         check for valid SSE constants and call standard_sse_constant_opcode to
9916         output SSE insn.
9917         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
9918         constants and call standard_sse_constant_opcode to output SSE insn.
9919         * config/i386/i386.c (ix86_option_ovverride_internal): Set
9920         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
9921         optimize_size is set.
9922         (standard_sse_constant_opcode): Output conditional AVX insn templates.
9923
9924 2011-05-14  Tobias Burnus  <burnus@net-b.de>
9925
9926         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
9927
9928 2011-05-13  Martin Jambor  <mjambor@suse.cz>
9929
9930         * ipa-prop.c (ipa_cst_from_jfunc): New function.
9931         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
9932         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
9933         (evaluate_conditions_for_ipcp_clone): Removed.
9934         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
9935         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
9936         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
9937
9938 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
9939
9940         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
9941         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
9942         lieu of MAY_HAVE_DEBUG_STMTS.
9943         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
9944         debug statements if !MAY_HAVE_DEBUG_STMTS.
9945
9946 2011-05-13  Martin Thuresson  <martint@google.com>
9947
9948         PR gcov-profile/47793
9949         * libgcov.c (gcov_exit): Support relative profile paths.
9950         * doc/invoke.texi (-fprofile-dir): Update for above change.
9951
9952 2011-05-13  Richard Guenther  <rguenther@suse.de>
9953
9954         * gimple.c (gimple_canonical_types_compatible_p): Do not use
9955         type-pair caching, do not compare hashes.
9956
9957 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
9958
9959         PR middle-end/48965
9960         * tree-cfg.c (edge_to_cases_cleanup): Return true.
9961         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
9962
9963 2011-05-13  Kai Tietz  <ktietz@redhat.com>
9964
9965         * gimplify.c (gimplify_expr): Make sure operand is boolified.
9966         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
9967         compatible type for TRUTH_NOT_EXPR.
9968
9969 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
9970
9971         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
9972         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
9973         can_create_pseudo_p ().
9974
9975 2011-05-13  Richard Guenther  <rguenther@suse.de>
9976
9977         PR lto/48978
9978         * gimple.c (iterative_hash_gimple_type): Revert change in
9979         pointer target and function result and argument hashing.
9980
9981 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
9982
9983         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
9984         (*movxf_internal_nointeger): Ditto.
9985         (*movdf_internal_rex64): Ditto.
9986         (*movdf_internal): Ditto.
9987         (*movdf_internal_nointeger): Ditto.
9988         (*movsf_internal): Ditto.
9989         (sincos splitters): Use can_create_pseudo ().
9990
9991 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
9992
9993         * config/i386/i386-opts.h: New.
9994         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
9995         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
9996         ix86_section_threshold): Remove.
9997         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
9998         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
9999         OPT_mbranch_cost_.
10000         (ix86_option_override_internal): Don't decode strings for options
10001         other than -march=, -mtune= and -mfpmath=.  Don't allow for
10002         __attribute__ uses in remaining diagnostics for options with
10003         string arguments.  Don't check for integer arguments being negative.
10004         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
10005         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
10006         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
10007         ix86_branch_cost, ix86_section_threshold): Remove.
10008         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
10009         HeaderInclude.
10010         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
10011         but not Var.
10012         (masm=): Use Enum and Init.
10013         (asm_dialect): New Enum and EnumValue entries.
10014         (mbranch-cost=): Use UInteger.
10015         (mlarge-data-threshold=): Use UInteger and Init.
10016         (mcmodel=): Use Enum and Init.
10017         (cmodel): New Enum and EnumValue entries.
10018         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
10019         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
10020         mregparm=): Use UInteger.
10021         (mstringop-strategy=): Use Enum and Init.
10022         (stringop_alg): New Enum and EnumValue entries.
10023         (mtls-dialect=): Use Enum and Init.
10024         (tls_dialect): New Enum and EnumValue entries.
10025         (mabi=): Use Enum and Init.
10026         (calling_abi): New Enum and EnumValue entries.
10027         (mveclibabi=): Use Enum and Init.
10028         (ix86_veclibabi): New Enum and EnumValue entries.
10029
10030 2011-05-13  Nick Clifton  <nickc@redhat.com>
10031
10032         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
10033         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
10034
10035 2011-05-13  Kai Tietz  <ktietz@redhat.com>
10036
10037         PR middle-end/48984
10038         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
10039         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
10040         (gimple_boolify): Check for cast for boolean_type_node instead for
10041         BOOLEAN_TYPE.
10042
10043 2011-05-13  Richard Guenther  <rguenther@suse.de>
10044
10045         PR tree-optimization/48172
10046         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
10047         multiplying by number of iterations for equal step.
10048         (vect_create_cond_for_alias_checks): Likewise.
10049
10050 2011-05-13  Andreas Schwab  <schwab@redhat.com>
10051
10052         * configure.ac: Use AS_HELP_STRING throughout.
10053         * configure: Regenerate.
10054
10055 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
10056
10057         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
10058         (ix86_emit_restore_regs_using_mov): Likewise.
10059         (ix86_emit_restore_sse_regs_using_mov): Likewise.
10060
10061 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
10062
10063         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
10064         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
10065         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
10066         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
10067         RTX_OK_FOR_OLO10_P): ...here.
10068         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
10069         SYMBOLIC_CONST.
10070
10071 2011-05-12  Kai Tietz  <ktietz@redhat.com>
10072
10073         * gimplify.c (gimple_boolify): Re-boolify expression
10074         arguments even if expression type is of kind BOOLEAN_TYPE.
10075         (gimplify_boolean_expr): Removed.
10076         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
10077         and XOR. Additional take care that we keep expression's type.
10078         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
10079         of TRUTH_AND|OR|XOR_EXPR.
10080
10081 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
10082
10083         PR tree-optimization/48975
10084         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
10085         on all bbs here and free and clear ifc_bbs at the end.
10086
10087 2011-05-12  Richard Guenther  <rguenther@suse.de>
10088
10089         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
10090         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
10091         until after simple checks.
10092         (gimple_types_compatible_p): Likewise.
10093         (iterative_hash_gimple_type): Always hash pointer targets
10094         and function return and argument types.
10095         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
10096         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
10097         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
10098         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
10099         completely in the simple compare section.
10100         (gimple_register_canonical_type): Query the cache again after
10101         registering.
10102
10103 2011-05-12  Richard Guenther  <rguenther@suse.de>
10104
10105         PR tree-optimization/48172
10106         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
10107         the number of iterations from the segment size calculation.
10108         (vect_create_cond_for_alias_checks): Adjust.
10109
10110 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
10111
10112         PR debug/48967
10113         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
10114         if validate_subreg fails.
10115
10116 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
10117
10118         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
10119         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
10120         early.
10121
10122 2011-05-12  DJ Delorie  <dj@redhat.com>
10123
10124         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
10125         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
10126         created builtin into rx_builtins array.
10127         (rx_builtin_decl): New function.
10128         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
10129
10130 2011-05-12  DJ Delorie  <dj@redhat.com>
10131             Nick Clifton  <nickc@redhat.com>
10132
10133         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
10134         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
10135         (rx_is_legitimate_address): Add pre-decrement and post-increment
10136         addressing in HImode and QImode.  Fix test for out of range
10137         REG+INT addressing.
10138         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
10139         (rx_align_for_label): Test label before extracting its usage count.
10140         (rx_adjust_insn_lengths): Fix selection of insn codes.
10141         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
10142
10143 2011-05-11  Jason Merrill  <jason@redhat.com>
10144
10145         * tree.c (type_hash_canon): Use struct tree_type_non_common.
10146
10147 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
10148
10149         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
10150         reindent the subsequent block.
10151
10152 2011-05-11  Satoru Takabayashi  <satorux@google.com>
10153             Paul Pluzhnikov  <ppluzhnikov@google.com>
10154
10155         * doc/install.texi (Configuration): Document --with-linker-hash-style.
10156         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
10157         * config.in: Add LINKER_HASH_STYLE.
10158         * configure.ac: Add --with-linker-hash-style.
10159         * configure: Regenerate.
10160
10161 2011-05-11  Richard Guenther  <rguenther@suse.de>
10162
10163         PR middle-end/48964
10164         * gimple.c (iterative_hash_canonical_type): Fix typo.
10165
10166 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
10167
10168         * config/i386/i386.c (legitimize_tls_address)
10169         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
10170         expanders directly for TARGET_GNU2_TLS.  Determine pic and
10171         __tls_get_addr symbol reference here.  Update call to
10172         gen_tls_global_dynamic_{32,64} for added arguments.
10173         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
10174         expanders directly for TARGET_GNU2_TLS.  Determine
10175         __tls_get_addr symbol reference here.  Update call to
10176         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
10177         unique UNSPEC REG_EQUIV to libcall block.
10178         (ix86_tls_get_addr): Declare static.
10179         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
10180         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
10181         Do not determine pic and __tls_get_addr symbol reference here. Do not
10182         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
10183         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
10184         (tls_global_dynamic_64): Add operand 2.  Do not determine
10185         __tls_get_addr symbol reference here.  Do not call
10186         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
10187         (tls_local_dynamic_base64): Ditto for operand 1.
10188
10189 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
10190
10191         * function.c (expand_function_start): Initialize stack_check_probe_note
10192         only if the generic stack checking mechanism is used.
10193
10194 2011-05-11  Richard Guenther  <rguenther@suse.de>
10195
10196         PR tree-optimization/15256
10197         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
10198         (A & B) | C, combine (A op CST1) op CST2.
10199         (tree_ssa_forward_propagate_single_use_vars): Only bother to
10200         visit assigns that have uses.
10201
10202 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
10203
10204         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
10205         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
10206         (unpack_ts_type_common_value_fields): ...this.  Update comment.
10207         (unpack_value_fields): Adjust for renaming.
10208         (lto_input_ts_type_tree_pointers): Split into...
10209         (lto_input_ts_type_common_tree_pointer): ...this and...
10210         (lto_input_ts_type_non_common_tree_pointers): ...this.
10211         (lto_input_tree_pointers): Adjust for above split.
10212         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
10213         (pack_ts_type_common_value_fields): ...this.  Update comment.
10214         (lto_output_ts_type_tree_pointers): Split into...
10215         (lto_output_ts_type_common_tree_pointers): ...this and...
10216         (lto_output_ts_type_non_common_tree_pointers): ...this.
10217         (lto_output_tree_pointers): Adjust for above split.
10218         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
10219         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
10220         * stor-layout.c (vector_type_mode): Adjust location of mode field.
10221         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
10222         Define.
10223         (struct tree_type): Split into...
10224         (struct tree_type_common: ...this and...
10225         (struct tree_type_with_lang_specific): ...this and...
10226         (struct tree_type_non_common): ...this.  Adjust accessor macros
10227         accordingly.
10228         (TYPE_VALUES_RAW): Define.
10229         (union tree_node): Update for above changes.
10230         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
10231         TS_TYPE_NON_COMMON.
10232         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
10233         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
10234         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
10235         * treestructu.def (TS_TYPE): Remove.
10236         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
10237         Define.
10238
10239 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
10240
10241         PR debug/48159
10242         * tree-ssa.c (reset_debug_uses): New function.
10243         * tree-flow.h (reset_debug_uses): New prototype.
10244         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
10245         * tree-loop-distribution.c (generate_loops_for_partition): Call
10246         reset_debug_uses on the stmts that will be removed.  Keep around
10247         all debug stmts, don't count them as bits in partition bitmap.
10248         (generate_builtin): Don't count debug stmts or labels as bits in
10249         partition bitmap.
10250
10251 2011-05-11  Richard Guenther  <rguenther@suse.de>
10252
10253         * gimple.c (gimple_type_hash_1): Merge with ...
10254         (gimple_type_hash): ... this.
10255         (gtc_visit): Remove mode parameter and simplify accordingly.
10256         (gimple_types_compatible_p_1): Likewise.
10257         (gimple_types_compatible_p): Likewise.
10258         (iterative_hash_gimple_type): Likewise.
10259         (visit): Likewise.
10260         (gimple_type_eq): Adjust.
10261
10262 2011-05-11  Revital Eres  <revital.eres@linaro.org>
10263
10264         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
10265         enters the branch create an anti edge in the opposite direction
10266         to prevent the creation of reg-moves.
10267         * modulo-sched.c: Adjust comment to reflect the fact we are
10268         scheduling closing branch.
10269         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
10270         (stage_count): New field in struct partial_schedule.
10271         (calculate_stage_count): New function.
10272         (normalize_sched_times): Rename to reset_sched_times and handle
10273         incrementing the sched time of the nodes by a constant value
10274         passed as parameter.
10275         (duplicate_insns_of_cycles): Skip closing branch.
10276         (sms_schedule_by_order): Schedule closing branch.
10277         (ps_insn_find_column): Handle closing branch.
10278         (sms_schedule): Call reset_sched_times and adjust the code to
10279         support scheduling of the closing branch.
10280         (ps_insert_empty_row): Update calls to normalize_sched_times
10281         and rotate_partial_schedule functions.
10282
10283 2011-05-11  Richard Guenther  <rguenther@suse.de>
10284
10285         PR middle-end/48953
10286         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
10287
10288 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
10289
10290         * opts.c (finish_options): Move warning settings from process_options.
10291         * toplev.c (process_options): Move warning settings to finish_options.
10292
10293 2011-05-11  Richard Guenther  <rguenther@suse.de>
10294
10295         PR tree-optimization/18041
10296         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
10297         (simplify_bitwise_binary): ... this.  Handle operand conversions
10298         by applying them to the result instead.
10299         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
10300
10301 2011-05-11  Richard Guenther  <rguenther@suse.de>
10302
10303         * gimple.c (gimple_canonical_types_compatible_p): Split out
10304         from gimple_types_compatible_p and friends.  Do not recurse
10305         to pointed-to types.
10306         (gimple_canonical_type_eq): Use it.
10307         (iterative_hash_canonical_type): Split out from
10308         iterative_hash_gimple_type and friends.  Do not recurse
10309         to pointed-to types.
10310         (gimple_canonical_type_hash): Use it, allocate the hash here.
10311
10312 2011-05-11  Revital Eres  <revital.eres@linaro.org>
10313
10314         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
10315         recognizing doloop.
10316
10317 2011-05-11  Revital Eres  <revital.eres@linaro.org>
10318
10319         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
10320         instead of PREV_INSN.
10321
10322 2011-05-11  Revital Eres  <revital.eres@linaro.org>
10323
10324         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
10325         * loop-doloop.c (doloop_condition_get): Likewise.
10326         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
10327         (doloop_end): New.
10328         * config/arm/arm.md (*addsi3_compare0): Remove "*".
10329
10330 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
10331
10332         * tree.def (CASE_LABEL_EXPR): Add an operand.
10333         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
10334
10335 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
10336
10337         * c-decl.c (c_override_global_bindings_to_false): Remove.
10338         (global_bindings_p): Don't check
10339         c_override_global_bindings_to_false.
10340         * c-tree.h (c_override_global_bindings_to_false): Remove.
10341         * c-typeck.c (composite_type): Don't set
10342         c_override_global_bindings_to_false.
10343
10344 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
10345
10346         PR target/48857, 48495
10347         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
10348         (VSX_MODE): Ditto.
10349         (VSX_MOVE_MODE): Ditto.
10350         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
10351         VSX vector types.  Add V2DImode.
10352         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
10353         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
10354         (MODES_TIEABLE_P): Ditto.
10355
10356         * config/rs6000/rs6000.c (rs6000_emit_move): Use
10357         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
10358         VSX_VECTOR_MODE.
10359         (init_cumulative_args): Ditto.
10360         (rs6000_function_arg_boundary): Ditto.
10361         (rs6000_function_arg_advance_1): Ditto.
10362         (rs6000_function_arg): Ditto.
10363         (rs6000_function_ok_for_sibcall): Ditto.
10364         (emit_frame_save): Ditto.
10365         (rs6000_function_value): Ditto.
10366         (rs6000_libcall_value): Ditto.
10367
10368 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
10369
10370         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
10371         i386/darwin-lib.h to $libgcc_tm_file.
10372         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
10373
10374 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
10375
10376         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
10377
10378 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
10379
10380         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
10381         * config/rs6000/rs6000-tables.opt: New file (generated).
10382         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
10383         rs6000/rs6000-tables.opt to extra_options.
10384         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
10385         * config/rs6000/rs6000.c (rs6000_select): Remove.
10386         (processor_target_table): Move contents to rs6000-cpus.def.
10387         (darwin_rs6000_override_options): Check
10388         global_options_set.x_rs6000_cpu_index instead of
10389         rs6000_select[1].string.
10390         (rs6000_option_override_internal): Likewise.
10391         (rs6000_handle_option): Don't assert that global structures are in
10392         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
10393         (rs6000_default_cpu): New variable.
10394         (rs6000_file_start): Set it instead of local default_cpu.  Check
10395         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
10396         global_options_set.x_rs6000_tune_index instead of rs6000_select.
10397         (rs6000_darwin_file_start): Check rs6000_default_cpu and
10398         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
10399         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
10400         rs6000_select): Remove.
10401         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
10402         Remove.
10403         (mcpu=, mtune=): Use Var, Init, Enum and Save.
10404         * config/rs6000/t-rs6000
10405         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
10406         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
10407         global_options_set.x_rs6000_cpu_index instead of
10408         rs6000_select[1].string.
10409         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
10410         global_options_set.x_rs6000_cpu_index instead of
10411         rs6000_select[1].string.
10412
10413 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
10414
10415         * config.gcc (libgcc_tm_file): Define instead of including files
10416         from ../../libgcc/config/ in tm_file.
10417         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
10418         * configure: Regenerate.
10419         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
10420         libgcc_tm.h, cs-libgcc_tm.h): New.
10421         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
10422         (clean): Remove libgcc_tm.h.
10423         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
10424         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
10425         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
10426
10427 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
10428
10429         PR target/48896
10430         * config/avr/avr.c (avr_ret_register): Return unsigned int
10431         instead of int.
10432         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
10433         it to avr_libcall_value.
10434         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
10435         expand_expr.
10436         (avr_expand_binop_builtin): Ditto.
10437         (avr_expand_unop_builtin): Ditto.
10438
10439 2011-05-10  DJ Delorie  <dj@redhat.com>
10440
10441         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
10442         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
10443         * config/rx/rx.c (rx_align_for_label): Add label and
10444         uses_threshold parameters.  Do not align when the label is not
10445         used enough.
10446         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
10447
10448 2011-05-10  Richard Guenther  <rguenther@suse.de>
10449
10450         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
10451         a series of conversions and apply foldings similar to what
10452         fold-const does.
10453         (tree_ssa_forward_propagate_single_use_vars): Call it.
10454
10455 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
10456
10457         PR tree-optimization/48611
10458         PR tree-optimization/48794
10459         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
10460         referenced from RESX or EH_DISPATCH arguments.
10461
10462         PR debug/48928
10463         * dfp.c (decimal_to_decnumber): Handle conversion from
10464         dconst{1,2,m1,half}.
10465
10466 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
10467
10468         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
10469         for !flag_prefer_avx128.
10470         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
10471
10472 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
10473
10474         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
10475         (fold_ternary_loc): Use expr_location_or.
10476
10477 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
10478
10479         PR debug/48853
10480         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
10481         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
10482         Pmode and mem_mode is not VOIDmode.
10483
10484 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
10485
10486         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
10487         TYPE_QUAL_RESTRICT): Convert to enum.
10488
10489 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
10490
10491         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
10492         (const_pow2_1_to_8_operand): Ditto.
10493         (const_pow2_1_to_128_operand): Ditto.
10494         (const_pow2_1_to_32768_operand): Ditto.
10495         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
10496         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
10497         in insn constraint to check integer value of operand 3.
10498         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
10499
10500         (PINSR_MODE): New mode iterator.
10501         (sse2p4_1): New mode attribute.
10502         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
10503         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
10504         iterator.  Use const_int_operand instead of
10505         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
10506         exact_log2 in insn constraint to check integer value of operand 3.
10507
10508 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
10509
10510         * config/i386/sse.md (blendbits): Remove mode attribute.
10511         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
10512         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
10513         Check integer value of operand 3 in insn constraint.
10514
10515 2011-05-09  Richard Guenther  <rguenther@suse.de>
10516
10517         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
10518         for diagnostics.
10519         (lto_symtab_merge): Likewise.  Do not register types here.
10520         (lto_symtab_merge_decls_2): Likewise.
10521         (lto_symtab_merge_decls_1): Likewise.
10522         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
10523         * gimple.c (enum gtc_mode): Declare.
10524         (gimple_types_compatible_p): Make static.
10525
10526 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10527
10528         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
10529         temporary register to match Pmode.
10530
10531 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
10532
10533         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
10534         and *vec_concatv4si_1_avx.
10535
10536 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
10537
10538         PR rtl-optimization/48927
10539         * ira-conflicts.c (commutative_constraint_p): Use
10540         recog_data.alternative_enabled_p to disable alternatives where
10541         "enabled" attribute is false.
10542         (get_dup_num): Ditto.
10543         * ira-lives.c (single_reg_class): Ditto.
10544         (ira_implicitly_set_insn_hard_regs): Ditto.
10545
10546 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
10547
10548         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
10549         (dataflow_set_preserve_mem_locs): Likewise.
10550
10551 2011-05-09  Philipp Thomas  <pth@suse.de>
10552
10553         * config/mep/mep.c (mep_validate_vliw): Syntax description
10554         should not be translated.
10555
10556 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
10557
10558         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
10559         * config/mips/mips-tables.opt: New file (generated).
10560         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
10561         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
10562         MIPS_ARCH_OPTION_NATIVE): Define.
10563         * config/mips/mips.c (mips_cpu_info_table): Move contents to
10564         mips-cpus.def.
10565         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
10566         mips_parse_cpu): Remove.
10567         (mips_cpu_info_from_opt, mips_default_arch): New.
10568         (mips_handle_option): Don't assert that global structures are in
10569         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
10570         (mips_option_override): Use new variables and functions to set
10571         state of these options.  Use strcmp to check for individual CPU names.
10572         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
10573         definition.
10574         * config/mips/mips.opt (march=): Use ToLower and Enum.
10575         (mips): Use ToLower, Enum and Var.
10576         (mtune=): Use ToLower and Enum.
10577         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
10578
10579 2011-05-08  Jan Hubicka  <jh@suse.cz>
10580
10581         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
10582         Arrange type pairs to be UID ordered.
10583         (gimple_lookup_type_leader): Make inline.
10584
10585 2011-05-09  Nick Clifton  <nickc@redhat.com>
10586
10587         PR target/48899
10588         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
10589         PROCESSOR_DEFAULT.
10590
10591         PR target/48897
10592         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
10593         variable 's'.
10594
10595 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
10596
10597         * combine.c (simplify_comparison): Abstract out parts into...
10598         (simplify_compare_const): ... new function.
10599         (try_combine): Generalize parallel arithmetic/compare combining
10600         to call simplify_compare_const() and CANONICALIZE_COMPARE().
10601
10602 2011-05-08  Jan Hubicka  <jh@suse.cz>
10603
10604         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
10605         (cgraph_create_virtual_clone): Call hooks once virtual clone
10606         is finished.
10607         * cgraph.h (cgraph_clone_node): Update prototype.
10608         * ipa-cp.c (ipcp_estimate_growth): Use
10609         estimate_ipcp_clone_size_and_time.
10610         * ipa-inline-transform.c (clone_inlined_nodes): Update.
10611         * lto-cgraph.c (input_node): Update.
10612         * ipa-inline.c (recursive_inlining): Update.
10613         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
10614         (evaluate_conditions_for_known_args): Break out from ...
10615         (evaluate_conditions_for_edge): ... here.
10616         (evaluate_conditions_for_ipcp_clone): New function.
10617         (inline_node_duplication_hook): Update clone summary based
10618         on parameter map.
10619         (estimate_callee_size_and_time): Rename to ...
10620         (estimate_node_size_and_time): take NODE instead of EDGE;
10621         take POSSIBLE_TRUTHS as argument.
10622         (estimate_callee_size_and_time): Update.
10623         (estimate_ipcp_clone_size_and_time): New function.
10624         (do_estimate_edge_time): Update.
10625
10626 2011-05-08  Richard Guenther  <rguenther@suse.de>
10627
10628         PR middle-end/48908
10629         PR middle-end/48905
10630         * expmed.c (expand_shift_1): Compute adjusted constant shift
10631         amount manually.
10632
10633 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
10634
10635         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
10636
10637 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
10638
10639         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
10640
10641 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
10642
10643         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
10644
10645 2011-05-07  Jan Hubicka  <jh@suse.cz>
10646
10647         * ipa-inline-transform.c (inline_call): Account when program size
10648         decreases.
10649         * ipa-inline.c (relative_time_benefit): New function.
10650         (edge_badness): Reorganize to be power 2 based; fix thinko when
10651         computing badness for negative growth; update comments to match
10652         reality; better dumps.
10653
10654 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
10655
10656         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
10657         type to bool and adjust comment.
10658         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
10659         (fold_mathfn_compare): Remove calls to global_bindings_p.
10660         (fold_inf_compare): Likewise.
10661         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
10662         * c-tree.h (global_bindings_p): Adjust prototype.
10663         * c-decl.c (global_bindings_p): Return bool and simplify.
10664
10665 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
10666
10667         PR tree-optimization/48837
10668         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
10669         when accumulator transformation is performed.
10670
10671 2011-05-06  Jan Hubicka  <jh@suse.cz>
10672
10673         * i386.h (ix86_tune_indices): Add
10674         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
10675         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
10676         * i386.c (initial_ix86_tune_features): Add
10677         X86_SOFTARE_PREFETCHING_BENEFICIAL.
10678         (software_prefetching_beneficial_p): Remove predicate.
10679         (ix86_option_override_internal): Use new macro.
10680
10681 2011-05-06  Jan Hubicka  <jh@suse.cz>
10682
10683         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
10684
10685 2011-05-06  Jan Hubicka  <jh@suse.cz>
10686
10687         * cgraph.c (cgraph_add_thunk): Create real function node instead
10688         of alias node; finalize it and mark needed/reachale; arrange visibility
10689         to be right and add it into the corresponding same comdat group list.
10690         (dump_cgraph_node): Dump thunks.
10691         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
10692         cgraph_function_with_gimple_body_p,
10693         cgraph_first_function_with_gimple_body,
10694         cgraph_next_function_with_gimple_body): New functions.
10695         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
10696         New macros.
10697         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
10698         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
10699         * cgraphunit.c (cgraph_finalize_function): Only look into possible
10700         devirtualization when optimizing.
10701         (verify_cgraph_node): Verify thunks.
10702         (cgraph_analyze_function): Analyze thunks.
10703         (cgraph_mark_functions_to_output): Output thunks only in combination
10704         with function they are assigned to.
10705         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
10706         alias into normal node.
10707         (assemble_thunks): New functoin.
10708         (cgraph_expand_function): Use it.
10709         * lto-cgraph.c (lto_output_node): Stream thunks.
10710         (input_overwrite_node): Stream in thunks.
10711         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
10712         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
10713         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
10714         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
10715         (inline_analyze_function): Do not care about thunk jump functions.
10716         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
10717         * ipa-prop.c (ipa_prop_write_jump_functions): Use
10718         cgraph_function_with_gimple_body_p.
10719         * passes.c (do_per_function_toporder): Use
10720         cgraph_function_with_gimple_body_p.
10721         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
10722         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
10723         (function_called_by_processed_nodes_p): Likewise.
10724
10725 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
10726
10727         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
10728         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
10729         entries.
10730         (mabi=): Replace with separate entries for mabi=altivec,
10731         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
10732         mabi=ieeelongdouble and mabi=ibmlongdouble.
10733         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
10734         check for -mabi=spe without SPE ABI support here.
10735         (rs6000_handle_option): Replace OPT_mabi_ handling with
10736         OPT_mabi_altivec and OPT_mabi_spe handling.
10737
10738 2011-05-06  Cary Coutant  <ccoutant@google.com>
10739
10740         * dwarf2out.c (contains_subprogram_definition): New function.
10741         (should_move_die_to_comdat): Call it.
10742
10743 2011-05-06  Jeff Law  <law@redhat.com>
10744
10745         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
10746         remove_ctrl_stmt_and_useless_edges.
10747         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
10748         (fixup_template_block, thread_single_edge): Likewise.
10749         (mark_threaded_blocks): Use THREAD_TARGET.
10750
10751 2011-05-06  Alan Modra  <amodra@gmail.com>
10752
10753         PR target/48900
10754         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
10755         const0_rtx as the arg to the dummy __tls_get_addr libcall.
10756
10757 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
10758
10759         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
10760         constraint modifier to "r".
10761
10762 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
10763
10764         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
10765         fall through for OPT_mcmodel_.
10766
10767 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10768
10769         * config/s390/s390.c (s390_asm_trampoline_template): Comment
10770         instruction sizes.
10771         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
10772
10773 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10774
10775         PR target/47930
10776         * config/arm/arm.opt (marm): Document it.
10777         (mthumb): Reject negative variant.
10778
10779 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
10780
10781         PR target/48898
10782         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
10783         Fix typo in "ccvt" variable name.
10784
10785 2011-05-06  Tristan Gingold  <gingold@adacore.com>
10786
10787         PR target/48895
10788         * config/vms/vms-ar.c (main): Remove cwd variable.
10789
10790 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
10791
10792         PR debug/48902
10793         * var-tracking.c (prepare_call_arguments): Move else before #endif.
10794
10795 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
10796
10797         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
10798         * gimplify.c (gimplify_switch_expr): Likewise.
10799         * omp-low.c (expand_omp_sections): Likewise.
10800         * tree-eh.c (lower_try_finally_switch): Likewise.
10801         (lower_eh_dispatch): Likewise.
10802         * tree.h (build_case_label): Declare.
10803         * tree.c (build_case_label): Define.
10804
10805 2011-05-05  Jason Merrill  <jason@redhat.com>
10806
10807         PR c++/40975
10808         * tree-inline.c (copy_tree_r): Use copy_statement_list.
10809         (copy_statement_list): Don't recurse.
10810         * stor-layout.c (copy_self_referential_tree_r): Don't allow
10811         STATEMENT_LIST.
10812
10813 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
10814
10815         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
10816         through from -mfpu= handling.
10817         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
10818
10819 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
10820
10821         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
10822         POST_MODIFY.
10823
10824 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
10825
10826         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
10827         for 11.31.
10828         (hppa[12]*-*-hpux11*): Ditto.
10829         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
10830         * config/ia64/hpux-unix2003.h: New.
10831         * config/pa/pa-hpux1131.opt: New.
10832         * config/pa/pa-hpux1131.h: New.
10833         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
10834         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
10835         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
10836
10837 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
10838
10839         PR debug/48853
10840         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
10841         instead of mode as 3rd argument to recursive call.
10842         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
10843         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
10844         VOIDmode.
10845         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
10846         don't give up if mode is Pmode and mem_mode is not VOIDmode.
10847         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
10848         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
10849
10850 2011-05-05  Julian Brown  <julian@codesourcery.com>
10851
10852         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
10853         parenthesis in D-register case.
10854
10855 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
10856
10857         * opt-functions.awk (var_type_struct): Handle Enum options.
10858         * optc-gen.awk: Don't check range of variables of character type.
10859         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
10860         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
10861         rs6000_sdata_name, rs6000_explicit_options): Remove.
10862         (rs6000_option_override_internal): Check for -malign-power here.
10863         Use global_options_set instead of rs6000_explicit_options.
10864         (rs6000_parse_fpu_option): Remove.
10865         (rs6000_handle_option): Access variables via opts and opts_set
10866         pointers.  Use error_at and warning_at.  Add fall-through
10867         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
10868         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
10869         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
10870         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
10871         here.  Don't use rs6000_parse_fpu_option.
10872         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
10873         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
10874         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
10875         (mrecip=): Use Var.
10876         (mspe): Use Var and Save.
10877         (mtraceback=): Use Enum and Var.
10878         (rs6000_traceback_type): New Enum and EnumValue entries.
10879         (mfloat-gprs=): Use Enum, Var and Save.
10880         (rs6000_float_gprs): New Enum and EnumValue entries.
10881         (mlong-double-): use Var and Save.
10882         (msched-costly-dep=, minsert-sched-nops=): Use Var.
10883         (malign-): Use Enum and Var.
10884         (rs6000_alignment_flags): New Enum and EnumValue entries.
10885         (mfpu=): Use Enum.
10886         (fpu_type_t): New Enum and EnumValue entries.
10887         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
10888         global_options_set instead of rs6000_explicit_options.
10889         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
10890         global_options_set instead of rs6000_explicit_options.
10891         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
10892         global_options_set instead of rs6000_explicit_options.
10893         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
10894         global_options_set instead of rs6000_explicit_options.
10895         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
10896         global_options_set instead of rs6000_explicit_options.
10897         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
10898         global_options_set instead of rs6000_explicit_options.
10899         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
10900         definition.
10901         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
10902         global_options_set instead of rs6000_explicit_options.
10903         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
10904         (rs6000_cmodel): New Enum and EnumValue entries.
10905         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
10906         global_options_set instead of rs6000_explicit_options.
10907         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
10908         (mtls-size=): Use Enum and Var.
10909         (rs6000_tls_size): New Enum and EnumValue entries.
10910
10911 2011-05-05  Michael Matz  <matz@suse.de>
10912
10913         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
10914         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
10915         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
10916         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
10917         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
10918         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
10919         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
10920         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
10921         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
10922         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
10923         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
10924         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
10925         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
10926         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
10927         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
10928         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
10929
10930 2011-05-05  Richard Guenther  <rguenther@suse.de>
10931
10932         * expmed.c (expand_variable_shift): Rename to ...
10933         (expand_shift_1): ... this.  Take an expanded shift amount.
10934         For rotates recurse directly not building trees for the shift amount.
10935         (expand_variable_shift): Wrap around expand_shift_1.
10936         (expand_shift): Adjust.
10937
10938 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
10939
10940         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
10941
10942 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
10943
10944         * tree.h (get_pending_sizes): Remove prototype.
10945         (put_pending_size): Likewise.
10946         (put_pending_sizes): Likewise.
10947         * stor-layout.c (pending_sizes): Delete.
10948         (get_pending_sizes): Likewise.
10949         (put_pending_size): Likewise.
10950         (put_pending_sizes): Likewise.
10951         (variable_size): Do not call put_pending_size and tidy up.
10952         * function.h (struct function): Remove dont_save_pending_sizes_p.
10953         * lto-streamer-in.c (input_function): Do not stream it.
10954         * lto-streamer-out.c (output_function): Likewise.
10955         * tree-inline.c (initialize_cfun): Do not copy it.
10956         * c-decl.c (store_parm_decls): Do not set it.
10957         * omp-low.c (create_task_copyfn): Likewise.
10958         * tree-optimize.c (tree_rest_of_compilation): Likewise.
10959
10960 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
10961
10962         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
10963         conditions.
10964         (*movdf_internal): Ditto.
10965         (*movdf_internal_nointeger): Ditto.
10966         (*movsf_internal): Ditto.
10967
10968 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
10969
10970         * c-decl.c (finish_decl): Don't call get_pending_sizes.
10971         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
10972         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
10973         (c_variable_size): Remove.
10974         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
10975         call put_pending_sizes.
10976         (get_parm_info): Add parameter expr.  Use it to set
10977         arg_info->pending_sizes.
10978         (store_parm_decls): Use arg_info->pending_sizes instead or calling
10979         get_pending_sizes.
10980         * c-parser.c (c_parser_parms_declarator): Update call to
10981         c_parser_parms_list_declarator.
10982         (c_parser_parms_list_declarator): Take parameter expr.  Update
10983         call to push_parm_decl.  Update recursive call.  Don't call
10984         get_pending_sizes.  Update calls to get_parm_info.
10985         (c_parser_objc_method_definition): Update calls to
10986         c_parser_objc_method_decl and objc_start_method_definition.
10987         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
10988         (c_parser_objc_method_decl): Add parameter expr.  Update call to
10989         grokparm.
10990         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
10991         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
10992         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
10993
10994 2011-05-05  Michael Hope  <michael.hope@linaro.org>
10995
10996         PR pch/45979
10997         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
10998         __ARM_EABI__ hosts.
10999
11000 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11001
11002         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
11003         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
11004         (spu_output_mi_thunk): New function.
11005
11006 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11007
11008         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
11009         targetm.asm_out.print_operand.
11010         * config/sol2.c: Include target.h.
11011
11012 2011-05-04  Jan Hubicka  <jh@suse.cz>
11013
11014         * ipa-inline.c (reset_edge_caches): New function.
11015         (update_caller_keys): Add check_inlinablity_for; do not
11016         reset edge caches; remove now unnecesary loop.
11017         (update_callee_keys): Add comments; reset node_growth_cache of callee.
11018         (update_all_callee_keys): Likewise.
11019         (inline_small_functions): Sanity check cache; update code
11020         recomputing it.
11021
11022 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
11023
11024         PR rtl-optimization/47612
11025         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
11026         as the last insn of the sequence to be moved.
11027
11028 2011-05-04  Tobias Burnus  <burnus@net-b.de>
11029
11030         PR fortran/48864
11031         * doc/invoke.texi (Ofast): Document that it
11032         enables Fortran's -fno-protect-parens.
11033
11034 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
11035
11036         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
11037
11038 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
11039
11040         * stor-layout.c (variable_size): Do not issue errors.
11041
11042 2011-05-04  Richard Guenther  <rguenther@suse.de>
11043
11044         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
11045         for array-ref indices.
11046         (tree_coverage_counter_addr): Likewise.
11047         (build_fn_info_type): Use size_int for index types.
11048         (build_gcov_info): Likewise.
11049
11050 2011-05-04  Richard Guenther  <rguenther@suse.de>
11051
11052         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
11053         to build_int_cst.
11054         * c-typeck.c (really_start_incremental_init): Use bitsize_int
11055         for constructor indices.
11056         (push_init_level): Likewise.
11057
11058 2011-05-04  Richard Guenther  <rguenther@suse.de>
11059
11060         * explow.c (promote_mode): Move variable declarations before code.
11061
11062 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
11063
11064         * tree.h (build_function_type_array): Declare.
11065         (build_varargs_function_type_array): Declare.
11066         (build_function_type_vec, build_varargs_function_type_vec): Define.
11067         * tree.c (build_function_type_array_1): New function.
11068         (build_function_type_array): New function.
11069         (build_varargs_function_type_array): New function.
11070
11071 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
11072
11073         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
11074         before setting STMT_VINFO_TYPE.
11075
11076 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11077
11078         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
11079         instead of spu_pass_by_reference.
11080
11081 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11082
11083         * calls.c (emit_library_call_value_1): Invoke
11084         promote_function_mode hook on libcall arguments.
11085         * explow.c (promote_function_mode, promote_mode): Handle TYPE
11086         argument being NULL.
11087         * targhooks.c (default_promote_function_mode): Lisewise.
11088         * config/s390/s390.c (s390_promote_function_mode): Likewise.
11089         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
11090
11091         * doc/tm.texi: Document that TYPE argument might be NULL.
11092
11093 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
11094
11095         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
11096
11097 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
11098
11099         From Bernd Schmidt
11100         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
11101
11102 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11103
11104         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
11105         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
11106         Move ...
11107         * mips-tfile.c: ... here.
11108         Don't include coretypes.h, tm.h, filenames.h.
11109         (saber_stop): Remove definition and all calls.
11110         [__SABER__]: Remove.
11111         (__LINE__): Remove default.
11112         (Size_t, Ptrdiff_t): Remove definitions.
11113         Replace by size_t, ptrdiff_t.
11114         [!MIPS_DEBUGGING_INFO]: Remove.
11115         (SHASH_SIZE, THASH_SIZE): Remove defaults.
11116         (progname): Add const.
11117         (STATIC): Remove.
11118         Replace all uses by static.
11119         (ALIGN_SYMTABLE_OFFSET): Remove default.
11120         * mips-tdump.c: Don't include coretypes.h, tm.h.
11121         Remove !MIPS_IS_STAB guard.
11122         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
11123         $(TM_H), filenames.h dependencies.
11124         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
11125
11126 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
11127
11128         From Jie Zhang
11129         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
11130         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
11131
11132 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
11133
11134         From Bernd Schmidt
11135         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
11136         account and save/restore RETS.
11137         (PROFILE_BEFORE_PROLOGUE): Define.
11138         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
11139         the push insn to use predecrement.
11140
11141 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
11142
11143         From Jie Zhang
11144         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
11145
11146 2011-05-04  Nick Clifton  <nickc@redhat.com>
11147
11148         * config/mn10300/mn10300.c: Include cfgloop.h.
11149         (DUMP): New macro.
11150         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
11151         Lcc or a FLcc insn into the instruction stream.
11152         (mn10300_block_contains_call): New function.  Returns true if the
11153         given basic block contains a CALL insn.
11154         (mn10300_loop_contains_call_insn): New function.  Returns true if
11155         the given loop contains a CALL insn.
11156         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
11157         to use the SETLB and Lcc or FLcc insns.
11158         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
11159         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
11160         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
11161         disable the SETLB optimization.
11162         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
11163         __SETLB__ or __NO_SETLB__.
11164         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
11165         (movsf_internal): Handle MDR register.
11166         (cmpsi): Make visible.
11167         (setlb): New pattern.
11168         (Lcc): New pattern.
11169         (FLcc): New pattern.
11170
11171 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
11172
11173         PR target/48860
11174         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
11175         for reg<->xmm moves.
11176         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
11177         (vec_concatv2di_rex64_sse): Ditto.
11178         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
11179         (*vec_extractv2di_1_rex64): Ditto.
11180
11181         Revert:
11182         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
11183
11184         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
11185         reg<->xmm moves.
11186         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
11187
11188 2011-05-04  Richard Guenther  <rguenther@suse.de>
11189
11190         * tree.h (int_const_binop): Remove notrunc argument.
11191         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
11192         create integer constants that are properly truncated.
11193         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
11194         (const_binop): Remove zero notrunc argument to int_const_binop.
11195         (size_binop_loc): Likewise.
11196         (fold_div_compare): Likewise.
11197         (maybe_canonicalize_comparison_1): Likewise.
11198         (fold_comparison): Likewise.
11199         (fold_binary_loc): Likewise.
11200         (multiple_of_p): Likewise.
11201         * expr.c (store_constructor): Likewise.
11202         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
11203         (maybe_fold_stmt_addition): Likewise.
11204         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
11205         * stor-layout.c (layout_type): Likewise.
11206         * tree-data-ref.c (tree_fold_divides_p): Likewise.
11207         * tree-sra.c (build_ref_for_offset): Likewise.
11208         (build_user_friendly_ref_for_offset): Likewise.
11209         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
11210         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
11211         * tree-ssa-loop-niter.c (inverse): Likewise.
11212         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
11213         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
11214         * tree-switch-conversion.c (check_range): Likewise.
11215         (build_constructors): Likewise.
11216         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
11217         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
11218         (extract_range_from_assert): Likewise.
11219         (vrp_int_const_binop): Likewise.
11220         (extract_range_from_binary_expr): Likewise.
11221         (extract_range_from_unary_expr): Likewise.
11222         (check_array_ref): Likewise.
11223         (find_case_label_range): Likewise.
11224         (simplify_div_or_mod_using_ranges): Likewise.
11225         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
11226         comparing case labels for merging.
11227
11228 2011-05-03  Mark Wielaard  <mjw@redhat.com>
11229
11230         * dwarf2out.c (debug_str_hash_forced): Removed.
11231         (gen_label_for_indirect_string): Removed.
11232         (get_debug_string_label): Removed.
11233         (AT_string_form): Generate label directly.
11234         (output_indirect_string): Test indirect_string_node for
11235         DW_FORM_strp instead of checking label and refcount.
11236         (prune_indirect_string): Removed.
11237         (prune_unused_types): Don't check debug_str_hash_forced or
11238         call prune_indirect_string.
11239
11240 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
11241
11242         PR other/48093
11243         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
11244
11245 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
11246
11247         PR debug/47994
11248         PR debug/47919
11249         * combine.c (try_combine): Skip debug insns at m_split tests.
11250
11251 2011-04-26  Mark Wielaard  <mjw@redhat.com>
11252
11253         PR42288
11254         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
11255         when info_section_emitted.
11256
11257 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
11258
11259         * config/mips/mips-opts.h: New.
11260         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
11261         to mips-opts.h.
11262         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
11263         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
11264         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
11265         via opts pointer.
11266         * config/mips/mips.h (enum mips_code_readable_setting): Move to
11267         mips-opts.h.
11268         (mips_abi, mips_code_readable): Don't declare.
11269         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
11270         (mabi=): Use Enum and Var.
11271         (mips_abi): New Enum and EnumValue entries.
11272         (mcode-readable=): Use Enum and Var.
11273         (mips_code_readable_setting): New Enum and EnumValue entries.
11274         (mr10k-cache-barrier=): Use Enum and Var.
11275         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
11276
11277 2011-05-03  Jan Hubicka  <jh@suse.cz>
11278
11279         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
11280         replace hash by pointer map.
11281         (cgraph_node_set_element_def, cgraph_node_set_element,
11282         const_cgraph_node_set_element, varpool_node_set_element_def,
11283         varpool_node_set_element, const_varpool_node_set_element): Remove.
11284         (free_cgraph_node_set, free_varpool_node_set): New function.
11285         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
11286         * tree-emutls.c: Free varpool node set.
11287         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
11288         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
11289         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
11290         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
11291         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
11292         Move here from ipa.c; implement using pointer_map
11293         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
11294         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
11295         debug_cgraph_node_set, varpool_node_set_new,
11296         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
11297         dump_varpool_node_set, debug_varpool_node_set):
11298         Move to ipa-uitls.c.
11299         * passes.c (ipa_write_summaries): Update.
11300
11301 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
11302
11303         From Mike Frysinger:
11304         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
11305         bf542/bf544/bf547/bf548/bf549.
11306
11307 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
11308
11309         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
11310
11311 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
11312
11313         From Bernd Schmidt:
11314         * config/bfin/bfin.md (MOVCC): New mode_macro.
11315         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
11316         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
11317         comments from generated assembly.
11318
11319 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
11320
11321         From Bernd Schmidt
11322         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
11323         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
11324         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
11325         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
11326         * config/bfin/lib1funcs.asm (___muldi3): New function.
11327
11328 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
11329
11330         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
11331         build_function_type_list instead of build_function_type.
11332         Rearrange initialization of `args' to do so.
11333
11334 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
11335
11336         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
11337         instead of build_function_type.
11338
11339 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
11340
11341         * config/rs6000/rs6000.c (spe_init_builtins): Call
11342         build_function_type_list instead of build_function_type.
11343         (paired_init_builtins, altivec_init_builtins): Likewise.
11344         (builtin_function_type): Likewise.
11345
11346 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
11347
11348         * config/sh/sh.c (sh_media_init_builtins): Call
11349         build_function_type_list instead of build_function_type.
11350
11351 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
11352
11353         * config/sparc/sparc.c (sparc_file_end): Call
11354         build_function_type_list instead of build_function_type.
11355
11356 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
11357
11358         * config/alpha/alpha.c (alpha_init_builtins): Call
11359         build_function_type_list instead of build_function_type.
11360
11361 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
11362
11363         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
11364         build_function_type_list instead of build_function_type.
11365
11366 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
11367
11368         * config/iq2000/i2000.c (iq2000_init_builtins): Call
11369         build_function_type_list instead of build_function_type.
11370         Delete `endlink' variable.
11371
11372 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
11373
11374         * config/avr/avr.c (avr_init_builtins): Call
11375         build_function_type_list instead of build_function_type.
11376
11377 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
11378
11379         * config/picochip/picochip.c (picochip_init_builtins): Call
11380         build_function_type_list instead of build_function_type.
11381         Delete `endlink' variable.
11382
11383 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
11384
11385         * config/bfin/bfin.c (bfin_init_builtins): Call
11386         build_function_type_list instead of build_function_type.
11387
11388 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
11389
11390         From Bernd Schmidt
11391         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
11392         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
11393
11394 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
11395
11396         From Jie Zhang:
11397         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
11398         libbffastfp overrides libgcc when -mfast-fp.
11399
11400 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
11401
11402         Originally from Bernd Schmidt
11403         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
11404         * config/bfin/bfin.c (override_options): Test it and error if
11405         TARGET_FDPIC.
11406
11407 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
11408
11409         Originally From Bernd Schmidt
11410         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
11411         FD-PIC.
11412
11413 2011-05-03  Jeff Law  <law@redhat.com>
11414
11415         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
11416         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
11417         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
11418         than accessing AUX field directly.  Free the AUX field before
11419         clearing it.
11420         (thread_block, thread_through_loop_header): Likewise.
11421         (thread_single_edge, mark_threaded_blocks): Likewise.
11422         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
11423         (register_jump_thread): Do not attempt to thread to a NULL edge.
11424
11425 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
11426
11427         * function.c (init_function_start): Call decide_function_section.
11428         * varasm.c (decide_function_section): New function.
11429         (assemble_start_function): When not using
11430         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
11431         or first_function_block_is_cold.
11432         * rtl.h (decide_function_section): Declare.
11433
11434 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
11435             Jakub Jelinek  <jakub@redhat.com>
11436
11437         PR target/48774
11438         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
11439         only succeed if req_mode is the same as set_mode.
11440
11441 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
11442
11443         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
11444         * genemit.c (gen_exp): Handle RETURN.
11445         * emit-rtl.c (verify_rtx_sharing): Likewise.
11446         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
11447         * rtl.c (copy_rtx): RETURN is shared.
11448         * rtl.h (enum global_rtl_index): Add GR_RETURN.
11449         (ret_rtx): New.
11450         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
11451         * config/s390/s390.c (s390_emit_epilogue): Likewise.
11452         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
11453         * config/cris/cris.c (cris_expand_return): Likewise.
11454         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
11455         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
11456         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
11457         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
11458         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
11459         Likewise.
11460         * config/v850/v850.c (expand_epilogue): Likewise.
11461         * config/bfin/bfin.c (bfin_expand_call): Likewise.
11462         * config/arm/arm.md (epilogue): Likewise.
11463         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
11464         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
11465         variable to ret_reg.
11466
11467 2011-05-03  Richard Guenther  <rguenther@suse.de>
11468
11469         PR lto/48846
11470         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
11471         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
11472         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
11473
11474 2011-05-03  Richard Guenther  <rguenther@suse.de>
11475
11476         * c-decl.c (grokdeclarator): Instead of looking at
11477         TREE_OVERFLOW check if the constant fits in the index type.
11478
11479 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
11480
11481         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
11482         (vec_store_lanes<mode><mode>): Likewise.
11483
11484 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
11485
11486         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
11487         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
11488         convert_optab_index values.
11489         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
11490         * genopinit.c (optabs): Initialize the new optabs.
11491         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
11492         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
11493         (expand_STORE_LANES): New functions.
11494         * tree.h (build_array_type_nelts): Declare.
11495         * tree.c (build_array_type_nelts): New function.
11496         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
11497         (vect_model_load_cost): Likewise.
11498         (vect_store_lanes_supported, vect_load_lanes_supported)
11499         (vect_record_strided_load_vectors): Declare.
11500         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
11501         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
11502         (vect_transform_strided_load): Split out statement recording into...
11503         (vect_record_strided_load_vectors): ...this new function.
11504         * tree-vect-stmts.c (create_vector_array, read_vector_array)
11505         (write_vector_array, create_array_ref): New functions.
11506         (vect_model_store_cost): Add store_lanes_p argument.
11507         (vect_model_load_cost): Add load_lanes_p argument.
11508         (vectorizable_store): Try to use store-lanes functions for
11509         interleaved stores.
11510         (vectorizable_load): Likewise load-lanes and loads.
11511         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
11512         to vect_model_store_cost.
11513         (vect_build_slp_tree): Likewise vect_model_load_cost.
11514
11515 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
11516
11517         * hooks.h (hook_bool_mode_uhwi_false): Declare.
11518         * hooks.c (hook_bool_mode_uhwi_false): New function.
11519         * target.def (array_mode_supported_p): New hook.
11520         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
11521         * doc/tm.texi: Regenerate.
11522         * stor-layout.c (mode_for_array): New function.
11523         (layout_type): Use it.
11524         * config/arm/arm.c (arm_array_mode_supported_p): New function.
11525         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
11526
11527 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
11528
11529         PR target/48723
11530         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
11531         for -fstack-check if the size to allocate is negative.
11532
11533 2011-05-02  Lawrence Crowl  <crowl@google.com>
11534
11535         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
11536         (timevar_cond_start): New for starting a timer only when it is not
11537         already running.
11538         (timevar_cond_stop): New for stopping a timer when it was not already
11539         running.
11540
11541         * timevar.c (timevar_stop): Enable start/stop timers to start again.
11542         (timevar_cond_start): New as above.
11543         (timevar_cond_stop): New as above.
11544
11545         * timevar.def: Add start/stop timers for compiler phases,
11546         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
11547         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
11548         and TV_PHASE_FINALIZE.
11549         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
11550         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
11551         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
11552         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
11553         Make unused TV_OVERLOAD into a start/stop timer.
11554
11555         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
11556         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
11557         to indicate that they are start/stop timers.
11558
11559         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
11560         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
11561         Move initialization to do_compile.
11562         (do_compile): Add initialization from above.
11563         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
11564
11565         * c-decl.c (c_write_global_declarations): Add start/stop of
11566         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
11567
11568         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
11569         or TV_PARSE_INLINE, as appropriate.
11570         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
11571         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
11572
11573 2011-05-02  Jason Merrill  <jason@redhat.com>
11574
11575         PR c++/40975
11576         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
11577
11578 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
11579
11580         PR c/35445
11581         * c-decl.c (finish_decl): Only create a composite if the types are
11582         compatible.
11583
11584 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
11585
11586         * config/fr30/fr30-protos.h (Mmode): Don't define.
11587         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
11588         definition where used.
11589         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
11590         define.  Expand definitions where used.
11591         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
11592         Expand definitions where used.
11593         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
11594         rx_function_arg, rx_function_arg_advance,
11595         rx_function_arg_boundary): Expand definitions of those macros.
11596         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
11597         definition where used.
11598
11599 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
11600
11601         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
11602         reg<->xmm moves.
11603         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
11604         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
11605         with *movv2sf_internal_rex64_avx.
11606         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
11607         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
11608         Use %v prefix in insn mnemonic to handle TARGET_AVX.
11609         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
11610         "vex" in "prefix" attribute calculation.
11611         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
11612
11613 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
11614
11615         PR target/47951
11616         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
11617         inputs match the output.
11618
11619 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
11620
11621         PR target/47955
11622         * config/m68k/m68k.c (m68k_expand_prologue): Set
11623         current_function_static_stack_size.
11624
11625 2011-05-02   Jan Hubicka  <jh@suse.cz>
11626
11627         * lto-streamer.c (lto_streamer_cache_insert_1,
11628         lto_streamer_cache_lookup, lto_streamer_cache_create,
11629         lto_streamer_cache_delete): Use pointer map instead of hashtable.
11630         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
11631
11632 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
11633
11634         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
11635         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
11636         config/m68k/t-opts: New files.
11637         * config/m68k/m68k-tables.opt: New file (generated).
11638         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
11639         extra_options and m68k/t-opts to tmake_file.
11640         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
11641         (all_isas): Initialize using m68k-isas.def.
11642         (all_microarchs): Initialize using m68k-microarchs.def.
11643         (m68k_find_selection): Remove.
11644         (m68k_handle_option): Don't assert that global structures are in
11645         use.  Use error_at.  Access variables via opts pointer.  Don't
11646         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
11647         directly for -m68020-40 and -m68020-60.
11648         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
11649         m68k_tune_entry here.
11650         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
11651         to m68k-opts.h.
11652         (m68k_library_id_string): Remove declaration.
11653         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
11654         (m68k_library_id_string): New Variable.
11655         (march=, mcpu=, mtune=): Use Enum and Var.
11656
11657 2011-05-02  Richard Guenther  <rguenther@suse.de>
11658
11659         * varasm.c (output_constructor_regular_field): Compute zero-based
11660         index with double-ints.  Make sure to ICE instead of producing
11661         wrong code.
11662         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
11663         in asserts.  Properly use a signed type.
11664
11665 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
11666
11667         * config/i386/sse.md (V): New mode iterator.
11668         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
11669         TARGET_SSE2.
11670         (V_256): Rename from AVX256MODE.
11671         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
11672         condition to all users.
11673         (VF1): Ditto.
11674         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
11675         condition to all users.
11676         (VF_128): Make V4SF mode unconditional.
11677         (VF_256): Rename from AVX256MODEF2P.
11678         (VI4F_128): Rename from SSEMODE4S.
11679         (VI8F_128): Rename from SSEMODE2D.
11680         (VI4F_256): Rename from AVX256MODE8P.
11681         (VI8F_256): Rename from AVX256MODE4P.
11682         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
11683         (ssescalarmodesuffix): Remove SF and DF modes.
11684         (SSEMODE124): Remove.
11685         (SSEMODE1248): Ditto.
11686         (SSEMODEF2P): Ditto.
11687         (AVXMODEF2P): Ditto.
11688         (AVXMODEFDP): Ditto.
11689         (AVXMODEFSP): Ditto.
11690         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
11691         unconditional.
11692         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
11693         unconditional.
11694         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
11695         xop_pcmov_<mode>256.  Use V mode iterator.
11696
11697         Adjust RTX patterns globally for renamed mode attributes.
11698
11699 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11700
11701         * haifa-sched.c (sched_emit_insn): Emit insn before first
11702         non-scheduled insn.  Inform back-end about new insn.  Add
11703         new insn to scheduled_insns list.
11704
11705 2011-05-02  Richard Guenther  <rguenther@suse.de>
11706
11707         PR tree-optimization/48822
11708         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
11709         (process_scc): Indicate which iteration we start.
11710
11711 2011-05-02  Jan Hubicka  <jh@suse.cz>
11712
11713         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
11714         (lto_section_overrun): New.
11715         * lto-section-out.c (append_block): Rename to ...
11716         (lto_append_block): ... this one; export.
11717         (lto_output_1_stream): Move lto lto-streamer.h
11718         (lto_output_data_stream): Update.
11719         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
11720         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
11721         functions.
11722
11723 2011-05-02  Richard Guenther  <rguenther@suse.de>
11724
11725         * tree.c (tree_code_counts): New global array.
11726         (record_node_allocation_statistics): Count individual tree codes.
11727         (dump_tree_statistics): Dump individual code stats.
11728
11729 2011-05-01  Jan Hubicka  <jh@suse.cz>
11730
11731         * ipa-inline.c (caller_growth_limits): Fix thinko when
11732         looking for largest stack frame.
11733         * ipa-inline.h (dump_inline_summary): Declare.
11734         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
11735         on stack usage.
11736         (dump_inline_summary): Export.
11737         (debug_inline_summary): Declare as DEBUG_FUNCTION.
11738
11739 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
11740
11741         * reginfo.c (memory_move_cost): Change rclass argument type form
11742         'enum reg_class' to reg_class_t.
11743         * reload.h (memory_move_cost): Update prototype.
11744         * postreload.c reload_cse_simplify_set): Change type dclass var to
11745         reg_class_t.
11746         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
11747         Update prototype.
11748         (ira_allocate_and_set_costs): Change aclass argument type form
11749         'enum reg_class' to reg_class_t.
11750         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
11751         Change aclass argument type to reg_class_t.
11752         (update_conflict_hard_reg_costs): Change type aclass and pref vars
11753         to reg_class_t.
11754         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
11755         memory_move_cost call.
11756
11757         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
11758         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
11759         Change type tmp var to reg_class_t.
11760
11761 2011-04-30  Jan Hubicka  <jh@suse.cz>
11762
11763         * ipa-inline.c (can_inline_edge_p): Disregard limits when
11764         inlining into function with flatten attribute.
11765         (want_inline_small_function_p): Be more realistic about inlining
11766         cold calls where callee size grows.
11767
11768 2011-04-30  Jan Hubicka  <jh@suse.cz>
11769
11770         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
11771         flags.
11772
11773 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
11774
11775         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
11776         PRINT_OPERAND_PUNCT_VALID_P): Remove.
11777         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
11778         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
11779         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11780         (print_operand): Rename to...
11781         (sparc_print_operand): ...this. Make static. Adjust
11782         sparc_print_operand function call.
11783         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
11784         functions.
11785
11786 2011-04-30  Jan Hubicka  <jh@suse.cz>
11787
11788         PR middle-end/48752
11789         * ipa-inline.c (early_inliner): Disable when doing late
11790         addition of function.
11791
11792 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
11793
11794         * dwarf2out.c (get_address_mode): New inline.
11795         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
11796         if not dwarf_strict emit
11797         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
11798         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
11799         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
11800         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
11801         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
11802         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
11803         mem_loc_descriptor callers.
11804         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11805         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
11806         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
11807         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
11808         (base_types): New variable.
11809         (get_base_type_offset, calc_base_type_die_sizes,
11810         base_type_for_mode, mark_base_types, base_type_cmp,
11811         move_marked_base_types): New functions.
11812         (calc_die_sizes): Assert that die_offset is 0 or equal to
11813         next_die_offset.
11814         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
11815         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
11816         callers.  If not dwarf_strict, call mem_loc_descriptor even for
11817         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
11818         (gen_subprogram_die): Don't give up on call site parameters
11819         with non-integral or large integral modes.  Adjust
11820         mem_loc_descriptor callers.
11821         (prune_unused_types): Call prune_unused_types_mark on base_types
11822         vector entries.
11823         (resolve_addr): Call mark_base_types.
11824         (dwarf2out_finish): Call move_marked_base_types.
11825
11826         PR tree-optimization/48809
11827         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
11828         type.
11829         (gen_inbound_check): Don't compute index_expr - range_min in utype
11830         again, instead reuse SSA_NAME initialized in build_arrays.
11831         Remove two useless gsi_for_stmt calls.
11832
11833 2011-04-29  Jeff Law  <law@redhat.com>
11834
11835         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
11836
11837 2011-04-29  Martin Jambor  <mjambor@suse.cz>
11838
11839         * cgraph.h (cgraph_postorder): Remove declaration.
11840         * ipa-utils.h (ipa_free_postorder_info): Declare.
11841         (ipa_reverse_postorder): Likewise.
11842         * cgraphunit.c: Include ipa-utils.h.
11843         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
11844         * ipa-inline.c: Include ipa-utils.h.
11845         (ipa_inline): Update call to ipa_reverse_postorder.
11846         * ipa-pure-const.c (propagate_pure_const): Update call to
11847         ipa_reduced_postorder and ipa_print_order.  Call
11848         ipa_free_postorder_info to clean up.
11849         (propagate_nothrow): Likewise.
11850         * ipa-reference.c (propagate): Removed a useless call to
11851         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
11852         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
11853         * ipa.c: Include ipa-utils.h.
11854         (ipa_profile): Update call to ipa_reverse_postorder.
11855         (cgraph_postorder): Moved to...
11856         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
11857         (ipa_utils_print_order): Renamed to ipa_print_order.
11858         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
11859         comments.
11860         (ipa_free_postorder_info): New function.
11861         * passes.c: Include ipa-utils.h.
11862         (do_per_function_toporder): Update call to ipa_reverse_postorder.
11863         (ipa_write_summaries): Likewise.
11864         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
11865         (cgraphunit.o): Likewise.
11866         (ipa.o): Likewise.
11867         (ipa-inline.o): Likewise.
11868
11869 2011-04-29  Jan Hubicka  <jh@suse.cz>
11870
11871         * gcc.dg/tree-ssa/inline-10.c: New testcase.
11872         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
11873         * ipa-inline.h (clause_t): Turn into unsigned int.
11874         * ipa-inline-analysis.c (add_clause): Do more simplification.
11875         (and_predicates): Shortcut more cases.
11876         (predicates_equal_p): Move forward; check that clauses are properly
11877         ordered.
11878         (or_predicates): Shortcut more cases.
11879         (edge_execution_predicate): Rewrite as...
11880         (set_cond_stmt_execution_predicate): ... this function; handle
11881         __builtin_constant_p.
11882         (set_switch_stmt_execution_predicate): New .
11883         (compute_bb_predicates): New.
11884         (will_be_nonconstant_predicate): Update TODO.
11885         (estimate_function_body_sizes): Use compute_bb_predicates
11886         and free them later, always try to estimate if stmt is constant.
11887         (estimate_time_after_inlining, estimate_size_after_inlining):
11888         Gracefully handle optimized out edges.
11889         (read_predicate): Fix off by one error.
11890
11891 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
11892
11893         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
11894
11895 2011-04-27  Xinliang David Li  <davidxl@google.com>
11896
11897         * tree-profile.c (init_ic_make_global_vars): Set
11898         tls attribute on ic vars.
11899         * coverage.c (coverage_end_function): Initialize
11900         function_list with zero.
11901
11902 2011-04-29  Richard Guenther  <rguenther@suse.de>
11903
11904         * builtins.c (fold_builtin_classify_type): Use integer_type_node
11905         for the type of the result.
11906         (fold_builtin_isascii): Likewise.
11907         (fold_builtin_toascii): Use integer_type_node where appropriate.
11908         (fold_builtin_logb): Likewise.
11909         (fold_builtin_frexp): Likewise.
11910         (fold_builtin_strstr): Likewise.
11911         (fold_builtin_strpbrk): Likewise.
11912         (fold_builtin_fputs): Likewise.
11913         (fold_builtin_sprintf): Likewise.
11914         (fold_builtin_snprintf): Likewise.
11915         (fold_builtin_printf): Likewise.
11916         (do_mpfr_remquo): Use a proper type for the assigned constant.
11917         (do_mpfr_lgamma_r): Likewise.
11918         * dwarf2out.c (resolve_one_addr): Use size_int.
11919         * except.c (init_eh): Likewise.
11920         (assign_filter_values): Use integer_type_node for filter values.
11921         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
11922         indices.
11923         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
11924         for EH region numbers.
11925         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
11926         for the shift amount.
11927
11928 2011-04-29  Richard Guenther  <rguenther@suse.de>
11929
11930         * expr.h (expand_shift): Rename to ...
11931         (expand_variable_shift): ... this.
11932         (expand_shift): Take a constant shift amount.
11933         * expmed.c (expand_shift): Rename to ...
11934         (expand_variable_shift): ... this.
11935         (expand_shift): New wrapper around expand_variable_shift.
11936         * expr.c (convert_move, emit_group_load_1, emit_group_store,
11937         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
11938         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
11939         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
11940         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
11941         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
11942         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
11943         emit_store_flag_1, emit_store_flag): Likewise.
11944         * builtins.c (expand_builtin_signbit): Likewise.
11945         * calls.c (load_register_parameters): Likewise.
11946         * function.c (assign_parm_setup_block): Likewise.
11947         * lower-subreg.c (resolve_shift_zext): Likewise.
11948         * optabs.c (widen_bswap, expand_abs_nojump,
11949         expand_one_cmpl_abs_nojump, expand_float): Likewise.
11950         * spu/spu.c (spu_expand_extv): Likewise.
11951         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
11952
11953 2011-04-29  Richard Guenther  <rguenther@suse.de>
11954
11955         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
11956         for the remapped region number.
11957         * predict.c (build_predict_expr): Use integer_type_node for the
11958         predict kind.
11959         * fold-const.c (fold_binary_loc): Use integer_type_node for
11960         the shift amount.  Use a proper type for the PLUS_EXPR operand.
11961
11962 2011-04-29  Michael Matz  <matz@suse.de>
11963
11964         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
11965         other trees that just builtins.
11966         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
11967
11968 2011-04-29  Richard Guenther  <rguenther@suse.de>
11969
11970         * tree-nested.c (get_trampoline_type): Use size_int.
11971         (get_nl_goto_field): Likewise.
11972         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
11973         for all indexes.
11974         (lower_eh_constructs_2): Likewise.
11975         (lower_resx): Likewise.
11976         (lower_eh_dispatch): Likewise.
11977         * tree-mudflap.c (mf_build_string): Use size_int.
11978         (mudflap_register_call): Use integer_type_node for the flag.
11979         (mudflap_enqueue_constant): Use size_int.
11980         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
11981         instead of rebuilding it.
11982
11983 2011-04-29  Richard Guenther  <rguenther@suse.de>
11984
11985         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
11986         Handle OBJ_TYPE_REF.
11987         (find_func_aliases_for_call): Use it more consistently.
11988
11989 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
11990
11991         * haifa-sched.c (last_nondebug_scheduled_insn): New.
11992         (rank_for_schedule): Use it.
11993         (schedule_block): Set it.
11994
11995 2011-04-28  David Li  <davidxl@google.com>
11996
11997         * tree.c (crc32_string): Use crc32_byte.
11998         (crc32_byte): New function.
11999         * tree.h (crc32_byte): New function.
12000         * gcov.c (read_graph_file): Handle new cfg_cksum.
12001         (read_count_file): Ditto.
12002         * profile.c (instrument_values): Ditto.
12003         (get_exec_counts): Ditto.
12004         (read_profile_edge_counts): Ditto.
12005         (compute_branch_probabilities): Ditto.
12006         (compute_value_histograms): Ditto.
12007         (branch_prob): Ditto.
12008         (end_branch_prob): Ditto.
12009         * coverage.c (read_counts_file): Ditto.
12010         (get_coverage_counts): Ditto.
12011         (tree_coverage_counter_addr): Ditto.
12012         (coverage_checksum_string): Ditto.
12013         (coverage_begin_output): Ditto.
12014         (coverage_end_function): Ditto.
12015         (build_fn_info_type): Ditto.
12016         (build_fn_info_value): Ditto.
12017         * libgcov.c (gcov_exit): Ditto.
12018         * gcov-dump.c (tag_function): Ditto.
12019         (compute_checksum): Remove.
12020
12021 2011-04-29  Alan Modra  <amodra@gmail.com>
12022
12023         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12024         unspec plus offset.  Tidy macho code.
12025
12026 2011-04-29  Martin Jambor  <mjambor@suse.cz>
12027
12028         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
12029         node instead of a decl.  Update all callers.
12030         * cgraph.h: Update declaration.
12031
12032 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
12033
12034         PR tree-optimization/48765
12035         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
12036         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
12037         to indicate if loop aware SLP is being used.  Scan the statements
12038         and update the vectorization factor according to the type of
12039         vectorization before statement analysis.
12040         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
12041         pass it to vect_analyze_loop_operations.
12042         (vectorizable_reduction): Set number of copies to 1 in case of pure
12043         SLP statement.
12044         * tree-vect-stmts.c (vectorizable_conversion,
12045         vectorizable_assignment, vectorizable_shift,
12046         vectorizable_operation, vectorizable_type_demotion,
12047         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
12048         Likewise.
12049         (vectorizable_condition): Move the check that it is not SLP
12050         vectorization before the number of copies check.
12051         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
12052         to vectorize the loop using SLP.
12053
12054 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
12055
12056         PR middle-end/48597
12057         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
12058         inline asm.
12059
12060 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
12061
12062         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
12063         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
12064         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
12065         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
12066         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
12067         linux*.h headers.
12068         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
12069         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
12070         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
12071         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
12072         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
12073         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
12074         REG_NAME.
12075         * config/i386/linux.h (REG_NAME): Don't define.
12076         * config/i386/linux64.h (REG_NAME): Don't define.
12077         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
12078         Undefine before defining.
12079
12080 2011-04-28  Jan Hubicka  <jh@suse.cz>
12081
12082         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
12083         nonconstant_names array.
12084         (estimate_function_body_sizes): Build nonconstant_names array; handle
12085         BUILT_IN_CONSTANT_P.
12086
12087 2011-04-28  Richard Guenther  <rguenther@suse.de>
12088
12089         PR bootstrap/48804
12090         Revert
12091         2011-04-28  Richard Guenther  <rguenther@suse.de>
12092
12093         * tree-ssa-structalias.c (solve_constraints): Build succ graph
12094         as late as possible.
12095
12096 2011-04-28  Richard Guenther  <rguenther@suse.de>
12097
12098         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
12099         (debug_constraint): Do it here.
12100         (dump_constraints): And here.
12101         (rewrite_constraints): And here.
12102         (dump_constraint_edge): Remove.
12103         (dump_constraint_graph): Rewrite to produce DOT output.
12104         (solve_constraints): Build succ graph as late as possible.
12105         Dump constraint graphs before and after solving.
12106
12107 2011-04-28  Richard Guenther  <rguenther@suse.de>
12108
12109         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
12110         New function split out from ...
12111         (find_func_aliases): ... here.  Call it.
12112         (find_func_aliases_for_call): Likewise.
12113
12114 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12115
12116         * internal-fn.h (internal_fn_name_array): Declare.
12117         (internal_fn_flags_array): Likewise.
12118
12119 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
12120
12121         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
12122         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
12123         Move from sse.md.
12124         (ssemodefsuffix): Remove.
12125         (ssevecmodesuffix): New mode attribute.
12126         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
12127         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
12128         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
12129         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
12130         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
12131         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
12132         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
12133         ssemodesuffix mode attribute.
12134         (float splitters): Use ssevecmodesuffix mode attribute.
12135         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
12136         (sseinsmode): Rename from avxvecmode.
12137         (avxsizesuffix): Rename from avxmodesuffix.
12138         (sseintvecmode): Rename from avxpermvecmode.
12139         (ssedoublevecmode): Rename from ssedoublesizemode.
12140         (ssehalfvecmode): Rename from avxhalfvecmode.
12141         (ssescalarmode): Rename from avxscalarmode.
12142         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
12143         templates for ssemodesuffix mode attribute.
12144         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
12145         mode attribute.
12146
12147         Adjust RTX patterns globally for renamed mode attributes.
12148
12149 2011-04-27  Jan Hubcika  <jh@suse.cz>
12150
12151         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
12152         * ipa-inline-analysis.c: Include alloc-pool.h.
12153         (edge_predicate_pool): New.
12154         (trye_predicate_p): New function
12155         (false_predicate_p): New function.
12156         (add_clause): Sanity check that false clauses are "optimized";
12157         never add clauses to predicate that is already known to be false.
12158         (and_predicate): Use flase_predicate_p.
12159         (evaulate_predicate): Rename to ...
12160         (evaluate_predicate): ... this one; update all callers; assert
12161         that false is not listed among possible truths.
12162         (dump_predicate): Use true_predicate_p.
12163         (account_size_time): Use false_predicate_p.
12164         (evaulate_conditions_for_edge): Rename to ...
12165         (evaluate_conditions_for_edge) ... this one.
12166         (edge_set_predicate): New function.
12167         (inline_edge_duplication_hook): Duplicate edge predicates.
12168         (inline_edge_removal_hook): Free edge predicates.
12169         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
12170         (dump_inline_summary): Update.
12171         (estimate_function_body_sizes): Set edge predicates.
12172         (estimate_calls_size_and_time): Handle predicates.
12173         (estimate_callee_size_and_time): Update.
12174         (remap_predicate): Add toplev_predicate; update comment.
12175         (remap_edge_predicates): New function.
12176         (inline_merge_summary): Compute toplev predicate; update.
12177         (read_predicate): New function.
12178         (read_inline_edge_summary): Use it.
12179         (inline_read_section): Likewise.
12180         (write_predicate): New function.
12181         (write_inline_edge_summary): Use it.
12182         (inline_write_summary): Likewise.
12183         (inline_free_summary): Free alloc pool and edge summary vec.
12184
12185 2011-04-27  Richard Guenther  <rguenther@suse.de>
12186
12187         * tree-ssa-structalias.c (changed_count): Remove.
12188         (changed): Use a bitmap.
12189         (unify_nodes): Adjust.
12190         (do_sd_constraint): Likewise.
12191         (do_ds_constraint): Likewise.
12192         (do_complex_constraint): Likewise.
12193         (solve_graph): Likewise.
12194
12195 2011-04-27  Jan Hubicka  <jh@suse.cz>
12196
12197         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
12198
12199 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
12200
12201         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
12202         (avx_vperm2f128_*_operand): Ditto.
12203         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
12204         Use avx_vpermilp_parallel in insn condition.
12205         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
12206         Use avx_vperm2f128_parallel in insn condition.
12207
12208 2011-04-27  Richard Guenther  <rguenther@suse.de>
12209
12210         * Makefile.in (tree-ssa-structalias.o): Remove
12211         gt-tree-ssa-structalias.h dependency.
12212         (GTFILES): Remove tree-ssa-structalias.c.
12213         * tree.c (allocate_decl_uid): New function.
12214         (make_node_stat): Use it.
12215         (copy_node_stat): Likewise.
12216         * tree.h (allocate_decl_uid): Declare.
12217         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
12218         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
12219         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
12220         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
12221         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
12222         (struct heapvar_map): Likewise.
12223         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
12224         heapvar_insert): Likewise.
12225         (make_heapvar_for): Rename to ...
12226         (make_heapvar): ... this.  Simplify.
12227         (fake_var_decl_obstack): New global var.
12228         (build_fake_var_decl): New function.
12229         (make_constraint_from_heapvar): Adjust.
12230         (handle_lhs_call): Likewise.
12231         (create_function_info_for): Likewise.
12232         (intra_create_variable_infos): Likewise.
12233         (init_alias_vars): Allocate fake_var_decl_obstack.
12234         (init_alias_heapvars, delete_alias_heapvars): Remove.
12235         (compute_points_to_sets): Do not call init_alias_heapvars.
12236         (ipa_pta_execute): Likewise.
12237         (delete_points_to_sets): Free fake_var_decl_obstack.
12238
12239 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12240
12241         * config/spu/divmovti4.c (union qword_UTItype): New data type.
12242         (si_from_UTItype, si_to_UTItype): New functions.
12243         (__udivmodti4): Use them to implement type-punning.
12244         * config/spu/multi3.c (union qword_TItype): New data type.
12245         (si_from_TItype, si_to_TItype): New functions.
12246         (__multi3): Use them to implement type-punning.
12247
12248 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12249
12250         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
12251
12252 2011-04-27  Jan Hubicka  <jh@suse.cz>
12253
12254         * ipa-prop.c (function_insertion_hook_holder): New holder.
12255         (ipa_add_new_function): New function.
12256         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
12257         Register/deregister holder.
12258
12259 2011-04-27  Richard Guenther  <rguenther@suse.de>
12260
12261         PR tree-optimization/48772
12262         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
12263
12264 2011-04-27  Richard Guenther  <rguenther@suse.de>
12265
12266         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
12267         TARGET_MEM_REF handling.
12268
12269 2011-04-27  Nick Clifton  <nickc@redhat.com>
12270
12271         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
12272         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
12273         (REG_CLASS_NAMES): Likewise.
12274         (REG_CLASS_CONTENTS): Likewise.
12275         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
12276         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
12277         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
12278         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
12279         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
12280         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
12281         duplicate register classes.
12282         (frv_class_likely_spilled_p): Likewise.
12283         (frv_register_move_cost): Likewise.
12284
12285         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
12286         end of the regno_reg_class array.
12287
12288 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
12289
12290         PR c/48742
12291         * c-typeck.c (build_binary_op): Don't wrap arguments if
12292         int_operands is true.
12293
12294 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
12295
12296         PR target/48767
12297         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
12298         targetm.calls.must_pass_in_stack for void type.
12299
12300 2011-04-26  Jan Hubicka  <jh@suse.cz>
12301
12302         * cgraphbuild.c (build_cgraph_edges): Update call
12303         of cgraph_create_edge and cgraph_create_indirect_edge.
12304         * cgraph.c (cgraph_create_edge_including_clones,
12305         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
12306         cgraph_update_edges_for_call_stmt_node): Do not take nest
12307         argument; do not initialize call_stmt_size/time.
12308         (dump_cgraph_node): Do not dump nest.
12309         (cgraph_clone_edge): Do not take loop_nest argument;
12310         do not propagate it; do not clone call_stmt_size/time.
12311         (cgraph_clone_node): Likewise.
12312         (cgraph_create_virtual_clone): Update.
12313         * cgraph.h (struct cgraph_edge): Remove
12314         call_stmt_size/call_stmt_time/loop_nest.
12315         (cgraph_create_edge, cgraph_create_indirect_edge,
12316         cgraph_create_edge_including_clones, cgraph_clone_node): Update
12317         prototype.
12318         * tree-emutls.c (gen_emutls_addr): Update.
12319         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
12320         loop_nest; handle indirect calls, too.
12321         (clone_inlined_nodes): Do not care about updating inline summaries.
12322         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
12323         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
12324         stream call_stmt_size/call_stmt_time/loop_nest.
12325         * ipa-inline.c (edge_badness): Update.
12326         (ipa_inline): dump summaries after inlining.
12327         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
12328         New.
12329         (inline_edge_summary): New function.
12330         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
12331         (inline_edge_removal_hook): Handle edge summaries.
12332         (inline_edge_duplication_hook): New hook.
12333         (inline_summary_alloc): Alloc hooks.
12334         (initialize_growth_caches): Do not register removal hooks.
12335         (free_growth_caches); Do not free removal hook.
12336         (dump_inline_edge_summary): New function.
12337         (dump_inline_summary): Use it.
12338         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
12339         (inline_update_callee_summaries): New function.
12340         (inline_merge_summary): Use it.
12341         (do_estimate_edge_time, do_estimate_edge_growth): Update.
12342         (read_inline_edge_summary): New function.
12343         (inline_read_section): Use it.
12344         (write_inline_edge_summary): New function.
12345         (inline_write_summary): Use it.
12346         (inline_free_summary): Free edge new holders.
12347         * tree-inline.c (copy_bb): Update.
12348
12349 2011-04-26  Jason Merrill  <jason@redhat.com>
12350
12351         * tree-eh.c (lower_try_finally_switch): Create the label along with
12352         the CASE_LABEL_EXPR.
12353
12354 2011-04-26  David S. Miller  <davem@davemloft.net>
12355             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12356
12357         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
12358         * configure: Regenerate.
12359
12360 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
12361
12362         PR target/48258
12363         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
12364         reduction.
12365         (VEC_reduc): New code iterator and splitters for vector reduction.
12366         (VEC_reduc_name): Ditto.
12367         (VEC_reduc_rtx): Ditto.
12368         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
12369         (reduc_<VEC_reduc_name>_v4sf): Ditto.
12370
12371         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
12372         support for extracting SF on VSX.
12373
12374         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
12375         generating xscvspdp.
12376         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
12377         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
12378         double add, minimum, maximum vector reduction.
12379         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
12380         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
12381         optimize double vector reduction.
12382         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
12383
12384 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
12385
12386         * config/fr30/fr30.h (inhibit_libc): Don't define.
12387         * config/m32r/m32r-protos.h: Correct comment.
12388         * config/v850/v850.h (GHS_default_section_names,
12389         GHS_current_section_names): Use tree, not union tree_node *.
12390
12391 2011-04-26  Xinliang David Li  <davidxl@google.com>
12392
12393         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
12394         * c-family/c-opts.c (c_common_handle_option): Set
12395         warn_maybe_uninitialized.
12396         * opts.c (common_handle_option): Ditto.
12397         * common.opt:  New option.
12398         * tree-ssa.c (warn_uninit): Add one more parameter.
12399         (warn_uninitialized_var): Pass warning code.
12400         * tree-flow.h: Interface change.
12401
12402 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12403
12404         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
12405         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
12406         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
12407
12408 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12409
12410         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
12411         * config/mips/mips.opt (mmips-tfile): Remove.
12412
12413         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
12414         mips-tdump reference to ...
12415         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
12416         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
12417         reference by Tru64 UNIX.
12418
12419 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
12420
12421         PR debug/48768
12422         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
12423         is error_mark_node, set value to NULL.
12424
12425         PR tree-optimization/48734
12426         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
12427         if return value from maybe_fold_*_comparsions isn't something
12428         the code is prepared to handle.
12429
12430 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
12431
12432         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
12433         mode check.
12434         (ext_QIreg_nomode_operands): Remove.
12435         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
12436         (*andsi_1): Ditto.
12437         (*andhi_1): Ditto.
12438
12439 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
12440
12441         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
12442
12443 2011-04-26  Richard Guenther  <rguenther@suse.de>
12444
12445         * c-typeck.c (build_unary_op): Do not expand array-refs via
12446         pointer arithmetic.  Only adjust qualifiers for function types.
12447
12448 2011-04-26  Richard Guenther  <rguenther@suse.de>
12449
12450         PR middle-end/48694
12451         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
12452         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
12453         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
12454         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
12455
12456 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
12457
12458         * doc/extend.texi: Document __underlying_type.
12459
12460 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
12461
12462         * config/rs6000/titan.md (automata_option "progress"): Remove.
12463
12464 2011-04-25  Jeff Law  <law@redhat.com>
12465
12466         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
12467
12468 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
12469
12470         * system.h (ENUM_BITFIELD): Remove.
12471
12472 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
12473             Eric Botcazou  <ebotcazou@adacore.com>
12474
12475         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
12476         for STORE_FLAG_VALUE==-1 case.
12477
12478 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
12479
12480         PR target/43804
12481         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
12482         LEGITIMATE_PIC_OPERAND_P.
12483
12484 2011-04-24  Jan Hubicka  <jh@suse.cz>
12485
12486         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
12487         WPA hack.
12488         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
12489         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
12490         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
12491         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
12492         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
12493         Sanity check predicate length.
12494         (remap_predicate): Likewise; sanity check jump functions.
12495         (inline_read_section, inline_write_summary): Sanity check
12496         predicate length.
12497
12498 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
12499
12500         PR other/48748
12501         * doc/extend.texi (Type Traits): Document __is_standard_layout,
12502         __is_literal_type, and __is_trivial; update throughout about
12503         possibly cv-qualified void types.
12504
12505 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
12506
12507         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
12508         testsuite and make it version agnostic.
12509
12510 2011-04-22  Jan Hubicka  <jh@suse.cz>
12511
12512         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
12513
12514 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
12515
12516         PR c/48685
12517         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
12518         to VOID_TYPE even around MODIFY_EXPR.
12519
12520 2011-04-22  Mike Stump  <mikestump@comcast.net>
12521
12522         * gensupport.c (read_md_rtx): Fix typo in comment.
12523         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
12524         comment.
12525
12526 2011-04-22  Jan Hubicka  <jh@suse.cz>
12527
12528         * gengtype.c (open_base_files): Add ipa-inline.h include.
12529         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
12530         ipa-prop.c; update all uses.
12531         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
12532         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
12533         merge summary of inlined function into former caller.
12534         * ipa-inline.c (max_benefit): Remove.
12535         (edge_badness): Compensate for removal of benefits.
12536         (update_caller_keys): Use
12537         reset_node_growth_cache/reset_edge_growth_cache.
12538         (update_callee_keys): Likewise.
12539         (update_all_callee_keys): Likewise.
12540         (inline_small_functions): Do not collect max_benefit; do not reset
12541         estimated_growth; call free_growth_caches and initialize_growth_caches.
12542         * ipa-inline.h (struct condition, type clause_t, struct predicate,
12543         struct size_time_entry): New structures.
12544         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
12545         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
12546         and estimated_growth.
12547         (edge_growth_cache_entry): New structure.
12548         (node_growth_cache, edge_growth_cache): New global vars.
12549         (estimate_growth): Turn into inline.
12550         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
12551         initialize_growth_caches, free_growth_caches): Declare.
12552         (estimate_edge_growth): Rewrite.
12553         (estimate_edge_time): Implement as inline cache lookup.
12554         (reset_node_growth_cache, reset_edge_growth_cache): New inline
12555         functions.
12556         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
12557         (NUM_CONDITIONS): New constant.
12558         (predicate_conditions): New enum.
12559         (IS_NOT_CONSTANT): New constant.
12560         (edge_removal_hook_holder): New var.
12561         (node_growth_cache, edge_growth_cache): New global vars.
12562         (true_predicate, single_cond_predicate, false_predicate,
12563         not_inlined_predicate, add_condition, add_clause, and_predicates,
12564         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
12565         dump_clause, dump_predicate, account_size_time,
12566         evaulate_conditions_for_edge): New functions.
12567         (inline_summary_alloc): Move to heap.
12568         (inline_node_removal_hook): Clear condition and entry vectors.
12569         (inline_edge_removal_hook): New function.
12570         (initialize_growth_caches, free_growth_caches): New function.
12571         (dump_inline_summary): Update.
12572         (edge_execution_predicate): New function.
12573         (will_be_nonconstant_predicate): New function.
12574         (estimate_function_body_sizes): Compute BB and constantness predicates.
12575         (compute_inline_parameters): Do not clear estimated_growth.
12576         (estimate_edge_size_and_time): New function.
12577         (estimate_calls_size_and_time): New function.
12578         (estimate_callee_size_and_time): New function.
12579         (remap_predicate): New function.
12580         (inline_merge_summary): New function.
12581         (do_estimate_edge_time): New function based on...
12582         (estimate_edge_time): ... this one.
12583         (do_estimate_edge_growth): New function.
12584         (do_estimate_growth): New function based on....
12585         (estimate_growth): ... this one.
12586         (inline_analyze_function): Analyze after deciding on jump functions.
12587         (inline_read_section): New function.
12588         (inline_read_summary): Use it.
12589         (inline_write_summary): Write all the new data.
12590         * ipa-prop.c (ipa_get_param_decl_index): Export.
12591         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
12592         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
12593         Declare.
12594         (ipa_get_lattice): Move here from ipa-cp.c
12595         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
12596         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
12597         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
12598         cgraph_edge_inlinable_p): Remove.
12599         * cgraphunit.c: Include ipainline.h
12600         (cgraph_process_new_functions): Update call of
12601         compute_inline_parameters.
12602
12603 2011-04-22  Richard Guenther  <rguenther@suse.de>
12604
12605         * tree.c (build_int_cst): Properly create canonicalized integer
12606         constants.
12607         (build_int_cst_type): Remove scary comments.
12608
12609 2011-04-22  Xinliang David Li  <davidxl@google.com>
12610
12611         * toplev.c (process_options): Enable -Werror=coverage-mismatch
12612         by default when -Wno-error is not specified.
12613         * opts-global.c (decode_options): Remove call to
12614         control_warning_options.
12615
12616 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
12617
12618         PR tree-optimization/48717
12619         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
12620         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
12621
12622 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
12623
12624         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
12625         definition where used.
12626
12627 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
12628
12629         PR c/48716
12630         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
12631         TREE_STATIC variables declared inside of some OpenMP construct.
12632
12633 2011-04-22  Martin Jambor  <mjambor@suse.cz>
12634
12635         PR middle-end/48585
12636         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
12637
12638 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
12639
12640         PR c/36750
12641         * c-typeck.c (pop_init_level): Do not warn about initializing
12642         with ` = {0}'.
12643
12644 2011-04-22  Alan Modra  <amodra@gmail.com>
12645
12646         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
12647         when returning call_cookie.
12648         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
12649         pointers, to functions with no more vector args than the current
12650         function, and some non-local calls for ABI_V4.
12651         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
12652         sibcall_nonlocal_aix64): Combine to ..
12653         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
12654         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
12655         (sibcall_value_nonlocal_aix<mode>): ..likewise.
12656         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
12657         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
12658         operand.
12659         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
12660         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
12661         sibcall_value_symbolic_64): Delete.
12662
12663 2011-04-21  Xinliang David Li  <davidxl@google.com>
12664
12665         * cgraph.h: Remove pid.
12666         * cgraph.c: Remove pid.
12667         * value-prof.c (init_node_map): New function.
12668         (del_node_map): New function.
12669         (find_func_by_funcdef_no): New function.
12670         (gimple_ic_transform): Call new function.
12671         * cgraphunit.c (cgraph_finalize_function): Remove pid.
12672         * function.c (get_last_funcdef_no): New function.
12673         * function.h (get_last_funcdef_no): New function.
12674         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
12675         to libgcov function.
12676         (tree-profiling): Call node map init and delete function.
12677
12678 2011-04-21  Ian Lance Taylor  <iant@google.com>
12679
12680         * godump.c (go_format_type): Use exported Go name for anonymous
12681         field name.
12682
12683 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
12684
12685         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
12686         Call builtin_function_type_list instead of builtin_function_type.
12687         (UNARY, BINARY, TRINARY, QUAD): Likewise.
12688
12689 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
12690
12691         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
12692         build_function_type_list instead of build_function_type.
12693         Delete variable `endlink'.
12694
12695 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
12696
12697         * config/s390/s390.c (s390_init_builtins): Call
12698         build_function_type_list instead of build_function_type.
12699
12700 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
12701
12702         * config/ia64/ia64.c (ia64_init_builtins): Call
12703         build_function_type_list instead of builtin_function_type.
12704
12705 2011-04-21  Easwaran Raman  <eraman@google.com>
12706
12707         * cfgexpand.c (stack_var): Remove OFFSET...
12708         (add_stack_var): ...and its reference here...
12709         (expand_stack_vars): ...and here.
12710         (stack_var_cmp): Sort by descending order of size.
12711         (partition_stack_vars): Change heuristic.
12712         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
12713         (dump_stack_var_partition): Add newline after each partition.
12714
12715 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
12716             Jeff Law  <law@redhat.com>
12717
12718         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
12719         * gengtype.c (matching_file_name_substitute): Likewise.
12720
12721 2011-04-21  Richard Guenther  <rguenther@suse.de>
12722
12723         PR lto/48703
12724         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
12725
12726 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
12727
12728         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
12729
12730 2011-04-21  Richard Guenther  <rguenther@suse.de>
12731
12732         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
12733         file name.
12734
12735 2011-04-21  Richard Guenther  <rguenther@suse.de>
12736
12737         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
12738         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
12739         Use DECL_P, not SSA_VAR_P.
12740         (ptr_derefs_may_alias_p): Likewise.
12741         (ptr_deref_may_alias_ref_p_1): Likewise.
12742         (decl_refs_may_alias_p): Likewise.
12743         (refs_may_alias_p_1): Likewise.
12744         (ref_maybe_used_by_call_p_1): Likewise.
12745         (call_may_clobber_ref_p_1): Likewise.
12746         (indirect_ref_may_alias_decl_p): Assume indirect refrences
12747         are either MEM_REF or TARGET_MEM_REF.
12748         (indirect_refs_may_alias_p): Likewise.
12749         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
12750         for MEM_EXPR of indirect calls.
12751
12752 2011-04-21  Tristan Gingold  <gingold@adacore.com>
12753
12754         * vmsdbgout.c (write_srccorr): Compute file length from the string.
12755         (dst_file_info_struct): Remove flen field.
12756         (lookup_filename): Remove code that set flen field.
12757
12758 2011-04-21  Tristan Gingold  <gingold@adacore.com>
12759
12760         * config/ia64/ia64.c (ia64_start_function): Add a guard.
12761
12762 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
12763
12764         PR target/48708
12765         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
12766         vec_extract and vec_concat for non-SSE4_1 targets.
12767
12768 2011-04-21  Richard Guenther  <rguenther@suse.de>
12769
12770         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
12771         return statements.
12772
12773 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
12774
12775         * config/i386/cygming.h (union tree_node, TREE): Don't define or
12776         undefine.
12777         (FILE): Don't undefine.
12778
12779 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
12780
12781         * config/alpha/alpha.c (struct machine_function): Use rtx, not
12782         struct rtx_def *.
12783         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
12784         struct rtx_def *.
12785         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
12786         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
12787         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
12788         rtx_def *.
12789         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
12790         definitions where used.
12791         * config/microblaze/microblaze.h (struct microblaze_args): Use
12792         rtx, not struct rtx_def *.
12793         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
12794         rtx_def *.
12795         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
12796         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
12797         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
12798         not struct rtx_def *.
12799         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
12800         struct rtx_def *.
12801         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
12802         rtx_def *.
12803         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
12804
12805 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
12806
12807         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
12808         operand_equal_p to compare DR_BASE_ADDRESSes.
12809         (vect_check_interleaving): Likewise.
12810
12811 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
12812
12813         PR target/46329
12814         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
12815         for all Neon struct constants.
12816
12817 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
12818
12819         * target.def (legitimate_constant_p): New hook.
12820         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
12821         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
12822         * doc/tm.texi: Regenerate.
12823         * hooks.h (hook_bool_mode_rtx_true): Declare.
12824         * hooks.c (hook_bool_mode_rtx_true): Define.
12825         * system.h (LEGITIMATE_CONSTANT_P): Poison.
12826         * calls.c (precompute_register_parameters): Replace uses of
12827         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
12828         (emit_library_call_value_1): Likewise.
12829         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
12830         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
12831         * ira-costs.c (scan_one_insn): Likewise.
12832         * recog.c (general_operand, immediate_operand): Likewise.
12833         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
12834         * reload1.c (init_eliminable_invariants): Likewise.
12835
12836         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
12837         mode argument.
12838         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
12839         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
12840         argument.
12841         (TARGET_LEGITIMATE_CONSTANT_P): Define.
12842         * config/alpha/predicates.md (input_operand): Update call to
12843         alpha_legitimate_constant_p.
12844
12845         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
12846         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
12847         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
12848         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12849         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
12850         (arm_legitimate_constant_p): New functions.
12851         (arm_cannot_force_const_mem): Make static.
12852
12853         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
12854
12855         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
12856         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
12857         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
12858         instead of bfin_legitimate_constant_p.
12859         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
12860         (TARGET_LEGITIMATE_CONSTANT_P): Define.
12861
12862         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
12863
12864         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
12865
12866         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
12867         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
12868         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12869         (frv_legitimate_constant_p): Make static.  Add a mode argument.
12870
12871         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
12872         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
12873         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
12874
12875         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
12876         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
12877         * config/i386/i386.c (legitimate_constant_p): Rename to...
12878         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
12879         argument.
12880         (ix86_cannot_force_const_mem): Update accordingly.
12881         (ix86_legitimate_address_p): Likewise.
12882         (TARGET_LEGITIMATE_CONSTANT_P): Define.
12883         * config/i386/i386.md: Update commentary.
12884
12885         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
12886         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
12887         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12888         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
12889
12890         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
12891
12892         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
12893         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
12894         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12895         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
12896
12897         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
12898         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
12899         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
12900
12901         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
12902         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12903         (m32r_legitimate_constant_p): New function.
12904
12905         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
12906         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
12907         LEGITIMATE_CONSTANT_P.
12908         (LEGITIMATE_CONSTANT_P): Delete.
12909         * config/m68k/m68k.c (m68k_expand_prologue): Call
12910         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
12911         (m68k_legitimate_constant_p): New function.
12912         * config/m68k/m68k.md: Update comments.
12913
12914         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
12915         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12916         (mcore_legitimate_constant_p): New function.
12917
12918         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
12919         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
12920         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
12921         Add a mode argument.
12922         (mep_legitimate_address): Update accordingly.
12923         (TARGET_LEGITIMATE_CONSTANT_P): Define.
12924
12925         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
12926         Delete.
12927         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
12928         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
12929         static.  Check OP's mode for VOIDmode.
12930         (microblaze_legitimate_constant_p): New function.
12931         (TARGET_LEGITIMATE_CONSTANT_P): Define.
12932
12933         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
12934         * config/mips/mips.c (mips_legitimate_constant_p): New function.
12935         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
12936         (TARGET_LEGITIMATE_CONSTANT_P): Define.
12937         * config/mips/predicates.md: Update comments.
12938
12939         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
12940         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
12941         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12942         (mmix_legitimate_constant_p): Make static, return a bool, and take
12943         a mode argument.
12944         (mmix_print_operand_address): Update accordingly.
12945
12946         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
12947         Delete.
12948         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
12949         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
12950         static.  Add a mode argument.
12951         (TARGET_LEGITIMATE_CONSTANT_P): Define.
12952
12953         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
12954
12955         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
12956         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12957         (pa_legitimate_constant_p): New function.
12958
12959         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
12960
12961         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
12962         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12963         (pdp11_legitimate_constant_p): New function.
12964
12965         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
12966         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12967         (rs6000_legitimate_constant_p): New function.
12968
12969         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
12970         (rx_legitimate_constant_p): ...this.
12971         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
12972         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
12973         (rx_legitimate_constant_p): ...this.
12974         (TARGET_LEGITIMATE_CONSTANT_P): Define.
12975         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
12976
12977         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
12978         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
12979         * config/s390/s390.c (legitimate_constant_p): Rename to...
12980         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
12981         and add a mode argument.
12982         (TARGET_LEGITIMATE_CONSTANT_P): Define.
12983
12984         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
12985
12986         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
12987         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12988         (sh_legitimate_constant_p): New function.
12989
12990         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
12991         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
12992         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12993         (legitimate_constant_p): Rename to...
12994         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
12995         argument.
12996         (constant_address_p): Update accordingly.
12997
12998         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
12999         argument and return a bool.
13000         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
13001         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13002         (spu_legitimate_constant_p): Add a mode argument and return a bool.
13003         (spu_rtx_costs): Update accordingly.
13004         * config/spu/predicates.md (vec_imm_operand): Likewise.
13005
13006         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
13007
13008         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
13009         * config/v850/v850.c (v850_legitimate_constant_p): New function.
13010         (TARGET_LEGITIMATE_CONSTANT_P): Define.
13011
13012         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
13013         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
13014         * config/vax/vax.c (legitimate_constant_p): Likewise.
13015
13016         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
13017         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13018         (xtensa_legitimate_constant_p): New function.
13019
13020 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
13021
13022         * target.def (cannot_force_const_mem): Add a mode argument.
13023         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
13024         * doc/tm.texi: Regenerate.
13025         * hooks.h (hook_bool_mode_rtx_false): Declare.
13026         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
13027         (hook_bool_mode_const_rtx_true): Likewise.
13028         (hook_bool_mode_rtx_false): New function.
13029         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
13030         to be non-VOID.  Update call to cannot_force_const_mem.
13031         (find_reloads): Update accordingly.
13032         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
13033         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
13034         argument.
13035         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
13036         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
13037         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
13038         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
13039         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
13040         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
13041         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
13042         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
13043         (m68k_cannot_force_const_mem): ...this new function.
13044         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
13045         argument.
13046         (mips_const_insns, mips_legitimize_const_move): Update calls.
13047         (mips_secondary_reload_class): Likewise.
13048         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
13049         (pa_cannot_force_const_mem): ...this new function.
13050         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
13051         (rs6000_cannot_force_const_mem): ...this new function.
13052         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
13053         argument.
13054         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
13055         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
13056         to...
13057         (xtensa_cannot_force_const_mem): ...this new function.
13058
13059 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
13060
13061         * config/mips/mips.c (mips16_build_function_stub): Call
13062         build_function_type_list instead of build_function_type.
13063         (mips16_build_call_stub): Likewise.
13064
13065 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
13066
13067         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
13068         instead of build_function_type.
13069
13070 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
13071
13072         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
13073         instead of build_function_type.
13074
13075 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
13076
13077         PR target/48678
13078         * config/i386/i386.md (insv): Change operand 0 constraint to
13079         "register_operand".  Change operand 1 and 2 constraint to
13080         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
13081         * config/i386/sse.md (sse4_1_pinsrb): Export.
13082         (sse2_pinsrw): Ditto.
13083         (sse4_1_pinsrd): Ditto.
13084         (sse4_1_pinsrq): Ditto.
13085         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
13086         * config/i386/i386.c (ix86_expand_pinsr): New.
13087
13088 2011-04-20  Easwaran Raman  <eraman@google.com>
13089
13090         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
13091         containing union type only with -fstrict-aliasing.
13092
13093 2011-04-20  Jim Meyering  <meyering@redhat.com>
13094
13095         Remove useless if-before-free tests.
13096         * calls.c (expand_call, save_area): Likewise.
13097         * cfgcleanup.c (try_forward_edges): Likewise.
13098         * collect2.c (collect_execute): Likewise.
13099         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
13100         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
13101         * coverage.c (coverage_checksum_string): Likewise.
13102         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
13103         * cselib.c (cselib_init): Likewise.
13104         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
13105         (df_set_clean_cfg): Likewise.
13106         * function.c (free_after_compilation): Likewise.
13107         * gcc.c (do_spec_1, main): Likewise.
13108         * gcov.c (create_file_names): Likewise.
13109         * gensupport.c (identify_predicable_attribute): Likewise.
13110         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
13111         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
13112         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
13113         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
13114         * ipa-pure-const.c (local_pure_const): Likewise.
13115         * ipa-reference.c (propagate): Likewise.
13116         * ira-costs.c (free_ira_costs): Likewise.
13117         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
13118         * matrix-reorg.c (mat_free): Likewise.
13119         * prefix.c (get_key_value): Likewise.
13120         * profile.c (compute_value_histograms): Likewise.
13121         * reload1.c (free_reg_equiv): Likewise.
13122         * sched-deps.c (free_deps): Likewise.
13123         * sel-sched-ir.c (fence_clear): Likewise.
13124         * sese.c (set_rename, if_region_set_false_region): Likewise.
13125         * tree-data-ref.c (free_rdg): Likewise.
13126         * tree-eh.c (lower_try_finally): Likewise.
13127         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
13128         * tree-ssa-live.c (delete_var_map): Likewise.
13129         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
13130         * tree-ssa-pre.c (phi_trans_add): Likewise.
13131
13132 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
13133
13134         PR tree-optimization/48611
13135         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
13136         beyond ERT_MUST_NOT_THROW region.
13137
13138 2011-04-20  Catherine Moore  <clm@codesourcery.com>
13139
13140         * config/mips/mips.opt (mfix-24k): New.
13141         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
13142         * config/mips/mips.md (length): Increase by 4 for stores if
13143         fixing 24K errata.
13144         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
13145         all noreorder if fixing 24K errata.
13146         * doc/invoke.texi: Document mfix-24k.
13147
13148 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
13149
13150         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
13151         quad-word modes, reduce to 9-bit index range when above 1016 limit.
13152
13153 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
13154
13155         * config/arm/arm.c (arm_gen_constant): Move movw support ....
13156         (const_ok_for_op): ... to here.
13157
13158 2011-04-20  Kai Tietz  <ktietz@redhat.com>
13159
13160         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
13161         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
13162
13163 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
13164
13165         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
13166
13167 2011-04-20  Richard Guenther  <rguenther@suse.de>
13168
13169         PR tree-optimization/47892
13170         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
13171         are if-convertible.
13172
13173 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
13174
13175         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
13176
13177 2011-04-20  Tristan Gingold  <gingold@adacore.com>
13178
13179         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
13180
13181 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
13182
13183         PR target/18145
13184
13185         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
13186         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
13187         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
13188         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
13189         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
13190
13191         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
13192         New prototype.
13193
13194         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
13195         (avr_asm_named_section, avr_asm_output_aligned_common,
13196         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
13197         New functions to update...
13198         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
13199         (avr_asm_init_sections): Overwrite section callbacks for
13200         data_section, bss_section.
13201         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
13202         from here to...
13203         (avr_file_end): ...here.
13204
13205 2011-04-20  Richard Guenther  <rguenther@suse.de>
13206
13207         PR middle-end/48695
13208         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
13209         objects and types here.  Adjust for their offset before comparing.
13210
13211 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
13212
13213         * tree-vect-stmts.c (vectorizable_store): Only chain one related
13214         statement per copy.
13215
13216 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
13217
13218         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
13219         (GIMPLE_H): Include $(INTERNAL_FN_H).
13220         (OBJS-common): Add internal-fn.o.
13221         (internal-fn.o): New rule.
13222         * internal-fn.def: New file.
13223         * internal-fn.h: Likewise.
13224         * internal-fn.c: Likewise.
13225         * gimple.h: Include internal-fn.h.
13226         (GF_CALL_INTERNAL): New gf_mask.
13227         (gimple_statement_call): Put fntype into a union with a new
13228         internal_fn field.
13229         (gimple_build_call_internal): Declare.
13230         (gimple_build_call_internal_vec): Likewise.
13231         (gimple_call_same_target_p): Likewise.
13232         (gimple_call_internal_p): New function.
13233         (gimple_call_internal_fn): Likewise.
13234         (gimple_call_fntype): Return null for internal calls.
13235         (gimple_call_set_fntype): Assert that the function is not internal.
13236         (gimple_call_set_fn): Likewise.
13237         (gimple_call_set_fndecl): Likewise.
13238         (gimple_call_set_internal_fn): New function.
13239         (gimple_call_addr_fndecl): Handle null functions.
13240         (gimple_call_return_type): Likewise null types.
13241         * gimple.c (gimple_build_call_internal_1): New function.
13242         (gimple_build_call_internal): Likewise.
13243         (gimple_build_call_internal_vec): Likewise.
13244         (gimple_call_same_target_p): Likewise.
13245         (gimple_call_flags): Handle calls to internal functions.
13246         (gimple_call_fnspec): New function.
13247         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
13248         (gimple_has_side_effects): Handle null functions.
13249         (gimple_rhs_has_side_effects): Likewise.
13250         (gimple_call_copy_skip_args): Handle calls to internal functions.
13251         * cfgexpand.c (expand_call_stmt): Likewise.
13252         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
13253         * gimple-fold.c (gimple_fold_call): Handle null functions.
13254         (gimple_fold_stmt_to_constant_1): Don't fold
13255         calls to internal functions.
13256         * gimple-low.c (gimple_check_call_args): Handle calls to internal
13257         functions.
13258         * gimple-pretty-print.c (dump_gimple_call): Likewise.
13259         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
13260         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
13261         (do_warn_unused_result): Likewise.
13262         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
13263         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
13264         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
13265         the target of a call.
13266         (initialize_hash_element): Update accordingly.
13267         (hashable_expr_equal_p): Use gimple_call_same_target_p.
13268         (iterative_hash_hashable_expr): Handle calls to internal functions.
13269         (print_expr_hash_elt): Likewise.
13270         * tree-ssa-pre.c (can_value_number_call): Likewise.
13271         (eliminate): Handle null functions.
13272         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
13273         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
13274         (find_func_aliases): Likewise.
13275         * value-prof.c (gimple_ic_transform): Likewise.
13276         (gimple_indirect_call_to_profile): Likewise.
13277         * lto-streamer-in.c (input_gimple_stmt): Likewise.
13278         * lto-streamer-out.c (output_gimple_stmt): Likewise.
13279
13280 2011-04-19  Jan Hubicka  <jh@suse.cz>
13281
13282         * ipa-inline-transform.c (save_inline_function_body): Add comments.
13283         * ipa-inline.c (inline_small_functions): Compute summaries first,
13284         populate heap later.
13285
13286 2011-04-19  Jan Hubicka  <jh@suse.cz>
13287
13288         * cgraph.h (save_inline_function_body): Remove.
13289         * ipa-inline-transform.c: New file, broke out of...
13290         * ipa-inline.c: ... this one; Update toplevel comment.
13291         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
13292         make global.
13293         (update_noncloned_frequencies): Move to ipa-inline-transform.c
13294         (cgraph_mark_inline_edge): Rename to inline_call; move to
13295         ipa-inline-transform.c.
13296         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
13297         move to ipa-inline-transform.c
13298         (recursive_inlining, inline_small_functions, flatten_function,
13299         ipa_inline, inline_always_inline_functions,
13300         early_inline_small_functions): Update.
13301         (inline_transform): Move to ipa-inline-transform.c.
13302         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
13303         Declare.
13304         * Makefile.in (ipa-inline-transform.o): New file.
13305         * cgraphunit.c (save_inline_function_body): Move to
13306         ipa-inline-transform.c
13307
13308 2011-04-19  DJ Delorie  <dj@redhat.com>
13309
13310         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
13311         registers if we already know there aren't any.
13312         (m32c_emit_epilogue): Don't emit a barrier here.
13313         (m32c_emit_eh_epilogue): Likewise.
13314         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
13315         operands at expand time.
13316         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
13317         int" wchar type.
13318         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
13319         duplicates.  Provide aliases instead.
13320         * config/m32c/prologue.md (eh_return): Emit a barrier here.
13321         (eh_epilogue): Add a "(return)" here as a hint to other parts of
13322         the compiler.
13323
13324 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
13325
13326         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
13327         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
13328         (general_or_i64_p, sparc_register_move_cost): New function.
13329
13330 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13331
13332         * doc/install.texi (Configuration, --enable-threads): Remove mach.
13333         Add lynx, mipssde.  Sort table.
13334
13335 2011-04-19  Xinliang David Li  <davidxl@google.com>
13336
13337         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
13338         not negative.
13339
13340 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
13341
13342         PR target/48678
13343         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
13344         is a SUBREG with non-MODE_INT mode inside of it.
13345
13346 2011-04-19  Martin Jambor  <mjambor@suse.cz>
13347
13348         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
13349         also according to actual contants.
13350         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
13351         (gimple_fold_call): Use it.
13352         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
13353
13354 2011-04-19  Martin Jambor  <mjambor@suse.cz>
13355
13356         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
13357         non-pointer assignments.
13358
13359 2011-04-19  Martin Jambor  <mjambor@suse.cz>
13360
13361         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
13362         account anc_offset and otr_type from the indirect edge info.
13363         * ipa-prop.c (get_ancestor_addr_info): New function.
13364         (compute_complex_ancestor_jump_func): Assignment analysis moved to
13365         get_ancestor_addr_info, call it.
13366         (ipa_note_param_call): Do not initialize information about polymorphic
13367         calls, return the indirect call graph edge.  Remove the last
13368         parameter, adjust all callers.
13369         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
13370         parameters.  Initialize polymorphic information in the indirect edge.
13371
13372 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
13373
13374         PR lto/48148
13375         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
13376         the types if they have different enumeration identifiers.
13377
13378 2011-04-19  Jan Hubicka  <jh@suse.cz>
13379
13380         * cgraph.h (cgraph_optimize_for_size_p): Declare.
13381         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
13382         * predict.c (cgraph_optimize_for_size_p): Break out from ...
13383         (optimize_function_for_size_p) ... here.
13384
13385 2011-04-19  Richard Guenther  <rguenther@suse.de>
13386
13387         PR lto/48207
13388         * tree.c (free_lang_data): Do not reset the decl-assembler-name
13389         langhook.
13390
13391 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
13392
13393         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
13394         if DECL_NO_INLINE_WARNING_P is set on the function.
13395
13396 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
13397
13398         PR fortran/47976
13399         * reload1.c (inc_for_reload): Return void. All callers changed.
13400         (emit_input_reload_insns): Don't try to delete previous output
13401         reloads to a register, or record spill_reg_store for autoincs.
13402
13403 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
13404
13405         * gengtype.h: Updated copyright year.
13406         (struct input_file_st): Add inpisplugin field.
13407         (type_fileloc): New function.
13408         * gengtype.c
13409         (write_typed_struct_alloc_def): Add gcc_assert.
13410         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
13411         (write_typed_alloc_defns): Don't output for plugin files.
13412         (input_file_by_name): Clear inpisplugin field.
13413         (main): Set inpisplugin field for plugin files.
13414
13415 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
13416
13417         * gengtype-state.c (string_eq): New.
13418         (read_state): Use string_eq instead of strcmp when creating the
13419         state_ident_tab.
13420
13421 2011-04-19  Wei Guozhi  <carrot@google.com>
13422
13423         PR target/47855
13424         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
13425         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
13426         linkage.
13427         * config/arm/constraints.md (Uu): New constraint.
13428         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
13429
13430 2011-04-19  Tristan Gingold  <gingold@adacore.com>
13431
13432         * config.gcc (-*-*-*vms): Added.
13433         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
13434         definitions moved.
13435         * config/vms/vms-ld.c: New file.
13436         * config/vms/vms-ar.c: New file.
13437         * config/vms/t-vmsnative: New file.
13438
13439 2011-04-18  Xinliang David Li  <davidxl@google.com>
13440
13441         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
13442
13443 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
13444
13445         PR middle-end/48661
13446         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
13447         if TREE_TYPE (v) is non-NULL.
13448
13449         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
13450         gimple_get_virt_mehtod_for_binfo.
13451         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
13452         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
13453         callers.
13454         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
13455
13456 2011-04-18  Michael Matz  <matz@suse.de>
13457             Steve Ellcey  <sje@cup.hp.com>
13458
13459         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
13460         use its mode as source mode if it isn't VOIDmode.
13461
13462 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
13463
13464         * doc/passes.texi: Fill crossref nodes.
13465
13466 2011-04-18  Jim Meyering  <meyering@redhat.com>
13467
13468         Fix doubled-word typos in comments and strings
13469         * config/alpha/vms-unwind.h: s/for for/for/
13470         * config/arm/unwind-arm.h: Likewise.
13471         * config/microblaze/microblaze.c: Likewise.
13472         * config/sh/constraints.md: s/in in/in/
13473         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
13474
13475 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
13476
13477         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
13478         (AVX_FLOAT_MODE_P): Ditto.
13479         (AVX128_VEC_FLOAT_MODE_P): Ditto.
13480         (AVX256_VEC_FLOAT_MODE_P): Ditto.
13481         (AVX_VEC_FLOAT_MODE_P): Ditto.
13482         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
13483         (UNSPEC_MASKSTORE): Ditto.
13484         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
13485         Merge from <sse>_movmsk<ssemodesuffix> and
13486         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
13487         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
13488         iterator.
13489         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
13490         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
13491         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
13492
13493 2011-04-18  Jan Hubicka  <jh@suse.cz>
13494
13495         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
13496
13497         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
13498         (want_inline_function_called_once_p): Break out the logic from
13499         ipa_inline.
13500         (edge_badness): Ensure that profile is not misupdated.
13501         (lookup_recursive_calls): Prioritize by call frequencies.
13502         (inline_small_functions): Move program size estimates here;
13503         actually process whole queue even when unit growth has been
13504         met. (to properly compute inline_failed reasons and for the
13505         case unit size decrease.) Revisit comments on recursive inlining.
13506         (ipa_inline): Remove unit summary code; first inline hot calls
13507         of functions called once, cold calls next.
13508         (order, nnodes): Remove unused variables.
13509         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
13510         (GTFILES): Remove ipa-inline.c
13511         * sel-sched.c (fill_insns): Silence uninitialized var warning.
13512
13513 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
13514
13515         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
13516
13517 2011-04-18  Jie Zhang  <jie@codesourcery.com>
13518             Richard Earnshaw  <rearnsha@arm.com>
13519
13520         * arm.c (neon_builtin_type_bits): Remove.
13521         (typedef enum neon_builtin_mode): New.
13522         (T_MAX): Don't define.
13523         (typedef enum neon_builtin_datum): Remove bits, codes[],
13524         num_vars and base_fcode.  Add mode, code and fcode.
13525         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
13526         VAR10): Change accordingly.
13527         (neon_builtin_data[]): Change accordingly
13528         (arm_init_neon_builtins): Change accordingly.
13529         (neon_builtin_compare): Remove.
13530         (locate_neon_builtin_icode): Remove.
13531         (arm_expand_neon_builtin): Change accordingly.
13532
13533         * arm.h (enum arm_builtins): Move to ...
13534         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
13535
13536         * arm.c (arm_builtin_decl): Declare.
13537         (TARGET_BUILTIN_DECL): Define.
13538         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
13539         (arm_builtin_decls[]): New.
13540         (arm_init_neon_builtins): Store builtin declarations in
13541         arm_builtin_decls[].
13542         (arm_init_tls_builtins): Likewise.
13543         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
13544         (arm_builtin_decl): New.
13545
13546 2011-04-18  Richard Guenther  <rguenther@suse.de>
13547
13548         * tree.c (upper_bound_in_type): Build properly canonicalized
13549         INTEGER_CSTs.
13550         (lower_bound_in_type): Likewise.
13551
13552 2011-04-18  Richard Guenther  <rguenther@suse.de>
13553
13554         * gimple.h (gimple_call_addr_fndecl): New function.
13555         (gimple_call_fndecl): Use it.
13556         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
13557         for direct calls.
13558         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
13559         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
13560
13561 2011-04-18  Richard Guenther  <rguenther@suse.de>
13562
13563         PR middle-end/48650
13564         * tree.c (build_string): STRING_CST is now derived from tree_typed.
13565
13566 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
13567
13568         PR lto/48492
13569         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
13570         DECL_IN_CONSTANT_POOL without RTL.
13571
13572 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
13573             Ira Rosen  <ira.rosen@linaro.org>
13574
13575         PR target/48252
13576         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
13577         to match neon_vzip/vuzp/vtrn_internal.
13578         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
13579         outputs explicitly dependent on both inputs.
13580         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
13581
13582 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
13583
13584         PR tree-optimization/48616
13585         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
13586         whether the shift is by scalar or vector based on whether all SLP
13587         scalar stmts have the same rhs.
13588
13589 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
13590
13591         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
13592         memory operands.
13593
13594 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
13595
13596         PR target/43700
13597         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
13598         registers.
13599
13600 2011-04-17  Jan Hubicka  <jh@suse.cz>
13601
13602         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
13603         * cgrpahunit.c (cgraph_finalize_function): Do not set
13604         finalized_by_frontend.
13605         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
13606         finalized_by_frontend.
13607
13608 2011-04-17  Jan Hubicka  <jh@suse.cz>
13609
13610         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
13611         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
13612         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
13613         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
13614         method.
13615         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
13616         gimple-fold.c
13617         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
13618
13619 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
13620
13621         PR lto/48538
13622         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
13623         is non-null before accessing it.
13624         (input_cgraph): Remove trailing spaces.
13625
13626 2011-04-17  Revital Eres  <revital.eres@linaro.org>
13627
13628         * params.def (sms-min-sc): New param flag.
13629         * modulo-sched.c (sms_schedule): Use it.
13630         * doc/invoke.texi (sms-min-sc): Document it.
13631
13632 2011-04-17  Jan Hubicka  <jh@suse.cz>
13633
13634         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
13635         present, also set gimple_call_set_cannot_inline.
13636         * ipa-inline.c: Update toplevel comment.
13637         (MAX_TIME): Remove.
13638         (cgraph_clone_inlined_nodes): Fix linebreaks.
13639         (cgraph_check_inline_limits): Restructure to ...
13640         (caller_growth_limits): ... this one; be more tolerant
13641         on growth in nested inline chains; add explanatory comment;
13642         fix stack accounting thinko introduced by previous patch.
13643         (cgraph_default_inline_p): Remove.
13644         (report_inline_failed_reason): New function.
13645         (can_inline_edge_p): New function.
13646         (can_early_inline_edge_p): New function.
13647         (leaf_node_p): Move upwards in file.
13648         (want_early_inline_function_p): New function.
13649         (want_inline_small_function_p): New function.
13650         (want_inline_self_recursive_call_p): New function.
13651         (cgraph_edge_badness): Rename to ...
13652         (edge_badness) ... this one; fix linebreaks.
13653         (update_edge_key): Update call of edge_baddness; add
13654         detailed dump about queue updates.
13655         (update_caller_keys): Use can_inline_edge_p and
13656         want_inline_small_function_p.
13657         (cgraph_decide_recursive_inlining): Rename to...
13658         (recursive_inlining): Use can_inline_edge_p and
13659         want_inline_self_recursive_call_p; simplify and remove no longer
13660         valid FIXME.
13661         (cgraph_set_inline_failed): Remove.
13662         (add_new_edges_to_heap): Use can_inline_edge_p and
13663         want_inline_small_function_p.
13664         (cgraph_decide_inlining_of_small_functions): Rename to ...
13665         (inline_small_functions): ... this one; cleanup; use
13666         can/want predicates; cleanup debug ouput; work edges till fibheap
13667         is exhausted and do not stop once unit growth is reached; remove
13668         later loop processing remaining edges.
13669         (cgraph_flatten): Rename to ...
13670         (flatten_function): ... this one; use can_inline_edge_p
13671         and can_early_inline_edge_p predicates.
13672         (cgraph_decide_inlining): Rename to ...
13673         (ipa_inline): ... this one; remove unreachable nodes before
13674         inlining functions called once; simplify the pass.
13675         (cgraph_perform_always_inlining): Rename to ...
13676         (inline_always_inline_functions): ... this one; use
13677         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
13678         (cgraph_decide_inlining_incrementally): Rename to ...
13679         (early_inline_small_functions): ... this one; simplify
13680         using new predicates; cleanup; make dumps prettier.
13681         (cgraph_early_inlining): Rename to ...
13682         (early_inliner): newer inline regular functions into always-inlines;
13683         fix updating of call stmt summaries.
13684         (pass_early_inline): Update for new names.
13685         (inline_transform): Fix formating.
13686         (gate_cgraph_decide_inlining): Rename to ...
13687         (pass_ipa_inline): ... this one.
13688         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
13689         * ipa-inline-analysis.c (dump_inline_summary): Update.
13690         (compute_inline_parameters): Do not compute disregard_inline_limits;
13691         look for mismatching arguments.
13692         (estimate_growth): Fix handlig of non-trivial self recursion.
13693         (inline_read_summary): Do not read info->disregard_inline_limits.
13694         (inline_write_summary): Do not write info->disregard_inline_limits.
13695         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
13696         and move all checks into can_inline_edge_p predicate; re-enable code
13697         comparing optimization levels.
13698         (expand_call_inline): Do not test inline_forbidden_into_p.
13699         * Makefile.in (ipa-inline.o): Update arguments.
13700
13701 2011-04-17  Revital Eres  <revital.eres@linaro.org>
13702
13703         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
13704
13705 2011-04-17  Revital Eres  <revital.eres@linaro.org>
13706
13707         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
13708
13709 2011-04-17  Michael Matz  <matz@suse.de>
13710
13711         PR tree-optimization/48622
13712         PR lto/48645
13713         * ipa-inline-analysis.c (inline_read_summary): Read size/time
13714         in same order as they're written.
13715
13716 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13717
13718         * config/pa/predicates.md: Reorganize and simplify predicates.
13719         Eliminate duplicate code checks.
13720         (arith_operand): Rename to arith14_operand
13721         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
13722         * config/pa/pa.md: Use renamed operands.
13723         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
13724         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
13725         arith11_operand, adddi3_operand, indexed_memory_operand,
13726         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
13727         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
13728         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
13729         move_dest_operand, move_src_operand, prefetch_cc_operand,
13730         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
13731         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
13732         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
13733         div_operand, int5_operand, movb_comparison_operator,
13734         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
13735         arith_double_operand, ireg_operand, lhs_lshift_operand,
13736         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
13737         integer_store_memory_operand): Likewise.
13738         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
13739         (integer_store_memory_operand, read_only_operand,
13740         function_label_operand, borx_reg_operand,
13741         non_hard_reg_operand): Likewise.
13742         (eq_neq_comparison_operator): Delete unused operator.
13743         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
13744         function_label_operand.
13745         (emit_move_sequence): Likewise.
13746
13747 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
13748
13749         * config/i386/sse.md (sseunpackmode): New mode attribute.
13750         (ssepackmode): Ditto.
13751         (vec_pack_trunc_<mode>): Macroize expander from
13752         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
13753         (vec_unpacks_lo_<mode>): Macroize expander from
13754         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
13755         (vec_unpacks_hi_<mode>): Macroize expander from
13756         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
13757         (vec_unpacku_lo_<mode>): Macroize expander from
13758         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
13759         (vec_unpacku_hi_<mode>): Macroize expander from
13760         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
13761         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
13762         ix86_expand_sse4_unpack.
13763         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
13764
13765 2011-04-16  Jan Hubicka  <jh@suse.cz>
13766
13767         * cgraphbuild.c: Include ipa-inline.h.
13768         (reset_inline_failed): Use initialize_inline_failed.
13769         * cgraph.c: Include ipa-inline.h.
13770         (cgraph_create_node_1): Do not initialize estimated_growth.
13771         (initialize_inline_failed): More to ipa-inline-analysis.c
13772         (dump_cgraph_node): Do not dump inline flags.
13773         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
13774         and disregard_inline_limits flags.
13775         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
13776         time, size, estimated_growth.
13777         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
13778         Update.
13779         * cgraphunit.c (cgraph_decide_is_function_needed): Use
13780         DECL_DISREGARD_INLINE_LIMITS.
13781         (cgraph_analyze_function): Do not initialize
13782         node->local.disregard_inline_limits.
13783         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
13784         inlinable, versionable and disregard_inline_limits.
13785         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
13786         cgraph_check_inline_limits, cgraph_default_inline_p,
13787         cgraph_edge_badness, update_caller_keys, update_callee_keys,
13788         add_new_edges_to_heap): Update.
13789         (cgraph_decide_inlining_of_small_function): Update; set
13790         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
13791         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
13792         cgraph_decide_inlining_incrementally): Update.
13793         * ipa-inline.h (inline_summary): Add inlinable, versionable,
13794         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
13795         time, size and estimated_growth parameters.
13796         (estimate_edge_growth): Update.
13797         (initialize_inline_failed): Declare.
13798         * ipa-split.c: Include ipa-inline.h
13799         (execute_split_functions): Update.
13800         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
13801         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
13802         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
13803         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
13804         estimated_growth to INT_MIN.
13805         (inline_node_duplication_hook): Likewise.
13806         (dump_inline_summary): Dump new fields.
13807         (compute_inline_parameters): Update.
13808         (estimate_edge_time, estimate_time_after_inlining,
13809         estimate_size_after_inlining, estimate_growth, inline_read_summary,
13810         inline_write_summary):
13811         (initialize_inline_failed): Move here from cgraph.c.
13812         * tree-sra.c: Include ipa-inline.h.
13813         (ipa_sra_preliminary_function_checks): Update.
13814         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
13815         ipa-inline.h.
13816
13817 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
13818
13819         * config/i386/sse.md (V16): New mode iterator.
13820         (VI1, VI8): Ditto.
13821         (AVXMODEQI, AVXMODEDI): Remove.
13822         (sse2, sse3): New mode attribute.
13823         (mov<mode>): Use V16 mode iterator.
13824         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
13825         (push<mode>1): Use V16 mode iterator.
13826         (movmisalign<mode>): Ditto.
13827         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
13828         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
13829         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
13830         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
13831         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
13832         avx_movdqu<avxmodesuffix>.
13833         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
13834         *avx_movdqu<avxmodesuffix>.
13835         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
13836         avx_lddqu<avxmodesuffix>.
13837         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
13838         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
13839         avx_movnt<AVXMODEDI:mode>.
13840         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
13841         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
13842
13843 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
13844
13845         PR target/48629
13846         * haifa-sched.c (prune_ready_list, schedule_block): Use
13847         sched_pressure_p rather than flag_sched_pressure.
13848
13849 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
13850
13851         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
13852         cgraph_get_node instead of cgraph_get_create_node.
13853
13854 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
13855
13856         * cfgexpand.c (expand_debug_expr): Use
13857         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
13858
13859 2011-04-15  Michael Matz  <matz@suse.de>
13860
13861         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
13862         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
13863         * function.c (gimplify_parameters): Ditto.
13864         * gimplify.c (gimplify_vla_decl): Ditto.
13865
13866         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
13867         (gimple_call_set_alloca_for_var): New inline function.
13868         (gimple_call_alloca_for_var_p): Ditto.
13869         * gimple.c (gimple_build_call_from_tree): Remember
13870         CALL_ALLOCA_FOR_VAR_P state.
13871         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
13872
13873         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
13874         calls if they were for VLA objects.
13875
13876 2011-04-15  Martin Jambor  <mjambor@suse.cz>
13877
13878         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
13879         of ADR_EXPRs.
13880
13881 2011-04-15  Martin Jambor  <mjambor@suse.cz>
13882
13883         PR middle-end/48601
13884         * tree-emutls.c (lower_emutls_function_body): Call
13885         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
13886         result is non-NULL.
13887
13888 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
13889
13890         * c-decl.c (detect_field_duplicates): Call
13891         objc_detect_field_duplicates instead of objc_get_interface_ivars.
13892
13893 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
13894
13895         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
13896         * gimple.c (gimple_asm_clobbers_memory_p): Define.
13897         * ipa-pure-const.c (check_stmt): Call it.
13898         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
13899
13900 2011-04-15  Richard Guenther  <rguenther@suse.de>
13901
13902         PR tree-optimization/48290
13903         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
13904         Properly decide inhibiting propagation based on the valueized
13905         operand.  Do loop-closed SSA form preserving here ...
13906         (init_copy_prop): ... not here.
13907
13908 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
13909
13910         PR target/48612
13911         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
13912         (*ieee_smax<mode>3): Likewise.
13913
13914 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13915
13916         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
13917         Replace match_operand with match_dup for the third operand in
13918         these expanders.
13919
13920 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
13921
13922         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
13923         to track processing of conditionals.  Update all callers.
13924         (try_combine, simplify_if_then_else): Update.
13925
13926 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
13927
13928         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
13929         -fsched-pressure.
13930
13931 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
13932
13933         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
13934         instead of match_operand for operand 3.
13935
13936 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
13937
13938         * recog.h (insn_operand_data): Add an "allows_mem" field.
13939         * genoutput.c (output_operand_data): Initialize it.
13940         * optabs.c (maybe_legitimize_operand_same_code): New function.
13941         (maybe_legitimize_operand): Use it when matching the original
13942         op->value.
13943
13944 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
13945
13946         * gimplify.c: Fix issues in comments throughout.
13947         (voidify_wrapper_expr): Fix long line.
13948         (build_stack_save_restore): Likewise.
13949         (gimplify_loop_expr): Likewise.
13950         (gimplify_compound_lval): Likewise.
13951         (gimplify_init_ctor_eval): Likewise.
13952         (gimplify_modify_expr_rhs): Likewise.
13953         (omp_notice_threadprivate_variable): Likewise.
13954
13955 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
13956
13957         * cfgexpand.c (expand_call_stmt): Convert the function type to the
13958         original one if this is not a builtin function.
13959
13960 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
13961
13962         PR target/48605
13963         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
13964         offset it as needed based on top 2 bits in operands[3], change
13965         MEM mode to SFmode and mask those 2 bits away from operands[3].
13966
13967 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
13968
13969         * c-parser.c (c_parser_objc_protocol_definition): Updated for
13970         change from objc_declare_protocols() to objc_declare_protocol().
13971
13972 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
13973
13974         * config/i386/sse.md (sse4_1): New mode attribute.
13975         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
13976         avx_blend<ssemodesuffix><avxmodesuffix> and
13977         sse4_1_blend<ssemodesuffix> using VF mode iterator.
13978         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
13979         avx_blendv<ssemodesuffix><avxmodesuffix> and
13980         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
13981         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
13982         avx_dp<ssemodesuffix><avxmodesuffix> and
13983         sse4_1_dp<ssemodesuffix> using VF mode iterator.
13984         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
13985         (sse4_1_packusdw): Merge with *avx_packusdw.
13986         (sse4_1_pblendvb): Merge with *avx_pblendvb.
13987         (sse4_1_pblendw): Merge with *avx_pblendw.
13988         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
13989         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
13990         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
13991         VF mode iterator.
13992         (sse4_1_round<ssescalarmodesuffix>): Merge with
13993         *avx_round<ssescalarmodesuffix>.
13994         (aesenc): Merge with *avx_aesenc.
13995         (aesenclast): Merge with *avx_aesenclast.
13996         (aesdec): Merge with *avx_aesdec.
13997         (aesdeclast): Merge with *avx_aesdeclast.
13998         (pclmulqdq): Merge with *pclmulqdq.
13999         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
14000         New predicate.
14001         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
14002
14003 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
14004
14005         PR middle-end/48608
14006         * cfgexpand.c (get_decl_align_unit): Renamed to ...
14007         (align_local_variable): This.  Update DECL_ALIGN.
14008         (add_stack_var): Updated.
14009         (expand_one_stack_var): Likewise.
14010
14011 2011-04-14  Richard Guenther  <rguenther@suse.de>
14012
14013         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
14014         Remove.
14015         (dse_initialize_block_local_data, dse_leave_block,
14016         record_voperand_set, get_stmt_uid): Likewise.
14017         (dse_possible_dead_store_p): Allow any kind of killing stmt.
14018         (dse_optimize_stmt): Remove voperand set handling code.
14019         Simplify and improve to handle any kind of killing stmt.
14020         (dse_record_phi): Remove.
14021         (dse_enter_block): Simplify.
14022         (tree_ssa_dse): Likewise.
14023         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
14024
14025 2011-04-14  Jan Hubicka  <jh@suse.cz>
14026
14027         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
14028         * cgraph.h (struct inline_summary): Move to ipa-inline.h
14029         (cgraph_local_info): Remove inline_summary.
14030         * ipa-cp.c: Include ipa-inline.h.
14031         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
14032         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
14033         accesor.
14034         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
14035         (input_overwrite_node): Do not set inline summary.
14036         (input_node): Do not stream inline summary.
14037         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
14038         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
14039         growth; we do not have inline parameters computed for that anyway.
14040         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
14041         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
14042         (inline_summary_t): New type and VECtor.
14043         (debug_inline_summary, dump_inline_summaries): Declare.
14044         (inline_summary): Use VOCtor.
14045         (estimate_edge_growth): Kill hack computing call stmt size directly.
14046         * lto-section-in.c (lto_section_name): Add inline section.
14047         * ipa-inline-analysis.c: Include lto-streamer.h
14048         (node_removal_hook_holder, node_duplication_hook_holder): New holders
14049         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
14050         (inline_summary_vec): Define.
14051         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
14052         dump_inline_summaries): New functions.
14053         (estimate_function_body_sizes): Properly compute size/time of outgoing
14054         calls.
14055         (compute_inline_parameters): Alloc inline_summary; do not compute
14056         size/time of incomming calls.
14057         (estimate_edge_time): Avoid missing time summary hack.
14058         (inline_read_summary): Read inline summary info.
14059         (inline_write_summary): Write inline summary info.
14060         (inline_free_summary): Free all hooks and inline summary vector.
14061         * lto-streamer.h: Add LTO_section_inline_summary section.
14062         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
14063         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
14064
14065 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
14066
14067         * tree-vectorizer.h (vect_strided_store_supported): Add a
14068         HOST_WIDE_INT argument.
14069         (vect_strided_load_supported): Likewise.
14070         (vect_permute_store_chain): Return void.
14071         (vect_transform_strided_load): Likewise.
14072         (vect_permute_load_chain): Delete.
14073         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
14074         count argument.  Check that the count is a power of two.
14075         (vect_strided_load_supported): Likewise.
14076         (vect_permute_store_chain): Return void.  Update after above changes.
14077         Assert that the access is supported.
14078         (vect_permute_load_chain): Likewise.
14079         (vect_transform_strided_load): Return void.
14080         * tree-vect-stmts.c (vectorizable_store): Update calls after
14081         above interface changes.
14082         (vectorizable_load): Likewise.
14083         (vect_analyze_stmt): Don't check for strided powers of two here.
14084
14085 2011-04-14  Richard Guenther  <rguenther@suse.de>
14086
14087         PR tree-optimization/48590
14088         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
14089         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
14090         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
14091         BUILT_IN_STACK_SAVE.
14092         * tree-ssa-dce.c (propagate_necessity): Handle
14093         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
14094
14095 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
14096
14097         * c-parser.c (c_parser_objc_class_declaration): Updated call to
14098         objc_declare_class.
14099
14100 2011-04-14  Richard Guenther  <rguenther@suse.de>
14101
14102         * tree.h (get_object_alignment_1): Declare.
14103         * builtins.c (get_object_alignment_1): Split out worker from ...
14104         (get_object_alignment): ... here.
14105         * fold-const.c (get_pointer_modulus_and_residue): Use
14106         get_object_alignment_1.
14107
14108 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
14109
14110         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
14111         type parameter.
14112         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
14113         parameter.  Generalise code to handle arrays as well as vectors.
14114         (vect_setup_realignment): Update accordingly.
14115         * tree-vect-stmts.c (vectorizable_store): Likewise.
14116         (vectorizable_load): Likewise.
14117
14118 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
14119
14120         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
14121         within the per-copy loop.
14122
14123 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
14124
14125         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
14126         in the dump file.
14127
14128 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
14129
14130         * doc/options.texi (Negative): Explicitly mention that the
14131         Negative chain must be circular.
14132
14133 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
14134
14135         * function.h (block_chainon): Declare.
14136         * function.c (block_chainon): Define.
14137
14138 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
14139             Eric Weddington  <eric.weddington@atmel.com>
14140             Georg-Johann Lay  <avr@gjlay.de>
14141
14142         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
14143         New Includes
14144         (avr_init_builtins, avr_expand_builtin,
14145         avr_expand_delay_cycles, avr_expand_unop_builtin,
14146         avr_expand_binop_builtin ): New functions.
14147         (avr_builtin_id): New enum
14148         (struct avr_builtin_description): New struct
14149         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
14150         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
14151
14152         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
14153         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
14154         UNSPECV_DELAY_CYCLES): new enumeration values
14155         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
14156         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
14157         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
14158         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
14159         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
14160         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
14161         "fmulsu"): New insns
14162
14163         * config/avr/avr-c.c: fix line endings
14164         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
14165         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
14166         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
14167         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
14168         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
14169
14170         * doc/extend.texi (AVR Built-in Functions): New node
14171         (Target Builtins): Add documentation of AVR
14172         built-in functions.
14173
14174 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
14175
14176         PR target/44643
14177         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
14178         alone. Error if non-const data has attribute progmem.
14179
14180 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
14181
14182         * tree.h (struct tree_constructor): Include tree_typed instead of
14183         tree_common.
14184         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
14185         TS_TYPED instead of TS_COMMON.
14186
14187 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
14188
14189         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
14190         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
14191         (sse2_psadbw): Merge with *avx_psadbw.
14192         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
14193         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
14194         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
14195         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
14196         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
14197         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
14198         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
14199         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
14200         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
14201         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
14202         (ssse3_palignrti): Merge with *avx_palignrti.
14203
14204 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
14205
14206         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
14207         * tree-ssanames.c (fini_ssanames): VEC_free it.
14208         (make_ssa_name_fn): Update for VECness of free_ssanames.
14209         (release_ssa_name, release_dead_ssa_names): Likewise.
14210         * tree.h (struct tree_ssa_name): Include tree_typed instead of
14211         tree_common.
14212         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
14213         TS_TYPED instead of TS_COMMON.
14214
14215 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
14216
14217         * postreload-gcse.c (gcse_after_reload_main): Add calls to
14218         statistics_counter_event.
14219         * tree-ssa-copyrename.c (stats): Define.
14220         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
14221         statistics_counter_event.
14222         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
14223         (bswap_stats, widen_mul_stats): Define.
14224         (insert_reciprocals): Increment rdivs_inserted.
14225         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
14226         rfuncs_inserted.  Add calls to statistics_counter_event.
14227         (execute_cse_sincos_1): Increment inserted.
14228         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
14229         statistics_counter_event.
14230         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
14231         of bswap_stats.  Add calls to statistics_counter_event.
14232         (convert_mult_to_widen): Increment widen_mults_inserted.
14233         (convert_plusminus_to_widen): Increment maccs_inserted.
14234         (convert_mult_to_fma): Increment fmas_inserted.
14235         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
14236         calls to statistics_counter_event.
14237
14238 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
14239
14240         PR rtl-optimization/48455
14241         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
14242         `temp_costs->mem_cost'.
14243
14244 2011-04-13  Jan Hubicka  <jh@suse.cz>
14245
14246         * ipa-inline.h: New file.
14247         * ipa-inline-analysis.c: New file. Broken out of ...
14248         * ipa-inline.c: ... this file; update toplevel comment;
14249         include ipa-inline.h
14250         (inline_summary): Move to ipa-inline.h
14251         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
14252         ipa-inline-analysis.c.
14253         (cgraph_estimate_time_after_inlining): Rename to
14254         estiamte_time_after_inlining; move to ipa-inline-analysis.c
14255         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
14256         to estimate_edge_growth.
14257         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
14258         rename to estimate_size_after_inlining.
14259         (cgraph_mark_inline_edge): Update for new naming convention.
14260         (cgraph_check_inline_limits): Likewise.
14261         (cgraph_edge_badness): Likewise.
14262         (cgraph_decide_recursive_inlining): Likewise.
14263         (cgraph_decide_inlining_of_small_functions): Likewise.
14264         (cgraph_decide_inlining_incrementally): Likewise.
14265         (cgraph_estimate_growth): Rename to estimate_growth; move to
14266         ipa-inline-analysis.c.
14267         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
14268         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
14269         (compute_inline_parameters): Likewise.
14270         (compute_inline_parameters_for_current): Likewise.
14271         (pass_inline_parameters): Likewise.
14272         (inline_indirect_intraprocedural_analysis): Likewise.
14273         (analyze_function): Rename to inline_analyze_function; likewise.
14274         (add_new_function): Move to ipa-inline-analysis.c.
14275         (inline_generate_summary): Likewise.
14276         (inline_read_summary): Likewise.
14277         (inline_write_summary): Likewise.
14278         * Makefile.in (ipa-inline-analysis.c): New file.
14279
14280 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14281
14282         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
14283         * configure: Regenerate.
14284
14285 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
14286
14287         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
14288         instead of tree_common.
14289         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
14290         Likewise.
14291         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
14292         TS_TYPED rather than TS_COMMON.
14293         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
14294
14295 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
14296
14297         PR target/45263
14298         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
14299         r20 around calls of __tablejump_elpm__
14300
14301 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
14302
14303         PR middle-end/48591
14304         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
14305         NULL.
14306         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
14307
14308 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
14309
14310         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
14311         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
14312         (cfi_vec): New typedef.
14313         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
14314         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
14315         (cie_cfi_vec): New static variable.
14316         (cie_cfi_head): Delete.
14317         (add_cfi): Accept a cfi_vec * as first argument. All callers and
14318         declaration changed. Use vector rather than list operations.
14319         (new_cfi): Don't initialize the dw_cfi_next field.
14320         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
14321         rather than list operations.
14322         (lookup_cfa): Use vector rather than list operations.
14323         (output_cfis): New argument upto. Accept a cfi_vec rather than
14324         a dw_cfi_ref list head as argument. All callers changed.
14325         Iterate over the vector using upto as a maximum index.
14326         (output_all_cfis): New static function.
14327         (output_fde): Use vector rather than list operations. Use the
14328         new upto argument for output_cfis rather than manipulating a
14329         list.
14330         (dwarf2out_begin_prologue): Change initializations to match
14331         new struct members.
14332         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
14333         from the vector length rather than searching for the end of a list.
14334         Use output_all_cfis.
14335         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
14336
14337 2011-04-13  Nick Clifton  <nickc@redhat.com>
14338
14339         * config/rx/rx.md (movmemsi): Do not use this pattern when
14340         volatile pointers are involved.
14341
14342 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
14343
14344         * config/i386/sse.md (pinsrbits): Remove.
14345         (sse2_packsswb): Merge with *avx_packsswb.
14346         (sse2_packssdw): Merge with *avx_packssdw.
14347         (sse2_packuswb): Merge with *avx_packuswb.
14348         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
14349         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
14350         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
14351         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
14352         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
14353         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
14354         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
14355         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
14356         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
14357         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
14358         (sse2_loadld): Merge with *avx_loadld.
14359         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
14360         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
14361         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
14362         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
14363         (vec_concatv2di): Merge with *vec_concatv2di_avx.
14364
14365 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
14366
14367         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
14368         calling TREE_CHAIN.
14369         * print-tree.c (print_node): Likewise.
14370         * tree-inline.c (copy_tree_r): Likewise.
14371         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
14372         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
14373         instead of TS_COMMON.
14374         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
14375         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
14376         (copy_node_stat): Zero TREE_CHAIN only if necessary.
14377         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
14378         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
14379         ...and these...
14380         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
14381         * tree.h: ...here.
14382         (TREE_CHAIN): Check for a TS_COMMON structure.
14383         (TREE_TYPE): Check for a TS_TYPED structure.
14384
14385 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
14386
14387         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
14388         cgraph_get_create_node instead of cgraph_node.
14389
14390 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
14391
14392         * c-parser.c (c_parser_initelt): Updated call to
14393         objc_build_message_expr.
14394         (c_parser_postfix_expression): Likewise.
14395
14396 2011-04-12  Kai Tietz  <ktietz@redhat.com>
14397
14398         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
14399         MASK_MS_BITFIELD_LAYOUT bit.
14400
14401 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
14402
14403         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
14404         assert it is always true.
14405         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
14406         moves.
14407
14408 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
14409
14410         * c-parser.c (c_lex_one_token): Rewritten conditional used when
14411         compiling Objective-C to be more efficient.
14412
14413 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
14414
14415         * opts-common.c (decode_cmdline_options_to_array): Remove variable
14416         argv_copied.
14417
14418 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
14419
14420         * recog.h, genoutput.c, optabs.c: Revert last patch.
14421
14422 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14423
14424         PR target/48090
14425         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
14426
14427 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
14428
14429         * recog.h (insn_operand_data): Add an "allows_mem" field.
14430         * genoutput.c (output_operand_data): Initialize it.
14431         * optabs.c (maybe_legitimize_operand_same_code): New function.
14432         (maybe_legitimize_operand): Use it when matching the original
14433         op->value.
14434
14435 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
14436
14437         * genpreds.c (process_define_predicate): Move most processing
14438         to gensupport.c.  Continue to validate the expression.
14439         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
14440         (process_define_predicate): Move processing to gensupport.c.
14441         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
14442         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
14443         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
14444         argument.
14445         (valid_predicate_name_p): New function, split out from old
14446         genpreds.c:process_define_predicate.
14447         (process_define_predicate): New function, combining code from
14448         old genpreds.c and genrecog.c functions.
14449         (process_rtx): Call it for DEFINE_PREDICATE and
14450         DEFINE_SPECIAL_PREDICATE.
14451
14452 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
14453
14454         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
14455         size of a '%A' memory reference.
14456         (T_DREG, T_QREG): New neon_builtin_type_bits.
14457         (arm_init_neon_builtins): Assert that the load and store operands
14458         are neon_struct_operands.
14459         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
14460         (NEON_ARG_MEMORY): New builtin_arg.
14461         (neon_dereference_pointer): New function.
14462         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
14463         Handle NEON_ARG_MEMORY.
14464         (arm_expand_neon_builtin): Update after above interface changes.
14465         Use NEON_ARG_MEMORY for loads and stores.
14466         * config/arm/predicates.md (neon_struct_operand): New predicate.
14467         * config/arm/iterators.md (V_two_elem): Tweak formatting.
14468         (V_three_elem): Use BLKmode for accesses that have no associated mode.
14469         (V_four_elem): Tweak formatting.
14470         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
14471         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
14472         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
14473         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
14474         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
14475         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
14476         (neon_vst4<mode>): Replace pointer operand with a memory operand.
14477         Use %A in the output template.
14478         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
14479         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
14480         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
14481         the width of the memory access.  Remove post-increment.
14482         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
14483
14484 2011-04-12  Nick Clifton  <nickc@redhat.com>
14485
14486         * config/v850/v850.c (expand_prologue): Do not use the CALLT
14487         instruction for interrupt handlers if the target is the basic V850
14488         architecture.
14489         (expand_epilogue): Likewise.
14490
14491 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
14492
14493         PR rtl-optimization/48549
14494         * combine.c (propagate_for_debug): Also stop after BB_END of
14495         this_basic_block.  Process LAST and just stop processing after it.
14496         (combine_instructions): If last_combined_insn has been deleted,
14497         set last_combined_insn to its PREV_INSN.
14498
14499 2011-04-12  Richard Guenther  <rguenther@suse.de>
14500
14501         PR tree-optimization/46076
14502         * gimple.h (struct gimple_statement_call): Add fntype field.
14503         (gimple_call_fntype): Adjust.
14504         (gimple_call_set_fntype): New function.
14505         * gimple.c (gimple_build_call_1): Set the call function type.
14506         * gimplify.c (gimplify_call_expr): Preserve the function
14507         type the frontend used for the call.
14508         (gimplify_modify_expr): Likewise.
14509         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
14510         function type.
14511         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
14512         function type.
14513         * tree-ssa.c (useless_type_conversion_p): Function pointer
14514         conversions are useless.
14515
14516 2011-04-12  Martin Jambor  <mjambor@suse.cz>
14517
14518         * cgraph.h (cgraph_node): Remove function declaration.
14519         (cgraph_create_node): Declare.
14520         (cgraph_get_create_node): Likewise.
14521         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
14522         Updated all callers.
14523         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
14524         the decl does not already exist.  Call cgraph_get_create_node instead
14525         of cgraph_node.
14526         (cgraph_get_create_node): New function.
14527         (cgraph_same_body_alias): Update comment.
14528         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
14529         assert it does not return NULL.
14530         (cgraph_update_edges_for_call_stmt): Likewise.
14531         (cgraph_clone_edge): Likewise.
14532         (cgraph_create_virtual_clone): Likewise.
14533         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
14534         instead of cgraph_node.
14535         (cgraph_add_new_function): Call cgraph_create_node or
14536         cgraph_get_create_node instead of cgraph_node.
14537         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
14538         instead of cgraph_node.
14539         (record_eh_tables): Likewise.
14540         (mark_address): Likewise.
14541         (mark_load): Likewise.
14542         (build_cgraph_edges): Call cgraph_get_create_node instead
14543         of cgraph_node.
14544         (rebuild_cgraph_edges): Likewise.
14545         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
14546         instead of cgraph_node.
14547         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
14548         cgraph_node.
14549         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
14550         cgraph_create_node instead of cgraph_node.
14551         * c-decl.c (finish_function): Call cgraph_get_create_node instead
14552         of cgraph_node.
14553         * lto-cgraph.c (input_node): Likewise.
14554         * lto-streamer-in.c (input_function): Likewise.
14555         * varasm.c (mark_decl_referenced): Likewise.
14556         (assemble_alias): Likewise.
14557
14558 2011-04-12  Martin Jambor  <mjambor@suse.cz>
14559
14560         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
14561         instead of cgraph_node and assert it does not return NULL.
14562         * lto-streamer-in.c (lto_read_body): Likewise.
14563         * omp-low.c (new_omp_context): Likewise.
14564         (create_task_copyfn): Likewise.
14565         * tree-emutls.c (lower_emutls_function_body): Likewise.
14566         * matrix-reorg.c (transform_allocation_sites): Likewise.
14567
14568 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
14569
14570         PR c/48552
14571         * c-typeck.c (build_asm_expr): Error out on attempts to use
14572         void type outputs or inputs for constraints that allow reg or
14573         don't allow memory.
14574
14575 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
14576             Richard Earnshaw  <rearnsha@arm.com>
14577
14578         PR target/48250
14579         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
14580         to use sign-magnitude offsets. Reject unsupported unaligned
14581         cases. Add detailed description in comments.
14582         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
14583         condition from TARGET_32BIT to TARGET_ARM.
14584
14585 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
14586
14587         * tree.h (struct typed_tree): New.
14588         (struct tree_common): Include it instead of tree_base.
14589         (TREE_TYPE): Update for new location of type field.
14590         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
14591         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
14592         (union tree_node): Add typed field.
14593         * treestruct.def (TS_TYPED): New.
14594         * lto-streamer.c (check_handled_ts_structures): Handle it.
14595         * tree.c (MARK_TS_TYPED): New macro.
14596         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
14597
14598 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
14599
14600         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
14601         (force_nonfallthru): Do not alter the loop nest if no basic block
14602         was created.
14603
14604 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
14605
14606         * config/i386/sse.md (VI): New mode iterator.
14607         (SSEMODEI): Remove.
14608         (AVX256MODEI): Ditto.
14609         (AVXMODEF4P): Ditto.
14610         (avxvecpsmode): Ditto.
14611         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
14612         (sse2_andnot<mode>3): New expander.
14613         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
14614         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
14615         (<any_logic:code><mode>3): Use VI mode iterator.
14616         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
14617         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
14618         (*andnottf3): Handle AVX three-operand constraints.
14619         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
14620
14621 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
14622             Robert Millan  <rmh@gnu.org>
14623
14624         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
14625         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
14626         GNU_USER_DYNAMIC_LINKER64): Define.
14627         (REG_NAME): Don't undefine.
14628         (MD_UNWIND_SUPPORT): Undefine.
14629         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
14630         (REG_NAME): Don't undefine.
14631         (MD_UNWIND_SUPPORT): Undefine.
14632         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
14633
14634 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
14635
14636         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
14637         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
14638
14639 2011-04-11  Xinliang David Li  <davidxl@google.com>
14640
14641         * value-profile.c (check_ic_target): New function.
14642         (gimple_ic_transform): Sanity check indirect call target.
14643         * gimple-low.c (gimple_check_call_args): Interface change.
14644         (gimple_check_call_matching_types): New function.
14645         * tree-inline.c (tree_can_inline_p): Call new function.
14646
14647 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
14648
14649         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
14650         tree-pretty-print.h & realmpfr.h.
14651
14652 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
14653
14654         PR middle-end/48464
14655         * ira.c (setup_pressure_classes): Fix typo in loop condition.
14656         (setup_allocno_and_important_classes): Ditto.
14657
14658 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
14659
14660         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
14661         GNU_USER_DYNAMIC_LINKER.
14662         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
14663         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14664         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
14665         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
14666         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
14667         GNU_USER_TARGET_OS_CPP_BUILTINS.
14668         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
14669         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14670         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
14671         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14672         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
14673         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
14674         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
14675         GNU_USER_TARGET_OS_CPP_BUILTINS.
14676         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14677         GNU_USER_DYNAMIC_LINKER.
14678         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
14679         GNU_USER_TARGET_OS_CPP_BUILTINS.
14680         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
14681         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14682         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
14683         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14684         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
14685         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
14686         GNU_USER_DYNAMIC_LINKER64): Remove.
14687         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
14688         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14689         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14690         GNU_USER_DYNAMIC_LINKER.
14691         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
14692         GNU_USER_TARGET_OS_CPP_BUILTINS.
14693         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
14694         GNU_USER_TARGET_OS_CPP_BUILTINS.
14695         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
14696         to GNU_USER_TARGET_OS_CPP_BUILTINS.
14697         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
14698         GNU_USER_TARGET_OS_CPP_BUILTINS.
14699         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
14700         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
14701         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
14702         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
14703         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14704         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14705         GNU_USER_DYNAMIC_LINKER.
14706         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
14707         GNU_USER_TARGET_OS_CPP_BUILTINS.
14708         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
14709         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14710         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14711         GNU_USER_DYNAMIC_LINKER.
14712         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
14713         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14714         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
14715         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14716         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14717         GNU_USER_DYNAMIC_LINKER.
14718         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
14719         GNU_USER_DYNAMIC_LINKERN32.
14720         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
14721         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
14722         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
14723         GNU_USER_DYNAMIC_LINKER32.
14724         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
14725         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14726         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14727         GNU_USER_DYNAMIC_LINKER.
14728         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
14729         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14730         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
14731         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14732         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
14733         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
14734         GNU_USER_DYNAMIC_LINKER32.
14735         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
14736         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
14737         GNU_USER_DYNAMIC_LINKER.
14738         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
14739         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14740         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
14741         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
14742         GNU_USER_DYNAMIC_LINKER64.
14743         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
14744         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14745         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14746         GNU_USER_DYNAMIC_LINKER.
14747         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
14748         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14749         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14750         GNU_USER_DYNAMIC_LINKER.
14751         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
14752         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14753         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
14754         GNU_USER_DYNAMIC_LINKER32.
14755         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
14756         GNU_USER_DYNAMIC_LINKER64.
14757         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
14758         GNU_USER_DYNAMIC_LINKER64.
14759         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
14760         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14761         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
14762         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14763         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
14764
14765 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
14766
14767         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
14768         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
14769         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
14770         GNU_USER_DYNAMIC_LINKER.
14771         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
14772         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
14773         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
14774         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
14775         GNU_USER_DYNAMIC_LINKER64.
14776         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
14777         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
14778         GNU_USER_LINK_EMULATION.
14779         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
14780         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
14781         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
14782         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
14783         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
14784         CPP_SPEC, CC1_SPEC): Remove.
14785         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
14786         (GNU_USER_DYNAMIC_LINKER): Define.
14787         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
14788         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
14789         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
14790         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
14791         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
14792         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
14793         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
14794         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
14795         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
14796         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
14797         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
14798         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
14799         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
14800         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
14801         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
14802         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
14803         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
14804         GNU_USER_DYNAMIC_LINKER.
14805         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
14806         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
14807         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
14808         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
14809         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
14810         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
14811         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
14812         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
14813         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
14814         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
14815
14816 2011-04-11  Kai Tietz  <ktietz@redhat.com>
14817
14818         PR target/9601
14819         PR target/11772
14820         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
14821         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
14822         comment.
14823         (ix86_is_msabi_thiscall): Removed.
14824         (ix86_is_type_thiscall): Likewise.
14825         (ix86_get_callcvt): New function.
14826         (ix86_comp_type_attributes): Simplify check.
14827         (ix86_function_regparm): Use ix86_get_callcvt for calling
14828         convention attribute checks.
14829         (ix86_return_pops_args): Likewise.
14830         (ix86_static_chain): Likewise.
14831         (x86_this_parameter): Likewise.
14832         (x86_output_mi_thunk): Likewise.
14833         (ix86_function_type_abi): Optimize check for types without attributes.
14834         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
14835         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
14836         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
14837         by flag-values.
14838         (IX86_BASE_CALLCVT): Helper macro.
14839         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
14840         Use ix86_get_callcvt for calling convention attribute checks and avoid
14841         symbol-decoration for stdcall in TARGET_RTD case.
14842         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
14843         Likewise.
14844         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
14845         for declaration.
14846
14847 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
14848
14849         * config/i386/sse.md (VI_128): New mode iterator.
14850         (VI12_128): Rename from SSEMODE12.
14851         (VI14_128): Rename from SSEMODE14.
14852         (VI124_128): New mode iterator.
14853         (VI24_128): Rename from SSEMODE248.
14854         (VI248_128): Rename from SSEMODE248.
14855         (SSEMODE124C8): Remove.
14856         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
14857         (*sse2_<plusminus_insn><mode>3): Merge with
14858         *avx_<plusminus_insn><mode>3.
14859         (*mulv8hi3): Merge with *avx_mulv8hi3.
14860         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
14861         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
14862         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
14863         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
14864         (ashr<mode>3): Merge with *avx_ashr<mode>3.
14865         (lshr<mode>3): Merge with *avx_lshr<mode>3.
14866         (ashl<mode>3): Merge with *avx_ashl<mode>3.
14867         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
14868         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
14869         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
14870         (*<smaxmin:code>v8hi3): Ditto.
14871         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
14872         (*<smaxmin:code>v16qi3): Ditto.
14873         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
14874         (*sse2_eq<mode>3): Ditto.
14875         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
14876         (*sse2_gt<mode>3): Ditto.
14877         (vcondv2di): Split out of vcond<mode>.
14878         (vconduv2di): Split out of vcondu<mode>.
14879
14880 2011-04-11  Richard Guenther  <rguenther@suse.de>
14881
14882         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
14883         before calling tree_low_cst.
14884
14885 2011-04-11  Richard Guenther  <rguenther@suse.de>
14886
14887         * stor-layout.c (layout_type): Compute all array index size operations
14888         in the original type.
14889         (initialize_sizetypes): Add comment.
14890         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
14891
14892 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
14893
14894         * common.opt (Tbss=, Tdata=, Ttext=): New options.
14895
14896 2011-04-11  Martin Jambor  <mjambor@suse.cz>
14897
14898         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
14899         of cgraph_node, handle NULL return value.
14900         (cgraph_global_info): Likewise.
14901         (cgraph_rtl_info): Likewise.
14902         * tree-inline.c (estimate_num_insns): Likewise.
14903         * gimplify.c (unshare_body): Likewise.
14904         (unvisit_body): Likewise.
14905         (gimplify_body): Likewise.
14906         * predict.c (optimize_function_for_size_p): Likewise.
14907         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
14908         (call_may_clobber_ref_p_1): Likewise.
14909         * varasm.c (function_section_1): Likewise.
14910         (assemble_start_function): Likewise.
14911
14912 2011-04-11  Martin Jambor  <mjambor@suse.cz>
14913
14914         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
14915         of cgraph_node.
14916         * final.c (rest_of_clean_state): Likewise.
14917         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
14918         * passes.c (pass_init_dump_file): Likewise.
14919         (execute_all_ipa_transforms): Likewise.
14920         (function_called_by_processed_nodes_p): Likewise.
14921         * predict.c (maybe_hot_frequency_p): Likewise.
14922         (probably_never_executed_bb_p): Likewise.
14923         (compute_function_frequency): Likewise.
14924         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
14925         (unnest_nesting_tree_1): Likewise.
14926         (lower_nested_functions): Likewise.
14927         * tree-optimize.c (execute_fixup_cfg): Likewise.
14928         (tree_rest_of_compilation): Likewise.
14929         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
14930         * tree-sra.c (ipa_early_sra): Likewise.
14931         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
14932         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
14933         * ipa.c (record_cdtor_fn): Likewise.
14934         * ipa-inline.c (cgraph_early_inlining): Likewise.
14935         (compute_inline_parameters_for_current): Likewise.
14936         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
14937         * ipa-pure-const.c (local_pure_const): Likewise.
14938         * ipa-split.c (split_function): Likewise.
14939         (execute_split_functions): Likewise.
14940         * cgraphbuild.c (build_cgraph_edges): Likewise.
14941         (rebuild_cgraph_edges): Likewise.
14942         (cgraph_rebuild_references): Likewise.
14943         (remove_cgraph_callee_edges): Likewise.
14944         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
14945         (verify_cgraph_node): Likewise.
14946         (cgraph_analyze_functions): Likewise.
14947         (cgraph_preserve_function_body_p): Likewise.
14948         (save_inline_function_body): Likewise.
14949         (save_inline_function_body): Likewise.
14950         * tree-inline.c (copy_bb): Likewise.
14951         (optimize_inline_calls): Likewise.
14952
14953 2011-04-11  Martin Jambor  <mjambor@suse.cz>
14954
14955         PR tree-optimization/48195
14956         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
14957         ipa_check_create_edge_args.
14958         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
14959         ipa_check_create_edge_args.
14960         * ipa-inline.c (inline_generate_summary): Do not call
14961         ipa_check_create_node_params and ipa_check_create_edge_args.
14962         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
14963         ipa_check_create_edge_args.
14964
14965 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
14966
14967         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
14968         instead of loop.
14969         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14970         * function.c (record_hard_reg_sets): Likewise.
14971         * ira.c (compute_regs_asm_clobbered): Likewise.
14972         * sched-deps.c (sched_analyze_1): Likewise.
14973         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
14974
14975 2011-04-09  Xinliang David Li  <davidxl@google.com>
14976
14977         PR tree-optimization/PR48484
14978         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
14979         has_valid_pred lazily
14980
14981 2011-04-09  Duncan Sands  <baldrick@free.fr>
14982
14983         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
14984
14985 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
14986
14987         * combine.c (combine_validate_cost): Adjust comments.  Set registered
14988         cost of I0 to zero at the end, if any.
14989
14990 2011-04-08  Xinliang David Li  <davidxl@google.com>
14991
14992         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
14993         to insane profile data.
14994
14995 2011-04-08  Xinliang David Li  <davidxl@google.com>
14996
14997         * ipa-cp.c (ipcp_update_profiling): Correct
14998          negative scale factor due to insane profile data.
14999
15000 2011-04-08  Xinliang David Li  <davidxl@google.com>
15001
15002         * final.c (dump_basic_block_info): New function.
15003         (final): Dump basic block.
15004         (final_scan_insn): Remove old dump.
15005
15006 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
15007
15008         PR target/47829
15009         * config.gcc (i386-*-freebsd): Disable unwind table generation for
15010         crtbegin/crtend.
15011
15012 2011-04-08  Michael Matz  <matz@suse.de>
15013
15014         PR middle-end/48389
15015         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
15016         functions.
15017         (rebuild_jump_labels): Call rebuild_jump_labels_1.
15018         * rtl.h (rebuild_jump_labels_chain): Declare.
15019         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
15020         insns inserted on edges.
15021
15022 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
15023
15024         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
15025         * config/arm/arm-arches.def: New.
15026         * config/arm/arm-opts.h: New.
15027         * config/arm/genopt.sh: New.
15028         * config/arm/arm-tables.opt: New (generated).
15029         * config/arm/arm.c (arm_handle_option, arm_target_help,
15030         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
15031         (all_architectures): Get most table contents from arm-arches.def.
15032         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
15033         arm_selected_tune here.
15034         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
15035         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
15036         (march=, mcpu=, mtune=): Use Enum and Var.
15037         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
15038         (arm.o): Update dependencies.
15039
15040 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
15041
15042         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
15043         of header_file.
15044         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
15045         (write_typed_alloc_defns): Likewise.
15046         (main): Calls write_typed_alloc_defns with output_header.
15047
15048 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
15049
15050         PR inline-asm/48435
15051         * ira-color.c (setup_profitable_hard_regs): Add comments.
15052         Don't take prohibited hard regs into account.
15053         (setup_conflict_profitable_regs): Rename to
15054         get_conflict_profitable_regs.
15055         (check_hard_reg_p): Check prohibited hard regs.
15056
15057 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
15058
15059         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
15060         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
15061         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
15062
15063 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15064
15065         PR target/48366
15066         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
15067         move from floating point to shift amount register.
15068         (emit_move_sequence): Remove secondary reload support for floating
15069         point to shift amount amount register copies.
15070         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
15071         amount register copies.
15072         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
15073         register, return false if mode isn't a scalar integer mode.
15074         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
15075
15076 2011-04-08  Richard Guenther  <rguenther@suse.de>
15077
15078         * gimple.c (gimple_call_flags): Remove kludge.
15079
15080 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
15081
15082         * sel-sched.c (sel_region_init): Move call to
15083         sel_setup_region_sched_flags after setup_current_loop_nest.
15084
15085 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
15086
15087         PR rtl-optimization/48272
15088         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
15089         init_insn_reg_pressure_info.  Adjust a caller.
15090         * sched-int.h (init_insn_reg_pressure_info): Declare.
15091         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
15092         when sched-pressure is enabled.
15093
15094 2011-04-08  Richard Guenther  <rguenther@suse.de>
15095
15096         * gimple.c (gimple_set_modified): Do not queue calls to
15097         MODIFIED_NORETURN_CALLS here ...
15098         * tree-ssa-operands.c (update_stmt_operands): ... but here.
15099
15100 2011-04-08  Richard Guenther  <rguenther@suse.de>
15101
15102         PR lto/48467
15103         * toplev.c (lang_dependent_init): Do not open asm_out_file
15104         in WPA mode, nor perform debug machinery initialization.
15105         (finalize): Do not unlink asm_out_file in WPA mode.
15106
15107 2011-04-08  Richard Guenther  <rguenther@suse.de>
15108
15109         * gimple.h (gimple_call_fntype): New function.
15110         (gimple_call_return_type): Use it.
15111         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
15112         * gimple-low.c (gimple_check_call_args): Likewise.
15113         * gimple.c (gimple_call_flags): Likewise.
15114         (gimple_call_arg_flags): Likewise.
15115         (gimple_call_return_flags): Likewise.
15116         * tree-cfg.c (verify_gimple_call): Likewise.
15117         (do_warn_unused_result): Likewise.
15118         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
15119         * value-prof.c (gimple_ic_transform): Fix fndecl check.
15120
15121 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
15122
15123         PR rtl-optimization/48235
15124         * sel-sched.c (code_motion_process_successors): Recompute the last
15125         insn in basic block if control flow changed.
15126         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
15127         Update condition for ilist_remove.
15128
15129 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
15130
15131         PR rtl-optimization/48302
15132         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
15133         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
15134         it to record added preheader blocks.
15135         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
15136         on to sel_add_loop_preheaders.
15137         (sel_region_init): Move call to setup_current_loop_nest after
15138         sel_init_bbs.
15139
15140 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
15141
15142         PR target/48273
15143         * cfgloop.h (loop_has_exit_edges): New helper.
15144         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
15145         non-clonable.
15146         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
15147         that have no exit edges.
15148
15149 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
15150
15151         PR rtl-optimization/48442
15152         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
15153         all callers.  Adjust assert.
15154
15155 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
15156
15157         PR tree-optimization/48377
15158         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
15159         is_packed to true even for types with smaller TYPE_ALIGN than
15160         TYPE_SIZE.
15161
15162 2011-04-08  Richard Guenther  <rguenther@suse.de>
15163
15164         PR bootstrap/48513
15165         * doc/tm.texi: Re-generate.
15166
15167 2011-04-08  Wei Guozhi  <carrot@google.com>
15168
15169         PR target/47855
15170         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
15171         * config/arm/arm.c (arm_attr_length_push_multi): New function.
15172         * config/arm/arm.md (*push_multi): Change the length computation to
15173         call a C function.
15174
15175 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
15176
15177         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
15178         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
15179         * doc/tm.texi: Regenerate.
15180         * system.h (ASM_OUTPUT_BSS): Poison.
15181         * varasm.c (asm_output_bss): Remove function.
15182         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
15183
15184         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
15185         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
15186         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
15187         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
15188         Likewise.
15189         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
15190         Likewise.
15191         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
15192         Likewise.
15193         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
15194
15195 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
15196
15197         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
15198         EnumValue lines.
15199
15200 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
15201
15202         * config/m68k/m68k.c (m68k_handle_option): Don't handle
15203         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
15204         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
15205         OPT_mcpu32.
15206         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
15207         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
15208         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
15209         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
15210         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
15211         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
15212         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
15213         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
15214         options.  Don't map other m68k options manually.  Don't handle
15215         old-style options as canonical.
15216         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
15217         * doc/install.texi (m68k-*-*): Document binutils version requirement.
15218
15219 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
15220
15221         * basic-block.h (force_nonfallthru): Move to...
15222         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
15223         (force_nonfallthru): ...here.
15224         * cfghooks.c (force_nonfallthru): New function.
15225         * cfgrtl.c (force_nonfallthru): Rename into...
15226         (rtl_force_nonfallthru): ...this.
15227         (commit_one_edge_insertion): Do not set AUX field.
15228         (commit_edge_insertions): Do not discover new basic blocks.
15229         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
15230         (cfg_layout_rtl_cfg_hooks): Likewise.
15231         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
15232         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
15233         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
15234
15235 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
15236
15237         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
15238         Remove macros.
15239
15240 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
15241
15242         * config/i386/sse.md: Update copyright year.
15243         (avxcvtvecmode): Remove.
15244         (sse_movhlps): Merge with *avx_movhlps.
15245         (sse_movlhps): Merge with *avx_movlhps.
15246         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
15247         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
15248         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
15249         (sse_loadhps): Merge with *avx_loadhps.
15250         (sse_storelps): Merge with *avx_storelps.
15251         (sse_loadlps): Merge with *avx_loadlps.
15252         (sse_movss): Merge with *avx_movss.
15253         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
15254         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
15255         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
15256         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
15257         (vec_set<mode>_0): Ditto.
15258         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
15259         (sse4_1_insertps): Merge with *avx_insertps.
15260         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
15261         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
15262         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
15263         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
15264         (sse2_storehpd): Merge with *avx_storehpd.
15265         (sse2_loadhpd): Merge with *avx_loadhpd.
15266         (sse2_loadlpd): Merge with *avx_loadlpd.
15267         (sse2_movsd): Merge with *avx_movsd.
15268         (*vec_concatv2df): Merge with *vec_concatv2df.
15269
15270 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
15271
15272         PR debug/48343
15273         * combine.c (combine_instructions): Add last_combined_insn,
15274         update it if insn is after it, pass it to all try_combine calls.
15275         (try_combine): Add last_combined_insn parameter, pass it instead of
15276         i3 to propagate_for_debug.
15277
15278 2011-04-07  Nick Clifton  <nickc@redhat.com>
15279
15280         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
15281         to handle MDR <-> data register transfers.
15282         (movhi_internal): Likewise.
15283
15284 2011-04-07  Alan Modra  <amodra@gmail.com>
15285
15286         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
15287         previous stack info.
15288
15289 2011-04-07  Tom de Vries  <tom@codesourcery.com>
15290
15291         PR target/43920
15292         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
15293         flow_find_cross_jump.  Swap variables to implement backward replacement.
15294         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
15295
15296 2011-04-07  Tom de Vries  <tom@codesourcery.com>
15297
15298         PR target/43920
15299         * cfgcleanup.c (walk_to_nondebug_insn): New function.
15300         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
15301         and bb2.
15302         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
15303         src1 or src2.  Redirect edges to the last basic block.  Update
15304         frequency and count on multiple basic blocks in case of fallthru.
15305
15306 2011-04-07  Tom de Vries  <tom@codesourcery.com>
15307
15308         PR target/43920
15309         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
15310         function.
15311         (old_insns_match_p): Change return type.  Replace return false/true
15312         with return dir_none/dir_both.  Use can_replace_by.
15313         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
15314         direction from dir_p.  Register replacement direction in dir, last_dir
15315         and afterlast_dir.  Handle new return type of old_insns_match_p using
15316         merge_dir.  Return replacement direction in dir_p.
15317         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
15318         return type of old_insns_match_p.
15319         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
15320         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
15321         flow_find_cross_jump.
15322         * basic-block.h (enum replace_direction): New type.
15323         (flow_find_cross_jump): Add parameter to declaration.
15324
15325 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
15326
15327         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
15328         (AVXMODEDCVTPS2DQ): Ditto.
15329         (VEC_FLOAT_MODE): Ditto.
15330         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
15331         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
15332         (<any_logic:code><mode>3): Use VF mode iterator.
15333         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
15334         Use VF mode iterator.
15335         (copysign<mode>3): Use VF mode iterator.
15336         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
15337         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
15338         (*<any_logic:code><MODEF:mode>3): Merge with
15339         *avx_<any_logic:code><MODEF:mode>3.
15340         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
15341         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
15342         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
15343         (avx_cvtdq2ps<avxmodesuffix>): Remove.
15344         (sse2_cvtdq2ps): Use %v modifier.
15345         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
15346         (avx_cvtps2dq<avxmodesuffix>): Remove.
15347         (sse2_cvtps2dq): Use %v modifier.
15348         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
15349         (avx_cvttps2dq<avxmodesuffix>): Remove.
15350         (sse2_cvttps2dq): Use %v modifier.
15351         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
15352         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
15353         (sse2_cvtsd2siq): Fix insn template.
15354         (sse2_cvtsd2siq_2): Ditto.
15355         (sse2_cvttsd2siq): Ditto.
15356         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
15357         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
15358
15359 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
15360
15361         * gcov-io.c: Use GCC Runtime Library Exception.
15362
15363 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
15364
15365         PR debug/48466
15366         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
15367         as base_reg whatever register reg has been eliminated to, instead
15368         of hardcoding STACK_POINTER_REGNUM.
15369
15370 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
15371
15372         * doc/tm.texi.in: Document C target hooks as separate from general
15373         target hooks.
15374         * doc/tm.texi: Regenerate.
15375         * genhooks.c (struct hook_desc): Add docname field.
15376         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
15377         docname field.
15378         (hook_array): Include c-target.def.
15379         (emit_documentation): Use docname field in output.
15380         (emit_init_macros): Take docname argument.  Only emit definitions
15381         for hooks matching docname.
15382         (main): Expect additional arguments in all cases.  Pass argument
15383         to emit_init_macros.
15384         * target.def: Move initial macro definitions and comments to
15385         target-hooks-macros.h.
15386         (gcc_targetcm): Move to c-family/c-target.def.
15387         * target.h (targetcm): Move declaration to c-family/c-target.h.
15388         * targhooks.c (default_handle_c_option): Move to
15389         c-family/c-opts.c.
15390         * targhooks.h (default_handle_c_option): Move declaration to
15391         c-family/c-common.h.
15392         * target-hooks-macros.h: New file.
15393         * config.gcc (target_has_targetcm): Define and use to add to
15394         c_target_objs and cxx_target_objs.
15395         * config/default-c.c: New file.
15396         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
15397         of target.h and target-def.h.
15398         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
15399         (darwin_objc_construct_string, darwin_cfstring_ref_p,
15400         darwin_check_cfstring_format_arg): Make static.
15401         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
15402         TARGET_STRING_OBJECT_REF_TYPE_P,
15403         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
15404         * config/darwin-protos.h (darwin_objc_construct_string,
15405         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
15406         declare.
15407         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
15408         TARGET_STRING_OBJECT_REF_TYPE_P,
15409         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
15410         * config/t-darwin (darwin-c.o): Update dependencies.
15411         * system.h (TARGET_HAS_TARGETCM): Poison.
15412         * Makefile.in (TARGET_H): Update.
15413         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
15414         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
15415         (default-c.o): New target.
15416         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
15417         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
15418         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
15419         c-target.def.
15420         (build/genhooks.o): Update dependencies.
15421
15422 2011-04-06  Richard Guenther  <rguenther@suse.de>
15423
15424         * ipa-inline.c (enum inlining_mode): Remove.
15425         (cgraph_flatten): Use some other token.
15426         (cgraph_edge_early_inlinable_p): New function, split out from ...
15427         (cgraph_perform_always_inlining): New function, split out from ...
15428         (cgraph_decide_inlining_incrementally): ... here.
15429         (cgraph_mark_inline_edge): Adjust.
15430         (cgraph_early_inlining): Re-structure.
15431         (pass_early_inline): Require SSA form.
15432
15433 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
15434             Julian Brown  <julian@codesourcery.com>
15435             Mark Shinwell  <shinwell@codesourcery.com>
15436
15437         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
15438         LO_REGS only for Thumb-1.
15439         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
15440         be used in short instructions when optimising for size on Thumb-2.
15441
15442 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
15443
15444         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
15445         associated with user returns to be preserved.
15446
15447 2011-04-06  Tristan Gingold  <gingold@adacore.com>
15448
15449         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
15450         symbol_queue_size, DBXOUT_DECR_NESTING,
15451         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
15452         if XCOFF_DEBUGGING_INFO.
15453
15454 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
15455
15456         * config/i386/i386.md (attribute isa): New.
15457         (attribute enabled): New.
15458         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
15459         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
15460         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
15461         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
15462         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
15463         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
15464         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
15465         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
15466
15467         * config/i386/sse.md (VF): New mode iterator.
15468         (VF1): Ditto.
15469         (VF2): Ditto.
15470         (VF_128): Ditto.
15471         (SSEMODEF4): Remove.
15472         (attribute sse): Handle V8SF and V4DF modes.
15473         (<absneg:code><mode>2): Use VF mode iterator.
15474         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
15475         mode iterator.
15476         (<plusminus_insn><mode>3): Use VF mode iterator.
15477         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
15478         Use VF mode iterator.
15479         (<sse>_vm<plusminus_insn><mode>3): Merge with
15480         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
15481         (mul<mode>3): Use VF mode iterator.
15482         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
15483         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
15484         mode iterator.
15485         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
15486         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
15487         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
15488         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
15489         mode iterator.
15490         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
15491         Use VF1 mode iterator.
15492         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
15493         (sqrt<VF2:mode>2): New expander.
15494         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
15495         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
15496         and sqrtv2df2.  Use VF mode iterator.
15497         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
15498         mode iterator.
15499         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
15500         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
15501         Use VF1 mode iterator.
15502         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
15503         (<smaxmin:code><mode>3): Use VF mode iterator.
15504         (*<smaxmin:code><mode>3_finite): Merge with
15505         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
15506         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
15507         (<sse>_vm<smaxmin:code><mode>2): Merge with
15508         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
15509         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
15510         mode iterator.
15511         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
15512         mode iterator.
15513         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
15514         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
15515         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
15516         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
15517         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
15518         VF mode iterator.
15519         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
15520         Use VF_128 mode iterator.
15521         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
15522         mode iterator.
15523         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
15524         VF_128 mode iterator.
15525         (vcond<mode>): Use VF mode iterator.
15526         * config/i386/predicates.md (sse_comparison_operator): Merge with
15527         avx_comparison_float_operator.  Do not declare as special_predicate.
15528         * config/i386/i386.c (struct builtin_description): Update for renamed
15529         compare patterns.
15530         (ix86_expand_args_builtin): Ditto.
15531         (ix86_expand_sse_compare_mask): Ditto.
15532
15533 2011-04-06  Richard Guenther  <rguenther@suse.de>
15534
15535         * tree-inline.c (estimate_num_insns): For calls simply account
15536         for all passed arguments and a used return value.
15537
15538 2011-04-06  Richard Guenther  <rguenther@suse.de>
15539
15540         PR tree-optimization/47663
15541         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
15542         call_stmt_time fields.
15543         (cgraph_edge_inlinable_p): Declare.
15544         (cgraph_edge_recursive_p): New inline function.
15545         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
15546         (cgraph_clone_edge): Copy it.
15547         * ipa-inline.c (cgraph_estimate_edge_time): New function.
15548         Account for call stmt time.
15549         (cgraph_estimate_time_after_inlining): Take edge argument.
15550         (cgraph_estimate_edge_growth): Account call stmt size.
15551         (cgraph_estimate_size_after_inlining): Take edge argument.
15552         (cgraph_mark_inline_edge): Adjust.
15553         (cgraph_check_inline_limits): Likewise.
15554         (cgraph_recursive_inlining_p): Remove.
15555         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
15556         (cgraph_decide_recursive_inlining): Take edge argument and
15557         adjust.
15558         (cgraph_decide_inlining_of_small_functions): Do not avoid
15559         diags for recursive inlining here.
15560         (cgraph_flatten): Adjust.
15561         (cgraph_decide_inlining_incrementally): Likewise.
15562         (estimate_function_body_sizes): Remove call cost handling.
15563         (compute_inline_parameters): Initialize caller edge call costs.
15564         (cgraph_estimate_edge_growth): New function.
15565         (cgraph_estimate_growth): Use it.
15566         (cgraph_edge_badness): Likewise.
15567         (cgraph_check_inline_limits): Take an edge argument.
15568         (cgraph_decide_inlining_of_small_functions): Adjust.
15569         (cgraph_decide_inlining): Likewise.
15570         * tree-inline.c (estimate_num_insns): Only account for call
15571         return value if it is used.
15572         (expand_call_inline): Avoid diagnostics on recursive inline
15573         functions here.
15574         * lto-cgraph.c (lto_output_edge): Output edge call costs.
15575         (input_edge): Input edge call costs.
15576
15577 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15578
15579         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
15580
15581 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
15582
15583         * doc/invoke.texi (Spec Files): Fix typo.
15584
15585 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
15586
15587         * profile.c (branch_prob): Move declaration of local variable.  Remove
15588         obsolete ??? comment.  Expand the location explicitly instead of using
15589         the LOCATION_FILE and LOCATION_LINE macros.
15590
15591 2011-04-06  Wei Guozhi  <carrot@google.com>
15592
15593         PR target/47855
15594         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
15595         (arm_cond_branch): Likewise.
15596         (arm_cond_branch_reversed): Likewise.
15597         (arm_jump): Likewise.
15598         (push_multi): Likewise.
15599         * config/arm/constraints.md (Py): New constraint.
15600
15601 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
15602
15603         PR bootstrap/48471
15604         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
15605         Move these...
15606         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
15607         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
15608         #ifdef DBX_DEBUGGING_INFO.
15609
15610 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
15611
15612         PR bootstrap/48403
15613         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
15614         if old and new states differ.
15615
15616 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
15617
15618         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
15619         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
15620         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
15621         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
15622         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
15623         mcfv4e): Use Alias.
15624         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
15625         ColdFire options to -mcpu= options.
15626
15627 2011-04-05  Jeff Law  <law@redhat.com>
15628
15629         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
15630         check if BB is a successor of LOOP->header and return
15631         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
15632
15633 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
15634
15635         * cprop.c (struct reg_use): Remove.
15636         (reg_use_table): Make an array of RTX.
15637         (find_used_regs, constprop_register, local_cprop_pass,
15638         bypass_block): Simplify users of reg_use_table.
15639         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
15640         on one of the uses found by find_used_regs.
15641
15642 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
15643
15644         PR bootstrap/48469
15645         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
15646         declaration.
15647
15648 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
15649
15650         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
15651         as an rtx.
15652         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
15653
15654 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
15655
15656         PR middle-end/48441
15657         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
15658
15659 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
15660
15661         * combine.c: Include obstack.h.
15662         (struct insn_link): Define.
15663         (uid_log_links): Adjust type.
15664         (FOR_EACH_LOG_LINK): New macro.
15665         (insn_link_obstack): Declare.
15666         (alloc_insn_link): Define.
15667         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
15668         type of link variables.
15669         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
15670         (try_combine, record_promoted_values, distribute_notes): Likewise.
15671         (distribute_links): Likewise.  Tweak prototype.
15672         (clear_log_links): Delete.
15673         (adjust_for_new_dest): Call alloc_insn_link.
15674         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
15675
15676 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
15677
15678         * gcse.c (modify_mem_list): Convert to an array of VECs.
15679         (canon_modify_mem_list, compute_transp): Tweak formatting.
15680         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
15681         (load_killed_in_block_p): Likewise.
15682         (record_last_mem_set_info): Likewise.
15683         (clear_modify_mem_tables): Likewise.
15684
15685 2011-04-05  Tom de Vries  <tom@codesourcery.com>
15686
15687         PR middle-end/48461
15688         * function.c (emit_use_return_register_into_block): Only define if
15689         HAVE_return.
15690
15691 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
15692
15693         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
15694
15695 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
15696
15697         * config/rx/rx-opts.h: New.
15698         * config/rx/rx.c (rx_cpu_type): Remove.
15699         (rx_handle_option): Don't assert that global structures are in
15700         use.  Access variables via opts pointer.  Defer most handling of
15701         OPT_mint_register_.  Use error_at.
15702         (rx_option_override): Handle deferred OPT_mint_register_ here.
15703         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
15704         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
15705         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
15706         (rx_cpu_types): New Enum and EnumValue entries.
15707         (mint-register=): Use Defer and use Var accordingly.
15708
15709 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
15710
15711         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
15712         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
15713         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
15714         Move these...
15715         (debug_free_queue, debug_nesting, symbol_queue_index):
15716         ...and these...
15717         * dbxout.c: ...to here.  Make static.
15718
15719 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
15720
15721         * gcse.c (modify_pair): Define.  Define a VEC of it.
15722         (canon_modify_mem_list): Convert to an array of VECs.
15723         (free_insn_expr_list_list): Delete.
15724         (clear_modify_mem_tables): Call VEC_free instead.
15725         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
15726         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
15727         (canon_list_insert, compute_transp): Likewise.
15728
15729 2011-04-05  Tom de Vries  <tom@codesourcery.com>
15730
15731         PR target/43920
15732         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
15733         for size.
15734
15735 2011-04-05  Tom de Vries  <tom@codesourcery.com>
15736
15737         PR target/43920
15738         * function.c (emit_use_return_register_into_block): New function.
15739         (thread_prologue_and_epilogue_insns): Use
15740         emit_use_return_register_into_block.
15741
15742 2011-04-05  Tom de Vries  <tom@codesourcery.com>
15743
15744         PR target/43920
15745         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
15746         insn.
15747
15748 2011-04-05  Tom de Vries  <tom@codesourcery.com>
15749
15750         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
15751
15752 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
15753
15754         * config/arm/arm.md (define_constants for unspec): Replace with
15755         define_c_enum.
15756         (define_constants for unspecv): Replace with define_c_enum.
15757         * config/arm/neon.md (define_constants for unspec): Replace with
15758         define_c_enum.
15759
15760 2011-04-04  Richard Henderson  <rth@redhat.com>
15761
15762         PR bootstrap/48400
15763         * dwarf2out.c (output_line_info): Always emit line info from
15764         at least one section.
15765         (dwarf2out_init): Create text_section_line_info here ...
15766         (set_cur_line_info_table): ... not here.
15767
15768 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
15769
15770         PR target/48380
15771         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
15772         not called.
15773
15774         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
15775
15776 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
15777
15778         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
15779         (expr_equiv_p): Remove.
15780         (insert_set_in_table): Look at <dest, src> pair instead of expr.
15781         (hash_scan_set): Update call to insert_set_in_table.
15782         (dump_hash_table): Dump <dest, src> pair.
15783         (lookup_set): Simplify.  Lookup <dest, src> pair.
15784         (compute_transp): Remove, fold heavily simplified code into...
15785         (compute_local_properties): ...here.  Expect COMP and TRANSP
15786         unconditionally.
15787         (find_avail_set): Take set directly from struct expr.
15788         (find_bypass-set): Likewise.
15789         (bypass_block): Likewise.
15790         (cprop_insn): Likewise.  Remove redundant INSN_P test.
15791
15792         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
15793         checks on form of COND from find_implicit_sets to here.
15794         (find_implicit_sets): Cleanup control flow. Split critical edges
15795         if it exposes implicit sets.  Allocate/resize implicit_sets as
15796         necessary.
15797         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
15798         changed something.  Run df_analyze after find_implicit_sets if any
15799         edges were split.  Do not allocate implicit_sets here.
15800
15801         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
15802         (gcse_obstack): Renamed to cprop_obstack.
15803         (GNEW, GNEWVEC, GNEWVAR): Remove.
15804         (gmalloc): Remove.
15805         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
15806         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
15807         (gcse_alloc): Likewise, and rename to cprop_alloc.
15808         (alloc_gcse_men, free_gcse_mem): Remove.
15809         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
15810         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
15811         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
15812
15813         * cprop.c (oprs_not_set_p): Remove.
15814         (mark_set, mark_clobber): Remove.
15815         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
15816         (reg_not_set_p): New function.
15817         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
15818         (cprop_insn): Likewise.
15819         (cprop_jump): Use FOR_EACH_EDGE.
15820
15821 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
15822
15823         PR bootstrap/48403
15824         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
15825         (rank_for_schedule): Use scheduled_insns vector instead of
15826         last_scheduled_insn.
15827         (ok_for_early_queue_removal): Likewise.
15828         (queue_to_ready): Search forward in nonscheduled_insns_begin if
15829         we have a dbg_cnt.
15830         (choose_ready): Likewise.
15831         (commit_schedule): Use VEC_iterate.
15832         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
15833         a dbg_cnt, use it and ensure the first insn is in the ready list.
15834         (haifa_sched_init): Allocate scheduled_insns.
15835         (sched_extend_ready_list): Don't allocate it; reserve space.
15836         (haifa_sched_finish): Free it.
15837
15838 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
15839
15840         * optc-gen.awk: Always remove type from Variable entry before
15841         recording in var_seen.
15842
15843 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
15844
15845         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
15846         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
15847         call to tidy_fallthru_edges.
15848
15849 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
15850
15851         * doc/options.texi (ToLower): Document.
15852         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
15853         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
15854         * opts.h (cl_option): Add cl_tolower field.
15855         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
15856         arguments with lowercase strings.
15857         * config/rx/rx.opt (mcpu=): Add ToLower.
15858         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
15859         argument.
15860
15861 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
15862
15863         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
15864
15865 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
15866
15867         * config/vax/vax.c: Include reload.h.
15868
15869 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
15870
15871         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
15872         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
15873         (sparc_preferred_reload_class): New function.
15874
15875 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
15876
15877         PR debug/48401
15878         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
15879         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
15880
15881 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
15882
15883         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
15884         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
15885
15886 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
15887
15888         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
15889         (ASM_OUTPUT_ALIGNED_BSS): Define.
15890
15891 2011-04-03  Michael Matz  <matz@suse.de>
15892
15893         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
15894         and next_slot members.
15895         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
15896         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
15897         (lto_streamer_cache_append): Declare.
15898         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
15899         unsigned index, remove offset parameter, ensure that we append
15900         or update existing entries.
15901         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
15902         parameter, update next_slot for append.
15903         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
15904         parameter.
15905         (lto_streamer_cache_insert_at): Likewise.
15906         (lto_streamer_cache_append): New function.
15907         (lto_streamer_cache_lookup): Use unsigned index.
15908         (lto_streamer_cache_get): Likewise.
15909         (lto_record_common_node): Don't test tree_node_can_be_shared.
15910         (preload_common_node): Adjust call to lto_streamer_cache_insert.
15911         (lto_streamer_cache_delete): Don't free offsets member.
15912         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
15913         (lto_output_string_with_length): Use lto_output_data_stream.
15914         (lto_output_tree_header): Remove ix parameter, don't write it.
15915         (lto_output_builtin_tree): Likewise.
15916         (lto_write_tree): Adjust callers to above, don't track and write
15917         offset, write unsigned index.
15918         (output_unreferenced_globals): Don't emit all global vars.
15919         (write_global_references): Use unsigned indices.
15920         (lto_output_decl_state_refs): Likewise.
15921         (write_symbol): Likewise.
15922         * lto-streamer-in.c (lto_input_chain): Move earlier.
15923         (input_function): Use unsigned index.
15924         (input_alias_pairs): Don't read and then ignore all global vars.
15925         (lto_materialize_tree): Remove ix_p parameter, don't read index,
15926         don't pass it back, use lto_streamer_cache_append.
15927         (lto_register_var_decl_in_symtab): Use unsigned index.
15928         (lto_register_function_decl_in_symtab): Likewise.
15929         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
15930         index.
15931         (lto_get_builtin_tree): Don't read index, use
15932         lto_streamer_cache_append.
15933         (lto_read_tree): Adjust call to lto_materialize_tree.
15934
15935         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
15936         don't use function calls in arguments to MIN.
15937
15938         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
15939         twice.
15940
15941         * gimple.c (gimple_type_leader_entry): Mark deletable.
15942
15943 2011-04-03  Alan Modra  <amodra@gmail.com>
15944
15945         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
15946
15947 2011-04-03  Michael Matz  <matz@suse.de>
15948
15949         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
15950         an integer.
15951         * tree.h (tree_decl_non_common.vindex): Adjust comment.
15952
15953 2011-04-03  Michael Matz  <matz@suse.de>
15954
15955         * cgraphbuild.c (record_reference): Canonicalize constructor values.
15956         * gimple-fold.c (canonicalize_constructor_val): Accept being called
15957         without function context.
15958         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
15959         current_function_decl and cfun.
15960
15961 2011-04-03  Michael Matz  <matz@suse.de>
15962
15963         * tree.c (decl_init_priority_insert): Don't create entry for
15964         default priority.
15965         (decl_fini_priority_insert): Ditto.
15966         (fields_compatible_p, find_compatible_field): Remove.
15967         * tree.h (fields_compatible_p, find_compatible_field): Remove.
15968         * gimple.c (gimple_compare_field_offset): Adjust block comment.
15969
15970 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
15971
15972         * combine.c (try_combine): Remove useless local variable.
15973
15974 2011-04-03  Richard Guenther  <rguenther@suse.de>
15975             Ira Rosen  <ira.rosen@linaro.org>
15976
15977         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
15978         non-variable offsets and compare the remaining bases of the two
15979         accesses instead of looking for exact same data-ref.
15980
15981 2011-04-02  Kai Tietz  <ktietz@redhat.com>
15982
15983         PR target/48416
15984         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
15985
15986         * i386.c (ix86_is_msabi_thiscall): New helper function.
15987         (ix86_is_type_thiscall): New helper function.
15988         (ix86_comp_type_attributes): Handle thiscall for method-functions
15989         special.
15990         (init_cumulative_args): Likewise.
15991         (find_drap_reg): Likewise.
15992         (ix86_static_chain): Likewise.
15993         (x86_this_parameter): Likewise.
15994         (x86_output_mi_thunk): Likewise.
15995
15996 2011-04-01  Olivier Hainque  <hainque@adacore.com>
15997             Nicolas Setton  <setton@adacore.com>
15998             Eric Botcazou  <ebotcazou@adacore.com>
15999
16000         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
16001         (add_gnat_descriptive_type_attribute): New function.
16002         (gen_array_type_die): Call it.
16003         (gen_enumeration_type_die): Likewise.
16004         (gen_struct_or_union_type_die): Likewise.
16005         (modified_type_die): Likewise.
16006         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
16007         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
16008         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
16009
16010 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
16011
16012         PR bootstrap/48148
16013         * dwarf2out.c (resolve_addr): Don't call force_decl_die
16014         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
16015
16016         Revert:
16017         2011-03-17  Richard Guenther  <rguenther@suse.de>
16018
16019         PR bootstrap/48148
16020         * lto-cgraph.c (input_overwrite_node): Clear the abstract
16021         origin for decls in other ltrans units.
16022         (input_varpool_node): Likewise.
16023
16024 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
16025
16026         PR middle-end/48335
16027         * expr.c (expand_assignment): Handle all possibilities
16028         if TO_RTX is CONCAT.
16029         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
16030         (store_split_bit_field): If SUBREG_REG (op0) or
16031         op0 itself has smaller mode than word, return it
16032         for offset 0 and const0_rtx for out-of-bounds stores.
16033         If word is const0_rtx, skip it.
16034
16035 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
16036
16037         * config/h8300/h8300.c (print_operand_address): Rename to...
16038         (h8300_print_operand_address): ...this. Make static. Adjust comments.
16039         Call h8300_print_operand and h8300_print_operand_address instead of
16040         print_operand and print_operand_address. Declare.
16041         (print_operand): Renake to...
16042         (h8300_print_operand): ...this. Make static. Adjust comments.
16043         Call h8300_print_operand instead of print_operand. Declare.
16044         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
16045         (h8300_register_move_cost): Likewise.
16046         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
16047         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
16048         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
16049         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
16050         * config/h8300/h8300-protos.h (print_operand): Delete.
16051         (print_operand_address): Delete.
16052
16053 2011-04-01  Richard Henderson  <rth@redhat.com>
16054
16055         PR 48400
16056         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
16057         in strict mode before dwarf4.  Re-order tests to early out
16058         before switching sections.
16059
16060 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
16061
16062         * config/h8300/constraints.md: New file.
16063         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
16064         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
16065         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
16066         * config/h8300/predicates.md (bit_operand): Likewise.
16067         (incdec_operand): Use satisfies_constraint_M and
16068         satisfies_constraint_O.  Don't use C code block.
16069         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
16070         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
16071         (compute_mov_length): Use satisfies_constraint_G.
16072         (fix_bit_operand): Use satisfies_constraint_U.
16073         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
16074         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
16075         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
16076         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
16077         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
16078         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
16079         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16080         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
16081         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
16082         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
16083         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
16084         (EXTRA_MEMORY_CONSTRAINT): Delete.
16085
16086 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
16087             Michael Meissner  <meissner@linux.vnet.ibm.com>
16088
16089         PR target/48262
16090         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
16091         operands, as per the specifications.
16092
16093         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
16094         (vec_extract_evenv4sf): Ditto.
16095         (vec_extract_evenv8hi): Ditto.
16096         (vec_extract_evenv16qi): Ditto.
16097         (vec_extract_oddv4si): Ditto.
16098
16099 2011-03-31  Mark Wielaard  <mjw@redhat.com>
16100
16101         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
16102         high_pc attribute if the CU has no associated code. Only output
16103         DW_AT_entry_pc for CU if not generating strict dwarf and
16104         dwarf_version < 4.
16105
16106 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
16107
16108         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
16109         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
16110         out of ...
16111         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
16112         * final.c (final_start_function): Call the new function rather
16113         than using a NULL argument for dwarf2out_frame_debug.
16114
16115         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
16116         that contains the prologue.
16117
16118         * haifa-sched.c (queue_insn): New arg REASON.  All callers
16119         changed.  Print it in debugging output.
16120
16121         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
16122
16123         * sched-ebb.c (begin_schedule_ready): Remove second argument.
16124         Split most of the code into...
16125         (begin_move_insn): ... here.  New function.
16126         (ebb_sched_info): Add a pointer to it.
16127         * haifa-sched.c (scheduled_insns): New static variable.
16128         (sched_extend_ready_list): Allocate it.
16129         (schedule_block): Use it to record the order of scheduled insns.
16130         Perform RTL changes to move insns only after all scheduling
16131         decisions have been made.
16132         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
16133         begin_move_insn field.
16134         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
16135         * sched-int.h (struct haifa_sched_info): Remove second argument
16136         from begin_schedule_ready hook.  Add new member begin_move_insn.
16137         * sched-rgn.c (begin_schedule_ready): Remove second argument.
16138         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
16139
16140         * haifa-sched.c (prune_ready_list): New function, broken out of
16141         schedule_block.
16142         (schedule_block): Use it.
16143
16144 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16145
16146         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
16147
16148 2011-04-01  Kai Tietz  <ktietz@redhat.com>
16149
16150         * config.gcc (*-*-mingw*): Allow as option the
16151         posix threading model.
16152         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
16153         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
16154         definition.
16155         (CPP_SPEC): Add pthread/no-pthread handling.
16156         (LIB_SPEC): Likewise.
16157         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
16158         (LIB_SPEC): Likewise.
16159         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
16160         flag to pass -pthread option for shared libgcc build.
16161         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
16162         for shared libgcc build.
16163         * config/i386/t-mingw-pthread: New file.
16164         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
16165         New define to enable use of library pthread by default.
16166         * config/i386/mingw.opt (pthread): New driver option.
16167         (no-pthread): New driver option.
16168         * config/i386/cygming.opt: Make sure trailing empty line is retained.
16169         * config/i386/mingw-w64.opt: Likewise.
16170
16171 2011-04-01  Gary Funck  <gary@intrepid.com>
16172
16173         * c-decl.c (grokdeclarator): Fix formatting.
16174
16175 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
16176
16177         * expr.c (emit_block_move_via_movmem): Use n_generator_args
16178         instead of n_operands.
16179         (set_storage_via_setmem): Likewise.
16180         * optabs.c (maybe_gen_insn): Likewise.
16181         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
16182         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
16183         (mips_expand_builtin_direct): Likewise.
16184         * config/spu/spu.c (expand_builtin_args): Likewise.
16185
16186 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
16187
16188         * recog.h (insn_data_d): Add n_generator_args.
16189         * genoutput.c (data): Likewise.
16190         (output_insn_data): Print it.
16191         (max_opno, num_dups): Delete.
16192         (scan_operands): Just fill in "d->operand[...]".
16193         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
16194
16195 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
16196
16197         * gensupport.h (pattern_stats): New structure.
16198         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
16199         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
16200         (max_operand_1, max_operand_vec): Delete.
16201         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
16202
16203 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
16204
16205         * emit-rtl.c (emit_pattern_after_setloc): New function.
16206         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
16207         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
16208         (emit_pattern_after): New function.
16209         (emit_insn_after, emit_jump_insn_after): Call it.
16210         (emit_call_insn_after, emit_debug_insn_after): Likewise.
16211         (emit_pattern_before_setloc): New function.
16212         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
16213         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
16214         Likewise.
16215         (emit_pattern_before): New function.
16216         (emit_insn_before, emit_jump_insn_before): Call it.
16217         (emit_call_insn_before, emit_debug_insn_before): Likewise.
16218
16219 2011-03-31  Richard Henderson  <rth@redhat.com>
16220
16221         * dwarf2out.c (dw_separate_line_info_ref): Remove.
16222         (dw_separate_line_info_entry): Remove.
16223         (enum dw_line_info_opcode): New.
16224         (dw_line_info_entry): Use it.
16225         (dw_line_info_table, dw_line_info_table_p): New.
16226         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
16227         (line_info_table, line_info_label_num): Remove.
16228         (line_info_table_in_use): Remove.
16229         (separate_line_info_table): Remove.
16230         (separate_line_info_table_allocated): Remove.
16231         (separate_line_info_table_in_use): Remove.
16232         (LINE_INFO_TABLE_INCREMENT): Remove.
16233         (line_info_label_num): New.
16234         (cur_line_info_table): New.
16235         (text_section_line_info, cold_text_section_line_info): New.
16236         (separate_line_info): New.
16237         (SEPARATE_LINE_CODE_LABEL): Remove.
16238         (print_dwarf_line_table): Remove.
16239         (debug_dwarf): Don't dump it.
16240         (output_one_line_info_table): New.
16241         (output_line_info): Use it.
16242         (new_line_info_table): New.
16243         (set_cur_line_info_table): New.
16244         (dwarf2out_switch_text_section): Use it.
16245         (dwarf2out_begin_function): Likewise.
16246         (push_dw_line_info_entry): New.
16247         (dwarf2out_source_line): Rewrite for new line info tables.
16248         (dwarf2out_init): Remove dead initailizations.
16249
16250 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
16251
16252         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
16253         various flags.
16254         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
16255         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
16256         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
16257         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
16258         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
16259         * opt-functions.awk (flag_init, switch_bit_fields): New.
16260         (switch_flags): Don't handle flags moved to bit-fields.  Don't
16261         generate CL_MISSING_OK or CL_SAVE.
16262         * optc-gen.awk: Update to generate bit-field output as well as
16263         flags field.
16264         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
16265         bit-field instead of CL_REJECT_DRIVER flag.
16266         * opts-common.c (generate_canonical_option,
16267         decode_cmdline_option): Use bit-fields instead of CL_* flags.
16268         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
16269         instead of CL_REJECT_NEGATIVE flag.
16270         * toplev.c (print_switch_values): Use cl_report bit-field instead
16271         of CL_REPORT flag.
16272
16273 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
16274
16275         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
16276         a zero minimum index only if it is redundant.
16277
16278 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
16279
16280         PR rtl-optimization/48381
16281         * ira-color.c (assign_hard_reg): Use hard reg set intersection
16282         instead of ira_class_hard_reg_index for calculating conflicting
16283         hard registers.
16284
16285 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
16286
16287         * cprop.c: Clean up hash table building.
16288         (reg_avail_info): Remove.
16289         (oprs_available_p): Remove.
16290         (record_last_reg_set_info): Remove.
16291         (record_last_set_info): Remove.
16292         (reg_available_p): New function.
16293         (gcse_constant_p): Do not treat unfolded conditions as constants.
16294         (make_set_regs_unavailable): New function.
16295         (hash_scan_set): Simplify with new reg_available_p.
16296         (compute_hash_table_work): Traverse insns stream only once.
16297         Do not compute reg_avail_info. Traverse insns in reverse order.
16298         Record implicit sets after recording explicit sets from the block.
16299
16300 2011-03-31  Michael Matz  <matz@suse.de>
16301
16302         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
16303
16304 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
16305
16306         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
16307         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
16308         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16309         (h8300_mode_dependent_address_p): New function.
16310         (h8300_get_index): Make static.
16311
16312 2011-03-31  Jeff Law  <law@redhat.com>
16313
16314         * reload1.c (elimination_effects): Fix typo in recent change.
16315
16316         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
16317         typo potentially leading to null pointer dereference.
16318
16319         * caller-save.c (new_saved_hard_reg): Eliminate return value.
16320         (setup_save_areas): Corresponding changes to avoid useless
16321         assignments.
16322
16323         * jump.c (reversed_comparison_code_parts): Avoid successive return
16324         statements when REVERSE_CONDITION is defined.
16325
16326         * expr.c (expand_assignment): Avoid useless assignments.
16327         (expand_expr_real_1): Likewise.
16328         (expand_expr_real_2): Avoid useless statements.
16329
16330         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
16331
16332         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
16333
16334         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
16335         statements.
16336
16337         * stmt.c (expand_expr_stmt): Avoid useless assignment.
16338
16339 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
16340
16341         PR target/47109
16342         * doc/tm.texi.in (TARGET_VERSION): Remove.
16343         * doc/tm.texi: Regenerate.
16344         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
16345         * collect2.c (main): Don't use TARGET_VERSION.
16346         * mips-tdump.c (main): Don't use TARGET_VERSION.
16347         * mips-tfile.c (main): Don't use TARGET_VERSION.
16348         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
16349         * config/rs6000/vxworksae.h: Remove.
16350         * config/alpha/alpha.h (TARGET_VERSION): Remove.
16351         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
16352         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
16353         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
16354         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
16355         * config/arm/arm.h (TARGET_VERSION): Remove.
16356         * config/arm/coff.h (TARGET_VERSION): Remove.
16357         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
16358         * config/arm/elf.h (TARGET_VERSION): Remove.
16359         * config/arm/freebsd.h (TARGET_VERSION): Remove.
16360         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
16361         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
16362         * config/arm/pe.h (TARGET_VERSION): Remove.
16363         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
16364         * config/arm/semi.h (TARGET_VERSION): Remove.
16365         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
16366         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
16367         * config/arm/vxworks.h (TARGET_VERSION): Remove.
16368         * config/avr/avr.h (TARGET_VERSION): Remove.
16369         * config/bfin/bfin.h (TARGET_VERSION): Remove.
16370         * config/fr30/fr30.h (TARGET_VERSION): Remove.
16371         * config/frv/frv.h (TARGET_VERSION): Remove.
16372         * config/h8300/h8300.h (TARGET_VERSION): Remove.
16373         * config/i386/cygwin.h (TARGET_VERSION): Remove.
16374         * config/i386/darwin.h (TARGET_VERSION): Remove.
16375         * config/i386/darwin64.h (TARGET_VERSION): Remove.
16376         * config/i386/djgpp.h (TARGET_VERSION): Remove.
16377         * config/i386/freebsd.h (TARGET_VERSION): Remove.
16378         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
16379         * config/i386/gnu.h (TARGET_VERSION): Remove.
16380         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
16381         * config/i386/i386elf.h (TARGET_VERSION): Remove.
16382         * config/i386/linux.h (TARGET_VERSION): Remove.
16383         * config/i386/linux64.h (TARGET_VERSION): Remove.
16384         * config/i386/lynx.h (TARGET_VERSION): Remove.
16385         * config/i386/mingw32.h (TARGET_VERSION): Remove.
16386         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
16387         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
16388         * config/i386/netware.h (TARGET_VERSION): Remove.
16389         * config/i386/nto.h (TARGET_VERSION): Remove.
16390         * config/i386/openbsd.h (TARGET_VERSION): Remove.
16391         * config/i386/vxworks.h (TARGET_VERSION): Remove.
16392         * config/ia64/elf.h (TARGET_VERSION): Remove.
16393         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
16394         * config/ia64/hpux.h (TARGET_VERSION): Remove.
16395         * config/ia64/linux.h (TARGET_VERSION): Remove.
16396         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
16397         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
16398         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
16399         * config/lm32/lm32.h (TARGET_VERSION): Remove.
16400         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
16401         * config/m32c/m32c.h (TARGET_VERSION): Remove.
16402         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
16403         * config/m32r/m32r.h (TARGET_VERSION): Remove.
16404         * config/m68k/linux.h (TARGET_VERSION): Remove.
16405         * config/m68k/m68k.h (TARGET_VERSION): Remove.
16406         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
16407         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
16408         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
16409         * config/mep/mep.h (TARGET_VERSION): Remove.
16410         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
16411         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
16412         * config/mips/iris6.h (MACHINE_TYPE): Remove.
16413         * config/mips/linux.h (TARGET_VERSION): Remove.
16414         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
16415         * config/mips/vxworks.h (TARGET_VERSION): Remove.
16416         * config/mmix/mmix.h (TARGET_VERSION): Remove.
16417         * config/mn10300/linux.h (TARGET_VERSION): Remove.
16418         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
16419         * config/pa/pa.h (TARGET_VERSION): Remove.
16420         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
16421         * config/picochip/picochip.h (TARGET_VERSION): Remove.
16422         * config/rs6000/aix.h (TARGET_VERSION): Remove.
16423         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
16424         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
16425         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
16426         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
16427         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
16428         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
16429         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
16430         * config/rs6000/linux.h (TARGET_VERSION): Remove.
16431         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
16432         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
16433         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
16434         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
16435         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
16436         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
16437         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
16438         * config/s390/linux.h (TARGET_VERSION): Remove.
16439         * config/s390/s390.h (TARGET_VERSION): Remove.
16440         * config/s390/tpf.h (TARGET_VERSION): Remove.
16441         * config/score/score.h (TARGET_VERSION): Remove.
16442         * config/sh/linux.h (TARGET_VERSION): Remove.
16443         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
16444         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
16445         * config/sh/sh.h (TARGET_VERSION): Remove.
16446         * config/sh/sh64.h (TARGET_VERSION): Remove.
16447         * config/sh/superh.h (TARGET_VERSION): Remove.
16448         * config/sh/vxworks.h (TARGET_VERSION): Remove.
16449         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
16450         * config/sparc/linux.h (TARGET_VERSION): Remove.
16451         * config/sparc/linux64.h (TARGET_VERSION): Remove.
16452         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
16453         TARGET_NAME32, TARGET_NAME): Remove.
16454         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
16455         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
16456         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
16457         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
16458         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
16459         * config/spu/spu.h (TARGET_VERSION): Remove.
16460         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
16461         * config/v850/v850.h (TARGET_VERSION): Remove.
16462         * config/vax/linux.h (TARGET_VERSION): Remove.
16463         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
16464         * config/xtensa/elf.h (TARGET_VERSION): Remove.
16465         * config/xtensa/linux.h (TARGET_VERSION): Remove.
16466
16467 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
16468
16469         PR target/48142
16470         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
16471         frame-related from frame-unrelated adjustments to the stack pointer.
16472
16473 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
16474
16475         * common.opt (fdebug-types-section): Move earlier.
16476         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
16477
16478 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
16479
16480         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
16481         var.
16482
16483 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
16484
16485         * tree.h (CASE_CHAIN): Define.
16486         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
16487         (gimple_redirect_edge_and_branch): Likewise.
16488
16489 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
16490
16491         PR middle-end/48367
16492         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
16493         calculation.
16494
16495 2011-03-30  Jeff Law  <law@redhat.com>
16496
16497         * PR bootstrap/48371
16498         * reload1.c (reload): Fix botch in last change.
16499
16500         * reload.h (struct reload): Fix typo introduced in last change.
16501
16502 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
16503
16504         * config/arm/arm.opt (mhard-float, msoft-float): Mark
16505         Undocumented.  Remove help text.
16506         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
16507         -mhard-float.
16508
16509 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
16510
16511         * doc/options.texi (NegativeAlias): Document.
16512         (Alias): Mention NegativeAlias.
16513         * opt-functions.awk: Handle NegativeAlias.
16514         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
16515         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
16516         * opts.h (CL_NEGATIVE_ALIAS): Define.
16517         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
16518         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
16519         OPT_mspe_.
16520         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
16521         Alias entries.
16522         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
16523         mno-spe and mno-isel instead of mspe=no and -misel=no.
16524
16525 2011-03-29  Mark Wielaard  <mjw@redhat.com>
16526
16527         * common.opt (fdebug-types-section): New flag.
16528         * doc/invoke.texi: Document new -fno-debug-types-section flag.
16529         * dwarf2out.c (use_debug_types): New define.
16530         (struct die_struct): Mark die_id with GTY desc use_debug_types.
16531         (print_die): Guard output of type unit signatures using
16532         use_debug_types.
16533         (build_abbrev_table): Replace assert of dwarf_version >= 4
16534         with assert on use_debug_types.
16535         (size_of_die): Likewise.
16536         (unmark_dies): Likewise.
16537         (value_format): Decide AT_ref_external form on use_debug_types.
16538         (output_die): Replace dwarf_version version check guard with
16539         use_debug_types where appropriate.
16540         (modified_type_die): Likewise.
16541         (gen_reference_type_die): Likewise.
16542         (dwarf2out_start_source_file): Likewise.
16543         (dwarf2out_end_source_file): Likewise.
16544         (prune_unused_types_walk_attribs): Likewise.
16545         (dwarf2out_finish): Likewise.
16546
16547 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
16548
16549         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
16550
16551 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
16552
16553         PR rtl-optimization/48332
16554         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
16555         mode of input operand N and modeN to its actual mode.
16556
16557 2011-03-30  Jeff Law  <law@redhat.com>
16558
16559         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
16560         define accessor macro.
16561         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
16562         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
16563         (reg_equiv_init): Likewise.
16564         (reg_equivs_size): New variable.
16565         (reg_equiv_init_size): Remove.
16566         (allocate_initial_values): Move prototype to here from....
16567         * integrate.h (allocate_initial_values): Remove prototype.
16568         * integrate.c: Include reload.h.
16569         (allocate_initial_values): Corresponding changes.
16570         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
16571         (fix_reg_equiv_init, no_equiv): Corresponding changes.
16572         (update_equiv_regs): Corresponding changes.
16573         (ira): Corresponding changes.
16574         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
16575         (push_secondary_reload): Corresponding changes.
16576         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
16577         (make_memloc, find_reloads_address): Corresponding changes.
16578         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
16579         (find_reloads_address_1): Corresponding changes.
16580         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
16581         (refers_to_regno_for_reload_p): Corresponding changes.
16582         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
16583         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
16584         * reload1.c: Include ggc.h.
16585         (grow_reg_equivs): New function.
16586         (replace_pseudos_in, reload): Corresponding changes.
16587         (calculate_needs_all_insns, alter_regs): Corresponding changes.
16588         (eliminate_regs_1, elimination_effects): Corresponding changes.
16589         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
16590         (delete_output_reload): Likewise.
16591         * caller-save.c (mark_referenced_regs): Corresponding changes.
16592         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
16593         * frv/predicates.md (frv_load_operand): Corresponding changes.
16594         * microblaze/microblaze.c (double_memory_operand): Corresponding
16595         changes.
16596         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
16597         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
16598         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
16599         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
16600         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
16601         changes.
16602         * pa/pa.c (emit_move_sequence): Corresponding changes.
16603         * vax/vax.c (nonindexed_address_p): Corresponding changes.
16604
16605 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
16606
16607         PR target/47551
16608         * config/arm/arm.c (coproc_secondary_reload_class): Handle
16609         structure modes.  Don't check neon_vector_mem_operand for
16610         vector or structure modes.
16611
16612 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
16613             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
16614
16615         PR target/43590
16616         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
16617         operand 1 and reshuffle the operands to match.
16618         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
16619
16620 2011-03-30  Christian Schüler  <cschueler@gmx.de>
16621
16622         PR driver/48208
16623         * config/c.opt (F): Added 'Driver' to -F option.
16624
16625         PR driver/48260
16626         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
16627           handler function.
16628         * config/darwin.opt: Added '-arch' option.
16629
16630 2011-03-30  Nick Clifton  <nickc@redhat.com>
16631
16632         * config/rx/rx.md: Add peepholes and patterns to combine
16633         extending loads and simple arithmetic instructions.
16634         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
16635         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
16636         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
16637         modes to use pre-decrement and post-increment addressing.
16638         (rx_is_restricted_memory_address): Add range checking of REG+INT
16639         addresses.
16640         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
16641         (rx_memory_move_cost): Adjust cost of stores.
16642         (rx_adjust_insn_length): New function.
16643
16644 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
16645
16646         PR c/48305
16647         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
16648         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
16649         matching arg00/arg01 types.
16650
16651 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
16652
16653         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
16654         last_location to UNKNOWN_LOCATION.
16655
16656 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
16657
16658         PR target/48349
16659         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
16660         FLOAT_SSE_REGS.
16661
16662 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
16663             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16664
16665         PR bootstrap/48337
16666         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
16667         Init(PROCESSOR_V7).
16668         (sparc_cpu): Likewise.
16669         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
16670         PROCESSOR_V7.
16671
16672 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
16673
16674         PR target/48336
16675         PR middle-end/48342
16676         PR rtl-optimization/48345
16677         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
16678         hard regs for given mode from profitable regs when doing secondary
16679         allocation.
16680
16681 2011-03-29  Jeff Law  <law@redhat.com>
16682
16683         PR bootstrap/48327
16684         * tree-ssa-threadupdate.c (struct redirection_data): Remove
16685         do_not_duplicate field.
16686         (lookup_redirection_data): Corresponding changes.
16687         (create_duplicates): Always create a template block.
16688         (redirect_edges): Remove code which reused the original block
16689         when it was going to become unreachable code.
16690         (thread_block): Don't set do_not_duplicate field.
16691
16692 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
16693
16694         * lto-opts.c (register_user_option_p, lto_register_user_option):
16695         Make type argument unsigned.
16696         * lto-streamer.h (lto_register_user_option): Make type argument
16697         unsigned.
16698         * opth-gen.awk: Make CL_* macros unsigned.
16699         * opts-common.c (find_opt): Make lang_mask argument unsigned.
16700         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
16701         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
16702         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
16703         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
16704         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
16705         (find_opt): Make lang_mask argument unsigned.
16706
16707 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
16708
16709         PR rtl-optimization/48331
16710         PR rtl-optimization/48334
16711         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
16712         for any used algorithm.
16713
16714 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
16715
16716         * ira-conflicts.c (build_object_conflicts): Add unused attribute
16717         to parent_max.
16718
16719 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
16720
16721         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
16722         (alpha_option_override): Don't set alpha_sr_alias_set.
16723         (emit_frame_store_1): Use gen_frame_mem rather than calling
16724         set_mem_alias_set.
16725         (alpha_expand_epilogue): Ditto.
16726
16727 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
16728
16729         PR tree-optimization/48290
16730         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
16731         vectorization, check that relevant phis in the basic block after
16732         the inner loop are really inner loop's exit phis.
16733
16734 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
16735
16736         PR debug/48190
16737         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
16738         (cached_dw_loc_list_def): New structure.
16739         (cached_dw_loc_list): New typedef.
16740         (cached_dw_loc_list_table): New variable.
16741         (cached_dw_loc_list_table_hash): New function.
16742         (cached_dw_loc_list_table_eq): Likewise.
16743         (add_location_or_const_value_attribute): Take a bool cache_p.
16744         Cache the list when the parameter is true.
16745         (gen_formal_parameter_die): Update caller.
16746         (gen_variable_die): Likewise.
16747         (dwarf2out_finish): Likewise.
16748         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
16749         while generating debug info for the decl.
16750         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
16751         (dwarf2out_init): Initialize cached_dw_loc_list_table.
16752         (resolve_addr): Cache the result of resolving a chain of
16753         location lists.
16754
16755 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
16756
16757         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
16758         conflict object hard regset nodes have intersecting hard reg sets.
16759
16760         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
16761         after regstat_init_n_sets_and_refs.
16762
16763         * ira.c: Add more comments at the top.
16764         (setup_stack_reg_pressure_class, setup_pressure_classes):
16765         Add comments how we compute the register pressure classes.
16766         (setup_allocno_and_important_classes): Add more comments.
16767         (setup_class_translate_array, reorder_important_classes)
16768         (setup_reg_class_relations): Add comments.
16769
16770         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
16771         start of the file.
16772
16773         * ira-color.c: Add 2011 to the Copyright line.
16774         (assign_hard_reg):  Add more comments.
16775         (improve_allocation): Ditto.
16776
16777         * ira-costs.c: Add 2011 to the Copyright line.
16778         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
16779         comments.
16780         (setup_regno_cost_classes_by_mode): Ditto.
16781
16782         Initial patches from ira-improv branch:
16783
16784         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
16785
16786         * ira-build.c (ira_create_object): Remove initialization of
16787         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
16788         (ira_create_allocno): Remove initialization of
16789         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
16790         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
16791         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
16792         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
16793         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
16794         Initialize ALLOCNO_ADD_DATA.
16795         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
16796         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
16797         ALLOCNO_REG.
16798         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
16799         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
16800
16801         * ira.c (ira_reallocate): Remove.
16802         (setup_pressure_classes): Call
16803         ira_init_register_move_cost_if_necessary.  Use
16804         ira_register_move_cost instead of ira_get_register_move_cost.
16805         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
16806         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
16807
16808         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
16809         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
16810         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
16811         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
16812         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
16813         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
16814         Fix formatting.
16815         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
16816         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
16817         (struct allocno_color_data): New.
16818         (allocno_color_data_t): New typedef.
16819         (allocno_color_data): New definition.
16820         (ALLOCNO_COLOR_DATA): New macro.
16821         (struct object_color_data): New.
16822         (object_color_data_t): New typedef.
16823         (object_color_data): New definition.
16824         (OBJECT_COLOR_DATA): New macro.
16825         (update_copy_costs, calculate_allocno_spill_cost): Call
16826         ira_init_register_move_cost_if_necessary.  Use
16827         ira_register_move_cost instead of ira_get_register_move_cost.
16828         (move_spill_restore, update_curr_costs): Ditto.
16829         (allocno_spill_priority): Make it inline.
16830         (color_pass): Allocate and free allocno_color_dat and object_color_data.
16831         (struct coalesce_data, coalesce_data_t): New.
16832         (allocno_coalesce_data): New definition.
16833         (ALLOCNO_COALESCE_DATA): New macro.
16834         (merge_allocnos, coalesced_allocno_conflict_p): Use
16835         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
16836         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
16837         (coalesce_allocnos): Ditto.
16838         (setup_coalesced_allocno_costs_and_nums): Ditto.
16839         (collect_spilled_coalesced_allocnos): Ditto.
16840         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
16841         (setup_slot_coalesced_allocno_live_ranges): Ditto.
16842         (coalesce_spill_slots): Ditto.
16843         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
16844         free allocno_coalesce_data.
16845
16846         * ira-conflicts.c: Fix formatting.
16847         (process_regs_for_copy): Call
16848         ira_init_register_move_cost_if_necessary.  Use
16849         ira_register_move_cost instead of ira_get_register_move_cost.
16850         (build_object_conflicts): Optimize.
16851
16852         * ira-costs.c (record_reg_classes): Optimize.  Call
16853         ira_init_register_move_cost_if_necessary.  Use
16854         ira_register_move_cost, ira_may_move_in_cost, and
16855         ira_may_move_out_cost instead of ira_get_register_move_cost and
16856         ira_get_may_move_cost.
16857         (record_address_regs): Ditto.
16858         (scan_one_insn): Optimize.
16859         (find_costs_and_classes): Optimize.
16860         (process_bb_node_for_hard_reg_moves): Call
16861         ira_init_register_move_cost_if_necessary.  Use
16862         ira_register_move_cost instead of ira_get_register_move_cost.
16863
16864         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
16865         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
16866         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
16867         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
16868         definitions.
16869         (ira_initiate_emit_data, ira_finish_emit_data)
16870         (create_new_allocno): New functions.
16871         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
16872         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
16873         Use ira_register_move_cost instead of ira_get_register_move_cost.
16874
16875         * ira-int.h: Fix some comments.
16876         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
16877         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
16878         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
16879         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
16880         add_data.
16881         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
16882         bitfield after mode.  Make hard_regno a short int.  Make
16883         hard_regno short.  Remove first_coalesced_allocno and
16884         next_coalesced_allocno.  Move mem_optimized_dest_p,
16885         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
16886         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
16887         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
16888         temp, colorable_p.  Add new member add_data.
16889         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
16890         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
16891         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
16892         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
16893         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
16894         (ALLOCNO_ADD_DATA): New macro.
16895         (ira_emit_data_t): New typedef.
16896         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
16897         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
16898         from struct ira_allocno.
16899         (ALLOCNO_EMIT_DATA): New macro.
16900         (ira_allocno_emit_data, allocno_emit_reg): New.
16901         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
16902         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
16903         (OBJECT_ADD_DATA): New macro.
16904         (ira_reallocate): Remove.
16905         (ira_initiate_emit_data, ira_finish_emit_data): New.
16906         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
16907         (ira_init_register_move_cost_if_necessary): New.
16908         (ira_object_conflict_iter_next): Merge into
16909         ira_object_conflict_iter_cond.
16910         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
16911
16912         * ira-live.c (process_single_reg_class_operands): Call
16913         ira_init_register_move_cost_if_necessary.  Use
16914         ira_register_move_cost instead of ira_get_register_move_cost.
16915
16916         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
16917
16918         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
16919
16920         * ira-costs.c: Fix formatting.
16921         (cost_classes, cost_classes_num): Remove.
16922         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
16923         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
16924         (cost_classes_del, cost_classes_htab): New.
16925         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
16926         (initiate_regno_cost_classes, setup_cost_classes): New.
16927         (setup_regno_cost_classes_by_aclass): New.
16928         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
16929         (record_reg_classes): Use regno_cost_classes instead of
16930         cost_classes.  Move checking opposite operand up.
16931         (record_address_regs): Use regno_cost_classes
16932         instead of cost_classes.
16933         (scan_one_insn): Ditto.  Use always general register.
16934         (print_allocno_costs): Use regno_cost_classes instead of
16935         cost_classes.
16936         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
16937         (find_costs_and_classes): Set up cost classes for each registers.
16938         Use also their mode for this.  Use regno_cost_classes instead of
16939         cost_classes.
16940         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
16941         cost_classes.
16942         (free_ira_costs, ira_init_costs): Don't use cost_classes.
16943         (ira_costs, ira_set_pseudo_classes): Call
16944         initiate_regno_cost_classes and finish_regno_cost_classes.
16945
16946         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
16947
16948         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
16949
16950         * target.def (ira_cover_classes): Remove.
16951
16952         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
16953
16954         * doc/tm.texi.in: Ditto.
16955
16956         * ira-conflicts.c: Remove mentioning cover classes from the file.
16957         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
16958         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
16959
16960         * targhooks.c (default_ira_cover_classes): Remove.
16961
16962         * targhooks.h (default_ira_cover_classes): Ditto.
16963
16964         * haifa-sched.c: Remove mentioning cover classes from the file.
16965         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
16966         ira_pressure_classes and ira_pressure_classes_num instead of
16967         ira_reg_class_cover_size and ira_reg_class_cover.  Use
16968         sched_regno_pressure_class instead of sched_regno_cover_class.
16969         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
16970         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
16971
16972         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
16973         classes from the file.
16974         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
16975         (struct object_hard_regs, struct object_hard_regs_node): New.
16976         (struct ira_object): New members profitable_hard_regs,
16977         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
16978         (struct ira_allocno): Rename cover_class to aclass.  Rename
16979         cover_class_cost and updated_cover_class_cost to class_cost and
16980         updated_class_cost.  Remove splay_removed_p and
16981         left_conflict_size.  Add new members colorable_p.
16982         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
16983         (ALLOCNO_COLORABLE_P): New macro.
16984         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
16985         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
16986         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
16987         (OBJECT_...): Rename parameter C to O.
16988         (OBJECT_PROFITABLE_HARD_REGS): New macro.
16989         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
16990         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
16991         (struct target_ira_int): New members x_ira_max_memory_move_cost,
16992         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
16993         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
16994         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
16995         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
16996         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
16997         x_ira_reg_class_subunion.
16998         (ira_max_memory_move_cost, ira_max_register_move_cost)
16999         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
17000         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
17001         (ira_important_class_nums, ira_reg_class_superunion): New macros.
17002         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
17003         (ira_reg_class_union): Rename to ira_reg_class_subunion.
17004         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
17005         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
17006         (ira_tune_allocno_costs_and_cover_classes): Rename to
17007         ira_tune_allocno_costs.
17008         (ira_debug_hard_regs_forest): New.
17009         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
17010         (ira_object_conflict_iter_next): Fix comments.
17011         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
17012         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
17013         cover_class to aclass.
17014         (ira_allocate_and_accumulate_costs): Ditto.
17015         (ira_allocate_and_set_or_copy_costs): Ditto.
17016
17017         * opts.c (decode_options): Remove ira_cover_class check.
17018
17019         * ira-color.c: Remove mentioning cover classes from the file.  Use
17020         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
17021         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
17022         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
17023         (splay-tree.h): Remove include.
17024         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
17025         before copy_freq_compare_func.
17026         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
17027         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
17028         New definitions.
17029         (hard_regs_roots, hard_regs_node_vec): Ditto.
17030         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
17031         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
17032         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
17033         (create_new_object_hard_regs_node): Ditto.
17034         (add_new_object_hard_regs_node_to_forest): Ditto.
17035         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
17036         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
17037         Ditto.
17038         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
17039         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
17040         (remove_unused_object_hard_regs_nodes): Ditto.
17041         (enumerate_object_hard_regs_nodes): Ditto.
17042         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
17043         (object_hard_regs_subnode_t): Ditto.
17044         (struct object_hard_regs_subnode): Ditto.
17045         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
17046         (setup_object_hard_regs_subnode_index): Ditto.
17047         (get_object_hard_regs_subnodes_num): Ditto.
17048         (form_object_hard_regs_nodes_forest): Ditto.
17049         (finish_object_hard_regs_nodes_tree): Ditto.
17050         (finish_object_hard_regs_nodes_forest): Ditto.
17051         (allocnos_have_intersected_live_ranges_p): Rename to
17052         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
17053         (pseudos_have_intersected_live_ranges_p): Rename to
17054         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
17055         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
17056         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
17057         (update_copy_costs): Remove assert.  Skip cost update if the hard
17058         reg does not belong the class.
17059         (assign_hard_reg): Process only profitable hard regs.
17060         (uncolorable_allocnos_num): Make it scalar.
17061         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
17062         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
17063         and ira_reg_class_max_nregs.
17064         (bucket_allocno_compare_func): Check frequency first.
17065         (sort_bucket): Add compare function as a parameter.
17066         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
17067         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
17068         (push_allocno_to_stack): Rewrite for checking new allocno
17069         colorability.
17070         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
17071         (push_only_colorable): Pass new parameter to sort_bucket.
17072         (push_allocno_to_spill): Remove.
17073         (allocno_spill_priority_compare): Make it inline and rewrite.
17074         (splay_tree_allocate, splay_tree_free): Remove.
17075         (allocno_spill_sort_compare): New function.
17076         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
17077         build and use splay tree.  Choose first allocno in uncolorable
17078         allocno bucket to spill.  Remove setting spill cost.
17079         (all_conflicting_hard_regs): Remove.
17080         (setup_allocno_available_regs_num): Check only profitable hard
17081         regs.  Print info about hard regs nodes.
17082         (setup_allocno_left_conflicts_size): Remove.
17083         (put_allocno_into_bucket): Don't call
17084         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
17085         (improve_allocation): New.
17086         (color_allocnos): Call setup_profitable_hard_regs,
17087         form_object_hard_regs_nodes_forest, improve_allocation,
17088         finish_object_hard_regs_nodes_forest.  Setup spill cost.
17089         (print_loop_title): Use pressure classes.
17090         (color_allocnso): Ditto.
17091         (do_coloring): Remove allocation and freeing splay_tree_node_pool
17092         and allocnos_for_spilling.
17093         (ira_sort_regnos_for_alter_reg): Don't setup members
17094         {first,next}_coalesced_allocno.
17095         (color): Remove allocating and freeing removed_splay_allocno_vec.
17096         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
17097         prohibited_class_mode_regs.
17098
17099         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
17100         formatting.
17101         (update_allocno_pressure_excess_length): Use pressure classes.
17102         (inc_register_pressure, dec_register_pressure): Check for pressure
17103         class.
17104         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
17105         pressure class.  Use ira_reg_class_nregs instead of
17106         ira_reg_class_max_nregs.
17107         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
17108         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
17109         (single_reg_class): Use ira_reg_class_nregs instead of
17110         ira_reg_class_max_nregs.
17111         (process_bb_node_lives): Use pressure classes.
17112
17113         * ira-emit.c: Remove mentioning cover classes from the file.  Use
17114         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
17115         (change_loop): Use pressure classes.
17116         (modify_move_list): Call ira_set_allocno_class instead of
17117         ira_set_allocno_cover_class.
17118
17119         * ira-build.c: Remove mentioning cover classes from the file.  Use
17120         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
17121         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
17122         ALLOCNO_UPDATED_CLASS_COST instead of
17123         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
17124         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
17125         (ira_create_allocno): Remove initialization of
17126         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
17127         ALLOCNO_COLORABLE_P.
17128         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
17129         Update conflict regs for the objects.
17130         (create_cap_allocno): Remove assert.  Don't propagate
17131         ALLOCNO_AVAILABLE_REGS_NUM.
17132         (ira_free_allocno_costs): New function.
17133         (finish_allocno): Change a part of code into call of
17134         ira_free_allocno_costs.
17135         (low_pressure_loop_node_p): Use pressure classes.
17136         (object_range_compare_func): Don't compare classes.
17137         (setup_min_max_conflict_allocno_ids): Ditto.
17138
17139         * loop-invariant.c: Remove mentioning cover classes from the file.
17140         Use ira_pressure_classes and ira_pressure_classes_num instead of
17141         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
17142         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
17143         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
17144         Use reg_allocno_class instead of reg_cover_class.
17145         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
17146         STACK_REG_COVER_CLASS.
17147         (get_regno_cover_class): Rename to get_regno_pressure_class.
17148         (move_loop_invariants): Initialize and finalize regstat.
17149
17150         * ira.c: Remove mentioning cover classes from the file.  Add
17151         comments about coloring without cover classes.  Use ALLOCNO_CLASS
17152         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
17153         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
17154         setup_class_subset_and_memory_move_costs.
17155         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
17156         (setup_cover_and_important_classes): Rename to
17157         setup_allocno_and_important_classes.
17158         (setup_class_translate_array): New.
17159         (setup_class_translate): Call it for allocno and pressure classes.
17160         (cover_class_order): Rename to allocno_class_order.
17161         (comp_reg_classes_func): Use ira_allocno_class_translate instead
17162         of ira_class_translate.
17163         (reorder_important_classes): Set up ira_important_class_nums.
17164         (setup_reg_class_relations): Set up ira_reg_class_superunion.
17165         (print_class_cover): Rename to print_classes.  Add parameter.
17166         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
17167         Print pressure classes too.
17168         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
17169         setup_reg_subclasses.
17170         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
17171         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
17172         (setup_prohibited_class_mode_regs): Use
17173         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
17174         (clarify_prohibited_class_mode_regs): New function.
17175         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
17176         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
17177         (ira_init_once): Initialize them.
17178         (free_register_move_costs): Process them.
17179         (ira_init): Move calls of find_reg_classes and
17180         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
17181         Call clarify_prohibited_class_mode_regs.
17182         (ira_no_alloc_reg): Remove.
17183         (too_high_register_pressure_p): Use pressure classes.
17184
17185         * sched-deps.c: Remove mentioning cover classes from the file.
17186         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
17187         ira_pressure_classes and ira_pressure_classes_num instead of
17188         ira_reg_class_cover_size and ira_reg_class_cover.
17189         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
17190         sched_regno_pressure_class instead of sched_regno_cover_class.
17191         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
17192         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
17193
17194         * ira.h: Add 2010 to Copyright.
17195         (ira_no_alloc_reg): Remove external.
17196         (struct target_ira): Rename x_ira_hard_regno_cover_class,
17197         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
17198         x_ira_class_translate to x_ira_hard_regno_allocno_class,
17199         x_ira_allocno_classes_num, x_ira_allocno_classes, and
17200         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
17201         x_ira_pressure_classes, x_ira_pressure_class_translate, and
17202         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
17203         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
17204         x_ira_no_alloc_regs.
17205         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
17206         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
17207         ira_allocno_classes_num and ira_allocno_classes.
17208         (ira_class_translate): Rename to ira_allocno_class_translate.
17209         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
17210         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
17211         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
17212         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
17213         (ira_no_alloc_regs): New.
17214
17215         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
17216         classes from the file.  Use ALLOCNO_CLASS instead of
17217         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
17218         ALLOCNO_COVER_CLASS_COST.
17219         (regno_cover_class): Rename to regno_aclass.
17220         (record_reg_classes): Use ira_reg_class_subunion instead of
17221         ira_reg_class_union.
17222         (record_address_regs): Check overflow.
17223         (scan_one_insn): Ditto.
17224         (print_allocno_costs): Print total mem cost fore regional allocation.
17225         (print_pseudo_costs): Use REG_N_REFS.
17226         (find_costs_and_classes): Use classes intersected with them on the
17227         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
17228         ira_reg_class_union.  Use ira_allocno_class_translate and
17229         regno_aclass instead of ira_class_translate and regno_cover_class.
17230         Modify code for finding regno_aclass.  Setup preferred classes for
17231         the next pass.
17232         (setup_allocno_cover_class_and_costs): Rename to
17233         setup_allocno_class_and_costs.  Use regno_aclass instead of
17234         regno_cover_class.  Use ira_set_allocno_class instead of
17235         ira_set_allocno_cover_class.
17236         (init_costs, finish_costs): Use regno_aclass instead of
17237         regno_cover_class.
17238         (ira_costs): Use setup_allocno_class_and_costs instead of
17239         setup_allocno_cover_class_and_costs.
17240         (ira_tune_allocno_costs_and_cover_classes): Rename to
17241         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
17242         by processing objects.  Use ira_reg_class_max_nregs instead of
17243         ira_reg_class_nregs.
17244
17245         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
17246
17247         * sched-int.h: Remove mentioning cover classes from the file.
17248         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
17249
17250         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
17251         classes from the file.
17252         (struct reg_pref): Rename coverclass into allocnoclass.
17253         (reg_cover_class): Rename to reg_allocno_class.
17254
17255         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
17256
17257         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
17258
17259         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
17260
17261         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
17262
17263         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
17264
17265         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
17266
17267         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
17268
17269         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
17270
17271         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
17272
17273         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
17274
17275         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
17276         (i386_ira_cover_classes): Ditto.
17277
17278         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
17279
17280         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
17281
17282         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
17283
17284         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
17285
17286         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
17287
17288         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
17289
17290         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
17291         (mips_ira_cover_classes): Ditto.
17292
17293         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
17294
17295         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
17296
17297         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
17298
17299         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
17300
17301         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
17302
17303         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
17304         (IRA_COVER_CLASSES_VSX): Ditto.
17305
17306         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
17307         (rs6000_ira_cover_classes): Ditto.
17308
17309         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
17310
17311         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
17312
17313         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
17314
17315         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
17316
17317         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
17318
17319         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
17320
17321         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
17322
17323         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
17324
17325         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
17326
17327         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
17328
17329 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
17330
17331         PR debug/48253
17332         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
17333         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
17334         dw_fde_unlikely_section_end_label, cold_in_std_section,
17335         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
17336         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
17337         fields.
17338         (output_fde): Use dw_fde_second_{begin,end} if second is
17339         true, otherwise dw_fde_{begin,end}.
17340         (output_call_frame_info): Test dw_fde_second_begin != NULL
17341         instead of dw_fde_switched_sections.
17342         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
17343         fields, initialize new fields.  Initialize in_std_section
17344         unconditionally from the first partition.
17345         (dwarf2out_end_epilogue): Don't override dw_fde_end when
17346         dw_fde_second_begin is non-NULL.
17347         (dwarf2out_switch_text_section): Stop initializing removed
17348         dw_fde_struct fields, initialize new fields, initialize
17349         also dw_fde_end here.  Set dw_fde_switch_cfi even when
17350         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
17351         (struct var_loc_list_def): Add last_before_switch field.
17352         (arange_table, arange_table_allocated, arange_table_in_use,
17353         ARANGE_TABLE_INCREMENT, add_arange): Removed.
17354         (size_of_aranges): Count !in_std_section and !second_in_std_section
17355         hunks in fdes, instead of looking at arange_table_in_use.
17356         (output_aranges): Add aranges_length argument, don't call
17357         size_of_aranges here.  Instead of using aranges_table*
17358         emit ranges for fdes when !in_std_section resp.
17359         !second_in_std_section.
17360         (dw_loc_list): Break ranges crossing section switch.
17361         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
17362         use dw_fde_second_end instead of dw_fde_end as end of last range.
17363         (gen_subprogram_die): Don't call add_arange.  Use
17364         dw_fde_{begin,end} for first partition and if switched
17365         section dw_fde_second_{begin,end} for the second.
17366         (var_location_switch_text_section_1,
17367         var_location_switch_text_section): New functions.
17368         (dwarf2out_begin_function): Initialize cold_text_section even
17369         when function_section () isn't text_section.
17370         (prune_unused_types): Don't walk arange_table.
17371         (dwarf2out_finish): Don't needlessly test
17372         flag_reorder_blocks_and_partition when testing cold_text_section_used.
17373         If info_section_emitted, call size_of_aranges and if it indicates
17374         non-empty .debug_aranges, call output_aranges with the computed
17375         size.  Stop using removed dw_fde_struct fields, use
17376         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
17377         for second.
17378
17379         PR debug/48203
17380         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
17381         create ENTRY_VALUE if incoming or address of incoming's MEM
17382         is a hard REG.
17383         * dwarf2out.c (mem_loc_descriptor): Don't emit
17384         DW_OP_GNU_entry_value of DW_OP_fbreg.
17385         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
17386         on ENTRY_VALUE is able to find the canonical parameter VALUE.
17387         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
17388         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
17389         ENTRY_VALUE_EXPs.
17390         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
17391         is a REG_P or MEM_P with REG_P address, compute hash directly
17392         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
17393         (preserve_only_constants): Don't clear VALUES forwaring
17394         ENTRY_VALUE to some other VALUE.
17395
17396 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
17397
17398         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
17399         instead of GEN_INT.
17400
17401 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
17402
17403         * cfgexpand.c (expand_gimple_cond): Always set the source location and
17404         block before expanding the statement.
17405         (expand_gimple_stmt_1): Likewise.  Set them here...
17406         (expand_gimple_stmt): ...and not here.  Tidy.
17407         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
17408         unknown.
17409
17410 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
17411
17412         * Makefile.in: New rule for cprop.o.
17413         * gcse.c: Move constant/copy propagation to cprop.c.
17414         (compute_local_properties): Only handle expression tables.
17415         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
17416         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
17417         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
17418         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
17419         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
17420         compute_cprop_data, find_used_regs, try_replace_reg,
17421         find_avail_set, cprop_jump, constprop_register, cprop_insn,
17422         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
17423         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
17424         find_bypass_set, reg_killed_on_edge, bypass_block,
17425         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
17426         execute_rtl_cprop, pass_rtl_cprop): Move to...
17427         * cprop.c: ...here.  New file, constant/copy propagation for RTL
17428         moved from gcse.c to here with minor cleanups in duplicated code.
17429
17430 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
17431
17432         * config/i386/i386.c (flag_opts): Fix a typo in
17433         -mavx256-split-unaligned-store.
17434
17435 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
17436
17437         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
17438         LIBCALL_VALUE): Remove macros.
17439         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
17440         TARGET_FUNCTION_VALUE_REGNO_P): Define.
17441         (h8300_function_value, h8300_libcall_value,
17442         h8300_function_value_regno_p): New functions.
17443
17444 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
17445
17446         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
17447
17448 2011-03-28  Jeff Law  <law@redhat.com>
17449
17450         * tree-ssa-threadupdate.c (redirect_edges): Call
17451         create_edge_and_update_destination_phis as needed.
17452         (create_edge_and_update_destination_phis): Accept new BB argument.
17453         All callers updated.
17454         (thread_block): Do not update the profile when threading around
17455         intermediate blocks.
17456         (thread_single_edge): Likewise.
17457         (determine_bb_domination_status): If BB is not a successor of the
17458         loop header, return NONDOMINATING.
17459         (register_jump_thread): Note when we register a jump thread around
17460         an intermediate block.
17461         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
17462         (thread_across_edge): Use it.
17463
17464 2011-03-28  Tristan Gingold  <gingold@adacore.com>
17465
17466         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
17467         when for_return is 2.
17468
17469 2011-03-28  Jeff Law  <law@redhat.com>
17470
17471         * var-tracking.c (canonicalize_values_mark): Delete unused
17472         lhs assignment.
17473         (canonicalize_values_star, set_variable_part): Likewise.
17474         (clobber_variable_part, delete_variable_part): Likewise.
17475
17476 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
17477
17478         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
17479
17480 2011-03-28  Martin Jambor  <mjambor@suse.cz>
17481
17482         * tree-inline.c (expand_call_inline): Do not check that destination
17483         node is analyzed.
17484         (optimize_inline_calls): Assert that destination node is analyzed.
17485         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
17486         not call tree_lowering_passes.
17487         * cgraph.h (cgraph_analyze_function): Declare.
17488         * cgraphunit.c (cgraph_analyze_function): Make public.
17489
17490 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
17491
17492         * config/sparc/sparc-opts.h: New.
17493         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
17494         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
17495         (sparc_option_override): Store processor_type enumeration rather
17496         than string in cpu_default.  Remove name and enumeration from
17497         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
17498         without using sparc_select.  Use target_flags_explicit instead of
17499         fpu_option_set.
17500         * config/sparc/sparc.h (enum processor_type): Move to
17501         sparc-opts.h.
17502         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
17503         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
17504         HeaderInclude entry.
17505         (mcpu=, mtune=): Use Var and Enum.
17506         (sparc_processor_type): New Enum and EnumValue entries.
17507
17508 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17509             Iain Sandoe  <iains@gcc.gnu.org>
17510
17511         PR target/48245
17512         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
17513
17514 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
17515
17516         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
17517         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
17518         Insert new statements at it in lieu of STMT.
17519         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
17520         * tree-vect-stmts.c (vectorizable_store): Likewise.
17521         (vectorizable_load): Likewise.
17522
17523 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
17524
17525         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
17526         (divtf3): Ditto.
17527         (multf3): Ditto.
17528         (subtf3): Ditto.
17529
17530 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
17531
17532         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
17533         unaligned 256bit load/store.
17534         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
17535         (*avx_movdqu<avxmodesuffix>): Likewise.
17536
17537 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17538
17539         PR target/48288
17540         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
17541         * config/pa/pa.md (iordi3): Use new predicate in expander.
17542         (iorsi3): Likewise.
17543
17544 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
17545
17546         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
17547         FUNCTION_VALUE_REGNO_P): Remove macros.
17548         * config/mips/mips-protos.h (mips_function_value): Remove.
17549         * config/mips/mips.c (mips_function_value): Rename to...
17550         (mips_function_value_1): ... this. Make static.  Handle receiving
17551         the function type in 'fn_decl_or_type' argument.
17552         (mips_function_value, mips_libcall_value,
17553         mips_function_value_regno_p): New function.
17554         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
17555         TARGET_FUNCTION_VALUE_REGNO_P): Define.
17556
17557 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
17558
17559         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
17560         and -mavx256-split-unaligned-store.
17561         (ix86_option_override_internal): Split 32-byte AVX unaligned
17562         load/store by default.
17563         (ix86_avx256_split_vector_move_misalign): New.
17564         (ix86_expand_vector_move_misalign): Use it.
17565
17566         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
17567         -mavx256-split-unaligned-store.
17568
17569         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
17570         256bit load/store.  Generate unaligned store on misaligned memory
17571         operand.
17572         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
17573         256bit load/store.
17574         (*avx_movdqu<avxmodesuffix>): Likewise.
17575
17576         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
17577         -mavx256-split-unaligned-store.
17578
17579 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
17580
17581         PR target/38598
17582         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
17583         Update commentary.
17584
17585 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
17586
17587         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
17588         opno arguments with an expand_operand.  Use create_input_operand.
17589         (mips_prepare_builtin_target): Delete.
17590         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
17591         functions.
17592         (mips_expand_builtin_direct): Use create_output_operand and
17593         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
17594         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
17595         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
17596
17597 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
17598
17599         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
17600         function.
17601         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
17602
17603 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
17604
17605         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
17606         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
17607         basic blocks and call commit_edge_insertions directly.
17608         (fixup_abnormal_edges): Move from here to...
17609         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
17610         on the edges and return whether some have actually been inserted.
17611         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
17612         compensation code.
17613
17614 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
17615
17616         PR rtl-optimization/48144
17617         * sel-sched-ir.c (merge_history_vect): Factor out from ...
17618         (merge_expr_data): ... here.
17619         (av_set_intersect): Rename to av_set_code_motion_filter.
17620         Update all callers.  Call merge_history_vect when an expression
17621         is found in both sets.
17622         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
17623
17624 2011-03-26  Alan Modra  <amodra@gmail.com>
17625
17626         * config/rs6000/predicates.md (word_offset_memref_op): Handle
17627         cmodel medium addresses.
17628         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
17629         64-bit gpr loads and stores.
17630         (rs6000_secondary_reload_ppc64): New function.
17631         * config/rs6000/rs6000-protos.h: Declare it.
17632         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
17633
17634 2011-03-26  Alan Modra  <amodra@gmail.com>
17635
17636         PR target/47487
17637         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
17638         GNU Go in traceback table.
17639
17640 2011-03-25  Richard Henderson  <rth@redhat.com>
17641
17642         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
17643         if there are exactly 6 operands.
17644         (set_storage_via_setmem): Similarly.
17645
17646 2011-03-25  Kai Tietz  <ktietz@redhat.com>
17647
17648         * collect2.c (write_c_file_stat): Handle backslash
17649         as right-hand directory separator.
17650         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
17651         checking just for slash.
17652         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
17653         instead of checking for trailing slash.
17654         * gcc.c (record_temp_file): Use filename_cmp instead
17655         of strcmp.
17656         (do_spec_1): Likewise.
17657         (replace_outfile_spec_function): Likewise.
17658         (is_directory): Use filename_ncmp instead of strncmp.
17659         (print_multilib_info): Likewise.
17660         * gcov.c (find_source): Use filename_cmp instead
17661         instead of strcmp.
17662         (make_gcov_file_name): Fix order of slash/backslash
17663         checks.
17664         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
17665         (add_standard_paths): Likewise.
17666         * mips-tfile.c (saber_stop): Handle backslash.
17667         * prefix.c (update_path): Use filename_ncmp instead of
17668         strncmp.
17669         * profile.c (output_location): Use filename_cmp instead
17670         of strcmp.
17671         * read-md.c (handle_toplevel_file): Handle backslash.
17672         * tlink.c (frob_extension):  Likewise.
17673         * tree-cfg.c (same_line_p): Use filename_cmp instead of
17674         strcmp.
17675         * tree-dump.c (dequeue_and_dump): Handle backslash.
17676         * tree.c (get_file_function_name): Likewise.
17677         * gengtype.c (read_input_list): Likewise.
17678         (get_file_realbasename): Likewise.
17679         (get_output_file_with_visibility): Use filename_cmp
17680         instead of strcmp.
17681
17682 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
17683
17684         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
17685         case to VFPv1.
17686
17687 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
17688
17689         * fold-const.c (expr_location_or): New function.
17690         (fold_truth_not_expr): Call it.
17691
17692 2011-03-25  Jeff Law  <law@redhat.com>
17693
17694         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
17695         va_end.
17696         * c-family/c-common.c (def_fn_type): Likewise.
17697         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
17698         * emit-rtl.c (gen_rtvec): Likewise.
17699         * lto/lto-lang.c (def_fn_type): Likewise.
17700
17701 2011-03-25  Richard Guenther  <rguenther@suse.de>
17702
17703         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
17704         also generate copies.
17705         (fini_copy_prop): Handle constant values properly.
17706
17707 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
17708
17709         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
17710         mode size instead of bitsize with DWARF2_ADDR_SIZE.
17711         (hash_loc_operands, compare_loc_operands): Handle
17712         DW_OP_GNU_entry_value.
17713
17714 2011-03-25  Kai Tietz  <ktietz@redhat.com>
17715
17716         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
17717         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
17718         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
17719         comment and use macro TARGET_64BIT_MS_ABI instead.
17720         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
17721         and change default behavior for 32-bit MS_ABI.
17722         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
17723         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
17724         32-bit, too.
17725         (ix86_cfun_abi): Likewise.
17726         (ix86_maybe_switch_abi): Adjust comment.
17727         (init_cumulative_args): Check for bit-ness in MS_ABI case.
17728         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
17729         instead of checking for SYSV_ABI.
17730         (ix86_nsaved_sseregs): Likewise.
17731         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
17732         to 16 bytes.
17733         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
17734         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
17735         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
17736         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
17737         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
17738
17739 2011-03-25  Richard Guenther  <rguenther@suse.de>
17740
17741         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
17742         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
17743         (verify_gimple): Remove.
17744         * tree-cfg.c (verify_gimple_call): Merge verification
17745         from verify_stmts.
17746         (verify_gimple_phi): Merge verification from verify_stmts.
17747         (verify_gimple_label): New function.
17748         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
17749         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
17750         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
17751         (verify_stmts): Rename to verify_gimple_in_cfg.
17752         (verify_gimple_in_cfg): New function.
17753         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
17754         * tree-ssa.c (verify_ssa): Likewise.
17755         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
17756
17757 2011-03-25  Richard Guenther  <rguenther@suse.de>
17758
17759         * passes.c (init_optimization_passes): Add FRE pass after
17760         early SRA.
17761
17762 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
17763             Andrew Stubbs  <ams@codesourcery.com>
17764
17765         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
17766         for Cortex-A8.
17767         (arm_movdi_vfp_cortexa8): New pattern.
17768         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
17769         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
17770         instructions when tuning for Cortex-A8.  Set attribute "arch".
17771         * config/arm/arm.md: Move include arm-tune.md up a bit.
17772         (define_attr "arch"): Add "onlya8" and "nota8" values.
17773         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
17774
17775 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
17776
17777         PR bootstrap/48282
17778         Revert:
17779         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
17780
17781         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
17782         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
17783         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
17784         * passes.c (init_optimization_passes): Move
17785         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
17786
17787 2011-03-25  Kai Tietz  <ktietz@redhat.com>
17788
17789         * c-typeck.c (comptypes_internal): Replace target
17790         hook call of comp_type_attributes by version in tree.c file.
17791         * gimple.c (gimple_types_compatible_p_1): Likewise.
17792         * tree-ssa.c (useless_type_conversion_p): Likewise.
17793         * tree.c (build_type_attribute_qual_variant): Likewise.
17794         (attribute_value_equal): New static helper function.
17795         (comp_type_attributes): New function.
17796         (merge_attributes): Use attribute_value_equal for comparison.
17797         (attribute_list_contained): Likewise.
17798         * tree.h (comp_type_attributes): New prototype.
17799
17800 2011-03-25  Richard Guenther  <rguenther@suse.de>
17801
17802         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
17803         of complex types at -O0.
17804         (verify_gimple_assign_binary): Likewise.
17805         (verify_gimple_assign_ternary): Likewise.
17806
17807 2011-03-24  Mark Wielaard  <mjw@redhat.com>
17808
17809         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
17810         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
17811
17812 2011-03-24  Mark Wielaard  <mjw@redhat.com>
17813
17814         PR debug/48041
17815         * dwarf2out.c (output_abbrev_section): Only write table when
17816         abbrev_die_table_in_use > 1.
17817
17818 2011-02-24  Richard Henderson  <rth@redhat.com>
17819
17820         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
17821         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
17822         (alpha_expand_unaligned_load_words): Use extql.
17823         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
17824         (emit_insxl): Handle all modes for consistency.
17825
17826 2011-02-24  Richard Henderson  <rth@redhat.com>
17827
17828         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
17829         (alpha_expand_unaligned_load): Likewise.
17830         (alpha_expand_unaligned_store): Likewise.
17831         (alpha_expand_unaligned_load_words): Likewise.
17832         (alpha_expand_unaligned_store_words): Likewise.
17833         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
17834         (alpha_split_lock_test_and_set_12): Likewise.
17835         (print_operand, alpha_fold_builtin_extxx): Likewise.
17836         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
17837         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
17838         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
17839         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
17840         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
17841         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
17842         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
17843         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
17844         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
17845         (extwl, extll, extql): Similarly.
17846         (inswh, inslh, insqh): Similarly.
17847         (mskbl, mskwl, mskll, mskql): Similarly.
17848         (mskwh, msklh, mskqh): Similarly.
17849
17850 2011-02-24  Richard Henderson  <rth@redhat.com>
17851
17852         * config/alpha/alpha.md (attribute isa): Add er, ner.
17853         (attribute enabled): Handle them.
17854         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
17855
17856 2011-02-24  Richard Henderson  <rth@redhat.com>
17857
17858         * config/alpha/alpha.md (attribute isa): Add vms.
17859         (attribute enabled): Handle it.
17860         (*movsf): Merge *movsf_{nofix,fix,nofp}.
17861         (*movdf): Merge *movdf_{nofix,fix,nofp}.
17862         (*movtf): Rename from *movtf_internal for consistency.
17863         (*movsi): Merge with *movsi_nt_vms.
17864         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
17865         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
17866         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
17867         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
17868
17869 2011-02-24  Richard Henderson  <rth@redhat.com>
17870
17871         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
17872         (extendqisi2, extendhisi2): Likewise.
17873         (extendqidi2): Simplify BWX/non-BWX expansions.
17874         (extendhidi2): Similarly.
17875
17876 2011-02-24  Richard Henderson  <rth@redhat.com>
17877
17878         * config/alpha/alpha.md (attribute isa): New.
17879         (attribute enabled): New.
17880         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
17881         (zero_extendqisi2, zero_extendqidi2): Similarly.
17882         (zero_extendhisi2, zero_extendhidi2): Similarly.
17883         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
17884
17885 2011-02-24  Richard Henderson  <rth@redhat.com>
17886
17887         * config/alpha/predicates.md (input_operand): Revert last change;
17888         update comment to mention 32-bit VMS rather than Windows.
17889
17890 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
17891
17892         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
17893         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
17894         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
17895         * passes.c (init_optimization_passes): Move
17896         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
17897
17898 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
17899
17900         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
17901
17902 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
17903
17904         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
17905         correctly.
17906
17907 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
17908
17909         PR debug/48204
17910         * simplify-rtx.c (simplify_const_unary_operation): Call
17911         real_convert when changing mode class with FLOAT_EXTEND.
17912
17913 2011-03-24  Nick Clifton  <nickc@redhat.com>
17914
17915         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
17916         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
17917         * config/rx/rx.c (rx_option_override): Set align_jumps,
17918         align_loops and align_labels if not set by the user.
17919         (rx_align_for_label): New function.
17920         (rx_max_skip_for_label): New function.
17921         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
17922         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
17923         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
17924         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
17925         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
17926
17927 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
17928
17929         PR rtl-optimization/48263
17930         * optabs.c (expand_binop_directly): Reinstate convert_modes code
17931         and original commutative_p handling.  Use maybe_gen_insn.
17932
17933 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17934
17935         * reload.c (find_reloads_subreg_address): Add address_reloaded
17936         parameter and return true there if the full address has been
17937         reloaded.
17938         (find_reloads_toplev): Pass address_reloaded flag.
17939         (find_reloads_address_1): Don't use address_reloaded parameter.
17940
17941 2011-03-24  Jeff Law  <law@redhat.com>
17942
17943         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
17944         unused variable "ann".
17945         (remove_unused_locals): Likewise.
17946
17947         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
17948         statement.
17949
17950         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
17951         after it is freed.
17952
17953 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17954
17955         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
17956         for invalid symbolic addresses.
17957         (s390_secondary_reload): Don't use s390_check_symref_alignment for
17958         larl operands.
17959
17960 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
17961
17962         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
17963         the argument in calls to fold_truth_not_expr.
17964
17965 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
17966
17967         * tree.c (record_node_allocation_statistics): New function.
17968         (make_node_stat, copy_node_stat, build_string): Call it.
17969         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
17970         (build1_stat, build_omp_clause): Likewise.
17971
17972 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
17973
17974         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
17975         last commit.
17976
17977 2011-03-24  Richard Guenther  <rguenther@suse.de>
17978
17979         PR tree-optimization/48271
17980         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
17981         blocks that still exist.
17982
17983 2011-03-24  Richard Guenther  <rguenther@suse.de>
17984
17985         PR tree-optimization/48270
17986         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
17987         not free datarefs before ddrs.
17988
17989 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
17990
17991         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
17992         from the address built for a reference with variable offset.
17993
17994 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
17995
17996         PR target/48237
17997         * config/i386/i386.md (*movdf_internal_rex64): Do not split
17998         alternatives that can be handled with movq or movabsq insn.
17999         (*movdf_internal): Disable for !TARGET_64BIT.
18000         (*movdf_internal_nointeger): Ditto.
18001         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
18002
18003 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
18004
18005         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
18006         (FUNCTION_ARG_ADVANCE): Likewise.
18007         * tm.texi.in: Change references to them to hook references.
18008         * tm.texi: Regenerate.
18009         * targhooks.c (default_function_arg): Eliminate check for target macro.
18010         (default_function_incoming_arg): Likewise.
18011         (default_function_arg_advance): Likewise.
18012         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
18013         (function_arg_advance): Likewise.
18014         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
18015
18016 2011-03-24  Richard Guenther  <rguenther@suse.de>
18017
18018         PR middle-end/48269
18019         * tree-object-size.c (addr_object_size): Do not double-account
18020         for MEM_REF offsets.
18021
18022 2011-03-24  Diego Novillo  <dnovillo@google.com>
18023
18024         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
18025         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
18026         (lto_input_data_block): Move from lto-opts.c.  Make extern.
18027         Update all users.
18028         (lto_input_string): Rename from input_string.  Make extern.
18029         Update all users.
18030         * lto-streamer-out.c (lto_output_string_with_length): Rename from
18031         output_string_with_length.
18032         Output 0 to indicate a non-NULL string.  Update all callers to
18033         not emit 0.
18034         (lto_output_string): Rename from output_string.  Make extern.
18035         Update all users.
18036         (lto_output_decl_state_streams): Make extern.
18037         (lto_output_decl_state_refs): Make extern.
18038         * lto-streamer.h (lto_input_string): Declare.
18039         (lto_input_data_block): Declare.
18040         (lto_output_string): Declare.
18041         (lto_output_string_with_length): Declare.
18042         (lto_output_decl_state_streams): Declare.
18043         (lto_output_decl_state_refs): Declare.
18044
18045 2011-03-24  Richard Guenther  <rguenther@suse.de>
18046
18047         PR tree-optimization/46562
18048         * tree.c (build_invariant_address): New function.
18049         * tree.h (build_invariant_address): Declare.
18050         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
18051         a renamed function moved ...
18052         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
18053         Take valueization callback parameter.
18054         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
18055         * gimple-fold.h: New file.
18056         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
18057         (ccp_fold, fold_const_aggregate_ref,
18058         fold_ctor_reference, fold_nonarray_ctor_reference,
18059         fold_array_ctor_reference, fold_string_cst_ctor_reference,
18060         get_base_constructor): Move ...
18061         * gimple-fold.c: ... here.
18062         (gimple_fold_stmt_to_constant_1): New function
18063         split out from ccp_fold.  Take a valueization callback parameter.
18064         Valueize all operands.
18065         (gimple_fold_stmt_to_constant): New wrapper function.
18066         (fold_const_aggregate_ref_1): New function split out from
18067         fold_const_aggregate_ref.  Take a valueization callback parameter.
18068         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
18069         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
18070         invariant POINTER_PLUS_EXPRs to invariant form.
18071         (vn_valueize): New function.
18072         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
18073         * tree-vrp.c (vrp_valueize): New function.
18074         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
18075         to fold statements to constants.
18076         * tree-ssa-pre.c (eliminate): Properly guard propagation of
18077         function declarations.
18078         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
18079         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
18080
18081 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
18082
18083         * config/h8300/predicates.md (jump_address_operand): Fix register
18084         mode check.
18085
18086 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
18087
18088         * doc/invoke.texi (max-stores-to-sink): Document.
18089         * params.h (MAX_STORES_TO_SINK): Define.
18090         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
18091         if either vectorization or if-conversion is disabled.
18092         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
18093         tree-vect-data-refs.c vect_equal_offsets.
18094         (dr_equal_offsets_p): New function.
18095         (find_data_references_in_bb): Remove static.
18096         * tree-data-ref.h (find_data_references_in_bb): Declare.
18097         (dr_equal_offsets_p): Likewise.
18098         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
18099         (vect_drs_dependent_in_basic_block): Update calls to
18100         vect_equal_offsets.
18101         (vect_check_interleaving): Likewise.
18102         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
18103         (cond_if_else_store_replacement): Rename to...
18104         (cond_if_else_store_replacement_1): ... this.  Change arguments and
18105         documentation.
18106         (cond_if_else_store_replacement): New function.
18107         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
18108         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
18109
18110 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
18111
18112         PR target/46934
18113         * config/arm/arm.md (casesi): Use the gen_int_mode() function
18114         to subtract lower bound instead of GEN_INT().
18115
18116 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
18117
18118         PR other/48179
18119         PR other/48221
18120         PR other/48234
18121         * doc/extend.texi (Alignment): Move section to match order in TOC.
18122         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
18123         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
18124
18125 2011-03-23  Jeff Law  <law@redhat.com>
18126
18127         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
18128         before removing the edge.
18129
18130         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
18131         it may have been freed by redirect_branch_edge or
18132         redirect_edge_succ_nodup.
18133
18134 2011-03-23  Richard Guenther  <rguenther@suse.de>
18135
18136         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
18137         (check_va_list_escapes): Likewise.
18138         (check_all_va_list_escapes): Likewise.
18139
18140 2011-03-23  Richard Guenther  <rguenther@suse.de>
18141
18142         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
18143         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
18144         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
18145         (alias.o): Likewise.
18146         (ipa-type-escape.o): Remove.
18147         (ipa-struct-reorg.o): Likewise.
18148         (GTFILES): Remove ipa-struct-reorg.c.
18149         * alias.c: Do not include ipa-type-escape.h.
18150         * tree-ssa-alias.c: Likewise.
18151         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
18152         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
18153         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
18154         and ipa-type-escape passes.
18155         * tree-pass.h (pass_ipa_type_escape): Remove.
18156         (pass_ipa_struct_reorg): Likewise.
18157         * ipa-struct-reorg.h: Remove.
18158         * ipa-struct-reorg.c: Likewise.
18159         * ipa-type-escape.h: Likewise.
18160         * ipa-type-escape.c: Likewise.
18161         * doc/invoke.texi (-fipa-struct-reorg): Remove.
18162         (--param struct-reorg-cold-struct-ratio): Likewise.
18163         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
18164         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
18165         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
18166
18167 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18168
18169         * config/s390/2084.md: Enable all insn reservations also for z9_ec
18170         cpu attribute value.
18171         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
18172         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
18173         * config/s390/s390.c (processor_flags_table): New constant array.
18174         (s390_handle_arch_option): Remove.
18175         (s390_handle_option): Remove s390_handle_arch_option invocations
18176         and OPT_mwarn_framesize_ handling.
18177         (s390_option_override): Remove s390_handle_arch_option invocation.
18178         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
18179         warnings.
18180         * config/s390/s390.md (cpu attribute): Add z9_ec value.
18181         * config/s390/s390.opt (s390_tune, s390_arch)
18182         (march=): Replace s390_arch_option enum and values with
18183         processor_type.  Set variable name to s390_arch.  Set
18184         initialization value.
18185         (mtune=): Replace s390_arch_option with processor_type.  Set
18186         variable name to s390_tune.  Set initialization value.
18187
18188 2011-03-23  Julian Brown  <julian@codesourcery.com>
18189
18190         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
18191         accesses which are not naturally aligned.
18192
18193 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
18194
18195         PR target/47553
18196         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
18197
18198 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
18199
18200         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
18201         parameter from "int" to "enum insn_code".
18202         (expand_operand_type): New enum.
18203         (expand_operand): New structure.
18204         (create_expand_operand): New function.
18205         (create_fixed_operand, create_output_operand): Likewise
18206         (create_input_operand, create_convert_operand_to): Likewise.
18207         (create_convert_operand_from, create_address_operand): Likewise.
18208         (create_integer_operand): Likewise.
18209         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
18210         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
18211         (expand_insn, expand_jump_insn): Likewise.
18212         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
18213         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
18214         (expand_movstr, expand_builtin___clear_cache): Likewise.
18215         (expand_builtin_lock_release): Likewise.
18216         * explow.c (allocate_dynamic_stack_space): Likewise.
18217         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
18218         and use the default handling in that case.
18219         * expmed.c (check_predicate_volatile_ok): Delete.
18220         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
18221         (emit_cstore): Likewise.
18222         * expr.c (emit_block_move_via_movmem): Likewise.
18223         (set_storage_via_setmem, expand_assignment): Likewise.
18224         (emit_storent_insn, try_casesi): Likewise.
18225         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
18226         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
18227         (expand_vec_shift_expr, expand_binop_directly): Likewise.
18228         (expand_twoval_unop, expand_twoval_binop): Likewise.
18229         (expand_unop_direct, emit_indirect_jump): Likewise.
18230         (emit_conditional_move, vector_compare_rtx): Likewise.
18231         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
18232         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
18233         (expand_sync_lock_test_and_set): Likewise.
18234         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
18235         (emit_unop_insn): Likewise.
18236         (expand_copysign_absneg): Change icode to an insn_code.
18237         (create_convert_operand_from_type): New function.
18238         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
18239         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
18240         (expand_insn, expand_jump_insn): Likewise.
18241         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
18242         than const_int_operand for operand 2.
18243
18244 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18245
18246         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
18247         if possible.
18248
18249 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
18250
18251         * emit-rtl.c (emit_pattern_before_noloc): New function.
18252         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
18253         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
18254         (emit_pattern_after_noloc): New function.
18255         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
18256         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
18257
18258 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
18259
18260         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
18261         (__ffsDI2): Likewise.
18262
18263 2011-03-22  Richard Henderson  <rth@redhat.com>
18264
18265         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
18266         of !TARGET_ABI_OPEN_VMS.
18267         (alpha_trampoline_init, alpha_start_function): Likewise.
18268         (alpha_expand_epilogue, alpha_file_start): Likewise.
18269         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
18270         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
18271         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
18272         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
18273         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
18274
18275 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
18276
18277         * config/s390/s390-opts.h: New.
18278         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
18279         s390_arch_flags, s390_warn_framesize, s390_stack_size,
18280         s390_stack_guard): Remove.
18281         (s390_handle_arch_option): Return void.  Take enum
18282         s390_arch_option value instead of string and searching array.
18283         (s390_handle_option): Don't assert that global structures are in
18284         use.  Access variables via opts pointer.  Use error_at.  Don't use
18285         sscanf for -mstack-guard= or -mstack-size=.  Update call to
18286         s390_handle_arch_option.
18287         (s390_option_override): Update call to s390_handle_arch_option.
18288         (s390_emit_prologue): Use %d format for s390_stack_size in
18289         diagnostic.  Use %wd for HOST_WIDE_INT.
18290         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
18291         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
18292         * config/s390/s390.opt (config/s390/s390-opts.h): New
18293         HeaderInclude entry.
18294         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
18295         s390_arch_flags, s390_warn_framesize): New Variable entries.
18296         (s390_arch_option): New Enum and EnumValue entries.
18297         (march=): Use Enum instead of Var.
18298         (mstack-guard=, mstack-size=): Use UInteger and Var.
18299         (mtune=): Use Enum.
18300
18301 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
18302
18303         * config/score/score.c (score_handle_option): Don't assert that
18304         global structures are in use.  Access target_flags via opts
18305         pointer.  Use value of -march= option to determine target_flags
18306         settings.
18307         * config/score/score.opt (march=): Use Enum.
18308         (score_arch): New Enum and EnumValue entries.
18309
18310 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
18311
18312         * config/mep/mep.c (option_mtiny_specified): Remove.
18313         (mep_option_override): Move register handling for -mivc2 from
18314         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
18315         instead of option_mtiny_specified.
18316         (mep_handle_option): Access target_flags via opts pointer.  Don't
18317         assert that global structures are in use.  Defer part of -mivc2
18318         handling and move it to mep_option_override.
18319         * config/mep/mep.opt (IVC2): New Mask entry.
18320         (mivc2): Use Var and Defer instead of Mask.
18321
18322 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
18323
18324         * config/v850/v850-opts.h: New.
18325         * config/v850/v850.c (small_memory): Replace with
18326         small_memory_physical_max array.  Make that array static const.
18327         (v850_handle_memory_option): Take integer value of argument.  Take
18328         gcc_options pointer, option text and location.  Return void.
18329         Update for changes to small memory structures.
18330         (v850_handle_option): Access target_flags via opts pointer.  Don't
18331         assert that global structures are in use.  Update calls to
18332         v850_handle_memory_option.
18333         (v850_encode_data_area): Update references to small memory settings.
18334         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
18335         (enum small_memory_type): Move to v850-opts.h.
18336         * config/v850/v850.opt (config/v850/v850-opts.h): New
18337         HeaderInclude entry.
18338         (small_memory_max): New Variable entry.
18339         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
18340         (mtda, mzda): Likewise.
18341
18342 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
18343
18344         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
18345         pointer.  Don't assert that global structures are in use.
18346
18347 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
18348
18349         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
18350         via opts pointer.  Don't assert that global structures are in use.
18351
18352 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
18353
18354         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
18355         (munix=93): Use Var.
18356         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
18357         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
18358         * config/pa/pa-opts.h: New.
18359         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
18360         (pa_handle_option): Don't assert that global structures are in
18361         use.  Access target_flags via opts pointer.  Don't handle
18362         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
18363         OPT_munix_98 here.
18364         (pa_option_override): Handle deferred OPT_mfixed_range_.
18365
18366 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
18367
18368         * config/mn10300/mn10300-opts.h: New.
18369         * config/mn10300/mn10300.c (mn10300_processor,
18370         mn10300_tune_string): Remove.
18371         (mn10300_handle_option): Don't assert that global structures are
18372         in use.  Access mn10300_processor via opts pointer.  Don't handle
18373         OPT_mtune_ here.
18374         * config/mn10300/mn10300.h (enum processor_type): Move to
18375         mn10300-opts.h.
18376         (mn10300_processor): Remove.
18377         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
18378         HeaderInclude entry.
18379         (mn10300_processor): New Variable entry.
18380         (mtune=): Use Var.
18381
18382 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
18383
18384         * config/microblaze/microblaze.c: Don't include opts.h.
18385         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
18386         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
18387         (mno-clearbss): Use Var and Warn.
18388
18389 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
18390
18391         * config/m32r/m32r-opts.h: New.
18392         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
18393         (m32r_handle_option): Don't assert that global structures are in
18394         use.  Access target_flags and m32r_cache_flush_func via opts
18395         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
18396         OPT_mno_flush_trap here.
18397         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
18398         include of m32r-opts.h.
18399         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
18400         HeaderInclude entry.
18401         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
18402         (mmodel=): Use Enum and Var.
18403         (m32r_model): New Enum and EnumValue entries.
18404         (mno-flush-trap): Use Var.
18405         (msdata=): Use Enum and Var.
18406         (m32r_sdata): New Enum and EnumValue entries.
18407
18408 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
18409
18410         * config/m32c/m32c.c: Don't include opts.h.
18411         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
18412         m32c_handle_option): Remove.
18413         (m32c_option_override): Check global_options_set.x_target_memregs
18414         instead of target_memregs_set.
18415         * config/m32c/m32c.h (target_memregs): Remove.
18416         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
18417         variable.
18418
18419 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
18420
18421         * config/iq2000/iq2000-opts.h: New.
18422         * config/iq2000/iq2000.c: Don't include opts.h.
18423         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
18424         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
18425         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
18426         HeaderInclude entry.
18427         (iq2000_tune): New Variable entry.
18428         (march=): Add comment.  Use Enum.
18429         (iq2000_arch): New Enum and EnumValue entries.
18430         (mcpu=): Use Enum and Var.
18431         (iq2000_tune): New Enum and EnumValue entries.
18432
18433 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
18434
18435         * config/ia64/ia64-opts.h: New.
18436         * config/ia64/ia64.c (ia64_tune): Remove.
18437         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
18438         here.  Use error_at.
18439         (ia64_option_override): Handle deferred OPT_mfixed_range_.
18440         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
18441         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
18442         HeaderInclude entry.
18443         (ia64_tune): New Variable entry.
18444         (mfixed-range=): Use Defer and Var.
18445         (mtune=): Use Enum and Var.
18446         (ia64_tune): New Enum and EnumValue entries.
18447
18448 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
18449
18450         * config/frv/frv-opts.h: New.
18451         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
18452         frv-opts.h.
18453         (frv_cpu_type): Remove.
18454         * config/frv/frv.c: Don't include opts.h.
18455         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
18456         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
18457         (frv_cpu_type): New Variable entry.
18458         (frv_cpu): New Enum and EnumValue entries.
18459
18460 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
18461
18462         * config/cris/cris.c (cris_handle_option): Access target_flags via
18463         opts pointer.  Don't assert that global structures are in use.
18464         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
18465         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
18466
18467 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
18468
18469         * config/bfin/bfin-opts.h: New.
18470         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
18471         bfin_si_revision, bfin_workarounds): Remove.
18472         (bfin_cpus): Make static const.
18473         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
18474         not bfin_lib_id_given.
18475         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
18476         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
18477         pointer. Use error_at.  Don't assert that global structures are in use.
18478         * config/bfin/bfin.h: Include bfin-opts.h.
18479         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
18480         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
18481         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
18482         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
18483         entries.
18484
18485 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
18486
18487         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
18488         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
18489         or -msoft-float here.
18490         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
18491         -msoft-float and -mhard-float.
18492         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
18493         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
18494         msoft-float.
18495         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
18496         -msoft-float.
18497         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
18498         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
18499         not mhard-float.
18500         (LIBGCC_SPEC): Don't handle -msoft-float.
18501         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
18502         -mhard-float.
18503         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
18504         msoft-float.
18505         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
18506         -mfloat-abi=*, not -msoft-float and -mhard-float.
18507         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
18508         -msoft-float.
18509         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
18510         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
18511         mhard-float and msoft-float.
18512         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
18513         mfloat-abi=soft in comments, not mhard-float and msoft-float.
18514         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
18515         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
18516         mhard-float.
18517         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
18518         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
18519         msoft-float.
18520         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
18521         not mhard-float.
18522         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
18523         not msoft-float.
18524
18525 2011-03-22  Richard Henderson  <rth@redhat.com>
18526
18527         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
18528         TARGET_ABI_WINDOWS_NT.
18529         (alpha_output_function_end_prologue): Likewise.
18530         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
18531         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
18532         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
18533         (trap, *movsi_nt_vms): Likewise.
18534         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
18535         (*tablejump_osf_nt_internal): Remove.
18536         * config/alpha/predicates.md (input_operand): Only test Pmode.
18537
18538 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
18539
18540         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
18541         via opts pointer.  Use error_at.  Don't assert that global
18542         structures are in use.
18543
18544 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
18545
18546         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
18547         (ix86_handle_option): Access ix86_isa_flags and
18548         ix86_isa_flags_explicit via opts pointer.  Don't assert that
18549         global structures are in use.
18550         (ix86_function_specific_save, ix86_function_specific_restore):
18551         Update ix86_isa_flags_explicit field name.
18552         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
18553         (ix86_isa_flags_explicit): Rename TargetSave entry to
18554         x_ix86_isa_flags_explicit.
18555
18556 2011-03-22  Richard Henderson  <rth@redhat.com>
18557
18558         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
18559         (alpha_option_override, direct_return): Likewise.
18560         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
18561         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
18562         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
18563         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
18564         (alpha_expand_epilogue, alpha_end_function): Likewise.
18565         (alpha_init_libfuncs): Likewise.
18566         (struct machine_function): Remove unicosmk members.
18567         (print_operand) ['t']: Remove.
18568         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
18569         unicosmk_output_module_name, unicosmk_output_common,
18570         current_section_align, unicosmk_output_text_section_asm_op,
18571         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
18572         unicosmk_section_type_flags, unicosmk_unique_section,
18573         unicosmk_asm_named_section, unicosmk_insert_attributes,
18574         unicosmk_output_align, unicosmk_defer_case_vector,
18575         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
18576         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
18577         unicosmk_output_ssib, unicosmk_add_call_info_word,
18578         unicosmk_extern_head, unicosmk_output_default_externs,
18579         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
18580         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
18581         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
18582         * config/alpha/alpha-protos.h: Update.
18583         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
18584         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
18585         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
18586         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
18587         (*mulsi_se, mulvsi3): Likewise.
18588         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
18589         (*divmodsi_internal, call, call_value, realign): Likewise.
18590         (moddi3, umoddi3): Likewise; remove duplicate expander.
18591         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
18592         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
18593         (*movdi_nofix): Remove r/U alternative.
18594         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
18595         * config/alpha/constraints.md ("U"): Remove.
18596         * config/alpha/predicates.md (call_operand"): Don't test
18597         TARGET_ABI_UNICOSMK.
18598
18599 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
18600
18601         * target.def (handle_option): Take gcc_options and
18602         cl_decoded_option pointers and location_t.
18603         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
18604         * doc/tm.texi: Regenerate.
18605         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
18606         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
18607         * lto-opts.c (lto_reissue_options): Generate option structure for
18608         targetm.handle_option call.
18609         * opts.c (target_handle_option): Update call to
18610         targetm.handle_option.  Remove assertions about values now passed
18611         down to hook.
18612         * targhooks.c (default_target_handle_option): New.
18613         * targhooks.h (default_target_handle_option): Declare.
18614         * config/alpha/alpha.c: Include opts.h.
18615         (alpha_handle_option): Update to new hook interface.
18616         * config/arm/arm.c: Include opts.h.
18617         (arm_handle_option): Update to new hook interface.
18618         * config/arm/t-arm (arm.o): Update dependencies.
18619         * config/bfin/bfin.c: Include opts.h.
18620         (bfin_handle_option): Update to new hook interface.
18621         * config/cris/cris.c: Include opts.h.
18622         (cris_handle_option): Update to new hook interface.
18623         * config/frv/frv.c: Include opts.h.
18624         (frv_handle_option): Update to new hook interface.
18625         * config/i386/i386.c: Include opts.h.
18626         (ix86_handle_option): Update to new hook interface.
18627         (ix86_valid_target_attribute_inner_p): Generate option structure
18628         for call to ix86_handle_option.
18629         * config/i386/t-i386 (i386.o): Update dependencies.
18630         * config/ia64/ia64.c: Include opts.h.
18631         (ia64_handle_option): Update to new hook interface.
18632         * config/ia64/t-ia64 (ia64.o): Update dependencies.
18633         * config/iq2000/iq2000.c: Include opts.h.
18634         (iq2000_handle_option): Update to new hook interface.
18635         * config/m32c/m32c.c: Include opts.h.
18636         (m32c_handle_option): Update to new hook interface.
18637         * config/m32r/m32r.c: Include opts.h.
18638         (m32r_handle_option): Update to new hook interface.
18639         * config/m68k/m68k.c: Include opts.h.
18640         (m68k_handle_option): Update to new hook interface.
18641         * config/mep/mep.c: Include opts.h.
18642         (mep_handle_option): Update to new hook interface.
18643         * config/microblaze/microblaze.c: Include opts.h.
18644         (microblaze_handle_option): Update to new hook interface.
18645         * config/mips/mips.c: Include opts.h.
18646         (mips_handle_option): Update to new hook interface.
18647         * config/mn10300/mn10300.c: Include opts.h.
18648         (mn10300_handle_option): Update to new hook interface.
18649         * config/pa/pa.c: Include opts.h.
18650         (pa_handle_option): Update to new hook interface.
18651         * config/pdp11/pdp11.c: Include opts.h.
18652         (pdp11_handle_option): Update to new hook interface.
18653         * config/rs6000/rs6000.c: Include opts.h.
18654         (rs6000_handle_option): Update to new hook interface.
18655         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
18656         * config/rx/rx.c: Include opts.h.
18657         (rx_handle_option): Update to new hook interface.
18658         * config/s390/s390.c: Include opts.h.
18659         (s390_handle_option): Update to new hook interface.
18660         * config/score/score.c: Include opts.h.
18661         (score_handle_option): Update to new hook interface.
18662         * config/sh/sh.c: Include opts.h.
18663         (sh_handle_option): Update to new hook interface.
18664         * config/sparc/sparc.c: Include opts.h.
18665         (sparc_handle_option): Update to new hook interface.
18666         * config/v850/v850.c: Include opts.h.
18667         (v850_handle_option): Update to new hook interface.
18668
18669 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
18670
18671         * gcc.c (driver_unknown_option_callback): Only permit and save
18672         unknown -Wno- options.
18673         (driver_wrong_lang_callback): Save options directly instead of via
18674         driver_unknown_option_callback.
18675
18676 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
18677
18678         * combine.c (simplify_set): Try harder to find the best CC mode when
18679         simplifying a nested COMPARE on the RHS.
18680
18681 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
18682
18683         * config/alpha/gnu.h: Remove.
18684         * config/arc: Remove directory.
18685         * config/arm/netbsd.h: Remove.
18686         * config/arm/t-pe: Remove.
18687         * config/crx: Remove directory.
18688         * config/i386/netbsd.h: Remove.
18689         * config/m68hc11: Remove directory.
18690         * config/m68k/uclinux-oldabi.h: Remove.
18691         * config/mcore/mcore-pe.h: Remove.
18692         * config/mcore/t-mcore-pe: Remove.
18693         * config/netbsd-aout.h: Remove.
18694         * config/rs6000/gnu.h: Remove.
18695         * config/sh/sh-symbian.h: Remove.
18696         * config/sh/symbian-base.c: Remove.
18697         * config/sh/symbian-c.c: Remove.
18698         * config/sh/symbian-cxx.c: Remove.
18699         * config/sh/symbian-post.h: Remove.
18700         * config/sh/symbian-pre.h: Remove.
18701         * config/sh/t-symbian: Remove.
18702         * config/svr3.h: Remove.
18703         * config/vax/netbsd.h: Remove.
18704         * config.build: Don't handle i[34567]86-*-pe.
18705         * config.gcc: Remove handling of deprecations for most deprecated
18706         targets.
18707         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
18708         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
18709         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
18710         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
18711         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
18712         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
18713         Remove cases.
18714         * config.host: Don't handle i[34567]86-*-pe.
18715         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
18716         (ASM_SPEC32): Don't handle -mcall-gnu.
18717         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
18718         -mcall-gnu.
18719         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
18720         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
18721         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
18722         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
18723         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
18724         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
18725         conditional on SYMBIAN.
18726         * configure.ac: Don't handle powerpc*-*-gnu*.
18727         * configure: Regenerate.
18728         * doc/extend.texi (interrupt attribute): Don't mention CRX.
18729         * doc/install-old.texi (m6811, m6812): Don't mention.
18730         * doc/install.texi (arc-*-elf*): Don't document multilib option.
18731         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
18732         (m68k-uclinuxoldabi): Don't mention.
18733         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
18734         Remove.
18735         (-mcall-gnu): Remove.
18736         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
18737         families): Remove constraint documentation.
18738
18739 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
18740
18741         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
18742         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
18743         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
18744
18745 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
18746
18747         PR target/48226
18748         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
18749         vector when peeking at the next token for vector, don't expand the
18750         keywords.
18751
18752 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
18753
18754         * config/avr/avr-protos.h (expand_epilogue): Change prototype
18755         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
18756         * config/avr/avr.c (init_cumulative_args)
18757         (avr_function_arg_advance): Use it.
18758         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
18759         sibcall epilogues.
18760         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
18761         (avr_function_ok_for_sibcall): ...this new function.
18762         (avr_lookup_function_attribute1): New static Function.
18763         (avr_naked_function_p, interrupt_function_p)
18764         (signal_function_p, avr_OS_task_function_p)
18765         (avr_OS_main_function_p): Use it.
18766         * config/avr/avr.md ("sibcall", "sibcall_value")
18767         ("sibcall_epilogue"): New expander.
18768         ("*call_insn", "*call_value_insn"): New insn.
18769         ("call_insn", "call_value_insn"): Remove
18770         ("call", "call_value", "epilogue"): Change expander to handle
18771         sibling calls.
18772
18773 2011-03-21  Nick Clifton  <nickc@redhat.com>
18774
18775         * doc/invoke.texi (Overall Options): Move closing brace to end of
18776         options list.
18777         (Optimization Options): Add missing @gol.
18778         (Directory Options): Likewise.
18779         (i386 and x86-64 Options): Likewise.
18780         (RS6000 and PowerPC Options): Likewise.
18781         (i386 and x86-64 Windows Options): Likewise.
18782         (V850 Options): Add text missing from descriptions.
18783
18784 2011-03-22  Richard Henderson  <rth@redhat.com>
18785
18786         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
18787         (avr_incoming_return_addr_rtx): New.
18788         (emit_push_byte): New.
18789         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
18790         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
18791         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
18792         (emit_pop_byte): New.
18793         (expand_epilogue): Use it.  Pop frame pointer by bytes.
18794         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
18795         (INCOMING_RETURN_ADDR_RTX): New.
18796         (INCOMING_FRAME_SP_OFFSET): New.
18797         (ARG_POINTER_CFA_OFFSET): New.
18798         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
18799         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
18800         (pophi): Remove.
18801
18802         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
18803
18804 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
18805
18806         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
18807         (FUNCTION_ARG_ADVANCE): Likewise.
18808         * tm.texi.in: Change references to them to hook references.
18809         * tm.texi: Regenerate.
18810         * targhooks.c (default_function_arg): Eliminate check for target
18811         macro.
18812         (default_function_incoming_arg): Likewise.
18813         (default_function_arg_advance): Likewise.
18814         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
18815         (function_arg_advance): Likewise.
18816         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
18817
18818 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
18819
18820         * tree.c (build_call_1): New function.
18821         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
18822
18823 2011-03-22  Richard Guenther  <rguenther@suse.de>
18824
18825         PR tree-optimization/48228
18826         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
18827         for single-arg PHIs.
18828
18829 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
18830
18831         PR rtl-optimization/48143
18832         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
18833         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
18834         sse2_cvtps2pd): Likewise.
18835
18836 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18837
18838         * recog.c (canonicalize_change_group): Use validate_unshare_change.
18839
18840 2011-03-22  Richard Guenther  <rguenther@suse.de>
18841
18842         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
18843         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
18844         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
18845         and REALIGN_LOAD_EXPR.
18846         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
18847         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
18848         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
18849         DOT_PROD_EXPR case ...
18850         (expand_expr_real_2): ... here.
18851         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
18852         and REALIGN_LOAD_EXPR.
18853         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
18854         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
18855         (vect_create_epilog_for_reduction): Likewise.
18856         (vectorizable_reduction): Likewise.
18857         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
18858         * tree-vect-stmts.c (vectorizable_load): Likewise.
18859
18860 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
18861
18862         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
18863
18864 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18865
18866         * config/s390/s390.c (s390_delegitimize_address): Fix offset
18867         handling for PLTOFF/GOTOFF.
18868
18869 2011-03-22  Nick Clifton  <nickc@redhat.com>
18870
18871         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
18872         trailing backslash from the end of the macro definition.
18873
18874 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18875
18876         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
18877         and PLT unspecs.
18878
18879 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
18880
18881         * expr.h (prepare_operand): Move to...
18882         * optabs.h (prepare_operand): ...here and change the insn code
18883         parameter from "int" to "enum insn_code".
18884         (insn_operand_matches): Declare.
18885         * expr.c (init_expr_target): Use insn_operand_matches.
18886         (compress_float_constant): Likewise.
18887         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
18888         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
18889         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
18890         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
18891         Likewise.
18892         (gen_cond_trap): Likewise.
18893         (prepare_operand): Likewise.  Change icode to an insn_code.
18894         (insn_operand_matches): New function.
18895         * reload.c (find_reloads_address_1): Use insn_operand_matches.
18896         * reload1.c (gen_reload): Likewise.
18897         * targhooks.c (default_secondary_reload): Likewise.
18898
18899 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
18900
18901         * config/alpha/alpha.md (unspec): New define_c_enum.
18902         (unspecv): Ditto.
18903
18904 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
18905
18906         PR debug/48214
18907         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
18908         between a call and its CALL_ARG_LOCATION note.
18909
18910 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
18911
18912         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
18913
18914 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
18915
18916         PR c/42544
18917         PR c/48197
18918         * c-common.c (shorten_compare): If primopN is first sign-extended
18919         to opN and then zero-extended to result type, set primopN to opN.
18920
18921 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
18922
18923         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
18924         for barrier handlers.
18925
18926 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
18927
18928         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
18929         UNSPEC constants to be in the unspec enumeration, and redefine
18930         all UNSPECV constants to be in the unspecv enumeration, so that
18931         dumps print which unspec/unspec_volatile this is.
18932         * config/rs6000/vector.md (UNSPEC_*): Ditto.
18933         * config/rs6000/paired.md (UNSPEC_*): Ditto.
18934         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
18935         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
18936         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
18937
18938         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
18939         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
18940         UNSPECV_LWSYNC, since these are used as unspec_volatile.
18941         * config/rs6000/sync.md (isync, lwsync): Ditto.
18942
18943 2011-03-21  Richard Guenther  <rguenther@suse.de>
18944
18945         * params.def (lto-min-partition): Fix typo.
18946
18947 2011-03-21  Richard Guenther  <rguenther@suse.de>
18948
18949         PR c/47939
18950         * c-decl.c (grokdeclarator): Drop to the main variant only
18951         for array types.  Drop flag_gen_aux_info check.
18952
18953 2011-03-21  Richard Guenther  <rguenther@suse.de>
18954
18955         PR translation/47911
18956         * params.def (lto-partitions): Fix typo.
18957         (lto-min-partition): Fix wording.
18958
18959 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
18960
18961         * config/rs6000/t-freebsd: Remove duplication from file.
18962
18963 2011-03-21  Richard Guenther  <rguenther@suse.de>
18964
18965         PR middle-end/47661
18966         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
18967
18968 2011-03-21  Richard Guenther  <rguenther@suse.de>
18969
18970         PR lto/48210
18971         * params.def (lto-partitions): Require at least 1 partition.
18972
18973 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18974
18975         * gthr-solaris.h: Remove.
18976         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
18977         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
18978         (LIB_SPEC): Likewise.
18979         * config/sol2.opt (threads): Remove.
18980         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
18981         (sparc*-*-solaris2*): Likewise.
18982         * configure.ac (enable_threads): Enable solaris support.
18983         * configure: Regenerate.
18984         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
18985         * doc/install.texi (Configuration, --enable-threads=lib): Remove
18986         solaris.
18987
18988 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18989
18990         * config.gcc: Obsolete *-*-solaris2.8*.
18991         * doc/install.texi (Specific, *-*-solaris2*): Document it.
18992
18993 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18994
18995         PR bootstrap/48135
18996         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
18997         reference.  Solaris 8 perl works.
18998
18999 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19000
19001         PR bootstrap/48135
19002         * doc/install.texi (Prerequisites): Move jar etc. up.
19003         Explain support library version requirements.
19004
19005 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19006
19007         PR bootstrap/48135
19008         * doc/install.texi (Prerequisites): Move Perl to build
19009         requirements.  Always necessary on Solaris 2 with Sun ld.
19010
19011 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19012
19013         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
19014         binutils 2.21.
19015         (Specific, i?86-*-solaris2.[89]): Likewise.
19016         (Specific, i?86-*-solaris2.10): Likewise.
19017         (Specific, mips-sgi-irix6): Likewise.
19018         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
19019         Update for binutils 2.21.
19020
19021 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19022
19023         * configure.ac (gcc_cv_lto_plugin): Fix typo.
19024         Allow -fuse-linker-plugin for non-default plugin linker.
19025         * configure: Regenerate.
19026
19027 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
19028
19029         PR bootstrap/48167
19030         * gengtype.c (files_rules): Added rule for cp/parser.h.
19031
19032 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
19033
19034         PR target/48213
19035         * config/s390/s390.c (s390_delegitimize_address): Don't call
19036         lowpart_subreg if orig_x has BLKmode.
19037
19038 2011-03-21  Kai Tietz  <ktietz@redhat.com>
19039
19040         PR target/12171
19041         * doc/plugins.texi: Adjust documentation for plugin register_callback.
19042         * tree.h (attribute_spec): Add new member affects_type_identity.
19043         * attribs.c (empty_attribute_table): Adjust attribute_spec
19044         initializers.
19045         * config/alpha/alpha.c: Likewise.
19046         * config/arc/arc.c: Likewise.
19047         * config/arm/arm.c: Likewise.
19048         * config/avr/avr.c: Likewise.
19049         * config/bfin/bfin.c: Likewise.
19050         * config/crx/crx.c: Likewise.
19051         * config/darwin.h: Likewise.
19052         * config/h8300/h8300.c: Likewise.
19053         * config/i386/cygming.h: Likewise.
19054         * config/i386/i386.c: Likewise.
19055         * config/ia64/ia64.c: Likewise.
19056         * config/m32c/m32c.c: Likewise.
19057         * config/m32r/m32r.c: Likewise.
19058         * config/m68hc11/m68hc11.c: Likewise.
19059         * config/m68k/m68k.c: Likewise.
19060         * config/mcore/mcore.c: Likewise.
19061         * config/mep/mep.c: Likewise.
19062         * config/microblaze/microblaze.c: Likewise.
19063         * config/mips/mips.c: Likewise.
19064         * config/rs6000/rs6000.c: Likewise.
19065         * config/rx/rx.c: Likewise.
19066         * config/sh/sh.c: Likewise.
19067         * config/sol2.h: Likewise.
19068         * config/sparc/sparc.c: Likewise.
19069         * config/spu/spu.c: Likewise.
19070         * config/stormy16/stormy16.c: Likewise.
19071         * config/v850/v850.c: Likewise.
19072
19073 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
19074
19075         * simplify-rtx.c (simplify_binary_operation_1): Handle
19076         (xor (and A B) C) case when B and C are both constants.
19077
19078 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
19079
19080         * tree-dfa.c (add_referenced_var): Fix typo in comment.
19081
19082 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
19083
19084         PR bootstrap/48168
19085         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
19086
19087 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
19088
19089         PR rtl-optimization/48156
19090         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
19091         assume df and df_lr are not NULL.
19092
19093 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
19094
19095         PR debug/48023
19096         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
19097         between a call and its CALL_ARG_LOCATION note.
19098
19099 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
19100
19101         PR debug/48178
19102         * config/sh/sh.c (find_barrier): Don't emit a constant pool
19103         between a call and its corresponding CALL_ARG_LOCATION note.
19104
19105 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
19106
19107         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
19108         instead of loop. Use HARD_REGISTER_NUM_P predicate.
19109         * haifa-sched.c (setup_ref_regs): Ditto.
19110         * caller-save.c (add_used_regs_1): Ditto.
19111         * dse.c (look_for_hardregs): Ditto.
19112         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
19113         * sched-rgn.c (check_live_1): Ditto.
19114
19115 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
19116
19117         * c-decl.c (diagnose_mismatched_decls): Give an error for
19118         redefining a typedef with variably modified type.
19119
19120 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
19121
19122         * c-decl.c (grokfield): Don't allow typedefs for structures or
19123         unions with no tag by default.
19124         * doc/extend.texi (Unnamed Fields): Update.
19125
19126 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
19127
19128         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
19129         Rewrite using indirect functions.
19130         (lwp_slwpcb): Ditto.
19131         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
19132         (avx_vinsertf128<mode>): Ditto.
19133
19134 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19135
19136         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
19137         unspecs.
19138
19139 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19140
19141         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
19142         splitting between a call and its corresponding CALL_ARG_LOCATION note.
19143
19144 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
19145
19146         PR rtl-optimization/48170
19147         * gcse.c (hoist_code): Remove bogus asserts.
19148
19149 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
19150
19151         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
19152         computation for prologue/epilogue.
19153
19154 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19155
19156         * Makefile.in (check-consistency): Remove.
19157
19158 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
19159
19160         PR debug/48176
19161         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
19162         arange_table_in_use is 0, but either text_section_used or
19163         cold_text_section_used is true.  Don't call it if
19164         !info_section_emitted.
19165
19166 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
19167
19168         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
19169         FUNCTION_VALUE_REGNO_P): Remove.
19170         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
19171         Remove.
19172         * config/avr/avr.c (avr_ret_register): Make static inline.
19173         (avr_function_value_regno_p): New function.
19174         (avr_libcall_value): Make static. Add 'func' argument.
19175         (avr_function_value): Make static. Rename 'func' argument to
19176         'fn_decl_or_type', forward it to avr_libcall_value. Call
19177         avr_ret_register function instead of RET_REGISTER macro.
19178         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
19179
19180 2011-03-18  Jason Merrill  <jason@redhat.com>
19181
19182         PR c++/23372
19183         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
19184
19185 2011-03-18  Richard Guenther  <rguenther@suse.de>
19186
19187         * doc/install.texi (--enable-gold): Remove.
19188         (--with-plugin-ld): Document.
19189         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
19190
19191 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
19192
19193         PR middle-end/47790
19194         * expr.c (optimize_bitfield_assignment_op): Revamp to work
19195         again after expansion changes.
19196
19197 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
19198
19199         * combine.c (try_combine): Do simplification only call of
19200         subst() on i2 even when i1 is present. Update comments.
19201
19202 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
19203
19204         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
19205         and UNSPEC_PCREL_SYMOFF.
19206
19207 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19208
19209         * config/s390/s390.md: Use define_c_enum for the unspec constant
19210         definitions.
19211
19212 2011-03-18  Richard Henderson  <rth@redhat.com>
19213             Jakub Jelinek  <jakub@redhat.com>
19214
19215         PR bootstrap/48161
19216         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
19217         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
19218
19219 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
19220
19221         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19222         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
19223         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
19224         Change return type to bool.
19225         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19226
19227 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
19228
19229         PR debug/48163
19230         * var-tracking.c (prepare_call_arguments): If CALL target
19231         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
19232         pc instead of looking it up using cselib_lookup and use
19233         Pmode for it if x has VOIDmode.
19234         * dwarf2out.c (gen_subprogram_die): If also both first and
19235         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
19236
19237         PR debug/48163
19238         * function.c (assign_parms): For data.passed_pointer parms
19239         use MEM of data.entry_parm instead of data.entry_parm itself
19240         as DECL_INCOMING_RTL.
19241         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
19242         also when passed and declared mode is the same, DECL_RTL
19243         is a MEM with pseudo as address and DECL_INCOMING_RTL is
19244         a MEM too.
19245
19246 2011-03-16  Jeff Law  <law@redhat.com>
19247
19248         PR rtl-optimization/37273
19249         * ira-costs.c (scan_one_insn): Detect constants living in memory and
19250         handle them like argument loads from stack slots.  Do not double
19251         count memory for memory constants and argument loads from stack slots.
19252
19253 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
19254
19255         PR debug/48160
19256         * var-tracking.c (prepare_call_arguments): Check SUBREG.
19257
19258 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
19259
19260         PR target/48171
19261         * config/i386/i386.opt: Add Save to -mavx and -mfma.
19262
19263 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
19264
19265         PR bootstrap/48153
19266         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
19267         if dwarf_strict.
19268         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
19269         Clear call_arg_locations and call_arg_loc_last always.
19270
19271         PR middle-end/48152
19272         * var-tracking.c (prepare_call_arguments): If argument needs to be
19273         passed by reference, adjust argtype and mode.
19274
19275 2011-03-17  Richard Guenther  <rguenther@suse.de>
19276
19277         PR middle-end/48134
19278         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
19279         a value make sure to fold the statement.
19280
19281 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
19282
19283         PR target/43872
19284         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
19285         return condition with !cfun->calls_alloca.
19286
19287 2011-03-17  Richard Guenther  <rguenther@suse.de>
19288
19289         PR bootstrap/48148
19290         * lto-cgraph.c (input_overwrite_node): Clear the abstract
19291         origin for decls in other ltrans units.
19292         (input_varpool_node): Likewise.
19293
19294 2011-03-17  Richard Guenther  <rguenther@suse.de>
19295
19296         PR middle-end/48165
19297         * tree-object-size.c (compute_object_offset): Properly return
19298         the offset operand of MEM_REFs as sizetype.
19299
19300 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
19301
19302         PR rtl-optimization/48141
19303         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
19304         * dse.c: Include params.h.
19305         (active_local_stores_len): New variable.
19306         (add_wild_read, dse_step1): Clear it when setting active_local_stores
19307         to NULL.
19308         (record_store, check_mem_read_rtx): Decrease it when removing
19309         from the chain.
19310         (scan_insn): Likewise.  Increase it when adding to chain, if it
19311         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
19312         set active_local_stores to NULL before the addition.
19313         * Makefile.in (dse.o): Depend on $(PARAMS_H).
19314
19315         PR rtl-optimization/48141
19316         * dse.c (record_store): If no positions are needed in an insn
19317         that cannot be deleted, at least unchain it from active_local_stores.
19318
19319 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
19320
19321         PR debug/47510
19322         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
19323         (lookup_type_die_strip_naming_typedef): ... here.
19324         (get_context_die): Use it.
19325         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
19326         the anonymous struct named by the naming typedef.
19327
19328 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19329
19330         PR target/48154
19331         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
19332         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
19333
19334 2011-03-16  Jeff Law  <law@redhat.com>
19335
19336         * tree-vrp.c (identify_jump_threads): Slightly simplify type
19337         check for operands of conditional.  Allow type to be a pointer.
19338
19339 2011-03-16  Richard Guenther  <rguenther@suse.de>
19340
19341         PR tree-optimization/48149
19342         * fold-const.c (fold_binary_loc): Fold
19343         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
19344
19345 2011-03-16  Richard Guenther  <rguenther@suse.de>
19346
19347         PR tree-optimization/26134
19348         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
19349         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
19350         (non_rewritable_mem_ref_base): Handle complex type component
19351         accesses, constrain offsets for vector and complex extracts
19352         more properly.
19353
19354 2011-03-16  Richard Guenther  <rguenther@suse.de>
19355
19356         PR tree-optimization/48146
19357         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
19358         operands avoiding the need for renaming.
19359
19360 2011-03-16  Richard Guenther  <rguenther@suse.de>
19361
19362         * gimple-fold.c (maybe_fold_reference): Open-code relevant
19363         constant folding.  Move MEM_REF canonicalization first.
19364         Rely on fold_const_aggregate_ref for initializer folding.
19365         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
19366
19367 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
19368
19369         PR middle-end/48136
19370         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
19371         arg0/arg1 or their arguments are always fold converted to matching
19372         types.
19373
19374         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
19375         to nargs.
19376
19377 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19378
19379         PR lto/46944
19380         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
19381         Handle in-tree gold.
19382         (ld_vers): Extract binutils version for gold.
19383         (gcc_cv_ld_hidden): Handle gold here.
19384         (gcc_cv_lto_plugin): Determine level of linker plugin support.
19385         * configure: Regenerate.
19386         * config.in: Regenerate.
19387         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
19388         -fuse-linker-plugin otherwise.
19389         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
19390         (LINK_COMMAND_SPEC): Use it.
19391         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
19392
19393 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
19394
19395         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
19396         * calls.c: Remove debug.h include.
19397         (emit_call_1): Don't call virtual_call_token debug hook.
19398         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
19399         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
19400         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
19401         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
19402         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
19403         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
19404         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
19405         dwarf2out_virtual_call): Remove.
19406         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
19407         copy_call_info and virtual_call hooks.
19408         (dwarf2out_init): Don't initialize vcall_insn_table,
19409         debug_dcall_section and debug_vcall_section.
19410         (prune_unused_types): Don't mark nodes from dcall_table.
19411         (dwarf2out_finish): Don't output dcall or vcall tables.
19412         * final.c (final_scan_insn): Don't call direct_call or
19413         virtual_call debug hooks.
19414         * debug.h (struct gcc_debug_hooks): Remove direct_call,
19415         virtual_call_token, copy_call_info and virtual_call hooks.
19416         (debug_nothing_uid): Remove prototype.
19417         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
19418         copy_call_info and virtual_call hooks.
19419         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
19420         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
19421         * debug.c (do_nothing_debug_hooks): Likewise.
19422         (debug_nothing_uid): Remove.
19423         * doc/invoke.texi (-fenable-icf-debug): Remove.
19424         * common.opt (-fenable-icf-debug): Likewise.
19425
19426         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
19427         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
19428         call's MEM.  Handle functions returning aggregate through a hidden
19429         first pointer.  For virtual calls add clobbered pc to call arguments
19430         chain.
19431         * dwarf2out.c (gen_subprogram_die): Emit
19432         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
19433         can't be emitted.
19434
19435         PR debug/45882
19436         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
19437         * rtl.h (ENTRY_VALUE_EXP): Define.
19438         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
19439         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
19440         * print-rtl.c (print_rtx): Likewise.
19441         * gengtype.c (adjust_field_rtx_def): Likewise.
19442         * var-tracking.c (vt_add_function_parameter): Adjust
19443         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
19444         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
19445         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
19446         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
19447         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
19448
19449         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
19450         Call var_location debug hook even on CALL_INSNs.
19451         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
19452         * rtl.def (ENTRY_VALUE): New.
19453         * dwarf2out.c: Include cfglayout.h.
19454         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
19455         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
19456         (struct call_arg_loc_node): New type.
19457         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
19458         tail_call_site_count): New variables.
19459         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
19460         DW_TAG_GNU_call_site_parameter.
19461         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
19462         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
19463         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
19464         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
19465         and DW_AT_GNU_all_source_call_sites.
19466         (mem_loc_descriptor): Handle ENTRY_VALUE.
19467         (add_src_coords_attributes): Don't add enything if
19468         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
19469         (dwarf2out_abstract_function): Save and clear call_arg_location,
19470         call_site_count and tail_call_site_count around dwarf2out_decl call.
19471         (gen_call_site_die): New function.
19472         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
19473         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
19474         (dwarf2out_function_decl): Clear call_arg_locations,
19475         call_arg_loc_last, set call_site_count and tail_call_site_count
19476         to -1 and free block_map.
19477         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
19478         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
19479         followed by any real instructions.
19480         (dwarf2out_begin_function): Set call_site_count and
19481         tail_call_site_count to 0.
19482         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
19483         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
19484         attempt to force a DIE for it and worst case remove the attribute.
19485         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
19486         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
19487         the decl itself.
19488         * var-tracking.c: Include tm_p.h.
19489         (vt_stack_adjustments): For calls call note_register_arguments.
19490         (argument_reg_set): New variable.
19491         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
19492         ensure the VALUE is resolved.
19493         (call_arguments): New variable.
19494         (prepare_call_arguments): New function.
19495         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
19496         (struct expand_loc_callback_data): Add ignore_cur_loc field.
19497         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
19498         always use the best expression.
19499         (vt_expand_loc): Add ignore_cur_loc argument.
19500         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
19501         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
19502         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
19503         note for all calls.
19504         (vt_add_function_parameter): Use cselib_lookup_from_insn.
19505         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
19506         argument.  Don't call cselib_preserve_only_values and
19507         cselib_reset_table.
19508         (note_register_arguments): New function.
19509         (vt_initialize): Compute argument_reg_set.  Call
19510         vt_add_function_parameters before processing basic blocks instead of
19511         afterwards.  For calls call prepare_call_arguments before calling
19512         cselib_process_insn.
19513         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
19514         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
19515         (var-tracking.o): Depend on $(TM_P_H).
19516         * cfglayout.h (insn_scope): New prototype.
19517         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
19518         * cfglayout.c (insn_scope): No longer static.
19519         * insn-notes.def (CALL_ARG_LOCATION): New.
19520         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
19521         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
19522         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
19523         nothing for DECL_EXTERNAL BLOCK_VARS.
19524
19525 2011-03-16  Alan Modra  <amodra@gmail.com>
19526
19527         PR target/45844
19528         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
19529         create invalid offset address for vsx splat insn.
19530         * config/rs6000/predicates.md (splat_input_operand): New.
19531         * config/rs6000/vsx.md (vsx_splat_*): Use it.
19532
19533 2011-03-15  Xinliang David Li  <davidxl@google.com>
19534
19535         PR c/47837
19536         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
19537         (normalize_preds): New function.
19538         (is_use_properly_guarded): Normalize def predicates.
19539
19540 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
19541
19542         PR target/46788
19543         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
19544         in the output template.
19545
19546 2011-03-15  Richard Guenther  <rguenther@suse.de>
19547
19548         PR middle-end/47650
19549         * tree-pretty-print.c (dump_function_declaration): Properly
19550         dump unprototyped and varargs function types.
19551
19552 2011-03-15  Richard Guenther  <rguenther@suse.de>
19553
19554         PR tree-optimization/13954
19555         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
19556         and friends.
19557
19558 2011-03-15  Richard Guenther  <rguenther@suse.de>
19559
19560         PR tree-optimization/48037
19561         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
19562         selects into BIT_FIELD_REFs.
19563         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
19564         vector select.
19565
19566 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
19567
19568         PR tree-optimization/48129
19569         * builtins.c (fold_builtin_snprintf): Convert to type of
19570         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
19571         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
19572
19573 2011-03-15  Richard Guenther  <rguenther@suse.de>
19574
19575         PR tree-optimization/41490
19576         * tree-ssa-dce.c (propagate_necessity): Handle returns without
19577         value but with VUSE.
19578         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
19579         return statements.
19580         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
19581         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
19582         * tree-tailcall.c (find_tail_calls): Ignore returns.
19583
19584 2011-03-15  Richard Guenther  <rguenther@suse.de>
19585
19586         PR middle-end/48031
19587         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
19588         or variable-indexed array accesses when in gimple form.
19589
19590 2011-03-15  Richard Guenther  <rguenther@suse.de>
19591
19592         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
19593
19594 2011-03-15  Alan Modra  <amodra@gmail.com>
19595
19596         PR target/48032
19597         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
19598         presume symbol_refs without a symbol_ref_decl are suitably
19599         aligned, nor other trees we may see here.  Handle anchor symbols.
19600         (legitimate_constant_pool_address_p): Comment.  Add mode param.
19601         Check cmodel=medium addresses.  Adjust all calls.
19602         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
19603         creating cmodel=medium optimized access to locals.
19604         * config/rs6000/constraints.md (R): Pass QImode to
19605         legitimate_constant_pool_address_p.
19606         * config/rs6000/predicates.md (input_operand): Pass mode to
19607         legitimate_constant_pool_address_p.
19608         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
19609         Update prototype.
19610
19611 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
19612
19613         PR target/48053
19614         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
19615         64-bit constants being loaded into registers other than GPRs such
19616         as loading 0 into a VSX register.
19617
19618 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19619
19620         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
19621
19622 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
19623
19624         PR middle-end/47917
19625         * builtins.c (fold_builtin_snprintf): New function.
19626         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
19627         (fold_builtin_4): Likewise.
19628
19629         PR middle-end/38878
19630         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
19631         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
19632         and C - X == X also strip nops from +/-/p+ operand.
19633         When optimizing -X == C, fold C to arg0's type.
19634
19635         PR debug/47946
19636         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
19637         emit it as add_AT_int instead of add_AT_unsigned.
19638
19639 2011-03-14  Tom Tromey  <tromey@redhat.com>
19640
19641         * unwind-dw2.c: Include sys/sdt.h if it exists.
19642         (_Unwind_DebugHook): Use STAP_PROBE2.
19643         * config.in, configure: Rebuild.
19644         * configure.ac: Check for sys/sdt.h.
19645
19646 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
19647
19648         * config/i386/i386.md (ROUND_FLOOR): New constant.
19649         (ROUND_CEIL): Ditto.
19650         (ROUND_TRUNC): Ditto.
19651         (ROUND_MXCSR): Ditto.
19652         (ROUND_NO_EXC): Ditto.
19653         (rint<mode>2): Use new defines instead of numerical constants.
19654         (floor<mode>2): Ditto.
19655         (ceil<mode>2): Ditto.
19656         (btrunc<mode>2): Ditto.
19657         * config/i386/i386-builtin-types.def: Define ROUND function type
19658         aliases.
19659         * config/i386/i386.c (enum ix86_builtins): Add
19660         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
19661         (struct builtin_description): Add
19662         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
19663         (ix86_expand_sse_round): New static function.
19664         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
19665         function types.
19666         (ix86_builtin_vectorized_function): Handle
19667         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
19668
19669 2011-03-14  Tom Tromey  <tromey@redhat.com>
19670
19671         * c-parser.c (c_parser_asm_string_literal): Clear
19672         warn_overlength_strings.
19673
19674 2011-03-14  Tom Tromey  <tromey@redhat.com>
19675
19676         * c-parser.c (disable_extension_diagnostics): Save
19677         warn_overlength_strings.
19678         (restore_extension_diagnostics): Restore warn_overlength_strings.
19679
19680 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
19681
19682         * BASE-VER: Change to 4.7.0.
19683
19684 2011-03-14  Richard Guenther  <rguenther@suse.de>
19685
19686         PR middle-end/48098
19687         * tree.c (build_vector_from_val): Adjust assert to requirements
19688         and reality.
19689
19690 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
19691
19692         PR bootstrap/48102
19693         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
19694
19695 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
19696
19697         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
19698         terms of target_flags_explicit. Adjust copyright year.
19699
19700         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
19701         * config/rs6000/t-freebsd: New file. Add override for
19702         LIB2FUNCS_EXTRA.
19703
19704 2011-03-13  Chris Demetriou  <cgd@google.com>
19705
19706         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
19707         (-fno-diagnostics-show-option): this, to reflect current default.
19708         (-Werror=): Update text about -fno-diagnostics-show-option.
19709
19710 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
19711
19712         PR target/48053
19713         * config/rs6000/predicates.md (easy_vector_constant_add_self,
19714         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
19715         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
19716         mode is not V2DImode or V2DFmode.
19717         (vspltis_constant): Do not handle V2DImode and V2DFmode.
19718         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
19719         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
19720         registers to 0.
19721         (movdi_internal64): Likewise.
19722
19723 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
19724
19725         PR tree-optimization/47127
19726         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
19727         parameter.
19728         (set_cloog_options): Same.
19729         (scop_to_clast): Same.
19730         (print_clast_stmt): Do not call cloog_state_malloc and
19731         cloog_state_free.
19732         (print_generated_program): Same.
19733         (gloog): Same.
19734         * graphite-clast-to-gimple.h (cloog_state): Declared.
19735         (scop_to_clast): Adjust declaration.
19736         * graphite.c (cloog_state): Defined here.
19737         (graphite_initialize): Call cloog_state_malloc.
19738         (graphite_finalize): Call cloog_state_free.
19739
19740 2011-03-11  Jason Merrill  <jason@redhat.com>
19741
19742         * attribs.c (lookup_attribute_spec): Take const_tree.
19743         * tree.h: Adjust.
19744
19745 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
19746
19747         * config/sparc/sparc.c (sparc_option_override): Use
19748         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
19749
19750 2011-03-11  Richard Guenther  <rguenther@suse.de>
19751
19752         PR tree-optimization/48067
19753         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
19754         multiplication result will be only used once on the target
19755         stmt.
19756
19757 2011-03-11  Richard Guenther  <rguenther@suse.de>
19758
19759         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
19760
19761 2011-03-11  Richard Guenther  <rguenther@suse.de>
19762
19763         PR lto/48073
19764         * tree.c (find_decls_types_r): Do not walk types only reachable
19765         from IDENTIFIER_NODEs.
19766
19767 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
19768
19769         PR middle-end/48044
19770         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
19771         all vnode->force_output nodes as needed.
19772
19773 2011-03-11  Jason Merrill  <jason@redhat.com>
19774
19775         PR c++/48069
19776         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
19777         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
19778
19779 2011-03-11  Martin Jambor  <mjambor@suse.cz>
19780
19781         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
19782         cgraph_node.
19783
19784 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
19785
19786         PR tree-optimization/48063
19787         * ipa-inline.c (cgraph_decide_inlining): Don't try to
19788         inline functions called once if !tree_can_inline_p (node->callers).
19789
19790 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
19791
19792         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
19793         extra_objs.
19794         * config/score/score3.c: Delete.
19795         * config/score/score3.h: Delete.
19796         * config/score/mul-div.S: Delete.
19797         * config/score/sfp-machine.h: Add new file.
19798         * config/score/constraints.md: Add new file.
19799         * config/score/t-score-softfp: Add new file.
19800         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
19801         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
19802         (score7_extra_constraint): Delete.
19803         (score7_option_override): Remove unused code.
19804         * config/score/score.c: Remove score3 and score5 define and code.
19805         * config/score/score.h: Remove score3 and score5 define and code.
19806         * config/score/score.md: Remove score3 template and unusual insn.
19807         * config/score/score.opt: Remove score3 and score5 options.
19808
19809 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19810
19811         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
19812         when _HPUX_SOURCE is defined.
19813         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
19814
19815 2011-03-10  Jason Merrill  <jason@redhat.com>
19816
19817         PR c++/48029
19818         * stor-layout.c (layout_type): Don't set structural equality
19819         on arrays of incomplete type.
19820         * tree.c (type_hash_eq): Handle comparing them properly.
19821
19822 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
19823
19824         PR debug/48043
19825         * config/s390/s390.c (s390_delegitimize_address): Make sure the
19826         result mode matches original rtl mode.
19827
19828 2011-03-10  Nick Clifton  <nickc@redhat.com>
19829
19830         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
19831         (andsi3, andsi3_flags): Fix timings for three operand alternative.
19832
19833 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
19834
19835         PR rtl-optimization/47866
19836         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
19837         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
19838         if target wasn't scalar.
19839         * function.c (assign_stack_temp_for_type): Assert that neither
19840         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
19841         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
19842         macro.
19843         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
19844
19845 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19846
19847         * config/s390/s390-protos.h (s390_label_align): New prototype.
19848         * config/s390/s390.c (s390_label_align): New function.
19849         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
19850
19851 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
19852
19853         PR target/47755
19854         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
19855         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
19856         (output_vec_const_move): Ditto.
19857
19858 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
19859
19860         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
19861         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
19862         * config/mips/mips.c (mips_preferred_reload_class): Make static.
19863         Change 'rclass' argument and result type to reg_class_t.
19864         (TARGET_PREFERRED_RELOAD_CLASS): Define.
19865
19866 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
19867
19868         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
19869         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
19870         (TARGET_MEMORY_MOVE_COST): Define.
19871         (avr_register_move_cost, avr_memory_move_cost): New Functions.
19872
19873 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
19874
19875         PR debug/47881
19876         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
19877         removed anything.
19878
19879         PR tree-optimization/48022
19880         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
19881         for EQ/NE_EXPR.
19882
19883 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
19884
19885         PR debug/47991
19886         * var-tracking.c (find_use_val): Return NULL for
19887         cui->sets && cui->store_p BLKmode MEMs.
19888
19889 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
19890
19891         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
19892         Remove.
19893         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
19894         xstormy16_print_operand_address): Remove.
19895         * config/stormy16/stormy16.c (xstormy16_print_operand,
19896         xstormy16_print_operand_address): Make static.
19897         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
19898
19899 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
19900
19901         PR target/47862
19902         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
19903         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
19904         before definition.
19905
19906 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
19907
19908         PR bootstrap/48000
19909         * cfgloopmanip.c (fix_bb_placements): Return immediately
19910         if FROM is BASE_LOOP's header.
19911
19912 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
19913
19914         * gimplify.c (gimplify_function_tree): Fix building calls
19915         to __builtin_return_address.
19916
19917 2011-03-07  Alan Modra  <amodra@gmail.com>
19918
19919         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
19920         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
19921         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
19922         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
19923         return_mode args.
19924         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
19925         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
19926         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
19927         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
19928         * config/rs6000/rs6000.c
19929         (rs6000_elf_end_indicate_exec_stack): Rename to..
19930         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
19931         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
19932         (rs6000_file_start): ..here.
19933         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
19934         file scope variables.
19935         (call_ABI_of_interest): New function.
19936         (init_cumulative_args): Set above vars when function return value
19937         is a float, vector, or small struct.
19938         (rs6000_function_arg_advance_1): Likewise for function args.
19939         (rs6000_va_start): Set rs6000_passes_float if variable arg function
19940         references float args.
19941
19942 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
19943
19944         * doc/cfg.texi: Remove "See" before @ref.
19945         * doc/invoke.texi: Likewise.
19946
19947 2011-03-05  Jason Merrill  <jason@redhat.com>
19948
19949         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
19950
19951 2011-03-05  Anthony Green  <green@moxielogic.com>
19952
19953         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
19954
19955 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
19956
19957         PR rtl-optimization/47899
19958         * cfgloopmanip.c (fix_bb_placements): Fix first argument
19959         to flow_loop_nested_p when moving the loop upward.
19960
19961 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
19962
19963         PR target/47719
19964         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
19965
19966 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
19967
19968         PR tree-optimization/47967
19969         * ipa-cp.c (build_const_val): Return NULL instead of creating
19970         VIEW_CONVERT_EXPR for mismatching sizes.
19971         (ipcp_create_replace_map): Return NULL if build_const_val failed.
19972         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
19973         give up on versioning.
19974
19975 2011-03-05  Alan Modra  <amodra@gmail.com>
19976
19977         PR target/47986
19978         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
19979         full cmodel medium/large lo_sum + high addresses.
19980
19981 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19982
19983         * config/s390/s390.c (s390_decompose_address): Reject non-literal
19984         pool references in UNSPEC_LTREL_OFFSET.
19985
19986 2011-03-04  Jan Hubicka  <jh@suse.cz>
19987
19988         PR lto/47497
19989         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
19990         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
19991         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
19992         Add node pointers.
19993         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
19994         cgraph_add_thunk): Add node pointers.
19995         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
19996         associated to right node.
19997         (input_node): Update use of cgraph_same_body_alias
19998         and cgraph_add_thunk.
19999
20000 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
20001
20002         * config/i386/i386.opt (mprefer-avx128): New flag.
20003         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
20004         modes when the flag -mprefer-avx128 is on.
20005
20006 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
20007
20008         * dwarf2out.c (compare_loc_operands): Fix address handling.
20009
20010 2011-03-04  Alan Modra  <amodra@gmail.com>
20011
20012         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
20013
20014 2011-03-04  Richard Guenther  <rguenther@suse.de>
20015
20016         PR middle-end/47968
20017         * expmed.c (extract_bit_field_1): Prefer vector modes that
20018         vec_extract patterns can handle.
20019
20020 2011-03-04  Richard Guenther  <rguenther@suse.de>
20021
20022         PR middle-end/47975
20023         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
20024
20025 2011-03-04  Richard Henderson  <rth@redhat.com>
20026
20027         * explow.c (emit_stack_save): Remove 'after' parameter.
20028         (emit_stack_restore): Likewise.
20029         * expr.h: Update to match.
20030         * builtins.c, calls.c, stmt.c: Likewise.
20031         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
20032         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
20033         * function.c (expand_function_end): Insert the emit_stack_save
20034         sequence before parm_birth_insn instead of after.
20035
20036 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
20037
20038         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
20039         (ssse3_pmaddubsw128): Ditto.
20040         (ssse3_pmaddubsw): Ditto.
20041
20042 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
20043
20044         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
20045
20046 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
20047
20048         PR c/47963
20049         * gimplify.c (omp_add_variable): Only call omp_notice_variable
20050         on TYPE_SIZE_UNIT if it is a DECL.
20051
20052         PR debug/47283
20053         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
20054         first operand is not is_gimple_mem_ref_addr, try to fold it.
20055         If the operand still isn't is_gimple_mem_ref_addr, clear
20056         MEM_EXPR on op0.
20057
20058 2011-03-03  Richard Guenther  <rguenther@suse.de>
20059
20060         PR middle-end/47283
20061         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
20062         match comment.
20063         (refs_may_alias_p_1): For release branches return true if
20064         we are confused by our input.
20065
20066 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20067
20068         * config/s390/s390.c (s390_function_value): Rename to ...
20069         (s390_function_and_libcall_value): ... this.
20070         (s390_function_value): New function.
20071         (s390_libcall_value): New function.
20072         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
20073         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
20074         target macro definitions.
20075         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
20076
20077 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
20078
20079         * config/i386/freebsd64.h (CC1_SPEC): Define.
20080         * config/i386/linux64.h (CC1_SPEC): Define.
20081         * config/i386/x86-64.h (CC1_SPEC): Don't define.
20082
20083 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
20084
20085         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
20086         Remove.
20087         * config/stormy16/stormy16.c: Include reload.h.
20088         (xstormy16_memory_move_cost): New function.
20089         (TARGET_MEMORY_MOVE_COST): Define.
20090
20091 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
20092
20093         PR rtl-optimization/47925
20094         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
20095         with side effects.  Remove the more-specific check for volatile asms.
20096
20097 2011-03-02  Alan Modra  <amodra@gmail.com>
20098
20099         PR target/47935
20100         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
20101         toc relative addresses for valid offsets.
20102
20103 2011-03-01  Richard Guenther  <rguenther@suse.de>
20104
20105         PR tree-optimization/47890
20106         * tree-vect-loop.c (get_initial_def_for_induction): Set
20107         related stmt properly.
20108
20109 2011-03-01  Richard Guenther  <rguenther@suse.de>
20110
20111         PR lto/47924
20112         * lto-streamer.c (lto_record_common_node): Also register
20113         the canonical type.
20114
20115 2011-03-01  Richard Guenther  <rguenther@suse.de>
20116
20117         PR lto/46911
20118         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
20119         Do not stream DECL_ABSTRACT_ORIGIN.
20120         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
20121         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
20122         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
20123         Do not stream DECL_ABSTRACT_ORIGIN.
20124         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
20125         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
20126
20127 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
20128
20129         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
20130         FUNCTION_VALUE_REGNO_P): Remove.
20131         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
20132         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
20133         Add 'outgoing' argument.
20134         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
20135         function.
20136         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
20137         TARGET_FUNCTION_VALUE_REGNO_P): Define.
20138
20139 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
20140
20141         PR debug/28047
20142         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
20143         (lookup_filename): Likewise.
20144         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
20145
20146 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
20147             Jakub Jelinek  <jakub@redhat.com>
20148
20149         PR middle-end/47893
20150         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
20151         (assign_stack_local_1): Change last argument type to int.
20152         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
20153         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
20154         don't record padding space into frame_space_list nor use those areas.
20155         (assign_stack_local): Adjust caller.
20156         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
20157         of assign_stack_local, pass 0 as last argument.
20158         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
20159         callers.
20160
20161 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
20162
20163         PR debug/47283
20164         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
20165         Use target address_mode and pointer_mode hooks instead of hardcoded
20166         Pmode and ptr_mode.  Handle some simple cases of extending if
20167         POINTERS_EXTEND_UNSIGNED < 0.
20168         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
20169         Call convert_debug_memory_address.
20170         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
20171         convert_debug_memory_address.
20172
20173         PR middle-end/46790
20174         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
20175         * configure: Regenerated.
20176         * config.in: Regenerated.
20177         * varasm.c (default_function_section): Return NULL
20178         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
20179
20180 2011-02-28  Martin Jambor  <mjambor@suse.cz>
20181
20182         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
20183         the description to match the printed values.
20184
20185 2011-02-28  Richard Guenther  <rguenther@suse.de>
20186
20187         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
20188         of the copied scope tree.
20189
20190 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20191
20192         * doc/extend.texi (Function Attributes): Avoid deeply (and
20193         wrongly) nested tables.
20194
20195 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
20196
20197         PR middle-end/47903
20198         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
20199         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
20200         r isn't op0 nor op1.
20201
20202 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
20203
20204         * config/avr/avr.md: Remove magic comment for emacs.
20205
20206 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
20207
20208         PR target/45261
20209         * config/avr/avr.c (avr_option_override): Use error on bad options.
20210         (avr_help): New function.
20211         (TARGET_HELP): Define.
20212
20213 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
20214
20215         PR target/42240
20216         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
20217         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
20218
20219 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
20220
20221         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
20222         (ARM Options): Ditto.
20223         (i386 and x86-64 Options): Ditto.
20224         (RX Options): Ditto.
20225         (SPARC Options): Ditto.
20226
20227 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
20228
20229         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
20230         FreeBSD 6 and later.  Generally use cpu generic.
20231
20232 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
20233
20234         * doc/cpp.texi: Update copyright years.
20235
20236 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
20237
20238         PR target/46898
20239         * config/lm32/lm32.md (ashrsi3): Added needed variable.
20240
20241 2011-02-25  Jon Beniston  <jon@beniston.com>
20242
20243         PR target/46898
20244         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
20245         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
20246         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
20247         (lm32_block_move_inline): Add type cast to remove warning.
20248         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
20249         (gen_int_relational): Move declarations to start of function.
20250
20251 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
20252
20253         PR tree-optimization/45470
20254         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
20255         can throw internally only.
20256         * tree-vect-stmts.c (vectorizable_call): Likewise.
20257
20258 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
20259
20260         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
20261         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
20262         * config/stormy16/stormy16-protos.h
20263         (xstormy16_preferred_reload_class): Remove.
20264         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
20265         static. Change 'rclass' argument and return type to reg_class_t.
20266         (TARGET_PREFERRED_RELOAD_CLASS,
20267         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
20268
20269 2011-02-24  Richard Guenther  <rguenther@suse.de>
20270
20271         * lto-streamer-in.c (input_bb): Do not find referenced vars
20272         in debug statements.
20273
20274 2011-02-23  Jason Merrill  <jason@redhat.com>
20275
20276         * common.opt (fabi-version): Document v5 and v6.
20277
20278 2011-02-23  Richard Guenther  <rguenther@suse.de>
20279
20280         PR tree-optimization/47849
20281         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
20282
20283 2011-02-23  Jie Zhang  <jie@codesourcery.com>
20284
20285         * opts-common.c (decode_cmdline_option): Print empty string
20286         argument as "" in decoded->orig_option_with_args_text.
20287         * gcc.c (execute): Print empty string argument as ""
20288         in the verbose output.
20289         (do_spec_1): Keep empty string argument.
20290
20291 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
20292
20293         * config.gcc: Declare score-* and crx-* obsolete.
20294
20295 2011-02-23  Jie Zhang  <jie@codesourcery.com>
20296
20297         PR rtl-optimization/47763
20298         * web.c (web_main): Ignore naked clobber when replacing register.
20299
20300 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
20301
20302         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
20303         Remove.
20304
20305 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
20306
20307         PR doc/47848
20308         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
20309
20310 2011-02-22  Mike Stump  <mikestump@comcast.net>
20311
20312         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
20313         assembler.
20314         * configure: Regenerate.
20315
20316 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
20317
20318         PR rtl-optimization/46002
20319         * ira-color.c (update_copy_costs): Change class intersection
20320         test to reg_class_contents[] test of 'hard_regno'.
20321
20322 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
20323
20324         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
20325         than Driver option.
20326         * config/hpux11.opt (mt): Likewise.
20327         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
20328         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
20329         * config/vax/elf.opt (mno-asm-pic): Likewise.
20330         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
20331
20332 2011-02-21  Mike Stump  <mikestump@comcast.net>
20333
20334         PR target/47822
20335         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
20336         tree so we can get save the type.
20337         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
20338         for CFString instead of trying to use past the end of the builtins.
20339         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
20340         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
20341         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
20342         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
20343         Rename to darwin_builtin_cfstring.
20344         (darwin_init_cfstring_builtins): Return the built type.
20345
20346 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
20347
20348         PR target/47840
20349         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
20350         (_mm256_insert_epi64): Use _mm_insert_epi64.
20351
20352 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
20353
20354         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
20355         * config/stormy16/stormy16-protos.h
20356         (xstormy16_mode_dependent_address_p): Remove.
20357         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
20358         Make static. Change return type to bool. Change argument type to
20359         const_rtx. Remove dead code.
20360         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
20361
20362 2011-02-21  Richard Guenther  <rguenther@suse.de>
20363
20364         PR lto/47820
20365         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
20366         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
20367         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
20368         TUs context.
20369         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
20370         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
20371
20372 2011-02-20  Richard Guenther  <rguenther@suse.de>
20373
20374         PR lto/47822
20375         * tree.c (free_lang_data_in_decl): Clean builtins from
20376         the TU decl BLOCK_VARS.
20377
20378 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
20379
20380         PR debug/47620
20381         PR debug/47630
20382         * haifa-sched.c (fix_tick_ready): Skip tick computation
20383         for debug insns.
20384
20385 2011-02-19  Richard Guenther  <rguenther@suse.de>
20386
20387         PR lto/47647
20388         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
20389         Remove lazy BLOCK_VARS streaming.
20390         (lto_input_ts_block_tree_pointers): Likewise.
20391         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
20392
20393 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
20394
20395         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
20396
20397 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
20398
20399         * config/i386/biarch32.h, config/i386/mach.h,
20400         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
20401
20402 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
20403
20404         PR target/47800
20405         * config/i386/i386.md (peephole2 for shift and plus): Use
20406         operands[1] original mode in the first insn.
20407
20408 2011-02-18  Mike Stump  <mikestump@comcast.net>
20409
20410         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
20411
20412 2011-02-18  Jan Hubicka  <jh@suse.cz>
20413
20414         PR middle-end/47788
20415         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
20416         to zero when the function is not inlinable at all.
20417
20418 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20419
20420         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
20421         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
20422         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
20423         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
20424         * config/pa/t-pa64: Likewise.
20425         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
20426
20427 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
20428
20429         PR driver/47787
20430         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
20431
20432 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20433
20434         PR target/47792
20435         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
20436
20437 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
20438
20439         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
20440         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
20441         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
20442         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
20443         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
20444         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
20445         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
20446         m32r_load_postinc_p, m32r_store_preinc_predec_p,
20447         m32r_legitimate_address_p): New functions.
20448         * config/m32r/constraints.md (constraint "S"): Don't use
20449         STORE_PREINC_PREDEC_P.
20450         (constraint "U"): Don't use LOAD_POSTINC_P.
20451
20452 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
20453
20454         PR rtl-optimization/46178
20455         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
20456         compute ira_hard_regno_cover_class[].
20457
20458 2011-02-18  Richard Guenther  <rguenther@suse.de>
20459
20460         PR lto/47798
20461         * lto-streamer.h (lto_global_var_decls): Declare.
20462         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
20463         statics for global var processing.
20464
20465 2011-02-18  Richard Guenther  <rguenther@suse.de>
20466
20467         PR tree-optimization/47737
20468         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
20469         edge dominance check.
20470
20471 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
20472
20473         PR debug/47780
20474         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
20475         avoid invalid rtx sharing.
20476
20477 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
20478
20479         * doc/cpp.texi (Obsolete Features): Add background on the
20480         origin of assertions.
20481
20482 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
20483
20484         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
20485         objc_abi == 2.
20486         * config/darwin.c (output_objc_section_asm_op): Added support for
20487         ABI v1 and v2.
20488         (is_objc_metadata): New.
20489         (darwin_objc2_section): New.
20490         (darwin_objc1_section): New.
20491         (machopic_select_section): Added support for ABI v1 and v2.
20492         (darwin_emit_objc_zeroed): New.
20493         (darwin_output_aligned_bss): Detect objc metadata and treat it
20494         appropriately.
20495         (darwin_asm_output_aligned_decl_common): Same.
20496         (darwin_asm_output_aligned_decl_local): Same.
20497         * config/darwin-sections.def: Updated for ABI v1 and v2.
20498         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
20499         compiling Objective-C code for the NeXT runtime, default to using
20500         ABI version 0 for 32-bit, and version 2 for 64-bit.
20501
20502 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
20503
20504         * common.opt (optimize_fast): New Variable.
20505         * opts.c (default_options_optimization): Use opts->x_optimize_fast
20506         instead of local variable ofast.
20507
20508 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
20509
20510         * doc/invoke.texi (fobjc-abi-version): Documented.
20511         (fobjc-nilcheck): Documented.
20512         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
20513         version.
20514
20515 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
20516
20517         PR driver/47390
20518         * common.opt (export-dynamic): New Driver option.
20519         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
20520
20521 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
20522
20523         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
20524
20525 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
20526             Jan Hubicka  <jh@suse.cz>
20527
20528         PR debug/47106
20529         PR debug/47402
20530         * cfgexpand.c (account_used_vars_for_block): Remove.
20531         (estimated_stack_frame_size): Use referenced vars.
20532         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
20533         that were referenced in the original function.  Test src_fn
20534         rather than cfun.  Drop redundant get_var_ann.
20535         (setup_one_parameter): Drop redundant get_var_ann.
20536         (declare_return_variable): Likewise.
20537         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
20538         (copy_arguments_for_versioning): Drop redundant get_var_ann.
20539         * ipa-inline.c (compute_inline_parameters): Do not compute
20540         disregard_inline_limits here.
20541         (compute_inlinable_for_current, pass_inlinable): New.
20542         (pass_inline_parameters): Require PROP_referenced_vars.
20543         * cgraphunit.c (cgraph_process_new_functions): Don't run
20544         compute_inline_parameters explicitly unless function is in SSA form.
20545         (cgraph_analyze_function): Set .disregard_inline_limits.
20546         * tree-sra.c (convert_callers): Compute inliner parameters
20547         only for functions already in SSA form.
20548
20549 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
20550
20551         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
20552         -mlittle-endian-data.
20553
20554 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
20555
20556         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
20557         -mno-fpu, not -fpu and -no-fpu.
20558         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
20559         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
20560
20561 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
20562
20563         PR target/43653
20564         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
20565         input reload with PLUS RTX.
20566
20567 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
20568
20569         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
20570         of InverseVar(MDMX).
20571
20572 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
20573
20574         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
20575         --m4-340.
20576
20577 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
20578
20579         * config/mn10300/mn10300.opt (mno-crt0): New.
20580
20581 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
20582
20583         * config/m68k/uclinux.opt (static-libc): New Driver option.
20584
20585 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
20586
20587         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
20588
20589 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
20590
20591         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
20592         %{muser-extend-enabled}.
20593
20594 2011-02-16  Richard Guenther  <rguenther@suse.de>
20595
20596         PR tree-optimization/47738
20597         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
20598         the TODO from tree_predictive_commoning.
20599
20600 2011-02-15  Jeff Law  <law@redhat.com>
20601
20602         Revert
20603         2011-01-25  Jeff Law  <law@redhat.com>
20604
20605         PR rtl-optimization/37273
20606         * ira-costs.c (scan_one_insn): Detect constants living in memory and
20607         handle them like argument loads from stack slots.  Do not double
20608         count memory for memory constants and argument loads from stack slots.
20609
20610 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
20611
20612         PR target/47755
20613         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
20614         mode for vector constants.  Remove code that checks for TImode.
20615
20616 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
20617
20618         PR debug/47106
20619         PR debug/47402
20620         * cgraph.h (compute_inline_parameters): Return void.
20621         * ipa-inline.c (compute_inline_parameters): Adjust.
20622
20623 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
20624
20625         PR debug/47106
20626         PR debug/47402
20627         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
20628         rather than decl.
20629         * cfgexpand.c (estimated_stack_frame_size): Likewise.
20630         * ipa-inline.c (compute_inline_parameters): Adjust.
20631
20632 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
20633
20634         PR debug/47106
20635         PR debug/47402
20636         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
20637         Adjust all users.  Pass FN to...
20638         * tree-flow-inline.h (first_referenced_var): ... this.  Add
20639         fn argument.
20640         * ipa-struct-reorg.c: Adjust.
20641         * tree-dfa.c: Adjust.
20642         * tree-into-ssa.c: Adjust.
20643         * tree-sra.c: Adjust.
20644         * tree-ssa-alias.c: Adjust.
20645         * tree-ssa-live.c: Adjust.
20646         * tree-ssa.c: Adjust.
20647         * tree-ssanames.c: Adjust.
20648         * tree-tailcall.c: Adjust.
20649
20650 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
20651
20652         PR debug/47106
20653         PR debug/47402
20654         * tree-flow.h (referenced_var_lookup): Add fn parameter.
20655         Adjust all callers.
20656         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
20657         * tree-flow-inline.h: Adjust.
20658         * gimple-pretty-print.c: Adjust.
20659         * tree-into-ssa.c: Adjust.
20660         * tree-ssa.c: Adjust.
20661         * cfgexpand.c: Adjust.
20662
20663 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
20664
20665         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
20666         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20667         (EXTRA_CONSTRAINT): Delete.
20668         * config/iq2000/constraints.md: New file.
20669         * config/iq2000/iq2000.md: Include it.
20670         (define_insn ""): Delete.
20671         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
20672         unsupported constraint letters from patterns.
20673         (call_value, call_value_internal1): Likewise.
20674         (call_value_multiple_internal1): Likewise.
20675
20676 2011-02-15  Nick Clifton  <nickc@redhat.com>
20677
20678         * config/mn10300/mn10300.c: Include tm-constrs.h.
20679         (struct liw_data): New data structure describing an LIW candidate
20680         instruction.
20681         (extract_bundle): Use struct liw_data.  Allow small integer
20682         operands for some instructions.
20683         (check_liw_constraints): Use struct liw_data.  Remove swapped
20684         parameter.  Add comments describing the checks.  Fix bug when
20685         assigning the source of liw1 to the source of liw2.
20686         (liw_candidate): Delete.  Code moved into extract_bundle.
20687         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
20688         before swapping.
20689         * config/mn10300/predicates.md (liw_operand): New predicate.
20690         Allows registers and small integer constants.
20691         * config/mn10300/constraints.md (O): New constraint.  Accetps
20692         integers in the range -8 to +7 inclusive.
20693         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
20694         for moving a small integer into a register.  Give this alternative
20695         LIW attributes.
20696         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
20697         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
20698         using the J,K,L and M constraints,
20699         (liw): Remove SI mode on second operands to allow for HI and QI
20700         mode values.
20701         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
20702         instruction.
20703
20704 2011-02-15  Richard Guenther  <rguenther@suse.de>
20705
20706         PR tree-optimization/47743
20707         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
20708         for a non-type-compatible VN lookup bail out.
20709
20710 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
20711
20712         * config/fr30/constraints.md: New file.
20713         * config/fr30/fr30.md: Include it.
20714         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
20715         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20716         (EXTRA_CONSTRAINT): Delete.
20717
20718 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
20719
20720         * config/frv/constraints.md: New file.
20721         * config/frv/predicates.md: Include it.
20722         * config/frv/frv.c (reg_class_from_letter): Delete.
20723         (frv_option_override): Don't initialize it.
20724         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
20725         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
20726         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
20727         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
20728         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
20729         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20730         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
20731         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
20732         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
20733         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
20734         (REG_CLASS_FROM_CONSTRAINT): Delete.
20735
20736 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
20737
20738         PR middle-end/47581
20739         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
20740         if frame size is 0 in a leaf function.
20741
20742 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20743
20744         PR pch/14940
20745         * config/alpha/host-osf.c: New file.
20746         * config/alpha/x-osf: New file.
20747         * config.host (alpha*-dec-osf*): Use it.
20748
20749 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
20750
20751         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
20752         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
20753         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
20754         (rx_mode_dependent_address_p): ...this. Make static. Change argument
20755         type to const_rtx.
20756         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
20757
20758 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
20759
20760         * config/stormy16/constraints.md: New file.
20761         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
20762         Use satisfies_constraint_Q and satisfies_constraint_R.
20763         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
20764         Delete.
20765         (xstormy16_legitiamte_address_p): Declare.
20766         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
20767         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20768         (EXTRA_CONSTRAINT): Delete.
20769         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
20770         Un-staticize.
20771         (xstormy16_extra_constraint_p): Delete.
20772
20773 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
20774
20775         PR tree-optimization/46494
20776         * loop-unroll.c (split_edge_and_insert): Adjust comment.
20777         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
20778         (pass_rtl_loop_done): Add TODO_verify_flow.
20779         * fwprop.c (pass_rtl_fwprop): Likewise.
20780         * modulo-sched.c (pass_sms): Likewise.
20781         * tree-ssa-dom.c (pass_dominator): Likewise.
20782         * tree-ssa-loop-ch.c (pass_ch): Likewise.
20783         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
20784         (pass_tree_loop_done): Likewise.
20785         * tree-ssa-pre.c (execute_pre): Likewise.
20786         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
20787         * tree-ssa-sink.c (pass_sink_code): Likewise.
20788         * tree-vrp.c (pass_vrp): Likewise.
20789
20790 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
20791
20792         * config/v850/constraints.md: New file.
20793         * config/v850/v850.md: Include it.
20794         * config/v850/predicates.md (reg_or_0_operand): Use
20795         satisfies_constraint_G.
20796         (special_symbolref_operand): Use satisfies_constraint_K.
20797         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
20798         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
20799         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
20800         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
20801         (EXTRA_CONSTRAINT): Delete.
20802         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
20803         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
20804         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
20805
20806 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
20807
20808         PR target/47696
20809         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
20810         description.
20811
20812 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
20813
20814         * config/mcore/constraints.md: New file.
20815         * config/mcore/mcore.md: Include it.
20816         * config/mcore/mcore.c (reg_class_from_letter): Delete.
20817         * config/mcore/mcore.h (reg_class_from_letter): Delete.
20818         (REG_CLASS_FROM_LETTER): Delete.
20819         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
20820         insn_const_int_ok_for_constraint.
20821         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
20822         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
20823         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20824         (EXTRA_CONSTRAINT): Delete.
20825
20826 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20827
20828         PR ada/41929
20829         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
20830         (IS_SIGHANDLER): Define.
20831         (sparc64_is_sighandler): New function, split off from
20832         sparc64_fallback_frame_state.
20833         (sparc_is_sighandler): New function, split off from
20834         sparc_fallback_frame_state.
20835         (sparc64_fallback_frame_state): Merge with ...
20836         (sparc_fallback_frame_state): ... this into ...
20837         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
20838         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
20839         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
20840         stack instead of hardcoded offsets.
20841
20842 2011-02-14  Andriy Gapon  <avg@freebsd.org>
20843
20844         PR target/45808
20845         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
20846
20847 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20848
20849         * configure: Regenerate.
20850
20851 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
20852
20853         PR driver/45731
20854         * gcc.c (asm_options): Correct spec matching --target-help.
20855
20856 2011-02-12  Martin Jambor  <mjambor@suse.cz>
20857
20858         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
20859         to gimple call error.
20860
20861 2011-02-12  Mike Stump  <mikestump@comcast.net>
20862
20863         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
20864         comments in backslash regions.
20865
20866 2011-02-12  Mike Stump  <mikestump@comcast.net>
20867             Jakub Jelinek  <jakub@redhat.com>
20868             Iain Sandoe  <iains@gcc.gnu.org>
20869
20870         PR target/47324
20871         * dwarf2out.c (output_cfa_loc): When required, apply the
20872         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
20873         (output_loc_sequence): Likewise.
20874         (output_loc_operands_raw): Likewise.
20875         (output_loc_sequence_raw): Likewise.
20876         (output_cfa_loc): Likewise.
20877         (output_loc_list): Suppress register number adjustment when
20878         calling output_loc_sequence()
20879         (output_die): Likewise.
20880
20881 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
20882
20883         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
20884         Remove macros.
20885         * config/xtensa/xtensa.c (xtensa_register_move_cost,
20886         xtensa_memory_move_cost): New functions.
20887         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
20888
20889 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
20890
20891         PR lto/47225
20892         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
20893         in the current directory.
20894         * configure: Rebuilt.
20895
20896 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
20897
20898         * config/darwin.c (darwin_override_options): Add a hunk missed
20899         from the commit of r168571.  Trim comment line lengths and
20900         correct indents of the preceding block.
20901
20902 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
20903
20904         * gcc.c (driver_handle_option): Concatenate the argument to -F with
20905         the switch.
20906
20907 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
20908
20909         * common.opt (nostartfiles): New Driver option.
20910
20911 2011-02-11  Xinliang David Li  <davidxl@google.com>
20912
20913         PR tree-optimization/47707
20914         * tree-chrec.c (convert_affine_scev): Keep type precision.
20915
20916 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
20917
20918         PR tree-optimization/47420
20919         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
20920
20921 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
20922
20923         PR rtl-optimization/47614
20924         * rtl.h (check_for_inc_dec): Declare.
20925         * dse.c (check_for_inc_dec): Externalize...
20926         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
20927         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
20928
20929 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
20930
20931         PR driver/47678
20932         * gcc.c (main): Do not compile inputs if there were errors in
20933         option handling.
20934         * opts-common.c (read_cmdline_option): Check for wrong language
20935         after other error checks.
20936
20937 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
20938
20939         * cgraph.c: Fix comment typos.
20940         * cgraph.h: Likewise.
20941         * cgraphunit.c: Likewise.
20942         * ipa-cp.c: Likewise.
20943         * ipa-inline.c: Likewise.
20944         * ipa-prop.c: Likewise.
20945         * ipa-pure-const.c: Likewise.
20946         * ipa-ref.c: Likewise.
20947         * ipa-reference.c: Likewise.
20948
20949 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
20950
20951         PR debug/47684
20952         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
20953
20954 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20955
20956         PR testsuite/47400
20957         * doc/sourcebuild.texi (Require Support): Document
20958         dg-require-ascii-locale.
20959
20960 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
20961
20962         * doc/lto.texi (Write summary): Fix missing parentheses.
20963
20964 2011-02-10  DJ Delorie  <dj@redhat.com>
20965
20966         * config/m32c/m32c.c (m32c_option_override): Disable
20967         -fcombine-stack-adjustments until flag value tracking and compare
20968         optimization can be rewritten.
20969
20970 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
20971
20972         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
20973         PROCESSOR_POWER7.
20974         (PROCESSOR_DEFAULT64): Likewise.
20975
20976 2011-02-10  Richard Henderson  <rth@redhat.com>
20977
20978         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
20979         change from 2011-02-03.
20980         * config/rx/rx.c (flags_from_code): Likewise.
20981         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
20982         is valid, n/pz otherwise.
20983         (rx_select_cc_mode): Return CCmode if Y is not zero.
20984
20985 2011-02-10  Richard Guenther  <rguenther@suse.de>
20986
20987         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
20988
20989 2011-02-10  Richard Guenther  <rguenther@suse.de>
20990
20991         PR tree-optimization/47677
20992         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
20993
20994 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
20995
20996         PR target/47665
20997         * combine.c (make_compound_operation): Only change shifts into
20998         multiplication for SCALAR_INT_MODE_P.
20999
21000 2011-02-10  Jie Zhang  <jie@codesourcery.com>
21001
21002         PR testsuite/47622
21003         Revert
21004         2011-02-05  Jie Zhang  <jie@codesourcery.com>
21005         PR debug/42631
21006         * web.c (entry_register): Don't clobber the number of the
21007         first uninitialized reference in used[].
21008
21009 2011-02-09  Richard Guenther  <rguenther@suse.de>
21010
21011         PR tree-optimization/47664
21012         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
21013         all edges again.
21014
21015 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
21016
21017         PR target/46481
21018         PR target/47032
21019         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
21020         PROCESSOR_POWER7.
21021         (PROCESSOR_DEFAULT64): Same.
21022         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
21023
21024 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21025
21026         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
21027
21028 2011-02-09  Martin Jambor  <mjambor@suse.cz>
21029
21030         PR middle-end/45505
21031         * tree-sra.c (struct access): New flags grp_scalar_read and
21032         grp_scalar_write.  Changed description of assignment read and write
21033         flags.
21034         (dump_access): Dump new flags, reorder all of them.
21035         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
21036         to detect multiple scalar reads.
21037         (analyze_access_subtree): Use the new scalar read write flags instead
21038         of the old flags.  Adjusted comments.
21039
21040 2011-02-08  DJ Delorie  <dj@redhat.com>
21041
21042         PR target/47548
21043         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
21044         patterns.
21045
21046 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
21047
21048         * config/m68k/uclinux.opt: New.
21049         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
21050
21051 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
21052
21053         * config/cris/elf.opt (sim): New Driver option.
21054
21055 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
21056
21057         * config/xtensa/elf.opt: New.
21058         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
21059
21060 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
21061
21062         * config/vax/elf.opt: New.
21063         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
21064
21065 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
21066
21067         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
21068
21069 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
21070
21071         * config/gnu-user.opt: New.
21072         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
21073         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
21074         *-*-uclinux*): Use gnu-user.opt.
21075
21076 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
21077
21078         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
21079         * config/i386/gnu.h (CPP_SPEC): Likewise.
21080
21081 2011-02-08  Ian Lance Taylor  <iant@google.com>
21082
21083         * common.opt (fcx-limited-range): Add SetByCombined flag.
21084         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
21085         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
21086         (fassociative-math, freciprocal-math): Likewise.
21087         (funsafe-math-optimizations): Likewise.
21088         * opth-gen.awk: Handle SetByCombined.
21089         * optc-gen.awk: Likewise.
21090         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
21091         (set_unsafe_math_optimizations_flags): Likewise.
21092         * doc/options.texi (Option properties): Document SetByCombined.
21093
21094 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
21095
21096         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
21097         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
21098         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
21099         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
21100         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
21101
21102 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
21103
21104         PR tree-optimization/46834
21105         PR tree-optimization/46994
21106         PR tree-optimization/46995
21107         * graphite-sese-to-poly.c (used_outside_reduction): New.
21108         (detect_commutative_reduction): Call used_outside_reduction.
21109         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
21110         translate_scalar_reduction_to_array only when at least one
21111         loop-phi/close-phi tuple has been detected.
21112
21113 2011-02-08  Richard Guenther  <rguenther@suse.de>
21114
21115         PR middle-end/47639
21116         * tree-vect-generic.c (expand_vector_operations_1): Update
21117         stmts here ...
21118         (expand_vector_operations): ... not here.  Cleanup EH info
21119         and the CFG if required.
21120
21121 2011-02-08  Richard Guenther  <rguenther@suse.de>
21122
21123         PR tree-optimization/47641
21124         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
21125         require type compatibility.
21126
21127 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21128
21129         * gimple-low.c (lower_function_body): Don't remove the location of
21130         the return statement here.
21131         (lower_gimple_return): Do it here instead but only if the return
21132         statement is actually used twice.
21133
21134 2011-02-08  Richard Guenther  <rguenther@suse.de>
21135
21136         PR tree-optimization/47632
21137         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
21138         unused up_to_stmt parameter, return whether cfg-cleanup is
21139         necessary, remove EH info properly.
21140         (forward_propagate_into_gimple_cond): Adjust caller.
21141         (forward_propagate_into_cond): Likewise.
21142         (forward_propagate_comparison): Likewise.
21143         (tree_ssa_forward_propagate_single_use_vars): Make
21144         forward_propagate_comparison case similar to the two others.
21145
21146 2011-02-08  Nick Clifton  <nickc@redhat.com>
21147
21148         * config/mn10300/mn10300.opt (mliw): New command line option.
21149         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
21150         (liw_bundling): New automaton.
21151         (liw): New attribute.
21152         (liw_op): New attribute.
21153         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
21154         (movsi_internal): Add LIW attributes.
21155         (andsi3): Likewise.
21156         (iorsi3): Likewise.
21157         (xorsi3): Likewise.
21158         (addsi3): Separate register and immediate alternatives.
21159         Add LIW attributes.
21160         (subsi3): Likewise.
21161         (cmpsi): Likewise.
21162         (aslsi3): Likewise.
21163         (lshrsi3): Likewise.
21164         (ashrsi3): Likewise.
21165         (liw): New pattern.
21166         * config/mn10300/mn10300.c (liw_op_names): New
21167         (mn10300_print_operand): Handle 'W' operand descriptor.
21168         (extract_bundle): New function.
21169         (check_liw_constraints): New function.
21170         (liw_candidate): New function.
21171         (mn10300_bundle_liw): New function.
21172         (mn10300_reorg): New function.
21173         (TARGET_MACHINE_DEPENDENT_REORG): Define.
21174         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
21175         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
21176         __LIW__ or __NO_LIW__.
21177         * doc/invoke.texi: Describe the -mliw command line option.
21178
21179 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21180
21181         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
21182         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
21183         pthread_mutex_unlock): Remove.
21184         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
21185         * config/pa/t-pa64: Likewise.
21186         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
21187         shared libc if not linking against libpthread.
21188         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
21189
21190 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
21191
21192         PR target/47558
21193         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
21194         on 10.6 and later to ensure that we always use the unwinder from
21195         the system.  Only add -no_compact_unwind when tarteting darwin
21196         10.6 or later.
21197
21198 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
21199
21200         PR target/46997
21201         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
21202         (vec_interleave_lowv2sf): Ditto.
21203         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
21204         (vec_extract_oddv2sf): Ditto.
21205
21206 2011-02-07  Mike Stump  <mikestump@comcast.net>
21207
21208         PR target/42333
21209         Add __ieee_divdc3 entry point.
21210         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
21211         entry point.
21212         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
21213         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
21214         * config/darwin.c (darwin_rename_builtins): Add.
21215         * config/darwin-protos.h (darwin_rename_builtins): Add.
21216
21217 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
21218
21219         PR target/47636
21220         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
21221         for the condition.
21222
21223 2011-02-07  Mike Stump  <mikestump@comcast.net>
21224
21225         * config/darwin.opt (mmacosx-version-min): Update default OS version.
21226
21227 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
21228
21229         PR target/47534
21230         * config/avr/libgcc.S (exit): Move .endfunc
21231
21232 2011-02-07  Richard Guenther  <rguenther@suse.de>
21233
21234         PR tree-optimization/47615
21235         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
21236         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
21237         (run_scc_vn): Initialize it.
21238         (visit_reference_op_load): Use it.
21239         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
21240
21241 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21242
21243         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
21244         DImode trapping arithmetic libfuncs.
21245
21246 2011-02-07  Richard Guenther  <rguenther@suse.de>
21247
21248         PR tree-optimization/47621
21249         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
21250         two duplicates ...
21251         (execute_update_addresses_taken): ... here.  Make it more
21252         conservative in what we accept.
21253
21254 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
21255
21256         * config/sparc/freebsd.h (ASM_SPEC): Define.
21257         * config/sparc/vxworks.h (ASM_SPEC): Define.
21258
21259 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
21260
21261         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
21262
21263 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
21264
21265         * doc/invoke.texi: Remove reference to compiler internals from
21266         user documentation.
21267
21268         * reg-notes.def: Remove REG_VALUE_PROFILE.
21269         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
21270
21271 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
21272
21273         PR middle-end/47610
21274         * varasm.c (default_section_type_flags): If decl is NULL,
21275         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
21276
21277 2011-02-05  Jie Zhang  <jie@codesourcery.com>
21278
21279         PR debug/42631
21280         * web.c (entry_register): Don't clobber the number of the
21281         first uninitialized reference in used[].
21282
21283 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
21284
21285         PR tree-optimization/46194
21286         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
21287         (build_classic_dist_vector_1): Do not represent classic distance
21288         vectors when the access functions are variating in different loops.
21289
21290 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
21291
21292         * config/mips/iris6.opt: New.
21293         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
21294
21295 2011-02-04  Richard Henderson  <rth@redhat.com>
21296             Steve Ellcey  <sje@cup.hp.com>
21297
21298         PR target/46997
21299         * config/ia64/predicates.md (mux1_brcst_element): New.
21300         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
21301         * config/ia64/ia64.c (ia64_unpack_assemble): New.
21302         (ia64_unpack_sign): New.
21303         (ia64_expand_unpack): Rewrite using new routines.
21304         (ia64_expand_widen_sum): Ditto.
21305         (ia64_expand_dot_prod_v8qi): Ditto.
21306         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
21307         routines, add endian check.
21308         (pmpy2_even): Rename from pmpy2_r, add endian check.
21309         (pmpy2_odd): Rename from pmpy2_l, add endian check.
21310         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
21311         (vec_widen_smult_hi_v4hi): Ditto.
21312         (vec_widen_umult_lo_v4hi): Ditto.
21313         (vec_widen_umult_hi_v4hi): Ditto.
21314         (mulv2si3): Change endian checks.
21315         (sdot_prodv4hi): Rewrite with new calls.
21316         (udot_prodv4hi): New.
21317         (vec_pack_ssat_v4hi): Add endian check.
21318         (vec_pack_usat_v4hi): Ditto.
21319         (vec_pack_ssat_v2si): Ditto.
21320         (max1_even): Rename from max1_r, add endian check.
21321         (max1_odd): Rename from max1_l, add endian check.
21322         (*mux1_rev): Format change.
21323         (*mux1_mix): Ditto.
21324         (*mux1_shuf): Ditto.
21325         (*mux1_alt): Ditto.
21326         (*mux1_brcst_v8qi): Use new predicate.
21327         (vec_extract_evenv8qi): Remove endian check.
21328         (vec_extract_oddv8qi): Ditto.
21329         (vec_interleave_lowv4hi): Format change.
21330         (vec_interleave_highv4hi): Ditto.
21331         (mix2_even): Rename from mix2_r, add endian check.
21332         (mix2_odd): Rename from mux2_l, add endian check.
21333         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
21334         (vec_extract_evenodd_helper): Format change.
21335         (vec_extract_evenv4hi): Remove endian check.
21336         (vec_extract_oddv4hi): Remove endian check.
21337         (vec_interleave_lowv2si): Format change.
21338         (vec_interleave_highv2si): Format change.
21339         (vec_initv2si): Remove endian check.
21340         (vecinit_v2si): Add endian check.
21341         (reduc_splus_v2sf): Add endian check.
21342         (reduc_smax_v2sf): Ditto.
21343         (reduc_smin_v2sf): Ditto.
21344         (vec_initv2sf): Remove endian check.
21345         (fpack): Add endian check.
21346         (fswap): Add endian check.
21347         (vec_interleave_highv2sf): Add endian check.
21348         (vec_interleave_lowv2sf): Add endian check.
21349         (fmix_lr): Add endian check.
21350         (vec_setv2sf): Format change.
21351         (*vec_extractv2sf_0_be): Use shift to extract operand.
21352         (*vec_extractv2sf_1_be): New.
21353         (vec_pack_trunc_v4hi): Add endian check.
21354         (vec_pack_trunc_v2si): Format change.
21355
21356 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
21357
21358         PR inline-asm/23200
21359         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
21360         do bb, locus and block comparison and disallow loads if it is not set.
21361         (stmt_is_replaceable_p): New function.
21362         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
21363         callers.
21364         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
21365         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
21366         SSA_NAME_DEF_STMT.
21367         * tree-flow.h (stmt_is_replaceable_p): New prototype.
21368
21369 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
21370
21371         * config/rs6000/xilinx.opt: New.
21372         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
21373
21374 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
21375
21376         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
21377
21378 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
21379
21380         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
21381         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
21382         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
21383         secondary_reload_info, xtensa_secondary_reload): Remove.
21384         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
21385         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
21386         (xtensa_preferred_reload_class): Make static. Change return and
21387         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
21388         Use CONST_DOUBLE_P predicate.
21389         (xtensa_preferred_output_reload_class): New function.
21390         (xtensa_secondary_reload): Make static.
21391
21392 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
21393
21394         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
21395         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
21396         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
21397
21398 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
21399
21400         PR middle-end/31490
21401         * output.h (SECTION_RELRO): Define.
21402         (SECTION_MACH_DEP): Adjust.
21403         (get_variable_section): New prototype.
21404         * varpool.c (varpool_finalize_named_section_flags): New function.
21405         (varpool_assemble_pending_decls): Call it.
21406         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
21407         * cgraphunit.c (cgraph_output_in_order): Call
21408         varpool_finalize_named_section_flags.
21409         * varasm.c (get_section): Allow section flags conflicts between
21410         relro and read-only sections if the section hasn't been declared yet.
21411         Set SECTION_OVERRIDE after diagnosing section type conflict.
21412         (get_variable_section): No longer static.
21413         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
21414         readonly sections that need relocations.
21415         (decl_readonly_section_1): New function.
21416         (decl_readonly_section): Use it.
21417
21418         Revert:
21419         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
21420                     Steve Ellcey  <sje@cup.hp.com>
21421
21422         PR middle-end/31490
21423         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
21424         if section attribute used.
21425
21426 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
21427
21428         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
21429         * config/darwin.c (SECTION_NO_ANCHOR): Define.
21430         (darwin_init_sections): Remove assertion.
21431
21432 2011-02-03  Nick Clifton  <nickc@redhat.com>
21433
21434         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
21435         lt and ge.
21436         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
21437         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
21438         instead of "n" and "pz".
21439         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
21440         CC_FLAG_S.
21441
21442 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
21443
21444         PR target/47312
21445         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
21446         fma, expand FMA_EXPR as fma{,f,l} call.
21447
21448         PR lto/47274
21449         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
21450         copy them into a unsigned char variable and pass address of it to
21451         lto_output_data_stream.
21452
21453         PR target/47564
21454         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
21455         around backend_init_target and lang_dependent_init_target calls.
21456         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
21457         (verify_cgraph_node): Don't call set_cfun here.  Use
21458         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
21459         Set error_found for incorrectly represented calls to thunks.
21460
21461 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
21462
21463         PR debug/43092
21464         PR rtl-optimization/43494
21465         * rtl.h (for_each_inc_dec_fn): New type.
21466         (for_each_inc_dec): Declare.
21467         * rtlanal.c (struct for_each_inc_dec_ops): New type.
21468         (for_each_inc_dec_find_inc_dec): New fn.
21469         (for_each_inc_dec_find_mem): New fn.
21470         (for_each_inc_dec): New fn.
21471         * dse.c (struct insn_size): Remove.
21472         (replace_inc_dec, replace_inc_dec_mem): Remove.
21473         (emit_inc_dec_insn_before): New fn.
21474         (check_for_inc_dec): Use it, along with for_each_inc_dec.
21475         (canon_address): Pass mem modes to cselib_lookup.
21476         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
21477         (cselib_lookup_from_insn): Likewise.
21478         (cselib_subst_to_values): Likewise.
21479         * cselib.c (find_slot_memmode): New var.
21480         (cselib_find_slot): New fn.  Use it instead of
21481         htab_find_slot_with_hash everywhere.
21482         (entry_and_rtx_equal_p): Use find_slot_memmode.
21483         (autoinc_split): New fn.
21484         (rtx_equal_for_cselib_p): Rename and implement in terms of...
21485         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
21486         Deal with autoinc.  Special-case recursion into MEMs.
21487         (cselib_hash_rtx): Likewise.
21488         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
21489         address and MEM modes.
21490         (cselib_subst_to_values): Add memmode, pass it on.
21491         Deal with autoinc.
21492         (cselib_lookup): Add memmode argument, pass it on.
21493         (cselib_lookup_from_insn): Add memmode.
21494         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
21495         (struct cselib_record_autoinc_data): New.
21496         (cselib_record_autoinc_cb): New fn.
21497         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
21498         mode to cselib_lookup.  Reset autoinced REGs here instead of...
21499         (cselib_process_insn): ... here.
21500         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
21501         to cselib_lookup.
21502         (add_uses): Likewise, also to cselib_subst_to_values.
21503         (add_stores): Likewise.
21504         * sched-deps.c (add_insn_mem_dependence): Pass mode to
21505         cselib_subst_to_values.
21506         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
21507         * gcse.c (do_local_cprop): Adjusted.
21508         * postreload.c (reload_cse_simplify_set): Adjusted.
21509         (reload_cse_simplify_operands): Adjusted.
21510         * sel-sched-dump (debug_mem_addr_value): Pass mode.
21511
21512 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
21513
21514         PR tree-optimization/45122
21515         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
21516         unsafe assumptions when there's more than one loop exit.
21517
21518 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
21519
21520         PR target/47272
21521         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21522         Document using vector double with the load/store builtins, and
21523         that the load/store builtins always use Altivec instructions.
21524
21525         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
21526         to use altivec memory instructions, even on VSX.
21527         (vector_altivec_store_<mode>): Ditto.
21528
21529         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
21530         function.
21531
21532         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21533         V2DF, V2DI support to load/store overloaded builtins.
21534
21535         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
21536         altivec load/store builtins for V2DF/V2DI types.
21537
21538         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
21539         set avoid indexed addresses on power6 if -maltivec.
21540         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
21541         vector_altivec_load/vector_altivec_store builtins.
21542         (altivec_expand_st_builtin): Ditto.
21543         (altivec_expand_builtin): Add VSX memory builtins.
21544         (rs6000_init_builtins): Add V2DI types to internal types.
21545         (altivec_init_builtins): Add support for V2DF/V2DI altivec
21546         load/store builtins.
21547         (rs6000_address_for_altivec): Insure memory address is appropriate
21548         for Altivec.
21549
21550         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
21551         vec_vsx_ld and vec_vsx_st.
21552         (vsx_store_<mode>): Ditto.
21553
21554         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
21555         variables to hold long long types for VSX vector memory builtins.
21556         (RS6000_BTI_unsigned_long_long): Ditto.
21557         (long_long_integer_type_internal_node): Ditti.
21558         (long_long_unsigned_type_internal_node): Ditti.
21559
21560         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
21561         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
21562         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
21563
21564         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
21565         short cuts.
21566         (vec_vsx_st): Ditto.
21567
21568 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
21569
21570         * config/pa/pa-hpux10.opt: New.
21571         * config/hpux11.opt (pthread): New Driver option.
21572         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
21573         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
21574
21575 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
21576
21577         * config/ia64/vms.opt: New.
21578         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
21579
21580 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
21581
21582         PR target/47580
21583         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
21584         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
21585         generator functions.
21586         (vsx_floatuns<VSi><mode>2): Ditto.
21587         (vsx_fix_trunc<mode><VSi>2): Ditto.
21588         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
21589
21590 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
21591
21592         * config/i386/djgpp.opt (posix): New Driver option.
21593
21594 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
21595
21596         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
21597         Move to the unsupported targets list.
21598
21599 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
21600
21601         PR rtl-optimization/47525
21602         * df-scan.c: Update copyright years.
21603         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
21604         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
21605
21606 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21607
21608         * config/i386/sysv4.h (TARGET_VERSION): Remove.
21609         (SUBTARGET_RETURN_IN_MEMORY): Remove.
21610         (ASM_OUTPUT_ASCII): Remove.
21611         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
21612
21613 2011-02-02  Jeff Law  <law@redhat.com>
21614
21615         PR middle-end/47543
21616         * reload.c (find_reloads_address): Handle reg+d address where both
21617         components are invalid by reloading the entire address.
21618
21619 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
21620             Richard Guenther  <rguenther@suse.de>
21621
21622         PR tree-optimization/40979
21623         PR bootstrap/47044
21624         * passes.c (init_optimization_passes): After LIM call copy_prop
21625         and DCE to clean up.
21626         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
21627
21628 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
21629
21630         PR tree-optimization/47576
21631         PR tree-optimization/47555
21632         * doc/invoke.texi (scev-max-expr-complexity): Documented.
21633         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
21634         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
21635         * tree-scalar-evolution.c (follow_ssa_edge): Use
21636         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
21637
21638 2011-02-02  Richard Guenther  <rguenther@suse.de>
21639
21640         PR tree-optimization/47566
21641         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
21642
21643 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
21644
21645         PR debug/47106
21646         PR debug/47402
21647         * tree-inline.c (declare_return_variable): Remove unused caller
21648         variable.
21649
21650         PR debug/47106
21651         PR debug/47402
21652         * tree-flow-inline.h (clear_is_used, is_used_p): New.
21653         * cfgexpand.c (account_used_vars_for_block): Use them.
21654         * tree-nrv.c (tree_nrv): Likewise.
21655         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
21656         (dump_scope_block): Likewise.
21657         (remove_unused_locals): Likewise.
21658
21659         PR debug/47106
21660         PR debug/47402
21661         * tree-inline.c (declare_return_variable): Add result decl to
21662         local decls only once.
21663         * gimple-low.c (record_vars_into): Mark newly-created variables
21664         as referenced.
21665
21666 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
21667
21668         PR debug/47498
21669         PR debug/47501
21670         PR debug/45136
21671         PR debug/45130
21672         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
21673         debug insns.
21674         (no_real_insns_p, schedule_block, set_priorities): Drop special
21675         treatment of boundary debug insns.
21676         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
21677         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
21678         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
21679         (BOUNDARY_DEBUG_INSN_P): Likewise.
21680         (SCHEDULE_DEBUG_INSN_P): Likewise.
21681         * sched-rgn.c (init_ready_list): Drop special treatment of
21682         boundary debug insns.
21683         * final.c (rest_of_clean_state): Clear notes' BB.
21684
21685 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
21686
21687         * config/openbsd.opt (assert=): New Driver option.
21688
21689 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
21690
21691         * config/i386/nto.opt: New.
21692         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
21693
21694 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
21695
21696         * config/i386/netware.opt: New.
21697         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
21698
21699 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
21700
21701         * config/interix.opt (posix): New Driver option.
21702
21703 2011-02-01  DJ Delorie  <dj@redhat.com>
21704
21705         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
21706
21707         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
21708         class for A0/A1.
21709
21710 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
21711
21712         PR tree-optimization/47561
21713         * toplev.c (process_options): Print the Graphite flags.  Add
21714         flag_loop_flatten to the list of options requiring Graphite.
21715
21716 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
21717
21718         * config/i386/cygming.opt (posix): New Driver option.
21719
21720 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
21721
21722         * config/arm/vxworks.opt: New.
21723         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
21724
21725 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
21726
21727         * config/alpha/elf.opt: New.
21728         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
21729         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
21730
21731 2011-02-01  Richard Guenther  <rguenther@suse.de>
21732
21733         PR tree-optimization/47559
21734         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
21735         store-motion on references that can throw.
21736
21737 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
21738
21739         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
21740         * tree-pass.h (TDF_CSELIB): New macro.
21741         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
21742         cselib_lookup): Check for it rather than for TDF_DETAILS.
21743
21744 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
21745
21746         PR driver/47547
21747         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
21748         is HOST_BIT_BUCKET.
21749
21750         * opts.c (finish_options): Don't add x_aux_base_name if it is
21751         HOST_BIT_BUCKET.
21752
21753 2011-02-01  Richard Guenther  <rguenther@suse.de>
21754
21755         PR tree-optimization/47555
21756         Revert
21757         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
21758
21759         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
21760
21761 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
21762
21763         PR gcc/46692
21764         * config/lm32/t-lm32: Add multilib for all CPU options.
21765
21766 2011-02-01  Richard Guenther  <rguenther@suse.de>
21767
21768         PR tree-optimization/47541
21769         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
21770         sure to have a field at offset zero.
21771
21772 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
21773
21774         * config/arc/arc.opt (EB, EL): New Driver options.
21775
21776 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
21777
21778         * config/alpha/osf5.opt: New.
21779         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
21780
21781 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
21782
21783         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
21784
21785 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
21786
21787         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
21788         -floop-interchange.
21789         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
21790         is an alias of -floop-interchange and that it requires the
21791         Graphite infrastructure.
21792         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
21793         flag_loop_interchange based on the value of flag_tree_loop_linear.
21794
21795 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
21796             Richard Guenther  <rguenther@suse.de>
21797
21798         PR tree-optimization/47538
21799         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
21800         type instead of r1type, except for comparisons.  For right
21801         shifts and comparisons punt if there are mismatches in
21802         sizetype vs. non-sizetype types.
21803
21804 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21805
21806         * doc/sourcebuild.texi (Effective-Target Keywords): Document
21807         avx_runtime.
21808
21809 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21810
21811         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
21812         version number.
21813         * configure: Regenerate.
21814
21815 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21816
21817         * configure.ac (gcc_cv_ld_static_option): Define.
21818         (gcc_cv_ld_dynamic_option): Define.
21819         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
21820         instead.
21821         (HAVE_LD_STATIC_DYNAMIC): Update message.
21822         (LD_STATIC_OPTION): Define.
21823         (LD_DYNAMIC_OPTION): Define.
21824         * configure: Regenerate.
21825         * config.in: Regenerate.
21826         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
21827         HAVE_LD_STATIC_DYNAMIC]: Use them.
21828
21829 2011-01-31  Nick Clifton  <nickc@redhat.com>
21830
21831         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
21832         registers inside interrupt handlers if the handler is not a leaf
21833         function.
21834
21835 2011-01-31  Nick Clifton  <nickc@redhat.com>
21836
21837         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
21838         reg_renumber returning an INVALID_REGNUM.
21839
21840 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
21841
21842         PR libgcj/44341
21843         * doc/install.texi: Document host options discarded when cross
21844         configuring target libraries.
21845
21846 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
21847
21848         Reverted:
21849         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
21850         PR debug/45136
21851         PR debug/45130
21852         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
21853         debug insns.
21854         (no_real_insns_p, schedule_block, set_priorities): Drop special
21855         treatment of boundary debug insns.
21856         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
21857         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
21858         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
21859         (BOUNDARY_DEBUG_INSN_P): Likewise.
21860         (SCHEDULE_DEBUG_INSN_P): Likewise.
21861         * sched-rgn.c (init_ready_list): Drop special treatment of
21862         boundary debug insns.
21863         * final.c (rest_of_clean-state): Clear notes' BB.
21864
21865 2011-01-31  Alan Modra  <amodra@gmail.com>
21866
21867         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
21868         toc relative expressions as we do in print_operand_address.
21869
21870 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
21871
21872         * doc/extend.texi: Follow spelling conventions.
21873         * doc/invoke.texi: Fix a typo.
21874
21875 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
21876
21877         * config/hpux11.opt: New.
21878         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
21879         ia64*-*-hpux*): Use hpux11.opt.
21880
21881 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
21882
21883         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
21884         to tmake_file.
21885
21886 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
21887
21888         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
21889         support sites.
21890
21891 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
21892
21893         * doc/install.texi (Binaries): Remove outdated reference for
21894         Motorola 68HC11/68HC12 downloads.
21895
21896 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
21897
21898         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
21899         Drepper's paper.
21900
21901 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
21902
21903         PR bootstrap/47147
21904         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
21905         used by NetBSD.
21906
21907 2011-01-28  Ahmad Sharif  <asharif@google.com>
21908
21909         * value-prof.c (check_counter): Corrected error message.
21910
21911 2011-01-29  Jie Zhang  <jie@codesourcery.com>
21912
21913         * config/arm/arm.c (arm_legitimize_reload_address): New.
21914         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
21915         arm_legitimize_reload_address.
21916         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
21917
21918 2011-01-28  Ian Lance Taylor  <iant@google.com>
21919
21920         * godump.c (go_define): Ignore macros whose definitions include
21921         two adjacent operands.
21922
21923 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
21924
21925         PR target/42894
21926         * varasm.c (force_const_mem): Store copy of x in desc->constant
21927         instead of x itself.
21928         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
21929         itself into REG_EQUAL note.
21930
21931 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
21932
21933         * config/freebsd.opt (posix, rdynamic): New Driver options.
21934
21935 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21936
21937         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
21938         -Bstatic/-Bdynamic.
21939         * configure: Regenerate.
21940
21941 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
21942
21943         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
21944         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
21945
21946 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
21947
21948         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
21949         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
21950         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
21951         (s390_preferred_reload_class): Make static. Change return and
21952         'rclass' argument type to reg_class_t.
21953
21954 2011-01-27  Jan Hubicka  <jh@suse.cz>
21955
21956         PR middle-end/46949
21957         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
21958         (process_function_and_variable_attributes): Check defined weakrefs.
21959
21960 2011-01-27  Martin Jambor  <mjambor@suse.cz>
21961
21962         PR tree-optimization/47228
21963         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
21964         build_ref_for_offset.
21965
21966 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21967
21968         * config/spu/spu-elf.h (ASM_SPEC): Remove.
21969
21970 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
21971
21972         PR rtl-optimization/46856
21973         * postreload.c (reload_combine_recognize_const_pattern): Do not
21974         separate cc0 setter and user on cc0 targets.
21975
21976 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
21977
21978         PR c/43082
21979         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
21980         passed a VOID_TYPE expression, immediately emit an error and
21981         return error_mark_node.
21982
21983 2011-01-26  Jeff Law  <law@redhat.com>
21984
21985         PR rtl-optimization/47464
21986         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
21987         rather than may_trap_p as needed.
21988
21989 2011-01-26  DJ Delorie  <dj@redhat.com>
21990
21991         PR rtl-optimization/46878
21992         * combine.c (insn_a_feeds_b): Check for the implicit cc0
21993         setter/user dependency as well.
21994
21995 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
21996
21997         PR rtl-optimization/44469
21998         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
21999         after removing trivially dead basic blocks.
22000
22001 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
22002
22003         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
22004         * config/frv/frv.h (LINK_SPEC): Likewise.
22005         * config/i386/netware.h (LINK_SPEC): Likewise.
22006         * config/m68k/linux.h (ASM_SPEC): Likewise.
22007         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
22008         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
22009         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
22010         * config/sparc/linux.h (ASM_SPEC): Likewise.
22011         * config/sparc/linux64.h (ASM_SPEC): Likewise.
22012         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
22013
22014 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
22015
22016         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
22017         * config/frv/frv.h (ASM_SPEC): Likewise.
22018         * config/m68k/linux.h (ASM_SPEC): Likewise.
22019         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
22020         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
22021         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
22022         * config/sparc/linux.h (ASM_SPEC): Likewise.
22023         * config/sparc/linux64.h (ASM_SPEC): Likewise.
22024         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
22025
22026 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
22027
22028         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
22029         * config/frv/frv.h (LINK_SPEC): Likewise.
22030         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
22031
22032 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
22033
22034         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
22035         * config/frv/frv.h (ASM_SPEC): Likewise.
22036         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
22037         * config/m68k/linux.h (ASM_SPEC): Likewise.
22038         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
22039         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
22040         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
22041         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
22042         * config/sparc/linux.h (ASM_SPEC): Likewise.
22043         * config/sparc/linux64.h (ASM_SPEC): Likewise.
22044         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
22045         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
22046
22047 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
22048
22049         PR target/46997
22050         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
22051         (*mux2): Ditto.
22052         (vec_extract_evenodd_help): Ditto.
22053         (vec_extract_evenv4hi): Ditto.
22054         (vec_extract_oddv4hi): Ditto.
22055         (vec_interleave_lowv2si): Ditto.
22056         (vec_interleave_highv2si): Ditto.
22057         (vec_extract_evenv2si): Ditto.
22058         (vec_extract_oddv2si: Ditto.
22059         (vec_pack_trunc_v2si): Ditto.
22060
22061 2011-01-22  Jan Hubicka  <jh@suse.cz>
22062
22063         PR target/47237
22064         * cgraph.h (cgraph_local_info): New field can_change_signature.
22065         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
22066         signature can change.
22067         (ipcp_estimate_growth): Call sequence simplify only if calle signature
22068         can change.
22069         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
22070         (cgraph_function_versioning): We can not change signature of functions
22071         that don't allow that.
22072         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
22073         (lto_input_node): Likewise.
22074         * ipa-inline.c (compute_inline_parameters): Compute
22075         local.can_change_signature.
22076         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
22077         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
22078         functions that can not change signature.
22079         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
22080         init_cumulative_args): Do not use local calling conventions
22081         for functions that can not change signature.
22082
22083 2011-01-22  Jan Hubicka  <jh@suse.cz>
22084
22085         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
22086
22087 2011-01-26  Richard Guenther  <rguenther@suse.de>
22088
22089         PR tree-optimization/47190
22090         * cgraphunit.c (process_common_attributes): New function.
22091         (process_function_and_variable_attributes): Use it.
22092
22093 2011-01-26  Richard Guenther  <rguenther@suse.de>
22094
22095         PR lto/47423
22096         * cgraphbuild.c (record_eh_tables): Record reference to personality
22097         function.
22098
22099 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
22100
22101         PR debug/45454
22102         * sel-sched.c (moveup_expr): Don't let debug insns prevent
22103         non-debug insns from moving up.
22104
22105 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
22106
22107         PR target/40125
22108         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
22109         t-dlldir{,-x} fragment for build and add it to tmake_file.
22110         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
22111         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
22112         * config/i386/t-dlldir: New file.
22113         (SHLIB_DLLDIR): Define.
22114         * config/i386/t-dlldir-x: New file.
22115         (SHLIB_DLLDIR): Define.
22116         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
22117         (SHLIB_INSTALL): Use it.
22118
22119 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
22120
22121         PR target/47246
22122         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
22123         lower bound of the allowed Thumb-2 coprocessor load/store
22124         index range to -256. Add explaining comment.
22125
22126 2011-01-25  Ian Lance Taylor  <iant@google.com>
22127
22128         * godump.c (go_define): Improve lexing of macro expansion to only
22129         accept expressions which match Go spec.
22130
22131 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
22132
22133         PR c++/43601
22134         * tree.c (handle_dll_attribute): Handle it.
22135         * doc/extend.texi (@item dllexport): Mention it.
22136         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
22137
22138 2011-01-25  Ian Lance Taylor  <iant@google.com>
22139
22140         PR tree-optimization/26854
22141         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
22142         (decl_jump_unsafe): Move higher in file, with no other change.
22143         (bind): Set has_jump_unsafe_decl if appropriate.
22144         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
22145         (check_earlier_gotos): Likewise.
22146         (c_check_switch_jump_warnings): Likewise.
22147
22148 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
22149
22150         * doc/invoke.texi (Warning Options): Add missing hyphen.
22151         (-fprofile-dir): Minor grammatical fixes.
22152         (-fbranch-probabilities): Likewise.
22153
22154 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
22155
22156         PR debug/45136
22157         PR debug/45130
22158         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
22159         debug insns.
22160         (no_real_insns_p, schedule_block, set_priorities): Drop special
22161         treatment of boundary debug insns.
22162         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
22163         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
22164         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
22165         (BOUNDARY_DEBUG_INSN_P): Likewise.
22166         (SCHEDULE_DEBUG_INSN_P): Likewise.
22167         * sched-rgn.c (init_ready_list): Drop special treatment of
22168         boundary debug insns.
22169         * final.c (rest_of_clean-state): Clear notes' BB.
22170
22171 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
22172
22173         * Makefile.in (LAMBDA_H): Removed.
22174         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
22175         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
22176         lambda-trans.o, and tree-loop-linear.o.
22177         (lto-symtab.o): Remove dependence on LAMBDA_H.
22178         (tree-loop-linear.o): Remove rule.
22179         (lambda-mat.o): Same.
22180         (lambda-trans.o): Same.
22181         (lambda-code.o): Same.
22182         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
22183         (tree-vect-slp.o): Same.
22184         * hwint.h (gcd): Moved here.
22185         (least_common_multiple): Same.
22186         * lambda-code.c: Removed.
22187         * lambda-mat.c: Removed.
22188         * lambda-trans.c: Removed.
22189         * lambda.h: Removed.
22190         * tree-loop-linear.c: Removed.
22191         * lto-symtab.c: Do not include lambda.h.
22192         * omega.c (gcd): Removed.
22193         * passes.c (init_optimization_passes): Remove pass_linear_transform.
22194         * tree-data-ref.c (print_lambda_vector): Moved here.
22195         (lambda_vector_copy): Same.
22196         (lambda_matrix_copy): Same.
22197         (lambda_matrix_id): Same.
22198         (lambda_vector_first_nz): Same.
22199         (lambda_matrix_row_add): Same.
22200         (lambda_matrix_row_exchange): Same.
22201         (lambda_vector_mult_const): Same.
22202         (lambda_vector_negate): Same.
22203         (lambda_matrix_row_negate): Same.
22204         (lambda_vector_equal): Same.
22205         (lambda_matrix_right_hermite): Same.
22206         * tree-data-ref.h: Do not include lambda.h.
22207         (lambda_vector): Moved here.
22208         (lambda_matrix): Same.
22209         (dependence_level): Same.
22210         (lambda_transform_legal_p): Removed declaration.
22211         (lambda_collect_parameters): Same.
22212         (lambda_compute_access_matrices): Same.
22213         (lambda_vector_gcd): Same.
22214         (lambda_vector_new): Same.
22215         (lambda_vector_clear): Same.
22216         (lambda_vector_lexico_pos): Same.
22217         (lambda_vector_zerop): Same.
22218         (lambda_matrix_new): Same.
22219         * tree-flow.h (least_common_multiple): Removed declaration.
22220         * tree-parloops.c (lambda_trans_matrix): Moved here.
22221         (LTM_MATRIX): Same.
22222         (LTM_ROWSIZE): Same.
22223         (LTM_COLSIZE): Same.
22224         (LTM_DENOMINATOR): Same.
22225         (lambda_trans_matrix_new): Same.
22226         (lambda_matrix_vector_mult): Same.
22227         (lambda_transform_legal_p): Same.
22228         * tree-pass.h (pass_linear_transform): Removed declaration.
22229         * tree-ssa-loop.c (tree_linear_transform): Removed.
22230         (gate_tree_linear_transform): Removed.
22231         (pass_linear_transform): Removed.
22232         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
22233         flag_loop_interchange.
22234
22235 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
22236
22237         PR tree-optimization/47265
22238         PR tree-optimization/47443
22239         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
22240         if name still has some uses.
22241
22242 2011-01-25  Martin Jambor  <mjambor@suse.cz>
22243
22244         PR tree-optimization/47382
22245         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
22246         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
22247
22248 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
22249
22250         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
22251         sjlj_except_unwind_info.
22252
22253 2011-01-25  Richard Guenther  <rguenther@suse.de>
22254
22255         PR tree-optimization/47426
22256         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
22257         visible functions results escape.
22258
22259 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
22260
22261         PR target/45701
22262         * config/arm/arm.c (any_sibcall_uses_r3): New function.
22263         (arm_get_frame_offsets): Use it.
22264
22265 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
22266             Jakub Jelinek  <jakub@redhat.com>
22267
22268         PR tree-optimization/47271
22269         * tree-if-conv.c (bb_postdominates_preds): New.
22270         (if_convertible_bb_p): Call bb_postdominates_preds.
22271         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
22272         (predicate_scalar_phi): Call bb_postdominates_preds.
22273
22274 2011-01-25  Nick Clifton  <nickc@redhat.com>
22275
22276         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
22277         * config/rx/rx.c (rx_function_value): Likewise.
22278         (rx_promote_function_mode): Likewise.
22279         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
22280         in order to make it legitimate.
22281         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
22282         make sure that the first operand is the same as the result register.
22283         (addsi3_unspec): Delete.
22284         (subdi3): Do not accept immediate operands.
22285         (subdi3_internal): Likewise.
22286
22287 2011-01-25  Jeff Law  <law@redhat.com>
22288
22289         PR rtl-optimization/37273
22290         * ira-costs.c (scan_one_insn): Detect constants living in memory and
22291         handle them like argument loads from stack slots.  Do not double
22292         count memory for memory constants and argument loads from stack slots.
22293
22294 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
22295
22296         PR tree-optimization/47427
22297         PR tree-optimization/47428
22298         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
22299         coalesce if the new root var would be TREE_READONLY.
22300
22301 2011-01-25  Richard Guenther  <rguenther@suse.de>
22302
22303         PR middle-end/47414
22304         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
22305         correct type for TBAA.
22306
22307 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
22308
22309         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
22310         (close_phi_written_to_memory): Call for_each_index with
22311         dr_indices_valid_in_loop.
22312
22313 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
22314
22315         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
22316         when it is initialized.
22317
22318 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
22319
22320         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
22321         call to graphite_find_data_references_in_stmt.
22322         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
22323         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
22324         call to graphite_find_data_references_in_stmt.
22325         (analyze_drs_in_stmts): Same.
22326         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
22327         in which the scalar analysis of indices is performed.
22328         (create_data_ref): Same.  Update call to dr_analyze_indices.
22329         (find_data_references_in_stmt): Update call to create_data_ref.
22330         (graphite_find_data_references_in_stmt): Same.
22331         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
22332         declaration.
22333         (create_data_ref): Same.
22334         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
22335         call to create_data_ref.
22336
22337 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
22338
22339         * graphite-sese-to-poly.c (build_poly_scop): Move
22340         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
22341
22342 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
22343
22344         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
22345         VAR_DECL, PARM_DECL, and RESULT_DECL.
22346
22347 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
22348
22349         * graphite-dependences.c (reduction_dr_1): Allow several reductions
22350         in a reduction PBB.
22351         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
22352         that have already been marked as PBB_IS_REDUCTION.
22353
22354 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
22355
22356         * graphite-scop-detection.c (same_close_phi_node): New.
22357         (remove_duplicate_close_phi): New.
22358         (make_close_phi_nodes_unique): New.
22359         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
22360
22361 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
22362
22363         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
22364         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
22365         of both data references to be the same.
22366
22367 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
22368
22369         * graphite-dependences.c (build_lexicographical_constraint): Remove
22370         the gdim parameter.
22371         (build_lexicographical_constraint): Adjust call to
22372         ppl_powerset_is_empty.
22373         (dependence_polyhedron): Same.
22374         (graphite_legal_transform_dr): Same.
22375         (graphite_carried_dependence_level_k): Same.
22376         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
22377         parameter.
22378         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
22379
22380 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
22381
22382         * graphite-sese-to-poly.c
22383         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
22384         (close_phi_written_to_memory): New.
22385         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
22386         and unshare_expr.
22387
22388 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
22389
22390         * doc/install.texi: Update the expected version number of PPL to 0.11.
22391         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
22392         #if PPL_VERSION_MINOR < 11.
22393
22394 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
22395
22396         * graphite-dependences.c: Include graphite-cloog-util.h.
22397         (new_poly_ddr): Inlined into dependence_polyhedron.
22398         (free_poly_ddr): Moved close by new_poly_ddr.
22399         (dependence_polyhedron_1): Renamed dependence_polyhedron.
22400         Early return NULL when ppl_powerset_is_empty returns true.
22401         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
22402         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
22403         (graphite_legal_transform_dr): Call new_poly_ddr.
22404         (graphite_carried_dependence_level_k): Same.
22405         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
22406         (dot_transformed_deps_stmt_1): Removed.
22407         (dot_deps_stmt_1): Call dot_deps_stmt_2.
22408         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
22409         (dot_deps_1): Call dot_deps_2.
22410         * Makefile.in (graphite-dependences.o): Add missing dependence on
22411         graphite-cloog-util.h.
22412
22413 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
22414
22415         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
22416         (build_lexicographical_constraint): Same.
22417         (dependence_polyhedron_1): Same.
22418         (graphite_legal_transform_dr): Same.
22419         (graphite_carried_dependence_level_k): Same.
22420         * graphite-ppl.c (ppl_powerset_is_empty): New.
22421         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
22422         * tree-data-ref.c (dump_data_reference): Print the basic block index.
22423
22424 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
22425
22426         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
22427         the "a followed by b" relation and document it.
22428
22429 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
22430
22431         * graphite-dependences.c (build_lexicographical_constraint): Stop the
22432         iteration when the bag of constraints is empty.
22433
22434 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
22435
22436         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
22437
22438 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
22439
22440         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
22441         nest and two loop depths as parameters.
22442         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
22443         lst_perfect_nestify.
22444
22445 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
22446
22447         * graphite-dependences.c (print_pddr): Call
22448         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
22449
22450 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
22451
22452         * graphite-ppl.c (debug_gmp_value): New.
22453         * graphite-ppl.h (debug_gmp_value): Declared.
22454
22455 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
22456
22457         * doc/install.texi: Document availability of cloog-0.16.
22458
22459 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
22460
22461         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
22462         invalid postdominance info.
22463
22464 2011-01-24  Jan Hubicka  <jh@suse.cz>
22465
22466         PR c/21659
22467         * doc/extend.texi (weak pragma): Drop claim that it must
22468         appear before definition.
22469         * varasm.c (merge_weak, declare_weak): Only sanity check
22470         that DECL is not output at a time it is declared weak.
22471
22472 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
22473
22474         * machmode.def: Fixed comments.
22475
22476 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
22477
22478         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
22479
22480 2011-01-24  Paul Koning  <ni1d@arrl.net>
22481
22482         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
22483         WORDS_BIG_ENDIAN.
22484
22485 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
22486
22487         PR target/46519
22488         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
22489         (block_info): Add scanned and prev.
22490         (move_or_delete_vzeroupper_2): Return if the basic block
22491         has been scanned and the upper 128bit state is unchanged
22492         from the last scan.
22493         (move_or_delete_vzeroupper_1): Return true if the exit
22494         state is changed.
22495         (move_or_delete_vzeroupper): Visit basic blocks using the
22496         work-list based algorithm based on vt_find_locations in
22497         var-tracking.c.
22498
22499         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
22500
22501 2011-01-24  Nick Clifton  <nickc@redhat.com>
22502
22503         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
22504         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
22505         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
22506         then define __v850e1__.
22507         * doc/invoke.texi: Document -mv850es.
22508
22509 2011-01-24  Richard Henderson  <rth@redhat.com>
22510
22511         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
22512         compound unordered comparisons.
22513         * config/rx/rx.c (rx_split_fp_compare): Remove.
22514         * config/rx/rx-protos.h: Update.
22515         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
22516         (cbranchsf4): Don't call rx_split_fp_compare.
22517         (*cbranchsf4): Use rx_split_cbranch.
22518         (*cmpsf): Don't accept "i" constraint.
22519         (*conditional_branch): Only valid after reload.
22520         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
22521
22522 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
22523
22524         PR target/47385
22525         * config/rs6000/altivec.md (vector constant splitters): Add
22526         support for creating vector single precision constants if -mvsx is
22527         used and we would create the constant using Altivec primitives.
22528
22529 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
22530             Richard Sandiford  <rdsandiford@googlemail.com>
22531
22532         PR rtl-optimization/47166
22533         * reload1.c (emit_reload_insns): Disable the spill_reg_store
22534         mechanism for PRE_MODIFY and POST_MODIFY.
22535         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
22536         reloadreg.
22537
22538 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
22539
22540         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
22541
22542 2011-01-22  Jan Hubicka  <jh@suse.cz>
22543
22544         PR lto/47333
22545         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
22546
22547 2011-01-22  Jan Hubicka  <jh@suse.cz>
22548
22549         PR tree-optimization/43884
22550         PR lto/44334
22551         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
22552         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
22553
22554 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
22555
22556         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
22557         * config/s390/s390.c (s390_register_move_cost,
22558         s390_memory_move_cost): New.
22559         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
22560
22561 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22562
22563         PR middle-end/47401
22564         * except.c (sjlj_assign_call_site_values): Move setting the
22565         crtl->uses_eh_lsda flag to ...
22566         (sjlj_mark_call_sites): ... here.
22567         (sjlj_emit_function_enter): Support NULL dispatch label.
22568         (sjlj_build_landing_pads): In a function with no landing pads
22569         that still has must-not-throw regions, generate code to register
22570         a personality function with empty LSDA.
22571
22572 2011-01-21  Richard Henderson  <rth@redhat.com>
22573
22574         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
22575
22576         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
22577
22578         * compare-elim.c: New file.
22579         * Makefile.in (OBJS-common): Add it.
22580         (compare-elim.o): New.
22581         * common.opt (fcompare-elim): New.
22582         * opts.c (default_options_table): Add OPT_fcompare_elim.
22583         * tree-pass.h (pass_compare_elim_after_reload): New.
22584         * passes.c (init_optimization_passes): Add it.
22585         * recog.h: Protect against re-inclusion.
22586         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
22587         * doc/invoke.texi (-fcompare-elim): Document it.
22588         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
22589         * doc/tm.texi: Rebuild.
22590
22591 2011-01-22  Nick Clifton  <nickc@redhat.com>
22592
22593         * config/rx/rx.md (cstoresf4): Pass comparison operator to
22594         rx_split_fp_compare.
22595
22596 2011-01-22  Nick Clifton  <nickc@redhat.com>
22597
22598         * config/rx/rx.md (UNSPEC_CONST): New.
22599         (deallocate_and_return): Wrap the amount popped off the stack in
22600         an UNSPEC_CONST in order to stop it being rejected by
22601         -mmax-constant-size.
22602         (pop_and_return): Add a "(return)" rtx.
22603         (call): Drop the immediate operand.
22604         (call_internal): Likewise.
22605         (call_value): Likewise.
22606         (call_value_internal): Likewise.
22607         (sibcall_internal): Likewise.
22608         (sibcall_value_internal): Likewise.
22609         (sibcall): Likewise.  Generate an explicit call using
22610         sibcall_internal.
22611         (sibcall_value): Likewise.
22612         (mov<>): FAIL if a constant operand is not legitimate.
22613         (addsi3_unpsec): New pattern.
22614
22615         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
22616         (ok_for_max_constant): New function.
22617         (gen_safe_add): New function.
22618         (rx_expand_prologue): Use gen_safe_add.
22619         (rx_expand_epilogue): Likewise.
22620         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
22621         UNSPEC CONSTs.
22622
22623 2011-01-21  Jeff Law  <law@redhat.com>
22624
22625         PR tree-optimization/47053
22626         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
22627         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
22628         statements are deleted.
22629         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
22630         is nonempty, then purge dead edges and cleanup the CFG.
22631
22632 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
22633
22634         PR debug/47402
22635         Temporarily revert:
22636         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
22637         PR debug/47106
22638         * tree-dfa.c (create_var_ann): Mark variable as used.
22639
22640 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
22641
22642         PR middle-end/45566
22643         * except.c (convert_to_eh_region_ranges): Emit queued no-region
22644         notes from other section in hot/cold partitioning even if
22645         last_action is -3.  Increment call_site_base.
22646
22647         PR rtl-optimization/47366
22648         * fwprop.c (forward_propagate_into): Return bool.  If
22649         any changes are made, -fnon-call-exceptions is used and
22650         REG_EH_REGION note is present, call purge_dead_edges
22651         and return true if it purged anything.
22652         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
22653         any EH edges were purged.
22654
22655 2011-01-21  Jeff Law  <law@redhat.com>
22656
22657         PR rtl-optimization/41619
22658         * caller-save.c (setup_save_areas): Break out code to determine
22659         which hard regs are live across calls by examining the reload chains
22660         so that it is always used.
22661         Eliminate code which checked REG_N_CALLS_CROSSED.
22662
22663 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
22664
22665         PR tree-optimization/47355
22666         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
22667         NOP has non-debug uses beyond PHIs in new_bb.
22668
22669 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
22670
22671         PR debug/47106
22672         * cfgexpand.c (account_used_vars_for_block): Only account vars
22673         that are annotated as used.
22674         (estimated_stack_frame_size): Don't set TREE_USED.
22675         * tree-dfa.c (create_var_ann): Mark variable as used.
22676
22677 2011-01-21  Richard Guenther  <rguenther@suse.de>
22678
22679         PR middle-end/47395
22680         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
22681
22682 2011-01-21  Richard Guenther  <rguenther@suse.de>
22683
22684         PR tree-optimization/47365
22685         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
22686         (vn_reference_lookup_pieces): Adjust.
22687         (vn_reference_lookup): Likewise.
22688         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
22689         (vn_reference_lookup_3): Only look through kills if in
22690         VN_WALKREWRITE mode.
22691         (vn_reference_lookup_pieces): Adjust.
22692         (vn_reference_lookup): Likewise.
22693         (visit_reference_op_load): Likewise.
22694         (visit_reference_op_store): Likewise.
22695         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
22696         (compute_avail): Likewise.
22697         (eliminate): Likewise.
22698
22699 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
22700
22701         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
22702         DECL_IGNORED_P non-reg vars if they are used.
22703
22704         PR tree-optimization/47391
22705         * varpool.c (const_value_known_p): Return false if
22706         decl is volatile.
22707
22708 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
22709
22710         PR bootstrap/47215
22711         * config/i386/i386.c (ix86_local_alignment): Handle
22712         case for va_list_type_node is nil.
22713         (ix86_canonical_va_list_type): Likewise.
22714
22715 2011-01-21  Alan Modra  <amodra@gmail.com>
22716
22717         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
22718         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
22719
22720 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22721
22722         * config/arm/arm.md (define_attr type): Rename f_load
22723         and f_store to f_fpa_load and f_fpa_store. Update.
22724         (write_conflict): Deal with rename fallout.
22725         (*push_fp_multi): Likewise.
22726         * config/arm/fpa.md (f_load): Use f_fpa_load.
22727         (f_store): Use f_fpa_store.
22728         (*movsf_fpa): Likewise.
22729         (*movdf_fpa): Likewise.
22730         (*movxf_fpa): Likewise.
22731         (*thumb2_movsf_fpa): Likewise.
22732         (*thumb2_movdf_fpa): Likewise.
22733         (*thumb2_movxf_fpa): Likewise.
22734         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
22735         f_loadd and f_stored.
22736         (*thumb2_movdi_vfp): Likewise.
22737         (*thumb2_movsf_vfp): Fix attribute to f_loads.
22738         (*thumb2_movsi_vfp): Likewise.
22739         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
22740         Use f_loads instead of f_load.
22741         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
22742
22743 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
22744
22745         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
22746         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
22747         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22748         (xtensa_mode_dependent_address_p): New function.
22749         (constantpool_address_p): Make static. Change return type to bool.
22750         Change argument type to const_rtx. Use CONST_INT_P predicate.
22751
22752 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
22753
22754         PR debug/46583
22755         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
22756
22757 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
22758
22759         PR debug/47283
22760         * cfgexpand.c (expand_debug_expr): Instead of generating
22761         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
22762         etc. handling.
22763
22764 2011-01-20  Richard Guenther  <rguenther@suse.de>
22765
22766         PR middle-end/47370
22767         * tree-inline.c (remap_gimple_op_r): Recurse manually for
22768         the pointer operand of MEM_REFs.
22769
22770 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
22771
22772         PR tree-optimization/46130
22773         * ipa-split.c (consider_split): If return_bb contains non-virtual
22774         PHIs other than for retval or if split_function would not adjust it,
22775         refuse to split.
22776
22777 2011-01-20  Richard Guenther  <rguenther@suse.de>
22778
22779         PR tree-optimization/47167
22780         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
22781         Revert previous change, only avoid enumeral type changes.
22782
22783 2011-01-19  Mike Stump  <mikestump@comcast.net>
22784
22785         * doc/tm.texi.in (BRANCH_COST): Englishify.
22786         * doc/tm.texi (BRANCH_COST): Likewise.
22787
22788 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
22789
22790         PR c++/47291
22791         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
22792         (gen_scheduled_generic_parms_dies): New functions.
22793         (gen_struct_or_union_type_die): Schedule template parameters DIEs
22794         generation for the end of CU compilation.
22795         (dwarf2out_finish): Generate template parameters DIEs here.
22796
22797 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
22798
22799         PR debug/46240
22800         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
22801         debug bind stmt on merge edges.
22802
22803 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
22804
22805         PR debug/47079
22806         PR debug/46724
22807         * function.c (instantiate_expr): Instantiate incoming rtl of
22808         implicit arguments, and recurse on VALUE_EXPRs.
22809         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
22810         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
22811
22812 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
22813
22814         * c-parser.c (c_parser_for_statement): Initialize
22815         collection_expression.
22816
22817 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
22818
22819         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
22820
22821 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
22822
22823         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
22824         (LINK_SHLIB_SPEC): Don't use %(link_path).
22825         (SUBTARGET_EXTRA_SPECS): Remove link_path.
22826
22827 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
22828
22829         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
22830         (NO_SHARED_LIB_SUPPORT): Remove.
22831         (LINK_SHLIB_SPEC): Remove one conditional definition.
22832
22833 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
22834
22835         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
22836         %{call_shared}.
22837         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
22838         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
22839         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
22840         %{call_shared} and conditionals on these options not being passed.
22841         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
22842         %{call_shared}.
22843
22844 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
22845
22846         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
22847         simplify.
22848
22849         * ipa-split.c: Spelling fixes.
22850
22851 2011-01-19  Richard Henderson  <rth@redhat.com>
22852
22853         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
22854         (*mulsi3): Likewise.
22855
22856         * longlong.h [__mn10300__] (count_leading_zeros): New.
22857         [__mn10300__] (umul_ppmm, smul_ppmm): New.
22858         [__mn10300__] (add_ssaaaa, subddmmss): New.
22859         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
22860         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
22861
22862 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22863
22864         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
22865
22866 2011-01-19  Richard Henderson  <rth@redhat.com>
22867
22868         * config/mn10300/mn10300.md (addsi3_flags): New.
22869         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
22870         (subsi3_flags, subc_internal, subdi3): New.
22871         (subdi3_internal, *subdi3_degenerate): New.
22872         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
22873
22874         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
22875         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
22876         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
22877         * config/mn10300/mn10300-protos.h: Update.
22878         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
22879         (return_ret): Likewise.  Rename from return_internal_regs.
22880         (return_internal): Remove.
22881
22882         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
22883         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
22884         (mn10300_legitimate_constant_p): Likewise.
22885         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
22886         (mn10300_frame_size): New.
22887         (mn10300_expand_prologue): Use it.
22888         (mn10300_expand_epilogue): Likewise.
22889         (mn10300_initial_offset): Likewise.
22890         * config/mn10300/mn10300-protos.h: Update.
22891         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
22892         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
22893         (prologue, epilogue, return_internal): Tidy output code.
22894         (mn10300_store_multiple_operation, return): Likewise.
22895         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
22896         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
22897         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
22898         (load_pic, am33_load_pic): New.
22899         (mn10300_load_pic0, mn10300_load_pic1): New.
22900
22901         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
22902         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
22903         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
22904         (cc_flags_for_mode, cc_flags_for_code): New.
22905         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
22906         overflow flag is not valid.  Validate that the flags we need
22907         for the comparison are valid.
22908         (mn10300_output_cmp): Remove.
22909         (mn10300_output_add): New.
22910         (mn10300_select_cc_mode): Use cc_flags_for_code.
22911         (mn10300_split_cbranch): New.
22912         (mn10300_match_ccmode): New.
22913         (mn10300_split_and_operand_count): New.
22914         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
22915         to the function.
22916         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
22917         (addsi3): ... here.  Use mn10300_output_add.
22918         (*addsi3_flags): New.
22919         (*am33_subsi3, *mn10300_subsi3): Merge...
22920         (subsi3): ... here.  Use attribute isa.
22921         (*subsi3_flags): New.
22922         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
22923         when possible.
22924         (*am33_andsi3, *mn10300_andsi3): Merge...
22925         (andsi3): ... here.
22926         (*andsi3_flags): New.
22927         (andsi3 splitters): New.
22928         (*am33_iorsi3, *mn10300_iorsi3): Merge...
22929         (iorsi3): ... here.
22930         (*iorsi3_flags): New.
22931         (*am33_xorsi3, *mn10300_xorsi3): Merge...
22932         (xorsi3): ... here.
22933         (*xorsi3_flags): New.
22934         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
22935         (one_cmplsi2): ... here.
22936         (*one_cmplsi2_flags): New.
22937         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
22938         instead of "dax" in constraints.  Use mn10300_split_cbranch.
22939         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
22940         use matching constraints to eliminate a self-comparison.
22941         (*integer_conditional_branch): Rename from integer_conditional_branch.
22942         Use int_mode_flags to match CC_REG.
22943         (*cbranchsi4_btst, *btstsi): New.
22944         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
22945         mn10300_split_cbranch.
22946         (*am33_cmpsf): Rename from am33_cmpsf.
22947         (*float_conditional_branch): Rename from float_conditional_branch.
22948         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
22949         (zero_extendqisi2): ... here.
22950         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
22951         (zero_extendhisi2): ... here.
22952         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
22953         (extendqisi2): ... here.
22954         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
22955         (extendhisi2): ... here.
22956         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
22957         (ashlsi3): ... here.
22958         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
22959         (lshrsi3): ... here.
22960         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
22961         (ashrsi3): ... here.
22962         (consecutive add peephole): Remove.
22963         * config/mn10300/predicates.md (label_ref_operand): New.
22964         (int_mode_flags): New.
22965         (CCZN_comparison_operator): New.
22966
22967         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
22968         (throughput_42_latency_43): New reservation.
22969         (mulsidi3, umulsidi3): New expanders.
22970         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
22971         the MDR register to allocation; separately allocate the low and
22972         high parts of the DImode result.
22973         (umulsidi3_internal): Similarly.
22974         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
22975         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
22976         (udivsi3, umodsi3): Remove.
22977         (udivmodsi4, divmodsi4): New expanders.
22978         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
22979         (*divmodsi4): Simiarly.
22980         (ext_internal): New.
22981
22982         * config/mn10300/constraints.md ("z"): New constraint.
22983         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
22984         (FIXED_REGISTERS): Don't fix MDR.
22985         (CALL_USED_REGSITERS): Reformat nicely.
22986         (REG_ALLOC_ORDER): Add MDR.
22987         (enum regclass): Add MDR_REGS.
22988         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
22989         (IRA_COVER_CLASSES): Add MDR_REGS.
22990         (REGNO_REG_CLASS): Handle MDR_REG.
22991         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
22992         (mn10300_register_move_cost): Likewise.
22993         * config/mn10300/mn10300.md (MDR_REG): New.
22994         (*movsi_internal): Handle moves to/from MDR_REGS.
22995
22996         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
22997         POST_MODIFY.
22998         (mn10300_secondary_reload): Tidy combination reload classes.
22999         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
23000         addresses for AM33.  Allow symbolic offsets for reg+imm.
23001         (mn10300_regno_in_class_p): New.
23002         (mn10300_legitimize_reload_address): New.
23003         * config/mn10300/mn10300.h (enum reg_class): Remove
23004         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
23005         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
23006         SP_OR_GENERAL_REGS.
23007         (REG_CLASS_NAMES): Update to match.
23008         (REG_CLASS_CONTENTS): Likewise.
23009         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
23010         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
23011         (REGNO_IN_RANGE_P): Remove.
23012         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
23013         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
23014         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
23015         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
23016         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
23017         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
23018         (REGNO_GENERAL_P): New.
23019         (HAVE_POST_MODIFY_DISP): New.
23020         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
23021         (LEGITIMIZE_RELOAD_ADDRESS): New.
23022         * config/mn10300/mn10300-protos.h: Update.
23023
23024         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
23025         DATA_REGS for AM33 stack-pointer destination.
23026         (mn10300_preferred_output_reload_class): Likewise.
23027         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
23028         into a form appropriate for ...
23029         (TARGET_SECONDARY_RELOAD): New.
23030         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
23031         * config/mn10300/mn10300-protos.h: Update.
23032         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
23033         reload_insi; use the "A" constraint for the scratch; handle AM33
23034         moves of sp to non-address registers.
23035
23036         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
23037         (*movqi_internal): ... here.
23038         (*am33_movhi, *mn10300_movhi): Merge into...
23039         (*movhi_internal): ... here.
23040         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
23041         as the source/destination of moves from/to SP.
23042         (movsf): Only allow for AM33-2.
23043         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
23044         any integer constant constraint.  Only allow for AM33-2.  Tidy
23045         all of the alternative outputs.
23046         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
23047         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
23048         for MN103.
23049         (udivsi3, umodsi3): New patterns for MN103 only.
23050
23051 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
23052
23053         * doc/tm.texi.in: Spell out that a lack of register class unions
23054         can lead to ICEs.
23055         * doc/tm.texi: Regenerate.
23056
23057 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
23058
23059         PR rtl-optimization/47337
23060         * dce.c (check_argument_store): New function.
23061         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
23062
23063         PR tree-optimization/47290
23064         * tree-eh.c (infinite_empty_loop_p): New function.
23065         (cleanup_empty_eh): Use it.
23066
23067 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
23068
23069         PR target/46997
23070         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
23071         (a64_expand_widen_sum): Ditto.
23072         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
23073         (vec_extract_evenodd_help): Ditto.
23074         (vec_extract_evenv4hi): Ditto.
23075         (vec_extract_oddv4hi): Ditto.
23076         (vec_extract_evenv2si): Ditto.
23077         (vec_extract_oddv2si): Ditto.
23078         (vec_extract_evenv2sf): Ditto.
23079         (vec_extract_oddv2sf): Ditto.
23080         (vec_pack_trunc_v4hi: Ditto.
23081         (vec_pack_trunc_v2si): Ditto.
23082         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
23083         (vec_interleave_highv8qi): Ditto.
23084         (mix1_r): Ditto.
23085         (vec_extract_oddv8qi): Ditto.
23086         (vec_interleave_lowv4hi): Ditto.
23087         (vec_interleave_highv4hi): Ditto.
23088         (vec_interleave_lowv2si): Ditto.
23089         (vec_interleave_highv2si): Ditto.
23090
23091 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23092
23093         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
23094         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
23095         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
23096         (pa_c_mode_for_suffix): New.
23097         (TARGET_EXPAND_BUILTIN): Define.
23098         (TARGET_C_MODE_FOR_SUFFIX): Define.
23099         (pa_builtins): Define.
23100         (pa_init_builtins): Register __float128 type and init new support
23101         builtins.
23102         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
23103         * config/pa/quadlib.c (_U_Qfcopysign): New.
23104
23105 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
23106
23107         PR middle-end/46894
23108         * explow.c (allocate_dynamic_stack_space): Do not assume more than
23109         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
23110         are defined.
23111
23112 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23113
23114         PR tree-optimization/47179
23115         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
23116         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
23117
23118 2011-01-18  Richard Guenther  <rguenther@suse.de>
23119
23120         PR rtl-optimization/47216
23121         * emit-rtl.c: Include tree-flow.h.
23122         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
23123         of replicating it with different semantics.
23124         * Makefile.in (emit-rtl.o): Adjust.
23125
23126 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23127
23128         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
23129         (cortex_a9_dp): Handle neon types correctly.
23130
23131 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
23132
23133         PR rtl-optimization/47299
23134         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
23135         subtarget.  Use normal multiplication if both operands are constants.
23136         * expmed.c (expand_widening_mult): Don't try to optimize constant
23137         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
23138         before using it.
23139
23140 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23141
23142         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
23143         spacing after 'e.g.', typos, comma, hyphenation.
23144
23145 2011-01-17  Richard Henderson  <rth@redhat.com>
23146
23147         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
23148         (rx_restricted_mem_operand): New.
23149         (rx_shift_operand): Use register_operand.
23150         (rx_source_operand, rx_compare_operand): Likewise.
23151         * config/rx/rx.md (addsi3_flags): New expander.
23152         (adddi3): Rewrite as expander.
23153         (adc_internal, *adc_flags, adddi3_internal): New patterns.
23154         (subsi3_flags): New expander.
23155         (subdi3): Rewrite as expander.
23156         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
23157
23158         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
23159         (rx_init_builtins): Remove sat builtin.
23160         (rx_expand_builtin): Likewise.
23161         * config/rx/rx.md (ssaddsi3): New.
23162         (*sat): Rename from sat.  Represent the CC_REG input.
23163
23164         * config/rx/predicates.md (rshift_operator): New.
23165         * config/rx/rx.c (rx_expand_insv): Remove.
23166         * config/rx/rx-protos.h: Update.
23167         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
23168         operand to the canonical position.
23169         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
23170         (*bitclr, *bitclr_in_memory): Similarly.
23171         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
23172         (insv): Retain the zero_extract in the expansion.
23173
23174         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
23175         (bswaphi2, bitinvert, revw): Likewise.
23176
23177         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
23178         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
23179         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
23180         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
23181         (bitset, bitset_in_memory): Likewise.
23182         (bitinvert, bitinvert_in_memory): Likewise.
23183         (bitclr, bitclr_in_memory): Likewise.
23184         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
23185         (rx_strend, rx_cmpstrn): Likewise.
23186         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
23187         (bitop peep2 patterns): Remove.
23188
23189         * config/rx/rx.c (rx_match_ccmode): New.
23190         * config/rx/rx-protos.h: Update.
23191         * config/rx/rx.md (abssi2): Clobber, don't set flags.
23192         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
23193         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
23194         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
23195         (fix_truncsfsi2, floatsisf2): Likewise.
23196         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
23197         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
23198         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
23199         (*subsi3_flags, *xorsi3_flags): New.
23200
23201         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
23202
23203         * config/rx/rx.c (rx_print_operand): Remove workaround for
23204         unsplit comparison operations.
23205
23206         * config/rx/rx.md (movsicc): Split after reload.
23207         (*movsicc): Merge *movsieq and *movsine via match_operator.
23208         (*stcc): New pattern.
23209
23210         * config/rx/rx.c (rx_float_compare_mode): Remove.
23211         * config/rx/rx.h (rx_float_compare_mode): Remove.
23212         * config/rx/rx.md (cstoresi4): Split after reload.
23213         (*sccc): New pattern.
23214
23215         * config/rx/predicates.md (label_ref_operand): New.
23216         (rx_z_comparison_operator): New.
23217         (rx_zs_comparison_operator): New.
23218         (rx_fp_comparison_operator): New.
23219         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
23220         Validate that the flags are set properly for the comparison.
23221         (rx_gen_cond_branch_template): Remove.
23222         (rx_cc_modes_compatible): Remove.
23223         (mode_from_flags): New.
23224         (flags_from_code): Rename from flags_needed_for_conditional.
23225         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
23226         (rx_select_cc_mode): Likewise.
23227         (rx_split_fp_compare): New.
23228         (rx_split_cbranch): New.
23229         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
23230         (*cbranchsi4): Use match_operator and rx_split_cbranch.
23231         (*cbranchsf4): Similarly.
23232         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
23233         match_operator and rx_split_cbranch.
23234         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
23235         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
23236         (*cmpsi): Rename from cmpsi.
23237         (*tstsi): Rename from tstsi.
23238         (*cmpsf): Rename from cmpsf; use CC_Fmode.
23239         (*conditional_branch): Rename from conditional_branch.
23240         (*reveresed_conditional_branch): Remove.
23241         (b<code>): Remove expander.
23242         * config/rx/rx-protos.h: Update.
23243
23244         * config/rx/rx.c (rx_compare_redundant): Remove.
23245         * config/rx/rx.md (cmpsi): Don't use it.
23246         * config/rx/rx-protos.h: Update.
23247
23248         * config/rx/rx-modes.def (CC_F): New mode.
23249         * config/rx/rx.c (rx_select_cc_mode): New.
23250         * config/rx/rx.h (SELECT_CC_MODE): Use it.
23251         * config/rx/rx-protos.h: Update.
23252
23253 2011-01-17  Richard Henderson  <rth@redhat.com>
23254
23255         * except.c (dump_eh_tree): Fix stray ; after for statement.
23256
23257 2011-01-17  Richard Guenther  <rguenther@suse.de>
23258
23259         PR tree-optimization/47313
23260         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
23261         handling before copying the body.  Properly deal with
23262         by-reference result in SSA form.
23263
23264 2011-01-17  Ian Lance Taylor  <iant@google.com>
23265
23266         PR target/47219
23267         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
23268         (struct_value_alias_set): Don't define.
23269         (sparc_option_override): Don't set sparc_sr_alias_set and
23270         struct_value_alias_set.
23271         (save_or_restore_regs): Use gen_frame_mem rather than calling
23272         set_mem_alias_set.
23273         (sparc_struct_value_rtx): Likewise.
23274
23275 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
23276
23277         PR target/47318
23278         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
23279         (_mm_maskstore_pd): Likewise.
23280         (_mm_maskload_ps): Likewise.
23281         (_mm_maskstore_ps): Likewise.
23282         (_mm256_maskload_pd): Change mask to __m256i.
23283         (_mm256_maskstore_pd): Likewise.
23284         (_mm256_maskload_ps): Likewise.
23285         (_mm256_maskstore_ps): Likewise.
23286
23287         * config/i386/i386-builtin-types.def: Updated.
23288         (ix86_expand_special_args_builtin): Likewise.
23289
23290         * config/i386/i386.c (bdesc_special_args): Update
23291         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
23292         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
23293         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
23294         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
23295
23296         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
23297         Use <avxpermvecmode> on mask register.
23298         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
23299
23300 2011-01-17  Olivier Hainque  <hainque@adacore.com>
23301             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
23302             Eric Botcazou  <ebotcazou@adacore.com>
23303
23304         PR target/46655
23305         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
23306         if <= USHRT_MAX in 32-bit mode.
23307
23308 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23309
23310         * doc/install.texi (Configuration, Specific): Wrap long
23311         lines in examples.  Allow line wrapping in long options
23312         and URLs where beneficial for PDF output.
23313
23314 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
23315
23316         * config/mips/mips.c (mips_classify_symbol): Don't return
23317         SYMBOL_PC_RELATIVE for nonlocal labels.
23318
23319 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
23320
23321         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
23322
23323 2011-01-15  Jan Hubicka  <jh@suse.cz>
23324
23325         PR tree-optimization/47276
23326         * ipa.c (function_and_variable_visibility): Do not try to mark alias
23327         declarations as needed.
23328
23329 2011-01-15  Martin Jambor  <mjambor@suse.cz>
23330
23331         * common.opt (fdevirtualize): New flag.
23332         * doc/invoke.texi (Option Summary): Document it.
23333         * opts.c (default_options_table): Add devirtualize flag.
23334         * ipa-prop.c (detect_type_change): Return immediately if
23335         devirtualize flag is not set.
23336         (detect_type_change_ssa): Likewise.
23337         (compute_known_type_jump_func): Likewise.
23338         (ipa_analyze_virtual_call_uses): Likewise.
23339
23340 2011-01-14  Martin Jambor  <mjambor@suse.cz>
23341
23342         PR tree-optimization/45934
23343         PR tree-optimization/46302
23344         * ipa-prop.c (type_change_info): New type.
23345         (stmt_may_be_vtbl_ptr_store): New function.
23346         (check_stmt_for_type_change): Likewise.
23347         (detect_type_change): Likewise.
23348         (detect_type_change_ssa): Likewise.
23349         (compute_complex_assign_jump_func): Check for dynamic type change.
23350         (compute_complex_ancestor_jump_func): Likewise.
23351         (compute_known_type_jump_func): Likewise.
23352         (compute_scalar_jump_functions): Likewise.
23353         (ipa_analyze_virtual_call_uses): Likewise.
23354         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
23355
23356 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
23357
23358         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
23359         * config/i386/i386.opt (msse5): New Alias.
23360
23361 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
23362
23363         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
23364         * config/sparc/linux64.h (CC1_SPEC): Likewise.
23365         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
23366         * config/sparc/sparc.h (CC1_SPEC): Likewise.
23367
23368 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
23369
23370         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
23371         -mcpu options.
23372         * config/sparc/linux64.h (CC1_SPEC): Likewise.
23373         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
23374         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
23375         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
23376         Likewise.
23377         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
23378
23379 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
23380
23381         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
23382
23383 2011-01-14  Mike Stump  <mikestump@comcast.net>
23384
23385         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
23386         * config/fr30/fr30.md: Likweise
23387         (movsi_push): Likewise.
23388         (movsi_pop): Likewise.
23389         (enter_func): Likewise.
23390         * config/moxie/moxie.md (movsi_push): Likewise.
23391         (movsi_pop): Likewise.
23392
23393 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
23394
23395         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
23396         %{no_archive} %{exact_version}.
23397         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
23398         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
23399         %{no_archive} %{exact_version}.
23400         * config/mips/openbsd.h (LINK_SPEC): Likewise.
23401         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
23402         * config/mips/vxworks.h: Likewise.
23403
23404 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
23405
23406         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
23407
23408 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
23409
23410         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
23411         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
23412
23413 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
23414
23415         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
23416         -nodefaultlib.
23417
23418 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
23419
23420         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
23421         for mcpu not cpu.
23422         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
23423         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
23424         not cpu.
23425         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
23426         Don't handle -shlib.
23427
23428 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
23429
23430         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
23431         (CC1_SPEC): Don't handle -profile.
23432
23433 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
23434
23435         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
23436         * config/mips/mips.h (CC1_SPEC): Likewise.
23437
23438 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
23439
23440         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
23441         * config/mips/mips.h (CC1_SPEC): Likewise.
23442
23443 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
23444
23445         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
23446         * config/m32r/linux.h (LINK_SPEC): Likewise.
23447         * config/mips/linux.h (LINK_SPEC): Likewise.
23448         * config/mips/linux64.h (LINK_SPEC): Likewise.
23449         * config/sparc/linux.h (LINK_SPEC): Likewise.
23450         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
23451         LINK_SPEC): Likewise.
23452         * config/xtensa/linux.h (LINK_SPEC): Likewise.
23453
23454 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
23455
23456         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
23457         %{version:-v}.
23458         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
23459
23460 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
23461
23462         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
23463         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
23464
23465 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
23466
23467         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
23468
23469 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23470
23471         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
23472         supports -Bstatic/-Bdynamic.
23473         * configure: Regenerate.
23474
23475 2011-01-14  Jan Hubicka  <jh@suse.cz>
23476             Jack Howarth  <howarth@bromo.med.uc.edu>
23477
23478         PR target/46037
23479         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
23480         when checking debug_info_level. Test write_symbols instead of
23481         debug_hooks->var_location when setting flag_var_tracking_uninit.
23482
23483 2011-01-14  Richard Guenther  <rguenther@suse.de>
23484
23485         PR tree-optimization/47179
23486         * target.def (ref_may_alias_errno): New target hook.
23487         * targhooks.h (default_ref_may_alias_errno): Declare.
23488         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
23489         (default_ref_may_alias_errno): New function.
23490         * target.h (struct ao_ref_s): Declare.
23491         * tree-ssa-alias.c: Include target.h.
23492         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
23493         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
23494         (targhooks.o): Likewise.
23495         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
23496         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
23497
23498 2011-01-14  Richard Guenther  <rguenther@suse.de>
23499
23500         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
23501
23502 2011-01-14  Richard Guenther  <rguenther@suse.de>
23503
23504         PR tree-optimization/47280
23505         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
23506         return CFG changes.
23507         (tree_ssa_forward_propagate_single_use_vars): Deal with
23508         CFG changes from associate_plusminus.
23509
23510 2011-01-14  Richard Guenther  <rguenther@suse.de>
23511
23512         PR middle-end/47281
23513         Revert
23514         2011-01-11  Richard Guenther  <rguenther@suse.de>
23515
23516         PR tree-optimization/46076
23517         * tree-ssa.c (useless_type_conversion_p): Conversions from
23518         unprototyped to empty argument list function types are useless.
23519
23520 2011-01-14  Richard Guenther  <rguenther@suse.de>
23521
23522         PR tree-optimization/47286
23523         * tree-ssa-structalias.c (new_var_info): Register variables are global.
23524
23525 2011-01-14  Martin Jambor  <mjambor@suse.cz>
23526
23527         PR middle-end/46823
23528         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
23529
23530 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
23531
23532         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
23533         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
23534         * config/xtensa/xtensa.c (xtensa_libcall_value,
23535         xtensa_function_value_regno_p): New functions.
23536         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
23537
23538 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
23539
23540         PR c++/47213
23541         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
23542         PE specific hook.
23543         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
23544         New function prototype.
23545         * config/i386/winnt.c (i386_pe_assemble_visibility):
23546         Warn only if attribute was specified by user.
23547
23548 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
23549
23550         PR target/47251
23551         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
23552         floating point.
23553         (floatunsdidf2_fcfidu): Ditto.
23554
23555 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23556
23557         * config/s390/s390.c (print_operand_address): Replace 'error' with
23558         'output_operand_lossage'.
23559         (print_operand): Likewise.
23560
23561 2011-01-13  Jeff Law  <law@redhat.com>
23562
23563         PR rtl-optimization/39077
23564         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
23565         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
23566         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
23567         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
23568         * gcse.c (prune_insertions_deletions): New function.
23569         (compute_pre_data): Use it.
23570
23571 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
23572
23573         PR debug/PR46973
23574         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
23575         static function.
23576         (prune_unused_types_mark): Use it.
23577
23578 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
23579
23580         PR rtl-optimization/45352
23581         * sel-sched.c: Update copyright years.
23582         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
23583         in the advancing loop when we have issued issue_rate insns.
23584
23585 2011-01-12  Richard Henderson  <rth@redhat.com>
23586
23587         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
23588         (TARGET_MD_ASM_CLOBBERS): New.
23589
23590         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
23591         (TARGET_DELEGITIMIZE_ADDRESS): New.
23592
23593         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
23594         (clzsi2, *bsch): New patterns.
23595
23596         * config/mn10300/mn10300.md (INT): New mode iterator.
23597         (*mov<INT>_clr): New pattern, and peep2 to generate it.
23598
23599         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
23600         flag_split_wide_types.
23601
23602         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
23603         (mn10300_trampoline_init): Rewrite without a template, an immediate
23604         load and a direct branch.
23605         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
23606
23607 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
23608
23609         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
23610         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
23611         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
23612         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
23613
23614 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
23615
23616         PR debug/47209
23617         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
23618         of type.
23619
23620 2011-01-12  Jan Hubicka  <jh@suse.cz>
23621
23622         PR driver/47244
23623         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
23624         (PLUGIN_COND_CLOSE): New macro.
23625         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
23626
23627 2011-01-12  Richard Guenther  <rguenther@suse.de>
23628
23629         PR lto/47259
23630         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
23631         register variables in a MEM_REF.
23632
23633 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
23634
23635         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
23636         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
23637         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
23638         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
23639         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
23640         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
23641         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
23642         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
23643         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
23644         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
23645         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
23646         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
23647         * config/gnu-user.h: New.  Copied from linux.h.
23648         (LINUX_TARGET_STARTFILE_SPEC): Rename to
23649         GNU_USER_TARGET_STARTFILE_SPEC.
23650         (LINUX_TARGET_ENDFILE_SPEC): Rename to
23651         GNU_USER_TARGET_ENDFILE_SPEC.
23652         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
23653         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
23654         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
23655         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
23656         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
23657         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
23658         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
23659         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
23660         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
23661         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
23662         * config/arm/linux-eabi.h (CC1_SPEC): Use
23663         GNU_USER_TARGET_CC1_SPEC.
23664         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
23665         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
23666         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
23667         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
23668         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
23669         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
23670         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
23671         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
23672
23673 2011-01-12  Richard Guenther  <rguenther@suse.de>
23674
23675         PR other/46946
23676         * doc/invoke.texi (ffast-math): Document it is turned on
23677         with -Ofast.
23678
23679 2011-01-12  Jan Hubicka  <jh@suse.cz>
23680
23681         PR tree-optimization/47233
23682         * opts.c (common_handle_option): Disable ipa-reference with profile
23683         feedback.
23684
23685 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
23686
23687         * c-parser.c (c_parser_objc_at_property_declaration): Improved
23688         error message.
23689
23690 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
23691
23692         * c-parser.c (c_lex_one_token): Updated and reindented some
23693         comments.  No changes in code.
23694
23695 2011-01-11  Ian Lance Taylor  <iant@google.com>
23696
23697         * godump.c (go_output_var): Don't output the variable if there is
23698         already a type with the same name.
23699
23700 2011-01-11  Ian Lance Taylor  <iant@google.com>
23701
23702         * godump.c (go_format_type): Don't generate float80.
23703
23704 2011-01-11  Richard Henderson  <rth@redhat.com>
23705
23706         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
23707         declaration.  Rewrite for both speed and size.
23708         (mn10300_address_cost_1): Remove.
23709         (mn10300_register_move_cost): New.
23710         (mn10300_memory_move_cost): New.
23711         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
23712         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
23713         extensions, shifts, BSWAP, CLZ.
23714         (mn10300_wide_const_load_uses_clr): Remove.
23715         (TARGET_REGISTER_MOVE_COST): New.
23716         (TARGET_MEMORY_MOVE_COST): New.
23717         * config/mn10300/mn10300-protos.h: Update.
23718         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
23719
23720         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
23721         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
23722         * config/mn10300/mn10300-protos.h: Update.
23723         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
23724         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
23725         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
23726         (*test_int_bitfield, *test_byte_bitfield): Remove.
23727         (*bit_test, *subreg_bit_test): Remove.
23728         * config/mn10300/predicates.md (const_8bit_operand): Remove.
23729
23730         * config/mn10300/constraints.md ("c"): Rename from "A".
23731         ("A", "D"): New constraint letters.
23732         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
23733         (fmssf4, fnmasf4, fnmssf4): Likewise.
23734
23735         * config/mn10300/mn10300.md (isa): New attribute.
23736         (enabled): New attribute.
23737
23738         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
23739         (abssf2, negsf2): Define only for hardware fp.
23740         (sqrtsf2): Reformat.
23741         (addsf3, subsf3, mulsf3): Merge expander and insn.
23742
23743         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
23744         (DEBUGGER_AUTO_OFFSET): Remove.
23745         (DEBUGGER_ARG_OFFSET): Remove.
23746
23747         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
23748         Emit register stores with the same offsets as the hardware.
23749         (mn10300_store_multiple_operation): Don't check that the register
23750         save offsets are monotonic.
23751         * config/mn10300/mn10300-protos.h: Update.
23752
23753         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
23754
23755         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
23756         in terms of the value on the stack, not the MDR register.
23757
23758 2011-01-11  Jan Hubicka  <jh@suse.cz>
23759
23760         PR lto/45721
23761         PR lto/45375
23762         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
23763         (symbol_alias_set_destroy, symbol_alias_set_contains,
23764         propagate_aliases_backward): Declare.
23765         * lto-streamer-out.c (struct sets): New sturcture.
23766         (trivally_defined_alias): New function.
23767         (output_alias_pair_p): Rewrite.
23768         (output_unreferenced_globals): Fix output of alias pairs.
23769         (produce_symtab): Likewise.
23770         * ipa.c (function_and_variable_visibility): Set weak alias destination
23771         as needed in lto.
23772         * varasm.c (symbol_alias_set_t): Remove.
23773         (symbol_alias_set_destroy): Export.
23774         (propagate_aliases_forward, propagate_aliases_backward): New functions
23775         based on ...
23776         (compute_visible_aliases): ... this one; remove.
23777         (trivially_visible_alias): New
23778         (trivially_defined_alias): New.
23779         (remove_unreachable_alias_pairs): Rewrite.
23780         (finish_aliases_1): Reorganize code checking if alias is defined.
23781         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
23782         in LTO mode.
23783
23784 2011-01-11  Richard Guenther  <rguenther@suse.de>
23785
23786         PR tree-optimization/46076
23787         * tree-ssa.c (useless_type_conversion_p): Conversions from
23788         unprototyped to empty argument list function types are useless.
23789
23790 2011-01-11  Richard Guenther  <rguenther@suse.de>
23791
23792         PR middle-end/45235
23793         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
23794         volatile MEMs as MEM_READONLY_P.
23795
23796 2011-01-11  Richard Guenther  <rguenther@suse.de>
23797
23798         PR tree-optimization/47239
23799         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
23800
23801 2011-01-11  Jeff Law  <law@redhat.com>
23802
23803         PR tree-optimization/47086
23804         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
23805         IVs from statements that might throw.
23806
23807 2011-01-10  Jan Hubicka  <jh@suse.cz>
23808
23809         PR lto/45375
23810         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
23811
23812 2011-01-10  Jan Hubicka  <jh@suse.cz>
23813
23814         PR lto/45375
23815         * profile.c (read_profile_edge_counts): Ignore profile inconistency
23816         when correcting profile.
23817
23818 2011-01-10  Jan Hubicka  <jh@suse.cz>
23819
23820         PR lto/46083
23821         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
23822         DECL_FINI_PRIORITY.
23823         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
23824         Restore DECL_FINI_PRIORITY.
23825
23826 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23827
23828         * doc/gimple.texi: Fix quoting of multi-word return values in
23829         @deftypefn statements.  Ensure presence of return value.  Wrap
23830         overlong @deftypefn lines.
23831         (is_gimple_operand, is_gimple_min_invariant_address): Remove
23832         descriptions of removed functions.
23833         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
23834         of multi-word return value in @deftypefn statement.
23835
23836 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23837
23838         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
23839         (Conditional Expressions, Logical Operators)
23840         (Statement and operand traversals): Do not indent smallexample
23841         code.  Fix duplicate function argument in example.
23842
23843 2011-01-10  Jeff Law  <law@redhat.com>
23844
23845         PR tree-optimization/47141
23846         * ipa-split.c (split_function): Handle case where we are
23847         returning a value and the return block has a virtual operand phi.
23848
23849 2011-01-10  Jan Hubicka  <jh@suse.cz>
23850
23851         PR tree-optimization/47234
23852         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
23853         (pass_feedback_split_functions): Declare.
23854         * passes.c (init_optimization_passes): Add ipa-split as subpass of
23855         tree-profile.
23856         * ipa-split.c (gate_split_functions): Update comments; disable
23857         split-functions for profile_arc_flag and branch_probabilities.
23858         (gate_feedback_split_functions): New function.
23859         (execute_feedback_split_functions): New function.
23860         (pass_feedback_split_functions): New global var.
23861
23862 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
23863
23864         PR lto/46760
23865         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
23866         calling gimple_call_set_cannot_inline.
23867
23868 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
23869
23870         * config/darwin-sections.def: Remove unused section.
23871
23872 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
23873
23874         PR c++/47218
23875         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
23876
23877 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
23878
23879         PR objc/47232
23880         * c-parser.c (c_parser_declaration_or_fndef): Improved
23881         error message.
23882
23883 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
23884
23885         * config/i386/winnt.c (i386_pe_start_function): Make sure
23886         to switch back to function's section.
23887
23888 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
23889
23890         PR gcc/46902
23891         PR testsuite/46912
23892         * plugin.c: Move include of dlfcn.h from here...
23893         * system.h: ... to here.
23894
23895 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23896
23897         * doc/cpp.texi (C++ Named Operators): Fix markup for header
23898         file name.
23899         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
23900         two extra empty pages in PDF output.
23901
23902 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
23903
23904         PR objc/47078
23905         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
23906         for error recovery purposes behave as if it was not specified so
23907         that the default type is usd.
23908
23909 2011-01-07  Jan Hubicka  <jh@suse.cz>
23910
23911         PR tree-optmization/46469
23912         * ipa.c (function_and_variable_visibility): Clear needed flags on
23913         nodes with external decls; handle weakrefs merging correctly.
23914
23915 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
23916
23917         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
23918         not false.
23919
23920 2011-01-07  Jan Hubicka  <jh@suse.cz>
23921
23922         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
23923         and no longer claim that gold is required for linker plugin.
23924         * configure: Regenerate.
23925         * gcc.c (PLUGIN_COND): New macro.
23926         (LINK_COMMAND_SPEC): Use it.
23927         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
23928         * config.in (HAVE_LTO_PLUGIN): New.
23929         * configure.ac (--with-lto-plugin): New parameter; autodetect
23930         HAVE_LTO_PLUGIN.
23931
23932 2011-01-07  Jan Hubicka  <jh@suse.cz>
23933
23934         PR tree-optimization/46367
23935         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
23936         when we can update original.
23937         (cgraph_mark_inline_edge): Sanity check.
23938         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
23939
23940 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23941
23942         * config/spu/spu.h (ASM_COMMENT_START): Define.
23943
23944 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
23945
23946         PR driver/42445
23947         * gcc.c (%>S): New.
23948         (SWITCH_KEEP_FOR_GCC): Likewise.
23949         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
23950         (do_spec_1): Handle "%>".
23951
23952         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
23953
23954 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
23955
23956         PR target/47201
23957         * config/i386/i386.c (ix86_delegitimize_address): If
23958         simplify_gen_subreg fails, return orig_x.
23959
23960         PR bootstrap/47187
23961         * value-prof.c (gimple_stringop_fixed_value): Handle
23962         lhs of the call properly.
23963
23964 2011-01-07  Jan Hubicka  <jh@suse.cz>
23965
23966         PR lto/45375
23967         * lto-opt.c (lto_reissue_options): Set flag_shlib.
23968
23969 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
23970
23971         * target.def (function_switched_text_sections): New hook.
23972         * doc/tm.texi: Regenerated.
23973         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
23974         * final.c (default_function_switched_text_sections): New.
23975         (final_scan_insn): Call function_switched_text_sections when a
23976         mid-function section change occurs.
23977         * output.h (default_function_switched_text_sections): Declare.
23978         * config/darwin-protos.h (darwin_function_switched_text_sections):
23979         Likewise.
23980         * config/darwin.c (darwin_function_switched_text_sections): New.
23981         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
23982
23983 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
23984
23985         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
23986         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
23987         the secondary code fragment when outputting for DWARF == 2.
23988
23989 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
23990
23991         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
23992         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
23993         Remove.
23994         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
23995         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
23996
23997 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
23998
23999         PR debug/46704
24000         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
24001         when it is not empty.
24002
24003 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
24004
24005         Bobcat Enablement
24006         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
24007         (case ${target}): Add btver1.
24008         * config/i386/driver-i386.c (host_detect_local_cpu): Let
24009         -march=native recognize btver1 processors.
24010         * config/i386/i386-c.c (ix86_target_macros_internal): Add
24011         btver1 def_and_undef
24012         * config/i386/i386.c (struct processor_costs btver1_cost): New
24013         btver1 cost table.
24014         (m_BTVER1): New definition.
24015         (m_AMD_MULTIPLE): Includes m_BTVER1.
24016         (initial_ix86_tune_features): Add btver1 tune.
24017         (processor_target_table): Add btver1 entry.
24018         (static const char *const cpu_names): Add btver1 entry.
24019         (software_prefetching_beneficial_p): Add btver1.
24020         (ix86_option_override_internal): Add btver1 instruction sets.
24021         (ix86_issue_rate): Add btver1.
24022         (ix86_adjust_cost): Add btver1.
24023         * config/i386/i386.h (TARGET_BTVER1): New definition.
24024         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
24025         (enum processor_type): Add PROCESSOR_BTVER1.
24026         * config/i386/i386.md (define_attr "cpu"): Add btver1.
24027
24028 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24029
24030         PR target/43309
24031         * config/i386/i386.c (legitimize_tls_address)
24032         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
24033         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
24034         (tls_initial_exec_64_sun): New pattern.
24035
24036 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
24037
24038         * doc/invoke.texi (Overall Options): Improve wording and markup
24039         of the description of -wrapper.
24040
24041 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
24042
24043         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
24044         rdynamic, threads): New Driver options.
24045
24046 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24047
24048         PR target/38118
24049         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
24050         if coming from .tdata.
24051         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
24052
24053 2011-01-06  Jan Hubicka  <jh@suse.cz>
24054
24055         PR lto/47188
24056         * collect2.c (main): Do not enable LTOmode when plugin is active.
24057
24058 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24059
24060         PR other/45915
24061         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
24062         --version output if supported.
24063         * configure: Regenerate.
24064
24065 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
24066
24067         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
24068         Driver options.
24069
24070 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
24071
24072         PR c/47150
24073         * c-convert.c (convert): When converting a complex expression
24074         other than COMPLEX_EXPR to a different complex type, ensure
24075         c_save_expr is called instead of save_expr, unless in_late_binary_op.
24076         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
24077         when converting COMPLEX_TYPE.
24078
24079 2011-01-06  Ira Rosen  <irar@il.ibm.com>
24080
24081         PR tree-optimization/47139
24082         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
24083         only the last reduction value is used outside the loop.  Update
24084         documentation.
24085
24086 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
24087
24088         * config/rtems.opt: New.
24089         * config.gcc (*-*-rtems*): Use rtems.opt.
24090
24091 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
24092
24093         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
24094         processors do not support 3DNow instructions.
24095
24096 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24097
24098         * config/spu/spu.c (spu_option_override): Set parameter
24099         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
24100
24101 2011-01-05  Jan Hubicka  <jh@suse.cz>
24102
24103         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
24104         at the command line.
24105
24106 2011-01-05  Martin Jambor  <mjambor@suse.cz>
24107
24108         PR lto/47162
24109         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
24110         deltas on streamed outgoing edges.
24111         (output_node_opt_summary): Output info for outgoing edges only when
24112         the node is in new parameter set.
24113         (output_cgraph_opt_summary): New parameter set, passed to the two
24114         aforementioned functions.  Update its forward declaration and its
24115         callee too.
24116
24117 2011-01-05  Tom Tromey  <tromey@redhat.com>
24118
24119         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
24120         operator to c_finish_omp_atomic.
24121         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
24122         (build_unary_op): Update.
24123         (build_modify_expr): Update.
24124         (build_asm_expr): Update.
24125
24126 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24127
24128         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
24129         newly inserted insns.
24130         (pad_bb): Likewise.
24131         (spu_emit_branch_hint): Likewise.
24132         (insert_hbrp_for_ilb_runout): Likewise.
24133         (spu_machine_dependent_reorg): Call df_finish_pass after
24134         schedule_insns returns.
24135
24136 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24137
24138         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
24139
24140 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
24141
24142         PR tree-optimization/47005
24143         * tree-sra.c (struct access): Add 'non_addressable' bit.
24144         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
24145         (decide_one_param_reduction): Return 0 if the parameter is passed by
24146         reference and one of the accesses in the group is non_addressable.
24147
24148 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
24149
24150         PR tree-optimization/47056
24151         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
24152         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
24153         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
24154
24155 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
24156
24157         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
24158         initializer.  Skip view conversions from aggregate types.
24159
24160 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
24161
24162         PR bootstrap/47055
24163         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
24164
24165 2011-01-04  Philipp Thomas  <pth@suse.de>
24166
24167         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
24168         obvious typo.
24169
24170 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24171
24172         * function.c (thread_prologue_and_epilogue_insns): Do not crash
24173         on empty epilogue sequences.
24174
24175 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
24176
24177         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
24178         non-static): New Driver options.
24179
24180 2011-01-04  Jie Zhang  <jie@codesourcery.com>
24181
24182         PR driver/47137
24183         * gcc.c (default_compilers[]): Set combinable field to 0
24184         for all assembly languages.
24185
24186 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
24187
24188         * config/mips/loongson3a.md: New file.
24189         * config/mips/mips.md: Include loongson3a.md.
24190         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
24191         TUNE_LOONGSON_3A.
24192
24193 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
24194
24195         PR middle-end/47017
24196         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
24197         instead of convert_memory_address_addr_space on the base expression.
24198
24199 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24200
24201         * config/spu/spu.c (spu_option_override): Update error text
24202         for bad -march= / -mtune= values.
24203
24204 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24205
24206         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
24207         if branch-hint optimization will be performed.
24208
24209 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
24210
24211         PR tree-optimization/47148
24212         * ipa-split.c (split_function): Convert arguments to
24213         DECL_ARG_TYPE if possible.
24214
24215         PR tree-optimization/47155
24216         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
24217         when computing uns.
24218
24219         PR rtl-optimization/47157
24220         * combine.c (try_combine): If undobuf.other_insn becomes
24221         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
24222         and set *new_direct_jump_p too.
24223
24224 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
24225
24226         PR tree-optimization/47021
24227         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
24228
24229 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
24230
24231         * gcc.c (process_command): Update copyright notice dates.
24232         * gcov.c (print_version): Likewise.
24233         * gcov-dump.c (print_version): Likewise.
24234         * mips-tfile.c (main): Likewise.
24235         * mips-tdump.c (main): Likewise.
24236
24237 2011-01-03  Martin Jambor  <mjambor@suse.cz>
24238
24239         PR tree-optimization/46801
24240         * tree-sra.c (type_internals_preclude_sra_p): Check whether
24241         aggregate fields start at byte boundary instead of the bit-field flag.
24242
24243 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
24244
24245         PR driver/47137
24246         * gcc.c (main): Revert revision 168407.
24247
24248 2011-01-03  Martin Jambor  <mjambor@suse.cz>
24249
24250         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
24251
24252 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24253
24254         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
24255         vector optab to expand vector/scalar shift, update gimple to vector.
24256
24257 2011-01-03  Martin Jambor  <mjambor@suse.cz>
24258
24259         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
24260         a thunk.
24261
24262 2011-01-03  Martin Jambor  <mjambor@suse.cz>
24263
24264         PR tree-optimization/46984
24265         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
24266         HOST_WIDE_INT.
24267         (cgraph_create_indirect_edge): Fixed line length.
24268         (cgraph_indirect_call_info): Declare.
24269         (cgraph_make_edge_direct) Update declaration.
24270         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
24271         (cgraph_create_indirect_edge): Use it.
24272         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
24273         callees.
24274         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
24275         the new thunk_delta representation.
24276         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
24277         HOST_WIDE_INT.
24278         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
24279         (ipa_read_indirect_edge_info): Likewise.
24280         * lto-cgraph.c (output_edge_opt_summary): New function.
24281         (output_node_opt_summary): Call it on all outgoing edges.
24282         (input_edge_opt_summary): New function.
24283         (input_node_opt_summary): Call it on all outgoing edges.
24284
24285 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
24286
24287         PR driver/47137
24288         * gcc.c (main): Don't check have_o when settting combine_inputs.
24289
24290 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
24291
24292         * regrename.c: Add general comment describing the pass.
24293         (struct du_head): Remove 'length' field.
24294         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
24295         (regrename_optimize): Do not sort chains.  Rework comments, add others.
24296         Force renaming to the preferred class (if any) in the first pass and do
24297         not consider registers that belong to it in the second pass.
24298         (create_new_chain): Do not set 'length' field.
24299         (scan_rtx_reg): Likewise.
24300
24301 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
24302
24303         PR tree-optimization/47140
24304         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
24305         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
24306         to bit_value_binop.
24307
24308         PR rtl-optimization/47028
24309         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
24310         parm_birth_insn instead of at the beginning of first bb.
24311
24312 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
24313
24314         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
24315         Remove the word "see" before "@pxref".
24316         * doc/rtl.texi: Remove the word "see" before "@pxref".
24317
24318 2011-01-01  Jan Hubicka  <jh@suse.cz>
24319
24320         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
24321         memory.
24322
24323 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
24324
24325         PR target/38662
24326         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
24327
24328 \f
24329 Copyright (C) 2011 Free Software Foundation, Inc.
24330
24331 Copying and distribution of this file, with or without modification,
24332 are permitted in any medium without royalty provided the copyright
24333 notice and this notice are preserved.