]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
[multiple changes]
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
cee0d6d2
L
12011-08-05 H.J. Lu <hongjiu.lu@intel.com>
2
3 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
4
5 * doc/invoke.texi: Document core-avx-i.
6
96c891b3
RO
72011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8
9 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
10
2aacf3c3
IR
112011-08-05 Ira Rosen <ira.rosen@linaro.org>
12
13 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
14 result of multiple results reduction when extracting the final
15 value using scalar code.
16
0f36b2da
RG
172011-08-05 Richard Guenther <rguenther@suse.de>
18
19 PR tree-optimization/49984
20 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
21
8b201bc5
RG
222011-08-05 Richard Guenther <rguenther@suse.de>
23
24 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
25 return true for constant integer ranges.
26 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
27 BIT_IOR_EXPR handling.
28
c1ea7f07
KT
292011-08-04 Kai Tietz <ktietz@redhat.com>
30
31 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
32 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
33
1107f3ae
IR
342011-08-04 Ira Rosen <ira.rosen@linaro.org>
35
36 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
37 pattern def statement, and its access macro.
38 (NUM_PATTERNS): Set to 5.
39 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
40 pattern def statement.
41 (vect_transform_loop): Likewise.
42 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
43 function vect_recog_over_widening_pattern ().
44 (vect_operation_fits_smaller_type): New function.
45 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
46 Likewise.
47 (vect_pattern_recog_1): Move the code that marks pattern
48 statements to vect_mark_pattern_stmts (), and call it. Update
49 documentation.
50 * tree-vect-stmts.c (vect_supportable_shift): New function.
51 (vect_analyze_stmt): Handle pattern def statement.
52 (new_stmt_vec_info): Initialize pattern def statement.
53
6394830f
RH
542011-08-04 Richard Henderson <rth@redhat.com>
55
56 PR target/49964
57 * config/i386/i386.c (ix86_expand_call): Don't create nested
58 PARALLELs for TARGET_VZEROUPPER.
59 (ix86_split_call_vzeroupper): Fix extraction of the original call.
60 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
61 recognize nested PARALLELs.
62 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
63 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
64 *sibcall_value_pop_vzeroupper): Likewise.
65
faf7a23d
RH
662011-08-04 Richard Henderson <rth@redhat.com>
67
68 PR middle-end/49968
69 * calls.c (expand_call): Use fixup_args_size_notes for
70 emit_stack_restore.
71 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
72 in non-standard modes.
73
84f405a1
JJ
742011-08-04 Jakub Jelinek <jakub@redhat.com>
75
76 * gcc.c (self_spec): New variable.
77 (static_specs): Add self_spec.
78 (main): Call do_self_spec on "self_spec" specs after reading
79 user specs files. Move compare_debug handling right after that.
80
4d320da4
RG
812011-08-04 Richard Guenther <rguenther@suse.de>
82
83 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
84 (value_range_nonnegative_p): New function.
85 (ssa_name_nonnegative_p): Use it.
86 (value_range_constant_singleton): New function.
87 (op_with_constant_singleton_value_range): Use it.
88 (extract_range_from_binary_expr_1): New function, split out from ...
89 (extract_range_from_binary_expr): ... this. Remove fallback
90 constant folding done here.
91
7e29ba60
RG
922011-08-04 Richard Guenther <rguenther@suse.de>
93
94 PR tree-optimization/49806
95 * tree-vrp.c (op_with_boolean_value_range_p): New function.
96 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
97 a new statement for a final conversion to bool.
98
f142b5bc
RG
992011-08-04 Romain Geissler <romain.geissler@gmail.com>
100
101 * gengtype-state.c: Include "bconfig.h" if
102 GENERATOR_FILE is defined, "config.h" otherwise.
103 * gengtype.c: Likewise.
104 * gengtype-lex.l: Likewise.
105 * gengtype-parse.c: Likewise.
106 * Makefile.in (gengtype-lex.o-warn): New variable.
107 (plugin_resourcesdir): Likewise.
108 (plugin_bindir): Likewise.
109 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
110 (MOSTLYCLEANFILES): Add gengtype$(exeext).
111 (native): Depend on gengtype$(exeext) is $enable_plugin
112 is set to "yes".
113 (gtype.state): Depend on s-gtype. Use temporary file.
114 (gengtype-lex.o): New rule.
115 (gengtype-parse.o): Likewise.
116 (gengtype-state.o): Likewise.
117 (gengtype$(exeext)): Likewise.
118 (install-gengtype): Likewise.
119 (gengtype.o): Likewise.
120 (build/gengtype.o): Depend on version.h.
121 (build/gengtype-state): Depend on double-int.h, version.h,
122 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
123 (install-plugin): Depend on install-gengtype.
124
8dd00781
JJ
1252011-08-04 Jakub Jelinek <jakub@redhat.com>
126
127 PR middle-end/49905
128 * tree.h (init_attributes): New prototype.
129 * attribs.c (init_attributes): No longer static.
130
6eb9142a
RR
1312011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
132
133 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
134 maybe_suffix.
135
63a73071
DL
1362011-08-03 David Li <davidxl@google.com>
137
138 * tree-optimize.c (execute_fixup_cfg): Fix up entry
139 outgoing edge counts after inlining.
140
90037898
DL
1412011-08-03 David Li <davidxl@google.com>
142
143 * profile.c (compute_branch_probabilities): Compute
144 function frequency after profile annotation.
145
ea6c2b0e
AM
1462011-08-04 Alan Modra <amodra@gmail.com>
147
148 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
149 use_backchain_to_restore_sp initialisation.
150 (rs6000_legitimate_offset_address_p): Simplify offset test.
151
4b39813a
RH
1522011-08-03 Richard Henderson <rth@redhat.com>
153
154 * config/spu/spu.md: Use define_c_enum instead of define_constants.
155 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
156 (UNSPECV_NOP): New.
157
a6365e99
RH
1582011-08-03 Richard Henderson <rth@redhat.com>
159
160 PR target/34888
161 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
162
cb3d2e33
JJ
1632011-08-03 Jakub Jelinek <jakub@redhat.com>
164
165 PR tree-optimization/49948
166 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
167
35bdbc69
AS
1682011-08-03 Anatoly Sokolov <aesok@post.ru>
169
170 * config/m32c/m32c.c (class_sizes): Remove.
171 (reduce_class): Change arguments and return type to reg_class_t.
172 Change type cc var to HARD_REG_SET. Change type best var to
173 reg_class_t. Change type best_size var to unsigned int. Remove
174 initialization class_sizes var. Use reg_class_size array instead
175 of class_sizes. Use reg_class_contents array instead
176 of class_contents.
177
a130fb24
RG
1782011-08-03 Richard Guenther <rguenther@suse.de>
179
180 PR middle-end/49958
181 * fold-const.c (fold_binary_loc): Only associate
182 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
183 overflow wraps.
184
276e0224
AM
1852011-08-03 Alan Modra <amodra@gmail.com>
186
187 PR rtl-optimization/49941
188 * jump.c (mark_jump_label): Comment.
189 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
190 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
191 (mark_used_flags): Don't mark RETURN.
192
eb723fa3
RG
1932011-08-03 Richard Guenther <rguenther@suse.de>
194
195 PR tree-optimization/49938
196 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
197 deal with a POLYNOMIAL_CHREC.
198
edc429ff
RE
1992011-08-03 Revital Eres <revital.eres@linaro.org>
200
201 * modulo-sched.c (calculate_stage_count,
202 calculate_must_precede_follow, get_sched_window,
203 try_scheduling_node_in_cycle, remove_node_from_ps): Add
204 declaration.
205 (update_node_sched_params, set_must_precede_follow, optimize_sc):
206 New functions.
207 (reset_sched_times): Call update_node_sched_params.
208 (sms_schedule): Call optimize_sc.
209 (get_sched_window): Change function arguments.
210 (sms_schedule_by_order): Update call to get_sched_window.
211 Call set_must_precede_follow.
212 (calculate_stage_count): Add function argument.
213
9a08d230
RH
2142011-08-02 Richard Henderson <rth@redhat.com>
215
216 PR target/49864
a3fef928 217 PR target/49879
9a08d230
RH
218 * reg-notes.def (REG_ARGS_SIZE): New.
219 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
220 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
221 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
222 different stack levels.
223 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
224 (maybe_move_args_size_note): New.
225 (combine_stack_adjustments_for_block): Use it.
226 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
227 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
228 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
229 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
230 (cur_cfa): New.
231 (queued_args_size): Remove.
232 (add_cfi_args_size): Assert size is non-negative.
233 (stack_adjust_offset, dwarf2out_args_size): Remove.
234 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
235 (notice_args_size, notice_eh_throw): New.
236 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
237 (dwarf2out_frame_debug_adjust_cfa): Likewise.
238 (dwarf2out_frame_debug_cfa_offset): Likewise.
239 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
240 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
241 (change_cfi_row): Don't emit args_size.
242 (maybe_record_trace_start_abnormal): Split out from ...
243 (maybe_record_trace_start): Here. Set args_size_undefined.
244 (create_trace_edges): Update to match.
245 (scan_trace): Handle REG_ARGS_SIZE.
246 (connect_traces): Connect args_size between EH insns.
247 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
248 * explow.c (suppress_reg_args_size): New.
249 (adjust_stack_1): Split out from ...
250 (adjust_stack): ... here.
251 (anti_adjust_stack): Use it.
252 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
253 * expr.c (mem_autoinc_base): New.
254 (fixup_args_size_notes): New.
255 (emit_single_push_insn_1): Rename from emit_single_push_insn.
256 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
257 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
258 * reload1.c (reload_as_needed): Likewise.
259 * rtl.h (fixup_args_size_notes): Declare.
260
9f813990
PC
2612011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
262
263 PR bootstrap/49914
264 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
265 of abs.
266 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
267 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
268
8f1594b2
RH
2692011-08-02 Richard Henderson <rth@redhat.com>
270
271 * config/h8300/h8300.c (push, pop): Return the insn.
272 (h8300_swap_into_er6): Generate correct unwind info.
273 (h8300_swap_out_of_er6): Likewise.
cde7b553
RH
274 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
275 complex cfa expression.
276 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
8f1594b2 277
3ed2c643
L
2782011-08-02 H.J. Lu <hongjiu.lu@intel.com>
279
280 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
281
f9b4f8c1
RH
2822011-08-02 Richard Henderson <rth@redhat.com>
283
284 PR target/49878
285 * config/h8300/h8300.c (h8300_move_ok): New.
286 * config/h8300/h8300-protos.h: Declare it.
287 * config/h8300/h8300.md (P): New mode iterator.
288 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
289 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
290 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
291 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
292 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
293 and pushqi1_h8300hs_normal; use PRE_MODIFY and
294 register_no_sp_elim_operand.
295 (*pushhi1_h8300hs_<P>): Similarly.
296 (pushqi1, pushhi1, pushhi1_h8300): Remove.
297 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
298
b7cef595
RH
2992011-08-02 Richard Henderson <rth@redhat.com>
300
301 PR target/49881
302 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
303
20906c66
JJ
3042011-08-02 Jakub Jelinek <jakub@redhat.com>
305
306 * c-parser.c (enum c_parser_prec): New enum, moved from within
307 c_parser_binary_expression.
308 (c_parser_binary_expression): Add PREC argument. Stop parsing
309 if operator has lower or equal precedence than PREC.
310 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
311 callers.
312 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
313 Adjust c_finish_omp_atomic caller.
314 (c_parser_omp_taskyield): New function.
315 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
316 (c_parser_omp_clause_name): Handle final and mergeable clauses.
317 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
318 functions.
319 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
320 and PRAGMA_OMP_CLAUSE_MERGEABLE.
321 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
322 (c_parser_omp_clause_reduction): Handle min and max.
323 * c-typeck.c (c_finish_omp_clauses): Don't complain about
324 const qualified predetermined vars in firstprivate clause.
325 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
326 Handle MIN_EXPR and MAX_EXPR.
327 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
328 and OMP_CLAUSE_MERGEABLE.
329 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
330 and OMP_ATOMIC_CAPTURE_NEW.
331 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
332 OMP_CLAUSE_MERGEABLE.
333 (omp_clause_code_name): Likewise.
334 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
335 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
336 and OMP_CLAUSE_MERGEABLE.
337 (OMP_CLAUSE_FINAL_EXPR): Define.
338 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
339 OMP_CLAUSE_MERGEABLE.
340 (expand_task_call): Likewise.
341 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
342 (expand_omp_atomic_fetch_op): Handle cases where old or new
343 value is needed afterwards.
344 (expand_omp_atomic): Call expand_omp_atomic_load resp.
345 expand_omp_atomic_store.
346 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
347 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
348 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
349 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
350 * tree-nested.c (convert_nonlocal_omp_clauses,
351 convert_local_omp_clauses): Likewise.
352 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
353 OMP_ATOMIC_CAPTURE_NEW): New.
354 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
355 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
356 New inlines.
357 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
358 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
359 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
360
9b80d091
KT
3612011-08-02 Kai Tietz <ktietz@redhat.com>
362
363 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
364 boolean-type.
365 (ssa_forward_propagate_and_combine): Interprete result of
366 forward_propagate_comparison.
367 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
368 boolean-typed operands for comparisons.
369
7ea56b23 3702011-08-02 Georg-Johann Lay <avr@gjlay.de>
276e0224 371
7ea56b23
GJL
372 * config/avr/libgcc.S: Gather related function in the
373 same input section.
276e0224 374 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
7ea56b23
GJL
375 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
376 references.
377 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
378 __udivmodsi4, __divmodsi4, __prologue_saves__,
379 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
380 __do_copy_data, __do_clear_bss, __do_global_ctors,
381 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
382
643e867f
UB
3832011-08-02 Uros Bizjak <ubizjak@gmail.com>
384
385 PR target/47766
386 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
387 (stack_protect_test): The pattern compares ptr_mode value.
388
390fa588
AM
3892011-08-02 Alan Modra <amodra@gmail.com>
390
391 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
392 note for save_LR_around_toc_setup sequence.
393
d4be16f6
L
3942011-08-01 H.J. Lu <hongjiu.lu@intel.com>
395
643e867f 396 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
d4be16f6 397
3c67fd9c
SP
3982011-08-01 Sebastian Pop <sebastian.pop@amd.com>
399 Joseph Myers <joseph@codesourcery.com>
400
401 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
402 * hwint.c: Include diagnostic-core.h.
403 (abs_hwi): New.
404 (gcd): Moved here...
405 (pos_mul_hwi): New.
406 (mul_hwi): New.
407 (least_common_multiple): Moved here...
408 * hwint.h (gcd): ... from here.
409 (least_common_multiple): ... from here.
410 (HOST_WIDE_INT_MIN): New.
411 (HOST_WIDE_INT_MAX): New.
412 (abs_hwi): Declared.
413 (gcd): Declared.
414 (pos_mul_hwi): Declared.
415 (mul_hwi): Declared.
416 (least_common_multiple): Declared.
417 * omega.c (check_pos_mul): Removed.
418 (check_mul): Removed.
419 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
420 mul_hwi instead of check_mul.
421
172c08a5
RH
4222011-08-01 Richard Henderson <rth@redhat.com>
423
424 PR target/49881
425 * config/avr/avr.h (PUSH_ROUNDING): New.
426 * config/avr/avr.md (pushqi1): Rename from *pushqi.
427 (*pushhi, *pushsi, *pushsf): Remove.
428 (MPUSH): New mode iterator.
429 (push<MPUSH>1): New expander.
430
0d5e496f
AS
4312011-08-01 Anatoly Sokolov <aesok@post.ru>
432
433 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
434 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
435 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
436 mmix_preferred_output_reload_class): Remove.
437 * config/mmix/mmix.c (mmix_preferred_reload_class,
438 mmix_preferred_output_reload_class): Make static. Change rclass
439 argument and return type to reg_class_t.
440 (TARGET_PREFERRED_RELOAD_CLASS,
441 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
442
a44250f4
JR
4432011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
444
445 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
446 handling.
447
efd7630c
L
4482011-08-01 H.J. Lu <hongjiu.lu@intel.com>
449
450 PR target/47766
451 * config/i386/i386.md (PTR): New.
452 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
453 (stack_protect_test): Likewise.
454 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
455 (stack_tls_protect_set_<mode>): Likewise.
456 (stack_tls_protect_test_<mode>): Likewise.
457
03acddfe
UB
4582011-08-01 Uros Bizjak <ubizjak@gmail.com>
459
460 PR target/49927
461 * config/i386/i386.c (ix86_address_subreg_operand): New.
462 (ix86_decompose_address): Use ix86_address_subreg_operand.
463 (ix86_legitimate_address_p): Do not assert that subregs satisfy
464 register_no_elim_operand in DImode.
465
67f2d54f
IR
4662011-08-01 Ira Rosen <ira.rosen@linaro.org>
467
468 PR tree-optimization/49926
469 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
470 in a chain doesn't have uses both inside and outside the loop.
471
f2c308fa 4722011-08-01 Georg-Johann Lay <avr@gjlay.de>
03acddfe 473
f2c308fa
GJL
474 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
475 * config/avr/avr-devices.c (avr_mcu_types): Use it.
476 * config/avr/avr-mcus.def (AVR_MCU): Use it.
477 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
478 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
479 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
480 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
481 to detect if XJMP must not be skipped.
482
bd15e32c
AM
4832011-08-02 Alan Modra <amodra@gmail.com>
484
03acddfe
UB
485 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
486 Delete.
bd15e32c
AM
487 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
488 (rs6000_emit_prologue): Don't prematurely return when
489 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
490 save_toc_in_prologue case.
491 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
492 calls_alloca.
493
d80de9e1 4942011-08-01 Georg-Johann Lay <avr@gjlay.de>
bd15e32c 495
d80de9e1
GJL
496 * config/avr/avr-devices.c: Delete SVN property svn:executable.
497 * config/avr/predicates.md: Ditto.
498 * config/avr/driver-avr.c: Ditto.
499 * config/avr/genopt.sh: Set SVN property svn:executable to *.
500
ee222ce0
L
5012011-08-01 H.J. Lu <hongjiu.lu@intel.com>
502
503 * calls.c (emit_library_call_value_1): Declare size only if
504 BLOCK_REG_PADDING is defined.
505
5fcafa60
KY
5062011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
507
508 PR target/49547
03acddfe 509 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
5fcafa60
KY
510 (x86_64-*-*): Likewise.
511 * config/i386/i386.opt (mlzcnt): New.
512 * config/i386/abmintrin.h: File removed.
513 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
03acddfe 514 * config/i386/lzcntintrin.h: ... here. New file.
5fcafa60
KY
515 (__lzcnt): Rename to ...
516 (__lzcnt32): ... this.
517 * config/i386/bmiintrin.h (head): Update copyright year.
518 (__lzcnt_u16): Removed.
519 (__lzcnt_u32): Likewise.
520 (__lzcnt_u64): Likewise.
521 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
522 is defined, remove abmintrin.h.
523 * config/i386/cpuid.h (bit_LZCNT): New.
524 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
525 LZCNT feature.
526 * config/i386/i386-c.c (ix86_target_macros_internal): Define
527 __LZCNT__ if needed.
528 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
529 (ix86_option_override_internal): Handle LZCNT option.
530 (ix86_valid_target_attribute_inner_p): Likewise.
531 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
532 * config/i386/i386.h (TARGET_LZCNT): New.
533 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
534 * config/i386/i386.md (clz<mode>2): Update insn constraint.
535 (clz<mode>2_lzcnt): Likewise.
536 * doc/invoke.texi: Mention -mlzcnt option.
537 * doc/extend.texi: Likewise.
538
655b30bf
JB
5392011-08-01 Julian Brown <julian@codesourcery.com>
540
541 * configure.ac (fixed-point): Add ARM support.
542 * configure: Regenerate.
543 * config/arm/arm.c (arm_fixed_mode_set): New struct.
544 (arm_set_fixed_optab_libfunc): New.
545 (arm_set_fixed_conv_libfunc): New.
546 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
547 ARM-specific names.
548 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
549 return values in SImode.
550 (arm_return_in_msb): Return fixed-point types in the msb.
551 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
552 upwards.
553 (arm_scalar_mode_supported_p): Support fixed-point modes.
554 (arm_vector_mode_supported_p): Support vector fixed-point modes.
555 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
556 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
557 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
558 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
559 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
560 New mode iterators.
561 (qaddsub_suf): New mode attribute.
562 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
563 vector modes.
564 * config/arm/predicates.md (sat_shift_operator): New predicate.
565 * config/arm/arm-fixed.md: New.
566 * config/arm/arm.md: Include arm-fixed.md.
567 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
568
460b171d
JB
5692011-08-01 Julian Brown <julian@codesourcery.com>
570
571 * calls.c (emit_library_call_value_1): Support padding for libcall
572 arguments and return values.
573 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
574 downwards in big-endian mode.
575
b6193c94
RO
5762011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
577
578 PR debug/49887
579 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
580 * config/sol2-protos.h: Likewise.
581 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
582 solaris_code_end.
583 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
584 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
585 solaris_file_end.
586 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
587
0747aae4
JB
5882011-08-01 Julian Brown <julian@codesourcery.com>
589
590 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
591
848fac28
JB
5922011-08-01 Julian Brown <julian@codesourcery.com>
593
594 * final.c (output_addr_const): Print fixed-point constants as
595 decimal not hex.
596
e62a2b6e
RG
5972011-08-01 Richard Guenther <rguenther@suse.de>
598
599 * stor-layout.c (initialize_sizetypes): Properly sign-extend
600 bitsiztype TYPE_MAX_VALUE.
601
f64398b5
JB
6022011-08-01 Julian Brown <julian@codesourcery.com>
603
604 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
605 comparison helpers.
606
c469244e
RH
6072011-07-31 Richard Henderson <rth@redhat.com>
608
609 * config/h8300/crti.asm: Add flags to .section directive.
610 * config/h8300/crtn.asm: Likewise.
611
b87ac615
RH
6122011-07-31 Richard Henderson <rth@redhat.com>
613
614 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
615 * tree.c (build_common_tree_nodes): Likewise.
616
05eb5cc3
KK
6172011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
618
619 PR target/49880
620 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
621 (divsi3_i1): Likewise.
622
a3059635
BS
6232011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
624
625 PR tree-optimization/49749
626 * tree-ssa-reassoc.c (get_rank): New forward declaration.
627 (PHI_LOOP_BIAS): New macro.
628 (phi_rank): New function.
629 (loop_carried_phi): Likewise.
630 (propagate_rank): Likewise.
631 (get_rank): Add calls to phi_rank and propagate_rank.
bd15e32c 632
3ee7be4c
L
6332011-07-31 H.J. Lu <hongjiu.lu@intel.com>
634
635 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
636 of TARGET_64BIT.
637 (PTRDIFF_TYPE): Likewise.
638
deb1f617
UB
6392011-07-31 Uros Bizjak <ubizjak@gmail.com>
640
641 PR target/49920
642 * config/i386/i386.md (strset): Do not expand strset_singleop
643 when %eax or $edi are fixed.
644 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
645 (*strsetsi_1): Ditto.
646 (*strsethi_1): Ditto.
647 (*strsetqi_1): Ditto.
648 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
649 (*rep_stossi): Ditto.
650 (*rep_stosqi): Ditto.
03acddfe 651 (*strlenqi_1): Ditto.
deb1f617
UB
652 (cmpstrnsi): Also fail when %ecx is fixed.
653 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
654 (*cmpstrnqi_1): Ditto.
deb1f617
UB
655 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
656 (*strmovsi_1): Ditto.
657 (*strmovhi_1): Ditto.
658 (*strmovqi_1): Ditto.
659 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
660 (*rep_movsi): Ditto.
661 (*rep_movqi): Ditto.
662
03e69b12
MP
6632011-07-31 Mikael Pettersson <mikpe@it.uu.se>
664
665 PR target/47908
666 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
667 Disable instruction scheduling for non-ColdFire targets.
668 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
669
dcaac07d
RE
6702011-07-31 Revital Eres <revital.eres@linaro.org>
671
672 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
673 of anti-dep edge from a branch.
674 (add_cross_iteration_register_deps): Create anti-dep edge from
675 a branch.
676
413e50a2
RE
6772011-07-31 Revital Eres <revital.eres@linaro.org>
678
679 * modulo-sched.c: Change comment.
680 (reset_sched_times): Fix print message.
681 (print_partial_schedule): Add print info.
682
f047e518
TV
6832011-07-31 Tom de Vries <tom@codesourcery.com>
684
685 PR middle-end/43513
686 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
687 get_object_alignment and TYPE_ALIGN.
688
b3421a06
TV
6892011-07-30 Tom de Vries <tom@codesourcery.com>
690
691 PR middle-end/43513
692 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
693 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
694
cc822cc1
RO
6952011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
696
697 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
698 <sys/sbd.h>.
699 (cpu_types): New array.
700 (cputype): New function.
701 (host_detect_local_cpu): Only define buf, f if !__sgi__.
702 Use scaninvent instead of /proc/cpuinfo if __sgi__.
703 * config.host: Also use driver-native.o, mips/x-native on
704 mips-sgi-irix*.
deb1f617 705 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
cc822cc1
RO
706 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
707 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
708
25142650
JJ
7092011-07-29 Jakub Jelinek <jakub@redhat.com>
710
711 PR middle-end/49897
712 PR middle-end/49898
713 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
714 in nested parallel and outer is a gimple_reg, mark it as addressable
715 and set its bit in task_shared_vars bitmap too.
716
89840058
UB
7172011-07-29 Uros Bizjak <ubizjak@gmail.com>
718
719 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
720
d2da41f5
RO
7212011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
722
723 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
724 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
725 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
726 AMASK_LOCKPFTCHOK): Define.
727 (host_detect_local_cpu): Remove buf, f, cpu_names.
728 Define cpu_types, implver, amask.
729 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
730 native CPU.
731 * config.host: Also use driver-alpha.o, alpha/x-alpha on
732 alpha*-dec-osf*.
733 * config/alpha/osf5.h [__alpha__ || __alpha]
734 (host_detect_local_cpu): Declare.
735 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
736 (DRIVER_SELF_SPECS): Define.
737
dadecee2
UB
7382011-07-29 Uros Bizjak <ubizjak@gmail.com>
739
740 PR target/47715
741 * config/i386/i386.md (*load_tp_x32): New.
742 (*load_tp_x32_zext): Ditto.
743 (*add_tp_x32): Ditto.
744 (*add_tp_x32_zext): Ditto.
745 (*load_tp_<mode>): Disable for TARGET_X32 targets.
746 (*add_tp_<mode>): Ditto.
747 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
748 ptr_mode and convert to Pmode if needed.
749
db7ccee2 7502011-07-29 Georg-Johann Lay <avr@gjlay.de>
dadecee2 751
db7ccee2
GJL
752 PR target/49687
753 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
754 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
755 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
756 Add X to register footprint: Clobber r26/r27.
757
96d03496
RG
7582011-07-29 Richard Guenther <rguenther@suse.de>
759
760 * builtins.c (fold_builtin_signbit): Build the comparison
761 with a proper type.
762
64fb0d3a
RG
7632011-07-29 Richard Guenther <rguenther@suse.de>
764
765 PR tree-optimization/49893
766 * tree-predcom.c (suitable_reference_p): Volatile references
767 are not suitable.
768
6130646b 7692011-07-29 Georg-Johann Lay <avr@gjlay.de>
dadecee2 770
6130646b
GJL
771 PR target/49313
772 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
773 (__ctzsi2): Result for 0 may be undefined.
774 (__ctzhi2): Result for 0 may be undefined.
775 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
776 (__popcountsi2): Ditto. And don't clobber r26.
777 (__popcountdi2): Ditto. And don't clobber r27.
778 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
779 (parityhi2): New expand.
780 (paritysi2): New expand.
781 (popcounthi2): New expand.
782 (popcountsi2): New expand.
783 (clzhi2): New expand.
784 (clzsi2): New expand.
785 (ctzhi2): New expand.
786 (ctzsi2): New expand.
787 (ffshi2): New expand.
788 (ffssi2): New expand.
789 (copysignsf3): New insn.
790 (bswapsi2): New expand.
791 (*parityhi2.libgcc): New insn.
792 (*parityqihi2.libgcc): New insn.
793 (*paritysihi2.libgcc): New insn.
794 (*popcounthi2.libgcc): New insn.
795 (*popcountsi2.libgcc): New insn.
796 (*popcountqi2.libgcc): New insn.
797 (*popcountqihi2.libgcc): New insn-and-split.
798 (*clzhi2.libgcc): New insn.
799 (*clzsihi2.libgcc): New insn.
800 (*ctzhi2.libgcc): New insn.
801 (*ctzsihi2.libgcc): New insn.
802 (*ffshi2.libgcc): New insn.
803 (*ffssihi2.libgcc): New insn.
804 (*bswapsi2.libgcc): New insn.
805
a9b332d4
RG
8062011-07-29 Richard Guenther <rguenther@suse.de>
807
808 * tree-vrp.c (get_value_range): Only set parameter default
809 definitions to varying, leave others at undefined.
810 (extract_range_from_binary_expr): Fix undefined handling.
811 (vrp_visit_phi_node): Handle merged undefined state.
812
154516d9
WG
8132011-07-29 Wei Guozhi <carrot@google.com>
814
815 PR rtl-optimization/49799
816 * combine.c (make_compound_operation): Check if the bit field is valid
817 before change it to bit field extraction.
818
e40a0b69
BS
8192011-07-29 Bernd Schmidt <bernds@codesourcery.com>
820
821 PR rtl-optimization/49891
822 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
823 newly created returnjumps.
824
13a23442
DD
8252011-07-28 DJ Delorie <dj@redhat.com>
826
69135c94
DD
827 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
828 local frame in a naked function, and produce a suitable error for
829 that specific case.
830
13a23442
DD
831 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
832 registers to be reloaded in HI classes when the target is HI.
833
6c6c79a9
SP
8342011-07-28 Sebastian Pop <sebastian.pop@amd.com>
835
836 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
837 bound_one, bound_two.
838
0c43dbaf
SP
8392011-07-28 Sebastian Pop <sebastian.pop@amd.com>
840
841 PR middle-end/48648
842 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
843 CLAST assignments.
844 (translate_clast): Same.
845 (translate_clast_assignment): New.
846
60cf26cc
SP
8472011-07-28 Sebastian Pop <sebastian.pop@amd.com>
848
849 PR tree-optimization/49876
850 * sese.c (rename_uses): Do not return false on gloog_error: set
851 the new_expr to integer_zero_node and continue code generation.
852 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
853
4fe249e7
JJ
8542011-07-28 Jakub Jelinek <jakub@redhat.com>
855
856 PR debug/49846
857 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
858 arguments also check if they aren't initialized with a MODE_INT
859 mode of the same size.
860
86f98641
AH
8612011-07-28 Aldy Hernandez <aldyh@redhat.com>
862
863 * expr.c (get_bit_range): Handle *MEM_REF's.
864
dc0ff1c8
BS
8652011-07-28 Bernd Schmidt <bernds@codesourcery.com>
866
867 * rtlanal.c (tablejump_p): False for returns.
868 * reorg.c (first_active_target_insn): New static function.
869 (find_end_label): Set JUMP_LABEL for a new returnjump.
870 (optimize_skip, get_jump_flags, rare_destination,
871 mostly_true_jump, get_branch_condition,
872 steal_delay_list_from_target, own_thread_p,
873 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
874 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
875 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
876 * jump.c (delete_related_insns): Likewise.
877 (jump_to_label_p): New function.
878 (redirect_target): New static function.
879 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
880 (redirect_jump_1): Assert that the new label is nonnull.
881 (redirect_jump): Likewise.
882 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
883 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
884 exit block.
885 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
886 changed. Ensure that the right label is passed to redirect_jump.
887 * function.c (emit_return_into_block,
888 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
889 ret_rtx in their JUMP_LABEL.
890 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
891 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
892 pass ret_rtx as label.
893 * cfglayout.c (fixup_reorder_chain): Use
894 force_nonfallthru_and_redirect rather than force_nonfallthru.
895 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
896 * rtl.h (ANY_RETURN_P): New macro.
897 (jump_to_label_p): Declare.
898 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
899 JUMP_LABELs.
900 (mark_target_live_regs): Likewise.
901 * basic-block.h (force_nonfallthru_and_redirect): Declare.
902 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
903 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
904 alpha_tablejump_best_label): Remove functions.
905 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
906 alpha_tablejump_best_label): Remove declarations.
907 * config/sh/sh.c (barrier_align, split_branches): Adjust for
908 ret_rtx in JUMP_LABELs.
909 * config/arm/arm.c (is_jump_table): Likewise.
910
a2e49bb2
UB
9112011-07-28 Uros Bizjak <ubizjak@gmail.com>
912
913 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
914 special predicate. Remove explicit mode checks.
915
64153cce
JJ
9162011-07-28 Jakub Jelinek <jakub@redhat.com>
917
a2e49bb2
UB
918 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
919 DW_AT_data_member_location containing just DW_OP_plus_uconst.
b3882148 920
64153cce
JJ
921 PR debug/49871
922 * dwarf2out.c (size_of_die, value_format, output_die): Use
923 DW_FORM_udata instead of DW_FORM_data[48] for
924 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
925
0465f4f8
L
9262011-07-28 H.J. Lu <hongjiu.lu@intel.com>
927
844bf05b
UB
928 * config/i386/i386.md (*tls_global_dynamic_64): Update
929 length attribute.
0465f4f8 930
f51c4a8a
UB
9312011-07-28 Uros Bizjak <ubizjak@gmail.com>
932
933 PR target/47715
934 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
935 tls_symbolic_operand check. Update code sequence for TARGET_X32.
936 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
937 (tls_dynamic_gnu2_64): Ditto.
938 (*tls_dynamic_gnu2_lea_64): Ditto.
939 (*tls_dynamic_gnu2_call_64): Ditto.
940 (*tls_dynamic_gnu2_combine_64): Ditto.
941
5e9627ca
L
9422011-07-28 H.J. Lu <hongjiu.lu@intel.com>
943
944 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
945
40b9321d
L
9462011-07-28 H.J. Lu <hongjiu.lu@intel.com>
947
948 PR target/47364
949 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
950
95f89bb3
RR
9512011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
952
953 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
954 before the core constraints. Adjust attributes.
a2e49bb2 955 ("*thumb2_movdf_vfp"): Likewise.
95f89bb3 956
98958241
KT
9572011-07-28 Kai Tietz <ktietz@redhat.com>
958
f51c4a8a 959 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
98958241
KT
960 (simplify_truth_ops_using_ranges): Likewise.
961 (build_assert_expr_for): Likewise.
962 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
963 and handle BIT_NOT_EXPR for truth-operation.
964
f627fef2 9652011-07-28 Georg-Johann Lay <avr@gjlay.de>
f51c4a8a 966
f627fef2
GJL
967 PR target/49313
968 Undo r176835 from trunk
969 2011-07-27 Georg-Johann Lay
970
296799ba 9712011-07-28 Georg-Johann Lay <avr@gjlay.de>
f51c4a8a 972
296799ba
GJL
973 PR target/49687
974 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
975 Add _muluhisi3, _mulshisi3, _usmulhisi3.
976 * config/avr/libgcc.S (__mulsi3): Rewrite.
977 (__mulhisi3): Rewrite.
978 (__umulhisi3): Rewrite.
979 (__usmulhisi3): New.
980 (__muluhisi3): New.
981 (__mulshisi3): New.
982 (__mulohisi3): New.
983 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
984 declare.
985 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
986 (pseudo_register_or_const_int_operand): New.
987 (combine_pseudo_register_operand): New.
988 (u16_operand): New.
989 (s16_operand): New.
990 (o16_operand): New.
991 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
992 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
993 (any_extend, any_extend2): New code iterators.
994 (extend_prefix): New code attribute.
995 (mulsi3): Rewrite. Turn insn to expander.
996 (mulhisi3): Ditto.
997 (umulhisi3): Ditto.
998 (usmulhisi3): New expander.
999 (*mulsi3): New insn-and-split.
1000 (mulu<mode>si3): New insn-and-split.
1001 (muls<mode>si3): New insn-and-split.
1002 (mulohisi3): New insn-and-split.
1003 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
1004 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
1005 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
1006 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
1007 insn-and-split.
1008 (*mulsi3_call): Rewrite.
1009 (*mulhisi3_call): Rewrite.
1010 (*umulhisi3_call): Rewrite.
1011 (*usmulhisi3_call): New insn.
1012 (*muluhisi3_call): New insn.
1013 (*mulshisi3_call): New insn.
1014 (*mulohisi3_call): New insn.
1015 (extendqihi2): Use combine_pseudo_register_operand as predicate
1016 for operand 1.
1017 (extendqisi2): Ditto.
1018 (zero_extendqihi2): Ditto.
1019 (zero_extendqisi2): Ditto.
1020 (zero_extendhisi2): Ditto.
1021 (extendhisi2): Ditto. Don't early-clobber operand 0.
1022
d8fa1b73
UB
10232011-07-28 Uros Bizjak <ubizjak@gmail.com>
1024
1025 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
1026
3689198d
SP
10272011-07-27 Sebastian Pop <sebastian.pop@amd.com>
1028
1029 PR tree-optimization/49471
1030 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
1031 iv only when the largest type is unsigned. Do not call
1032 lang_hooks.types.type_for_size.
1033
27165edd
SP
10342011-07-27 Sebastian Pop <sebastian.pop@amd.com>
1035
1036 PR middle-end/45450
1037 * graphite-poly.c (apply_poly_transforms): Disable legality check
1038 after an openscop read.
1039
bd4a54da
SP
10402011-07-27 Sebastian Pop <sebastian.pop@amd.com>
1041
1042 PR middle-end/47691
1043 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
1044 copy_bb_and_scalar_dependences.
1045 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
1046 (graphite_copy_stmts_from_block): Update call to rename_uses.
1047 (copy_bb_and_scalar_dependences): Update call to
1048 graphite_copy_stmts_from_block.
1049 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
1050
04c9ea12 10512011-07-27 Georg-Johann Lay <avr@gjlay.de>
bd4a54da 1052
04c9ea12
GJL
1053 PR target/49313
1054 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
1055 (__ctzsi2): Result for 0 may be undefined.
1056 (__ctzhi2): Result for 0 may be undefined.
1057 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
1058 (__popcountsi2): Ditto. And don't clobber r26.
1059 (__popcountdi2): Ditto. And don't clobber r27.
1060 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
1061 (parityhi2): New expand.
1062 (paritysi2): New expand.
1063 (popcounthi2): New expand.
1064 (popcountsi2): New expand.
1065 (clzhi2): New expand.
1066 (clzsi2): New expand.
1067 (ctzhi2): New expand.
1068 (ctzsi2): New expand.
1069 (ffshi2): New expand.
1070 (ffssi2): New expand.
1071 (copysignsf3): New insn.
1072 (bswapsi2): New expand.
1073 (*parityhi2.libgcc): New insn.
1074 (*parityqihi2.libgcc): New insn.
1075 (*paritysihi2.libgcc): New insn.
1076 (*popcounthi2.libgcc): New insn.
1077 (*popcountsi2.libgcc): New insn.
1078 (*popcountqi2.libgcc): New insn.
1079 (*popcountqihi2.libgcc): New insn-and-split.
1080 (*clzhi2.libgcc): New insn.
1081 (*clzsihi2.libgcc): New insn.
1082 (*ctzhi2.libgcc): New insn.
1083 (*ctzsihi2.libgcc): New insn.
1084 (*ffshi2.libgcc): New insn.
1085 (*ffssihi2.libgcc): New insn.
1086 (*bswapsi2.libgcc): New insn.
1087
479a4921
UB
10882011-07-27 Uros Bizjak <ubizjak@gmail.com>
1089
1090 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
1091 the mode of symbolic_opreand RTXes.
1092
7aecd4e8
UB
10932011-07-27 Uros Bizjak <ubizjak@gmail.com>
1094
a2e49bb2
UB
1095 * config/i386/predicates.md (x86_64_movabs_operand): Return false
1096 for pic_32bit_operand RTXes.
7aecd4e8
UB
1097 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
1098 in DImode.
1099
eb9820c0
KT
11002011-07-27 Kai Tietz <ktietz@redhat.com>
1101
2fe83a0c
KT
1102 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
1103 for 32-bit, too.
1104 (ix86_handle_abi_attribute): Allow function attributes
1105 ms_abi/sysv_abi in 32-bit mode, too.
1106 * doc/extend.texi: Adjust attribute documentation.
1107
eb9820c0
KT
1108 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
1109 expression handling.
1110 (and_var_with_comparison_1): Likewise.
1111
1169e45d
AH
11122011-07-27 Aldy Hernandez <aldyh@redhat.com>
1113
1114 * params.h (ALLOW_STORE_DATA_RACES): New.
1115 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
1116 * Makefile.in (expr.o): Depend on PARAMS_H.
1117 * machmode.h (get_best_mode): Add argument.
1118 * fold-const.c (optimize_bit_field_compare): Add argument to
1119 get_best_mode.
1120 (fold_truthop): Same.
1121 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
1122 * expr.c (emit_group_store): Same.
1123 (copy_blkmode_from_reg): Same.
1124 (write_complex_part): Same.
1125 (optimize_bitfield_assignment_op): Add argument.
1126 Add argument to get_best_mode.
1127 (get_bit_range): New.
7aecd4e8 1128 (expand_assignment): Calculate maxbits and pass it down accordingly.
1169e45d 1129 (store_field): New argument.
7aecd4e8 1130 (expand_expr_real_2): New argument to store_field. Include params.h.
1169e45d
AH
1131 * expr.h (store_bit_field): New argument.
1132 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
1133 into account maxbits.
1134 * calls.c (store_unaligned_arguments_into_pseudos): New argument
1135 to store_bit_field.
1136 * expmed.c (store_bit_field_1): New argument. Use it.
1137 (store_bit_field): Same.
1138 (store_fixed_bit_field): Same.
1139 (store_split_bit_field): Same.
1140 (extract_bit_field_1): Pass new argument to get_best_mode.
1141 (extract_bit_field): Same.
1142 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
1143 * doc/invoke.texi: Document parameter allow-store-data-races.
1144
7bbdd4e9
JJ
11452011-07-27 Jakub Jelinek <jakub@redhat.com>
1146
7aecd4e8 1147 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
7bbdd4e9 1148
aebf4828
KT
11492011-07-27 Kai Tietz <ktietz@redhat.com>
1150
1151 * tree-vrp.c (extract_range_from_binary_expr): Remove
1152 TRUTH-binary cases and add new bitwise-cases.
1153 (extract_range_from_assignment): Likewise.
1154 (register_edge_assert_for_1): Likeiwise.
1155 (register_edge_assert_for): Likewise.
1156 (simplify_truth_ops_using_ranges): Likewise.
1157 (simplify_stmt_using_ranges): Likewise.
1158
65ceed36
L
11592011-07-26 H.J. Lu <hongjiu.lu@intel.com>
1160
1161 PR target/47372
1162 * config/i386/i386.c (ix86_delegitimize_address): Call
1163 simplify_gen_subreg for PIC with mode of x only if modes of
1164 x and orig_x are different.
1165
b56bc05b
JJ
11662011-07-26 Jakub Jelinek <jakub@redhat.com>
1167
1168 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
1169 to GC allocated copy of the string.
1170 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
1171 before .debug_line, not after it.
1172
bce26def
SP
11732011-07-26 Sebastian Pop <sebastian.pop@amd.com>
1174
1175 PR middle-end/47046
1176 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
1177 evolution_function_is_affine_p on CHREC_RIGHT.
1178
5f72e02d
SP
11792011-07-26 Sebastian Pop <sebastian.pop@amd.com>
1180
1181 * tree-data-ref.c (max_stmt_executions_tree): Do not call
1182 lang_hooks.types.type_for_size.
1183
cbc1994b
SP
11842011-07-26 Sebastian Pop <sebastian.pop@amd.com>
1185
1186 PR middle-end/47653
1187 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
1188 loops using wrapping semantics.
1189
4c7d6755
SP
11902011-07-26 Sebastian Pop <sebastian.pop@amd.com>
1191
1192 PR middle-end/48805
1193 * tree-scalar-evolution.c (instantiate_scev_r): Return
1194 chrec_dont_know for ADDR_EXPR.
1195
e207e41f
UB
11962011-07-26 Uros Bizjak <ubizjak@gmail.com>
1197 H.J. Lu <hongjiu.lu@intel.com>
1198
1199 PR target/47369
1200 PR target/49853
1201 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
1202 if legitimize_tls_address returned operand in wrong mode. Allow
1203 SImode and DImode symbolic operand for PIC. Call convert_to_mode
1204 if legitimize_pic_address returned operand in wrong mode.
1205
842eeb9b
MJ
12062011-07-26 Martin Jambor <mjambor@suse.cz>
1207
1208 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
1209 return false for invariants.
1210
98d2c0ad
UB
12112011-07-26 Uros Bizjak <ubizjak@gmail.com>
1212
1213 * config/i386/i386.md (add->lea splitter): Implement using SWI
1214 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
1215 (add->lea zext splitter): Change operand 2 predicate to
1216 x86_64_nonmemory_operand.
1217
c21510a9
RG
12182011-07-26 Richard Guenther <rguenther@suse.de>
1219
1220 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
1221 frequency makes everything hot.
1222
9f61fd17
RG
12232011-07-26 Richard Guenther <rguenther@suse.de>
1224
1225 PR tree-optimization/49840
1226 * tree-vrp.c (range_fits_type_p): Properly handle full
1227 double-int precision.
1228
5bf3d50d
MJ
12292011-07-26 Martin Jambor <mjambor@suse.cz>
1230
1231 PR bootstrap/49786
1232 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
1233 counts.
1234 (update_specialized_profile): Likewise.
1235
536e3f49
UB
12362011-07-26 Uros Bizjak <ubizjak@gmail.com>
1237 H.J. Lu <hongjiu.lu@intel.com>
1238
1239 PR target/47381
1240 PR target/49832
1241 PR target/49833
1242 * config/i386/i386.md (i): Change SImode attribute to "e".
1243 (g): Change SImode attribute to "rme".
1244 (di): Change SImode attribute to "nF".
1245 (general_operand): Change SImode attribute to x86_64_general_operand.
1246 (general_szext_operand): Change SImode attribute to
1247 x86_64_szext_general_operand.
1248 (immediate_operand): Change SImode attribute to
1249 x86_64_immediate_operand.
1250 (nonmemory_operand): Change SImode attribute to
1251 x86_64_nonmemory_operand.
1252 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
1253 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
1254 (*lea_1): Use SWI48 mode iterator.
1255 (*lea_1_zext): New insn pattern.
1256 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
1257 (*bt<mode>): Ditto.
1258 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
1259 Update operand constraints.
1260 (addsi_1_zext): Ditto.
1261 (*add<mode>2): Ditto.
1262 (*addsi_3_zext): Ditto.
1263 (*subsi_1_zext): Ditto.
1264 (*subsi_2_zext): Ditto.
1265 (*subsi_3_zext): Ditto.
1266 (*addsi3_carry_zext): Ditto.
1267 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
1268 (*mulsi3_1_zext): Ditto.
1269 (*andsi_1): Ditto.
1270 (*andsi_1_zext): Ditto.
1271 (*andsi_2_zext): Ditto.
1272 (*<any_or:code>si_1_zext): Ditto.
1273 (*<any_or:code>si_2_zext): Ditto.
1274 (*test<mode>_1): Use <general_operand> predicate for operand 1.
1275 (*and<mode>_2): Ditto.
1276 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
1277 (add->lea splitter): Check operand modes in insn constraint. Extend
1278 operands less than SImode wide to SImode.
1279 (add->lea zext splitter): Do not extend input operands to DImode.
1280 (*lea_general_1): Handle only QImode and HImode operands.
1281 (*lea_general_2): Ditto.
1282 (*lea_general_3): Ditto.
1283 (*lea_general_1_zext): Remove.
1284 (*lea_general_2_zext): Ditto.
1285 (*lea_general_3_zext): Ditto.
1286 (*lea_general_4): Check operand modes in insn constraint. Extend
1287 operands less than SImode wide to SImode.
1288 (ashift->lea splitter): Ditto.
1289 * config/i386/i386.c (ix86_print_operand_address): Print address
1290 registers with 'q' modifier on 64bit targets.
1291 * config/i386/predicates.md (pic_32bit_opreand): Define as special
1292 predicate. Reject non-SI and non-DI modes.
1293
0de204de
AP
12942011-07-25 Andrew Pinski <apinski@cavium.com>
1295
1296 PR tree-opt/49671
1297 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
1298 TREE_THIS_NOTRAP into the inner most MEM_REF.
1299 Always copy TREE_THIS_VOLATILE.
1300 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
1301 arguments are not volatile references.
1302
104fcc7a
RH
13032011-07-25 Richard Henderson <rth@redhat.com>
1304
1305 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
1306 * final.c (final_scan_insn): Don't test for it.
1307 (rest_of_clean_state): Likewise.
1308
c24a6738
RH
13092011-07-25 Richard Henderson <rth@redhat.com>
1310
1311 PR debug/49841
1312 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
1313 (emit_frame_save): Likewise.
1314 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
1315 insn onto a dummy blockage insn after the join label.
1316
200e10dc
RH
13172011-07-25 Richard Henderson <rth@redhat.com>
1318
1319 * dwarf2cfi.c (dw_trace_info): Add ID member.
1320 (get_trace_index): Remove. Change users to use ID member.
1321 (before_next_cfi_note): New.
1322 (connect_traces): Remove unreachable traces before the main loop.
1323 Look across one trace and generate remember/restore_state if needed.
1324
a5d0ce89
RH
13252011-07-25 Richard Henderson <rth@redhat.com>
1326
1327 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
1328
c344a866
JR
13292011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
1330
1331 * genattr.c (write_upcase, gen_attr <enum definition writing>):
1332 Move to ...
1333 * genattr-common.c ... here.
1334 (main): Call gen_attr.
1335 * optc-gen.awk: Make generated program include insn-attr-common.h .
1336 * Makefile.in (oprions.o): Depend on insn-attr-common.h
1337
4645179e
AS
13382011-07-25 Anatoly Sokolov <aesok@post.ru>
1339
1340 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1341 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
1342 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
1343 m32c_print_operand, m32c_print_operand_address): Remove.
1344 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
1345 Change return type to bool. Change argument type to bool.
1346 (m32c_print_operand, m32c_print_operand_address): Make static.
1347 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
1348 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1349
8175c19c
RO
13502011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1351
1352 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
1353 attributes): Document mmap.
1354
5057fa13
AS
13552011-07-25 Anatoly Sokolov <aesok@post.ru>
1356
1357 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1358 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
1359 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
1360 mmix_print_operand, mmix_print_operand_address): Remove.
1361 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
1362 Change return type to bool. Change argument type to bool.
1363 (mmix_print_operand, mmix_print_operand_address): Make static.
536e3f49 1364 (mmix_intval, mmix_output_condition): Change 'x' argument type
5057fa13
AS
1365 to const_rtx.
1366 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
1367 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1368
f4da258f 13692011-07-25 Georg-Johann Lay <avr@gjlay.de>
536e3f49 1370
f4da258f
GJL
1371 PR target/39386
1372 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
1373 shift counter for x << x and x >> x shifts.
1374
1500b428
RO
13752011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1376
1377 PR target/47124
1378 * config.gcc: Reject *-*-solaris2 configuration.
1379
59daeef4
RS
13802011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
1381
1382 PR tree-optimization/49809
1383 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
1384 gimple_get_lhs instead of gimple_assign_lhs.
1385
4d1c7421
RO
13862011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1387
1388 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
1389
7fdab8d4
RG
13902011-07-25 Richard Guenther <rguenther@suse.de>
1391
1392 PR tree-optimization/49822
1393 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
1394 more. Make sure to preserve stmts with side-effects. Properly
1395 handle virtual defs, follow a longer def chain.
1396
1baae426
RG
13972011-07-22 Romain Geissler <romain.geissler@gmail.com>
1398
1399 PR plugins/45348
1400 PR plugins/48425
1401 PR plugins/46577
1402 * Makefile.in: Do not flatten c-family directory when installing
1403 plugin headers.
1404
264b47b0
EB
14052011-07-25 Eric Botcazou <ebotcazou@adacore.com>
1406
1407 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
1408 original nodes if we are dealing with virtual clones.
1409
3d02ae65
BS
14102011-07-25 Bernd Schmidt <bernds@codesourcery.com>
1411
1412 * common/config/c6x/c6x-common.c: New file.
1413
2eaa698b
RZ
14142011-07-25 Roman Zhuykov <zhroma@ispras.ru>
1415
1416 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
1417
ebeadd91
RG
14182011-07-25 Richard Guenther <rguenther@suse.de>
1419
1420 PR tree-optimization/49715
1421 * tree-vrp.c: Include expr.h and optabs.h.
1422 (range_fits_type_): New function.
1423 (simplify_float_conversion_using_ranges): Likewise.
1424 (simplify_stmt_using_ranges): Call it.
1425 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
1426 * optabs.c (can_float_p): Export.
1427 * optabs.h (can_float_p): Declare.
1428
d9256277
RG
14292011-07-25 Richard Guenther <rguenther@suse.de>
1430
1431 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
1432 (get_value_range): For out-of-range SSA names or names created
1433 after propagation return a read-only varying range.
1434 (dump_all_value_ranges): Adjust.
1435 (vrp_initialize): Likewise.
1436 (vrp_finalize): Likewise.
1437
149e741d
RH
14382011-07-24 Richard Henderson <rth@redhat.com>
1439
1440 PR debug/49831
1441 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
1442 them entirely.
1443
981dc735
RH
14442011-07-24 Richard Henderson <rth@redhat.com>
1445
1446 PR debug/49825
1447 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
1448 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
1449
3382318a
RH
14502011-07-24 Richard Henderson <rth@redhat.com>
1451
1452 PR debug/49827
1453 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
1454
2f23f97a
RH
14552011-07-24 Richard Henderson <rth@redhat.com>
1456
1457 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
1458 Zero args_size for abnormal edges. Adjust all callers.
1459
2edb462e
RH
14602011-07-24 Richard Henderson <rth@redhat.com>
1461
1462 PR debug/49825
1463 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
1464
96d5384b
L
14652011-07-24 H.J. Lu <hongjiu.lu@intel.com>
1466
1467 PR bootstrap/49835
1468 * collect2.c (demangle_flag): Removed.
1469
df45fc34
SL
14702011-07-24 Sandra Loosemore <sandra@codesourcery.com>
1471
1472 * configure.ac (demangler_in_ld): Default to yes.
1473 * configure: Regenerated.
1474 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
1475 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
1476 --no-demangle options straight through to ld. When
1477 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
1478 way that has the intended effect on Windows.
1479
829bdd4b
RH
14802011-07-23 Richard Henderson <rth@redhat.com>
1481
1482 * dwarf2cfi.c: Include basic-block.h.
1483 (dw_label_info): Remove.
1484 (trace_work_list, trace_index): New.
1485 (remember_row, emit_cfa_remember): Remove.
1486 (dw_trace_info_hash, dw_trace_info_eq): New.
1487 (get_trace_index, get_trace_info): New.
1488 (save_point_p): New.
1489 (free_cfi_row): Remove.
1490 (add_cfi): Do not emit DW_CFA_remember_state.
1491 (cfa_row_equal_p): New.
1492 (barrier_args_size): Remove.
1493 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
1494 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
1495 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
1496 (dwarf2out_cfi_begin_epilogue): Remove.
1497 (dwarf2out_frame_debug_restore_state): Remove.
1498 (connect_traces, create_pseudo_cfg): New.
1499 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
1500 * Makefile.in (dwarf2cfi.o): Update.
1501
43215a89
RH
15022011-07-23 Richard Henderson <rth@redhat.com>
1503
1504 * dwarf2cfi.c (dw_trace_info): New.
1505 (dw_label_info): New.
1506 (cie_return_save): New.
1507 (cur_trace): New.
1508 (queued_args_size): Rename from args_size. Update all users.
1509 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
1510 (def_cfa_1): Use cur_trace instead of cfa_*.
1511 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
1512 (clobbers_queued_reg_save, reg_saved_in): Likewise.
1513 (dwarf2out_frame_debug_expr): Likewise.
1514 (create_cie_data): Split out from ...
1515 (execute_dwarf2_frame): ... here. Initialize cur_trace.
1516
6ffc63e1
RH
15172011-07-23 Richard Henderson <rth@redhat.com>
1518
1519 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
1520 Update all users to match.
1521 (execute_dwarf2_frame): Free reg_saved_in_data.
1522
999646c1
RH
15232011-07-23 Richard Henderson <rth@redhat.com>
1524
1525 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
1526 (queued_reg_saves): Don't GTY. Change to a VEC.
1527 (queue_reg_save): Update to match.
1528 (dwarf2out_flush_queued_reg_saves): Likewise.
1529 (clobbers_queued_reg_save): Likewise.
1530 (reg_saved_in): Likewise.
1531 (execute_dwarf2_frame): Free queued_reg_saves.
1532
ce363ef2
RH
15332011-07-23 Richard Henderson <rth@redhat.com>
1534
1535 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
1536
57e16c96
RH
15372011-07-23 Richard Henderson <rth@redhat.com>
1538
1539 * dwarf2cfi.c (add_cfi_args_size): Split out from...
1540 (dwarf2out_args_size): ... here.
1541 (add_cfi_restore): Split out from ...
1542 (dwarf2out_frame_debug_cfa_restore): ... here.
1543 (def_cfa_0): Split out from ...
1544 (def_cfa_1): ... here.
1545 (cfi_oprnd_equal_p, cfi_equal_p): New.
1546 (change_cfi_row): New.
1547 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
1548 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
1549 (output_cfis): Remove.
1550 * dwarf2out.c (output_fde): Simplify output_cfi loop.
1551 (dwarf2out_switch_text_section): Don't call output_cfis.
1552 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
1553 * dwarf2out.h: Update decls.
1554 (enum dw_val_class): Add dw_val_class_none.
1555
f1a0e830
RH
15562011-07-23 Richard Henderson <rth@redhat.com>
1557
1558 * dwarf2cfi.c (update_row_reg_save): New.
1559 (dwarf2out_frame_debug_cfa_expression): Use it.
1560 (dwarf2out_frame_debug_cfa_restore): Likewise.
1561 (reg_save): Likewise. Do not emit DW_CFA_same_value.
1562
141618e2
RH
15632011-07-23 Richard Henderson <rth@redhat.com>
1564
1565 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
1566
f17d3401
RH
15672011-07-23 Richard Henderson <rth@redhat.com>
1568
1569 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
1570 (cie_cfi_row): New.
1571 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
1572 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
1573 (cur_row, remember_row): New.
1574 (def_cfa_1): Use cur_row instead of the old_* variables.
1575 (dwarf2out_frame_debug_restore_state): Similarly.
1576 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
1577 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
1578 (dwarf2out_frame_debug_adjust_cfa): Likewise.
1579 (dwarf2out_frame_debug_cfa_offset): Likewise.
1580 (dwarf2out_frame_debug_expr): Likewise.
1581 (execute_dwarf2_frame): Set up cur_row.
1582 * dwarf2out.h (struct cfa_loc): Mark for GTY.
1583
0be7e7a6
RH
15842011-07-23 Richard Henderson <rth@redhat.com>
1585
1586 * basic-block.h (EDGE_PRESERVE): New.
1587 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
1588 * bb-reorder.c: Include except.h.
1589 (fix_up_crossing_landing_pad): New.
536e3f49 1590 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
0be7e7a6
RH
1591 landing pads in the right partition. Duplicate as necessary.
1592 (partition_hot_cold_basic_blocks): Fix up DF info after
1593 duplicating landing pads.
1594 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
1595 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
1596 is set properly. Validate that EH edges are not CROSSING.
1597 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
1598 (dw2_build_landing_pads): ... here.
1599 (convert_to_eh_region_ranges): Remove code to fixup crossing
1600 landing pads.
1601 * except.h (expand_dw2_landing_pad_for_region): Declare.
1602 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
1603
e0170551
RE
16042011-07-23 Richard Earnshaw <rearnsha@arm.com>
1605
1606 PR target/49816
1607 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
1608
15c2ccba
JM
16092011-07-22 Jason Merrill <jason@redhat.com>
1610
1611 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
1612
295331a4
RH
16132011-07-22 Richard Henderson <rth@redhat.com>
1614
1615 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
1616
5f93b30a
RH
16172011-07-22 Richard Henderson <rth@redhat.com>
1618
1619 * jump.c (maybe_propagate_label_ref): Split out of...
1620 (mark_all_labels): ... here. Do not attempt label_ref
1621 propagation while in cfglayout mode.
1622
e967adf4
JJ
16232011-07-22 Jakub Jelinek <jakub@redhat.com>
1624
520cda8c
JJ
1625 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
1626 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
1627 (dwarf_attr_name): Handle DW_AT_GNU_macros.
1628 (dwarf2out_define): If the vector is empty and
1629 lineno is 0, emit a dummy entry first.
1630 (dwarf2out_undef): Likewise. Remove redundant semicolon.
1631 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
1632 optimize_macinfo_range): New functions.
1633 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
1634 mergeable, optimize longer strings using
1635 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
1636 optimize longer sequences of define/undef ops from headers
1637 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
1638 emit a section headers.
1639 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
1640 and macinfo_section_label to DEBUG_MACRO_SECTION
1641 resp. DEBUG_MACRO_SECTION_LABEL.
1642 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
1643 instead of DW_AT_macro_info.
1644
e967adf4
JJ
1645 PR other/32998
1646 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
1647 options.
1648 * dwarf2out.c: Include opts.h.
1649 (dchar_p): New typedef. Define heap VEC for it.
1650 (producer_string): New variable.
1651 (gen_producer_string): New function.
1652 (gen_compile_unit_die): Use it.
536e3f49 1653 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
e967adf4
JJ
1654 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
1655 * doc/invoke.texi: Document -grecord-gcc-switches and
1656 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
1657 to -frecord-gcc-switches description.
1658
3a636414
JM
16592011-07-22 Jason Merrill <jason@redhat.com>
1660
1661 PR c++/30112
1662 * c-decl.c (c_linkage_bindings): Define.
1663
8b9b2275
EB
16642011-07-22 Eric Botcazou <ebotcazou@adacore.com>
1665
1666 PR debug/49815
1667 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
1668
3de69514
L
16692011-07-22 H.J. Lu <hongjiu.lu@intel.com>
1670
1671 * config/i386/i386.c (ix86_option_override_internal): Disallow
1672 MS ABI in x32 mode.
1673 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
1674 only for TARGET_LP64.
536e3f49 1675 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
3de69514 1676
49f6f4f7 16772011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
e56fa6bb
MM
1678
1679 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
1680 avoid warnings when GCC is built with a C++ compiler.
1681
b75d1e21
MJ
16822011-07-22 Martin Jambor <mjambor@suse.cz>
1683
1684 PR lto/49796
1685 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
536e3f49 1686 if decl node is in another partition, call cgraph_get_node only once.
b75d1e21 1687
63708bf5
UB
16882011-07-22 Uros Bizjak <ubizjak@gmail.com>
1689
e3c666fd 1690 * config.gcc (x86_64-*-linux*): Set
63708bf5
UB
1691 default_gnu_indirect_function to yes.
1692
27315aa6
RG
16932011-07-22 Richard Guenther <rguenther@suse.de>
1694
1695 PR tree-optimization/45819
1696 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
1697 preserve volatile and notrap flags.
1698
5b6d595b
RO
16992011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1700 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1701
1702 PR bootstrap/49794
1703 * configure.ac: Test AM_ICONV with CXX.
1704 * configure: Regenerate.
1705 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
1706
7e2fe488
RO
17072011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1708
1709 PR bootstrap/49797
1710 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
1711 (set_cloog_options): Use it.
1712
d423df48
JJ
17132011-07-22 Jakub Jelinek <jakub@redhat.com>
1714
1715 PR c++/49756
1716 * gcc.c (main): Call stack_limit_increase (64MB).
1717 * toplev.c (toplev_main): Likewise.
1718
7fd72c6f
L
17192011-07-21 H.J. Lu <hongjiu.lu@intel.com>
1720
1721 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
1722 instead of force_reg.
1723
96f0b772
L
17242011-07-21 H.J. Lu <hongjiu.lu@intel.com>
1725
1726 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
1727 needed and use force_reg after convert.
1728 (ix86_expand_call): Likewise.
1729 (ix86_expand_special_args_builtin): Likewise.
1730 (ix86_expand_builtin): Likewise.
1731
ef74e2ba
SP
17322011-07-21 Sebastian Pop <sebastian.pop@amd.com>
1733
1734 PR middle-end/47654
1735 PR middle-end/49649
1736 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
1737 in parameter. Initialize v1 and v2 based on the values returned
1738 by clast_name_to_lb_ub.
1739 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
1740 values.
1741 (type_for_clast_bin): Same.
1742 (type_for_clast_expr): Same.
1743 (type_for_clast_eq): Update calls to type_for_clast_expr.
1744 (type_for_clast_for): Same.
1745 (build_iv_mapping): Same.
1746 * graphite-ppl.h (value_min): New.
1747
84f2ffea
SP
17482011-07-21 Sebastian Pop <sebastian.pop@amd.com>
1749
1750 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
1751 types whenever possible.
1752
3d9784cb
SP
17532011-07-21 Sebastian Pop <sebastian.pop@amd.com>
1754
1755 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
1756 and ub fields.
1757 (new_clast_name_index): Add lb and ub parameters.
1758 (free_clast_name_index): New.
1759 (clast_name_to_lb_ub): New.
1760 (save_clast_name_index): Add lb and ub parameters.
1761 (compute_bounds_for_param): New.
1762 (type_for_level): Removed.
1763 (type_for_clast_for): Removed level parameter. Do not call
1764 type_for_level.
1765 (graphite_create_new_loop): Store the lb and ub for the clast_name
1766 of the iterator of the loop that has been generated.
1767 (graphite_create_new_loop_guard): Remove parameter level.
1768 (create_params_index): Store the lb and ub of each parameter.
1769 (gloog): Use free_clast_name_index. Pass to create_params_index
1770 the current scop.
1771
12b30e6d
SP
17722011-07-21 Sebastian Pop <sebastian.pop@amd.com>
1773
1774 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
1775 (max_precision_type): Inline max_signed_precision_type.
1776 (type_for_clast_red): Use max_precision_type.
1777 (type_for_clast_bin): Same.
1778 (type_for_clast_for): Same.
1779
0cdd9dcf
SP
17802011-07-21 Sebastian Pop <sebastian.pop@amd.com>
1781
1782 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
1783 type_for_interval.
1784 (gcc_type_for_value): Renamed type_for_value.
1785 (gcc_type_for_clast_term): Renamed type_for_clast_term.
1786 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
1787 (gcc_type_for_clast_red): Renamed type_for_clast_red.
1788 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
1789 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
1790 (graphite_translate_clast_equation): Update calls.
1791 (compute_type_for_level): Renamed type_for_level.
1792 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
1793 (build_iv_mapping): Update calls.
1794 (graphite_create_new_loop_guard): Same.
1795
8aab43a0
SP
17962011-07-21 Sebastian Pop <sebastian.pop@amd.com>
1797
1798 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
1799 comment.
1800
cf7eab7d
SP
18012011-07-21 Sebastian Pop <sebastian.pop@amd.com>
1802
1803 * graphite-clast-to-gimple.c (struct ivs_params): New.
1804 (clast_name_to_gcc): Use ivs_params to pass around parameters.
1805 (clast_to_gcc_expression): Same.
1806 (clast_to_gcc_expression_red): Same.
1807 (gcc_type_for_clast_term): Same.
1808 (gcc_type_for_clast_expr): Same.
1809 (gcc_type_for_clast_red): Same.
1810 (gcc_type_for_clast_bin): Same.
1811 (gcc_type_for_clast_eq): Same.
1812 (graphite_translate_clast_equation): Same.
1813 (graphite_create_guard_cond_expr): Same.
1814 (graphite_create_new_guard): Same.
1815 (graphite_create_new_loop): Same.
1816 (build_iv_mapping): Same.
1817 (translate_clast_user): Same.
1818 (graphite_create_new_loop_guard): Same.
1819 (translate_clast): Same.
1820 (translate_clast_for_loop): Same.
1821 (translate_clast_for): Same.
1822 (translate_clast_guard): Same.
1823 (initialize_cloog_names): Fix typo.
1824 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
1825
7b1e9596
SP
18262011-07-21 Sebastian Pop <sebastian.pop@amd.com>
1827
1828 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
1829 (new_clast_name_index): Add level parameter.
1830 (clast_name_to_level): New.
1831 (save_clast_name_index): Add level parameter.
1832 (newivs_to_depth_to_newiv): Removed.
1833 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
1834 (graphite_create_new_loop): Add level parameter. Pass level to
1835 save_clast_name_index.
1836 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
1837 (create_params_index): Pass level to save_clast_name_index.
1838
6e6568db
SP
18392011-07-21 Sebastian Pop <sebastian.pop@amd.com>
1840
1841 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
1842 recompute type, lb, and ub. Get them from...
1843 (graphite_create_new_loop_guard): ...here. Pass in parameter
1844 pointers to type, lb, and ub.
1845 (translate_clast_for_loop): Update function calls.
1846 (translate_clast_for): Same.
1847
dff62090
SP
18482011-07-21 Sebastian Pop <sebastian.pop@amd.com>
1849
1850 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
1851 psct_dynamic_dim.
1852 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
1853 (gcc_type_for_iv_of_clast_loop): Update use of level.
1854 (gloog): Start counting nesting level from 0.
1855 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
1856 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
1857 psct_dynamic_dim on level.
1858
628c1ac9
L
18592011-07-21 H.J. Lu <hongjiu.lu@intel.com>
1860
1861 * config/i386/i386.c (ix86_legitimize_address): Convert to
1862 Pmode if needed.
1863
08a8923e
L
18642011-07-21 H.J. Lu <hongjiu.lu@intel.com>
1865
1866 * config/i386/i386.c (function_value_64): Always return pointers
1867 in Pmode.
1868 (ix86_promote_function_mode): New.
1869 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
1870
777a4e9a
BS
18712011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1872
1873 PR tree-optimization/49749
1874 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
1875 remove no-longer-used maxrank variable.
63708bf5 1876
e9514725 18772011-07-21 Georg-Johann Lay <avr@gjlay.de>
63708bf5 1878
e9514725
GJL
1879 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
1880
9ca1483b
JM
18812011-07-21 Jason Merrill <jason@redhat.com>
1882
1883 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
1884 * recog.h (struct insn_data_d): Check it instead of
1885 HAVE_DESIGNATED_INITIALIZERS.
1886 * genoutput.c (output_insn_data): Likewise.
1887
3ceaf2f5
RG
18882011-07-21 Richard Guenther <rguenther@suse.de>
1889
1890 PR tree-optimization/49770
1891 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
1892 valueized any operand. Renamed from ...
1893 (valueize_refs): ... this. New wrapper around valueize_refs_1.
1894 (valueize_shared_reference_ops_from_ref): Return whether we
1895 valueized any operand.
1896 (vn_reference_lookup): Only when we valueized any operand
1897 use the valueized reference for alias analysis. Do not preserve
1898 the original reference tree in this case.
1899
7c53a140
UB
19002011-07-21 Uros Bizjak <ubizjak@gmail.com>
1901
1902 * config/i386/i386.c (ix86_decompose_address): Reject all but
a4235495 1903 register operands and subregs of DImode hard registers in index.
7c53a140 1904
7f3ff782
KT
19052011-07-21 Kai Tietz <ktietz@redhat.com>
1906
1907 * fold-const.c (fold_unary_loc): Preserve indirect
1908 comparison cast to none-boolean type.
1909 * tree-ssa.c (useless_type_conversion_p): Preserve cast
1910 from/to boolean-type.
7c53a140
UB
1911 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
1912 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
7f3ff782
KT
1913 * tree-cfg.c (verify_gimple_comparison): Check result
1914 type of comparison expression.
7c53a140
UB
1915 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
1916 of condition result and disallow type-cast sinking into comparison.
7f3ff782 1917
91bc6112
RG
19182011-07-21 Richard Guenther <rguenther@suse.de>
1919
1920 * tree-ssa-forwprop.c (combine_conversions): Return whether
1921 we have to run cfg-cleanup. Properly remove dead stmts.
1922 (ssa_forward_propagate_and_combine): Adjust.
1923
d6f23738
RS
19242011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
1925
1926 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
1927
fec3cad3
KT
19282011-07-21 Kai Tietz <ktietz@redhat.com>
1929
1930 * tree-ssa-propagate.c (substitute_and_fold): Use
1931 do_dce flag to deside, if BB's statements are scanned
1932 in last to first, or first to last order.
1933
21f3ae2f 19342011-07-21 Georg-Johann Lay <avr@gjlay.de>
7c53a140 1935
21f3ae2f
GJL
1936 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
1937
6025b127
L
19382011-07-20 H.J. Lu <hongjiu.lu@intel.com>
1939 Uros Bizjak <ubizjak@gmail.com>
1940 Richard Henderson <rth@redhat.com>
1941
1942 * config/i386/constraints.md (w): New.
1943
1944 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
1945 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
1946
1947 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
1948 instead of TARGET_64BIT.
1949
1950 * config/i386/i386.md (indirect_jump): Replace
1951 nonimmediate_operand with indirect_branch_operand.
1952 (*indirect_jump): Likewise. Replace constraint "m" with "w".
a4235495
UB
1953 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
1954 Convert operand 0 to Pmode for x32 if not PIC.
6025b127
L
1955 (*tablejump_1): Replace nonimmediate_operand with
1956 indirect_branch_operand. Replace constraint "m" with "w".
1957 (*call_vzeroupper): Replace constraint "m" with "w".
1958 (*call): Likewise.
1959 (*call_rex64_ms_sysv_vzeroupper): Likewise.
1960 (*call_rex64_ms_sysv): Likewise.
1961 (*call_value_vzeroupper): Likewise.
1962 (*call_value): Likewise.
1963 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
1964 (*call_value_rex64_ms_sysv): Likewise.
a4235495 1965 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
6025b127
L
1966
1967 * config/i386/predicates.md (indirect_branch_operand): New.
1968 (call_insn_operand): Support x32.
1969
7f8925a1
ME
19702011-07-20 Michael Eager <eager@eagercon.com>
1971
1972 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
1973
510a442a
RH
19742011-07-20 Richard Henderson <rth@redhat.com>
1975
1976 * cfg.c (dump_bb_info): Dump basic_block->flags.
1977 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
1978
00b40d0d
UB
19792011-07-20 Uros Bizjak <ubizjak@gmail.com>
1980
1981 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
1982 of DImode hard registers in index.
1983 (ix86_legitimate_address_p): Allow subregs of base and index to span
1984 more than a word. Assert that subregs of base and index satisfy
1985 register_no_elim_operand predicates. Reject addresses where
1986 base and index have different modes.
1987
87f53554
RM
19882011-07-20 Robert Millan <rmh@gnu.org>
1989
1990 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
1991
742f29ab
UW
19922011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1993
1994 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
1995 removing now-unnecessary assignment.
1996
d05f3564
UW
19972011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1998
1999 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
2000 memory address space to the type's address space.
2001
8c352fa8 20022011-07-20 Georg-Johann Lay <avr@gjlay.de>
00b40d0d 2003
8c352fa8
GJL
2004 PR target/36467
2005 PR target/49687
00b40d0d
UB
2006 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
2007 and expand appropriately if there is a CONST_INT in operand2.
8c352fa8
GJL
2008 (usmulqihi3): New insn.
2009 (*sumulqihi3): New insn.
2010 (*osmulqihi3): New insn.
2011 (*oumulqihi3): New insn.
2012 (*muluqihi3.uconst): New insn_and_split.
2013 (*muluqihi3.sconst): New insn_and_split.
2014 (*mulsqihi3.sconst): New insn_and_split.
2015 (*mulsqihi3.uconst): New insn_and_split.
2016 (*mulsqihi3.oconst): New insn_and_split.
2017 (*ashifthi3.signx.const): New insn_and_split.
2018 (*ashifthi3.signx.const7): New insn_and_split.
2019 (*ashifthi3.zerox.const): New insn_and_split.
2020 (mulsqihi3): New insn.
2021 (muluqihi3): New insn.
2022 (muloqihi3): New insn.
2023 * config/avr/predicates.md (const_2_to_7_operand): New.
2024 (const_2_to_6_operand): New.
2025 (u8_operand): New.
2026 (s8_operand): New.
2027 (o8_operand): New.
2028 (s9_operand): New.
2029 (register_or_s9_operand): New.
2030
be31603a
KT
20312011-07-20 Kai Tietz <ktietz@redhat.com>
2032
2033 * builtins.c (fold_builtin_expect): See through the cast
2034 from truthvalue_type_node to long.
2035
c36193c6
MM
20362011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
2037
2038 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
2039 where we can use them from the standard and altivec instruction
2040 sets, instead of always using the 3 operand VSX forms that require
2041 the destination to overlap one of the inputs.
2042 (vsx_fms*): Ditto.
2043 (vsx_fnma*): Ditto.
2044 (vsx_fnms*): Ditto.
2045
2046 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
2047 for DF types.
2048 (fmsdf4_fpr): Ditto.
2049 (nfmadf4_fpr): Ditto.
2050 (nfmsdf4_fpr): Ditto.
2051
02aec184
SL
20522011-07-20 Sandra Loosemore <sandra@codesourcery.com>
2053
2054 * genrecog.c (make_insn_sequence): Correct position numbering
2055 when filtering out match_scratch and match_dup.
2056
f8ecf734
RG
20572011-07-20 Richard Guenther <rguenther@suse.de>
2058
2059 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
2060 against already removed statements.
2061 (forward_propagate_into_comparison): Remove dead defining stmts.
2062 (forward_propagate_into_gimple_cond): Likewise.
2063 (forward_propagate_into_cond): Simplify.
2064 (ssa_forward_propagate_and_combine): Handle changed cfg from
2065 forward_propagate_into_comparison.
2066 * tree-ssa-phiopt.c (conditional_replacement): Use proper
2067 locations for newly built statements.
2068
73451ae7
GJL
20692011-07-20 Georg-Johann Lay <avr@gjlay.de>
2070
2071 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
2072
c4100a35
AK
20732011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2074
2075 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
2076 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
2077
dca412a1
RG
20782011-07-20 Richard Guenther <rguenther@suse.de>
2079
2080 PR middle-end/18908
2081 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
2082 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
2083 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
2084
73d7e266
VM
20852011-07-20 Vladimir Makarov <vmakarov@redhat.com>
2086
2087 * config/frv/frv.c (frv_register_move_cost): Define explicitly
2088 costs for subclasses of GR_REGS.
2089
5e27a6d4
UB
20902011-07-20 Uros Bizjak <ubizjak@gmail.com>
2091
2092 PR target/49780
2093 * config/i386/predicates.md (no_seg_addres_operand): No more special.
2094 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
2095 of DImode hard registers in base.
2096 (ix86_legitimate_address_p): Allow SImode and DImode base and index
2097 registers.
2098
74d8fa44
RG
20992011-07-20 Richard Guenther <rguenther@suse.de>
2100
5e27a6d4 2101 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
74d8fa44
RG
2102 (unify_nodes): Deal with that.
2103 (solve_graph): Likewise.
2104
b0e43da8
CLT
21052011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
2106
2107 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
2108 canonicalize left operand from ZERO_EXTEND to AND.
2109
a8c44c52
AS
21102011-07-20 Anatoly Sokolov <aesok@post.ru>
2111
2112 * target.def (class_max_nregs): New hook.
2113 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
2114 * doc/tm.texi: Regenerate.
2115 * targhooks.c (default_class_max_nregs): New function.
2116 * targhooks.h (default_class_max_nregs): Declare.
2117 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
2118 x_ira_reg_class_min_nregs arrays to unsigned char.
2119 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
2120 hook instead of CLASS_MAX_NREGS macro.
2121 * reginfo.c (restore_register_info): Ditto.
2122 * ira-conflicts.c (process_regs_for_copy): Use
2123 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
2124 Change type rclass and aclass vars to reg_class_t.
2125 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
2126 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
2127 reg_class_t.
2128 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
2129 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
2130
2131 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
2132 * config/i386/i386.c (ix86_class_max_nregs): New function.
2133 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
2134 instead of CLASS_MAX_NREGS macro.
2135 (TARGET_CLASS_MAX_NREGS): Define.
2136 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
2137 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
2138 * config/avr/avr.c (class_max_nregs): Remove function.
2139 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
2140 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
2141 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
2142 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
2143 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
2144 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
2145 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
2146 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
2147 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
2148 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
2149 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
2150 * config/score/score.h (CLASS_MAX_NREGS): Remove.
2151 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
2152 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
2153 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
2154
fd811f03
EB
21552011-07-19 Eric Botcazou <ebotcazou@adacore.com>
2156
2157 * cif-code.def (OVERWRITABLE): Fix typo and move around.
2158 (TARGET_OPTIMIZATION_MISMATCH): Delete.
2159 (EH_PERSONALITY): Fix typo.
2160 (NON_CALL_EXCEPTIONS): Fix message.
2161 (OPTIMIZATION_MISMATCH): Adjust message.
2162 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
2163
78767fd9
ILT
21642011-07-19 Ian Lance Taylor <iant@google.com>
2165
2166 * doc/install.texi (Configuration): Document
2167 --enable-build-poststage1-with-cxx.
2168
0baeec1b
RM
21692011-07-19 Robert Millan <rmh@gnu.org>
2170
2171 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
2172 (GLIBC_DYNAMIC_LINKER): Remove.
2173
2174 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
2175 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
2176 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
2177 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
2178 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
2179 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
2180
2181 * config/mips/linux.h: Remove everything except for ...
2182 (GLIBC_DYNAMIC_LINKER): ... this macro.
2183
2184 * config/mips/linux64.h: Remove everything except for ...
2185 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
2186 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
2187 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
2188 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
2189 (GNU_USER_LINK_EMULATIONN32): New macros.
2190
5e27a6d4
UB
2191 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
2192 Use the new headers.
0baeec1b 2193
754c3d5d
RS
21942011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
2195
2196 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
2197 Add offset_known_p and size_known_p fields.
2198 (MEM_OFFSET_KNOWN_P): Update accordingly.
2199 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
2200 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
2201 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
2202 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
2203 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
2204 (init_emit_regs): Likewise.
2205
527210c4
RS
22062011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
2207
2208 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
2209 (MEM_OFFSET): Change from returning an rtx to returning a
2210 HOST_WIDE_INT.
2211 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
2212 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
2213 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
2214 (clear_mem_offset): Declare.
2215 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
2216 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
2217 MEM_OFFSET to get a HOST_WIDE_INT offset.
2218 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
2219 (adjust_offset_for_component_ref): Take a bool "known_p"
2220 parameter and a HOST_WIDE_INT "offset" parameter.
2221 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
2222 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
2223 than an rtx. Use clear_mem_offset to clear the offset.
2224 * cfgcleanup.c (merge_memattrs): Likewise.
2225 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
2226 * function.c (assign_parm_find_stack_rtl): Likewise.
2227 (assign_parm_setup_stack): Likewise.
2228 * print-rtl.c (print_rtx): Likewise.
2229 * reload.c (find_reloads_subreg_address): Likewise.
2230 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
2231 * var-tracking.c (INT_MEM_OFFSET): Likewise.
2232 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
2233 (get_mem_align_offset): Likewise.
2234 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
2235 (clear_mem_offset): New function.
2236 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
2237 offset rather than an rtx. Assume both the expressio and offset
2238 are available.
2239 (r10k_needs_protection_p_1): Update accordingly, checking the
2240 expression and offset availability here instead.
2241
f5541398
RS
22422011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
2243
2244 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
2245 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
2246 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
2247 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
2248 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
2249 (clear_mem_size): Declare.
2250 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
2251 (clear_mem_size): New function.
2252 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
2253 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
2254 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
2255 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
2256 to clear the size.
2257 (nonoverlapping_memrefs_p): Likewise.
2258 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
2259 (expand_builtin_init_trampoline): Likewise.
2260 * calls.c (compute_argument_addresses): Likewise.
2261 * cfgcleanup.c (merge_memattrs): Likewise.
2262 * dce.c (find_call_stack_args): Likewise.
2263 * dse.c (record_store, scan_insn): Likewise.
2264 * dwarf2out.c (dw_sra_loc_expr): Likewise.
2265 * expr.c (emit_block_move_hints): Likewise.
2266 * function.c (assign_parm_find_stack_rtl): Likewise.
2267 * print-rtl.c (print_rtx): Likewise.
2268 * reload.c (find_reloads_subreg_address): Likewise.
2269 * rtlanal.c (may_trap_p_1): Likewise.
2270 * var-tracking.c (track_expr_p): Likewise.
2271 * varasm.c (assemble_trampoline_template): Likewise.
2272 * config/arm/arm.c (arm_print_operand): Likewise.
2273 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
2274 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
2275 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
2276 (expand_constant_setmem_prologue): Likewise.
2277 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
2278 * config/rs6000/rs6000.c (expand_block_move): Likewise.
2279 (adjacent_mem_locations): Likewise.
2280 * config/s390/s390.c (s390_expand_setmem): Likewise.
2281 (s390_expand_insv): Likewise.
2282 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
2283 (*extendqi<mode>2_short_displ): Likewise.
2284 * config/sh/sh.c (expand_block_move): Likewise.
2285 * config/sh/sh.md (extv, extzv): Likewise.
2286
f12144dd
RS
22872011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
2288
2289 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
2290 (mem_attrs_htab_eq): ...here.
2291 (find_mem_attrs): Replace with...
2292 (set_mem_attrs): ...this function. Take a mem_attrs structure
2293 rather than individual fields.
2294 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
2295 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
2296 (set_mem_size, change_address, adjust_address_1, offset_address)
2297 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
2298 Update accordingly.
2299
1c3f523e
RS
23002011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
2301
2302 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
2303 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
2304 Provide a dummy definition of MEM_ADDR_SPACE for generators.
2305 (target_rtl): Add x_mode_mem_attrs.
2306 (mode_mem_attrs): New macro.
2307 (get_mem_attrs): New function.
2308 * emit-rtl.c (get_mem_attrs): Rename to...
2309 (find_mem_attrs): ...this.
2310 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
2311 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
2312 (set_mem_size, change_address, adjust_address_1, offset_address)
2313 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
2314 Update accordingly.
2315 (init_emit_regs): Initialize mode_mem_attrs.
2316
3046b1a9
RG
23172011-07-19 Richard Guenther <rguenther@suse.de>
2318
2319 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
2320 TRUTH_*_EXPR handling.
2321 * tree-ssa-operands.c (get_expr_operands): Likewise.
2322 * tree-ssa-pre.c (fully_constant_expression): Likewise.
2323 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
2324 Likewise.
2325 (is_and_or_or): Likewise.
2326 (is_norm_cond_subset_of): Likewise.
2327
5d49b6a7
RG
23282011-07-19 Richard Guenther <rguenther@suse.de>
2329
2330 * tree.h (fold_build_pointer_plus_loc): New helper function.
2331 (fold_build_pointer_plus_hwi_loc): Likewise.
2332 (fold_build_pointer_plus): Define.
2333 (fold_build_pointer_plus_hwi): Likewise.
2334 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
2335 (fold_builtin_memory_op): Likewise.
2336 (fold_builtin_stpcpy): Likewise.
2337 (fold_builtin_memchr): Likewise.
2338 (fold_builtin_strstr): Likewise.
2339 (fold_builtin_strchr): Likewise.
2340 (fold_builtin_strrchr): Likewise.
2341 (fold_builtin_strpbrk): Likewise.
2342 (fold_builtin_strcat): Likewise.
2343 (expand_builtin_memory_chk): Likewise.
2344 (fold_builtin_memory_chk): Likewise.
2345 * c-typeck.c (build_unary_op): Likewise.
2346 * cgraphunit.c (thunk_adjust): Likewise.
2347 * fold-const.c (build_range_check): Likewise.
2348 (fold_binary_loc): Likewise.
2349 * omp-low.c (extract_omp_for_data): Likewise.
2350 (expand_omp_for_generic): Likewise.
2351 (expand_omp_for_static_nochunk): Likewise.
2352 (expand_omp_for_static_chunk): Likewise.
2353 * tree-affine.c (add_elt_to_tree): Likewise.
2354 * tree-data-ref.c (split_constant_offset_1): Likewise.
2355 * tree-loop-distribution.c (generate_memset_zero): Likewise.
2356 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
2357 * tree-predcom.c (ref_at_iteration): Likewise.
2358 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
2359 (add_to_parts): Likewise.
2360 (create_mem_ref): Likewise.
2361 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
2362 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
2363 (number_of_iterations_le): Likewise.
2364 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
2365 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
2366 (vect_create_addr_base_for_vector_ref): Likewise.
2367 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
2368 (vect_create_cond_for_alias_checks): Likewise.
2369 * tree-vrp.c (extract_range_from_assert): Likewise.
2370 * config/alpha/alpha.c (alpha_va_start): Likewise.
2371 (alpha_gimplify_va_arg_1): Likewise.
2372 * config/i386/i386.c (ix86_va_start): Likewise.
2373 (ix86_gimplify_va_arg): Likewise.
2374 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
2375 * config/mep/mep.c (mep_expand_va_start): Likewise.
2376 (mep_gimplify_va_arg_expr): Likewise.
2377 * config/mips/mips.c (mips_va_start): Likewise.
2378 (mips_gimplify_va_arg_expr): Likewise.
2379 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
2380 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
2381 (rs6000_gimplify_va_arg): Likewise.
2382 * config/s390/s390.c (s390_va_start): Likewise.
2383 (s390_gimplify_va_arg): Likewise.
2384 * config/sh/sh.c (sh_va_start): Likewise.
2385 (sh_gimplify_va_arg_expr): Likewise.
2386 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
2387 * config/spu/spu.c (spu_va_start): Likewise.
2388 (spu_gimplify_va_arg_expr): Likewise.
2389 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
2390 Likewise.
2391 (xstormy16_gimplify_va_arg_expr): Likewise.
2392 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
2393 (xtensa_gimplify_va_arg_expr): Likewise.
2394
d906fd7f
RG
23952011-07-19 Richard Guenther <rguenther@suse.de>
2396
2397 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
2398 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
2399 handling.
2400
2401 PR middle-end/18908
2402 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
2403 result of BIT_*_EXPR to bitfield precision.
2404
1b14d815
RS
24052011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
2406
2407 PR tree-optimization/49742
2408 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
2409 as a potential write.
2410
d906fd7f
RG
24112011-07-19 Richard Guenther <rguenther@suse.de>
2412
2413 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
2414 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
2415 (forward_propagate_comparison): Simplify, remove obsolete code.
2416
53020648
RG
24172011-07-19 Richard Guenther <rguenther@suse.de>
2418
2419 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
2420 BIT_XOR_EXPR, same as the RTL expander does.
2421 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
2422 (verify_gimple_assign_unary): Likewise.
2423 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
2424 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
2425 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
2426
b8b2b009
JJ
24272011-07-19 Jakub Jelinek <jakub@redhat.com>
2428
2429 PR tree-optimization/49768
2430 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
2431 if offset is smaller than bitoffset, but offset+size is bigger
2432 than bitoffset.
2433
338f655d
IR
24342011-07-19 Ira Rosen <ira.rosen@linaro.org>
2435
2436 PR tree-optimization/49771
2437 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
2438 zero step, set segment length to the size of the data-ref's type.
2439
310bc633
MJ
24402011-07-18 Martin Jambor <mjambor@suse.cz>
2441
2442 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
2443 comments.
2444 (ipcp_values_pool): Declare.
2445 (ipcp_sources_pool): Likewise.
2446 (ipcp_lattice): Changed to forward declaration.
2447 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
2448 cannot_devirtualize.
2449 (ipa_node_params): New fields descriptors, lattices, known_vals,
2450 clone_for_all_contexts and node dead, removed fields params and
2451 count_scale.
2452 (ipa_set_param_count): Removed.
2453 (ipa_get_param_count): Made to work with descriptors vector.
2454 (ipa_get_param): Updated.
2455 (ipa_param_cannot_devirtualize_p): Removed.
2456 (ipa_param_types_vec_empty): Likewise.
2457 (ipa_set_param_used): New function.
2458 (ipa_get_param_used): Updated to use descriptors vector.
2459 (ipa_func_list): Removed.
2460 (ipa_init_func_list): Removed declaration.
2461 (ipa_push_func_to_list_1): Likewise.
2462 (ipa_pop_func_from_list): Likewise.
2463 (ipa_push_func_to_list): Removed.
2464 (ipa_lattice_from_jfunc): Remove declaration.
2465 (ipa_get_jf_pass_through_result): Declare.
2466 (ipa_get_jf_ancestor_result): Likewise.
2467 (ipa_value_from_jfunc): Likewise.
2468 (ipa_get_lattice): Update.
2469 (ipa_lat_is_single_const): New function.
2470 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
2471 (ipa_init_func_list): Likewise.
2472 (ipa_pop_func_from_list): Likewise.
2473 (ipa_get_param_decl_index): Fix coding style.
2474 (count_formal_params): Removed.
2475 (count_formal_params_1): Renamed to count_formal_params.
2476 (ipa_populate_param_decls): Update to use descriptors vector.
2477 (ipa_initialize_node_params): Likewise.
2478 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
2479 (ipa_analyze_params_uses): Likewise.
2480 (ipa_free_node_params_substructures): Likewise and free also lattices
2481 and known values.
2482 (duplicate_array): Removed.
2483 (ipa_edge_duplication_hook): Add the new edge to the list of edge
2484 clones.
2485 (ipa_node_duplication_hook): Update to use new lattices.
2486 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
2487 (ipa_free_all_structures_after_iinln): Likewise.
2488 (ipa_write_node_info): Update to use new lattices.
2489 (ipa_read_node_info): Likewise.
2490 (ipa_get_jf_pass_through_result): New function.
2491 (ipa_get_jf_ancestor_result): Likewise.
2492 (ipa_value_from_jfunc): Likewise.
2493 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
2494 * ipa-cp.c: Reimplemented.
2495 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
2496 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
2497 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
2498 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
2499 * doc/invoke.texi (devirt-type-list-size): Removed description.
2500 (ipa-cp-value-list-size): Added description.
2501
6774a66f
RH
25022011-07-18 Richard Henderson <rth@redhat.com>
2503
2504 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
2505 before calling create_basic_block.
2506
8b316874
JJ
25072011-07-18 Jakub Jelinek <jakub@redhat.com>
2508
2509 PR middle-end/49675
2510 * tree.c (build_common_builtin_nodes): Register
2511 __builtin_return_address, __cyg_profile_func_enter
2512 and __cyg_profile_func_exit.
2513
9f68560b
RH
25142011-07-18 Richard Henderson <rth@redhat.com>
2515
2516 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
2517 (add_labels_and_missing_jumps): ... here.
2518 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
2519
03126412
UB
25202011-07-18 Uros Bizjak <ubizjak@gmail.com>
2521
2522 PR target/47744
2523 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
2524 of DImode hard registers in PLUS address chains.
2525
fbf80ef7
RO
25262011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2527
2528 PR bootstrap/49769
2529 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
2530 (alpha*-*-freebsd*): Likewise.
2531 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
2532 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
2533 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
2534 crtprec80.o, crtfastmath.o to extra_parts for all targets.
2535 (ia64*-*-elf*): Remove extra_parts.
2536 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
2537 (sparc64-*-linux*): Likewise.
2538 (sparc64-*-freebsd*): Likewise.
2539
2540 Revert:
2541 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
2542 (ia64*-*-linux*): Likewise.
2543 (mips64*-*-linux*): Likewise.
2544 (mips*-*-linux*): Likewise.
2545
daf633ba
DE
25462011-07-18 David Edelsohn <dje.gcc@gmail.com>
2547
2548 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
2549
4b4455e5
RG
25502011-07-18 Richard Guenther <rguenther@suse.de>
2551
2552 * gimplify.c (gimplify_expr): Use input_location, not saved_location
2553 when building new trees.
2554
e002c7cb
RG
25552011-07-18 Richard Guenther <rguenther@suse.de>
2556
2557 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
2558 expansion result to bitfield precision if required.
2559
e44dbbe1
RO
25602011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2561
2562 * config.gcc (i[3456x]86-*-netware*): Remove.
2563
2564 * gthr-nks.h: Remove.
2565 * configure.ac (enable_threads): Remove nks.
2566 * configure: Regenerate.
2567
2568 * config/i386/i386.c (ix86_encode_section_info): Remove netware
2569 reference.
2570 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
2571 <netware.h> reference.
2572
2573 * config/i386/netware-libgcc.c,
2574 gcc/config/i386/netware-libgcc.def,
2575 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
2576 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
2577 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
2578 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
2579
2580 * doc/extend.texi (Function Attributes,
2581 callee_pop_aggregate_return): Remove i?86-netware reference.
2582 * doc/install.texi (Configuration, --enable-threads): Remove nks.
2583
fd862017
JDA
25842011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2585
2586 PR target/49746
2587 Revert:
2588 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2589
2590 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
2591 patterns.
2592
1ff24749
EB
25932011-07-17 Eric Botcazou <ebotcazou@adacore.com>
2594
2595 PR middle-end/49732
2596 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
2597
a4a2c37d
MK
25982011-07-16 Matthias Klose <doko@ubuntu.com>
2599
2600 * doc/install.texi: Document --enable-static-libjava.
2601
ea6136a2
RH
26022011-07-15 Richard Henderson <rth@redhat.com>
2603
2604 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
2605 Replace all three arguments by returning a VEC of edges.
2606 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
2607 pointers and counts.
2608 (fix_edges_for_rarely_executed_code): Merge ...
2609 (rest_of_handle_partition_blocks): ... into...
2610 (partition_hot_cold_basic_blocks): ... here. Return todo items if
2611 any work was performed.
2612 (pass_partition_blocks): Clear todo_flags_finish.
2613
6545e33e
PC
26142011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
2615 Jakub Jelinek <jakub@redhat.com>
2616 Jonathan Wakely <jwakely.gcc@gmail.com>
2617
2618 PR libstdc++/49745
2619 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
2620 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
2621
6feeed06
JM
26222011-07-15 Jason Merrill <jason@redhat.com>
2623
2624 PR testsuite/49741
2625 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
2626 rather than --tool_opts.
2627
44762055
BS
26282011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
2629
2630 * doc/plugins.texi (Building GCC plugins): gengtype needs its
0fa71447 2631 corresponding gtype.state.
44762055 2632
1be0310c
JDA
26332011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2634
2635 PR target/49723
2636 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
2637
12c5ffe5
EB
26382011-07-15 Eric Botcazou <ebotcazou@adacore.com>
2639
2640 PR target/48220
2641 * doc/md.texi (Standard Names): Document window_save.
2642 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
2643 expand_debug_expr and expand_debug_source_expr. If the target has
2644 a window_save instruction, adjust the ENTRY_VALUE_EXP.
2645 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
2646 SSA_NAME_VAR is a parameter.
2647 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
2648 * var-tracking.c (parm_reg_t): New type and associated vector type.
2649 (windowed_parm_regs): New variable.
2650 (adjust_insn): If the target has a window_save instruction and this
2651 is the instruction, make its effect on parameter registers explicit.
2652 (next_non_note_insn_var_location): New function.
2653 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
2654 (vt_add_function_parameter): If the target has a window_save insn,
2655 adjust the incoming RTL and record that in windowed_parm_regs.
2656 (vt_finalize): Free windowed_parm_regs.
2657
bcead286
BS
26582011-07-15 Bernd Schmidt <bernds@codesourcery.com>
2659
2660 * doc/invoke.texi (C6X Options): New section.
2661 * doc/md.texi (TI C6X family): New section.
2662 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
2663 tic6x-*-uclinux.
2664 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
2665 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
2666 Provide C6X definitions.
2667 * config/c6x/c6x.md: New file.
2668 * config/c6x/constraints.md: New file.
2669 * config/c6x/predicates.md: New file.
2670 * config/c6x/c6x-sched.md.in: New file.
2671 * config/c6x/c6x-sched.md: New file.
2672 * config/c6x/gensched.sh: New file.
2673 * config/c6x/c6x-mult.md.in: New file.
2674 * config/c6x/genmult.sh: New file.
2675 * config/c6x/c6x-mult.md: New file.
2676 * config/c6x/sync.md: New file.
2677 * config/c6x/c6x-protos.h: New file.
2678 * config/c6x/sfp-machine.h: New file.
2679 * config/c6x/c6x.c: New file.
2680 * config/c6x/c6x.h: New file.
2681 * config/c6x/crti.s: New file.
2682 * config/c6x/crtn.s: New file.
2683 * config/c6x/lib1funcs.asm: New file.
2684 * config/c6x/c6x-modes.def: New file.
2685 * config/c6x/genopt.sh: New file.
2686 * config/c6x/c6x.opt: New file.
2687 * config/c6x/c6x-tables.opt: New file.
2688 * config/c6x/c6x-opts.h: New file.
2689 * config/c6x/c6x-isas.def: New file.
2690 * config/c6x/elf.h: New file.
2691 * config/c6x/elf-common.h: New file.
2692 * config/c6x/uclinux-elf.h: New file.
2693 * config/c6x/t-c6x: New file.
2694 * config/c6x/t-c6x-elf: New file.
2695 * config/c6x/t-c6x-uclinux: New file.
2696 * config/c6x/t-c6x-softfp: New file.
2697 * config/c6x/gtd.c: New file.
2698 * config/c6x/gtf.c: New file.
2699 * config/c6x/ltd.c: New file.
2700 * config/c6x/ltf.c: New file.
2701 * config/c6x/ged.c: New file.
2702 * config/c6x/gef.c: New file.
2703 * config/c6x/led.c: New file.
2704 * config/c6x/lef.c: New file.
2705 * config/c6x/eqd.c: New file.
2706 * config/c6x/eqf.c: New file.
2707 * config/c6x/libgcc-c6xeabi.ver: New file.
2708
aef0e7a8
BS
2709 Revert
2710 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
2711 PR rtl-optimization/11320
2712 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
2713 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
2714 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
2715 current_sched_info->compute_jump_reg_dependencies. Record which
2716 registers are used and which registers are set by the jump.
2717 Clear deps->reg_conditional_sets after a barrier.
2718 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
2719 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
2720 (init_deps): Initialize reg_conditional_sets.
2721 (free_deps): Clear reg_conditional_sets.
2722 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
2723 Mark registers live on entry of the fallthrough block and conditionally
2724 set as set by the jump. Mark registers live on entry of non-fallthrough
2725 blocks as used by the jump.
2726 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
2727 Mark new parameters as unused.
2728
9bed2f0d
AP
27292011-07-14 Andrew Pinski <pinskia@gmail.com>
2730
2731 PR tree-opt/49309
2732 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
2733 Use fold_build2_loc instead of build2.
2734 Use the correct type for the new tree.
2735
1f88caaa
BS
27362011-07-14 Bernd Schmidt <bernds@codesourcery.com>
2737
2738 PR rtl-optimization/11320
2739 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
2740 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
2741
d772f97c 27422011-07-14 Georg-Johann Lay <avr@gjlay.de>
1f88caaa 2743
d772f97c
GJL
2744 PR target/49487
2745 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
2746 of REG.
2747 (*rotw<mode>): Use const_int_operand for operand2.
2748 Use match_scatch for operand3.
2749 (*rotb<mode>): Ditto
2750 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
2751
1a5d20a4
RG
27522011-07-14 Richard Guenther <rguenther@suse.de>
2753
2754 PR tree-optimization/49651
2755 * tree-ssa-structalias.c (get_constraint_for_1): Properly
2756 handle dereferences with subvariables.
2757
5fbcc0ed
RG
27582011-07-14 Richard Guenther <rguenther@suse.de>
2759
2760 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
2761 (fold_stmt_1): Do it here directly on gimple and as a first thing.
2762
fbf3fee2
RG
27632011-07-14 Richard Guenther <rguenther@suse.de>
2764
2765 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
2766 not bool_var when folding bool_var != 1 or bool_var == 0.
2767
b953c2b8
BS
27682011-07-14 Bernd Schmidt <bernds@codesourcery.com>
2769
2770 * haifa-sched.c (schedule_insns): Remove outdated comment.
2771 (schedule_block): When computing a known value for TODO_SPEC,
2772 just set it rather than using logical operations.
2773 (try_ready): Likewise. Use a local variable rather than a
2774 pointer to TODO_SPEC. Reorder an if statement to move the
2775 easy case to the then block.
2776 * sched-deps.c (dep_spec_p): New static function.
2777 (update_dep): Use it to decide whether to call
2778 change_spec_dep_to_hard.
2779 (get_back_and_forw_lists): Use it.
2780 (sd_resolve_dep): Likewise.
2781 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
2782 (haifa_note_mem_dep): Likewise.
2783 (check_dep): Likewise.
2784 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
2785 (sched_free_deps): Free in two passes.
2786
1f098f07
RS
27872011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
2788
2789 PR middle-end/49736
2790 * expr.c (all_zeros_p): Undo bogus part of last change.
2791
73059910
MK
27922011-07-14 Matthias Klose <doko@ubuntu.com>
2793
2794 * doc/extend.texi (optimize attribute): Fix typo.
2795
bd5d002e
RG
27962011-07-14 Richard Guenther <rguenther@suse.de>
2797
2798 * gimplify.c (gimplify_expr): Only do required conversions.
2799
eb1dcdff
GJL
28002011-07-14 Georg-Johann Lay <avr@gjlay.de>
2801
2802 PR target/43746
2803 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
2804 i.e. use default_elf_select_section.
2805 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
2806 (READONLY_DATA_SECTION_ASM_OP): Remove.
2807 (TARGET_ASM_NAMED_SECTION): Move from here...
2808 * config/avr/avr.c: ...to here.
03126412 2809 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
eb1dcdff
GJL
2810 (avr_asm_named_section): Make static.
2811
d31fb329
RO
28122011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2813
2814 PR bootstrap/49739
03126412
UB
2815 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
2816 and crtfastmath.o for Linux/x86.
d31fb329 2817
26965010
BS
28182011-07-14 Bernd Schmidt <bernds@codesourcery.com>
2819
2820 * haifa-sched.c: Include "hashtab.h"
2821 (sched_no_dce): New global variable.
2822 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
2823 SHADOW_P): New macros.
2824 (last_clock_var, cycle_issued_insns): Move declarations.
2825 (must_backtrack): New static variable.
2826 (struct delay_pair): New structure.
2827 (delay_htab, delay_htab_i2): New static variables.
2828 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
2829 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
2830 functions.
2831 (dep_cost_1): If delay pairs exist, try to look up the insns and
2832 use the correct pair delay if we find them.
2833 (rank-for_schedule): Tweak priority for insns that must be scheduled
2834 soon to avoid backtracking.
2835 (queue_insn): Detect conditions which force backtracking.
2836 (ready_add): Likewise.
2837 (struct sched_block_state): Add member shadows_only_p.
2838 (struct haifa_save_data): New structure.
2839 (backtrack_queue): New static variable.
2840 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
2841 unschedule_insns_until, restore_last_backtrack_point,
2842 free_topmost_backtrack_point, free_backtrack_queue,
2843 estimate_insn_tick, estimate_shadow_tick): New functions.
2844 (prune_ready_list): New arg shadows_only_p. All callers changed.
2845 If true, remove everything that isn't SHADOW_P. Look up delay
03126412 2846 pairs and estimate ticks to avoid scheduling the first insn too early.
26965010
BS
2847 (verify_shadows): New function.
2848 (schedule_block): Add machinery to enable backtracking.
2849 (sched_init): Take sched_no_dce into account when setting
2850 DF_LR_RUN_DCE.
2851 (free_delay_pairs): New function.
2852 (init_h_i_d): Initialize INSN_EXACT_TICK.
2853 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
2854 * sched-deps.c (sd_unresolve_dep): New function.
2855 * sched-int. (struct haifa_sched_info): New fields save_state
2856 and restore_state.
2857 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
2858 feeds_backtrack_insn and shadow_p.
2859 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
2860 (sched_no_dce): Declare variable.
2861 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
2862 sd_unresolve_dep): Declare functions.
2863 * modulo-sched.c (sms_sched_info): Clear the two new fields.
2864 * sched-rgn.c (rgn_const_sched_info): Likewise.
2865 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
2866 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
2867 (ebb_sched_info): Add them for the two new fields.
2868 (add_deps_for_risky_insns): Call add_delay_dependencies.
2869
1db75f6c
MM
28702011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
2871
2872 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
2873 Rename -mr11.
2874 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
2875 (rs6000_call_indirect_aix): Ditto.
2876 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
2877 (call_indirect_aix<ptrsize>_internal): Ditto.
2878 (call_indirect_aix<ptrsize>_nor11): Ditto.
2879 (call_indirect_aix<ptrsize>_internal2): Ditto.
2880 (call_value_indirect_aix<ptrsize>): Ditto.
2881 (call_value_indirect_aix<ptrsize>_internal): Ditto.
2882 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
2883 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
2884 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
2885
e2995714
JM
28862011-07-13 Jason Merrill <jason@redhat.com>
2887
2888 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
2889
4dfe3ad5
UW
28902011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2891
2892 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
2893 * config/spu/spu.md ("clrsb<mode>2"): New expander.
2894
dddc6762
TS
28952011-07-13 Thomas Schwinge <thomas@schwinge.name>
2896
2897 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
2898 * configure: Regenerate.
2899
b4d80e56
UW
29002011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2901
2902 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
2903 (asm_file_start): Remove.
2904 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
2905 free_bb_for_insn around code that modifies insns before
2906 restarting df analysis.
2907
9e34e53f
RO
29082011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2909
2910 PR target/49541
03126412 2911 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
9e34e53f
RO
2912 (LINK_SPEC): ... here.
2913
51564684
BS
29142011-07-13 Bernd Schmidt <bernds@codesourcery.com>
2915
2916 * haifa-sched.c (struct sched_block_state): New.
2917 (schedule_block): Move some local variables into such a structure.
2918
b3fe1584
RO
29192011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2920
2921 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
2922 * config/i386/t-crtpc: Remove.
2923 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
2924 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
2925 tmake_file.
2926 (x86_64-*-darwin*): Likewise.
2927 (i[34567]86-*-linux*): Likewise.
2928 (x86_64-*-linux*): Likewise.
2929
2930 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
2931 Handle -mpc32, -mpc64, -mpc80.
2932
35d8090d
RO
29332011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2934
2935 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
2936 * config/alpha/t-crtfm: Remove.
2937 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
2938 * config/i386/t-crtfm: Remove.
2939 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
2940 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
2941 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
2942 * config/sparc/t-crtfm: Remove.
2943
2944 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
2945 (alpha*-*-freebsd*): Likewise.
2946 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
2947 (x86_64-*-darwin*): Likewise.
2948 (i[34567]86-*-linux*): Likewise.
2949 (x86_64-*-linux*): Likewise.
2950 (x86_64-*-mingw*): Likewise.
2951 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
2952 (ia64*-*-freebsd*): Likewise.
2953 (ia64*-*-linux*): Likewise.
2954 (mips64*-*-linux*): Likewise.
2955 (mips*-*-linux*): Likewise.
2956 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
2957 (sparc64-*-linux*): Likewise.
2958 (sparc64-*-freebsd*): Likewise.
2959
e141542e
RO
29602011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2961
2962 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
2963 * config/darwin-crt3.c: Move to ../libgcc/config.
2964 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
2965 ($(T)crt3$(objext)): Remove.
2966 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
2967 ($(T)crt2$(objext)): Remove.
2968 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
2969 (powerpc64-*-darwin*): Likewise.
2970
72fbc381
L
29712011-07-13 H.J. Lu <hongjiu.lu@intel.com>
2972
03126412 2973 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
72fbc381
L
2974
2975 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
2976 (addsi_1_zext): This.
2977
727a65e6
BS
29782011-07-13 Bernd Schmidt <bernds@codesourcery.com>
2979
2980 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
2981 * doc/tm.texi: Regenerate.
73451ae7 2982 * target.def (mergeable_rodata_prefix): New defhookpod.
727a65e6
BS
2983 * varasm.c (mergeable_string_section, mergeable_constant_section):
2984 Use it. Allocate name with alloca.
2985
cb77b6cf
L
29862011-07-13 H.J. Lu <hongjiu.lu@intel.com>
2987
2988 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
2989
36fc3799
RS
29902011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
2991
2992 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
2993 overlap check.
2994
953d0c90
RS
29952011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
2996
2997 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
2998 (count_type_elements): Delete.
2999 (complete_ctor_at_level_p): Declare.
3000 * expr.c (flexible_array_member_p): New function, split out from...
3001 (count_type_elements): ...here. Make static. Replace allow_flexarr
3002 parameter with for_ctor_p. When for_ctor_p is true, return the
3003 number of elements that should appear in the top-level constructor,
3004 otherwise return an estimate of the number of scalars.
3005 (categorize_ctor_elements): Replace p_must_clear with p_complete.
3006 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
3007 (complete_ctor_at_level_p): New function, borrowing union logic
3008 from old categorize_ctor_elements_1.
3009 (mostly_zeros_p): Return true if the constructor is not complete.
3010 (all_zeros_p): Update call to categorize_ctor_elements.
3011 * gimplify.c (gimplify_init_constructor): Update call to
3012 categorize_ctor_elements. Don't call count_type_elements.
3013 Unconditionally prevent clearing for variable-sized types,
3014 otherwise rely on categorize_ctor_elements to detect
3015 incomplete initializers.
3016
9111c715
RG
30172011-07-13 Richard Guenther <rguenther@suse.de>
3018
3019 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
3020 the final type is integral.
3021
a19af9c4
BS
30222011-07-13 Bernd Schmidt <bernds@codesourcery.com>
3023
3024 * sched-int.h (struct _dep): Add member cost.
3025 (DEP_COST, UNKNOWN_DEP_COST): New macros.
3026 * sched-deps.c (init_dep_1): Initialize DEP_COST.
3027 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
3028 (sched_change_pattern): Reset it for dependent insns.
3029
2d1efe2d
RO
30302011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3031
3032 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
3033 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
3034 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
3035 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
3036 (CRT0_S, MCRT0_S): Remove.
3037 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
3038 Remove.
3039 (s-crt0): Remove.
3040 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
3041
e84a58ff
EB
30422011-07-12 Eric Botcazou <ebotcazou@adacore.com>
3043
3044 * cse.c (insert_with_costs): Put semi-colon after empty loop body
3045 on the next line.
3046 * emit-rtl.c (push_to_sequence): Likewise.
3047 * haifa-sched.c (max_issue): Likewise.
3048 * matrix-reorg.c (add_allocation_site): Likewise.
3049 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
3050 * reload.c (alternative_allows_const_pool_ref): Likewise.
3051 * sched-rgn.c (rgn_add_block): Likewise.
3052 (rgn_fix_recovery_cfg): Likewise.
3053 * tree.c (attribute_list_contained): Likewise.
3054
3a4ffde6
UB
30552011-07-12 Uros Bizjak <ubizjak@gmail.com>
3056
3057 * config/i386/i386.c: Tidy processor feature bitmasks.
3058 (m_P4_NOCONA): New.
3059
10b75750
AP
30602011-07-12 Andrew Pinski <pinskia@gmail.com>
3061
3062 PR rtl-opt/49474
3063 * cprop.c (find_implicit_sets): Correct the condition.
3064
4f42d714
RH
30652011-07-12 Richard Henderson <rth@redhat.com>
3066
3067 PR target/49713
3068 * dwarf2out.h (dwarf_frame_regnum): Remove.
3069 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
3070 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
3071 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
3072 (execute_dwarf2_frame): Initialize them.
3073 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
3074 users of the macros with the variables.
3075 (expand_builtin_dwarf_sp_column): Revert last change.
3076 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
3077 result of DWARF_FRAME_REGNUM into a local variable.
3078
3a5e4ad6
RH
30792011-07-12 Richard Henderson <rth@redhat.com>
3080
3081 PR target/49714
3082 * config/i386/i386.c (x86_output_mi_thunk): Use
3083 machopic_indirect_call_target instead of machopic_indirection_name
3084 directly.
3085
9e9bd455
LG
30862011-07-12 Laurent GUERBY <laurent@guerby.net>
3087 Eric Botcazou <ebotcazou@adacore.com>
3088
3089 * prefix.h: Wrap up in extern "C" block.
3090
4d652a18
HJ
30912011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
3092
3093 AMD bdver2 Enablement
3094 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
3095 (case ${target}): Add bdver2.
3096 * config/i386/driver-i386.c (host_detect_local_cpu): Let
3097 -march=native recognize bdver2 processors.
3098 * config/i386/i386-c.c (ix86_target_macros_internal): Add
3099 bdver2 def_and_undef
3100 * config/i386/i386.c (struct processor_costs bdver2_cost): New
3101 bdver2 cost table.
3102 (m_BDVER2): New definition.
3103 (m_AMD_MULTIPLE): Includes m_BDVER2.
3104 (initial_ix86_tune_features): Add bdver2 tuning.
3105 (processor_target_table): Add bdver2 entry.
3106 (static const char *const cpu_names): Add bdver2 entry.
3107 (ix86_option_override_internal): Add bdver2 instruction sets.
3108 (ix86_issue_rate): Add bdver2.
3109 (ix86_adjust_cost): Add bdver2.
3110 (has_dispatch): Add bdver2.
3111 * config/i386/i386.h (TARGET_BDVER2): New definition.
3112 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
3113 (enum processor_type): Add PROCESSOR_BDVER2.
3114 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
3115 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
3116 description.
3117
5756d08c
RH
31182011-07-12 Richard Henderson <rth@redhat.com>
3119
3120 PR target/49714
3121 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
3122 destination address in memory on some paths.
3123
123148b5
BS
31242011-07-12 Bernd Schmidt <bernds@codesourcery.com>
3125
3126 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
3127 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
3128 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
3129 * function.c (locate_and_pad_parm): Take it into account.
3130 * target.def (function_arg_round_boundary): New hook.
3131 * targhooks.c (default_function_arg_round_boundary): New function.
3132 * targhooks.h (default_function_arg_round_boundary): Declare.
3133 * doc/tm.texi: Regenerate.
3134
b7a83ad8
RG
31352011-07-12 Richard Guenther <rguenther@suse.de>
3136
3137 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
3138 Do not perform no-op changes.
3139
12c4ecb1
RS
31402011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
3141
3142 * config/arm/predicates.md (neon_struct_operand): Make a normal
3143 predicate.
3144 (neon_struct_or_register_operand): New predicate.
3145 * config/arm/neon.md (movmisalign<mode>): Replace predicates
3146 with neon_struct_or_register_operand.
3147 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
3148 neon_struct_operand instead of memory_operand.
3149
ab079773
MJ
31502011-07-12 Martin Jambor <mjambor@suse.cz>
3151
3152 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
3153 * cgraph.c (cgraph_get_node_or_alias): Removed.
3154 (change_decl_assembler_name): Changed all calls to
3155 cgraph_get_node_or_alias to a call to cgraph_get_node.
3156 (cgraph_make_decl_local): Likewise.
3157 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
3158 * varasm.c (default_binds_local_p_1): Likewise.
3159 (decl_binds_to_current_def_p): Likewise.
3160
d5fed62d
JJ
31612011-07-12 Jakub Jelinek <jakub@redhat.com>
3162
3163 PR tree-optimization/49712
3164 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
3165
c0b6224a
BS
31662011-07-11 Bernd Schmidt <bernds@codesourcery.com>
3167
3168 * genautomata.c (add_arc): Return void. All callers changed.
3169 (make_automaton): Remove dead code.
3170
7263c6d7
RH
31712011-07-11 Richard Henderson <rth@redhat.com>
3172
3173 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
3174 (DW_FRAME_POINTER_REGNUM): New.
3175 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
3176 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
3177 (dwf_regno): New.
3178 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
3179 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
3180 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
3181 Use it.
3182 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
3183 * dwarf2out.h (dwarf_frame_regnum): New.
3184 (struct cfa_loc): Document the domain of the reg member.
3185
f9610d20
UB
31862011-07-11 Uros Bizjak <ubizjak@gmail.com>
3187
3188 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
3189 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
3190
96ae7458
JJ
31912011-07-11 Jakub Jelinek <jakub@redhat.com>
3192
3193 PR debug/49676
3194 * dwarf2out.c (int_shift_loc_descriptor): New function.
3195 (int_loc_descriptor): If shorter, emit i as
3196 (i >> shift), shift, DW_OP_shl for suitable shift value.
3197 Similarly, try to optimize large negative values using
3198 DW_OP_neg of a positive value if shorter.
3199 (size_of_int_shift_loc_descriptor): New function.
3200 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
3201 changes.
3202 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
3203 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
3204 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
3205 is shorter.
3206 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
3207 addend as added DW_OP_plus if it is shorter.
3208
feffaec4
RO
32092011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3210
3211 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
3212 (DTORS_SECTION_ASM_OP): Define.
3213
2d8d5935
RO
32142011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3215
3216 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
3217 * config/t-dfprules: Move to ../libgcc/config.
3218 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
3219 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
3220 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
3221 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
3222 Likewise.
3223 (i[34567]86-*-cygwin*): Likewise.
3224 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
3225 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
3226 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
3227 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
3228 D64PBIT_FUNCS, D128PBIT_FUNCS.
3229
dcc95c20
RG
32302011-07-11 Richard Guenther <rguenther@suse.de>
3231
3232 * tree-vrp.c (simplify_conversion_using_ranges): Manually
3233 translate the source value-range through the conversion chain.
3234
28164eed
RS
32352011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
3236
3237 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
3238
f3054223
AL
32392011-07-11 Arthur Loiret <aloiret@debian.org>
3240
3241 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
3242 a bi-arch compiler defaulting to 31-bit. In this case:
3243 (tmake_file): Add s390/t-linux64.
3244 * doc/install.texi: Add s390-linux to the list of targets supporting
3245 --enable-targets=all.
3246
bd5ab709
AL
32472011-07-11 Arthur Loiret <aloiret@debian.org>
3248 Matthias Klose <doko@debian.org>
3249
3250 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
3251 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
3252 (tm_file): Add mips/linux64.h.
3253 (tmake_file): Add mips/t-linux64.
3254 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
3255 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
3256 instead of hardcoded mabi=n32.
3257 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
3258 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
3259 convention.
3260
d3b7e946
AK
32612011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3262
3263 * passes.c (init_optimization_passes): Add invariant motion pass
3264 after induction variable optimization.
3265
7e4ec472 32662011-07-11 Georg-Johann Lay <avr@gjlay.de>
f9610d20 3267
7e4ec472
GJL
3268 PR target/39633
3269 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
3270 offsets 1..5 set cc0 in a usable way.
3271
0e65e631
RG
32722011-07-11 Romain Geissler <romain.geissler@gmail.com>
3273
3274 * tree.h (call_expr_arg): Remove.
3275 (call_expr_argp): Likewise.
3276
18970372
EB
32772011-07-11 Eric Botcazou <ebotcazou@adacore.com>
3278
3279 * config/sparc/sparc.md (save_register_window_1): Rename to...
3280 (window_save): ...this.
3281 * config/sparc/sparc.c (emit_save_register_window): Rename to...
3282 (emit_window_save): ...this.
3283 (sparc_expand_prologue): Adjust to above renaming.
3284
9e419e38
L
32852011-07-10 H.J. Lu <hongjiu.lu@intel.com>
3286
3287 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
3288 of movabs for x32.
3289
3db72de3
RH
32902011-07-10 Richard Henderson <rth@redhat.com>
3291
3292 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
3293 run final, instead of emitting text directly.
3294
a1f91bca
L
32952011-07-10 H.J. Lu <hongjiu.lu@intel.com>
3296
3297 * config/i386/i386.c (ix86_option_override_internal): Turn on
3298 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
3299 small PIC models for TARGET_X32.
3300
a50023f9
HPN
33012011-07-10 Hans-Peter Nilsson <hp@axis.com>
3302
9a0b29f0
HPN
3303 PR target/49684
3304 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
3305 $(LIBGCC2_CFLAGS).
3306
a50023f9
HPN
3307 PR bootstrap/49680
3308 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
3309 stray notes and debug insns by using prev_nonnote_nondebug_insn
3310 instead of PREV_INSN.
3311
948d330e
RH
33122011-07-09 Richard Henderson <rth@redhat.com>
3313
3314 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
3315 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
3316 * dwarf2out.c: ... here.
3317 (output_all_cfis): Remove.
3318 (dwarf2out_switch_text_section): Use output_cfis directly.
3319 (size_of_locs): Export.
3320 (output_loc_sequence, output_loc_sequence_raw): Export.
3321 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
3322 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
3323 output_cfa_loc_raw): Move to ...
3324 * dwarfcfi.c: ... here.
3325 * dwarf2out.h: Update decls.
3326
db42e39d
RH
33272011-07-09 Richard Henderson <rth@redhat.com>
3328
3329 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
3330 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
3331 * dwarf2cfi.c: ... here.
3332 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
3333 (DWARF_ROUND, DWARF_CIE_ID): Remove.
3334 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
3335 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
3336 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
3337
a8e5c0e7
RH
33382011-07-09 Richard Henderson <rth@redhat.com>
3339
3340 * dwarf2cfi.c (cie_return_save): New.
3341 (queue_reg_save): Use compare_reg_or_pc.
3342 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
3343 (dwarf2out_frame_debug_expr): Likewise.
3344 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
3345 (initial_return_save): Likewise.
3346 (execute_dwarf2_frame): Save and restore initial return save from
3347 the cie to the fde.
3348 * config/mips/mips.c (mips_frame_set): Remove special case for
3349 DWARF_FRAME_RETURN_COLUMN.
3350
4a8ee122
RH
33512011-07-09 Richard Henderson <rth@redhat.com>
3352
3353 * dwarf2cfi.c (lookup_cfa): Remove.
3354 (execute_dwarf2_frame): Assert queues are empty on entry.
3355 Setup initial cfa directly, not via lookup_cfa.
3356 Don't clear args_size state here.
3357
3edb53aa
RH
33582011-07-09 Richard Henderson <rth@redhat.com>
3359
3360 * dwarf2cfi.c (add_cfi_vec): New.
3361 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
3362 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
3363 (execute_dwarf2_frame): Set add_cfi_vec.
3364
ded49a7f
RH
33652011-07-09 Richard Henderson <rth@redhat.com>
3366
3367 * defaults.h (ASM_COMMENT_START): Move here...
3368 * dwarf2asm.c: ... from here.
3369 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
3370 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
3371 * varasm.c: Likewise.
3372
45fba6d1
RH
33732011-07-09 Richard Henderson <rth@redhat.com>
3374
3375 PR debug/49686
3376 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
3377 (create_cfi_notes): ... do it here instead.
3378
5b696ba2
JJ
33792011-07-09 Jakub Jelinek <jakub@redhat.com>
3380
3381 PR debug/49676
3382 * dwarf2out.c (size_of_int_loc_descriptor): New function.
3383 (address_of_int_loc_descriptor): Use it.
f9610d20 3384 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
5b696ba2 3385
8662b2ba
RH
33862011-07-09 Richard Henderson <rth@redhat.com>
3387
3388 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
3389 (prologue, epilogue): New.
3390 (return, *rts): New.
3391 (blockage, setd, seti): New.
3392 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
3393 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
3394 (pdp11_saved_regno): New.
3395 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
3396 generate rtl instead of text.
3397 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
3398 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
3399 * config/pdp11/pdp11-protos.h: Update.
3400
28b21ebb
RH
34012011-07-09 Richard Henderson <rth@redhat.com>
3402
3403 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
3404 try to insert an rtl prologue here.
3405 (rs6000_output_function_epilogue): Similarly.
3406 * config/rs6000/rs6000.md (prologue): Emit a barrier to
3407 satisfy !TARGET_SCHED_PROLOG.
3408 (epilogue, sibcall_epilogue): Likewise.
3409
0a222ba7
EB
34102011-07-09 Eric Botcazou <ebotcazou@adacore.com>
3411
3412 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
3413 (FP_REG_P): Delete.
3414 (IN_OR_GLOBAL_P): Likewise.
3415
2fda8e14
JM
34162011-07-08 Jason Merrill <jason@redhat.com>
3417
4063e61b
JM
3418 PR c++/45437
3419 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
3420 compound assignment.
3421
2fda8e14
JM
3422 * cgraph.c (cgraph_add_to_same_comdat_group): New.
3423 * cgraph.h: Declare it.
3424 * ipa.c (function_and_variable_visibility): Make sure thunks
3425 have the right visibility.
3426
830f11fe
RH
34272011-07-08 Richard Henderson <rth@redhat.com>
3428
3429 PR bootstrap/49680
3430 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
3431 any tablejump vector.
3432
965b2557
RH
3433 PR bootstrap/49680
3434 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
3435 end of the prologue.
3436
70db9095
JJ
34372011-07-08 Jakub Jelinek <jakub@redhat.com>
3438
3439 PR target/49621
3440 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
f9610d20 3441 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
70db9095
JJ
3442 * config/rs6000/vector.md (vector_select_<mode>,
3443 vector_select_<mode>_uns): Change second operand of NE to
3444 CONST0_RTX (<MODE>mode) instead of const0_rtx.
3445 * config/rs6000/altivec.md (*altivec_vsel<mode>,
3446 *altivec_vsel<mode>_uns): Expect second operand of NE to be
3447 zero_constant of the corresponding vector mode.
3448 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
3449 Likewise.
3450
e92c5020
SP
34512011-07-08 Sebastian Pop <sebastian.pop@amd.com>
3452
3453 * graphite-dependences.c (build_alias_set_powerset): Remove
3454 continue from loop, add one more assert.
3455
3e4f8484 34562011-07-08 Georg-Johann Lay <avr@gjlay.de>
f9610d20 3457
3e4f8484
GJL
3458 PR target/46779
3459 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
3460 In particular, allow 8-bit values in r28 and r29.
3461 (avr_hard_regno_scratch_ok): Disallow any register that might be
3462 part of the frame pointer.
3463 (avr_hard_regno_rename_ok): Same.
3464 (avr_legitimate_address_p): Don't allow SUBREGs.
3465
0094f21b
JB
34662011-07-08 Julian Brown <julian@codesourcery.com>
3467
3468 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
3469 big-endian mode.
3470 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
3471 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
3472 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
3473 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
3474 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
3475 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
3476 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
3477 registers in big-endian mode.
3478
9ae60101
BS
34792011-07-08 Bernd Schmidt <bernds@codesourcery.com>
3480
3481 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
3482 in terms of another.
3483 (write_attr_value): Write a cast if necessary.
3484
c0a6a1ef
BS
3485 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
3486 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
3487 (REG_WORDS_BIG_ENDIAN): Document.
3488 * doc/tm.texi: Regenerate.
3489 * reload.c (operands_match_p): Take it into account.
3490 (reload_adjust_reg_for_mode): Likewise.
3491 * rtlanal.c (subreg_get_info): Likewise.
3492
b862187a
RG
34932011-07-08 Richard Guenther <rguenther@suse.de>
3494
3495 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
3496 folding.
3497
e8e8c74b
KT
34982011-07-08 Kai Tietz <ktietz@redhat.com>
3499
3500 * fold-const.c (fold_truth_andor): Factored out truth_andor
3501 label from fold_binary as function.
3502 (fold_binary_loc): Replace truth_andor lable
3503 by function fold_truth_andor.
3504
6c3cb698
KY
35052011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
3506
3507 PR middle-end/49519
3508 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
3509 check if address is stored in register. If so - give up.
3510 (check_sibcall_argument_overlap_1): Do not perform check of
3511 overlapping when it is call to address.
3512
7d8d6d73 35132011-07-08 Georg-Johann Lay <avr@gjlay.de>
9ae60101 3514
7d8d6d73
GJL
3515 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
3516 of magic '31'.
3517
69660a70
BS
35182011-07-08 Bernd Schmidt <bernds@codesourcery.com>
3519
3520 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
3521 GET_MODE_BITSIZE where appropriate.
3522 (widen_leading, expand_parity, expand_ctz, expand_ffs,
3523 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
3524 expand_float, expand_fix): Likewise.
3525 * expr.c (convert_move, convert_modes, expand_expr_real_2,
3526 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
3527 * stor-layout.c (get_mode_bounds): Likewise.
3528 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
3529 Likewise.
3530 * convert.c (convert_to_integer): Likewise.
3531 * expmed.c (expand_shift_1): Likewise.
3532
86cdf393
BS
3533 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
3534 a bitsize.
3535
0d44736e
BS
3536 * optabs.c (expand_binop): Tighten conditions for doubleword
3537 expansions.
f9610d20 3538 (widen_bswap): Assert that mode bitsize and precision are the same.
0d44736e
BS
3539 * stor-layout.c (get_best_mode): Skip modes that have lower
3540 precision than bitsize.
3541 * recog.c (simplify_while_replacing): Assert that bitsize and
3542 precision are the same.
3543
2c50b2c3
RO
35442011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3545
3546 * Makefile.in (LIBGCOV): Remove.
3547 (libgcc.mvars): Remove LIBGCOV.
3548 * libgov.c: Move to ../libgcc.
3549
a039d7c2
RO
35502011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3551
3552 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
3553
e923ef41
MJ
35542011-07-08 Martin Jambor <mjambor@suse.cz>
3555
3556 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
3557 is too big for total scalarization.
3558
b709e189
RH
35592011-07-07 Richard Henderson <rth@redhat.com>
3560
3561 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
3562 (DBX_DEBUGGING_INFO): Undef.
3563
2867fa7c
RH
35642011-07-07 Richard Henderson <rth@redhat.com>
3565
3566 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
3567 Handle some opcodes specially for debugging.
3568 * print-rtl.c: Include dwarf2out.h
3569 (print_rtx): Handle NOTE_INSN_CFI.
3570 * Makefile.in (print-rtl.o): Update.
3571
7644b3c7
RH
35722011-07-07 Richard Henderson <rth@redhat.com>
3573
3574 * tree-pass.h (pass_dwarf2_frame): Declare.
3575 * passes.c (init_optimization_passes): Add it.
3576 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
3577 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
3578 make static, do not call add_cfis_to_fde.
3579 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
3580 dwarf2out_frame_init): Merge into...
3581 (execute_dwarf2_frame): ... here. New function.
3582 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
3583 saved_do_cfi_asm to a tri-state variable.
3584 (gate_dwarf2_frame, pass_dwarf2_frame): New.
3585 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
3586 if it has yet to be done. Don't call dwarf2cfi_function_init.
3587 * dwarf2out.h, debug.h: Update decls.
3588 * final.c (final_start_function): Don't call
3589 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
3590 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
3591 * toplev.c (lang_dependent_init): Likewise.
3592
a518b996
RH
35932011-07-07 Richard Henderson <rth@redhat.com>
3594
3595 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
3596 FDE_TABLE_INCREMENT): Replace with...
3597 (fde_vec): ... this, a new vector.
3598 (current_fde): Remove. Replace all users with cfun->fde.
3599 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
3600 (size_of_aranges, dwarf2out_finish): Likewise.
3601 (dwarf2out_alloc_current_fde): Break out from ...
3602 (dwarf2out_begin_prologue): ... here.
3603 (dwarf2out_frame_init): Remove.
3604 * dwarf2cfi.c: Update all users of current_fde.
3605 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
3606 * dwarf2out.h: Update decls.
3607 (dw_fde_node): Add fde_index member.
3608 * function.h (struct function): Add fde member.
3609
89e25f95
BS
36102011-07-07 Bernd Schmidt <bernds@codesourcery.com>
3611 Richard Henderson <rth@redhat.com>
3612
3613 * dwarf2cfi.c (add_cfi): Remove.
3614 (dwarf2out_cfi_label): Remove force argument. Only generate the
3615 label name.
3616 (add_fde_cfi): Simplify the different code paths.
3617 (add_cie_cfi): New.
3618 (old_cfa, old_cfa_remember): New.
3619 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
3620 (last_reg_save_label): Remove.
3621 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
3622 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
3623 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
3624 dwarf2out_frame_debug_cfa_expression,
3625 dwarf2out_frame_debug_cfa_restore,
3626 dwarf2out_frame_debug_cfa_window_save,
3627 dwarf2out_frame_debug_expr): Remove label parameter.
3628 (cfi_label_required_p, add_cfis_to_fde): New.
3629 (dwarf2out_frame_debug_after_prologue): New.
3630 (dwarf2cfi_frame_init): Initialize old_cfa.
3631 (dwarf2out_frame_debug_restore_state): Likewise.
3632 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
3633 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
3634 * final.c (final_start_function): Call
3635 dwarf2out_frame_debug_after_prologue.
3636
bc5612ed
BS
36372011-07-07 Bernd Schmidt <bernds@codesourcery.com>
3638 Richard Henderson <rth@redhat.com>
3639
3640 * dwarf2cfi.c (cfi_insn): New.
3641 (dwarf2out_cfi_label): Don't emit cfi label here.
3642 (add_fde_cfi): Create a NOTE_INSN_CFI.
3643 (dwarf2out_frame_debug): Setup cfi_insn.
3644 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
3645 (dwarf2out_cfi_begin_epilogue): Make static.
3646 (dwarf2out_frame_debug_restore_state): Make static.
3647 * dwarf2out.c (output_cfi_directive): Make static.
3648 (dwarf2out_emit_cfi): New.
3649 * dwarf2out.h: Update.
3650 * final.c (final): Remove CFI notes.
3651 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
3652 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
3653 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
3654 * insn-notes.def (NOTE_INSN_CFI): New.
3655 (NOTE_INSN_CFI_LABEL): New.
3656 * rtl.h (union rtunion_def): Add rt_cfi member.
3657 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
3658
647a1567
RH
36592011-07-07 Richard Henderson <rth@redhat.com>
3660
3661 * dwarf2cfi.c: New file.
3662 * Makefile.in (OBJS): Add it.
3663 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
3664 * gengtype.c (open_base_files): Include dwarf2out.h.
3665 * coretypes.h (enum var_init_status): Move from ...
3666 * rtl.h: ... here.
3667 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
3668 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
3669 expand_builtin_dwarf_sp_column, init_return_column_size,
3670 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
3671 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
3672 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
3673 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
3674 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
3675 compute_barrier_args_size, dwarf2out_args_size,
3676 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
3677 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
3678 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
3679 queue_reg_save, dwarf2out_flush_queued_reg_saves,
3680 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
3681 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
3682 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
3683 dwarf2out_frame_debug_cfa_expression,
3684 dwarf2out_frame_debug_cfa_restore,
3685 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
3686 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
3687 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
3688 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
3689 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
3690 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
3691 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
3692 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
3693 dw_loc_descr_node): Move to dwarf2out.h.
3694 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
3695 mem_loc_descriptor): Export.
3696 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
3697 (dwarf2out_frame_init): Extract CIE generation code to
3698 dwarf2cfi_frame_init.
3699
b286d9ed
EB
37002011-07-07 Eric Botcazou <ebotcazou@adacore.com>
3701
3702 PR target/49660
3703 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
3704 MASK_V8PLUS, remove commented out flag and reorder.
3705
c4603e7c
JJ
37062011-07-07 Jakub Jelinek <jakub@redhat.com>
3707
3708 PR c/49644
3709 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
3710 one non-complex and one complex argument, call c_save_expr on both
3711 operands.
3712
81361831
MJ
37132011-07-07 Martin Jambor <mjambor@suse.cz>
3714
3715 PR middle-end/49495
3716 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
3717 (verify_cgraph_node): Some functinality moved to
3718 verify_edge_corresponds_to_fndecl, call it.
3719
1e4b2746
JM
37202011-07-07 Joseph Myers <joseph@codesourcery.com>
3721
3722 * config.gcc (*local*): Remove.
3723 * doc/install-old.texi: Don't mention local configurations.
3724
d7ff1e11
JJ
37252011-07-07 Jakub Jelinek <jakub@redhat.com>
3726
3727 PR debug/49522
3728 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
3729 referencing debug insns that have been reset.
3730 (dead_debug_insert_before): Don't assert reg is non-NULL,
3731 instead return immediately if it is NULL.
3732
2492731a
JM
37332011-07-07 Joseph Myers <joseph@codesourcery.com>
3734
f9610d20 3735 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
2492731a 3736
9d9c740d
BS
37372011-07-07 Bernd Schmidt <bernds@codesourcery.com>
3738
3739 * hw-doloop.c: New file.
3740 * hw-doloop.h: New file.
3741 * Makefile.in (OBJS): Add hw-doloop.o.
3742 (hw-doloop.o): New rule.
3743 ($(obj_out_file)): Add hw-doloop.h dependency.
3744 * config/bfin/bfin.c: Include "hw-doloop.h".
3745 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
3746 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
3747 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
3748 type changed to hwloop_info. Return bool, true if the loop was
3749 successfully optimized. Remove code that was moved to
3750 hw-doloop.c, and adjust other parts.
3751 (hwloop_fail): New static function, containing parts that used
3752 to be in bfin_optimize_loop.
3753 (bfin_discover_loop, bfin_discover_loops, free_loops,
3754 bfin_reorder_loops): Remove.
3755 (hwloop_pattern_reg): New static function.
3756 (bfin_doloop_hooks): New variable.
3757 (bfin_reorg_loops): Remove most code, call reorg_loops.
3758 * config/bfin/bfin.md (doloop_end splitter): Also enable if
3759 loop counter is a memory_operand.
3760
f0ea7581
L
37612011-07-07 H.J. Lu <hongjiu.lu@intel.com>
3762
f9610d20 3763 * config.gcc: Support --with-multilib-list for x86 Linux targets.
f0ea7581
L
3764
3765 * configure.ac: Mention x86-64 for --with-multilib-list.
3766 * configure: Regenerated.
3767
3768 * config/i386/gnu-user64.h (SPEC_64): Support x32.
3769 (SPEC_32): Likewise.
3770 (ASM_SPEC): Likewise.
3771 (LINK_SPEC): Likewise.
3772 (TARGET_THREAD_SSP_OFFSET): Likewise.
3773 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
3774 (SPEC_X32): New.
3775
3776 * config/i386/i386.h (TARGET_X32): New.
3777 (TARGET_LP64): New.
3778 (LONG_TYPE_SIZE): Likewise.
3779 (POINTER_SIZE): Likewise.
3780 (POINTERS_EXTEND_UNSIGNED): Likewise.
3781 (OPT_ARCH64): Support x32.
3782 (OPT_ARCH32): Likewise.
3783
3784 * config/i386/i386.opt (mx32): New.
3785
3786 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
3787 (GLIBC_DYNAMIC_LINKERX32): Likewise.
3788 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
3789 (GLIBC_DYNAMIC_LINKERX32): Likewise.
3790
3791 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
3792 (BIONIC_DYNAMIC_LINKERX32): Likewise.
3793 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
3794
3795 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
3796
f9610d20 3797 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
f0ea7581
L
3798
3799 * doc/invoke.texi: Document -mx32.
3800
38460025
RS
38012011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
3802
3803 * doc/invoke.texi (mwords-little-endian): Deprecate.
3804 * config/arm/arm.opt (mwords-little-endian): Likewise.
3805 * config/arm/arm.c (arm_option_override): Warn about the deprecation
3806 of -mwords-little-endian.
3807
3f125532
RS
38082011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
3809
3810 * reload1.c (choose_reload_regs): Use mode sizes to check whether
3811 an old reload register completely defines the required value.
3812
bbc210ab
RG
38132011-07-07 Richard Guenther <rguenther@suse.de>
3814
3815 * fold-const.c (fold_unary_loc): Do not strip sign-changes
3816 for NEGATE_EXPR.
3817
29c5134a
RG
38182011-07-07 Richard Guenther <rguenther@suse.de>
3819
3820 * tree-vrp.c (simplify_conversion_using_ranges): New function.
3821 (simplify_stmt_using_ranges): Call it.
3822
0816a42a
KT
38232011-07-07 Kai Tietz <ktietz@redhat.com>
3824
3825 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
3826 (lookup_logical_inverted_value): Likewise.
3827 (simplify_bitwise_binary_1): Likewise.
3828 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
3829
3ce9f090
JM
38302011-07-07 Joseph Myers <joseph@codesourcery.com>
3831
3832 * gcc.c (%[Spec]): Don't document.
3833 (struct spec_list): Update comment.
3834 (do_spec_1): Don't handle %[Spec].
3835 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
3836
41dfca87
JM
38372011-07-07 Joseph Myers <joseph@codesourcery.com>
3838
3839 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
3840 default based on TARGET_ASM_NAMED_SECTION.
3841 * common/common-target.def (have_named_sections): Default to true.
3842 * common/config/default-common.c: Don't include tm.h.
3843 * common/config/picochip/picochip-common.c
3844 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
3845 * common/config/m32c/m32c-common.c: Remove.
3846 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
f9610d20
UB
3847 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
3848 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
3849 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
41dfca87 3850 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
f9610d20
UB
3851 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
3852 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
41dfca87 3853
19c44640
JJ
38542011-07-07 Jakub Jelinek <jakub@redhat.com>
3855
3856 PR middle-end/49640
f9610d20
UB
3857 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
3858 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
19c44640 3859
891a2e42
RO
38602011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3861
3862 PR libmudflap/49550
3863 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
3864
fbdd5d87
RO
38652011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3866
3867 PR target/39150
3868 * configure.ac (gcc_cv_as_hidden): Also accept
3869 x86_64-*-solaris2.1[0-9]*.
3870 (gcc_cv_as_cfi_directive): Likewise.
3871 (gcc_cv_as_comdat_group_group): Likewise.
3872 (set_have_as_tls): Likewise.
3873 * configure: Regenerate.
3874 * config.gcc (i[34567]86-*-solaris2*): Also handle
3875 x86_64-*-solaris2.1[0-9]*.
3876 * config.host (i[34567]86-*-solaris2*): Likewise.
3877 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
3878 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
3879 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
3880 (TARGET_LD_EMULATION): Use it.
3881 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
3882 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
3883 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
3884 (ASM_CPU64_DEFAULT_SPEC): Define.
3885 (ASM_CPU_SPEC): Use %(asm_cpu_default).
3886 (ASM_SPEC): Redefine.
3887 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
3888 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
f9610d20 3889 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
fbdd5d87
RO
3890 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
3891 configuration.
3892 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
3893
fcf7471a
RO
38942011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3895
3896 * config/sol2.h (ASM_SPEC): Split into ...
3897 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
3898 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
3899 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
3900 (ASM_SPEC): Use ASM_SPEC_BASE.
3901 * config/sparc/sol2.h (ASM_SPEC): Redefine.
3902
1e6a67d1 39032011-07-07 Georg-Johann Lay <avr@gjlay.de>
f9610d20 3904
1e6a67d1
GJL
3905 * config/avr/avr.md (*reload_insi): Change predicate #1 to
3906 const_int_operand. Ditto for peep2 producing this insn.
3907 Add argument to output_reload_insisf call.
3908 (*movsi,*movsf): Add argument to output_movsisf call.
3909 (*reload_insf): New insn and new peep2 to produce it.
3910 * config/avr/avr-protos.h (output_movsisf): Change prototype.
3911 (output_reload_insisf): Change prototype.
3912 * config/avr/avr.c (avr_asm_len): New function.
3913 (output_reload_insisf): Rewrite.
3914 (output_movsisf): Change prototype. output_reload_insisf for
3915 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
3916 (adjust_insn_length): Add argument to output_movsisf and
3917 output_reload_insisf call.
3918
6a4bdc79
BS
39192011-07-07 Bernd Schmidt <bernds@codesourcery.com>
3920
3921 * emit-rtl.c (paradoxical_subreg_p): New function.
3922 * rtl.h (paradoxical_subreg_p): Declare.
3923 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
3924 apply_distributive_law, simplify_comparison, simplify_set): Use it.
3925 * cse.c (record_jump_cond, cse_insn): Likewise.
3926 * expr.c (force_operand): Likewise.
3927 * rtlanal.c (num_sign_bit_copies1): Likewise.
3928 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
3929 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
3930 (push_reload): Use precision to check for paradoxical subregs.
3931 * expmed.c (extract_bit_field_1): Likewise.
3932
46c9550f
BS
3933 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
3934 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
3935 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
3936 simplify_set, simplify_logical, expand_compound_operation,
3937 make_extraction, force_to_mode, if_then_else_cond, extended_count,
3938 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
3939 record_value_for_reg): Likewise.
3940 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
3941 * simplify-rtx. c (simplify_unary_operation_1,
3942 simplify_binary_operation_1, simplify_const_relational_operation):
3943 Likewise.
3944
5511bc5a
BS
3945 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
3946 instead of GET_MODE_BITSIZE where appropriate.
3947 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
3948 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
3949 init_num_sign_bit_copies_in_rep): Likewise.
3950 * cse.c (fold_rtx, cse_insn): Likewise.
3951 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
3952 * simplify-rtx.c (simplify_unary_operation_1,
3953 simplify_const_unary_operation, simplify_binary_operation_1,
3954 simplify_const_binary_operation, simplify_ternary_operation,
3955 simplify_const_relational_operation, simplify_subreg): Likewise.
3956 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
3957 simplify_if_then_else, simplify_set, expand_compound_operation,
3958 expand_field_assignment, make_extraction, if_then_else_cond,
3959 make_compound_operation, force_to_mode, make_field_assignment,
3960 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
3961 extended_count, try_widen_shift_mode, simplify_shift_const_1,
3962 simplify_comparison, record_promoted_value, simplify_compare_const,
3963 record_dead_and_set_regs_1): Likewise.
3964
d58c1a38
BS
3965 Revert:
3966 * simplify-rtx.c (simplify_const_binary_operation): Use the
f9610d20
UB
3967 shift_truncation_mask hook instead of performing modulo by width.
3968 Compare against mode precision, not bitsize.
d58c1a38 3969 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
f9610d20 3970 Use shift_truncation_mask instead of constructing the value manually.
d58c1a38 3971
76594d53
MM
39722011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
3973
3974 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
3975 declaration.
3976 (rs6000_save_toc_in_prologue_p): Ditto.
3977
3978 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
3979 up the static chain (r11) during indirect function calls.
3980 (-msave-toc-indirect): New undocumented debug switch.
3981
3982 * config/rs6000/rs6000.c (struct machine_function): Add
3983 save_toc_in_prologue field to note whether the prologue needs to
3984 save the TOC value in the reserved stack location.
3985 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
3986 to save the TOC in the prologue, do so.
3987 (rs6000_trampoline_init): Don't allow creating AIX style
3988 trampolines if -mno-r11 is in effect.
3989 (rs6000_call_indirect_aix): New function to create AIX style
3990 indirect calls, adding support for -mno-r11 to suppress loading
3991 the static chain, and saving the TOC in the prologue instead of
3992 the call body.
3993 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
3994 TOC in the prologue.
3995
3996 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
3997 register numbers.
3998 (TOC_REGNUM): Ditto.
3999 (STATIC_CHAIN_REGNUM): Ditto.
4000 (ARG_POINTER_REGNUM): Ditto.
4001 (SFP_REGNO): Delete, unused.
4002 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
4003 function descriptor offsets.
4004 (TOC_SAVE_OFFSET_64BIT): Ditto.
4005 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
4006 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
4007 (AIX_FUNC_DESC_SC_32BIT): Ditto.
4008 (AIX_FUNC_DESC_SC_64BIT): Ditto.
f9610d20
UB
4009 (ptrload): New mode attribute for the appropriate load of a pointer.
4010 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
76594d53
MM
4011 (call_indirect_aix64): Ditto.
4012 (call_value_indirect_aix32): Ditto.
4013 (call_value_indirect_aix64): Ditto.
4014 (call_indirect_nonlocal_aix32_internal): Ditto.
4015 (call_indirect_nonlocal_aix32): Ditto.
4016 (call_indirect_nonlocal_aix64_internal): Ditto.
4017 (call_indirect_nonlocal_aix64): Ditto.
4018 (call): Rewrite AIX indirect function calls. Add support for
4019 eliminating the static chain, and for moving the save of the TOC
4020 to the function prologue.
4021 (call_value): Ditto.
4022 (call_indirect_aix<ptrsize>): Ditto.
4023 (call_indirect_aix<ptrsize>_internal): Ditto.
4024 (call_indirect_aix<ptrsize>_internal2): Ditto.
4025 (call_indirect_aix<ptrsize>_nor11): Ditto.
4026 (call_value_indirect_aix<ptrsize>): Ditto.
4027 (call_value_indirect_aix<ptrsize>_internal): Ditto.
4028 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
4029 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
4030 (call_nonlocal_aix32): Relocate in the rs6000.md file.
4031 (call_nonlocal_aix64): Ditto.
4032
4033 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
4034 -mno-r11 documentation.
4035
49d6830d
JW
40362011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
4037
4038 PR other/49658
4039 * doc/extend.texi (Compound Literals): Fix typo.
4040
c884924f
JG
40412011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
4042
f9610d20 4043 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
c884924f 4044
bf588455
BS
40452011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
4046
4047 * configure.ac (plugin-version.h): Generate
4048 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
4049 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
4050 macros.
4051
4052 * configure: Regenerate.
4053
4054 * doc/plugins.texi (Building GCC plugins): Mention
4055 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
4056
d0edd768
BS
40572011-07-06 Bernd Schmidt <bernds@codesourcery.com>
4058
4059 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
4060 * combine.c (make_extraction, gen_lowpart_or_truncate,
4061 apply_distributive_law, simplify_comparison,
4062 reg_truncated_to_mode, record_truncated_value): Use it.
4063 * cse.c (notreg_cost): Likewise.
4064 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
4065 * expr.c (convert_move, convert_modes): Likewise.
4066 * optabs.c (expand_binop, expand_unop): Likewise.
4067 * postreload.c (move2add_last_label): Likewise.
4068 * regmove.c (optimize_reg_copy_3): Likewise.
4069 * rtlhooks.c (gen_lowpart_general): Likewise.
4070 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
4071
e5cabdfb
JM
40722011-07-06 Joseph Myers <joseph@codesourcery.com>
4073
4074 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
4075
2d0c270f
BS
40762011-07-06 Bernd Schmidt <bernds@codesourcery.com>
4077
4078 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
4079 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
4080 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
4081 (simplify_const_unary_operation, simplify_binary_operation_1,
f9610d20
UB
4082 simplify_const_binary_operation, simplify_const_relational_operation):
4083 Use them. Use GET_MODE_MASK for masking and sign-extensions.
2d0c270f
BS
4084 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
4085 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
4086 simplify_shift_const_1, simplify_comparison): Likewise.
4087 * expr.c (convert_modes): Likewise.
4088 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
f9610d20 4089 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
2d0c270f
BS
4090 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
4091
f9c08345
BS
4092 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
4093
6d6c9525
RG
40942011-07-06 Richard Guenther <rguenther@suse.de>
4095
4096 PR tree-optimization/49645
4097 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
4098 register variables.
4099 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
4100 in type qualification here ...
4101 (copy_reference_ops_from_ref): ... not here.
4102 (vn_reference_lookup_3): ... or here.
4103 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
4104 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
4105
d1a6ec10
ILT
41062011-07-06 Ian Lance Taylor <iant@google.com>
4107
4108 * doc/install.texi (Configuration): It's
4109 --enable-gnu-indirect-function, not --enable-indirect-function.
4110
ff3e08af
BS
41112011-07-06 Bernd Schmidt <bernds@codesourcery.com>
4112
4113 * simplify-rtx.c (simplify_const_binary_operation): Use the
f9610d20
UB
4114 shift_truncation_mask hook instead of performing modulo by width.
4115 Compare against mode precision, not bitsize.
ff3e08af 4116 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
f9610d20 4117 Use shift_truncation_mask instead of constructing the value manually.
ff3e08af 4118
a369b639
L
41192011-07-06 H.J. Lu <hongjiu.lu@intel.com>
4120
4121 PR middle-end/47383
4122 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
4123 address computation and convert to address_mode if needed.
4124
1a072294
RG
41252011-07-06 Richard Guenther <rguenther@suse.de>
4126
4127 * tree.c (build_common_tree_nodes_2): Merge with
4128 build_common_tree_nodes.
4129 * tree.h (build_common_tree_nodes): Adjust prototype.
4130 (build_common_tree_nodes_2): Remove.
4131 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
4132 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
4133
f2c3a8ce
JJ
41342011-07-05 Jakub Jelinek <jakub@redhat.com>
4135
4136 PR tree-optimization/49618
4137 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
4138 t recurse on the decl.
4139 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
4140 return true if expr isn't known to be defined in current
4141 TU or some other LTO partition.
4142
3aa439ed
MM
41432011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
4144
4145 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
4146 override CASE_VALUES_THRESHOLD.
4147
4148 * stmt.c (toplevel): Include params.h.
4149 (case_values_threshold): Use the --param case-values-threshold
4150 value if non-zero, otherwise use machine dependent value.
4151 (expand_case): Use case_values_threshold.
4152
4153 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
4154
4155 * doc/invoke.texi (--param case-values-threshold): Document.
4156
49956667
RH
41572011-07-05 Richard Henderson <rth@redhat.com>
4158
4159 * dwarf2out.c (dwarf2out_cfi_label): Make static.
4160 (dwarf2out_flush_queued_reg_saves): Make static.
4161 (dwarf2out_reg_save): Remove.
4162 (dwarf2out_return_save): Remove.
4163 (dwarf2out_return_reg): Remove.
4164 (dwarf2out_reg_save_reg): Remove.
4165 (dwarf2out_def_cfa): Merge into ...
4166 (dwarf2out_frame_init): ... here.
4167 * dwarf2out.h, tree.h: Remove declarations as necessary.
4168
9f2ff8e5
RH
41692011-07-05 Richard Henderson <rth@redhat.com>
4170
c2b40eba
RH
4171 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
4172 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
4173 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
4174 the alloc insn.
4175
7d3c6cd8
RH
4176 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
4177 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
4178 (process_epilogue): Don't call dwarf2out_def_cfa.
4179
5f740973
RH
4180 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
4181 indicate the return address save.
4182 (process_cfa_register): Likewise.
4183
a1880147
RH
4184 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
4185 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
4186
9f2ff8e5
RH
4187 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
4188 for ar.pfs save at alloc insn.
4189
ddc6e7d6
RH
41902011-07-05 Richard Henderson <rth@redhat.com>
4191
4192 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
4193 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
4194 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
4195 stack pointer save.
4196 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
4197 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
4198 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
4199 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
4200
a3515605
RH
42012011-07-05 Richard Henderson <rth@redhat.com>
4202
4203 * config/vax/vax.md (define_c_enum unspecv): New. Define the
4204 VUNSPEC_* constants here instead of via define_constants.
4205 (VUNSPEC_PEM): New constant.
4206 (procedure_entry_mask): New insn.
4207 (prologue): New expander.
4208 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
4209 (vax_expand_prologue): Rename from vax_output_function_prologue;
4210 emit rtl instead of text.
4211 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
4212 (print_operand): Add 'x' prefix.
4213
a7adbbcb
L
42142011-07-05 H.J. Lu <hongjiu.lu@intel.com>
4215
4216 PR middle-end/47715
4217 * calls.c (precompute_register_parameters): Promote the function
4218 argument before checking non-legitimate constant.
4219
cec11ec4
SP
42202011-07-05 Sebastian Pop <sebastian.pop@amd.com>
4221
4222 PR tree-optimization/47654
4223 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
4224 (lst_do_strip_mine_loop): Return an int.
4225 (lst_do_strip_mine): Same.
4226 (scop_do_strip_mine): Same.
4227 (scop_do_block): Loop blocking should strip-mine at least two loops.
4228 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
4229 (scop_do_interchange): Same.
4230 * graphite-poly.h (scop_do_interchange): Update declaration.
4231 (scop_do_strip_mine): Same.
4232
9b0d314a
SP
42332011-07-05 Sebastian Pop <sebastian.pop@amd.com>
4234
4235 * graphite-clast-to-gimple.c (precision_for_value): Removed.
4236 (precision_for_interval): Removed.
4237 (gcc_type_for_interval): Use mpz_sizeinbase.
4238
81d6d080
SP
42392011-07-05 Sebastian Pop <sebastian.pop@amd.com>
4240
4241 * graphite-ppl.h (value_max): Correct computation of max.
4242
369e3430
SP
42432011-07-05 Sebastian Pop <sebastian.pop@amd.com>
4244
4245 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
4246
fce5dddd
RG
42472011-07-05 Richard Guenther <rguenther@suse.de>
4248
4249 * c-decl.c (c_init_decl_processing): Defer building common
4250 tree nodes to c_common_nodes_and_builtins.
4251
12037899
RL
42522011-07-05 Razya Ladelsky <razya@il.ibm.com>
4253
4254 PR tree-optimization/49580
f9610d20 4255 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
12037899 4256 the loop's number of iterations.
f9610d20
UB
4257 * tree-parloops.c (transform_to_exit_first_loop): Add the
4258 handling of the loop's number of iterations before the call
12037899 4259 to gimple_duplicate_sese_tail.
28b21ebb 4260 Insert the stmt caclculating the new rhs of the loop's
12037899
RL
4261 condition stmt to the preheader instead of iters_bb.
4262
509a31f8
L
42632011-07-05 H.J. Lu <hongjiu.lu@intel.com>
4264
4265 PR rtl-optimization/47449
4266 * fwprop.c (forward_propagate_subreg): Don't propagate hard
4267 register nor zero/sign extended hard register.
4268
39becbac
RG
42692011-07-05 Richard Guenther <rguenther@suse.de>
4270
4271 PR tree-optimization/49518
4272 PR tree-optimization/49628
4273 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
4274 irrelevant and invariant data-references.
4275 (vect_analyze_data_ref_access): For invariant loads clear the
4276 group association.
4277
15923c25
JJ
42782011-07-04 Jakub Jelinek <jakub@redhat.com>
4279
af421d9c
JJ
4280 PR rtl-optimization/49619
4281 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
4282 pass VOIDmode as op0_mode to recursive call, and return temp even
4283 when different from tor, just if it is not IOR of the original
4284 PLUS arguments.
4285
707f9919
JJ
4286 PR rtl-optimization/49472
4287 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
4288 negating MULT, negate the second operand instead of first.
4289 (simplify_binary_operation_1) <case MULT>: If one operand is
f9610d20
UB
4290 a NEG and the other is MULT, don't attempt to optimize by negation
4291 of the MULT operand if it only moves the NEG operation around.
707f9919 4292
15923c25
JJ
4293 PR debug/49602
4294 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
4295 get_current_def return value if it can't be trusted to be
4296 the current value of the variable in the current bb.
4297
0d5e0c1b
UB
42982011-07-04 Uros Bizjak <ubizjak@gmail.com>
4299
4300 PR target/49600
4301 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
4302 general register to memory for !TARGET_INTER_UNIT_MOVES.
4303
db297e20
GJL
43042011-07-04 Georg-Johann Lay <avr@gjlay.de>
4305
4306 PR target/44643
4307 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
4308 instead of TREE_READONLY.
4309
f451d14d
GJL
43102011-07-04 Georg-Johann Lay <avr@gjlay.de>
4311
4312 * doc/extend.texi (AVR Built-in Functions): Update documentation
4313 of __builtin_avr_fmul*.
0d5e0c1b 4314 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
f451d14d
GJL
4315 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
4316 * config/avr/avr.md (fmul): Rename to fmul_insn.
4317 (fmuls): Rename to fmuls_insn.
4318 (fmulsu): Rename to fmulsu_insn.
4319 (fmul,fmuls,fmulsu): New expander.
4320 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
4321 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
4322 * config/avr/libgcc.S (__fmul): New function.
4323 (__fmuls): New function.
4324 (__fmulsu,__fmulsu_exit): New function.
4325
30f1e6de
RG
43262011-07-04 Richard Guenther <rguenther@suse.de>
4327
4328 PR tree-optimization/49615
4329 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
4330 basic-block index check.
4331
6dab9931
GJL
43322011-07-04 Georg-Johann Lay <avr@gjlay.de>
4333
4334 * longlong.h (count_leading_zeros, count_trailing_zeros,
4335 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
4336 resp. 64.
4337
b5066d8b
IR
43382011-07-03 Ira Rosen <ira.rosen@linaro.org>
4339
4340 PR tree-optimization/49610
4341 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
4342 a basic block.
4343
bc712852
EB
43442011-07-02 Eric Botcazou <ebotcazou@adacore.com>
4345 Olivier Hainque <hainque@adacore.com>
4346 Nicolas Setton <setton@adacore.com>
4347
4348 * tree.h (TYPE_ARTIFICIAL): New flag.
4349 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
4350 the DIE of the type if it is artificial.
4351 (gen_array_type_die): Likewise.
4352 (gen_enumeration_type_die): Likewise.
4353 (gen_struct_or_union_type_die): Likewise.
4354 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
4355 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
4356
8b1bdcc5
JJ
43572011-07-01 Jakub Jelinek <jakub@redhat.com>
4358
4359 * tree-object-size.c (pass_through_call): Handle
4360 BUILT_IN_ASSUME_ALIGNED.
4361
06e88d73
MJ
43622011-07-01 Martin Jambor <mjambor@suse.cz>
4363
4364 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
4365
6bbec3e1
L
43662011-07-01 H.J. Lu <hongjiu.lu@intel.com>
4367
4368 PR middle-end/48016
4369 * explow.c (update_nonlocal_goto_save_area): Use proper mode
4370 for stack save area.
4371 * function.c (expand_function_start): Likewise.
4372
e8fdf1cd
RG
43732011-07-01 Richard Guenther <rguenther@suse.de>
4374
4375 PR middle-end/49596
4376 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
4377 may have unknown refs.
4378
80d3dd38
KT
43792011-07-01 Kai Tietz <ktietz@redhat.com>
4380
4381 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
4382
179fc656
RO
43832011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4384
4385 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
4386 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
4387 (Specific, mips-sgi-irix6): Likewise.
4388
14a393a3
RO
43892011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4390
4391 PR libmudflap/49549
4392 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
4393
3aecd443
JJ
43942011-07-01 Jakub Jelinek <jakub@redhat.com>
4395
4396 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
4397 [idx]= and [idx1 ... idx2]= before initializers if needed for
4398 array initializers.
4399
7474f719
CL
44002011-07-01 Chen Liqin <liqin.gcc@gmail.com>
4401
4402 * config.gcc (score-*-elf): Remove score7.o.
4403 * config/score/t-score-elf: Likewise.
4404 * config/score/score.c: Merge score7 to score.c and
4405 remove forwarding functions.
4406 * config/score/score7.c: Deleted.
4407 * config/score/score7.h: Deleted.
4408
ab70d825
RG
44092011-07-01 Richard Guenther <rguenther@suse.de>
4410
4411 PR tree-optimization/49603
0d5e0c1b 4412 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
ab70d825 4413
1ac93f10
MJ
44142011-06-30 Martin Jambor <mjambor@suse.cz>
4415
4416 * tree-sra.c (struct access): Rename total_scalarization to
4417 grp_total_scalarization
4418 (completely_scalarize_var): New function.
4419 (sort_and_splice_var_accesses): Set total_scalarization in the
4420 representative access.
4421 (analyze_access_subtree): Propagate total scalarization accross the
4422 tree, no holes in totally scalarized trees, simplify coverage
4423 computation.
4424 (analyze_all_variable_accesses): Call completely_scalarize_var instead
4425 of completely_scalarize_record.
4426
97f309c3
RH
44272011-06-30 Richard Henderson <rth@redhat.com>
4428
4429 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
4430 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
4431 * config/i386/i386.c: Don't include dwarf2out.h.
4432 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
4433 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
4434 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
4435 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
4436 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
4437
ef284364
RH
44382011-06-30 Richard Henderson <rth@redhat.com>
4439
4440 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
4441 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
4442 * final.c (final_scan_insn): Look for it, and invoke
4443 dwarf2out_frame_debug before the insn if found.
4444
c8412f97
RH
44452011-06-30 Richard Henderson <rth@redhat.com>
4446
4447 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
4448 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
4449
e3f903d8
RH
44502011-06-30 Richard Henderson <rth@redhat.com>
4451
4452 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
4453 Define a vector of this type.
4454 (regs_saved_in_regs): Use a VEC.
4455 (num_regs_saved_in_regs): Remove.
4456 (compare_reg_or_pc): New.
4457 (record_reg_saved_in_reg): Split out from...
4458 (dwarf2out_flush_queued_reg_saves): ... here.
4459 (clobbers_queued_reg_save): Update for VEC.
4460 (reg_saved_in): Likewise.
4461 (dwarf2out_frame_debug_init): Likewise.
4462 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
4463 (dwarf2out_frame_debug_cfa_register): Likewise.
4464
e2c9010a
EB
44652011-06-30 Eric Botcazou <ebotcazou@adacore.com>
4466
4467 PR tree-optimization/49572
4468 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
4469 type of the RHS instead of that of the LHS for the expression type.
4470
dbb07bbc
EB
44712011-06-30 Eric Botcazou <ebotcazou@adacore.com>
4472
4473 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
4474 unconditionally.
4475
1565af08
RG
44762011-06-30 Richard Guenther <rguenther@suse.de>
4477
4478 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
4479 * tree-ssa-structalias.c (create_variable_info_for): Do not
4480 add initial constraints for non-var-decls. Properly handle
4481 globals in other ltrans partitions.
4482 (intra_create_variable_infos): Manually create constraints for
4483 the fake no-alias parameter.
4484 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
4485 and assert there are no clones.
4486
42373e0b
RG
44872011-06-30 Richard Guenther <rguenther@suse.de>
4488
4489 PR tree-optimization/46787
4490 * tree-data-ref.c (dr_address_invariant_p): Remove.
4491 (find_data_references_in_stmt): Invariant accesses are ok now.
0d5e0c1b 4492 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
42373e0b
RG
4493 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
4494 invariant loads.
4495
7aa62ea1
MJ
44962011-06-30 Martin Jambor <mjambor@suse.cz>
4497
4498 PR tree-optimization/49094
4499 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
4500 (build_accesses_from_assign): Use it.
4501
f60f32b3
JJ
45022011-06-30 Jakub Jelinek <jakub@redhat.com>
4503
d9048d16
JJ
4504 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
4505 handling of BUILT_IN_ASSUME_ALIGNED.
4506
f60f32b3
JJ
4507 PR debug/49364
4508 * dwarf2out.c (output_abbrev_section): Don't return early
4509 if abbrev_die_table_in_use is 1.
4510 (dwarf2out_finish): Instead don't call output_abbrev_section
4511 nor emit abbrev_section_label in that case.
4512
7cce15d4
NC
45132011-06-30 Nick Clifton <nickc@redhat.com>
4514
4515 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
4516 for the V850E.
4517
ce7e54ff
JJ
45182011-06-30 Jakub Jelinek <jakub@redhat.com>
4519
4520 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
4521 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
4522
83197f37
IR
45232011-06-30 Ira Rosen <ira.rosen@linaro.org>
4524
4525 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
4526 both pattern and original statements if necessary.
4527 (vect_transform_loop): Likewise.
4528 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
4529 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
4530 Mark the pattern statement only if the original statement doesn't
4531 have its own uses.
4532 (process_use): Call vect_mark_relevant with additional parameter.
4533 (vect_mark_stmts_to_be_vectorized): Likewise.
4534 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
4535 (vect_analyze_stmt): Handle both pattern and original statements
4536 if necessary.
4537 (vect_transform_stmt): Don't store vectorized pattern statement
4538 in the original statement.
4539 (vect_is_simple_use_1): Use related pattern statement only if the
4540 original statement is irrelevant.
4541 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
4542
dbb07bbc 45432011-06-29 Changpeng Fang <changpeng.fang@amd.com>
5c0d88e6 4544
dbb07bbc
EB
4545 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
4546 option.
4547 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
4548 entry.
5c0d88e6
CF
4549 (TARGET_AVX128_OPTIMAL): New definition.
4550 * config/i386/i386.c (initial_ix86_tune_features): Initialize
4551 X86_TUNE_AVX128_OPTIMAL entry.
4552 (ix86_option_override_internal): Enable the generation
4553 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
4554 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
4555 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
4556
931050d0
EB
45572011-06-29 Eric Botcazou <ebotcazou@adacore.com>
4558
4559 PR tree-optimization/49539
4560 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
4561 names by means of stmt_references_abnormal_ssa_name.
4562 (associate_plusminus): Call can_propagate_from before propagating
4563 from definition statements.
4564 (ssa_forward_propagate_and_combine): Remove superfluous newline.
4565
dfedbe40
RG
45662011-06-29 Richard Guenther <rguenther@suse.de>
4567
4568 * doc/invoke.texi: Document -scev dump modifier.
4569 * tree-pass.h (TDF_SCEV): New dump flag.
4570 * tree-dump.c (dump_option_value_in): Add scev.
4571 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
4572 * tree-scalar-evolution.c: Likewise.
4573
3a86cfeb
NS
45742011-06-29 Nathan Sidwell <nathan@codesourcery.com>
4575
4576 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
4577 (cxa_type_match): Correct declaration.
0d5e0c1b
UB
4578 (__gnu_unwind_pr_common): Reconstruct additional indirection
4579 when __cxa_type_match returns succeeded_with_ptr_to_base.
3a86cfeb 4580
f3678bfb
UW
45812011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4582
4583 PR rtl-optimization/49114
4584 * reload.c (struct replacement): Remove SUBREG_LOC member.
4585 (push_reload): Do not set it.
4586 (push_replacement): Likewise.
4587 (subst_reload): Remove dead code.
4588 (copy_replacements): Remove assertion.
4589 (copy_replacements_1): Do not handle SUBREG_LOC.
4590 (move_replacements): Likewise.
4591 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
4592 Detect subregs via recursive descent instead of via SUBREG_LOC.
4593
433ba0a5 45942011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 4595
433ba0a5
GJL
4596 * config/avr/avr.c (avr_encode_section_info): Dispatch to
4597 default_encode_section_info.
4598
73f6eabc
RS
45992011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
4600
4601 PR tree-optimization/49545
4602 * builtins.c (get_object_alignment_1): Update function comment.
4603 Do not use DECL_ALIGN for functions, but test
4604 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
4605 * fold-const.c (get_pointer_modulus_and_residue): Don't check
4606 for functions here.
4607 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
4608
a0f33d3a
JJ
46092011-06-29 Jakub Jelinek <jakub@redhat.com>
4610
4611 PR debug/49567
0d5e0c1b
UB
4612 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
4613 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
a0f33d3a 4614
946c8b23 46152011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 4616
946c8b23 4617 PR target/34734
0d5e0c1b 4618 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
946c8b23
GJL
4619 about uninitialized data attributed 'progmem' from here...
4620 (avr_encode_section_info): ...to this new function.
4621 (TARGET_ENCODE_SECTION_INFO): New define.
4622 (avr_section_type_flags): For data in ".progmem.data", remove
4623 section flag SECTION_WRITE.
4624
9a63dee4 46252011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 4626
9a63dee4
GJL
4627 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
4628 _xmulhisi3_exit.
4629 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
4630 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
4631 (__umulhisi3): Ditto.
4632 * config/avr/avr.md (mulhisi3): New insn expender.
4633 (umulhisi3): New insn expender.
4634 (*mulhisi3_call): New insn.
4635 (*umulhisi3_call): New insn.
4636
4374ce45
JM
46372011-06-28 Joseph Myers <joseph@codesourcery.com>
4638
4639 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
4640
94759030
RH
46412011-06-28 Richard Henderson <rth@redhat.com>
4642
4643 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
4644 all code and arguments that handled pushes. Update all callers.
4645
d018b46e
RH
46462011-06-28 Richard Henderson <rth@redhat.com>
4647
4648 * config/arm/arm.c (arm_output_function_prologue): Don't call
4649 thumb1_output_function_prologue.
4650 (arm_expand_prologue): Avoid dead store.
4651 (number_of_first_bit_set): Use ctz_hwi.
4652 (thumb1_emit_multi_reg_push): New.
4653 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
4654 to emit the entire prologue as rtl.
4655 (thumb1_output_interwork): Split out from
4656 thumb1_output_function_prologue.
4657 (thumb1_output_function_prologue): Remove.
4658 (arm_attr_length_push_multi): Handle thumb1.
4659 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
4660 (prologue_thumb1_interwork): New.
4661 (*push_multi): Allow thumb1; use push_mult_memory_operand.
4662 * config/arm/predicates.md (push_mult_memory_operand): New.
4663
97269a23
EB
46642011-06-28 Eric Botcazou <ebotcazou@adacore.com>
4665
4666 * config/sparc/sync.md (*stbar): Delete.
4667 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
4668
4a9206ce
EB
46692011-06-28 Eric Botcazou <ebotcazou@adacore.com>
4670
4671 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
4672
6138f9bd
RO
46732011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4674
4675 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
4676 (TARGET_64BIT_DEFAULT): Define.
4677 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
4678 of tm_file.
4679 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
4680
a7d0d30f
JM
46812011-06-28 Joseph Myers <joseph@codesourcery.com>
4682
4683 * common.opt (in_lto_p): New Variable entry.
4684 * flags.h (in_lto_p): Move to common.opt.
4685 * gcc.c: Include params.h.
4686 (set_option_handlers): Also use common_handle_option and
4687 target_handle_option.
0d5e0c1b 4688 (main): Call global_init_params, finish_params and init_options_struct.
a7d0d30f
JM
4689 * opts.c (debug_type_names): Move from toplev.c.
4690 (print_filtered_help): Access quiet_flag through opts pointer.
0d5e0c1b
UB
4691 (common_handle_option): Return early in the driver for some options.
4692 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
4693 opts pointer.
a7d0d30f
JM
4694 * toplev.c (in_lto_p): Move to common.opt.
4695 (debug_type_names): Move to opts.c.
4696 * Makefile.in (OBJS): Remove opts.o.
4697 (OBJS-libcommon-target): Add opts.o.
4698 (gcc.o): Update dependencies.
4699
420863a9
KT
47002011-06-28 Kai Tietz <ktietz@redhat.com>
4701
0d5e0c1b 4702 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
420863a9 4703
0498a2be
RR
47042011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4705
4706 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
4707 with '=' constraint modifier.
4708 (*divdf3_vfp): Likewise.
4709 ("*mulsf3_vfp"): Likewise.
4710 ("*muldf3_vfp"): Likewise.
4711 ("*mulsf3negsf_vfp"): Likewise.
4712 ("*muldf3negdf_vfp"): Likewise.
4713
4a68b724
NC
47142011-06-28 Nick Clifton <nickc@redhat.com>
4715
4716 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
4717 relaxation when performing an incremental link.
4718
72a32729
KT
47192011-06-28 Kai Tietz <ktietz@redhat.com>
4720
4721 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
4722 within BB from last to first.
4723
88a00ef7
JM
47242011-06-28 Joseph Myers <joseph@codesourcery.com>
4725
4726 * genattr-common.c: New. Based on genattr.c.
4727 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
4728 (MOSTLYCLEANFILES): Add insn-attr-common.h.
4729 (opts.o): Update dependencies.
4730 (.PRECIOUS): Add insn-attr-common.h.
4731 (simple_rtl_generated_h): Add insn-attr-common.h.
4732 (build/genattr-common.o): New.
4733 (genprogrtl): Add attr-common.
4734 * genattr.c (main): Include insn-attr-common.h. Don't generate
4735 definitions of DELAY_SLOTS or INSN_SCHEDULING.
0d5e0c1b 4736 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
88a00ef7 4737
880962ac
GJL
47382011-06-28 Georg-Johann Lay <avr@gjlay.de>
4739
4a68b724 4740 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
880962ac 4741 avr-*-* and avr-*-rtems* targets.
4a68b724 4742
880962ac
GJL
4743 * config/avr/elf.h: New file.
4744 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
4745 (TARGET_ASM_SELECT_SECTION): Define.
4746 (INIT_SECTION_ASM_OP): Undefine.
4747 (FINI_SECTION_ASM_OP): Undefine.
4748 (READONLY_DATA_SECTION_ASM_OP): Undefine.
4749 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
4750 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
4751 * config/avr/avr.h:
4752 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
4753 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
4754 (MAX_OFILE_ALIGNMENT): Move to elf.h.
4755 (STRING_LIMIT): Move to elf.h.
4756 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
4757 (ASM_DECLARE_OBJECT_NAME): Remove.
4758 (ESCAPES): Remove.
4759 (ASM_OUTPUT_SKIP): Remove.
4760 (DWARF2_DEBUGGING_INFO): Remove.
4761 (OBJECT_FORMAT_ELF): Remove.
4762 (USER_LABEL_PREFIX): Remove.
4763 (ASM_OUTPUT_EXTERNAL): Remove.
4764 (ASM_OUTPUT_ASCII): Remove.
4765 (TYPE_ASM_OP): Remove.
4766 (SIZE_ASM_OP): Remove.
4767 (WEAK_ASM_OP): Remove.
4768 (STRING_ASM_OP): Remove.
4769 (SET_ASM_OP): Remove.
4770 (ASM_WEAKEN_LABEL): Remove.
4771 (TYPE_OPERAND_FMT): Remove.
4772 (ASM_DECLARE_FUNCTION_SIZE): Remove.
4773 (ASM_FINISH_DECLARE_OBJECT): Remove.
4774 (NO_DOLLAR_IN_LABEL): Remove.
4775 (ASM_GENERATE_INTERNAL_LABEL): Remove.
4776 (ASM_OUTPUT_CASE_LABEL): Remove.
4777 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
4778 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
4779 (gas_output_ascii): Remove.
4780 (gas_output_limited_string): Remove.
4781 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
4782 * config/avr/avr-protos.h
4783 (gas_output_ascii): Remove prototye.
4784 (gas_output_limited_string): Remove prototype.
4785
a1b5eb93
RE
47862011-06-27 Richard Earnshaw <rearnsha@arm.com>
4787
4788 PR target/48637
4789 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
4790 asm operands.
4791
310e71a8
JH
47922011-06-27 Jan Hubicka <jh@suse.cz>
4793
4a9206ce
EB
4794 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
4795 node instead of references in node.
310e71a8 4796
171da07a
RH
47972011-06-27 Richard Henderson <rth@redhat.com>
4798
4799 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
4800 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
4801 inside ifdef.
4802
dc2a58da
JJ
48032011-06-27 Jakub Jelinek <jakub@redhat.com>
4804
56300785
JJ
4805 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
4806
45d439ac
JJ
4807 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
4808 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
4809 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
4810 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
4811 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
4812 (evaluate_stmt, execute_fold_all_builtins): Handle
4813 BUILT_IN_ASSUME_ALIGNED.
4814 * tree-ssa-dce.c (propagate_necessity): Likewise.
4815 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
4816 call_may_clobber_ref_p_1): Likewise.
4817 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
4818 (expand_builtin_assume_aligned): New function.
4819 * doc/extend.texi (__builtin_assume_aligned): Document.
4820
dc2a58da
JJ
4821 PR debug/49544
4822 * cselib.c (promote_debug_loc): If cselib_preserve_constants
4823 and l has two DEBUG_INSN owned locs instead of just one, adjust
4824 the second location's setting_insn too.
4825
0d72f628
RO
48262011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4827
4828 PR libmudflap/38738
4829 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
4830
bebd619e
NC
48312011-06-27 Nick Clifton <nickc@redhat.com>
4832
0d5e0c1b
UB
4833 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
4834 bit position of highest bit set into a count of the high zero bits.
bebd619e 4835
353b39fa
EB
48362011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4837
4838 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
4839
a7af037b
EB
48402011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4841
4842 PR lto/48492
4843 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
4844 to a NULL parent.
4845
1c86160a
RG
48462011-06-27 Richard Guenther <rguenther@suse.de>
4847
4848 PR tree-optimization/49394
4849 * passes.c (execute_one_pass): Restore current_pass after
4850 applying IPA transforms.
4851
5da49a9d
KT
48522011-06-27 Kai Tietz <ktietz@redhat.com>
4853
4854 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
4855 out of type precision after operation.
0d5e0c1b
UB
4856 (find_bswap): Take for limit value the integer auto-promotion
4857 into account.
5da49a9d 4858
9242213f
EB
48592011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4860
4861 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
4862 forward scan as well.
4863
db8b22ef
TG
48642011-06-27 Tristan Gingold <gingold@adacore.com>
4865
4866 PR target/44241
4867 * config/vms/vms-protos.h: New file.
4868 * config/vms/vms-crtlmap.map: New file.
4869 * config/vms/vms.c: New file.
4870 * config/vms/make-crtlmap.awk: New file.
4871 * config/vms/vms-crtl.h: File removed.
4872 * config/vms/vms-crtl-64.h: File removed.
4873 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
4874 * config/alpha/vms64.h: Do not include vms-crtl-64.h
4875 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
4876 clear some builtins on VMS. Calls vms_patch_builtins.
4877 (avms_asm_output_external): Remove.
4878 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
4879 (struct crtl_name_spec): Remove
4880 (DO_CTRL_NAMES): Remove.
4881 * config/ia64/vms.h (struct crtl_name_spec): Remove
4882 (DO_CTRL_NAMES): Remove.
4883 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
4884 clear some builtins on VMS. Calls vms_patch_builtins.
4885 (ia64_asm_output_external): Remove DO_CRTL_NAME.
4886 * config/ia64/vms64.h: Do not include vms-crtl-64.h
0d5e0c1b 4887 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
db8b22ef 4888
b213221d
TG
48892011-06-27 Tristan Gingold <gingold@adacore.com>
4890
4891 * config/alpha/alpha.c (alpha_end_function): Always generate .end
4892 directive on VMS.
4893
157b9300
EB
48942011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4895
4896 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
4897 the function receives nonlocal gotos.
4898
ccbf5bb4
RG
48992011-06-27 Richard Guenther <rguenther@suse.de>
4900
4901 PR tree-optimization/49536
4902 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
4903 For non-scalar inner types use a scalar type according to
4904 the scalar inner mode.
4905
fe4cd14b
RG
49062011-06-27 Richard Guenther <rguenther@suse.de>
4907
4908 PR tree-optimization/49365
4909 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
4910
afc3f22f
RS
49112011-06-27 Richard Guenther <rguenther@suse.de>
4912
4913 PR tree-optimization/49169
4914 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
4915 the alignment of function decls.
4916
92590751 49172011-06-26 Iain Sandoe <iains@gcc.gnu.org>
a45a766b
IS
4918
4919 PR target/47997
4920 * config/darwin.c (darwin_mergeable_string_section): Place string
4921 constants in '.cstring' rather than '.const' when CF/NSStrings are
4922 active.
4923
605354f3
EB
49242011-06-26 Eric Botcazou <ebotcazou@adacore.com>
4925
4926 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
4927 (emit_save_register_window): Likewise.
4928 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
4929 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
4930 Swap back %o7/%i7 in register naming.
4931
0e9197f5
IS
49322011-06-25 Iain Sandoe <iains@gcc.gnu.org>
4933
4934 PR driver/49371
4935 * config/darwin.c (darwin_override_options): Improve warning when
4936 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
4937 is given with fpie/fPIE.
4938 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
4939 * config/darwin9.h (PIE_SPEC): New.
53461199 4940
605354f3 49412011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
53461199
BS
4942
4943 * timevar.c (timevar_print): Increase width for display of timevar
4944 name.
4945
f796c438
JJ
49462011-06-24 Jakub Jelinek <jakub@redhat.com>
4947
4948 PR c++/46400
4949 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
4950 instead of TYPE_CHAIN for chain_next for types.
4951
a7289eaf
RH
49522011-06-24 Richard Henderson <rth@redhat.com>
4953
4954 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
4955 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
4956 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
4957 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
4958 (sparc_flat_expand_prologue): Emit individual instructions
4959 instead of one of the above.
4960
c4b9a87e
ER
49612011-06-24 Easwaran Raman <eraman@google.com>
4962
4963 PR rtl-optimization/49429
4964 PR target/49454
4965 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
4966 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
4967 used to copy y into x.
4968 * calls.c (initialize_argument_information): Mark
4969 an argument addressable if it is passed by invisible reference.
4970 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
4971 if it is passed by reference.
4972
5ac6c59e
L
49732011-06-24 H.J. Lu <hongjiu.lu@intel.com>
4974
4975 PR rtl-optimization/49504
4976 * rtlanal.c (nonzero_bits1): Properly handle addition or
1f134bd6
L
4977 subtraction of a pointer in Pmode if pointers extend unsigned.
4978 (num_sign_bit_copies1): Likewise.
5ac6c59e 4979
b807e627
MJ
49802011-06-24 Martin Jambor <mjambor@suse.cz>
4981
4982 PR tree-optimizations/49516
4983 * tree-sra.c (sra_modify_assign): Choose the safe path for
4984 aggregate copies if we also did scalar replacements.
4985
9a1ea4b9
RR
49862011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4987
4988 PR target/49335
4989 * config/arm/predicates.md (add_operator): New.
0d5e0c1b 4990 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
9a1ea4b9 4991
949cfd0a
AK
49922011-06-24 Andi Kleen <ak@linux.intel.com>
4993
4994 * tree-sra.c (type_internals_preclude_sra_p): Add msg
4995 parameter. Split up ifs and report reason in *msg.
4996 (reject): Add.
4997 (find_var_candiate): Add msg variable.
4998 Split up ifs and report reason to reject.
4999 (find_param_candidates): Add msg variable.
5000 Pass msg to type_internals_preclude_sra_p.
5001
49e9c661 50022011-06-23 Jeff Law <law@redhat.com>
ad3577df 5003
b0c11403
JL
5004 PR middle-end/48770
5005 * reload.h (reload): Change to return a bool.
5006 * ira.c (ira): If requested by reload, run a fast DCE pass after
5007 reload has completed. Fix comment typo.
5008 * reload1.c (need_dce): New file scoped static.
5009 (reload): Set reload_completed here. Return whether or not a DCE
5010 pass after reload is needed.
5011 (delete_dead_insn): Set need_dce as needed.
5012
ad3577df
JL
5013 PR middle-end/49465
5014 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
5015 to detect threading through joiner block. If there was already
5016 an edge to the new target, then do not change the PHI nodes.
5017
7cf64710
JJ
50182011-06-23 Jakub Jelinek <jakub@redhat.com>
5019
5020 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
5021 get_pointer_alignment to see if base isn't sufficiently aligned.
5022
febb1302
JH
50232011-06-23 Jan Hubicka <jh@suse.cz>
5024
5025 PR tree-optimize/49373
5026 * tree-pass.h (all_late_ipa_passes): Declare.
5027 * cgraphunit.c (init_lowered_empty_function): Fix properties.
4a9206ce
EB
5028 (cgraph_optimize): Execute late passes; remove unreachable funcions
5029 after materialization.
5030 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
5031 LTOing.
febb1302
JH
5032 * passes.c (all_late_ipa_passes): Declare.
5033 (dump_passes, register_pass): Handle late ipa passes.
4a9206ce
EB
5034 (init_optimization_passes): Move ipa_pta to late passes; schedule
5035 fixup_cfg at beggining of all_passes.
febb1302
JH
5036 (apply_ipa_transforms): New function.
5037 (execute_one_pass): When doing simple ipa pass, apply all transforms.
5038
4c77620d
JM
50392011-06-23 Joseph Myers <joseph@codesourcery.com>
5040
5041 * params.c: Include common/common-target.h. Don't include tm.h.
5042 (lang_independent_params): Move from toplev.c.
5043 (global_init_params): New.
5044 * params.h (global_init_params): Declare.
5045 * target.def (default_params): Move to common-target.def.
5046 * toplev.c (lang_independent_options): Remove.
5047 (lang_independent_params): Move to params.c.
5048 (general_init): Use global_init_params.
5049 * common/common-target.def (option_default_params): Move from
5050 target.def.
5051 * common/config/ia64/ia64-common.c: Include params.h.
5052 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
5053 from ia64.c.
5054 * common/config/rs6000/rs6000-common.c: Include params.h.
5055 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
5056 from rs6000.c.
5057 * common/config/sh/sh-common.c: Include params.h.
5058 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
5059 from sh.c.
5060 * common/config/spu/spu-common.c: Include params.h.
5061 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
5062 from spu.c.
5063 * config/ia64/ia64.c (ia64_option_default_params,
5064 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
5065 * config/rs6000/rs6000.c (rs6000_option_default_params,
5066 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
5067 * config/sh/sh.c (sh_option_default_params,
5068 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
5069 * config/spu/spu.c (spu_option_default_params,
5070 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
5071 * Makefile.in (OBJS): Remove params.o.
5072 (OBJS-libcommon-target): Add params.o.
5073 (params.o, $(common_out_object_file)): Update dependencies.
5074 * doc/tm.texi: Regenerate.
5075
6aad1e38
AM
50762011-06-23 Alan Modra <amodra@gmail.com>
5077
5078 PR bootstrap/49383
5079 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
5080 invocation for 2011-06-09 changes.
5081
4fb489e7
JJ
50822011-06-22 Jakub Jelinek <jakub@redhat.com>
5083
fb79f500
JJ
5084 PR libgomp/49490
5085 * omp-low.c (expand_omp_for_static_nochunk): Only
0d5e0c1b
UB
5086 use n ceil/ nthreads size for the first n % nthreads threads in the
5087 team instead of all threads except for the last few ones which
fb79f500
JJ
5088 get less work or none at all.
5089
4fb489e7
JJ
5090 PR debug/49496
5091 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
5092 uses.
5093
9c7c9f10
RG
50942011-06-22 Richard Guenther <rguenther@suse.de>
5095
5096 PR tree-optimization/49493
5097 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
5098 Refer to the alias target of variables.
5099 (associate_varinfo_to_alias_1): Remove.
5100 (ipa_pta_execute): Do not associate aliases with anything.
5101 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
5102 (cgraph_function_node): Likewise.
5103 (cgraph_function_or_thunk_node): Likewise.
5104 (varpool_variable_node): Likewise.
5105
7cf13d1f
NS
51062011-06-22 Nathan Sidwell <nathan@codesourcery.com>
5107
0d5e0c1b 5108 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
7cf13d1f
NS
5109 * config.gcc (arm*-*-linux*): Default to gnu tls.
5110 (arm*-*-*): Add --with-tls option.
5111 (all_defaults): Add 'tls'.
5112
78a8eb4e
RH
51132011-06-22 Richard Henderson <rth@redhat.com>
5114
5115 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
5116 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
5117 (dwarf2out_frame_debug_cfa_window_save): Rename from
5118 dwarf2out_window_save; make static.
5119 * tree.h (dwarf2out_window_save): Don't declare.
5120
5121 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
5122 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
5123 (emit_save_register_window): Rename from gen_save_register_window;
5124 emit the insn and add REG_CFA_* notes.
5125 (sparc_expand_prologue): Update to match.
5126 * config/sparc/sparc.md (save_register_window_1): Simplify from
5127 save_register_window<P:mode>.
5128
3b4c46d7
L
51292011-06-22 H.J. Lu <hongjiu.lu@intel.com>
5130
5131 PR target/49497
5132 * config/i386/i386.md (*lea_general_2): Always allow SImode.
5133 (*lea_general_2_zext): Likewise.
5134 (imul to lea peepholes): Use const359_operand and check
5135 TARGET_PARTIAL_REG_STALL.
5136
5137 * config/i386/predicates.md (const359_operand): New.
5138
4399cf59
MM
51392011-06-22 Michael Matz <matz@suse.de>
5140
5141 * cgraphunit.c (assemble_thunk): Use correct return type.
5142
31a0c825 51432011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
0d5e0c1b 5144 Dmitry Melnik <dm@ispras.ru>
31a0c825
DP
5145
5146 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
5147 (neon_output_shift_immediate): Ditto.
5148 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
5149 prototype.
5150 (neon_output_shift_immediate): Ditto.
5151 * config/arm/neon.md (vashl<mode>3): Modified constraint.
5152 (vashr<mode>3_imm): New insn pattern.
5153 (vlshr<mode>3_imm): Ditto.
5154 (vashr<mode>3): Modified constraint.
5155 (vlshr<mode>3): Ditto.
5156 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
5157 predicate.
5158 (imm_for_neon_rshift_operand): Ditto.
5159 (imm_lshift_or_reg_neon): Ditto.
5160 (imm_rshift_or_reg_neon): Ditto.
5161
5162 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
5163
ddb555ed
JJ
51642011-06-22 Jakub Jelinek <jakub@redhat.com>
5165
36dc1a88
JJ
5166 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
5167 builtin calls even if likelyvalue is not CONSTANT.
5168 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
5169 Return get_value_for_expr of first operand
5170 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
5171 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
5172 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
5173 their non-checking counterparts.
5174 (call_may_clobber_ref_p_1): Likewise.
5175 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
5176 like their non-checking counterparts.
5177 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5178 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
5179 like their non-checking counterparts.
5180 (find_func_clobbers): Likewise.
5181 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
5182 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
5183
41cd4957
JJ
5184 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
5185 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
5186 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
5187 of base type reference as argument.
5188 (resolve_addr_in_expr): Likewise. Fix keep computation.
5189 (convert_descriptor_to_signed): Renamed to...
0d5e0c1b
UB
5190 (convert_descriptor_to_mode): ... this. For wider types convert to
5191 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
41cd4957
JJ
5192 (typed_binop): New function.
5193 (scompare_loc_descriptor, ucompare_loc_descriptor,
5194 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
5195 default to unsigned type instead of signed.
5196
ddb555ed
JJ
5197 PR debug/47858
5198 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
5199 (gimple_build_debug_source_bind_stat): New prototype.
5200 (gimple_build_debug_source_bind): Define.
5201 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
5202 gimple_debug_source_bind_get_value,
5203 gimple_debug_source_bind_get_value_ptr,
5204 gimple_debug_source_bind_set_var,
5205 gimple_debug_source_bind_set_value): New inlines.
5206 * gimple.c (gimple_build_debug_source_bind_stat): New function.
5207 * gimple-pretty-print.c (dump_gimple_debug): Handle
5208 GIMPLE_DEBUG_SOURCE_BIND.
5209 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
5210 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
5211 * tree-parloops.c (eliminate_local_variables,
5212 separate_decls_in_region): Likewise.
5213 (separate_decls_in_region_debug): Renamed from
5214 separate_decls_in_region_debug_bind. Handle
5215 gimple_debug_source_bind_p.
5216 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
5217 prototypes.
5218 (DECL_HAS_DEBUG_ARGS_P): Define.
5219 (struct tree_function_decl): Add has_debug_args_flag field.
5220 * tree.c (debug_args_for_decl): New variable.
5221 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
5222 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
5223 (rewrite_debug_stmt_uses): New function.
5224 (rewrite_stmt): Use it to rewrite debug stmt uses.
5225 * rtl.def (DEBUG_PARAMETER_REF): New.
5226 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
5227 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
5228 DEBUG_PARAMETER_REF.
5229 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
5230 * print-rtl.c (print_rtx): Likewise.
5231 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
5232 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
5233 debug stmts in the first bb.
5234 * tree-inline.c (remap_ssa_name): If remapping default def
5235 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
5236 a source bind debug stmt.
5237 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
5238 (maybe_move_debug_stmts_to_successors): Likewise.
5239 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
5240 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
5241 debug args vector from old_decl to new_decl.
5242 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
5243 or modified parameters, add debug bind stmts before call
0d5e0c1b 5244 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
ddb555ed
JJ
5245 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
5246 on DECL_DEBUG_EXPRs from debug args vector.
5247 (expand_debug_source_expr): New function.
5248 (expand_debug_locations): Use it for source bind insns.
5249 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
5250 * var-tracking.c (prepare_call_arguments): Add debug args
5251 to call_arguments if any.
5252 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
0d5e0c1b
UB
5253 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
5254 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
ddb555ed
JJ
5255 (get_ref_die_offset, parameter_ref_descriptor): New functions.
5256 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
5257 (gen_subprogram_die): Handle parameters identified by
5258 DEBUG_PARAMETER_REF.
5259
ccdc2164
NS
52602011-06-22 Nathan Sidwell <nathan@codesourcery.com>
5261
5262 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
5263 * doc/install.texi (Configuration): Document --with-tls.
ccdc2164
NS
5264 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
5265 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
5266 (arm_tls_descseq_addr): New.
5267 (legitimize_tls_address): Add tlsdesc support.
5268 (arm_cannot_copy_insn_p): Check for tlscall.
5269 (arm_emit_tls_decoration): Likewise.
5270 * config/arm/arm.h (TARGET_GNU2_TLS): New.
5271 (OPTION_DEFAULT_SPECS): Add with-tls support.
5272 * config/arm/arm.md (R1_REGNUM): Define.
5273 (tlscall): New.
5274 * config/arm/arm.opt (tls_type): New enumeration type and values.
5275 (mtls-dialect): New switch.
5276 * config/arm/arm-opts.h (enum tls_type): New.
5277
70e41a6a
NP
52782011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
5279
5280 * attribs.c (register_attribute): Added assert to check that all
5281 attribute specs are registered with a name that is not empty and
5282 does not start with '_'.
5283 (decl_attributes): Avoid the lookup of the "naked" attribute spec
5284 if the function has no attributes.
5285 * tree.c (is_attribute_with_length_p): Removed.
5286 (is_attribute_p): Removed.
0d5e0c1b 5287 (private_is_attribute_p): New.
70e41a6a
NP
5288 (private_lookup_attribute): New.
5289 (lookup_attribute): Removed.
5290 (lookup_ident_attribute): New.
5291 (remove_attribute): Require the first argument to be in the form
5292 'text', not '__text__'. Updated asserts.
5293 (merge_attributes): Use lookup_ident_attributes instead of
5294 lookup_attribute.
5295 (merge_dllimport_decl_attributes): Use remove_attribute.
5296 (attribute_list_contained): Likewise.
5297 (attribute_list_equal): Immediately return 1 if the arguments are
5298 identical pointers.
5299 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
5300 'int'. Require the first argument to be in the form 'text', not
5301 '__text__'. Require the second argument to be an identifier.
5302 (lookup_attribute): Made inline. Require the first argument to be
5303 in the form 'text', not '__text__'.
5304 (private_is_attribute_p, private_lookup_attribute): New.
5305 Updated comments.
0d5e0c1b 5306
e0a8ecf2
AM
53072011-06-21 Andrew MacLeod <amacleod@redhat.com>
5308
5309 * builtins.c: Add sync_ or SYNC__ to builtin names.
5310 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
5311 * omp-low.c: Add sync_ or SYNC__ to builtin names.
5312
663827d3 53132011-06-21 Georg-Johann Lay <avr@gjlay.de>
637c11bd 5314
663827d3
GJL
5315 PR target/33049
5316 * config/avr/avr.md (extzv): New expander.
5317 (*extzv): New insn.
5318 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
5319 * config/avr/constraints.md (C04): New constraint.
5320 * doc/md.texi (Machine Constraints): Document it.
5321
146aef0b
JJ
53222011-06-21 Jakub Jelinek <jakub@redhat.com>
5323
5324 PR middle-end/49489
5325 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
5326 unsignedp argument instead of 1 for clrsb_optab.
5327 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
5328 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
5329 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
5330 * optabs.c (widen_leading): Call widen_operand and expand_unop
5331 with 0 as unsignedp argument instead of 1 for clrsb_optab.
637c11bd 5332 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
146aef0b 5333
c0503294
GJL
53342011-06-21 Georg-Johann Lay <avr@gjlay.de>
5335
5336 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
5337
3801c801
BS
53382011-06-21 Bernd Schmidt <bernds@codesourcery.com>
5339
0bddee8e
BS
5340 * gensupport.c (add_define_attr): New static function.
5341 (is_predicable): Allow multi-alternative lists for the "predicable"
5342 attribute.
5343 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
5344 (process_one_cond_exec): Call alter_attrs_for_insn.
5345 * doc/md.texi (Defining Attributes): Mention some standard names.
5346 (Conditional Execution): Update documentation for "predicable".
5347
3801c801
BS
5348 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
5349 __builtin_clrsbll): Document.
5350 * doc/rtl.texi (clrsb): New entry.
5351 * optabs.c (widen_leading): Renamed from widen_clz. New argument
5352 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
5353 (expand_unop): Handle clrsb_optab.
5354 (init_optabs): Initialize it.
5355 * optabs.h (enum optab_index): New entry OTI_clrsb.
5356 (clrsb_optab): Define.
5357 * genopinit.c (optabs): Add an entry for it.
5358 * builtins.c (expand_builtin): Handle clrsb builtin functions.
5359 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
5360 BUILT_IN_CLRSBLL): New.
5361 * rtl.def (CLRSB): New code.
5362 * dwarf2out.c (mem_loc_descriptor): Handle it.
5363 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
5364 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
5365 and popcount.
5366 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
5367 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
5368 (__ctzDI2): Move declaration.
5369 * config/bfin/bfin.md (clrsbsi2): New expander.
5370 (signbitssi2): Use the CLRSB rtx.
5371 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
5372 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
5373
55f01229
RG
53742011-06-21 Richard Guenther <rguenther@suse.de>
5375
637c11bd 5376 * ipa-inline-transform.c (inline_transform): Fix previous change.
55f01229 5377
5181cd6a
IR
53782011-06-21 Ira Rosen <ira.rosen@linaro.org>
5379
5380 PR tree-optimization/49478
5381 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
5382 with constant operand.
5383
e4ee3d70
RG
53842011-06-21 Richard Guenther <rguenther@suse.de>
5385
5386 * ipa-inline-transform.c (inline_transform): Fix typo.
637c11bd 5387
7b7ec6c5
RG
53882011-06-21 Richard Guenther <rguenther@suse.de>
5389
5390 PR tree-optimization/49483
5391 * tree-vect-stmts.c (vectorizable_assignment): Also handle
5392 VIEW_CONVERT_EXPR conversions.
5393
1b916ca6
JM
53942011-06-21 Joseph Myers <joseph@codesourcery.com>
5395
5396 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
5397 * config/avr/avr-tables.opt: New file (generated).
5398 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
5399 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
5400 avr-mcus.def.
5401 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
5402 (avr_option_override): Don't process -mmcu= argument here. Set
5403 avr_current_device using avr_mcu_index.
637c11bd 5404 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
1b916ca6
JM
5405 * config/avr/avr.opt (mmcu=): Use Enum.
5406 * config/avr/t-avr (avr-devices.o): Update dependencies.
5407 ($(srcdir)/config/avr/avr-tables.opt): New.
5408 * target.def (help): Remove.
5409 * doc/tm.texi.in (TARGET_HELP): Remove.
5410 * doc/tm.texi: Regenerate.
5411 * opts.c: Don't include target.h.
5412 (common_handle_option): Don't call targetm.help.
5413 * system.h (TARGET_HELP): Poison.
5414 * Makefile.in (opts.o): Update dependencies.
5415
7ecfa34f
RO
54162011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5417
5418 * config/usegld.h: New file.
5419 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
5420 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
637c11bd 5421 (LIB_SPEC): Likewise. Search /lib.
7ecfa34f
RO
5422 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
5423 (RDYNAMIC_SPEC): Handle GNU ld.
637c11bd
UB
5424 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
5425 Define.
7ecfa34f
RO
5426 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
5427 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
5428 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
5429 (STACK_CHECK_STATIC_BUILTIN): Define.
5430 * config/sol2.opt (compat-bsd): Remove.
5431 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
5432 * config/sol2-bi.h: New file.
5433 * config/sol2-gld.h: Remove.
5434 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
5435 (NO_DBX_BNSYM_ENSYM): Remove.
5436 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
5437 (STACK_CHECK_STATIC_BUILTIN): Remove.
5438 Test USE_GLD instead of TARGET_GNU_LD.
5439 * config/i386/sol2-10.h: Rename to ...
5440 * config/i386/sol2-bi.h .. this.
5441 (SUBTARGET_EXTRA_SPECS): Redefine.
5442 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
5443 (MULTILIB_DEFAULTS): Remove.
5444 (DEFAULT_ARCH32_P): Define.
5445 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
5446 (ARCH64_SUBDIR): Define.
5447 Test USE_GLD instead of TARGET_GNU_LD.
5448 (I386_EMULATION): Rename to ...
5449 (ARCH32_EMULATION): ... this.
5450 (X86_64_EMULATION): Rename to ...
5451 (ARCH64_EMULATION): ... this.
5452 (TARGET_LD_EMULATION): Remove.
5453 (LINK_ARCH_SPEC): Remove.
5454 * config/i386/sol2-gas.h: Remove.
5455 * config/i386/t-sol2-10: Rename to ...
5456 * config/i386/t-sol2-64: ... this.
5457 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
5458 (AS_SPARC64_FLAG): Define.
5459 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
5460 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
5461 depending on TARGET_CPU_DEFAULT.
5462 (CPP_CPU_SPEC): Redefine.
5463 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
5464 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
5465 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
5466 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
5467 ASM_ARCH_DEFAULT_SPEC): Redefine.
5468 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
5469 LINK_ARCH_DEFAULT_SPEC.
5470 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
5471 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
5472 (ARCH64_SUBDIR): Define.
5473 (LINK_ARCH64_SPEC): Redefine.
5474 (CC1_SPEC): Redefine.
5475 (OPTION_DEFAULT_SPECS): Redefine.
5476 (MULTILIB_DEFAULTS): Define.
5477 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
5478 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
5479 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
5480 (NO_DBX_BNSYM_ENSYM): Remove.
5481 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
5482 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
5483 (TARGET_ASM_NAMED_SECTION): Likewise.
5484 (STACK_CHECK_STATIC_BUILTIN): Remove.
5485 * config/sparc/sol2-bi.h: Remove.
5486 * config/sparc/sol2-gas-bi.h: Remove.
5487 * config/sparc/sol2-gas.h: Remove.
5488 * config/sparc/sol2-gld-bi.h: Remove.
5489 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
5490 common parts ...
5491 (*-*-solaris2*): ... here.
5492
4b583c43 54932011-06-21 Christian Bruel <christian.bruel@st.com>
637c11bd 5494
4b583c43 5495 PR other/43564
637c11bd
UB
5496 * ipa-inline.c (can_inline_edge_p): Check
5497 !DECL_DISREGARD_INLINE_LIMITS.
5498
3bb556ad 54992011-06-21 Christian Bruel <christian.bruel@st.com>
637c11bd 5500
3bb556ad
CB
5501 PR middle-end/49139
5502 * cgraphunit.c (process_function_and_variable_attributes): warn when
5503 always_inline functions that are not inline.
637c11bd
UB
5504 * ipa-inline-transform.c (inline_transform): Always call
5505 optimize_inline.
5506 * tree-inline.c (tree_inlinable_function_p): Use error instead
5507 of sorry.
3bb556ad 5508 (expand_call_inline): Likewise.
637c11bd 5509
f1ee724c
JJ
55102011-06-21 Jakub Jelinek <jakub@redhat.com>
5511
5512 * Makefile.in (dg_target_exps): Set.
5513 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
5514 instead of 7, try to divide it more evenly.
5515
55162011-06-20 Changpeng Fang <changpeng.fang@amd.com>
97ef5ae6 5517
931050d0 5518 PR target/49089
97ef5ae6
CF
5519 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
5520 (avx256_split_unaligned_store): New definition.
5521 (ix86_option_override_internal): Enable avx256 unaligned load/store
5522 splitting only when avx256_split_unaligned_load/store is set.
5523
998c75b6
BS
55242011-06-20 Bernd Schmidt <bernds@codesourcery.com>
5525
5526 * regrename.c (scan_rtx_reg): Handle the case where we write to an
5527 open chain in a smaller mode without failing the entire block.
5528
3a769784
AM
55292011-06-21 Alan Modra <amodra@gmail.com>
5530
5531 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
5532 CONST high part large-toc address.
5533 (rs6000_tls_referenced_p): Make static.
5534 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
5535
c2954af9
RR
55362011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5537
5538 PR target/49385
5539 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
5540 one of the operands is a register.
5541
a95015b6
KT
55422011-06-20 Kai Tietz <ktietz@redhat.com>
5543
637c11bd
UB
5544 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
5545 operations in combination with binary and.
a95015b6 5546
49a30d00
BS
55472011-06-20 Bernd Schmidt <bernds@codesourcery.com>
5548
5549 * regrename.c (do_replace): Don't update notes.
5550
3bae1d98
AM
55512011-06-20 Alan Modra <amodra@gmail.com>
5552
5553 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
5554 of toc-relative address in CONST.
5555 (rs6000_delegitimize_address): Recognize changed address.
5556 (rs6000_legitimize_reload_address): Likewise.
5557 (rs6000_emit_move): Don't force these constants to memory.
5558 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
5559 toc-relative address in CONST.
5560 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
5561 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
5562
10937b0c
L
55632011-06-18 H.J. Lu <hongjiu.lu@intel.com>
5564
637c11bd 5565 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
10937b0c
L
5566 (count_trailing_zeros): Likewise.
5567
0c587260
L
55682011-06-18 H.J. Lu <hongjiu.lu@intel.com>
5569
5570 PR other/49325
5571 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
5572 .init_array can be used with .ctors on targets.
5573 * configure: Regenerated.
5574
c020c92b
EB
55752011-06-18 Eric Botcazou <ebotcazou@adacore.com>
5576
5577 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
5578 if the element type is volatile.
5579
cd35bcf7
JH
55802011-06-18 Jan Hubicka <jh@suse.cz>
5581
5582 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
5583 extra name aliases.
5584 (lto_symtab_resolve_can_prevail_p): Likewise.
5585 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
5586 * cgraphbuild.c (record_reference): Remove extra body alias code.
5587 (mark_load): Likewise.
5588 (mark_store): Likewise.
5589 * cgraph.h (varpool_node): Remove extra_name filed;
5590 add alias_of and extraname_alias.
5591 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
5592 (varpool_alias_aliased_node): New inline function.
5593 (varpool_variable_node): New function.
5594 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
5595 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
5596 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
5597 (input_varpool_node): Likewise.
5598 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
5599 (varpool_externally_visible_p): Remove extra body alias code.
5600 (function_and_variable_visibility): Likewise.
5601 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
5602 (ipa_pta_execute): Use it.
5603 * varpool.c (varpool_remove_node): Remove extra name alias code.
5604 (varpool_mark_needed_node): Likewise.
5605 (varpool_analyze_pending_decls): Analyze aliases.
5606 (assemble_aliases): New functoin.
5607 (varpool_assemble_decl): Use it.
5608 (varpool_create_variable_alias): New function.
5609 (varpool_extra_name_alias): Rewrite.
5610 (varpool_for_node_and_aliases): New function.
5611
c96b4102
JJ
56122011-06-18 Jakub Jelinek <jakub@redhat.com>
5613
5614 PR target/49411
5615 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
5616 last_arg_constant and last argument doesn't match its predicate,
5617 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
5618 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
5619 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
5620 spelling of error message.
5621 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
5622 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
5623 const_0_to_255_operand instead of const_int_operand.
5624
5625 Revert:
5626 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5627
5628 * config/i386/sse.md (blendbits): Remove mode attribute.
5629 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
5630 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
5631 Check integer value of operand 3 in insn constraint.
5632
9a2091cd
HPN
56332011-06-17 Hans-Peter Nilsson <hp@axis.com>
5634
5635 PR rtl-optimization/48542
5636 * reload.c (find_equiv_reg): Stop looking when finding a
5637 setjmp-type call.
5638 * reload1.c (reload_as_needed): Invalidate all reload
5639 registers when crossing a setjmp-type call.
5640
361b51c0
JL
56412011-06-16 Jeff Law <law@redhat.com>
5642
5643 * tree-ssa-threadupdate.c (struct redirection_data): New field
5644 intermediate_edge.
5645 (THREAD_TARGET2): Define.
637c11bd 5646 (redirection_data_eq): Also check that the intermediate edge is equal.
361b51c0
JL
5647 (lookup_redirection_data): Drop useless argument. Extract the
5648 outgoing_edge and intermediate edge from E. Callers updated.
5649 (copy_phi_args, update_destination_phis): New functions.
5650 (fix_duplicate_block_edges): Likewise.
5651 (create_edge_and_update_destination_phis): Duplicate all the edges
5652 hung off e->aux. Use copy_phi_args.
5653 (create_duplicates): Use fix_duplicate_block_edges.
5654 (fixup_template_block): Likewise.
5655 (redirect_edges): If necessary, redirect the joiner block's incoming
5656 edge to the duplicate of the joiner block.
5657 (thread_block): Don't muck up loops when threading through a joiner
5658 block.
637c11bd 5659 (thread_through_loop_header): Handle threading through a joiner block.
361b51c0
JL
5660 (mark_threaded_blocks, register_jump_thread): Likewise.
5661 * tree-flow.h (register_jump_thread): Add new argument. Callers
5662 updated.
5663 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
5664 (thread_across_edge): Handle threading through a joiner block.
637c11bd 5665
ee460e75
MJ
56662011-06-16 Martin Jambor <mjambor@suse.cz>
5667
5668 PR tree-optimization/49343
5669 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
5670 calculate offset, provide 2nd operand for the new COMPONENT_REF.
5671
a285ba2e
IS
56722011-06-16 Iain Sandoe <iains@gcc.gnu.org>
5673
5674 * config/darwin-protos.h (machopic_select_rtx_section): Move to
5675 inside RTX_CODE ifdef.
5676
0703f020
TV
56772011-06-16 Tom de Vries <tom@codesourcery.com>
5678
5679 PR target/45098
637c11bd
UB
5680 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
5681 Disallow NULL pointer for pointer arithmetic.
0703f020 5682
900c07da
RR
56832011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5684
5685 PR target/49398
5686 Revert.
5687 2011-06-10 Wei Guozhi <carrot@google.com>
5688
5689 PR target/45335
5690 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
5691 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
5692 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
5693 related peephole2.
5694 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
5695 related peephole2.
5696 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
5697 (arm_legitimate_ldrd_p): New prototype.
5698 (arm_output_ldrd): New prototype.
5699 * config/arm/arm.c (arm_check_ldrd_operands): New function.
5700 (arm_legitimate_ldrd_p): New function.
5701 (arm_output_ldrd): New function.
5702
c020c92b 57032011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
d5cc9181
JR
5704
5705 PR middle-end/46500
5706 * doc/tm.texi.in: Update Copyright date.
5707 * doc/tm.texi: Regenerate.
5708 * targhooks.c (default_setup_incoming_varargs): Replace
5709 CUMULATIVE_ARGS* argument type with cumulative_args_t.
5710 (default_pretend_outgoing_varargs_named): Likewise.
5711 (hook_pass_by_reference_must_pass_in_stack): Likewise.
5712 (hook_callee_copies_named): Likewise.
5713 (default_function_arg_advance): Likewise.
5714 (default_function_arg): Likewise.
5715 (default_function_incoming_arg): Likewise.
5716 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
5717 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
5718 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
5719 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
5720 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
5721 * targhooks.h (default_setup_incoming_varargs): Likewise.
5722 (default_pretend_outgoing_varargs_named): Likewise.
5723 (hook_pass_by_reference_must_pass_in_stack): Likewise.
5724 (hook_callee_copies_named): Likewise.
5725 (default_function_arg_advance): Likewise.
5726 (default_function_arg): Likewise.
5727 (default_function_incoming_arg): Likewise.
5728 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
5729 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
5730 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
5731 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
5732 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
5733 * target.def (pass_by_reference): Likewise.
5734 (setup_incoming_varargs, strict_argument_naming): Likewise.
5735 (pretend_outgoing_varargs_named, callee_copies): Likewise.
5736 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
5737 (function_incoming_arg): Likewise.
5738 * target.h: Don't include "tm.h" .
5739 (cumulative_args_t): New typedef.
5740 [GCC_TM_H] (get_cumulative_args): New static inline function.
5741 [GCC_TM_H] (pack_cumulative_args): Likewise.
5742 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
5743 argument type with cumulative_args_t.
5744 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
5745 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
5746 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
5747 (frv_arg_partial_bytes, frv_function_arg): Likewise.
5748 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
5749 (frv_function_arg_1): Likewise.
5750 * config/s390/s390.c (s390_pass_by_reference): Likewise.
5751 (s390_function_arg_advance, s390_function_arg): Likewise.
5752 * config/m32c/m32c.c (m32c_function_arg): Likewise.
5753 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
5754 (m32c_strict_argument_naming): Likewise.
5755 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
5756 (spu_function_arg_advance): Likewise.
5757 (spu_setup_incoming_varargs): Likewise. Make static.
5758 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
5759 Remove prototype.
5760 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
5761 CUMULATIVE_ARGS* argument type with cumulative_args_t.
5762 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
5763 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
5764 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
5765 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
5766 (mep_pass_by_reference, mep_function_arg): Likewise.
5767 (mep_function_arg_advance): Likewise.
5768 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
5769 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
5770 (m32r_function_arg, m32r_function_arg_advance): Likewise.
5771 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
5772 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
5773 (ix86_function_arg, ix86_pass_by_reference): Likewise.
5774 (ix86_setup_incoming_varargs): Likewise.
5775 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
5776 (sh_strict_argument_naming): Likewise.
5777 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
5778 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
5779 (sh_function_arg_advance, sh_function_arg): Likewise.
5780 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
5781 (pdp11_function_arg_advance): Likewise.
5782 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
5783 Likewise.
5784 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
5785 * config/avr/avr.c (avr_function_arg): Likewise.
5786 (avr_function_arg_advance): Likewise.
5787 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
5788 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
5789 (xtensa_function_arg_1): Likewise.
637c11bd
UB
5790 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
5791 Likewise.
d5cc9181
JR
5792 (xstormy16_function_arg): Likewise.
5793 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
5794 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
5795 (fr30_function_arg_advance): Likewise.
5796 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
5797 (lm32_function_arg, lm32_function_arg_advance): Likewise.
5798 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
5799 (moxie_function_arg, moxie_function_arg_advance): Likewise.
5800 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
5801 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
5802 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
5803 (cris_function_arg, cris_function_incoming_arg): Likewise.
5804 (cris_function_arg_advance, cris_function_arg_1): Likewise.
5805 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
5806 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
5807 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
5808 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
5809 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
5810 (mn10300_arg_partial_bytes): Likewise.
5811 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
5812 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
5813 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
5814 (ia64_function_arg_1): Likewise.
5815 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
5816 (m68k_function_arg): Likewise.
5817 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
5818 (rs6000_function_arg, setup_incoming_varargs): Likewise.
5819 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
5820 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
5821 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
5822 (picochip_arg_advance): Likewise.
5823 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
5824 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
5825 (mcore_function_arg_advance): Likewise.
5826 * config/score/score.c (score_pass_by_reference): Likewise.
5827 (score_function_arg_advance): Likewise.
5828 (score_arg_partial_bytes): Likewise. Make static.
5829 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
5830 * config/arm/arm.c (arm_arg_partial_bytes): Replace
5831 CUMULATIVE_ARGS* argument type with cumulative_args_t.
5832 (arm_function_arg, arm_function_arg_advance): Likewise.
5833 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
5834 * config/pa/pa.c (pa_pass_by_reference): Likewise.
5835 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
5836 (pa_function_arg): Likewise.
5837 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
5838 (mips_function_arg, mips_function_arg_advance): Likewise.
5839 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
5840 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
5841 * config/vax/vax.c (vax_function_arg): Likewise.
5842 (vax_function_arg_advance): Likewise.
5843 * config/h8300/h8300.c (h8300_function_arg): Likewise.
5844 (h8300_function_arg_advance): Likewise.
5845 * config/v850/v850.c (v850_pass_by_reference): Likewise.
5846 (v850_strict_argument_naming, v850_function_arg): Likewise.
5847 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
5848 (v850_setup_incoming_varargs): Likewise.
5849 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
5850 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
5851 (mmix_function_arg, mmix_pass_by_reference): Likewise.
5852 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
5853 with const void *.
5854 * config/bfin/bfin.c (setup_incoming_varargs): Replace
5855 CUMULATIVE_ARGS* argument type with cumulative_args_t.
5856 (bfin_function_arg_advance, bfin_function_arg): Likewise.
5857 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
5858 * calls.c (emit_call_1): Change type of args_so_far to
5859 cumulative_args_t. Changed all callers.
5860 (initialize_argument_information): Likewise.
5861 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
5862 * dse.c (get_call_args): Likewise.
5863 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
5864 * function.c (pass_by_reference, reference_callee_copied): Likewise.
5865 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
5866 New member args_so_far_v. Changed all users.
5867 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
5868 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
5869 * config/mips/mips.c (mips_output_args_xfer): Likewise.
5870 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
5871 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
637c11bd
UB
5872 * config/microblaze/microblaze.c (microblaze_expand_prologue):
5873 Likewise.
d5cc9181
JR
5874 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
5875 m32r_pass_by_reference.
5876
51312233
IR
58772011-06-16 Ira Rosen <ira.rosen@linaro.org>
5878
5879 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
5880 argument to be a VEC of statements.
637c11bd
UB
5881 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
5882 assert that pattern statements have to have their vector type set.
51312233
IR
5883 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
5884 Change the first argument to be a VEC of statements. Update
5885 documentation.
5886 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
5887 (vect_handle_widen_mult_by_const): New function.
637c11bd
UB
5888 (vect_recog_widen_mult_pattern): Change the first argument to be a
5889 VEC of statements. Update documentation. Check that the constant is
5890 INTEGER_CST. Support multiplication by a constant that fits an
5891 intermediate type - call vect_handle_widen_mult_by_const.
51312233
IR
5892 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
5893 call. Handle additional pattern statements if necessary.
5894
fd4df33d
NC
58952011-06-16 Nick Clifton <nickc@redhat.com>
5896
5897 PR target/49427
5898 * config.gcc: Set cpu_type to v850 for any V850 architecture.
5899 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
5900 md_file, extra_modes, out_file and extra_options are these are all
5901 deduced from cpu_type.
5902
fbd05da0
GJL
59032011-06-16 Georg-Johann Lay <avr@gjlay.de>
5904
5905 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
5906 truncation mask to 63.
5907
0ad8bb3b
GJL
59082011-06-16 Georg-Johann Lay <avr@gjlay.de>
5909
5910 PR target/49313
5911 PR target/29524
5912 * longlong.h: Add AVR support:
5913 (count_leading_zeros): New macro.
5914 (count_trailing_zeros): New macro.
5915 (COUNT_LEADING_ZEROS_0): New macro.
637c11bd
UB
5916 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
5917 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
5918 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
5919 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
0ad8bb3b
GJL
5920 (LIB2FUNCS_EXCLUDE): Add _clz.
5921 * config/avr/libgcc.S (XCALL): Move up in file.
5922 (XJMP): New C Macro.
5923 (DEFUN): New asm macro.
5924 (ENDF): New asm macro.
5925 (__ffssi2): New function.
5926 (__ffshi2): New function.
5927 (__loop_ffsqi2): New function.
5928 (__ctzsi2): New function.
5929 (__ctzhi2): New function.
5930 (__clzdi2): New function.
5931 (__clzsi2): New function.
5932 (__clzhi2): New function.
5933 (__paritydi2): New function.
5934 (__paritysi2): New function.
5935 (__parityhi2): New function.
59c1e10b 5936 (__parityqi2): New function.
0ad8bb3b
GJL
5937 (__popcounthi2): New function.
5938 (__popcountsi2): New function.
5939 (__popcountdi2): New function.
5940 (__popcountqi2): New function.
5941 (__bswapsi2): New function.
5942 (__bswapdi2): New function.
5943 (__ashldi3): New function.
5944 (__ashrdi3): New function.
5945 (__lshrdi3): New function.
5946 Fix suspicous lines.
5947
12430896
RG
59482011-06-16 Richard Guenther <rguenther@suse.de>
5949
5950 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
5951 the same as x != 0.
637c11bd
UB
5952 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
5953 to (bool) X & 1.
12430896
RG
5954 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
5955 equality compares against zero for the lower bit.
5956
09302442
JJ
59572011-06-16 Jakub Jelinek <jakub@redhat.com>
5958
5959 PR tree-optimization/49419
5960 * tree-vrp.c (execute_vrp): Call init_range_assertions
5961 before estimate_numbers_of_iterations, call
5962 free_number_of_iterations_estimates before calling
5963 remove_range_assertions.
5964
81c41166
RE
59652011-06-16 Revital Eres <revital.eres@linaro.org>
5966
5967 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
5968 (struct partial_schedule): Add rows_length field.
5969 (verify_partial_schedule): Check rows_length.
5970 (ps_insert_empty_row): Handle rows_length.
5971 (create_partial_schedule): Likewise.
5972 (free_partial_schedule): Likewise.
5973 (reset_partial_schedule): Likewise.
5974 (create_ps_insn): Remove rest_count argument.
5975 (remove_node_from_ps): Update rows_length.
5976 (add_node_to_ps): Update rows_length and call create_ps_insn
5977 without passing row_rest_count.
5978 (rotate_partial_schedule): Update rows_length.
5979
d24dc7b3
RE
59802011-06-16 Revital Eres <revital.eres@linaro.org>
5981
5982 * ddg.c (add_intra_loop_mem_dep): New function.
5983 (build_intra_loop_deps): Call it.
5984
361b51c0 59852011-06-13 Jeff Law <law@redhat.com>
2098e438
JL
5986
5987 * df-problems.c (df_lr_local_compute): Manually CSE
5988 PIC_OFFSET_TABLE_REGNUM.
5989 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
5990 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
5991
85ce9375
JH
59922011-06-13 Jan Hubicka <jh@suse.cz>
5993
5994 * cgraphunit.c (handle_alias_pairs): New function.
5995 (cgraph_finalize_compilation_unit): Use it.
5996 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
5997 as externally visible.
5998
a577c405
RG
59992011-06-15 Richard Guenther <rguenther@suse.de>
6000
6001 * expr.c (expand_expr_real_2): Reduce all integral types to
6002 bitfield precision.
6003 (expand_expr_real_1): Likewise.
6004
93536c97
MJ
60052011-06-15 Martin Jambor <mjambor@suse.cz>
6006
6007 PR tree-optimization/48613
6008 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
6009 ipa_node_params_vector is NULL.
fd4df33d 6010
ba45cfc4
JJ
60112011-06-15 Jakub Jelinek <jakub@redhat.com>
6012
6013 PR debug/49382
6014 * dwarf2out.c (dw_loc_list_node): Add force field.
637c11bd
UB
6015 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
6016 location in the list, even if it is modified before first real insn.
ba45cfc4 6017 (output_loc_list): Emit empty ranges with force flag set.
637c11bd 6018 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
ba45cfc4 6019
6fc5966f
AM
60202011-06-15 Alexander Monakov <amonakov@ispras.ru>
6021
6022 PR target/49349
6023 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
6024 (fence_to_rewind). Use it to notice when bookkeeping will be placed
6025 above a fence. Update comments.
6026 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
6027 placed just above it. Do not allow NULL place_to_insert.
6028
9d5e7640
IR
60292011-06-15 Ira Rosen <ira.rosen@linaro.org>
6030
6031 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
6032 (slpeel_tree_peel_loop_to_edge): Don't call
6033 remove_dead_stmts_from_loop.
6034 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
6035 remove irrelevant pattern statements. For irrelevant statements
6036 check if it is the last statement of a detected pattern, use
6037 corresponding pattern statement instead.
6038 (destroy_loop_vec_info): No need to remove pattern statements,
6039 only free stmt_vec_info.
6040 (vect_transform_loop): For irrelevant statements check if it is
6041 the last statement of a detected pattern, use corresponding
6042 pattern statement instead.
6043 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
6044 pattern statements. Set basic block for the new statement.
6045 (vect_pattern_recog): Update documentation.
6046 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
6047 operands of pattern statements.
6048 (vectorizable_call): Fix printing. In case of a pattern statement
6049 use the lhs of the original statement when creating a dummy
6050 statement to replace the original call.
6051 (vect_analyze_stmt): For irrelevant statements check if it is
6052 the last statement of a detected pattern, use corresponding
6053 pattern statement instead.
6054 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
6055 statements use gsi of the original statement.
6056
677f3fa8
JM
60572011-06-14 Joseph Myers <joseph@codesourcery.com>
6058
6059 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
6060 common/common-target-def.h.
6061 * target.def (default_target_flags, handle_option,
6062 supports_split_stack, optimization_table, init_struct,
6063 except_unwind_info, unwind_tables_default, have_named_sections):
6064 Move to common/common-target.def.
6065 * target.h (enum opt_levels, struct default_options): Move to
6066 common/common-target.h.
6067 * targhooks.c (default_except_unwind_info,
6068 dwarf2_except_unwind_info, sjlj_except_unwind_info,
6069 default_target_handle_option, empty_optimization_table): Move to
6070 common/common-targhooks.c.
6071 * targhooks.h (default_except_unwind_info,
6072 dwarf2_except_unwind_info, sjlj_except_unwind_info,
6073 default_target_handle_option, empty_optimization_table): Move to
6074 common/common-targhooks.h.
6075 * common/common-target-def.h: Include common/common-targhooks.h.
6076 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
6077 defined.
6078 * common/common-target.def (handle_option, option_init_struct,
6079 option_optimization_table, default_target_flags,
6080 except_unwind_info, supports_split_stack, unwind_tables_default,
6081 have_named_sections): Move from target.def.
6082 (HOOK_PREFIX): Undefine at end of file.
6083 * common/common-target.h: Include input.h.
6084 (enum opt_levels, struct default_options): Move from target.h.
6085 * common/common-targhooks.c, common/common-targhooks.h: New.
6086 * config.gcc (target_has_targetm_common): Default to yes.
6087 (moxie*): Set target_has_targetm_common=no.
6088 (hppa*-*-*): Don't set target_has_targetm_common=yes.
6089 * doc/tm.texi: Regenerate.
6090 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
6091 (C_TARGET_DEF_H): Add common/common-targhooks.h.
6092 (GCC_OBJS): Remove vec.o.
6093 (OBJS): Remove hooks.o and vec.o.
6094 (OBJS-libcommon-target): Add vec.o, hooks.o and
6095 common/common-targhooks.o.
6096 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
6097 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
6098 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
6099 cfglayout.o, $(out_object_file), $(common_out_object_file)):
6100 Update dependencies.
6101 (common/common-targhooks.o): New.
637c11bd 6102 * common/config/default-common.c: Include tm.h. Add FIXME comment.
677f3fa8
JM
6103 * common/config/pa/pa-common.c: Include more headers. Take
6104 copyright dates from pa.c.
6105 (pa_option_optimization_table, pa_handle_option,
6106 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
6107 TARGET_HANDLE_OPTION): Move from pa.c.
6108 * common/config/alpha/alpha-common.c,
6109 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
6110 common/config/bfin/bfin-common.c,
6111 common/config/cris/cris-common.c,
6112 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
6113 common/config/h8300/h8300-common.c,
6114 common/config/i386/i386-common.c,
6115 common/config/ia64/ia64-common.c,
6116 common/config/iq2000/iq2000-common.c,
6117 common/config/lm32/lm32-common.c,
6118 common/config/m32c/m32c-common.c,
6119 common/config/m32r/m32r-common.c,
6120 common/config/m68k/m68k-common.c,
6121 common/config/mcore/mcore-common.c,
6122 common/config/mep/mep-common.c,
6123 common/config/microblaze/microblaze-common.c,
6124 common/config/mips/mips-common.c,
6125 common/config/mmix/mmix-common.c,
6126 common/config/mn10300/mn10300-common.c,
6127 common/config/pdp11/pdp11-common.c,
6128 common/config/picochip/picochip-common.c,
6129 common/config/rs6000/rs6000-common.c,
6130 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
6131 common/config/score/score-common.c, common/config/sh/sh-common.c,
6132 common/config/sparc/sparc-common.c,
6133 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
6134 common/config/vax/vax-common.c,
6135 common/config/xstormy16/xstormy16-common.c,
6136 common/config/xtensa/xtensa-common.c: New.
6137 * config/alpha/alpha.c: Include common/common-target.h.
6138 (alpha_option_optimization_table, alpha_handle_option,
6139 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6140 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
6141 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
6142 * config/arm/arm.c (arm_option_optimization_table,
6143 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
6144 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
6145 arm-common.c.
6146 * config/avr/avr.c (avr_option_optimization_table,
6147 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
6148 to avr-common.c.
6149 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
6150 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
6151 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
6152 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
6153 * config/cris/cris.c (cris_option_optimization_table,
6154 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6155 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
6156 cris-common.c.
6157 * config/fr30/fr30.c (fr30_option_optimization_table,
6158 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
6159 to fr30-common.c.
6160 * config/frv/frv.c (frv_option_optimization_table,
6161 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
6162 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
6163 * config/h8300/h8300.c (h8300_option_optimization_table,
6164 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
6165 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
6166 * config/i386/i386-protos.h (ix86_handle_option): Declare.
6167 * config/i386/i386.c: Include common/common-target.h.
6168 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
6169 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
6170 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
6171 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
6172 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
6173 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
6174 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
6175 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
6176 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
6177 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
6178 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
6179 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
6180 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
6181 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
6182 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
6183 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
6184 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
6185 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
6186 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
6187 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
6188 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
6189 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
6190 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
6191 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
6192 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
6193 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
6194 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
6195 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
6196 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
6197 ix86_option_optimization_table, ix86_option_init_struct,
6198 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
6199 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
6200 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
6201 i386-common.c.
6202 * config/i386/t-i386 (i386.o): Update dependencies.
6203 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
6204 * config/ia64/ia64.c (ia64_option_optimization_table,
6205 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
6206 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6207 ia64_handle_option): Move to ia64-common.c.
6208 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
6209 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
6210 * config/lm32/lm32.c (lm32_option_optimization_table,
6211 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
6212 to lm32-common.c.
6213 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
6214 m32c-common.c.
6215 * config/m32r/m32r.c (m32r_option_optimization_table,
6216 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6217 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
6218 m32r_handle_option): Move to m32r-common.c.
6219 (m32r_memory_move_cost): Remove comment referring to
6220 TARGET_HANDLE_OPTION.
6221 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
6222 Move to m68k-common.c.
6223 * config/mcore/mcore.c (mcore_option_optimization_table,
6224 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
6225 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
6226 * config/mep/mep.c (mep_option_optimization_table,
6227 mep_handle_option, TARGET_HANDLE_OPTION,
6228 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
6229 Move to mep-common.c.
6230 * config/microblaze/microblaze.c
6231 (microblaze_option_optimization_table,
6232 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
6233 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
6234 * config/mips/mips.c (mips_handle_option,
6235 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
6236 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
6237 mips-common.c.
6238 * config/mmix/mmix.c (mmix_option_optimization_table,
6239 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
6240 Move to mmix-common.c.
6241 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
6242 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
6243 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6244 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
6245 * config/pa/pa.c: Include common/common-target.h.
6246 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
6247 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6248 pa_handle_option): Move to pa-common.c.
6249 (pa_option_override): Use targetm_common.except_unwind_info.
6250 (pa_asm_output_mi_thunk, pa_function_section): Use
6251 targetm_common.have_named_sections.
6252 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
6253 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6254 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
6255 pdp11_handle_option, pdp11_option_init_struct): Move to
6256 pdp11-common.c.
6257 * config/picochip/picochip.c (picochip_option_optimization_table,
6258 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
6259 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
6260 * config/rs6000/rs6000.c: Include common/common-target.h.
6261 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
6262 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
6263 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
6264 rs6000_handle_option): Move to rs6000-common.c.
6265 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
6266 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
6267 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
6268 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
6269 * config/s390/s390.c (processor_flags_table,
6270 s390_option_optimization_table, s390_option_init_struct,
6271 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
6272 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
6273 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
6274 * config/s390/s390.h (processor_flags_table): Declare.
6275 * config/score/score.c (score_option_optimization_table,
6276 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6277 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
6278 score_handle_option): Move to score-common.c.
6279 * config/sh/sh.c (sh_option_optimization_table,
6280 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
6281 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6282 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
6283 * config/sparc/sparc.c: Include common/common-target.h.
6284 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
6285 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
6286 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
6287 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
6288 spu_option_init_struct): Move to spu-common.c.
6289 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
6290 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
6291 * config/v850/v850.c (small_memory_physical_max,
6292 v850_handle_memory_optionn v850_handle_option,
6293 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
6294 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
6295 v850-common.c.
637c11bd 6296 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
677f3fa8
JM
6297 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
6298 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
6299 Move to xtensa-common.c.
6300 * cfglayout.c: Include common/common-target.h.
6301 (fixup_reorder_chain): Use targetm_common.have_named_sections.
6302 * cfgrtl.c: Include common/common-target.h.
6303 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
6304 targetm_common.have_named_sections.
6305 * dbxout.c: Include common/common-target.h.
6306 (dbxout_function_end): Use targetm_common.have_named_sections.
6307 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
6308 targetm_common.except_unwind_info.
6309 * dwarf2out.c: Include common/common-target.h.
6310 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
6311 dwarf2out_begin_prologue, dwarf2out_frame_init,
6312 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
6313 targetm_common.except_unwind_info.
6314 * except.c: Include common/common-target.h.
6315 (init_eh, finish_eh_generation,
6316 output_one_function_exception_table): Use
6317 targetm_common.except_unwind_info.
637c11bd 6318 (switch_to_exception_section): Use targetm_common.have_named_sections.
677f3fa8
JM
6319 * explow.c: Include common/common-target.h.
6320 * expr.c: Include common/common-target.h.
637c11bd 6321 (build_personality_function): Use targetm_common.except_unwind_info.
677f3fa8
JM
6322 * function.c: Include common/common-target.h.
6323 (expand_function_end): Use targetm_common.except_unwind_info.
6324 * haifa-sched.c: Include common/common-target.h.
637c11bd 6325 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
677f3fa8
JM
6326 * lto-opts.c: Include common/common-target.h instead of target.h.
6327 (lto_reissue_options): Use targetm_common.handle_option.
6328 * opts.c: Include common/common-target.h.
6329 (target_handle_option): Use targetm_common.handle_option.
6330 (init_options_struct): Update comment referring to
6331 targetm.target_option.optimization. Use
6332 targetm_common.default_target_flags,
6333 targetm_common.unwind_tables_default and
6334 targetm_common.option_init_struct.
6335 (default_options_optimization): Use
6336 targetm_common.option_optimization_table.
6337 (finish_options): Use targetm_common.except_unwind_info,
6338 targetm_common.unwind_tables_default,
6339 targetm_common.have_named_sections and
6340 targetm_common.supports_split_stack.
6341 * toplev.c: Include common/common-target.h.
6342 (process_options): Use targetm_common.have_named_sections.
6343 * tree-tailcall.c: Include common/common-target.h.
637c11bd 6344 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
677f3fa8 6345 * tree.c: Include common/common-target.h.
637c11bd 6346 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
677f3fa8
JM
6347 * varasm.c: Include common/common-target.h.
6348 (resolve_unique_section, hot_function_section,
6349 default_function_section): Use targetm_common.have_named_sections.
6350
d26c7090
ER
63512011-06-14 Easwaran Raman <eraman@google.com>
6352
6353 PR rtl-optimization/44194
6354 * dse.c: Include tree-flow.h
6355 (insn_info): Add new field non_frame_wild_read.
6356 (group_info): Add new fields escaped_n and escaped_p.
6357 (kill_on_calls): New variable.
6358 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
6359 (dse_step0): Initialize kill_on_calls.
6360 (can_escape): New function.
6361 (set_usage_bits): Add additional parameter; record information
6362 about escaped locations.
637c11bd 6363 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
d26c7090
ER
6364 (dse_step2_nospill): Set kill_on_calls based on
6365 group->escaped_n and group->escaped_n.
6366 (add_wild_read): Refactor into...
6367 (reset_active_stores): ... New function, and
6368 (free_read_records): ... New function.
6369 (add_non_frame_wild_read): New function.
6370 (scan_insn): Call add_non_frame_wild_read on non-const calls.
637c11bd 6371 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
d26c7090
ER
6372 (dse_step5_nospill): Call scan_reads_nospill for instructions
6373 marked as non_frame_wild_read.
637c11bd 6374 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
d26c7090 6375
c49a6962
JM
63762011-06-14 Joseph Myers <joseph@codesourcery.com>
6377
6378 * common/common-target-def.h, common/common-target.def,
6379 common/common-target.h, common/config/default-common.c,
6380 common/config/pa/pa-common.c: New files.
6381 * Makefile.in (common_out_file, common_out_object_file,
6382 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
6383 (OBJS-libcommon-target): Include $(common_out_object_file).
6384 (prefix.o): Update dependencies.
6385 ($(common_out_object_file), common/common-target-hooks-def.h,
6386 s-common-target-hooks-def-h): New.
6387 (s-tm-texi): Also check timestamp on common-target.def.
6388 (build/genhooks.o): Update dependencies.
6389 * config.gcc (common_out_file, target_has_targetm_common): Define.
6390 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
6391 TARGET_ALWAYS_STRIP_DOTDOT.
6392 * configure.ac (common_out_object_file): Define.
6393 (common_out_file, common_out_object_file): Substitute.
6394 (common): Create directory.
6395 * configure: Regenerate.
6396 * doc/tm.texi.in (targetm_common): Document.
6397 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
6398 * doc/tm.texi: Regenerate.
6399 * genhooks.c (hook_array): Also include common/common-target.def.
6400 * prefix.c (tm.h): Don't include.
6401 (common/common-target.h): Include.
6402 (ALWAYS_STRIP_DOTDOT): Don't define.
6403 (update_path): Use targetm_common.always_strip_dotdot instead of
6404 ALWAYS_STRIP_DOTDOT.
6405 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
6406
22c5fa5f
DL
64072011-06-14 David Li <davidxl@google.com>
6408
6409 * passes.c (execute_function_todo): Remove TODO_dump_func.
6410 (execute_one_pass): Remove TODO_dump_func.
6411 (execute_function_dump): New function.
6412 * tree-vrp.c: Remove TODO_dump_func.
6413 * regrename.c: Remove TODO_dump_func.
6414 * fwprop.c: Remove TODO_dump_func.
6415 * tree-into-ssa.c: Remove TODO_dump_func.
6416 * tree-complex.c: Remove TODO_dump_func.
6417 * tracer.c: Remove TODO_dump_func.
6418 * tree-loop-distribution.c: Remove TODO_dump_func.
6419 * postreload-gcse.c: Remove TODO_dump_func.
6420 * postreload.c: Remove TODO_dump_func.
6421 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
6422 * tree-tailcall.c: Remove TODO_dump_func.
6423 * ipa-cp.c: Remove TODO_dump_func.
6424 * final.c: Remove TODO_dump_func.
6425 * tree-emutls.c: Remove TODO_dump_func.
6426 * omp-low.c: Remove TODO_dump_func.
6427 * tree-ssa-dse.c: Remove TODO_dump_func.
6428 * tree-ssa-uncprop.c: Remove TODO_dump_func.
6429 * auto-inc-dec.c: Remove TODO_dump_func.
6430 * reorg.c: Remove TODO_dump_func.
6431 * tree-ssa-copyrename.c: Remove TODO_dump_func.
6432 * tree-ssa-ccp.c: Remove TODO_dump_func.
6433 * compare-elim.c: Remove TODO_dump_func.
6434 * mode-switching.c: Remove TODO_dump_func.
6435 * modulo-sched.c: Remove TODO_dump_func.
6436 * tree-call-cdce.c: Remove TODO_dump_func.
6437 * cse.c: Remove TODO_dump_func.
6438 * web.c: Remove TODO_dump_func.
6439 * tree-stdarg.c: Remove TODO_dump_func.
6440 * lto-streamer-out.c: Remove TODO_dump_func.
6441 * tree-ssa-math-opts.c: Remove TODO_dump_func.
6442 * tree-ssa-dom.c: Remove TODO_dump_func.
6443 * tree-nrv.c: Remove TODO_dump_func.
6444 * loop-init.c: Remove TODO_dump_func.
6445 * gimple-low.c: Remove TODO_dump_func.
6446 * ipa-inline.c: Remove TODO_dump_func.
6447 * tree-ssa-sink.c: Remove TODO_dump_func.
6448 * jump.c: Remove TODO_dump_func.
6449 * ifcvt.c: Remove TODO_dump_func.
6450 * tree-ssa-loop.c: Remove TODO_dump_func.
6451 * recog.c: Remove TODO_dump_func.
6452 * dse.c: Remove TODO_dump_func.
6453 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
6454 * matrix-reorg.c: Remove TODO_dump_func.
6455 * tree-eh.c: Remove TODO_dump_func.
6456 * regmove.c: Remove TODO_dump_func.
6457 * function.c: Remove TODO_dump_func.
6458 * tree-vectorizer.c: Remove TODO_dump_func.
6459 * ipa-split.c: Remove TODO_dump_func.
6460 * gcse.c: Remove TODO_dump_func.
6461 * tree-if-conv.c: Remove TODO_dump_func.
6462 * init-regs.c: Remove TODO_dump_func.
6463 * tree-ssa-phiopt.c: Remove TODO_dump_func.
6464 * implicit-zee.c: Remove TODO_dump_func.
6465 * lower-subreg.c: Remove TODO_dump_func.
6466 * bt-load.c: Remove TODO_dump_func.
6467 * tree-dfa.c: Remove TODO_dump_func.
6468 * except.c: Remove TODO_dump_func.
6469 * emit-rtl.c: Remove TODO_dump_func.
6470 * store-motion.c: Remove TODO_dump_func.
6471 * cfgexpand.c: Remove TODO_dump_func.
6472 * tree-cfgcleanup.c: Remove TODO_dump_func.
6473 * cfgcleanup.c: Remove TODO_dump_func.
6474 * tree-ssa-pre.c: Remove TODO_dump_func.
6475 * tree-sra.c: Remove TODO_dump_func.
6476 * tree-mudflap.c: Remove TODO_dump_func.
6477 * tree-ssa-copy.c: Remove TODO_dump_func.
6478 * cfglayout.c: Remove TODO_dump_func.
6479 * tree-ssa-forwprop.c: Remove TODO_dump_func.
6480 * tree-ssa-dce.c: Remove TODO_dump_func.
6481 * ira.c: Remove TODO_dump_func.
6482 * tree-ssa.c: Remove TODO_dump_func.
6483 * integrate.c: Remove TODO_dump_func.
6484 * tree-optimize.c: Remove TODO_dump_func.
6485 * tree-ssa-phiprop.c: Remove TODO_dump_func.
6486 * tree-object-size.c: Remove TODO_dump_func.
6487 * combine.c: Remove TODO_dump_func.
6488 * bb-reorder.c: Remove TODO_dump_func.
6489 * cprop.c: Remove TODO_dump_func.
6490 * var-tracking.c: Remove TODO_dump_func.
6491 * tree-profile.c: Remove TODO_dump_func.
6492 * tree-vect-generic.c: Remove TODO_dump_func.
6493 * reg-stack.c: Remove TODO_dump_func.
6494 * sched-rgn.c: Remove TODO_dump_func.
6495 * tree-ssa-structalias.c: Remove TODO_dump_func.
6496 * tree-switch-conversion.c: Remove TODO_dump_func.
6497 * tree-cfg.c: Remove TODO_dump_func.
6498 * tree-ssa-reassoc.c: Remove TODO_dump_func.
6499 * combine-stack-adj.c: Remove TODO_dump_func.
6500 * dce.c: Remove TODO_dump_func.
6501 * tree-ssanames.c: Remove TODO_dump_func.
6502 * regcprop.c: Remove TODO_dump_func.
6503
fa465762
L
65042011-06-14 H.J. Lu <hongjiu.lu@intel.com>
6505
6506 PR middle-end/47364
6507 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
6508 and properly handle result not in Pmode.
6509
7d8d16c3
RM
65102011-06-14 Robert Millan <rmh@gnu.org>
6511
6512 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
6513 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
6514 `config/linux.h'.
6515
6516 * config/i386/kfreebsd-gnu64.h: New file.
6517 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
6518 with `i386/kfreebsd-gnu64.h'.
6519
6520 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
6521 (GNU_USER_LINK_EMULATION64): New macros.
6522 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
6523 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
6524 of hardcoding `elf_i386' and `elf_x86_64'.
6525
0ccef3d2
NC
65262011-06-14 Nick Clifton <nickc@redhat.com>
6527
6528 PR target/49403
6529 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
6530
6531 PR target/49402
6532 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
6533
8a76c4a0
JJ
65342011-06-14 Jakub Jelinek <jakub@redhat.com>
6535
1ace6185
JJ
6536 PR fortran/49103
6537 * tree.h (DECL_NONSHAREABLE): Define.
6538 (struct tree_decl_common): Change decl_common_unused to
6539 decl_nonshareable_flag.
6540 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
6541 Ignore vars with DECL_NONSHAREABLE bit set.
6542 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
6543 on stores to automatic aggregate vars.
6544
8a76c4a0
JJ
6545 PR rtl-optimization/49390
6546 Revert:
6547 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
6548
6549 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
6550 MEM_ALIAS_SET.
6551
b4a9343c
ZD
65522011-06-14 Zdenek Dvorak <ook@ucw.cz>
6553 Tom de Vries <tom@codesourcery.com>
6554
6555 PR target/45098
6556 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
6557 Document changed semantics.
6558 (max_stmt_executions, max_stmt_executions_int): Declare.
6559 * tree-data-ref.c (estimated_loop_iterations)
6560 (estimated_loop_iterations_int): Move functions...
6561 * tree-ssa-loop-niter.c (estimated_loop_iterations)
6562 (estimated_loop_iterations_int): here.
6563 (record_estimate): Change nb_iterations_upper_bound and
6564 nb_iterations_estimate semantics.
6565 (max_stmt_executions, max_stmt_executions_int): New function.
6566 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
6567 (max_stmt_executions_tree): this.
6568 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
6569 estimated_loop_iterations_tree.
6570 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
6571 max_stmt_executions_int instead of estimated_loop_iterations_int.
6572 * predict.c (predict_loops): Idem.
6573 * tree-parloops.c (parallelize_loops): Idem.
6574 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
6575 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
6576 (init_omega_for_ddr_1): Idem.
6577 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
6578 (loop_prefetch_arrays): Idem
6579 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
6580 max_stmt_executions instead of estimated_loop_iterations.
6581 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
6582 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
6583 instead of nb_iterations_upper_bound.
6584
d2640c43
JH
65852011-06-13 Jan Hubicka <jh@suse.cz>
6586
6587 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
6588
40873cdd
RH
65892011-06-14 Richard Henderson <rth@redhat.com>
6590
6591 PR debug/48459
6592 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
6593 (based_loc_descr): Assert it's true.
6594 (compute_frame_pointer_to_fb_displacement): Set it, rather than
6595 aborting immediately.
6596
73e8cb24
SL
65972011-06-14 Sanjin Liu <scliu@faraday-tech.com>
6598 Mingfeng Wu <mingfeng@faraday-tech.com>
6599
6600 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
6601
f835f0a7
JH
66022011-06-13 Jan Hubicka <jh@suse.cz>
6603
6604 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
6605
ee6f1177
JH
66062011-06-13 Jan Hubicka <jh@suse.cz>
6607
6608 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
6609 similarly to DECL_COMDAT.
6610 * cgraphunit.c (cgraph_analyze_function): Likewise.
6611 * ipa.c (function_and_variable_visibility): Likewise.
6612
618abf9a
JH
66132011-06-13 Jan Hubicka <jh@suse.cz>
6614
6615 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
6616 BINFO_VIRTUALS when streaming for ltrans unit.
6617
a45fe02f
DE
66182011-06-13 David Edelsohn <dje.gcc@gmail.com>
6619
6620 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
6621 (movdi_internal64): Same.
6622
66232011-06-13 Edmar Wienskoski <edmar@freescale.com>
6624
e641e495 6625 PR target/44618
7d8d16c3
RM
6626 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
6627 a set of similar patterns, where the MATCH_OPERAND for the function
6628 argument is replaced with individual references to hardware registers.
a45fe02f
DE
6629 (save_fpregs_<mode>): Ditto
6630 (restore_gpregs_<mode>): Ditto
6631 (return_and_restore_gpregs_<mode>): Ditto
6632 (return_and_restore_fpregs_<mode>): Ditto
6633 (return_and_restore_fpregs_aix_<mode>): Ditto
6634
8775a18b
JH
66352011-06-13 Jan Hubicka <jh@suse.cz>
6636
6637 * ipa-utils.c (postorder_stack): New structure.
6638 (ipa_reverse_postorder): Handle aliases.
6639
66402011-06-13 Jan Hubicka <jh@suse.cz>
6641
6642 * ipa-inline.c (reset_edge_caches): Walk aliases.
6643 (update_caller_keys): Do not test inlinability of aliases.
6644 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
6645 (do_estimate_growth): Fix typo.
6646
6c69a029
JH
66472011-06-13 Jan Hubicka <jh@suse.cz>
6648
6649 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
6650 (can_remove_node_now_p): ... here; handle same comdat groups.
6651 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
6652 (inline_call): Update use of can_remove_node_now_p.
6653
10c63ba4 66542011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
495f8c14 6655
10c63ba4 6656 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
495f8c14
KP
6657 condition to disallow non-identical memory locations.
6658 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
6659 preference to bit manipulation instructions.
495f8c14 6660
9aa3f5c5
JH
66612011-06-13 Jan Hubicka <jh@suse.cz>
6662
6663 * cgraph.c (cgraph_for_node_thunks_and_aliases,
6664 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
6665 (nonremovable_p): New function.
6666 (cgraph_can_remove_if_no_direct_calls_p): New function.
6667 (used_from_object_file_p): New functoin.
10c63ba4
EB
6668 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
6669 references from aliases.
9aa3f5c5
JH
6670 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
6671 * ipa-inline.c (check_caller_edge): New function.
10c63ba4
EB
6672 (want_inline_function_called_once_p): Use it; accept aliases called
6673 once, too.
9aa3f5c5
JH
6674 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
6675
30cecf17
RR
66762011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6677
6678 PR target/48454
6679 * config/arm/neon.md (vec_pack_trunc): Set the lengths
6680 correctly for the case with Quad vectors.
6681
29f85237
JJ
66822011-06-13 Jakub Jelinek <jakub@redhat.com>
6683 Ira Rosen <ira.rosen@linaro.org>
6684
6685 PR tree-optimization/49352
6686 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
6687 all, make sure loop_use_stmt after the loop is a def stmt of a used
6688 SSA_NAME that is the only one defined inside of the loop. Don't
6689 check for COND_EXPR and GIMPLE_BINARY_RHS.
6690 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
6691 check_reduction is true.
6692
c3e3f090
JH
66932011-06-11 Jan Hubicka <jh@suse.cz>
6694
6695 PR middle-end/49373
6696 * ipa.c (cgraph_externally_visible_p): Check resolution info.
6697
516e0768
JH
66982011-06-11 Jan Hubicka <jh@suse.cz>
6699
6700 PR middle-end/48836
6701 * ipa-inline-transform.c: Include tree-pass.h
6702 (inline_transform): Set TODO_update_ssa_only_virtuals.
6703 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
6704
903b0a8b
JH
67052011-06-11 Jan Hubicka <jh@suse.cz>
6706
6707 PR middle-end/49378
6708 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
6709 aliases and thunks.
6710
44542f8e
IR
67112011-06-12 Ira Rosen <ira.rosen@linaro.org>
6712
6713 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
6714 Take number of iterations to peel into account for equally frequent
6715 misalignment values.
6716
ea89702b
JH
67172011-06-11 Jan Hubicka <jh@suse.cz>
6718
637c11bd
UB
6719 * lto-streamer-out.c (produce_symtab): Stream out the newly
6720 represented aliases.
ea89702b 6721
380ed5ed
JH
67222011-06-11 Jan Hubicka <jh@suse.cz>
6723
637c11bd
UB
6724 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
6725 varying args.
380ed5ed
JH
6726 (ipa_update_after_lto_read): Likewise.
6727 (ipa_write_node_info): Do not sream call_with_var_arguments.
6728 (ipa_read_node_info): Likewise.
6729
00cfc363
JH
67302011-06-11 Jan Hubicka <jh@suse.cz>
6731
6732 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
6733
39e2db00
JH
67342011-06-11 Jan Hubicka <jh@suse.cz>
6735
6736 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
6737 (lto_symtab_resolve_can_prevail_p): Likewise.
6738 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
6739 * cgraph.c (same_body_aliases_done): New global var.
6740 (cgraph_same_body_alias_1): Rename to ...
6741 (cgraph_create_function_alias): ... this one; reorg to new
6742 representation.
6743 (cgraph_same_body_alias): Use cgraph_create_function_alias;
6744 record references when asked to.
6745 (cgraph_add_thunk): Fix formating.
6746 (cgraph_get_node): Kill same body alias code.
6747 (cgraph_node_for_asm): Likewise.
6748 (cgraph_remove_same_body_alias): Remove.
6749 (cgraph_remove_node): Kill same body alias code.
6750 (cgraph_mark_address_taken_node): Mark also the aliased function
6751 as having address taken.
6752 (dump_cgraph_node): Dump same body aliases.
6753 (cgraph_for_node_thunks_and_aliases): Update for new alias
6754 representation.
6755 (cgraph_for_node_and_aliases): Likewise.
6756 * cgraph.h (same_body): Kll pointer.
6757 (same_body_alias): Update comment.
6758 (same_body_aliases_done): Declare.
6759 (cgraph_remove_same_body_alias): Remove declaration.
6760 (cgraph_create_function_alias): Declare.
6761 (cgraph_process_same_body_aliases): Declare.
6762 (cgraph_function_with_gimple_body_p): Check for alias.
6763 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
6764 (cgraph_alias_aliased_node): New function.
6765 (cgraph_function_node): Update for new aliases.
6766 (cgraph_function_or_thunk_node): Likewise.
6767 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
6768 (inline_call): Remove dead aliases.
10c63ba4
EB
6769 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
6770 name hack for same body aliases.
39e2db00
JH
6771 (clone_of_p): Look through aliases.
6772 (verify_cgraph_node): Verify aliases.
6773 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
6774 (cgraph_process_same_body_aliases): New function.
6775 (process_function_and_variable_attributes): Disable weakref warning on
6776 alias.
6777 (cgraph_analyze_functions): Handle aliases.
6778 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
6779 (assemble_thunks): Rename to ...
6780 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
6781 (cgraph_expand_function): Remove alias output code.
6782 (cgraph_output_in_order): Skip aliases.
6783 (cgraph_preserve_function_body_p): Aliases don't need preserving.
6784 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
6785 (ipa_record_reference): Do not assert on alias references.
6786 (ipa_ref_has_aliases_p): New function.
6787 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
6788 (ipa_ref_has_aliases_p): Declare.
6789 * lto-cgraph.c (lto_output_node): Handle aliases.
6790 (input_node): Likewise.
6791 * lto-streamer-out.c (lto_output): Skip aliases.
6792 (produce_symtab): Kill same_body_alias code.
6793 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
6794 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
6795 * ipa-inline.c (update_caller_keys): Walk aliases.
6796 (inline_small_functions): Fix thinko in previous patch.
6797 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
6798 (function_and_variable_visibility): Do not walk same body aliases.
6799 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
6800 (ipa_pta_execute): Use it.
6801
9ee65b55
UB
68022011-06-11 Uros Bizjak <ubizjak@gmail.com>
6803
6804 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
6805 (*vec_dupv2df): Rename from vec_dupv2df.
6806 (vec_dupv2df): New expander.
6807
68082011-06-11 Uros Bizjak <ubizjak@gmail.com>
6809
6810 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
6811
68122011-06-11 Uros Bizjak <ubizjak@gmail.com>
6813
6814 * config/i386/i386.md: Use default value in "isa" attribute.
6815 * config/i386/sse.md: Ditto.
6816 * config/i386/mmx.md: Ditto.
6817
ba68a139
WG
68182011-06-10 Wei Guozhi <carrot@google.com>
6819
6820 PR target/45335
6821 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
6822 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
6823 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
6824 related peephole2.
6825 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
6826 related peephole2.
6827 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
6828 (arm_legitimate_ldrd_p): New prototype.
6829 (arm_output_ldrd): New prototype.
6830 * config/arm/arm.c (arm_check_ldrd_operands): New function.
6831 (arm_legitimate_ldrd_p): New function.
6832 (arm_output_ldrd): New function.
6833
deced1e2
XDL
68342011-06-10 David Li <davidxl@google.com>
6835
6836 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
6837 * passes.c (passr_eq): New function.
6838 (create_pass_tab): New function.
6839 (pass_traverse): New function.
6840 (dump_one_pass): New function.
6841 (dump_pass_list): New function.
6842 (dump_passes): New function.
6843
71fb4f92
JH
68442011-06-10 Jan Hubicka <jh@suse.cz>
6845
6846 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
6847 setting the nothrow flag.
6848 * ipa-reference.c (propagate): Skip aliases.
6849 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
6850 (propagate_nothrow): Skip aliases; do not update cgraph.
6851 (local_pure_const): Do not update cgraph.
6852 * tree-profile.c (tree_profiling): Do fixup_cfg.
6853
41817394
JH
68542011-06-10 Jan Hubicka <jh@suse.cz>
6855
6856 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
6857 (cgraph_local_node_p): ... here; handle aliases.
6858 (has_addr_references_p): Break out from ...;
6859 (cgraph_remove_unreachable_nodes) ... here.
6860
fb37c1de
JH
68612011-06-10 Jan Hubicka <jh@suse.cz>
6862
6863 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
9ee65b55
UB
6864 * common.opt (flag_inline_functions_called_once): Do not
6865 initialize to 1.
fb37c1de 6866
0818c24c
JH
68672011-06-10 Jan Hubicka <jh@suse.cz>
6868
6869 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
9ee65b55
UB
6870 (ipcp_initialize_node_lattices): Do not deal with aliases;
6871 Do not try to propagate through thunks.
0818c24c
JH
6872 (ipcp_change_tops_to_bottom): Do not deal with aliases.
6873
c8246dbe
JH
68742011-06-10 Jan Hubicka <jh@suse.cz>
6875
9ee65b55
UB
6876 * ipa-prop.c (ipa_write_node_info): Stream jump functions
6877 for indirect calls.
c8246dbe
JH
6878 (ipa_read_node_info): Likewise.
6879
d7e2a1c1
BS
68802011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6881
6882 PR lto/49302
6883 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
6884 (build_and_insert_call): Likewise.
6885 (build_and_insert_ref): New.
6886 (gimple_expand_builtin_pow): Minor cleanup.
6887 (gimple_expand_builtin_cabs): New.
6888 (execute_cse_sincos): Add case for BUILT_IN_CABS.
9ee65b55 6889
749f25d8
JH
68902011-06-10 Jan Hubicka <jh@suse.cz>
6891
6892 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
6893 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
6894 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
6895 (ipcp_propagate_stage): Skip aliases when propagating.
6896 (ipcp_need_redirect_p): Skip aliases.
6897 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
6898 collect_callers_of_node.
6899 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
6900 for aliases.
6901 (ipa_compute_jump_functions): Look through aliases.
6902
8340fbd7
RO
69032011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6904
6905 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
6906
9aaa7e47
HPN
69072011-06-10 Hans-Peter Nilsson <hp@axis.com>
6908
6909 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
6910 Adjust comments.
6911 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
6912
f1724940
JH
69132011-06-10 Jan Hubicka <jh@suse.cz>
6914
6915 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
6916 Update call of gimple_get_virt_method_for_binfo.
6917 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
6918 refuse_thunks parameter.
6919 (gimple_fold_call): Update.
6920 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
6921
a6f834c5
JH
69222011-06-10 Jan Hubicka <jh@suse.cz>
6923
6924 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
6925 (not_all_callers_have_enough_arguments_p): ... this one; turn into
6926 worker for cgraph_for_node_and_aliases.
6927 (convert_callers_for_node): Break out from ...
6928 (convert_callers): ... here.
6929 (modify_function): Use collect_callers_of_node.
6930 (ipa_early_sra): Use cgraph_for_node_and_aliases.
6931
7871eee3
RG
69322011-06-10 Richard Guenther <rguenther@suse.de>
6933
6934 PR tree-optimization/49361
6935 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
6936 when not already in gimple form.
6937
dae957ae
RG
69382011-06-10 Richard Guenther <rguenther@suse.de>
6939
6940 PR bootstrap/49344
6941 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
6942 FOR_EACH_PHI_OR_STMT_USE.
6943
a5b1779f
JH
69442011-06-10 Jan Hubicka <jh@suse.cz>
6945
6946 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
6947 (clone_inlined_nodes): ... here.
6948 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
6949 to real destination prior inlining.
6950 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
6951 can_early_inline_edge_p, want_early_inline_function_p,
6952 want_early_inline_function_p, want_inline_small_function_p,
6953 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
6954 edge_badness, update_all_callee_keys, lookup_recursive_calls,
6955 add_new_edges_to_heap, inline_small_functions, flatten_function,
6956 inline_always_inline_functions, early_inline_small_functions): Use
6957 cgraph_function_or_thunk_node.
6958 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
6959 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
6960 (do_estimate_edge_growth_1): Break out from ...
6961 (do_estimate_growth) ... here; walk aliases.
6962 (inline_generate_summary): Skip aliases.
6963
c1ae3ca5
RG
69642011-06-10 Richard Guenther <rguenther@suse.de>
6965
9ee65b55
UB
6966 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
6967 forward when combining, visit inserted stmts when a stmt was changed.
c1ae3ca5 6968
b504a918
PC
69692011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
6970
6971 * tree.h (error_operand_p): Add.
6972 * dbxout.c (dbxout_type_fields): Use the latter.
6973 * c-decl.c (add_stmt): Likewise.
6974 * gimplify.c (omp_add_variable, omp_notice_variable,
6975 gimplify_scan_omp_clauses): Likewise.
6976
3f5ea9dc 69772011-06-10 Georg-Johann Lay <avr@gjlay.de>
b504a918 6978
3f5ea9dc
GJL
6979 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
6980 when a value is actually passed in regs.
6981
b11b0904 69822011-06-10 Eric Botcazou <ebotcazou@adacore.com>
870c3cf8 6983 Laurent Rougé <laurent.rouge@menta.fr>
b11b0904
EB
6984
6985 * doc/invoke.texi (SPARC options): Add -mflat.
6986 * config/sparc/sparc.opt: Likewise.
6987 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
6988 (sparc_flat_expand_prologue): Declare.
6989 (sparc_flat_expand_epilogue): Likewise.
6990 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
6991 (CPP_ENDIAN_SPEC): Replace with...
6992 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
6993 (CPP_SPEC): Adjust to above change.
6994 (EXTRA_SPECS): Likewise.
6995 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
6996 (INCOMING_REGNO): Likewise.
6997 (OUTGOING_REGNO): Likewise.
6998 (LOCAL_REGNO): Likewise.
6999 (SETUP_FRAME_ADDRESSES): Likewise.
7000 (FIXED_REGISTERS): Set 0 for %fp.
7001 (CALL_USED_REGISTERS): Likewise.
7002 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
7003 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
7004 (RETURN_ADDR_REGNUM): Define.
7005 (RETURN_ADDR_RTX): Use it.
7006 (INCOMING_RETURN_ADDR_REGNUM): Define.
7007 (INCOMING_RETURN_ADDR_RTX): Use it.
7008 (DWARF_FRAME_RETURN_COLUMN): Likewise.
7009 (EH_RETURN_REGNUM): Define.
7010 (EH_RETURN_STACKADJ_RTX): Use it.
7011 (EH_RETURN_HANDLER_RTX): Delete.
7012 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
7013 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
7014 Delete.
7015 (struct machine_function): Add frame_size, apparent_frame_size,
7016 frame_base_reg, frame_base_offset, n_global_fp_regs and
7017 save_local_in_regs_p fields.
7018 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
7019 sparc_frame_base_offset, sparc_n_global_fp_regs,
7020 sparc_save_local_in_regs_p): New macros.
7021 (sparc_option_override): Error out if -fcall-saved-REG is specified
7022 for Out registers.
7023 (eligible_for_restore_insn): Fix formatting.
7024 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
7025 (eligible_for_sibcall_delay): Likewise.
7026 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
7027 (sparc_legitimate_address_p): Adjust to above change.
7028 (save_global_or_fp_reg_p): New predicate.
7029 (return_addr_reg_needed_p): Likewise.
7030 (save_local_or_in_reg_p): Likewise.
7031 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
7032 (SORR_SAVE, SORR_RESTORE): Delete.
7033 (sorr_pred_t): New typedef.
7034 (sorr_act_t): New enum.
7035 (save_or_restore_regs): Rename to...
7036 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
7037 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
7038 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
7039 mechanism. Add CFI information for double-word saves in 32-bit mode.
7040 (emit_adjust_base_to_offset): New function extracted from...
7041 (emit_save_or_restore_regs): ...this. Rename the rest to...
7042 (emit_save_or_restore_regs_global_fp_regs): ...this.
7043 (emit_save_or_restore_regs_local_in_regs): New function.
7044 (gen_create_flat_frame_[123]): New functions.
7045 (sparc_expand_prologue): Use SIZE local variable. Adjust.
7046 (sparc_flat_expand_prologue): New function.
7047 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
7048 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
7049 (sparc_flat_expand_epilogue): New function.
7050 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
7051 (output_return): Likewise.
7052 (output_sibcall): Likewise.
7053 (sparc_output_mi_thunk): Likewise.
7054 (sparc_frame_pointer_required): Likewise.
7055 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
7056 function optimization.
7057 * config/sparc/sparc.md (flat): New attribute.
7058 (prologue): Add TARGET_FLAT handling.
7059 (save_register_window): Disable if TARGET_FLAT.
7060 (create_flat_frame_[123]): New patterns.
7061 (epilogue): Add TARGET_FLAT handling.
7062 (sibcall_epilogue): Likewise.
7063 (eh_return): New expander.
7064 (eh_return_internal): New insn and splitter.
7065 (return_internal): Add TARGET_FLAT handling.
7066 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
7067 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
7068 (nonlocal_goto): Add TARGET_FLAT handling.
7069 * config/sparc/t-elf: Add -mflat multilib.
7070 * config/sparc/t-leon: Likewise.
7071
fede8efa
JH
70722011-06-10 Jan Hubicka <jh@suse.cz>
7073
7074 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
7075 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
7076 (self_recursive_p): Use cgraph_function_node.
7077 (propagate_pure_const): Likewise.
7078 (propagate_nothrow): Likewise.
7079 * ipa-reference.c (ipa_reference_get_not_read_global): Use
7080 cgraph_function_node.
7081 (propagate_bits): Likewise.
7082 (propagate): Likewise.
7083
0127c76f
RR
70842011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7085 Richard Earnshaw <rearnsha@arm.com>
7086
9ee65b55 7087 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
0127c76f
RR
7088 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
7089 (*thumb2_movdi_vfp): Delete.
7090 (*arm_movdi_vfp_cortexa8): Delete.
7091 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
7092 (*movdi_vfp_cortexa8): Likewise.
7093
f93fe5a0
RG
70942011-06-10 Richard Guenther <rguenther@suse.de>
7095
7096 * stor-layout.c (initialize_sizetypes): Give names to all
7097 sizetype kinds.
7098
f2164f87
IR
70992011-06-10 Ira Rosen <ira.rosen@linaro.org>
7100
7101 PR tree-optimization/49318
7102 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
7103 irrelevant pattern statements.
7104
3f91c962
HPN
71052011-06-10 Hans-Peter Nilsson <hp@axis.com>
7106
3d223145
HPN
7107 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
7108
3f91c962
HPN
7109 PR bootstrap/49354
7110 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
7111 to last assignment.
7112
b125ad45
JH
71132011-06-09 Jan Hubicka <jh@suse.cz>
7114
7115 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
7116 do not recompute reachable flag.
7117 (cgraph_finalize_function, cgraph_analyze_functions): Set
7118 redefined_extern_inline here.
7119
be330ed4
JH
71202011-06-09 Jan Hubicka <jh@suse.cz>
7121
7122 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
7123 (cgraph_only_called_directly_p): ... this one; bring offline.
7124 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
7125 varpool_used_from_object_file_p): Drop names from the declaratoin.
7126 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
7127 collect_callers_of_node): New.
7128 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
7129 (cgraph_edge_recursive_p): Use cgraph_function_node.
7130 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
7131 (cgraph_node_cannot_be_local_p_1): Break out from ...
7132 (cgraph_node_can_be_local_p): ... here; walk aliases.
7133 (cgraph_for_node_thunks_and_aliases): New function.
7134 (cgraph_for_node_and_aliases): New function.
7135 (cgraph_make_node_local_1): Break out from ...
9ee65b55
UB
7136 (cgraph_make_node_local) ... here; use
7137 cgraph_for_node_thunks_and_aliases.
be330ed4 7138 (cgraph_set_nothrow_flag_1): Break out from ...
9ee65b55
UB
7139 (cgraph_set_nothrow_flag) ... here;
7140 use cgraph_for_node_thunks_and_aliases.
be330ed4 7141 (cgraph_set_const_flag_1): Break out from ...
9ee65b55
UB
7142 (cgraph_set_const_flag) ... here;
7143 use cgraph_for_node_thunks_and_aliases.
be330ed4 7144 (cgraph_set_pure_flag_1): Break out from ...
9ee65b55
UB
7145 (cgraph_set_pure_flag) ... here;
7146 use cgraph_for_node_thunks_and_aliases.
be330ed4 7147 (cgraph_propagate_frequency_1): Break out from ...
9ee65b55
UB
7148 (cgraph_propagate_frequency) ... here; use
7149 cgraph_for_node_thunks_and_aliases.
be330ed4 7150 (cgraph_used_from_object_file_p): Do not care about aliases.
9ee65b55
UB
7151 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
7152 New functions.
be330ed4
JH
7153 (collect_callers_of_node_1, collect_callers_of_node): New functions.
7154
2ea91d6b
HPN
71552011-06-10 Hans-Peter Nilsson <hp@axis.com>
7156
7157 PR rtl-optimization/49154
7158 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
7159 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
7160 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
7161 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
7162 * config/cris/cris.h (cris_register_move_cost): Remove
7163 !TARGET_V32 code. Tweak comments.
7164
9cf4fb5a
JH
71652011-06-09 Jan Hubicka <jh@suse.cz>
7166
7167 * cgraphbuild.c (record_eh_tables): Mark personality function as having
7168 address taken.
7169
6049a4c8
HPN
71702011-06-10 Hans-Peter Nilsson <hp@axis.com>
7171
c577822e 7172 PR rtl-optimization/49154
9ee65b55
UB
7173 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
7174 is a matching slot in the hashtable, assign it to classes_ptr.
c577822e 7175
54e1e4f7 7176 PR rtl-optimization/49154
6049a4c8
HPN
7177 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
7178 register classes.
7179 * doc/tm.texi: Regenerate.
7180
3be68b64
KK
71812011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
7182
7183 PR target/49307
7184 * config/sh/sh.md (UNSPEC_CHKADD): New.
7185 (chk_guard_add): New define_insn_and_split.
7186 (symGOT_load): Use chk_guard_add instead of blockage.
7187
bf806a90
KT
71882011-06-09 Kai Tietz <ktietz@redhat.com>
7189
7190 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
7191
d5a9738b
EB
71922011-06-09 Eric Botcazou <ebotcazou@adacore.com>
7193
7194 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
7195
527e82c2
WG
71962011-06-09 Wei Guozhi <carrot@google.com>
7197
7198 PR target/46975
7199 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
7200 (peephole2 for conditional move): Generate 16 bit instructions.
7201
b8bc3a43
UB
72022011-06-09 Uros Bizjak <ubizjak@gmail.com>
7203
7204 * config/i386/i386.md (*movdi_internal_rex64): Merge
7205 alternatives 6 and 8.
7206
4745da6e
DL
72072011-06-09 David Li <davidxl@google.com>
7208
7209 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
7210 * passes.c (passr_eq): New function.
7211 (create_pass_tab): New function.
7212 (pass_traverse): New function.
7213 (dump_one_pass): New function.
7214 (dump_pass_list): New function.
7215 (dump_passes): New function.
7216
bdf67bcb
DL
72172011-06-09 David Li <davidxl@google.com>
7218
7219 * tree-complex.c (tree_lower_complex): Gate cleanup.
7220 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
7221 (execute_optimize_stdarg): Ditto.
7222 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
7223 (execute_cleanup_eh_1): Ditto.
7224 (execute_cleanup_eh): Ditto.
7225 * gcse.c (gate_rtl_pre): Ditto.
7226 (execute_rtl_pre): Ditto.
7227 * except.c (finish_eh_generation): Ditto.
7228 (convert_to_eh_region_ranges): Ditto.
7229 * cprop.c (one_cprop_pass): Ditto.
7230
547fdef8
BS
72312011-06-09 Bernd Schmidt <bernds@codesourcery.com>
7232
7233 PR target/48673
7234 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
7235 in all basic blocks.
7236
10e48e39
RO
72372011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7238
7239 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
7240 (HAVE_ENABLE_EXECUTE_STACK): Define.
7241 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
7242 (HAVE_ENABLE_EXECUTE_STACK): Define.
7243 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
7244 (HAVE_ENABLE_EXECUTE_STACK): Define.
7245 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
7246 (ENABLE_EXECUTE_STACK): Remove.
7247 (HAVE_ENABLE_EXECUTE_STACK): Define.
7248 [IN_LIBGCC2]: Don't include <windows.h>.
7249 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
7250 (HAVE_ENABLE_EXECUTE_STACK): Define.
7251 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
7252 (HAVE_ENABLE_EXECUTE_STACK): Define.
7253 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
7254 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
7255 (HAVE_ENABLE_EXECUTE_STACK): Define.
7256 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
7257 (HAVE_ENABLE_EXECUTE_STACK): Define.
7258 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
7259 (HAVE_ENABLE_EXECUTE_STACK): Define.
7260 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
7261 (HAVE_ENABLE_EXECUTE_STACK): Define.
7262 * config/alpha/alpha.c (alpha_trampoline_init): Test
7263 HAVE_ENABLE_EXECUTE_STACK.
7264 * config/i386/i386.c (ix86_trampoline_init): Likewise.
7265 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
7266 (sparc64_initialize_trampoline): Likewise.
7267 * libgcc2.c [L_enable_execute_stack]: Remove.
7268 * system.h (ENABLE_EXECUTE_STACK): Poison.
7269 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
7270 * doc/tm.texi: Regenerate.
7271 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
7272
8ced31fe
JJ
72732011-06-09 Jakub Jelinek <jakub@redhat.com>
7274
7275 PR middle-end/49308
7276 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
7277 variable. After resetting and rescanning insn continue with previous
7278 statement.
7279
ee610fcd
RO
72802011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7281
7282 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
7283 (gcc_cv_ld_hidden): Likewise.
7284 * configure: Regenerate.
7285 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
7286 (ix86_stack_protect_fail): Mark unused.
7287 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
7288 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
7289 [TARGET_MACHO]: Don't define.
7290 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
7291 (TARGET_STACK_PROTECT_FAIL): Likewise.
7292 (rs6000_stack_protect_fail): Mark unused.
7293 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
b8bc3a43 7294 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
ee610fcd 7295
8f2e22ff
AK
72962011-06-08 Andi Kleen <ak@linux.intel.com>
7297
7298 * varasm.c (get_section): Print location of other conflict
7299 for section conflicts.
7300
815cecbe
AK
73012011-06-08 Andi Kleen <ak@linux.intel.com>
7302
7303 * config/i386/driver-i386.c (host_detect_local_cpu):
7304 Add model 0x2d Intel CPU.
7305
1460ec5c
AK
73062011-06-08 Andi Kleen <ak@linux.intel.com>
7307
7308 * reginfo.c (global_regs_decl): Add.
b8bc3a43
UB
7309 (globalize_reg): Add decl parameter. Compute location. Pass location
7310 to warnings and add inform. Store decl in global_regs_decl.
1460ec5c
AK
7311 * rtl.h (globalize_reg): Update prototype.
7312 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
7313
df17530a
MX
73142011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
7315
7316 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
7317
409fed48
KK
73182011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
7319
7320 PR target/49305
7321 * config/sh/predicates.md (general_movsrc_operand): Check
7322 mode for memory with indexed address for QI and HImode.
7323 (general_movdst_operand): Likewise.
7324
87c16a45
NP
73252011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
7326
b8bc3a43 7327 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
87c16a45 7328
49931fcb
AO
73292011-06-08 Alexandre Oliva <aoliva@redhat.com>
7330
7331 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
7332 (num_ssa_operands): Likewise.
7333 (op_iter_init_phiuse): Forward-declare.
7334 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
7335
29494d1f
NC
73362011-06-08 Nick Clifton <nickc@redhat.com>
7337
7338 * doc/invoke.texi (ARM Options): Update description of
7339 -mthumb-interwork.
7340
4ffae7ff
L
73412011-06-08 H.J. Lu <hongjiu.lu@intel.com>
7342
7343 * config/i386/driver-i386.c (host_detect_local_cpu): Support
7344 unknown Intel family 0x6 CPUs.
7345
d9c77712
MJ
73462011-06-08 Martin Jambor <mjambor@suse.cz>
7347
7348 * tree-sra.c (mark_rw_status): Removed.
7349 (analyze_access_subtree): New parameter parent instead of
7350 mark_read and mark_write, propagate from that.
7351
b1def36c
JB
73522011-06-08 Julian Brown <julian@codesourcery.com>
7353
7354 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
7355 for double-precision helper functions in hard-float mode if only
7356 single-precision arithmetic is supported in hardware.
7357
6c8e9fc9
AM
73582011-06-08 Alexander Monakov <amonakov@ispras.ru>
7359
7360 PR rtl-optimization/49303
7361 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
7362 code_motion_path_driver returned 0 or 1.
7363 (sel_region_finish): Clear h_d_i_d.
7364
c2bbcb0d
KK
73652011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
7366
7367 * config/sh/sh.c (prepare_move_operands): Set pic register
7368 appropriately for global and local dynamic tls models even
7369 if flag_pic is unset.
7370
6976ae51
JM
73712011-06-07 Jason Merrill <jason@redhat.com>
7372
7373 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
7374
bb5b1f5e
XDL
73752011-06-07 Xinliang David Li <davidxl@google.com>
7376 * passes.c (enable_disable_pass): Handle assembler name.
7377 (is_pass_explicitly_enabled_or_disabled): Ditto.
7378
91ffe356
RO
73792011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7380
7381 PR tree-optimization/48497
7382 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
7383
06bc3ec7
BS
73842011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7385
7386 PR tree-optimization/46728
7387 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
7388 to use gimple_val_nonnegative_real_p.
7389 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
7390 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
29494d1f 7391
c074d740
L
73922011-06-07 H.J. Lu <hongjiu.lu@intel.com>
7393
7394 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
7395
8973b112
SG
73962011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
7397
7398 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
7399 constant vectors.
7400
67b88453
RG
74012011-06-07 Richard Guenther <rguenther@suse.de>
7402
7403 * stor-layout.c (initialize_sizetypes): Initialize all
7404 sizetypes based on target definitions.
7405 (set_sizetype): Remove.
7406 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
7407 * tree.h (set_sizetype): Remove.
7408
1dcad079
NC
74092011-06-07 Nick Clifton <nickc@redhat.com>
7410
7411 * config.gcc: Unify V850 architecture options and add support for
7412 newer V850 architectures.
7413 * config/v850/t-v850e: Delete.
7414
009db074
RG
74152011-06-07 Richard Guenther <rguenther@suse.de>
7416
7417 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
7418 Call set_sizetype from here.
7419
f373314f
AS
74202011-06-07 Andrew Stubbs <ams@codesourcery.com>
7421
7422 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
7423 (*maddhisi4tb, *maddhisi4tt): New define_insns.
7424
c536876e
AS
74252011-06-07 Bernd Schmidt <bernds@codesourcery.com>
7426 Andrew Stubbs <ams@codesourcery.com>
7427
7428 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
7429 multiplies.
7430 * doc/md.texi (Canonicalization of Instructions): Document widening
7431 multiply canonicalization.
7432
308dc890
JJ
74332011-06-07 Jakub Jelinek <jakub@redhat.com>
7434
7435 PR gcov-profile/49299
b8bc3a43 7436 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
308dc890 7437
383d9c83
IR
74382011-06-07 Ira Rosen <ira.rosen@linaro.org>
7439
7440 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
7441 a pointer.
7442 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
7443 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
7444 vect_recog_pow_pattern): Likewise.
7445 (vect_pattern_recog_1): Remove declaration.
7446 (widened_name_p): Remove declaration. Add new argument to specify
7447 whether to check that both types are either signed or unsigned.
7448 (vect_recog_widen_mult_pattern): Update documentation. Handle
7449 unsigned patterns and multiplication by constants.
7450 (vect_pattern_recog_1): Update vect_recog_func references. Use
7451 statement information from the statement returned from pattern
7452 detection functions.
7453 (vect_pattern_recog): Update vect_recog_func reference.
7454 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
7455 multiplication by a constant use the type of the other operand.
7456
4de4b0f2
RS
74572011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
7458
7459 PR rtl-optimization/49145
7460 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
7461
a9d24544
JJ
74622011-06-06 Jakub Jelinek <jakub@redhat.com>
7463
99a5e049
JJ
7464 PR debug/49262
7465 * dwarf2out.c (native_encode_initializer): Decrement count in each
7466 iteration.
7467
04902d4c
JJ
7468 PR debug/49294
7469 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
7470 non-MODE_INT modes.
7471
a9d24544
JJ
7472 PR c++/49264
7473 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
7474 if stmt folded into nothing.
b8bc3a43
UB
7475 * tree-inline.c (fold_marked_statements): If a builtin at the end of
7476 a bb folded into nothing, just update cgraph edges and move to next bb.
a9d24544
JJ
7477 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
7478 to be NULL. Don't compute count and frequency if new_call is NULL.
7479
47c79d56
DN
74802011-06-04 Diego Novillo <dnovillo@google.com>
7481
7482 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
7483 (cgraph.o): Likewise.
7484 (cgraphunit.o): Likewise.
7485 * cgraphunit.c: Include lto-streamer.h
7486 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
7487 if LTO is enabled.
7488 * lto-streamer-in.c (unpack_value_fields): Call
7489 streamer_hooks.unpack_value_fields if set.
7490 (lto_materialize_tree): For unhandled nodes, first try to
7491 call lto_streamer_hooks.alloc_tree, if it exists.
7492 (lto_input_ts_decl_common_tree_pointers): Move reading of
7493 DECL_INITIAL to lto_streamer_read_tree.
7494 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
7495 (lto_streamer_read_tree): New.
7496 (lto_reader_init): Rename from lto_init_reader.
7497 Move initialization code to lto/lto.c.
7498 * lto-streamer-out.c (pack_value_fields): Call
7499 streamer_hooks.pack_value_fields if set.
b8bc3a43
UB
7500 (lto_output_tree_ref): For tree nodes that are not normally indexable,
7501 call streamer_hooks.indexable_with_decls_p before giving up.
47c79d56 7502 (lto_output_ts_decl_common_tree_pointers): Move handling
b8bc3a43
UB
7503 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
7504 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
7505 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
7506 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
47c79d56
DN
7507 (lto_streamer_write_tree): New.
7508 (lto_output): Call lto_streamer_init directly.
7509 (lto_writer_init): Remove.
7510 * lto-streamer.c (streamer_hooks): New.
7511 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
7512 instead of lto_preload_common_nodes.
7513 (lto_is_streamable): Move from lto-streamer.h
7514 (lto_streamer_hooks_init): New.
7515 (streamer_hooks): New.
7516 (streamer_hooks_init): New.
7517 * lto-streamer.h (struct output_block): Forward declare.
7518 (struct lto_input_block): Likewise.
7519 (struct data_in): Likewise.
7520 (struct bitpack_d): Likewise.
7521 (struct streamer_hooks): Declare.
7522 (streamer_hooks): Declare.
7523 (lto_streamer_hooks_init): Declare.
7524 (lto_streamer_write_tree): Declare.
7525 (lto_streamer_read_tree): Declare.
7526 (streamer_hooks_init): Declare.
7527 (lto_is_streamable): Move to lto-streamer.c
7528
22afe143
AK
75292011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7530
7531 * longlong.h (smul_ppmm): The resulting register pair contains the
7532 higher order word first.
7533
3906ea1b
BS
75342011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7535
7536 PR tree-optimization/46728
7537 * builtins.c (powi_table): Remove.
7538 (powi_lookup_cost): Remove.
7539 (powi_cost): Remove.
7540 (expand_powi_1): Remove.
7541 (expand_powi): Remove.
7542 (expand_builtin_pow_root): Remove.
7543 (expand_builtin_pow): Remove.
7544 (expand_builtin_powi): Eliminate handling of constant exponent.
7545 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
b8bc3a43 7546
3598cabd
AO
75472011-06-06 Alexandre Oliva <aoliva@redhat.com>
7548
7549 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
7550
a7a110bb
AO
75512011-06-06 Alexandre Oliva <aoliva@redhat.com>
7552
7553 * dce.c (reset_unmarked_insns_debug_uses): New.
7554 (delete_unmarked_insns): Skip debug insns.
7555 (prescan_insns_for_dce): Likewise.
7556 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
7557 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
7558 active reg can be found.
7559 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
7560 (convert_regs_1): Use it.
7561
6d8402ac
AO
75622011-06-06 Alexandre Oliva <aoliva@redhat.com>
7563
7564 * tree-pretty-print.c (dump_function_header): Add flags.
7565 Don't dump decl_uid with nouid.
7566 * tree-pretty-print.h (dump_function_header): Adjust.
7567 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
7568 * passes.c (pass_init_dump_file): Pass dump_flags on.
7569 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
7570
f75e1f1e
AO
75712011-06-06 Alexandre Oliva <aoliva@redhat.com>
7572
7573 PR bootstrap/49270
7574 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
7575
275311c4
MP
75762011-06-06 Mikael Pettersson <mikpe@it.uu.se>
7577
7578 PR tree-optimization/49243
7579 * calls.c (setjmp_call_p): Also check if fndecl has the
7580 returns_twice attribute.
7581
aa4203e7
RO
75822011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7583
7584 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
7585 -ffast-math etc.
7586
48f9d59a
RH
75872011-06-06 Richard Henderson <rth@redhat.com>
7588 Georg-Johann Lay <avr@gjlay.de>
7589
7590 PR target/42210
7591 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
7592 New predicates.
7593 * config/avr/avr.md ("insv"): New insn expander.
7594 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
7595 "*insv.not.io", "*insv.reg"): New insns.
7596
11494830
HPN
75972011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
7598
7599 PR target/49285
b8bc3a43
UB
7600 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
7601 to nonimmediate_operand from memory_operand for the operand that is to
7602 be forced to memory by the expander. Lose the constraints.
11494830 7603
679e70df
EB
76042011-06-05 Eric Botcazou <ebotcazou@adacore.com>
7605
7606 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
7607 EH return when delayed branches are disabled.
7608
4d3d7f15
UB
76092011-06-05 Uros Bizjak <ubizjak@gmail.com>
7610
7611 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
7612 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
7613 calculation.
7614 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
7615 Simplify MODE_V1DF and MODE_V2SF handling.
7616 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
7617 Simplify MODE_SF handling.
7618
a45c0557
JH
76192011-06-04 Jan Hubicka <jh@suse.cz>
7620
7621 PR tree-optimization/48893
7622 PR tree-optimization/49091
7623 PR tree-optimization/49179
7624 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
7625 Bounds check.
7626
26740835
JH
76272011-06-04 Jan Hubicka <jh@suse.cz>
7628
7629 PR lto/48954
b8bc3a43
UB
7630 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
7631 bitmaps.
26740835 7632
014ab419
JW
76332011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
7634
7635 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
7636
407bcba7
JJ
76372011-06-04 Jakub Jelinek <jakub@redhat.com>
7638
7639 PR target/49281
7640 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
7641 to be strictly smaller than 1 << shiftcount.
7642
e3195c52
JH
76432011-06-04 Jan Hubicka <jh@suse.cz>
7644
7645 PR tree-optimize/48929
7646 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
7647 of empty predicate.
7648
047d33a0
AO
76492011-06-04 Alexandre Oliva <aoliva@redhat.com>
7650
7651 PR debug/48333
7652 * calls.c (emit_call_1): Prefer the __builtin declaration of
7653 builtin functions.
7654
dc587809
DN
76552011-06-03 Diego Novillo <dnovillo@google.com>
7656
7657 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
7658 (lto_input_tree_pointers): Likewise.
7659 * lto-streamer-out.c (pack_value_fields): Likewise.
7660 (lto_output_tree_pointers): Likewise.
7661 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
7662 and OPTIMIZATION_NODE.
7663
58cd1d70
RO
76642011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7665
7666 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
7667 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
7668 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
7669 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
7670 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
7671 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
7672 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
7673 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
7674 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
7675 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
7676 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
7677 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
7678 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
7679 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
7680 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
7681 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
7682 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
7683 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
7684 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
7685 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
7686 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
7687 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
7688 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
7689 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
7690 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
7691 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
7692 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
7693 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
7694 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
7695 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
7696 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
7697 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
7698 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
7699 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
7700 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
7701 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
7702 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
7703 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
7704 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
7705 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
7706 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
7707 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
7708 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
7709 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
7710 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
7711 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
7712 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
7713 * system.h (MD_UNWIND_SUPPORT): Poison.
7714 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
7715 * doc/tm.texi: Regenerate.
7716 * unwind-dw2.c: Include md-unwind-support.h instead of
7717 MD_UNWIND_SUPPORT.
7718 * config/ia64/unwind-ia64.c: Likewise.
7719 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
7720
10c63ba4 77212011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
34e0c8d5
JH
7722
7723 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
7724
1b7a0148
RH
77252011-06-03 Richard Henderson <rth@redhat.com>
7726 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7727
7728 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
7729 (sigill_hdlr): Correct insn, insn size.
7730 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
7731
737346fa
RO
77322011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7733
7734 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
7735 t-slibgcc-dummy.
7736 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
7737 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
7738 * config/mips/t-iris: Remove.
7739 * config/mips/t-irix6: New file.
7740 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
7741
c192cee6
RO
77422011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7743
7744 * Makefile.in (LIB2ADDEHDEP): Remove.
7745 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
7746 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
7747 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
7748 * config/t-darwin (LIB2ADDEHDEP): Remove.
7749 * config/t-freebsd (LIB2ADDEHDEP): Remove.
7750 * config/t-linux (LIB2ADDEHDEP): Remove.
7751
d5828cc7
DN
77522011-06-03 Diego Novillo <dnovillo@google.com>
7753
7754 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
7755 (lto_register_var_decl_in_symtab): Likewise.
7756 (lto_register_function_decl_in_symtab): Likewise.
7757 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
8929d9ea 7758 logic to uniquify_nodes.
d5828cc7 7759
ee33b5f0
RO
77602011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7761
7762 * config/alpha/t-osf5: Remove.
7763 * config/alpha/t-osf-pthread: Remove.
7764 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
7765 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
7766
16868d84
JB
77672011-06-03 Julian Brown <julian@codesourcery.com>
7768
7769 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
7770 (strongarm1110): Use strongarm tuning.
4d3d7f15 7771 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
16868d84
JB
7772 * config/arm/arm.c (arm_strongarm_tune): New.
7773 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
7774 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
7775 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
7776 setting, using previous defaults or 1 for Cortex-A5.
7777 (arm_option_override): Set max_insns_skipped from current tuning.
7778
1cec1285
NS
77792011-06-03 Nathan Sidwell <nathan@codesourcery.com>
7780
7781 * doc/install.texi (Options specification): Document --with-specs.
7782
eed55426
RR
77832011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7784
7785 * config/arm/neon.md (orndi3_neon): Actually split it.
7786
d5b6cc25
AO
77872011-06-02 Alexandre Oliva <aoliva@redhat.com>
7788
7789 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
7790 * var-tracking.c (reverse_op): Limite recurse depth to 5.
7791
2ba42841
AO
77922011-06-02 Alexandre Oliva <aoliva@redhat.com>
7793
7794 PR debug/47590
7795 * target.def (delay_sched2, delay_vartrack): New.
7796 * doc/tm.texi.in: Update.
7797 * doc/tm.texi: Rebuild.
7798 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
7799 * var-tracking.c (gate_handle_var_tracking): Likewise.
7800 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
7801 (bfin_flag_var_tracking): Drop.
7802 (output_file_start): Don't save and override flag_var_tracking.
7803 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
7804 (bfin_reorg): Test original variables.
7805 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
7806 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
7807 (ia64_flag_var_tracking): Drop.
7808 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
7809 (ia64_file_start): Don't save and override flag_var_tracking.
7810 (ia64_override_options_after_change): Ditto
7811 flag_schedule_insns_after_reload.
7812 (ia64_reorg): Test original variables.
7813 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
7814 (picochip_flag_var_tracking): Drop.
7815 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
7816 (picochip_option_override): Don't save and override
7817 flag_schedule_insns_after_reload.
7818 (picochip_asm_file_start): Ditto flag_var_tracking.
7819 (picochip_reorg): Test original variables.
7820 * config/spu/spu.c (spu_flag_var_tracking): Drop.
7821 (TARGET_DELAY_VARTRACK): Define.
7822 (spu_var_tracking): New.
7823 (spu_machine_dependent_reorg): Call it.
7824 (asm_file_start): Don't save and override flag_var_tracking.
7825
a700b5f0
KK
78262011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
7827
7828 PR target/49163
7829 * config/sh/predicates.md (general_movsrc_operand): Return 0
7830 for memory and memory subreg of which address is an invalid
7831 indexed address for QI and HImode.
7832 (general_movdst_operand): Likewise.
7833
76015c34
EB
78342011-06-02 Eric Botcazou <ebotcazou@adacore.com>
7835
7836 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
7837 edges only, when there is a non-local label in the function.
7838 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
7839
4e76acd2
UB
78402011-06-02 Uros Bizjak <ubizjak@gmail.com>
7841
7842 * config/i386/constraints.md (Y3): New register constraint.
7843 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
7844 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
7845 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
7846 *sse2_interleave_lowv2df.
7847
288f605f
JB
78482011-06-02 Julian Brown <julian@codesourcery.com>
7849
7850 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
7851 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
7852 (arm_cortex_a5_tune): New.
7853
7ec70105
JB
78542011-06-02 Julian Brown <julian@codesourcery.com>
7855
153668ec
JB
7856 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
7857 * config/arm/arm.c (arm_default_branch_cost): New.
7858 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
7859 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
7860 (arm_fa726_tune): Set branch_cost field using
7861 arm_default_branch_cost.
7862 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
7863 current_tune structure.
7864 * dojump.c (tm_p.h): Include file.
7865
78662011-06-02 Julian Brown <julian@codesourcery.com>
7867
7868 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
7869 tuning.
7ec70105
JB
7870 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
7871 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
7872 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
7873 field.
7874 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
7875 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
7876 (arm_fa726te_tune): Add prefer_constant_pool setting.
7877 (arm_v6t2_tune, arm_cortex_tune): New.
7878 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
7879 prefer_constant_pool setting.
7880
aad61732
UB
78812011-06-02 Uros Bizjak <ubizjak@gmail.com>
7882
4e76acd2
UB
7883 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
7884 switch statement.
aad61732
UB
7885 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
7886 (*movdf_internal) <case 6,7,8>: Ditto.
7887
4e76acd2 7888 * config/i386/constraints.md (Y4): New register constraint.
aad61732
UB
7889 * config/i386/sse.md (vec_set<mode>_0): Merge with
7890 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
7891 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
7892 *vec_extractv2di_1_sse.
7893 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
7894 and *vec_concatv2di_rex64_sse.
7895
6e588138
SH
78962011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
7897
7898 PR target/48807
7899 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
7900 of cgraph_local_info for null before attempting to use it.
7901
bc6d3f91
EB
79022011-06-02 Eric Botcazou <ebotcazou@adacore.com>
7903
7904 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
7905 (current_function_dynamic_alloc_count): Delete.
7906 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
7907 (expand_builtin_nonlocal_goto): Remove obsolete comment.
7908 (expand_builtin_update_setjmp_buf): Remove dead code.
7909 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
7910 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
7911 support.
7912 * function.c (instantiate_virtual_regs): Likewise.
7913 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
7914 for a block with a single abnormal incoming edge.
7915 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
a21ede65 7916 (SETJMP_VIA_SAVE_AREA): Delete.
bc6d3f91
EB
7917 * config/sparc/sparc-protos.h (load_got_register): Declare.
7918 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
7919 (load_got_register): Make global.
7920 (sparc_frame_pointer_required): Add 'static'.
7921 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
7922 (sparc_builtin_setjmp_frame_value): New function.
7923 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
7924 (save_stack_nonlocal): New expander.
7925 (restore_stack_nonlocal): Likewise.
7926 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
7927 (nonlocal_goto_internal): New insn.
7928 (goto_handler_and_restore): Delete.
7929 (builtin_setjmp_setup): Likewise.
7930 (do_builtin_setjmp_setup): Likewise.
7931 (setjmp): Likewise.
7932 (builtin_setjmp_receiver): New expander.
7933
69282fee
DL
79342011-06-01 David Li <davidxl@google.com>
7935
7936 PR middle-end/49261
7937 * tree-pretty-print.c (dump_function_header): Format cleanup.
7938
e95873dd
KK
79392011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
7940
7941 PR target/49238
7942 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
7943 needed when original operands are used for msw_skip comparison.
7944
88c15821
JJ
79452011-06-01 Jakub Jelinek <jakub@redhat.com>
7946
7947 PR debug/49250
7948 * var-tracking.c (add_uses, add_stores): Don't call
7949 cselib_subst_to_values on ENTRY_VALUE.
7950
07233947
DN
79512011-06-01 Diego Novillo <dnovillo@google.com>
7952
7953 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
7954 output_record_start with LTO_null instead of output_zero.
7955 (lto_output_ts_binfo_tree_pointers): Likewise.
7956 (lto_output_tree): Likewise.
7957 (output_eh_try_list): Likewise.
7958 (output_eh_region): Likewise.
7959 (output_eh_lp): Likewise.
7960 (output_eh_regions): Likewise.
7961 (output_bb): Likewise.
7962 (output_function): Likewise.
7963 (output_unreferenced_globals): Likewise.
7964 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
7965 instead of NUM_TREE_CODES.
7966 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
7967 (lto_output_int_in_range): Change << to >> when shifting VAL.
7968
4ee3537a
DN
79692011-06-01 Diego Novillo <dnovillo@google.com>
7970
7971 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
7972 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
7973
02972eaf
RS
79742011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
7975
7976 PR target/45074
7977 * optabs.h (valid_multiword_target_p): Declare.
7978 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
7979 doing multi-word operations.
7980 * optabs.c (expand_binop): Likewise.
7981 (expand_doubleword_bswap): Likewise.
7982 (expand_absneg_bit): Likewise.
7983 (expand_unop): Likewise.
7984 (expand_copysign_bit): Likewise.
7985 (multiword_target_p): New function.
7986
4d41c2d1
RS
79872011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
7988
7989 PR rtl-optimization/48830
7990 PR rtl-optimization/48808
7991 PR rtl-optimization/48792
7992 * reload.c (push_reload): Check contains_reg_of_mode.
7993 * reload1.c (strip_paradoxical_subreg): New function.
7994 (gen_reload_chain_without_interm_reg_p): Use it to handle
7995 paradoxical subregs.
7996 (emit_output_reload_insns, gen_reload): Likewise.
7997
5f57dccb
DL
79982011-06-01 David Li <davidxl@google.com>
7999
8000 * predict.c : Change pass name
8001 * ipa.c: Ditto.
8002 * dce.c: Ditto.
8003 * tree-profile.c: Ditto.
8004 * except.c: Ditto.
8005
ea6cf778
DL
80062011-06-01 David Li <davidxl@google.com>
8007
8008 * tree-pretty-print.c (dump_function_header): New function.
8009 * final.c (rest_of_clean_state): Use header dumper.
8010 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
8011 * passes.c (pass_init_dump_file): Use header dumper.
8012
ebdc0d4b
JJ
80132011-06-01 Jakub Jelinek <jakub@redhat.com>
8014
eeeb9b49
JJ
8015 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
8016 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
8017 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
8018 New functions.
8019 (mem_loc_descriptor): Use them.
8020
ebdc0d4b
JJ
8021 * var-tracking.c (create_entry_value): New function.
8022 (vt_add_function_parameter): Use it.
8023
0699e415
RO
80242011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8025
8026 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
8027 Include <signal.h>, <ucontext.h>.
8028 (sigill_caught): Define.
8029 (sigill_hdlr): New function.
8030 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
8031 insns can be executed.
aad61732 8032 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
0699e415
RO
8033 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
8034
ca24c5ad
RO
80352011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8036
8037 * config/t-slibgcc-darwin: Move to ...
aad61732 8038 * config/t-slibgcc-dummy: ... this. Clarify comments.
ca24c5ad
RO
8039 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
8040 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
8041 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
aad61732 8042 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
ca24c5ad
RO
8043 Remove i386/t-crtstuff from tmake_file.
8044 (i[34567]86-*-solaris2*): Remove t-svr4,
8045 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
8046 t-slibgcc-dummy.
8047 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
8048 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
8049 sparc/t-crtfm from tmake_file.
8050 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
8051 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
8052 Remove extra_parts.
8053 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
8054 * config/i386/t-nwld (SHLIB_LINK): Remove.
8055 * config/i386/t-rtems-i386: Rename to ...
8056 * config/i386/t-rtems: ... this.
8057 ($(T)crti.o, $(T)crtn.o): Remove.
8058 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
8059 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
8060 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
8061 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
8062 EXTRA_MULTILIB_PARTS): Remove.
8063 * config/sparc/t-sol2-64: Likewise.
8064 * config/sparc/t-sol2: Remove.
8065 * config/sparc/t-crtin: Remove.
8066 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
8067 * config/i386/gmon-sol2.c: Remove.
8068 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
8069 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
8070 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
8071 * config/i386/sol2-gc1.asm: Remove.
8072 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
8073 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
8074 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
8075 * config/t-slibgcc-sld: Remove.
8076
a78d13c3
JJ
80772011-06-01 Jakub Jelinek <jakub@redhat.com>
8078
8079 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
8080 base_type_for_mode with op_mode instead of mode.
8081
572070ef
PB
80822011-06-01 Paul Brook <paul@cpodesourcery.com>
8083
8084 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
8085 Cortex-A15.
8086 * config/arm/arm-tune.md: Regenerate.
8087 * config/arm/arm-tables.opt: Regenerate.
8088 * config/arm/arm.c (FL_DIV): Rename...
8089 (FL_THUMB_DIV): ... to this.
8090 (FL_ARM_DIV): Define.
8091 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
8092 (arm_arch_hwdiv): Remove.
8093 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
8094 (arm_issue_rate): Add cortexr5.
8095 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
8096 __ARM_ARCH_EXT_IDIV__.
8097 (TARGET_IDIV): Define.
8098 (arm_arch_hwdiv): Remove.
8099 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
8100 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
8101 (divsi3, udivsi3): New patterns.
8102 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
8103 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
8104
11026b51
MJ
81052011-06-01 Martin Jambor <mjambor@suse.cz>
8106
8107 * ipa-utils.c (ipa_dfs_info): New field scc_no.
8108 * ipa-utils.c (searchc): Set scc_no.
8109
b6156cf2
MJ
81102011-06-01 Martin Jambor <mjambor@suse.cz>
8111
8112 * ipa-utils.c (searchc_env): New field allow_overwritable.
8113 (searchc): do not ignore edges to overwritable nodes if indicated
8114 by env->allow_overwritable.
8115 (ipa_reduced_postorder): Set env.allow_overwritable.
8116
6807da97
RG
81172011-06-01 Richard Guenther <rguenther@suse.de>
8118
8119 * tree.c (free_lang_data): Do not reset boolean_type_node nor
8120 char_type_node.
8121 * lto-streamer.c (lto_record_common_node): Take node pointer,
8122 do not register types.
8123 (lto_preload_common_nodes): Explicitly skip preloading nodes
8124 that differ between frontends.
8125
66bd20e7 81262011-05-31 Pat Haugen <pthaugen@us.ibm.com>
ddaf42bc
PH
8127
8128 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
8129 NON_FLOAT_REGS.
8130
66bd20e7 81312011-05-31 Pat Haugen <pthaugen@us.ibm.com>
abdd692e
PH
8132
8133 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
8134 parameter value for dump. Dump cost on outermost call only.
8135 (rs6000_memory_move_cost): Dump cost on outermost call only.
8136
7351d8da
JJ
81372011-05-31 Jakub Jelinek <jakub@redhat.com>
8138
ead7c399
JJ
8139 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
8140 DW_OP_GNU_convert ops.
8141
509f4495
JJ
8142 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
8143 cselib_preserve_constants.
8144 (cselib_lookup_1): If cselib_preserve_constants,
8145 a new VALUE is being created for REG and there is a VALUE for the
8146 same register in wider mode, add another loc with lowpart SUBREG of
8147 the wider VALUE.
8148 (cselib_subst_to_values): Handle ENTRY_VALUE.
8149 * var-tracking.c (replace_expr_with_values): Return NULL for
8150 ENTRY_VALUE too.
8151 * dwarf2out.c (convert_descriptor_to_signed): New function.
8152 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
8153 instead of two shifts.
8154 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
8155 the right mode if needed.
8156 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
8157 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
8158 convert_descriptor_to_signed.
8159 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
8160 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
8161
7351d8da
JJ
8162 PR target/48688
8163 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
8164
5cc93ee0
UB
81652011-05-31 Uros Bizjak <ubizjak@gmail.com>
8166
8167 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
8168 of X87MODEI12 and SWI48x instead of SSEMODEI24.
8169 (SWI248x): New mode iterator, rename from X87MODEI.
8170 (X87MODEI): Remove mode iterator.
8171 (X87MODEI12): Ditto.
8172 (SSEMODEI24): Ditto.
8173
f0686e78
AO
81742011-05-31 Alexandre Oliva <aoliva@redhat.com>
8175
8176 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
8177 * doc/invoke.texi: Document max-vartrack-expr-depth.
8178 * var-tracking.c (EXPR_DEPTH): New.
8179 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
8180
f3308413
AO
81812011-05-31 Alexandre Oliva <aoliva@redhat.com>
8182
8183 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
8184 * config/i386/sse.md: Add n to negated FMA pattern names.
8185
28c14a04
AO
81862011-05-31 Alexandre Oliva <aoliva@redhat.com>
8187
8188 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
8189
70efc82d
AO
81902011-05-31 Alexandre Oliva <aoliva@redhat.com>
8191
5cc93ee0 8192 * gengtype-state.c (read_state_params_structs): Initialize previous.
70efc82d 8193
6ba5d856
UB
81942011-05-31 Uros Bizjak <ubizjak@gmail.com>
8195
8196 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
8197 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
8198
81992011-05-31 Uros Bizjak <ubizjak@gmail.com>
8200
8201 * config/i386/i386.md (*movtf_internal): Avoid allocating general
8202 registers. Penalize F*r->o alternative to prevent partial memory
8203 stalls. Slightly penalize *roF->*r alternative. Generate SSE
8204 CONST_DOUBLE immediates when optimizing function for size. Do not move
8205 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
8206 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
8207 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
8208 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
8209 alternatives.
8210 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
8211
8212 (fp_register_operand splitters): Use fp_register_operand
8213 constraint. Do not use FP_REG_P in insn condition.
8214 (any_fp_register_operand splitters): Use any_fp_register_operand
8215 constraint. Do not use ANY_FP_REG_P in insn condition.
8216
533c07c5
JH
82172011-05-31 Jan Hubicka <jh@suse.cz>
8218
8219 * cgraph.h (cgraph_inline_failed_t): Give enum a name
8220 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
8221 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
8222 (lto_output_edge): Use output_enum and var_len_unsigned.
8223 (lto_output_varpool_node): Likewise.
8224 (input_overwrite_node): Do not take resolution parameter;
8225 extract it from a bitpack.
8226 (input_node): Do not read resolution; use input_enum and
8227 var_len_unsigned.
8228 (input_varpool_node): Likewise.
8229 (input_edge): Likewise.
8230 (input_cgraph_1): Likewise.
8231
2611db71
RG
82322011-05-31 Richard Guenther <rguenther@suse.de>
8233
8234 * gimple.c (gimple_register_canonical_type): Do not register
8235 any types via gimple_register_type.
8236
b9e57365
JH
82372011-05-31 Jan Hubicka <jh@suse.cz>
8238
8239 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
8240 of thunks.
8241
35979cc2
JJ
82422011-05-31 Jakub Jelinek <jakub@redhat.com>
8243
8244 PR rtl-optimization/49235
8245 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
8246 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
8247
8f7de592
IR
82482011-05-31 Ira Rosen <ira.rosen@linaro.org>
8249
8250 PR tree-optimization/49093
8251 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
8252 data references.
8253
8d8a3bda
DS
82542011-05-31 Dodji Seketeli <dodji@redhat.com>
8255
8256 PR debug/49047
8257 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
6ba5d856 8258 for concrete functions containing the code of cloned functions.
8d8a3bda 8259
2e87621c
RG
82602011-05-31 Richard Guenther <rguenther@suse.de>
8261
8262 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
8263 to ...
8264 (forward_propagate_into_comparison_1): ... this.
8265 (forward_propagate_comparison): Rename to ...
8266 (forward_propagate_into_comparison): ... this. Split out
8267 real forward propagation code to ...
8268 (forward_propagate_comparison): ... this.
8269 (forward_propagate_into_gimple_cond): Remove looping.
8270 (forward_propagate_into_cond): Likewise.
8271 (simplify_not_neg_expr): Return whether we have done something.
8272 (simplify_gimple_switch): Likewise.
8273 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
8274 (ssa_forward_propagate_and_combine): ... this. Re-structure
8275 to do a forward forward-propagation walk on BBs and a backward
6ba5d856 8276 stmt combining walk on BBs. Consistently re-scan changed statements.
2e87621c
RG
8277 (pass_forwprop): Adjust.
8278
5a880d5d
ILT
82792011-05-30 Ian Lance Taylor <iant@google.com>
8280
8281 * godump.c (go_format_type): Correct length of name added to
8282 obstack for anonymous field.
8283
5f133038
KK
82842011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
8285
8286 PR target/49186
8287 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
8288 part of the second operand is 0.
8289
b17d5426
UB
82902011-05-30 Uros Bizjak <ubizjak@gmail.com>
8291
8292 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
8293 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
8294 to memory for !TARGET_MEMORY_MISMATCH_STALL.
8295 (*movdf_internal_rex64): Do not penalize F->r alternative.
6ba5d856 8296 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
b17d5426
UB
8297 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
8298 when optimizing function for size. Do not move CONST_DOUBLEs
8299 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6ba5d856
UB
8300 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
8301 SUBREGs. Do not check for MEM_P operands in the insn condition,
b17d5426
UB
8302 check for ANY_FP_REGNO_P instead.
8303 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
8304 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
8305 function for speed.
8306 * config/i386/i386.c (ix86_option_override_internal): Do not
8307 set TARGET_INTEGER_DFMODE_MOVES here.
8308
a0cd843f
L
83092011-05-30 H.J. Lu <hongjiu.lu@intel.com>
8310
8311 PR target/49168
aad61732 8312 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
a0cd843f 8313
006a5f38
JJ
83142011-05-30 Jakub Jelinek <jakub@redhat.com>
8315
8316 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
8317 DW_TAG_rvalue_reference_type even for
8318 -gdwarf-4 -fno-debug-types-section.
8319
6e96f98a
BS
83202011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8321
8322 PR tree-optimization/46728
8323 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
8324 (build_and_insert_binop): New.
8325 (gimple_expand_builtin_pow): Reorder args for
8326 build_and_insert_call; use build_and_insert_binop; add more
8327 optimizations for fractional exponents.
b17d5426 8328
4f60111f
NF
83292011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
8330
8331 PR bootstrap/49190
8332
8333 Revert:
8334 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
8335
8336 * tree.h (struct tree_identifier): Inherit from tree_typed, not
8337 tree_common.
8338 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
8339 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
8340 TS_BASE instead of TS_COMMON.
8341 * varasm.c (assemble_name): Remove assert.
8342
3fd7879d
RS
83432011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
8344
8345 * config.gcc: Keep obselete list sorted.
8346
80060f7a
JJ
83472011-05-30 Jakub Jelinek <jakub@redhat.com>
8348 Eric Botcazou <ebotcazou@adacore.com>
8349
8350 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
8351 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
8352 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
8353 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
8354 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
8355
17e99cdb
RG
83562011-05-30 Richard Guenther <rguenther@suse.de>
8357
8358 * gimple.c (gimple_types_compatible_p_1): Compare record
8359 and union type members properly.
8360
42b05b6e
RG
83612011-05-30 Richard Guenther <rguenther@suse.de>
8362
8363 PR tree-optimization/49210
6ba5d856
UB
8364 * ipa-split.c (split_function): Care for the case where the call
8365 result is not trivially convertible to the result holding variable.
42b05b6e 8366
f3321158
RG
83672011-05-30 Richard Guenther <rguenther@suse.de>
8368
8369 PR tree-optimization/49218
8370 * tree-vrp.c (adjust_range_with_scev): Properly check whether
8371 overflow occured.
8372
d12d8efe
RG
83732011-05-30 Richard Guenther <rguenther@suse.de>
8374
8375 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
8376 New function split out from ...
8377 (forward_propagate_into_gimple_cond): ... here. Adjust.
8378 (forward_propagate_into_cond): Likewise.
8379 (forward_propagate_comparison): Also propagate into
8380 comparisons on assignment RHS. Change return value to
8381 behave similar to forward_propagate_into_cond.
8382 (tree_ssa_forward_propagate_single_use_vars): Handle
8383 strict-overflow warnings properly for forward_propagate_comparison.
8384
df33b41f
RO
83852011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8386
8387 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
8388 from plugin linker.
8389 * configure: Regenerate.
8390
69940d4d
IR
83912011-05-30 Ira Rosen <ira.rosen@linaro.org>
8392
8393 PR tree-optimization/49199
8394 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
b17d5426 8395 non-reduction operands are either defined in the loop or by induction.
69940d4d 8396
226c52aa
XDL
83972011-05-29 Xinliang David Li <davidxl@google.com>
8398
8399 * opts-global.c (handle_common_deferred_options): Handle new options.
8400 * passes.c (register_one_dump_file): Call register_pass_name.
8401 (execute_one_pass): Check explicit enable/disable flag.
8402 (passr_hash): New function.
8403 (passr_eq): Ditto.
8404 (register_pass_name): Ditto.
8405 (get_pass_by_name): Ditto.
8406 (pass_hash): Ditto.
8407 (pass_eq): Ditto.
8408 (enable_pass): Ditto.
8409 (disable_pass): Ditto.
8410 (is_pass_explicitly_enabled_or_disabled): Ditto.
8411
491d8eed
UB
84122011-05-29 Uros Bizjak <ubizjak@gmail.com>
8413
8414 * config/i386/i386.md (*movoi_internal_avx): Use
8415 standard_sse_constant_opcode for alternative 0.
8416 (*movti_internal_sse): Ditto.
8417 (*movti_internal_rex64): Use standard_sse_constant_opcode for
8418 alternative 2.
8419 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
8420 sselog1 type moves.
8421 (*movsi_internal): Ditto.
8422 (*movdi_internal): Ditto. Add ssecvt type moves.
8423
eb93b31f
EB
84242011-05-29 Eric Botcazou <ebotcazou@adacore.com>
8425
8426 PR target/48830
8427 * rtlanal.c (simplify_subreg_regno): Adjust comment.
8428
3f831b7d
JJ
84292011-05-29 Jakub Jelinek <jakub@redhat.com>
8430
8431 PR rtl-optimization/49095
8432 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
8433 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
8434
ee3ee488
RS
84352011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
8436
8437 PR target/43995
8438 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
8439 recurse_p argument. Only follow register copies if it is set,
8440 and prevent mips_find_pic_call_symbol from recursing.
8441 (mips_find_pic_call_symbol): Add a recurse_p argument.
8442 Pass it to mips_pic_call_symbol_from_set.
8443 (mips_annotate_pic_calls): Update accordingly.
8444
65f3dedb
RS
84452011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
8446
8447 * emit-rtl.c (try_split): Use a loop to search for
8448 NOTE_INSN_CALL_ARG_LOCATIONs.
8449
61e374ab
RG
84502011-05-29 Richard Guenther <rguenther@suse.de>
8451
8452 PR tree-optimization/49217
8453 * ipa-pure-const.c (propagate_pure_const): Fix typos.
8454
fac009a8
JH
84552011-05-28 Jan Hubicka <jh@suse.cz>
8456
8457 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
8458 length.
8459 (string_slot_free): Remove
8460 (create_output_block): Initialize obstack.
8461 (destroy_output_block): Free obstack.
8462 (lto_string_index): Add PERSISTENT parameter; do not duplicate
8463 the string unless it needs to be added into the hash.
8464 (lto_output_string_with_length): Add persistent attribute;
8465 handle NULL strings.
8466 (lto_output_string): Add PERSISTENT parameter.
8467 (output_string_cst, output_identifier): Simplify.
8468 (lto_output_location_bitpack): Update.
8469 (lto_output_builtin_tree): Update.
8470 * lto-streamer.h (struct output_block): Add obstack.
491d8eed
UB
8471 (lto_output_string, lto_output_string_with_length): Remove
8472 declarations; functions are static now.
fac009a8 8473
fa766006
JH
84742011-05-28 Jan Hubicka <jh@suse.cz>
8475
8476 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
8477 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
8478 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
8479 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
8480 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
8481 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
8482 unpack_ts_decl_with_vis_value_fields,
8483 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
8484 lto_get_builtin_tree): Use enum and variable length i/o.
8485 * basic-block.h (profile_status_d): Add PROFILE_LAST.
8486 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
8487 New functions.
8488 (bp_pack_enum, bp_unpack_enum): New macros.
8489
e092158b
RS
84902011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
8491
8492 * genrecog.c: Remove redundant forward declarations.
8493
7ca2afa0
RS
84942011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
8495
8496 * config.gcc: Deprecate mips*-*-openbsd*.
8497
a601a53a
RS
84982011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
8499
8500 PR bootstrap/49195
8501 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
8502 for match_op_dup.
8503
fc64b448
AP
85042011-05-27 Andrew Pinski <pinskia@gmail.com>
8505
8506 PR middle-end/48981
8507 * gengtype.c (vec_prefix_type): New function.
8508 (note_def_vec): Use vec_prefix_type and change the length
8509 attribute to be based on the prefix.
8510 * vec.c: Include coretypes.h before vec.h.
8511 (struct vec_prefix): Remove.
8512 (vec_gc_p_reserve): Change the offsetof to sizeof.
8513 (vec_gc_p_reserve_exact): Likewise.
8514 (vec_heap_p_reserve): Likewise.
8515 (vec_heap_p_reserve_exact): Likewise.
8516 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
8517 (vec_stack_p_reserve): Change the offsetof to sizeof.
8518 (vec_stack_p_reserve_exact): Likewise.
8519 * vec.h (struct vec_prefix): New struct definition.
8520 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
8521 (VEC_T_GTY(T,B)): Likewise.
8522 (DEF_VEC_FUNC_P(T)): Use prefix field.
8523 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
8524 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
8525
ba869341
BS
85262011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8527
8528 PR tree-optimization/46728
8529 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
8530 (powi_as_mults): Add gimple_set_location.
8531 (build_and_insert_call): New.
8532 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
8533 0.5, 0.25, 0.75, 1./3., or 1./6.
491d8eed 8534
d296760d
AM
85352011-05-27 Alexander Monakov <amonakov@ispras.ru>
8536
8537 * doc/contrib.texi: Update copyright years.
8538 (Contributors): Add Zdenek Sojka.
8539
38e01f9e
NF
85402011-05-27 Nathan Froyd <froydnj@codesourcery.com>
8541
8542 * c-decl.c (c_push_function_context): Copy the current statement
8543 list stack.
8544 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
8545 (finish_struct): Call building_stmt_list_p instead of checking
8546 cur_stmt_list.
8547 * c-parser.c (c_parser_postfix_expression): Likewise.
8548 * c-typeck.c (c_end_compound_stmt): Likewise.
8549 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
8550 * tree-iterator.c (stmt_list_cache): Change to a VEC.
8551 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
8552 (free_stmt_list): Likewise.
8553 * tree.h (struct tree_statement_list): Include typed_tree instead
8554 of tree_common.
8555 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
8556 as TS_TYPED instead of TS_COMMON.
8557
8950516e 85582011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
66bd20e7 8559 Uros Bizjak <ubizjak@gmail.com>
8950516e
RO
8560
8561 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
8562 (HAVE_AS_IX86_TLSGDPTL): Define.
8563 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
8564 (HAVE_AS_IX86_TLSLDMPLT): Define.
8565 * configure: Regenerate.
8566 * config.in: Regenerate.
8567 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
8568 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
8569 TARGET_SUN_TLS, use @tlsgdplt or @plt.
8570 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
8571 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
8572 @tlsldmplt or @plt.
8573 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
8574
b0bd15f7
BS
85752011-05-27 Bernd Schmidt <bernds@codesourcery.com>
8576
8577 * sched-int.h (struct _haifa_deps_insn_data): New members cond
8578 and reverse_cond.
8579 (INSN_COND, INSN_REVERSE_COND): New macros.
8580 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
8581 once.
8582 (sched_get_condition_with_rev): Cache the results, and look them up
8583 if possible.
8584 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
8585 are clobbered by the current insn.
8586 * target.def (exposed_pipline): New sched data hook.
8587 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
8588 * doc/tm.texi: Regenerate.
8589
fa65a9cf
BS
85902011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8591
8592 PR tree-optimization/49170
8593 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
8594 sincos or cexp.
b0bd15f7 8595
c2299dfe
RG
85962011-05-27 Richard Guenther <rguenther@suse.de>
8597
8598 PR middle-end/49189
8599 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
8600 of comparisons.
8601
a95b23b4
BS
86022011-05-27 Bernd Schmidt <bernds@codesourcery.com>
8603
8604 * haifa-sched.c (sched_scan_info): Remove.
8605 (schedule_block): Call sched_extend_luids rather than sched_init_luids
8606 with NULL args.
8607 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
8608 Remove functions.
8609 (sched_scan): Remove.
8610 (sched_extend_luids): Renamed from luids_extend_insn and no longer
8611 static. All callers changed.
8612 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
8613 static. All callers changed.
8614 (sched_init_luids): Remove all arguments except the first. All
8615 callers changed. Don't use sched_scan.
8616 (haifa_init_h_i_d): Likewise.
8617 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
8618 manually rather than using sched_init_luids. Likewise with
8619 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
8620 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
8621 rather than sched_init_luids with NULL args.
8622 * sel-sched-ir.c (new_insns): Remove variable.
8623 (sched_scan): New static function, previously in haifa-sched.c. Remove
8624 all arguments but the first two; all callers changed.
8625 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
8626 rather than sched_init_luids.
8627 (sel_init_bbs): Remove second argument. All callers changed.
8628 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
8629 with NULL arguments.
8630 (create_insn_rtx_from_pattern): Likewise.
8631 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
8632 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
8633 (sched_init_insn_luid, sched_extend_luids): Declare.
8634 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
8635 declarations.
8636
f8f972fc
RB
86372011-05-27 Richard Guenther <rguenther@suse.de>
8638
8639 PR middle-end/49177
8640 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
8641 A CMP B ? (T) true : (T) false for non-integral types T again.
8642
51a9ed47
JH
86432011-05-27 Jan Hubicka <jh@suse.cz>
8644
8645 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
8646 so 0 means NULL string.
8647 (lto_output_string_with_length): ... here.
f8f972fc
RB
8648 (lto_output_string, output_string_cst, output_identifier): Update
8649 handling of NULL strings.
51a9ed47
JH
8650 (lto_output_location_bitpack): New function.
8651 (lto_output_location): Use it.
8652 (lto_output_tree_ref): Use output_record_start.
f8f972fc
RB
8653 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
8654 len values.
8655 * lto-streamer-in.c (string_for_index): Break out from ...; offset
8656 values by 1.
491d8eed 8657 (input_string_internal): ... here;
f8f972fc
RB
8658 (input_string_cst, input_identifier, lto_input_string): Update handling
8659 of NULL strings.
51a9ed47
JH
8660 (lto_input_location_bitpack): New function
8661 (lto_input_location): Use it.
f8f972fc
RB
8662 (unpack_ts_type_common_value_fields): Pack align & alias in var len
8663 values.
51a9ed47
JH
8664 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
8665 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
8666 (bp_pack_value): Sanity check the value range.
8667 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
8668 New functions.
8669 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
8670 New functions.
8671
66bd20e7 86722011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
dc38fc2e
HS
8673
8674 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
8675 call_arg_location instructions down the floor.
8676
574e418a
VM
86772011-05-26 Vladimir Makarov <vmakarov@redhat.com>
8678
8679 PR rtl-optimization/49154
8680 * ira.c (setup_pressure_classes): Process class without sublcasses
8681 as a candidate for pressure classes.
8682
6a1a787e
RS
86832011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
8684
8685 PR rtl-optimization/48575
8686 * genrecog.c (position_type): New enum.
8687 (position): New structure.
8688 (decision): Use position structure instead of a string.
8689 (root_pos, peep2_insn_pos_list): New variables.
8690 (next_position, compare_positions): New functions.
8691 (new_decision): Use position structures instead of strings.
8692 (maybe_both_true): Likewise.
8693 (change_state): Likewise.
8694 (write_tree): Likewise.
8695 (make_insn_sequence): Likewise.
8696
92e948a8
NF
86972011-05-26 Nathan Froyd <froydnj@codesourcery.com>
8698
8699 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
8700 TS_BASE instead of TS_COMMON.
8701 (find_decls_types_r): Check for TS_TYPED structure before looking at
8702 TREE_TYPE.
8703 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
8704 Add chain field.
8705 (BLOCK_CHAIN): Use new chain field.
8706
66bd20e7 87072011-05-26 Pat Haugen <pthaugen@us.ibm.com>
c61e40d3
PH
8708
8709 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
8710 moves expensive on Power7 also.
8711
1f498652
RG
87122011-05-26 Richard Guenther <rguenther@suse.de>
8713
8714 * fold-const.c (fold_unary_loc): Remove bogus code.
8715
a2fc3e63
NF
87162011-05-26 Nathan Froyd <froydnj@codesourcery.com>
8717
8718 * tree.h (struct tree_identifier): Inherit from tree_typed, not
8719 tree_common.
8720 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
8721 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
8722 TS_BASE instead of TS_COMMON.
8723 * varasm.c (assemble_name): Remove assert.
8724
d11bf18f
BS
87252011-05-26 Bernd Schmidt <bernds@codesourcery.com>
8726
8727 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
8728 substituted first.
8729 * libgcc-std.ver: Delete file.
8730
ac8e1875
RG
87312011-05-26 Richard Guenther <rguenther@suse.de>
8732
8733 PR tree-optimization/48702
8734 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
8735 only when we know the base address is within bounds.
8736 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
8737 assume the base address of TARGET_MEM_REFs is in bounds.
8738
7e32e652
RO
87392011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8740
8741 PR target/49099
8742 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
8743 declaration in TARGET_SOLARIS.
8744
66bd20e7 87452011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
43660e0b
HS
8746
8747 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
491d8eed 8748 The instruction is then expanded explicitly.
43660e0b
HS
8749 (supported_compare): Callable instruction.
8750 (compare): Likewise.
8751
1537737f
JJ
87522011-05-26 Jakub Jelinek <jakub@redhat.com>
8753
8754 PR c++/49165
8755 * gimplify.c (shortcut_cond_r): Don't special case
8756 COND_EXPRs if they have void type on one of their arms.
8757
7b1ac803
BS
87582011-05-26 Bernd Schmidt <bernds@codesourcery.com>
8759
8760 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
8761 to reduce duplication, and to achieve a slightly more logical order
8762 of operations.
8763
1aa9438f
JJ
87642011-05-26 Jakub Jelinek <jakub@redhat.com>
8765
8766 PR tree-optimization/49161
8767 * tree-vrp.c (struct case_info): New type.
8768 (compare_case_labels): Sort case_info structs instead of
8769 trees, and not primarily by CASE_LABEL uids but by
8770 label_for_block indexes.
8771 (find_switch_asserts): Put case labels into struct case_info
8772 array instead of TREE_VEC, adjust sorting, compare label_for_block
8773 values instead of CASE_LABELs.
8774
50fed7bf
RR
87752011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8776
8777 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
8778 ("orndi3_neon"): Likewise.
8779 ("bic<mode>3_neon"): Likewise.
8780
48df3fa6
IR
87812011-05-26 Ira Rosen <ira.rosen@linaro.org>
8782
8783 PR tree-optimization/49038
8784 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
8785 Ensure at least one epilogue iteration if required by data
8786 accesses with gaps.
8787 * tree-vectorizer.h (struct _loop_vec_info): Add new field
8788 to mark loops that require peeling for gaps.
8789 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
8790 (vect_get_known_peeling_cost): Take peeling for gaps into
8791 account.
8792 (vect_transform_loop): Generate epilogue if required by data
8793 access with gaps.
8794 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
8795 loop as requiring an epilogue if there are gaps in the end of
8796 the strided group.
8797
53febcba
ILT
87982011-05-25 Ian Lance Taylor <iant@google.com>
8799
8800 * godump.c (go_format_type): Output the first field with a usable
8801 Go type, if any.
8802
dbbc4d4c
ILT
88032011-05-25 Ian Lance Taylor <iant@google.com>
8804
8805 * godump.c (go_format_type): Check for invalid type names, pointer
8806 target types, and struct field types.
8807
f03a5402
JM
88082011-05-25 Jason Merrill <jason@redhat.com>
8809
8810 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
8811
c497c412
UB
88122011-05-25 Uros Bizjak <ubizjak@gmail.com>
8813
8814 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
8815
e470affe
L
88162011-05-25 H.J. Lu <hongjiu.lu@intel.com>
8817
8818 * config/i386/i386.md (*movqi_extv_1)): Put back
8819 "register_operand" check in "type" calculation.
8820 (*movqi_extzv_2): Likewise.
8821
6c81b2bc
L
88222011-05-25 H.J. Lu <hongjiu.lu@intel.com>
8823
c497c412 8824 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
6c81b2bc 8825
0c007eb2
BS
88262011-05-25 Bernd Schmidt <bernds@codesourcery.com>
8827
8828 PR bootstrap/49160
8829 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
8830 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
8831 __divxc3, __divtc3): Wrap definitions in #ifndef.
8832
521ca78e
L
88332011-05-25 H.J. Lu <hongjiu.lu@intel.com>
8834
8835 PR target/49142
8836 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
8837 "register_operand" check and replace q_regs_operand with
8838 QIreg_operand in "type" calculation.
8839 (*movqi_extv_1): Likewise.
8840 (*movqi_extzv_2_rex64): Likewise.
8841 (*movqi_extzv_2): Likewise.
8842
8843 * config/i386/predicates.md (QIreg_operand): New.
8844
29f8b844
RG
88452011-05-25 Richard Guenther <rguenther@suse.de>
8846
8847 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
8848 type-based offset disambiguation, streamline MEM_REF and
8849 TARGET_MEM_REF handling.
8850
74838de3
L
88512011-05-25 H.J. Lu <hongjiu.lu@intel.com>
8852
8853 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
8854 (bdesc_special_args): Add pause intrinsic.
8855
8856 * config/i386/i386.md (UNSPEC_PAUSE): New.
8857 (pause): Likewise.
8858 (*pause): Likewise.
8859 * config/i386/ia32intrin.h (__pause): Likewise.
8860
8861 * doc/extend.texi (X86 Built-in Functions): Add documentation for
8862 pause intrinsic.
8863
d24ad7d6
BS
88642011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8865
8866 PR tree-optimization/46728
8867 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
8868 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
c497c412 8869
d9f8303f
NF
88702011-05-25 Nathan Froyd <froydnj@codesourcery.com>
8871
8872 * tree.h (struct tree_exp): Inherit from struct tree_typed.
8873 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
8874 instead of TS_COMMON.
8875
cdbf4541
BS
88762011-05-25 Bernd Schmidt <bernds@codesourcery.com>
8877
8878 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
8879 LIBGCC2_GNU_PREFIX is defined.
8880 (__N): New macro.
8881 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
8882 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
8883 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
8884 __clz_tab): Define using __N.
8885 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
8886 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
8887 * target.def (libfunc_gnu_prefix): New hook.
8888 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
8889 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
8890 * doc/tm.texi: Regenerate.
8891 * system.h (LIBGCC2_GNU_PREFIX): Poison.
8892 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
8893 account.
8894 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
8895 (init_optabs): Likewise for the bswap libfuncs.
8896 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
8897 and divide.
8898 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
8899 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
8900 * libgcc-std.ver: Remove.
8901 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
8902 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
8903 libgcc-std.ver.
8904 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
8905 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
8906 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
8907 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
8908 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
8909 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
8910 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
8911 * config/fixed-bit.h (FIXED_OP): Define differently depending on
8912 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
8913 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
8914
f242c0a5
JH
89152011-05-25 Jan Hubicka <jh@suse.cz>
8916
8917 * lto-streamer-out.c (output_record_start): Use lto_output_enum
8918 (lto_output_tree): Use output_record_start.
8919 * lto-streamer-in.c (input_record_start): Use lto_input_enum
8920 (lto_get_pickled_tree): Use input_record_start.
8921 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
8922 (lto_value_range_error): New function.
8923 * lto-streamer.h (lto_value_range_error): Declare.
8924 (lto_output_int_in_range, lto_input_int_in_range): New functions.
8925 (lto_output_enum, lto_input_enum): New macros.
8926
a11e0df4
EB
89272011-05-25 Eric Botcazou <ebotcazou@adacore.com>
8928
8929 * common.opt (flag_stack_usage_info): New variable.
8930 (-Wstack-usage): New option.
8931 * doc/invoke.texi (Warning options): Document -Wstack-usage.
8932 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
8933 <OPT_fstack_usage>: Likewise.
8934 * toplev.c (output_stack_usage): Handle -Wstack-usage.
8935 * calls.c (expand_call): Test flag_stack_usage_info variable instead
8936 of flag_stack_usage.
8937 (emit_library_call_value_1): Likewise.
8938 * explow.c (allocate_dynamic_stack_space): Likewise.
8939 * function.c (instantiate_virtual_regs ): Likewise.
8940 (prepare_function_start): Likewise.
8941 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
8942 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
8943 * config/arm/arm.c (arm_expand_prologue): Likewise.
8944 (thumb1_expand_prologue): Likewise.
8945 * config/avr/avr.c (expand_prologue): Likewise.
8946 * config/i386/i386.c (ix86_expand_prologue): Likewise.
8947 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
8948 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
8949 * config/mips/mips.c (mips_expand_prologue): Likewise.
8950 * config/pa/pa.c (hppa_expand_prologue): Likewise.
8951 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
8952 * config/s390/s390.c (s390_emit_prologue): Likewise.
8953 * config/sh/sh.c (sh_expand_prologue): Likewise.
8954 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
8955 * config/spu/spu.c (spu_expand_prologue): Likewise.
8956
e7cfe241
RG
89572011-05-25 Richard Guenther <rguenther@suse.de>
8958
8959 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
8960 (gimple_canonical_types_compatible_p): Likewise.
8961
c5235f4c
JH
89622011-05-25 Jan Hubicka <jh@suse.cz>
8963
8964 PR middle-end/49062
8965 * ipa.c (function_and_variable_visibility): Only add to same
8966 comdat group list if DECL_ONE_ONLY.
8967
8242a0f6
AB
89682011-05-25 Andrey Belevantsev <abel@ispras.ru>
8969
8970 PR rtl-optimization/49014
8971 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
8972
642a011d
JJ
89732011-05-25 Jakub Jelinek <jakub@redhat.com>
8974
8975 PR target/49128
8976 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
8977
30a435d8
VM
89782011-05-24 Vladimir Makarov <vmakarov@redhat.com>
8979
8980 PR rtl-optimization/48757
8981 * ira-build.c (loop_with_eh_edge_p): Rename to
8982 loop_with_complex_edge_p, check edges on complexity, make function
8983 conditional.
8984 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
8985 conditional.
8986
24d1bbc7
EB
89872011-05-24 Eric Botcazou <ebotcazou@adacore.com>
8988
8989 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
8990 force flag_ira_share_save_slots to 0.
8991
65773087
EB
89922011-05-24 Eric Botcazou <ebotcazou@adacore.com>
8993
8994 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
8995 (vt_initialize): Set PROLOGUE_BB unconditionally.
8996 Add block comment about CFA_BASE_RTX machinery.
8997 Reset FP_CFA_OFFSET to -1 on all invalid paths.
8998 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
8999
4e26ba90
NP
90002011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
9001
9002 PR objc/48187
9003 * c-parser.c (c_parser_objc_class_instance_variables): More robust
9004 parsing of syntax error in ObjC instance variable lists. In
9005 particular, avoid an infinite loop if there is a stray ']'.
9006 Updated error message.
9007
936fd13c
ILT
90082011-05-24 Ian Lance Taylor <iant@google.com>
9009
9010 * godump.c (go_define): Don't accept a string immediately after
9011 another operand.
9012
f17333e3
ILT
90132011-05-24 Ian Lance Taylor <iant@google.com>
9014
9015 * godump.c (struct godump_container): Add invalid_hash field.
9016 (go_format_type): Return false if type is found in invalid_hash.
9017 (go_output_typedef): Add invalid type to invalid_hash.
9018 (go_finish): Create and delete invalid_hash.
9019
d24ad7d6 90202011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
c497c412 9021
78be79d5
BS
9022 PR tree-optimization/46728
9023 * tree-ssa-math-opts.c (powi_table): New.
9024 (powi_lookup_cost): New.
9025 (powi_cost): New.
9026 (powi_as_mults_1): New.
9027 (powi_as_mults): New.
9028 (gimple_expand_builtin_powi): New.
9029 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
9030 (gate_cse_sincos): Remove sincos/cexp restriction.
f17333e3 9031
caee412b
RO
90322011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9033
9034 PR target/3746
9035 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
9036 mips-tdump native.
9037 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
9038 * mips-tdump.c: Likewise.
9039
5eed4f27
L
90402011-05-24 H.J. Lu <hongjiu.lu@intel.com>
9041
9042 PR target/49128
9043 * config/i386/driver-i386.c (host_detect_local_cpu): Always
9044 add -mno-XXX. Handle FMA.
9045
8c5fdaae
VM
90462011-05-24 Vladimir Makarov <vmakarov@redhat.com>
9047
9048 PR rtl-optimization/48633
9049 * ira-build.c (loop_with_eh_edge_p): New function.
9050 (mark_loops_for_removal): Use it.
9051
90522011-05-24 Vladimir Makarov <vmakarov@redhat.com>
113a5be6
VM
9053
9054 PR rtl-optimization/48971
9055 * ira.c (setup_pressure_classes): Don't check register move cost
9056 for classes with one registers. Don't add pressure class if there
9057 is a pressure class with the same available hard registers.
9058 Check contains_reg_of_mode. Fix a typo in collecting
9059 temp_hard_regset. Ignore hard registers not belonging to a class.
9060
df1f7315
UB
90612011-05-24 Uros Bizjak <ubizjak@gmail.com>
9062
9063 PR target/49133
9064 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
9065
ee0cb37c
EB
90662011-05-24 Eric Botcazou <ebotcazou@adacore.com>
9067 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9068
9069 PR gcov-profile/48845
9070 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
9071
6a20ce76
RG
90722011-05-24 Richard Guenther <rguenther@suse.de>
9073
9074 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
9075 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
9076 (gimple_types_compatible_p_1): Adjust.
9077 (iterative_hash_canonical_type): Do not bother about complete vs.
9078 incomplete types.
9079 (gimple_canonical_types_compatible_p): Likewise.
9080
2fcb858c
RO
90812011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9082
9083 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
9084
96d91dcf
RG
90852011-05-24 Richard Guenther <rguenther@suse.de>
9086
9087 PR bootstrap/49078
9088 * gimple.c (gimple_register_canonical_type): Revert
9089 previous change.
9090 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
9091 does not for a tree for the case where it matters. Cache
9092 pointer-type alias-sets.
9093
1ed1641d
JM
90942011-05-24 Joseph Myers <joseph@codesourcery.com>
9095
9096 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
9097 (OBJS): Remove options.o, opts-common.o and prefix.o.
9098 (OBJS-libcommon-target): New.
9099 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
9100 (BACKEND): Include libcommon-target.a.
9101 (MOSTLYCLEANFILES): Include libcommon-target.a.
9102 (libcommon-target.a): New.
9103 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
9104 prefix.o.
9105
57dfdff0
JM
91062011-05-23 Joseph Myers <joseph@codesourcery.com>
9107
9108 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
9109 parts of output shared with the driver.
9110 * optc-gen.awk: Don't generate parts of output not shared with the
9111 driver.
9112 * opth-gen.awk: Remove GCC_DRIVER conditionals.
9113 * doc/options.texi (SourcerInclude): Mention options-save.c.
9114 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
9115 (OBJS): Add options-save.o.
9116 (options-save.c, options-save.o): New.
9117 (options.o): Update dependencies.
9118 (gcc-options.o): Remove.
9119 (mostlyclean): Remove options-save.c.
9120
0e0d82a7
JJ
91212011-05-23 Jakub Jelinek <jakub@redhat.com>
9122
9166988f
JJ
9123 PR debug/49032
9124 * dbxout.c: Include cgraph.h.
9125 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
9126 and without value expr, return NULL if no varpool node exists for
9127 it or if it is not needed.
9128 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
9129
0e0d82a7
JJ
9130 PR c/49120
9131 * c-decl.c (start_decl): Convert expr to void_type_node.
9132
65712d5c
RS
91332011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
9134
9135 PR rtl-optimization/48826
9136 * emit-rtl.c (try_split): When splitting a call that is followed
9137 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
9138
9025085e
JJ
91392011-05-23 Jakub Jelinek <jakub@redhat.com>
9140
9141 * cfgexpand.c (expand_debug_expr): For unused non-addressable
9142 parameters passed in memory prefer using DECL_INCOMING_RTL over
9143 the pseudos it will be copied into.
9144
34a061be
L
91452011-05-23 H.J. Lu <hongjiu.lu@intel.com>
9146
9147 PR target/47315
9148 * config/i386/i386.c (ix86_option_override_internal): Save the
9149 initial options after checking vzeroupper.
9150
c375a3a4
DL
91512011-05-23 David Li <davidxl@google.com>
9152
9153 PR tree-optimization/48988
9154 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
9155 Initialize has_valid_pred for each pred chain.
9156
e1caba18
RG
91572011-05-23 Richard Guenther <rguenther@suse.de>
9158
9159 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
9160 (iterative_hash_gimple_type): Always hash type names.
9161
dde05067
NF
91622011-05-23 Nathan Froyd <froydnj@codesourcery.com>
9163
9164 * c-typeck.c (build_function_call_vec): Tweak call to
9165 check_function_arguments.
9166
094f6ab3
RG
91672011-05-23 Richard Guenther <rguenther@suse.de>
9168
9169 PR tree-optimization/49115
9170 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
9171 is not necessarily carried out, do not claim it kills the ref.
9172 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
9173
9a9822e1
RG
91742011-05-23 Richard Guenther <rguenther@suse.de>
9175
9176 PR middle-end/15419
9177 * builtins.c (fold_builtin_memory_op): Be less restrictive about
9178 what pointer types we accept for folding.
9179
c8028650
RO
91802011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9181
9182 * gthr-gnat.c: Remove.
9183 * gthr-gnat.h: Remove.
9184 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
9185 * config/t-freebsd (LIB2ADDEH): Likewise.
9186 * config/t-linux (LIB2ADDEH): Likewise.
9187 * config/t-sol2 (LIB2ADDEH): Likewise.
9188 * config/ia64/t-vms (LIB2ADDEH): Likewise.
9189 * configure.ac (target_thread_file): Remove gnat handling.
9190 * configure: Regenerate.
9191 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
9192
15882fe9
TG
91932011-05-23 Tristan Gingold <gingold@adacore.com>
9194 Eric Botcazou <ebotcazou@adacore.com>
9195
9196 * gcov.c (create_file_names): If no object directory is specified,
9197 keep the directory of the file.
9198
da90c957
RO
91992011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9200
9201 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
9202 * configure: Regenerate.
9203
7bba408b
JJ
92042011-05-23 Jakub Jelinek <jakub@redhat.com>
9205
9206 PR middle-end/48973
9207 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
9208 failed and the comparison has a single bit signed type, use
9209 constm1_rtx instead of const1_rtx for true value.
9210 (do_store_flag): If ops->type is single bit signed type, disable
9211 signel bit test optimization and pass -1 instead of 1 as last
9212 parameter to emit_store_flag_force.
9213
bc69f7ff
TV
92142011-05-23 Tom de Vries <tom@codesourcery.com>
9215
9216 PR target/45098
9217 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
9218 function.
9219 (infer_loop_bounds_from_undefined): Use new function.
9220
29cedf8e
RS
92212011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
9222
9223 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
9224 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
9225 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
9226 and -O0 otherwise.
9227 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
9228
afe8b6ec
EB
92292011-05-22 Eric Botcazou <ebotcazou@adacore.com>
9230
9231 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
9232 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
9233 returns true.
9234
872dab53
RS
92352011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
9236
9237 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
9238
145f6c5b
EB
92392011-05-22 Eric Botcazou <ebotcazou@adacore.com>
9240
9241 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
9242 UNSPEC_MOVE_PIC pattern.
9243
8ac79835
EB
92442011-05-22 Eric Botcazou <ebotcazou@adacore.com>
9245
9246 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
9247 (sparc-*-rtems*): Likewise.
9248 (sparc64-*-elf*): Likewise.
9249 (sparc64-*-rtems*): Likewise.
9250 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
9251 * config/sparc/t-crtin: New file.
9252 * config/sparc/t-sol2 (crti.o): Delete rule.
9253 (crtn.o): Likewise.
9254 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
9255 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
9256 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
9257 (ENDFILE_SPEC): Add crtn.o.
9258
5fb43dd8
TV
92592011-05-22 Tom de Vries <tom@codesourcery.com>
9260
9261 PR middle-end/48689
9262 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
9263 CODE_CONTAINS_STRUCT (TS_COMMON).
9264
ccb1b17b
JJ
92652011-05-22 Jakub Jelinek <jakub@redhat.com>
9266
9267 PR middle-end/49029
9268 * expmed.c (extract_fixed_bit_field): Test whether target can be used
9269 only after deciding which mode to use.
9270
50ad7db2
TV
92712011-05-22 Tom de Vries <tom@codesourcery.com>
9272
9273 PR target/45098
dc0a3366 9274 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
50ad7db2
TV
9275 for call to get_shiftadd_cost.
9276
ef230b38
UB
92772011-05-22 Uros Bizjak <ubizjak@gmail.com>
9278
9279 PR target/49104
9280 * config/i386/cpuid.h (bit_MMXEXT): New define.
9281
15f072f9
NC
92822011-05-22 Nick Clifton <nickc@redhat.com>
9283
9284 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
9285 initialisation of non-existant args[2] element. Use args[] array
9286 not arg[] array to pass arguments to build_function_type_list.
9287
e38fdc94
IR
92882011-05-22 Ira Rosen <ira.rosen@linaro.org>
9289
9290 PR tree-optimization/49087
ef230b38 9291 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
e38fdc94 9292
5b018c65
JM
92932011-05-21 Jason Merrill <jason@redhat.com>
9294
9295 PR c++/49092
9296 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
9297 static storage duration.
9298
abd9a770
EB
92992011-05-21 Eric Botcazou <ebotcazou@adacore.com>
9300
9301 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
9302 frame pointer.
9303
bd9a3248
EB
93042011-05-21 Eric Botcazou <ebotcazou@adacore.com>
9305
9306 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
9307 false if there are call-saved registers here...
9308 (sparc_can_use_return_insn_p): ...but here instead.
9309 (save_or_restore_regs): Fix thinko.
9310 (sparc_expand_prologue): Use current_function_is_leaf.
9311 (sparc_frame_pointer_required): Likewise.
9312
a5dfec9a
NC
93132011-05-21 Nick Clifton <nickc@redhat.com>
9314
9315 PR target/49098
9316 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
9317
555c3771
NP
93182011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
9319
9320 * gengtype.c (walk_type): Implemented "atomic" GTY option.
9321 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
9322
86fa5de4
JM
93232011-05-21 Joseph Myers <joseph@codesourcery.com>
9324
9325 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
9326 * optc-gen.awk: Move common code to opt-read.awk.
9327 * opth-gen.awk: Likewise.
ef230b38 9328 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
86fa5de4 9329
bce33ab2
NF
93302011-05-20 Nathan Froyd <froydnj@codesourcery.com>
9331
9332 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
9333
e6450c11
TV
93342011-05-20 Tom de Vries <tom@codesourcery.com>
9335
9336 PR target/45098
9337 * tree-ssa-loop-ivopts.c: Include expmed.h.
9338 (get_shiftadd_cost): New function.
9339 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
9340
0e8b84ec
JJ
93412011-05-20 Jakub Jelinek <jakub@redhat.com>
9342
9343 PR bootstrap/49086
9344 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
9345 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
9346
946bdf67
JM
93472011-05-20 Joseph Myers <joseph@codesourcery.com>
9348
9349 * Makefile.in: Update comment referring to $(OBJS-common).
9350
c53aafdf
ILT
93512011-05-20 Ian Lance Taylor <iant@google.com>
9352
9353 * godump.c (go_output_typedef): Put enum constants in the macro
9354 hash table to avoid duplicate Go const definitions.
9355
2691e6d7
JM
93562011-05-20 Joseph Myers <joseph@codesourcery.com>
9357
9358 * Makefile.in (LIBDEPS): Add libcommon.a.
9359 (LIBS): Likewise.
9360 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
9361 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
9362 pretty-print.o and version.o.
9363 (OBJS-libcommon): New.
9364 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
9365 (BACKEND): Add libcommon.a.
9366 (MOSTLYCLEANFILES): Likewise.
9367 (libcommon.a): New.
9368 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
9369 (cpp$(exeext)): Likewise.
9370 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
9371 pretty-print.o and input.o.
9372 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
9373 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
9374 (errors.o): Remove.
9375 (mips-tfile): Don't explicitly use version.o.
9376 (mips-tdump): Likewise.
9377 (gcov.o): Depend on $(DIAGNOSTIC_H).
9378 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
9379 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
9380 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
9381 * gcov-dump.c: Include intl.h and diagnostic.h.
9382 (main): Initialize diagnostics.
9383 * gcov.c: Include diagnostic.h.
9384 (fnotice): Remove.
9385 (main): Initialize diagnostics.
9386 * lto-wrapper.c: Include diagnostic.h.
9387 (main): Initialize diagnostics.
9388
252b3e8c
MM
93892011-05-20 Michael Matz <matz@suse.de>
9390
9391 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
9392
2ee36ba6
MM
93932011-05-20 Michael Matz <matz@suse.de>
9394 Richard Guenther <rguenther@suse.de>
9395
9396 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
9397 use lto_streamer_cache_append directly instead of returning a VEC.
9398 (preload_common_node): Remove.
9399 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
9400 track seen nodes.
9401 (lto_streamer_cache_create): Call lto_preload_common_nodes.
9402
90ff582f
RG
94032011-05-20 Richard Guenther <rguenther@suse.de>
9404
9405 PR tree-optimization/49079
9406 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
9407 MEM_REFs correctly for the trailing array access detection.
9408 Special case constants the same way as decls for overall size
9409 constraining.
9410
3cda91d8
UB
94112011-05-20 Uros Bizjak <ubizjak@gmail.com>
9412
9413 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
9414 argument expansion.
9415
6c66f733
JJ
94162011-05-20 Jakub Jelinek <jakub@redhat.com>
9417
9418 PR tree-optimization/49073
3cda91d8
UB
9419 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
9420 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
6c66f733
JJ
9421 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
9422
0ea80a16
RG
94232011-05-20 Richard Guenther <rguenther@suse.de>
9424
9425 PR middle-end/48849
9426 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
9427 of pointer types the same way the middle-end does.
9428
fb291a1e
RG
94292011-05-20 Richard Guenther <rguenther@suse.de>
9430
3cda91d8
UB
9431 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
9432 or pointer-to chains. Delay all fixup to uniquify_nodes.
fb291a1e 9433
37cb25ed
QN
94342011-05-19 Quentin Neill <quentin.neill@amd.com>
9435
9436 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
9437 (fma4_fmaddsub): Likewise
9438
a30726a4
JH
94392011-05-19 Jan Hubicka <jh@suse.cz>
9440
9441 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
9442 (GIMPLE_TYPE_PAIR_SIZE): New macro.
9443 (type_pair_cache): New static var.
9444 (lookup_type_pair): Use fixed sized custom hash; make inline.
9445 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
9446 calls of lookup_type_pair.
9447 (print_gimple_types_stats): Remove cache stats.
9448 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
9449 and gtc_ob.
9450
0955cf61
UB
94512011-05-19 Uros Bizjak <ubizjak@gmail.com>
9452
9453 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
9454 when TARGET_RDRND is active.
9455 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
9456 Generate dummy SImode target register when target is NULL.
9457
12d844c8
JM
94582011-05-19 Joseph Myers <joseph@codesourcery.com>
9459
9460 * config/arm/arm-fpus.def: New.
9461 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
9462 arm-fpus.def.
9463 * config/arm/arm-tables.opt: Regenerate.
9464 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
9465 (arm_option_override): Don't decode FPU name to string here.
9466 * config/arm/arm.opt (mfpu=): Use Enum.
9467 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
9468 Update dependencies.
9469
9e350e99
JM
94702011-05-19 Joseph Myers <joseph@codesourcery.com>
9471
9472 * collect2.c: Include diagnostic.h.
9473 (fatal_perror, fatal, error, fancy_abort): Remove.
9474 (main): Set progname. Call xmalloc_set_program_name and
9475 diagnostic_initialize.
9476 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
9477 scan_libraries, resolve_lib_name): Call fatal_error instead of
9478 fatal and fatal_perror.
9479 * collect2.h (error, fatal, fatal_perror): Don't declare.
9480 * tlink.c: Include diagnostic-core.h.
9481 (recompile_files): Call fatal_error instead of fatal_perror.
9482 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
9483 pretty-print.o and input.o.
9484 (collect2.o, tlink.o): Update dependencies.
9485
86ff4081
RO
94862011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9487
9488 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
9489
2ca48caa
RO
94902011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9491
9492 PR target/40483
9493 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
9494 COMDAT group syntax, both SPARC and x86 variants.
9495 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
9496 * configure: Regenerate.
9497 * config/sol2.h (TARGET_SOLARIS): Define.
9498 (PUSHSECTION_FORMAT): Remove.
9499 (SECTION_NAME_FORMAT): Define.
9500 * config/sol2.c: Include hashtab.h.
9501 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
9502 expansion, using SECTION_NAME_FORMAT.
9503 (solaris_comdat_htab): New variable.
9504 (struct comdat_entry): Define.
9505 (comdat_hash): New function.
9506 (comdat_eq): New function.
9507 (solaris_elf_asm_comdat_section): New function.
9508 (solaris_define_comdat_signature): New function.
9509 (solaris_code_end): New function.
9510 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
9511 (solaris_code_end): Declare.
9512 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
9513 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
9514 solaris_code_end.
9515 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
9516 Remove ATTRIBUTE_UNUSED.
9517 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
9518 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
0955cf61 9519 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2ca48caa
RO
9520 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
9521 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
9522 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
9523 (PUSHSECTION_FORMAT): Remove.
9524 (SECTION_NAME_FORMAT): Redefine.
9525
da5fb469
KT
95262011-05-19 Kai Tietz <ktietz@redhat.com>
9527
9528 * tree-cfg.c (verify_gimple_assign_binary): Barf on
9529 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
9530 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
9531
1651e703 95322011-05-19 Anatoly Sokolov <aesok@post.ru>
0967b228
AS
9533 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9534
9535 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
9536
e497b9bd
RG
95372011-05-19 Richard Guenther <rguenther@suse.de>
9538
9539 PR middle-end/48985
9540 * tree-object-size.c (addr_object_size): If the pointed-to
9541 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
9542
31b3ca64
RG
95432011-05-19 Richard Guenther <rguenther@suse.de>
9544
9545 * gimple.c (gimple_types_compatible_p_1): Compare names of
9546 the types themselves.
9547 (iterative_hash_gimple_type): And hash them that way.
9548 (gimple_register_type_1): If we register a main variant properly
9549 initialize the leader to ourselves.
9550
bb8d292d
TV
95512011-05-19 Tom de Vries <tom@codesourcery.com>
9552
9553 PR target/45098
9554 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
9555 get_loop_invariant_expr_id.
9556 (get_loop_invariant_expr_id): Use get_expr_id.
9557 (parm_decl_cost): New function.
9558 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
9559 Improve bound cost estimation. Use different inv_expr_id for elim and
9560 express cases.
9561
a53c5024
TV
95622011-05-19 Tom de Vries <tom@codesourcery.com>
9563
9564 PR target/45098
9565 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
9566 cost_base.cost == 0.
9567
31f9eb59
L
95682011-05-18 H.J. Lu <hongjiu.lu@intel.com>
9569
9570 PR target/49002
66bd20e7
EB
9571 * config/i386/sse.md
9572 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
9573 load cast.
31f9eb59 9574
681056ae
JJ
95752011-05-18 Jakub Jelinek <jakub@redhat.com>
9576
9577 PR tree-optimization/49039
9578 * tree-vrp.c (extract_range_from_binary_expr): For
9579 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
9580 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
9581
b5ee6752
TV
95822011-05-18 Tom de Vries <tom@codesourcery.com>
9583
9584 PR target/45098
9585 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
9586
0bda47a3
UB
95872011-05-18 Uros Bizjak <ubizjak@gmail.com>
9588
9589 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
9590 (*tls_global_dynamic_64): Ditto.
9591 (*tls_local_dynamic_base_32_gnu): Ditto.
9592 (*tls_local_dynamic_base_64): Ditto.
9593 (tls_initial_exec_64_sun): Ditto.
9594
033b0805
SH
95952011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
9596
9597 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
9598 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
9599 bf592-none.
9600 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
9601 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
9602 * config/bfin/bfin.c (bfin_cpus): Add bf592.
9603 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
0bda47a3 9604 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
033b0805
SH
9605 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
9606 * config/bfin/elf.h (LIB_SPEC): Add bf592.
9607
ba163417
JM
96082011-05-18 Joseph Myers <joseph@codesourcery.com>
9609
9610 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
0bda47a3 9611 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
ba163417
JM
9612 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
9613 target_thread_pointer, arm_structure_size_boundary, struct
9614 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
9615 struct abi_name, arm_all_abis): Remove.
0bda47a3
UB
9616 (arm_option_override) Don't process most enumerated option values here.
9617 Don't process target_fpe_name here. Work with integer not string for
9618 structure size boundary; use separate diagnostics for each case.
ba163417
JM
9619 * config/arm/arm.h (enum float_abi_type, enum
9620 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
9621 to arm-opts.h.
9622 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
9623 arm_structure_size_boundary): Remove.
9624 * config/arm/arm.opt (mabi=): Use Enum and Init.
9625 (arm_abi_type): New Enum and EnumValue entries.
9626 (mfloat-abi=): Use Enum and Init.
9627 (float_abi_type): New Enum and EnumValue entries.
0bda47a3 9628 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
ba163417
JM
9629 (mfp16-format=): Use Enum and Init.
9630 (arm_fp16_format_type): New Enum and EnumValue entries.
9631 (mstructure-size-boundary=): Use UInteger and Init.
9632 (mtp=): Use Enum and Init.
9633 (arm_tp_type): New Enum and EnumValue entries.
9634
179184e3
RG
96352011-05-18 Richard Guenther <rguenther@suse.de>
9636
9637 PR tree-optimization/49018
9638 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
9639 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
9640 gimple_has_side_effects.
9641
93b2a207
RG
96422011-05-18 Richard Guenther <rguenther@suse.de>
9643
9644 * gimple.c (gimple_register_type_1): New function, split out from ...
9645 (gimple_register_type): ... here. Avoid infinite recursion.
9646
b010117a
IR
96472011-05-18 Ira Rosen <ira.rosen@linaro.org>
9648
9649 PR tree-optimization/41881
9650 * tree-vectorizer.h (struct _loop_vec_info): Add new field
9651 reduction_chains along with a macro for its access.
9652 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
9653 (destroy_loop_vec_info): Free reduction chains.
9654 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
9655 (vect_is_slp_reduction): New function.
9656 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
9657 (vect_create_epilog_for_reduction): Support SLP reduction chains.
9658 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
9659 definition types for reduction chains.
9660 (vect_supported_load_permutation_p): Don't allow permutations for
9661 reduction chains.
9662 (vect_analyze_slp_instance): Support reduction chains.
9663 (vect_analyze_slp): Try to build SLP instance from reduction chains.
9664 (vect_get_constant_vectors): Handle reduction chains.
9665 (vect_schedule_slp_instance): Mark the first statement of the
9666 reduction chain as reduction.
9667
e14c1050
IR
96682011-05-18 Ira Rosen <ira.rosen@linaro.org>
9669
9670 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
9671 names for group elements access.
9672 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
9673 reduction chains as well. Remove data reference and interleaving
9674 related words from the fields names.
9675 * tree-vect-loop.c (vect_transform_loop): Use new names for group
9676 elements access.
9677 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
9678 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
9679 vect_update_interleaving_chain, vect_same_range_drs,
9680 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
9681 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
9682 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
9683 vect_analyze_group_access, vect_analyze_data_ref_access,
9684 vect_create_data_ref_ptr, vect_transform_strided_load,
9685 vect_record_strided_load_vectors): Likewise.
9686 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
9687 vect_model_load_cost, vectorizable_store, vectorizable_load,
9688 vect_remove_stores, new_stmt_vec_info): Likewise.
9689 * tree-vect-slp.c (vect_build_slp_tree,
9690 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
9691
51c213f7
RG
96922011-05-18 Richard Guenther <rguenther@suse.de>
9693
9694 PR middle-end/48989
9695 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
9696 operand verification.
9697 (verify_gimple_assign_binary): Likewise.
9698 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
9699 to non-1-precision BOOLEAN_TYPEs.
9700
8f5e5434
TV
97012011-05-18 Tom de Vries <tom@codesourcery.com>
9702
9703 PR target/45098
9704 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
9705
116bc3a4
JJ
97062011-05-18 Jakub Jelinek <jakub@redhat.com>
9707
9708 PR tree-optimization/49000
9709 * tree-ssa.c (execute_update_addresses_taken): Call
9710 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
9711 be rewritten and decl has been marked for renaming, reset
9712 the debug stmt.
9713
26a8964c
JM
97142011-05-17 Joseph Myers <joseph@codesourcery.com>
9715
9716 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
9717 enum_opts_set when testing if attributes have set -mfpmath=.
9718
82bd45d7
RS
97192011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
9720
9721 * config/mips/mips.c (mips_handle_option): Remove unused variable.
9722
267ffce3
UB
97232011-05-17 Uros Bizjak <ubizjak@gmail.com>
9724
9725 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
9726 info->entry with 0
9727 * tree-inline.c (maybe_inline_call_in_expr): Initialize
9728 id.transform_lang_insert_block with NULL.
9729
97302011-05-17 Uros Bizjak <ubizjak@gmail.com>
d9403b0d
UB
9731
9732 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
9733 (output_fp_compare): Change args 3 and 4 to bool.
9734 (ix86_expand_call): Change arg 6 to bool.
9735 (ix86_attr_length_immediate_default): Change arg 2 to bool.
9736 (ix86_attr_length_vex_default): Change arg 3 to bool.
9737 * config/i386/i386.md: Update all uses.
9738 * config/i386/i386.c: Ditto.
9739 (ix86_flags_dependent): Change return type to bool.
9740
5beaf664
RG
97412011-05-17 Richard Guenther <rguenther@suse.de>
9742
9743 * gimple.c (type_hash_pair_compare): Fix comparison.
9744
008bad7a
RG
97452011-05-17 Richard Guenther <rguenther@suse.de>
9746
9747 * gimple.c (iterative_hash_gimple_type): Simplify singleton
9748 case some more, fix final hash value of the non-singleton case.
9749
36461340
RG
97502011-05-17 Richard Guenther <rguenther@suse.de>
9751
9752 PR bootstrap/49013
9753 Revert
9754 2011-05-16 Richard Guenther <rguenther@suse.de>
9755
9756 * gimple.c (gimple_types_compatible_p_1): Use names of the
9757 type itself, not its main variant.
9758 (iterative_hash_gimple_type): Likewise.
9759
6b6a59f3
RG
97602011-05-17 Richard Guenther <rguenther@suse.de>
9761
9762 * gimple.c (gimple_register_canonical_type): Use the main-variant
9763 leader for computing the canonical type.
9764
4ffc4134
NC
97652011-05-17 Nick Clifton <nickc@redhat.com>
9766
a1d8754e
NC
9767 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
9768 moves.
9769
4ffc4134
NC
9770 * config/rx/rx.md: Add peephole to remove redundant extensions
9771 after loads.
39960f7a
NC
9772 (bitset_in_memory): Use rx_restricted_mem_operand.
9773 (bitinvert_in_memory): Likewise.
9774 (bitclr_in_memory): Likewise.
4ffc4134 9775
b3db92ac
KI
97762011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
9777 Nick Clifton <nickc@redhat.com>
9778
9779 * config/rx/rx.md: Add peepholes to match a register move followed
9780 by a comparison of the moved register. Replace these with an
9781 addition of zero that does both actions in one instruction.
9782
8637e32a
JJ
97832011-05-17 Jakub Jelinek <jakub@redhat.com>
9784
9785 PR target/48986
9786 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
9787 predicate to allow CONST_INT.
9788 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
9789
8023568e
JM
97902011-05-16 Joseph Myers <joseph@codesourcery.com>
9791
9792 * opts-common.c (opt_enum_arg_to_value): New.
9793 * opts.h (opt_enum_arg_to_value): Declare.
9794 * config/i386/i386.opt (fpmath): Remove.
9795 (mfpmath=): Use Enum, Init and Save.
9796 (fpmath_unit): New Enum and EnumValue entries.
9797 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
9798 name for function fpmath state.
9799 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
9800 * config/i386/i386.c: Include diagnostic.h.
9801 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
d9403b0d 9802 (ix86_target_string): Take enum fpmath_unit value instead of string.
8023568e 9803 (ix86_debug_options): Update call to ix86_target_string.
d9403b0d 9804 (ix86_option_override_internal): Don't process fpmath strings here.
8023568e
JM
9805 (x86_function_specific_save, ix86_function_specific_restore):
9806 Don't handle fpmath state specially.
9807 (ix86_function_specific_print): Pass fpmath state to
9808 ix86_target_string instead of printing in this function.
9809 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
9810 Handle enum attributes.
9811 (IX86_ATTR_ENUM, ix86_opt_enum): New.
9812 (ix86_valid_target_attribute_tree): Update option_strings
9813 handling. Handle fpmath as enum option.
9814 (ix86_can_inline_p): Update field names for function fpmath state.
9815 (ix86_expand_builtin): Update call to ix86_target_string.
9816 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
9817 (ix86_fpmath): Remove.
9818 * config/i386/t-i386 (i386.o): Update dependencies.
9819
9e8d926e
JM
98202011-05-16 Joseph Myers <joseph@codesourcery.com>
9821
9822 PR preprocessor/48677
9823 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
9824 from decoded_options[0], not from itself.
9825
f6449011
UB
98262011-05-16 Uros Bizjak <ubizjak@gmail.com>
9827
9828 * config/i386/constraints.md (z): New constraint.
9829 * config/i386/i386.c (c): New mode attribute.
9830 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
9831 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
9832 constraint for operand 0.
9833 (*call_vzeroupper): Ditto.
9834 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
9835 (*call_rex64_ms_sysv_vzeroupper): Ditto.
9836 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
9837 Use "lzm" constraint for operand 0.
9838 (*call_pop_vzeroupper): Ditto.
9839 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
9840 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
9841 constraint for operand 0.
9842 (*sibcall_vzeroupper): Ditto.
9843 (*sibcall_rex64_ms_sysv): Ditto.
9844 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
9845 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
9846 *sibcall_pop_1. Use "Uz" constraint for operand 0.
9847 (*sibcall_pop_vzeroupper): Ditto.
9848 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
9849 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
9850 mode iterator. Use "<c>zm" constraint for operand 1.
9851 (*call_value_vzeroupper): Ditto.
9852 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
d9403b0d 9853 for operand 1.
f6449011
UB
9854 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
9855 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
9856 *call_value_pop_1. Use "lzm" constraint for operand 1.
9857 (*call_value_pop_vzeroupper): Ditto.
9858 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
9859 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
9860 mode iterator. Use "Uz" constraint for operand 1.
9861 (*sibcall_value_vzeroupper): Ditto.
9862 (*sibcall_value_rex64_ms_sysv): Ditto.
9863 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
9864 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
9865 constraint for operand 1.
9866 (*sibcall_value_pop_vzeroupper): Ditto.
9867 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
9868 and "z" constraint for operand 2.
9869 (*tls_global_dynamic_32_gnu): Ditto.
9870 (*tls_local_dynamic_base_32_gnu): Ditto.
9871 (*tls_local_dynamic_base_64): Ditto.
9872 (*tls_local_dynamic_32_once): Ditto.
9873 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
9874 Update all callers.
9875 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
9876
c11b6902
RG
98772011-05-16 Richard Guenther <rguenther@suse.de>
9878
9879 * gimple.c (gimple_types_compatible_p_1): Use names of the
9880 type itself, not its main variant.
9881 (iterative_hash_gimple_type): Likewise.
9882
1e83b5f1
RG
98832011-05-16 Richard Guenther <rguenther@suse.de>
9884
f6449011
UB
9885 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
9886 always visit pointer target and function result and argument types.
1e83b5f1 9887
62e36382
JM
98882011-05-16 Jason Merrill <jason@redhat.com>
9889
9890 PR c++/48999
9891 * tree-inline.c (copy_statement_list): Put back recursion.
9892
687027a4
GJL
98932011-05-16 Georg-Johann Lay <avr@gjlay.de>
9894
9895 PR target/27663
9896 PR target/41076
9897 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
9898 * config/avr/avr.md ("*ior<mode>qi.byte0",
9899 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
9900
f24a5190
GJL
99012011-05-16 Georg-Johann Lay <avr@gjlay.de>
9902
9903 PR target/45099
9904 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
9905 register is needed for a function argument.
9906
3066f593
RG
99072011-05-16 Richard Guenther <rguenther@suse.de>
9908
9909 * gimple.c (struct type_hash_pair): New type.
9910 (type_hash_pair_compare): New function.
f6449011 9911 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
3066f593 9912
b2ab2cf4
RE
99132011-05-16 Revital Eres <revital.eres@linaro.org>
9914
f6449011 9915 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
b2ab2cf4 9916
dfb737fc
UB
99172011-05-15 Uros Bizjak <ubizjak@gmail.com>
9918
9919 * config/i386/i386.md (floating point move splitters): Fix
9920 usage of standard_80387_constant_p.
f6449011 9921 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
dfb737fc 9922
8caa1de0
UB
99232011-05-15 Uros Bizjak <ubizjak@gmail.com>
9924
9925 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
9926
8a519095
EB
99272011-05-14 Eric Botcazou <ebotcazou@adacore.com>
9928
9929 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
9930 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
9931 (tree_ssa_lim_finalize): Likewise.
9932
479fecd3
UB
99332011-05-14 Uros Bizjak <ubizjak@gmail.com>
9934
9935 * config/i386/constraint.md (Yd, Yx): New register constraints.
9936 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
9937 Yd conditional register constraint.
9938 (*movtf_internal): Use standard_sse_constant_opcode.
9939 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
9940 Yx conditional register constraint.
9941 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
9942 Yd conditional register constraint. Use standard_sse_constant_p to
9943 check for valid SSE constants and call standard_sse_constant_opcode to
9944 output SSE insn.
9945 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
9946 constants and call standard_sse_constant_opcode to output SSE insn.
9947 * config/i386/i386.c (ix86_option_ovverride_internal): Set
9948 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
9949 optimize_size is set.
9950 (standard_sse_constant_opcode): Output conditional AVX insn templates.
9951
2d8c9ad5
TB
99522011-05-14 Tobias Burnus <burnus@net-b.de>
9953
9954 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
9955
411a20d6
MJ
99562011-05-13 Martin Jambor <mjambor@suse.cz>
9957
9958 * ipa-prop.c (ipa_cst_from_jfunc): New function.
9959 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
9960 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
9961 (evaluate_conditions_for_ipcp_clone): Removed.
9962 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
9963 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
9964 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
9965
dc764d10
EB
99662011-05-13 Eric Botcazou <ebotcazou@adacore.com>
9967
9968 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
9969 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
9970 lieu of MAY_HAVE_DEBUG_STMTS.
9971 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
9972 debug statements if !MAY_HAVE_DEBUG_STMTS.
9973
9f47a24e
MT
99742011-05-13 Martin Thuresson <martint@google.com>
9975
9976 PR gcov-profile/47793
9977 * libgcov.c (gcov_exit): Support relative profile paths.
9978 * doc/invoke.texi (-fprofile-dir): Update for above change.
9979
b8a71aed
RG
99802011-05-13 Richard Guenther <rguenther@suse.de>
9981
9982 * gimple.c (gimple_canonical_types_compatible_p): Do not use
9983 type-pair caching, do not compare hashes.
9984
eb9f9259
NF
99852011-05-13 Nathan Froyd <froydnj@codesourcery.com>
9986
9987 PR middle-end/48965
9988 * tree-cfg.c (edge_to_cases_cleanup): Return true.
9989 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
9990
3c6cbf7a
KT
99912011-05-13 Kai Tietz <ktietz@redhat.com>
9992
9993 * gimplify.c (gimplify_expr): Make sure operand is boolified.
9994 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
9995 compatible type for TRUTH_NOT_EXPR.
9996
2e7f5dc0
L
99972011-05-13 H.J. Lu <hongjiu.lu@intel.com>
9998
dc764d10 9999 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2e7f5dc0
L
10000 (ix86_hard_regno_mode_ok): Change return value to bool. Use
10001 can_create_pseudo_p ().
10002
e834e95c
RG
100032011-05-13 Richard Guenther <rguenther@suse.de>
10004
10005 PR lto/48978
10006 * gimple.c (iterative_hash_gimple_type): Revert change in
10007 pointer target and function result and argument hashing.
10008
34203483
UB
100092011-05-13 Uros Bizjak <ubizjak@gmail.com>
10010
10011 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
10012 (*movxf_internal_nointeger): Ditto.
10013 (*movdf_internal_rex64): Ditto.
10014 (*movdf_internal): Ditto.
10015 (*movdf_internal_nointeger): Ditto.
10016 (*movsf_internal): Ditto.
10017 (sincos splitters): Use can_create_pseudo ().
10018
7eb68c06
JM
100192011-05-13 Joseph Myers <joseph@codesourcery.com>
10020
10021 * config/i386/i386-opts.h: New.
10022 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
10023 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
10024 ix86_section_threshold): Remove.
10025 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
10026 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
10027 OPT_mbranch_cost_.
10028 (ix86_option_override_internal): Don't decode strings for options
10029 other than -march=, -mtune= and -mfpmath=. Don't allow for
10030 __attribute__ uses in remaining diagnostics for options with
34203483 10031 string arguments. Don't check for integer arguments being negative.
7eb68c06 10032 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
34203483 10033 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
7eb68c06
JM
10034 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
10035 ix86_branch_cost, ix86_section_threshold): Remove.
10036 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
10037 HeaderInclude.
10038 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
10039 but not Var.
10040 (masm=): Use Enum and Init.
10041 (asm_dialect): New Enum and EnumValue entries.
10042 (mbranch-cost=): Use UInteger.
10043 (mlarge-data-threshold=): Use UInteger and Init.
10044 (mcmodel=): Use Enum and Init.
10045 (cmodel): New Enum and EnumValue entries.
10046 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
10047 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
10048 mregparm=): Use UInteger.
10049 (mstringop-strategy=): Use Enum and Init.
10050 (stringop_alg): New Enum and EnumValue entries.
10051 (mtls-dialect=): Use Enum and Init.
10052 (tls_dialect): New Enum and EnumValue entries.
10053 (mabi=): Use Enum and Init.
10054 (calling_abi): New Enum and EnumValue entries.
10055 (mveclibabi=): Use Enum and Init.
10056 (ix86_veclibabi): New Enum and EnumValue entries.
10057
f67e203c
NC
100582011-05-13 Nick Clifton <nickc@redhat.com>
10059
34203483
UB
10060 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
10061 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
f67e203c 10062
221df0b6
KT
100632011-05-13 Kai Tietz <ktietz@redhat.com>
10064
10065 PR middle-end/48984
10066 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
10067 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
10068 (gimple_boolify): Check for cast for boolean_type_node instead for
10069 BOOLEAN_TYPE.
10070
208cb8cb
RG
100712011-05-13 Richard Guenther <rguenther@suse.de>
10072
10073 PR tree-optimization/48172
10074 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
10075 multiplying by number of iterations for equal step.
10076 (vect_create_cond_for_alias_checks): Likewise.
10077
b88ecf55
AS
100782011-05-13 Andreas Schwab <schwab@redhat.com>
10079
10080 * configure.ac: Use AS_HELP_STRING throughout.
10081 * configure: Regenerate.
10082
569b527e
L
100832011-05-12 H.J. Lu <hongjiu.lu@intel.com>
10084
34203483 10085 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
569b527e
L
10086 (ix86_emit_restore_regs_using_mov): Likewise.
10087 (ix86_emit_restore_sse_regs_using_mov): Likewise.
10088
8b9a1428
AS
100892011-05-12 Anatoly Sokolov <aesok@post.ru>
10090
10091 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
10092 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
10093 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
10094 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
10095 RTX_OK_FOR_OLO10_P): ...here.
10096 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
10097 SYMBOLIC_CONST.
10098
1d15f620
KT
100992011-05-12 Kai Tietz <ktietz@redhat.com>
10100
10101 * gimplify.c (gimple_boolify): Re-boolify expression
10102 arguments even if expression type is of kind BOOLEAN_TYPE.
10103 (gimplify_boolean_expr): Removed.
10104 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
10105 and XOR. Additional take care that we keep expression's type.
10106 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
10107 of TRUTH_AND|OR|XOR_EXPR.
10108
c2b5fc8d
JJ
101092011-05-12 Jakub Jelinek <jakub@redhat.com>
10110
10111 PR tree-optimization/48975
10112 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
10113 on all bbs here and free and clear ifc_bbs at the end.
10114
61332f77
RG
101152011-05-12 Richard Guenther <rguenther@suse.de>
10116
10117 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
10118 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
10119 until after simple checks.
10120 (gimple_types_compatible_p): Likewise.
10121 (iterative_hash_gimple_type): Always hash pointer targets
10122 and function return and argument types.
10123 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
10124 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
10125 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
10126 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
10127 completely in the simple compare section.
10128 (gimple_register_canonical_type): Query the cache again after
10129 registering.
10130
e2a3a5f1
RG
101312011-05-12 Richard Guenther <rguenther@suse.de>
10132
10133 PR tree-optimization/48172
10134 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
10135 the number of iterations from the segment size calculation.
10136 (vect_create_cond_for_alias_checks): Adjust.
10137
2c703f3a
JJ
101382011-05-12 Jakub Jelinek <jakub@redhat.com>
10139
10140 PR debug/48967
10141 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
10142 if validate_subreg fails.
10143
101442011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
b27981e0
HS
10145
10146 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
10147 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
10148 early.
10149
87e91fca
DD
101502011-05-12 DJ Delorie <dj@redhat.com>
10151
d53903d6 10152 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
87e91fca
DD
10153 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
10154 created builtin into rx_builtins array.
10155 (rx_builtin_decl): New function.
34203483 10156 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
87e91fca 10157
5f2f13fd
DD
101582011-05-12 DJ Delorie <dj@redhat.com>
10159 Nick Clifton <nickc@redhat.com>
10160
10161 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
10162 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
10163 (rx_is_legitimate_address): Add pre-decrement and post-increment
10164 addressing in HImode and QImode. Fix test for out of range
10165 REG+INT addressing.
87e91fca 10166 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
34203483 10167 (rx_align_for_label): Test label before extracting its usage count.
5f2f13fd 10168 (rx_adjust_insn_lengths): Fix selection of insn codes.
87e91fca 10169 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5f2f13fd 10170
57421f45
JM
101712011-05-11 Jason Merrill <jason@redhat.com>
10172
10173 * tree.c (type_hash_canon): Use struct tree_type_non_common.
10174
898c90c0
EB
101752011-05-11 Eric Botcazou <ebotcazou@adacore.com>
10176
10177 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
10178 reindent the subsequent block.
10179
79bec923
ST
101802011-05-11 Satoru Takabayashi <satorux@google.com>
10181 Paul Pluzhnikov <ppluzhnikov@google.com>
10182
34203483 10183 * doc/install.texi (Configuration): Document --with-linker-hash-style.
e77e2cbb
PP
10184 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
10185 * config.in: Add LINKER_HASH_STYLE.
10186 * configure.ac: Add --with-linker-hash-style.
10187 * configure: Regenerate.
79bec923 10188
d0340959
RG
101892011-05-11 Richard Guenther <rguenther@suse.de>
10190
10191 PR middle-end/48964
10192 * gimple.c (iterative_hash_canonical_type): Fix typo.
10193
cb032fee
UB
101942011-05-11 Uros Bizjak <ubizjak@gmail.com>
10195
10196 * config/i386/i386.c (legitimize_tls_address)
479fecd3 10197 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
cb032fee
UB
10198 expanders directly for TARGET_GNU2_TLS. Determine pic and
10199 __tls_get_addr symbol reference here. Update call to
10200 gen_tls_global_dynamic_{32,64} for added arguments.
479fecd3 10201 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
cb032fee
UB
10202 expanders directly for TARGET_GNU2_TLS. Determine
10203 __tls_get_addr symbol reference here. Update call to
10204 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
10205 unique UNSPEC REG_EQUIV to libcall block.
10206 (ix86_tls_get_addr): Declare static.
10207 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
10208 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
10209 Do not determine pic and __tls_get_addr symbol reference here. Do not
10210 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
10211 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
10212 (tls_global_dynamic_64): Add operand 2. Do not determine
10213 __tls_get_addr symbol reference here. Do not call
10214 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
10215 (tls_local_dynamic_base64): Ditto for operand 1.
10216
6d3cc8f0
EB
102172011-05-11 Eric Botcazou <ebotcazou@adacore.com>
10218
10219 * function.c (expand_function_start): Initialize stack_check_probe_note
10220 only if the generic stack checking mechanism is used.
10221
51e020fc
RG
102222011-05-11 Richard Guenther <rguenther@suse.de>
10223
10224 PR tree-optimization/15256
10225 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
10226 (A & B) | C, combine (A op CST1) op CST2.
10227 (tree_ssa_forward_propagate_single_use_vars): Only bother to
10228 visit assigns that have uses.
10229
51545682
NF
102302011-05-11 Nathan Froyd <froydnj@codesourcery.com>
10231
cb032fee 10232 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
51545682
NF
10233 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
10234 (unpack_ts_type_common_value_fields): ...this. Update comment.
10235 (unpack_value_fields): Adjust for renaming.
10236 (lto_input_ts_type_tree_pointers): Split into...
10237 (lto_input_ts_type_common_tree_pointer): ...this and...
10238 (lto_input_ts_type_non_common_tree_pointers): ...this.
10239 (lto_input_tree_pointers): Adjust for above split.
10240 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
10241 (pack_ts_type_common_value_fields): ...this. Update comment.
10242 (lto_output_ts_type_tree_pointers): Split into...
10243 (lto_output_ts_type_common_tree_pointers): ...this and...
10244 (lto_output_ts_type_non_common_tree_pointers): ...this.
10245 (lto_output_tree_pointers): Adjust for above split.
10246 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
10247 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
10248 * stor-layout.c (vector_type_mode): Adjust location of mode field.
10249 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
10250 Define.
10251 (struct tree_type): Split into...
10252 (struct tree_type_common: ...this and...
10253 (struct tree_type_with_lang_specific): ...this and...
10254 (struct tree_type_non_common): ...this. Adjust accessor macros
10255 accordingly.
10256 (TYPE_VALUES_RAW): Define.
10257 (union tree_node): Update for above changes.
10258 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
10259 TS_TYPE_NON_COMMON.
10260 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
10261 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
10262 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
10263 * treestructu.def (TS_TYPE): Remove.
10264 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
10265 Define.
10266
b03c3082
JJ
102672011-05-11 Jakub Jelinek <jakub@redhat.com>
10268
10269 PR debug/48159
10270 * tree-ssa.c (reset_debug_uses): New function.
10271 * tree-flow.h (reset_debug_uses): New prototype.
10272 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
10273 * tree-loop-distribution.c (generate_loops_for_partition): Call
10274 reset_debug_uses on the stmts that will be removed. Keep around
10275 all debug stmts, don't count them as bits in partition bitmap.
10276 (generate_builtin): Don't count debug stmts or labels as bits in
10277 partition bitmap.
10278
b5e04de5
RG
102792011-05-11 Richard Guenther <rguenther@suse.de>
10280
10281 * gimple.c (gimple_type_hash_1): Merge with ...
10282 (gimple_type_hash): ... this.
10283 (gtc_visit): Remove mode parameter and simplify accordingly.
10284 (gimple_types_compatible_p_1): Likewise.
10285 (gimple_types_compatible_p): Likewise.
10286 (iterative_hash_gimple_type): Likewise.
10287 (visit): Likewise.
10288 (gimple_type_eq): Adjust.
10289
fc6970e4
RE
102902011-05-11 Revital Eres <revital.eres@linaro.org>
10291
10292 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
10293 enters the branch create an anti edge in the opposite direction
10294 to prevent the creation of reg-moves.
10295 * modulo-sched.c: Adjust comment to reflect the fact we are
10296 scheduling closing branch.
10297 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
10298 (stage_count): New field in struct partial_schedule.
10299 (calculate_stage_count): New function.
10300 (normalize_sched_times): Rename to reset_sched_times and handle
10301 incrementing the sched time of the nodes by a constant value
10302 passed as parameter.
10303 (duplicate_insns_of_cycles): Skip closing branch.
10304 (sms_schedule_by_order): Schedule closing branch.
10305 (ps_insn_find_column): Handle closing branch.
10306 (sms_schedule): Call reset_sched_times and adjust the code to
10307 support scheduling of the closing branch.
10308 (ps_insert_empty_row): Update calls to normalize_sched_times
10309 and rotate_partial_schedule functions.
10310
41a58a92
RG
103112011-05-11 Richard Guenther <rguenther@suse.de>
10312
10313 PR middle-end/48953
10314 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
10315
e9f8dcf9
JM
103162011-05-11 Joseph Myers <joseph@codesourcery.com>
10317
cb032fee
UB
10318 * opts.c (finish_options): Move warning settings from process_options.
10319 * toplev.c (process_options): Move warning settings to finish_options.
e9f8dcf9 10320
10c224a9
RG
103212011-05-11 Richard Guenther <rguenther@suse.de>
10322
10323 PR tree-optimization/18041
10324 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
10325 (simplify_bitwise_binary): ... this. Handle operand conversions
10326 by applying them to the result instead.
10327 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
10328
825b27de
RG
103292011-05-11 Richard Guenther <rguenther@suse.de>
10330
10331 * gimple.c (gimple_canonical_types_compatible_p): Split out
10332 from gimple_types_compatible_p and friends. Do not recurse
10333 to pointed-to types.
10334 (gimple_canonical_type_eq): Use it.
10335 (iterative_hash_canonical_type): Split out from
10336 iterative_hash_gimple_type and friends. Do not recurse
10337 to pointed-to types.
10338 (gimple_canonical_type_hash): Use it, allocate the hash here.
10339
ca756625
RE
103402011-05-11 Revital Eres <revital.eres@linaro.org>
10341
10342 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
10343 recognizing doloop.
10344
b8abece3
RE
103452011-05-11 Revital Eres <revital.eres@linaro.org>
10346
10347 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
10348 instead of PREV_INSN.
10349
ce7b3761
RE
103502011-05-11 Revital Eres <revital.eres@linaro.org>
10351
10352 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
10353 * loop-doloop.c (doloop_condition_get): Likewise.
10354 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
10355 (doloop_end): New.
10356 * config/arm/arm.md (*addsi3_compare0): Remove "*".
10357
a9dc9d37
NF
103582011-05-10 Nathan Froyd <froydnj@codesourcery.com>
10359
10360 * tree.def (CASE_LABEL_EXPR): Add an operand.
10361 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
10362
96703596
JM
103632011-05-10 Joseph Myers <joseph@codesourcery.com>
10364
10365 * c-decl.c (c_override_global_bindings_to_false): Remove.
10366 (global_bindings_p): Don't check
10367 c_override_global_bindings_to_false.
10368 * c-tree.h (c_override_global_bindings_to_false): Remove.
10369 * c-typeck.c (composite_type): Don't set
10370 c_override_global_bindings_to_false.
10371
dbcc9f08
MM
103722011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
10373
10374 PR target/48857, 48495
10375 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
10376 (VSX_MODE): Ditto.
10377 (VSX_MOVE_MODE): Ditto.
10378 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
10379 VSX vector types. Add V2DImode.
10380 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
10381 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
10382 (MODES_TIEABLE_P): Ditto.
10383
10384 * config/rs6000/rs6000.c (rs6000_emit_move): Use
10385 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
10386 VSX_VECTOR_MODE.
10387 (init_cumulative_args): Ditto.
10388 (rs6000_function_arg_boundary): Ditto.
10389 (rs6000_function_arg_advance_1): Ditto.
10390 (rs6000_function_arg): Ditto.
10391 (rs6000_function_ok_for_sibcall): Ditto.
10392 (emit_frame_save): Ditto.
10393 (rs6000_function_value): Ditto.
10394 (rs6000_libcall_value): Ditto.
10395
4a68b4ca
JM
103962011-05-10 Joseph Myers <joseph@codesourcery.com>
10397
10398 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
10399 i386/darwin-lib.h to $libgcc_tm_file.
10400 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
10401
bcb521e9
JM
104022011-05-10 Joseph Myers <joseph@codesourcery.com>
10403
10404 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
10405
f10d3ac9
JM
104062011-05-10 Joseph Myers <joseph@codesourcery.com>
10407
cb032fee 10408 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
f10d3ac9
JM
10409 * config/rs6000/rs6000-tables.opt: New file (generated).
10410 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
10411 rs6000/rs6000-tables.opt to extra_options.
10412 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
10413 * config/rs6000/rs6000.c (rs6000_select): Remove.
10414 (processor_target_table): Move contents to rs6000-cpus.def.
10415 (darwin_rs6000_override_options): Check
10416 global_options_set.x_rs6000_cpu_index instead of
10417 rs6000_select[1].string.
10418 (rs6000_option_override_internal): Likewise.
10419 (rs6000_handle_option): Don't assert that global structures are in
10420 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
10421 (rs6000_default_cpu): New variable.
10422 (rs6000_file_start): Set it instead of local default_cpu. Check
10423 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
10424 global_options_set.x_rs6000_tune_index instead of rs6000_select.
10425 (rs6000_darwin_file_start): Check rs6000_default_cpu and
10426 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
10427 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
10428 rs6000_select): Remove.
10429 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
10430 Remove.
10431 (mcpu=, mtune=): Use Var, Init, Enum and Save.
10432 * config/rs6000/t-rs6000
10433 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
10434 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
10435 global_options_set.x_rs6000_cpu_index instead of
10436 rs6000_select[1].string.
10437 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
10438 global_options_set.x_rs6000_cpu_index instead of
10439 rs6000_select[1].string.
10440
80cf2e08
JM
104412011-05-10 Joseph Myers <joseph@codesourcery.com>
10442
10443 * config.gcc (libgcc_tm_file): Define instead of including files
10444 from ../../libgcc/config/ in tm_file.
cb032fee 10445 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
80cf2e08
JM
10446 * configure: Regenerate.
10447 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
10448 libgcc_tm.h, cs-libgcc_tm.h): New.
10449 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
10450 (clean): Remove libgcc_tm.h.
10451 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
10452 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
10453 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
10454
fd01a351
GJL
104552011-05-10 Georg-Johann Lay <avr@gjlay.de>
10456
10457 PR target/48896
10458 * config/avr/avr.c (avr_ret_register): Return unsigned int
10459 instead of int.
10460 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
10461 it to avr_libcall_value.
10462 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
10463 expand_expr.
10464 (avr_expand_binop_builtin): Ditto.
10465 (avr_expand_unop_builtin): Ditto.
10466
34cc3c86
DD
104672011-05-10 DJ Delorie <dj@redhat.com>
10468
10469 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
10470 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
10471 * config/rx/rx.c (rx_align_for_label): Add label and
10472 uses_threshold parameters. Do not align when the label is not
10473 used enough.
10474 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
10475
be173289
RG
104762011-05-10 Richard Guenther <rguenther@suse.de>
10477
10478 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
10479 a series of conversions and apply foldings similar to what
10480 fold-const does.
10481 (tree_ssa_forward_propagate_single_use_vars): Call it.
10482
e7f78021
JJ
104832011-05-10 Jakub Jelinek <jakub@redhat.com>
10484
6ae70ea2
JJ
10485 PR tree-optimization/48611
10486 PR tree-optimization/48794
10487 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
10488 referenced from RESX or EH_DISPATCH arguments.
10489
e7f78021
JJ
10490 PR debug/48928
10491 * dfp.c (decimal_to_decnumber): Handle conversion from
10492 dconst{1,2,m1,half}.
10493
fca132b9
UB
104942011-05-09 Uros Bizjak <ubizjak@gmail.com>
10495
10496 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
10497 for !flag_prefer_avx128.
10498 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
10499
e4c03378
EB
105002011-05-09 Eric Botcazou <ebotcazou@adacore.com>
10501
10502 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
10503 (fold_ternary_loc): Use expr_location_or.
10504
805d6a75
L
105052011-05-09 H.J. Lu <hongjiu.lu@intel.com>
10506
10507 PR debug/48853
10508 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
10509 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
10510 Pmode and mem_mode is not VOIDmode.
10511
e4c03378 105122011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
b5da71d4 10513
e4c03378
EB
10514 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
10515 TYPE_QUAL_RESTRICT): Convert to enum.
b5da71d4 10516
51e7f377
UB
105172011-05-09 Uros Bizjak <ubizjak@gmail.com>
10518
10519 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
10520 (const_pow2_1_to_8_operand): Ditto.
10521 (const_pow2_1_to_128_operand): Ditto.
10522 (const_pow2_1_to_32768_operand): Ditto.
10523 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
10524 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
10525 in insn constraint to check integer value of operand 3.
10526 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
10527
10528 (PINSR_MODE): New mode iterator.
10529 (sse2p4_1): New mode attribute.
10530 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
10531 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
10532 iterator. Use const_int_operand instead of
10533 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
10534 exact_log2 in insn constraint to check integer value of operand 3.
10535
105362011-05-09 Uros Bizjak <ubizjak@gmail.com>
10537
10538 * config/i386/sse.md (blendbits): Remove mode attribute.
10539 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
10540 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
10541 Check integer value of operand 3 in insn constraint.
10542
0ca8de87
RG
105432011-05-09 Richard Guenther <rguenther@suse.de>
10544
10545 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
10546 for diagnostics.
10547 (lto_symtab_merge): Likewise. Do not register types here.
10548 (lto_symtab_merge_decls_2): Likewise.
10549 (lto_symtab_merge_decls_1): Likewise.
10550 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
10551 * gimple.c (enum gtc_mode): Declare.
10552 (gimple_types_compatible_p): Make static.
10553
a9e6994a
AK
105542011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10555
10556 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
10557 temporary register to match Pmode.
10558
fb55d62e
UB
105592011-05-09 Uros Bizjak <ubizjak@gmail.com>
10560
10561 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
10562 and *vec_concatv4si_1_avx.
10563
eb1485a6
UB
105642011-05-09 Uros Bizjak <ubizjak@gmail.com>
10565
10566 PR rtl-optimization/48927
10567 * ira-conflicts.c (commutative_constraint_p): Use
10568 recog_data.alternative_enabled_p to disable alternatives where
10569 "enabled" attribute is false.
10570 (get_dup_num): Ditto.
10571 * ira-lives.c (single_reg_class): Ditto.
10572 (ira_implicitly_set_insn_hard_regs): Ditto.
10573
c46d001a
EB
105742011-05-09 Eric Botcazou <ebotcazou@adacore.com>
10575
10576 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
10577 (dataflow_set_preserve_mem_locs): Likewise.
10578
105792011-05-09 Philipp Thomas <pth@suse.de>
10580
6d9e7c41
PT
10581 * config/mep/mep.c (mep_validate_vliw): Syntax description
10582 should not be translated.
10583
d371df6f
JM
105842011-05-09 Joseph Myers <joseph@codesourcery.com>
10585
10586 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
10587 * config/mips/mips-tables.opt: New file (generated).
eb1485a6 10588 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
d371df6f
JM
10589 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
10590 MIPS_ARCH_OPTION_NATIVE): Define.
10591 * config/mips/mips.c (mips_cpu_info_table): Move contents to
10592 mips-cpus.def.
10593 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
10594 mips_parse_cpu): Remove.
10595 (mips_cpu_info_from_opt, mips_default_arch): New.
10596 (mips_handle_option): Don't assert that global structures are in
10597 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
10598 (mips_option_override): Use new variables and functions to set
eb1485a6 10599 state of these options. Use strcmp to check for individual CPU names.
d371df6f
JM
10600 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
10601 definition.
10602 * config/mips/mips.opt (march=): Use ToLower and Enum.
10603 (mips): Use ToLower, Enum and Var.
10604 (mtune=): Use ToLower and Enum.
10605 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
10606
4fc07af9
JH
106072011-05-08 Jan Hubicka <jh@suse.cz>
10608
10609 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
10610 Arrange type pairs to be UID ordered.
10611 (gimple_lookup_type_leader): Make inline.
10612
2cf320a8
NC
106132011-05-09 Nick Clifton <nickc@redhat.com>
10614
61d6def5
NC
10615 PR target/48899
10616 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
10617 PROCESSOR_DEFAULT.
10618
2cf320a8
NC
10619 PR target/48897
10620 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
10621 variable 's'.
10622
4f82319d
CLT
106232011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
10624
10625 * combine.c (simplify_comparison): Abstract out parts into...
10626 (simplify_compare_const): ... new function.
10627 (try_combine): Generalize parallel arithmetic/compare combining
10628 to call simplify_compare_const() and CANONICALIZE_COMPARE().
10629
74605a11
JH
106302011-05-08 Jan Hubicka <jh@suse.cz>
10631
10632 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
eb1485a6
UB
10633 (cgraph_create_virtual_clone): Call hooks once virtual clone
10634 is finished.
74605a11 10635 * cgraph.h (cgraph_clone_node): Update prototype.
eb1485a6
UB
10636 * ipa-cp.c (ipcp_estimate_growth): Use
10637 estimate_ipcp_clone_size_and_time.
74605a11
JH
10638 * ipa-inline-transform.c (clone_inlined_nodes): Update.
10639 * lto-cgraph.c (input_node): Update.
10640 * ipa-inline.c (recursive_inlining): Update.
10641 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
10642 (evaluate_conditions_for_known_args): Break out from ...
10643 (evaluate_conditions_for_edge): ... here.
10644 (evaluate_conditions_for_ipcp_clone): New function.
10645 (inline_node_duplication_hook): Update clone summary based
10646 on parameter map.
10647 (estimate_callee_size_and_time): Rename to ...
10648 (estimate_node_size_and_time): take NODE instead of EDGE;
10649 take POSSIBLE_TRUTHS as argument.
10650 (estimate_callee_size_and_time): Update.
10651 (estimate_ipcp_clone_size_and_time): New function.
10652 (do_estimate_edge_time): Update.
10653
5c049507
RG
106542011-05-08 Richard Guenther <rguenther@suse.de>
10655
10656 PR middle-end/48908
10657 PR middle-end/48905
10658 * expmed.c (expand_shift_1): Compute adjusted constant shift
10659 amount manually.
10660
f64c36ba
EB
106612011-05-08 Eric Botcazou <ebotcazou@adacore.com>
10662
10663 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
10664
c461a957
EB
106652011-05-08 Eric Botcazou <ebotcazou@adacore.com>
10666
10667 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
10668
7c74e556
JW
106692011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
10670
10671 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
10672
b4c0a884
JH
106732011-05-07 Jan Hubicka <jh@suse.cz>
10674
a9bcb3f0
EB
10675 * ipa-inline-transform.c (inline_call): Account when program size
10676 decreases.
b4c0a884 10677 * ipa-inline.c (relative_time_benefit): New function.
a9bcb3f0
EB
10678 (edge_badness): Reorganize to be power 2 based; fix thinko when
10679 computing badness for negative growth; update comments to match
10680 reality; better dumps.
b4c0a884 10681
c99c0026
EB
106822011-05-07 Eric Botcazou <ebotcazou@adacore.com>
10683
10684 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
10685 type to bool and adjust comment.
10686 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
10687 (fold_mathfn_compare): Remove calls to global_bindings_p.
10688 (fold_inf_compare): Likewise.
10689 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
10690 * c-tree.h (global_bindings_p): Adjust prototype.
10691 * c-decl.c (global_bindings_p): Return bool and simplify.
10692
1400c8e5
ZD
106932011-05-07 Zdenek Dvorak <ook@ucw.cz>
10694
10695 PR tree-optimization/48837
10696 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
10697 when accumulator transformation is performed.
10698
5d0878e7
JH
106992011-05-06 Jan Hubicka <jh@suse.cz>
10700
a9bcb3f0
EB
10701 * i386.h (ix86_tune_indices): Add
10702 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
eb1485a6 10703 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
a9bcb3f0
EB
10704 * i386.c (initial_ix86_tune_features): Add
10705 X86_SOFTARE_PREFETCHING_BENEFICIAL.
5d0878e7
JH
10706 (software_prefetching_beneficial_p): Remove predicate.
10707 (ix86_option_override_internal): Use new macro.
10708
58696ce5
JH
107092011-05-06 Jan Hubicka <jh@suse.cz>
10710
10711 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
10712
c47d0034
JH
107132011-05-06 Jan Hubicka <jh@suse.cz>
10714
10715 * cgraph.c (cgraph_add_thunk): Create real function node instead
10716 of alias node; finalize it and mark needed/reachale; arrange visibility
10717 to be right and add it into the corresponding same comdat group list.
10718 (dump_cgraph_node): Dump thunks.
10719 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
a9bcb3f0
EB
10720 cgraph_function_with_gimple_body_p,
10721 cgraph_first_function_with_gimple_body,
c47d0034
JH
10722 cgraph_next_function_with_gimple_body): New functions.
10723 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
10724 New macros.
10725 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
10726 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
10727 * cgraphunit.c (cgraph_finalize_function): Only look into possible
10728 devirtualization when optimizing.
10729 (verify_cgraph_node): Verify thunks.
10730 (cgraph_analyze_function): Analyze thunks.
10731 (cgraph_mark_functions_to_output): Output thunks only in combination
10732 with function they are assigned to.
10733 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
10734 alias into normal node.
10735 (assemble_thunks): New functoin.
10736 (cgraph_expand_function): Use it.
10737 * lto-cgraph.c (lto_output_node): Stream thunks.
10738 (input_overwrite_node): Stream in thunks.
10739 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
10740 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
10741 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
10742 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
10743 (inline_analyze_function): Do not care about thunk jump functions.
10744 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
a9bcb3f0
EB
10745 * ipa-prop.c (ipa_prop_write_jump_functions): Use
10746 cgraph_function_with_gimple_body_p.
10747 * passes.c (do_per_function_toporder): Use
10748 cgraph_function_with_gimple_body_p.
c47d0034
JH
10749 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
10750 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
10751 (function_called_by_processed_nodes_p): Likewise.
10752
d8f426ec
JM
107532011-05-06 Joseph Myers <joseph@codesourcery.com>
10754
10755 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
10756 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
10757 entries.
10758 (mabi=): Replace with separate entries for mabi=altivec,
10759 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
10760 mabi=ieeelongdouble and mabi=ibmlongdouble.
10761 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
10762 check for -mabi=spe without SPE ABI support here.
10763 (rs6000_handle_option): Replace OPT_mabi_ handling with
10764 OPT_mabi_altivec and OPT_mabi_spe handling.
10765
80bde45b
CC
107662011-05-06 Cary Coutant <ccoutant@google.com>
10767
10768 * dwarf2out.c (contains_subprogram_definition): New function.
10769 (should_move_die_to_comdat): Call it.
10770
a91926b9
JL
107712011-05-06 Jeff Law <law@redhat.com>
10772
10773 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
10774 remove_ctrl_stmt_and_useless_edges.
10775 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
10776 (fixup_template_block, thread_single_edge): Likewise.
10777 (mark_threaded_blocks): Use THREAD_TARGET.
10778
1fc1b66d
AM
107792011-05-06 Alan Modra <amodra@gmail.com>
10780
10781 PR target/48900
10782 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
10783 const0_rtx as the arg to the dummy __tls_get_addr libcall.
10784
e194de64
UB
107852011-05-06 Uros Bizjak <ubizjak@gmail.com>
10786
10787 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
10788 constraint modifier to "r".
10789
d740dc9e
JM
107902011-05-06 Joseph Myers <joseph@codesourcery.com>
10791
10792 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
10793 fall through for OPT_mcmodel_.
10794
cab78b15
AK
107952011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10796
10797 * config/s390/s390.c (s390_asm_trampoline_template): Comment
10798 instruction sizes.
e194de64 10799 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
cab78b15 10800
ee6824ae
RR
108012011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10802
eb1485a6
UB
10803 PR target/47930
10804 * config/arm/arm.opt (marm): Document it.
10805 (mthumb): Reject negative variant.
ee6824ae 10806
9ef58464
UB
108072011-05-06 Uros Bizjak <ubizjak@gmail.com>
10808
10809 PR target/48898
10810 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
10811 Fix typo in "ccvt" variable name.
10812
155b6176
TG
108132011-05-06 Tristan Gingold <gingold@adacore.com>
10814
10815 PR target/48895
10816 * config/vms/vms-ar.c (main): Remove cwd variable.
10817
3becc47b
JJ
108182011-05-06 Jakub Jelinek <jakub@redhat.com>
10819
10820 PR debug/48902
10821 * var-tracking.c (prepare_call_arguments): Move else before #endif.
10822
3d528853
NF
108232011-05-05 Nathan Froyd <froydnj@codesourcery.com>
10824
10825 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
10826 * gimplify.c (gimplify_switch_expr): Likewise.
10827 * omp-low.c (expand_omp_sections): Likewise.
10828 * tree-eh.c (lower_try_finally_switch): Likewise.
10829 (lower_eh_dispatch): Likewise.
10830 * tree.h (build_case_label): Declare.
10831 * tree.c (build_case_label): Define.
10832
deb5046b
JM
108332011-05-05 Jason Merrill <jason@redhat.com>
10834
10835 PR c++/40975
10836 * tree-inline.c (copy_tree_r): Use copy_statement_list.
10837 (copy_statement_list): Don't recurse.
10838 * stor-layout.c (copy_self_referential_tree_r): Don't allow
10839 STATEMENT_LIST.
10840
013c0411
JM
108412011-05-05 Joseph Myers <joseph@codesourcery.com>
10842
10843 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
10844 through from -mfpu= handling.
10845 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
10846
a0905f8b
BS
108472011-05-05 Bernd Schmidt <bernds@codesourcery.com>
10848
10849 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
10850 POST_MODIFY.
10851
fc4538e4
SE
108522011-05-05 Steve Ellcey <sje@cup.hp.com>
10853
10854 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
10855 for 11.31.
10856 (hppa[12]*-*-hpux11*): Ditto.
10857 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
10858 * config/ia64/hpux-unix2003.h: New.
10859 * config/pa/pa-hpux1131.opt: New.
10860 * config/pa/pa-hpux1131.h: New.
10861 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
10862 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4eec64ff 10863 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
fc4538e4 10864
1e30c578
JJ
108652011-05-05 Jakub Jelinek <jakub@redhat.com>
10866
10867 PR debug/48853
10868 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
10869 instead of mode as 3rd argument to recursive call.
10870 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
10871 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
10872 VOIDmode.
10873 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
10874 don't give up if mode is Pmode and mem_mode is not VOIDmode.
10875 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
10876 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
10877
d19eb620
JB
108782011-05-05 Julian Brown <julian@codesourcery.com>
10879
10880 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
10881 parenthesis in D-register case.
10882
c860fe8c
JM
108832011-05-05 Joseph Myers <joseph@codesourcery.com>
10884
10885 * opt-functions.awk (var_type_struct): Handle Enum options.
10886 * optc-gen.awk: Don't check range of variables of character type.
10887 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
10888 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
10889 rs6000_sdata_name, rs6000_explicit_options): Remove.
10890 (rs6000_option_override_internal): Check for -malign-power here.
10891 Use global_options_set instead of rs6000_explicit_options.
10892 (rs6000_parse_fpu_option): Remove.
10893 (rs6000_handle_option): Access variables via opts and opts_set
10894 pointers. Use error_at and warning_at. Add fall-through
10895 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
10896 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
10897 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
10898 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
10899 here. Don't use rs6000_parse_fpu_option.
10900 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
10901 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
10902 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
10903 (mrecip=): Use Var.
10904 (mspe): Use Var and Save.
10905 (mtraceback=): Use Enum and Var.
10906 (rs6000_traceback_type): New Enum and EnumValue entries.
10907 (mfloat-gprs=): Use Enum, Var and Save.
10908 (rs6000_float_gprs): New Enum and EnumValue entries.
10909 (mlong-double-): use Var and Save.
10910 (msched-costly-dep=, minsert-sched-nops=): Use Var.
10911 (malign-): Use Enum and Var.
10912 (rs6000_alignment_flags): New Enum and EnumValue entries.
10913 (mfpu=): Use Enum.
10914 (fpu_type_t): New Enum and EnumValue entries.
10915 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
10916 global_options_set instead of rs6000_explicit_options.
10917 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
10918 global_options_set instead of rs6000_explicit_options.
10919 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
10920 global_options_set instead of rs6000_explicit_options.
10921 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
10922 global_options_set instead of rs6000_explicit_options.
10923 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
10924 global_options_set instead of rs6000_explicit_options.
10925 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
10926 global_options_set instead of rs6000_explicit_options.
10927 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
10928 definition.
10929 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
10930 global_options_set instead of rs6000_explicit_options.
10931 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
10932 (rs6000_cmodel): New Enum and EnumValue entries.
10933 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
10934 global_options_set instead of rs6000_explicit_options.
10935 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
10936 (mtls-size=): Use Enum and Var.
10937 (rs6000_tls_size): New Enum and EnumValue entries.
10938
0691dde9
MM
109392011-05-05 Michael Matz <matz@suse.de>
10940
10941 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
10942 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
10943 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
10944 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
10945 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
10946 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
10947 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
10948 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
10949 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
10950 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
10951 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
10952 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
10953 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
10954 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
10955 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
10956 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
10957
86529a49
RG
109582011-05-05 Richard Guenther <rguenther@suse.de>
10959
10960 * expmed.c (expand_variable_shift): Rename to ...
10961 (expand_shift_1): ... this. Take an expanded shift amount.
10962 For rotates recurse directly not building trees for the shift amount.
10963 (expand_variable_shift): Wrap around expand_shift_1.
10964 (expand_shift): Adjust.
10965
d0228c2e
JJ
109662011-05-05 Jakub Jelinek <jakub@redhat.com>
10967
10968 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
10969
907a08d9
EB
109702011-05-05 Eric Botcazou <ebotcazou@adacore.com>
10971
10972 * tree.h (get_pending_sizes): Remove prototype.
10973 (put_pending_size): Likewise.
10974 (put_pending_sizes): Likewise.
10975 * stor-layout.c (pending_sizes): Delete.
10976 (get_pending_sizes): Likewise.
10977 (put_pending_size): Likewise.
10978 (put_pending_sizes): Likewise.
10979 (variable_size): Do not call put_pending_size and tidy up.
10980 * function.h (struct function): Remove dont_save_pending_sizes_p.
10981 * lto-streamer-in.c (input_function): Do not stream it.
10982 * lto-streamer-out.c (output_function): Likewise.
10983 * tree-inline.c (initialize_cfun): Do not copy it.
10984 * c-decl.c (store_parm_decls): Do not set it.
10985 * omp-low.c (create_task_copyfn): Likewise.
10986 * tree-optimize.c (tree_rest_of_compilation): Likewise.
10987
386d9c57
UB
109882011-05-05 Uros Bizjak <ubizjak@gmail.com>
10989
10990 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
10991 conditions.
10992 (*movdf_internal): Ditto.
10993 (*movdf_internal_nointeger): Ditto.
10994 (*movsf_internal): Ditto.
10995
a04a722b
JM
109962011-05-05 Joseph Myers <joseph@codesourcery.com>
10997
10998 * c-decl.c (finish_decl): Don't call get_pending_sizes.
10999 (grokparm): Add parameter expr. Pass it to grokdeclarator.
11000 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
11001 (c_variable_size): Remove.
11002 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
11003 call put_pending_sizes.
11004 (get_parm_info): Add parameter expr. Use it to set
11005 arg_info->pending_sizes.
11006 (store_parm_decls): Use arg_info->pending_sizes instead or calling
11007 get_pending_sizes.
11008 * c-parser.c (c_parser_parms_declarator): Update call to
11009 c_parser_parms_list_declarator.
11010 (c_parser_parms_list_declarator): Take parameter expr. Update
11011 call to push_parm_decl. Update recursive call. Don't call
11012 get_pending_sizes. Update calls to get_parm_info.
11013 (c_parser_objc_method_definition): Update calls to
11014 c_parser_objc_method_decl and objc_start_method_definition.
386d9c57 11015 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
a04a722b
JM
11016 (c_parser_objc_method_decl): Add parameter expr. Update call to
11017 grokparm.
386d9c57 11018 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
a04a722b
JM
11019 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
11020 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
11021
c92a6f97
MH
110222011-05-05 Michael Hope <michael.hope@linaro.org>
11023
386d9c57
UB
11024 PR pch/45979
11025 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
11026 __ARM_EABI__ hosts.
c92a6f97 11027
07ea0048
UW
110282011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11029
11030 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
11031 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
11032 (spu_output_mi_thunk): New function.
11033
d634bfa1
RO
110342011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11035
11036 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
11037 targetm.asm_out.print_operand.
11038 * config/sol2.c: Include target.h.
11039
40fda55b
JH
110402011-05-04 Jan Hubicka <jh@suse.cz>
11041
11042 * ipa-inline.c (reset_edge_caches): New function.
11043 (update_caller_keys): Add check_inlinablity_for; do not
11044 reset edge caches; remove now unnecesary loop.
386d9c57 11045 (update_callee_keys): Add comments; reset node_growth_cache of callee.
40fda55b
JH
11046 (update_all_callee_keys): Likewise.
11047 (inline_small_functions): Sanity check cache; update code
11048 recomputing it.
11049
0360f70d
BS
110502011-05-04 Bernd Schmidt <bernds@codesourcery.com>
11051
11052 PR rtl-optimization/47612
11053 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
11054 as the last insn of the sequence to be moved.
11055
7a994646
TB
110562011-05-04 Tobias Burnus <burnus@net-b.de>
11057
11058 PR fortran/48864
11059 * doc/invoke.texi (Ofast): Document that it
11060 enables Fortran's -fno-protect-parens.
11061
7a2f7208
UB
110622011-05-04 Uros Bizjak <ubizjak@gmail.com>
11063
11064 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
11065
a2d42931
EB
110662011-05-04 Eric Botcazou <ebotcazou@adacore.com>
11067
11068 * stor-layout.c (variable_size): Do not issue errors.
11069
f81b1a3d
RG
110702011-05-04 Richard Guenther <rguenther@suse.de>
11071
11072 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
11073 for array-ref indices.
11074 (tree_coverage_counter_addr): Likewise.
11075 (build_fn_info_type): Use size_int for index types.
11076 (build_gcov_info): Likewise.
11077
c62c040f
RG
110782011-05-04 Richard Guenther <rguenther@suse.de>
11079
11080 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
11081 to build_int_cst.
11082 * c-typeck.c (really_start_incremental_init): Use bitsize_int
11083 for constructor indices.
11084 (push_init_level): Likewise.
11085
1e3287d0
RG
110862011-05-04 Richard Guenther <rguenther@suse.de>
11087
11088 * explow.c (promote_mode): Move variable declarations before code.
11089
6c32445b
NF
110902011-05-04 Nathan Froyd <froydnj@codesourcery.com>
11091
11092 * tree.h (build_function_type_array): Declare.
11093 (build_varargs_function_type_array): Declare.
11094 (build_function_type_vec, build_varargs_function_type_vec): Define.
11095 * tree.c (build_function_type_array_1): New function.
11096 (build_function_type_array): New function.
11097 (build_varargs_function_type_array): New function.
11098
fdabf269
RS
110992011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
11100
11101 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
11102 before setting STMT_VINFO_TYPE.
11103
a207915a
UW
111042011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11105
11106 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
11107 instead of spu_pass_by_reference.
11108
5e617be8
AK
111092011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11110
11111 * calls.c (emit_library_call_value_1): Invoke
11112 promote_function_mode hook on libcall arguments.
11113 * explow.c (promote_function_mode, promote_mode): Handle TYPE
11114 argument being NULL.
11115 * targhooks.c (default_promote_function_mode): Lisewise.
11116 * config/s390/s390.c (s390_promote_function_mode): Likewise.
11117 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
11118
11119 * doc/tm.texi: Document that TYPE argument might be NULL.
11120
486d04be
SH
111212011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
11122
11123 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
11124
9b19b026
SH
111252011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
11126
11127 From Bernd Schmidt
11128 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
11129
502bc3df
RO
111302011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11131
11132 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
11133 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
11134 Move ...
11135 * mips-tfile.c: ... here.
11136 Don't include coretypes.h, tm.h, filenames.h.
11137 (saber_stop): Remove definition and all calls.
11138 [__SABER__]: Remove.
11139 (__LINE__): Remove default.
11140 (Size_t, Ptrdiff_t): Remove definitions.
11141 Replace by size_t, ptrdiff_t.
11142 [!MIPS_DEBUGGING_INFO]: Remove.
11143 (SHASH_SIZE, THASH_SIZE): Remove defaults.
11144 (progname): Add const.
11145 (STATIC): Remove.
11146 Replace all uses by static.
11147 (ALIGN_SYMTABLE_OFFSET): Remove default.
11148 * mips-tdump.c: Don't include coretypes.h, tm.h.
11149 Remove !MIPS_IS_STAB guard.
11150 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
11151 $(TM_H), filenames.h dependencies.
11152 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
11153
991eb6ef
SH
111542011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
11155
11156 From Jie Zhang
11157 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
11158 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
11159
420ccc84
SH
111602011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
11161
11162 From Bernd Schmidt
11163 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
11164 account and save/restore RETS.
11165 (PROFILE_BEFORE_PROLOGUE): Define.
11166 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
11167 the push insn to use predecrement.
11168
9f8d69ee
SH
111692011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
11170
11171 From Jie Zhang
11172 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
11173
662c03f4
NC
111742011-05-04 Nick Clifton <nickc@redhat.com>
11175
11176 * config/mn10300/mn10300.c: Include cfgloop.h.
11177 (DUMP): New macro.
11178 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
11179 Lcc or a FLcc insn into the instruction stream.
11180 (mn10300_block_contains_call): New function. Returns true if the
11181 given basic block contains a CALL insn.
11182 (mn10300_loop_contains_call_insn): New function. Returns true if
11183 the given loop contains a CALL insn.
11184 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
11185 to use the SETLB and Lcc or FLcc insns.
11186 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
11187 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
11188 * config/mn10300/mn10300.opt (msetlb): New option. Used to
11189 disable the SETLB optimization.
11190 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
11191 __SETLB__ or __NO_SETLB__.
11192 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
11193 (movsf_internal): Handle MDR register.
11194 (cmpsi): Make visible.
11195 (setlb): New pattern.
11196 (Lcc): New pattern.
11197 (FLcc): New pattern.
11198
843b6915
UB
111992011-05-04 Uros Bizjak <ubizjak@gmail.com>
11200
11201 PR target/48860
11202 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
11203 for reg<->xmm moves.
11204 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
11205 (vec_concatv2di_rex64_sse): Ditto.
11206 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
11207 (*vec_extractv2di_1_rex64): Ditto.
11208
11209 Revert:
11210 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
11211
11212 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
11213 reg<->xmm moves.
11214 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
11215
d35936ab
RG
112162011-05-04 Richard Guenther <rguenther@suse.de>
11217
11218 * tree.h (int_const_binop): Remove notrunc argument.
11219 * fold-const.c (int_const_binop): Remove notrunc argument. Always
11220 create integer constants that are properly truncated.
11221 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
11222 (const_binop): Remove zero notrunc argument to int_const_binop.
11223 (size_binop_loc): Likewise.
11224 (fold_div_compare): Likewise.
11225 (maybe_canonicalize_comparison_1): Likewise.
11226 (fold_comparison): Likewise.
11227 (fold_binary_loc): Likewise.
11228 (multiple_of_p): Likewise.
11229 * expr.c (store_constructor): Likewise.
11230 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
11231 (maybe_fold_stmt_addition): Likewise.
11232 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
11233 * stor-layout.c (layout_type): Likewise.
11234 * tree-data-ref.c (tree_fold_divides_p): Likewise.
11235 * tree-sra.c (build_ref_for_offset): Likewise.
11236 (build_user_friendly_ref_for_offset): Likewise.
11237 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
11238 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
11239 * tree-ssa-loop-niter.c (inverse): Likewise.
11240 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
11241 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
11242 * tree-switch-conversion.c (check_range): Likewise.
11243 (build_constructors): Likewise.
11244 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
11245 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
11246 (extract_range_from_assert): Likewise.
11247 (vrp_int_const_binop): Likewise.
11248 (extract_range_from_binary_expr): Likewise.
11249 (extract_range_from_unary_expr): Likewise.
11250 (check_array_ref): Likewise.
11251 (find_case_label_range): Likewise.
11252 (simplify_div_or_mod_using_ranges): Likewise.
11253 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
11254 comparing case labels for merging.
11255
8992c063
MW
112562011-05-03 Mark Wielaard <mjw@redhat.com>
11257
11258 * dwarf2out.c (debug_str_hash_forced): Removed.
11259 (gen_label_for_indirect_string): Removed.
11260 (get_debug_string_label): Removed.
11261 (AT_string_form): Generate label directly.
11262 (output_indirect_string): Test indirect_string_node for
11263 DW_FORM_strp instead of checking label and refcount.
11264 (prune_indirect_string): Removed.
11265 (prune_unused_types): Don't check debug_str_hash_forced or
11266 call prune_indirect_string.
11267
4868e6ea
AO
112682011-05-04 Alexandre Oliva <aoliva@redhat.com>
11269
11270 PR other/48093
11271 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
11272
01a5c0ab
AO
112732011-05-04 Alexandre Oliva <aoliva@redhat.com>
11274
11275 PR debug/47994
11276 PR debug/47919
11277 * combine.c (try_combine): Skip debug insns at m_split tests.
11278
6ac00218
MW
112792011-04-26 Mark Wielaard <mjw@redhat.com>
11280
11281 PR42288
11282 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
11283 when info_section_emitted.
11284
3af42a7b
JM
112852011-05-03 Joseph Myers <joseph@codesourcery.com>
11286
11287 * config/mips/mips-opts.h: New.
11288 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
11289 to mips-opts.h.
11290 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
11291 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
11292 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
11293 via opts pointer.
11294 * config/mips/mips.h (enum mips_code_readable_setting): Move to
11295 mips-opts.h.
11296 (mips_abi, mips_code_readable): Don't declare.
843b6915 11297 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3af42a7b
JM
11298 (mabi=): Use Enum and Var.
11299 (mips_abi): New Enum and EnumValue entries.
11300 (mcode-readable=): Use Enum and Var.
11301 (mips_code_readable_setting): New Enum and EnumValue entries.
11302 (mr10k-cache-barrier=): Use Enum and Var.
11303 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
11304
1cb1a99f
JH
113052011-05-03 Jan Hubicka <jh@suse.cz>
11306
11307 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
11308 replace hash by pointer map.
11309 (cgraph_node_set_element_def, cgraph_node_set_element,
11310 const_cgraph_node_set_element, varpool_node_set_element_def,
11311 varpool_node_set_element, const_varpool_node_set_element): Remove.
11312 (free_cgraph_node_set, free_varpool_node_set): New function.
11313 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
11314 * tree-emutls.c: Free varpool node set.
11315 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
11316 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
11317 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
11318 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
11319 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
11320 Move here from ipa.c; implement using pointer_map
11321 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
11322 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
11323 debug_cgraph_node_set, varpool_node_set_new,
11324 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
11325 dump_varpool_node_set, debug_varpool_node_set):
11326 Move to ipa-uitls.c.
11327 * passes.c (ipa_write_summaries): Update.
11328
7f31f4db
SH
113292011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
11330
7a2f7208
UB
11331 From Mike Frysinger:
11332 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
11333 bf542/bf544/bf547/bf548/bf549.
7f31f4db 11334
b70fce6d
UB
113352011-05-03 Uros Bizjak <ubizjak@gmail.com>
11336
11337 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
11338
265b1d82
SH
113392011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
11340
11341 From Bernd Schmidt:
11342 * config/bfin/bfin.md (MOVCC): New mode_macro.
11343 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
11344 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
11345 comments from generated assembly.
11346
f0b568f3
SH
113472011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
11348
11349 From Bernd Schmidt
11350 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
11351 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
11352 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
11353 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
11354 * config/bfin/lib1funcs.asm (___muldi3): New function.
11355
2c67cf6e
NF
113562011-05-03 Nathan Froyd <froydnj@codesourcery.com>
11357
11358 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
11359 build_function_type_list instead of build_function_type.
11360 Rearrange initialization of `args' to do so.
11361
f9ac28ad
NF
113622011-05-03 Nathan Froyd <froydnj@codesourcery.com>
11363
11364 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
11365 instead of build_function_type.
11366
22b8798c
NF
113672011-05-03 Nathan Froyd <froydnj@codesourcery.com>
11368
11369 * config/rs6000/rs6000.c (spe_init_builtins): Call
11370 build_function_type_list instead of build_function_type.
11371 (paired_init_builtins, altivec_init_builtins): Likewise.
11372 (builtin_function_type): Likewise.
11373
4cb44528
NF
113742011-05-03 Nathan Froyd <froydnj@codesourcery.com>
11375
11376 * config/sh/sh.c (sh_media_init_builtins): Call
11377 build_function_type_list instead of build_function_type.
11378
4c203a6a
NF
113792011-05-03 Nathan Froyd <froydnj@codesourcery.com>
11380
11381 * config/sparc/sparc.c (sparc_file_end): Call
11382 build_function_type_list instead of build_function_type.
11383
d6a3d62b
NF
113842011-05-03 Nathan Froyd <froydnj@codesourcery.com>
11385
11386 * config/alpha/alpha.c (alpha_init_builtins): Call
11387 build_function_type_list instead of build_function_type.
11388
de530b86
NF
113892011-05-03 Nathan Froyd <froydnj@codesourcery.com>
11390
11391 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
11392 build_function_type_list instead of build_function_type.
11393
baeec5f2
NF
113942011-05-03 Nathan Froyd <froydnj@codesourcery.com>
11395
11396 * config/iq2000/i2000.c (iq2000_init_builtins): Call
11397 build_function_type_list instead of build_function_type.
11398 Delete `endlink' variable.
11399
c19afe52
NF
114002011-05-03 Nathan Froyd <froydnj@codesourcery.com>
11401
11402 * config/avr/avr.c (avr_init_builtins): Call
11403 build_function_type_list instead of build_function_type.
11404
a341df0a
NF
114052011-05-03 Nathan Froyd <froydnj@codesourcery.com>
11406
11407 * config/picochip/picochip.c (picochip_init_builtins): Call
11408 build_function_type_list instead of build_function_type.
11409 Delete `endlink' variable.
11410
2102b1e1
NF
114112011-05-03 Nathan Froyd <froydnj@codesourcery.com>
11412
11413 * config/bfin/bfin.c (bfin_init_builtins): Call
11414 build_function_type_list instead of build_function_type.
11415
9f111209
SH
114162011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
11417
11418 From Bernd Schmidt
11419 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
11420 that's not CONST_INT. Seemingly redundant check is due to PR39768.
11421
7071d064
SH
114222011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
11423
11424 From Jie Zhang:
11425 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
11426 libbffastfp overrides libgcc when -mfast-fp.
11427
748f7574 114282011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
44fb48ef
SH
11429
11430 Originally from Bernd Schmidt
11431 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
11432 * config/bfin/bfin.c (override_options): Test it and error if
11433 TARGET_FDPIC.
11434
1a3a9152
SH
114352011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
11436
11437 Originally From Bernd Schmidt
11438 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
11439 FD-PIC.
11440
7134c090
JL
114412011-05-03 Jeff Law <law@redhat.com>
11442
11443 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
11444 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
11445 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
b70fce6d
UB
11446 than accessing AUX field directly. Free the AUX field before
11447 clearing it.
7134c090
JL
11448 (thread_block, thread_through_loop_header): Likewise.
11449 (thread_single_edge, mark_threaded_blocks): Likewise.
11450 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
11451 (register_jump_thread): Do not attempt to thread to a NULL edge.
b70fce6d 11452
2c7eebae
BS
114532011-05-03 Bernd Schmidt <bernds@codesourcery.com>
11454
11455 * function.c (init_function_start): Call decide_function_section.
11456 * varasm.c (decide_function_section): New function.
11457 (assemble_start_function): When not using
11458 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
11459 or first_function_block_is_cold.
11460 * rtl.h (decide_function_section): Declare.
11461
17038fcf
JJ
114622011-05-03 Uros Bizjak <ubizjak@gmail.com>
11463 Jakub Jelinek <jakub@redhat.com>
11464
11465 PR target/48774
11466 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
11467 only succeed if req_mode is the same as set_mode.
11468
3810076b
BS
114692011-05-03 Bernd Schmidt <bernds@codesourcery.com>
11470
11471 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
11472 * genemit.c (gen_exp): Handle RETURN.
11473 * emit-rtl.c (verify_rtx_sharing): Likewise.
11474 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
11475 * rtl.c (copy_rtx): RETURN is shared.
11476 * rtl.h (enum global_rtl_index): Add GR_RETURN.
11477 (ret_rtx): New.
11478 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
11479 * config/s390/s390.c (s390_emit_epilogue): Likewise.
11480 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
11481 * config/cris/cris.c (cris_expand_return): Likewise.
11482 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
11483 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
11484 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
11485 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
11486 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
11487 Likewise.
11488 * config/v850/v850.c (expand_epilogue): Likewise.
11489 * config/bfin/bfin.c (bfin_expand_call): Likewise.
11490 * config/arm/arm.md (epilogue): Likewise.
11491 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
11492 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
11493 variable to ret_reg.
11494
9efdb4ad
RG
114952011-05-03 Richard Guenther <rguenther@suse.de>
11496
11497 PR lto/48846
11498 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
11499 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
11500 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
11501
60a45536
RG
115022011-05-03 Richard Guenther <rguenther@suse.de>
11503
11504 * c-decl.c (grokdeclarator): Instead of looking at
11505 TREE_OVERFLOW check if the constant fits in the index type.
11506
3188ed59
RS
115072011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
11508
11509 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
11510 (vec_store_lanes<mode><mode>): Likewise.
11511
272c6793
RS
115122011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
11513
11514 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
11515 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
11516 convert_optab_index values.
11517 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
11518 * genopinit.c (optabs): Initialize the new optabs.
11519 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
11520 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
11521 (expand_STORE_LANES): New functions.
11522 * tree.h (build_array_type_nelts): Declare.
11523 * tree.c (build_array_type_nelts): New function.
11524 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
11525 (vect_model_load_cost): Likewise.
11526 (vect_store_lanes_supported, vect_load_lanes_supported)
11527 (vect_record_strided_load_vectors): Declare.
11528 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
11529 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
11530 (vect_transform_strided_load): Split out statement recording into...
11531 (vect_record_strided_load_vectors): ...this new function.
11532 * tree-vect-stmts.c (create_vector_array, read_vector_array)
11533 (write_vector_array, create_array_ref): New functions.
11534 (vect_model_store_cost): Add store_lanes_p argument.
11535 (vect_model_load_cost): Add load_lanes_p argument.
11536 (vectorizable_store): Try to use store-lanes functions for
11537 interleaved stores.
11538 (vectorizable_load): Likewise load-lanes and loads.
11539 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
11540 to vect_model_store_cost.
11541 (vect_build_slp_tree): Likewise vect_model_load_cost.
11542
0f6d54f7
RS
115432011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
11544
11545 * hooks.h (hook_bool_mode_uhwi_false): Declare.
11546 * hooks.c (hook_bool_mode_uhwi_false): New function.
11547 * target.def (array_mode_supported_p): New hook.
11548 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
11549 * doc/tm.texi: Regenerate.
11550 * stor-layout.c (mode_for_array): New function.
11551 (layout_type): Use it.
11552 * config/arm/arm.c (arm_array_mode_supported_p): New function.
11553 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
11554
b15eacc7
EB
115552011-05-03 Eric Botcazou <ebotcazou@adacore.com>
11556
11557 PR target/48723
11558 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
11559 for -fstack-check if the size to allocate is negative.
11560
575bfb00
LC
115612011-05-02 Lawrence Crowl <crowl@google.com>
11562
11563 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
11564 (timevar_cond_start): New for starting a timer only when it is not
11565 already running.
11566 (timevar_cond_stop): New for stopping a timer when it was not already
11567 running.
11568
11569 * timevar.c (timevar_stop): Enable start/stop timers to start again.
11570 (timevar_cond_start): New as above.
11571 (timevar_cond_stop): New as above.
11572
11573 * timevar.def: Add start/stop timers for compiler phases,
11574 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
11575 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
11576 and TV_PHASE_FINALIZE.
11577 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
11578 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
11579 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
11580 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
11581 Make unused TV_OVERLOAD into a start/stop timer.
11582
11583 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
11584 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
11585 to indicate that they are start/stop timers.
11586
11587 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
11588 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
11589 Move initialization to do_compile.
11590 (do_compile): Add initialization from above.
11591 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
11592
11593 * c-decl.c (c_write_global_declarations): Add start/stop of
11594 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
11595
11596 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
11597 or TV_PARSE_INLINE, as appropriate.
11598 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
11599 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
11600
3533b943
JM
116012011-05-02 Jason Merrill <jason@redhat.com>
11602
11603 PR c++/40975
11604 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
11605
2609a0ce
SM
116062011-05-02 Simon Martin <simartin@users.sourceforge.net>
11607
11608 PR c/35445
11609 * c-decl.c (finish_decl): Only create a composite if the types are
11610 compatible.
11611
6b0e4cbb
JM
116122011-05-02 Joseph Myers <joseph@codesourcery.com>
11613
11614 * config/fr30/fr30-protos.h (Mmode): Don't define.
11615 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
11616 definition where used.
11617 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
11618 define. Expand definitions where used.
11619 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
11620 Expand definitions where used.
11621 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
11622 rx_function_arg, rx_function_arg_advance,
11623 rx_function_arg_boundary): Expand definitions of those macros.
11624 * config/v850/v850-protos.h (Mmode): Don't define. Expand
11625 definition where used.
11626
4e938ce6
UB
116272011-05-02 Uros Bizjak <ubizjak@gmail.com>
11628
11629 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
11630 reg<->xmm moves.
11631 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
11632 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
11633 with *movv2sf_internal_rex64_avx.
11634 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
11635 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
11636 Use %v prefix in insn mnemonic to handle TARGET_AVX.
11637 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
11638 "vex" in "prefix" attribute calculation.
11639 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
11640
36019c19
SH
116412011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
11642
7a2f7208
UB
11643 PR target/47951
11644 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
11645 inputs match the output.
36019c19 11646
f69ea688
AS
116472011-05-02 Andreas Schwab <schwab@linux-m68k.org>
11648
11649 PR target/47955
11650 * config/m68k/m68k.c (m68k_expand_prologue): Set
11651 current_function_static_stack_size.
11652
c33406f5
JH
116532011-05-02 Jan Hubicka <jh@suse.cz>
11654
11655 * lto-streamer.c (lto_streamer_cache_insert_1,
11656 lto_streamer_cache_lookup, lto_streamer_cache_create,
11657 lto_streamer_cache_delete): Use pointer map instead of hashtable.
11658 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
11659
47c94d21
JM
116602011-05-02 Joseph Myers <joseph@codesourcery.com>
11661
11662 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
11663 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
11664 config/m68k/t-opts: New files.
11665 * config/m68k/m68k-tables.opt: New file (generated).
11666 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
11667 extra_options and m68k/t-opts to tmake_file.
11668 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
11669 (all_isas): Initialize using m68k-isas.def.
11670 (all_microarchs): Initialize using m68k-microarchs.def.
11671 (m68k_find_selection): Remove.
11672 (m68k_handle_option): Don't assert that global structures are in
11673 use. Use error_at. Access variables via opts pointer. Don't
11674 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
11675 directly for -m68020-40 and -m68020-60.
11676 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
11677 m68k_tune_entry here.
11678 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
11679 to m68k-opts.h.
11680 (m68k_library_id_string): Remove declaration.
4e938ce6 11681 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
47c94d21
JM
11682 (m68k_library_id_string): New Variable.
11683 (march=, mcpu=, mtune=): Use Enum and Var.
11684
e562bf36
RG
116852011-05-02 Richard Guenther <rguenther@suse.de>
11686
11687 * varasm.c (output_constructor_regular_field): Compute zero-based
11688 index with double-ints. Make sure to ICE instead of producing
11689 wrong code.
11690 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
11691 in asserts. Properly use a signed type.
11692
6bec6c98
UB
116932011-05-02 Uros Bizjak <ubizjak@gmail.com>
11694
11695 * config/i386/sse.md (V): New mode iterator.
11696 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
11697 TARGET_SSE2.
11698 (V_256): Rename from AVX256MODE.
11699 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
11700 condition to all users.
11701 (VF1): Ditto.
11702 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
11703 condition to all users.
11704 (VF_128): Make V4SF mode unconditional.
11705 (VF_256): Rename from AVX256MODEF2P.
11706 (VI4F_128): Rename from SSEMODE4S.
11707 (VI8F_128): Rename from SSEMODE2D.
11708 (VI4F_256): Rename from AVX256MODE8P.
11709 (VI8F_256): Rename from AVX256MODE4P.
11710 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
11711 (ssescalarmodesuffix): Remove SF and DF modes.
11712 (SSEMODE124): Remove.
11713 (SSEMODE1248): Ditto.
11714 (SSEMODEF2P): Ditto.
11715 (AVXMODEF2P): Ditto.
11716 (AVXMODEFDP): Ditto.
11717 (AVXMODEFSP): Ditto.
11718 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
11719 unconditional.
11720 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
11721 unconditional.
11722 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
11723 xop_pcmov_<mode>256. Use V mode iterator.
11724
11725 Adjust RTX patterns globally for renamed mode attributes.
11726
2dfdcb4b
UW
117272011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11728
11729 * haifa-sched.c (sched_emit_insn): Emit insn before first
11730 non-scheduled insn. Inform back-end about new insn. Add
11731 new insn to scheduled_insns list.
11732
90bc4623
RG
117332011-05-02 Richard Guenther <rguenther@suse.de>
11734
11735 PR tree-optimization/48822
11736 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
11737 (process_scc): Indicate which iteration we start.
11738
bc0fe8cb
JH
117392011-05-02 Jan Hubicka <jh@suse.cz>
11740
11741 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
11742 (lto_section_overrun): New.
11743 * lto-section-out.c (append_block): Rename to ...
11744 (lto_append_block): ... this one; export.
11745 (lto_output_1_stream): Move lto lto-streamer.h
11746 (lto_output_data_stream): Update.
11747 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
11748 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
11749 functions.
11750
f070a9d1
RG
117512011-05-02 Richard Guenther <rguenther@suse.de>
11752
11753 * tree.c (tree_code_counts): New global array.
11754 (record_node_allocation_statistics): Count individual tree codes.
11755 (dump_tree_statistics): Dump individual code stats.
11756
09dfe187
JH
117572011-05-01 Jan Hubicka <jh@suse.cz>
11758
11759 * ipa-inline.c (caller_growth_limits): Fix thinko when
11760 looking for largest stack frame.
11761 * ipa-inline.h (dump_inline_summary): Declare.
11762 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
11763 on stack usage.
11764 (dump_inline_summary): Export.
11765 (debug_inline_summary): Declare as DEBUG_FUNCTION.
11766
6f76a878
AS
117672011-05-01 Anatoly Sokolov <aesok@post.ru>
11768
11769 * reginfo.c (memory_move_cost): Change rclass argument type form
11770 'enum reg_class' to reg_class_t.
11771 * reload.h (memory_move_cost): Update prototype.
11772 * postreload.c reload_cse_simplify_set): Change type dclass var to
11773 reg_class_t.
11774 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
11775 Update prototype.
11776 (ira_allocate_and_set_costs): Change aclass argument type form
11777 'enum reg_class' to reg_class_t.
6bec6c98 11778 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
6f76a878
AS
11779 Change aclass argument type to reg_class_t.
11780 (update_conflict_hard_reg_costs): Change type aclass and pref vars
11781 to reg_class_t.
11782 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
11783 memory_move_cost call.
11784
11785 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
11786 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
11787 Change type tmp var to reg_class_t.
11788
9a4ac625
JH
117892011-04-30 Jan Hubicka <jh@suse.cz>
11790
11791 * ipa-inline.c (can_inline_edge_p): Disregard limits when
11792 inlining into function with flatten attribute.
11793 (want_inline_small_function_p): Be more realistic about inlining
11794 cold calls where callee size grows.
11795
dd8352ee
JH
117962011-04-30 Jan Hubicka <jh@suse.cz>
11797
11798 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
11799 flags.
11800
46e43d2b
AS
118012011-04-30 Anatoly Sokolov <aesok@post.ru>
11802
11803 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
11804 PRINT_OPERAND_PUNCT_VALID_P): Remove.
11805 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
11806 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
11807 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11808 (print_operand): Rename to...
11809 (sparc_print_operand): ...this. Make static. Adjust
11810 sparc_print_operand function call.
11811 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
11812 functions.
11813
ecb62563
JH
118142011-04-30 Jan Hubicka <jh@suse.cz>
11815
6bec6c98 11816 PR middle-end/48752
ecb62563
JH
11817 * ipa-inline.c (early_inliner): Disable when doing late
11818 addition of function.
11819
edb9b69e
JJ
118202011-04-30 Jakub Jelinek <jakub@redhat.com>
11821
be80a87e
JJ
11822 * dwarf2out.c (get_address_mode): New inline.
11823 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
11824 if not dwarf_strict emit
11825 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
11826 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
11827 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
11828 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
11829 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
11830 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
11831 mem_loc_descriptor callers.
11832 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11833 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
11834 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
11835 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
11836 (base_types): New variable.
11837 (get_base_type_offset, calc_base_type_die_sizes,
11838 base_type_for_mode, mark_base_types, base_type_cmp,
11839 move_marked_base_types): New functions.
11840 (calc_die_sizes): Assert that die_offset is 0 or equal to
11841 next_die_offset.
11842 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
11843 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
11844 callers. If not dwarf_strict, call mem_loc_descriptor even for
11845 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
11846 (gen_subprogram_die): Don't give up on call site parameters
11847 with non-integral or large integral modes. Adjust
11848 mem_loc_descriptor callers.
11849 (prune_unused_types): Call prune_unused_types_mark on base_types
11850 vector entries.
11851 (resolve_addr): Call mark_base_types.
11852 (dwarf2out_finish): Call move_marked_base_types.
11853
edb9b69e
JJ
11854 PR tree-optimization/48809
11855 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
11856 type.
11857 (gen_inbound_check): Don't compute index_expr - range_min in utype
11858 again, instead reuse SSA_NAME initialized in build_arrays.
11859 Remove two useless gsi_for_stmt calls.
11860
a6545a3d
JL
118612011-04-29 Jeff Law <law@redhat.com>
11862
11863 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
11864
af8bca3c
MJ
118652011-04-29 Martin Jambor <mjambor@suse.cz>
11866
11867 * cgraph.h (cgraph_postorder): Remove declaration.
11868 * ipa-utils.h (ipa_free_postorder_info): Declare.
11869 (ipa_reverse_postorder): Likewise.
11870 * cgraphunit.c: Include ipa-utils.h.
11871 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
11872 * ipa-inline.c: Include ipa-utils.h.
11873 (ipa_inline): Update call to ipa_reverse_postorder.
11874 * ipa-pure-const.c (propagate_pure_const): Update call to
11875 ipa_reduced_postorder and ipa_print_order. Call
11876 ipa_free_postorder_info to clean up.
11877 (propagate_nothrow): Likewise.
11878 * ipa-reference.c (propagate): Removed a useless call to
11879 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
11880 and ipa_print_order. Call ipa_free_postorder_info to clean up.
11881 * ipa.c: Include ipa-utils.h.
11882 (ipa_profile): Update call to ipa_reverse_postorder.
11883 (cgraph_postorder): Moved to...
11884 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
11885 (ipa_utils_print_order): Renamed to ipa_print_order.
11886 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
11887 comments.
11888 (ipa_free_postorder_info): New function.
11889 * passes.c: Include ipa-utils.h.
11890 (do_per_function_toporder): Update call to ipa_reverse_postorder.
11891 (ipa_write_summaries): Likewise.
11892 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
11893 (cgraphunit.o): Likewise.
11894 (ipa.o): Likewise.
11895 (ipa-inline.o): Likewise.
11896
b15c64ee
JH
118972011-04-29 Jan Hubicka <jh@suse.cz>
11898
11899 * gcc.dg/tree-ssa/inline-10.c: New testcase.
11900 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
11901 * ipa-inline.h (clause_t): Turn into unsigned int.
11902 * ipa-inline-analysis.c (add_clause): Do more simplification.
11903 (and_predicates): Shortcut more cases.
11904 (predicates_equal_p): Move forward; check that clauses are properly
11905 ordered.
11906 (or_predicates): Shortcut more cases.
11907 (edge_execution_predicate): Rewrite as...
11908 (set_cond_stmt_execution_predicate): ... this function; handle
11909 __builtin_constant_p.
11910 (set_switch_stmt_execution_predicate): New .
11911 (compute_bb_predicates): New.
11912 (will_be_nonconstant_predicate): Update TODO.
11913 (estimate_function_body_sizes): Use compute_bb_predicates
11914 and free them later, always try to estimate if stmt is constant.
11915 (estimate_time_after_inlining, estimate_size_after_inlining):
11916 Gracefully handle optimized out edges.
11917 (read_predicate): Fix off by one error.
11918
a88fdc2a
NP
119192011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
11920
11921 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
11922
d984c8ef
XDL
119232011-04-27 Xinliang David Li <davidxl@google.com>
11924
11925 * tree-profile.c (init_ic_make_global_vars): Set
11926 tls attribute on ic vars.
11927 * coverage.c (coverage_end_function): Initialize
11928 function_list with zero.
11929
45a2c477
RG
119302011-04-29 Richard Guenther <rguenther@suse.de>
11931
11932 * builtins.c (fold_builtin_classify_type): Use integer_type_node
11933 for the type of the result.
11934 (fold_builtin_isascii): Likewise.
11935 (fold_builtin_toascii): Use integer_type_node where appropriate.
11936 (fold_builtin_logb): Likewise.
11937 (fold_builtin_frexp): Likewise.
11938 (fold_builtin_strstr): Likewise.
11939 (fold_builtin_strpbrk): Likewise.
11940 (fold_builtin_fputs): Likewise.
11941 (fold_builtin_sprintf): Likewise.
11942 (fold_builtin_snprintf): Likewise.
11943 (fold_builtin_printf): Likewise.
11944 (do_mpfr_remquo): Use a proper type for the assigned constant.
11945 (do_mpfr_lgamma_r): Likewise.
11946 * dwarf2out.c (resolve_one_addr): Use size_int.
11947 * except.c (init_eh): Likewise.
11948 (assign_filter_values): Use integer_type_node for filter values.
11949 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
11950 indices.
11951 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
11952 for EH region numbers.
11953 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
11954 for the shift amount.
11955
eb6c3df1
RG
119562011-04-29 Richard Guenther <rguenther@suse.de>
11957
11958 * expr.h (expand_shift): Rename to ...
11959 (expand_variable_shift): ... this.
11960 (expand_shift): Take a constant shift amount.
11961 * expmed.c (expand_shift): Rename to ...
11962 (expand_variable_shift): ... this.
11963 (expand_shift): New wrapper around expand_variable_shift.
11964 * expr.c (convert_move, emit_group_load_1, emit_group_store,
11965 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
11966 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
11967 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
11968 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
11969 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
11970 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
11971 emit_store_flag_1, emit_store_flag): Likewise.
11972 * builtins.c (expand_builtin_signbit): Likewise.
11973 * calls.c (load_register_parameters): Likewise.
11974 * function.c (assign_parm_setup_block): Likewise.
11975 * lower-subreg.c (resolve_shift_zext): Likewise.
11976 * optabs.c (widen_bswap, expand_abs_nojump,
11977 expand_one_cmpl_abs_nojump, expand_float): Likewise.
11978 * spu/spu.c (spu_expand_extv): Likewise.
11979 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
11980
9f616812
RG
119812011-04-29 Richard Guenther <rguenther@suse.de>
11982
11983 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
11984 for the remapped region number.
11985 * predict.c (build_predict_expr): Use integer_type_node for the
11986 predict kind.
11987 * fold-const.c (fold_binary_loc): Use integer_type_node for
11988 the shift amount. Use a proper type for the PLUS_EXPR operand.
11989
b823cdfe
MM
119902011-04-29 Michael Matz <matz@suse.de>
11991
11992 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
11993 other trees that just builtins.
11994 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
11995
413581ba
RG
119962011-04-29 Richard Guenther <rguenther@suse.de>
11997
11998 * tree-nested.c (get_trampoline_type): Use size_int.
11999 (get_nl_goto_field): Likewise.
12000 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
12001 for all indexes.
12002 (lower_eh_constructs_2): Likewise.
12003 (lower_resx): Likewise.
12004 (lower_eh_dispatch): Likewise.
12005 * tree-mudflap.c (mf_build_string): Use size_int.
12006 (mudflap_register_call): Use integer_type_node for the flag.
12007 (mudflap_enqueue_constant): Use size_int.
12008 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
12009 instead of rebuilding it.
12010
5c04e9f4
RG
120112011-04-29 Richard Guenther <rguenther@suse.de>
12012
12013 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
12014 Handle OBJ_TYPE_REF.
12015 (find_func_aliases_for_call): Use it more consistently.
12016
5c24671b
AO
120172011-04-29 Alexandre Oliva <aoliva@redhat.com>
12018
12019 * haifa-sched.c (last_nondebug_scheduled_insn): New.
12020 (rank_for_schedule): Use it.
12021 (schedule_block): Set it.
12022
10adac51
XDL
120232011-04-28 David Li <davidxl@google.com>
12024
12025 * tree.c (crc32_string): Use crc32_byte.
12026 (crc32_byte): New function.
12027 * tree.h (crc32_byte): New function.
12028 * gcov.c (read_graph_file): Handle new cfg_cksum.
12029 (read_count_file): Ditto.
12030 * profile.c (instrument_values): Ditto.
12031 (get_exec_counts): Ditto.
12032 (read_profile_edge_counts): Ditto.
12033 (compute_branch_probabilities): Ditto.
12034 (compute_value_histograms): Ditto.
12035 (branch_prob): Ditto.
12036 (end_branch_prob): Ditto.
12037 * coverage.c (read_counts_file): Ditto.
12038 (get_coverage_counts): Ditto.
12039 (tree_coverage_counter_addr): Ditto.
12040 (coverage_checksum_string): Ditto.
12041 (coverage_begin_output): Ditto.
12042 (coverage_end_function): Ditto.
12043 (build_fn_info_type): Ditto.
12044 (build_fn_info_value): Ditto.
12045 * libgcov.c (gcov_exit): Ditto.
12046 * gcov-dump.c (tag_function): Ditto.
12047 (compute_checksum): Remove.
12048
5d6358a5
AM
120492011-04-29 Alan Modra <amodra@gmail.com>
12050
12051 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12052 unspec plus offset. Tidy macho code.
12053
85ad2ef5
MJ
120542011-04-29 Martin Jambor <mjambor@suse.cz>
12055
12056 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
12057 node instead of a decl. Update all callers.
12058 * cgraph.h: Update declaration.
12059
437f4a00
IR
120602011-04-28 Ira Rosen <ira.rosen@linaro.org>
12061
12062 PR tree-optimization/48765
12063 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
12064 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
12065 to indicate if loop aware SLP is being used. Scan the statements
12066 and update the vectorization factor according to the type of
12067 vectorization before statement analysis.
12068 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
12069 pass it to vect_analyze_loop_operations.
12070 (vectorizable_reduction): Set number of copies to 1 in case of pure
12071 SLP statement.
12072 * tree-vect-stmts.c (vectorizable_conversion,
12073 vectorizable_assignment, vectorizable_shift,
12074 vectorizable_operation, vectorizable_type_demotion,
12075 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
12076 Likewise.
12077 (vectorizable_condition): Move the check that it is not SLP
12078 vectorization before the number of copies check.
12079 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
12080 to vectorize the loop using SLP.
12081
c6fc44f3
JJ
120822011-04-28 Jakub Jelinek <jakub@redhat.com>
12083
12084 PR middle-end/48597
12085 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
12086 inline asm.
12087
6c0170ea
JM
120882011-04-28 Joseph Myers <joseph@codesourcery.com>
12089
12090 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
12091 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
12092 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
12093 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
12094 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
12095 linux*.h headers.
6bec6c98 12096 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6c0170ea
JM
12097 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
12098 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
12099 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6bec6c98 12100 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6c0170ea
JM
12101 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
12102 REG_NAME.
12103 * config/i386/linux.h (REG_NAME): Don't define.
12104 * config/i386/linux64.h (REG_NAME): Don't define.
12105 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
12106 Undefine before defining.
12107
970dabbd
JH
121082011-04-28 Jan Hubicka <jh@suse.cz>
12109
6bec6c98
UB
12110 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
12111 nonconstant_names array.
970dabbd
JH
12112 (estimate_function_body_sizes): Build nonconstant_names array; handle
12113 BUILT_IN_CONSTANT_P.
12114
8d3e3924
RG
121152011-04-28 Richard Guenther <rguenther@suse.de>
12116
12117 PR bootstrap/48804
12118 Revert
12119 2011-04-28 Richard Guenther <rguenther@suse.de>
12120
12121 * tree-ssa-structalias.c (solve_constraints): Build succ graph
12122 as late as possible.
6bec6c98 12123
8576f20a
RG
121242011-04-28 Richard Guenther <rguenther@suse.de>
12125
12126 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
12127 (debug_constraint): Do it here.
12128 (dump_constraints): And here.
12129 (rewrite_constraints): And here.
12130 (dump_constraint_edge): Remove.
12131 (dump_constraint_graph): Rewrite to produce DOT output.
12132 (solve_constraints): Build succ graph as late as possible.
12133 Dump constraint graphs before and after solving.
12134
e38811ce
RG
121352011-04-28 Richard Guenther <rguenther@suse.de>
12136
12137 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
12138 New function split out from ...
12139 (find_func_aliases): ... here. Call it.
12140 (find_func_aliases_for_call): Likewise.
12141
fbaf0d0c
GDR
121422011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
12143
12144 * internal-fn.h (internal_fn_name_array): Declare.
12145 (internal_fn_flags_array): Likewise.
12146
cbb734aa
UB
121472011-04-27 Uros Bizjak <ubizjak@gmail.com>
12148
12149 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
12150 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
12151 Move from sse.md.
12152 (ssemodefsuffix): Remove.
12153 (ssevecmodesuffix): New mode attribute.
12154 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
12155 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
12156 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
12157 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
12158 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
12159 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
12160 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
12161 ssemodesuffix mode attribute.
12162 (float splitters): Use ssevecmodesuffix mode attribute.
12163 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
12164 (sseinsmode): Rename from avxvecmode.
12165 (avxsizesuffix): Rename from avxmodesuffix.
12166 (sseintvecmode): Rename from avxpermvecmode.
12167 (ssedoublevecmode): Rename from ssedoublesizemode.
12168 (ssehalfvecmode): Rename from avxhalfvecmode.
12169 (ssescalarmode): Rename from avxscalarmode.
12170 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
12171 templates for ssemodesuffix mode attribute.
12172 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
12173 mode attribute.
12174
12175 Adjust RTX patterns globally for renamed mode attributes.
12176
991278ab
JH
121772011-04-27 Jan Hubcika <jh@suse.cz>
12178
12179 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
12180 * ipa-inline-analysis.c: Include alloc-pool.h.
12181 (edge_predicate_pool): New.
12182 (trye_predicate_p): New function
12183 (false_predicate_p): New function.
12184 (add_clause): Sanity check that false clauses are "optimized";
12185 never add clauses to predicate that is already known to be false.
12186 (and_predicate): Use flase_predicate_p.
12187 (evaulate_predicate): Rename to ...
12188 (evaluate_predicate): ... this one; update all callers; assert
12189 that false is not listed among possible truths.
12190 (dump_predicate): Use true_predicate_p.
12191 (account_size_time): Use false_predicate_p.
12192 (evaulate_conditions_for_edge): Rename to ...
12193 (evaluate_conditions_for_edge) ... this one.
12194 (edge_set_predicate): New function.
12195 (inline_edge_duplication_hook): Duplicate edge predicates.
12196 (inline_edge_removal_hook): Free edge predicates.
cbb734aa 12197 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
991278ab
JH
12198 (dump_inline_summary): Update.
12199 (estimate_function_body_sizes): Set edge predicates.
12200 (estimate_calls_size_and_time): Handle predicates.
12201 (estimate_callee_size_and_time): Update.
12202 (remap_predicate): Add toplev_predicate; update comment.
12203 (remap_edge_predicates): New function.
12204 (inline_merge_summary): Compute toplev predicate; update.
12205 (read_predicate): New function.
12206 (read_inline_edge_summary): Use it.
12207 (inline_read_section): Likewise.
12208 (write_predicate): New function.
12209 (write_inline_edge_summary): Use it.
12210 (inline_write_summary): Likewise.
12211 (inline_free_summary): Free alloc pool and edge summary vec.
12212
648b5f85
RG
122132011-04-27 Richard Guenther <rguenther@suse.de>
12214
12215 * tree-ssa-structalias.c (changed_count): Remove.
12216 (changed): Use a bitmap.
12217 (unify_nodes): Adjust.
12218 (do_sd_constraint): Likewise.
12219 (do_ds_constraint): Likewise.
12220 (do_complex_constraint): Likewise.
12221 (solve_graph): Likewise.
12222
4d5dcfb2
JH
122232011-04-27 Jan Hubicka <jh@suse.cz>
12224
12225 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
12226
200eb7d2
UB
122272011-04-27 Uros Bizjak <ubizjak@gmail.com>
12228
12229 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
12230 (avx_vperm2f128_*_operand): Ditto.
12231 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
12232 Use avx_vpermilp_parallel in insn condition.
12233 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
12234 Use avx_vperm2f128_parallel in insn condition.
12235
7d6e2521
RG
122362011-04-27 Richard Guenther <rguenther@suse.de>
12237
12238 * Makefile.in (tree-ssa-structalias.o): Remove
12239 gt-tree-ssa-structalias.h dependency.
12240 (GTFILES): Remove tree-ssa-structalias.c.
12241 * tree.c (allocate_decl_uid): New function.
12242 (make_node_stat): Use it.
12243 (copy_node_stat): Likewise.
12244 * tree.h (allocate_decl_uid): Declare.
12245 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
12246 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
12247 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
200eb7d2 12248 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7d6e2521
RG
12249 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
12250 (struct heapvar_map): Likewise.
12251 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
12252 heapvar_insert): Likewise.
12253 (make_heapvar_for): Rename to ...
12254 (make_heapvar): ... this. Simplify.
12255 (fake_var_decl_obstack): New global var.
12256 (build_fake_var_decl): New function.
12257 (make_constraint_from_heapvar): Adjust.
12258 (handle_lhs_call): Likewise.
12259 (create_function_info_for): Likewise.
12260 (intra_create_variable_infos): Likewise.
12261 (init_alias_vars): Allocate fake_var_decl_obstack.
12262 (init_alias_heapvars, delete_alias_heapvars): Remove.
12263 (compute_points_to_sets): Do not call init_alias_heapvars.
12264 (ipa_pta_execute): Likewise.
12265 (delete_points_to_sets): Free fake_var_decl_obstack.
12266
526ed6c2
UW
122672011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12268
12269 * config/spu/divmovti4.c (union qword_UTItype): New data type.
12270 (si_from_UTItype, si_to_UTItype): New functions.
12271 (__udivmodti4): Use them to implement type-punning.
12272 * config/spu/multi3.c (union qword_TItype): New data type.
12273 (si_from_TItype, si_to_TItype): New functions.
12274 (__multi3): Use them to implement type-punning.
12275
c187d33c
UW
122762011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12277
12278 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
12279
40982661
JH
122802011-04-27 Jan Hubicka <jh@suse.cz>
12281
12282 * ipa-prop.c (function_insertion_hook_holder): New holder.
12283 (ipa_add_new_function): New function.
200eb7d2
UB
12284 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
12285 Register/deregister holder.
40982661 12286
9aef53ee
RG
122872011-04-27 Richard Guenther <rguenther@suse.de>
12288
12289 PR tree-optimization/48772
200eb7d2 12290 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
9aef53ee 12291
f63d806d
RG
122922011-04-27 Richard Guenther <rguenther@suse.de>
12293
12294 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
12295 TARGET_MEM_REF handling.
12296
e1ea7451
NC
122972011-04-27 Nick Clifton <nickc@redhat.com>
12298
9b5db25d
NC
12299 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
12300 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
12301 (REG_CLASS_NAMES): Likewise.
12302 (REG_CLASS_CONTENTS): Likewise.
12303 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
12304 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
12305 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
12306 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
12307 (EVEN_REGS): New macro. Alias for QUAD_REGS.
12308 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
12309 duplicate register classes.
97d20907 12310 (frv_class_likely_spilled_p): Likewise.
9b5db25d
NC
12311 (frv_register_move_cost): Likewise.
12312
e1ea7451
NC
12313 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
12314 end of the regno_reg_class array.
12315
5c2f94b4
JJ
123162011-04-27 Jakub Jelinek <jakub@redhat.com>
12317
12318 PR c/48742
12319 * c-typeck.c (build_binary_op): Don't wrap arguments if
12320 int_operands is true.
12321
57a944d7
KK
123222011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
12323
12324 PR target/48767
12325 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
12326 targetm.calls.must_pass_in_stack for void type.
12327
898b8927
JH
123282011-04-26 Jan Hubicka <jh@suse.cz>
12329
12330 * cgraphbuild.c (build_cgraph_edges): Update call
12331 of cgraph_create_edge and cgraph_create_indirect_edge.
12332 * cgraph.c (cgraph_create_edge_including_clones,
12333 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
12334 cgraph_update_edges_for_call_stmt_node): Do not take nest
12335 argument; do not initialize call_stmt_size/time.
12336 (dump_cgraph_node): Do not dump nest.
12337 (cgraph_clone_edge): Do not take loop_nest argument;
12338 do not propagate it; do not clone call_stmt_size/time.
12339 (cgraph_clone_node): Likewise.
12340 (cgraph_create_virtual_clone): Update.
12341 * cgraph.h (struct cgraph_edge): Remove
12342 call_stmt_size/call_stmt_time/loop_nest.
12343 (cgraph_create_edge, cgraph_create_indirect_edge,
12344 cgraph_create_edge_including_clones, cgraph_clone_node): Update
12345 prototype.
12346 * tree-emutls.c (gen_emutls_addr): Update.
12347 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
12348 loop_nest; handle indirect calls, too.
12349 (clone_inlined_nodes): Do not care about updating inline summaries.
12350 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
12351 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
12352 stream call_stmt_size/call_stmt_time/loop_nest.
12353 * ipa-inline.c (edge_badness): Update.
12354 (ipa_inline): dump summaries after inlining.
12355 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
200eb7d2 12356 New.
898b8927
JH
12357 (inline_edge_summary): New function.
12358 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
12359 (inline_edge_removal_hook): Handle edge summaries.
12360 (inline_edge_duplication_hook): New hook.
12361 (inline_summary_alloc): Alloc hooks.
12362 (initialize_growth_caches): Do not register removal hooks.
12363 (free_growth_caches); Do not free removal hook.
12364 (dump_inline_edge_summary): New function.
12365 (dump_inline_summary): Use it.
12366 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
12367 (inline_update_callee_summaries): New function.
12368 (inline_merge_summary): Use it.
12369 (do_estimate_edge_time, do_estimate_edge_growth): Update.
12370 (read_inline_edge_summary): New function.
12371 (inline_read_section): Use it.
12372 (write_inline_edge_summary): New function.
12373 (inline_write_summary): Use it.
12374 (inline_free_summary): Free edge new holders.
12375 * tree-inline.c (copy_bb): Update.
12376
ffa03772
JM
123772011-04-26 Jason Merrill <jason@redhat.com>
12378
12379 * tree-eh.c (lower_try_finally_switch): Create the label along with
12380 the CASE_LABEL_EXPR.
12381
6d7b45ad
DM
123822011-04-26 David S. Miller <davem@davemloft.net>
12383 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12384
12385 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
12386 * configure: Regenerate.
12387
df10b6d4
MM
123882011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
12389
12390 PR target/48258
12391 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
12392 reduction.
12393 (VEC_reduc): New code iterator and splitters for vector reduction.
12394 (VEC_reduc_name): Ditto.
12395 (VEC_reduc_rtx): Ditto.
12396 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
12397 (reduc_<VEC_reduc_name>_v4sf): Ditto.
12398
12399 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
12400 support for extracting SF on VSX.
12401
12402 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
12403 generating xscvspdp.
12404 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
12405 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
12406 double add, minimum, maximum vector reduction.
12407 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
12408 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
12409 optimize double vector reduction.
12410 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
12411
35a5db04
JM
124122011-04-26 Joseph Myers <joseph@codesourcery.com>
12413
12414 * config/fr30/fr30.h (inhibit_libc): Don't define.
12415 * config/m32r/m32r-protos.h: Correct comment.
12416 * config/v850/v850.h (GHS_default_section_names,
12417 GHS_current_section_names): Use tree, not union tree_node *.
12418
2f964ad6
XDL
124192011-04-26 Xinliang David Li <davidxl@google.com>
12420
200eb7d2 12421 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2f964ad6
XDL
12422 * c-family/c-opts.c (c_common_handle_option): Set
12423 warn_maybe_uninitialized.
12424 * opts.c (common_handle_option): Ditto.
12425 * common.opt: New option.
12426 * tree-ssa.c (warn_uninit): Add one more parameter.
12427 (warn_uninitialized_var): Pass warning code.
12428 * tree-flow.h: Interface change.
12429
9c7bd91a
RO
124302011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12431
200eb7d2 12432 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
9c7bd91a
RO
12433 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
12434 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
12435
c2f36e21
RO
124362011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12437
12438 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
12439 * config/mips/mips.opt (mmips-tfile): Remove.
12440
12441 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
12442 mips-tdump reference to ...
200eb7d2 12443 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
c2f36e21
RO
12444 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
12445 reference by Tru64 UNIX.
12446
2c9da85b
JJ
124472011-04-26 Jakub Jelinek <jakub@redhat.com>
12448
0c5f6539
JJ
12449 PR debug/48768
12450 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
12451 is error_mark_node, set value to NULL.
12452
2c9da85b
JJ
12453 PR tree-optimization/48734
12454 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
12455 if return value from maybe_fold_*_comparsions isn't something
12456 the code is prepared to handle.
12457
77fa1d54
UB
124582011-04-26 Uros Bizjak <ubizjak@gmail.com>
12459
12460 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
12461 mode check.
12462 (ext_QIreg_nomode_operands): Remove.
12463 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
12464 (*andsi_1): Ditto.
12465 (*andhi_1): Ditto.
12466
0e2a6c2b
AS
124672011-04-26 Andrew Stubbs <ams@codesourcery.com>
12468
12469 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
12470
961562d8
RB
124712011-04-26 Richard Guenther <rguenther@suse.de>
12472
12473 * c-typeck.c (build_unary_op): Do not expand array-refs via
12474 pointer arithmetic. Only adjust qualifiers for function types.
12475
124762011-04-26 Richard Guenther <rguenther@suse.de>
12477
12478 PR middle-end/48694
12479 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
12480 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
77fa1d54
UB
12481 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
12482 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
961562d8 12483
a0d260fc
PC
124842011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
12485
6bec6c98 12486 * doc/extend.texi: Document __underlying_type.
a0d260fc 12487
4d583bb9
SB
124882011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
12489
12490 * config/rs6000/titan.md (automata_option "progress"): Remove.
12491
1f3fcdc3
JL
124922011-04-25 Jeff Law <law@redhat.com>
12493
12494 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
12495
e5b0dad8
JK
124962011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
12497
12498 * system.h (ENUM_BITFIELD): Remove.
12499
5157a881 125002011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
b15eacc7 12501 Eric Botcazou <ebotcazou@adacore.com>
5157a881
MK
12502
12503 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
12504 for STORE_FLAG_VALUE==-1 case.
12505
ed4c109e
RS
125062011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
12507
12508 PR target/43804
12509 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
12510 LEGITIMATE_PIC_OPERAND_P.
12511
f3181aa2
JH
125122011-04-24 Jan Hubicka <jh@suse.cz>
12513
12514 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
12515 WPA hack.
77fa1d54
UB
12516 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
12517 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
12518 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
f3181aa2
JH
12519 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
12520 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
12521 Sanity check predicate length.
12522 (remap_predicate): Likewise; sanity check jump functions.
12523 (inline_read_section, inline_write_summary): Sanity check
12524 predicate length.
12525
5307cbaa
PC
125262011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
12527
12528 PR other/48748
12529 * doc/extend.texi (Type Traits): Document __is_standard_layout,
12530 __is_literal_type, and __is_trivial; update throughout about
12531 possibly cv-qualified void types.
12532
bebd5f99
GP
125332011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
12534
12535 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
12536 testsuite and make it version agnostic.
12537
7ee28a74
JH
125382011-04-22 Jan Hubicka <jh@suse.cz>
12539
12540 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
12541
16997bc0
JJ
125422011-04-23 Jakub Jelinek <jakub@redhat.com>
12543
12544 PR c/48685
12545 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
12546 to VOID_TYPE even around MODIFY_EXPR.
12547
f94d4ab1
MS
125482011-04-22 Mike Stump <mikestump@comcast.net>
12549
1a84c183 12550 * gensupport.c (read_md_rtx): Fix typo in comment.
f94d4ab1
MS
12551 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
12552 comment.
12553
632b4f8e
JH
125542011-04-22 Jan Hubicka <jh@suse.cz>
12555
12556 * gengtype.c (open_base_files): Add ipa-inline.h include.
77fa1d54
UB
12557 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
12558 ipa-prop.c; update all uses.
632b4f8e 12559 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
77fa1d54
UB
12560 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
12561 merge summary of inlined function into former caller.
632b4f8e
JH
12562 * ipa-inline.c (max_benefit): Remove.
12563 (edge_badness): Compensate for removal of benefits.
77fa1d54
UB
12564 (update_caller_keys): Use
12565 reset_node_growth_cache/reset_edge_growth_cache.
632b4f8e
JH
12566 (update_callee_keys): Likewise.
12567 (update_all_callee_keys): Likewise.
77fa1d54
UB
12568 (inline_small_functions): Do not collect max_benefit; do not reset
12569 estimated_growth; call free_growth_caches and initialize_growth_caches.
12570 * ipa-inline.h (struct condition, type clause_t, struct predicate,
12571 struct size_time_entry): New structures.
632b4f8e 12572 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
77fa1d54
UB
12573 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
12574 and estimated_growth.
632b4f8e
JH
12575 (edge_growth_cache_entry): New structure.
12576 (node_growth_cache, edge_growth_cache): New global vars.
12577 (estimate_growth): Turn into inline.
12578 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
12579 initialize_growth_caches, free_growth_caches): Declare.
12580 (estimate_edge_growth): Rewrite.
12581 (estimate_edge_time): Implement as inline cache lookup.
77fa1d54
UB
12582 (reset_node_growth_cache, reset_edge_growth_cache): New inline
12583 functions.
632b4f8e
JH
12584 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
12585 (NUM_CONDITIONS): New constant.
12586 (predicate_conditions): New enum.
12587 (IS_NOT_CONSTANT): New constant.
12588 (edge_removal_hook_holder): New var.
12589 (node_growth_cache, edge_growth_cache): New global vars.
77fa1d54
UB
12590 (true_predicate, single_cond_predicate, false_predicate,
12591 not_inlined_predicate, add_condition, add_clause, and_predicates,
12592 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
12593 dump_clause, dump_predicate, account_size_time,
632b4f8e
JH
12594 evaulate_conditions_for_edge): New functions.
12595 (inline_summary_alloc): Move to heap.
12596 (inline_node_removal_hook): Clear condition and entry vectors.
12597 (inline_edge_removal_hook): New function.
12598 (initialize_growth_caches, free_growth_caches): New function.
12599 (dump_inline_summary): Update.
12600 (edge_execution_predicate): New function.
12601 (will_be_nonconstant_predicate): New function.
12602 (estimate_function_body_sizes): Compute BB and constantness predicates.
12603 (compute_inline_parameters): Do not clear estimated_growth.
12604 (estimate_edge_size_and_time): New function.
12605 (estimate_calls_size_and_time): New function.
12606 (estimate_callee_size_and_time): New function.
12607 (remap_predicate): New function.
12608 (inline_merge_summary): New function.
12609 (do_estimate_edge_time): New function based on...
12610 (estimate_edge_time): ... this one.
12611 (do_estimate_edge_growth): New function.
12612 (do_estimate_growth): New function based on....
12613 (estimate_growth): ... this one.
12614 (inline_analyze_function): Analyze after deciding on jump functions.
12615 (inline_read_section): New function.
12616 (inline_read_summary): Use it.
12617 (inline_write_summary): Write all the new data.
12618 * ipa-prop.c (ipa_get_param_decl_index): Export.
12619 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
77fa1d54
UB
12620 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
12621 Declare.
12622 (ipa_get_lattice): Move here from ipa-cp.c
632b4f8e
JH
12623 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
12624 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
12625 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
12626 cgraph_edge_inlinable_p): Remove.
12627 * cgraphunit.c: Include ipainline.h
77fa1d54
UB
12628 (cgraph_process_new_functions): Update call of
12629 compute_inline_parameters.
632b4f8e 12630
1df5b0db
RG
126312011-04-22 Richard Guenther <rguenther@suse.de>
12632
12633 * tree.c (build_int_cst): Properly create canonicalized integer
12634 constants.
12635 (build_int_cst_type): Remove scary comments.
12636
ae01169c
XDL
126372011-04-22 Xinliang David Li <davidxl@google.com>
12638
12639 * toplev.c (process_options): Enable -Werror=coverage-mismatch
12640 by default when -Wno-error is not specified.
12641 * opts-global.c (decode_options): Remove call to
12642 control_warning_options.
12643
93dfac24
JJ
126442011-04-22 Jakub Jelinek <jakub@redhat.com>
12645
12646 PR tree-optimization/48717
12647 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
12648 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
12649
1b5f5069
JM
126502011-04-22 Joseph Myers <joseph@codesourcery.com>
12651
12652 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
12653 definition where used.
12654
144f4153
JJ
126552011-04-22 Jakub Jelinek <jakub@redhat.com>
12656
12657 PR c/48716
12658 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
12659 TREE_STATIC variables declared inside of some OpenMP construct.
12660
f9fd305b
MJ
126612011-04-22 Martin Jambor <mjambor@suse.cz>
12662
12663 PR middle-end/48585
1d284ec5 12664 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
f9fd305b 12665
49819fef
AM
126662011-04-22 Alexander Monakov <amonakov@ispras.ru>
12667
12668 PR c/36750
12669 * c-typeck.c (pop_init_level): Do not warn about initializing
12670 with ` = {0}'.
12671
401f6699
AM
126722011-04-22 Alan Modra <amodra@gmail.com>
12673
12674 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
12675 when returning call_cookie.
12676 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
12677 pointers, to functions with no more vector args than the current
12678 function, and some non-local calls for ABI_V4.
12679 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
12680 sibcall_nonlocal_aix64): Combine to ..
12681 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
12682 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
12683 (sibcall_value_nonlocal_aix<mode>): ..likewise.
12684 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
12685 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
12686 operand.
12687 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
12688 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
12689 sibcall_value_symbolic_64): Delete.
12690
903d1e67
XDL
126912011-04-21 Xinliang David Li <davidxl@google.com>
12692
12693 * cgraph.h: Remove pid.
12694 * cgraph.c: Remove pid.
12695 * value-prof.c (init_node_map): New function.
12696 (del_node_map): New function.
12697 (find_func_by_funcdef_no): New function.
12698 (gimple_ic_transform): Call new function.
12699 * cgraphunit.c (cgraph_finalize_function): Remove pid.
12700 * function.c (get_last_funcdef_no): New function.
12701 * function.h (get_last_funcdef_no): New function.
12702 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
12703 to libgcov function.
12704 (tree-profiling): Call node map init and delete function.
12705
7378e95f
ILT
127062011-04-21 Ian Lance Taylor <iant@google.com>
12707
12708 * godump.c (go_format_type): Use exported Go name for anonymous
12709 field name.
12710
e84a6fcf
NF
127112011-04-21 Nathan Froyd <froydnj@codesourcery.com>
12712
12713 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
12714 Call builtin_function_type_list instead of builtin_function_type.
12715 (UNARY, BINARY, TRINARY, QUAD): Likewise.
12716
4fe058e2
NF
127172011-04-21 Nathan Froyd <froydnj@codesourcery.com>
12718
12719 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
12720 build_function_type_list instead of build_function_type.
12721 Delete variable `endlink'.
12722
1ba0a2d2
NF
127232011-04-21 Nathan Froyd <froydnj@codesourcery.com>
12724
12725 * config/s390/s390.c (s390_init_builtins): Call
12726 build_function_type_list instead of build_function_type.
12727
c0676219
NF
127282011-04-21 Nathan Froyd <froydnj@codesourcery.com>
12729
12730 * config/ia64/ia64.c (ia64_init_builtins): Call
12731 build_function_type_list instead of builtin_function_type.
12732
6ddfda8a
ER
127332011-04-21 Easwaran Raman <eraman@google.com>
12734
3a6448ea 12735 * cfgexpand.c (stack_var): Remove OFFSET...
6ddfda8a
ER
12736 (add_stack_var): ...and its reference here...
12737 (expand_stack_vars): ...and here.
12738 (stack_var_cmp): Sort by descending order of size.
12739 (partition_stack_vars): Change heuristic.
1d284ec5 12740 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6ddfda8a
ER
12741 (dump_stack_var_partition): Add newline after each partition.
12742
23756963
DA
127432011-04-21 Dimitrios Apostolou <jimis@gmx.net>
12744 Jeff Law <law@redhat.com>
12745
77fa1d54 12746 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
23756963
DA
12747 * gengtype.c (matching_file_name_substitute): Likewise.
12748
aa2a43d2
RG
127492011-04-21 Richard Guenther <rguenther@suse.de>
12750
12751 PR lto/48703
1d284ec5 12752 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
aa2a43d2 12753
4d931f41
EB
127542011-04-21 Eric Botcazou <ebotcazou@adacore.com>
12755
12756 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
12757
f103fa7a
RG
127582011-04-21 Richard Guenther <rguenther@suse.de>
12759
12760 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
12761 file name.
12762
e19f6650
RG
127632011-04-21 Richard Guenther <rguenther@suse.de>
12764
12765 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
12766 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
12767 Use DECL_P, not SSA_VAR_P.
12768 (ptr_derefs_may_alias_p): Likewise.
12769 (ptr_deref_may_alias_ref_p_1): Likewise.
12770 (decl_refs_may_alias_p): Likewise.
12771 (refs_may_alias_p_1): Likewise.
12772 (ref_maybe_used_by_call_p_1): Likewise.
12773 (call_may_clobber_ref_p_1): Likewise.
12774 (indirect_ref_may_alias_decl_p): Assume indirect refrences
12775 are either MEM_REF or TARGET_MEM_REF.
12776 (indirect_refs_may_alias_p): Likewise.
12777 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
12778 for MEM_EXPR of indirect calls.
12779
9d1831bb
TG
127802011-04-21 Tristan Gingold <gingold@adacore.com>
12781
12782 * vmsdbgout.c (write_srccorr): Compute file length from the string.
12783 (dst_file_info_struct): Remove flen field.
12784 (lookup_filename): Remove code that set flen field.
12785
f199c029
TG
127862011-04-21 Tristan Gingold <gingold@adacore.com>
12787
12788 * config/ia64/ia64.c (ia64_start_function): Add a guard.
12789
2894086e
UB
127902011-04-21 Uros Bizjak <ubizjak@gmail.com>
12791
12792 PR target/48708
12793 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
12794 vec_extract and vec_concat for non-SSE4_1 targets.
12795
53f94a5c
RG
127962011-04-21 Richard Guenther <rguenther@suse.de>
12797
12798 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
12799 return statements.
12800
f0dca5ba
JM
128012011-04-21 Joseph Myers <joseph@codesourcery.com>
12802
12803 * config/i386/cygming.h (union tree_node, TREE): Don't define or
12804 undefine.
12805 (FILE): Don't undefine.
12806
984514ac
JM
128072011-04-21 Joseph Myers <joseph@codesourcery.com>
12808
12809 * config/alpha/alpha.c (struct machine_function): Use rtx, not
12810 struct rtx_def *.
12811 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
12812 struct rtx_def *.
12813 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2894086e 12814 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
984514ac
JM
12815 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
12816 rtx_def *.
12817 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
12818 definitions where used.
12819 * config/microblaze/microblaze.h (struct microblaze_args): Use
12820 rtx, not struct rtx_def *.
12821 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
12822 rtx_def *.
2894086e
UB
12823 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
12824 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
984514ac
JM
12825 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
12826 not struct rtx_def *.
12827 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
12828 struct rtx_def *.
12829 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
12830 rtx_def *.
2894086e 12831 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
984514ac 12832
0b5a2724
RS
128332011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
12834
12835 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
12836 operand_equal_p to compare DR_BASE_ADDRESSes.
12837 (vect_check_interleaving): Likewise.
12838
4b18d683
RS
128392011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
12840
12841 PR target/46329
12842 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
12843 for all Neon struct constants.
12844
1a627b35
RS
128452011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
12846
12847 * target.def (legitimate_constant_p): New hook.
12848 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
12849 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
12850 * doc/tm.texi: Regenerate.
12851 * hooks.h (hook_bool_mode_rtx_true): Declare.
12852 * hooks.c (hook_bool_mode_rtx_true): Define.
12853 * system.h (LEGITIMATE_CONSTANT_P): Poison.
12854 * calls.c (precompute_register_parameters): Replace uses of
12855 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
12856 (emit_library_call_value_1): Likewise.
12857 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
12858 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
12859 * ira-costs.c (scan_one_insn): Likewise.
12860 * recog.c (general_operand, immediate_operand): Likewise.
12861 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
12862 * reload1.c (init_eliminable_invariants): Likewise.
12863
12864 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
12865 mode argument.
12866 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
12867 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
12868 argument.
12869 (TARGET_LEGITIMATE_CONSTANT_P): Define.
12870 * config/alpha/predicates.md (input_operand): Update call to
12871 alpha_legitimate_constant_p.
12872
12873 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
12874 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
12875 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
12876 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12877 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
12878 (arm_legitimate_constant_p): New functions.
12879 (arm_cannot_force_const_mem): Make static.
12880
12881 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
12882
12883 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
12884 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
12885 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
12886 instead of bfin_legitimate_constant_p.
12887 (bfin_legitimate_constant_p): Make static. Add a mode argument.
12888 (TARGET_LEGITIMATE_CONSTANT_P): Define.
12889
12890 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
12891
12892 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
12893
12894 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
12895 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
12896 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12897 (frv_legitimate_constant_p): Make static. Add a mode argument.
12898
12899 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
12900 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
12901 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
12902
12903 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
12904 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
12905 * config/i386/i386.c (legitimate_constant_p): Rename to...
12906 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
12907 argument.
12908 (ix86_cannot_force_const_mem): Update accordingly.
12909 (ix86_legitimate_address_p): Likewise.
12910 (TARGET_LEGITIMATE_CONSTANT_P): Define.
12911 * config/i386/i386.md: Update commentary.
12912
12913 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
12914 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
12915 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12916 (ia64_legitimate_constant_p): Make static. Add a mode argument.
12917
12918 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
12919
12920 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
12921 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
12922 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12923 (lm32_legitimate_constant_p): Make static. Add a mode argument.
12924
12925 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
12926 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
12927 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
12928
12929 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
12930 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12931 (m32r_legitimate_constant_p): New function.
12932
12933 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
12934 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
12935 LEGITIMATE_CONSTANT_P.
12936 (LEGITIMATE_CONSTANT_P): Delete.
12937 * config/m68k/m68k.c (m68k_expand_prologue): Call
12938 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
12939 (m68k_legitimate_constant_p): New function.
12940 * config/m68k/m68k.md: Update comments.
12941
12942 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
12943 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12944 (mcore_legitimate_constant_p): New function.
12945
12946 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
12947 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
12948 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
12949 Add a mode argument.
12950 (mep_legitimate_address): Update accordingly.
12951 (TARGET_LEGITIMATE_CONSTANT_P): Define.
12952
12953 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
12954 Delete.
12955 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
12956 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
12957 static. Check OP's mode for VOIDmode.
12958 (microblaze_legitimate_constant_p): New function.
12959 (TARGET_LEGITIMATE_CONSTANT_P): Define.
12960
12961 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
12962 * config/mips/mips.c (mips_legitimate_constant_p): New function.
12963 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
12964 (TARGET_LEGITIMATE_CONSTANT_P): Define.
12965 * config/mips/predicates.md: Update comments.
12966
12967 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
12968 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
12969 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12970 (mmix_legitimate_constant_p): Make static, return a bool, and take
12971 a mode argument.
12972 (mmix_print_operand_address): Update accordingly.
12973
12974 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
12975 Delete.
12976 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2894086e
UB
12977 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
12978 static. Add a mode argument.
1a627b35
RS
12979 (TARGET_LEGITIMATE_CONSTANT_P): Define.
12980
12981 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
12982
12983 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
12984 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12985 (pa_legitimate_constant_p): New function.
12986
12987 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
12988
12989 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
12990 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12991 (pdp11_legitimate_constant_p): New function.
12992
12993 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
12994 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12995 (rs6000_legitimate_constant_p): New function.
12996
12997 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
12998 (rx_legitimate_constant_p): ...this.
12999 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
13000 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
13001 (rx_legitimate_constant_p): ...this.
13002 (TARGET_LEGITIMATE_CONSTANT_P): Define.
13003 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
13004
13005 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
13006 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
13007 * config/s390/s390.c (legitimate_constant_p): Rename to...
13008 (s390_legitimate_constant_p): ...this. Make static, return a bool,
13009 and add a mode argument.
13010 (TARGET_LEGITIMATE_CONSTANT_P): Define.
13011
13012 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
13013
13014 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
13015 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13016 (sh_legitimate_constant_p): New function.
13017
13018 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
13019 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
13020 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13021 (legitimate_constant_p): Rename to...
13022 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
13023 argument.
13024 (constant_address_p): Update accordingly.
13025
13026 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
13027 argument and return a bool.
13028 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
13029 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13030 (spu_legitimate_constant_p): Add a mode argument and return a bool.
13031 (spu_rtx_costs): Update accordingly.
13032 * config/spu/predicates.md (vec_imm_operand): Likewise.
13033
13034 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
13035
13036 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
13037 * config/v850/v850.c (v850_legitimate_constant_p): New function.
13038 (TARGET_LEGITIMATE_CONSTANT_P): Define.
13039
13040 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
13041 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
13042 * config/vax/vax.c (legitimate_constant_p): Likewise.
13043
13044 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
13045 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13046 (xtensa_legitimate_constant_p): New function.
13047
fbbf66e7
RS
130482011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
13049
13050 * target.def (cannot_force_const_mem): Add a mode argument.
13051 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
13052 * doc/tm.texi: Regenerate.
13053 * hooks.h (hook_bool_mode_rtx_false): Declare.
13054 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
13055 (hook_bool_mode_const_rtx_true): Likewise.
13056 (hook_bool_mode_rtx_false): New function.
13057 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
13058 to be non-VOID. Update call to cannot_force_const_mem.
13059 (find_reloads): Update accordingly.
13060 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
13061 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
13062 argument.
13063 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
13064 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
13065 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
13066 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
13067 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
13068 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
13069 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
13070 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
13071 (m68k_cannot_force_const_mem): ...this new function.
13072 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
13073 argument.
13074 (mips_const_insns, mips_legitimize_const_move): Update calls.
13075 (mips_secondary_reload_class): Likewise.
13076 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
13077 (pa_cannot_force_const_mem): ...this new function.
2894086e 13078 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
fbbf66e7
RS
13079 (rs6000_cannot_force_const_mem): ...this new function.
13080 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
13081 argument.
13082 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
13083 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
13084 to...
13085 (xtensa_cannot_force_const_mem): ...this new function.
13086
b861891b
NF
130872011-04-20 Nathan Froyd <froydnj@codesourcery.com>
13088
13089 * config/mips/mips.c (mips16_build_function_stub): Call
13090 build_function_type_list instead of build_function_type.
13091 (mips16_build_call_stub): Likewise.
13092
34149ed5
NF
130932011-04-20 Nathan Froyd <froydnj@codesourcery.com>
13094
13095 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
13096 instead of build_function_type.
13097
12526412
NF
130982011-04-20 Nathan Froyd <froydnj@codesourcery.com>
13099
13100 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
13101 instead of build_function_type.
13102
3b84d61f
UB
131032011-04-20 Uros Bizjak <ubizjak@gmail.com>
13104
13105 PR target/48678
13106 * config/i386/i386.md (insv): Change operand 0 constraint to
13107 "register_operand". Change operand 1 and 2 constraint to
13108 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
13109 * config/i386/sse.md (sse4_1_pinsrb): Export.
13110 (sse2_pinsrw): Ditto.
13111 (sse4_1_pinsrd): Ditto.
13112 (sse4_1_pinsrq): Ditto.
13113 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
13114 * config/i386/i386.c (ix86_expand_pinsr): New.
13115
4a25752b
ER
131162011-04-20 Easwaran Raman <eraman@google.com>
13117
13118 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
13119 containing union type only with -fstrict-aliasing.
13120
04695783
JM
131212011-04-20 Jim Meyering <meyering@redhat.com>
13122
13123 Remove useless if-before-free tests.
13124 * calls.c (expand_call, save_area): Likewise.
13125 * cfgcleanup.c (try_forward_edges): Likewise.
13126 * collect2.c (collect_execute): Likewise.
13127 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
13128 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
13129 * coverage.c (coverage_checksum_string): Likewise.
13130 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
13131 * cselib.c (cselib_init): Likewise.
13132 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
13133 (df_set_clean_cfg): Likewise.
13134 * function.c (free_after_compilation): Likewise.
13135 * gcc.c (do_spec_1, main): Likewise.
13136 * gcov.c (create_file_names): Likewise.
13137 * gensupport.c (identify_predicable_attribute): Likewise.
13138 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
13139 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
13140 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
13141 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
13142 * ipa-pure-const.c (local_pure_const): Likewise.
13143 * ipa-reference.c (propagate): Likewise.
13144 * ira-costs.c (free_ira_costs): Likewise.
13145 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
13146 * matrix-reorg.c (mat_free): Likewise.
13147 * prefix.c (get_key_value): Likewise.
13148 * profile.c (compute_value_histograms): Likewise.
13149 * reload1.c (free_reg_equiv): Likewise.
13150 * sched-deps.c (free_deps): Likewise.
13151 * sel-sched-ir.c (fence_clear): Likewise.
13152 * sese.c (set_rename, if_region_set_false_region): Likewise.
13153 * tree-data-ref.c (free_rdg): Likewise.
13154 * tree-eh.c (lower_try_finally): Likewise.
13155 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
13156 * tree-ssa-live.c (delete_var_map): Likewise.
13157 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
13158 * tree-ssa-pre.c (phi_trans_add): Likewise.
13159
6788475a
JJ
131602011-04-20 Jakub Jelinek <jakub@redhat.com>
13161
13162 PR tree-optimization/48611
13163 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
13164 beyond ERT_MUST_NOT_THROW region.
13165
0eda4033
CM
131662011-04-20 Catherine Moore <clm@codesourcery.com>
13167
13168 * config/mips/mips.opt (mfix-24k): New.
13169 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
13170 * config/mips/mips.md (length): Increase by 4 for stores if
13171 fixing 24K errata.
13172 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
13173 all noreorder if fixing 24K errata.
13174 * doc/invoke.texi: Document mfix-24k.
13175
01475747
CLT
131762011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
13177
13178 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2894086e 13179 quad-word modes, reduce to 9-bit index range when above 1016 limit.
01475747 13180
bc2c1a60
AS
131812011-04-20 Andrew Stubbs <ams@codesourcery.com>
13182
13183 * config/arm/arm.c (arm_gen_constant): Move movw support ....
13184 (const_ok_for_op): ... to here.
13185
583722ee
KT
131862011-04-20 Kai Tietz <ktietz@redhat.com>
13187
2894086e
UB
13188 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
13189 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
583722ee 13190
422c0989
AS
131912011-04-20 Andrew Stubbs <ams@codesourcery.com>
13192
13193 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
13194
d7978bff
RG
131952011-04-20 Richard Guenther <rguenther@suse.de>
13196
13197 PR tree-optimization/47892
13198 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
13199 are if-convertible.
13200
818412ba
EB
132012011-04-20 Eric Botcazou <ebotcazou@adacore.com>
13202
13203 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
13204
b501ce4e
TG
132052011-04-20 Tristan Gingold <gingold@adacore.com>
13206
13207 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
13208
516edfdd
GJL
132092011-04-20 Georg-Johann Lay <avr@gjlay.de>
13210
13211 PR target/18145
13212
13213 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
13214 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
13215 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
13216 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
13217 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
13218
13219 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
13220 New prototype.
13221
13222 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
13223 (avr_asm_named_section, avr_asm_output_aligned_common,
13224 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
13225 New functions to update...
13226 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
13227 (avr_asm_init_sections): Overwrite section callbacks for
13228 data_section, bss_section.
13229 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
13230 from here to...
13231 (avr_file_end): ...here.
13232
dafc9511
RG
132332011-04-20 Richard Guenther <rguenther@suse.de>
13234
13235 PR middle-end/48695
13236 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2894086e 13237 objects and types here. Adjust for their offset before comparing.
dafc9511 13238
1da0876c
RS
132392011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
13240
13241 * tree-vect-stmts.c (vectorizable_store): Only chain one related
13242 statement per copy.
13243
25583c4f
RS
132442011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
13245
13246 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
13247 (GIMPLE_H): Include $(INTERNAL_FN_H).
13248 (OBJS-common): Add internal-fn.o.
13249 (internal-fn.o): New rule.
13250 * internal-fn.def: New file.
13251 * internal-fn.h: Likewise.
13252 * internal-fn.c: Likewise.
13253 * gimple.h: Include internal-fn.h.
13254 (GF_CALL_INTERNAL): New gf_mask.
13255 (gimple_statement_call): Put fntype into a union with a new
13256 internal_fn field.
13257 (gimple_build_call_internal): Declare.
13258 (gimple_build_call_internal_vec): Likewise.
13259 (gimple_call_same_target_p): Likewise.
13260 (gimple_call_internal_p): New function.
13261 (gimple_call_internal_fn): Likewise.
13262 (gimple_call_fntype): Return null for internal calls.
13263 (gimple_call_set_fntype): Assert that the function is not internal.
13264 (gimple_call_set_fn): Likewise.
13265 (gimple_call_set_fndecl): Likewise.
13266 (gimple_call_set_internal_fn): New function.
13267 (gimple_call_addr_fndecl): Handle null functions.
13268 (gimple_call_return_type): Likewise null types.
13269 * gimple.c (gimple_build_call_internal_1): New function.
13270 (gimple_build_call_internal): Likewise.
13271 (gimple_build_call_internal_vec): Likewise.
13272 (gimple_call_same_target_p): Likewise.
13273 (gimple_call_flags): Handle calls to internal functions.
13274 (gimple_call_fnspec): New function.
13275 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
13276 (gimple_has_side_effects): Handle null functions.
13277 (gimple_rhs_has_side_effects): Likewise.
13278 (gimple_call_copy_skip_args): Handle calls to internal functions.
13279 * cfgexpand.c (expand_call_stmt): Likewise.
13280 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
13281 * gimple-fold.c (gimple_fold_call): Handle null functions.
13282 (gimple_fold_stmt_to_constant_1): Don't fold
13283 calls to internal functions.
13284 * gimple-low.c (gimple_check_call_args): Handle calls to internal
13285 functions.
13286 * gimple-pretty-print.c (dump_gimple_call): Likewise.
13287 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
13288 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
13289 (do_warn_unused_result): Likewise.
13290 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
13291 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
13292 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
13293 the target of a call.
13294 (initialize_hash_element): Update accordingly.
13295 (hashable_expr_equal_p): Use gimple_call_same_target_p.
13296 (iterative_hash_hashable_expr): Handle calls to internal functions.
13297 (print_expr_hash_elt): Likewise.
13298 * tree-ssa-pre.c (can_value_number_call): Likewise.
13299 (eliminate): Handle null functions.
13300 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
13301 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
13302 (find_func_aliases): Likewise.
13303 * value-prof.c (gimple_ic_transform): Likewise.
13304 (gimple_indirect_call_to_profile): Likewise.
13305 * lto-streamer-in.c (input_gimple_stmt): Likewise.
13306 * lto-streamer-out.c (output_gimple_stmt): Likewise.
13307
1a3118e9
JH
133082011-04-19 Jan Hubicka <jh@suse.cz>
13309
13310 * ipa-inline-transform.c (save_inline_function_body): Add comments.
9d12f71a
EB
13311 * ipa-inline.c (inline_small_functions): Compute summaries first,
13312 populate heap later.
1a3118e9 13313
fee8b6da
JH
133142011-04-19 Jan Hubicka <jh@suse.cz>
13315
13316 * cgraph.h (save_inline_function_body): Remove.
13317 * ipa-inline-transform.c: New file, broke out of...
13318 * ipa-inline.c: ... this one; Update toplevel comment.
13319 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
13320 make global.
13321 (update_noncloned_frequencies): Move to ipa-inline-transform.c
13322 (cgraph_mark_inline_edge): Rename to inline_call; move to
13323 ipa-inline-transform.c.
13324 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
13325 move to ipa-inline-transform.c
13326 (recursive_inlining, inline_small_functions, flatten_function,
13327 ipa_inline, inline_always_inline_functions,
13328 early_inline_small_functions): Update.
13329 (inline_transform): Move to ipa-inline-transform.c.
13330 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
13331 Declare.
13332 * Makefile.in (ipa-inline-transform.o): New file.
13333 * cgraphunit.c (save_inline_function_body): Move to
13334 ipa-inline-transform.c
13335
f0679612
DD
133362011-04-19 DJ Delorie <dj@redhat.com>
13337
13338 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
13339 registers if we already know there aren't any.
13340 (m32c_emit_epilogue): Don't emit a barrier here.
13341 (m32c_emit_eh_epilogue): Likewise.
13342 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
13343 operands at expand time.
13344 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
13345 int" wchar type.
13346 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
13347 duplicates. Provide aliases instead.
13348 * config/m32c/prologue.md (eh_return): Emit a barrier here.
13349 (eh_epilogue): Add a "(return)" here as a hint to other parts of
13350 the compiler.
13351
32257ddc
AS
133522011-04-19 Anatoly Sokolov <aesok@post.ru>
13353
13354 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
13355 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
13356 (general_or_i64_p, sparc_register_move_cost): New function.
13357
60bea929
RO
133582011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13359
13360 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3b84d61f 13361 Add lynx, mipssde. Sort table.
60bea929 13362
444b3995 133632011-04-19 Xinliang David Li <davidxl@google.com>
3b84d61f 13364
9d12f71a
EB
13365 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
13366 not negative.
444b3995 13367
d708ce50
JJ
133682011-04-19 Jakub Jelinek <jakub@redhat.com>
13369
13370 PR target/48678
13371 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
13372 is a SUBREG with non-MODE_INT mode inside of it.
13373
49c471e3
MJ
133742011-04-19 Martin Jambor <mjambor@suse.cz>
13375
13376 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
13377 also according to actual contants.
13378 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
13379 (gimple_fold_call): Use it.
13380 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
13381
0004f992
MJ
133822011-04-19 Martin Jambor <mjambor@suse.cz>
13383
13384 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
13385 non-pointer assignments.
13386
40591473
MJ
133872011-04-19 Martin Jambor <mjambor@suse.cz>
13388
13389 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
13390 account anc_offset and otr_type from the indirect edge info.
13391 * ipa-prop.c (get_ancestor_addr_info): New function.
13392 (compute_complex_ancestor_jump_func): Assignment analysis moved to
13393 get_ancestor_addr_info, call it.
13394 (ipa_note_param_call): Do not initialize information about polymorphic
13395 calls, return the indirect call graph edge. Remove the last
13396 parameter, adjust all callers.
13397 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
13398 parameters. Initialize polymorphic information in the indirect edge.
13399
abe36b81
EB
134002011-04-19 Eric Botcazou <ebotcazou@adacore.com>
13401
13402 PR lto/48148
13403 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
13404 the types if they have different enumeration identifiers.
13405
e6416b30
JH
134062011-04-19 Jan Hubicka <jh@suse.cz>
13407
13408 * cgraph.h (cgraph_optimize_for_size_p): Declare.
13409 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
13410 * predict.c (cgraph_optimize_for_size_p): Break out from ...
13411 (optimize_function_for_size_p) ... here.
13412
d39132ea
RG
134132011-04-19 Richard Guenther <rguenther@suse.de>
13414
13415 PR lto/48207
13416 * tree.c (free_lang_data): Do not reset the decl-assembler-name
13417 langhook.
13418
ff7037dc
EB
134192011-04-19 Eric Botcazou <ebotcazou@adacore.com>
13420
13421 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
13422 if DECL_NO_INLINE_WARNING_P is set on the function.
13423
c1ee2892
BS
134242011-04-19 Bernd Schmidt <bernds@codesourcery.com>
13425
13426 PR fortran/47976
13427 * reload1.c (inc_for_reload): Return void. All callers changed.
13428 (emit_input_reload_insns): Don't try to delete previous output
13429 reloads to a register, or record spill_reg_store for autoincs.
fbb20b29
BS
13430
134312011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
13432
13433 * gengtype.h: Updated copyright year.
13434 (struct input_file_st): Add inpisplugin field.
13435 (type_fileloc): New function.
13436 * gengtype.c
13437 (write_typed_struct_alloc_def): Add gcc_assert.
13438 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
13439 (write_typed_alloc_defns): Don't output for plugin files.
13440 (input_file_by_name): Clear inpisplugin field.
13441 (main): Set inpisplugin field for plugin files.
13442
897e0a89
NP
134432011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
13444
13445 * gengtype-state.c (string_eq): New.
13446 (read_state): Use string_eq instead of strcmp when creating the
13447 state_ident_tab.
13448
363ee90e
WG
134492011-04-19 Wei Guozhi <carrot@google.com>
13450
13451 PR target/47855
13452 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
13453 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
13454 linkage.
13455 * config/arm/constraints.md (Uu): New constraint.
13456 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
13457
18a24fed
TG
134582011-04-19 Tristan Gingold <gingold@adacore.com>
13459
13460 * config.gcc (-*-*-*vms): Added.
13461 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
13462 definitions moved.
13463 * config/vms/vms-ld.c: New file.
13464 * config/vms/vms-ar.c: New file.
13465 * config/vms/t-vmsnative: New file.
13466
1c13f168
XDL
134672011-04-18 Xinliang David Li <davidxl@google.com>
13468
13469 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
13470
84825707
JJ
134712011-04-18 Jakub Jelinek <jakub@redhat.com>
13472
13473 PR middle-end/48661
13474 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
13475 if TREE_TYPE (v) is non-NULL.
13476
13477 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
13478 gimple_get_virt_mehtod_for_binfo.
13479 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
13480 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
13481 callers.
13482 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
13483
7d4f8d02 134842011-04-18 Michael Matz <matz@suse.de>
7254cb57
MM
13485 Steve Ellcey <sje@cup.hp.com>
13486
7d4f8d02
EB
13487 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
13488 use its mode as source mode if it isn't VOIDmode.
7254cb57 13489
474e8e70
DCR
134902011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
13491
13492 * doc/passes.texi: Fill crossref nodes.
13493
cff41484
JM
134942011-04-18 Jim Meyering <meyering@redhat.com>
13495
7d4f8d02 13496 Fix doubled-word typos in comments and strings
cff41484
JM
13497 * config/alpha/vms-unwind.h: s/for for/for/
13498 * config/arm/unwind-arm.h: Likewise.
13499 * config/microblaze/microblaze.c: Likewise.
13500 * config/sh/constraints.md: s/in in/in/
13501 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
13502
f60c2554
UB
135032011-04-18 Uros Bizjak <ubizjak@gmail.com>
13504
13505 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
13506 (AVX_FLOAT_MODE_P): Ditto.
13507 (AVX128_VEC_FLOAT_MODE_P): Ditto.
13508 (AVX256_VEC_FLOAT_MODE_P): Ditto.
13509 (AVX_VEC_FLOAT_MODE_P): Ditto.
13510 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
13511 (UNSPEC_MASKSTORE): Ditto.
13512 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
13513 Merge from <sse>_movmsk<ssemodesuffix> and
13514 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
13515 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
13516 iterator.
13517 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
13518 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
13519 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
13520
09a2806f
JH
135212011-04-18 Jan Hubicka <jh@suse.cz>
13522
8a8dccb2
JH
13523 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
13524
09a2806f
JH
13525 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
13526 (want_inline_function_called_once_p): Break out the logic from
13527 ipa_inline.
13528 (edge_badness): Ensure that profile is not misupdated.
13529 (lookup_recursive_calls): Prioritize by call frequencies.
13530 (inline_small_functions): Move program size estimates here;
13531 actually process whole queue even when unit growth has been
13532 met. (to properly compute inline_failed reasons and for the
f60c2554 13533 case unit size decrease.) Revisit comments on recursive inlining.
09a2806f
JH
13534 (ipa_inline): Remove unit summary code; first inline hot calls
13535 of functions called once, cold calls next.
13536 (order, nnodes): Remove unused variables.
13537 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
13538 (GTFILES): Remove ipa-inline.c
13539 * sel-sched.c (fill_insns): Silence uninitialized var warning.
13540
3eea52ef
EB
135412011-04-18 Eric Botcazou <ebotcazou@adacore.com>
13542
13543 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
13544
229a1c59 135452011-04-18 Jie Zhang <jie@codesourcery.com>
3eea52ef 13546 Richard Earnshaw <rearnsha@arm.com>
229a1c59
JZ
13547
13548 * arm.c (neon_builtin_type_bits): Remove.
13549 (typedef enum neon_builtin_mode): New.
13550 (T_MAX): Don't define.
13551 (typedef enum neon_builtin_datum): Remove bits, codes[],
13552 num_vars and base_fcode. Add mode, code and fcode.
13553 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
13554 VAR10): Change accordingly.
13555 (neon_builtin_data[]): Change accordingly
13556 (arm_init_neon_builtins): Change accordingly.
13557 (neon_builtin_compare): Remove.
13558 (locate_neon_builtin_icode): Remove.
13559 (arm_expand_neon_builtin): Change accordingly.
13560
13561 * arm.h (enum arm_builtins): Move to ...
13562 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
13563
13564 * arm.c (arm_builtin_decl): Declare.
13565 (TARGET_BUILTIN_DECL): Define.
13566 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
13567 (arm_builtin_decls[]): New.
13568 (arm_init_neon_builtins): Store builtin declarations in
13569 arm_builtin_decls[].
13570 (arm_init_tls_builtins): Likewise.
13571 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
13572 (arm_builtin_decl): New.
13573
75e802cc
RG
135742011-04-18 Richard Guenther <rguenther@suse.de>
13575
13576 * tree.c (upper_bound_in_type): Build properly canonicalized
13577 INTEGER_CSTs.
13578 (lower_bound_in_type): Likewise.
13579
3b45a007
RG
135802011-04-18 Richard Guenther <rguenther@suse.de>
13581
13582 * gimple.h (gimple_call_addr_fndecl): New function.
13583 (gimple_call_fndecl): Use it.
13584 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
13585 for direct calls.
13586 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
13587 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
13588
d25a79ea
RG
135892011-04-18 Richard Guenther <rguenther@suse.de>
13590
13591 PR middle-end/48650
13592 * tree.c (build_string): STRING_CST is now derived from tree_typed.
13593
7d5fc814
EB
135942011-04-18 Eric Botcazou <ebotcazou@adacore.com>
13595
13596 PR lto/48492
13597 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
13598 DECL_IN_CONSTANT_POOL without RTL.
13599
7e7cfcf6
UW
136002011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
13601 Ira Rosen <ira.rosen@linaro.org>
13602
13603 PR target/48252
13604 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
13605 to match neon_vzip/vuzp/vtrn_internal.
13606 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
13607 outputs explicitly dependent on both inputs.
13608 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
13609
49eab32e
JJ
136102011-04-18 Jakub Jelinek <jakub@redhat.com>
13611
13612 PR tree-optimization/48616
13613 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
13614 whether the shift is by scalar or vector based on whether all SLP
13615 scalar stmts have the same rhs.
13616
e54170f4
CLT
136172011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
13618
13619 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
13620 memory operands.
13621
b14ee6c9
RS
136222011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
13623
269e0e18 13624 PR target/43700
b14ee6c9
RS
13625 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
13626 registers.
13627
10158cd3
JH
136282011-04-17 Jan Hubicka <jh@suse.cz>
13629
13630 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
7d5fc814
EB
13631 * cgrpahunit.c (cgraph_finalize_function): Do not set
13632 finalized_by_frontend.
10158cd3
JH
13633 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
13634 finalized_by_frontend.
13635
2e9bb6ba
JH
136362011-04-17 Jan Hubicka <jh@suse.cz>
13637
13638 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
13639 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
13640 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7d5fc814
EB
13641 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
13642 method.
2e9bb6ba
JH
13643 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
13644 gimple-fold.c
13645 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
13646
beb628e1
EB
136472011-04-17 Eric Botcazou <ebotcazou@adacore.com>
13648
13649 PR lto/48538
13650 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
13651 is non-null before accessing it.
13652 (input_cgraph): Remove trailing spaces.
13653
3e2fdd24
RE
136542011-04-17 Revital Eres <revital.eres@linaro.org>
13655
13656 * params.def (sms-min-sc): New param flag.
13657 * modulo-sched.c (sms_schedule): Use it.
13658 * doc/invoke.texi (sms-min-sc): Document it.
13659
4c0f7679
JH
136602011-04-17 Jan Hubicka <jh@suse.cz>
13661
13662 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
13663 present, also set gimple_call_set_cannot_inline.
13664 * ipa-inline.c: Update toplevel comment.
13665 (MAX_TIME): Remove.
13666 (cgraph_clone_inlined_nodes): Fix linebreaks.
13667 (cgraph_check_inline_limits): Restructure to ...
13668 (caller_growth_limits): ... this one; be more tolerant
13669 on growth in nested inline chains; add explanatory comment;
13670 fix stack accounting thinko introduced by previous patch.
13671 (cgraph_default_inline_p): Remove.
13672 (report_inline_failed_reason): New function.
13673 (can_inline_edge_p): New function.
13674 (can_early_inline_edge_p): New function.
13675 (leaf_node_p): Move upwards in file.
13676 (want_early_inline_function_p): New function.
13677 (want_inline_small_function_p): New function.
13678 (want_inline_self_recursive_call_p): New function.
13679 (cgraph_edge_badness): Rename to ...
13680 (edge_badness) ... this one; fix linebreaks.
13681 (update_edge_key): Update call of edge_baddness; add
13682 detailed dump about queue updates.
13683 (update_caller_keys): Use can_inline_edge_p and
13684 want_inline_small_function_p.
13685 (cgraph_decide_recursive_inlining): Rename to...
13686 (recursive_inlining): Use can_inline_edge_p and
f60c2554
UB
13687 want_inline_self_recursive_call_p; simplify and remove no longer
13688 valid FIXME.
4c0f7679
JH
13689 (cgraph_set_inline_failed): Remove.
13690 (add_new_edges_to_heap): Use can_inline_edge_p and
13691 want_inline_small_function_p.
13692 (cgraph_decide_inlining_of_small_functions): Rename to ...
13693 (inline_small_functions): ... this one; cleanup; use
f60c2554
UB
13694 can/want predicates; cleanup debug ouput; work edges till fibheap
13695 is exhausted and do not stop once unit growth is reached; remove
13696 later loop processing remaining edges.
4c0f7679
JH
13697 (cgraph_flatten): Rename to ...
13698 (flatten_function): ... this one; use can_inline_edge_p
13699 and can_early_inline_edge_p predicates.
13700 (cgraph_decide_inlining): Rename to ...
13701 (ipa_inline): ... this one; remove unreachable nodes before
13702 inlining functions called once; simplify the pass.
13703 (cgraph_perform_always_inlining): Rename to ...
13704 (inline_always_inline_functions): ... this one; use
f60c2554 13705 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4c0f7679
JH
13706 (cgraph_decide_inlining_incrementally): Rename to ...
13707 (early_inline_small_functions): ... this one; simplify
13708 using new predicates; cleanup; make dumps prettier.
13709 (cgraph_early_inlining): Rename to ...
13710 (early_inliner): newer inline regular functions into always-inlines;
13711 fix updating of call stmt summaries.
13712 (pass_early_inline): Update for new names.
13713 (inline_transform): Fix formating.
13714 (gate_cgraph_decide_inlining): Rename to ...
13715 (pass_ipa_inline): ... this one.
13716 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
13717 * ipa-inline-analysis.c (dump_inline_summary): Update.
13718 (compute_inline_parameters): Do not compute disregard_inline_limits;
13719 look for mismatching arguments.
13720 (estimate_growth): Fix handlig of non-trivial self recursion.
13721 (inline_read_summary): Do not read info->disregard_inline_limits.
13722 (inline_write_summary): Do not write info->disregard_inline_limits.
beb628e1
EB
13723 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
13724 and move all checks into can_inline_edge_p predicate; re-enable code
13725 comparing optimization levels.
4c0f7679
JH
13726 (expand_call_inline): Do not test inline_forbidden_into_p.
13727 * Makefile.in (ipa-inline.o): Update arguments.
13728
54333b7c
RE
137292011-04-17 Revital Eres <revital.eres@linaro.org>
13730
13731 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
13732
42c2bf92
RE
137332011-04-17 Revital Eres <revital.eres@linaro.org>
13734
13735 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
13736
b183e9e0
MM
137372011-04-17 Michael Matz <matz@suse.de>
13738
13739 PR tree-optimization/48622
13740 PR lto/48645
13741 * ipa-inline-analysis.c (inline_read_summary): Read size/time
13742 in same order as they're written.
13743
b8a17fa2
JDA
137442011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13745
13746 * config/pa/predicates.md: Reorganize and simplify predicates.
13747 Eliminate duplicate code checks.
13748 (arith_operand): Rename to arith14_operand
13749 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
13750 * config/pa/pa.md: Use renamed operands.
13751 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
13752 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
13753 arith11_operand, adddi3_operand, indexed_memory_operand,
13754 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
13755 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
13756 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
13757 move_dest_operand, move_src_operand, prefetch_cc_operand,
13758 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
13759 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
13760 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
13761 div_operand, int5_operand, movb_comparison_operator,
13762 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
13763 arith_double_operand, ireg_operand, lhs_lshift_operand,
13764 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
13765 integer_store_memory_operand): Likewise.
13766 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
13767 (integer_store_memory_operand, read_only_operand,
13768 function_label_operand, borx_reg_operand,
13769 non_hard_reg_operand): Likewise.
13770 (eq_neq_comparison_operator): Delete unused operator.
13771 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
13772 function_label_operand.
13773 (emit_move_sequence): Likewise.
13774
8dfb9f16
UB
137752011-04-16 Uros Bizjak <ubizjak@gmail.com>
13776
13777 * config/i386/sse.md (sseunpackmode): New mode attribute.
13778 (ssepackmode): Ditto.
13779 (vec_pack_trunc_<mode>): Macroize expander from
13780 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
13781 (vec_unpacks_lo_<mode>): Macroize expander from
13782 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
13783 (vec_unpacks_hi_<mode>): Macroize expander from
13784 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
13785 (vec_unpacku_lo_<mode>): Macroize expander from
13786 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
13787 (vec_unpacku_hi_<mode>): Macroize expander from
13788 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
13789 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
13790 ix86_expand_sse4_unpack.
13791 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
13792
e7f23018
JH
137932011-04-16 Jan Hubicka <jh@suse.cz>
13794
13795 * cgraphbuild.c: Include ipa-inline.h.
13796 (reset_inline_failed): Use initialize_inline_failed.
13797 * cgraph.c: Include ipa-inline.h.
13798 (cgraph_create_node_1): Do not initialize estimated_growth.
13799 (initialize_inline_failed): More to ipa-inline-analysis.c
13800 (dump_cgraph_node): Do not dump inline flags.
13801 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
13802 and disregard_inline_limits flags.
13803 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
13804 time, size, estimated_growth.
8dfb9f16
UB
13805 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
13806 Update.
e7f23018
JH
13807 * cgraphunit.c (cgraph_decide_is_function_needed): Use
13808 DECL_DISREGARD_INLINE_LIMITS.
13809 (cgraph_analyze_function): Do not initialize
13810 node->local.disregard_inline_limits.
13811 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
13812 inlinable, versionable and disregard_inline_limits.
13813 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
8dfb9f16
UB
13814 cgraph_check_inline_limits, cgraph_default_inline_p,
13815 cgraph_edge_badness, update_caller_keys, update_callee_keys,
13816 add_new_edges_to_heap): Update.
13817 (cgraph_decide_inlining_of_small_function): Update; set
13818 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
e7f23018
JH
13819 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
13820 cgraph_decide_inlining_incrementally): Update.
8dfb9f16
UB
13821 * ipa-inline.h (inline_summary): Add inlinable, versionable,
13822 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
13823 time, size and estimated_growth parameters.
e7f23018
JH
13824 (estimate_edge_growth): Update.
13825 (initialize_inline_failed): Declare.
13826 * ipa-split.c: Include ipa-inline.h
13827 (execute_split_functions): Update.
13828 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
13829 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
13830 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
13831 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
13832 estimated_growth to INT_MIN.
13833 (inline_node_duplication_hook): Likewise.
13834 (dump_inline_summary): Dump new fields.
13835 (compute_inline_parameters): Update.
13836 (estimate_edge_time, estimate_time_after_inlining,
13837 estimate_size_after_inlining, estimate_growth, inline_read_summary,
13838 inline_write_summary):
13839 (initialize_inline_failed): Move here from cgraph.c.
13840 * tree-sra.c: Include ipa-inline.h.
13841 (ipa_sra_preliminary_function_checks): Update.
f60c2554
UB
13842 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
13843 ipa-inline.h.
e7f23018 13844
e81b8564
UB
138452011-04-16 Uros Bizjak <ubizjak@gmail.com>
13846
13847 * config/i386/sse.md (V16): New mode iterator.
13848 (VI1, VI8): Ditto.
13849 (AVXMODEQI, AVXMODEDI): Remove.
13850 (sse2, sse3): New mode attribute.
13851 (mov<mode>): Use V16 mode iterator.
13852 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
13853 (push<mode>1): Use V16 mode iterator.
13854 (movmisalign<mode>): Ditto.
13855 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
13856 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
13857 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
13858 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
13859 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
13860 avx_movdqu<avxmodesuffix>.
13861 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
13862 *avx_movdqu<avxmodesuffix>.
13863 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
13864 avx_lddqu<avxmodesuffix>.
13865 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
13866 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
13867 avx_movnt<AVXMODEDI:mode>.
13868 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
13869 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
13870
4743d438
BS
138712011-04-16 Bernd Schmidt <bernds@codesourcery.com>
13872
13873 PR target/48629
13874 * haifa-sched.c (prune_ready_list, schedule_block): Use
13875 sched_pressure_p rather than flag_sched_pressure.
13876
748f7574 138772011-04-15 Pat Haugen <pthaugen@us.ibm.com>
eb229cf4
PH
13878
13879 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
13880 cgraph_get_node instead of cgraph_get_create_node.
13881
2ba172e0
JJ
138822011-04-15 Jakub Jelinek <jakub@redhat.com>
13883
13884 * cfgexpand.c (expand_debug_expr): Use
13885 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
13886
63d2a353
MM
138872011-04-15 Michael Matz <matz@suse.de>
13888
13889 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
13890 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
13891 * function.c (gimplify_parameters): Ditto.
13892 * gimplify.c (gimplify_vla_decl): Ditto.
13893
13894 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
13895 (gimple_call_set_alloca_for_var): New inline function.
13896 (gimple_call_alloca_for_var_p): Ditto.
e81b8564
UB
13897 * gimple.c (gimple_build_call_from_tree): Remember
13898 CALL_ALLOCA_FOR_VAR_P state.
63d2a353
MM
13899 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
13900
13901 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
13902 calls if they were for VLA objects.
13903
dee74c34
MJ
139042011-04-15 Martin Jambor <mjambor@suse.cz>
13905
13906 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
13907 of ADR_EXPRs.
13908
8e5837bc
MJ
139092011-04-15 Martin Jambor <mjambor@suse.cz>
13910
13911 PR middle-end/48601
13912 * tree-emutls.c (lower_emutls_function_body): Call
13913 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
13914 result is non-NULL.
13915
0dc33c3c
NP
139162011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
13917
13918 * c-decl.c (detect_field_duplicates): Call
13919 objc_detect_field_duplicates instead of objc_get_interface_ivars.
13920
edcdea5b
NF
139212011-04-15 Nathan Froyd <froydnj@codesourcery.com>
13922
13923 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
13924 * gimple.c (gimple_asm_clobbers_memory_p): Define.
13925 * ipa-pure-const.c (check_stmt): Call it.
13926 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
13927
8456558d
RG
139282011-04-15 Richard Guenther <rguenther@suse.de>
13929
13930 PR tree-optimization/48290
13931 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
13932 Properly decide inhibiting propagation based on the valueized
13933 operand. Do loop-closed SSA form preserving here ...
13934 (init_copy_prop): ... not here.
13935
266446be
L
139362011-04-15 H.J. Lu <hongjiu.lu@intel.com>
13937
13938 PR target/48612
13939 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
13940 (*ieee_smax<mode>3): Likewise.
13941
17465c6e
AK
139422011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13943
13944 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
13945 Replace match_operand with match_dup for the third operand in
13946 these expanders.
13947
bce204e5
MK
139482011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
13949
13950 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
13951 to track processing of conditionals. Update all callers.
13952 (try_combine, simplify_if_then_else): Update.
13953
3162fdf4
MK
139542011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
13955
13956 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
13957 -fsched-pressure.
13958
79002a57 139592011-04-15 Georg-Johann Lay <avr@gjlay.de>
e81b8564 13960
79002a57
GJL
13961 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
13962 instead of match_operand for operand 3.
13963
4fd3a105
RS
139642011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
13965
13966 * recog.h (insn_operand_data): Add an "allows_mem" field.
13967 * genoutput.c (output_operand_data): Initialize it.
13968 * optabs.c (maybe_legitimize_operand_same_code): New function.
13969 (maybe_legitimize_operand): Use it when matching the original
13970 op->value.
13971
ad19c4be
EB
139722011-04-15 Eric Botcazou <ebotcazou@adacore.com>
13973
13974 * gimplify.c: Fix issues in comments throughout.
13975 (voidify_wrapper_expr): Fix long line.
13976 (build_stack_save_restore): Likewise.
13977 (gimplify_loop_expr): Likewise.
13978 (gimplify_compound_lval): Likewise.
13979 (gimplify_init_ctor_eval): Likewise.
13980 (gimplify_modify_expr_rhs): Likewise.
13981 (omp_notice_threadprivate_variable): Likewise.
13982
b25aa0e8 139832011-04-15 Eric Botcazou <ebotcazou@adacore.com>
e7925582 13984
b25aa0e8
EB
13985 * cfgexpand.c (expand_call_stmt): Convert the function type to the
13986 original one if this is not a builtin function.
e7925582 13987
09db7afe
JJ
139882011-04-14 Jakub Jelinek <jakub@redhat.com>
13989
13990 PR target/48605
13991 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
13992 offset it as needed based on top 2 bits in operands[3], change
13993 MEM mode to SFmode and mask those 2 bits away from operands[3].
13994
c59633d9
NP
139952011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
13996
13997 * c-parser.c (c_parser_objc_protocol_definition): Updated for
13998 change from objc_declare_protocols() to objc_declare_protocol().
13999
5e60198b
UB
140002011-04-14 Uros Bizjak <ubizjak@gmail.com>
14001
14002 * config/i386/sse.md (sse4_1): New mode attribute.
14003 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
14004 avx_blend<ssemodesuffix><avxmodesuffix> and
14005 sse4_1_blend<ssemodesuffix> using VF mode iterator.
14006 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
14007 avx_blendv<ssemodesuffix><avxmodesuffix> and
14008 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
14009 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
14010 avx_dp<ssemodesuffix><avxmodesuffix> and
14011 sse4_1_dp<ssemodesuffix> using VF mode iterator.
14012 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
14013 (sse4_1_packusdw): Merge with *avx_packusdw.
14014 (sse4_1_pblendvb): Merge with *avx_pblendvb.
14015 (sse4_1_pblendw): Merge with *avx_pblendw.
14016 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
14017 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
14018 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
14019 VF mode iterator.
14020 (sse4_1_round<ssescalarmodesuffix>): Merge with
14021 *avx_round<ssescalarmodesuffix>.
14022 (aesenc): Merge with *avx_aesenc.
14023 (aesenclast): Merge with *avx_aesenclast.
14024 (aesdec): Merge with *avx_aesdec.
14025 (aesdeclast): Merge with *avx_aesdeclast.
14026 (pclmulqdq): Merge with *pclmulqdq.
14027 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
14028 New predicate.
14029 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
14030
6f197850
L
140312011-04-14 H.J. Lu <hongjiu.lu@intel.com>
14032
14033 PR middle-end/48608
14034 * cfgexpand.c (get_decl_align_unit): Renamed to ...
14035 (align_local_variable): This. Update DECL_ALIGN.
14036 (add_stack_var): Updated.
14037 (expand_one_stack_var): Likewise.
14038
4a5ba3ed
RG
140392011-04-14 Richard Guenther <rguenther@suse.de>
14040
14041 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
14042 Remove.
14043 (dse_initialize_block_local_data, dse_leave_block,
14044 record_voperand_set, get_stmt_uid): Likewise.
14045 (dse_possible_dead_store_p): Allow any kind of killing stmt.
14046 (dse_optimize_stmt): Remove voperand set handling code.
14047 Simplify and improve to handle any kind of killing stmt.
14048 (dse_record_phi): Remove.
14049 (dse_enter_block): Simplify.
14050 (tree_ssa_dse): Likewise.
14051 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
14052
10a5dd5d
JH
140532011-04-14 Jan Hubicka <jh@suse.cz>
14054
14055 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
14056 * cgraph.h (struct inline_summary): Move to ipa-inline.h
14057 (cgraph_local_info): Remove inline_summary.
14058 * ipa-cp.c: Include ipa-inline.h.
14059 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
14060 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
14061 accesor.
14062 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
14063 (input_overwrite_node): Do not set inline summary.
14064 (input_node): Do not stream inline summary.
14065 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
14066 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
14067 growth; we do not have inline parameters computed for that anyway.
14068 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
14069 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
14070 (inline_summary_t): New type and VECtor.
14071 (debug_inline_summary, dump_inline_summaries): Declare.
14072 (inline_summary): Use VOCtor.
14073 (estimate_edge_growth): Kill hack computing call stmt size directly.
14074 * lto-section-in.c (lto_section_name): Add inline section.
14075 * ipa-inline-analysis.c: Include lto-streamer.h
14076 (node_removal_hook_holder, node_duplication_hook_holder): New holders
14077 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
14078 (inline_summary_vec): Define.
14079 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
14080 dump_inline_summaries): New functions.
5e60198b
UB
14081 (estimate_function_body_sizes): Properly compute size/time of outgoing
14082 calls.
14083 (compute_inline_parameters): Alloc inline_summary; do not compute
14084 size/time of incomming calls.
10a5dd5d
JH
14085 (estimate_edge_time): Avoid missing time summary hack.
14086 (inline_read_summary): Read inline summary info.
14087 (inline_write_summary): Write inline summary info.
14088 (inline_free_summary): Free all hooks and inline summary vector.
14089 * lto-streamer.h: Add LTO_section_inline_summary section.
14090 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
14091 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
14092
b602d918
RS
140932011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
14094
14095 * tree-vectorizer.h (vect_strided_store_supported): Add a
14096 HOST_WIDE_INT argument.
14097 (vect_strided_load_supported): Likewise.
14098 (vect_permute_store_chain): Return void.
14099 (vect_transform_strided_load): Likewise.
14100 (vect_permute_load_chain): Delete.
14101 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
14102 count argument. Check that the count is a power of two.
14103 (vect_strided_load_supported): Likewise.
14104 (vect_permute_store_chain): Return void. Update after above changes.
14105 Assert that the access is supported.
14106 (vect_permute_load_chain): Likewise.
14107 (vect_transform_strided_load): Return void.
14108 * tree-vect-stmts.c (vectorizable_store): Update calls after
14109 above interface changes.
14110 (vectorizable_load): Likewise.
14111 (vect_analyze_stmt): Don't check for strided powers of two here.
14112
ab4472fa
RG
141132011-04-14 Richard Guenther <rguenther@suse.de>
14114
14115 PR tree-optimization/48590
14116 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
14117 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
14118 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
14119 BUILT_IN_STACK_SAVE.
14120 * tree-ssa-dce.c (propagate_necessity): Handle
14121 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
14122
32dabdaf
NP
141232011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
14124
14125 * c-parser.c (c_parser_objc_class_declaration): Updated call to
14126 objc_declare_class.
14127
daade206
RG
141282011-04-14 Richard Guenther <rguenther@suse.de>
14129
14130 * tree.h (get_object_alignment_1): Declare.
14131 * builtins.c (get_object_alignment_1): Split out worker from ...
14132 (get_object_alignment): ... here.
14133 * fold-const.c (get_pointer_modulus_and_residue): Use
14134 get_object_alignment_1.
14135
920e8172
RS
141362011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
14137
14138 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
14139 type parameter.
14140 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
14141 parameter. Generalise code to handle arrays as well as vectors.
14142 (vect_setup_realignment): Update accordingly.
14143 * tree-vect-stmts.c (vectorizable_store): Likewise.
14144 (vectorizable_load): Likewise.
14145
5ce1ee7f
RS
141462011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
14147
14148 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
14149 within the per-copy loop.
14150
6438fe33 141512011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
0ea25ecd
RS
14152
14153 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
14154 in the dump file.
14155
6438fe33 141562011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
77b10485
RS
14157
14158 * doc/options.texi (Negative): Explicitly mention that the
14159 Negative chain must be circular.
14160
61e46a7d
NF
141612011-04-14 Nathan Froyd <froydnj@codesourcery.com>
14162
14163 * function.h (block_chainon): Declare.
14164 * function.c (block_chainon): Define.
14165
43ea6502 141662011-04-14 Anatoly Sokolov <aesok@post.ru>
5e60198b 14167 Eric Weddington <eric.weddington@atmel.com>
748f7574 14168 Georg-Johann Lay <avr@gjlay.de>
5e60198b 14169
f60c2554 14170 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
43ea6502
AS
14171 New Includes
14172 (avr_init_builtins, avr_expand_builtin,
14173 avr_expand_delay_cycles, avr_expand_unop_builtin,
14174 avr_expand_binop_builtin ): New functions.
14175 (avr_builtin_id): New enum
14176 (struct avr_builtin_description): New struct
14177 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
14178 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5e60198b 14179
43ea6502 14180 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5e60198b 14181 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
43ea6502
AS
14182 UNSPECV_DELAY_CYCLES): new enumeration values
14183 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
14184 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
14185 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
14186 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
14187 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
14188 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
14189 "fmulsu"): New insns
5e60198b 14190
43ea6502
AS
14191 * config/avr/avr-c.c: fix line endings
14192 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
14193 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
14194 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
14195 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
14196 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5e60198b 14197
43ea6502
AS
14198 * doc/extend.texi (AVR Built-in Functions): New node
14199 (Target Builtins): Add documentation of AVR
14200 built-in functions.
14201
8a9b55f3
GJL
142022011-04-14 Georg-Johann Lay <avr@gjlay.de>
14203
14204 PR target/44643
14205 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
14206 alone. Error if non-const data has attribute progmem.
14207
94bd1825
NF
142082011-04-13 Nathan Froyd <froydnj@codesourcery.com>
14209
14210 * tree.h (struct tree_constructor): Include tree_typed instead of
14211 tree_common.
14212 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
14213 TS_TYPED instead of TS_COMMON.
14214
5e60198b 142152011-04-13 Uros Bizjak <ubizjak@gmail.com>
81b1e7eb
UB
14216
14217 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
14218 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
14219 (sse2_psadbw): Merge with *avx_psadbw.
14220 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
14221 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
14222 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
14223 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
14224 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
14225 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
14226 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
14227 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
14228 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
14229 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
14230 (ssse3_palignrti): Merge with *avx_palignrti.
14231
4b1a4694
NF
142322011-04-13 Nathan Froyd <froydnj@codesourcery.com>
14233
14234 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
14235 * tree-ssanames.c (fini_ssanames): VEC_free it.
14236 (make_ssa_name_fn): Update for VECness of free_ssanames.
14237 (release_ssa_name, release_dead_ssa_names): Likewise.
14238 * tree.h (struct tree_ssa_name): Include tree_typed instead of
14239 tree_common.
14240 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
14241 TS_TYPED instead of TS_COMMON.
14242
4da3b811
NF
142432011-04-13 Nathan Froyd <froydnj@codesourcery.com>
14244
14245 * postreload-gcse.c (gcse_after_reload_main): Add calls to
14246 statistics_counter_event.
14247 * tree-ssa-copyrename.c (stats): Define.
14248 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
14249 statistics_counter_event.
14250 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
14251 (bswap_stats, widen_mul_stats): Define.
14252 (insert_reciprocals): Increment rdivs_inserted.
14253 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
14254 rfuncs_inserted. Add calls to statistics_counter_event.
14255 (execute_cse_sincos_1): Increment inserted.
14256 (execute_cse_sincos): Zeroize sincos_stats. Add call to
14257 statistics_counter_event.
14258 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
14259 of bswap_stats. Add calls to statistics_counter_event.
14260 (convert_mult_to_widen): Increment widen_mults_inserted.
14261 (convert_plusminus_to_widen): Increment maccs_inserted.
14262 (convert_mult_to_fma): Increment fmas_inserted.
14263 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
14264 calls to statistics_counter_event.
14265
89fa552a
VM
142662011-04-13 Vladimir Makarov <vmakarov@redhat.com>
14267
14268 PR rtl-optimization/48455
14269 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
14270 `temp_costs->mem_cost'.
14271
03dfc36d
JH
142722011-04-13 Jan Hubicka <jh@suse.cz>
14273
14274 * ipa-inline.h: New file.
14275 * ipa-inline-analysis.c: New file. Broken out of ...
14276 * ipa-inline.c: ... this file; update toplevel comment;
14277 include ipa-inline.h
14278 (inline_summary): Move to ipa-inline.h
14279 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
14280 ipa-inline-analysis.c.
7d4f8d02
EB
14281 (cgraph_estimate_time_after_inlining): Rename to
14282 estiamte_time_after_inlining; move to ipa-inline-analysis.c
03dfc36d
JH
14283 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
14284 to estimate_edge_growth.
14285 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
14286 rename to estimate_size_after_inlining.
14287 (cgraph_mark_inline_edge): Update for new naming convention.
14288 (cgraph_check_inline_limits): Likewise.
14289 (cgraph_edge_badness): Likewise.
14290 (cgraph_decide_recursive_inlining): Likewise.
14291 (cgraph_decide_inlining_of_small_functions): Likewise.
14292 (cgraph_decide_inlining_incrementally): Likewise.
7d4f8d02
EB
14293 (cgraph_estimate_growth): Rename to estimate_growth; move to
14294 ipa-inline-analysis.c.
03dfc36d
JH
14295 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
14296 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
14297 (compute_inline_parameters): Likewise.
14298 (compute_inline_parameters_for_current): Likewise.
14299 (pass_inline_parameters): Likewise.
14300 (inline_indirect_intraprocedural_analysis): Likewise.
14301 (analyze_function): Rename to inline_analyze_function; likewise.
14302 (add_new_function): Move to ipa-inline-analysis.c.
14303 (inline_generate_summary): Likewise.
14304 (inline_read_summary): Likewise.
14305 (inline_write_summary): Likewise.
14306 * Makefile.in (ipa-inline-analysis.c): New file.
14307
7673c962
RO
143082011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14309
14310 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
14311 * configure: Regenerate.
14312
9698252f
NF
143132011-04-13 Nathan Froyd <froydnj@codesourcery.com>
14314
14315 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
14316 instead of tree_common.
14317 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
14318 Likewise.
14319 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
14320 TS_TYPED rather than TS_COMMON.
14321 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
14322
3a7bfdd5
GJL
143232011-04-01 Georg-Johann Lay <avr@gjlay.de>
14324
14325 PR target/45263
86d83530
GJL
14326 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
14327 r20 around calls of __tablejump_elpm__
3a7bfdd5 14328
20790697
JJ
143292011-04-13 Jakub Jelinek <jakub@redhat.com>
14330
14331 PR middle-end/48591
14332 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
14333 NULL.
14334 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
14335
094d7661
BS
143362011-04-13 Bernd Schmidt <bernds@codesourcery.com>
14337
14338 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
14339 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
14340 (cfi_vec): New typedef.
14341 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
14342 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
14343 (cie_cfi_vec): New static variable.
14344 (cie_cfi_head): Delete.
14345 (add_cfi): Accept a cfi_vec * as first argument. All callers and
14346 declaration changed. Use vector rather than list operations.
14347 (new_cfi): Don't initialize the dw_cfi_next field.
14348 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
14349 rather than list operations.
14350 (lookup_cfa): Use vector rather than list operations.
14351 (output_cfis): New argument upto. Accept a cfi_vec rather than
14352 a dw_cfi_ref list head as argument. All callers changed.
14353 Iterate over the vector using upto as a maximum index.
14354 (output_all_cfis): New static function.
14355 (output_fde): Use vector rather than list operations. Use the
14356 new upto argument for output_cfis rather than manipulating a
14357 list.
14358 (dwarf2out_begin_prologue): Change initializations to match
14359 new struct members.
14360 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
14361 from the vector length rather than searching for the end of a list.
14362 Use output_all_cfis.
14363 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
14364
673a5740
NC
143652011-04-13 Nick Clifton <nickc@redhat.com>
14366
14367 * config/rx/rx.md (movmemsi): Do not use this pattern when
14368 volatile pointers are involved.
14369
1ee8b298
UB
143702011-04-13 Uros Bizjak <ubizjak@gmail.com>
14371
14372 * config/i386/sse.md (pinsrbits): Remove.
14373 (sse2_packsswb): Merge with *avx_packsswb.
14374 (sse2_packssdw): Merge with *avx_packssdw.
14375 (sse2_packuswb): Merge with *avx_packuswb.
14376 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
14377 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
14378 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
14379 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
14380 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
14381 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
14382 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
14383 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
14384 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
14385 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
14386 (sse2_loadld): Merge with *avx_loadld.
14387 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
14388 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
14389 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
14390 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
14391 (vec_concatv2di): Merge with *vec_concatv2di_avx.
14392
81f653d6
NF
143932011-04-12 Nathan Froyd <froydnj@codesourcery.com>
14394
14395 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
14396 calling TREE_CHAIN.
14397 * print-tree.c (print_node): Likewise.
14398 * tree-inline.c (copy_tree_r): Likewise.
14399 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
14400 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
14401 instead of TS_COMMON.
14402 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
14403 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
14404 (copy_node_stat): Zero TREE_CHAIN only if necessary.
14405 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
14406 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
14407 ...and these...
14408 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
14409 * tree.h: ...here.
14410 (TREE_CHAIN): Check for a TS_COMMON structure.
14411 (TREE_TYPE): Check for a TS_TYPED structure.
14412
748f7574 144132011-04-12 Pat Haugen <pthaugen@us.ibm.com>
ed940a4a
PH
14414
14415 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
14416 cgraph_get_create_node instead of cgraph_node.
14417
eb345401
NP
144182011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
14419
14420 * c-parser.c (c_parser_initelt): Updated call to
14421 objc_build_message_expr.
14422 (c_parser_postfix_expression): Likewise.
14423
a6c46762
KT
144242011-04-12 Kai Tietz <ktietz@redhat.com>
14425
14426 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
14427 MASK_MS_BITFIELD_LAYOUT bit.
14428
b4ccfed9
JJ
144292011-04-12 Jakub Jelinek <jakub@redhat.com>
14430
14431 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
14432 assert it is always true.
14433 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
14434 moves.
14435
0d8a2528
NP
144362011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
14437
14438 * c-parser.c (c_lex_one_token): Rewritten conditional used when
14439 compiling Objective-C to be more efficient.
14440
06bd234a
AF
144412011-04-12 Axel Freyn <axel-freyn@gmx.de>
14442
14443 * opts-common.c (decode_cmdline_options_to_array): Remove variable
14444 argv_copied.
14445
28569ac3
RS
144462011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
14447
14448 * recog.h, genoutput.c, optabs.c: Revert last patch.
14449
ae59e00d
RR
144502011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14451
81b1e7eb
UB
14452 PR target/48090
14453 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
ae59e00d 14454
cff1b7e0
RS
144552011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
14456
14457 * recog.h (insn_operand_data): Add an "allows_mem" field.
14458 * genoutput.c (output_operand_data): Initialize it.
14459 * optabs.c (maybe_legitimize_operand_same_code): New function.
14460 (maybe_legitimize_operand): Use it when matching the original
14461 op->value.
14462
77059241
RS
144632011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
14464
14465 * genpreds.c (process_define_predicate): Move most processing
14466 to gensupport.c. Continue to validate the expression.
14467 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
14468 (process_define_predicate): Move processing to gensupport.c.
14469 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
14470 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
14471 (compute_predicate_codes): Moved from genrecog.c. Add lineno
14472 argument.
14473 (valid_predicate_name_p): New function, split out from old
14474 genpreds.c:process_define_predicate.
14475 (process_define_predicate): New function, combining code from
14476 old genpreds.c and genrecog.c functions.
14477 (process_rtx): Call it for DEFINE_PREDICATE and
14478 DEFINE_SPECIAL_PREDICATE.
14479
6308e208
RS
144802011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
14481
14482 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
14483 size of a '%A' memory reference.
14484 (T_DREG, T_QREG): New neon_builtin_type_bits.
14485 (arm_init_neon_builtins): Assert that the load and store operands
14486 are neon_struct_operands.
14487 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
14488 (NEON_ARG_MEMORY): New builtin_arg.
14489 (neon_dereference_pointer): New function.
14490 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
14491 Handle NEON_ARG_MEMORY.
14492 (arm_expand_neon_builtin): Update after above interface changes.
14493 Use NEON_ARG_MEMORY for loads and stores.
14494 * config/arm/predicates.md (neon_struct_operand): New predicate.
14495 * config/arm/iterators.md (V_two_elem): Tweak formatting.
14496 (V_three_elem): Use BLKmode for accesses that have no associated mode.
14497 (V_four_elem): Tweak formatting.
14498 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
14499 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
14500 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
14501 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
14502 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
14503 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
14504 (neon_vst4<mode>): Replace pointer operand with a memory operand.
14505 Use %A in the output template.
14506 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
14507 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
14508 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
14509 the width of the memory access. Remove post-increment.
14510 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
14511
e5db8f2f
NC
145122011-04-12 Nick Clifton <nickc@redhat.com>
14513
14514 * config/v850/v850.c (expand_prologue): Do not use the CALLT
14515 instruction for interrupt handlers if the target is the basic V850
14516 architecture.
14517 (expand_epilogue): Likewise.
14518
74f091d6
JJ
145192011-04-12 Jakub Jelinek <jakub@redhat.com>
14520
14521 PR rtl-optimization/48549
14522 * combine.c (propagate_for_debug): Also stop after BB_END of
14523 this_basic_block. Process LAST and just stop processing after it.
14524 (combine_instructions): If last_combined_insn has been deleted,
14525 set last_combined_insn to its PREV_INSN.
14526
f20ca725
RG
145272011-04-12 Richard Guenther <rguenther@suse.de>
14528
14529 PR tree-optimization/46076
14530 * gimple.h (struct gimple_statement_call): Add fntype field.
14531 (gimple_call_fntype): Adjust.
14532 (gimple_call_set_fntype): New function.
14533 * gimple.c (gimple_build_call_1): Set the call function type.
14534 * gimplify.c (gimplify_call_expr): Preserve the function
14535 type the frontend used for the call.
14536 (gimplify_modify_expr): Likewise.
14537 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
14538 function type.
14539 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
14540 function type.
14541 * tree-ssa.c (useless_type_conversion_p): Function pointer
14542 conversions are useless.
14543
a358e188
MJ
145442011-04-12 Martin Jambor <mjambor@suse.cz>
14545
14546 * cgraph.h (cgraph_node): Remove function declaration.
14547 (cgraph_create_node): Declare.
14548 (cgraph_get_create_node): Likewise.
14549 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
14550 Updated all callers.
14551 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
14552 the decl does not already exist. Call cgraph_get_create_node instead
14553 of cgraph_node.
14554 (cgraph_get_create_node): New function.
14555 (cgraph_same_body_alias): Update comment.
14556 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
14557 assert it does not return NULL.
14558 (cgraph_update_edges_for_call_stmt): Likewise.
14559 (cgraph_clone_edge): Likewise.
14560 (cgraph_create_virtual_clone): Likewise.
14561 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
14562 instead of cgraph_node.
14563 (cgraph_add_new_function): Call cgraph_create_node or
14564 cgraph_get_create_node instead of cgraph_node.
14565 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
14566 instead of cgraph_node.
14567 (record_eh_tables): Likewise.
14568 (mark_address): Likewise.
14569 (mark_load): Likewise.
14570 (build_cgraph_edges): Call cgraph_get_create_node instead
14571 of cgraph_node.
14572 (rebuild_cgraph_edges): Likewise.
14573 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
14574 instead of cgraph_node.
14575 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
14576 cgraph_node.
14577 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
14578 cgraph_create_node instead of cgraph_node.
14579 * c-decl.c (finish_function): Call cgraph_get_create_node instead
14580 of cgraph_node.
14581 * lto-cgraph.c (input_node): Likewise.
14582 * lto-streamer-in.c (input_function): Likewise.
14583 * varasm.c (mark_decl_referenced): Likewise.
14584 (assemble_alias): Likewise.
14585
fe660d7b
MJ
145862011-04-12 Martin Jambor <mjambor@suse.cz>
14587
14588 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
14589 instead of cgraph_node and assert it does not return NULL.
14590 * lto-streamer-in.c (lto_read_body): Likewise.
14591 * omp-low.c (new_omp_context): Likewise.
14592 (create_task_copyfn): Likewise.
14593 * tree-emutls.c (lower_emutls_function_body): Likewise.
14594 * matrix-reorg.c (transform_allocation_sites): Likewise.
14595
bae5cddf
JJ
145962011-04-12 Jakub Jelinek <jakub@redhat.com>
14597
14598 PR c/48552
14599 * c-typeck.c (build_asm_expr): Error out on attempts to use
14600 void type outputs or inputs for constraints that allow reg or
14601 don't allow memory.
14602
06eb52ca
CLT
146032011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
14604 Richard Earnshaw <rearnsha@arm.com>
14605
14606 PR target/48250
14607 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
14608 to use sign-magnitude offsets. Reject unsupported unaligned
14609 cases. Add detailed description in comments.
14610 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
14611 condition from TARGET_32BIT to TARGET_ARM.
14612
648a616b
NF
146132011-04-11 Nathan Froyd <froydnj@codesourcery.com>
14614
14615 * tree.h (struct typed_tree): New.
14616 (struct tree_common): Include it instead of tree_base.
14617 (TREE_TYPE): Update for new location of type field.
14618 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
14619 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
14620 (union tree_node): Add typed field.
14621 * treestruct.def (TS_TYPED): New.
14622 * lto-streamer.c (check_handled_ts_structures): Handle it.
14623 * tree.c (MARK_TS_TYPED): New macro.
14624 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
14625
1e6d1da0
EB
146262011-04-11 Eric Botcazou <ebotcazou@adacore.com>
14627
14628 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
14629 (force_nonfallthru): Do not alter the loop nest if no basic block
14630 was created.
14631
146322011-04-11 Uros Bizjak <ubizjak@gmail.com>
d8700b1c
UB
14633
14634 * config/i386/sse.md (VI): New mode iterator.
14635 (SSEMODEI): Remove.
14636 (AVX256MODEI): Ditto.
14637 (AVXMODEF4P): Ditto.
14638 (avxvecpsmode): Ditto.
14639 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
14640 (sse2_andnot<mode>3): New expander.
14641 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
14642 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
14643 (<any_logic:code><mode>3): Use VI mode iterator.
14644 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
14645 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
14646 (*andnottf3): Handle AVX three-operand constraints.
14647 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
14648
b1372d5d 146492011-04-11 Joseph Myers <joseph@codesourcery.com>
d8700b1c 14650 Robert Millan <rmh@gnu.org>
b1372d5d
JM
14651
14652 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
14653 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
14654 GNU_USER_DYNAMIC_LINKER64): Define.
14655 (REG_NAME): Don't undefine.
14656 (MD_UNWIND_SUPPORT): Undefine.
14657 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
14658 (REG_NAME): Don't undefine.
14659 (MD_UNWIND_SUPPORT): Undefine.
d8700b1c 14660 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
b1372d5d 14661
761c0c6e
JM
146622011-04-11 Joseph Myers <joseph@codesourcery.com>
14663
14664 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
14665 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
14666
26e0228f
XDL
146672011-04-11 Xinliang David Li <davidxl@google.com>
14668
14669 * value-profile.c (check_ic_target): New function.
14670 (gimple_ic_transform): Sanity check indirect call target.
14671 * gimple-low.c (gimple_check_call_args): Interface change.
14672 (gimple_check_call_matching_types): New function.
14673 * tree-inline.c (tree_can_inline_p): Call new function.
6075765d
BS
14674
146752011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
14676
14677 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
14678 tree-pretty-print.h & realmpfr.h.
14679
a58dfa49
VM
146802011-04-11 Vladimir Makarov <vmakarov@redhat.com>
14681
14682 PR middle-end/48464
14683 * ira.c (setup_pressure_classes): Fix typo in loop condition.
14684 (setup_allocno_and_important_classes): Ditto.
14685
107fd1c1
JM
146862011-04-11 Joseph Myers <joseph@codesourcery.com>
14687
14688 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
14689 GNU_USER_DYNAMIC_LINKER.
14690 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
14691 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14692 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
14693 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
14694 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
14695 GNU_USER_TARGET_OS_CPP_BUILTINS.
14696 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
14697 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14698 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
14699 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14700 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
14701 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
14702 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
14703 GNU_USER_TARGET_OS_CPP_BUILTINS.
14704 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14705 GNU_USER_DYNAMIC_LINKER.
14706 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
14707 GNU_USER_TARGET_OS_CPP_BUILTINS.
14708 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
14709 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14710 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
14711 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14712 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
14713 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
14714 GNU_USER_DYNAMIC_LINKER64): Remove.
14715 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
14716 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14717 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14718 GNU_USER_DYNAMIC_LINKER.
14719 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
14720 GNU_USER_TARGET_OS_CPP_BUILTINS.
14721 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
14722 GNU_USER_TARGET_OS_CPP_BUILTINS.
14723 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
14724 to GNU_USER_TARGET_OS_CPP_BUILTINS.
14725 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
14726 GNU_USER_TARGET_OS_CPP_BUILTINS.
14727 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
14728 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
14729 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
14730 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
14731 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14732 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14733 GNU_USER_DYNAMIC_LINKER.
14734 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
14735 GNU_USER_TARGET_OS_CPP_BUILTINS.
14736 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
14737 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14738 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14739 GNU_USER_DYNAMIC_LINKER.
14740 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
14741 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14742 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
14743 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14744 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14745 GNU_USER_DYNAMIC_LINKER.
14746 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
14747 GNU_USER_DYNAMIC_LINKERN32.
14748 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
14749 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
14750 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
14751 GNU_USER_DYNAMIC_LINKER32.
14752 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
14753 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14754 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14755 GNU_USER_DYNAMIC_LINKER.
14756 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
14757 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14758 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
14759 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 14760 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1
JM
14761 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
14762 GNU_USER_DYNAMIC_LINKER32.
14763 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
14764 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
14765 GNU_USER_DYNAMIC_LINKER.
14766 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
14767 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14768 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
14769 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
14770 GNU_USER_DYNAMIC_LINKER64.
14771 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
14772 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14773 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14774 GNU_USER_DYNAMIC_LINKER.
14775 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
14776 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14777 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14778 GNU_USER_DYNAMIC_LINKER.
14779 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
14780 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14781 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
14782 GNU_USER_DYNAMIC_LINKER32.
14783 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
14784 GNU_USER_DYNAMIC_LINKER64.
14785 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
14786 GNU_USER_DYNAMIC_LINKER64.
14787 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
14788 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14789 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
14790 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 14791 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1 14792
e24609cf
JM
147932011-04-11 Joseph Myers <joseph@codesourcery.com>
14794
14795 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
14796 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
14797 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
14798 GNU_USER_DYNAMIC_LINKER.
14799 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
14800 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
14801 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
14802 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
14803 GNU_USER_DYNAMIC_LINKER64.
14804 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
14805 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
14806 GNU_USER_LINK_EMULATION.
14807 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
14808 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
14809 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
14810 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
14811 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
14812 CPP_SPEC, CC1_SPEC): Remove.
14813 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
14814 (GNU_USER_DYNAMIC_LINKER): Define.
14815 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
14816 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
14817 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
14818 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
14819 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
14820 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
14821 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
14822 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
14823 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
14824 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
14825 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
14826 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
14827 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
14828 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
14829 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
14830 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
14831 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
14832 GNU_USER_DYNAMIC_LINKER.
14833 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
14834 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
14835 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
14836 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
14837 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
14838 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
14839 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
14840 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
14841 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
d8700b1c 14842 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
e24609cf 14843
b8ce4e94
KT
148442011-04-11 Kai Tietz <ktietz@redhat.com>
14845
14846 PR target/9601
14847 PR target/11772
14848 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
14849 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
14850 comment.
14851 (ix86_is_msabi_thiscall): Removed.
14852 (ix86_is_type_thiscall): Likewise.
14853 (ix86_get_callcvt): New function.
14854 (ix86_comp_type_attributes): Simplify check.
14855 (ix86_function_regparm): Use ix86_get_callcvt for calling
14856 convention attribute checks.
14857 (ix86_return_pops_args): Likewise.
14858 (ix86_static_chain): Likewise.
14859 (x86_this_parameter): Likewise.
14860 (x86_output_mi_thunk): Likewise.
14861 (ix86_function_type_abi): Optimize check for types without attributes.
14862 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
14863 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
14864 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
14865 by flag-values.
14866 (IX86_BASE_CALLCVT): Helper macro.
14867 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
14868 Use ix86_get_callcvt for calling convention attribute checks and avoid
14869 symbol-decoration for stdcall in TARGET_RTD case.
14870 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
14871 Likewise.
14872 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
14873 for declaration.
14874
798dd0ba
UB
148752011-04-11 Uros Bizjak <ubizjak@gmail.com>
14876
14877 * config/i386/sse.md (VI_128): New mode iterator.
14878 (VI12_128): Rename from SSEMODE12.
14879 (VI14_128): Rename from SSEMODE14.
14880 (VI124_128): New mode iterator.
14881 (VI24_128): Rename from SSEMODE248.
14882 (VI248_128): Rename from SSEMODE248.
14883 (SSEMODE124C8): Remove.
14884 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
14885 (*sse2_<plusminus_insn><mode>3): Merge with
14886 *avx_<plusminus_insn><mode>3.
14887 (*mulv8hi3): Merge with *avx_mulv8hi3.
14888 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
14889 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
14890 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
14891 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
14892 (ashr<mode>3): Merge with *avx_ashr<mode>3.
14893 (lshr<mode>3): Merge with *avx_lshr<mode>3.
14894 (ashl<mode>3): Merge with *avx_ashl<mode>3.
14895 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
14896 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
14897 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
14898 (*<smaxmin:code>v8hi3): Ditto.
14899 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
14900 (*<smaxmin:code>v16qi3): Ditto.
14901 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
14902 (*sse2_eq<mode>3): Ditto.
14903 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
14904 (*sse2_gt<mode>3): Ditto.
14905 (vcondv2di): Split out of vcond<mode>.
14906 (vconduv2di): Split out of vcondu<mode>.
14907
956011be
RG
149082011-04-11 Richard Guenther <rguenther@suse.de>
14909
14910 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
14911 before calling tree_low_cst.
14912
e6313a78
RG
149132011-04-11 Richard Guenther <rguenther@suse.de>
14914
14915 * stor-layout.c (layout_type): Compute all array index size operations
14916 in the original type.
14917 (initialize_sizetypes): Add comment.
14918 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
14919
e69d7376
JM
149202011-04-11 Joseph Myers <joseph@codesourcery.com>
14921
14922 * common.opt (Tbss=, Tdata=, Ttext=): New options.
14923
9f9ebcdf
MJ
149242011-04-11 Martin Jambor <mjambor@suse.cz>
14925
14926 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
14927 of cgraph_node, handle NULL return value.
14928 (cgraph_global_info): Likewise.
14929 (cgraph_rtl_info): Likewise.
14930 * tree-inline.c (estimate_num_insns): Likewise.
14931 * gimplify.c (unshare_body): Likewise.
14932 (unvisit_body): Likewise.
14933 (gimplify_body): Likewise.
14934 * predict.c (optimize_function_for_size_p): Likewise.
14935 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
14936 (call_may_clobber_ref_p_1): Likewise.
14937 * varasm.c (function_section_1): Likewise.
14938 (assemble_start_function): Likewise.
14939
581985d7
MJ
149402011-04-11 Martin Jambor <mjambor@suse.cz>
14941
14942 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
14943 of cgraph_node.
14944 * final.c (rest_of_clean_state): Likewise.
14945 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
14946 * passes.c (pass_init_dump_file): Likewise.
14947 (execute_all_ipa_transforms): Likewise.
14948 (function_called_by_processed_nodes_p): Likewise.
14949 * predict.c (maybe_hot_frequency_p): Likewise.
14950 (probably_never_executed_bb_p): Likewise.
14951 (compute_function_frequency): Likewise.
14952 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
14953 (unnest_nesting_tree_1): Likewise.
14954 (lower_nested_functions): Likewise.
14955 * tree-optimize.c (execute_fixup_cfg): Likewise.
14956 (tree_rest_of_compilation): Likewise.
14957 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
14958 * tree-sra.c (ipa_early_sra): Likewise.
14959 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
14960 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
14961 * ipa.c (record_cdtor_fn): Likewise.
14962 * ipa-inline.c (cgraph_early_inlining): Likewise.
14963 (compute_inline_parameters_for_current): Likewise.
14964 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
14965 * ipa-pure-const.c (local_pure_const): Likewise.
14966 * ipa-split.c (split_function): Likewise.
14967 (execute_split_functions): Likewise.
14968 * cgraphbuild.c (build_cgraph_edges): Likewise.
14969 (rebuild_cgraph_edges): Likewise.
14970 (cgraph_rebuild_references): Likewise.
14971 (remove_cgraph_callee_edges): Likewise.
14972 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
14973 (verify_cgraph_node): Likewise.
14974 (cgraph_analyze_functions): Likewise.
14975 (cgraph_preserve_function_body_p): Likewise.
14976 (save_inline_function_body): Likewise.
14977 (save_inline_function_body): Likewise.
14978 * tree-inline.c (copy_bb): Likewise.
14979 (optimize_inline_calls): Likewise.
14980
57dbdc5a
MJ
149812011-04-11 Martin Jambor <mjambor@suse.cz>
14982
14983 PR tree-optimization/48195
14984 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
14985 ipa_check_create_edge_args.
14986 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
14987 ipa_check_create_edge_args.
14988 * ipa-inline.c (inline_generate_summary): Do not call
14989 ipa_check_create_node_params and ipa_check_create_edge_args.
14990 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
14991 ipa_check_create_edge_args.
14992
d108e679
AS
149932011-04-09 Anatoly Sokolov <aesok@post.ru>
14994
14995 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
14996 instead of loop.
14997 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14998 * function.c (record_hard_reg_sets): Likewise.
14999 * ira.c (compute_regs_asm_clobbered): Likewise.
15000 * sched-deps.c (sched_analyze_1): Likewise.
15001 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
15002
3411bc59
XDL
150032011-04-09 Xinliang David Li <davidxl@google.com>
15004
15005 PR tree-optimization/PR48484
15006 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
15007 has_valid_pred lazily
15008
b365495a
DS
150092011-04-09 Duncan Sands <baldrick@free.fr>
15010
15011 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
15012
68bc509a
EB
150132011-04-08 Eric Botcazou <ebotcazou@adacore.com>
15014
15015 * combine.c (combine_validate_cost): Adjust comments. Set registered
15016 cost of I0 to zero at the end, if any.
15017
041e059f
XDL
150182011-04-08 Xinliang David Li <davidxl@google.com>
15019
68bc509a
EB
15020 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
15021 to insane profile data.
041e059f 15022
444b3995
XDL
150232011-04-08 Xinliang David Li <davidxl@google.com>
15024
15025 * ipa-cp.c (ipcp_update_profiling): Correct
15026 negative scale factor due to insane profile data.
15027
6a801cf2
XDL
150282011-04-08 Xinliang David Li <davidxl@google.com>
15029
15030 * final.c (dump_basic_block_info): New function.
15031 (final): Dump basic block.
15032 (final_scan_insn): Remove old dump.
15033
d5f3624e
SK
150342011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
15035
68bc509a
EB
15036 PR target/47829
15037 * config.gcc (i386-*-freebsd): Disable unwind table generation for
15038 crtbegin/crtend.
d5f3624e 15039
42821aff
MM
150402011-04-08 Michael Matz <matz@suse.de>
15041
15042 PR middle-end/48389
15043 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
15044 functions.
15045 (rebuild_jump_labels): Call rebuild_jump_labels_1.
15046 * rtl.h (rebuild_jump_labels_chain): Declare.
15047 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
15048 insns inserted on edges.
15049
ad7be009
JM
150502011-04-08 Joseph Myers <joseph@codesourcery.com>
15051
15052 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
15053 * config/arm/arm-arches.def: New.
15054 * config/arm/arm-opts.h: New.
15055 * config/arm/genopt.sh: New.
15056 * config/arm/arm-tables.opt: New (generated).
15057 * config/arm/arm.c (arm_handle_option, arm_target_help,
15058 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
15059 (all_architectures): Get most table contents from arm-arches.def.
15060 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
15061 arm_selected_tune here.
15062 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
15063 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
15064 (march=, mcpu=, mtune=): Use Enum and Var.
15065 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
15066 (arm.o): Update dependencies.
ecbb6fb7 15067
42821aff 150682011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
ecbb6fb7
BS
15069
15070 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
15071 of header_file.
15072 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
15073 (write_typed_alloc_defns): Likewise.
15074 (main): Calls write_typed_alloc_defns with output_header.
15075
8d189b3f
VM
150762011-04-08 Vladimir Makarov <vmakarov@redhat.com>
15077
68bc509a 15078 PR inline-asm/48435
8d189b3f
VM
15079 * ira-color.c (setup_profitable_hard_regs): Add comments.
15080 Don't take prohibited hard regs into account.
15081 (setup_conflict_profitable_regs): Rename to
15082 get_conflict_profitable_regs.
15083 (check_hard_reg_p): Check prohibited hard regs.
15084
44f370bf
NF
150852011-04-08 Nathan Froyd <froydnj@codesourcery.com>
15086
15087 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
15088 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
15089 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
15090
483d7ad3
JDA
150912011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15092
15093 PR target/48366
15094 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
b8a17fa2 15095 move from floating point to shift amount register.
483d7ad3
JDA
15096 (emit_move_sequence): Remove secondary reload support for floating
15097 point to shift amount amount register copies.
15098 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
15099 amount register copies.
15100 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
15101 register, return false if mode isn't a scalar integer mode.
15102 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
15103
97e03fa1
RG
151042011-04-08 Richard Guenther <rguenther@suse.de>
15105
15106 * gimple.c (gimple_call_flags): Remove kludge.
15107
9d40778b
AM
151082011-04-08 Alexander Monakov <amonakov@ispras.ru>
15109
15110 * sel-sched.c (sel_region_init): Move call to
15111 sel_setup_region_sched_flags after setup_current_loop_nest.
15112
19ac7892
AB
151132011-04-08 Andrey Belevantsev <abel@ispras.ru>
15114
15115 PR rtl-optimization/48272
19ac7892
AB
15116 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
15117 init_insn_reg_pressure_info. Adjust a caller.
15118 * sched-int.h (init_insn_reg_pressure_info): Declare.
15119 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
15120 when sched-pressure is enabled.
15121
0f8c63cc
RG
151222011-04-08 Richard Guenther <rguenther@suse.de>
15123
15124 * gimple.c (gimple_set_modified): Do not queue calls to
15125 MODIFIED_NORETURN_CALLS here ...
15126 * tree-ssa-operands.c (update_stmt_operands): ... but here.
15127
5e5a425e
RG
151282011-04-08 Richard Guenther <rguenther@suse.de>
15129
15130 PR lto/48467
15131 * toplev.c (lang_dependent_init): Do not open asm_out_file
15132 in WPA mode, nor perform debug machinery initialization.
15133 (finalize): Do not unlink asm_out_file in WPA mode.
15134
9bfc434b
RG
151352011-04-08 Richard Guenther <rguenther@suse.de>
15136
15137 * gimple.h (gimple_call_fntype): New function.
15138 (gimple_call_return_type): Use it.
15139 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
15140 * gimple-low.c (gimple_check_call_args): Likewise.
15141 * gimple.c (gimple_call_flags): Likewise.
15142 (gimple_call_arg_flags): Likewise.
15143 (gimple_call_return_flags): Likewise.
15144 * tree-cfg.c (verify_gimple_call): Likewise.
15145 (do_warn_unused_result): Likewise.
15146 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
15147 * value-prof.c (gimple_ic_transform): Fix fndecl check.
15148
7c1f0b40
DM
151492011-04-08 Dmitry Melnik <dm@ispras.ru>
15150
15151 PR rtl-optimization/48235
15152 * sel-sched.c (code_motion_process_successors): Recompute the last
15153 insn in basic block if control flow changed.
15154 (code_motion_path_driver): Ditto. Recompute the first insn as well.
15155 Update condition for ilist_remove.
15156
ea4d630f
AM
151572011-04-08 Alexander Monakov <amonakov@ispras.ru>
15158
15159 PR rtl-optimization/48302
15160 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
15161 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
15162 it to record added preheader blocks.
15163 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
15164 on to sel_add_loop_preheaders.
15165 (sel_region_init): Move call to setup_current_loop_nest after
15166 sel_init_bbs.
15167
07643d76
AM
151682011-04-08 Alexander Monakov <amonakov@ispras.ru>
15169
15170 PR target/48273
15171 * cfgloop.h (loop_has_exit_edges): New helper.
15172 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
15173 non-clonable.
15174 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
15175 that have no exit edges.
15176
1f3b2b4e
AM
151772011-04-08 Alexander Monakov <amonakov@ispras.ru>
15178
15179 PR rtl-optimization/48442
15180 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
15181 all callers. Adjust assert.
15182
554f1948
JJ
151832011-04-08 Jakub Jelinek <jakub@redhat.com>
15184
15185 PR tree-optimization/48377
15186 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
15187 is_packed to true even for types with smaller TYPE_ALIGN than
15188 TYPE_SIZE.
15189
ddf72388
RG
151902011-04-08 Richard Guenther <rguenther@suse.de>
15191
15192 PR bootstrap/48513
15193 * doc/tm.texi: Re-generate.
15194
0c27e2d8
WG
151952011-04-08 Wei Guozhi <carrot@google.com>
15196
15197 PR target/47855
15198 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
15199 * config/arm/arm.c (arm_attr_length_push_multi): New function.
15200 * config/arm/arm.md (*push_multi): Change the length computation to
15201 call a C function.
15202
07c5f94e
AS
152032011-04-08 Anatoly Sokolov <aesok@post.ru>
15204
15205 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
15206 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
15207 * doc/tm.texi: Regenerate.
15208 * system.h (ASM_OUTPUT_BSS): Poison.
15209 * varasm.c (asm_output_bss): Remove function.
15210 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
798dd0ba 15211
07c5f94e
AS
15212 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
15213 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
15214 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
15215 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
15216 Likewise.
15217 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
15218 Likewise.
15219 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
15220 Likewise.
15221 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
15222
5f2c36e1
JM
152232011-04-07 Joseph Myers <joseph@codesourcery.com>
15224
15225 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
15226 EnumValue lines.
15227
39e7722b
JM
152282011-04-07 Joseph Myers <joseph@codesourcery.com>
15229
15230 * config/m68k/m68k.c (m68k_handle_option): Don't handle
15231 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
15232 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
15233 OPT_mcpu32.
15234 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
15235 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
15236 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
15237 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
15238 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
15239 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
15240 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
15241 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
15242 options. Don't map other m68k options manually. Don't handle
15243 old-style options as canonical.
15244 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
798dd0ba 15245 * doc/install.texi (m68k-*-*): Document binutils version requirement.
39e7722b 15246
cf103ca4
EB
152472011-04-07 Eric Botcazou <ebotcazou@adacore.com>
15248
15249 * basic-block.h (force_nonfallthru): Move to...
15250 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
15251 (force_nonfallthru): ...here.
15252 * cfghooks.c (force_nonfallthru): New function.
15253 * cfgrtl.c (force_nonfallthru): Rename into...
15254 (rtl_force_nonfallthru): ...this.
15255 (commit_one_edge_insertion): Do not set AUX field.
15256 (commit_edge_insertions): Do not discover new basic blocks.
15257 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
15258 (cfg_layout_rtl_cfg_hooks): Likewise.
15259 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
15260 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
15261 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
15262
14431f58
AS
152632011-04-07 Anatoly Sokolov <aesok@post.ru>
15264
15265 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
15266 Remove macros.
15267
3729983c
UB
152682011-04-07 Uros Bizjak <ubizjak@gmail.com>
15269
15270 * config/i386/sse.md: Update copyright year.
15271 (avxcvtvecmode): Remove.
15272 (sse_movhlps): Merge with *avx_movhlps.
15273 (sse_movlhps): Merge with *avx_movlhps.
15274 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
15275 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
15276 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
15277 (sse_loadhps): Merge with *avx_loadhps.
15278 (sse_storelps): Merge with *avx_storelps.
15279 (sse_loadlps): Merge with *avx_loadlps.
15280 (sse_movss): Merge with *avx_movss.
15281 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
15282 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
15283 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
15284 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
15285 (vec_set<mode>_0): Ditto.
15286 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
15287 (sse4_1_insertps): Merge with *avx_insertps.
15288 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
15289 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
15290 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
15291 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
15292 (sse2_storehpd): Merge with *avx_storehpd.
15293 (sse2_loadhpd): Merge with *avx_loadhpd.
15294 (sse2_loadlpd): Merge with *avx_loadlpd.
15295 (sse2_movsd): Merge with *avx_movsd.
15296 (*vec_concatv2df): Merge with *vec_concatv2df.
15297
4e626909
JJ
152982011-04-07 Jakub Jelinek <jakub@redhat.com>
15299
15300 PR debug/48343
15301 * combine.c (combine_instructions): Add last_combined_insn,
3729983c 15302 update it if insn is after it, pass it to all try_combine calls.
4e626909
JJ
15303 (try_combine): Add last_combined_insn parameter, pass it instead of
15304 i3 to propagate_for_debug.
15305
3729983c 153062011-04-07 Nick Clifton <nickc@redhat.com>
5a10b0a9
NC
15307
15308 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
15309 to handle MDR <-> data register transfers.
15310 (movhi_internal): Likewise.
15311
20c03367
AM
153122011-04-07 Alan Modra <amodra@gmail.com>
15313
15314 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
15315 previous stack info.
15316
bf22920b
TV
153172011-04-07 Tom de Vries <tom@codesourcery.com>
15318
15319 PR target/43920
15320 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
15321 flow_find_cross_jump. Swap variables to implement backward replacement.
15322 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
15323
823918ae
TV
153242011-04-07 Tom de Vries <tom@codesourcery.com>
15325
15326 PR target/43920
15327 * cfgcleanup.c (walk_to_nondebug_insn): New function.
3729983c
UB
15328 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
15329 and bb2.
15330 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
15331 src1 or src2. Redirect edges to the last basic block. Update
15332 frequency and count on multiple basic blocks in case of fallthru.
823918ae 15333
472c95f5
TV
153342011-04-07 Tom de Vries <tom@codesourcery.com>
15335
15336 PR target/43920
15337 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
15338 function.
3729983c
UB
15339 (old_insns_match_p): Change return type. Replace return false/true
15340 with return dir_none/dir_both. Use can_replace_by.
15341 (flow_find_cross_jump): Add dir_p parameter. Init replacement
15342 direction from dir_p. Register replacement direction in dir, last_dir
15343 and afterlast_dir. Handle new return type of old_insns_match_p using
472c95f5
TV
15344 merge_dir. Return replacement direction in dir_p.
15345 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
15346 return type of old_insns_match_p.
15347 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
15348 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
15349 flow_find_cross_jump.
15350 * basic-block.h (enum replace_direction): New type.
15351 (flow_find_cross_jump): Add parameter to declaration.
15352
a95d4000
UB
153532011-04-06 Uros Bizjak <ubizjak@gmail.com>
15354
15355 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
15356 (AVXMODEDCVTPS2DQ): Ditto.
15357 (VEC_FLOAT_MODE): Ditto.
15358 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
15359 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
15360 (<any_logic:code><mode>3): Use VF mode iterator.
15361 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
15362 Use VF mode iterator.
15363 (copysign<mode>3): Use VF mode iterator.
15364 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
15365 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
15366 (*<any_logic:code><MODEF:mode>3): Merge with
15367 *avx_<any_logic:code><MODEF:mode>3.
15368 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
15369 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
15370 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
15371 (avx_cvtdq2ps<avxmodesuffix>): Remove.
15372 (sse2_cvtdq2ps): Use %v modifier.
15373 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
15374 (avx_cvtps2dq<avxmodesuffix>): Remove.
15375 (sse2_cvtps2dq): Use %v modifier.
15376 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
15377 (avx_cvttps2dq<avxmodesuffix>): Remove.
15378 (sse2_cvttps2dq): Use %v modifier.
15379 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
15380 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
15381 (sse2_cvtsd2siq): Fix insn template.
15382 (sse2_cvtsd2siq_2): Ditto.
15383 (sse2_cvttsd2siq): Ditto.
15384 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
15385 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
15386
ad01c437
JM
153872011-04-06 Joseph Myers <joseph@codesourcery.com>
15388
15389 * gcov-io.c: Use GCC Runtime Library Exception.
15390
fe846284
JJ
153912011-04-06 Jakub Jelinek <jakub@redhat.com>
15392
15393 PR debug/48466
15394 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
15395 as base_reg whatever register reg has been eliminated to, instead
15396 of hardcoding STACK_POINTER_REGNUM.
15397
acce4e77
JM
153982011-04-06 Joseph Myers <joseph@codesourcery.com>
15399
15400 * doc/tm.texi.in: Document C target hooks as separate from general
15401 target hooks.
15402 * doc/tm.texi: Regenerate.
15403 * genhooks.c (struct hook_desc): Add docname field.
15404 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
15405 docname field.
15406 (hook_array): Include c-target.def.
15407 (emit_documentation): Use docname field in output.
15408 (emit_init_macros): Take docname argument. Only emit definitions
15409 for hooks matching docname.
15410 (main): Expect additional arguments in all cases. Pass argument
15411 to emit_init_macros.
15412 * target.def: Move initial macro definitions and comments to
15413 target-hooks-macros.h.
15414 (gcc_targetcm): Move to c-family/c-target.def.
15415 * target.h (targetcm): Move declaration to c-family/c-target.h.
15416 * targhooks.c (default_handle_c_option): Move to
15417 c-family/c-opts.c.
15418 * targhooks.h (default_handle_c_option): Move declaration to
15419 c-family/c-common.h.
15420 * target-hooks-macros.h: New file.
15421 * config.gcc (target_has_targetcm): Define and use to add to
15422 c_target_objs and cxx_target_objs.
15423 * config/default-c.c: New file.
15424 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
15425 of target.h and target-def.h.
15426 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
15427 (darwin_objc_construct_string, darwin_cfstring_ref_p,
15428 darwin_check_cfstring_format_arg): Make static.
15429 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
15430 TARGET_STRING_OBJECT_REF_TYPE_P,
15431 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
15432 * config/darwin-protos.h (darwin_objc_construct_string,
15433 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
15434 declare.
15435 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
15436 TARGET_STRING_OBJECT_REF_TYPE_P,
a95d4000 15437 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
acce4e77
JM
15438 * config/t-darwin (darwin-c.o): Update dependencies.
15439 * system.h (TARGET_HAS_TARGETCM): Poison.
15440 * Makefile.in (TARGET_H): Update.
15441 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
15442 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
15443 (default-c.o): New target.
15444 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
a95d4000 15445 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
acce4e77
JM
15446 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
15447 c-target.def.
15448 (build/genhooks.o): Update dependencies.
15449
275b4baa 154502011-04-06 Richard Guenther <rguenther@suse.de>
a95d4000 15451
275b4baa
RG
15452 * ipa-inline.c (enum inlining_mode): Remove.
15453 (cgraph_flatten): Use some other token.
15454 (cgraph_edge_early_inlinable_p): New function, split out from ...
15455 (cgraph_perform_always_inlining): New function, split out from ...
15456 (cgraph_decide_inlining_incrementally): ... here.
15457 (cgraph_mark_inline_edge): Adjust.
15458 (cgraph_early_inlining): Re-structure.
15459 (pass_early_inline): Require SSA form.
15460
f15b8bdf 154612011-04-06 Andrew Stubbs <ams@codesourcery.com>
9adc580c
AS
15462 Julian Brown <julian@codesourcery.com>
15463 Mark Shinwell <shinwell@codesourcery.com>
15464
15465 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
15466 LO_REGS only for Thumb-1.
15467 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
15468 be used in short instructions when optimising for size on Thumb-2.
15469
516426da
EB
154702011-04-06 Eric Botcazou <ebotcazou@adacore.com>
15471
15472 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
15473 associated with user returns to be preserved.
15474
96621ebf
TG
154752011-04-06 Tristan Gingold <gingold@adacore.com>
15476
f15b8bdf
EB
15477 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
15478 symbol_queue_size, DBXOUT_DECR_NESTING,
96621ebf
TG
15479 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
15480 if XCOFF_DEBUGGING_INFO.
15481
07c0852e
UB
154822011-04-06 Uros Bizjak <ubizjak@gmail.com>
15483
15484 * config/i386/i386.md (attribute isa): New.
15485 (attribute enabled): New.
15486 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
15487 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
15488 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
15489 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
15490 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
15491 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
15492 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
15493 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
15494
15495 * config/i386/sse.md (VF): New mode iterator.
15496 (VF1): Ditto.
15497 (VF2): Ditto.
15498 (VF_128): Ditto.
15499 (SSEMODEF4): Remove.
15500 (attribute sse): Handle V8SF and V4DF modes.
15501 (<absneg:code><mode>2): Use VF mode iterator.
15502 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
15503 mode iterator.
15504 (<plusminus_insn><mode>3): Use VF mode iterator.
15505 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
15506 Use VF mode iterator.
15507 (<sse>_vm<plusminus_insn><mode>3): Merge with
15508 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
15509 (mul<mode>3): Use VF mode iterator.
15510 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
15511 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
15512 mode iterator.
15513 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
15514 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
15515 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
15516 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
15517 mode iterator.
15518 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
15519 Use VF1 mode iterator.
15520 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
15521 (sqrt<VF2:mode>2): New expander.
15522 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
15523 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
15524 and sqrtv2df2. Use VF mode iterator.
15525 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
15526 mode iterator.
15527 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
15528 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
15529 Use VF1 mode iterator.
15530 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
15531 (<smaxmin:code><mode>3): Use VF mode iterator.
15532 (*<smaxmin:code><mode>3_finite): Merge with
15533 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
15534 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
15535 (<sse>_vm<smaxmin:code><mode>2): Merge with
15536 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
15537 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
15538 mode iterator.
15539 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
15540 mode iterator.
15541 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
15542 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
15543 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
15544 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
15545 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
15546 VF mode iterator.
15547 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
15548 Use VF_128 mode iterator.
15549 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
15550 mode iterator.
15551 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
15552 VF_128 mode iterator.
15553 (vcond<mode>): Use VF mode iterator.
15554 * config/i386/predicates.md (sse_comparison_operator): Merge with
15555 avx_comparison_float_operator. Do not declare as special_predicate.
15556 * config/i386/i386.c (struct builtin_description): Update for renamed
15557 compare patterns.
15558 (ix86_expand_args_builtin): Ditto.
15559 (ix86_expand_sse_compare_mask): Ditto.
15560
ff5d142c
RG
155612011-04-06 Richard Guenther <rguenther@suse.de>
15562
15563 * tree-inline.c (estimate_num_insns): For calls simply account
15564 for all passed arguments and a used return value.
15565
d7d1d041 155662011-04-06 Richard Guenther <rguenther@suse.de>
07c0852e 15567
d7d1d041
RG
15568 PR tree-optimization/47663
15569 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
15570 call_stmt_time fields.
15571 (cgraph_edge_inlinable_p): Declare.
15572 (cgraph_edge_recursive_p): New inline function.
15573 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
15574 (cgraph_clone_edge): Copy it.
15575 * ipa-inline.c (cgraph_estimate_edge_time): New function.
15576 Account for call stmt time.
15577 (cgraph_estimate_time_after_inlining): Take edge argument.
15578 (cgraph_estimate_edge_growth): Account call stmt size.
15579 (cgraph_estimate_size_after_inlining): Take edge argument.
15580 (cgraph_mark_inline_edge): Adjust.
15581 (cgraph_check_inline_limits): Likewise.
15582 (cgraph_recursive_inlining_p): Remove.
15583 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
15584 (cgraph_decide_recursive_inlining): Take edge argument and
15585 adjust.
15586 (cgraph_decide_inlining_of_small_functions): Do not avoid
15587 diags for recursive inlining here.
15588 (cgraph_flatten): Adjust.
15589 (cgraph_decide_inlining_incrementally): Likewise.
15590 (estimate_function_body_sizes): Remove call cost handling.
15591 (compute_inline_parameters): Initialize caller edge call costs.
15592 (cgraph_estimate_edge_growth): New function.
15593 (cgraph_estimate_growth): Use it.
15594 (cgraph_edge_badness): Likewise.
15595 (cgraph_check_inline_limits): Take an edge argument.
15596 (cgraph_decide_inlining_of_small_functions): Adjust.
15597 (cgraph_decide_inlining): Likewise.
15598 * tree-inline.c (estimate_num_insns): Only account for call
15599 return value if it is used.
15600 (expand_call_inline): Avoid diagnostics on recursive inline
15601 functions here.
15602 * lto-cgraph.c (lto_output_edge): Output edge call costs.
15603 (input_edge): Input edge call costs.
15604
2feb95f7
RO
156052011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15606
15607 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
15608
26fbd9c2
JW
156092011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
15610
15611 * doc/invoke.texi (Spec Files): Fix typo.
15612
694dc0ca
EB
156132011-04-06 Eric Botcazou <ebotcazou@adacore.com>
15614
15615 * profile.c (branch_prob): Move declaration of local variable. Remove
15616 obsolete ??? comment. Expand the location explicitly instead of using
15617 the LOCATION_FILE and LOCATION_LINE macros.
15618
4925d0d5
WG
156192011-04-06 Wei Guozhi <carrot@google.com>
15620
15621 PR target/47855
15622 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
15623 (arm_cond_branch): Likewise.
15624 (arm_cond_branch_reversed): Likewise.
15625 (arm_jump): Likewise.
15626 (push_multi): Likewise.
15627 * config/arm/constraints.md (Py): New constraint.
15628
f55dfa2f
NF
156292011-04-05 Nathan Froyd <froydnj@codesourcery.com>
15630
15631 PR bootstrap/48471
15632 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
15633 Move these...
15634 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
15635 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
15636 #ifdef DBX_DEBUGGING_INFO.
15637
fca96842
BS
156382011-04-05 Bernd Schmidt <bernds@codesourcery.com>
15639
15640 PR bootstrap/48403
15641 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
15642 if old and new states differ.
15643
30b83e38
JM
156442011-04-05 Joseph Myers <joseph@codesourcery.com>
15645
15646 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
15647 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
15648 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
15649 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
15650 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
15651 mcfv4e): Use Alias.
15652 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
15653 ColdFire options to -mcpu= options.
15654
277a9aa5
JL
156552011-04-05 Jeff Law <law@redhat.com>
15656
15657 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
15658 check if BB is a successor of LOOP->header and return
15659 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
15660
c1e2610e
SB
156612011-04-05 Steven Bosscher <steven@gcc.gnu.org>
15662
15663 * cprop.c (struct reg_use): Remove.
15664 (reg_use_table): Make an array of RTX.
15665 (find_used_regs, constprop_register, local_cprop_pass,
15666 bypass_block): Simplify users of reg_use_table.
15667 (cprop_insn): Likewise. Iterate if copy propagation succeeded
15668 on one of the uses found by find_used_regs.
15669
e532f586
NF
156702011-04-05 Nathan Froyd <froydnj@codesourcery.com>
15671
15672 PR bootstrap/48469
15673 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
15674 declaration.
15675
3fb7c055
NF
156762011-04-05 Nathan Froyd <froydnj@codesourcery.com>
15677
15678 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
15679 as an rtx.
15680 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
15681
b71b43d9
SB
156822011-04-05 Steven Bosscher <steven@gcc.gnu.org>
15683
15684 PR middle-end/48441
15685 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
15686
b405b274
NF
156872011-04-05 Nathan Froyd <froydnj@codesourcery.com>
15688
15689 * combine.c: Include obstack.h.
15690 (struct insn_link): Define.
15691 (uid_log_links): Adjust type.
15692 (FOR_EACH_LOG_LINK): New macro.
15693 (insn_link_obstack): Declare.
15694 (alloc_insn_link): Define.
15695 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
15696 type of link variables.
15697 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
15698 (try_combine, record_promoted_values, distribute_notes): Likewise.
15699 (distribute_links): Likewise. Tweak prototype.
15700 (clear_log_links): Delete.
15701 (adjust_for_new_dest): Call alloc_insn_link.
15702 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
15703
6409abe3
NF
157042011-04-05 Nathan Froyd <froydnj@codesourcery.com>
15705
15706 * gcse.c (modify_mem_list): Convert to an array of VECs.
15707 (canon_modify_mem_list, compute_transp): Tweak formatting.
15708 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
15709 (load_killed_in_block_p): Likewise.
15710 (record_last_mem_set_info): Likewise.
15711 (clear_modify_mem_tables): Likewise.
15712
170d8157
TV
157132011-04-05 Tom de Vries <tom@codesourcery.com>
15714
15715 PR middle-end/48461
15716 * function.c (emit_use_return_register_into_block): Only define if
15717 HAVE_return.
15718
c5911a55
EB
157192011-04-05 Eric Botcazou <ebotcazou@adacore.com>
15720
15721 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
15722
abd016e6
JM
157232011-04-05 Joseph Myers <joseph@codesourcery.com>
15724
15725 * config/rx/rx-opts.h: New.
15726 * config/rx/rx.c (rx_cpu_type): Remove.
15727 (rx_handle_option): Don't assert that global structures are in
15728 use. Access variables via opts pointer. Defer most handling of
15729 OPT_mint_register_. Use error_at.
15730 (rx_option_override): Handle deferred OPT_mint_register_ here.
15731 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
15732 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
15733 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
15734 (rx_cpu_types): New Enum and EnumValue entries.
15735 (mint-register=): Use Defer and use Var accordingly.
15736
1ed13f83
NF
157372011-04-05 Nathan Froyd <froydnj@codesourcery.com>
15738
15739 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
15740 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
15741 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
15742 Move these...
15743 (debug_free_queue, debug_nesting, symbol_queue_index):
15744 ...and these...
15745 * dbxout.c: ...to here. Make static.
15746
6ce1edcf
NF
157472011-04-05 Nathan Froyd <froydnj@codesourcery.com>
15748
15749 * gcse.c (modify_pair): Define. Define a VEC of it.
15750 (canon_modify_mem_list): Convert to an array of VECs.
15751 (free_insn_expr_list_list): Delete.
15752 (clear_modify_mem_tables): Call VEC_free instead.
15753 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
15754 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
15755 (canon_list_insert, compute_transp): Likewise.
15756
c201ac94
TV
157572011-04-05 Tom de Vries <tom@codesourcery.com>
15758
15759 PR target/43920
15760 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
15761 for size.
15762
4c029f40
TV
157632011-04-05 Tom de Vries <tom@codesourcery.com>
15764
15765 PR target/43920
15766 * function.c (emit_use_return_register_into_block): New function.
15767 (thread_prologue_and_epilogue_insns): Use
15768 emit_use_return_register_into_block.
15769
2a562b0a
TV
157702011-04-05 Tom de Vries <tom@codesourcery.com>
15771
15772 PR target/43920
15773 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
15774 insn.
15775
0248bceb
TV
157762011-04-05 Tom de Vries <tom@codesourcery.com>
15777
15778 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
15779
ffa94123
YZ
157802011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
15781
798dd0ba
UB
15782 * config/arm/arm.md (define_constants for unspec): Replace with
15783 define_c_enum.
15784 (define_constants for unspecv): Replace with define_c_enum.
15785 * config/arm/neon.md (define_constants for unspec): Replace with
15786 define_c_enum.
ffa94123 15787
3b8f9b46
RH
157882011-04-04 Richard Henderson <rth@redhat.com>
15789
720cf80f 15790 PR bootstrap/48400
3b8f9b46
RH
15791 * dwarf2out.c (output_line_info): Always emit line info from
15792 at least one section.
15793 (dwarf2out_init): Create text_section_line_info here ...
15794 (set_cur_line_info_table): ... not here.
15795
720cf80f 157962011-04-04 Vladimir Makarov <vmakarov@redhat.com>
e5b0e1ca
VM
15797
15798 PR target/48380
15799 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
720cf80f 15800 not called.
e5b0e1ca 15801
720cf80f 15802 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
e5b0e1ca 15803
196565d4
SB
158042011-04-04 Steven Bosscher <steven@gcc.gnu.org>
15805
b77f9eab
SB
15806 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
15807 (expr_equiv_p): Remove.
15808 (insert_set_in_table): Look at <dest, src> pair instead of expr.
15809 (hash_scan_set): Update call to insert_set_in_table.
15810 (dump_hash_table): Dump <dest, src> pair.
15811 (lookup_set): Simplify. Lookup <dest, src> pair.
15812 (compute_transp): Remove, fold heavily simplified code into...
15813 (compute_local_properties): ...here. Expect COMP and TRANSP
15814 unconditionally.
15815 (find_avail_set): Take set directly from struct expr.
15816 (find_bypass-set): Likewise.
15817 (bypass_block): Likewise.
15818 (cprop_insn): Likewise. Remove redundant INSN_P test.
15819
384d7a55
SB
15820 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
15821 checks on form of COND from find_implicit_sets to here.
15822 (find_implicit_sets): Cleanup control flow. Split critical edges
15823 if it exposes implicit sets. Allocate/resize implicit_sets as
15824 necessary.
15825 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
15826 changed something. Run df_analyze after find_implicit_sets if any
15827 edges were split. Do not allocate implicit_sets here.
15828
3084ce69
SB
15829 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
15830 (gcse_obstack): Renamed to cprop_obstack.
15831 (GNEW, GNEWVEC, GNEWVAR): Remove.
15832 (gmalloc): Remove.
15833 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
15834 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
15835 (gcse_alloc): Likewise, and rename to cprop_alloc.
15836 (alloc_gcse_men, free_gcse_mem): Remove.
15837 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
15838 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
15839 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
15840
196565d4
SB
15841 * cprop.c (oprs_not_set_p): Remove.
15842 (mark_set, mark_clobber): Remove.
15843 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
15844 (reg_not_set_p): New function.
15845 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
15846 (cprop_insn): Likewise.
15847 (cprop_jump): Use FOR_EACH_EDGE.
15848
9b69cf83
BS
158492011-04-04 Bernd Schmidt <bernds@codesourcery.com>
15850
15851 PR bootstrap/48403
15852 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
15853 (rank_for_schedule): Use scheduled_insns vector instead of
15854 last_scheduled_insn.
15855 (ok_for_early_queue_removal): Likewise.
15856 (queue_to_ready): Search forward in nonscheduled_insns_begin if
15857 we have a dbg_cnt.
15858 (choose_ready): Likewise.
15859 (commit_schedule): Use VEC_iterate.
15860 (schedule_block): Initialize nonscheduled_insns_begin. If we have
15861 a dbg_cnt, use it and ensure the first insn is in the ready list.
15862 (haifa_sched_init): Allocate scheduled_insns.
15863 (sched_extend_ready_list): Don't allocate it; reserve space.
15864 (haifa_sched_finish): Free it.
15865
24f48c2f
JM
158662011-04-04 Joseph Myers <joseph@codesourcery.com>
15867
15868 * optc-gen.awk: Always remove type from Variable entry before
15869 recording in var_seen.
15870
8effe856
EB
158712011-04-04 Eric Botcazou <ebotcazou@adacore.com>
15872
15873 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
15874 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
15875 call to tidy_fallthru_edges.
15876
413519ae
JM
158772011-04-04 Joseph Myers <joseph@codesourcery.com>
15878
15879 * doc/options.texi (ToLower): Document.
3729983c 15880 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
413519ae
JM
15881 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
15882 * opts.h (cl_option): Add cl_tolower field.
15883 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
15884 arguments with lowercase strings.
15885 * config/rx/rx.opt (mcpu=): Add ToLower.
15886 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
15887 argument.
15888
7d34a1b0
RS
158892011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
15890
15891 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
15892
c30e7434
RS
158932011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
15894
15895 * config/vax/vax.c: Include reload.h.
15896
112a861d
AS
158972011-04-04 Anatoly Sokolov <aesok@post.ru>
15898
15899 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
15900 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
15901 (sparc_preferred_reload_class): New function.
15902
e8c6bb74
JJ
159032011-04-04 Jakub Jelinek <jakub@redhat.com>
15904
2aeaa366 15905 PR debug/48401
e8c6bb74
JJ
15906 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
15907 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
15908
2c081caf
NF
159092011-04-03 Nathan Froyd <froydnj@codesourcery.com>
15910
15911 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
15912 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
15913
53802f27
AS
159142011-04-03 Anatoly Sokolov <aesok@post.ru>
15915
15916 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
15917 (ASM_OUTPUT_ALIGNED_BSS): Define.
15918
e89964e3
MM
159192011-04-03 Michael Matz <matz@suse.de>
15920
15921 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
15922 and next_slot members.
15923 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
15924 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
15925 (lto_streamer_cache_append): Declare.
15926 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
15927 unsigned index, remove offset parameter, ensure that we append
15928 or update existing entries.
15929 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
15930 parameter, update next_slot for append.
15931 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
15932 parameter.
15933 (lto_streamer_cache_insert_at): Likewise.
15934 (lto_streamer_cache_append): New function.
15935 (lto_streamer_cache_lookup): Use unsigned index.
15936 (lto_streamer_cache_get): Likewise.
15937 (lto_record_common_node): Don't test tree_node_can_be_shared.
15938 (preload_common_node): Adjust call to lto_streamer_cache_insert.
15939 (lto_streamer_cache_delete): Don't free offsets member.
15940 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
15941 (lto_output_string_with_length): Use lto_output_data_stream.
15942 (lto_output_tree_header): Remove ix parameter, don't write it.
15943 (lto_output_builtin_tree): Likewise.
15944 (lto_write_tree): Adjust callers to above, don't track and write
15945 offset, write unsigned index.
15946 (output_unreferenced_globals): Don't emit all global vars.
15947 (write_global_references): Use unsigned indices.
15948 (lto_output_decl_state_refs): Likewise.
15949 (write_symbol): Likewise.
15950 * lto-streamer-in.c (lto_input_chain): Move earlier.
15951 (input_function): Use unsigned index.
15952 (input_alias_pairs): Don't read and then ignore all global vars.
15953 (lto_materialize_tree): Remove ix_p parameter, don't read index,
15954 don't pass it back, use lto_streamer_cache_append.
15955 (lto_register_var_decl_in_symtab): Use unsigned index.
15956 (lto_register_function_decl_in_symtab): Likewise.
15957 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
15958 index.
15959 (lto_get_builtin_tree): Don't read index, use
15960 lto_streamer_cache_append.
15961 (lto_read_tree): Adjust call to lto_materialize_tree.
15962
15963 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
15964 don't use function calls in arguments to MIN.
15965
15966 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
15967 twice.
15968
15969 * gimple.c (gimple_type_leader_entry): Mark deletable.
15970
b9a5b5b2
AM
159712011-04-03 Alan Modra <amodra@gmail.com>
15972
15973 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
15974
ac6a641b
MM
159752011-04-03 Michael Matz <matz@suse.de>
15976
15977 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
15978 an integer.
15979 * tree.h (tree_decl_non_common.vindex): Adjust comment.
15980
0038d4e0
MM
159812011-04-03 Michael Matz <matz@suse.de>
15982
e9c18386 15983 * cgraphbuild.c (record_reference): Canonicalize constructor values.
0038d4e0
MM
15984 * gimple-fold.c (canonicalize_constructor_val): Accept being called
15985 without function context.
15986 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
15987 current_function_decl and cfun.
15988
91f2fae8
MM
159892011-04-03 Michael Matz <matz@suse.de>
15990
15991 * tree.c (decl_init_priority_insert): Don't create entry for
15992 default priority.
15993 (decl_fini_priority_insert): Ditto.
15994 (fields_compatible_p, find_compatible_field): Remove.
15995 * tree.h (fields_compatible_p, find_compatible_field): Remove.
15996 * gimple.c (gimple_compare_field_offset): Adjust block comment.
15997
da29e070
EB
159982011-04-03 Eric Botcazou <ebotcazou@adacore.com>
15999
16000 * combine.c (try_combine): Remove useless local variable.
16001
4979c28b 160022011-04-03 Richard Guenther <rguenther@suse.de>
91f2fae8 16003 Ira Rosen <ira.rosen@linaro.org>
4979c28b
RG
16004
16005 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
16006 non-variable offsets and compare the remaining bases of the two
16007 accesses instead of looking for exact same data-ref.
16008
b4ddcaee
KT
160092011-04-02 Kai Tietz <ktietz@redhat.com>
16010
f90298e1
KT
16011 PR target/48416
16012 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
16013
b4ddcaee
KT
16014 * i386.c (ix86_is_msabi_thiscall): New helper function.
16015 (ix86_is_type_thiscall): New helper function.
16016 (ix86_comp_type_attributes): Handle thiscall for method-functions
16017 special.
16018 (init_cumulative_args): Likewise.
16019 (find_drap_reg): Likewise.
16020 (ix86_static_chain): Likewise.
16021 (x86_this_parameter): Likewise.
16022 (x86_output_mi_thunk): Likewise.
16023
2a9d769a 160242011-04-01 Olivier Hainque <hainque@adacore.com>
91f2fae8
MM
16025 Nicolas Setton <setton@adacore.com>
16026 Eric Botcazou <ebotcazou@adacore.com>
2a9d769a
OH
16027
16028 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
16029 (add_gnat_descriptive_type_attribute): New function.
16030 (gen_array_type_die): Call it.
16031 (gen_enumeration_type_die): Likewise.
16032 (gen_struct_or_union_type_die): Likewise.
16033 (modified_type_die): Likewise.
16034 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
16035 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
16036 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
16037
15a03a11
JJ
160382011-04-01 Jakub Jelinek <jakub@redhat.com>
16039
16040 PR bootstrap/48148
16041 * dwarf2out.c (resolve_addr): Don't call force_decl_die
16042 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
16043
16044 Revert:
16045 2011-03-17 Richard Guenther <rguenther@suse.de>
16046
16047 PR bootstrap/48148
16048 * lto-cgraph.c (input_overwrite_node): Clear the abstract
16049 origin for decls in other ltrans units.
16050 (input_varpool_node): Likewise.
16051
19228b93
JJ
160522011-04-01 Jakub Jelinek <jakub@redhat.com>
16053
16054 PR middle-end/48335
16055 * expr.c (expand_assignment): Handle all possibilities
16056 if TO_RTX is CONCAT.
e9c18386 16057 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
19228b93
JJ
16058 (store_split_bit_field): If SUBREG_REG (op0) or
16059 op0 itself has smaller mode than word, return it
16060 for offset 0 and const0_rtx for out-of-bounds stores.
16061 If word is const0_rtx, skip it.
16062
88cb339e
N
160632011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
16064
16065 * config/h8300/h8300.c (print_operand_address): Rename to...
16066 (h8300_print_operand_address): ...this. Make static. Adjust comments.
16067 Call h8300_print_operand and h8300_print_operand_address instead of
16068 print_operand and print_operand_address. Declare.
16069 (print_operand): Renake to...
16070 (h8300_print_operand): ...this. Make static. Adjust comments.
16071 Call h8300_print_operand instead of print_operand. Declare.
16072 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
16073 (h8300_register_move_cost): Likewise.
16074 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
16075 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
16076 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
16077 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
16078 * config/h8300/h8300-protos.h (print_operand): Delete.
16079 (print_operand_address): Delete.
16080
756d6ee9
RH
160812011-04-01 Richard Henderson <rth@redhat.com>
16082
16083 PR 48400
16084 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
16085 in strict mode before dwarf4. Re-order tests to early out
16086 before switching sections.
16087
ceaaaeab
NF
160882011-04-01 Nathan Froyd <froydnj@codesourcery.com>
16089
16090 * config/h8300/constraints.md: New file.
16091 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
16092 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
16093 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
16094 * config/h8300/predicates.md (bit_operand): Likewise.
16095 (incdec_operand): Use satisfies_constraint_M and
16096 satisfies_constraint_O. Don't use C code block.
16097 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
16098 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
16099 (compute_mov_length): Use satisfies_constraint_G.
16100 (fix_bit_operand): Use satisfies_constraint_U.
16101 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
16102 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
16103 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
16104 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
16105 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
16106 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
16107 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16108 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
16109 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
16110 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
16111 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
16112 (EXTRA_MEMORY_CONSTRAINT): Delete.
16113
08ae38e0
AP
161142011-04-01 Andrew Pinski <pinskia@gmail.com>
16115 Michael Meissner <meissner@linux.vnet.ibm.com>
16116
16117 PR target/48262
16118 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
16119 operands, as per the specifications.
16120
16121 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
16122 (vec_extract_evenv4sf): Ditto.
16123 (vec_extract_evenv8hi): Ditto.
16124 (vec_extract_evenv16qi): Ditto.
16125 (vec_extract_oddv4si): Ditto.
16126
bdb0b0f6
MW
161272011-03-31 Mark Wielaard <mjw@redhat.com>
16128
16129 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
16130 high_pc attribute if the CU has no associated code. Only output
16131 DW_AT_entry_pc for CU if not generating strict dwarf and
16132 dwarf_version < 4.
16133
722279e4
BS
161342011-04-01 Bernd Schmidt <bernds@codesourcery.com>
16135
16136 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
16137 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
16138 out of ...
16139 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
16140 * final.c (final_start_function): Call the new function rather
16141 than using a NULL argument for dwarf2out_frame_debug.
16142
c5dd277d
BS
16143 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
16144 that contains the prologue.
16145
ec4efea9
BS
16146 * haifa-sched.c (queue_insn): New arg REASON. All callers
16147 changed. Print it in debugging output.
16148
2a6a0d80
BS
16149 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
16150
86014d07
BS
16151 * sched-ebb.c (begin_schedule_ready): Remove second argument.
16152 Split most of the code into...
16153 (begin_move_insn): ... here. New function.
16154 (ebb_sched_info): Add a pointer to it.
16155 * haifa-sched.c (scheduled_insns): New static variable.
16156 (sched_extend_ready_list): Allocate it.
16157 (schedule_block): Use it to record the order of scheduled insns.
16158 Perform RTL changes to move insns only after all scheduling
16159 decisions have been made.
16160 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
16161 begin_move_insn field.
16162 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
16163 * sched-int.h (struct haifa_sched_info): Remove second argument
16164 from begin_schedule_ready hook. Add new member begin_move_insn.
16165 * sched-rgn.c (begin_schedule_ready): Remove second argument.
16166 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
16167
9d701248
BS
16168 * haifa-sched.c (prune_ready_list): New function, broken out of
16169 schedule_block.
16170 (schedule_block): Use it.
16171
1ca1dad5
UW
161722011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16173
16174 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
16175
49568e45
KT
161762011-04-01 Kai Tietz <ktietz@redhat.com>
16177
16178 * config.gcc (*-*-mingw*): Allow as option the
16179 posix threading model.
07c0852e 16180 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
49568e45
KT
16181 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
16182 definition.
16183 (CPP_SPEC): Add pthread/no-pthread handling.
16184 (LIB_SPEC): Likewise.
16185 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
16186 (LIB_SPEC): Likewise.
16187 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
16188 flag to pass -pthread option for shared libgcc build.
16189 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
16190 for shared libgcc build.
16191 * config/i386/t-mingw-pthread: New file.
16192 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
16193 New define to enable use of library pthread by default.
16194 * config/i386/mingw.opt (pthread): New driver option.
16195 (no-pthread): New driver option.
e9c18386 16196 * config/i386/cygming.opt: Make sure trailing empty line is retained.
49568e45
KT
16197 * config/i386/mingw-w64.opt: Likewise.
16198
748f7574 161992011-04-01 Gary Funck <gary@intrepid.com>
636b4106
GF
16200
16201 * c-decl.c (grokdeclarator): Fix formatting.
16202
f04713ee
RS
162032011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
16204
16205 * expr.c (emit_block_move_via_movmem): Use n_generator_args
16206 instead of n_operands.
16207 (set_storage_via_setmem): Likewise.
16208 * optabs.c (maybe_gen_insn): Likewise.
16209 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
16210 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
16211 (mips_expand_builtin_direct): Likewise.
16212 * config/spu/spu.c (expand_builtin_args): Likewise.
16213
b29387ee
RS
162142011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
16215
16216 * recog.h (insn_data_d): Add n_generator_args.
16217 * genoutput.c (data): Likewise.
16218 (output_insn_data): Print it.
16219 (max_opno, num_dups): Delete.
16220 (scan_operands): Just fill in "d->operand[...]".
16221 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
16222
e792559a
RS
162232011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
16224
16225 * gensupport.h (pattern_stats): New structure.
16226 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
16227 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
16228 (max_operand_1, max_operand_vec): Delete.
16229 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
16230
e8110d6f
NF
162312011-03-31 Nathan Froyd <froydnj@codesourcery.com>
16232
16233 * emit-rtl.c (emit_pattern_after_setloc): New function.
16234 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
16235 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
16236 (emit_pattern_after): New function.
16237 (emit_insn_after, emit_jump_insn_after): Call it.
16238 (emit_call_insn_after, emit_debug_insn_after): Likewise.
16239 (emit_pattern_before_setloc): New function.
16240 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
16241 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
16242 Likewise.
16243 (emit_pattern_before): New function.
16244 (emit_insn_before, emit_jump_insn_before): Call it.
16245 (emit_call_insn_before, emit_debug_insn_before): Likewise.
16246
576f85f1
RH
162472011-03-31 Richard Henderson <rth@redhat.com>
16248
16249 * dwarf2out.c (dw_separate_line_info_ref): Remove.
16250 (dw_separate_line_info_entry): Remove.
16251 (enum dw_line_info_opcode): New.
16252 (dw_line_info_entry): Use it.
16253 (dw_line_info_table, dw_line_info_table_p): New.
16254 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
16255 (line_info_table, line_info_label_num): Remove.
16256 (line_info_table_in_use): Remove.
16257 (separate_line_info_table): Remove.
16258 (separate_line_info_table_allocated): Remove.
16259 (separate_line_info_table_in_use): Remove.
16260 (LINE_INFO_TABLE_INCREMENT): Remove.
16261 (line_info_label_num): New.
16262 (cur_line_info_table): New.
16263 (text_section_line_info, cold_text_section_line_info): New.
16264 (separate_line_info): New.
16265 (SEPARATE_LINE_CODE_LABEL): Remove.
16266 (print_dwarf_line_table): Remove.
16267 (debug_dwarf): Don't dump it.
16268 (output_one_line_info_table): New.
16269 (output_line_info): Use it.
16270 (new_line_info_table): New.
16271 (set_cur_line_info_table): New.
16272 (dwarf2out_switch_text_section): Use it.
16273 (dwarf2out_begin_function): Likewise.
16274 (push_dw_line_info_entry): New.
16275 (dwarf2out_source_line): Rewrite for new line info tables.
16276 (dwarf2out_init): Remove dead initailizations.
16277
300d83d9
JM
162782011-03-31 Joseph Myers <joseph@codesourcery.com>
16279
16280 * opts.h (cl_option): Add comments to fields. Add bit-fields for
16281 various flags.
16282 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
16283 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
16284 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
16285 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
16286 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
16287 * opt-functions.awk (flag_init, switch_bit_fields): New.
16288 (switch_flags): Don't handle flags moved to bit-fields. Don't
16289 generate CL_MISSING_OK or CL_SAVE.
16290 * optc-gen.awk: Update to generate bit-field output as well as
16291 flags field.
16292 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
16293 bit-field instead of CL_REJECT_DRIVER flag.
16294 * opts-common.c (generate_canonical_option,
16295 decode_cmdline_option): Use bit-fields instead of CL_* flags.
16296 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
16297 instead of CL_REJECT_NEGATIVE flag.
16298 * toplev.c (print_switch_values): Use cl_report bit-field instead
16299 of CL_REPORT flag.
16300
d4d73ce2
EB
163012011-03-31 Eric Botcazou <ebotcazou@adacore.com>
16302
16303 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
16304 a zero minimum index only if it is redundant.
16305
b8faca75
VM
163062011-03-31 Vladimir Makarov <vmakarov@redhat.com>
16307
16308 PR rtl-optimization/48381
16309 * ira-color.c (assign_hard_reg): Use hard reg set intersection
16310 instead of ira_class_hard_reg_index for calculating conflicting
16311 hard registers.
16312
7d11cebe
SB
163132011-03-31 Steven Bosscher <steven@gcc.gnu.org>
16314
16315 * cprop.c: Clean up hash table building.
16316 (reg_avail_info): Remove.
16317 (oprs_available_p): Remove.
16318 (record_last_reg_set_info): Remove.
16319 (record_last_set_info): Remove.
16320 (reg_available_p): New function.
16321 (gcse_constant_p): Do not treat unfolded conditions as constants.
16322 (make_set_regs_unavailable): New function.
16323 (hash_scan_set): Simplify with new reg_available_p.
16324 (compute_hash_table_work): Traverse insns stream only once.
16325 Do not compute reg_avail_info. Traverse insns in reverse order.
16326 Record implicit sets after recording explicit sets from the block.
16327
98faf84f
MM
163282011-03-31 Michael Matz <matz@suse.de>
16329
e9c18386 16330 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
98faf84f 16331
f52d97da
AS
163322011-03-31 Anatoly Sokolov <aesok@post.ru>
16333
16334 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
16335 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
16336 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16337 (h8300_mode_dependent_address_p): New function.
16338 (h8300_get_index): Make static.
16339
e16b6fd0
JL
163402011-03-31 Jeff Law <law@redhat.com>
16341
10c51983
JL
16342 * reload1.c (elimination_effects): Fix typo in recent change.
16343
e9c18386 16344 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
e16b6fd0
JL
16345 typo potentially leading to null pointer dereference.
16346
16347 * caller-save.c (new_saved_hard_reg): Eliminate return value.
16348 (setup_save_areas): Corresponding changes to avoid useless
16349 assignments.
16350
16351 * jump.c (reversed_comparison_code_parts): Avoid successive return
16352 statements when REVERSE_CONDITION is defined.
16353
16354 * expr.c (expand_assignment): Avoid useless assignments.
16355 (expand_expr_real_1): Likewise.
16356 (expand_expr_real_2): Avoid useless statements.
16357
16358 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
16359
16360 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
16361
16362 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
16363 statements.
16364
16365 * stmt.c (expand_expr_stmt): Avoid useless assignment.
16366
eb1eb914
JM
163672011-03-31 Joseph Myers <joseph@codesourcery.com>
16368
16369 PR target/47109
16370 * doc/tm.texi.in (TARGET_VERSION): Remove.
16371 * doc/tm.texi: Regenerate.
16372 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
16373 * collect2.c (main): Don't use TARGET_VERSION.
16374 * mips-tdump.c (main): Don't use TARGET_VERSION.
16375 * mips-tfile.c (main): Don't use TARGET_VERSION.
e9c18386 16376 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
eb1eb914
JM
16377 * config/rs6000/vxworksae.h: Remove.
16378 * config/alpha/alpha.h (TARGET_VERSION): Remove.
16379 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
16380 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
16381 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
16382 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
16383 * config/arm/arm.h (TARGET_VERSION): Remove.
16384 * config/arm/coff.h (TARGET_VERSION): Remove.
16385 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
16386 * config/arm/elf.h (TARGET_VERSION): Remove.
16387 * config/arm/freebsd.h (TARGET_VERSION): Remove.
16388 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
16389 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
16390 * config/arm/pe.h (TARGET_VERSION): Remove.
16391 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
16392 * config/arm/semi.h (TARGET_VERSION): Remove.
16393 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
16394 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
16395 * config/arm/vxworks.h (TARGET_VERSION): Remove.
16396 * config/avr/avr.h (TARGET_VERSION): Remove.
16397 * config/bfin/bfin.h (TARGET_VERSION): Remove.
16398 * config/fr30/fr30.h (TARGET_VERSION): Remove.
16399 * config/frv/frv.h (TARGET_VERSION): Remove.
16400 * config/h8300/h8300.h (TARGET_VERSION): Remove.
16401 * config/i386/cygwin.h (TARGET_VERSION): Remove.
16402 * config/i386/darwin.h (TARGET_VERSION): Remove.
16403 * config/i386/darwin64.h (TARGET_VERSION): Remove.
16404 * config/i386/djgpp.h (TARGET_VERSION): Remove.
16405 * config/i386/freebsd.h (TARGET_VERSION): Remove.
16406 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
16407 * config/i386/gnu.h (TARGET_VERSION): Remove.
16408 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
16409 * config/i386/i386elf.h (TARGET_VERSION): Remove.
16410 * config/i386/linux.h (TARGET_VERSION): Remove.
16411 * config/i386/linux64.h (TARGET_VERSION): Remove.
16412 * config/i386/lynx.h (TARGET_VERSION): Remove.
16413 * config/i386/mingw32.h (TARGET_VERSION): Remove.
16414 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
16415 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
16416 * config/i386/netware.h (TARGET_VERSION): Remove.
16417 * config/i386/nto.h (TARGET_VERSION): Remove.
16418 * config/i386/openbsd.h (TARGET_VERSION): Remove.
16419 * config/i386/vxworks.h (TARGET_VERSION): Remove.
16420 * config/ia64/elf.h (TARGET_VERSION): Remove.
16421 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
16422 * config/ia64/hpux.h (TARGET_VERSION): Remove.
16423 * config/ia64/linux.h (TARGET_VERSION): Remove.
16424 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
16425 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
16426 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
16427 * config/lm32/lm32.h (TARGET_VERSION): Remove.
16428 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
16429 * config/m32c/m32c.h (TARGET_VERSION): Remove.
16430 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
16431 * config/m32r/m32r.h (TARGET_VERSION): Remove.
16432 * config/m68k/linux.h (TARGET_VERSION): Remove.
16433 * config/m68k/m68k.h (TARGET_VERSION): Remove.
16434 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
16435 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
16436 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
16437 * config/mep/mep.h (TARGET_VERSION): Remove.
16438 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
16439 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
16440 * config/mips/iris6.h (MACHINE_TYPE): Remove.
16441 * config/mips/linux.h (TARGET_VERSION): Remove.
16442 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
16443 * config/mips/vxworks.h (TARGET_VERSION): Remove.
16444 * config/mmix/mmix.h (TARGET_VERSION): Remove.
16445 * config/mn10300/linux.h (TARGET_VERSION): Remove.
16446 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
16447 * config/pa/pa.h (TARGET_VERSION): Remove.
16448 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
16449 * config/picochip/picochip.h (TARGET_VERSION): Remove.
16450 * config/rs6000/aix.h (TARGET_VERSION): Remove.
16451 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
16452 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
16453 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
16454 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
16455 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
16456 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
16457 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
16458 * config/rs6000/linux.h (TARGET_VERSION): Remove.
16459 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
16460 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
16461 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
16462 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
16463 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
16464 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
16465 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
16466 * config/s390/linux.h (TARGET_VERSION): Remove.
16467 * config/s390/s390.h (TARGET_VERSION): Remove.
16468 * config/s390/tpf.h (TARGET_VERSION): Remove.
16469 * config/score/score.h (TARGET_VERSION): Remove.
16470 * config/sh/linux.h (TARGET_VERSION): Remove.
16471 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
16472 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
16473 * config/sh/sh.h (TARGET_VERSION): Remove.
16474 * config/sh/sh64.h (TARGET_VERSION): Remove.
16475 * config/sh/superh.h (TARGET_VERSION): Remove.
16476 * config/sh/vxworks.h (TARGET_VERSION): Remove.
16477 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
16478 * config/sparc/linux.h (TARGET_VERSION): Remove.
16479 * config/sparc/linux64.h (TARGET_VERSION): Remove.
16480 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
16481 TARGET_NAME32, TARGET_NAME): Remove.
16482 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
16483 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
16484 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
16485 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
16486 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
16487 * config/spu/spu.h (TARGET_VERSION): Remove.
16488 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
16489 * config/v850/v850.h (TARGET_VERSION): Remove.
16490 * config/vax/linux.h (TARGET_VERSION): Remove.
16491 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
16492 * config/xtensa/elf.h (TARGET_VERSION): Remove.
16493 * config/xtensa/linux.h (TARGET_VERSION): Remove.
16494
ace31bca
EB
164952011-03-31 Eric Botcazou <ebotcazou@adacore.com>
16496
16497 PR target/48142
16498 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
16499 frame-related from frame-unrelated adjustments to the stack pointer.
16500
76f9db36
JJ
165012011-03-31 Jakub Jelinek <jakub@redhat.com>
16502
16503 * common.opt (fdebug-types-section): Move earlier.
16504 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
16505
b7826465
AT
165062011-03-31 Andreas Tobler <andreast@fgznet.ch>
16507
16508 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
16509 var.
16510
1290e54c
NF
165112011-03-30 Nathan Froyd <froydnj@codesourcery.com>
16512
16513 * tree.h (CASE_CHAIN): Define.
16514 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
16515 (gimple_redirect_edge_and_branch): Likewise.
16516
bddc98e1
VM
165172011-03-30 Vladimir Makarov <vmakarov@redhat.com>
16518
16519 PR middle-end/48367
16520 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
16521 calculation.
16522
c865e437
JL
165232011-03-30 Jeff Law <law@redhat.com>
16524
b3750213 16525 * PR bootstrap/48371
c865e437
JL
16526 * reload1.c (reload): Fix botch in last change.
16527
16528 * reload.h (struct reload): Fix typo introduced in last change.
16529
2cdf9574
JM
165302011-03-30 Joseph Myers <joseph@codesourcery.com>
16531
16532 * config/arm/arm.opt (mhard-float, msoft-float): Mark
16533 Undocumented. Remove help text.
16534 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
16535 -mhard-float.
16536
666a21a2
JM
165372011-03-30 Joseph Myers <joseph@codesourcery.com>
16538
16539 * doc/options.texi (NegativeAlias): Document.
16540 (Alias): Mention NegativeAlias.
16541 * opt-functions.awk: Handle NegativeAlias.
e9c18386 16542 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
666a21a2
JM
16543 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
16544 * opts.h (CL_NEGATIVE_ALIAS): Define.
16545 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
16546 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
16547 OPT_mspe_.
16548 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
16549 Alias entries.
16550 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
16551 mno-spe and mno-isel instead of mspe=no and -misel=no.
16552
0fa4e351
MW
165532011-03-29 Mark Wielaard <mjw@redhat.com>
16554
16555 * common.opt (fdebug-types-section): New flag.
16556 * doc/invoke.texi: Document new -fno-debug-types-section flag.
16557 * dwarf2out.c (use_debug_types): New define.
16558 (struct die_struct): Mark die_id with GTY desc use_debug_types.
16559 (print_die): Guard output of type unit signatures using
16560 use_debug_types.
16561 (build_abbrev_table): Replace assert of dwarf_version >= 4
16562 with assert on use_debug_types.
16563 (size_of_die): Likewise.
16564 (unmark_dies): Likewise.
16565 (value_format): Decide AT_ref_external form on use_debug_types.
16566 (output_die): Replace dwarf_version version check guard with
16567 use_debug_types where appropriate.
16568 (modified_type_die): Likewise.
16569 (gen_reference_type_die): Likewise.
16570 (dwarf2out_start_source_file): Likewise.
16571 (dwarf2out_end_source_file): Likewise.
16572 (prune_unused_types_walk_attribs): Likewise.
16573 (dwarf2out_finish): Likewise.
16574
4648deb4
VM
165752011-03-30 Vladimir Makarov <vmakarov@redhat.com>
16576
16577 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
16578
4f431835
RS
165792011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
16580
16581 PR rtl-optimization/48332
16582 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
16583 mode of input operand N and modeN to its actual mode.
16584
f2034d06
JL
165852011-03-30 Jeff Law <law@redhat.com>
16586
16587 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
16588 define accessor macro.
16589 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
16590 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
16591 (reg_equiv_init): Likewise.
16592 (reg_equivs_size): New variable.
16593 (reg_equiv_init_size): Remove.
16594 (allocate_initial_values): Move prototype to here from....
16595 * integrate.h (allocate_initial_values): Remove prototype.
16596 * integrate.c: Include reload.h.
16597 (allocate_initial_values): Corresponding changes.
16598 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
16599 (fix_reg_equiv_init, no_equiv): Corresponding changes.
16600 (update_equiv_regs): Corresponding changes.
16601 (ira): Corresponding changes.
16602 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
16603 (push_secondary_reload): Corresponding changes.
16604 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
16605 (make_memloc, find_reloads_address): Corresponding changes.
16606 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
16607 (find_reloads_address_1): Corresponding changes.
16608 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
16609 (refers_to_regno_for_reload_p): Corresponding changes.
16610 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
16611 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
16612 * reload1.c: Include ggc.h.
16613 (grow_reg_equivs): New function.
16614 (replace_pseudos_in, reload): Corresponding changes.
16615 (calculate_needs_all_insns, alter_regs): Corresponding changes.
16616 (eliminate_regs_1, elimination_effects): Corresponding changes.
16617 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
16618 (delete_output_reload): Likewise.
16619 * caller-save.c (mark_referenced_regs): Corresponding changes.
16620 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
16621 * frv/predicates.md (frv_load_operand): Corresponding changes.
16622 * microblaze/microblaze.c (double_memory_operand): Corresponding
16623 changes.
16624 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
16625 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
e9c18386 16626 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
f2034d06
JL
16627 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
16628 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
16629 changes.
16630 * pa/pa.c (emit_move_sequence): Corresponding changes.
16631 * vax/vax.c (nonindexed_address_p): Corresponding changes.
16632
159b81b0
RS
166332011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
16634
16635 PR target/47551
16636 * config/arm/arm.c (coproc_secondary_reload_class): Handle
16637 structure modes. Don't check neon_vector_mem_operand for
16638 vector or structure modes.
16639
a6217191
RS
166402011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
16641 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16642
16643 PR target/43590
16644 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
16645 operand 1 and reshuffle the operands to match.
16646 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
16647
bd837408
CS
166482011-03-30 Christian Schüler <cschueler@gmx.de>
16649
6955d771 16650 PR driver/48208
bd837408 16651 * config/c.opt (F): Added 'Driver' to -F option.
e9c18386 16652
6955d771 16653 PR driver/48260
bd837408
CS
16654 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
16655 handler function.
16656 * config/darwin.opt: Added '-arch' option.
16657
e9c0470a
NC
166582011-03-30 Nick Clifton <nickc@redhat.com>
16659
16660 * config/rx/rx.md: Add peepholes and patterns to combine
16661 extending loads and simple arithmetic instructions.
16662 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
e9c18386
UB
16663 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
16664 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
e9c0470a 16665 modes to use pre-decrement and post-increment addressing.
e9c18386 16666 (rx_is_restricted_memory_address): Add range checking of REG+INT
e9c0470a 16667 addresses.
e9c18386
UB
16668 (rx_print_operand): Add support for %Q. Fix handling of %Q.
16669 (rx_memory_move_cost): Adjust cost of stores.
16670 (rx_adjust_insn_length): New function.
e9c0470a 16671
8a87e7ab
JJ
166722011-03-30 Jakub Jelinek <jakub@redhat.com>
16673
16674 PR c/48305
16675 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
16676 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
16677 matching arg00/arg01 types.
16678
12486e03
EB
166792011-03-30 Eric Botcazou <ebotcazou@adacore.com>
16680
16681 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
16682 last_location to UNKNOWN_LOCATION.
16683
0b99eef6
L
166842011-03-30 H.J. Lu <hongjiu.lu@intel.com>
16685
16686 PR target/48349
16687 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
16688 FLOAT_SSE_REGS.
16689
023592aa
JM
166902011-03-30 Joseph Myers <joseph@codesourcery.com>
16691 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16692
16693 PR bootstrap/48337
16694 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
16695 Init(PROCESSOR_V7).
16696 (sparc_cpu): Likewise.
16697 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
16698 PROCESSOR_V7.
16699
ad3b266b
VM
167002011-03-29 Vladimir Makarov <vmakarov@redhat.com>
16701
16702 PR target/48336
16703 PR middle-end/48342
16704 PR rtl-optimization/48345
16705 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
16706 hard regs for given mode from profitable regs when doing secondary
16707 allocation.
16708
633c9126
JL
167092011-03-29 Jeff Law <law@redhat.com>
16710
16711 PR bootstrap/48327
16712 * tree-ssa-threadupdate.c (struct redirection_data): Remove
16713 do_not_duplicate field.
16714 (lookup_redirection_data): Corresponding changes.
16715 (create_duplicates): Always create a template block.
16716 (redirect_edges): Remove code which reused the original block
16717 when it was going to become unreachable code.
16718 (thread_block): Don't set do_not_duplicate field.
16719
eb50f63a
JM
167202011-03-29 Joseph Myers <joseph@codesourcery.com>
16721
16722 * lto-opts.c (register_user_option_p, lto_register_user_option):
16723 Make type argument unsigned.
16724 * lto-streamer.h (lto_register_user_option): Make type argument
16725 unsigned.
16726 * opth-gen.awk: Make CL_* macros unsigned.
16727 * opts-common.c (find_opt): Make lang_mask argument unsigned.
16728 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
16729 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
16730 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
16731 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
16732 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
16733 (find_opt): Make lang_mask argument unsigned.
16734
76763a6d
VM
167352011-03-29 Vladimir Makarov <vmakarov@redhat.com>
16736
16737 PR rtl-optimization/48331
16738 PR rtl-optimization/48334
16739 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
16740 for any used algorithm.
16741
5c82436e
VM
167422011-03-29 Vladimir Makarov <vmakarov@redhat.com>
16743
16744 * ira-conflicts.c (build_object_conflicts): Add unused attribute
16745 to parent_max.
16746
7a81008b
UB
167472011-03-29 Uros Bizjak <ubizjak@gmail.com>
16748
16749 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
16750 (alpha_option_override): Don't set alpha_sr_alias_set.
16751 (emit_frame_store_1): Use gen_frame_mem rather than calling
16752 set_mem_alias_set.
16753 (alpha_expand_epilogue): Ditto.
16754
86c8d1f6
IR
167552011-03-29 Ira Rosen <ira.rosen@linaro.org>
16756
16757 PR tree-optimization/48290
16758 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
16759 vectorization, check that relevant phis in the basic block after
16760 the inner loop are really inner loop's exit phis.
16761
0d12220f
RS
167622011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
16763
e8cf17e7 16764 PR debug/48190
0d12220f
RS
16765 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
16766 (cached_dw_loc_list_def): New structure.
16767 (cached_dw_loc_list): New typedef.
16768 (cached_dw_loc_list_table): New variable.
16769 (cached_dw_loc_list_table_hash): New function.
16770 (cached_dw_loc_list_table_eq): Likewise.
16771 (add_location_or_const_value_attribute): Take a bool cache_p.
16772 Cache the list when the parameter is true.
16773 (gen_formal_parameter_die): Update caller.
16774 (gen_variable_die): Likewise.
16775 (dwarf2out_finish): Likewise.
16776 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
16777 while generating debug info for the decl.
16778 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
16779 (dwarf2out_init): Initialize cached_dw_loc_list_table.
16780 (resolve_addr): Cache the result of resolving a chain of
16781 location lists.
16782
1756cb66
VM
167832011-03-28 Vladimir Makarov <vmakarov@redhat.com>
16784
16785 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
16786 conflict object hard regset nodes have intersecting hard reg sets.
7a81008b 16787
1756cb66
VM
16788 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
16789 after regstat_init_n_sets_and_refs.
16790
16791 * ira.c: Add more comments at the top.
16792 (setup_stack_reg_pressure_class, setup_pressure_classes):
16793 Add comments how we compute the register pressure classes.
16794 (setup_allocno_and_important_classes): Add more comments.
16795 (setup_class_translate_array, reorder_important_classes)
16796 (setup_reg_class_relations): Add comments.
16797
16798 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
16799 start of the file.
16800
16801 * ira-color.c: Add 2011 to the Copyright line.
16802 (assign_hard_reg): Add more comments.
16803 (improve_allocation): Ditto.
16804
16805 * ira-costs.c: Add 2011 to the Copyright line.
16806 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
16807 comments.
16808 (setup_regno_cost_classes_by_mode): Ditto.
16809
16810 Initial patches from ira-improv branch:
16811
16812 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
16813
f60c2554 16814 * ira-build.c (ira_create_object): Remove initialization of
1756cb66
VM
16815 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
16816 (ira_create_allocno): Remove initialization of
16817 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
16818 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
16819 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
16820 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
16821 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
16822 Initialize ALLOCNO_ADD_DATA.
16823 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
16824 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
16825 ALLOCNO_REG.
16826 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
16827 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
16828
16829 * ira.c (ira_reallocate): Remove.
16830 (setup_pressure_classes): Call
16831 ira_init_register_move_cost_if_necessary. Use
16832 ira_register_move_cost instead of ira_get_register_move_cost.
16833 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
16834 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
16835
16836 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
16837 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
16838 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
16839 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
16840 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
16841 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
16842 Fix formatting.
7a81008b 16843 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
1756cb66
VM
16844 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
16845 (struct allocno_color_data): New.
16846 (allocno_color_data_t): New typedef.
16847 (allocno_color_data): New definition.
16848 (ALLOCNO_COLOR_DATA): New macro.
16849 (struct object_color_data): New.
16850 (object_color_data_t): New typedef.
16851 (object_color_data): New definition.
16852 (OBJECT_COLOR_DATA): New macro.
16853 (update_copy_costs, calculate_allocno_spill_cost): Call
16854 ira_init_register_move_cost_if_necessary. Use
16855 ira_register_move_cost instead of ira_get_register_move_cost.
16856 (move_spill_restore, update_curr_costs): Ditto.
16857 (allocno_spill_priority): Make it inline.
7a81008b 16858 (color_pass): Allocate and free allocno_color_dat and object_color_data.
1756cb66
VM
16859 (struct coalesce_data, coalesce_data_t): New.
16860 (allocno_coalesce_data): New definition.
16861 (ALLOCNO_COALESCE_DATA): New macro.
16862 (merge_allocnos, coalesced_allocno_conflict_p): Use
16863 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
16864 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
16865 (coalesce_allocnos): Ditto.
16866 (setup_coalesced_allocno_costs_and_nums): Ditto.
16867 (collect_spilled_coalesced_allocnos): Ditto.
16868 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
16869 (setup_slot_coalesced_allocno_live_ranges): Ditto.
16870 (coalesce_spill_slots): Ditto.
16871 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
16872 free allocno_coalesce_data.
16873
16874 * ira-conflicts.c: Fix formatting.
16875 (process_regs_for_copy): Call
16876 ira_init_register_move_cost_if_necessary. Use
16877 ira_register_move_cost instead of ira_get_register_move_cost.
16878 (build_object_conflicts): Optimize.
16879
16880 * ira-costs.c (record_reg_classes): Optimize. Call
16881 ira_init_register_move_cost_if_necessary. Use
16882 ira_register_move_cost, ira_may_move_in_cost, and
16883 ira_may_move_out_cost instead of ira_get_register_move_cost and
16884 ira_get_may_move_cost.
16885 (record_address_regs): Ditto.
16886 (scan_one_insn): Optimize.
16887 (find_costs_and_classes): Optimize.
16888 (process_bb_node_for_hard_reg_moves): Call
16889 ira_init_register_move_cost_if_necessary. Use
16890 ira_register_move_cost instead of ira_get_register_move_cost.
16891
16892 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
16893 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
16894 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
16895 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
16896 definitions.
16897 (ira_initiate_emit_data, ira_finish_emit_data)
16898 (create_new_allocno): New functions.
7a81008b 16899 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
1756cb66
VM
16900 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
16901 Use ira_register_move_cost instead of ira_get_register_move_cost.
16902
16903 * ira-int.h: Fix some comments.
7a81008b
UB
16904 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
16905 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1756cb66
VM
16906 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
16907 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
16908 add_data.
16909 (struct ira_allocno): Make mode and aclass a bitfield. Move other
16910 bitfield after mode. Make hard_regno a short int. Make
16911 hard_regno short. Remove first_coalesced_allocno and
16912 next_coalesced_allocno. Move mem_optimized_dest_p,
16913 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
16914 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
16915 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
16916 temp, colorable_p. Add new member add_data.
16917 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
16918 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
16919 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
16920 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
16921 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
16922 (ALLOCNO_ADD_DATA): New macro.
16923 (ira_emit_data_t): New typedef.
16924 (struct ira_emit_data): New. Move mem_optimized_dest_p,
16925 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
16926 from struct ira_allocno.
16927 (ALLOCNO_EMIT_DATA): New macro.
16928 (ira_allocno_emit_data, allocno_emit_reg): New.
16929 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7a81008b 16930 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
1756cb66
VM
16931 (OBJECT_ADD_DATA): New macro.
16932 (ira_reallocate): Remove.
16933 (ira_initiate_emit_data, ira_finish_emit_data): New.
16934 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
16935 (ira_init_register_move_cost_if_necessary): New.
16936 (ira_object_conflict_iter_next): Merge into
16937 ira_object_conflict_iter_cond.
7a81008b 16938 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
1756cb66 16939
f60c2554 16940 * ira-live.c (process_single_reg_class_operands): Call
1756cb66
VM
16941 ira_init_register_move_cost_if_necessary. Use
16942 ira_register_move_cost instead of ira_get_register_move_cost.
16943
16944 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
16945
16946 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
16947
16948 * ira-costs.c: Fix formatting.
16949 (cost_classes, cost_classes_num): Remove.
16950 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
16951 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
16952 (cost_classes_del, cost_classes_htab): New.
16953 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
16954 (initiate_regno_cost_classes, setup_cost_classes): New.
16955 (setup_regno_cost_classes_by_aclass): New.
7a81008b 16956 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
1756cb66
VM
16957 (record_reg_classes): Use regno_cost_classes instead of
16958 cost_classes. Move checking opposite operand up.
16959 (record_address_regs): Use regno_cost_classes
16960 instead of cost_classes.
16961 (scan_one_insn): Ditto. Use always general register.
16962 (print_allocno_costs): Use regno_cost_classes instead of
16963 cost_classes.
16964 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
16965 (find_costs_and_classes): Set up cost classes for each registers.
16966 Use also their mode for this. Use regno_cost_classes instead of
16967 cost_classes.
16968 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
16969 cost_classes.
16970 (free_ira_costs, ira_init_costs): Don't use cost_classes.
16971 (ira_costs, ira_set_pseudo_classes): Call
16972 initiate_regno_cost_classes and finish_regno_cost_classes.
16973
16974 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
16975
16976 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
16977
16978 * target.def (ira_cover_classes): Remove.
16979
7a81008b 16980 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
1756cb66
VM
16981
16982 * doc/tm.texi.in: Ditto.
16983
16984 * ira-conflicts.c: Remove mentioning cover classes from the file.
16985 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7a81008b 16986 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
1756cb66
VM
16987
16988 * targhooks.c (default_ira_cover_classes): Remove.
16989
16990 * targhooks.h (default_ira_cover_classes): Ditto.
16991
16992 * haifa-sched.c: Remove mentioning cover classes from the file.
16993 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
16994 ira_pressure_classes and ira_pressure_classes_num instead of
16995 ira_reg_class_cover_size and ira_reg_class_cover. Use
16996 sched_regno_pressure_class instead of sched_regno_cover_class.
16997 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
16998 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
16999
17000 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
17001 classes from the file.
17002 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
17003 (struct object_hard_regs, struct object_hard_regs_node): New.
17004 (struct ira_object): New members profitable_hard_regs,
17005 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
17006 (struct ira_allocno): Rename cover_class to aclass. Rename
17007 cover_class_cost and updated_cover_class_cost to class_cost and
17008 updated_class_cost. Remove splay_removed_p and
17009 left_conflict_size. Add new members colorable_p.
17010 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
17011 (ALLOCNO_COLORABLE_P): New macro.
17012 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
17013 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
17014 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
17015 (OBJECT_...): Rename parameter C to O.
17016 (OBJECT_PROFITABLE_HARD_REGS): New macro.
17017 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
17018 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
17019 (struct target_ira_int): New members x_ira_max_memory_move_cost,
17020 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
17021 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
17022 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
17023 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
17024 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
17025 x_ira_reg_class_subunion.
17026 (ira_max_memory_move_cost, ira_max_register_move_cost)
17027 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
17028 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
17029 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7a81008b 17030 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
1756cb66
VM
17031 (ira_reg_class_union): Rename to ira_reg_class_subunion.
17032 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
17033 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
17034 (ira_tune_allocno_costs_and_cover_classes): Rename to
17035 ira_tune_allocno_costs.
17036 (ira_debug_hard_regs_forest): New.
17037 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
17038 (ira_object_conflict_iter_next): Fix comments.
7a81008b 17039 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
1756cb66
VM
17040 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
17041 cover_class to aclass.
17042 (ira_allocate_and_accumulate_costs): Ditto.
17043 (ira_allocate_and_set_or_copy_costs): Ditto.
17044
17045 * opts.c (decode_options): Remove ira_cover_class check.
17046
17047 * ira-color.c: Remove mentioning cover classes from the file. Use
17048 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
17049 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
17050 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
17051 (splay-tree.h): Remove include.
17052 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
17053 before copy_freq_compare_func.
17054 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
17055 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
17056 New definitions.
17057 (hard_regs_roots, hard_regs_node_vec): Ditto.
17058 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
17059 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
17060 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
17061 (create_new_object_hard_regs_node): Ditto.
17062 (add_new_object_hard_regs_node_to_forest): Ditto.
7a81008b 17063 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
1756cb66
VM
17064 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
17065 Ditto.
17066 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
17067 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
17068 (remove_unused_object_hard_regs_nodes): Ditto.
17069 (enumerate_object_hard_regs_nodes): Ditto.
17070 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
17071 (object_hard_regs_subnode_t): Ditto.
17072 (struct object_hard_regs_subnode): Ditto.
17073 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
17074 (setup_object_hard_regs_subnode_index): Ditto.
17075 (get_object_hard_regs_subnodes_num): Ditto.
17076 (form_object_hard_regs_nodes_forest): Ditto.
17077 (finish_object_hard_regs_nodes_tree): Ditto.
17078 (finish_object_hard_regs_nodes_forest): Ditto.
17079 (allocnos_have_intersected_live_ranges_p): Rename to
7a81008b 17080 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1756cb66
VM
17081 (pseudos_have_intersected_live_ranges_p): Rename to
17082 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
17083 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
17084 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
17085 (update_copy_costs): Remove assert. Skip cost update if the hard
17086 reg does not belong the class.
17087 (assign_hard_reg): Process only profitable hard regs.
17088 (uncolorable_allocnos_num): Make it scalar.
17089 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
17090 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
17091 and ira_reg_class_max_nregs.
17092 (bucket_allocno_compare_func): Check frequency first.
17093 (sort_bucket): Add compare function as a parameter.
17094 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
17095 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
17096 (push_allocno_to_stack): Rewrite for checking new allocno
17097 colorability.
7a81008b 17098 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
1756cb66
VM
17099 (push_only_colorable): Pass new parameter to sort_bucket.
17100 (push_allocno_to_spill): Remove.
17101 (allocno_spill_priority_compare): Make it inline and rewrite.
17102 (splay_tree_allocate, splay_tree_free): Remove.
17103 (allocno_spill_sort_compare): New function.
17104 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
17105 build and use splay tree. Choose first allocno in uncolorable
17106 allocno bucket to spill. Remove setting spill cost.
17107 (all_conflicting_hard_regs): Remove.
17108 (setup_allocno_available_regs_num): Check only profitable hard
17109 regs. Print info about hard regs nodes.
17110 (setup_allocno_left_conflicts_size): Remove.
17111 (put_allocno_into_bucket): Don't call
7a81008b 17112 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
1756cb66
VM
17113 (improve_allocation): New.
17114 (color_allocnos): Call setup_profitable_hard_regs,
17115 form_object_hard_regs_nodes_forest, improve_allocation,
17116 finish_object_hard_regs_nodes_forest. Setup spill cost.
17117 (print_loop_title): Use pressure classes.
17118 (color_allocnso): Ditto.
17119 (do_coloring): Remove allocation and freeing splay_tree_node_pool
17120 and allocnos_for_spilling.
17121 (ira_sort_regnos_for_alter_reg): Don't setup members
17122 {first,next}_coalesced_allocno.
17123 (color): Remove allocating and freeing removed_splay_allocno_vec.
17124 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
17125 prohibited_class_mode_regs.
17126
17127 * ira-lives.c: Remove mentioning cover classes from the file. Fix
17128 formatting.
17129 (update_allocno_pressure_excess_length): Use pressure classes.
17130 (inc_register_pressure, dec_register_pressure): Check for pressure
17131 class.
17132 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
17133 pressure class. Use ira_reg_class_nregs instead of
17134 ira_reg_class_max_nregs.
17135 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
17136 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
17137 (single_reg_class): Use ira_reg_class_nregs instead of
17138 ira_reg_class_max_nregs.
17139 (process_bb_node_lives): Use pressure classes.
17140
17141 * ira-emit.c: Remove mentioning cover classes from the file. Use
17142 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
17143 (change_loop): Use pressure classes.
17144 (modify_move_list): Call ira_set_allocno_class instead of
17145 ira_set_allocno_cover_class.
17146
17147 * ira-build.c: Remove mentioning cover classes from the file. Use
17148 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
17149 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
17150 ALLOCNO_UPDATED_CLASS_COST instead of
17151 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
17152 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
17153 (ira_create_allocno): Remove initialization of
17154 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
17155 ALLOCNO_COLORABLE_P.
17156 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
17157 Update conflict regs for the objects.
17158 (create_cap_allocno): Remove assert. Don't propagate
17159 ALLOCNO_AVAILABLE_REGS_NUM.
17160 (ira_free_allocno_costs): New function.
17161 (finish_allocno): Change a part of code into call of
17162 ira_free_allocno_costs.
17163 (low_pressure_loop_node_p): Use pressure classes.
17164 (object_range_compare_func): Don't compare classes.
17165 (setup_min_max_conflict_allocno_ids): Ditto.
17166
17167 * loop-invariant.c: Remove mentioning cover classes from the file.
17168 Use ira_pressure_classes and ira_pressure_classes_num instead of
17169 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7a81008b
UB
17170 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
17171 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
17172 Use reg_allocno_class instead of reg_cover_class.
1756cb66
VM
17173 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
17174 STACK_REG_COVER_CLASS.
17175 (get_regno_cover_class): Rename to get_regno_pressure_class.
17176 (move_loop_invariants): Initialize and finalize regstat.
17177
17178 * ira.c: Remove mentioning cover classes from the file. Add
17179 comments about coloring without cover classes. Use ALLOCNO_CLASS
17180 instead of ALLOCNO_COVER_CLASS. Fix formatting.
17181 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
17182 setup_class_subset_and_memory_move_costs.
17183 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
17184 (setup_cover_and_important_classes): Rename to
17185 setup_allocno_and_important_classes.
17186 (setup_class_translate_array): New.
17187 (setup_class_translate): Call it for allocno and pressure classes.
17188 (cover_class_order): Rename to allocno_class_order.
17189 (comp_reg_classes_func): Use ira_allocno_class_translate instead
17190 of ira_class_translate.
17191 (reorder_important_classes): Set up ira_important_class_nums.
17192 (setup_reg_class_relations): Set up ira_reg_class_superunion.
17193 (print_class_cover): Rename to print_classes. Add parameter.
17194 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
17195 Print pressure classes too.
17196 (find_reg_class_closure): Rename to find_reg_classes. Don't call
17197 setup_reg_subclasses.
7a81008b 17198 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
17199 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
17200 (setup_prohibited_class_mode_regs): Use
7a81008b 17201 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
1756cb66
VM
17202 (clarify_prohibited_class_mode_regs): New function.
17203 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
17204 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
17205 (ira_init_once): Initialize them.
17206 (free_register_move_costs): Process them.
17207 (ira_init): Move calls of find_reg_classes and
17208 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
17209 Call clarify_prohibited_class_mode_regs.
17210 (ira_no_alloc_reg): Remove.
17211 (too_high_register_pressure_p): Use pressure classes.
17212
17213 * sched-deps.c: Remove mentioning cover classes from the file.
17214 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
17215 ira_pressure_classes and ira_pressure_classes_num instead of
17216 ira_reg_class_cover_size and ira_reg_class_cover.
17217 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
17218 sched_regno_pressure_class instead of sched_regno_cover_class.
17219 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
17220 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
17221
17222 * ira.h: Add 2010 to Copyright.
17223 (ira_no_alloc_reg): Remove external.
17224 (struct target_ira): Rename x_ira_hard_regno_cover_class,
17225 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
17226 x_ira_class_translate to x_ira_hard_regno_allocno_class,
17227 x_ira_allocno_classes_num, x_ira_allocno_classes, and
17228 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
17229 x_ira_pressure_classes, x_ira_pressure_class_translate, and
17230 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
17231 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
17232 x_ira_no_alloc_regs.
7a81008b 17233 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
17234 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
17235 ira_allocno_classes_num and ira_allocno_classes.
17236 (ira_class_translate): Rename to ira_allocno_class_translate.
17237 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
17238 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
17239 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
17240 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
17241 (ira_no_alloc_regs): New.
17242
17243 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
17244 classes from the file. Use ALLOCNO_CLASS instead of
17245 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
17246 ALLOCNO_COVER_CLASS_COST.
17247 (regno_cover_class): Rename to regno_aclass.
17248 (record_reg_classes): Use ira_reg_class_subunion instead of
17249 ira_reg_class_union.
17250 (record_address_regs): Check overflow.
17251 (scan_one_insn): Ditto.
7a81008b 17252 (print_allocno_costs): Print total mem cost fore regional allocation.
1756cb66
VM
17253 (print_pseudo_costs): Use REG_N_REFS.
17254 (find_costs_and_classes): Use classes intersected with them on the
17255 1st pass. Check overflow. Use ira_reg_class_subunion instead of
17256 ira_reg_class_union. Use ira_allocno_class_translate and
17257 regno_aclass instead of ira_class_translate and regno_cover_class.
17258 Modify code for finding regno_aclass. Setup preferred classes for
17259 the next pass.
17260 (setup_allocno_cover_class_and_costs): Rename to
17261 setup_allocno_class_and_costs. Use regno_aclass instead of
17262 regno_cover_class. Use ira_set_allocno_class instead of
17263 ira_set_allocno_cover_class.
17264 (init_costs, finish_costs): Use regno_aclass instead of
17265 regno_cover_class.
17266 (ira_costs): Use setup_allocno_class_and_costs instead of
17267 setup_allocno_cover_class_and_costs.
17268 (ira_tune_allocno_costs_and_cover_classes): Rename to
17269 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
17270 by processing objects. Use ira_reg_class_max_nregs instead of
17271 ira_reg_class_nregs.
17272
17273 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
17274
17275 * sched-int.h: Remove mentioning cover classes from the file.
17276 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
17277
17278 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
17279 classes from the file.
17280 (struct reg_pref): Rename coverclass into allocnoclass.
17281 (reg_cover_class): Rename to reg_allocno_class.
17282
7a81008b 17283 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
1756cb66
VM
17284
17285 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
17286
17287 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
17288
17289 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
17290
17291 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
17292
17293 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
17294
17295 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
17296
17297 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
17298
17299 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
17300
17301 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
17302
17303 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
17304 (i386_ira_cover_classes): Ditto.
17305
17306 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
17307
17308 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
17309
17310 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
17311
17312 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
17313
17314 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
17315
17316 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
17317
17318 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
17319 (mips_ira_cover_classes): Ditto.
17320
17321 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
17322
17323 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
17324
17325 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
17326
17327 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
17328
17329 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
17330
17331 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
17332 (IRA_COVER_CLASSES_VSX): Ditto.
17333
17334 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
17335 (rs6000_ira_cover_classes): Ditto.
17336
17337 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
17338
17339 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
17340
17341 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
17342
17343 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
17344
17345 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
17346
17347 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
17348
17349 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
17350
17351 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
17352
17353 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
17354
17355 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
17356
2b80199f
JJ
173572011-03-29 Jakub Jelinek <jakub@redhat.com>
17358
71dae1fe
JJ
17359 PR debug/48253
17360 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
17361 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
17362 dw_fde_unlikely_section_end_label, cold_in_std_section,
17363 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
17364 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
17365 fields.
17366 (output_fde): Use dw_fde_second_{begin,end} if second is
17367 true, otherwise dw_fde_{begin,end}.
17368 (output_call_frame_info): Test dw_fde_second_begin != NULL
17369 instead of dw_fde_switched_sections.
17370 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
17371 fields, initialize new fields. Initialize in_std_section
17372 unconditionally from the first partition.
17373 (dwarf2out_end_epilogue): Don't override dw_fde_end when
17374 dw_fde_second_begin is non-NULL.
17375 (dwarf2out_switch_text_section): Stop initializing removed
17376 dw_fde_struct fields, initialize new fields, initialize
17377 also dw_fde_end here. Set dw_fde_switch_cfi even when
17378 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
17379 (struct var_loc_list_def): Add last_before_switch field.
17380 (arange_table, arange_table_allocated, arange_table_in_use,
17381 ARANGE_TABLE_INCREMENT, add_arange): Removed.
17382 (size_of_aranges): Count !in_std_section and !second_in_std_section
17383 hunks in fdes, instead of looking at arange_table_in_use.
17384 (output_aranges): Add aranges_length argument, don't call
17385 size_of_aranges here. Instead of using aranges_table*
17386 emit ranges for fdes when !in_std_section resp.
17387 !second_in_std_section.
17388 (dw_loc_list): Break ranges crossing section switch.
17389 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7a81008b 17390 use dw_fde_second_end instead of dw_fde_end as end of last range.
71dae1fe
JJ
17391 (gen_subprogram_die): Don't call add_arange. Use
17392 dw_fde_{begin,end} for first partition and if switched
17393 section dw_fde_second_{begin,end} for the second.
17394 (var_location_switch_text_section_1,
17395 var_location_switch_text_section): New functions.
17396 (dwarf2out_begin_function): Initialize cold_text_section even
17397 when function_section () isn't text_section.
17398 (prune_unused_types): Don't walk arange_table.
17399 (dwarf2out_finish): Don't needlessly test
17400 flag_reorder_blocks_and_partition when testing cold_text_section_used.
17401 If info_section_emitted, call size_of_aranges and if it indicates
17402 non-empty .debug_aranges, call output_aranges with the computed
17403 size. Stop using removed dw_fde_struct fields, use
17404 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
17405 for second.
17406
2b80199f
JJ
17407 PR debug/48203
17408 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
17409 create ENTRY_VALUE if incoming or address of incoming's MEM
17410 is a hard REG.
17411 * dwarf2out.c (mem_loc_descriptor): Don't emit
17412 DW_OP_GNU_entry_value of DW_OP_fbreg.
17413 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
17414 on ENTRY_VALUE is able to find the canonical parameter VALUE.
17415 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
17416 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
17417 ENTRY_VALUE_EXPs.
17418 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
17419 is a REG_P or MEM_P with REG_P address, compute hash directly
17420 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
17421 (preserve_only_constants): Don't clear VALUES forwaring
17422 ENTRY_VALUE to some other VALUE.
17423
8a445129
RS
174242011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
17425
17426 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
17427 instead of GEN_INT.
17428
c82fee88
EB
174292011-03-28 Eric Botcazou <ebotcazou@adacore.com>
17430
17431 * cfgexpand.c (expand_gimple_cond): Always set the source location and
17432 block before expanding the statement.
17433 (expand_gimple_stmt_1): Likewise. Set them here...
17434 (expand_gimple_stmt): ...and not here. Tidy.
17435 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
17436 unknown.
17437
e45425ec
SB
174382011-03-28 Steven Bosscher <steven@gcc.gnu.org>
17439
17440 * Makefile.in: New rule for cprop.o.
17441 * gcse.c: Move constant/copy propagation to cprop.c.
17442 (compute_local_properties): Only handle expression tables.
17443 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
17444 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
17445 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
17446 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7a81008b 17447 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
e45425ec
SB
17448 compute_cprop_data, find_used_regs, try_replace_reg,
17449 find_avail_set, cprop_jump, constprop_register, cprop_insn,
17450 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
17451 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
17452 find_bypass_set, reg_killed_on_edge, bypass_block,
17453 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
17454 execute_rtl_cprop, pass_rtl_cprop): Move to...
17455 * cprop.c: ...here. New file, constant/copy propagation for RTL
17456 moved from gcse.c to here with minor cleanups in duplicated code.
17457
c09d5426
L
174582011-03-28 H.J. Lu <hongjiu.lu@intel.com>
17459
17460 * config/i386/i386.c (flag_opts): Fix a typo in
17461 -mavx256-split-unaligned-store.
17462
9eaa7740
AS
174632011-03-28 Anatoly Sokolov <aesok@post.ru>
17464
17465 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
17466 LIBCALL_VALUE): Remove macros.
17467 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
17468 TARGET_FUNCTION_VALUE_REGNO_P): Define.
17469 (h8300_function_value, h8300_libcall_value,
17470 h8300_function_value_regno_p): New functions.
17471
dcec2be2
AS
174722011-03-28 Anatoly Sokolov <aesok@post.ru>
17473
17474 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
17475
520af9ec
JL
174762011-03-28 Jeff Law <law@redhat.com>
17477
17478 * tree-ssa-threadupdate.c (redirect_edges): Call
17479 create_edge_and_update_destination_phis as needed.
17480 (create_edge_and_update_destination_phis): Accept new BB argument.
17481 All callers updated.
17482 (thread_block): Do not update the profile when threading around
17483 intermediate blocks.
17484 (thread_single_edge): Likewise.
17485 (determine_bb_domination_status): If BB is not a successor of the
17486 loop header, return NONDOMINATING.
17487 (register_jump_thread): Note when we register a jump thread around
17488 an intermediate block.
17489 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
17490 (thread_across_edge): Use it.
17491
7450b54f
TG
174922011-03-28 Tristan Gingold <gingold@adacore.com>
17493
17494 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
17495 when for_return is 2.
17496
649beb33
JL
174972011-03-28 Jeff Law <law@redhat.com>
17498
17499 * var-tracking.c (canonicalize_values_mark): Delete unused
17500 lhs assignment.
17501 (canonicalize_values_star, set_variable_part): Likewise.
17502 (clobber_variable_part, delete_variable_part): Likewise.
17503
d5b8da97
SB
175042011-03-28 Steven Bosscher <steven@gcc.gnu.org>
17505
17506 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
17507
322dd859
MJ
175082011-03-28 Martin Jambor <mjambor@suse.cz>
17509
17510 * tree-inline.c (expand_call_inline): Do not check that destination
17511 node is analyzed.
17512 (optimize_inline_calls): Assert that destination node is analyzed.
17513 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
17514 not call tree_lowering_passes.
17515 * cgraph.h (cgraph_analyze_function): Declare.
17516 * cgraphunit.c (cgraph_analyze_function): Make public.
17517
aa53e58b
JM
175182011-03-28 Joseph Myers <joseph@codesourcery.com>
17519
17520 * config/sparc/sparc-opts.h: New.
17521 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
17522 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
17523 (sparc_option_override): Store processor_type enumeration rather
17524 than string in cpu_default. Remove name and enumeration from
17525 cpu_table. Directly default -mcpu then default -mtune from -mcpu
17526 without using sparc_select. Use target_flags_explicit instead of
17527 fpu_option_set.
17528 * config/sparc/sparc.h (enum processor_type): Move to
17529 sparc-opts.h.
17530 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
17531 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
17532 HeaderInclude entry.
17533 (mcpu=, mtune=): Use Var and Enum.
17534 (sparc_processor_type): New Enum and EnumValue entries.
17535
dd350eba
RO
175362011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17537 Iain Sandoe <iains@gcc.gnu.org>
17538
17539 PR target/48245
17540 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
17541
1b29f05e
EB
175422011-03-28 Eric Botcazou <ebotcazou@adacore.com>
17543
17544 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
17545 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
17546 Insert new statements at it in lieu of STMT.
17547 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
17548 * tree-vect-stmts.c (vectorizable_store): Likewise.
17549 (vectorizable_load): Likewise.
17550
506e6808
UB
175512011-03-28 Uros Bizjak <ubizjak@gmail.com>
17552
17553 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
17554 (divtf3): Ditto.
17555 (multf3): Ditto.
17556 (subtf3): Ditto.
17557
2e939ee9
L
175582011-03-27 H.J. Lu <hongjiu.lu@intel.com>
17559
17560 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
17561 unaligned 256bit load/store.
17562 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
17563 (*avx_movdqu<avxmodesuffix>): Likewise.
17564
5e85ab88
JDA
175652011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17566
17567 PR target/48288
17568 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
17569 * config/pa/pa.md (iordi3): Use new predicate in expander.
17570 (iorsi3): Likewise.
17571
47be3d6d
AS
175722011-03-27 Anatoly Sokolov <aesok@post.ru>
17573
506e6808 17574 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
47be3d6d 17575 FUNCTION_VALUE_REGNO_P): Remove macros.
506e6808
UB
17576 * config/mips/mips-protos.h (mips_function_value): Remove.
17577 * config/mips/mips.c (mips_function_value): Rename to...
47be3d6d
AS
17578 (mips_function_value_1): ... this. Make static. Handle receiving
17579 the function type in 'fn_decl_or_type' argument.
17580 (mips_function_value, mips_libcall_value,
17581 mips_function_value_regno_p): New function.
17582 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
17583 TARGET_FUNCTION_VALUE_REGNO_P): Define.
17584
d253656a
L
175852011-03-27 H.J. Lu <hongjiu.lu@intel.com>
17586
17587 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
17588 and -mavx256-split-unaligned-store.
17589 (ix86_option_override_internal): Split 32-byte AVX unaligned
17590 load/store by default.
17591 (ix86_avx256_split_vector_move_misalign): New.
17592 (ix86_expand_vector_move_misalign): Use it.
17593
17594 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
17595 -mavx256-split-unaligned-store.
17596
17597 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
17598 256bit load/store. Generate unaligned store on misaligned memory
17599 operand.
17600 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
17601 256bit load/store.
17602 (*avx_movdqu<avxmodesuffix>): Likewise.
17603
17604 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
17605 -mavx256-split-unaligned-store.
17606
1ea9206a
RS
176072011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
17608
17609 PR target/38598
17610 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
17611 Update commentary.
17612
b99ce2a8
RS
176132011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
17614
17615 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
17616 opno arguments with an expand_operand. Use create_input_operand.
17617 (mips_prepare_builtin_target): Delete.
17618 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
17619 functions.
17620 (mips_expand_builtin_direct): Use create_output_operand and
17621 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
17622 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
17623 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
17624
69d52339
IR
176252011-03-27 Ira Rosen <ira.rosen@linaro.org>
17626
17627 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
17628 function.
17629 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
17630
ba5e9aca
EB
176312011-03-26 Eric Botcazou <ebotcazou@adacore.com>
17632
17633 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
17634 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
17635 basic blocks and call commit_edge_insertions directly.
17636 (fixup_abnormal_edges): Move from here to...
17637 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
17638 on the edges and return whether some have actually been inserted.
17639 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
17640 compensation code.
17641
5d369d58
AB
176422011-03-26 Andrey Belevantsev <abel@ispras.ru>
17643
17644 PR rtl-optimization/48144
17645 * sel-sched-ir.c (merge_history_vect): Factor out from ...
17646 (merge_expr_data): ... here.
17647 (av_set_intersect): Rename to av_set_code_motion_filter.
17648 Update all callers. Call merge_history_vect when an expression
17649 is found in both sets.
17650 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
17651
f082c000
AM
176522011-03-26 Alan Modra <amodra@gmail.com>
17653
17654 * config/rs6000/predicates.md (word_offset_memref_op): Handle
17655 cmodel medium addresses.
17656 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
17657 64-bit gpr loads and stores.
17658 (rs6000_secondary_reload_ppc64): New function.
17659 * config/rs6000/rs6000-protos.h: Declare it.
17660 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
17661
8ac5e12e
AM
176622011-03-26 Alan Modra <amodra@gmail.com>
17663
17664 PR target/47487
17665 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
17666 GNU Go in traceback table.
17667
c2654ded
RH
176682011-03-25 Richard Henderson <rth@redhat.com>
17669
17670 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
17671 if there are exactly 6 operands.
17672 (set_storage_via_setmem): Similarly.
17673
ba78087b
KT
176742011-03-25 Kai Tietz <ktietz@redhat.com>
17675
17676 * collect2.c (write_c_file_stat): Handle backslash
17677 as right-hand directory separator.
17678 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
17679 checking just for slash.
17680 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
17681 instead of checking for trailing slash.
17682 * gcc.c (record_temp_file): Use filename_cmp instead
17683 of strcmp.
17684 (do_spec_1): Likewise.
17685 (replace_outfile_spec_function): Likewise.
17686 (is_directory): Use filename_ncmp instead of strncmp.
17687 (print_multilib_info): Likewise.
17688 * gcov.c (find_source): Use filename_cmp instead
17689 instead of strcmp.
17690 (make_gcov_file_name): Fix order of slash/backslash
17691 checks.
17692 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
17693 (add_standard_paths): Likewise.
17694 * mips-tfile.c (saber_stop): Handle backslash.
17695 * prefix.c (update_path): Use filename_ncmp instead of
17696 strncmp.
17697 * profile.c (output_location): Use filename_cmp instead
17698 of strcmp.
17699 * read-md.c (handle_toplevel_file): Handle backslash.
17700 * tlink.c (frob_extension): Likewise.
17701 * tree-cfg.c (same_line_p): Use filename_cmp instead of
17702 strcmp.
17703 * tree-dump.c (dequeue_and_dump): Handle backslash.
17704 * tree.c (get_file_function_name): Likewise.
17705 * gengtype.c (read_input_list): Likewise.
17706 (get_file_realbasename): Likewise.
17707 (get_output_file_with_visibility): Use filename_cmp
17708 instead of strcmp.
17709
75f6ec9a
RS
177102011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
17711
17712 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
17713 case to VFPv1.
17714
6c4e2997
NF
177152011-03-25 Nathan Froyd <froydnj@codesourcery.com>
17716
17717 * fold-const.c (expr_location_or): New function.
17718 (fold_truth_not_expr): Call it.
17719
0edf1bb2
JL
177202011-03-25 Jeff Law <law@redhat.com>
17721
17722 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
17723 va_end.
17724 * c-family/c-common.c (def_fn_type): Likewise.
17725 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
17726 * emit-rtl.c (gen_rtvec): Likewise.
17727 * lto/lto-lang.c (def_fn_type): Likewise.
17728
fdc2de95
RG
177292011-03-25 Richard Guenther <rguenther@suse.de>
17730
17731 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
17732 also generate copies.
17733 (fini_copy_prop): Handle constant values properly.
17734
21385db0
JJ
177352011-03-25 Jakub Jelinek <jakub@redhat.com>
17736
17737 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
17738 mode size instead of bitsize with DWARF2_ADDR_SIZE.
17739 (hash_loc_operands, compare_loc_operands): Handle
17740 DW_OP_GNU_entry_value.
17741
6510e8bb
KT
177422011-03-25 Kai Tietz <ktietz@redhat.com>
17743
17744 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
17745 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
17746 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
17747 comment and use macro TARGET_64BIT_MS_ABI instead.
17748 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
17749 and change default behavior for 32-bit MS_ABI.
17750 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
17751 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
17752 32-bit, too.
17753 (ix86_cfun_abi): Likewise.
17754 (ix86_maybe_switch_abi): Adjust comment.
17755 (init_cumulative_args): Check for bit-ness in MS_ABI case.
17756 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
17757 instead of checking for SYSV_ABI.
17758 (ix86_nsaved_sseregs): Likewise.
17759 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
17760 to 16 bytes.
17761 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
17762 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
17763 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
17764 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
17765 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
17766
34019e28
RG
177672011-03-25 Richard Guenther <rguenther@suse.de>
17768
17769 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
17770 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
17771 (verify_gimple): Remove.
17772 * tree-cfg.c (verify_gimple_call): Merge verification
17773 from verify_stmts.
17774 (verify_gimple_phi): Merge verification from verify_stmts.
17775 (verify_gimple_label): New function.
17776 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
17777 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
17778 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
17779 (verify_stmts): Rename to verify_gimple_in_cfg.
17780 (verify_gimple_in_cfg): New function.
17781 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
17782 * tree-ssa.c (verify_ssa): Likewise.
17783 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
17784
605896f5
RG
177852011-03-25 Richard Guenther <rguenther@suse.de>
17786
17787 * passes.c (init_optimization_passes): Add FRE pass after
17788 early SRA.
17789
7baa7c13
BS
177902011-03-25 Bernd Schmidt <bernds@codesourcery.com>
17791 Andrew Stubbs <ams@codesourcery.com>
17792
17793 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
17794 for Cortex-A8.
17795 (arm_movdi_vfp_cortexa8): New pattern.
17796 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
17797 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
17798 instructions when tuning for Cortex-A8. Set attribute "arch".
17799 * config/arm/arm.md: Move include arm-tune.md up a bit.
17800 (define_attr "arch"): Add "onlya8" and "nota8" values.
17801 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
17802
45dbce1b
NF
178032011-03-25 Nathan Froyd <froydnj@codesourcery.com>
17804
4ff08abf 17805 PR bootstrap/48282
45dbce1b
NF
17806 Revert:
17807 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
17808
17809 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
17810 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
17811 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
17812 * passes.c (init_optimization_passes): Move
17813 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
17814
ac9a30ae
KT
178152011-03-25 Kai Tietz <ktietz@redhat.com>
17816
17817 * c-typeck.c (comptypes_internal): Replace target
17818 hook call of comp_type_attributes by version in tree.c file.
17819 * gimple.c (gimple_types_compatible_p_1): Likewise.
17820 * tree-ssa.c (useless_type_conversion_p): Likewise.
17821 * tree.c (build_type_attribute_qual_variant): Likewise.
17822 (attribute_value_equal): New static helper function.
17823 (comp_type_attributes): New function.
17824 (merge_attributes): Use attribute_value_equal for comparison.
17825 (attribute_list_contained): Likewise.
17826 * tree.h (comp_type_attributes): New prototype.
17827
afdac116
RG
178282011-03-25 Richard Guenther <rguenther@suse.de>
17829
17830 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
17831 of complex types at -O0.
17832 (verify_gimple_assign_binary): Likewise.
17833 (verify_gimple_assign_ternary): Likewise.
17834
ec6165f8
MW
178352011-03-24 Mark Wielaard <mjw@redhat.com>
17836
17837 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
17838 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
17839
2a5ac39a
MW
178402011-03-24 Mark Wielaard <mjw@redhat.com>
17841
17842 PR debug/48041
17843 * dwarf2out.c (output_abbrev_section): Only write table when
17844 abbrev_die_table_in_use > 1.
17845
e533b2a4
RH
178462011-02-24 Richard Henderson <rth@redhat.com>
17847
17848 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
17849 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
17850 (alpha_expand_unaligned_load_words): Use extql.
17851 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
17852 (emit_insxl): Handle all modes for consistency.
17853
0b2a7367
RH
178542011-02-24 Richard Henderson <rth@redhat.com>
17855
17856 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
17857 (alpha_expand_unaligned_load): Likewise.
17858 (alpha_expand_unaligned_store): Likewise.
17859 (alpha_expand_unaligned_load_words): Likewise.
17860 (alpha_expand_unaligned_store_words): Likewise.
17861 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
17862 (alpha_split_lock_test_and_set_12): Likewise.
17863 (print_operand, alpha_fold_builtin_extxx): Likewise.
17864 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
17865 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
17866 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
17867 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
17868 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
17869 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
17870 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
17871 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
17872 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
17873 (extwl, extll, extql): Similarly.
17874 (inswh, inslh, insqh): Similarly.
17875 (mskbl, mskwl, mskll, mskql): Similarly.
17876 (mskwh, msklh, mskqh): Similarly.
17877
315b2bef
RH
178782011-02-24 Richard Henderson <rth@redhat.com>
17879
17880 * config/alpha/alpha.md (attribute isa): Add er, ner.
17881 (attribute enabled): Handle them.
17882 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
17883
67102517
RH
178842011-02-24 Richard Henderson <rth@redhat.com>
17885
17886 * config/alpha/alpha.md (attribute isa): Add vms.
17887 (attribute enabled): Handle it.
17888 (*movsf): Merge *movsf_{nofix,fix,nofp}.
17889 (*movdf): Merge *movdf_{nofix,fix,nofp}.
17890 (*movtf): Rename from *movtf_internal for consistency.
17891 (*movsi): Merge with *movsi_nt_vms.
17892 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
17893 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
17894 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
17895 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
17896
6aba5cb4
RH
178972011-02-24 Richard Henderson <rth@redhat.com>
17898
17899 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
17900 (extendqisi2, extendhisi2): Likewise.
17901 (extendqidi2): Simplify BWX/non-BWX expansions.
17902 (extendhidi2): Similarly.
17903
bdfb351b
RH
179042011-02-24 Richard Henderson <rth@redhat.com>
17905
17906 * config/alpha/alpha.md (attribute isa): New.
17907 (attribute enabled): New.
17908 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
17909 (zero_extendqisi2, zero_extendqidi2): Similarly.
17910 (zero_extendhisi2, zero_extendhidi2): Similarly.
17911 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
17912
6abe71eb
RH
179132011-02-24 Richard Henderson <rth@redhat.com>
17914
17915 * config/alpha/predicates.md (input_operand): Revert last change;
17916 update comment to mention 32-bit VMS rather than Windows.
17917
7114321e
NF
179182011-03-24 Nathan Froyd <froydnj@codesourcery.com>
17919
17920 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
17921 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
17922 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
17923 * passes.c (init_optimization_passes): Move
17924 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
17925
c8679567
EB
179262011-03-24 Eric Botcazou <ebotcazou@adacore.com>
17927
17928 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
17929
27173058
UB
179302011-03-24 Uros Bizjak <ubizjak@gmail.com>
17931
17932 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
17933 correctly.
17934
6f0c9f06
JJ
179352011-03-24 Jakub Jelinek <jakub@redhat.com>
17936
17937 PR debug/48204
17938 * simplify-rtx.c (simplify_const_unary_operation): Call
17939 real_convert when changing mode class with FLOAT_EXTEND.
17940
662666e5
NC
179412011-03-24 Nick Clifton <nickc@redhat.com>
17942
17943 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
17944 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
17945 * config/rx/rx.c (rx_option_override): Set align_jumps,
17946 align_loops and align_labels if not set by the user.
17947 (rx_align_for_label): New function.
17948 (rx_max_skip_for_label): New function.
17949 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
17950 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
17951 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
17952 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
17953 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
17954
2b99b2b8
RS
179552011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
17956
17957 PR rtl-optimization/48263
17958 * optabs.c (expand_binop_directly): Reinstate convert_modes code
17959 and original commutative_p handling. Use maybe_gen_insn.
17960
ccecd6ea
AK
179612011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17962
17963 * reload.c (find_reloads_subreg_address): Add address_reloaded
17964 parameter and return true there if the full address has been
17965 reloaded.
17966 (find_reloads_toplev): Pass address_reloaded flag.
17967 (find_reloads_address_1): Don't use address_reloaded parameter.
17968
67295642
JL
179692011-03-24 Jeff Law <law@redhat.com>
17970
17971 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
17972 unused variable "ann".
17973 (remove_unused_locals): Likewise.
17974
17975 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
17976 statement.
17977
17978 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
17979 after it is freed.
17980
212aa74f
AK
179812011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17982
17983 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
17984 for invalid symbolic addresses.
17985 (s390_secondary_reload): Don't use s390_check_symref_alignment for
17986 larl operands.
17987
fe784e0d
EB
179882011-03-24 Eric Botcazou <ebotcazou@adacore.com>
17989
17990 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
17991 the argument in calls to fold_truth_not_expr.
17992
63ee8641
NF
179932011-03-24 Nathan Froyd <froydnj@codesourcery.com>
17994
17995 * tree.c (record_node_allocation_statistics): New function.
17996 (make_node_stat, copy_node_stat, build_string): Call it.
17997 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
17998 (build1_stat, build_omp_clause): Likewise.
17999
61be2a1c
RS
180002011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
18001
18002 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
18003 last commit.
18004
a881aaa7
RG
180052011-03-24 Richard Guenther <rguenther@suse.de>
18006
18007 PR tree-optimization/48271
18008 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
18009 blocks that still exist.
18010
dbaa912c
RG
180112011-03-24 Richard Guenther <rguenther@suse.de>
18012
18013 PR tree-optimization/48270
18014 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
18015 not free datarefs before ddrs.
18016
1d60cc55
EB
180172011-03-24 Eric Botcazou <ebotcazou@adacore.com>
18018
18019 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
18020 from the address built for a reference with variable offset.
18021
c78dd519
UB
180222011-03-24 Uros Bizjak <ubizjak@gmail.com>
18023
18024 PR target/48237
18025 * config/i386/i386.md (*movdf_internal_rex64): Do not split
18026 alternatives that can be handled with movq or movabsq insn.
18027 (*movdf_internal): Disable for !TARGET_64BIT.
18028 (*movdf_internal_nointeger): Ditto.
18029 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
18030
b25b9e8f
NF
180312011-03-24 Nathan Froyd <froydnj@codesourcery.com>
18032
18033 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
18034 (FUNCTION_ARG_ADVANCE): Likewise.
18035 * tm.texi.in: Change references to them to hook references.
18036 * tm.texi: Regenerate.
c78dd519 18037 * targhooks.c (default_function_arg): Eliminate check for target macro.
b25b9e8f
NF
18038 (default_function_incoming_arg): Likewise.
18039 (default_function_arg_advance): Likewise.
c78dd519 18040 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
b25b9e8f
NF
18041 (function_arg_advance): Likewise.
18042 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
18043
190b2187
RG
180442011-03-24 Richard Guenther <rguenther@suse.de>
18045
18046 PR middle-end/48269
18047 * tree-object-size.c (addr_object_size): Do not double-account
18048 for MEM_REF offsets.
18049
a183b5c7
DN
180502011-03-24 Diego Novillo <dnovillo@google.com>
18051
18052 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
c78dd519 18053 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
a183b5c7
DN
18054 (lto_input_data_block): Move from lto-opts.c. Make extern.
18055 Update all users.
18056 (lto_input_string): Rename from input_string. Make extern.
18057 Update all users.
18058 * lto-streamer-out.c (lto_output_string_with_length): Rename from
18059 output_string_with_length.
18060 Output 0 to indicate a non-NULL string. Update all callers to
18061 not emit 0.
18062 (lto_output_string): Rename from output_string. Make extern.
18063 Update all users.
18064 (lto_output_decl_state_streams): Make extern.
18065 (lto_output_decl_state_refs): Make extern.
18066 * lto-streamer.h (lto_input_string): Declare.
18067 (lto_input_data_block): Declare.
18068 (lto_output_string): Declare.
18069 (lto_output_string_with_length): Declare.
18070 (lto_output_decl_state_streams): Declare.
18071 (lto_output_decl_state_refs): Declare.
18072
cfef45c8
RG
180732011-03-24 Richard Guenther <rguenther@suse.de>
18074
18075 PR tree-optimization/46562
18076 * tree.c (build_invariant_address): New function.
18077 * tree.h (build_invariant_address): Declare.
18078 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
18079 a renamed function moved ...
18080 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
18081 Take valueization callback parameter.
18082 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
18083 * gimple-fold.h: New file.
18084 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
18085 (ccp_fold, fold_const_aggregate_ref,
18086 fold_ctor_reference, fold_nonarray_ctor_reference,
18087 fold_array_ctor_reference, fold_string_cst_ctor_reference,
18088 get_base_constructor): Move ...
18089 * gimple-fold.c: ... here.
18090 (gimple_fold_stmt_to_constant_1): New function
18091 split out from ccp_fold. Take a valueization callback parameter.
18092 Valueize all operands.
18093 (gimple_fold_stmt_to_constant): New wrapper function.
18094 (fold_const_aggregate_ref_1): New function split out from
18095 fold_const_aggregate_ref. Take a valueization callback parameter.
18096 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
18097 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
18098 invariant POINTER_PLUS_EXPRs to invariant form.
18099 (vn_valueize): New function.
18100 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
18101 * tree-vrp.c (vrp_valueize): New function.
18102 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
18103 to fold statements to constants.
18104 * tree-ssa-pre.c (eliminate): Properly guard propagation of
18105 function declarations.
18106 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
18107 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
18108
5e0a7e40
RS
181092011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
18110
18111 * config/h8300/predicates.md (jump_address_operand): Fix register
18112 mode check.
18113
bfe068c3
IR
181142011-03-24 Ira Rosen <ira.rosen@linaro.org>
18115
18116 * doc/invoke.texi (max-stores-to-sink): Document.
18117 * params.h (MAX_STORES_TO_SINK): Define.
18118 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
18119 if either vectorization or if-conversion is disabled.
18120 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
18121 tree-vect-data-refs.c vect_equal_offsets.
18122 (dr_equal_offsets_p): New function.
18123 (find_data_references_in_bb): Remove static.
18124 * tree-data-ref.h (find_data_references_in_bb): Declare.
18125 (dr_equal_offsets_p): Likewise.
18126 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
18127 (vect_drs_dependent_in_basic_block): Update calls to
18128 vect_equal_offsets.
18129 (vect_check_interleaving): Likewise.
18130 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
18131 (cond_if_else_store_replacement): Rename to...
18132 (cond_if_else_store_replacement_1): ... this. Change arguments and
18133 documentation.
18134 (cond_if_else_store_replacement): New function.
18135 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
18136 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
18137
4908b0bf
CLT
181382011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
18139
18140 PR target/46934
18141 * config/arm/arm.md (casesi): Use the gen_int_mode() function
18142 to subtract lower bound instead of GEN_INT().
18143
2be478a2
JW
181442011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
18145
18146 PR other/48179
18147 PR other/48221
18148 PR other/48234
18149 * doc/extend.texi (Alignment): Move section to match order in TOC.
18150 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
18151 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
18152
0c617be4
JL
181532011-03-23 Jeff Law <law@redhat.com>
18154
18155 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
18156 before removing the edge.
18157
18158 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
18159 it may have been freed by redirect_branch_edge or
18160 redirect_edge_succ_nodup.
18161
58da96fe
RG
181622011-03-23 Richard Guenther <rguenther@suse.de>
18163
c78dd519 18164 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
58da96fe
RG
18165 (check_va_list_escapes): Likewise.
18166 (check_all_va_list_escapes): Likewise.
18167
b8beb4d1
RG
181682011-03-23 Richard Guenther <rguenther@suse.de>
18169
18170 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
18171 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
18172 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
18173 (alias.o): Likewise.
18174 (ipa-type-escape.o): Remove.
18175 (ipa-struct-reorg.o): Likewise.
18176 (GTFILES): Remove ipa-struct-reorg.c.
18177 * alias.c: Do not include ipa-type-escape.h.
18178 * tree-ssa-alias.c: Likewise.
18179 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
18180 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
18181 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
18182 and ipa-type-escape passes.
18183 * tree-pass.h (pass_ipa_type_escape): Remove.
18184 (pass_ipa_struct_reorg): Likewise.
18185 * ipa-struct-reorg.h: Remove.
18186 * ipa-struct-reorg.c: Likewise.
18187 * ipa-type-escape.h: Likewise.
18188 * ipa-type-escape.c: Likewise.
18189 * doc/invoke.texi (-fipa-struct-reorg): Remove.
18190 (--param struct-reorg-cold-struct-ratio): Likewise.
18191 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
18192 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
18193 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
18194
f137aa63
AK
181952011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18196
18197 * config/s390/2084.md: Enable all insn reservations also for z9_ec
18198 cpu attribute value.
18199 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
18200 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
18201 * config/s390/s390.c (processor_flags_table): New constant array.
18202 (s390_handle_arch_option): Remove.
18203 (s390_handle_option): Remove s390_handle_arch_option invocations
18204 and OPT_mwarn_framesize_ handling.
18205 (s390_option_override): Remove s390_handle_arch_option invocation.
18206 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
18207 warnings.
18208 * config/s390/s390.md (cpu attribute): Add z9_ec value.
18209 * config/s390/s390.opt (s390_tune, s390_arch)
18210 (march=): Replace s390_arch_option enum and values with
18211 processor_type. Set variable name to s390_arch. Set
18212 initialization value.
18213 (mtune=): Replace s390_arch_option with processor_type. Set
18214 variable name to s390_tune. Set initialization value.
18215
bf90208f
JB
182162011-03-23 Julian Brown <julian@codesourcery.com>
18217
18218 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
18219 accesses which are not naturally aligned.
18220
3460fdf3
RS
182212011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
18222
18223 PR target/47553
18224 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
18225
a5c7d693
RS
182262011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
18227
18228 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
18229 parameter from "int" to "enum insn_code".
18230 (expand_operand_type): New enum.
18231 (expand_operand): New structure.
18232 (create_expand_operand): New function.
18233 (create_fixed_operand, create_output_operand): Likewise
18234 (create_input_operand, create_convert_operand_to): Likewise.
18235 (create_convert_operand_from, create_address_operand): Likewise.
18236 (create_integer_operand): Likewise.
18237 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
18238 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
18239 (expand_insn, expand_jump_insn): Likewise.
18240 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
18241 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
18242 (expand_movstr, expand_builtin___clear_cache): Likewise.
18243 (expand_builtin_lock_release): Likewise.
18244 * explow.c (allocate_dynamic_stack_space): Likewise.
18245 (probe_stack_range): Likewise. Allow check_stack to FAIL,
18246 and use the default handling in that case.
18247 * expmed.c (check_predicate_volatile_ok): Delete.
18248 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
18249 (emit_cstore): Likewise.
18250 * expr.c (emit_block_move_via_movmem): Likewise.
18251 (set_storage_via_setmem, expand_assignment): Likewise.
18252 (emit_storent_insn, try_casesi): Likewise.
18253 (emit_single_push_insn): Likewise. Allow the expansion to fail.
18254 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
18255 (expand_vec_shift_expr, expand_binop_directly): Likewise.
18256 (expand_twoval_unop, expand_twoval_binop): Likewise.
18257 (expand_unop_direct, emit_indirect_jump): Likewise.
18258 (emit_conditional_move, vector_compare_rtx): Likewise.
18259 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
18260 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
18261 (expand_sync_lock_test_and_set): Likewise.
18262 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
18263 (emit_unop_insn): Likewise.
18264 (expand_copysign_absneg): Change icode to an insn_code.
18265 (create_convert_operand_from_type): New function.
18266 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
18267 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
18268 (expand_insn, expand_jump_insn): Likewise.
18269 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
18270 than const_int_operand for operand 2.
18271
78fadbab
AK
182722011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18273
18274 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
18275 if possible.
18276
5f02387d
NF
182772011-03-22 Nathan Froyd <froydnj@codesourcery.com>
18278
18279 * emit-rtl.c (emit_pattern_before_noloc): New function.
18280 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
18281 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
18282 (emit_pattern_after_noloc): New function.
18283 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
18284 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
18285
fdf3e18a
NF
182862011-03-22 Nathan Froyd <froydnj@codesourcery.com>
18287
18288 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
18289 (__ffsDI2): Likewise.
18290
42d085c1
RH
182912011-03-22 Richard Henderson <rth@redhat.com>
18292
18293 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
18294 of !TARGET_ABI_OPEN_VMS.
18295 (alpha_trampoline_init, alpha_start_function): Likewise.
18296 (alpha_expand_epilogue, alpha_file_start): Likewise.
18297 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
18298 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
18299 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
18300 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
18301 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
18302
cabbe12a
JM
183032011-03-22 Joseph Myers <joseph@codesourcery.com>
18304
18305 * config/s390/s390-opts.h: New.
18306 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
18307 s390_arch_flags, s390_warn_framesize, s390_stack_size,
18308 s390_stack_guard): Remove.
18309 (s390_handle_arch_option): Return void. Take enum
18310 s390_arch_option value instead of string and searching array.
18311 (s390_handle_option): Don't assert that global structures are in
18312 use. Access variables via opts pointer. Use error_at. Don't use
18313 sscanf for -mstack-guard= or -mstack-size=. Update call to
18314 s390_handle_arch_option.
18315 (s390_option_override): Update call to s390_handle_arch_option.
18316 (s390_emit_prologue): Use %d format for s390_stack_size in
18317 diagnostic. Use %wd for HOST_WIDE_INT.
18318 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
18319 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
18320 * config/s390/s390.opt (config/s390/s390-opts.h): New
18321 HeaderInclude entry.
18322 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
18323 s390_arch_flags, s390_warn_framesize): New Variable entries.
18324 (s390_arch_option): New Enum and EnumValue entries.
18325 (march=): Use Enum instead of Var.
18326 (mstack-guard=, mstack-size=): Use UInteger and Var.
18327 (mtune=): Use Enum.
18328
05b12036
JM
183292011-03-22 Joseph Myers <joseph@codesourcery.com>
18330
18331 * config/score/score.c (score_handle_option): Don't assert that
18332 global structures are in use. Access target_flags via opts
18333 pointer. Use value of -march= option to determine target_flags
18334 settings.
18335 * config/score/score.opt (march=): Use Enum.
18336 (score_arch): New Enum and EnumValue entries.
18337
dd51e35a
JM
183382011-03-22 Joseph Myers <joseph@codesourcery.com>
18339
18340 * config/mep/mep.c (option_mtiny_specified): Remove.
18341 (mep_option_override): Move register handling for -mivc2 from
18342 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
18343 instead of option_mtiny_specified.
18344 (mep_handle_option): Access target_flags via opts pointer. Don't
18345 assert that global structures are in use. Defer part of -mivc2
18346 handling and move it to mep_option_override.
18347 * config/mep/mep.opt (IVC2): New Mask entry.
18348 (mivc2): Use Var and Defer instead of Mask.
18349
4a8d3d91
JM
183502011-03-22 Joseph Myers <joseph@codesourcery.com>
18351
18352 * config/v850/v850-opts.h: New.
18353 * config/v850/v850.c (small_memory): Replace with
18354 small_memory_physical_max array. Make that array static const.
18355 (v850_handle_memory_option): Take integer value of argument. Take
18356 gcc_options pointer, option text and location. Return void.
18357 Update for changes to small memory structures.
18358 (v850_handle_option): Access target_flags via opts pointer. Don't
18359 assert that global structures are in use. Update calls to
18360 v850_handle_memory_option.
c78dd519
UB
18361 (v850_encode_data_area): Update references to small memory settings.
18362 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4a8d3d91
JM
18363 (enum small_memory_type): Move to v850-opts.h.
18364 * config/v850/v850.opt (config/v850/v850-opts.h): New
18365 HeaderInclude entry.
18366 (small_memory_max): New Variable entry.
18367 (msda): Replace by pair of options msda= and msda-. Use UInteger.
18368 (mtda, mzda): Likewise.
18369
117fdbfa
JM
183702011-03-22 Joseph Myers <joseph@codesourcery.com>
18371
18372 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
18373 pointer. Don't assert that global structures are in use.
18374
d715091c
JM
183752011-03-22 Joseph Myers <joseph@codesourcery.com>
18376
18377 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
18378 via opts pointer. Don't assert that global structures are in use.
18379
1bb721dc
JM
183802011-03-22 Joseph Myers <joseph@codesourcery.com>
18381
18382 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
18383 (munix=93): Use Var.
18384 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
18385 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
18386 * config/pa/pa-opts.h: New.
18387 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
18388 (pa_handle_option): Don't assert that global structures are in
18389 use. Access target_flags via opts pointer. Don't handle
18390 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
18391 OPT_munix_98 here.
18392 (pa_option_override): Handle deferred OPT_mfixed_range_.
18393
cd8d8754
JM
183942011-03-22 Joseph Myers <joseph@codesourcery.com>
18395
18396 * config/mn10300/mn10300-opts.h: New.
18397 * config/mn10300/mn10300.c (mn10300_processor,
18398 mn10300_tune_string): Remove.
18399 (mn10300_handle_option): Don't assert that global structures are
18400 in use. Access mn10300_processor via opts pointer. Don't handle
18401 OPT_mtune_ here.
18402 * config/mn10300/mn10300.h (enum processor_type): Move to
18403 mn10300-opts.h.
18404 (mn10300_processor): Remove.
18405 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
18406 HeaderInclude entry.
18407 (mn10300_processor): New Variable entry.
18408 (mtune=): Use Var.
18409
24e6e6b1
JM
184102011-03-22 Joseph Myers <joseph@codesourcery.com>
18411
18412 * config/microblaze/microblaze.c: Don't include opts.h.
18413 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
18414 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
18415 (mno-clearbss): Use Var and Warn.
18416
8a784afb
JM
184172011-03-22 Joseph Myers <joseph@codesourcery.com>
18418
18419 * config/m32r/m32r-opts.h: New.
18420 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
18421 (m32r_handle_option): Don't assert that global structures are in
18422 use. Access target_flags and m32r_cache_flush_func via opts
18423 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
18424 OPT_mno_flush_trap here.
18425 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
18426 include of m32r-opts.h.
18427 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
18428 HeaderInclude entry.
18429 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
18430 (mmodel=): Use Enum and Var.
18431 (m32r_model): New Enum and EnumValue entries.
18432 (mno-flush-trap): Use Var.
18433 (msdata=): Use Enum and Var.
18434 (m32r_sdata): New Enum and EnumValue entries.
18435
bbfc9a8c
JM
184362011-03-22 Joseph Myers <joseph@codesourcery.com>
18437
18438 * config/m32c/m32c.c: Don't include opts.h.
18439 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
18440 m32c_handle_option): Remove.
18441 (m32c_option_override): Check global_options_set.x_target_memregs
18442 instead of target_memregs_set.
18443 * config/m32c/m32c.h (target_memregs): Remove.
18444 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
18445 variable.
18446
e24b8335
JM
184472011-03-22 Joseph Myers <joseph@codesourcery.com>
18448
18449 * config/iq2000/iq2000-opts.h: New.
18450 * config/iq2000/iq2000.c: Don't include opts.h.
18451 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 18452 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
e24b8335
JM
18453 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
18454 HeaderInclude entry.
18455 (iq2000_tune): New Variable entry.
18456 (march=): Add comment. Use Enum.
18457 (iq2000_arch): New Enum and EnumValue entries.
18458 (mcpu=): Use Enum and Var.
18459 (iq2000_tune): New Enum and EnumValue entries.
18460
e6cc0c98
JM
184612011-03-22 Joseph Myers <joseph@codesourcery.com>
18462
18463 * config/ia64/ia64-opts.h: New.
18464 * config/ia64/ia64.c (ia64_tune): Remove.
18465 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
18466 here. Use error_at.
18467 (ia64_option_override): Handle deferred OPT_mfixed_range_.
18468 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
18469 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
18470 HeaderInclude entry.
18471 (ia64_tune): New Variable entry.
18472 (mfixed-range=): Use Defer and Var.
18473 (mtune=): Use Enum and Var.
18474 (ia64_tune): New Enum and EnumValue entries.
18475
db25893c
JM
184762011-03-22 Joseph Myers <joseph@codesourcery.com>
18477
18478 * config/frv/frv-opts.h: New.
18479 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
18480 frv-opts.h.
18481 (frv_cpu_type): Remove.
18482 * config/frv/frv.c: Don't include opts.h.
18483 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 18484 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
db25893c
JM
18485 (frv_cpu_type): New Variable entry.
18486 (frv_cpu): New Enum and EnumValue entries.
18487
6c223f5d
JM
184882011-03-22 Joseph Myers <joseph@codesourcery.com>
18489
18490 * config/cris/cris.c (cris_handle_option): Access target_flags via
18491 opts pointer. Don't assert that global structures are in use.
18492 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
18493 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
18494
bbd399cf
JM
184952011-03-22 Joseph Myers <joseph@codesourcery.com>
18496
18497 * config/bfin/bfin-opts.h: New.
18498 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
18499 bfin_si_revision, bfin_workarounds): Remove.
18500 (bfin_cpus): Make static const.
18501 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
18502 not bfin_lib_id_given.
18503 (bfin_handle_option): Don't set bfin_lib_id_given. Access
18504 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
c78dd519 18505 pointer. Use error_at. Don't assert that global structures are in use.
bbd399cf
JM
18506 * config/bfin/bfin.h: Include bfin-opts.h.
18507 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
18508 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
18509 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
18510 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
18511 entries.
18512
5e1b4d5a
JM
185132011-03-22 Joseph Myers <joseph@codesourcery.com>
18514
18515 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
18516 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
18517 or -msoft-float here.
18518 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
18519 -msoft-float and -mhard-float.
c78dd519 18520 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5e1b4d5a
JM
18521 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
18522 msoft-float.
18523 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
18524 -msoft-float.
18525 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
18526 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
18527 not mhard-float.
18528 (LIBGCC_SPEC): Don't handle -msoft-float.
18529 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
18530 -mhard-float.
18531 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
18532 msoft-float.
18533 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
18534 -mfloat-abi=*, not -msoft-float and -mhard-float.
18535 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
18536 -msoft-float.
18537 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
18538 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
18539 mhard-float and msoft-float.
18540 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
18541 mfloat-abi=soft in comments, not mhard-float and msoft-float.
18542 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
18543 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
18544 mhard-float.
18545 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
18546 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
18547 msoft-float.
18548 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
18549 not mhard-float.
18550 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
18551 not msoft-float.
18552
800d1de1
RH
185532011-03-22 Richard Henderson <rth@redhat.com>
18554
18555 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
18556 TARGET_ABI_WINDOWS_NT.
18557 (alpha_output_function_end_prologue): Likewise.
18558 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
18559 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
18560 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
18561 (trap, *movsi_nt_vms): Likewise.
18562 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
18563 (*tablejump_osf_nt_internal): Remove.
18564 * config/alpha/predicates.md (input_operand): Only test Pmode.
18565
c59ddd2b
JM
185662011-03-22 Joseph Myers <joseph@codesourcery.com>
18567
18568 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
18569 via opts pointer. Use error_at. Don't assert that global
18570 structures are in use.
18571
1333f97f
JM
185722011-03-22 Joseph Myers <joseph@codesourcery.com>
18573
18574 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
18575 (ix86_handle_option): Access ix86_isa_flags and
18576 ix86_isa_flags_explicit via opts pointer. Don't assert that
18577 global structures are in use.
18578 (ix86_function_specific_save, ix86_function_specific_restore):
18579 Update ix86_isa_flags_explicit field name.
c78dd519 18580 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
1333f97f
JM
18581 (ix86_isa_flags_explicit): Rename TargetSave entry to
18582 x_ix86_isa_flags_explicit.
18583
75db85d8
RH
185842011-03-22 Richard Henderson <rth@redhat.com>
18585
18586 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
18587 (alpha_option_override, direct_return): Likewise.
18588 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
18589 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
18590 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
18591 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
18592 (alpha_expand_epilogue, alpha_end_function): Likewise.
18593 (alpha_init_libfuncs): Likewise.
18594 (struct machine_function): Remove unicosmk members.
18595 (print_operand) ['t']: Remove.
18596 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
18597 unicosmk_output_module_name, unicosmk_output_common,
18598 current_section_align, unicosmk_output_text_section_asm_op,
18599 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
18600 unicosmk_section_type_flags, unicosmk_unique_section,
18601 unicosmk_asm_named_section, unicosmk_insert_attributes,
18602 unicosmk_output_align, unicosmk_defer_case_vector,
18603 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
18604 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
18605 unicosmk_output_ssib, unicosmk_add_call_info_word,
18606 unicosmk_extern_head, unicosmk_output_default_externs,
18607 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
18608 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
18609 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
18610 * config/alpha/alpha-protos.h: Update.
18611 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
18612 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
18613 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
18614 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
18615 (*mulsi_se, mulvsi3): Likewise.
18616 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
18617 (*divmodsi_internal, call, call_value, realign): Likewise.
18618 (moddi3, umoddi3): Likewise; remove duplicate expander.
18619 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
18620 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
18621 (*movdi_nofix): Remove r/U alternative.
18622 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
18623 * config/alpha/constraints.md ("U"): Remove.
18624 * config/alpha/predicates.md (call_operand"): Don't test
18625 TARGET_ABI_UNICOSMK.
18626
96e45421
JM
186272011-03-22 Joseph Myers <joseph@codesourcery.com>
18628
18629 * target.def (handle_option): Take gcc_options and
18630 cl_decoded_option pointers and location_t.
18631 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
18632 * doc/tm.texi: Regenerate.
18633 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
18634 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
18635 * lto-opts.c (lto_reissue_options): Generate option structure for
18636 targetm.handle_option call.
18637 * opts.c (target_handle_option): Update call to
18638 targetm.handle_option. Remove assertions about values now passed
18639 down to hook.
18640 * targhooks.c (default_target_handle_option): New.
18641 * targhooks.h (default_target_handle_option): Declare.
18642 * config/alpha/alpha.c: Include opts.h.
18643 (alpha_handle_option): Update to new hook interface.
18644 * config/arm/arm.c: Include opts.h.
18645 (arm_handle_option): Update to new hook interface.
18646 * config/arm/t-arm (arm.o): Update dependencies.
18647 * config/bfin/bfin.c: Include opts.h.
18648 (bfin_handle_option): Update to new hook interface.
18649 * config/cris/cris.c: Include opts.h.
18650 (cris_handle_option): Update to new hook interface.
18651 * config/frv/frv.c: Include opts.h.
18652 (frv_handle_option): Update to new hook interface.
18653 * config/i386/i386.c: Include opts.h.
18654 (ix86_handle_option): Update to new hook interface.
18655 (ix86_valid_target_attribute_inner_p): Generate option structure
18656 for call to ix86_handle_option.
18657 * config/i386/t-i386 (i386.o): Update dependencies.
18658 * config/ia64/ia64.c: Include opts.h.
18659 (ia64_handle_option): Update to new hook interface.
18660 * config/ia64/t-ia64 (ia64.o): Update dependencies.
18661 * config/iq2000/iq2000.c: Include opts.h.
18662 (iq2000_handle_option): Update to new hook interface.
18663 * config/m32c/m32c.c: Include opts.h.
18664 (m32c_handle_option): Update to new hook interface.
18665 * config/m32r/m32r.c: Include opts.h.
18666 (m32r_handle_option): Update to new hook interface.
18667 * config/m68k/m68k.c: Include opts.h.
18668 (m68k_handle_option): Update to new hook interface.
18669 * config/mep/mep.c: Include opts.h.
18670 (mep_handle_option): Update to new hook interface.
18671 * config/microblaze/microblaze.c: Include opts.h.
18672 (microblaze_handle_option): Update to new hook interface.
18673 * config/mips/mips.c: Include opts.h.
18674 (mips_handle_option): Update to new hook interface.
18675 * config/mn10300/mn10300.c: Include opts.h.
18676 (mn10300_handle_option): Update to new hook interface.
18677 * config/pa/pa.c: Include opts.h.
18678 (pa_handle_option): Update to new hook interface.
18679 * config/pdp11/pdp11.c: Include opts.h.
18680 (pdp11_handle_option): Update to new hook interface.
18681 * config/rs6000/rs6000.c: Include opts.h.
18682 (rs6000_handle_option): Update to new hook interface.
18683 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
18684 * config/rx/rx.c: Include opts.h.
18685 (rx_handle_option): Update to new hook interface.
18686 * config/s390/s390.c: Include opts.h.
18687 (s390_handle_option): Update to new hook interface.
18688 * config/score/score.c: Include opts.h.
18689 (score_handle_option): Update to new hook interface.
18690 * config/sh/sh.c: Include opts.h.
18691 (sh_handle_option): Update to new hook interface.
18692 * config/sparc/sparc.c: Include opts.h.
18693 (sparc_handle_option): Update to new hook interface.
18694 * config/v850/v850.c: Include opts.h.
18695 (v850_handle_option): Update to new hook interface.
18696
66017846
JM
186972011-03-22 Joseph Myers <joseph@codesourcery.com>
18698
18699 * gcc.c (driver_unknown_option_callback): Only permit and save
18700 unknown -Wno- options.
18701 (driver_wrong_lang_callback): Save options directly instead of via
18702 driver_unknown_option_callback.
18703
e8b97ccd
EB
187042011-03-22 Eric Botcazou <ebotcazou@adacore.com>
18705
18706 * combine.c (simplify_set): Try harder to find the best CC mode when
18707 simplifying a nested COMPARE on the RHS.
18708
ebb9f8b0
JM
187092011-03-22 Joseph Myers <joseph@codesourcery.com>
18710
18711 * config/alpha/gnu.h: Remove.
18712 * config/arc: Remove directory.
18713 * config/arm/netbsd.h: Remove.
18714 * config/arm/t-pe: Remove.
18715 * config/crx: Remove directory.
18716 * config/i386/netbsd.h: Remove.
18717 * config/m68hc11: Remove directory.
18718 * config/m68k/uclinux-oldabi.h: Remove.
18719 * config/mcore/mcore-pe.h: Remove.
18720 * config/mcore/t-mcore-pe: Remove.
18721 * config/netbsd-aout.h: Remove.
18722 * config/rs6000/gnu.h: Remove.
18723 * config/sh/sh-symbian.h: Remove.
18724 * config/sh/symbian-base.c: Remove.
18725 * config/sh/symbian-c.c: Remove.
18726 * config/sh/symbian-cxx.c: Remove.
18727 * config/sh/symbian-post.h: Remove.
18728 * config/sh/symbian-pre.h: Remove.
18729 * config/sh/t-symbian: Remove.
18730 * config/svr3.h: Remove.
18731 * config/vax/netbsd.h: Remove.
18732 * config.build: Don't handle i[34567]86-*-pe.
18733 * config.gcc: Remove handling of deprecations for most deprecated
18734 targets.
18735 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
18736 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
18737 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
18738 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
18739 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
18740 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
18741 Remove cases.
18742 * config.host: Don't handle i[34567]86-*-pe.
18743 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
18744 (ASM_SPEC32): Don't handle -mcall-gnu.
18745 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
18746 -mcall-gnu.
18747 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
18748 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
18749 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
18750 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
18751 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
18752 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
18753 conditional on SYMBIAN.
18754 * configure.ac: Don't handle powerpc*-*-gnu*.
18755 * configure: Regenerate.
18756 * doc/extend.texi (interrupt attribute): Don't mention CRX.
18757 * doc/install-old.texi (m6811, m6812): Don't mention.
18758 * doc/install.texi (arc-*-elf*): Don't document multilib option.
18759 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
18760 (m68k-uclinuxoldabi): Don't mention.
18761 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
18762 Remove.
18763 (-mcall-gnu): Remove.
18764 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
18765 families): Remove constraint documentation.
18766
999a7d80
MS
187672011-03-22 Marius Strobl <marius@FreeBSD.org>
18768
18769 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
18770 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
18771 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
18772
45540bcf
MM
187732011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
18774
18775 PR target/48226
18776 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
18777 vector when peeking at the next token for vector, don't expand the
18778 keywords.
18779
980a0ff4
GJL
187802011-03-21 Georg-Johann Lay <avr@gjlay.de>
18781
18782 * config/avr/avr-protos.h (expand_epilogue): Change prototype
18783 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
18784 * config/avr/avr.c (init_cumulative_args)
18785 (avr_function_arg_advance): Use it.
18786 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
18787 sibcall epilogues.
18788 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
18789 (avr_function_ok_for_sibcall): ...this new function.
18790 (avr_lookup_function_attribute1): New static Function.
18791 (avr_naked_function_p, interrupt_function_p)
18792 (signal_function_p, avr_OS_task_function_p)
18793 (avr_OS_main_function_p): Use it.
18794 * config/avr/avr.md ("sibcall", "sibcall_value")
18795 ("sibcall_epilogue"): New expander.
18796 ("*call_insn", "*call_value_insn"): New insn.
18797 ("call_insn", "call_value_insn"): Remove
18798 ("call", "call_value", "epilogue"): Change expander to handle
18799 sibling calls.
18800
49168734
NC
188012011-03-21 Nick Clifton <nickc@redhat.com>
18802
18803 * doc/invoke.texi (Overall Options): Move closing brace to end of
18804 options list.
18805 (Optimization Options): Add missing @gol.
18806 (Directory Options): Likewise.
18807 (i386 and x86-64 Options): Likewise.
18808 (RS6000 and PowerPC Options): Likewise.
18809 (i386 and x86-64 Windows Options): Likewise.
18810 (V850 Options): Add text missing from descriptions.
18811
bdfe906f
RH
188122011-03-22 Richard Henderson <rth@redhat.com>
18813
18814 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
18815 (avr_incoming_return_addr_rtx): New.
18816 (emit_push_byte): New.
18817 (expand_prologue): Use it. Remove incorrect dwarf annotation for
18818 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
18819 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
18820 (emit_pop_byte): New.
18821 (expand_epilogue): Use it. Pop frame pointer by bytes.
18822 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
18823 (INCOMING_RETURN_ADDR_RTX): New.
18824 (INCOMING_FRAME_SP_OFFSET): New.
18825 (ARG_POINTER_CFA_OFFSET): New.
18826 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
18827 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
18828 (pophi): Remove.
18829
d090a5aa
RH
18830 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
18831
fdf3e18a
NF
188322011-03-22 Nathan Froyd <froydnj@codesourcery.com>
18833
18834 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
18835 (FUNCTION_ARG_ADVANCE): Likewise.
18836 * tm.texi.in: Change references to them to hook references.
18837 * tm.texi: Regenerate.
18838 * targhooks.c (default_function_arg): Eliminate check for target
18839 macro.
18840 (default_function_incoming_arg): Likewise.
18841 (default_function_arg_advance): Likewise.
c78dd519 18842 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
fdf3e18a
NF
18843 (function_arg_advance): Likewise.
18844 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
18845
009d3fcf
NF
188462011-03-22 Nathan Froyd <froydnj@codesourcery.com>
18847
18848 * tree.c (build_call_1): New function.
18849 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
18850
7bec30e1
RG
188512011-03-22 Richard Guenther <rguenther@suse.de>
18852
18853 PR tree-optimization/48228
18854 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
18855 for single-arg PHIs.
18856
0b7e851b
AB
188572011-03-22 Andrey Belevantsev <abel@ispras.ru>
18858
18859 PR rtl-optimization/48143
18860 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
18861 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
18862 sse2_cvtps2pd): Likewise.
18863
d89afca5
AK
188642011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18865
18866 * recog.c (canonicalize_change_group): Use validate_unshare_change.
18867
f471fe72
RG
188682011-03-22 Richard Guenther <rguenther@suse.de>
18869
18870 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
18871 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
18872 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
18873 and REALIGN_LOAD_EXPR.
18874 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
18875 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
18876 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
18877 DOT_PROD_EXPR case ...
18878 (expand_expr_real_2): ... here.
18879 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
18880 and REALIGN_LOAD_EXPR.
18881 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
18882 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
18883 (vect_create_epilog_for_reduction): Likewise.
18884 (vectorizable_reduction): Likewise.
18885 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
18886 * tree-vect-stmts.c (vectorizable_load): Likewise.
18887
f2f81d57
EB
188882011-03-22 Eric Botcazou <ebotcazou@adacore.com>
18889
18890 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
18891
ab081dd6
AK
188922011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18893
18894 * config/s390/s390.c (s390_delegitimize_address): Fix offset
18895 handling for PLTOFF/GOTOFF.
18896
6fd5332b
NC
188972011-03-22 Nick Clifton <nickc@redhat.com>
18898
18899 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
18900 trailing backslash from the end of the macro definition.
18901
01841ac0
AK
189022011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18903
18904 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
18905 and PLT unspecs.
18906
2ef6ce06
RS
189072011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
18908
18909 * expr.h (prepare_operand): Move to...
18910 * optabs.h (prepare_operand): ...here and change the insn code
18911 parameter from "int" to "enum insn_code".
18912 (insn_operand_matches): Declare.
18913 * expr.c (init_expr_target): Use insn_operand_matches.
18914 (compress_float_constant): Likewise.
18915 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
18916 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
18917 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
c78dd519
UB
18918 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
18919 Likewise.
2ef6ce06
RS
18920 (gen_cond_trap): Likewise.
18921 (prepare_operand): Likewise. Change icode to an insn_code.
18922 (insn_operand_matches): New function.
18923 * reload.c (find_reloads_address_1): Use insn_operand_matches.
18924 * reload1.c (gen_reload): Likewise.
18925 * targhooks.c (default_secondary_reload): Likewise.
18926
9e43ad68
UB
189272011-03-21 Uros Bizjak <ubizjak@gmail.com>
18928
9a96da32
UB
18929 * config/alpha/alpha.md (unspec): New define_c_enum.
18930 (unspecv): Ditto.
18931
189322011-03-21 Uros Bizjak <ubizjak@gmail.com>
18933
18934 PR debug/48214
9e43ad68
UB
18935 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
18936 between a call and its CALL_ARG_LOCATION note.
18937
31408f60
EB
189382011-03-21 Eric Botcazou <ebotcazou@adacore.com>
18939
18940 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
18941
189422011-03-21 Jakub Jelinek <jakub@redhat.com>
126e6609
JJ
18943
18944 PR c/42544
18945 PR c/48197
18946 * c-common.c (shorten_compare): If primopN is first sign-extended
18947 to opN and then zero-extended to result type, set primopN to opN.
18948
9dfd55f5
DJ
189492011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
18950
18951 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
18952 for barrier handlers.
18953
f3c33d9d
MM
189542011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
18955
18956 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
18957 UNSPEC constants to be in the unspec enumeration, and redefine
18958 all UNSPECV constants to be in the unspecv enumeration, so that
18959 dumps print which unspec/unspec_volatile this is.
18960 * config/rs6000/vector.md (UNSPEC_*): Ditto.
18961 * config/rs6000/paired.md (UNSPEC_*): Ditto.
18962 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
18963 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
18964 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
18965
18966 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
18967 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
18968 UNSPECV_LWSYNC, since these are used as unspec_volatile.
18969 * config/rs6000/sync.md (isync, lwsync): Ditto.
18970
ac43f774
RG
189712011-03-21 Richard Guenther <rguenther@suse.de>
18972
18973 * params.def (lto-min-partition): Fix typo.
18974
411cdbd8
RG
189752011-03-21 Richard Guenther <rguenther@suse.de>
18976
18977 PR c/47939
18978 * c-decl.c (grokdeclarator): Drop to the main variant only
18979 for array types. Drop flag_gen_aux_info check.
18980
1cd9e416
RG
189812011-03-21 Richard Guenther <rguenther@suse.de>
18982
18983 PR translation/47911
18984 * params.def (lto-partitions): Fix typo.
18985 (lto-min-partition): Fix wording.
18986
ada5ad67
AT
189872011-03-21 Andreas Tobler <andreast@fgznet.ch>
18988
18989 * config/rs6000/t-freebsd: Remove duplication from file.
18990
f9613c9a
RG
189912011-03-21 Richard Guenther <rguenther@suse.de>
18992
18993 PR middle-end/47661
18994 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
18995
9bfbc1eb
RG
189962011-03-21 Richard Guenther <rguenther@suse.de>
18997
18998 PR lto/48210
18999 * params.def (lto-partitions): Require at least 1 partition.
19000
a2268084
RO
190012011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19002
19003 * gthr-solaris.h: Remove.
19004 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
19005 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
19006 (LIB_SPEC): Likewise.
19007 * config/sol2.opt (threads): Remove.
9e43ad68 19008 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
a2268084
RO
19009 (sparc*-*-solaris2*): Likewise.
19010 * configure.ac (enable_threads): Enable solaris support.
19011 * configure: Regenerate.
9e43ad68 19012 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
a2268084
RO
19013 * doc/install.texi (Configuration, --enable-threads=lib): Remove
19014 solaris.
19015
c43d9a1b
RO
190162011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19017
19018 * config.gcc: Obsolete *-*-solaris2.8*.
19019 * doc/install.texi (Specific, *-*-solaris2*): Document it.
19020
084239f4
RO
190212011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19022
19023 PR bootstrap/48135
19024 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
19025 reference. Solaris 8 perl works.
19026
64cadbe7
RO
190272011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19028
19029 PR bootstrap/48135
19030 * doc/install.texi (Prerequisites): Move jar etc. up.
19031 Explain support library version requirements.
19032
eb975109
RO
190332011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19034
19035 PR bootstrap/48135
19036 * doc/install.texi (Prerequisites): Move Perl to build
19037 requirements. Always necessary on Solaris 2 with Sun ld.
19038
8a509ffd
RO
190392011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19040
19041 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
19042 binutils 2.21.
19043 (Specific, i?86-*-solaris2.[89]): Likewise.
19044 (Specific, i?86-*-solaris2.10): Likewise.
19045 (Specific, mips-sgi-irix6): Likewise.
19046 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
19047 Update for binutils 2.21.
19048
8fbc58a1
RO
190492011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19050
19051 * configure.ac (gcc_cv_lto_plugin): Fix typo.
19052 Allow -fuse-linker-plugin for non-default plugin linker.
19053 * configure: Regenerate.
19054
7e84ad0b
NP
190552011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
19056
19057 PR bootstrap/48167
19058 * gengtype.c (files_rules): Added rule for cp/parser.h.
19059
2f36e14b
JJ
190602011-03-21 Jakub Jelinek <jakub@redhat.com>
19061
19062 PR target/48213
19063 * config/s390/s390.c (s390_delegitimize_address): Don't call
19064 lowpart_subreg if orig_x has BLKmode.
19065
62d784f7
KT
190662011-03-21 Kai Tietz <ktietz@redhat.com>
19067
19068 PR target/12171
9e43ad68
UB
19069 * doc/plugins.texi: Adjust documentation for plugin register_callback.
19070 * tree.h (attribute_spec): Add new member affects_type_identity.
19071 * attribs.c (empty_attribute_table): Adjust attribute_spec
19072 initializers.
62d784f7
KT
19073 * config/alpha/alpha.c: Likewise.
19074 * config/arc/arc.c: Likewise.
19075 * config/arm/arm.c: Likewise.
19076 * config/avr/avr.c: Likewise.
19077 * config/bfin/bfin.c: Likewise.
19078 * config/crx/crx.c: Likewise.
19079 * config/darwin.h: Likewise.
19080 * config/h8300/h8300.c: Likewise.
19081 * config/i386/cygming.h: Likewise.
19082 * config/i386/i386.c: Likewise.
19083 * config/ia64/ia64.c: Likewise.
19084 * config/m32c/m32c.c: Likewise.
19085 * config/m32r/m32r.c: Likewise.
19086 * config/m68hc11/m68hc11.c: Likewise.
19087 * config/m68k/m68k.c: Likewise.
19088 * config/mcore/mcore.c: Likewise.
19089 * config/mep/mep.c: Likewise.
19090 * config/microblaze/microblaze.c: Likewise.
19091 * config/mips/mips.c: Likewise.
19092 * config/rs6000/rs6000.c: Likewise.
19093 * config/rx/rx.c: Likewise.
19094 * config/sh/sh.c: Likewise.
19095 * config/sol2.h: Likewise.
19096 * config/sparc/sparc.c: Likewise.
19097 * config/spu/spu.c: Likewise.
19098 * config/stormy16/stormy16.c: Likewise.
19099 * config/v850/v850.c: Likewise.
19100
54833ec0
CLT
191012011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
19102
19103 * simplify-rtx.c (simplify_binary_operation_1): Handle
19104 (xor (and A B) C) case when B and C are both constants.
19105
14a41392
MX
191062011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
19107
19108 * tree-dfa.c (add_referenced_var): Fix typo in comment.
19109
806c3492
EB
191102011-03-20 Eric Botcazou <ebotcazou@adacore.com>
19111
19112 PR bootstrap/48168
19113 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
19114
65e0a0f3
JJ
191152011-03-20 Jakub Jelinek <jakub@redhat.com>
19116
19117 PR rtl-optimization/48156
19118 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
19119 assume df and df_lr are not NULL.
19120
b6a75dda
RR
191212011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
19122
19123 PR debug/48023
19124 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
19125 between a call and its CALL_ARG_LOCATION note.
19126
5969b52d
KK
191272011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
19128
19129 PR debug/48178
19130 * config/sh/sh.c (find_barrier): Don't emit a constant pool
19131 between a call and its corresponding CALL_ARG_LOCATION note.
19132
f773c2bd
AS
191332011-03-19 Anatoly Sokolov <aesok@post.ru>
19134
19135 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
19136 instead of loop. Use HARD_REGISTER_NUM_P predicate.
19137 * haifa-sched.c (setup_ref_regs): Ditto.
19138 * caller-save.c (add_used_regs_1): Ditto.
19139 * dse.c (look_for_hardregs): Ditto.
19140 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
19141 * sched-rgn.c (check_live_1): Ditto.
19142
8bf872f9
JM
191432011-03-18 Joseph Myers <joseph@codesourcery.com>
19144
19145 * c-decl.c (diagnose_mismatched_decls): Give an error for
19146 redefining a typedef with variably modified type.
19147
ff8e2159
JM
191482011-03-18 Joseph Myers <joseph@codesourcery.com>
19149
19150 * c-decl.c (grokfield): Don't allow typedefs for structures or
19151 unions with no tag by default.
19152 * doc/extend.texi (Unnamed Fields): Update.
19153
16cc4440
UB
191542011-03-18 Uros Bizjak <ubizjak@gmail.com>
19155
19156 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
19157 Rewrite using indirect functions.
19158 (lwp_slwpcb): Ditto.
19159 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
19160 (avx_vinsertf128<mode>): Ditto.
19161
e101e12e
AK
191622011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19163
19164 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
19165 unspecs.
19166
4627c7fb
AK
191672011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19168
19169 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9e43ad68 19170 splitting between a call and its corresponding CALL_ARG_LOCATION note.
4627c7fb 19171
2d36b47f
MK
191722011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
19173
19174 PR rtl-optimization/48170
19175 * gcse.c (hoist_code): Remove bogus asserts.
19176
2a3d7659
JL
191772011-03-18 Georg-Johann Lay <avr@gjlay.de>
19178
19179 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
19180 computation for prologue/epilogue.
19181
34c3ef05
RO
191822011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19183
19184 * Makefile.in (check-consistency): Remove.
19185
81f2b976
JJ
191862011-03-18 Jakub Jelinek <jakub@redhat.com>
19187
19188 PR debug/48176
19189 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
19190 arange_table_in_use is 0, but either text_section_used or
19191 cold_text_section_used is true. Don't call it if
19192 !info_section_emitted.
19193
68fd7765
AS
191942011-03-18 Anatoly Sokolov <aesok@post.ru>
19195
19196 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
19197 FUNCTION_VALUE_REGNO_P): Remove.
19198 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
19199 Remove.
19200 * config/avr/avr.c (avr_ret_register): Make static inline.
19201 (avr_function_value_regno_p): New function.
19202 (avr_libcall_value): Make static. Add 'func' argument.
19203 (avr_function_value): Make static. Rename 'func' argument to
19204 'fn_decl_or_type', forward it to avr_libcall_value. Call
19205 avr_ret_register function instead of RET_REGISTER macro.
b8bc3a43 19206 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
68fd7765 19207
b4ef8aac
JM
192082011-03-18 Jason Merrill <jason@redhat.com>
19209
19210 PR c++/23372
19211 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
19212
09a52fc3
RG
192132011-03-18 Richard Guenther <rguenther@suse.de>
19214
19215 * doc/install.texi (--enable-gold): Remove.
19216 (--with-plugin-ld): Document.
19217 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
19218
2a3d7659 192192011-03-18 Andrew Pinski <pinskia@gmail.com>
3bf162a0
AP
19220
19221 PR middle-end/47790
19222 * expr.c (optimize_bitfield_assignment_op): Revamp to work
19223 again after expansion changes.
19224
2abbb0fe
CLT
192252011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
19226
19227 * combine.c (try_combine): Do simplification only call of
19228 subst() on i2 even when i1 is present. Update comments.
19229
2efd0aa6
KK
192302011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
19231
19232 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
19233 and UNSPEC_PCREL_SYMOFF.
19234
30a49b23
AK
192352011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19236
19237 * config/s390/s390.md: Use define_c_enum for the unspec constant
19238 definitions.
19239
419e1853
JJ
192402011-03-18 Richard Henderson <rth@redhat.com>
19241 Jakub Jelinek <jakub@redhat.com>
19242
19243 PR bootstrap/48161
19244 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
19245 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
19246
24da2019
AS
192472011-03-17 Anatoly Sokolov <aesok@post.ru>
19248
19249 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19250 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
19251 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
19252 Change return type to bool.
19253 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19254
a82ff31f
JJ
192552011-03-17 Jakub Jelinek <jakub@redhat.com>
19256
8b29c87a
JJ
19257 PR debug/48163
19258 * var-tracking.c (prepare_call_arguments): If CALL target
19259 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
19260 pc instead of looking it up using cselib_lookup and use
19261 Pmode for it if x has VOIDmode.
19262 * dwarf2out.c (gen_subprogram_die): If also both first and
19263 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
19264
a82ff31f
JJ
19265 PR debug/48163
19266 * function.c (assign_parms): For data.passed_pointer parms
19267 use MEM of data.entry_parm instead of data.entry_parm itself
19268 as DECL_INCOMING_RTL.
19269 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
19270 also when passed and declared mode is the same, DECL_RTL
19271 is a MEM with pseudo as address and DECL_INCOMING_RTL is
19272 a MEM too.
19273
82ce305c
JL
192742011-03-16 Jeff Law <law@redhat.com>
19275
19276 PR rtl-optimization/37273
19277 * ira-costs.c (scan_one_insn): Detect constants living in memory and
19278 handle them like argument loads from stack slots. Do not double
19279 count memory for memory constants and argument loads from stack slots.
19280
fe58e02b
L
192812011-03-17 H.J. Lu <hongjiu.lu@intel.com>
19282
19283 PR debug/48160
19284 * var-tracking.c (prepare_call_arguments): Check SUBREG.
19285
6fc4dbc7
L
192862011-03-17 H.J. Lu <hongjiu.lu@intel.com>
19287
19288 PR target/48171
19289 * config/i386/i386.opt: Add Save to -mavx and -mfma.
19290
db3ed0b3
JJ
192912011-03-17 Jakub Jelinek <jakub@redhat.com>
19292
8054a389
JJ
19293 PR bootstrap/48153
19294 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
19295 if dwarf_strict.
19296 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
19297 Clear call_arg_locations and call_arg_loc_last always.
19298
db3ed0b3
JJ
19299 PR middle-end/48152
19300 * var-tracking.c (prepare_call_arguments): If argument needs to be
19301 passed by reference, adjust argtype and mode.
19302
1bce4ff3
RG
193032011-03-17 Richard Guenther <rguenther@suse.de>
19304
19305 PR middle-end/48134
19306 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
19307 a value make sure to fold the statement.
19308
7c71147d
CLT
193092011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
19310
19311 PR target/43872
19312 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
19313 return condition with !cfun->calls_alloca.
19314
0e1ee172
RG
193152011-03-17 Richard Guenther <rguenther@suse.de>
19316
19317 PR bootstrap/48148
19318 * lto-cgraph.c (input_overwrite_node): Clear the abstract
19319 origin for decls in other ltrans units.
19320 (input_varpool_node): Likewise.
19321
f8bce518
RG
193222011-03-17 Richard Guenther <rguenther@suse.de>
19323
19324 PR middle-end/48165
19325 * tree-object-size.c (compute_object_offset): Properly return
19326 the offset operand of MEM_REFs as sizetype.
19327
1b6fa860
JJ
193282011-03-17 Jakub Jelinek <jakub@redhat.com>
19329
dabd47e7
JJ
19330 PR rtl-optimization/48141
19331 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
19332 * dse.c: Include params.h.
19333 (active_local_stores_len): New variable.
19334 (add_wild_read, dse_step1): Clear it when setting active_local_stores
19335 to NULL.
19336 (record_store, check_mem_read_rtx): Decrease it when removing
19337 from the chain.
19338 (scan_insn): Likewise. Increase it when adding to chain, if it
19339 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
19340 set active_local_stores to NULL before the addition.
19341 * Makefile.in (dse.o): Depend on $(PARAMS_H).
19342
1b6fa860
JJ
19343 PR rtl-optimization/48141
19344 * dse.c (record_store): If no positions are needed in an insn
19345 that cannot be deleted, at least unchain it from active_local_stores.
19346
7b5cb7d6
DS
193472011-03-16 Dodji Seketeli <dodji@redhat.com>
19348
19349 PR debug/47510
19350 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
19351 (lookup_type_die_strip_naming_typedef): ... here.
19352 (get_context_die): Use it.
19353 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
19354 the anonymous struct named by the naming typedef.
19355
585e9d9d
L
193562011-03-16 H.J. Lu <hongjiu.lu@intel.com>
19357
19358 PR target/48154
19359 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
19360 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
19361
6261ab0e
JL
193622011-03-16 Jeff Law <law@redhat.com>
19363
19364 * tree-vrp.c (identify_jump_threads): Slightly simplify type
16cc4440 19365 check for operands of conditional. Allow type to be a pointer.
6261ab0e 19366
0b0081ec
RG
193672011-03-16 Richard Guenther <rguenther@suse.de>
19368
19369 PR tree-optimization/48149
19370 * fold-const.c (fold_binary_loc): Fold
19371 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
19372
64a3d647
RG
193732011-03-16 Richard Guenther <rguenther@suse.de>
19374
19375 PR tree-optimization/26134
19376 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
19377 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
19378 (non_rewritable_mem_ref_base): Handle complex type component
19379 accesses, constrain offsets for vector and complex extracts
19380 more properly.
19381
ef13324e
RG
193822011-03-16 Richard Guenther <rguenther@suse.de>
19383
19384 PR tree-optimization/48146
19385 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
19386 operands avoiding the need for renaming.
19387
f0eddb90
RG
193882011-03-16 Richard Guenther <rguenther@suse.de>
19389
19390 * gimple-fold.c (maybe_fold_reference): Open-code relevant
19391 constant folding. Move MEM_REF canonicalization first.
19392 Rely on fold_const_aggregate_ref for initializer folding.
19393 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
19394
e42348b8
JJ
193952011-03-16 Jakub Jelinek <jakub@redhat.com>
19396
29f10e71
JJ
19397 PR middle-end/48136
19398 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
19399 arg0/arg1 or their arguments are always fold converted to matching
19400 types.
19401
e42348b8
JJ
19402 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
19403 to nargs.
19404
55b46574
RO
194052011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19406
19407 PR lto/46944
19408 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
19409 Handle in-tree gold.
19410 (ld_vers): Extract binutils version for gold.
19411 (gcc_cv_ld_hidden): Handle gold here.
19412 (gcc_cv_lto_plugin): Determine level of linker plugin support.
19413 * configure: Regenerate.
19414 * config.in: Regenerate.
19415 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
19416 -fuse-linker-plugin otherwise.
19417 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
19418 (LINK_COMMAND_SPEC): Use it.
19419 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
19420
2b1c5433
JJ
194212011-03-16 Jakub Jelinek <jakub@redhat.com>
19422
c2969d8e
JJ
19423 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
19424 * calls.c: Remove debug.h include.
19425 (emit_call_1): Don't call virtual_call_token debug hook.
19426 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
19427 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
19428 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
19429 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
19430 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
19431 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
19432 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
19433 dwarf2out_virtual_call): Remove.
19434 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
19435 copy_call_info and virtual_call hooks.
19436 (dwarf2out_init): Don't initialize vcall_insn_table,
19437 debug_dcall_section and debug_vcall_section.
19438 (prune_unused_types): Don't mark nodes from dcall_table.
19439 (dwarf2out_finish): Don't output dcall or vcall tables.
19440 * final.c (final_scan_insn): Don't call direct_call or
19441 virtual_call debug hooks.
19442 * debug.h (struct gcc_debug_hooks): Remove direct_call,
19443 virtual_call_token, copy_call_info and virtual_call hooks.
19444 (debug_nothing_uid): Remove prototype.
19445 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
19446 copy_call_info and virtual_call hooks.
19447 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
19448 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
19449 * debug.c (do_nothing_debug_hooks): Likewise.
19450 (debug_nothing_uid): Remove.
19451 * doc/invoke.texi (-fenable-icf-debug): Remove.
19452 * common.opt (-fenable-icf-debug): Likewise.
19453
325f5379
JJ
19454 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
19455 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
19456 call's MEM. Handle functions returning aggregate through a hidden
19457 first pointer. For virtual calls add clobbered pc to call arguments
19458 chain.
19459 * dwarf2out.c (gen_subprogram_die): Emit
19460 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
19461 can't be emitted.
19462
a58a8e4b
JJ
19463 PR debug/45882
19464 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
19465 * rtl.h (ENTRY_VALUE_EXP): Define.
19466 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
19467 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
19468 * print-rtl.c (print_rtx): Likewise.
19469 * gengtype.c (adjust_field_rtx_def): Likewise.
19470 * var-tracking.c (vt_add_function_parameter): Adjust
19471 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
19472 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
19473 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
19474 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
19475 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
19476
2b1c5433
JJ
19477 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
19478 Call var_location debug hook even on CALL_INSNs.
19479 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
19480 * rtl.def (ENTRY_VALUE): New.
19481 * dwarf2out.c: Include cfglayout.h.
19482 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
19483 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
19484 (struct call_arg_loc_node): New type.
19485 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
19486 tail_call_site_count): New variables.
19487 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
19488 DW_TAG_GNU_call_site_parameter.
19489 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
19490 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
19491 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
19492 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
19493 and DW_AT_GNU_all_source_call_sites.
19494 (mem_loc_descriptor): Handle ENTRY_VALUE.
19495 (add_src_coords_attributes): Don't add enything if
19496 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
19497 (dwarf2out_abstract_function): Save and clear call_arg_location,
19498 call_site_count and tail_call_site_count around dwarf2out_decl call.
19499 (gen_call_site_die): New function.
19500 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
19501 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
19502 (dwarf2out_function_decl): Clear call_arg_locations,
19503 call_arg_loc_last, set call_site_count and tail_call_site_count
19504 to -1 and free block_map.
19505 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
19506 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
19507 followed by any real instructions.
19508 (dwarf2out_begin_function): Set call_site_count and
19509 tail_call_site_count to 0.
19510 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
19511 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
19512 attempt to force a DIE for it and worst case remove the attribute.
19513 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
19514 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
19515 the decl itself.
19516 * var-tracking.c: Include tm_p.h.
19517 (vt_stack_adjustments): For calls call note_register_arguments.
19518 (argument_reg_set): New variable.
19519 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
19520 ensure the VALUE is resolved.
19521 (call_arguments): New variable.
19522 (prepare_call_arguments): New function.
19523 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
19524 (struct expand_loc_callback_data): Add ignore_cur_loc field.
19525 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
19526 always use the best expression.
19527 (vt_expand_loc): Add ignore_cur_loc argument.
19528 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
19529 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
19530 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
19531 note for all calls.
19532 (vt_add_function_parameter): Use cselib_lookup_from_insn.
19533 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
19534 argument. Don't call cselib_preserve_only_values and
19535 cselib_reset_table.
19536 (note_register_arguments): New function.
19537 (vt_initialize): Compute argument_reg_set. Call
19538 vt_add_function_parameters before processing basic blocks instead of
19539 afterwards. For calls call prepare_call_arguments before calling
19540 cselib_process_insn.
19541 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
19542 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
19543 (var-tracking.o): Depend on $(TM_P_H).
19544 * cfglayout.h (insn_scope): New prototype.
19545 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
19546 * cfglayout.c (insn_scope): No longer static.
19547 * insn-notes.def (CALL_ARG_LOCATION): New.
19548 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
19549 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
19550 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
19551 nothing for DECL_EXTERNAL BLOCK_VARS.
19552
9ef13bd0
AM
195532011-03-16 Alan Modra <amodra@gmail.com>
19554
19555 PR target/45844
19556 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
19557 create invalid offset address for vsx splat insn.
19558 * config/rs6000/predicates.md (splat_input_operand): New.
19559 * config/rs6000/vsx.md (vsx_splat_*): Use it.
19560
56b67510
XDL
195612011-03-15 Xinliang David Li <davidxl@google.com>
19562
19563 PR c/47837
19564 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
19565 (normalize_preds): New function.
19566 (is_use_properly_guarded): Normalize def predicates.
19567
80fffdef
RR
195682011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
19569
732f37c6 19570 PR target/46788
80fffdef
RR
19571 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
19572 in the output template.
19573
930672ad
RG
195742011-03-15 Richard Guenther <rguenther@suse.de>
19575
19576 PR middle-end/47650
19577 * tree-pretty-print.c (dump_function_declaration): Properly
19578 dump unprototyped and varargs function types.
19579
c7ee7b45
RG
195802011-03-15 Richard Guenther <rguenther@suse.de>
19581
19582 PR tree-optimization/13954
19583 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
19584 and friends.
19585
b2ad5e37
RG
195862011-03-15 Richard Guenther <rguenther@suse.de>
19587
19588 PR tree-optimization/48037
19589 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
19590 selects into BIT_FIELD_REFs.
19591 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
19592 vector select.
19593
7ee93d4e
JJ
195942011-03-15 Jakub Jelinek <jakub@redhat.com>
19595
19596 PR tree-optimization/48129
19597 * builtins.c (fold_builtin_snprintf): Convert to type of
19598 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
19599 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
19600
e106efc7
RG
196012011-03-15 Richard Guenther <rguenther@suse.de>
19602
19603 PR tree-optimization/41490
19604 * tree-ssa-dce.c (propagate_necessity): Handle returns without
19605 value but with VUSE.
19606 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
19607 return statements.
19608 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
19609 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
19610 * tree-tailcall.c (find_tail_calls): Ignore returns.
19611
17dea42f
RG
196122011-03-15 Richard Guenther <rguenther@suse.de>
19613
19614 PR middle-end/48031
19615 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
19616 or variable-indexed array accesses when in gimple form.
19617
01c77a60
RG
196182011-03-15 Richard Guenther <rguenther@suse.de>
19619
16cc4440 19620 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
01c77a60 19621
77b0791e
AM
196222011-03-15 Alan Modra <amodra@gmail.com>
19623
19624 PR target/48032
19625 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
19626 presume symbol_refs without a symbol_ref_decl are suitably
19627 aligned, nor other trees we may see here. Handle anchor symbols.
19628 (legitimate_constant_pool_address_p): Comment. Add mode param.
19629 Check cmodel=medium addresses. Adjust all calls.
19630 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
19631 creating cmodel=medium optimized access to locals.
19632 * config/rs6000/constraints.md (R): Pass QImode to
19633 legitimate_constant_pool_address_p.
19634 * config/rs6000/predicates.md (input_operand): Pass mode to
19635 legitimate_constant_pool_address_p.
19636 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
19637 Update prototype.
19638
35f61ba4
MM
196392011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
19640
19641 PR target/48053
19642 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
19643 64-bit constants being loaded into registers other than GPRs such
19644 as loading 0 into a VSX register.
19645
07332e6d
RO
196462011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19647
16cc4440 19648 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
07332e6d 19649
de888d90
JJ
196502011-03-14 Jakub Jelinek <jakub@redhat.com>
19651
ba3ceb2d
JJ
19652 PR middle-end/47917
19653 * builtins.c (fold_builtin_snprintf): New function.
19654 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
19655 (fold_builtin_4): Likewise.
19656
2e64f8b8
JJ
19657 PR middle-end/38878
19658 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
19659 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
19660 and C - X == X also strip nops from +/-/p+ operand.
19661 When optimizing -X == C, fold C to arg0's type.
19662
de888d90
JJ
19663 PR debug/47946
19664 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
19665 emit it as add_AT_int instead of add_AT_unsigned.
19666
196672011-03-14 Tom Tromey <tromey@redhat.com>
f4e749b4
TT
19668
19669 * unwind-dw2.c: Include sys/sdt.h if it exists.
19670 (_Unwind_DebugHook): Use STAP_PROBE2.
19671 * config.in, configure: Rebuild.
19672 * configure.ac: Check for sys/sdt.h.
19673
d34abfd2
UB
196742011-03-14 Uros Bizjak <ubizjak@gmail.com>
19675
19676 * config/i386/i386.md (ROUND_FLOOR): New constant.
19677 (ROUND_CEIL): Ditto.
19678 (ROUND_TRUNC): Ditto.
19679 (ROUND_MXCSR): Ditto.
19680 (ROUND_NO_EXC): Ditto.
19681 (rint<mode>2): Use new defines instead of numerical constants.
19682 (floor<mode>2): Ditto.
19683 (ceil<mode>2): Ditto.
19684 (btrunc<mode>2): Ditto.
19685 * config/i386/i386-builtin-types.def: Define ROUND function type
19686 aliases.
19687 * config/i386/i386.c (enum ix86_builtins): Add
19688 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
19689 (struct builtin_description): Add
19690 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
19691 (ix86_expand_sse_round): New static function.
19692 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
19693 function types.
19694 (ix86_builtin_vectorized_function): Handle
19695 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
19696
87f9e23d
TT
196972011-03-14 Tom Tromey <tromey@redhat.com>
19698
19699 * c-parser.c (c_parser_asm_string_literal): Clear
19700 warn_overlength_strings.
19701
b3ab9ea2
TT
197022011-03-14 Tom Tromey <tromey@redhat.com>
19703
19704 * c-parser.c (disable_extension_diagnostics): Save
19705 warn_overlength_strings.
19706 (restore_extension_diagnostics): Restore warn_overlength_strings.
19707
6bd73dd8
JJ
197082011-03-14 Jakub Jelinek <jakub@redhat.com>
19709
19710 * BASE-VER: Change to 4.7.0.
19711
7f4d6e1b
RG
197122011-03-14 Richard Guenther <rguenther@suse.de>
19713
19714 PR middle-end/48098
19715 * tree.c (build_vector_from_val): Adjust assert to requirements
19716 and reality.
19717
c6104ef1
JJ
197182011-03-14 Jakub Jelinek <jakub@redhat.com>
19719
19720 PR bootstrap/48102
d34abfd2 19721 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
c6104ef1 19722
dfa95e19
AT
197232011-03-14 Andreas Tobler <andreast@fgznet.ch>
19724
f60c2554 19725 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
dfa95e19
AT
19726 terms of target_flags_explicit. Adjust copyright year.
19727
19728 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
19729 * config/rs6000/t-freebsd: New file. Add override for
19730 LIB2FUNCS_EXTRA.
19731
bb322018
CD
197322011-03-13 Chris Demetriou <cgd@google.com>
19733
19734 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
19735 (-fno-diagnostics-show-option): this, to reflect current default.
19736 (-Werror=): Update text about -fno-diagnostics-show-option.
19737
12b1c80b
PB
197382011-03-12 Peter Bergner <bergner@vnet.ibm.com>
19739
19740 PR target/48053
19741 * config/rs6000/predicates.md (easy_vector_constant_add_self,
19742 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
19743 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
19744 mode is not V2DImode or V2DFmode.
19745 (vspltis_constant): Do not handle V2DImode and V2DFmode.
19746 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
19747 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
19748 registers to 0.
19749 (movdi_internal64): Likewise.
19750
57d598f7
SP
197512011-03-12 Sebastian Pop <sebastian.pop@amd.com>
19752
19753 PR tree-optimization/47127
19754 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
19755 parameter.
19756 (set_cloog_options): Same.
19757 (scop_to_clast): Same.
19758 (print_clast_stmt): Do not call cloog_state_malloc and
19759 cloog_state_free.
19760 (print_generated_program): Same.
19761 (gloog): Same.
19762 * graphite-clast-to-gimple.h (cloog_state): Declared.
19763 (scop_to_clast): Adjust declaration.
19764 * graphite.c (cloog_state): Defined here.
19765 (graphite_initialize): Call cloog_state_malloc.
19766 (graphite_finalize): Call cloog_state_free.
19767
f231b5ff
JM
197682011-03-11 Jason Merrill <jason@redhat.com>
19769
19770 * attribs.c (lookup_attribute_spec): Take const_tree.
19771 * tree.h: Adjust.
19772
6a4e2bd5
JM
197732011-03-11 Joseph Myers <joseph@codesourcery.com>
19774
19775 * config/sparc/sparc.c (sparc_option_override): Use
19776 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
19777
a758fd67
RG
197782011-03-11 Richard Guenther <rguenther@suse.de>
19779
19780 PR tree-optimization/48067
19781 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
19782 multiplication result will be only used once on the target
19783 stmt.
19784
03dfda54
RG
197852011-03-11 Richard Guenther <rguenther@suse.de>
19786
19787 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
19788
5f11a50a
RG
197892011-03-11 Richard Guenther <rguenther@suse.de>
19790
19791 PR lto/48073
19792 * tree.c (find_decls_types_r): Do not walk types only reachable
19793 from IDENTIFIER_NODEs.
19794
4074f163
JJ
197952011-03-11 Jakub Jelinek <jakub@redhat.com>
19796
19797 PR middle-end/48044
19798 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
19799 all vnode->force_output nodes as needed.
19800
30f7cdcd
JM
198012011-03-11 Jason Merrill <jason@redhat.com>
19802
19803 PR c++/48069
19804 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
19805 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
19806
62ecfeb8
MJ
198072011-03-11 Martin Jambor <mjambor@suse.cz>
19808
19809 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
19810 cgraph_node.
19811
e89e03ab
JJ
198122011-03-11 Jakub Jelinek <jakub@redhat.com>
19813
19814 PR tree-optimization/48063
19815 * ipa-inline.c (cgraph_decide_inlining): Don't try to
19816 inline functions called once if !tree_can_inline_p (node->callers).
19817
efbe978b 198182011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9d6193a7 19819
efbe978b
EB
19820 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
19821 extra_objs.
9d6193a7
CL
19822 * config/score/score3.c: Delete.
19823 * config/score/score3.h: Delete.
19824 * config/score/mul-div.S: Delete.
19825 * config/score/sfp-machine.h: Add new file.
19826 * config/score/constraints.md: Add new file.
19827 * config/score/t-score-softfp: Add new file.
efbe978b 19828 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9d6193a7
CL
19829 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
19830 (score7_extra_constraint): Delete.
efbe978b 19831 (score7_option_override): Remove unused code.
9d6193a7
CL
19832 * config/score/score.c: Remove score3 and score5 define and code.
19833 * config/score/score.h: Remove score3 and score5 define and code.
efbe978b 19834 * config/score/score.md: Remove score3 template and unusual insn.
9d6193a7
CL
19835 * config/score/score.opt: Remove score3 and score5 options.
19836
5de27cca
JDA
198372011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19838
19839 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
19840 when _HPUX_SOURCE is defined.
19841 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
19842
18d92053
JM
198432011-03-10 Jason Merrill <jason@redhat.com>
19844
19845 PR c++/48029
19846 * stor-layout.c (layout_type): Don't set structural equality
19847 on arrays of incomplete type.
19848 * tree.c (type_hash_eq): Handle comparing them properly.
19849
67a2f76d
JJ
198502011-03-10 Jakub Jelinek <jakub@redhat.com>
19851
19852 PR debug/48043
18d92053 19853 * config/s390/s390.c (s390_delegitimize_address): Make sure the
67a2f76d
JJ
19854 result mode matches original rtl mode.
19855
d845b2f9
NC
198562011-03-10 Nick Clifton <nickc@redhat.com>
19857
19858 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
39242686 19859 (andsi3, andsi3_flags): Fix timings for three operand alternative.
d845b2f9 19860
db7ec035
JJ
198612011-03-09 Jakub Jelinek <jakub@redhat.com>
19862
19863 PR rtl-optimization/47866
19864 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
19865 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
19866 if target wasn't scalar.
19867 * function.c (assign_stack_temp_for_type): Assert that neither
19868 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
19869 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
19870 macro.
19871 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
19872
5d304e47
AK
198732011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19874
19875 * config/s390/s390-protos.h (s390_label_align): New prototype.
19876 * config/s390/s390.c (s390_label_align): New function.
19877 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
19878
93b826f0
MM
198792011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
19880
19881 PR target/47755
19882 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
19883 V2DI/V2DF constants. Only all 0's or all 1's are easy.
19884 (output_vec_const_move): Ditto.
19885
ef78aed6
AS
198862011-03-08 Anatoly Sokolov <aesok@post.ru>
19887
19888 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
19889 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
19890 * config/mips/mips.c (mips_preferred_reload_class): Make static.
19891 Change 'rclass' argument and result type to reg_class_t.
19892 (TARGET_PREFERRED_RELOAD_CLASS): Define.
19893
5f892aa0
GJL
198942011-03-08 Georg-Johann Lay <avr@gjlay.de>
19895
9e43ad68
UB
19896 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
19897 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
19898 (TARGET_MEMORY_MOVE_COST): Define.
19899 (avr_register_move_cost, avr_memory_move_cost): New Functions.
5f892aa0 19900
32bd2409
JJ
199012011-03-08 Jakub Jelinek <jakub@redhat.com>
19902
530a4800
JJ
19903 PR debug/47881
19904 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
19905 removed anything.
19906
32bd2409
JJ
19907 PR tree-optimization/48022
19908 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
19909 for EQ/NE_EXPR.
19910
c7148991
JJ
199112011-03-07 Jakub Jelinek <jakub@redhat.com>
19912
19913 PR debug/47991
19914 * var-tracking.c (find_use_val): Return NULL for
19915 cui->sets && cui->store_p BLKmode MEMs.
19916
43070a6e
AS
199172011-03-07 Anatoly Sokolov <aesok@post.ru>
19918
19919 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
19920 Remove.
19921 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
19922 xstormy16_print_operand_address): Remove.
19923 * config/stormy16/stormy16.c (xstormy16_print_operand,
19924 xstormy16_print_operand_address): Make static.
19925 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
19926
efbe978b 199272011-03-07 Pat Haugen <pthaugen@us.ibm.com>
79eefb0d
PH
19928
19929 PR target/47862
19930 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
19931 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
19932 before definition.
19933
cec8ac0b
ZD
199342011-03-07 Zdenek Dvorak <ook@ucw.cz>
19935
19936 PR bootstrap/48000
19937 * cfgloopmanip.c (fix_bb_placements): Return immediately
19938 if FROM is BASE_LOOP's header.
19939
59527282
PW
199402011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
19941
19942 * gimplify.c (gimplify_function_tree): Fix building calls
19943 to __builtin_return_address.
19944
617718f7
AM
199452011-03-07 Alan Modra <amodra@gmail.com>
19946
19947 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
19948 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
19949 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
19950 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
19951 return_mode args.
19952 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
19953 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
19954 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
19955 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
19956 * config/rs6000/rs6000.c
19957 (rs6000_elf_end_indicate_exec_stack): Rename to..
19958 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
19959 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
19960 (rs6000_file_start): ..here.
19961 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
19962 file scope variables.
19963 (call_ABI_of_interest): New function.
19964 (init_cumulative_args): Set above vars when function return value
19965 is a float, vector, or small struct.
19966 (rs6000_function_arg_advance_1): Likewise for function args.
19967 (rs6000_va_start): Set rs6000_passes_float if variable arg function
19968 references float args.
19969
38528d50
MX
199702011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
19971
19972 * doc/cfg.texi: Remove "See" before @ref.
19973 * doc/invoke.texi: Likewise.
19974
f42cf4f4
JM
199752011-03-05 Jason Merrill <jason@redhat.com>
19976
19977 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
19978
804a304d
AG
199792011-03-05 Anthony Green <green@moxielogic.com>
19980
19981 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
19982
634ee309
ZD
199832011-03-05 Zdenek Dvorak <ook@ucw.cz>
19984
19985 PR rtl-optimization/47899
19986 * cfgloopmanip.c (fix_bb_placements): Fix first argument
19987 to flow_loop_nested_p when moving the loop upward.
19988
6fe471c8
RE
199892011-03-05 Richard Earnshaw <rearnsha@arm.com>
19990
19991 PR target/47719
19992 * arm.md (movhi_insn_arch4): Accept any immediate constant.
19993
cc58ceee
JJ
199942011-03-05 Jakub Jelinek <jakub@redhat.com>
19995
19996 PR tree-optimization/47967
19997 * ipa-cp.c (build_const_val): Return NULL instead of creating
19998 VIEW_CONVERT_EXPR for mismatching sizes.
19999 (ipcp_create_replace_map): Return NULL if build_const_val failed.
20000 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
20001 give up on versioning.
20002
ea868305
AM
200032011-03-05 Alan Modra <amodra@gmail.com>
20004
20005 PR target/47986
20006 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
20007 full cmodel medium/large lo_sum + high addresses.
20008
bc6ce334
AK
200092011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20010
20011 * config/s390/s390.c (s390_decompose_address): Reject non-literal
20012 pool references in UNSPEC_LTREL_OFFSET.
20013
87e7b310
JH
200142011-03-04 Jan Hubicka <jh@suse.cz>
20015
20016 PR lto/47497
20017 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
20018 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
d34abfd2
UB
20019 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
20020 Add node pointers.
87e7b310
JH
20021 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
20022 cgraph_add_thunk): Add node pointers.
20023 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
20024 associated to right node.
20025 (input_node): Update use of cgraph_same_body_alias
20026 and cgraph_add_thunk.
20027
d9c64246
CF
200282011-03-04 Changpeng Fang <changpeng.fang@amd.com>
20029
20030 * config/i386/i386.opt (mprefer-avx128): New flag.
d34abfd2
UB
20031 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
20032 modes when the flag -mprefer-avx128 is on.
d9c64246 20033
08707076
RS
200342011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
20035
20036 * dwarf2out.c (compare_loc_operands): Fix address handling.
20037
52517c81
AM
200382011-03-04 Alan Modra <amodra@gmail.com>
20039
20040 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
20041
b147c5b9
RG
200422011-03-04 Richard Guenther <rguenther@suse.de>
20043
20044 PR middle-end/47968
20045 * expmed.c (extract_bit_field_1): Prefer vector modes that
20046 vec_extract patterns can handle.
20047
8750672f
RG
200482011-03-04 Richard Guenther <rguenther@suse.de>
20049
20050 PR middle-end/47975
20051 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
20052
9eac0f2a
RH
200532011-03-04 Richard Henderson <rth@redhat.com>
20054
20055 * explow.c (emit_stack_save): Remove 'after' parameter.
20056 (emit_stack_restore): Likewise.
20057 * expr.h: Update to match.
20058 * builtins.c, calls.c, stmt.c: Likewise.
20059 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
20060 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
20061 * function.c (expand_function_end): Insert the emit_stack_save
20062 sequence before parm_birth_insn instead of after.
20063
dfee1406
UB
200642011-03-03 Uros Bizjak <ubizjak@gmail.com>
20065
20066 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
20067 (ssse3_pmaddubsw128): Ditto.
20068 (ssse3_pmaddubsw): Ditto.
20069
f1d4c3de
SE
200702011-03-03 Steve Ellcey <sje@cup.hp.com>
20071
20072 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
20073
71f3a3f5
JJ
200742011-03-03 Jakub Jelinek <jakub@redhat.com>
20075
423ed416
JJ
20076 PR c/47963
20077 * gimplify.c (omp_add_variable): Only call omp_notice_variable
20078 on TYPE_SIZE_UNIT if it is a DECL.
20079
71f3a3f5
JJ
20080 PR debug/47283
20081 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
20082 first operand is not is_gimple_mem_ref_addr, try to fold it.
20083 If the operand still isn't is_gimple_mem_ref_addr, clear
20084 MEM_EXPR on op0.
20085
4b1a5c0d
RG
200862011-03-03 Richard Guenther <rguenther@suse.de>
20087
20088 PR middle-end/47283
20089 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
20090 match comment.
20091 (refs_may_alias_p_1): For release branches return true if
20092 we are confused by our input.
20093
b46616fd
AK
200942011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20095
20096 * config/s390/s390.c (s390_function_value): Rename to ...
20097 (s390_function_and_libcall_value): ... this.
20098 (s390_function_value): New function.
20099 (s390_libcall_value): New function.
dfee1406 20100 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
b46616fd
AK
20101 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
20102 target macro definitions.
20103 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
20104
46d8fabb
JM
201052011-03-02 Joseph Myers <joseph@codesourcery.com>
20106
20107 * config/i386/freebsd64.h (CC1_SPEC): Define.
20108 * config/i386/linux64.h (CC1_SPEC): Define.
20109 * config/i386/x86-64.h (CC1_SPEC): Don't define.
20110
6b1ce545
AS
201112011-03-02 Anatoly Sokolov <aesok@post.ru>
20112
20113 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
20114 Remove.
20115 * config/stormy16/stormy16.c: Include reload.h.
20116 (xstormy16_memory_move_cost): New function.
20117 (TARGET_MEMORY_MOVE_COST): Define.
20118
34161e98
RS
201192011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
20120
20121 PR rtl-optimization/47925
20122 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
20123 with side effects. Remove the more-specific check for volatile asms.
20124
f60a97cf
AM
201252011-03-02 Alan Modra <amodra@gmail.com>
20126
20127 PR target/47935
20128 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
20129 toc relative addresses for valid offsets.
20130
f2ca11ca
RG
201312011-03-01 Richard Guenther <rguenther@suse.de>
20132
20133 PR tree-optimization/47890
20134 * tree-vect-loop.c (get_initial_def_for_induction): Set
20135 related stmt properly.
20136
7a00d9ea
RG
201372011-03-01 Richard Guenther <rguenther@suse.de>
20138
20139 PR lto/47924
20140 * lto-streamer.c (lto_record_common_node): Also register
20141 the canonical type.
20142
06c7edcc
RG
201432011-03-01 Richard Guenther <rguenther@suse.de>
20144
20145 PR lto/46911
20146 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
20147 Do not stream DECL_ABSTRACT_ORIGIN.
20148 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
20149 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
20150 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
20151 Do not stream DECL_ABSTRACT_ORIGIN.
20152 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
20153 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
20154
998871e9
AS
201552011-02-28 Anatoly Sokolov <aesok@post.ru>
20156
20157 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
20158 FUNCTION_VALUE_REGNO_P): Remove.
b2e2ea67 20159 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
998871e9
AS
20160 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
20161 Add 'outgoing' argument.
20162 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
20163 function.
20164 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
20165 TARGET_FUNCTION_VALUE_REGNO_P): Define.
20166
94369251
KT
201672011-02-28 Kai Tietz <kai.tietz@onevision.com>
20168
20169 PR debug/28047
20170 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
20171 (lookup_filename): Likewise.
b2e2ea67 20172 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
94369251 20173
80a832cd
JJ
201742011-02-28 Bernd Schmidt <bernds@codesourcery.com>
20175 Jakub Jelinek <jakub@redhat.com>
20176
20177 PR middle-end/47893
20178 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
20179 (assign_stack_local_1): Change last argument type to int.
20180 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
20181 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
b2e2ea67 20182 don't record padding space into frame_space_list nor use those areas.
80a832cd
JJ
20183 (assign_stack_local): Adjust caller.
20184 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
20185 of assign_stack_local, pass 0 as last argument.
20186 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
20187 callers.
20188
1b500976
JJ
201892011-02-28 Jakub Jelinek <jakub@redhat.com>
20190
f61c6f34
JJ
20191 PR debug/47283
20192 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
20193 Use target address_mode and pointer_mode hooks instead of hardcoded
20194 Pmode and ptr_mode. Handle some simple cases of extending if
20195 POINTERS_EXTEND_UNSIGNED < 0.
20196 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
20197 Call convert_debug_memory_address.
20198 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
20199 convert_debug_memory_address.
20200
1b500976
JJ
20201 PR middle-end/46790
20202 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
20203 * configure: Regenerated.
20204 * config.in: Regenerated.
20205 * varasm.c (default_function_section): Return NULL
b2e2ea67 20206 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
1b500976 20207
2f2935b6
MJ
202082011-02-28 Martin Jambor <mjambor@suse.cz>
20209
20210 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
20211 the description to match the printed values.
20212
474086eb
RG
202132011-02-28 Richard Guenther <rguenther@suse.de>
20214
20215 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
20216 of the copied scope tree.
20217
15bf6f3a
RW
202182011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20219
20220 * doc/extend.texi (Function Attributes): Avoid deeply (and
20221 wrongly) nested tables.
20222
f6b439c9
JJ
202232011-02-27 Jakub Jelinek <jakub@redhat.com>
20224
20225 PR middle-end/47903
20226 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
20227 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
20228 r isn't op0 nor op1.
20229
1d8ca2c7
GJL
202302011-02-23 Georg-Johann Lay <avr@gjlay.de>
20231
20232 * config/avr/avr.md: Remove magic comment for emacs.
20233
593fca4b
GJL
202342011-02-23 Georg-Johann Lay <avr@gjlay.de>
20235
20236 PR target/45261
20237 * config/avr/avr.c (avr_option_override): Use error on bad options.
20238 (avr_help): New function.
20239 (TARGET_HELP): Define.
20240
6609216e
GJL
202412011-02-22 Georg-Johann Lay <avr@gjlay.de>
20242
20243 PR target/42240
20244 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
20245 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
20246
03d458af
GP
202472011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
20248
20249 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
20250 (ARM Options): Ditto.
20251 (i386 and x86-64 Options): Ditto.
20252 (RX Options): Ditto.
20253 (SPARC Options): Ditto.
20254
1c379b78
TC
202552011-02-26 Tijl Coosemans <tijl@coosemans.org>
20256
20257 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
20258 FreeBSD 6 and later. Generally use cpu generic.
20259
d5ed058c 202602011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
b2e2ea67 20261
d5ed058c
GP
20262 * doc/cpp.texi: Update copyright years.
20263
509d65dd 202642011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
308d39cd 20265
509d65dd 20266 PR target/46898
308d39cd
SB
20267 * config/lm32/lm32.md (ashrsi3): Added needed variable.
20268
509d65dd 202692011-02-25 Jon Beniston <jon@beniston.com>
308d39cd 20270
509d65dd 20271 PR target/46898
308d39cd
SB
20272 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
20273 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
20274 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
20275 (lm32_block_move_inline): Add type cast to remove warning.
b2e2ea67 20276 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
308d39cd
SB
20277 (gen_int_relational): Move declarations to start of function.
20278
822ba6d7
EB
202792011-02-25 Eric Botcazou <ebotcazou@adacore.com>
20280
20281 PR tree-optimization/45470
20282 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
20283 can throw internally only.
20284 * tree-vect-stmts.c (vectorizable_call): Likewise.
20285
ef795fc2
AS
202862011-02-24 Anatoly Sokolov <aesok@post.ru>
20287
20288 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
20289 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
20290 * config/stormy16/stormy16-protos.h
20291 (xstormy16_preferred_reload_class): Remove.
20292 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
20293 static. Change 'rclass' argument and return type to reg_class_t.
20294 (TARGET_PREFERRED_RELOAD_CLASS,
20295 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
20296
1c3277ee
RG
202972011-02-24 Richard Guenther <rguenther@suse.de>
20298
20299 * lto-streamer-in.c (input_bb): Do not find referenced vars
20300 in debug statements.
20301
67e18edb
JM
203022011-02-23 Jason Merrill <jason@redhat.com>
20303
20304 * common.opt (fabi-version): Document v5 and v6.
20305
b14fad9d
RG
203062011-02-23 Richard Guenther <rguenther@suse.de>
20307
20308 PR tree-optimization/47849
20309 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
20310
7fcf46f5
JZ
203112011-02-23 Jie Zhang <jie@codesourcery.com>
20312
20313 * opts-common.c (decode_cmdline_option): Print empty string
20314 argument as "" in decoded->orig_option_with_args_text.
20315 * gcc.c (execute): Print empty string argument as ""
20316 in the verbose output.
20317 (do_spec_1): Keep empty string argument.
20318
f85b70fd
NF
203192011-02-23 Nathan Froyd <froydnj@codesourcery.com>
20320
20321 * config.gcc: Declare score-* and crx-* obsolete.
20322
b152a615
JZ
203232011-02-23 Jie Zhang <jie@codesourcery.com>
20324
20325 PR rtl-optimization/47763
20326 * web.c (web_main): Ignore naked clobber when replacing register.
20327
bb6e77bc
AS
203282011-02-22 Anatoly Sokolov <aesok@post.ru>
20329
20330 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
20331 Remove.
20332
68bf6491
SP
203332011-02-22 Sebastian Pop <sebastian.pop@amd.com>
20334
20335 PR doc/47848
20336 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
20337
88ee1fc7
MS
203382011-02-22 Mike Stump <mikestump@comcast.net>
20339
20340 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
20341 assembler.
20342 * configure: Regenerate.
20343
6042d1dd
CLT
203442011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
20345
20346 PR rtl-optimization/46002
20347 * ira-color.c (update_copy_costs): Change class intersection
20348 test to reg_class_contents[] test of 'hard_regno'.
20349
7de97f9e
JM
203502011-02-21 Joseph Myers <joseph@codesourcery.com>
20351
20352 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
20353 than Driver option.
20354 * config/hpux11.opt (mt): Likewise.
20355 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
20356 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
20357 * config/vax/elf.opt (mno-asm-pic): Likewise.
20358 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
20359
d1d46f9f
MS
203602011-02-21 Mike Stump <mikestump@comcast.net>
20361
20362 PR target/47822
20363 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
20364 tree so we can get save the type.
20365 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
20366 for CFString instead of trying to use past the end of the builtins.
20367 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
20368 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
20369 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
20370 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
20371 Rename to darwin_builtin_cfstring.
20372 (darwin_init_cfstring_builtins): Return the built type.
20373
23e0d930
UB
203742011-02-21 Uros Bizjak <ubizjak@gmail.com>
20375
20376 PR target/47840
20377 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
20378 (_mm256_insert_epi64): Use _mm_insert_epi64.
20379
192997cf
AS
203802011-02-21 Anatoly Sokolov <aesok@post.ru>
20381
20382 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
20383 * config/stormy16/stormy16-protos.h
20384 (xstormy16_mode_dependent_address_p): Remove.
20385 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
20386 Make static. Change return type to bool. Change argument type to
20387 const_rtx. Remove dead code.
20388 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
20389
e292d003
RG
203902011-02-21 Richard Guenther <rguenther@suse.de>
20391
20392 PR lto/47820
20393 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
20394 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
20395 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
20396 TUs context.
23e0d930 20397 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
e292d003
RG
20398 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
20399
77f846e9
RG
204002011-02-20 Richard Guenther <rguenther@suse.de>
20401
20402 PR lto/47822
20403 * tree.c (free_lang_data_in_decl): Clean builtins from
20404 the TU decl BLOCK_VARS.
23e0d930 20405
b2cddfc8
AO
204062011-02-19 Alexandre Oliva <aoliva@redhat.com>
20407
20408 PR debug/47620
20409 PR debug/47630
20410 * haifa-sched.c (fix_tick_ready): Skip tick computation
20411 for debug insns.
20412
becf4c11
RG
204132011-02-19 Richard Guenther <rguenther@suse.de>
20414
20415 PR lto/47647
20416 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
20417 Remove lazy BLOCK_VARS streaming.
20418 (lto_input_ts_block_tree_pointers): Likewise.
20419 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
20420
27f98305
JM
204212011-02-19 Joseph Myers <joseph@codesourcery.com>
20422
20423 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
20424
064bf3f4
JM
204252011-02-19 Joseph Myers <joseph@codesourcery.com>
20426
20427 * config/i386/biarch32.h, config/i386/mach.h,
20428 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
20429
9215ddc3
JJ
204302011-02-19 Jakub Jelinek <jakub@redhat.com>
20431
20432 PR target/47800
20433 * config/i386/i386.md (peephole2 for shift and plus): Use
20434 operands[1] original mode in the first insn.
20435
8b021004
MS
204362011-02-18 Mike Stump <mikestump@comcast.net>
20437
65ded153 20438 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
8b021004 20439
f84ae14c
JH
204402011-02-18 Jan Hubicka <jh@suse.cz>
20441
20442 PR middle-end/47788
65ded153
EB
20443 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
20444 to zero when the function is not inlinable at all.
f84ae14c 20445
eddabc80
JDA
204462011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20447
20448 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
20449 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
20450 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
20451 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
20452 * config/pa/t-pa64: Likewise.
20453 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
20454
ca3da783
JJ
204552011-02-18 Jakub Jelinek <jakub@redhat.com>
20456
20457 PR driver/47787
20458 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
20459
430aa868
JDA
204602011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20461
20462 PR target/47792
20463 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
20464
4bf7ff7e
AS
204652011-02-18 Anatoly Sokolov <aesok@post.ru>
20466
20467 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
20468 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
20469 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
20470 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
20471 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
20472 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
20473 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
20474 m32r_load_postinc_p, m32r_store_preinc_predec_p,
20475 m32r_legitimate_address_p): New functions.
20476 * config/m32r/constraints.md (constraint "S"): Don't use
20477 STORE_PREINC_PREDEC_P.
20478 (constraint "U"): Don't use LOAD_POSTINC_P.
20479
7efcf910
CLT
204802011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
20481
20482 PR rtl-optimization/46178
20483 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
20484 compute ira_hard_regno_cover_class[].
20485
237d6259
RG
204862011-02-18 Richard Guenther <rguenther@suse.de>
20487
20488 PR lto/47798
20489 * lto-streamer.h (lto_global_var_decls): Declare.
20490 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
20491 statics for global var processing.
20492
12d80acc
RG
204932011-02-18 Richard Guenther <rguenther@suse.de>
20494
20495 PR tree-optimization/47737
20496 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
20497 edge dominance check.
20498
abfea58d
JJ
204992011-02-18 Jakub Jelinek <jakub@redhat.com>
20500
20501 PR debug/47780
20502 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
20503 avoid invalid rtx sharing.
20504
f73c8882
GP
205052011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
20506
20507 * doc/cpp.texi (Obsolete Features): Add background on the
20508 origin of assertions.
20509
d764a8e6
IS
205102011-02-17 Iain Sandoe <iains@gcc.gnu.org>
20511
20512 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
23e0d930 20513 objc_abi == 2.
d764a8e6
IS
20514 * config/darwin.c (output_objc_section_asm_op): Added support for
20515 ABI v1 and v2.
20516 (is_objc_metadata): New.
20517 (darwin_objc2_section): New.
20518 (darwin_objc1_section): New.
20519 (machopic_select_section): Added support for ABI v1 and v2.
20520 (darwin_emit_objc_zeroed): New.
20521 (darwin_output_aligned_bss): Detect objc metadata and treat it
20522 appropriately.
20523 (darwin_asm_output_aligned_decl_common): Same.
20524 (darwin_asm_output_aligned_decl_local): Same.
20525 * config/darwin-sections.def: Updated for ABI v1 and v2.
20526 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
20527 compiling Objective-C code for the NeXT runtime, default to using
20528 ABI version 0 for 32-bit, and version 2 for 64-bit.
20529
0a8134ca
JM
205302011-02-17 Joseph Myers <joseph@codesourcery.com>
20531
20532 * common.opt (optimize_fast): New Variable.
20533 * opts.c (default_options_optimization): Use opts->x_optimize_fast
20534 instead of local variable ofast.
20535
0a256240
NP
205362011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
20537
20538 * doc/invoke.texi (fobjc-abi-version): Documented.
20539 (fobjc-nilcheck): Documented.
20540 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
20541 version.
20542
fa381cb2
JM
205432011-02-17 Joseph Myers <joseph@codesourcery.com>
20544
20545 PR driver/47390
20546 * common.opt (export-dynamic): New Driver option.
20547 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
20548
5437eaa6
JM
205492011-02-17 Joseph Myers <joseph@codesourcery.com>
20550
20551 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
20552
bb7e6d55
AO
205532011-02-17 Alexandre Oliva <aoliva@redhat.com>
20554 Jan Hubicka <jh@suse.cz>
20555
20556 PR debug/47106
20557 PR debug/47402
20558 * cfgexpand.c (account_used_vars_for_block): Remove.
20559 (estimated_stack_frame_size): Use referenced vars.
20560 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
20561 that were referenced in the original function. Test src_fn
20562 rather than cfun. Drop redundant get_var_ann.
20563 (setup_one_parameter): Drop redundant get_var_ann.
20564 (declare_return_variable): Likewise.
20565 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
20566 (copy_arguments_for_versioning): Drop redundant get_var_ann.
20567 * ipa-inline.c (compute_inline_parameters): Do not compute
20568 disregard_inline_limits here.
bb7e6d55
AO
20569 (compute_inlinable_for_current, pass_inlinable): New.
20570 (pass_inline_parameters): Require PROP_referenced_vars.
20571 * cgraphunit.c (cgraph_process_new_functions): Don't run
23e0d930 20572 compute_inline_parameters explicitly unless function is in SSA form.
bb7e6d55
AO
20573 (cgraph_analyze_function): Set .disregard_inline_limits.
20574 * tree-sra.c (convert_callers): Compute inliner parameters
20575 only for functions already in SSA form.
20576
f181a8a7
JM
205772011-02-17 Joseph Myers <joseph@codesourcery.com>
20578
20579 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
20580 -mlittle-endian-data.
20581
c6869789
JM
205822011-02-17 Joseph Myers <joseph@codesourcery.com>
20583
20584 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
20585 -mno-fpu, not -fpu and -no-fpu.
20586 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
20587 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
20588
fbf4bfd3
UB
205892011-02-17 Uros Bizjak <ubizjak@gmail.com>
20590
20591 PR target/43653
20592 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
20593 input reload with PLUS RTX.
20594
70be5dc7
JM
205952011-02-16 Joseph Myers <joseph@codesourcery.com>
20596
20597 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
20598 of InverseVar(MDMX).
20599
30b1646e
JM
206002011-02-16 Joseph Myers <joseph@codesourcery.com>
20601
20602 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
20603 --m4-340.
20604
ab7b71e9
JM
206052011-02-16 Joseph Myers <joseph@codesourcery.com>
20606
20607 * config/mn10300/mn10300.opt (mno-crt0): New.
20608
466f3f08
JM
206092011-02-16 Joseph Myers <joseph@codesourcery.com>
20610
20611 * config/m68k/uclinux.opt (static-libc): New Driver option.
20612
8226cd7b
JM
206132011-02-16 Joseph Myers <joseph@codesourcery.com>
20614
20615 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
20616
45cab1d7
JM
206172011-02-16 Joseph Myers <joseph@codesourcery.com>
20618
20619 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
20620 %{muser-extend-enabled}.
20621
65aab64f
RG
206222011-02-16 Richard Guenther <rguenther@suse.de>
20623
20624 PR tree-optimization/47738
20625 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
20626 the TODO from tree_predictive_commoning.
20627
fc2fa4fb
JL
206282011-02-15 Jeff Law <law@redhat.com>
20629
20630 Revert
20631 2011-01-25 Jeff Law <law@redhat.com>
20632
20633 PR rtl-optimization/37273
20634 * ira-costs.c (scan_one_insn): Detect constants living in memory and
20635 handle them like argument loads from stack slots. Do not double
20636 count memory for memory constants and argument loads from stack slots.
20637
e3a69bb4
MM
206382011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
20639
20640 PR target/47755
20641 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
20642 mode for vector constants. Remove code that checks for TImode.
20643
de650422
AO
206442011-02-15 Alexandre Oliva <aoliva@redhat.com>
20645
20646 PR debug/47106
20647 PR debug/47402
20648 * cgraph.h (compute_inline_parameters): Return void.
20649 * ipa-inline.c (compute_inline_parameters): Adjust.
20650
30925d94
AO
206512011-02-15 Alexandre Oliva <aoliva@redhat.com>
20652
20653 PR debug/47106
20654 PR debug/47402
20655 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
20656 rather than decl.
20657 * cfgexpand.c (estimated_stack_frame_size): Likewise.
20658 * ipa-inline.c (compute_inline_parameters): Adjust.
20659
1b9a784a
AO
206602011-02-15 Alexandre Oliva <aoliva@redhat.com>
20661
20662 PR debug/47106
20663 PR debug/47402
20664 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
20665 Adjust all users. Pass FN to...
20666 * tree-flow-inline.h (first_referenced_var): ... this. Add
20667 fn argument.
20668 * ipa-struct-reorg.c: Adjust.
20669 * tree-dfa.c: Adjust.
20670 * tree-into-ssa.c: Adjust.
20671 * tree-sra.c: Adjust.
20672 * tree-ssa-alias.c: Adjust.
20673 * tree-ssa-live.c: Adjust.
20674 * tree-ssa.c: Adjust.
20675 * tree-ssanames.c: Adjust.
20676 * tree-tailcall.c: Adjust.
20677
27c6b086
AO
206782011-02-15 Alexandre Oliva <aoliva@redhat.com>
20679
20680 PR debug/47106
20681 PR debug/47402
20682 * tree-flow.h (referenced_var_lookup): Add fn parameter.
20683 Adjust all callers.
20684 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
20685 * tree-flow-inline.h: Adjust.
20686 * gimple-pretty-print.c: Adjust.
20687 * tree-into-ssa.c: Adjust.
20688 * tree-ssa.c: Adjust.
20689 * cfgexpand.c: Adjust.
20690
679e8183
NF
206912011-02-15 Nathan Froyd <froydnj@codesourcery.com>
20692
fbf4bfd3
UB
20693 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
20694 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20695 (EXTRA_CONSTRAINT): Delete.
20696 * config/iq2000/constraints.md: New file.
20697 * config/iq2000/iq2000.md: Include it.
679e8183
NF
20698 (define_insn ""): Delete.
20699 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
20700 unsupported constraint letters from patterns.
20701 (call_value, call_value_internal1): Likewise.
20702 (call_value_multiple_internal1): Likewise.
20703
a45d420a
NC
207042011-02-15 Nick Clifton <nickc@redhat.com>
20705
20706 * config/mn10300/mn10300.c: Include tm-constrs.h.
20707 (struct liw_data): New data structure describing an LIW candidate
20708 instruction.
20709 (extract_bundle): Use struct liw_data. Allow small integer
20710 operands for some instructions.
20711 (check_liw_constraints): Use struct liw_data. Remove swapped
20712 parameter. Add comments describing the checks. Fix bug when
20713 assigning the source of liw1 to the source of liw2.
20714 (liw_candidate): Delete. Code moved into extract_bundle.
20715 (mn10300_bundle_liw): Use struct liw_data. Check constraints
20716 before swapping.
20717 * config/mn10300/predicates.md (liw_operand): New predicate.
20718 Allows registers and small integer constants.
20719 * config/mn10300/constraints.md (O): New constraint. Accetps
20720 integers in the range -8 to +7 inclusive.
20721 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
20722 for moving a small integer into a register. Give this alternative
20723 LIW attributes.
20724 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
20725 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
20726 using the J,K,L and M constraints,
20727 (liw): Remove SI mode on second operands to allow for HI and QI
20728 mode values.
20729 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
20730 instruction.
20731
48feba28
RG
207322011-02-15 Richard Guenther <rguenther@suse.de>
20733
20734 PR tree-optimization/47743
20735 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
20736 for a non-type-compatible VN lookup bail out.
20737
ad1c1eeb
NF
207382011-02-15 Nathan Froyd <froydnj@codesourcery.com>
20739
20740 * config/fr30/constraints.md: New file.
20741 * config/fr30/fr30.md: Include it.
20742 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
20743 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20744 (EXTRA_CONSTRAINT): Delete.
20745
49ac143d
NF
207462011-02-15 Nathan Froyd <froydnj@codesourcery.com>
20747
20748 * config/frv/constraints.md: New file.
20749 * config/frv/predicates.md: Include it.
20750 * config/frv/frv.c (reg_class_from_letter): Delete.
20751 (frv_option_override): Don't initialize it.
20752 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
20753 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
20754 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
20755 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
20756 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
20757 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20758 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
20759 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
20760 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
20761 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
20762 (REG_CLASS_FROM_CONSTRAINT): Delete.
20763
c95f9494
JJ
207642011-02-15 Jakub Jelinek <jakub@redhat.com>
20765
20766 PR middle-end/47581
20767 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
20768 if frame size is 0 in a leaf function.
20769
13aed611
RO
207702011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20771
20772 PR pch/14940
20773 * config/alpha/host-osf.c: New file.
20774 * config/alpha/x-osf: New file.
20775 * config.host (alpha*-dec-osf*): Use it.
20776
b09c3081
AS
207772011-02-14 Anatoly Sokolov <aesok@post.ru>
20778
20779 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
20780 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
20781 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
20782 (rx_mode_dependent_address_p): ...this. Make static. Change argument
20783 type to const_rtx.
20784 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
20785
d634083b
NF
207862011-02-14 Nathan Froyd <froydnj@codesourcery.com>
20787
20788 * config/stormy16/constraints.md: New file.
20789 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
20790 Use satisfies_constraint_Q and satisfies_constraint_R.
20791 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
20792 Delete.
20793 (xstormy16_legitiamte_address_p): Declare.
20794 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
20795 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20796 (EXTRA_CONSTRAINT): Delete.
fbf4bfd3 20797 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
d634083b
NF
20798 Un-staticize.
20799 (xstormy16_extra_constraint_p): Delete.
20800
c7dd803e
EB
208012011-02-14 Eric Botcazou <ebotcazou@adacore.com>
20802
20803 PR tree-optimization/46494
20804 * loop-unroll.c (split_edge_and_insert): Adjust comment.
20805 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
20806 (pass_rtl_loop_done): Add TODO_verify_flow.
20807 * fwprop.c (pass_rtl_fwprop): Likewise.
20808 * modulo-sched.c (pass_sms): Likewise.
20809 * tree-ssa-dom.c (pass_dominator): Likewise.
20810 * tree-ssa-loop-ch.c (pass_ch): Likewise.
20811 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
20812 (pass_tree_loop_done): Likewise.
20813 * tree-ssa-pre.c (execute_pre): Likewise.
20814 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
20815 * tree-ssa-sink.c (pass_sink_code): Likewise.
20816 * tree-vrp.c (pass_vrp): Likewise.
20817
c6150df6
NF
208182011-02-14 Nathan Froyd <froydnj@codesourcery.com>
20819
c7dd803e
EB
20820 * config/v850/constraints.md: New file.
20821 * config/v850/v850.md: Include it.
20822 * config/v850/predicates.md (reg_or_0_operand): Use
20823 satisfies_constraint_G.
20824 (special_symbolref_operand): Use satisfies_constraint_K.
20825 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
20826 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
20827 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
20828 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
20829 (EXTRA_CONSTRAINT): Delete.
20830 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
20831 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
20832 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
c6150df6 20833
30dd1ea3
AS
208342011-02-14 Anatoly Sokolov <aesok@post.ru>
20835
20836 PR target/47696
20837 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
20838 description.
20839
944f4bb3
NF
208402011-02-14 Nathan Froyd <froydnj@codesourcery.com>
20841
20842 * config/mcore/constraints.md: New file.
20843 * config/mcore/mcore.md: Include it.
20844 * config/mcore/mcore.c (reg_class_from_letter): Delete.
20845 * config/mcore/mcore.h (reg_class_from_letter): Delete.
20846 (REG_CLASS_FROM_LETTER): Delete.
20847 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
20848 insn_const_int_ok_for_constraint.
20849 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
20850 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
20851 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20852 (EXTRA_CONSTRAINT): Delete.
20853
ad56a54c
RO
208542011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20855
20856 PR ada/41929
20857 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
20858 (IS_SIGHANDLER): Define.
20859 (sparc64_is_sighandler): New function, split off from
20860 sparc64_fallback_frame_state.
20861 (sparc_is_sighandler): New function, split off from
20862 sparc_fallback_frame_state.
20863 (sparc64_fallback_frame_state): Merge with ...
20864 (sparc_fallback_frame_state): ... this into ...
20865 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
fbf4bfd3
UB
20866 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
20867 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
20868 stack instead of hardcoded offsets.
ad56a54c 20869
fbf4bfd3 208702011-02-14 Andriy Gapon <avg@freebsd.org>
67932abf
AG
20871
20872 PR target/45808
20873 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
20874
029c8f3e
RW
208752011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20876
20877 * configure: Regenerate.
20878
a016dc83
JM
208792011-02-12 Joseph Myers <joseph@codesourcery.com>
20880
20881 PR driver/45731
20882 * gcc.c (asm_options): Correct spec matching --target-help.
20883
8957a0ec
MJ
208842011-02-12 Martin Jambor <mjambor@suse.cz>
20885
20886 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
20887 to gimple call error.
20888
6ef828bc
MS
208892011-02-12 Mike Stump <mikestump@comcast.net>
20890
20891 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
20892 comments in backslash regions.
20893
a4015be5
MS
208942011-02-12 Mike Stump <mikestump@comcast.net>
20895 Jakub Jelinek <jakub@redhat.com>
20896 Iain Sandoe <iains@gcc.gnu.org>
20897
20898 PR target/47324
20899 * dwarf2out.c (output_cfa_loc): When required, apply the
20900 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
20901 (output_loc_sequence): Likewise.
20902 (output_loc_operands_raw): Likewise.
20903 (output_loc_sequence_raw): Likewise.
20904 (output_cfa_loc): Likewise.
20905 (output_loc_list): Suppress register number adjustment when
20906 calling output_loc_sequence()
20907 (output_die): Likewise.
20908
5378dda2
AS
209092011-02-12 Anatoly Sokolov <aesok@post.ru>
20910
20911 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
20912 Remove macros.
20913 * config/xtensa/xtensa.c (xtensa_register_move_cost,
20914 xtensa_memory_move_cost): New functions.
20915 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
20916
f3d533d3
AO
209172011-02-12 Alexandre Oliva <aoliva@redhat.com>
20918
20919 PR lto/47225
20920 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
20921 in the current directory.
20922 * configure: Rebuilt.
20923
9d53403c
IS
209242011-02-12 Iain Sandoe <iains@gcc.gnu.org>
20925
20926 * config/darwin.c (darwin_override_options): Add a hunk missed
fbf4bfd3 20927 from the commit of r168571. Trim comment line lengths and
9d53403c
IS
20928 correct indents of the preceding block.
20929
a350a6c8
IS
209302011-02-12 Iain Sandoe <iains@gcc.gnu.org>
20931
20932 * gcc.c (driver_handle_option): Concatenate the argument to -F with
20933 the switch.
20934
bab79a40
JM
209352011-02-11 Joseph Myers <joseph@codesourcery.com>
20936
20937 * common.opt (nostartfiles): New Driver option.
20938
1bbc6693
XDL
209392011-02-11 Xinliang David Li <davidxl@google.com>
20940
20941 PR tree-optimization/47707
20942 * tree-chrec.c (convert_affine_scev): Keep type precision.
20943
1da7d8c0
EB
209442011-02-11 Eric Botcazou <ebotcazou@adacore.com>
20945
20946 PR tree-optimization/47420
20947 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
20948
209492011-02-11 Pat Haugen <pthaugen@us.ibm.com>
3f82421f
PH
20950
20951 PR rtl-optimization/47614
20952 * rtl.h (check_for_inc_dec): Declare.
20953 * dse.c (check_for_inc_dec): Externalize...
20954 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
20955 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
20956
4df47bca
JM
209572011-02-11 Joseph Myers <joseph@codesourcery.com>
20958
20959 PR driver/47678
20960 * gcc.c (main): Do not compile inputs if there were errors in
20961 option handling.
20962 * opts-common.c (read_cmdline_option): Check for wrong language
20963 after other error checks.
20964
61502ca8
NF
209652011-02-11 Nathan Froyd <froydnj@codesourcery.com>
20966
20967 * cgraph.c: Fix comment typos.
20968 * cgraph.h: Likewise.
20969 * cgraphunit.c: Likewise.
20970 * ipa-cp.c: Likewise.
20971 * ipa-inline.c: Likewise.
20972 * ipa-prop.c: Likewise.
20973 * ipa-pure-const.c: Likewise.
20974 * ipa-ref.c: Likewise.
20975 * ipa-reference.c: Likewise.
20976
b63f974e
JJ
209772011-02-11 Jakub Jelinek <jakub@redhat.com>
20978
d50c5e0c
JJ
20979 PR debug/47684
20980 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
b63f974e 20981
6dd2a13c
RO
209822011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20983
20984 PR testsuite/47400
20985 * doc/sourcebuild.texi (Require Support): Document
20986 dg-require-ascii-locale.
20987
4a087ccf
MX
209882011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
20989
20990 * doc/lto.texi (Write summary): Fix missing parentheses.
20991
a4403164
DD
209922011-02-10 DJ Delorie <dj@redhat.com>
20993
20994 * config/m32c/m32c.c (m32c_option_override): Disable
20995 -fcombine-stack-adjustments until flag value tracking and compare
20996 optimization can be rewritten.
20997
4fac45bd
PB
209982011-02-10 Peter Bergner <bergner@vnet.ibm.com>
20999
21000 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
21001 PROCESSOR_POWER7.
21002 (PROCESSOR_DEFAULT64): Likewise.
21003
72602cd1
RH
210042011-02-10 Richard Henderson <rth@redhat.com>
21005
21006 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
21007 change from 2011-02-03.
21008 * config/rx/rx.c (flags_from_code): Likewise.
21009 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
21010 is valid, n/pz otherwise.
21011 (rx_select_cc_mode): Return CCmode if Y is not zero.
21012
ea57f573
RG
210132011-02-10 Richard Guenther <rguenther@suse.de>
21014
ea4c3e65 21015 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
ea57f573 21016
92b1d23b
RG
210172011-02-10 Richard Guenther <rguenther@suse.de>
21018
21019 PR tree-optimization/47677
21020 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
21021
525a2d06
JJ
210222011-02-10 Jakub Jelinek <jakub@redhat.com>
21023
21024 PR target/47665
21025 * combine.c (make_compound_operation): Only change shifts into
21026 multiplication for SCALAR_INT_MODE_P.
21027
06c969bd
JZ
210282011-02-10 Jie Zhang <jie@codesourcery.com>
21029
21030 PR testsuite/47622
21031 Revert
21032 2011-02-05 Jie Zhang <jie@codesourcery.com>
21033 PR debug/42631
21034 * web.c (entry_register): Don't clobber the number of the
21035 first uninitialized reference in used[].
21036
282ec48e
RG
210372011-02-09 Richard Guenther <rguenther@suse.de>
21038
21039 PR tree-optimization/47664
21040 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
21041 all edges again.
21042
df98c3e8
DE
210432011-02-09 David Edelsohn <dje.gcc@gmail.com>
21044
d0f21cd6
DE
21045 PR target/46481
21046 PR target/47032
df98c3e8
DE
21047 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
21048 PROCESSOR_POWER7.
21049 (PROCESSOR_DEFAULT64): Same.
21050 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
21051
67b6839f
RO
210522011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21053
21054 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
21055
4fd73214
MJ
210562011-02-09 Martin Jambor <mjambor@suse.cz>
21057
21058 PR middle-end/45505
21059 * tree-sra.c (struct access): New flags grp_scalar_read and
21060 grp_scalar_write. Changed description of assignment read and write
21061 flags.
21062 (dump_access): Dump new flags, reorder all of them.
21063 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
21064 to detect multiple scalar reads.
21065 (analyze_access_subtree): Use the new scalar read write flags instead
21066 of the old flags. Adjusted comments.
21067
91140cd3
DD
210682011-02-08 DJ Delorie <dj@redhat.com>
21069
21070 PR target/47548
21071 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
21072 patterns.
21073
4254bbfe
JM
210742011-02-08 Joseph Myers <joseph@codesourcery.com>
21075
21076 * config/m68k/uclinux.opt: New.
21077 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
21078
f1fda84e
JM
210792011-02-08 Joseph Myers <joseph@codesourcery.com>
21080
21081 * config/cris/elf.opt (sim): New Driver option.
21082
4933ae74
JM
210832011-02-08 Joseph Myers <joseph@codesourcery.com>
21084
21085 * config/xtensa/elf.opt: New.
21086 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
21087
4ad70280
JM
210882011-02-08 Joseph Myers <joseph@codesourcery.com>
21089
21090 * config/vax/elf.opt: New.
21091 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
21092
20893707
JM
210932011-02-08 Joseph Myers <joseph@codesourcery.com>
21094
21095 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
21096
b8e7038e
JM
210972011-02-08 Joseph Myers <joseph@codesourcery.com>
21098
21099 * config/gnu-user.opt: New.
21100 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
21101 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
21102 *-*-uclinux*): Use gnu-user.opt.
21103
e1c5225a
TS
211042011-02-08 Thomas Schwinge <thomas@schwinge.name>
21105
21106 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
21107 * config/i386/gnu.h (CPP_SPEC): Likewise.
21108
5e46b0c6
ILT
211092011-02-08 Ian Lance Taylor <iant@google.com>
21110
21111 * common.opt (fcx-limited-range): Add SetByCombined flag.
21112 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
21113 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
21114 (fassociative-math, freciprocal-math): Likewise.
21115 (funsafe-math-optimizations): Likewise.
21116 * opth-gen.awk: Handle SetByCombined.
21117 * optc-gen.awk: Likewise.
ea4c3e65 21118 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
5e46b0c6
ILT
21119 (set_unsafe_math_optimizations_flags): Likewise.
21120 * doc/options.texi (Option properties): Document SetByCombined.
21121
32243d46
JM
211222011-02-08 Joseph Myers <joseph@codesourcery.com>
21123
21124 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
21125 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
21126 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
21127 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
21128 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
21129
479c1fb3
SP
211302011-02-08 Sebastian Pop <sebastian.pop@amd.com>
21131
21132 PR tree-optimization/46834
21133 PR tree-optimization/46994
21134 PR tree-optimization/46995
21135 * graphite-sese-to-poly.c (used_outside_reduction): New.
21136 (detect_commutative_reduction): Call used_outside_reduction.
21137 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
21138 translate_scalar_reduction_to_array only when at least one
21139 loop-phi/close-phi tuple has been detected.
21140
3865a06f
RG
211412011-02-08 Richard Guenther <rguenther@suse.de>
21142
21143 PR middle-end/47639
21144 * tree-vect-generic.c (expand_vector_operations_1): Update
21145 stmts here ...
21146 (expand_vector_operations): ... not here. Cleanup EH info
21147 and the CFG if required.
21148
62902f3f
RG
211492011-02-08 Richard Guenther <rguenther@suse.de>
21150
21151 PR tree-optimization/47641
21152 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
21153 require type compatibility.
21154
0efb9d64
AK
211552011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21156
21157 * gimple-low.c (lower_function_body): Don't remove the location of
21158 the return statement here.
21159 (lower_gimple_return): Do it here instead but only if the return
21160 statement is actually used twice.
21161
034b8ae4
RG
211622011-02-08 Richard Guenther <rguenther@suse.de>
21163
21164 PR tree-optimization/47632
21165 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
21166 unused up_to_stmt parameter, return whether cfg-cleanup is
21167 necessary, remove EH info properly.
21168 (forward_propagate_into_gimple_cond): Adjust caller.
21169 (forward_propagate_into_cond): Likewise.
21170 (forward_propagate_comparison): Likewise.
21171 (tree_ssa_forward_propagate_single_use_vars): Make
21172 forward_propagate_comparison case similar to the two others.
21173
298362c8
NC
211742011-02-08 Nick Clifton <nickc@redhat.com>
21175
21176 * config/mn10300/mn10300.opt (mliw): New command line option.
21177 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
21178 (liw_bundling): New automaton.
21179 (liw): New attribute.
21180 (liw_op): New attribute.
21181 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
21182 (movsi_internal): Add LIW attributes.
21183 (andsi3): Likewise.
21184 (iorsi3): Likewise.
21185 (xorsi3): Likewise.
21186 (addsi3): Separate register and immediate alternatives.
21187 Add LIW attributes.
21188 (subsi3): Likewise.
21189 (cmpsi): Likewise.
21190 (aslsi3): Likewise.
21191 (lshrsi3): Likewise.
21192 (ashrsi3): Likewise.
21193 (liw): New pattern.
21194 * config/mn10300/mn10300.c (liw_op_names): New
21195 (mn10300_print_operand): Handle 'W' operand descriptor.
21196 (extract_bundle): New function.
21197 (check_liw_constraints): New function.
21198 (liw_candidate): New function.
21199 (mn10300_bundle_liw): New function.
21200 (mn10300_reorg): New function.
21201 (TARGET_MACHINE_DEPENDENT_REORG): Define.
21202 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
21203 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
21204 __LIW__ or __NO_LIW__.
21205 * doc/invoke.texi: Describe the -mliw command line option.
21206
90488014
JDA
212072011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21208
21209 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
21210 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
21211 pthread_mutex_unlock): Remove.
21212 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
21213 * config/pa/t-pa64: Likewise.
21214 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
21215 shared libc if not linking against libpthread.
21216 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
21217
689ff841
IS
212182011-02-07 Iain Sandoe <iains@gcc.gnu.org>
21219
21220 PR target/47558
21221 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
21222 on 10.6 and later to ensure that we always use the unwinder from
21223 the system. Only add -no_compact_unwind when tarteting darwin
21224 10.6 or later.
21225
821014aa
SE
212262011-02-07 Steve Ellcey <sje@cup.hp.com>
21227
21228 PR target/46997
21229 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
21230 (vec_interleave_lowv2sf): Ditto.
21231 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
21232 (vec_extract_oddv2sf): Ditto.
21233
41cf94fb
MS
212342011-02-07 Mike Stump <mikestump@comcast.net>
21235
62dea57d 21236 PR target/42333
41cf94fb
MS
21237 Add __ieee_divdc3 entry point.
21238 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
21239 entry point.
21240 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
21241 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
21242 * config/darwin.c (darwin_rename_builtins): Add.
21243 * config/darwin-protos.h (darwin_rename_builtins): Add.
21244
ee09a3dd
MM
212452011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
21246
21247 PR target/47636
21248 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
21249 for the condition.
21250
83296cd0
MS
212512011-02-07 Mike Stump <mikestump@comcast.net>
21252
ea4c3e65 21253 * config/darwin.opt (mmacosx-version-min): Update default OS version.
83296cd0 21254
0f4e946f
DC
212552011-02-07 Denis Chertykov <chertykov@gmail.com>
21256
21257 PR target/47534
21258 * config/avr/libgcc.S (exit): Move .endfunc
21259
1ec87690
RG
212602011-02-07 Richard Guenther <rguenther@suse.de>
21261
21262 PR tree-optimization/47615
21263 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
21264 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
21265 (run_scc_vn): Initialize it.
21266 (visit_reference_op_load): Use it.
21267 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
21268
b46ae6da
UW
212692011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21270
21271 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
21272 DImode trapping arithmetic libfuncs.
21273
c0aae19c
RG
212742011-02-07 Richard Guenther <rguenther@suse.de>
21275
21276 PR tree-optimization/47621
21277 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
21278 two duplicates ...
21279 (execute_update_addresses_taken): ... here. Make it more
21280 conservative in what we accept.
21281
295d926b
JM
212822011-02-06 Joseph Myers <joseph@codesourcery.com>
21283
21284 * config/sparc/freebsd.h (ASM_SPEC): Define.
21285 * config/sparc/vxworks.h (ASM_SPEC): Define.
21286
bdeb2471
JM
212872011-02-06 Joseph Myers <joseph@codesourcery.com>
21288
21289 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
21290
d5d3781a
SB
212912011-02-06 Steven Bosscher <steven@gcc.gnu.org>
21292
21293 * doc/invoke.texi: Remove reference to compiler internals from
21294 user documentation.
21295
21296 * reg-notes.def: Remove REG_VALUE_PROFILE.
21297 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
21298
c42c09fc
JJ
212992011-02-05 Jakub Jelinek <jakub@redhat.com>
21300
21301 PR middle-end/47610
21302 * varasm.c (default_section_type_flags): If decl is NULL,
38be4072 21303 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
c42c09fc 21304
beea2755
JZ
213052011-02-05 Jie Zhang <jie@codesourcery.com>
21306
21307 PR debug/42631
21308 * web.c (entry_register): Don't clobber the number of the
21309 first uninitialized reference in used[].
21310
a130584a
SP
213112011-02-04 Sebastian Pop <sebastian.pop@amd.com>
21312
21313 PR tree-optimization/46194
21314 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
21315 (build_classic_dist_vector_1): Do not represent classic distance
21316 vectors when the access functions are variating in different loops.
21317
962101ac
JM
213182011-02-04 Joseph Myers <joseph@codesourcery.com>
21319
21320 * config/mips/iris6.opt: New.
21321 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
21322
55eaaa5b
RH
213232011-02-04 Richard Henderson <rth@redhat.com>
21324 Steve Ellcey <sje@cup.hp.com>
21325
21326 PR target/46997
21327 * config/ia64/predicates.md (mux1_brcst_element): New.
21328 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
21329 * config/ia64/ia64.c (ia64_unpack_assemble): New.
21330 (ia64_unpack_sign): New.
21331 (ia64_expand_unpack): Rewrite using new routines.
21332 (ia64_expand_widen_sum): Ditto.
21333 (ia64_expand_dot_prod_v8qi): Ditto.
21334 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
21335 routines, add endian check.
21336 (pmpy2_even): Rename from pmpy2_r, add endian check.
21337 (pmpy2_odd): Rename from pmpy2_l, add endian check.
21338 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
21339 (vec_widen_smult_hi_v4hi): Ditto.
21340 (vec_widen_umult_lo_v4hi): Ditto.
21341 (vec_widen_umult_hi_v4hi): Ditto.
21342 (mulv2si3): Change endian checks.
21343 (sdot_prodv4hi): Rewrite with new calls.
21344 (udot_prodv4hi): New.
21345 (vec_pack_ssat_v4hi): Add endian check.
21346 (vec_pack_usat_v4hi): Ditto.
21347 (vec_pack_ssat_v2si): Ditto.
21348 (max1_even): Rename from max1_r, add endian check.
21349 (max1_odd): Rename from max1_l, add endian check.
21350 (*mux1_rev): Format change.
21351 (*mux1_mix): Ditto.
21352 (*mux1_shuf): Ditto.
21353 (*mux1_alt): Ditto.
21354 (*mux1_brcst_v8qi): Use new predicate.
21355 (vec_extract_evenv8qi): Remove endian check.
21356 (vec_extract_oddv8qi): Ditto.
21357 (vec_interleave_lowv4hi): Format change.
21358 (vec_interleave_highv4hi): Ditto.
21359 (mix2_even): Rename from mix2_r, add endian check.
21360 (mix2_odd): Rename from mux2_l, add endian check.
21361 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
21362 (vec_extract_evenodd_helper): Format change.
21363 (vec_extract_evenv4hi): Remove endian check.
21364 (vec_extract_oddv4hi): Remove endian check.
21365 (vec_interleave_lowv2si): Format change.
21366 (vec_interleave_highv2si): Format change.
21367 (vec_initv2si): Remove endian check.
21368 (vecinit_v2si): Add endian check.
21369 (reduc_splus_v2sf): Add endian check.
21370 (reduc_smax_v2sf): Ditto.
21371 (reduc_smin_v2sf): Ditto.
21372 (vec_initv2sf): Remove endian check.
21373 (fpack): Add endian check.
21374 (fswap): Add endian check.
21375 (vec_interleave_highv2sf): Add endian check.
21376 (vec_interleave_lowv2sf): Add endian check.
21377 (fmix_lr): Add endian check.
21378 (vec_setv2sf): Format change.
21379 (*vec_extractv2sf_0_be): Use shift to extract operand.
21380 (*vec_extractv2sf_1_be): New.
21381 (vec_pack_trunc_v4hi): Add endian check.
21382 (vec_pack_trunc_v2si): Format change.
21383
dcde5957
JJ
213842011-02-04 Jakub Jelinek <jakub@redhat.com>
21385
21386 PR inline-asm/23200
21387 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
38be4072 21388 do bb, locus and block comparison and disallow loads if it is not set.
dcde5957
JJ
21389 (stmt_is_replaceable_p): New function.
21390 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
21391 callers.
21392 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
21393 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
21394 SSA_NAME_DEF_STMT.
21395 * tree-flow.h (stmt_is_replaceable_p): New prototype.
21396
a64a8e5a
JM
213972011-02-04 Joseph Myers <joseph@codesourcery.com>
21398
21399 * config/rs6000/xilinx.opt: New.
21400 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
21401
4da2ed2f
JM
214022011-02-04 Joseph Myers <joseph@codesourcery.com>
21403
21404 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
21405
a6e508f9
AS
214062011-02-03 Anatoly Sokolov <aesok@post.ru>
21407
21408 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
21409 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
21410 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
21411 secondary_reload_info, xtensa_secondary_reload): Remove.
21412 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
21413 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
21414 (xtensa_preferred_reload_class): Make static. Change return and
21415 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
21416 Use CONST_DOUBLE_P predicate.
21417 (xtensa_preferred_output_reload_class): New function.
21418 (xtensa_secondary_reload): Make static.
21419
82dc0de3
JM
214202011-02-03 Joseph Myers <joseph@codesourcery.com>
21421
21422 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
21423 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
21424 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
21425
7fece979
JJ
214262011-02-03 Jakub Jelinek <jakub@redhat.com>
21427
21428 PR middle-end/31490
21429 * output.h (SECTION_RELRO): Define.
21430 (SECTION_MACH_DEP): Adjust.
21431 (get_variable_section): New prototype.
21432 * varpool.c (varpool_finalize_named_section_flags): New function.
21433 (varpool_assemble_pending_decls): Call it.
21434 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
21435 * cgraphunit.c (cgraph_output_in_order): Call
21436 varpool_finalize_named_section_flags.
21437 * varasm.c (get_section): Allow section flags conflicts between
21438 relro and read-only sections if the section hasn't been declared yet.
21439 Set SECTION_OVERRIDE after diagnosing section type conflict.
21440 (get_variable_section): No longer static.
21441 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
21442 readonly sections that need relocations.
21443 (decl_readonly_section_1): New function.
21444 (decl_readonly_section): Use it.
21445
21446 Revert:
509d65dd 21447 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
7fece979
JJ
21448 Steve Ellcey <sje@cup.hp.com>
21449
21450 PR middle-end/31490
21451 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
21452 if section attribute used.
21453
d18d5478
JJ
214542011-02-03 Jakub Jelinek <jakub@redhat.com>
21455
21456 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
21457 * config/darwin.c (SECTION_NO_ANCHOR): Define.
21458 (darwin_init_sections): Remove assertion.
21459
6479ed4b
NC
214602011-02-03 Nick Clifton <nickc@redhat.com>
21461
21462 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
21463 lt and ge.
38be4072 21464 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
6479ed4b
NC
21465 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
21466 instead of "n" and "pz".
21467 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
21468 CC_FLAG_S.
21469
89843f5d
JJ
214702011-02-03 Jakub Jelinek <jakub@redhat.com>
21471
65450d64
JJ
21472 PR target/47312
21473 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
21474 fma, expand FMA_EXPR as fma{,f,l} call.
21475
7d58701c
JJ
21476 PR lto/47274
21477 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
21478 copy them into a unsigned char variable and pass address of it to
21479 lto_output_data_stream.
21480
89843f5d
JJ
21481 PR target/47564
21482 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
21483 around backend_init_target and lang_dependent_init_target calls.
21484 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
21485 (verify_cgraph_node): Don't call set_cfun here. Use
21486 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
21487 Set error_found for incorrectly represented calls to thunks.
21488
4deef538
AO
214892011-02-03 Alexandre Oliva <aoliva@redhat.com>
21490
21491 PR debug/43092
21492 PR rtl-optimization/43494
21493 * rtl.h (for_each_inc_dec_fn): New type.
21494 (for_each_inc_dec): Declare.
21495 * rtlanal.c (struct for_each_inc_dec_ops): New type.
21496 (for_each_inc_dec_find_inc_dec): New fn.
21497 (for_each_inc_dec_find_mem): New fn.
21498 (for_each_inc_dec): New fn.
21499 * dse.c (struct insn_size): Remove.
21500 (replace_inc_dec, replace_inc_dec_mem): Remove.
21501 (emit_inc_dec_insn_before): New fn.
21502 (check_for_inc_dec): Use it, along with for_each_inc_dec.
21503 (canon_address): Pass mem modes to cselib_lookup.
21504 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
21505 (cselib_lookup_from_insn): Likewise.
21506 (cselib_subst_to_values): Likewise.
21507 * cselib.c (find_slot_memmode): New var.
21508 (cselib_find_slot): New fn. Use it instead of
21509 htab_find_slot_with_hash everywhere.
21510 (entry_and_rtx_equal_p): Use find_slot_memmode.
21511 (autoinc_split): New fn.
21512 (rtx_equal_for_cselib_p): Rename and implement in terms of...
21513 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
21514 Deal with autoinc. Special-case recursion into MEMs.
21515 (cselib_hash_rtx): Likewise.
21516 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
21517 address and MEM modes.
21518 (cselib_subst_to_values): Add memmode, pass it on.
21519 Deal with autoinc.
21520 (cselib_lookup): Add memmode argument, pass it on.
21521 (cselib_lookup_from_insn): Add memmode.
21522 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
21523 (struct cselib_record_autoinc_data): New.
21524 (cselib_record_autoinc_cb): New fn.
21525 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
21526 mode to cselib_lookup. Reset autoinced REGs here instead of...
21527 (cselib_process_insn): ... here.
21528 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
21529 to cselib_lookup.
21530 (add_uses): Likewise, also to cselib_subst_to_values.
21531 (add_stores): Likewise.
276e0224 21532 * sched-deps.c (add_insn_mem_dependence): Pass mode to
4deef538
AO
21533 cselib_subst_to_values.
21534 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
21535 * gcse.c (do_local_cprop): Adjusted.
21536 * postreload.c (reload_cse_simplify_set): Adjusted.
21537 (reload_cse_simplify_operands): Adjusted.
21538 * sel-sched-dump (debug_mem_addr_value): Pass mode.
21539
1551d44a
AO
215402011-02-03 Alexandre Oliva <aoliva@redhat.com>
21541
21542 PR tree-optimization/45122
21543 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
21544 unsafe assumptions when there's more than one loop exit.
21545
c9485473
MM
215462011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21547
21548 PR target/47272
21549 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21550 Document using vector double with the load/store builtins, and
21551 that the load/store builtins always use Altivec instructions.
21552
21553 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
21554 to use altivec memory instructions, even on VSX.
21555 (vector_altivec_store_<mode>): Ditto.
21556
21557 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
21558 function.
21559
21560 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21561 V2DF, V2DI support to load/store overloaded builtins.
21562
21563 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
21564 altivec load/store builtins for V2DF/V2DI types.
21565
21566 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
21567 set avoid indexed addresses on power6 if -maltivec.
21568 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
21569 vector_altivec_load/vector_altivec_store builtins.
21570 (altivec_expand_st_builtin): Ditto.
21571 (altivec_expand_builtin): Add VSX memory builtins.
21572 (rs6000_init_builtins): Add V2DI types to internal types.
21573 (altivec_init_builtins): Add support for V2DF/V2DI altivec
21574 load/store builtins.
21575 (rs6000_address_for_altivec): Insure memory address is appropriate
21576 for Altivec.
21577
21578 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
21579 vec_vsx_ld and vec_vsx_st.
21580 (vsx_store_<mode>): Ditto.
21581
21582 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
21583 variables to hold long long types for VSX vector memory builtins.
21584 (RS6000_BTI_unsigned_long_long): Ditto.
21585 (long_long_integer_type_internal_node): Ditti.
21586 (long_long_unsigned_type_internal_node): Ditti.
21587
21588 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
21589 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
21590 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
21591
21592 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
21593 short cuts.
21594 (vec_vsx_st): Ditto.
21595
b24d1acf
JM
215962011-02-02 Joseph Myers <joseph@codesourcery.com>
21597
21598 * config/pa/pa-hpux10.opt: New.
21599 * config/hpux11.opt (pthread): New Driver option.
21600 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
21601 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
21602
aa18dd0f
JM
216032011-02-02 Joseph Myers <joseph@codesourcery.com>
21604
21605 * config/ia64/vms.opt: New.
21606 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
21607
28fc3eee
MM
216082011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
21609
21610 PR target/47580
21611 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
21612 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
21613 generator functions.
21614 (vsx_floatuns<VSi><mode>2): Ditto.
21615 (vsx_fix_trunc<mode><VSi>2): Ditto.
21616 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
21617
b5838b1f
JM
216182011-02-02 Joseph Myers <joseph@codesourcery.com>
21619
21620 * config/i386/djgpp.opt (posix): New Driver option.
21621
0db8fa89
GP
216222011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
21623
21624 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
21625 Move to the unsupported targets list.
21626
9cd4f22a
PB
216272011-02-02 Peter Bergner <bergner@vnet.ibm.com>
21628
21629 PR rtl-optimization/47525
21630 * df-scan.c: Update copyright years.
21631 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
21632 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
21633
9ed8059c
RO
216342011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21635
21636 * config/i386/sysv4.h (TARGET_VERSION): Remove.
21637 (SUBTARGET_RETURN_IN_MEMORY): Remove.
21638 (ASM_OUTPUT_ASCII): Remove.
21639 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
21640
2a737389
JL
216412011-02-02 Jeff Law <law@redhat.com>
21642
21643 PR middle-end/47543
21644 * reload.c (find_reloads_address): Handle reg+d address where both
21645 components are invalid by reloading the entire address.
21646
9dac82c4
SP
216472011-02-02 Sebastian Pop <sebastian.pop@amd.com>
21648 Richard Guenther <rguenther@suse.de>
21649
21650 PR tree-optimization/40979
21651 PR bootstrap/47044
21652 * passes.c (init_optimization_passes): After LIM call copy_prop
21653 and DCE to clean up.
21654 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
21655
14dd9aab
SP
216562011-02-02 Sebastian Pop <sebastian.pop@amd.com>
21657
21658 PR tree-optimization/47576
21659 PR tree-optimization/47555
21660 * doc/invoke.texi (scev-max-expr-complexity): Documented.
21661 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
21662 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
21663 * tree-scalar-evolution.c (follow_ssa_edge): Use
21664 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
21665
5cbf5c20
RG
216662011-02-02 Richard Guenther <rguenther@suse.de>
21667
21668 PR tree-optimization/47566
21669 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
21670
83d70792
AO
216712011-02-02 Alexandre Oliva <aoliva@redhat.com>
21672
e829c321
AO
21673 PR debug/47106
21674 PR debug/47402
21675 * tree-inline.c (declare_return_variable): Remove unused caller
21676 variable.
21677
83d70792
AO
21678 PR debug/47106
21679 PR debug/47402
21680 * tree-flow-inline.h (clear_is_used, is_used_p): New.
21681 * cfgexpand.c (account_used_vars_for_block): Use them.
21682 * tree-nrv.c (tree_nrv): Likewise.
21683 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
21684 (dump_scope_block): Likewise.
21685 (remove_unused_locals): Likewise.
21686
aaa2ac93
AO
21687 PR debug/47106
21688 PR debug/47402
21689 * tree-inline.c (declare_return_variable): Add result decl to
21690 local decls only once.
21691 * gimple-low.c (record_vars_into): Mark newly-created variables
21692 as referenced.
21693
a59d15cf
AO
216942011-02-02 Alexandre Oliva <aoliva@redhat.com>
21695
21696 PR debug/47498
21697 PR debug/47501
21698 PR debug/45136
21699 PR debug/45130
21700 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
21701 debug insns.
21702 (no_real_insns_p, schedule_block, set_priorities): Drop special
21703 treatment of boundary debug insns.
38be4072 21704 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
a59d15cf
AO
21705 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
21706 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
21707 (BOUNDARY_DEBUG_INSN_P): Likewise.
21708 (SCHEDULE_DEBUG_INSN_P): Likewise.
21709 * sched-rgn.c (init_ready_list): Drop special treatment of
21710 boundary debug insns.
21711 * final.c (rest_of_clean_state): Clear notes' BB.
21712
6fc2f091
JM
217132011-02-01 Joseph Myers <joseph@codesourcery.com>
21714
21715 * config/openbsd.opt (assert=): New Driver option.
21716
fc523387
JM
217172011-02-01 Joseph Myers <joseph@codesourcery.com>
21718
21719 * config/i386/nto.opt: New.
21720 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
21721
6d9821e5
JM
217222011-02-01 Joseph Myers <joseph@codesourcery.com>
21723
21724 * config/i386/netware.opt: New.
21725 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
21726
cef932d4
JM
217272011-02-01 Joseph Myers <joseph@codesourcery.com>
21728
21729 * config/interix.opt (posix): New Driver option.
21730
22843acd
DD
217312011-02-01 DJ Delorie <dj@redhat.com>
21732
56490b74
DD
21733 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
21734
22843acd
DD
21735 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
21736 class for A0/A1.
21737
199c8f2f
SP
217382011-02-01 Sebastian Pop <sebastian.pop@amd.com>
21739
21740 PR tree-optimization/47561
21741 * toplev.c (process_options): Print the Graphite flags. Add
21742 flag_loop_flatten to the list of options requiring Graphite.
21743
926bcf22
JM
217442011-02-01 Joseph Myers <joseph@codesourcery.com>
21745
21746 * config/i386/cygming.opt (posix): New Driver option.
21747
59793c51
JM
217482011-02-01 Joseph Myers <joseph@codesourcery.com>
21749
21750 * config/arm/vxworks.opt: New.
21751 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
21752
183c38a4
JM
217532011-02-01 Joseph Myers <joseph@codesourcery.com>
21754
21755 * config/alpha/elf.opt: New.
21756 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
21757 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
21758
9939e416
RG
217592011-02-01 Richard Guenther <rguenther@suse.de>
21760
21761 PR tree-optimization/47559
21762 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
21763 store-motion on references that can throw.
21764
4a3c9687
BS
217652011-02-01 Bernd Schmidt <bernds@codesourcery.com>
21766
21767 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
21768 * tree-pass.h (TDF_CSELIB): New macro.
21769 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
21770 cselib_lookup): Check for it rather than for TDF_DETAILS.
21771
dd3b31fb
L
217722011-02-01 H.J. Lu <hongjiu.lu@intel.com>
21773
21774 PR driver/47547
21775 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
21776 is HOST_BIT_BUCKET.
21777
21778 * opts.c (finish_options): Don't add x_aux_base_name if it is
21779 HOST_BIT_BUCKET.
21780
34c1de79
RG
217812011-02-01 Richard Guenther <rguenther@suse.de>
21782
21783 PR tree-optimization/47555
21784 Revert
21785 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
21786
21787 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
21788
dd2804d2
SB
217892011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
21790
21791 PR gcc/46692
21792 * config/lm32/t-lm32: Add multilib for all CPU options.
21793
3fd3b156
RG
217942011-02-01 Richard Guenther <rguenther@suse.de>
21795
21796 PR tree-optimization/47541
21797 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
21798 sure to have a field at offset zero.
21799
f16072b6
JM
218002011-01-31 Joseph Myers <joseph@codesourcery.com>
21801
21802 * config/arc/arc.opt (EB, EL): New Driver options.
21803
6456cf2e
JM
218042011-01-31 Joseph Myers <joseph@codesourcery.com>
21805
21806 * config/alpha/osf5.opt: New.
21807 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
21808
cdde6ab4
JM
218092011-01-31 Joseph Myers <joseph@codesourcery.com>
21810
21811 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
21812
7633415c
SP
218132011-01-31 Sebastian Pop <sebastian.pop@amd.com>
21814
21815 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
21816 -floop-interchange.
21817 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
21818 is an alias of -floop-interchange and that it requires the
21819 Graphite infrastructure.
21820 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
21821 flag_loop_interchange based on the value of flag_tree_loop_linear.
21822
0425d6f5
JJ
218232011-01-31 Jakub Jelinek <jakub@redhat.com>
21824 Richard Guenther <rguenther@suse.de>
21825
21826 PR tree-optimization/47538
21827 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
21828 type instead of r1type, except for comparisons. For right
21829 shifts and comparisons punt if there are mismatches in
21830 sizetype vs. non-sizetype types.
21831
500b16c3
RO
218322011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21833
21834 * doc/sourcebuild.texi (Effective-Target Keywords): Document
21835 avx_runtime.
21836
e279edb0
RO
218372011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21838
21839 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
21840 version number.
21841 * configure: Regenerate.
21842
c6092243
RO
218432011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21844
21845 * configure.ac (gcc_cv_ld_static_option): Define.
21846 (gcc_cv_ld_dynamic_option): Define.
21847 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
21848 instead.
21849 (HAVE_LD_STATIC_DYNAMIC): Update message.
21850 (LD_STATIC_OPTION): Define.
21851 (LD_DYNAMIC_OPTION): Define.
21852 * configure: Regenerate.
21853 * config.in: Regenerate.
21854 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
21855 HAVE_LD_STATIC_DYNAMIC]: Use them.
21856
d7862be3
NC
218572011-01-31 Nick Clifton <nickc@redhat.com>
21858
21859 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
21860 registers inside interrupt handlers if the handler is not a leaf
21861 function.
21862
ba4ec0e0
NC
218632011-01-31 Nick Clifton <nickc@redhat.com>
21864
21865 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
21866 reg_renumber returning an INVALID_REGNUM.
21867
29a63921
AO
218682011-01-31 Alexandre Oliva <aoliva@redhat.com>
21869
21870 PR libgcj/44341
21871 * doc/install.texi: Document host options discarded when cross
21872 configuring target libraries.
21873
ef591d3f
AO
218742011-01-31 Alexandre Oliva <aoliva@redhat.com>
21875
21876 Reverted:
21877 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
21878 PR debug/45136
21879 PR debug/45130
21880 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
21881 debug insns.
21882 (no_real_insns_p, schedule_block, set_priorities): Drop special
21883 treatment of boundary debug insns.
38be4072 21884 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
ef591d3f
AO
21885 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
21886 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
21887 (BOUNDARY_DEBUG_INSN_P): Likewise.
21888 (SCHEDULE_DEBUG_INSN_P): Likewise.
21889 * sched-rgn.c (init_ready_list): Drop special treatment of
21890 boundary debug insns.
21891 * final.c (rest_of_clean-state): Clear notes' BB.
21892
61052244
AM
218932011-01-31 Alan Modra <amodra@gmail.com>
21894
21895 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
21896 toc relative expressions as we do in print_operand_address.
21897
c4c8962b
KH
218982011-01-30 Kazu Hirata <kazu@codesourcery.com>
21899
21900 * doc/extend.texi: Follow spelling conventions.
21901 * doc/invoke.texi: Fix a typo.
21902
e543b94c
JM
219032011-01-30 Joseph Myers <joseph@codesourcery.com>
21904
21905 * config/hpux11.opt: New.
21906 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
21907 ia64*-*-hpux*): Use hpux11.opt.
21908
509d65dd 219092011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
a70e0551
JY
21910
21911 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
21912 to tmake_file.
21913
7be03a0e
GP
219142011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
21915
21916 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
21917 support sites.
21918
419d1d37
GP
219192011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
21920
b596ed64
GP
21921 * doc/install.texi (Binaries): Remove outdated reference for
21922 Motorola 68HC11/68HC12 downloads.
21923
219242011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
61052244 21925
419d1d37
GP
21926 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
21927 Drepper's paper.
21928
4406d0e9
JW
219292011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
21930
21931 PR bootstrap/47147
21932 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
21933 used by NetBSD.
21934
38be4072 219352011-01-28 Ahmad Sharif <asharif@google.com>
e0b77418
AS
21936
21937 * value-prof.c (check_counter): Corrected error message.
21938
0cd98787
JZ
219392011-01-29 Jie Zhang <jie@codesourcery.com>
21940
21941 * config/arm/arm.c (arm_legitimize_reload_address): New.
21942 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
21943 arm_legitimize_reload_address.
38be4072 21944 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
0cd98787 21945
9b798ac5
ILT
219462011-01-28 Ian Lance Taylor <iant@google.com>
21947
21948 * godump.c (go_define): Ignore macros whose definitions include
21949 two adjacent operands.
21950
591e29d9
JJ
219512011-01-28 Jakub Jelinek <jakub@redhat.com>
21952
21953 PR target/42894
21954 * varasm.c (force_const_mem): Store copy of x in desc->constant
21955 instead of x itself.
21956 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
21957 itself into REG_EQUAL note.
21958
62dcc44a
JM
219592011-01-28 Joseph Myers <joseph@codesourcery.com>
21960
21961 * config/freebsd.opt (posix, rdynamic): New Driver options.
21962
c9f58b9a
RO
219632011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21964
21965 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
21966 -Bstatic/-Bdynamic.
21967 * configure: Regenerate.
21968
5f02b9db
JM
219692011-01-27 Joseph Myers <joseph@codesourcery.com>
21970
21971 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
21972 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
21973
5df97412
AS
219742011-01-27 Anatoly Sokolov <aesok@post.ru>
21975
21976 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
21977 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
21978 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
21979 (s390_preferred_reload_class): Make static. Change return and
21980 'rclass' argument type to reg_class_t.
21981
779d4b91
JH
219822011-01-27 Jan Hubicka <jh@suse.cz>
21983
21984 PR middle-end/46949
21985 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
21986 (process_function_and_variable_attributes): Check defined weakrefs.
21987
e80b21ed
MJ
219882011-01-27 Martin Jambor <mjambor@suse.cz>
21989
21990 PR tree-optimization/47228
21991 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
21992 build_ref_for_offset.
21993
6dcc4f31
UW
219942011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21995
21996 * config/spu/spu-elf.h (ASM_SPEC): Remove.
21997
509d65dd 219982011-01-26 Mikael Pettersson <mikpe@it.uu.se>
3b8ff89f
MP
21999
22000 PR rtl-optimization/46856
22001 * postreload.c (reload_combine_recognize_const_pattern): Do not
22002 separate cc0 setter and user on cc0 targets.
22003
04af8788
NP
220042011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
22005
22006 PR c/43082
22007 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
22008 passed a VOID_TYPE expression, immediately emit an error and
22009 return error_mark_node.
22010
f7a60085
JL
220112011-01-26 Jeff Law <law@redhat.com>
22012
22013 PR rtl-optimization/47464
22014 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
22015 rather than may_trap_p as needed.
22016
5c2917ec
DD
220172011-01-26 DJ Delorie <dj@redhat.com>
22018
22019 PR rtl-optimization/46878
22020 * combine.c (insn_a_feeds_b): Check for the implicit cc0
22021 setter/user dependency as well.
22022
bef16e87
EB
220232011-01-26 Eric Botcazou <ebotcazou@adacore.com>
22024
22025 PR rtl-optimization/44469
22026 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
22027 after removing trivially dead basic blocks.
22028
c75d884b
JM
220292011-01-26 Joseph Myers <joseph@codesourcery.com>
22030
22031 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
22032 * config/frv/frv.h (LINK_SPEC): Likewise.
22033 * config/i386/netware.h (LINK_SPEC): Likewise.
22034 * config/m68k/linux.h (ASM_SPEC): Likewise.
22035 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
22036 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
22037 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
22038 * config/sparc/linux.h (ASM_SPEC): Likewise.
22039 * config/sparc/linux64.h (ASM_SPEC): Likewise.
22040 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
22041
d3153553
JM
220422011-01-26 Joseph Myers <joseph@codesourcery.com>
22043
22044 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
22045 * config/frv/frv.h (ASM_SPEC): Likewise.
22046 * config/m68k/linux.h (ASM_SPEC): Likewise.
22047 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
22048 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
22049 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
22050 * config/sparc/linux.h (ASM_SPEC): Likewise.
22051 * config/sparc/linux64.h (ASM_SPEC): Likewise.
22052 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
22053
b89b1e9d
JM
220542011-01-26 Joseph Myers <joseph@codesourcery.com>
22055
22056 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
22057 * config/frv/frv.h (LINK_SPEC): Likewise.
22058 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
22059
12eb1a9c
JM
220602011-01-26 Joseph Myers <joseph@codesourcery.com>
22061
22062 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
22063 * config/frv/frv.h (ASM_SPEC): Likewise.
22064 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
22065 * config/m68k/linux.h (ASM_SPEC): Likewise.
22066 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
22067 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
22068 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
22069 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
22070 * config/sparc/linux.h (ASM_SPEC): Likewise.
22071 * config/sparc/linux64.h (ASM_SPEC): Likewise.
22072 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
22073 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
22074
e435f098
SE
220752011-01-26 Steve Ellcey <sje@cup.hp.com>
22076
22077 PR target/46997
22078 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
22079 (*mux2): Ditto.
22080 (vec_extract_evenodd_help): Ditto.
22081 (vec_extract_evenv4hi): Ditto.
22082 (vec_extract_oddv4hi): Ditto.
22083 (vec_interleave_lowv2si): Ditto.
22084 (vec_interleave_highv2si): Ditto.
22085 (vec_extract_evenv2si): Ditto.
22086 (vec_extract_oddv2si: Ditto.
22087 (vec_pack_trunc_v2si): Ditto.
22088
34f0eee0
JH
220892011-01-22 Jan Hubicka <jh@suse.cz>
22090
22091 PR target/47237
22092 * cgraph.h (cgraph_local_info): New field can_change_signature.
22093 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
22094 signature can change.
22095 (ipcp_estimate_growth): Call sequence simplify only if calle signature
22096 can change.
22097 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
22098 (cgraph_function_versioning): We can not change signature of functions
22099 that don't allow that.
22100 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
22101 (lto_input_node): Likewise.
38be4072
UB
22102 * ipa-inline.c (compute_inline_parameters): Compute
22103 local.can_change_signature.
34f0eee0 22104 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
38be4072
UB
22105 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
22106 functions that can not change signature.
34f0eee0 22107 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
38be4072
UB
22108 init_cumulative_args): Do not use local calling conventions
22109 for functions that can not change signature.
34f0eee0 22110
980ca891
JH
221112011-01-22 Jan Hubicka <jh@suse.cz>
22112
22113 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
22114
768e3c60
RG
221152011-01-26 Richard Guenther <rguenther@suse.de>
22116
22117 PR tree-optimization/47190
61052244
AM
22118 * cgraphunit.c (process_common_attributes): New function.
22119 (process_function_and_variable_attributes): Use it.
768e3c60 22120
21d6a1c7
RG
221212011-01-26 Richard Guenther <rguenther@suse.de>
22122
22123 PR lto/47423
22124 * cgraphbuild.c (record_eh_tables): Record reference to personality
22125 function.
22126
48bb58b1
AO
221272011-01-26 Alexandre Oliva <aoliva@redhat.com>
22128
22129 PR debug/45454
22130 * sel-sched.c (moveup_expr): Don't let debug insns prevent
22131 non-debug insns from moving up.
22132
58c741a6
DK
221332011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
22134
22135 PR target/40125
22136 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
22137 t-dlldir{,-x} fragment for build and add it to tmake_file.
22138 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
22139 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
22140 * config/i386/t-dlldir: New file.
22141 (SHLIB_DLLDIR): Define.
22142 * config/i386/t-dlldir-x: New file.
22143 (SHLIB_DLLDIR): Define.
22144 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
22145 (SHLIB_INSTALL): Use it.
22146
bff99262
CLT
221472011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
22148
22149 PR target/47246
22150 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
22151 lower bound of the allowed Thumb-2 coprocessor load/store
22152 index range to -256. Add explaining comment.
22153
82c03907
ILT
221542011-01-25 Ian Lance Taylor <iant@google.com>
22155
22156 * godump.c (go_define): Improve lexing of macro expansion to only
22157 accept expressions which match Go spec.
22158
47ea1edf
DK
221592011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
22160
d4dba752 22161 PR c++/43601
47ea1edf
DK
22162 * tree.c (handle_dll_attribute): Handle it.
22163 * doc/extend.texi (@item dllexport): Mention it.
22164 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
22165
744f0946
ILT
221662011-01-25 Ian Lance Taylor <iant@google.com>
22167
22168 PR tree-optimization/26854
22169 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
22170 (decl_jump_unsafe): Move higher in file, with no other change.
22171 (bind): Set has_jump_unsafe_decl if appropriate.
22172 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
22173 (check_earlier_gotos): Likewise.
22174 (c_check_switch_jump_warnings): Likewise.
22175
5734f2b3
JW
221762011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
22177
22178 * doc/invoke.texi (Warning Options): Add missing hyphen.
22179 (-fprofile-dir): Minor grammatical fixes.
22180 (-fbranch-probabilities): Likewise.
22181
9bdbdcef
AO
221822011-01-25 Alexandre Oliva <aoliva@redhat.com>
22183
22184 PR debug/45136
22185 PR debug/45130
22186 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
22187 debug insns.
22188 (no_real_insns_p, schedule_block, set_priorities): Drop special
22189 treatment of boundary debug insns.
38be4072 22190 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9bdbdcef
AO
22191 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
22192 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
22193 (BOUNDARY_DEBUG_INSN_P): Likewise.
22194 (SCHEDULE_DEBUG_INSN_P): Likewise.
22195 * sched-rgn.c (init_ready_list): Drop special treatment of
22196 boundary debug insns.
22197 * final.c (rest_of_clean-state): Clear notes' BB.
22198
b305e3da
SP
221992011-01-25 Sebastian Pop <sebastian.pop@amd.com>
22200
22201 * Makefile.in (LAMBDA_H): Removed.
22202 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
22203 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
22204 lambda-trans.o, and tree-loop-linear.o.
22205 (lto-symtab.o): Remove dependence on LAMBDA_H.
22206 (tree-loop-linear.o): Remove rule.
22207 (lambda-mat.o): Same.
22208 (lambda-trans.o): Same.
22209 (lambda-code.o): Same.
22210 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
22211 (tree-vect-slp.o): Same.
22212 * hwint.h (gcd): Moved here.
22213 (least_common_multiple): Same.
22214 * lambda-code.c: Removed.
22215 * lambda-mat.c: Removed.
22216 * lambda-trans.c: Removed.
22217 * lambda.h: Removed.
22218 * tree-loop-linear.c: Removed.
22219 * lto-symtab.c: Do not include lambda.h.
22220 * omega.c (gcd): Removed.
22221 * passes.c (init_optimization_passes): Remove pass_linear_transform.
22222 * tree-data-ref.c (print_lambda_vector): Moved here.
22223 (lambda_vector_copy): Same.
22224 (lambda_matrix_copy): Same.
22225 (lambda_matrix_id): Same.
22226 (lambda_vector_first_nz): Same.
22227 (lambda_matrix_row_add): Same.
22228 (lambda_matrix_row_exchange): Same.
22229 (lambda_vector_mult_const): Same.
22230 (lambda_vector_negate): Same.
22231 (lambda_matrix_row_negate): Same.
22232 (lambda_vector_equal): Same.
22233 (lambda_matrix_right_hermite): Same.
22234 * tree-data-ref.h: Do not include lambda.h.
22235 (lambda_vector): Moved here.
22236 (lambda_matrix): Same.
22237 (dependence_level): Same.
22238 (lambda_transform_legal_p): Removed declaration.
22239 (lambda_collect_parameters): Same.
22240 (lambda_compute_access_matrices): Same.
22241 (lambda_vector_gcd): Same.
22242 (lambda_vector_new): Same.
22243 (lambda_vector_clear): Same.
22244 (lambda_vector_lexico_pos): Same.
22245 (lambda_vector_zerop): Same.
22246 (lambda_matrix_new): Same.
22247 * tree-flow.h (least_common_multiple): Removed declaration.
22248 * tree-parloops.c (lambda_trans_matrix): Moved here.
22249 (LTM_MATRIX): Same.
22250 (LTM_ROWSIZE): Same.
22251 (LTM_COLSIZE): Same.
22252 (LTM_DENOMINATOR): Same.
22253 (lambda_trans_matrix_new): Same.
22254 (lambda_matrix_vector_mult): Same.
22255 (lambda_transform_legal_p): Same.
22256 * tree-pass.h (pass_linear_transform): Removed declaration.
22257 * tree-ssa-loop.c (tree_linear_transform): Removed.
22258 (gate_tree_linear_transform): Removed.
22259 (pass_linear_transform): Removed.
22260 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
22261 flag_loop_interchange.
22262
6bdfdb96
JJ
222632011-01-25 Jakub Jelinek <jakub@redhat.com>
22264
22265 PR tree-optimization/47265
22266 PR tree-optimization/47443
22267 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
22268 if name still has some uses.
22269
e4cba915
MJ
222702011-01-25 Martin Jambor <mjambor@suse.cz>
22271
22272 PR tree-optimization/47382
22273 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
22274 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
22275
509d65dd 222762011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
f822b8ea
JS
22277
22278 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
22279 sjlj_except_unwind_info.
22280
194313e2
RG
222812011-01-25 Richard Guenther <rguenther@suse.de>
22282
22283 PR tree-optimization/47426
22284 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
22285 visible functions results escape.
22286
147a0bcf
JJ
222872011-01-25 Jakub Jelinek <jakub@redhat.com>
22288
22289 PR target/45701
22290 * config/arm/arm.c (any_sibcall_uses_r3): New function.
22291 (arm_get_frame_offsets): Use it.
22292
db963b52
SP
222932011-01-25 Sebastian Pop <sebastian.pop@amd.com>
22294 Jakub Jelinek <jakub@redhat.com>
22295
22296 PR tree-optimization/47271
22297 * tree-if-conv.c (bb_postdominates_preds): New.
22298 (if_convertible_bb_p): Call bb_postdominates_preds.
22299 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
22300 (predicate_scalar_phi): Call bb_postdominates_preds.
22301
bcddd3b9
NC
223022011-01-25 Nick Clifton <nickc@redhat.com>
22303
22304 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
22305 * config/rx/rx.c (rx_function_value): Likewise.
22306 (rx_promote_function_mode): Likewise.
22307 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
22308 in order to make it legitimate.
38be4072
UB
22309 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
22310 make sure that the first operand is the same as the result register.
bcddd3b9
NC
22311 (addsi3_unspec): Delete.
22312 (subdi3): Do not accept immediate operands.
22313 (subdi3_internal): Likewise.
22314
7e6cb022
JL
223152011-01-25 Jeff Law <law@redhat.com>
22316
22317 PR rtl-optimization/37273
22318 * ira-costs.c (scan_one_insn): Detect constants living in memory and
22319 handle them like argument loads from stack slots. Do not double
22320 count memory for memory constants and argument loads from stack slots.
22321
9ffa621e
JJ
223222011-01-25 Jakub Jelinek <jakub@redhat.com>
22323
22324 PR tree-optimization/47427
22325 PR tree-optimization/47428
22326 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
22327 coalesce if the new root var would be TREE_READONLY.
22328
5bd6e652
RG
223292011-01-25 Richard Guenther <rguenther@suse.de>
22330
22331 PR middle-end/47414
22332 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
22333 correct type for TBAA.
22334
7c48ea69
SP
223352011-01-25 Sebastian Pop <sebastian.pop@amd.com>
22336
22337 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
22338 (close_phi_written_to_memory): Call for_each_index with
22339 dr_indices_valid_in_loop.
22340
38013f25
SP
223412011-01-25 Sebastian Pop <sebastian.pop@amd.com>
22342
22343 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
22344 when it is initialized.
22345
5c640e29
SP
223462011-01-25 Sebastian Pop <sebastian.pop@amd.com>
22347
22348 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
22349 call to graphite_find_data_references_in_stmt.
22350 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
22351 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
22352 call to graphite_find_data_references_in_stmt.
22353 (analyze_drs_in_stmts): Same.
22354 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
22355 in which the scalar analysis of indices is performed.
22356 (create_data_ref): Same. Update call to dr_analyze_indices.
22357 (find_data_references_in_stmt): Update call to create_data_ref.
22358 (graphite_find_data_references_in_stmt): Same.
22359 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
22360 declaration.
22361 (create_data_ref): Same.
22362 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
22363 call to create_data_ref.
22364
ac53c069
SP
223652011-01-25 Sebastian Pop <sebastian.pop@amd.com>
22366
22367 * graphite-sese-to-poly.c (build_poly_scop): Move
38be4072 22368 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
ac53c069 22369
3d17df15
SP
223702011-01-25 Sebastian Pop <sebastian.pop@amd.com>
22371
22372 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
22373 VAR_DECL, PARM_DECL, and RESULT_DECL.
22374
c513da01
SP
223752011-01-25 Sebastian Pop <sebastian.pop@amd.com>
22376
22377 * graphite-dependences.c (reduction_dr_1): Allow several reductions
22378 in a reduction PBB.
22379 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
22380 that have already been marked as PBB_IS_REDUCTION.
22381
3a292d59
SP
223822011-01-25 Sebastian Pop <sebastian.pop@amd.com>
22383
22384 * graphite-scop-detection.c (same_close_phi_node): New.
22385 (remove_duplicate_close_phi): New.
22386 (make_close_phi_nodes_unique): New.
22387 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
22388
ba858447
SP
223892011-01-25 Sebastian Pop <sebastian.pop@amd.com>
22390
22391 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
22392 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
22393 of both data references to be the same.
22394
8d865c56
SP
223952011-01-25 Sebastian Pop <sebastian.pop@amd.com>
22396
38be4072
UB
22397 * graphite-dependences.c (build_lexicographical_constraint): Remove
22398 the gdim parameter.
22399 (build_lexicographical_constraint): Adjust call to
22400 ppl_powerset_is_empty.
8d865c56
SP
22401 (dependence_polyhedron): Same.
22402 (graphite_legal_transform_dr): Same.
22403 (graphite_carried_dependence_level_k): Same.
38be4072
UB
22404 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
22405 parameter.
8d865c56
SP
22406 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
22407
50034a36
SP
224082011-01-25 Sebastian Pop <sebastian.pop@amd.com>
22409
22410 * graphite-sese-to-poly.c
22411 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
22412 (close_phi_written_to_memory): New.
22413 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
22414 and unshare_expr.
22415
0deada9e
SP
224162011-01-25 Sebastian Pop <sebastian.pop@amd.com>
22417
22418 * doc/install.texi: Update the expected version number of PPL to 0.11.
22419 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
22420 #if PPL_VERSION_MINOR < 11.
22421
d7d3d6af
SP
224222011-01-25 Sebastian Pop <sebastian.pop@amd.com>
22423
22424 * graphite-dependences.c: Include graphite-cloog-util.h.
22425 (new_poly_ddr): Inlined into dependence_polyhedron.
22426 (free_poly_ddr): Moved close by new_poly_ddr.
22427 (dependence_polyhedron_1): Renamed dependence_polyhedron.
22428 Early return NULL when ppl_powerset_is_empty returns true.
22429 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
22430 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
22431 (graphite_legal_transform_dr): Call new_poly_ddr.
22432 (graphite_carried_dependence_level_k): Same.
22433 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
22434 (dot_transformed_deps_stmt_1): Removed.
22435 (dot_deps_stmt_1): Call dot_deps_stmt_2.
22436 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
22437 (dot_deps_1): Call dot_deps_2.
22438 * Makefile.in (graphite-dependences.o): Add missing dependence on
22439 graphite-cloog-util.h.
22440
28c5db57
SP
224412011-01-25 Sebastian Pop <sebastian.pop@amd.com>
22442
22443 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
22444 (build_lexicographical_constraint): Same.
22445 (dependence_polyhedron_1): Same.
22446 (graphite_legal_transform_dr): Same.
22447 (graphite_carried_dependence_level_k): Same.
22448 * graphite-ppl.c (ppl_powerset_is_empty): New.
22449 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
22450 * tree-data-ref.c (dump_data_reference): Print the basic block index.
22451
5168d98f
SP
224522011-01-25 Sebastian Pop <sebastian.pop@amd.com>
22453
22454 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
22455 the "a followed by b" relation and document it.
22456
4a40293a
SP
224572011-01-25 Sebastian Pop <sebastian.pop@amd.com>
22458
22459 * graphite-dependences.c (build_lexicographical_constraint): Stop the
22460 iteration when the bag of constraints is empty.
22461
271fb6fa
SP
224622011-01-25 Sebastian Pop <sebastian.pop@amd.com>
22463
22464 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
22465
92d23680
SP
224662011-01-25 Sebastian Pop <sebastian.pop@amd.com>
22467
22468 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
22469 nest and two loop depths as parameters.
22470 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
22471 lst_perfect_nestify.
22472
2f51deff
SP
224732011-01-25 Sebastian Pop <sebastian.pop@amd.com>
22474
22475 * graphite-dependences.c (print_pddr): Call
22476 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
22477
07f3593c
SP
224782011-01-25 Sebastian Pop <sebastian.pop@amd.com>
22479
22480 * graphite-ppl.c (debug_gmp_value): New.
22481 * graphite-ppl.h (debug_gmp_value): Declared.
22482
3fae6099
TG
224832011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
22484
22485 * doc/install.texi: Document availability of cloog-0.16.
22486
1c3ba85b
SP
224872011-01-25 Vladimir Kargov <kargov@gmail.com>
22488
22489 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
22490 invalid postdominance info.
22491
e8ba94fc
JH
224922011-01-24 Jan Hubicka <jh@suse.cz>
22493
22494 PR c/21659
22495 * doc/extend.texi (weak pragma): Drop claim that it must
22496 appear before definition.
22497 * varasm.c (merge_weak, declare_weak): Only sanity check
22498 that DECL is not output at a time it is declared weak.
22499
2b6e2d13
KZ
225002011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
22501
22502 * machmode.def: Fixed comments.
1c3ba85b 22503
9841210f
KT
225042011-01-24 Kai Tietz <kai.tietz@onevision.com>
22505
22506 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
22507
225082011-01-24 Paul Koning <ni1d@arrl.net>
e046112d
PK
22509
22510 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
1c3ba85b 22511 WORDS_BIG_ENDIAN.
e046112d 22512
a6c5070a
L
225132011-01-24 H.J. Lu <hongjiu.lu@intel.com>
22514
22515 PR target/46519
22516 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
22517 (block_info): Add scanned and prev.
22518 (move_or_delete_vzeroupper_2): Return if the basic block
22519 has been scanned and the upper 128bit state is unchanged
22520 from the last scan.
22521 (move_or_delete_vzeroupper_1): Return true if the exit
22522 state is changed.
22523 (move_or_delete_vzeroupper): Visit basic blocks using the
22524 work-list based algorithm based on vt_find_locations in
22525 var-tracking.c.
22526
22527 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
22528
a40d79d7
NC
225292011-01-24 Nick Clifton <nickc@redhat.com>
22530
22531 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
22532 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
22533 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
22534 then define __v850e1__.
22535 * doc/invoke.texi: Document -mv850es.
22536
440eb8de
RH
225372011-01-24 Richard Henderson <rth@redhat.com>
22538
22539 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
22540 compound unordered comparisons.
22541 * config/rx/rx.c (rx_split_fp_compare): Remove.
22542 * config/rx/rx-protos.h: Update.
22543 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
22544 (cbranchsf4): Don't call rx_split_fp_compare.
22545 (*cbranchsf4): Use rx_split_cbranch.
22546 (*cmpsf): Don't accept "i" constraint.
22547 (*conditional_branch): Only valid after reload.
22548 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
22549
3ff79f99
MM
225502011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22551
22552 PR target/47385
22553 * config/rs6000/altivec.md (vector constant splitters): Add
22554 support for creating vector single precision constants if -mvsx is
22555 used and we would create the constant using Altivec primitives.
22556
ff3d9d08
BS
225572011-01-23 Bernd Schmidt <bernds@codesourcery.com>
22558 Richard Sandiford <rdsandiford@googlemail.com>
22559
22560 PR rtl-optimization/47166
22561 * reload1.c (emit_reload_insns): Disable the spill_reg_store
22562 mechanism for PRE_MODIFY and POST_MODIFY.
22563 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
22564 reloadreg.
22565
7fcaf152
AS
225662011-01-23 Andreas Schwab <schwab@linux-m68k.org>
22567
8788adb6 22568 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
7fcaf152 22569
d09b58c4
JH
225702011-01-22 Jan Hubicka <jh@suse.cz>
22571
22572 PR lto/47333
22573 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
22574
e8ff8c5a
JH
225752011-01-22 Jan Hubicka <jh@suse.cz>
22576
22577 PR tree-optimization/43884
22578 PR lto/44334
8788adb6 22579 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
e8ff8c5a
JH
22580 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
22581
ccaed3ba
AS
225822011-01-22 Anatoly Sokolov <aesok@post.ru>
22583
22584 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
22585 * config/s390/s390.c (s390_register_move_cost,
22586 s390_memory_move_cost): New.
22587 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
22588
0cecee06
UW
225892011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22590
22591 PR middle-end/47401
22592 * except.c (sjlj_assign_call_site_values): Move setting the
22593 crtl->uses_eh_lsda flag to ...
22594 (sjlj_mark_call_sites): ... here.
22595 (sjlj_emit_function_enter): Support NULL dispatch label.
22596 (sjlj_build_landing_pads): In a function with no landing pads
22597 that still has must-not-throw regions, generate code to register
22598 a personality function with empty LSDA.
22599
e692f276
RH
226002011-01-21 Richard Henderson <rth@redhat.com>
22601
1b7ae0b7
RH
22602 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
22603
3843787f
RH
22604 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
22605
e692f276
RH
22606 * compare-elim.c: New file.
22607 * Makefile.in (OBJS-common): Add it.
22608 (compare-elim.o): New.
22609 * common.opt (fcompare-elim): New.
22610 * opts.c (default_options_table): Add OPT_fcompare_elim.
22611 * tree-pass.h (pass_compare_elim_after_reload): New.
22612 * passes.c (init_optimization_passes): Add it.
22613 * recog.h: Protect against re-inclusion.
22614 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
22615 * doc/invoke.texi (-fcompare-elim): Document it.
22616 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
22617 * doc/tm.texi: Rebuild.
22618
9a7c2050
NC
226192011-01-22 Nick Clifton <nickc@redhat.com>
22620
22621 * config/rx/rx.md (cstoresf4): Pass comparison operator to
22622 rx_split_fp_compare.
22623
15ba5696
NC
226242011-01-22 Nick Clifton <nickc@redhat.com>
22625
22626 * config/rx/rx.md (UNSPEC_CONST): New.
22627 (deallocate_and_return): Wrap the amount popped off the stack in
22628 an UNSPEC_CONST in order to stop it being rejected by
22629 -mmax-constant-size.
22630 (pop_and_return): Add a "(return)" rtx.
22631 (call): Drop the immediate operand.
22632 (call_internal): Likewise.
22633 (call_value): Likewise.
22634 (call_value_internal): Likewise.
22635 (sibcall_internal): Likewise.
22636 (sibcall_value_internal): Likewise.
22637 (sibcall): Likewise. Generate an explicit call using
22638 sibcall_internal.
22639 (sibcall_value): Likewise.
22640 (mov<>): FAIL if a constant operand is not legitimate.
22641 (addsi3_unpsec): New pattern.
9a7c2050 22642
38be4072 22643 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15ba5696
NC
22644 (ok_for_max_constant): New function.
22645 (gen_safe_add): New function.
22646 (rx_expand_prologue): Use gen_safe_add.
22647 (rx_expand_epilogue): Likewise.
22648 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
22649 UNSPEC CONSTs.
22650
caaf13d3
JL
226512011-01-21 Jeff Law <law@redhat.com>
22652
22653 PR tree-optimization/47053
22654 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
22655 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
22656 statements are deleted.
22657 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
22658 is nonempty, then purge dead edges and cleanup the CFG.
22659
12c30f2f
AO
226602011-01-21 Alexandre Oliva <aoliva@redhat.com>
22661
22662 PR debug/47402
22663 Temporarily revert:
22664 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
22665 PR debug/47106
22666 * tree-dfa.c (create_var_ann): Mark variable as used.
22667
7360d2ac
JJ
226682011-01-21 Jakub Jelinek <jakub@redhat.com>
22669
aaa52a96
JJ
22670 PR middle-end/45566
22671 * except.c (convert_to_eh_region_ranges): Emit queued no-region
22672 notes from other section in hot/cold partitioning even if
22673 last_action is -3. Increment call_site_base.
22674
7360d2ac
JJ
22675 PR rtl-optimization/47366
22676 * fwprop.c (forward_propagate_into): Return bool. If
22677 any changes are made, -fnon-call-exceptions is used and
22678 REG_EH_REGION note is present, call purge_dead_edges
22679 and return true if it purged anything.
22680 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
22681 any EH edges were purged.
22682
e90b336f
JL
226832011-01-21 Jeff Law <law@redhat.com>
22684
22685 PR rtl-optimization/41619
22686 * caller-save.c (setup_save_areas): Break out code to determine
22687 which hard regs are live across calls by examining the reload chains
22688 so that it is always used.
22689 Eliminate code which checked REG_N_CALLS_CROSSED.
22690
3ffe07e1
JJ
226912011-01-21 Jakub Jelinek <jakub@redhat.com>
22692
22693 PR tree-optimization/47355
22694 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
22695 NOP has non-debug uses beyond PHIs in new_bb.
22696
1c7d0b34
AO
226972011-01-21 Alexandre Oliva <aoliva@redhat.com>
22698
22699 PR debug/47106
22700 * cfgexpand.c (account_used_vars_for_block): Only account vars
22701 that are annotated as used.
22702 (estimated_stack_frame_size): Don't set TREE_USED.
22703 * tree-dfa.c (create_var_ann): Mark variable as used.
22704
f99cc488
RG
227052011-01-21 Richard Guenther <rguenther@suse.de>
22706
22707 PR middle-end/47395
22708 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
22709
3bc27de7
RG
227102011-01-21 Richard Guenther <rguenther@suse.de>
22711
22712 PR tree-optimization/47365
22713 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
22714 (vn_reference_lookup_pieces): Adjust.
22715 (vn_reference_lookup): Likewise.
22716 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
22717 (vn_reference_lookup_3): Only look through kills if in
22718 VN_WALKREWRITE mode.
22719 (vn_reference_lookup_pieces): Adjust.
22720 (vn_reference_lookup): Likewise.
22721 (visit_reference_op_load): Likewise.
22722 (visit_reference_op_store): Likewise.
22723 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
22724 (compute_avail): Likewise.
22725 (eliminate): Likewise.
22726
d8debb1d
JJ
227272011-01-21 Jakub Jelinek <jakub@redhat.com>
22728
22729 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
22730 DECL_IGNORED_P non-reg vars if they are used.
22731
3a2df831
JJ
22732 PR tree-optimization/47391
22733 * varpool.c (const_value_known_p): Return false if
22734 decl is volatile.
22735
1dd584a2
KT
227362011-01-21 Kai Tietz <kai.tietz@onevision.com>
22737
22738 PR bootstrap/47215
22739 * config/i386/i386.c (ix86_local_alignment): Handle
22740 case for va_list_type_node is nil.
22741 (ix86_canonical_va_list_type): Likewise.
22742
7f9f095e
AM
227432011-01-21 Alan Modra <amodra@gmail.com>
22744
22745 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
22746 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
22747
837b01f6
RR
227482011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22749
22750 * config/arm/arm.md (define_attr type): Rename f_load
22751 and f_store to f_fpa_load and f_fpa_store. Update.
22752 (write_conflict): Deal with rename fallout.
22753 (*push_fp_multi): Likewise.
22754 * config/arm/fpa.md (f_load): Use f_fpa_load.
22755 (f_store): Use f_fpa_store.
22756 (*movsf_fpa): Likewise.
22757 (*movdf_fpa): Likewise.
22758 (*movxf_fpa): Likewise.
22759 (*thumb2_movsf_fpa): Likewise.
22760 (*thumb2_movdf_fpa): Likewise.
22761 (*thumb2_movxf_fpa): Likewise.
22762 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
22763 f_loadd and f_stored.
22764 (*thumb2_movdi_vfp): Likewise.
22765 (*thumb2_movsf_vfp): Fix attribute to f_loads.
22766 (*thumb2_movsi_vfp): Likewise.
22767 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
22768 Use f_loads instead of f_load.
22769 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
22770
a1a79768
AS
227712011-01-20 Anatoly Sokolov <aesok@post.ru>
22772
22773 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
22774 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
22775 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22776 (xtensa_mode_dependent_address_p): New function.
22777 (constantpool_address_p): Make static. Change return type to bool.
22778 Change argument type to const_rtx. Use CONST_INT_P predicate.
22779
427f6cec
AO
227802011-01-20 Alexandre Oliva <aoliva@redhat.com>
22781
22782 PR debug/46583
22783 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
22784
583ac69c
JJ
227852011-01-20 Jakub Jelinek <jakub@redhat.com>
22786
22787 PR debug/47283
22788 * cfgexpand.c (expand_debug_expr): Instead of generating
22789 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
22790 etc. handling.
22791
93e452ed
RG
227922011-01-20 Richard Guenther <rguenther@suse.de>
22793
22794 PR middle-end/47370
22795 * tree-inline.c (remap_gimple_op_r): Recurse manually for
22796 the pointer operand of MEM_REFs.
22797
28fc44f3
JJ
227982011-01-20 Jakub Jelinek <jakub@redhat.com>
22799
22800 PR tree-optimization/46130
22801 * ipa-split.c (consider_split): If return_bb contains non-virtual
22802 PHIs other than for retval or if split_function would not adjust it,
22803 refuse to split.
22804
ddd268f2
RG
228052011-01-20 Richard Guenther <rguenther@suse.de>
22806
22807 PR tree-optimization/47167
22808 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
22809 Revert previous change, only avoid enumeral type changes.
22810
882020aa
MS
228112011-01-19 Mike Stump <mikestump@comcast.net>
22812
22813 * doc/tm.texi.in (BRANCH_COST): Englishify.
22814 * doc/tm.texi (BRANCH_COST): Likewise.
22815
7edb6247
DS
228162011-01-19 Dodji Seketeli <dodji@redhat.com>
22817
22818 PR c++/47291
22819 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
61052244
AM
22820 (gen_scheduled_generic_parms_dies): New functions.
22821 (gen_struct_or_union_type_die): Schedule template parameters DIEs
22822 generation for the end of CU compilation.
22823 (dwarf2out_finish): Generate template parameters DIEs here.
7edb6247 22824
23d5ed5d
AO
228252011-01-19 Alexandre Oliva <aoliva@redhat.com>
22826
22827 PR debug/46240
22828 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
22829 debug bind stmt on merge edges.
22830
37d6a488
AO
228312011-01-19 Alexandre Oliva <aoliva@redhat.com>
22832
22833 PR debug/47079
22834 PR debug/46724
22835 * function.c (instantiate_expr): Instantiate incoming rtl of
22836 implicit arguments, and recurse on VALUE_EXPRs.
22837 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
22838 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
22839
689f2c82
AO
228402011-01-19 Alexandre Oliva <aoliva@redhat.com>
22841
22842 * c-parser.c (c_parser_for_statement): Initialize
22843 collection_expression.
22844
03029de4
JM
228452011-01-19 Joseph Myers <joseph@codesourcery.com>
22846
22847 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
22848
3e03217e
JM
228492011-01-19 Joseph Myers <joseph@codesourcery.com>
22850
22851 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
22852 (LINK_SHLIB_SPEC): Don't use %(link_path).
22853 (SUBTARGET_EXTRA_SPECS): Remove link_path.
22854
5bbe9b3f
JM
228552011-01-19 Joseph Myers <joseph@codesourcery.com>
22856
22857 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
22858 (NO_SHARED_LIB_SUPPORT): Remove.
22859 (LINK_SHLIB_SPEC): Remove one conditional definition.
22860
368e0b39
JM
228612011-01-19 Joseph Myers <joseph@codesourcery.com>
22862
22863 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
22864 %{call_shared}.
22865 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
22866 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
22867 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
22868 %{call_shared} and conditionals on these options not being passed.
22869 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
22870 %{call_shared}.
22871
ed7656f6
JJ
228722011-01-19 Jakub Jelinek <jakub@redhat.com>
22873
68457901
JJ
22874 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
22875 simplify.
22876
ed7656f6
JJ
22877 * ipa-split.c: Spelling fixes.
22878
e0d1958f
RH
228792011-01-19 Richard Henderson <rth@redhat.com>
22880
22881 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
22882 (*mulsi3): Likewise.
22883
27098b6b
RH
22884 * longlong.h [__mn10300__] (count_leading_zeros): New.
22885 [__mn10300__] (umul_ppmm, smul_ppmm): New.
22886 [__mn10300__] (add_ssaaaa, subddmmss): New.
22887 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
22888 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
22889
d6be7c36
UW
228902011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22891
22892 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
22893
b1efde2a
RH
228942011-01-19 Richard Henderson <rth@redhat.com>
22895
44217823
RH
22896 * config/mn10300/mn10300.md (addsi3_flags): New.
22897 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
22898 (subsi3_flags, subc_internal, subdi3): New.
22899 (subdi3_internal, *subdi3_degenerate): New.
22900 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
22901
37a185d7
RH
22902 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
22903 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
22904 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
22905 * config/mn10300/mn10300-protos.h: Update.
22906 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
22907 (return_ret): Likewise. Rename from return_internal_regs.
22908 (return_internal): Remove.
22909
040c5757
RH
22910 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
22911 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
22912 (mn10300_legitimate_constant_p): Likewise.
22913 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
22914 (mn10300_frame_size): New.
22915 (mn10300_expand_prologue): Use it.
22916 (mn10300_expand_epilogue): Likewise.
22917 (mn10300_initial_offset): Likewise.
22918 * config/mn10300/mn10300-protos.h: Update.
22919 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
22920 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
22921 (prologue, epilogue, return_internal): Tidy output code.
22922 (mn10300_store_multiple_operation, return): Likewise.
22923 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
22924 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
22925 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
22926 (load_pic, am33_load_pic): New.
22927 (mn10300_load_pic0, mn10300_load_pic1): New.
22928
bad41521
RH
22929 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
22930 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
22931 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
22932 (cc_flags_for_mode, cc_flags_for_code): New.
22933 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
22934 overflow flag is not valid. Validate that the flags we need
22935 for the comparison are valid.
22936 (mn10300_output_cmp): Remove.
22937 (mn10300_output_add): New.
22938 (mn10300_select_cc_mode): Use cc_flags_for_code.
22939 (mn10300_split_cbranch): New.
22940 (mn10300_match_ccmode): New.
22941 (mn10300_split_and_operand_count): New.
22942 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
22943 to the function.
22944 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
22945 (addsi3): ... here. Use mn10300_output_add.
22946 (*addsi3_flags): New.
22947 (*am33_subsi3, *mn10300_subsi3): Merge...
22948 (subsi3): ... here. Use attribute isa.
22949 (*subsi3_flags): New.
22950 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
22951 when possible.
22952 (*am33_andsi3, *mn10300_andsi3): Merge...
22953 (andsi3): ... here.
22954 (*andsi3_flags): New.
22955 (andsi3 splitters): New.
22956 (*am33_iorsi3, *mn10300_iorsi3): Merge...
22957 (iorsi3): ... here.
22958 (*iorsi3_flags): New.
22959 (*am33_xorsi3, *mn10300_xorsi3): Merge...
22960 (xorsi3): ... here.
22961 (*xorsi3_flags): New.
22962 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
22963 (one_cmplsi2): ... here.
22964 (*one_cmplsi2_flags): New.
22965 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
22966 instead of "dax" in constraints. Use mn10300_split_cbranch.
22967 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
22968 use matching constraints to eliminate a self-comparison.
22969 (*integer_conditional_branch): Rename from integer_conditional_branch.
22970 Use int_mode_flags to match CC_REG.
22971 (*cbranchsi4_btst, *btstsi): New.
22972 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
22973 mn10300_split_cbranch.
22974 (*am33_cmpsf): Rename from am33_cmpsf.
22975 (*float_conditional_branch): Rename from float_conditional_branch.
22976 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
22977 (zero_extendqisi2): ... here.
22978 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
22979 (zero_extendhisi2): ... here.
22980 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
22981 (extendqisi2): ... here.
22982 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
22983 (extendhisi2): ... here.
22984 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
22985 (ashlsi3): ... here.
22986 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
22987 (lshrsi3): ... here.
22988 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
22989 (ashrsi3): ... here.
22990 (consecutive add peephole): Remove.
22991 * config/mn10300/predicates.md (label_ref_operand): New.
22992 (int_mode_flags): New.
22993 (CCZN_comparison_operator): New.
22994
9efb4993
RH
22995 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
22996 (throughput_42_latency_43): New reservation.
22997 (mulsidi3, umulsidi3): New expanders.
22998 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
22999 the MDR register to allocation; separately allocate the low and
23000 high parts of the DImode result.
23001 (umulsidi3_internal): Similarly.
23002 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
23003 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
23004 (udivsi3, umodsi3): Remove.
23005 (udivmodsi4, divmodsi4): New expanders.
23006 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
23007 (*divmodsi4): Simiarly.
23008 (ext_internal): New.
23009
c25a21f5
RH
23010 * config/mn10300/constraints.md ("z"): New constraint.
23011 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
23012 (FIXED_REGISTERS): Don't fix MDR.
23013 (CALL_USED_REGSITERS): Reformat nicely.
23014 (REG_ALLOC_ORDER): Add MDR.
23015 (enum regclass): Add MDR_REGS.
23016 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
23017 (IRA_COVER_CLASSES): Add MDR_REGS.
23018 (REGNO_REG_CLASS): Handle MDR_REG.
23019 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
23020 (mn10300_register_move_cost): Likewise.
23021 * config/mn10300/mn10300.md (MDR_REG): New.
23022 (*movsi_internal): Handle moves to/from MDR_REGS.
23023
36846b26
RH
23024 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
23025 POST_MODIFY.
23026 (mn10300_secondary_reload): Tidy combination reload classes.
23027 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
23028 addresses for AM33. Allow symbolic offsets for reg+imm.
23029 (mn10300_regno_in_class_p): New.
23030 (mn10300_legitimize_reload_address): New.
23031 * config/mn10300/mn10300.h (enum reg_class): Remove
23032 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
23033 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
23034 SP_OR_GENERAL_REGS.
23035 (REG_CLASS_NAMES): Update to match.
23036 (REG_CLASS_CONTENTS): Likewise.
23037 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
23038 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
23039 (REGNO_IN_RANGE_P): Remove.
23040 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
23041 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
23042 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
23043 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
23044 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
23045 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
23046 (REGNO_GENERAL_P): New.
23047 (HAVE_POST_MODIFY_DISP): New.
23048 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
23049 (LEGITIMIZE_RELOAD_ADDRESS): New.
23050 * config/mn10300/mn10300-protos.h: Update.
23051
8b119bb6
RH
23052 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
23053 DATA_REGS for AM33 stack-pointer destination.
23054 (mn10300_preferred_output_reload_class): Likewise.
23055 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
23056 into a form appropriate for ...
23057 (TARGET_SECONDARY_RELOAD): New.
23058 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
23059 * config/mn10300/mn10300-protos.h: Update.
23060 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
23061 reload_insi; use the "A" constraint for the scratch; handle AM33
23062 moves of sp to non-address registers.
23063
b1efde2a
RH
23064 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
23065 (*movqi_internal): ... here.
23066 (*am33_movhi, *mn10300_movhi): Merge into...
23067 (*movhi_internal): ... here.
23068 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
23069 as the source/destination of moves from/to SP.
23070 (movsf): Only allow for AM33-2.
1c3ba85b 23071 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
b1efde2a
RH
23072 any integer constant constraint. Only allow for AM33-2. Tidy
23073 all of the alternative outputs.
23074 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
23075 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
23076 for MN103.
23077 (udivsi3, umodsi3): New patterns for MN103 only.
23078
b899fd78
JR
230792011-01-19 Joern Rennecke <amylaar@spamcop.net>
23080
23081 * doc/tm.texi.in: Spell out that a lack of register class unions
23082 can lead to ICEs.
23083 * doc/tm.texi: Regenerate.
23084
afaaa67d
JJ
230852011-01-19 Jakub Jelinek <jakub@redhat.com>
23086
2e0642cd
JJ
23087 PR rtl-optimization/47337
23088 * dce.c (check_argument_store): New function.
23089 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
23090
afaaa67d
JJ
23091 PR tree-optimization/47290
23092 * tree-eh.c (infinite_empty_loop_p): New function.
23093 (cleanup_empty_eh): Use it.
23094
d2cd871f
SE
230952011-01-18 Steve Ellcey <sje@cup.hp.com>
23096
23097 PR target/46997
23098 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
23099 (a64_expand_widen_sum): Ditto.
23100 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
23101 (vec_extract_evenodd_help): Ditto.
23102 (vec_extract_evenv4hi): Ditto.
23103 (vec_extract_oddv4hi): Ditto.
23104 (vec_extract_evenv2si): Ditto.
23105 (vec_extract_oddv2si): Ditto.
23106 (vec_extract_evenv2sf): Ditto.
23107 (vec_extract_oddv2sf): Ditto.
23108 (vec_pack_trunc_v4hi: Ditto.
23109 (vec_pack_trunc_v2si): Ditto.
23110 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
23111 (vec_interleave_highv8qi): Ditto.
23112 (mix1_r): Ditto.
23113 (vec_extract_oddv8qi): Ditto.
23114 (vec_interleave_lowv4hi): Ditto.
23115 (vec_interleave_highv4hi): Ditto.
23116 (vec_interleave_lowv2si): Ditto.
23117 (vec_interleave_highv2si): Ditto.
23118
41a1208a
JDA
231192011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23120
23121 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
23122 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
23123 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
23124 (pa_c_mode_for_suffix): New.
23125 (TARGET_EXPAND_BUILTIN): Define.
23126 (TARGET_C_MODE_FOR_SUFFIX): Define.
23127 (pa_builtins): Define.
23128 (pa_init_builtins): Register __float128 type and init new support
23129 builtins.
23130 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
23131 * config/pa/quadlib.c (_U_Qfcopysign): New.
23132
1ecad98e
EB
231332011-01-18 Eric Botcazou <ebotcazou@adacore.com>
23134
23135 PR middle-end/46894
23136 * explow.c (allocate_dynamic_stack_space): Do not assume more than
23137 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
23138 are defined.
23139
d4f2460a
UW
231402011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23141
23142 PR tree-optimization/47179
23143 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
23144 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
23145
4994da65
RG
231462011-01-18 Richard Guenther <rguenther@suse.de>
23147
23148 PR rtl-optimization/47216
23149 * emit-rtl.c: Include tree-flow.h.
23150 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
23151 of replicating it with different semantics.
23152 * Makefile.in (emit-rtl.o): Adjust.
23153
1eb458d1
RR
231542011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23155
38be4072 23156 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
61052244 23157 (cortex_a9_dp): Handle neon types correctly.
1eb458d1 23158
e7ef91dc
JJ
231592011-01-18 Jakub Jelinek <jakub@redhat.com>
23160
23161 PR rtl-optimization/47299
23162 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
38be4072 23163 subtarget. Use normal multiplication if both operands are constants.
e7ef91dc
JJ
23164 * expmed.c (expand_widening_mult): Don't try to optimize constant
23165 multiplication if op0 has VOIDmode. Convert op1 constant to mode
23166 before using it.
23167
535b7874
RW
231682011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23169
23170 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
23171 spacing after 'e.g.', typos, comma, hyphenation.
23172
27bf36f3
RH
231732011-01-17 Richard Henderson <rth@redhat.com>
23174
8a5b5449
RH
23175 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
23176 (rx_restricted_mem_operand): New.
23177 (rx_shift_operand): Use register_operand.
23178 (rx_source_operand, rx_compare_operand): Likewise.
23179 * config/rx/rx.md (addsi3_flags): New expander.
23180 (adddi3): Rewrite as expander.
23181 (adc_internal, *adc_flags, adddi3_internal): New patterns.
23182 (subsi3_flags): New expander.
23183 (subdi3): Rewrite as expander.
23184 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
23185
784f69be
RH
23186 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
23187 (rx_init_builtins): Remove sat builtin.
23188 (rx_expand_builtin): Likewise.
23189 * config/rx/rx.md (ssaddsi3): New.
23190 (*sat): Rename from sat. Represent the CC_REG input.
23191
f033541c
RH
23192 * config/rx/predicates.md (rshift_operator): New.
23193 * config/rx/rx.c (rx_expand_insv): Remove.
23194 * config/rx/rx-protos.h: Update.
23195 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
23196 operand to the canonical position.
23197 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
23198 (*bitclr, *bitclr_in_memory): Similarly.
23199 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
23200 (insv): Retain the zero_extract in the expansion.
23201
34fee389
RH
23202 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
23203 (bswaphi2, bitinvert, revw): Likewise.
23204
265c835f
RH
23205 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
23206 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
23207 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
23208 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
23209 (bitset, bitset_in_memory): Likewise.
23210 (bitinvert, bitinvert_in_memory): Likewise.
23211 (bitclr, bitclr_in_memory): Likewise.
23212 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
23213 (rx_strend, rx_cmpstrn): Likewise.
23214 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
23215 (bitop peep2 patterns): Remove.
23216
b4d83be3
RH
23217 * config/rx/rx.c (rx_match_ccmode): New.
23218 * config/rx/rx-protos.h: Update.
23219 * config/rx/rx.md (abssi2): Clobber, don't set flags.
23220 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
23221 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
23222 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
23223 (fix_truncsfsi2, floatsisf2): Likewise.
23224 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
23225 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
23226 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
23227 (*subsi3_flags, *xorsi3_flags): New.
23228
d0acb939
RH
23229 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
23230
c06fc3d9
RH
23231 * config/rx/rx.c (rx_print_operand): Remove workaround for
23232 unsplit comparison operations.
23233
2882702b
RH
23234 * config/rx/rx.md (movsicc): Split after reload.
23235 (*movsicc): Merge *movsieq and *movsine via match_operator.
23236 (*stcc): New pattern.
23237
6f7310f2
RH
23238 * config/rx/rx.c (rx_float_compare_mode): Remove.
23239 * config/rx/rx.h (rx_float_compare_mode): Remove.
23240 * config/rx/rx.md (cstoresi4): Split after reload.
23241 (*sccc): New pattern.
23242
e963cb1a
RH
23243 * config/rx/predicates.md (label_ref_operand): New.
23244 (rx_z_comparison_operator): New.
23245 (rx_zs_comparison_operator): New.
23246 (rx_fp_comparison_operator): New.
23247 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
23248 Validate that the flags are set properly for the comparison.
23249 (rx_gen_cond_branch_template): Remove.
23250 (rx_cc_modes_compatible): Remove.
23251 (mode_from_flags): New.
23252 (flags_from_code): Rename from flags_needed_for_conditional.
23253 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
23254 (rx_select_cc_mode): Likewise.
23255 (rx_split_fp_compare): New.
23256 (rx_split_cbranch): New.
23257 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
23258 (*cbranchsi4): Use match_operator and rx_split_cbranch.
23259 (*cbranchsf4): Similarly.
23260 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
23261 match_operator and rx_split_cbranch.
23262 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
23263 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
23264 (*cmpsi): Rename from cmpsi.
23265 (*tstsi): Rename from tstsi.
23266 (*cmpsf): Rename from cmpsf; use CC_Fmode.
23267 (*conditional_branch): Rename from conditional_branch.
23268 (*reveresed_conditional_branch): Remove.
23269 (b<code>): Remove expander.
23270 * config/rx/rx-protos.h: Update.
23271
af530bb4
RH
23272 * config/rx/rx.c (rx_compare_redundant): Remove.
23273 * config/rx/rx.md (cmpsi): Don't use it.
23274 * config/rx/rx-protos.h: Update.
23275
27bf36f3
RH
23276 * config/rx/rx-modes.def (CC_F): New mode.
23277 * config/rx/rx.c (rx_select_cc_mode): New.
23278 * config/rx/rx.h (SELECT_CC_MODE): Use it.
23279 * config/rx/rx-protos.h: Update.
23280
d7fde127
RH
232812011-01-17 Richard Henderson <rth@redhat.com>
23282
23283 * except.c (dump_eh_tree): Fix stray ; after for statement.
23284
6ff38230
RG
232852011-01-17 Richard Guenther <rguenther@suse.de>
23286
23287 PR tree-optimization/47313
23288 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
23289 handling before copying the body. Properly deal with
23290 by-reference result in SSA form.
23291
114ce554
ILT
232922011-01-17 Ian Lance Taylor <iant@google.com>
23293
bf5cd92b 23294 PR target/47219
114ce554
ILT
23295 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
23296 (struct_value_alias_set): Don't define.
23297 (sparc_option_override): Don't set sparc_sr_alias_set and
23298 struct_value_alias_set.
23299 (save_or_restore_regs): Use gen_frame_mem rather than calling
23300 set_mem_alias_set.
23301 (sparc_struct_value_rtx): Likewise.
23302
98c6d93c
L
233032011-01-17 H.J. Lu <hongjiu.lu@intel.com>
23304
23305 PR target/47318
7a81008b 23306 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
98c6d93c
L
23307 (_mm_maskstore_pd): Likewise.
23308 (_mm_maskload_ps): Likewise.
23309 (_mm_maskstore_ps): Likewise.
23310 (_mm256_maskload_pd): Change mask to __m256i.
23311 (_mm256_maskstore_pd): Likewise.
23312 (_mm256_maskload_ps): Likewise.
23313 (_mm256_maskstore_ps): Likewise.
23314
23315 * config/i386/i386-builtin-types.def: Updated.
23316 (ix86_expand_special_args_builtin): Likewise.
23317
23318 * config/i386/i386.c (bdesc_special_args): Update
23319 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
23320 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
23321 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
23322 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
23323
23324 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
23325 Use <avxpermvecmode> on mask register.
23326 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
23327
b9361af2 233282011-01-17 Olivier Hainque <hainque@adacore.com>
61052244
AM
23329 Michael Haubenwallner <michael.haubenwallner@salomon.at>
23330 Eric Botcazou <ebotcazou@adacore.com>
b9361af2
OH
23331
23332 PR target/46655
23333 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
23334 if <= USHRT_MAX in 32-bit mode.
23335
b7ae9eb5
RW
233362011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23337
23338 * doc/install.texi (Configuration, Specific): Wrap long
23339 lines in examples. Allow line wrapping in long options
23340 and URLs where beneficial for PDF output.
23341
4377fad9
RS
233422011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
23343
23344 * config/mips/mips.c (mips_classify_symbol): Don't return
23345 SYMBOL_PC_RELATIVE for nonlocal labels.
23346
55959ffa 233472011-01-15 Eric Botcazou <ebotcazou@adacore.com>
be46831f 23348
55959ffa
EB
23349 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
23350
233512011-01-15 Jan Hubicka <jh@suse.cz>
23352
23353 PR tree-optimization/47276
be46831f
JH
23354 * ipa.c (function_and_variable_visibility): Do not try to mark alias
23355 declarations as needed.
23356
05842ff5
MJ
233572011-01-15 Martin Jambor <mjambor@suse.cz>
23358
23359 * common.opt (fdevirtualize): New flag.
23360 * doc/invoke.texi (Option Summary): Document it.
23361 * opts.c (default_options_table): Add devirtualize flag.
23362 * ipa-prop.c (detect_type_change): Return immediately if
23363 devirtualize flag is not set.
23364 (detect_type_change_ssa): Likewise.
23365 (compute_known_type_jump_func): Likewise.
23366 (ipa_analyze_virtual_call_uses): Likewise.
23367
f65cf2b7
MJ
233682011-01-14 Martin Jambor <mjambor@suse.cz>
23369
23370 PR tree-optimization/45934
23371 PR tree-optimization/46302
23372 * ipa-prop.c (type_change_info): New type.
23373 (stmt_may_be_vtbl_ptr_store): New function.
23374 (check_stmt_for_type_change): Likewise.
23375 (detect_type_change): Likewise.
23376 (detect_type_change_ssa): Likewise.
23377 (compute_complex_assign_jump_func): Check for dynamic type change.
23378 (compute_complex_ancestor_jump_func): Likewise.
23379 (compute_known_type_jump_func): Likewise.
23380 (compute_scalar_jump_functions): Likewise.
23381 (ipa_analyze_virtual_call_uses): Likewise.
23382 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
23383
eb5bb0fd
JM
233842011-01-14 Joseph Myers <joseph@codesourcery.com>
23385
23386 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
23387 * config/i386/i386.opt (msse5): New Alias.
23388
f2060fbe
JM
233892011-01-14 Joseph Myers <joseph@codesourcery.com>
23390
23391 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
23392 * config/sparc/linux64.h (CC1_SPEC): Likewise.
23393 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
23394 * config/sparc/sparc.h (CC1_SPEC): Likewise.
23395
3a7b4385
JM
233962011-01-14 Joseph Myers <joseph@codesourcery.com>
23397
23398 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
23399 -mcpu options.
23400 * config/sparc/linux64.h (CC1_SPEC): Likewise.
23401 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
23402 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
23403 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
23404 Likewise.
23405 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
23406
a7b778f8
JM
234072011-01-14 Joseph Myers <joseph@codesourcery.com>
23408
38be4072 23409 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
a7b778f8 23410
a7edae0a
MS
234112011-01-14 Mike Stump <mikestump@comcast.net>
23412
23413 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
23414 * config/fr30/fr30.md: Likweise
23415 (movsi_push): Likewise.
23416 (movsi_pop): Likewise.
23417 (enter_func): Likewise.
23418 * config/moxie/moxie.md (movsi_push): Likewise.
23419 (movsi_pop): Likewise.
23420
cbabf03f
JM
234212011-01-14 Joseph Myers <joseph@codesourcery.com>
23422
23423 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
23424 %{no_archive} %{exact_version}.
23425 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
23426 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
23427 %{no_archive} %{exact_version}.
23428 * config/mips/openbsd.h (LINK_SPEC): Likewise.
23429 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
23430 * config/mips/vxworks.h: Likewise.
23431
438da41a
JM
234322011-01-14 Joseph Myers <joseph@codesourcery.com>
23433
38be4072 23434 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
438da41a 23435
da290a42
JM
234362011-01-14 Joseph Myers <joseph@codesourcery.com>
23437
23438 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
23439 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
23440
8989d00e
JM
234412011-01-14 Joseph Myers <joseph@codesourcery.com>
23442
23443 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
23444 -nodefaultlib.
23445
a3010a69
JM
234462011-01-14 Joseph Myers <joseph@codesourcery.com>
23447
23448 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
23449 for mcpu not cpu.
23450 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
23451 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
23452 not cpu.
23453 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
23454 Don't handle -shlib.
23455
e7f2f537
JM
234562011-01-14 Joseph Myers <joseph@codesourcery.com>
23457
23458 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
23459 (CC1_SPEC): Don't handle -profile.
23460
34830bfd
JM
234612011-01-14 Joseph Myers <joseph@codesourcery.com>
23462
23463 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
23464 * config/mips/mips.h (CC1_SPEC): Likewise.
23465
b2d36e74
JM
234662011-01-14 Joseph Myers <joseph@codesourcery.com>
23467
23468 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
23469 * config/mips/mips.h (CC1_SPEC): Likewise.
23470
dabadc52
JM
234712011-01-14 Joseph Myers <joseph@codesourcery.com>
23472
23473 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
23474 * config/m32r/linux.h (LINK_SPEC): Likewise.
23475 * config/mips/linux.h (LINK_SPEC): Likewise.
23476 * config/mips/linux64.h (LINK_SPEC): Likewise.
23477 * config/sparc/linux.h (LINK_SPEC): Likewise.
23478 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
23479 LINK_SPEC): Likewise.
23480 * config/xtensa/linux.h (LINK_SPEC): Likewise.
23481
43ee6785
JM
234822011-01-14 Joseph Myers <joseph@codesourcery.com>
23483
23484 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
23485 %{version:-v}.
23486 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
23487
45e79dfd
JM
234882011-01-14 Joseph Myers <joseph@codesourcery.com>
23489
23490 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
23491 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
23492
37e9e71d
JM
234932011-01-14 Joseph Myers <joseph@codesourcery.com>
23494
23495 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
23496
bb127cd8
RO
234972011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23498
23499 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
23500 supports -Bstatic/-Bdynamic.
23501 * configure: Regenerate.
23502
89a012ea 235032011-01-14 Jan Hubicka <jh@suse.cz>
509d65dd 23504 Jack Howarth <howarth@bromo.med.uc.edu>
89a012ea
JH
23505
23506 PR target/46037
23507 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
23508 when checking debug_info_level. Test write_symbols instead of
23509 debug_hooks->var_location when setting flag_var_tracking_uninit.
23510
7352c013
RG
235112011-01-14 Richard Guenther <rguenther@suse.de>
23512
23513 PR tree-optimization/47179
23514 * target.def (ref_may_alias_errno): New target hook.
23515 * targhooks.h (default_ref_may_alias_errno): Declare.
23516 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
23517 (default_ref_may_alias_errno): New function.
23518 * target.h (struct ao_ref_s): Declare.
23519 * tree-ssa-alias.c: Include target.h.
23520 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
23521 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
23522 (targhooks.o): Likewise.
23523 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
23524 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
23525
9a6c9288
RG
235262011-01-14 Richard Guenther <rguenther@suse.de>
23527
23528 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
23529
0fdb0d27
RG
235302011-01-14 Richard Guenther <rguenther@suse.de>
23531
23532 PR tree-optimization/47280
23533 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
23534 return CFG changes.
23535 (tree_ssa_forward_propagate_single_use_vars): Deal with
23536 CFG changes from associate_plusminus.
23537
8f66db3b
RG
235382011-01-14 Richard Guenther <rguenther@suse.de>
23539
23540 PR middle-end/47281
23541 Revert
23542 2011-01-11 Richard Guenther <rguenther@suse.de>
23543
280d9630
EB
23544 PR tree-optimization/46076
23545 * tree-ssa.c (useless_type_conversion_p): Conversions from
23546 unprototyped to empty argument list function types are useless.
8f66db3b 23547
6c0c92e6
RG
235482011-01-14 Richard Guenther <rguenther@suse.de>
23549
23550 PR tree-optimization/47286
280d9630 23551 * tree-ssa-structalias.c (new_var_info): Register variables are global.
6c0c92e6 23552
db09f943
MJ
235532011-01-14 Martin Jambor <mjambor@suse.cz>
23554
23555 PR middle-end/46823
23556 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
23557
dde8a3a4
AS
235582011-01-13 Anatoly Sokolov <aesok@post.ru>
23559
23560 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
23561 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
23562 * config/xtensa/xtensa.c (xtensa_libcall_value,
23563 xtensa_function_value_regno_p): New functions.
23564 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
23565
a2b63a20
KT
235662011-01-13 Kai Tietz <kai.tietz@onevision.com>
23567
23568 PR c++/47213
23569 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
23570 PE specific hook.
23571 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
23572 New function prototype.
23573 * config/i386/winnt.c (i386_pe_assemble_visibility):
23574 Warn only if attribute was specified by user.
23575
b41f0b34
MM
235762011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
23577
23578 PR target/47251
23579 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
23580 floating point.
23581 (floatunsdidf2_fcfidu): Ditto.
23582
3f3c098d
AK
235832011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23584
23585 * config/s390/s390.c (print_operand_address): Replace 'error' with
23586 'output_operand_lossage'.
23587 (print_operand): Likewise.
23588
29fa95ed
JL
235892011-01-13 Jeff Law <law@redhat.com>
23590
280d9630 23591 PR rtl-optimization/39077
29fa95ed
JL
23592 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
23593 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
23594 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
23595 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
23596 * gcse.c (prune_insertions_deletions): New function.
23597 (compute_pre_data): Use it.
23598
71d12276
DS
235992011-01-13 Dodji Seketeli <dodji@redhat.com>
23600
23601 PR debug/PR46973
23602 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
23603 static function.
61052244 23604 (prune_unused_types_mark): Use it.
71d12276 23605
9b0f04e7
AB
236062011-01-13 Andrey Belevantsev <abel@ispras.ru>
23607
23608 PR rtl-optimization/45352
1c3ba85b 23609 * sel-sched.c: Update copyright years.
9b0f04e7 23610 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1c3ba85b 23611 in the advancing loop when we have issued issue_rate insns.
9b0f04e7 23612
d6a3e264
RH
236132011-01-12 Richard Henderson <rth@redhat.com>
23614
a49b692a
RH
23615 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
23616 (TARGET_MD_ASM_CLOBBERS): New.
23617
126b1483
RH
23618 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
23619 (TARGET_DELEGITIMIZE_ADDRESS): New.
23620
f3d9d2e0
RH
23621 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
23622 (clzsi2, *bsch): New patterns.
23623
d84760c9
RH
23624 * config/mn10300/mn10300.md (INT): New mode iterator.
23625 (*mov<INT>_clr): New pattern, and peep2 to generate it.
23626
ec815d65
RH
23627 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
23628 flag_split_wide_types.
23629
d6a3e264
RH
23630 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
23631 (mn10300_trampoline_init): Rewrite without a template, an immediate
23632 load and a direct branch.
23633 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
23634
0f8ab434
AS
236352011-01-12 Anatoly Sokolov <aesok@post.ru>
23636
23637 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
23638 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
23639 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
23640 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
23641
d8a24b65
KT
236422011-01-12 Kai Tietz <kai.tietz@onevision.com>
23643
23644 PR debug/47209
23645 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
23646 of type.
23647
56e22cab
JH
236482011-01-12 Jan Hubicka <jh@suse.cz>
23649
23650 PR driver/47244
23651 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
23652 (PLUGIN_COND_CLOSE): New macro.
23653 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
23654
4b18b3c2
RG
236552011-01-12 Richard Guenther <rguenther@suse.de>
23656
23657 PR lto/47259
23658 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
23659 register variables in a MEM_REF.
23660
8e38461c
JM
236612011-01-12 Joseph Myers <joseph@codesourcery.com>
23662
23663 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
23664 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
23665 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
23666 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
23667 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
23668 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
23669 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
23670 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
23671 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
23672 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
23673 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
23674 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
23675 * config/gnu-user.h: New. Copied from linux.h.
23676 (LINUX_TARGET_STARTFILE_SPEC): Rename to
23677 GNU_USER_TARGET_STARTFILE_SPEC.
23678 (LINUX_TARGET_ENDFILE_SPEC): Rename to
23679 GNU_USER_TARGET_ENDFILE_SPEC.
23680 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
23681 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
23682 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
23683 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
23684 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
23685 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
23686 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
23687 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
23688 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
23689 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
23690 * config/arm/linux-eabi.h (CC1_SPEC): Use
23691 GNU_USER_TARGET_CC1_SPEC.
23692 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
23693 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
23694 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
23695 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
23696 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
23697 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
23698 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
23699 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
23700
a570fc16
RG
237012011-01-12 Richard Guenther <rguenther@suse.de>
23702
23703 PR other/46946
23704 * doc/invoke.texi (ffast-math): Document it is turned on
23705 with -Ofast.
23706
b0223c3e
JH
237072011-01-12 Jan Hubicka <jh@suse.cz>
23708
23709 PR tree-optimization/47233
ca1e00b3
EB
23710 * opts.c (common_handle_option): Disable ipa-reference with profile
23711 feedback.
b0223c3e 23712
1c3ba85b 237132011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
d853ee42
NP
23714
23715 * c-parser.c (c_parser_objc_at_property_declaration): Improved
ca1e00b3
EB
23716 error message.
23717
d853ee42
NP
237182011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
23719
23720 * c-parser.c (c_lex_one_token): Updated and reindented some
23721 comments. No changes in code.
23722
4053a5a0
ILT
237232011-01-11 Ian Lance Taylor <iant@google.com>
23724
23725 * godump.c (go_output_var): Don't output the variable if there is
23726 already a type with the same name.
23727
fa3e04d2
ILT
237282011-01-11 Ian Lance Taylor <iant@google.com>
23729
23730 * godump.c (go_format_type): Don't generate float80.
23731
885fe07c
RH
237322011-01-11 Richard Henderson <rth@redhat.com>
23733
72d6e3c5
RH
23734 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
23735 declaration. Rewrite for both speed and size.
23736 (mn10300_address_cost_1): Remove.
23737 (mn10300_register_move_cost): New.
23738 (mn10300_memory_move_cost): New.
23739 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
23740 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
23741 extensions, shifts, BSWAP, CLZ.
23742 (mn10300_wide_const_load_uses_clr): Remove.
23743 (TARGET_REGISTER_MOVE_COST): New.
23744 (TARGET_MEMORY_MOVE_COST): New.
23745 * config/mn10300/mn10300-protos.h: Update.
23746 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
23747
df37c023
RH
23748 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
23749 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
23750 * config/mn10300/mn10300-protos.h: Update.
23751 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
23752 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
23753 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
23754 (*test_int_bitfield, *test_byte_bitfield): Remove.
23755 (*bit_test, *subreg_bit_test): Remove.
62d3f9b2 23756 * config/mn10300/predicates.md (const_8bit_operand): Remove.
df37c023 23757
85a337b5
RH
23758 * config/mn10300/constraints.md ("c"): Rename from "A".
23759 ("A", "D"): New constraint letters.
23760 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
23761 (fmssf4, fnmasf4, fnmssf4): Likewise.
23762
a5c727e3
RH
23763 * config/mn10300/mn10300.md (isa): New attribute.
23764 (enabled): New attribute.
23765
0d9e23f4
RH
23766 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
23767 (abssf2, negsf2): Define only for hardware fp.
23768 (sqrtsf2): Reformat.
23769 (addsf3, subsf3, mulsf3): Merge expander and insn.
23770
c157b3f0
RH
23771 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
23772 (DEBUGGER_AUTO_OFFSET): Remove.
23773 (DEBUGGER_ARG_OFFSET): Remove.
23774
cc909bba
RH
23775 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
23776 Emit register stores with the same offsets as the hardware.
23777 (mn10300_store_multiple_operation): Don't check that the register
23778 save offsets are monotonic.
23779 * config/mn10300/mn10300-protos.h: Update.
23780
e3b5c2f3
RH
23781 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
23782
885fe07c
RH
23783 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
23784 in terms of the value on the stack, not the MDR register.
23785
6e701822
JH
237862011-01-11 Jan Hubicka <jh@suse.cz>
23787
23788 PR lto/45721
23789 PR lto/45375
23790 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
23791 (symbol_alias_set_destroy, symbol_alias_set_contains,
23792 propagate_aliases_backward): Declare.
23793 * lto-streamer-out.c (struct sets): New sturcture.
23794 (trivally_defined_alias): New function.
23795 (output_alias_pair_p): Rewrite.
23796 (output_unreferenced_globals): Fix output of alias pairs.
23797 (produce_symtab): Likewise.
23798 * ipa.c (function_and_variable_visibility): Set weak alias destination
23799 as needed in lto.
23800 * varasm.c (symbol_alias_set_t): Remove.
23801 (symbol_alias_set_destroy): Export.
23802 (propagate_aliases_forward, propagate_aliases_backward): New functions
23803 based on ...
23804 (compute_visible_aliases): ... this one; remove.
23805 (trivially_visible_alias): New
23806 (trivially_defined_alias): New.
23807 (remove_unreachable_alias_pairs): Rewrite.
23808 (finish_aliases_1): Reorganize code checking if alias is defined.
23809 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
23810 in LTO mode.
23811
1b248907
RG
238122011-01-11 Richard Guenther <rguenther@suse.de>
23813
23814 PR tree-optimization/46076
23815 * tree-ssa.c (useless_type_conversion_p): Conversions from
23816 unprototyped to empty argument list function types are useless.
23817
b1923f0a
RG
238182011-01-11 Richard Guenther <rguenther@suse.de>
23819
23820 PR middle-end/45235
23821 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
23822 volatile MEMs as MEM_READONLY_P.
23823
e98965af
RG
238242011-01-11 Richard Guenther <rguenther@suse.de>
23825
23826 PR tree-optimization/47239
23827 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
23828
9f9ca914
JL
238292011-01-11 Jeff Law <law@redhat.com>
23830
1ee3ea05 23831 PR tree-optimization/47086
9f9ca914
JL
23832 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
23833 IVs from statements that might throw.
23834
345fdcb7
JH
238352011-01-10 Jan Hubicka <jh@suse.cz>
23836
23837 PR lto/45375
23838 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
23839
c459c97b
JH
238402011-01-10 Jan Hubicka <jh@suse.cz>
23841
23842 PR lto/45375
23843 * profile.c (read_profile_edge_counts): Ignore profile inconistency
23844 when correcting profile.
23845
06c9eb51
JH
238462011-01-10 Jan Hubicka <jh@suse.cz>
23847
23848 PR lto/46083
23849 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
23850 DECL_FINI_PRIORITY.
23851 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
23852 Restore DECL_FINI_PRIORITY.
23853
ae9fd815
RW
238542011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23855
23856 * doc/gimple.texi: Fix quoting of multi-word return values in
23857 @deftypefn statements. Ensure presence of return value. Wrap
23858 overlong @deftypefn lines.
23859 (is_gimple_operand, is_gimple_min_invariant_address): Remove
23860 descriptions of removed functions.
23861 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
23862 of multi-word return value in @deftypefn statement.
23863
0ecb4a7c
RW
238642011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23865
23866 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
23867 (Conditional Expressions, Logical Operators)
23868 (Statement and operand traversals): Do not indent smallexample
23869 code. Fix duplicate function argument in example.
23870
2e5e346d
JL
238712011-01-10 Jeff Law <law@redhat.com>
23872
1ee3ea05 23873 PR tree-optimization/47141
2e5e346d
JL
23874 * ipa-split.c (split_function): Handle case where we are
23875 returning a value and the return block has a virtual operand phi.
23876
cf9712cc
JH
238772011-01-10 Jan Hubicka <jh@suse.cz>
23878
1c3ba85b 23879 PR tree-optimization/47234
cf9712cc
JH
23880 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
23881 (pass_feedback_split_functions): Declare.
23882 * passes.c (init_optimization_passes): Add ipa-split as subpass of
23883 tree-profile.
23884 * ipa-split.c (gate_split_functions): Update comments; disable
23885 split-functions for profile_arc_flag and branch_probabilities.
23886 (gate_feedback_split_functions): New function.
23887 (execute_feedback_split_functions): New function.
23888 (pass_feedback_split_functions): New global var.
23889
94cd932c
L
238902011-01-10 H.J. Lu <hongjiu.lu@intel.com>
23891
23892 PR lto/46760
23893 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
23894 calling gimple_call_set_cannot_inline.
23895
fbbfcaf1
IS
238962011-01-10 Iain Sandoe <iains@gcc.gnu.org>
23897
23898 * config/darwin-sections.def: Remove unused section.
23899
d06865bf
DK
239002011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
23901
23902 PR c++/47218
23903 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
23904
96bbfbac
NP
239052011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
23906
23907 PR objc/47232
23908 * c-parser.c (c_parser_declaration_or_fndef): Improved
23909 error message.
23910
1ba6516f
KT
239112011-01-09 Kai Tietz <kai.tietz@onevision.com>
23912
23913 * config/i386/winnt.c (i386_pe_start_function): Make sure
23914 to switch back to function's section.
23915
0c5d770e
IS
239162011-01-09 Iain Sandoe <iains@gcc.gnu.org>
23917
23918 PR gcc/46902
23919 PR testsuite/46912
23920 * plugin.c: Move include of dlfcn.h from here...
23921 * system.h: ... to here.
23922
239232011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4ee1aa2a
RW
23924
23925 * doc/cpp.texi (C++ Named Operators): Fix markup for header
23926 file name.
23927 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
23928 two extra empty pages in PDF output.
23929
046608a3
NP
239302011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
23931
23932 PR objc/47078
23933 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
23934 for error recovery purposes behave as if it was not specified so
23935 that the default type is usd.
23936
8cb114b9
JH
239372011-01-07 Jan Hubicka <jh@suse.cz>
23938
23939 PR tree-optmization/46469
23940 * ipa.c (function_and_variable_visibility): Clear needed flags on
23941 nodes with external decls; handle weakrefs merging correctly.
23942
b294a75e
JM
239432011-01-07 Joseph Myers <joseph@codesourcery.com>
23944
23945 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
23946 not false.
23947
96bdf9b4
JH
239482011-01-07 Jan Hubicka <jh@suse.cz>
23949
f60c2554 23950 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
96bdf9b4
JH
23951 and no longer claim that gold is required for linker plugin.
23952 * configure: Regenerate.
23953 * gcc.c (PLUGIN_COND): New macro.
23954 (LINK_COMMAND_SPEC): Use it.
23955 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
23956 * config.in (HAVE_LTO_PLUGIN): New.
23957 * configure.ac (--with-lto-plugin): New parameter; autodetect
23958 HAVE_LTO_PLUGIN.
23959
17afc0fe
JH
239602011-01-07 Jan Hubicka <jh@suse.cz>
23961
23962 PR tree-optimization/46367
23963 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
23964 when we can update original.
23965 (cgraph_mark_inline_edge): Sanity check.
23966 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
23967
d4c48c0f
UW
239682011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23969
23970 * config/spu/spu.h (ASM_COMMENT_START): Define.
23971
96f5b137
L
239722011-01-07 H.J. Lu <hongjiu.lu@intel.com>
23973
23974 PR driver/42445
23975 * gcc.c (%>S): New.
23976 (SWITCH_KEEP_FOR_GCC): Likewise.
23977 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
23978 (do_spec_1): Handle "%>".
23979
23980 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
23981
c6a8f6de
JJ
239822011-01-07 Jakub Jelinek <jakub@redhat.com>
23983
c21bbd7a
JJ
23984 PR target/47201
23985 * config/i386/i386.c (ix86_delegitimize_address): If
23986 simplify_gen_subreg fails, return orig_x.
23987
c6a8f6de
JJ
23988 PR bootstrap/47187
23989 * value-prof.c (gimple_stringop_fixed_value): Handle
23990 lhs of the call properly.
23991
fe95fbf9
JH
239922011-01-07 Jan Hubicka <jh@suse.cz>
23993
23994 PR lto/45375
23995 * lto-opt.c (lto_reissue_options): Set flag_shlib.
23996
14d11d40
IS
239972011-01-07 Iain Sandoe <iains@gcc.gnu.org>
23998
72e961c8
EB
23999 * target.def (function_switched_text_sections): New hook.
24000 * doc/tm.texi: Regenerated.
24001 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 24002 * final.c (default_function_switched_text_sections): New.
72e961c8
EB
24003 (final_scan_insn): Call function_switched_text_sections when a
24004 mid-function section change occurs.
14d11d40 24005 * output.h (default_function_switched_text_sections): Declare.
72e961c8
EB
24006 * config/darwin-protos.h (darwin_function_switched_text_sections):
24007 Likewise.
14d11d40 24008 * config/darwin.c (darwin_function_switched_text_sections): New.
72e961c8 24009 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 24010
0b764288
IS
240112011-01-07 Iain Sandoe <iains@gcc.gnu.org>
24012
24013 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
24014 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
24015 the secondary code fragment when outputting for DWARF == 2.
24016
2ac6bb04
AS
240172011-01-07 Anatoly Sokolov <aesok@post.ru>
24018
24019 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
24020 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
24021 Remove.
24022 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
24023 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
24024
9f82de11
EB
240252011-01-06 Eric Botcazou <ebotcazou@adacore.com>
24026
24027 PR debug/46704
280d9630
EB
24028 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
24029 when it is not empty.
9f82de11
EB
24030
240312011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14b52538 24032
1ed72abf 24033 Bobcat Enablement
14b52538 24034 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
1ed72abf 24035 (case ${target}): Add btver1.
14b52538 24036 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1ed72abf 24037 -march=native recognize btver1 processors.
14b52538 24038 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1ed72abf 24039 btver1 def_and_undef
14b52538 24040 * config/i386/i386.c (struct processor_costs btver1_cost): New
1ed72abf
CF
24041 btver1 cost table.
24042 (m_BTVER1): New definition.
24043 (m_AMD_MULTIPLE): Includes m_BTVER1.
24044 (initial_ix86_tune_features): Add btver1 tune.
24045 (processor_target_table): Add btver1 entry.
24046 (static const char *const cpu_names): Add btver1 entry.
24047 (software_prefetching_beneficial_p): Add btver1.
24048 (ix86_option_override_internal): Add btver1 instruction sets.
24049 (ix86_issue_rate): Add btver1.
24050 (ix86_adjust_cost): Add btver1.
14b52538 24051 * config/i386/i386.h (TARGET_BTVER1): New definition.
1ed72abf
CF
24052 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
24053 (enum processor_type): Add PROCESSOR_BTVER1.
14b52538
CF
24054 * config/i386/i386.md (define_attr "cpu"): Add btver1.
24055
e1a973d8
RO
240562011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24057
24058 PR target/43309
24059 * config/i386/i386.c (legitimize_tls_address)
24060 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
24061 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
24062 (tls_initial_exec_64_sun): New pattern.
24063
c73f67c5
GP
240642011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
24065
24066 * doc/invoke.texi (Overall Options): Improve wording and markup
24067 of the description of -wrapper.
24068
bc4c6f9c
JM
240692011-01-06 Joseph Myers <joseph@codesourcery.com>
24070
24071 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
24072 rdynamic, threads): New Driver options.
24073
adb75db0
RO
240742011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24075
24076 PR target/38118
24077 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
24078 if coming from .tdata.
24079 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
24080
402c1cb4
JH
240812011-01-06 Jan Hubicka <jh@suse.cz>
24082
24083 PR lto/47188
24084 * collect2.c (main): Do not enable LTOmode when plugin is active.
24085
a4da6485
RO
240862011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24087
24088 PR other/45915
24089 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
24090 --version output if supported.
24091 * configure: Regenerate.
24092
028dbdf4
JM
240932011-01-06 Joseph Myers <joseph@codesourcery.com>
24094
24095 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
24096 Driver options.
24097
dfe776dd
JJ
240982011-01-06 Jakub Jelinek <jakub@redhat.com>
24099
24100 PR c/47150
24101 * c-convert.c (convert): When converting a complex expression
24102 other than COMPLEX_EXPR to a different complex type, ensure
24103 c_save_expr is called instead of save_expr, unless in_late_binary_op.
24104 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
24105 when converting COMPLEX_TYPE.
24106
210dedfe
IR
241072011-01-06 Ira Rosen <irar@il.ibm.com>
24108
24109 PR tree-optimization/47139
24110 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
24111 only the last reduction value is used outside the loop. Update
24112 documentation.
24113
cd33a412
JM
241142011-01-05 Joseph Myers <joseph@codesourcery.com>
24115
24116 * config/rtems.opt: New.
24117 * config.gcc (*-*-rtems*): Use rtems.opt.
24118
819edd94
CF
241192011-01-05 Changpeng Fang <changpeng.fang@amd.com>
24120
24121 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
24122 processors do not support 3DNow instructions.
24123
dc242c4a
UW
241242011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24125
24126 * config/spu/spu.c (spu_option_override): Set parameter
24127 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
24128
be286227
JH
241292011-01-05 Jan Hubicka <jh@suse.cz>
24130
24131 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
24132 at the command line.
24133
644e637f
MJ
241342011-01-05 Martin Jambor <mjambor@suse.cz>
24135
24136 PR lto/47162
24137 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
24138 deltas on streamed outgoing edges.
24139 (output_node_opt_summary): Output info for outgoing edges only when
24140 the node is in new parameter set.
24141 (output_cgraph_opt_summary): New parameter set, passed to the two
24142 aforementioned functions. Update its forward declaration and its
24143 callee too.
24144
7bd11157
TT
241452011-01-05 Tom Tromey <tromey@redhat.com>
24146
24147 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
24148 operator to c_finish_omp_atomic.
24149 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
24150 (build_unary_op): Update.
24151 (build_modify_expr): Update.
24152 (build_asm_expr): Update.
24153
f626b979
UW
241542011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24155
24156 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
24157 newly inserted insns.
24158 (pad_bb): Likewise.
24159 (spu_emit_branch_hint): Likewise.
24160 (insert_hbrp_for_ilb_runout): Likewise.
24161 (spu_machine_dependent_reorg): Call df_finish_pass after
24162 schedule_insns returns.
24163
4c825c02
UW
241642011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24165
24166 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
24167
5e9fba51
EB
241682011-01-05 Eric Botcazou <ebotcazou@adacore.com>
24169
24170 PR tree-optimization/47005
24171 * tree-sra.c (struct access): Add 'non_addressable' bit.
24172 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
24173 (decide_one_param_reduction): Return 0 if the parameter is passed by
24174 reference and one of the accesses in the group is non_addressable.
24175
3ebb5ca6
EB
241762011-01-04 Eric Botcazou <ebotcazou@adacore.com>
24177
24178 PR tree-optimization/47056
24179 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
24180 (mark_load): Likewise. Handle FUNCTION_DECL specially.
24181 (mark_store): Likewise. Pass STMT to ipa_record_reference.
24182
d5d4d14e
EB
241832011-01-04 Eric Botcazou <ebotcazou@adacore.com>
24184
24185 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
24186 initializer. Skip view conversions from aggregate types.
24187
d996ef70
KT
241882011-01-04 Kai Tietz <kai.tietz@onevision.com>
24189
24190 PR bootstrap/47055
24191 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
24192
509d65dd 241932011-01-04 Philipp Thomas <pth@suse.de>
017096ca
PT
24194
24195 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
24196 obvious typo.
24197
55c623b5
UW
241982011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24199
24200 * function.c (thread_prologue_and_epilogue_insns): Do not crash
24201 on empty epilogue sequences.
24202
b98d6b35
JM
242032011-01-04 Joseph Myers <joseph@codesourcery.com>
24204
24205 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
24206 non-static): New Driver options.
24207
a0d43bac
JZ
242082011-01-04 Jie Zhang <jie@codesourcery.com>
24209
24210 PR driver/47137
24211 * gcc.c (default_compilers[]): Set combinable field to 0
24212 for all assembly languages.
24213
2b18eb32
MX
242142011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
24215
24216 * config/mips/loongson3a.md: New file.
24217 * config/mips/mips.md: Include loongson3a.md.
24218 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
24219 TUNE_LOONGSON_3A.
24220
42a48c4f
EB
242212011-01-03 Eric Botcazou <ebotcazou@adacore.com>
24222
24223 PR middle-end/47017
24224 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
24225 instead of convert_memory_address_addr_space on the base expression.
24226
9c1732c4
UW
242272011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24228
24229 * config/spu/spu.c (spu_option_override): Update error text
24230 for bad -march= / -mtune= values.
24231
aa474365
UW
242322011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24233
24234 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
24235 if branch-hint optimization will be performed.
24236
9766135b
JJ
242372011-01-03 Jakub Jelinek <jakub@redhat.com>
24238
371556ee
JJ
24239 PR tree-optimization/47148
24240 * ipa-split.c (split_function): Convert arguments to
24241 DECL_ARG_TYPE if possible.
24242
1ac12fa2
JJ
24243 PR tree-optimization/47155
24244 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
24245 when computing uns.
24246
9766135b
JJ
24247 PR rtl-optimization/47157
24248 * combine.c (try_combine): If undobuf.other_insn becomes
24249 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
24250 and set *new_direct_jump_p too.
24251
f4a2e571
SP
242522011-01-03 Sebastian Pop <sebastian.pop@amd.com>
24253
24254 PR tree-optimization/47021
24255 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
24256
9f8e43c0
JJ
242572011-01-03 Jakub Jelinek <jakub@redhat.com>
24258
24259 * gcc.c (process_command): Update copyright notice dates.
24260 * gcov.c (print_version): Likewise.
24261 * gcov-dump.c (print_version): Likewise.
24262 * mips-tfile.c (main): Likewise.
24263 * mips-tdump.c (main): Likewise.
24264
1a2e38f3
MJ
242652011-01-03 Martin Jambor <mjambor@suse.cz>
24266
24267 PR tree-optimization/46801
24268 * tree-sra.c (type_internals_preclude_sra_p): Check whether
24269 aggregate fields start at byte boundary instead of the bit-field flag.
24270
56b721c5
L
242712011-01-03 H.J. Lu <hongjiu.lu@intel.com>
24272
24273 PR driver/47137
24274 * gcc.c (main): Revert revision 168407.
24275
839d549b
MJ
242762011-01-03 Martin Jambor <mjambor@suse.cz>
24277
24278 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
24279
4ce99a20 242802011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2fa6eeff
UW
24281
24282 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
24283 vector optab to expand vector/scalar shift, update gimple to vector.
24284
76df0ae6
MJ
242852011-01-03 Martin Jambor <mjambor@suse.cz>
24286
24287 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
24288 a thunk.
24289
ce47fda3
MJ
242902011-01-03 Martin Jambor <mjambor@suse.cz>
24291
24292 PR tree-optimization/46984
24293 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
24294 HOST_WIDE_INT.
24295 (cgraph_create_indirect_edge): Fixed line length.
24296 (cgraph_indirect_call_info): Declare.
24297 (cgraph_make_edge_direct) Update declaration.
24298 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
24299 (cgraph_create_indirect_edge): Use it.
24300 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
24301 callees.
24302 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
24303 the new thunk_delta representation.
24304 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
24305 HOST_WIDE_INT.
24306 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
24307 (ipa_read_indirect_edge_info): Likewise.
24308 * lto-cgraph.c (output_edge_opt_summary): New function.
24309 (output_node_opt_summary): Call it on all outgoing edges.
24310 (input_edge_opt_summary): New function.
24311 (input_node_opt_summary): Call it on all outgoing edges.
24312
1e67fa1f
L
243132011-01-02 H.J. Lu <hongjiu.lu@intel.com>
24314
24315 PR driver/47137
24316 * gcc.c (main): Don't check have_o when settting combine_inputs.
24317
6656b2ac
EB
243182011-01-02 Eric Botcazou <ebotcazou@adacore.com>
24319
24320 * regrename.c: Add general comment describing the pass.
24321 (struct du_head): Remove 'length' field.
24322 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
24323 (regrename_optimize): Do not sort chains. Rework comments, add others.
24324 Force renaming to the preferred class (if any) in the first pass and do
24325 not consider registers that belong to it in the second pass.
24326 (create_new_chain): Do not set 'length' field.
24327 (scan_rtx_reg): Likewise.
24328
bc470c24
JJ
243292011-01-02 Jakub Jelinek <jakub@redhat.com>
24330
4e996296
JJ
24331 PR tree-optimization/47140
24332 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
24333 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
24334 to bit_value_binop.
24335
bc470c24 24336 PR rtl-optimization/47028
6656b2ac
EB
24337 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
24338 parm_birth_insn instead of at the beginning of first bb.
bc470c24 24339
5af62fcd 243402011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
0d52f2a8
MX
24341
24342 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
24343 Remove the word "see" before "@pxref".
24344 * doc/rtl.texi: Remove the word "see" before "@pxref".
24345
0e20c89f
JH
243462011-01-01 Jan Hubicka <jh@suse.cz>
24347
6656b2ac
EB
24348 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
24349 memory.
0e20c89f 24350
220e83ca
KT
243512011-01-01 Kai Tietz <kai.tietz@onevision.com>
24352
24353 PR target/38662
6656b2ac 24354 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
220e83ca 24355
ad41bd84 24356\f
797103eb 24357Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
24358
24359Copying and distribution of this file, with or without modification,
24360are permitted in any medium without royalty provided the copyright
24361notice and this notice are preserved.